@kentico/xperience-admin-base 30.5.4 → 30.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/entry.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { DefineIconParameters } from 'froala-editor';
2
2
  import { DraggableProvidedDragHandleProps } from '@hello-pangea/dnd';
3
+ import { FroalaOptions } from 'froala-editor';
3
4
  import { JSX as JSX_2 } from 'react/jsx-runtime';
4
5
  import { MutableRefObject } from 'react';
5
6
  import { default as React_2 } from 'react';
@@ -423,6 +424,11 @@ declare interface FroalaEditorConfigurator {
423
424
  readonly registerCommand: (buttonName: string, parameters: Partial<RegisterCommandParameters>) => void;
424
425
  readonly disableButton: (buttonName: string, buttonTitle?: string) => void;
425
426
  readonly enableButton: (buttonName: string, buttonTitle?: string) => void;
427
+ /**
428
+ * Allows to modify Froala editor options before initialization through callback.
429
+ * @note If the options returned from the callback contain any events, they will be combined with the default events or those provided by other plugins.
430
+ */
431
+ readonly configureOptions?: (callback: (currentOptions: Partial<FroalaOptions>) => Partial<FroalaOptions>) => void;
426
432
  }
427
433
 
428
434
  declare type HTMLButtonProps = Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title' | 'onClick'>;