Bump TinyMCE from 7.3.0 to 7.4.1

This commit is contained in:
johnnyq
2024-10-18 18:08:39 -04:00
parent 36af07c837
commit 051fdda9a8
58 changed files with 860 additions and 74 deletions

View File

@@ -501,6 +501,7 @@ interface ButtonSpec {
icon?: string;
borderless?: boolean;
buttonType?: 'primary' | 'secondary' | 'toolbar';
context?: string;
}
interface FormComponentSpec {
type: string;
@@ -513,9 +514,11 @@ interface CheckboxSpec extends FormComponentSpec {
type: 'checkbox';
label: string;
enabled?: boolean;
context?: string;
}
interface CollectionSpec extends FormComponentWithLabelSpec {
type: 'collection';
context?: string;
}
interface CollectionItem {
value: string;
@@ -525,6 +528,7 @@ interface CollectionItem {
interface ColorInputSpec extends FormComponentWithLabelSpec {
type: 'colorinput';
storageKey?: string;
context?: string;
}
interface ColorPickerSpec extends FormComponentWithLabelSpec {
type: 'colorpicker';
@@ -551,6 +555,7 @@ interface CustomEditorNewSpec extends FormComponentSpec {
type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
interface DropZoneSpec extends FormComponentWithLabelSpec {
type: 'dropzone';
context?: string;
}
interface GridSpec {
type: 'grid';
@@ -581,6 +586,7 @@ interface InputSpec extends FormComponentWithLabelSpec {
placeholder?: string;
maximized?: boolean;
enabled?: boolean;
context?: string;
}
type Alignment = 'start' | 'center' | 'end';
interface LabelSpec {
@@ -603,6 +609,7 @@ interface ListBoxSpec extends FormComponentWithLabelSpec {
type: 'listbox';
items: ListBoxItemSpec[];
disabled?: boolean;
context?: string;
}
interface PanelSpec {
type: 'panel';
@@ -618,11 +625,13 @@ interface SelectBoxSpec extends FormComponentWithLabelSpec {
items: SelectBoxItemSpec[];
size?: number;
enabled?: boolean;
context?: string;
}
interface SizeInputSpec extends FormComponentWithLabelSpec {
type: 'sizeinput';
constrain?: boolean;
enabled?: boolean;
context?: string;
}
interface SliderSpec extends FormComponentSpec {
type: 'slider';
@@ -640,6 +649,7 @@ interface TextAreaSpec extends FormComponentWithLabelSpec {
placeholder?: string;
maximized?: boolean;
enabled?: boolean;
context?: string;
}
interface BaseToolbarButtonSpec<I extends BaseToolbarButtonInstanceApi> {
enabled?: boolean;
@@ -647,6 +657,7 @@ interface BaseToolbarButtonSpec<I extends BaseToolbarButtonInstanceApi> {
icon?: string;
text?: string;
onSetup?: (api: I) => (api: I) => void;
context?: string;
}
interface BaseToolbarButtonInstanceApi {
isEnabled: () => boolean;
@@ -701,6 +712,7 @@ interface CommonMenuItemSpec {
value?: string;
meta?: Record<string, any>;
shortcut?: string;
context?: string;
}
interface CommonMenuItemInstanceApi {
isEnabled: () => boolean;
@@ -816,6 +828,7 @@ interface BaseMenuButtonSpec {
};
fetch: (success: SuccessCallback$1, fetchContext: MenuButtonFetchContext, api: BaseMenuButtonInstanceApi) => void;
onSetup?: (api: BaseMenuButtonInstanceApi) => (api: BaseMenuButtonInstanceApi) => void;
context?: string;
}
interface BaseMenuButtonInstanceApi {
isEnabled: () => boolean;
@@ -848,6 +861,7 @@ interface ToolbarSplitButtonSpec {
onSetup?: (api: ToolbarSplitButtonInstanceApi) => (api: ToolbarSplitButtonInstanceApi) => void;
onAction: (api: ToolbarSplitButtonInstanceApi) => void;
onItemAction: (api: ToolbarSplitButtonInstanceApi, value: string) => void;
context?: string;
}
interface ToolbarSplitButtonInstanceApi {
isEnabled: () => boolean;
@@ -889,6 +903,8 @@ interface BaseTreeItemSpec {
title: string;
id: Id;
menu?: ToolbarMenuButtonSpec;
customStateIcon?: string;
customStateIconTooltip?: string;
}
interface DirectorySpec extends BaseTreeItemSpec {
type: 'directory';
@@ -903,6 +919,7 @@ interface UrlInputSpec extends FormComponentWithLabelSpec {
filetype?: 'image' | 'media' | 'file';
enabled?: boolean;
picker_text?: string;
context?: string;
}
interface UrlInputData {
value: string;
@@ -927,6 +944,7 @@ interface BaseDialogFooterButtonSpec {
enabled?: boolean;
icon?: string;
buttonType?: 'primary' | 'secondary';
context?: string;
}
interface DialogFooterNormalButtonSpec extends BaseDialogFooterButtonSpec {
type: 'submit' | 'cancel' | 'custom';
@@ -1229,6 +1247,7 @@ interface ViewButtonApi {
interface ViewToggleButtonApi extends ViewButtonApi {
isActive: () => boolean;
setActive: (state: boolean) => void;
focus: () => void;
}
interface BaseButtonSpec<Api extends ViewButtonApi> {
text?: string;
@@ -1237,6 +1256,7 @@ interface BaseButtonSpec<Api extends ViewButtonApi> {
buttonType?: 'primary' | 'secondary';
borderless?: boolean;
onAction: (api: Api) => void;
context?: string;
}
interface ViewNormalButtonSpec extends BaseButtonSpec<ViewButtonApi> {
text: string;
@@ -1281,6 +1301,7 @@ interface Registry$1 {
addAutocompleter: (name: string, spec: AutocompleterSpec) => void;
addSidebar: (name: string, spec: SidebarSpec) => void;
addView: (name: string, spec: ViewSpec) => void;
addContext: (name: string, pred: (args: string) => boolean) => void;
getAll: () => {
buttons: Record<string, ToolbarButtonSpec | GroupToolbarButtonSpec | ToolbarMenuButtonSpec | ToolbarSplitButtonSpec | ToolbarToggleButtonSpec>;
menuItems: Record<string, MenuItemSpec | NestedMenuItemSpec | ToggleMenuItemSpec>;
@@ -1290,6 +1311,7 @@ interface Registry$1 {
icons: Record<string, string>;
sidebars: Record<string, SidebarSpec>;
views: Record<string, ViewSpec>;
contexts: Record<string, (args: string) => boolean>;
};
}
interface AutocompleteLookupData {
@@ -1392,6 +1414,7 @@ interface DomParserSettings {
allow_html_in_named_anchor?: boolean;
allow_script_urls?: boolean;
allow_unsafe_link_target?: boolean;
allow_mathml_annotation_encodings?: string[];
blob_cache?: BlobCache;
convert_fonts_to_spans?: boolean;
convert_unsafe_embeds?: boolean;