@uniformdev/design-system 19.186.1 → 19.186.2-alpha.14

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/index.d.mts CHANGED
@@ -28,6 +28,7 @@ import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
28
28
  export { RichTextBuiltInElement, RichTextBuiltInFormat } from '@uniformdev/canvas';
29
29
  import { Spread, SerializedElementNode, ElementNode, NodeKey, EditorConfig, DOMConversionMap, RangeSelection, SerializedEditorState, LexicalEditor } from 'lexical';
30
30
  import * as _uniformdev_richtext from '@uniformdev/richtext';
31
+ import { RichTextBuiltInElement } from '@uniformdev/richtext';
31
32
  export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/richtext';
32
33
  export { Id as ToastId, toast } from 'react-toastify';
33
34
 
@@ -23303,15 +23304,17 @@ type RichTextToolbarProps = {
23303
23304
  rows: number;
23304
23305
  columns: number;
23305
23306
  } | null>;
23307
+ onInsertAsset?: () => void;
23306
23308
  };
23309
+
23307
23310
  type UseRichTextToolbarStateProps = {
23308
23311
  config?: RichTextParamConfiguration;
23309
23312
  };
23310
23313
  declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps) => {
23311
23314
  activeFormats: _uniformdev_richtext.RichTextBuiltInFormat[];
23312
23315
  setActiveFormats: React$1.Dispatch<React$1.SetStateAction<_uniformdev_richtext.RichTextBuiltInFormat[]>>;
23313
- activeElement: "paragraph" | _uniformdev_richtext.RichTextBuiltInElement;
23314
- setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" | _uniformdev_richtext.RichTextBuiltInElement>>;
23316
+ activeElement: "paragraph" | RichTextBuiltInElement;
23317
+ setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" | RichTextBuiltInElement>>;
23315
23318
  visibleFormatsWithIcon: {
23316
23319
  label: string;
23317
23320
  type: _uniformdev_richtext.RichTextBuiltInFormat;
@@ -23322,7 +23325,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
23322
23325
  }[];
23323
23326
  visibleTextualElements: {
23324
23327
  label: string;
23325
- type: _uniformdev_richtext.RichTextBuiltInElement;
23328
+ type: RichTextBuiltInElement;
23326
23329
  }[];
23327
23330
  isLink: boolean;
23328
23331
  setIsLink: React$1.Dispatch<React$1.SetStateAction<boolean>>;
@@ -23331,6 +23334,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
23331
23334
  quoteElementVisible: boolean;
23332
23335
  codeElementVisible: boolean;
23333
23336
  tableElementVisible: boolean;
23337
+ assetElementVisible: boolean;
23334
23338
  visibleElementsWithIcons: Set<string>;
23335
23339
  visibleInsertElementsWithIcons: Set<string>;
23336
23340
  };
@@ -23359,6 +23363,8 @@ type RichTextProps = {
23359
23363
  rows: number;
23360
23364
  columns: number;
23361
23365
  } | null>;
23366
+ /** Assets */
23367
+ onInsertAsset?: () => void;
23362
23368
  };
23363
23369
  type RichTextParamValue = SerializedEditorState | undefined | null;
23364
23370
  type ParameterRichTextInnerProps = RichTextProps & {
@@ -23367,8 +23373,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
23367
23373
  editorFooter?: React.ReactNode;
23368
23374
  };
23369
23375
  type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
23370
- declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, customNodes, children, variables, customControls, onInsertTable, minimalInteractivity, }: ParameterRichTextProps) => _emotion_react_jsx_runtime.JSX.Element;
23371
- declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, children, customNodes, variables, customControls, onInsertTable, minimalInteractivity, }: ParameterRichTextInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
23376
+ declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, customNodes, children, variables, customControls, onInsertTable, onInsertAsset, minimalInteractivity, }: ParameterRichTextProps) => _emotion_react_jsx_runtime.JSX.Element;
23377
+ declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, children, customNodes, variables, customControls, onInsertTable, onInsertAsset, minimalInteractivity, }: ParameterRichTextInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
23372
23378
 
