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