@frontify/fondue 12.0.0-beta.311 → 12.0.0-beta.313

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.
@@ -41,6 +41,7 @@ export declare enum ComponentEnum {
41
41
  'Fondue - Flyout' = "Flyout",
42
42
  'Fondue - FlyoutFooter' = "FlyoutFooter",
43
43
  'Fondue - Overlay' = "Overlay",
44
+ 'Fondue - Form' = "Form",
44
45
  'Fondue - FormControl' = "FormControl",
45
46
  'Fondue - FrontifyPattern' = "FrontifyPattern",
46
47
  'Fondue - Grid' = "Grid",
@@ -1,4 +1,4 @@
1
- var d = /* @__PURE__ */ ((e) => (e["Fondue - Accordion"] = "Accordion", e["Fondue - AccordionHeader"] = "AccordionHeader", e["Fondue - AccordionHeaderIcon"] = "AccordionHeaderIcon", e["Fondue - AddBlockButton"] = "AddBlockButton", e["Fondue - AssetInput"] = "AssetInput", e["Fondue - AssetThumbnail"] = "AssetThumbnail", e["Fondue - Badge"] = "Badge", e["Fondue - BadgeStatusIcon"] = "BadgeStatusIcon", e["Fondue - Box"] = "Box", e["Fondue - BreadcrumbItem"] = "BreadcrumbItem", e["Fondue - Breadcrumbs"] = "Breadcrumbs", e["Fondue - CurrentBreadcrumbItem"] = "CurrentBreadcrumbItem", e["Fondue - Button"] = "Button", e["Fondue - ButtonGroup"] = "ButtonGroup", e["Fondue - Card"] = "Card", e["Fondue - Checkbox"] = "Checkbox", e["Fondue - Checklist"] = "Checklist", e["Fondue - CollapsibleWrap"] = "CollapsibleWrap", e["Fondue - ColorInputTitle"] = "ColorInputTitle", e["Fondue - ColorPickerFlyout"] = "ColorPickerFlyout", e["Fondue - ColorPickerTrigger"] = "ColorPickerTrigger", e["Fondue - BrandColorPicker"] = "BrandColorPicker", e["Fondue - ColorInput"] = "ColorInput", e["Fondue - ColorPicker"] = "ColorPicker", e["Fondue - ColorPreview"] = "ColorPreview", e["Fondue - CustomColorPicker"] = "CustomColorPicker", e["Fondue - Container"] = "Container", e["Fondue - DatePicker"] = "DatePicker", e["Fondue - DatePickerTrigger"] = "DatePickerTrigger", e["Fondue - Dialog"] = "Dialog", e["Fondue - DialogBody"] = "DialogBody", e["Fondue - DialogFooter"] = "DialogFooter", e["Fondue - DialogHeader"] = "DialogHeader", e["Fondue - Divider"] = "Divider", e["Fondue - DropZone"] = "DropZone", e["Fondue - Dropdown"] = "Dropdown", e["Fondue - EditableText"] = "EditableText", e["Fondue - FieldsetHeader"] = "FieldsetHeader", e["Fondue - Flex"] = "Flex", e["Fondue - Flyout"] = "Flyout", e["Fondue - FlyoutFooter"] = "FlyoutFooter", e["Fondue - Overlay"] = "Overlay", e["Fondue - FormControl"] = "FormControl", e["Fondue - FrontifyPattern"] = "FrontifyPattern", e["Fondue - Grid"] = "Grid", e["Fondue - InlineDialog"] = "InlineDialog", e["Fondue - InputLabel"] = "InputLabel", e["Fondue - BrightHeader"] = "BrightHeader", e["Fondue - LegacyTooltip"] = "LegacyTooltip", e["Fondue - LinkChooser"] = "LinkChooser", e["Fondue - NavigationMenu"] = "NavigationMenu", e["Fondue - Popover"] = "Popover", e["Fondue - SearchInput"] = "SearchInput", e["Fondue - SearchResultOption"] = "SearchResultOption", e["Fondue - SearchResultSection"] = "SearchResultSection", e["Fondue - SearchResultsList"] = "SearchResultsList", e["Fondue - LoadingBar"] = "LoadingBar", e["Fondue - LoadingCircle"] = "LoadingCircle", e["Fondue - Menu"] = "Menu", e["Fondue - MenuItem"] = "MenuItem", e["Fondue - MenuItemContent"] = "MenuItemContent", e["Fondue - Modal"] = "Modal", e["Fondue - ModalBody"] = "ModalBody", e["Fondue - ModalFooter"] = "ModalFooter", e["Fondue - ModalHeader"] = "ModalHeader", e["Fondue - ModalVisual"] = "ModalVisual", e["Fondue - MultiInput"] = "MultiInput", e["Fondue - MultiSelect"] = "MultiSelect", e["Fondue - CollectionItem"] = "CollectionItem", e["Fondue - OrderableList"] = "OrderableList", e["Fondue - OverflowMenu"] = "OverflowMenu", e["Fondue - Popper"] = "Popper", e["Fondue - Portal"] = "Portal", e["Fondue - RadioButton"] = "RadioButton", e["Fondue - RadioList"] = "RadioList", e["Fondue - RadioPill"] = "RadioPill", e["Fondue - RichTextEditor"] = "RichTextEditor", e["Fondue - ScrollWrapper"] = "ScrollWrapper", e["Fondue - SegmentedControls"] = "SegmentedControls", e["Fondue - Slider"] = "Slider", e["Fondue - Stack"] = "Stack", e["Fondue - Switch"] = "Switch", e["Fondue - Table"] = "Table", e["Fondue - TableCell"] = "TableCell", e["Fondue - TableColumnHeader"] = "TableColumnHeader", e["Fondue - TableHeaderRow"] = "TableHeaderRow", e["Fondue - TableRow"] = "TableRow", e["Fondue - TabItem"] = "TabItem", e["Fondue - Tabs"] = "Tabs", e["Fondue - Tag"] = "Tag", e["Fondue - TextInput"] = "TextInput", e["Fondue - Textarea"] = "Textarea", e["Fondue - Toast"] = "Toast", e["Fondue - types"] = "types", e["Fondue - TooltipIcon"] = "TooltipIcon", e["Fondue - Tree"] = "Tree", e["Fondue - Trigger"] = "Trigger", e))(d || {});
1
+ var d = /* @__PURE__ */ ((e) => (e["Fondue - Accordion"] = "Accordion", e["Fondue - AccordionHeader"] = "AccordionHeader", e["Fondue - AccordionHeaderIcon"] = "AccordionHeaderIcon", e["Fondue - AddBlockButton"] = "AddBlockButton", e["Fondue - AssetInput"] = "AssetInput", e["Fondue - AssetThumbnail"] = "AssetThumbnail", e["Fondue - Badge"] = "Badge", e["Fondue - BadgeStatusIcon"] = "BadgeStatusIcon", e["Fondue - Box"] = "Box", e["Fondue - BreadcrumbItem"] = "BreadcrumbItem", e["Fondue - Breadcrumbs"] = "Breadcrumbs", e["Fondue - CurrentBreadcrumbItem"] = "CurrentBreadcrumbItem", e["Fondue - Button"] = "Button", e["Fondue - ButtonGroup"] = "ButtonGroup", e["Fondue - Card"] = "Card", e["Fondue - Checkbox"] = "Checkbox", e["Fondue - Checklist"] = "Checklist", e["Fondue - CollapsibleWrap"] = "CollapsibleWrap", e["Fondue - ColorInputTitle"] = "ColorInputTitle", e["Fondue - ColorPickerFlyout"] = "ColorPickerFlyout", e["Fondue - ColorPickerTrigger"] = "ColorPickerTrigger", e["Fondue - BrandColorPicker"] = "BrandColorPicker", e["Fondue - ColorInput"] = "ColorInput", e["Fondue - ColorPicker"] = "ColorPicker", e["Fondue - ColorPreview"] = "ColorPreview", e["Fondue - CustomColorPicker"] = "CustomColorPicker", e["Fondue - Container"] = "Container", e["Fondue - DatePicker"] = "DatePicker", e["Fondue - DatePickerTrigger"] = "DatePickerTrigger", e["Fondue - Dialog"] = "Dialog", e["Fondue - DialogBody"] = "DialogBody", e["Fondue - DialogFooter"] = "DialogFooter", e["Fondue - DialogHeader"] = "DialogHeader", e["Fondue - Divider"] = "Divider", e["Fondue - DropZone"] = "DropZone", e["Fondue - Dropdown"] = "Dropdown", e["Fondue - EditableText"] = "EditableText", e["Fondue - FieldsetHeader"] = "FieldsetHeader", e["Fondue - Flex"] = "Flex", e["Fondue - Flyout"] = "Flyout", e["Fondue - FlyoutFooter"] = "FlyoutFooter", e["Fondue - Overlay"] = "Overlay", e["Fondue - Form"] = "Form", e["Fondue - FormControl"] = "FormControl", e["Fondue - FrontifyPattern"] = "FrontifyPattern", e["Fondue - Grid"] = "Grid", e["Fondue - InlineDialog"] = "InlineDialog", e["Fondue - InputLabel"] = "InputLabel", e["Fondue - BrightHeader"] = "BrightHeader", e["Fondue - LegacyTooltip"] = "LegacyTooltip", e["Fondue - LinkChooser"] = "LinkChooser", e["Fondue - NavigationMenu"] = "NavigationMenu", e["Fondue - Popover"] = "Popover", e["Fondue - SearchInput"] = "SearchInput", e["Fondue - SearchResultOption"] = "SearchResultOption", e["Fondue - SearchResultSection"] = "SearchResultSection", e["Fondue - SearchResultsList"] = "SearchResultsList", e["Fondue - LoadingBar"] = "LoadingBar", e["Fondue - LoadingCircle"] = "LoadingCircle", e["Fondue - Menu"] = "Menu", e["Fondue - MenuItem"] = "MenuItem", e["Fondue - MenuItemContent"] = "MenuItemContent", e["Fondue - Modal"] = "Modal", e["Fondue - ModalBody"] = "ModalBody", e["Fondue - ModalFooter"] = "ModalFooter", e["Fondue - ModalHeader"] = "ModalHeader", e["Fondue - ModalVisual"] = "ModalVisual", e["Fondue - MultiInput"] = "MultiInput", e["Fondue - MultiSelect"] = "MultiSelect", e["Fondue - CollectionItem"] = "CollectionItem", e["Fondue - OrderableList"] = "OrderableList", e["Fondue - OverflowMenu"] = "OverflowMenu", e["Fondue - Popper"] = "Popper", e["Fondue - Portal"] = "Portal", e["Fondue - RadioButton"] = "RadioButton", e["Fondue - RadioList"] = "RadioList", e["Fondue - RadioPill"] = "RadioPill", e["Fondue - RichTextEditor"] = "RichTextEditor", e["Fondue - ScrollWrapper"] = "ScrollWrapper", e["Fondue - SegmentedControls"] = "SegmentedControls", e["Fondue - Slider"] = "Slider", e["Fondue - Stack"] = "Stack", e["Fondue - Switch"] = "Switch", e["Fondue - Table"] = "Table", e["Fondue - TableCell"] = "TableCell", e["Fondue - TableColumnHeader"] = "TableColumnHeader", e["Fondue - TableHeaderRow"] = "TableHeaderRow", e["Fondue - TableRow"] = "TableRow", e["Fondue - TabItem"] = "TabItem", e["Fondue - Tabs"] = "Tabs", e["Fondue - Tag"] = "Tag", e["Fondue - TextInput"] = "TextInput", e["Fondue - Textarea"] = "Textarea", e["Fondue - Toast"] = "Toast", e["Fondue - types"] = "types", e["Fondue - TooltipIcon"] = "TooltipIcon", e["Fondue - Tree"] = "Tree", e["Fondue - Trigger"] = "Trigger", e))(d || {});
2
2
  export {
3
3
  d as ComponentEnum
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentEnum.es.js","sources":["../../src/components/ComponentEnum.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nexport enum ComponentEnum {\n 'Fondue - Accordion' = 'Accordion',\n 'Fondue - AccordionHeader' = 'AccordionHeader',\n 'Fondue - AccordionHeaderIcon' = 'AccordionHeaderIcon',\n 'Fondue - AddBlockButton' = 'AddBlockButton',\n 'Fondue - AssetInput' = 'AssetInput',\n 'Fondue - AssetThumbnail' = 'AssetThumbnail',\n 'Fondue - Badge' = 'Badge',\n 'Fondue - BadgeStatusIcon' = 'BadgeStatusIcon',\n 'Fondue - Box' = 'Box',\n 'Fondue - BreadcrumbItem' = 'BreadcrumbItem',\n 'Fondue - Breadcrumbs' = 'Breadcrumbs',\n 'Fondue - CurrentBreadcrumbItem' = 'CurrentBreadcrumbItem',\n 'Fondue - Button' = 'Button',\n 'Fondue - ButtonGroup' = 'ButtonGroup',\n 'Fondue - Card' = 'Card',\n 'Fondue - Checkbox' = 'Checkbox',\n 'Fondue - Checklist' = 'Checklist',\n 'Fondue - CollapsibleWrap' = 'CollapsibleWrap',\n 'Fondue - ColorInputTitle' = 'ColorInputTitle',\n 'Fondue - ColorPickerFlyout' = 'ColorPickerFlyout',\n 'Fondue - ColorPickerTrigger' = 'ColorPickerTrigger',\n 'Fondue - BrandColorPicker' = 'BrandColorPicker',\n 'Fondue - ColorInput' = 'ColorInput',\n 'Fondue - ColorPicker' = 'ColorPicker',\n 'Fondue - ColorPreview' = 'ColorPreview',\n 'Fondue - CustomColorPicker' = 'CustomColorPicker',\n 'Fondue - Container' = 'Container',\n 'Fondue - DatePicker' = 'DatePicker',\n 'Fondue - DatePickerTrigger' = 'DatePickerTrigger',\n 'Fondue - Dialog' = 'Dialog',\n 'Fondue - DialogBody' = 'DialogBody',\n 'Fondue - DialogFooter' = 'DialogFooter',\n 'Fondue - DialogHeader' = 'DialogHeader',\n 'Fondue - Divider' = 'Divider',\n 'Fondue - DropZone' = 'DropZone',\n 'Fondue - Dropdown' = 'Dropdown',\n 'Fondue - EditableText' = 'EditableText',\n 'Fondue - FieldsetHeader' = 'FieldsetHeader',\n 'Fondue - Flex' = 'Flex',\n 'Fondue - Flyout' = 'Flyout',\n 'Fondue - FlyoutFooter' = 'FlyoutFooter',\n 'Fondue - Overlay' = 'Overlay',\n 'Fondue - FormControl' = 'FormControl',\n 'Fondue - FrontifyPattern' = 'FrontifyPattern',\n 'Fondue - Grid' = 'Grid',\n 'Fondue - InlineDialog' = 'InlineDialog',\n 'Fondue - InputLabel' = 'InputLabel',\n 'Fondue - BrightHeader' = 'BrightHeader',\n 'Fondue - LegacyTooltip' = 'LegacyTooltip',\n 'Fondue - LinkChooser' = 'LinkChooser',\n 'Fondue - NavigationMenu' = 'NavigationMenu',\n 'Fondue - Popover' = 'Popover',\n 'Fondue - SearchInput' = 'SearchInput',\n 'Fondue - SearchResultOption' = 'SearchResultOption',\n 'Fondue - SearchResultSection' = 'SearchResultSection',\n 'Fondue - SearchResultsList' = 'SearchResultsList',\n 'Fondue - LoadingBar' = 'LoadingBar',\n 'Fondue - LoadingCircle' = 'LoadingCircle',\n 'Fondue - Menu' = 'Menu',\n 'Fondue - MenuItem' = 'MenuItem',\n 'Fondue - MenuItemContent' = 'MenuItemContent',\n 'Fondue - Modal' = 'Modal',\n 'Fondue - ModalBody' = 'ModalBody',\n 'Fondue - ModalFooter' = 'ModalFooter',\n 'Fondue - ModalHeader' = 'ModalHeader',\n 'Fondue - ModalVisual' = 'ModalVisual',\n 'Fondue - MultiInput' = 'MultiInput',\n 'Fondue - MultiSelect' = 'MultiSelect',\n 'Fondue - CollectionItem' = 'CollectionItem',\n 'Fondue - OrderableList' = 'OrderableList',\n 'Fondue - OverflowMenu' = 'OverflowMenu',\n 'Fondue - Popper' = 'Popper',\n 'Fondue - Portal' = 'Portal',\n 'Fondue - RadioButton' = 'RadioButton',\n 'Fondue - RadioList' = 'RadioList',\n 'Fondue - RadioPill' = 'RadioPill',\n 'Fondue - RichTextEditor' = 'RichTextEditor',\n 'Fondue - ScrollWrapper' = 'ScrollWrapper',\n 'Fondue - SegmentedControls' = 'SegmentedControls',\n 'Fondue - Slider' = 'Slider',\n 'Fondue - Stack' = 'Stack',\n 'Fondue - Switch' = 'Switch',\n 'Fondue - Table' = 'Table',\n 'Fondue - TableCell' = 'TableCell',\n 'Fondue - TableColumnHeader' = 'TableColumnHeader',\n 'Fondue - TableHeaderRow' = 'TableHeaderRow',\n 'Fondue - TableRow' = 'TableRow',\n 'Fondue - TabItem' = 'TabItem',\n 'Fondue - Tabs' = 'Tabs',\n 'Fondue - Tag' = 'Tag',\n 'Fondue - TextInput' = 'TextInput',\n 'Fondue - Textarea' = 'Textarea',\n 'Fondue - Toast' = 'Toast',\n 'Fondue - types' = 'types',\n 'Fondue - TooltipIcon' = 'TooltipIcon',\n 'Fondue - Tree' = 'Tree',\n 'Fondue - Trigger' = 'Trigger',\n}\n"],"names":["ComponentEnum"],"mappings":"AAEY,IAAAA,sBAAAA,OACRA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,0BAA6B,IAAA,mBAC7BA,EAAA,8BAAiC,IAAA,uBACjCA,EAAA,yBAA4B,IAAA,kBAC5BA,EAAA,qBAAwB,IAAA,cACxBA,EAAA,yBAA4B,IAAA,kBAC5BA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,0BAA6B,IAAA,mBAC7BA,EAAA,cAAiB,IAAA,OACjBA,EAAA,yBAA4B,IAAA,kBAC5BA,EAAA,sBAAyB,IAAA,eACzBA,EAAA,gCAAmC,IAAA,yBACnCA,EAAA,iBAAoB,IAAA,UACpBA,EAAA,sBAAyB,IAAA,eACzBA,EAAA,eAAkB,IAAA,QAClBA,EAAA,mBAAsB,IAAA,YACtBA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,0BAA6B,IAAA,mBAC7BA,EAAA,0BAA6B,IAAA,mBAC7BA,EAAA,4BAA+B,IAAA,qBAC/BA,EAAA,6BAAgC,IAAA,sBAChCA,EAAA,2BAA8B,IAAA,oBAC9BA,EAAA,qBAAwB,IAAA,cACxBA,EAAA,sBAAyB,IAAA,eACzBA,EAAA,uBAA0B,IAAA,gBAC1BA,EAAA,4BAA+B,IAAA,qBAC/BA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,qBAAwB,IAAA,cACxBA,EAAA,4BAA+B,IAAA,qBAC/BA,EAAA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AoB,IAAA,UACpBA,EAAA,sBAAyB,IAAA,eACzBA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,yBAA4B,IAAA,kBAC5BA,EAAA,wBAA2B,IAAA,iBAC3BA,EAAA,4BAA+B,IAAA,qBAC/BA,EAAA,iBAAoB,IAAA,UACpBA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,iBAAoB,IAAA,UACpBA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,4BAA+B,IAAA,qBAC/BA,EAAA,yBAA4B,IAAA,kBAC5BA,EAAA,mBAAsB,IAAA,YACtBA,EAAA,kBAAqB,IAAA,WACrBA,EAAA,eAAkB,IAAA,QAClBA,EAAA,cAAiB,IAAA,OACjBA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,mBAAsB,IAAA,YACtBA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,sBAAyB,IAAA,eACzBA,EAAA,eAAkB,IAAA,QAClBA,EAAA,kBAAqB,IAAA,WAjGbA,IAAAA,KAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"ComponentEnum.es.js","sources":["../../src/components/ComponentEnum.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nexport enum ComponentEnum {\n 'Fondue - Accordion' = 'Accordion',\n 'Fondue - AccordionHeader' = 'AccordionHeader',\n 'Fondue - AccordionHeaderIcon' = 'AccordionHeaderIcon',\n 'Fondue - AddBlockButton' = 'AddBlockButton',\n 'Fondue - AssetInput' = 'AssetInput',\n 'Fondue - AssetThumbnail' = 'AssetThumbnail',\n 'Fondue - Badge' = 'Badge',\n 'Fondue - BadgeStatusIcon' = 'BadgeStatusIcon',\n 'Fondue - Box' = 'Box',\n 'Fondue - BreadcrumbItem' = 'BreadcrumbItem',\n 'Fondue - Breadcrumbs' = 'Breadcrumbs',\n 'Fondue - CurrentBreadcrumbItem' = 'CurrentBreadcrumbItem',\n 'Fondue - Button' = 'Button',\n 'Fondue - ButtonGroup' = 'ButtonGroup',\n 'Fondue - Card' = 'Card',\n 'Fondue - Checkbox' = 'Checkbox',\n 'Fondue - Checklist' = 'Checklist',\n 'Fondue - CollapsibleWrap' = 'CollapsibleWrap',\n 'Fondue - ColorInputTitle' = 'ColorInputTitle',\n 'Fondue - ColorPickerFlyout' = 'ColorPickerFlyout',\n 'Fondue - ColorPickerTrigger' = 'ColorPickerTrigger',\n 'Fondue - BrandColorPicker' = 'BrandColorPicker',\n 'Fondue - ColorInput' = 'ColorInput',\n 'Fondue - ColorPicker' = 'ColorPicker',\n 'Fondue - ColorPreview' = 'ColorPreview',\n 'Fondue - CustomColorPicker' = 'CustomColorPicker',\n 'Fondue - Container' = 'Container',\n 'Fondue - DatePicker' = 'DatePicker',\n 'Fondue - DatePickerTrigger' = 'DatePickerTrigger',\n 'Fondue - Dialog' = 'Dialog',\n 'Fondue - DialogBody' = 'DialogBody',\n 'Fondue - DialogFooter' = 'DialogFooter',\n 'Fondue - DialogHeader' = 'DialogHeader',\n 'Fondue - Divider' = 'Divider',\n 'Fondue - DropZone' = 'DropZone',\n 'Fondue - Dropdown' = 'Dropdown',\n 'Fondue - EditableText' = 'EditableText',\n 'Fondue - FieldsetHeader' = 'FieldsetHeader',\n 'Fondue - Flex' = 'Flex',\n 'Fondue - Flyout' = 'Flyout',\n 'Fondue - FlyoutFooter' = 'FlyoutFooter',\n 'Fondue - Overlay' = 'Overlay',\n 'Fondue - Form' = 'Form',\n 'Fondue - FormControl' = 'FormControl',\n 'Fondue - FrontifyPattern' = 'FrontifyPattern',\n 'Fondue - Grid' = 'Grid',\n 'Fondue - InlineDialog' = 'InlineDialog',\n 'Fondue - InputLabel' = 'InputLabel',\n 'Fondue - BrightHeader' = 'BrightHeader',\n 'Fondue - LegacyTooltip' = 'LegacyTooltip',\n 'Fondue - LinkChooser' = 'LinkChooser',\n 'Fondue - NavigationMenu' = 'NavigationMenu',\n 'Fondue - Popover' = 'Popover',\n 'Fondue - SearchInput' = 'SearchInput',\n 'Fondue - SearchResultOption' = 'SearchResultOption',\n 'Fondue - SearchResultSection' = 'SearchResultSection',\n 'Fondue - SearchResultsList' = 'SearchResultsList',\n 'Fondue - LoadingBar' = 'LoadingBar',\n 'Fondue - LoadingCircle' = 'LoadingCircle',\n 'Fondue - Menu' = 'Menu',\n 'Fondue - MenuItem' = 'MenuItem',\n 'Fondue - MenuItemContent' = 'MenuItemContent',\n 'Fondue - Modal' = 'Modal',\n 'Fondue - ModalBody' = 'ModalBody',\n 'Fondue - ModalFooter' = 'ModalFooter',\n 'Fondue - ModalHeader' = 'ModalHeader',\n 'Fondue - ModalVisual' = 'ModalVisual',\n 'Fondue - MultiInput' = 'MultiInput',\n 'Fondue - MultiSelect' = 'MultiSelect',\n 'Fondue - CollectionItem' = 'CollectionItem',\n 'Fondue - OrderableList' = 'OrderableList',\n 'Fondue - OverflowMenu' = 'OverflowMenu',\n 'Fondue - Popper' = 'Popper',\n 'Fondue - Portal' = 'Portal',\n 'Fondue - RadioButton' = 'RadioButton',\n 'Fondue - RadioList' = 'RadioList',\n 'Fondue - RadioPill' = 'RadioPill',\n 'Fondue - RichTextEditor' = 'RichTextEditor',\n 'Fondue - ScrollWrapper' = 'ScrollWrapper',\n 'Fondue - SegmentedControls' = 'SegmentedControls',\n 'Fondue - Slider' = 'Slider',\n 'Fondue - Stack' = 'Stack',\n 'Fondue - Switch' = 'Switch',\n 'Fondue - Table' = 'Table',\n 'Fondue - TableCell' = 'TableCell',\n 'Fondue - TableColumnHeader' = 'TableColumnHeader',\n 'Fondue - TableHeaderRow' = 'TableHeaderRow',\n 'Fondue - TableRow' = 'TableRow',\n 'Fondue - TabItem' = 'TabItem',\n 'Fondue - Tabs' = 'Tabs',\n 'Fondue - Tag' = 'Tag',\n 'Fondue - TextInput' = 'TextInput',\n 'Fondue - Textarea' = 'Textarea',\n 'Fondue - Toast' = 'Toast',\n 'Fondue - types' =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AAA,gBAAmB,IAAA,SACnBA,EAAA,iBAAoB,IAAA,UACpBA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,4BAA+B,IAAA,qBAC/BA,EAAA,yBAA4B,IAAA,kBAC5BA,EAAA,mBAAsB,IAAA,YACtBA,EAAA,kBAAqB,IAAA,WACrBA,EAAA,eAAkB,IAAA,QAClBA,EAAA,cAAiB,IAAA,OACjBA,EAAA,oBAAuB,IAAA,aACvBA,EAAA,mBAAsB,IAAA,YACtBA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,gBAAmB,IAAA,SACnBA,EAAA,sBAAyB,IAAA,eACzBA,EAAA,eAAkB,IAAA,QAClBA,EAAA,kBAAqB,IAAA,WAlGbA,IAAAA,KAAA,CAAA,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getMentionOnSelectItem.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/MentionPlugin/getMentionOnSelectItem.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport {\n ComboboxOnSelectItem,\n Data,\n ELEMENT_MENTION,\n MentionPlugin,\n NoData,\n PlateEditor,\n PlatePluginKey,\n TComboboxItem,\n TMentionElement,\n TNodeProps,\n Value,\n comboboxActions,\n comboboxSelectors,\n getPlugin,\n insertNodes,\n insertText,\n isNodeMentionInput,\n moveSelection,\n removeNodes,\n select,\n withoutMergingHistory,\n withoutNormalizing,\n} from '@udecode/plate';\n\nexport interface CreateMentionNode<TData extends Data> {\n (item: TComboboxItem<TData>, meta: CreateMentionNodeMeta): TNodeProps<TMentionElement>;\n}\n\nexport interface CreateMentionNodeMeta {\n search: string;\n}\n\nexport const getMentionOnSelectItem =\n <TData extends Data = NoData>({ key = ELEMENT_MENTION }: PlatePluginKey = {}): ComboboxOnSelectItem<TData> =>\n (editor, item) => {\n const targetRange = comboboxSelectors.targetRange();\n if (!targetRange) {\n return;\n }\n\n const {\n type,\n options: { insertSpaceAfterMention, createMentionNode },\n } = getPlugin<MentionPlugin>(editor as PlateEditor<Value>, key);\n\n withoutNormalizing(editor, () => {\n // Selectors are sensitive to operations, it's better to create everything\n // before the editor state is changed. For example, asking for text after\n // removeNodes below will return null.\n const props = createMentionNode?.(item, {\n search: comboboxSelectors.text() ?? '',\n });\n\n select(editor, targetRange);\n\n withoutMergingHistory(editor, () =>\n removeNodes(editor, {\n match: (node) => isNodeMentionInput(editor, node),\n }),\n );\n\n insertNodes<TMentionElement>(editor, {\n type,\n children: [{ text: '' }],\n ...props,\n } as TMentionElement);\n\n // move the selection after the element\n moveSelection(editor, { unit: 'offset' });\n\n if (insertSpaceAfterMention) {\n insertText(editor, ' ');\n }\n });\n\n return comboboxActions.reset();\n };\n"],"names":["getMentionOnSelectItem","key","ELEMENT_MENTION","editor","item","targetRange","comboboxSelectors","type","insertSpaceAfterMention","createMentionNode","getPlugin","withoutNormalizing","props","select","withoutMergingHistory","removeNodes","node","isNodeMentionInput","insertNodes","moveSelection","insertText","comboboxActions"],"mappings":";AAmCa,MAAAA,IACT,CAA8B,EAAE,KAAAC,IAAMC,MAAoC,OAC1E,CAACC,GAAQC,MAAS;AACR,QAAAC,IAAcC,EAAkB;AACtC,MAAI,CAACD;AACD;AAGE,QAAA;AAAA,IACF,MAAAE;AAAA,IACA,SAAS,EAAE,yBAAAC,GAAyB,mBAAAC,EAAkB;AAAA,EAAA,IACtDC,EAAyBP,GAA8BF,CAAG;AAE9D,SAAAU,EAAmBR,GAAQ,MAAM;AAIvB,UAAAS,IAAQH,KAAA,gBAAAA,EAAoBL,GAAM;AAAA,MACpC,QAAQE,EAAkB,KAAA,KAAU;AAAA,IAAA;AAGxC,IAAAO,EAAOV,GAAQE,CAAW,GAE1BS;AAAA,MAAsBX;AAAA,MAAQ,MAC1BY,EAAYZ,GAAQ;AAAA,QAChB,OAAO,CAACa,MAASC,EAAmBd,GAAQa,CAAI;AAAA,MAAA,CACnD;AAAA,IAAA,GAGLE,EAA6Bf,GAAQ;AAAA,MACjC,MAAAI;AAAA,MACA,UAAU,CAAC,EAAE,MAAM,IAAI;AAAA,MACvB,GAAGK;AAAA,IAAA,CACa,GAGpBO,EAAchB,GAAQ,EAAE,MAAM,SAAU,CAAA,GAEpCK,KACAY,EAAWjB,GAAQ,GAAG;AAAA,EAC1B,CACH,GAEMkB,EAAgB;AAC3B;"}
1
+ {"version":3,"file":"getMentionOnSelectItem.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/MentionPlugin/getMentionOnSelectItem.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport {\n ComboboxOnSelectItem,\n Data,\n ELEMENT_MENTION,\n MentionPlugin,\n NoData,\n PlateEditor,\n PlatePluginKey,\n TComboboxItem,\n TMentionElement,\n TNodeProps,\n Value,\n comboboxActions,\n comboboxSelectors,\n getPlugin,\n insertNodes,\n insertText,\n isNodeMentionInput,\n moveSelection,\n removeNodes,\n select,\n withoutMergingHistory,\n withoutNormalizing,\n} from '@udecode/plate';\n\nexport interface CreateMentionNode<TData extends Data> {\n (item: TComboboxItem<TData>, meta: CreateMentionNodeMeta): TNodeProps<TMentionElement>;\n}\n\nexport interface CreateMentionNodeMeta {\n search: string;\n}\n\nexport const getMentionOnSelectItem =\n <TData extends Data = NoData>({ key = ELEMENT_MENTION }: PlatePluginKey = {}): ComboboxOnSelectItem<TData> =>\n (editor, item) => {\n const targetRange = comboboxSelectors.targetRange();\n if (!targetRange) {\n return;\n }\n\n const {\n type,\n options: { insertSpaceAfterMention, createMentionNode },\n } = getPlugin<MentionPlugin>(editor as unknown as PlateEditor<Value>, key);\n\n withoutNormalizing(editor, () => {\n // Selectors are sensitive to operations, it's better to create everything\n // before the editor state is changed. For example, asking for text after\n // removeNodes below will return null.\n const props = createMentionNode?.(item, {\n search: comboboxSelectors.text() ?? '',\n });\n\n select(editor, targetRange);\n\n withoutMergingHistory(editor, () =>\n removeNodes(editor, {\n match: (node) => isNodeMentionInput(editor, node),\n }),\n );\n\n insertNodes<TMentionElement>(editor, {\n type,\n children: [{ text: '' }],\n ...props,\n } as TMentionElement);\n\n // move the selection after the element\n moveSelection(editor, { unit: 'offset' });\n\n if (insertSpaceAfterMention) {\n insertText(editor, ' ');\n }\n });\n\n return comboboxActions.reset();\n };\n"],"names":["getMentionOnSelectItem","key","ELEMENT_MENTION","editor","item","targetRange","comboboxSelectors","type","insertSpaceAfterMention","createMentionNode","getPlugin","withoutNormalizing","props","select","withoutMergingHistory","removeNodes","node","isNodeMentionInput","insertNodes","moveSelection","insertText","comboboxActions"],"mappings":";AAmCa,MAAAA,IACT,CAA8B,EAAE,KAAAC,IAAMC,MAAoC,OAC1E,CAACC,GAAQC,MAAS;AACR,QAAAC,IAAcC,EAAkB;AACtC,MAAI,CAACD;AACD;AAGE,QAAA;AAAA,IACF,MAAAE;AAAA,IACA,SAAS,EAAE,yBAAAC,GAAyB,mBAAAC,EAAkB;AAAA,EAAA,IACtDC,EAAyBP,GAAyCF,CAAG;AAEzE,SAAAU,EAAmBR,GAAQ,MAAM;AAIvB,UAAAS,IAAQH,KAAA,gBAAAA,EAAoBL,GAAM;AAAA,MACpC,QAAQE,EAAkB,KAAA,KAAU;AAAA,IAAA;AAGxC,IAAAO,EAAOV,GAAQE,CAAW,GAE1BS;AAAA,MAAsBX;AAAA,MAAQ,MAC1BY,EAAYZ,GAAQ;AAAA,QAChB,OAAO,CAACa,MAASC,EAAmBd,GAAQa,CAAI;AAAA,MAAA,CACnD;AAAA,IAAA,GAGLE,EAA6Bf,GAAQ;AAAA,MACjC,MAAAI;AAAA,MACA,UAAU,CAAC,EAAE,MAAM,IAAI;AAAA,MACvB,GAAGK;AAAA,IAAA,CACa,GAGpBO,EAAchB,GAAQ,EAAE,MAAM,SAAU,CAAA,GAEpCK,KACAY,EAAWjB,GAAQ,GAAG;AAAA,EAC1B,CACH,GAEMkB,EAAgB;AAC3B;"}