@uniformdev/design-system 19.177.1 → 19.177.2-alpha.10
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 +1095 -243
- package/dist/index.d.mts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +1084 -251
- package/package.json +14 -13
package/dist/index.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ import { CreatableProps } from 'react-select/creatable';
|
|
|
21
21
|
import InternalSelect from 'react-select/dist/declarations/src/Select';
|
|
22
22
|
import { JsonSchema7Type } from 'zod-to-json-schema/src/parseDef';
|
|
23
23
|
import * as _ariakit_react from '@ariakit/react';
|
|
24
|
-
import { MenuProps as MenuProps$2, MenuStoreProps, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
24
|
+
import { MenuProps as MenuProps$2, MenuStoreProps, Menu as Menu$1, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
25
25
|
export { PopoverStore } from '@ariakit/react';
|
|
26
26
|
import { InitialConfigType } from '@lexical/react/LexicalComposer';
|
|
27
27
|
import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
|
|
@@ -22652,6 +22652,7 @@ interface MenuProps extends MenuProps$2 {
|
|
|
22652
22652
|
* this is not compatible with nested menus that expand to the left or right of the menu
|
|
22653
22653
|
*/
|
|
22654
22654
|
maxMenuHeight?: string;
|
|
22655
|
+
portalElement?: React$1.ComponentProps<typeof Menu$1>['portalElement'];
|
|
22655
22656
|
}
|
|
22656
22657
|
/**
|
|
22657
22658
|
* Component used for creating clickable menus
|
|
@@ -23258,6 +23259,7 @@ type LinkNodePluginProps = {
|
|
|
23258
23259
|
onSetValue: (value: LinkParamValue) => void;
|
|
23259
23260
|
}) => Promise<void>;
|
|
23260
23261
|
getBoundPath?: (path: string) => string;
|
|
23262
|
+
positioningAnchorEl: HTMLElement;
|
|
23261
23263
|
};
|
|
23262
23264
|
|
|
23263
23265
|
declare const richTextToolbarButton: _emotion_react.SerializedStyles;
|
|
@@ -23270,6 +23272,10 @@ type RichTextToolbarProps = {
|
|
|
23270
23272
|
config?: RichTextParamConfiguration;
|
|
23271
23273
|
/** Variables */
|
|
23272
23274
|
customControls?: React.ReactElement;
|
|
23275
|
+
onInsertTable?: () => Promise<{
|
|
23276
|
+
rows: number;
|
|
23277
|
+
columns: number;
|
|
23278
|
+
} | null>;
|
|
23273
23279
|
};
|
|
23274
23280
|
|
|
23275
23281
|
type RichTextProps = {
|
|
@@ -23278,7 +23284,9 @@ type RichTextProps = {
|
|
|
23278
23284
|
onConnectLink?: LinkNodePluginProps['onConnectLink'];
|
|
23279
23285
|
onRichTextInit?: (editor: LexicalEditor) => void;
|
|
23280
23286
|
readOnly?: boolean;
|
|
23287
|
+
minimalInteractivity?: boolean;
|
|
23281
23288
|
editorInputClassName?: string;
|
|
23289
|
+
editorInputWrapperClassName?: string;
|
|
23282
23290
|
/** Register additional custom node types to the RTE */
|
|
23283
23291
|
customNodes?: InitialConfigType['nodes'];
|
|
23284
23292
|
/** Children allows registering custom Lexical plugins */
|
|
@@ -23289,6 +23297,11 @@ type RichTextProps = {
|
|
|
23289
23297
|
};
|
|
23290
23298
|
/** Rich Text Toolbar custom controls */
|
|
23291
23299
|
customControls?: RichTextToolbarProps['customControls'];
|
|
23300
|
+
/** Tables */
|
|
23301
|
+
onInsertTable?: () => Promise<{
|
|
23302
|
+
rows: number;
|
|
23303
|
+
columns: number;
|
|
23304
|
+
} | null>;
|
|
23292
23305
|
};
|
|
23293
23306
|
type RichTextParamValue = SerializedEditorState | undefined | null;
|
|
23294
23307
|
type ParameterRichTextInnerProps = RichTextProps & {
|
|
@@ -23297,8 +23310,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
|
|
|
23297
23310
|
editorFooter?: React.ReactNode;
|
|
23298
23311
|
};
|
|
23299
23312
|
type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
|
|
23300
|
-
declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorFooter, customNodes, children, variables, customControls, }: ParameterRichTextProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23301
|
-
declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorFooter, children, customNodes, variables, customControls, }: ParameterRichTextInnerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23313
|
+
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_types_jsx_namespace.EmotionJSX.Element;
|
|
23314
|
+
declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, children, customNodes, variables, customControls, onInsertTable, minimalInteractivity, }: ParameterRichTextInnerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23302
23315
|
|
|
23303
23316
|
type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
|
|
23304
23317
|
/** @example <ParameterSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { CreatableProps } from 'react-select/creatable';
|
|
|
21
21
|
import InternalSelect from 'react-select/dist/declarations/src/Select';
|
|
22
22
|
import { JsonSchema7Type } from 'zod-to-json-schema/src/parseDef';
|
|
23
23
|
import * as _ariakit_react from '@ariakit/react';
|
|
24
|
-
import { MenuProps as MenuProps$2, MenuStoreProps, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
24
|
+
import { MenuProps as MenuProps$2, MenuStoreProps, Menu as Menu$1, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
25
25
|
export { PopoverStore } from '@ariakit/react';
|
|
26
26
|
import { InitialConfigType } from '@lexical/react/LexicalComposer';
|
|
27
27
|
import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
|
|
@@ -22652,6 +22652,7 @@ interface MenuProps extends MenuProps$2 {
|
|
|
22652
22652
|
* this is not compatible with nested menus that expand to the left or right of the menu
|
|
22653
22653
|
*/
|
|
22654
22654
|
maxMenuHeight?: string;
|
|
22655
|
+
portalElement?: React$1.ComponentProps<typeof Menu$1>['portalElement'];
|
|
22655
22656
|
}
|
|
22656
22657
|
/**
|
|
22657
22658
|
* Component used for creating clickable menus
|
|
@@ -23258,6 +23259,7 @@ type LinkNodePluginProps = {
|
|
|
23258
23259
|
onSetValue: (value: LinkParamValue) => void;
|
|
23259
23260
|
}) => Promise<void>;
|
|
23260
23261
|
getBoundPath?: (path: string) => string;
|
|
23262
|
+
positioningAnchorEl: HTMLElement;
|
|
23261
23263
|
};
|
|
23262
23264
|
|
|
23263
23265
|
declare const richTextToolbarButton: _emotion_react.SerializedStyles;
|
|
@@ -23270,6 +23272,10 @@ type RichTextToolbarProps = {
|
|
|
23270
23272
|
config?: RichTextParamConfiguration;
|
|
23271
23273
|
/** Variables */
|
|
23272
23274
|
customControls?: React.ReactElement;
|
|
23275
|
+
onInsertTable?: () => Promise<{
|
|
23276
|
+
rows: number;
|
|
23277
|
+
columns: number;
|
|
23278
|
+
} | null>;
|
|
23273
23279
|
};
|
|
23274
23280
|
|
|
23275
23281
|
type RichTextProps = {
|
|
@@ -23278,7 +23284,9 @@ type RichTextProps = {
|
|
|
23278
23284
|
onConnectLink?: LinkNodePluginProps['onConnectLink'];
|
|
23279
23285
|
onRichTextInit?: (editor: LexicalEditor) => void;
|
|
23280
23286
|
readOnly?: boolean;
|
|
23287
|
+
minimalInteractivity?: boolean;
|
|
23281
23288
|
editorInputClassName?: string;
|
|
23289
|
+
editorInputWrapperClassName?: string;
|
|
23282
23290
|
/** Register additional custom node types to the RTE */
|
|
23283
23291
|
customNodes?: InitialConfigType['nodes'];
|
|
23284
23292
|
/** Children allows registering custom Lexical plugins */
|
|
@@ -23289,6 +23297,11 @@ type RichTextProps = {
|
|
|
23289
23297
|
};
|
|
23290
23298
|
/** Rich Text Toolbar custom controls */
|
|
23291
23299
|
customControls?: RichTextToolbarProps['customControls'];
|
|
23300
|
+
/** Tables */
|
|
23301
|
+
onInsertTable?: () => Promise<{
|
|
23302
|
+
rows: number;
|
|
23303
|
+
columns: number;
|
|
23304
|
+
} | null>;
|
|
23292
23305
|
};
|
|
23293
23306
|
type RichTextParamValue = SerializedEditorState | undefined | null;
|
|
23294
23307
|
type ParameterRichTextInnerProps = RichTextProps & {
|
|
@@ -23297,8 +23310,8 @@ type ParameterRichTextInnerProps = RichTextProps & {
|
|
|
23297
23310
|
editorFooter?: React.ReactNode;
|
|
23298
23311
|
};
|
|
23299
23312
|
type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
|
|
23300
|
-
declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorFooter, customNodes, children, variables, customControls, }: ParameterRichTextProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23301
|
-
declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorFooter, children, customNodes, variables, customControls, }: ParameterRichTextInnerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23313
|
+
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_types_jsx_namespace.EmotionJSX.Element;
|
|
23314
|
+
declare const ParameterRichTextInner: ({ value, onChange, onConnectLink, config, onRichTextInit, readOnly, editorWrapperClassName, editorInputClassName, editorInputWrapperClassName, editorFooter, children, customNodes, variables, customControls, onInsertTable, minimalInteractivity, }: ParameterRichTextInnerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23302
23315
|
|
|
23303
23316
|
type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
|
|
23304
23317
|
/** @example <ParameterSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
|