@uniformdev/design-system 19.23.1-alpha.13 → 19.25.0
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 +5 -22
- package/dist/index.d.ts +3 -5
- package/dist/index.js +4 -20
- package/package.json +5 -5
package/dist/esm/index.js
CHANGED
|
@@ -12856,8 +12856,10 @@ var DrawerInner = ({
|
|
|
12856
12856
|
},
|
|
12857
12857
|
onFirstRender: () => {
|
|
12858
12858
|
setTimeout(() => {
|
|
12859
|
-
var _a;
|
|
12860
|
-
(_a =
|
|
12859
|
+
var _a, _b;
|
|
12860
|
+
if (ref && "current" in ref && !((_a = ref.current) == null ? void 0 : _a.contains(document.activeElement))) {
|
|
12861
|
+
(_b = closeButtonRef.current) == null ? void 0 : _b.focus({ preventScroll: true });
|
|
12862
|
+
}
|
|
12861
12863
|
}, 0);
|
|
12862
12864
|
}
|
|
12863
12865
|
});
|
|
@@ -16093,9 +16095,7 @@ var Popover = css72`
|
|
|
16093
16095
|
|
|
16094
16096
|
// src/components/ParameterInputs/rich-text/utils.ts
|
|
16095
16097
|
import { $isAtNodeEnd } from "@lexical/selection";
|
|
16096
|
-
import {
|
|
16097
|
-
$isElementNode
|
|
16098
|
-
} from "lexical";
|
|
16098
|
+
import { $isElementNode } from "lexical";
|
|
16099
16099
|
var getElementNodesInSelection = (selection) => {
|
|
16100
16100
|
const nodesInSelection = selection.getNodes();
|
|
16101
16101
|
if (nodesInSelection.length === 0) {
|
|
@@ -16127,22 +16127,6 @@ var getSelectedNode = (selection) => {
|
|
|
16127
16127
|
return $isAtNodeEnd(anchor) ? anchorNode : focusNode;
|
|
16128
16128
|
}
|
|
16129
16129
|
};
|
|
16130
|
-
var richTextIsValueConsideredEmpty = (value) => {
|
|
16131
|
-
if (!value) {
|
|
16132
|
-
return true;
|
|
16133
|
-
}
|
|
16134
|
-
if (value.root.children.length === 0) {
|
|
16135
|
-
return true;
|
|
16136
|
-
}
|
|
16137
|
-
if (value.root.children.length > 1) {
|
|
16138
|
-
return false;
|
|
16139
|
-
}
|
|
16140
|
-
const child = value.root.children[0];
|
|
16141
|
-
if (child.type !== "paragraph") {
|
|
16142
|
-
return false;
|
|
16143
|
-
}
|
|
16144
|
-
return child.children.length === 0;
|
|
16145
|
-
};
|
|
16146
16130
|
|
|
16147
16131
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16148
16132
|
import { Fragment as Fragment13, jsx as jsx90, jsxs as jsxs59 } from "@emotion/react/jsx-runtime";
|
|
@@ -18218,7 +18202,6 @@ export {
|
|
|
18218
18202
|
replaceUnderscoreInString,
|
|
18219
18203
|
richTextBuiltInElements,
|
|
18220
18204
|
richTextBuiltInFormats,
|
|
18221
|
-
richTextIsValueConsideredEmpty,
|
|
18222
18205
|
ripple,
|
|
18223
18206
|
scrollbarStyles,
|
|
18224
18207
|
settings,
|
package/dist/index.d.ts
CHANGED
|
@@ -21558,8 +21558,6 @@ type LinkNodePluginProps = {
|
|
|
21558
21558
|
}) => Promise<void>;
|
|
21559
21559
|
};
|
|
21560
21560
|
|
|
21561
|
-
declare const richTextIsValueConsideredEmpty: (value: RichTextParamValue) => boolean;
|
|
21562
|
-
|
|
21563
21561
|
type RichTextProps = {
|
|
21564
21562
|
config?: RichTextParamConfiguration;
|
|
21565
21563
|
onChange?: (value: SerializedEditorState) => void;
|
|
@@ -22144,8 +22142,8 @@ interface RouteProps {
|
|
|
22144
22142
|
as?: string;
|
|
22145
22143
|
href: string;
|
|
22146
22144
|
}
|
|
22147
|
-
type PageHeaderSectionProps = React$1.HTMLAttributes<
|
|
22148
|
-
title:
|
|
22145
|
+
type PageHeaderSectionProps = Omit<React$1.HTMLAttributes<HTMLHeadingElement>, 'title'> & {
|
|
22146
|
+
title: React$1.ReactNode;
|
|
22149
22147
|
desc?: React$1.ReactNode;
|
|
22150
22148
|
children?: React$1.ReactNode;
|
|
22151
22149
|
linkProps?: RouteProps;
|
|
@@ -22186,4 +22184,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
22186
22184
|
};
|
|
22187
22185
|
declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22188
22186
|
|
|
22189
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BadgeSizeProps, BadgeThemeProps, BadgeThemeStyleProps, Banner, BannerProps, BannerType, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CardTitle, CardTitleProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, Chip, ChipProps, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Container, ContainerProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, DismissibleChipAction, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InfoMessage, InfoMessageProps, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, JsonEditor, JsonEditorProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkNode, LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuGroup, MenuGroupProps, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextInnerProps, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, Popover, PopoverProps, ProgressList, ProgressListItem, ProgressListItemProps, ProgressListProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, RichTextParamValue, ScrollableItemProps, ScrollableList, ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, SegmentedControl, SegmentedControlOption, SegmentedControlProps, SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, SuccessMessage, SuccessMessageProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, Tile, TileContainer, TileContainerProps, TileProps, TileText, TileTitleProps, Tooltip, TooltipProps, TwoColumnLayout, TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, UniformLogoProps, UseShortcutOptions, VerticalRhythm, WarningMessage, WarningMessageProps, accessibleHidden, borderTopIcon, breakpoints, button, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString,
|
|
22187
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Badge, BadgeProps, BadgeSizeProps, BadgeThemeProps, BadgeThemeStyleProps, Banner, BannerProps, BannerType, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CardTitle, CardTitleProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, Chip, ChipProps, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Container, ContainerProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, DismissibleChipAction, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InfoMessage, InfoMessageProps, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, JsonEditor, JsonEditorProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkNode, LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuGroup, MenuGroupProps, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, ParameterDataConnectButtonProps, ParameterDataResource, ParameterDrawerHeader, ParameterDrawerHeaderProps, ParameterGroup, ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImageProps, ParameterInput, ParameterInputInner, ParameterInputProps, ParameterLabel, ParameterLabelProps, ParameterLink, ParameterLinkInner, ParameterLinkProps, ParameterMenuButton, ParameterMenuButtonProps, ParameterNameAndPublicIdInput, ParameterNameAndPublicIdInputProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, ParameterRichTextInnerProps, ParameterRichTextProps, ParameterSelect, ParameterSelectInner, ParameterSelectProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, ParameterShellProps, ParameterTextarea, ParameterTextareaInner, ParameterTextareaProps, ParameterToggle, ParameterToggleInner, ParameterToggleProps, Popover, PopoverProps, ProgressList, ProgressListItem, ProgressListItemProps, ProgressListProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, RichTextParamValue, ScrollableItemProps, ScrollableList, ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, SegmentedControl, SegmentedControlOption, SegmentedControlProps, SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, SuccessMessage, SuccessMessageProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, Tile, TileContainer, TileContainerProps, TileProps, TileText, TileTitleProps, Tooltip, TooltipProps, TwoColumnLayout, TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, UniformLogoProps, UseShortcutOptions, VerticalRhythm, WarningMessage, WarningMessageProps, accessibleHidden, borderTopIcon, breakpoints, button, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawerRenderer, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
|
package/dist/index.js
CHANGED
|
@@ -202,7 +202,6 @@ __export(src_exports, {
|
|
|
202
202
|
replaceUnderscoreInString: () => replaceUnderscoreInString,
|
|
203
203
|
richTextBuiltInElements: () => richTextBuiltInElements,
|
|
204
204
|
richTextBuiltInFormats: () => richTextBuiltInFormats,
|
|
205
|
-
richTextIsValueConsideredEmpty: () => richTextIsValueConsideredEmpty,
|
|
206
205
|
ripple: () => ripple,
|
|
207
206
|
scrollbarStyles: () => scrollbarStyles,
|
|
208
207
|
settings: () => settings,
|
|
@@ -13082,8 +13081,10 @@ var DrawerInner = ({
|
|
|
13082
13081
|
},
|
|
13083
13082
|
onFirstRender: () => {
|
|
13084
13083
|
setTimeout(() => {
|
|
13085
|
-
var _a;
|
|
13086
|
-
(_a =
|
|
13084
|
+
var _a, _b;
|
|
13085
|
+
if (ref && "current" in ref && !((_a = ref.current) == null ? void 0 : _a.contains(document.activeElement))) {
|
|
13086
|
+
(_b = closeButtonRef.current) == null ? void 0 : _b.focus({ preventScroll: true });
|
|
13087
|
+
}
|
|
13087
13088
|
}, 0);
|
|
13088
13089
|
}
|
|
13089
13090
|
});
|
|
@@ -16328,22 +16329,6 @@ var getSelectedNode = (selection) => {
|
|
|
16328
16329
|
return (0, import_selection.$isAtNodeEnd)(anchor) ? anchorNode : focusNode;
|
|
16329
16330
|
}
|
|
16330
16331
|
};
|
|
16331
|
-
var richTextIsValueConsideredEmpty = (value) => {
|
|
16332
|
-
if (!value) {
|
|
16333
|
-
return true;
|
|
16334
|
-
}
|
|
16335
|
-
if (value.root.children.length === 0) {
|
|
16336
|
-
return true;
|
|
16337
|
-
}
|
|
16338
|
-
if (value.root.children.length > 1) {
|
|
16339
|
-
return false;
|
|
16340
|
-
}
|
|
16341
|
-
const child = value.root.children[0];
|
|
16342
|
-
if (child.type !== "paragraph") {
|
|
16343
|
-
return false;
|
|
16344
|
-
}
|
|
16345
|
-
return child.children.length === 0;
|
|
16346
|
-
};
|
|
16347
16332
|
|
|
16348
16333
|
// src/components/ParameterInputs/rich-text/LinkNodePlugin.tsx
|
|
16349
16334
|
var import_jsx_runtime89 = require("@emotion/react/jsx-runtime");
|
|
@@ -18382,7 +18367,6 @@ var StatusBullet = ({
|
|
|
18382
18367
|
replaceUnderscoreInString,
|
|
18383
18368
|
richTextBuiltInElements,
|
|
18384
18369
|
richTextBuiltInFormats,
|
|
18385
|
-
richTextIsValueConsideredEmpty,
|
|
18386
18370
|
ripple,
|
|
18387
18371
|
scrollbarStyles,
|
|
18388
18372
|
settings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.25.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@storybook/client-api": "6.5.16",
|
|
24
24
|
"@storybook/react": "6.5.16",
|
|
25
25
|
"@types/react": "18.2.7",
|
|
26
|
-
"@uniformdev/canvas": "^19.
|
|
27
|
-
"@uniformdev/richtext": "^19.
|
|
26
|
+
"@uniformdev/canvas": "^19.25.0",
|
|
27
|
+
"@uniformdev/richtext": "^19.25.0",
|
|
28
28
|
"autoprefixer": "10.4.14",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
30
|
"postcss": "8.4.24",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@emotion/css": "^11.11.0",
|
|
37
|
-
"@emotion/react": "11.11.
|
|
37
|
+
"@emotion/react": "11.11.1",
|
|
38
38
|
"@lexical/code": "^0.11.1",
|
|
39
39
|
"@lexical/link": "^0.11.0",
|
|
40
40
|
"@lexical/list": "^0.11.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "cb76e00b562db60df1804aa968906f2297079ed2"
|
|
71
71
|
}
|