@uniformdev/design-system 19.185.1-alpha.8 → 19.186.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/esm/index.js +1172 -1206
- package/dist/index.d.mts +8 -12
- package/dist/index.d.ts +8 -12
- package/dist/index.js +1196 -1232
- 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
|
|
|
@@ -23146,9 +23145,11 @@ type ParameterLabelProps = HTMLAttributes<HTMLLabelElement> & {
|
|
|
23146
23145
|
children: React.ReactNode;
|
|
23147
23146
|
/** sets the label to use a span tag with aria-labelledby */
|
|
23148
23147
|
asSpan?: boolean;
|
|
23148
|
+
/** sets the data-testId attribute */
|
|
23149
|
+
testId?: string;
|
|
23149
23150
|
};
|
|
23150
23151
|
/** @example <ParameterLabel id="my-label">my label</ParameterLabel> */
|
|
23151
|
-
declare const ParameterLabel: ({ id, asSpan, children, ...props }: ParameterLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
23152
|
+
declare const ParameterLabel: ({ id, asSpan, children, testId, ...props }: ParameterLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
23152
23153
|
|
|
23153
23154
|
type ParameterLinkProps = CommonParameterInputProps & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
23154
23155
|
/** (optional) sets the button text when value is empty
|
|
@@ -23302,17 +23303,15 @@ type RichTextToolbarProps = {
|
|
|
23302
23303
|
rows: number;
|
|
23303
23304
|
columns: number;
|
|
23304
23305
|
} | null>;
|
|
23305
|
-
onInsertAsset?: () => void;
|
|
23306
23306
|
};
|
|
23307
|
-
|
|
23308
23307
|
type UseRichTextToolbarStateProps = {
|
|
23309
23308
|
config?: RichTextParamConfiguration;
|
|
23310
23309
|
};
|
|
23311
23310
|
declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps) => {
|
|
23312
23311
|
activeFormats: _uniformdev_richtext.RichTextBuiltInFormat[];
|
|
23313
23312
|
setActiveFormats: React$1.Dispatch<React$1.SetStateAction<_uniformdev_richtext.RichTextBuiltInFormat[]>>;
|
|
23314
|
-
activeElement: "paragraph" | RichTextBuiltInElement;
|
|
23315
|
-
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>>;
|
|
23316
23315
|
visibleFormatsWithIcon: {
|
|
23317
23316
|
label: string;
|
|
23318
23317
|
type: _uniformdev_richtext.RichTextBuiltInFormat;
|
|
@@ -23323,7 +23322,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23323
23322
|
}[];
|
|
23324
23323
|
visibleTextualElements: {
|
|
23325
23324
|
label: string;
|
|
23326
|
-
type: RichTextBuiltInElement;
|
|
23325
|
+
type: _uniformdev_richtext.RichTextBuiltInElement;
|
|
23327
23326
|
}[];
|
|
23328
23327
|
isLink: boolean;
|
|
23329
23328
|
setIsLink: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
@@ -23332,7 +23331,6 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23332
23331
|
quoteElementVisible: boolean;
|
|
23333
23332
|
codeElementVisible: boolean;
|
|
23334
23333
|
tableElementVisible: boolean;
|
|
23335
|
-
assetElementVisible: boolean;
|
|
23336
23334
|
visibleElementsWithIcons: Set<string>;
|
|
23337
23335
|
visibleInsertElementsWithIcons: Set<string>;
|
|
23338
23336
|
};
|
|
@@ -23361,8 +23359,6 @@ type RichTextProps = {
|
|
|
23361
23359
|
rows: number;
|
|
23362
23360
|
columns: number;
|
|
23363
23361
|
} | null>;
|
|
23364
|
-
/** Assets */
|
|
23365
|
-
onInsertAsset?: () => void;
|
|
23366
23362
|
};
|
|
23367
23363
|
type RichTextParamValue = SerializedEditorState | undefined | null;
|
|
23368
23364
|
type ParameterRichTextInnerProps = RichTextProps & {
|
|
@@ -23371,8 +23367,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
|
|
|
23371
23367
|
editorFooter?: React.ReactNode;
|
|
23372
23368
|
};
|
|
23373
23369
|
type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
|
|
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,
|
|
23375
|
-
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;
|
|
23376
23372
|
|
|
23377
23373
|
type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
|
|
23378
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
|
|
|
@@ -23146,9 +23145,11 @@ type ParameterLabelProps = HTMLAttributes<HTMLLabelElement> & {
|
|
|
23146
23145
|
children: React.ReactNode;
|
|
23147
23146
|
/** sets the label to use a span tag with aria-labelledby */
|
|
23148
23147
|
asSpan?: boolean;
|
|
23148
|
+
/** sets the data-testId attribute */
|
|
23149
|
+
testId?: string;
|
|
23149
23150
|
};
|
|
23150
23151
|
/** @example <ParameterLabel id="my-label">my label</ParameterLabel> */
|
|
23151
|
-
declare const ParameterLabel: ({ id, asSpan, children, ...props }: ParameterLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
23152
|
+
declare const ParameterLabel: ({ id, asSpan, children, testId, ...props }: ParameterLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
23152
23153
|
|
|
23153
23154
|
type ParameterLinkProps = CommonParameterInputProps & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
23154
23155
|
/** (optional) sets the button text when value is empty
|
|
@@ -23302,17 +23303,15 @@ type RichTextToolbarProps = {
|
|
|
23302
23303
|
rows: number;
|
|
23303
23304
|
columns: number;
|
|
23304
23305
|
} | null>;
|
|
23305
|
-
onInsertAsset?: () => void;
|
|
23306
23306
|
};
|
|
23307
|
-
|
|
23308
23307
|
type UseRichTextToolbarStateProps = {
|
|
23309
23308
|
config?: RichTextParamConfiguration;
|
|
23310
23309
|
};
|
|
23311
23310
|
declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps) => {
|
|
23312
23311
|
activeFormats: _uniformdev_richtext.RichTextBuiltInFormat[];
|
|
23313
23312
|
setActiveFormats: React$1.Dispatch<React$1.SetStateAction<_uniformdev_richtext.RichTextBuiltInFormat[]>>;
|
|
23314
|
-
activeElement: "paragraph" | RichTextBuiltInElement;
|
|
23315
|
-
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>>;
|
|
23316
23315
|
visibleFormatsWithIcon: {
|
|
23317
23316
|
label: string;
|
|
23318
23317
|
type: _uniformdev_richtext.RichTextBuiltInFormat;
|
|
@@ -23323,7 +23322,7 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23323
23322
|
}[];
|
|
23324
23323
|
visibleTextualElements: {
|
|
23325
23324
|
label: string;
|
|
23326
|
-
type: RichTextBuiltInElement;
|
|
23325
|
+
type: _uniformdev_richtext.RichTextBuiltInElement;
|
|
23327
23326
|
}[];
|
|
23328
23327
|
isLink: boolean;
|
|
23329
23328
|
setIsLink: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
@@ -23332,7 +23331,6 @@ declare const useRichTextToolbarState: ({ config }: UseRichTextToolbarStateProps
|
|
|
23332
23331
|
quoteElementVisible: boolean;
|
|
23333
23332
|
codeElementVisible: boolean;
|
|
23334
23333
|
tableElementVisible: boolean;
|
|
23335
|
-
assetElementVisible: boolean;
|
|
23336
23334
|
visibleElementsWithIcons: Set<string>;
|
|
23337
23335
|
visibleInsertElementsWithIcons: Set<string>;
|
|
23338
23336
|
};
|
|
@@ -23361,8 +23359,6 @@ type RichTextProps = {
|
|
|
23361
23359
|
rows: number;
|
|
23362
23360
|
columns: number;
|
|
23363
23361
|
} | null>;
|
|
23364
|
-
/** Assets */
|
|
23365
|
-
onInsertAsset?: () => void;
|
|
23366
23362
|
};
|
|
23367
23363
|
type RichTextParamValue = SerializedEditorState | undefined | null;
|
|
23368
23364
|
type ParameterRichTextInnerProps = RichTextProps & {
|
|
@@ -23371,8 +23367,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
|
|
|
23371
23367
|
editorFooter?: React.ReactNode;
|
|
23372
23368
|
};
|
|
23373
23369
|
type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
|
|
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,
|
|
23375
|
-
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;
|
|
23376
23372
|
|
|
23377
23373
|
type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
|
|
23378
23374
|
/** @example <ParameterSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
|