@uniformdev/design-system 19.184.3-alpha.32 → 19.185.1-alpha.8
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/esm/index.js +1488 -1233
- package/dist/index.d.mts +11 -5
- package/dist/index.d.ts +11 -5
- package/dist/index.js +1352 -1112
- package/package.json +14 -14
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
|
|
|
@@ -23301,15 +23302,17 @@ type RichTextToolbarProps = {
|
|
|
23301
23302
|
rows: number;
|
|
23302
23303
|
columns: number;
|
|
23303
23304
|
} | null>;
|
|
23305
|
+
onInsertAsset?: () => void;
|
|
23304
23306
|
};
|
|
23307
|
+
|
|
23305
23308
|
type UseRichTextToolbarStateProps = {
|
|
23306
23309
|
config?: RichTextParamConfiguration;
|
|
23307
23310
|
};
|
|
23308
23311
|
declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps) => {
|
|
23309
23312
|
activeFormats: _uniformdev_richtext.RichTextBuiltInFormat[];
|
|
23310
23313
|
setActiveFormats: React$1.Dispatch<React$1.SetStateAction<_uniformdev_richtext.RichTextBuiltInFormat[]>>;
|
|
23311
|
-
activeElement: "paragraph" |
|
|
23312
|
-
setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" |
|
|
23314
|
+
activeElement: "paragraph" | RichTextBuiltInElement;
|
|
23315
|
+
setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" | RichTextBuiltInElement>>;
|
|
23313
23316
|
visibleFormatsWithIcon: {
|
|
23314
23317
|
label: string;
|
|
23315
23318
|
type: _uniformdev_richtext.RichTextBuiltInFormat;
|
|
@@ -23320,7 +23323,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23320
23323
|
}[];
|
|
23321
23324
|
visibleTextualElements: {
|
|
23322
23325
|
label: string;
|
|
23323
|
-
type:
|
|
23326
|
+
type: RichTextBuiltInElement;
|
|
23324
23327
|
}[];
|
|
23325
23328
|
isLink: boolean;
|
|
23326
23329
|
setIsLink: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
@@ -23329,6 +23332,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23329
23332
|
quoteElementVisible: boolean;
|
|
23330
23333
|
codeElementVisible: boolean;
|
|
23331
23334
|
tableElementVisible: boolean;
|
|
23335
|
+
assetElementVisible: boolean;
|
|
23332
23336
|
visibleElementsWithIcons: Set<string>;
|
|
23333
23337
|
visibleInsertElementsWithIcons: Set<string>;
|
|
23334
23338
|
};
|
|
@@ -23357,6 +23361,8 @@ type RichTextProps = {
|
|
|
23357
23361
|
rows: number;
|
|
23358
23362
|
columns: number;
|
|
23359
23363
|
} | null>;
|
|
23364
|
+
/** Assets */
|
|
23365
|
+
onInsertAsset?: () => void;
|
|
23360
23366
|
};
|
|
23361
23367
|
type RichTextParamValue = SerializedEditorState | undefined | null;
|
|
23362
23368
|
type ParameterRichTextInnerProps = RichTextProps & {
|
|
@@ -23365,8 +23371,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
|
|
|
23365
23371
|
editorFooter?: React.ReactNode;
|
|
23366
23372
|
};
|
|
23367
23373
|
type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
|
|
23368
|
-
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;
|
|
23369
|
-
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;
|
|
23374
|
+
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;
|
|
23375
|
+
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;
|
|
23370
23376
|
|
|
23371
23377
|
type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
|
|
23372
23378
|
/** @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
|
|
|
@@ -23301,15 +23302,17 @@ type RichTextToolbarProps = {
|
|
|
23301
23302
|
rows: number;
|
|
23302
23303
|
columns: number;
|
|
23303
23304
|
} | null>;
|
|
23305
|
+
onInsertAsset?: () => void;
|
|
23304
23306
|
};
|
|
23307
|
+
|
|
23305
23308
|
type UseRichTextToolbarStateProps = {
|
|
23306
23309
|
config?: RichTextParamConfiguration;
|
|
23307
23310
|
};
|
|
23308
23311
|
declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps) => {
|
|
23309
23312
|
activeFormats: _uniformdev_richtext.RichTextBuiltInFormat[];
|
|
23310
23313
|
setActiveFormats: React$1.Dispatch<React$1.SetStateAction<_uniformdev_richtext.RichTextBuiltInFormat[]>>;
|
|
23311
|
-
activeElement: "paragraph" |
|
|
23312
|
-
setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" |
|
|
23314
|
+
activeElement: "paragraph" | RichTextBuiltInElement;
|
|
23315
|
+
setActiveElement: React$1.Dispatch<React$1.SetStateAction<"paragraph" | RichTextBuiltInElement>>;
|
|
23313
23316
|
visibleFormatsWithIcon: {
|
|
23314
23317
|
label: string;
|
|
23315
23318
|
type: _uniformdev_richtext.RichTextBuiltInFormat;
|
|
@@ -23320,7 +23323,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23320
23323
|
}[];
|
|
23321
23324
|
visibleTextualElements: {
|
|
23322
23325
|
label: string;
|
|
23323
|
-
type:
|
|
23326
|
+
type: RichTextBuiltInElement;
|
|
23324
23327
|
}[];
|
|
23325
23328
|
isLink: boolean;
|
|
23326
23329
|
setIsLink: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
@@ -23329,6 +23332,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23329
23332
|
quoteElementVisible: boolean;
|
|
23330
23333
|
codeElementVisible: boolean;
|
|
23331
23334
|
tableElementVisible: boolean;
|
|
23335
|
+
assetElementVisible: boolean;
|
|
23332
23336
|
visibleElementsWithIcons: Set<string>;
|
|
23333
23337
|
visibleInsertElementsWithIcons: Set<string>;
|
|
23334
23338
|
};
|
|
@@ -23357,6 +23361,8 @@ type RichTextProps = {
|
|
|
23357
23361
|
rows: number;
|
|
23358
23362
|
columns: number;
|
|
23359
23363
|
} | null>;
|
|
23364
|
+
/** Assets */
|
|
23365
|
+
onInsertAsset?: () => void;
|
|
23360
23366
|
};
|
|
23361
23367
|
type RichTextParamValue = SerializedEditorState | undefined | null;
|
|
23362
23368
|
type ParameterRichTextInnerProps = RichTextProps & {
|
|
@@ -23365,8 +23371,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
|
|
|
23365
23371
|
editorFooter?: React.ReactNode;
|
|
23366
23372
|
};
|
|
23367
23373
|
type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
|
|
23368
|
-
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;
|
|
23369
|
-
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;
|
|
23374
|
+
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;
|
|
23375
|
+
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;
|
|
23370
23376
|
|
|
23371
23377
|
type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
|
|
23372
23378
|
/** @example <ParameterSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
|