mirror of
https://github.com/strapi/strapi.git
synced 2025-07-12 19:41:10 +00:00

* chore: initiate moving CM to own package * chore: refactor to handle routes * chore: init review-workflows-package * chore: fix build * chore: refactor review-workflows fe * chore: fix unit suite * chore: spelling mistake Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com> --------- Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
/// <reference types="vite/client" />
|
|
|
|
import { type StrapiTheme } from '@strapi/design-system';
|
|
import { type BaseEditor } from 'slate';
|
|
import { type HistoryEditor } from 'slate-history';
|
|
import { type ReactEditor } from 'slate-react';
|
|
|
|
import type { LinkEditor } from './src/pages/EditView/components/FormInputs/BlocksInput/plugins/withLinks';
|
|
import type { Schema, Modules } from '@strapi/types';
|
|
|
|
declare module 'styled-components' {
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
export interface DefaultTheme extends StrapiTheme {}
|
|
}
|
|
|
|
declare module 'slate' {
|
|
interface CustomTypes {
|
|
Editor: Omit<BaseEditor & ReactEditor & HistoryEditor & LinkEditor, 'children'> & {
|
|
children: Schema.Attribute.BlocksValue;
|
|
};
|
|
Element: Schema.Attribute.BlocksNode;
|
|
Descendant: Schema.Attribute.BlocksInlineNode | Text;
|
|
Text: Schema.Attribute.BlocksTextNode;
|
|
}
|
|
}
|
|
|
|
interface BrowserStrapi {
|
|
backendURL: string;
|
|
isEE: boolean;
|
|
future: {
|
|
isEnabled: (name: keyof NonNullable<Modules.Features.FeaturesConfig['future']>) => boolean;
|
|
};
|
|
features: {
|
|
SSO: 'sso';
|
|
AUDIT_LOGS: 'audit-logs';
|
|
REVIEW_WORKFLOWS: 'review-workflows';
|
|
isEnabled: (featureName?: string) => boolean;
|
|
};
|
|
flags: {
|
|
promoteEE?: boolean;
|
|
nps?: boolean;
|
|
};
|
|
projectType: 'Community' | 'Enterprise';
|
|
telemetryDisabled: boolean;
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
strapi: BrowserStrapi;
|
|
}
|
|
}
|