23373
23379
  type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
23374
23380
  /** @example <ParameterSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
28
28
  export { RichTextBuiltInElement, RichTextBuiltInFormat } from '@uniformdev/canvas';
29
29
  import { Spread, SerializedElementNode, ElementNode, NodeKey, EditorConfig, DOMConversionMap, RangeSelection, SerializedEditorState, LexicalEditor } from 'lexical';
30
30
  import * as _uniformdev_richtext from '@uniformdev/richtext';
31
+ import { RichTextBuiltInElement } from '@uniformdev/richtext';
31
32
  export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/richtext';
32
33
  export { Id as ToastId, toast } from 'react-toastify';
33
34
 
@@ -23303,15 +23304,17 @@ type RichTextToolbarProps = {
23303
23304
  rows: number;
23304
23305
  columns: number;
23305
23306
  } | null>;
23307
+ onInsertAsset?: () => void;
23306
23308
  };
23309
+
23307
23310
  type UseRichTextToolbarStateProps = {
23308
23311
  config?: RichTextParamConfiguration;
23309
23312
  };
23310
23313
  declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps) => {
23311
23314
  activeFormats: _uniformdev_richtext.RichTextBuiltInFormat[];
23312
23315
  setActiveFormats: React$1.Dispatch<React$1.SetStateAction<_uniformdev_richtext.RichTextBuiltInFormat[]>>;
23313
- activeElement: "paragraph" | _uniformdev_richtext.RichTextBuiltInElement;
23314
- setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" | _uniformdev_richtext.RichTextBuiltInElement>>;
23316
+ activeElement: "paragraph" | RichTextBuiltInElement;
23317
+ setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" | RichTextBuiltInElement>>;
23315
23318
  visibleFormatsWithIcon: {
23316
23319
  label: string;
23317
23320
  type: _uniformdev_richtext.RichTextBuiltInFormat;
@@ -23322,7 +23325,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
23322
23325
  }[];
23323
23326
  visibleTextualElements: {
23324
23327
  label: string;
23325
- type: _uniformdev_richtext.RichTextBuiltInElement;
23328
+ type: RichTextBuiltInElement;
23326
23329
  }[];
23327
23330
  isLink: boolean;
23328
23331
  setIsLink: React$1.Dispatch<React$1.SetStateAction<boolean>>;
@@ -23331,6 +23334,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
23331
23334
  quoteElementVisible: boolean;
23332
23335
  codeElementVisible: boolean;
23333
23336
  tableElementVisible: boolean;
23337
+ assetElementVisible: boolean;
23334
23338
  visibleElementsWithIcons: Set<string>;
23335
23339
  visibleInsertElementsWithIcons: Set<string>;
23336
23340
  };
@@ -23359,6 +23363,8 @@ type RichTextProps = {
23359
23363
  rows: number;
23360
23364
  columns: number;
23361
23365
  } | null>;
23366
+ /** Assets */
23367
+ onInsertAsset?: () => void;
23362
23368
  };
23363
23369
  type RichTextParamValue = SerializedEditorState | undefined | null;
23364
23370
  type ParameterRichTextInnerProps = RichTextProps & {
@@ -23367,8 +23373,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
23367
23373
  editorFooter?: React.ReactNode;
23368
23374
  };
23369
23375
  type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
23370
- declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, customNodes, children, variables, customControls, onInsertTable, minimalInteractivity, }: ParameterRichTextProps) => _emotion_react_jsx_runtime.JSX.Element;
23371
- declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, children, customNodes, variables, customControls, onInsertTable, minimalInteractivity, }: ParameterRichTextInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
23376
+ declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, customNodes, children, variables, customControls, onInsertTable, onInsertAsset, minimalInteractivity, }: ParameterRichTextProps) => _emotion_react_jsx_runtime.JSX.Element;
23377
+ declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, children, customNodes, variables, customControls, onInsertTable, onInsertAsset, minimalInteractivity, }: ParameterRichTextInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
23372
23378
 
23373
23379
  type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
23374
23380
  /** @example <ParameterSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */