vendor/assets/javascripts/tinymce/tinymce.d.ts in tinymce-rails-7.3.0 vs vendor/assets/javascripts/tinymce/tinymce.d.ts in tinymce-rails-7.4.0

- old
+ new

@@ -499,10 +499,11 @@ primary?: boolean; name?: string; icon?: string; borderless?: boolean; buttonType?: 'primary' | 'secondary' | 'toolbar'; + context?: string; } interface FormComponentSpec { type: string; name: string; } @@ -511,22 +512,25 @@ } interface CheckboxSpec extends FormComponentSpec { type: 'checkbox'; label: string; enabled?: boolean; + context?: string; } interface CollectionSpec extends FormComponentWithLabelSpec { type: 'collection'; + context?: string; } interface CollectionItem { value: string; text: string; icon: string; } interface ColorInputSpec extends FormComponentWithLabelSpec { type: 'colorinput'; storageKey?: string; + context?: string; } interface ColorPickerSpec extends FormComponentWithLabelSpec { type: 'colorpicker'; } interface CustomEditorInit { @@ -549,10 +553,11 @@ settings?: any; } type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec; interface DropZoneSpec extends FormComponentWithLabelSpec { type: 'dropzone'; + context?: string; } interface GridSpec { type: 'grid'; columns: number; items: BodyComponentSpec[]; @@ -579,10 +584,11 @@ type: 'input'; inputMode?: string; placeholder?: string; maximized?: boolean; enabled?: boolean; + context?: string; } type Alignment = 'start' | 'center' | 'end'; interface LabelSpec { type: 'label'; label: string; @@ -601,10 +607,11 @@ type ListBoxItemSpec = ListBoxNestedItemSpec | ListBoxSingleItemSpec; interface ListBoxSpec extends FormComponentWithLabelSpec { type: 'listbox'; items: ListBoxItemSpec[]; disabled?: boolean; + context?: string; } interface PanelSpec { type: 'panel'; classes?: string[]; items: BodyComponentSpec[]; @@ -616,15 +623,17 @@ interface SelectBoxSpec extends FormComponentWithLabelSpec { type: 'selectbox'; 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'; label: string; min?: number; @@ -638,17 +647,19 @@ interface TextAreaSpec extends FormComponentWithLabelSpec { type: 'textarea'; placeholder?: string; maximized?: boolean; enabled?: boolean; + context?: string; } interface BaseToolbarButtonSpec<I extends BaseToolbarButtonInstanceApi> { enabled?: boolean; tooltip?: string; icon?: string; text?: string; onSetup?: (api: I) => (api: I) => void; + context?: string; } interface BaseToolbarButtonInstanceApi { isEnabled: () => boolean; setEnabled: (state: boolean) => void; setText: (text: string) => void; @@ -699,10 +710,11 @@ enabled?: boolean; text?: string; value?: string; meta?: Record<string, any>; shortcut?: string; + context?: string; } interface CommonMenuItemInstanceApi { isEnabled: () => boolean; setEnabled: (state: boolean) => void; } @@ -814,10 +826,11 @@ search?: boolean | { placeholder?: string; }; fetch: (success: SuccessCallback$1, fetchContext: MenuButtonFetchContext, api: BaseMenuButtonInstanceApi) => void; onSetup?: (api: BaseMenuButtonInstanceApi) => (api: BaseMenuButtonInstanceApi) => void; + context?: string; } interface BaseMenuButtonInstanceApi { isEnabled: () => boolean; setEnabled: (state: boolean) => void; isActive: () => boolean; @@ -846,10 +859,11 @@ columns?: ColumnTypes$1; fetch: (success: SuccessCallback) => void; onSetup?: (api: ToolbarSplitButtonInstanceApi) => (api: ToolbarSplitButtonInstanceApi) => void; onAction: (api: ToolbarSplitButtonInstanceApi) => void; onItemAction: (api: ToolbarSplitButtonInstanceApi, value: string) => void; + context?: string; } interface ToolbarSplitButtonInstanceApi { isEnabled: () => boolean; setEnabled: (state: boolean) => void; setIconFill: (id: string, value: string) => void; @@ -887,10 +901,12 @@ } interface BaseTreeItemSpec { title: string; id: Id; menu?: ToolbarMenuButtonSpec; + customStateIcon?: string; + customStateIconTooltip?: string; } interface DirectorySpec extends BaseTreeItemSpec { type: 'directory'; children: TreeItemSpec[]; } @@ -901,10 +917,11 @@ interface UrlInputSpec extends FormComponentWithLabelSpec { type: 'urlinput'; filetype?: 'image' | 'media' | 'file'; enabled?: boolean; picker_text?: string; + context?: string; } interface UrlInputData { value: string; meta: { text?: string; @@ -925,10 +942,11 @@ align?: 'start' | 'end'; primary?: boolean; enabled?: boolean; icon?: string; buttonType?: 'primary' | 'secondary'; + context?: string; } interface DialogFooterNormalButtonSpec extends BaseDialogFooterButtonSpec { type: 'submit' | 'cancel' | 'custom'; text: string; } @@ -1227,18 +1245,20 @@ setIcon: (newIcon: string) => void; } interface ViewToggleButtonApi extends ViewButtonApi { isActive: () => boolean; setActive: (state: boolean) => void; + focus: () => void; } interface BaseButtonSpec<Api extends ViewButtonApi> { text?: string; icon?: string; tooltip?: string; buttonType?: 'primary' | 'secondary'; borderless?: boolean; onAction: (api: Api) => void; + context?: string; } interface ViewNormalButtonSpec extends BaseButtonSpec<ViewButtonApi> { text: string; type: 'button'; } @@ -1279,19 +1299,21 @@ addContextForm: (name: string, spec: ContextFormSpec) => void; addIcon: (name: string, svgData: string) => void; 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>; popups: Record<string, AutocompleterSpec>; contextMenus: Record<string, ContextMenuApi>; contextToolbars: Record<string, ContextToolbarSpec | ContextFormSpec>; icons: Record<string, string>; sidebars: Record<string, SidebarSpec>; views: Record<string, ViewSpec>; + contexts: Record<string, (args: string) => boolean>; }; } interface AutocompleteLookupData { readonly matchText: string; readonly items: AutocompleterContents[]; @@ -1390,9 +1412,10 @@ allow_svg_data_urls?: boolean; allow_conditional_comments?: boolean; 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; document?: Document; fix_list_elements?: boolean;