@frontify/fondue 12.0.0-beta.4 → 12.0.0-beta.6
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/components/AssetInput/AssetInput.es.js +9 -9
- package/dist/components/AssetInput/AssetInput.es.js.map +1 -1
- package/dist/components/AssetInput/SingleAsset/AssetSubline.es.js +8 -4
- package/dist/components/AssetInput/SingleAsset/AssetSubline.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignCenterPlugin/index.es.js +1 -2
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignCenterPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignJustifyPlugin/index.es.js +5 -6
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignJustifyPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignLeftPlugin/index.es.js +1 -2
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignLeftPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignPlugin.es.js +22 -5
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignPlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignRightPlugin/index.es.js +5 -6
- package/dist/components/RichTextEditor/EditorActions/Plugins/AlignPlugin/AlignRightPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/BoldPlugin/index.es.js +3 -4
- package/dist/components/RichTextEditor/EditorActions/Plugins/BoldPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/CheckboxListPlugin/index.es.js +1 -2
- package/dist/components/RichTextEditor/EditorActions/Plugins/CheckboxListPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/CodePlugin/index.es.js +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/CodePlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/GeneratePlugins.d.ts +10 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/GeneratePlugins.es.js +24 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/GeneratePlugins.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/ItalicPlugin/ItalicButton.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/ItalicPlugin/ItalicButton.es.js +1657 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/ItalicPlugin/ItalicButton.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/ItalicPlugin/index.es.js +12 -7
- package/dist/components/RichTextEditor/EditorActions/Plugins/ItalicPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/LinkPlugin/index.es.js +1 -2
- package/dist/components/RichTextEditor/EditorActions/Plugins/LinkPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/ListPlugin/ListPlugin.es.js +4 -5
- package/dist/components/RichTextEditor/EditorActions/Plugins/ListPlugin/ListPlugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/MentionInline.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/MentionMarkupElement/MentionMarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/MentionMarkupElement/index.d.ts +5 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/createMentionPlugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/createMentionPlugin.es.js +32 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/createMentionPlugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/id.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/index.d.ts +8 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/MentionPlugin/types.d.ts +19 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/Plugin.d.ts +5 -4
- package/dist/components/RichTextEditor/EditorActions/Plugins/Plugin.es.js +7 -5
- package/dist/components/RichTextEditor/EditorActions/Plugins/Plugin.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/PluginComposer.d.ts +5 -3
- package/dist/components/RichTextEditor/EditorActions/Plugins/PluginComposer.es.js +40 -23
- package/dist/components/RichTextEditor/EditorActions/Plugins/PluginComposer.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/StrikethroughPlugin/index.es.js +1 -2
- package/dist/components/RichTextEditor/EditorActions/Plugins/StrikethroughPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/DropdownItem.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/DropdownItem.es.js +24 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/DropdownItem.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/DropdownTrigger.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/DropdownTrigger.es.js +1675 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/DropdownTrigger.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/TextStyleButton.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/TextStyleButton.es.js +12 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/TextStyleButton.es.js.map +1 -0
- package/dist/components/RichTextEditor/{TextStyleDropdown/TextStyleDropdown.d.ts → EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/index.d.ts} +1 -4
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/index.es.js +79 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/index.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/types.d.ts +15 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/useSelectedTextStyles.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/useSelectedTextStyles.es.js +22 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/useSelectedTextStyles.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/Custom1MarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/Custom1MarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/Custom1MarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/createCustom1Plugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/createCustom1Plugin.es.js +12 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/createCustom1Plugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/Custom2MarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/Custom2MarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/Custom2MarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/createCustom2Plugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/createCustom2Plugin.es.js +12 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/createCustom2Plugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/Custom3MarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/Custom3MarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/Custom3MarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/createCustom3Plugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/createCustom3Plugin.es.js +12 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/createCustom3Plugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/Heading1MarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/Heading1MarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/Heading1MarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/createHeading1Plugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/createHeading1Plugin.es.js +15 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/createHeading1Plugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/Heading2MarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/Heading2MarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/Heading2MarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/createHeading2Plugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/createHeading2Plugin.es.js +15 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/createHeading2Plugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/Heading3MarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/Heading3MarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/Heading3MarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/createHeading3Plugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/createHeading3Plugin.es.js +15 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/createHeading3Plugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/Heading4MarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/Heading4MarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/Heading4MarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/createHeading4Plugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/createHeading4Plugin.es.js +15 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/createHeading4Plugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Quote/QuoteMarkupElementNode.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Quote/QuoteMarkupElementNode.es.js +16 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Quote/QuoteMarkupElementNode.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Quote/createQuotePlugin.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Quote/createQuotePlugin.es.js +12 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Quote/createQuotePlugin.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Quote/index.d.ts +1 -0
- package/dist/components/RichTextEditor/{utils → EditorActions/Plugins/TextStylePlugin/TextStyles}/alignment.d.ts +0 -0
- package/dist/components/RichTextEditor/{utils → EditorActions/Plugins/TextStylePlugin/TextStyles}/alignment.es.js +0 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/alignment.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/index.d.ts +9 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/textStyles.d.ts +37 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/textStyles.es.js +30 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/textStyles.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/id.d.ts +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/id.es.js +5 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/id.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/index.d.ts +5 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/index.es.js +36 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/index.es.js.map +1 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/UnderlinePlugin/index.es.js +3 -4
- package/dist/components/RichTextEditor/EditorActions/Plugins/UnderlinePlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/index.d.ts +3 -0
- package/dist/components/RichTextEditor/EditorActions/Plugins/index.es.js +58 -44
- package/dist/components/RichTextEditor/EditorActions/Plugins/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Plugins/types.d.ts +6 -2
- package/dist/components/RichTextEditor/EditorActions/Toolbar/index.d.ts +2 -9
- package/dist/components/RichTextEditor/EditorActions/Toolbar/index.es.js +13 -12
- package/dist/components/RichTextEditor/EditorActions/Toolbar/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorActions/Toolbar/types.d.ts +14 -0
- package/dist/components/RichTextEditor/EditorActions/Toolbar/utils.d.ts +1 -6
- package/dist/components/RichTextEditor/EditorActions/Toolbar/utils.es.js +9 -9
- package/dist/components/RichTextEditor/EditorActions/Toolbar/utils.es.js.map +1 -1
- package/dist/components/RichTextEditor/EditorPositioningWrapper/ToolbarWrapper/types.d.ts +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/dist/components/RichTextEditor/RichTextEditor.es.js +31 -1660
- package/dist/components/RichTextEditor/RichTextEditor.es.js.map +1 -1
- package/dist/components/RichTextEditor/components/Toolbar/ButtonGroup.es.js +1 -1
- package/dist/components/RichTextEditor/components/Toolbar/ButtonGroup.es.js.map +1 -1
- package/dist/components/RichTextEditor/components/index.d.ts +0 -7
- package/dist/components/RichTextEditor/hooks/index.d.ts +0 -1
- package/dist/components/RichTextEditor/serializer/utils/serializeLeafToHtml.es.js +2 -2
- package/dist/components/RichTextEditor/serializer/utils/serializeNodeToHtmlRecursive.es.js +24 -16
- package/dist/components/RichTextEditor/serializer/utils/serializeNodeToHtmlRecursive.es.js.map +1 -1
- package/dist/components/RichTextEditor/serializer/utils/setDefaultDesignTokensIfNull.es.js +14 -6
- package/dist/components/RichTextEditor/serializer/utils/setDefaultDesignTokensIfNull.es.js.map +1 -1
- package/dist/components/RichTextEditor/types.d.ts +1 -3
- package/dist/components/RichTextEditor/types.es.js.map +1 -1
- package/dist/components/RichTextEditor/utils/editorConfig.es.js +64 -106
- package/dist/components/RichTextEditor/utils/editorConfig.es.js.map +1 -1
- package/dist/components/RichTextEditor/utils/toolbarCalc.d.ts +1 -1
- package/dist/components/RichTextEditor/utils/toolbarCalc.es.js.map +1 -1
- package/dist/components/ScrollWrapper/ScrollWrapper.es.js +11 -2
- package/dist/components/ScrollWrapper/ScrollWrapper.es.js.map +1 -1
- package/dist/components/Table/TableCell.es.js +11 -2
- package/dist/components/Table/TableCell.es.js.map +1 -1
- package/dist/components/Table/TableColumnHeader.es.js +11 -2
- package/dist/components/Table/TableColumnHeader.es.js.map +1 -1
- package/dist/components/Tree/Node.es.js +107 -96
- package/dist/components/Tree/Node.es.js.map +1 -1
- package/dist/components/Tree/utils/mocks.es.js +9 -0
- package/dist/components/Tree/utils/mocks.es.js.map +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/components/RichTextEditor/EditorActions/GeneratePlugins.d.ts +0 -3
- package/dist/components/RichTextEditor/EditorActions/GeneratePlugins.es.js +0 -20
- package/dist/components/RichTextEditor/EditorActions/GeneratePlugins.es.js.map +0 -1
- package/dist/components/RichTextEditor/EditorActions/index.d.ts +0 -2
- package/dist/components/RichTextEditor/EditorActions/types.d.ts +0 -8
- package/dist/components/RichTextEditor/TextStyleDropdown/DropdownItem.d.ts +0 -9
- package/dist/components/RichTextEditor/TextStyleDropdown/DropdownItem.es.js +0 -24
- package/dist/components/RichTextEditor/TextStyleDropdown/DropdownItem.es.js.map +0 -1
- package/dist/components/RichTextEditor/TextStyleDropdown/DropdownTrigger.d.ts +0 -12
- package/dist/components/RichTextEditor/TextStyleDropdown/DropdownTrigger.es.js +0 -1674
- package/dist/components/RichTextEditor/TextStyleDropdown/DropdownTrigger.es.js.map +0 -1
- package/dist/components/RichTextEditor/TextStyleDropdown/TextStyleDropdown.es.js +0 -71
- package/dist/components/RichTextEditor/TextStyleDropdown/TextStyleDropdown.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/custom1.d.ts +0 -3
- package/dist/components/RichTextEditor/components/custom1.es.js +0 -16
- package/dist/components/RichTextEditor/components/custom1.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/custom2.d.ts +0 -3
- package/dist/components/RichTextEditor/components/custom2.es.js +0 -16
- package/dist/components/RichTextEditor/components/custom2.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/custom3.d.ts +0 -3
- package/dist/components/RichTextEditor/components/custom3.es.js +0 -16
- package/dist/components/RichTextEditor/components/custom3.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/heading1.d.ts +0 -3
- package/dist/components/RichTextEditor/components/heading1.es.js +0 -16
- package/dist/components/RichTextEditor/components/heading1.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/heading2.d.ts +0 -3
- package/dist/components/RichTextEditor/components/heading2.es.js +0 -16
- package/dist/components/RichTextEditor/components/heading2.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/heading3.d.ts +0 -3
- package/dist/components/RichTextEditor/components/heading3.es.js +0 -16
- package/dist/components/RichTextEditor/components/heading3.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/heading4.d.ts +0 -3
- package/dist/components/RichTextEditor/components/heading4.es.js +0 -16
- package/dist/components/RichTextEditor/components/heading4.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/quote.d.ts +0 -3
- package/dist/components/RichTextEditor/components/quote.es.js +0 -16
- package/dist/components/RichTextEditor/components/quote.es.js.map +0 -1
- package/dist/components/RichTextEditor/hooks/useSelectedTextStyles.d.ts +0 -2
- package/dist/components/RichTextEditor/hooks/useSelectedTextStyles.es.js +0 -18
- package/dist/components/RichTextEditor/hooks/useSelectedTextStyles.es.js.map +0 -1
- package/dist/components/RichTextEditor/utils/alignment.es.js.map +0 -1
- package/dist/components/RichTextEditor/utils/textStyles.d.ts +0 -13
- package/dist/components/RichTextEditor/utils/textStyles.es.js +0 -18
- package/dist/components/RichTextEditor/utils/textStyles.es.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownTrigger.es.js","sources":["../../../../src/components/RichTextEditor/TextStyleDropdown/DropdownTrigger.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { IconCaretDown, IconSize } from '@foundation/Icon';\nimport { getPreventDefaultHandler, usePlateEditorState } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React from 'react';\nimport { useSelectedTextStyles } from '../hooks/useSelectedTextStyles';\nimport { AvailableTextStyles } from '../types';\nimport { textStyleTitles } from '../utils/textStyles';\n\ntype DropdownTriggerProps = {\n editorId?: string;\n open: boolean;\n};\nconst DEFAULT_TEXTSTYLE_VALUE = 'Mixed';\n\nexport enum ListStyles {\n UL = 'ul',\n OL = 'ol',\n CHECKLIST_ITEM = 'checkbox_item',\n}\n\nconst listTitle: Record<ListStyles, string> = {\n [ListStyles.UL]: 'Bullet List',\n [ListStyles.OL]: 'List',\n [ListStyles.CHECKLIST_ITEM]: 'Checklist',\n};\n\nconst TEXT_STYLE_TITLES: Record<AvailableTextStyles, string> = { ...listTitle, ...textStyleTitles };\n\nexport const DropdownTrigger = ({ editorId, open }: DropdownTriggerProps) => {\n const editor = usePlateEditorState(editorId);\n const selectedTextStyles = useSelectedTextStyles(editorId);\n\n const label = selectedTextStyles.length === 1 ? TEXT_STYLE_TITLES[selectedTextStyles[0]] : DEFAULT_TEXTSTYLE_VALUE;\n\n return (\n <button\n data-test-id=\"textstyle-dropdown-trigger\"\n type=\"button\"\n className=\"tw-cursor-pointer tw-h-8 tw-w-full\"\n onMouseDown={editor ? getPreventDefaultHandler() : undefined}\n >\n <div\n className={merge([\n 'tw-relative tw-inline-flex tw-flex-row tw-items-center tw-justify-between tw-overflow-hidden tw-text-text tw-rounded tw-gap-1 tw-px-2 hover:tw-text-box-selected-inverse hover:tw-bg-box-selected tw-h-6 tw-w-28',\n open && 'tw-text-box-selected-inverse tw-bg-box-selected',\n ])}\n >\n <span className=\"tw-text-xs tw-truncate\">{label}</span>\n <div className={merge(['tw-transition-transform', open && 'tw-rotate-180'])}>\n <IconCaretDown size={IconSize.Size12} />\n </div>\n </div>\n </button>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAM,IAA0B;AAEpB,IAAA,sBAAA,MACH,GAAA,KAAA,MACA,EAAA,KAAA,MACY,EAAA,iBAAA,iBAHT,IAAA,KAAA,CAAA,CAAA;AAMZ,MAAM,IAAwC;AAAA,EAC1C,AAAC,IAAgB;AAAA,EACjB,AAAC,IAAgB;AAAA,EACjB,AAAC,eAA4B;AACjC,GAEM,IAAyD,EAAE,GAAG,GAAW,GAAG,EAAgB,GAErF,KAAkB,CAAC,EAAE,aAAU,cAAiC;AACnE,QAAA,IAAS,EAAoB,CAAQ,GACrC,IAAqB,EAAsB,CAAQ,GAEnD,IAAQ,EAAmB,WAAW,IAAI,EAAkB,EAAmB,MAAM;AAE3F,SACK,kBAAA,cAAA,UAAA;AAAA,IACG,gBAAa;AAAA,IACb,MAAK;AAAA,IACL,WAAU;AAAA,IACV,aAAa,IAAS,EAA6B,IAAA;AAAA,EAAA,GAElD,kBAAA,cAAA,OAAA;AAAA,IACG,WAAW,EAAM;AAAA,MACb;AAAA,MACA,KAAQ;AAAA,IAAA,CACX;AAAA,EAAA,GAEA,kBAAA,cAAA,QAAA;AAAA,IAAK,WAAU;AAAA,EAA0B,GAAA,CAAM,GAC/C,kBAAA,cAAA,OAAA;AAAA,IAAI,WAAW,EAAM,CAAC,2BAA2B,KAAQ,eAAe,CAAC;AAAA,EAAA,GACrE,kBAAA,cAAA,GAAA;AAAA,IAAc,MAAM,EAAS;AAAA,EAAA,CAAQ,CAC1C,CACJ,CACJ;AAER;"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ToolbarDropdown as T } from "@udecode/plate";
|
|
2
|
-
import e, { useState as c, useCallback as o } from "react";
|
|
3
|
-
import { useRichTextEditorContext as p } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { TextStyles as t, textStyleTitles as l } from "../utils/textStyles.es.js";
|
|
5
|
-
import { DropdownItem as a } from "./DropdownItem.es.js";
|
|
6
|
-
import { DropdownTrigger as N } from "./DropdownTrigger.es.js";
|
|
7
|
-
const D = ({ editorId: E }) => {
|
|
8
|
-
const [m, s] = c(!1), { designTokens: n } = p(), r = o(() => {
|
|
9
|
-
s(!m);
|
|
10
|
-
}, [m, s]);
|
|
11
|
-
return /* @__PURE__ */ e.createElement(T, {
|
|
12
|
-
control: /* @__PURE__ */ e.createElement(N, {
|
|
13
|
-
editorId: E,
|
|
14
|
-
open: m
|
|
15
|
-
}),
|
|
16
|
-
open: m,
|
|
17
|
-
onOpen: r,
|
|
18
|
-
onClose: r
|
|
19
|
-
}, /* @__PURE__ */ e.createElement("div", {
|
|
20
|
-
className: "tw-divide-y tw-divide-line"
|
|
21
|
-
}, /* @__PURE__ */ e.createElement(a, {
|
|
22
|
-
editorId: E,
|
|
23
|
-
type: t.ELEMENT_HEADING1
|
|
24
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
25
|
-
style: n.heading1
|
|
26
|
-
}, l[t.ELEMENT_HEADING1])), /* @__PURE__ */ e.createElement(a, {
|
|
27
|
-
editorId: E,
|
|
28
|
-
type: t.ELEMENT_HEADING2
|
|
29
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
30
|
-
style: n.heading2
|
|
31
|
-
}, l[t.ELEMENT_HEADING2])), /* @__PURE__ */ e.createElement(a, {
|
|
32
|
-
editorId: E,
|
|
33
|
-
type: t.ELEMENT_HEADING3
|
|
34
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
35
|
-
style: n.heading3
|
|
36
|
-
}, l[t.ELEMENT_HEADING3])), /* @__PURE__ */ e.createElement(a, {
|
|
37
|
-
editorId: E,
|
|
38
|
-
type: t.ELEMENT_HEADING4
|
|
39
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
40
|
-
style: n.heading4
|
|
41
|
-
}, l[t.ELEMENT_HEADING4])), /* @__PURE__ */ e.createElement(a, {
|
|
42
|
-
editorId: E,
|
|
43
|
-
type: t.ELEMENT_CUSTOM1
|
|
44
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
45
|
-
style: n.custom1
|
|
46
|
-
}, l[t.ELEMENT_CUSTOM1])), /* @__PURE__ */ e.createElement(a, {
|
|
47
|
-
editorId: E,
|
|
48
|
-
type: t.ELEMENT_CUSTOM2
|
|
49
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
50
|
-
style: n.custom2
|
|
51
|
-
}, l[t.ELEMENT_CUSTOM2])), /* @__PURE__ */ e.createElement(a, {
|
|
52
|
-
editorId: E,
|
|
53
|
-
type: t.ELEMENT_CUSTOM3
|
|
54
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
55
|
-
style: n.custom3
|
|
56
|
-
}, l[t.ELEMENT_CUSTOM3])), /* @__PURE__ */ e.createElement(a, {
|
|
57
|
-
editorId: E,
|
|
58
|
-
type: t.ELEMENT_QUOTE
|
|
59
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
60
|
-
style: n.quote
|
|
61
|
-
}, l[t.ELEMENT_QUOTE])), /* @__PURE__ */ e.createElement(a, {
|
|
62
|
-
editorId: E,
|
|
63
|
-
type: t.ELEMENT_PARAGRAPH
|
|
64
|
-
}, /* @__PURE__ */ e.createElement("span", {
|
|
65
|
-
style: n.p
|
|
66
|
-
}, l[t.ELEMENT_PARAGRAPH]))));
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
D as TextStyleDropdown
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=TextStyleDropdown.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextStyleDropdown.es.js","sources":["../../../../src/components/RichTextEditor/TextStyleDropdown/TextStyleDropdown.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { ToolbarDropdown } from '@udecode/plate';\nimport React, { useCallback, useState } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { TextStyles, textStyleTitles } from '../utils/textStyles';\nimport { DropdownItem } from './DropdownItem';\nimport { DropdownTrigger } from './DropdownTrigger';\n\ntype TextStyleDropdownProps = {\n editorId?: string;\n};\n\nexport const TextStyleDropdown = ({ editorId }: TextStyleDropdownProps) => {\n const [open, setOpen] = useState(false);\n\n const { designTokens } = useRichTextEditorContext();\n\n const onToggle = useCallback(() => {\n setOpen(!open);\n }, [open, setOpen]);\n\n return (\n <ToolbarDropdown\n control={<DropdownTrigger editorId={editorId} open={open} />}\n open={open}\n onOpen={onToggle}\n onClose={onToggle}\n >\n <div className=\"tw-divide-y tw-divide-line\">\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_HEADING1}>\n <span style={designTokens.heading1}>{textStyleTitles[TextStyles.ELEMENT_HEADING1]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_HEADING2}>\n <span style={designTokens.heading2}>{textStyleTitles[TextStyles.ELEMENT_HEADING2]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_HEADING3}>\n <span style={designTokens.heading3}>{textStyleTitles[TextStyles.ELEMENT_HEADING3]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_HEADING4}>\n <span style={designTokens.heading4}>{textStyleTitles[TextStyles.ELEMENT_HEADING4]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_CUSTOM1}>\n <span style={designTokens.custom1}>{textStyleTitles[TextStyles.ELEMENT_CUSTOM1]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_CUSTOM2}>\n <span style={designTokens.custom2}>{textStyleTitles[TextStyles.ELEMENT_CUSTOM2]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_CUSTOM3}>\n <span style={designTokens.custom3}>{textStyleTitles[TextStyles.ELEMENT_CUSTOM3]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_QUOTE}>\n <span style={designTokens.quote}>{textStyleTitles[TextStyles.ELEMENT_QUOTE]}</span>\n </DropdownItem>\n <DropdownItem editorId={editorId} type={TextStyles.ELEMENT_PARAGRAPH}>\n <span style={designTokens.p}>{textStyleTitles[TextStyles.ELEMENT_PARAGRAPH]}</span>\n </DropdownItem>\n </div>\n </ToolbarDropdown>\n );\n};\n"],"names":[],"mappings":";;;;;;AAaa,MAAA,IAAoB,CAAC,EAAE,kBAAuC;AACvE,QAAM,CAAC,GAAM,KAAW,EAAS,EAAK,GAEhC,EAAE,oBAAiB,KAEnB,IAAW,EAAY,MAAM;AAC/B,MAAQ,CAAC,CAAI;AAAA,EAAA,GACd,CAAC,GAAM,CAAO,CAAC;AAElB,SACK,kBAAA,cAAA,GAAA;AAAA,IACG,SAAU,kBAAA,cAAA,GAAA;AAAA,MAAgB;AAAA,MAAoB;AAAA,IAAA,CAAY;AAAA,IAC1D;AAAA,IACA,QAAQ;AAAA,IACR,SAAS;AAAA,EAAA,GAER,kBAAA,cAAA,OAAA;AAAA,IAAI,WAAU;AAAA,EAAA,GACV,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAgB,EAAW,iBAAkB,CACtF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAgB,EAAW,iBAAkB,CACtF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAgB,EAAW,iBAAkB,CACtF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAgB,EAAW,iBAAkB,CACtF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAU,EAAgB,EAAW,gBAAiB,CACpF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAU,EAAgB,EAAW,gBAAiB,CACpF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAU,EAAgB,EAAW,gBAAiB,CACpF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAQ,EAAgB,EAAW,cAAe,CAChF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAoB,MAAM,EAAW;AAAA,EAAA,GAC9C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAI,EAAgB,EAAW,kBAAmB,CAChF,CACJ,CACJ;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import s from "react";
|
|
3
|
-
import { useRichTextEditorContext as i } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const f = ({ element: e, attributes: o, children: m }) => {
|
|
6
|
-
const { designTokens: n } = i(), t = e.align;
|
|
7
|
-
return /* @__PURE__ */ s.createElement("p", {
|
|
8
|
-
...o,
|
|
9
|
-
className: r([t && a[t]]),
|
|
10
|
-
style: n.custom1
|
|
11
|
-
}, m);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
f as Custom1Element
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=custom1.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom1.es.js","sources":["../../../../src/components/RichTextEditor/components/custom1.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const Custom1Element: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n return (\n <p {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.custom1}>\n {children}\n </p>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA8C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACxF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AACtB,SACK,kBAAA,cAAA,KAAA;AAAA,IAAG,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC3F,CACL;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import s from "react";
|
|
3
|
-
import { useRichTextEditorContext as i } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const f = ({ element: e, attributes: o, children: m }) => {
|
|
6
|
-
const { designTokens: n } = i(), t = e.align;
|
|
7
|
-
return /* @__PURE__ */ s.createElement("p", {
|
|
8
|
-
...o,
|
|
9
|
-
className: r([t && a[t]]),
|
|
10
|
-
style: n.custom2
|
|
11
|
-
}, m);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
f as Custom2Element
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=custom2.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom2.es.js","sources":["../../../../src/components/RichTextEditor/components/custom2.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const Custom2Element: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <p {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.custom2}>\n {children}\n </p>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA8C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACxF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AAEtB,SACK,kBAAA,cAAA,KAAA;AAAA,IAAG,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC3F,CACL;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import s from "react";
|
|
3
|
-
import { useRichTextEditorContext as i } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const f = ({ element: e, attributes: o, children: m }) => {
|
|
6
|
-
const { designTokens: n } = i(), t = e.align;
|
|
7
|
-
return /* @__PURE__ */ s.createElement("p", {
|
|
8
|
-
...o,
|
|
9
|
-
className: r([t && a[t]]),
|
|
10
|
-
style: n.custom3
|
|
11
|
-
}, m);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
f as Custom3Element
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=custom3.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom3.es.js","sources":["../../../../src/components/RichTextEditor/components/custom3.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const Custom3Element: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <p {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.custom3}>\n {children}\n </p>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA8C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACxF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AAEtB,SACK,kBAAA,cAAA,KAAA;AAAA,IAAG,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC3F,CACL;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import i from "react";
|
|
3
|
-
import { useRichTextEditorContext as s } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
-
const { designTokens: m } = s(), e = t.align;
|
|
7
|
-
return /* @__PURE__ */ i.createElement("h1", {
|
|
8
|
-
...n,
|
|
9
|
-
className: r([e && a[e]]),
|
|
10
|
-
style: m.heading1
|
|
11
|
-
}, o);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
d as Heading1Element
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=heading1.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading1.es.js","sources":["../../../../src/components/RichTextEditor/components/heading1.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const Heading1Element: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <h1 {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.heading1}>\n {children}\n </h1>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA+C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACzF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AAEtB,SACK,kBAAA,cAAA,MAAA;AAAA,IAAI,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC5F,CACL;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import i from "react";
|
|
3
|
-
import { useRichTextEditorContext as s } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
-
const { designTokens: m } = s(), e = t.align;
|
|
7
|
-
return /* @__PURE__ */ i.createElement("h2", {
|
|
8
|
-
...n,
|
|
9
|
-
className: r([e && a[e]]),
|
|
10
|
-
style: m.heading2
|
|
11
|
-
}, o);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
d as Heading2Element
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=heading2.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading2.es.js","sources":["../../../../src/components/RichTextEditor/components/heading2.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const Heading2Element: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <h2 {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.heading2}>\n {children}\n </h2>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA+C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACzF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AAEtB,SACK,kBAAA,cAAA,MAAA;AAAA,IAAI,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC5F,CACL;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import i from "react";
|
|
3
|
-
import { useRichTextEditorContext as s } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
-
const { designTokens: m } = s(), e = t.align;
|
|
7
|
-
return /* @__PURE__ */ i.createElement("h3", {
|
|
8
|
-
...n,
|
|
9
|
-
className: r([e && a[e]]),
|
|
10
|
-
style: m.heading3
|
|
11
|
-
}, o);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
d as Heading3Element
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=heading3.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading3.es.js","sources":["../../../../src/components/RichTextEditor/components/heading3.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const Heading3Element: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <h3 {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.heading3}>\n {children}\n </h3>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA+C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACzF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AAEtB,SACK,kBAAA,cAAA,MAAA;AAAA,IAAI,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC5F,CACL;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import i from "react";
|
|
3
|
-
import { useRichTextEditorContext as s } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
-
const { designTokens: m } = s(), e = t.align;
|
|
7
|
-
return /* @__PURE__ */ i.createElement("h4", {
|
|
8
|
-
...n,
|
|
9
|
-
className: r([e && a[e]]),
|
|
10
|
-
style: m.heading4
|
|
11
|
-
}, o);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
d as Heading4Element
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=heading4.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading4.es.js","sources":["../../../../src/components/RichTextEditor/components/heading4.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const Heading4Element: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <h4 {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.heading4}>\n {children}\n </h4>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA+C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACzF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AAEtB,SACK,kBAAA,cAAA,MAAA;AAAA,IAAI,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC5F,CACL;AAER;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { merge as r } from "../../../utilities/merge.es.js";
|
|
2
|
-
import s from "react";
|
|
3
|
-
import { useRichTextEditorContext as i } from "../context/RichTextEditorContext.es.js";
|
|
4
|
-
import { alignmentClassnames as a } from "../utils/alignment.es.js";
|
|
5
|
-
const f = ({ element: t, attributes: o, children: m }) => {
|
|
6
|
-
const { designTokens: n } = i(), e = t.align;
|
|
7
|
-
return /* @__PURE__ */ s.createElement("p", {
|
|
8
|
-
...o,
|
|
9
|
-
className: r([e && a[e]]),
|
|
10
|
-
style: n.quote
|
|
11
|
-
}, m);
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
f as QuoteElement
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=quote.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quote.es.js","sources":["../../../../src/components/RichTextEditor/components/quote.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport React, { FC } from 'react';\nimport { useRichTextEditorContext } from '../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../utils/alignment';\n\nexport const QuoteElement: FC<PlateRenderElementProps> = ({ element, attributes, children }) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <p {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.quote}>\n {children}\n </p>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA4C,CAAC,EAAE,YAAS,eAAY,kBAAe;AACtF,QAAA,EAAE,oBAAiB,KACnB,IAAQ,EAAQ;AAEtB,SACK,kBAAA,cAAA,KAAA;AAAA,IAAG,GAAG;AAAA,IAAY,WAAW,EAAM,CAAC,KAAS,EAAoB,EAAM,CAAC;AAAA,IAAG,OAAO,EAAa;AAAA,EAAA,GAC3F,CACL;AAER;"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { usePlateEditorState as i, getNodeEntries as n, isElement as u, isType as c } from "@udecode/plate";
|
|
2
|
-
import { ListStyles as l } from "../TextStyleDropdown/DropdownTrigger.es.js";
|
|
3
|
-
import { TextStyles as m } from "../utils/textStyles.es.js";
|
|
4
|
-
const d = (o) => {
|
|
5
|
-
const t = i(o);
|
|
6
|
-
return !t || !t.selection ? [] : Array.from(n(t, {
|
|
7
|
-
unhang: !0,
|
|
8
|
-
at: t.selection,
|
|
9
|
-
match: (e) => u(e) && c(t, e, Object.values({ ...m, ...l }))
|
|
10
|
-
})).reduce((e, s) => {
|
|
11
|
-
const r = s[0].type;
|
|
12
|
-
return e.includes(r) || e.push(r), e;
|
|
13
|
-
}, []);
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
d as useSelectedTextStyles
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=useSelectedTextStyles.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectedTextStyles.es.js","sources":["../../../../src/components/RichTextEditor/hooks/useSelectedTextStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { TElement, getNodeEntries, isElement, isType, usePlateEditorState } from '@udecode/plate';\nimport { ListStyles } from '../TextStyleDropdown/DropdownTrigger';\nimport { AvailableTextStyles } from '../types';\nimport { TextStyles } from '../utils/textStyles';\n\nexport const useSelectedTextStyles = (editorId?: string): AvailableTextStyles[] => {\n const editor = usePlateEditorState(editorId);\n if (!editor || !editor.selection) {\n return [];\n }\n\n return Array.from(\n getNodeEntries(editor, {\n unhang: true,\n at: editor.selection,\n match: (node: TElement) =>\n isElement(node) && isType(editor, node, Object.values({ ...TextStyles, ...ListStyles })),\n }),\n ).reduce<AvailableTextStyles[]>((types, current) => {\n const type = current[0].type as AvailableTextStyles;\n if (!types.includes(type)) {\n types.push(type);\n }\n return types;\n }, []);\n};\n"],"names":[],"mappings":";;;AAOa,MAAA,IAAwB,CAAC,MAA6C;AACzE,QAAA,IAAS,EAAoB,CAAQ;AAC3C,SAAI,CAAC,KAAU,CAAC,EAAO,YACZ,KAGJ,MAAM,KACT,EAAe,GAAQ;AAAA,IACnB,QAAQ;AAAA,IACR,IAAI,EAAO;AAAA,IACX,OAAO,CAAC,MACJ,EAAU,CAAI,KAAK,EAAO,GAAQ,GAAM,OAAO,OAAO,EAAE,GAAG,GAAY,GAAG,EAAY,CAAA,CAAC;AAAA,EAC9F,CAAA,CACL,EAAE,OAA8B,CAAC,GAAO,MAAY;AAC1C,UAAA,IAAO,EAAQ,GAAG;AACxB,WAAK,EAAM,SAAS,CAAI,KACpB,EAAM,KAAK,CAAI,GAEZ;AAAA,EACX,GAAG,CAAE,CAAA;AACT;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alignment.es.js","sources":["../../../../src/components/RichTextEditor/utils/alignment.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nexport const alignmentClassnames: Record<string, string> = {\n left: 'tw-text-left',\n right: 'tw-text-right',\n center: 'tw-text-center',\n justify: 'tw-text-justify',\n};\n"],"names":[],"mappings":"AAEO,MAAM,IAA8C;AAAA,EACvD,MAAM;AAAA,EACN,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AACb;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare enum TextStyles {
|
|
2
|
-
ELEMENT_HEADING1 = "heading1",
|
|
3
|
-
ELEMENT_HEADING2 = "heading2",
|
|
4
|
-
ELEMENT_HEADING3 = "heading3",
|
|
5
|
-
ELEMENT_HEADING4 = "heading4",
|
|
6
|
-
ELEMENT_CUSTOM1 = "custom1",
|
|
7
|
-
ELEMENT_CUSTOM2 = "custom2",
|
|
8
|
-
ELEMENT_CUSTOM3 = "custom3",
|
|
9
|
-
ELEMENT_QUOTE = "quote",
|
|
10
|
-
ELEMENT_LINK = "link",
|
|
11
|
-
ELEMENT_PARAGRAPH = "p"
|
|
12
|
-
}
|
|
13
|
-
export declare const textStyleTitles: Record<TextStyles, string>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var n = /* @__PURE__ */ ((E) => (E.ELEMENT_HEADING1 = "heading1", E.ELEMENT_HEADING2 = "heading2", E.ELEMENT_HEADING3 = "heading3", E.ELEMENT_HEADING4 = "heading4", E.ELEMENT_CUSTOM1 = "custom1", E.ELEMENT_CUSTOM2 = "custom2", E.ELEMENT_CUSTOM3 = "custom3", E.ELEMENT_QUOTE = "quote", E.ELEMENT_LINK = "link", E.ELEMENT_PARAGRAPH = "p", E))(n || {});
|
|
2
|
-
const a = {
|
|
3
|
-
heading1: "Heading 1",
|
|
4
|
-
heading2: "Heading 2",
|
|
5
|
-
heading3: "Heading 3",
|
|
6
|
-
heading4: "Heading 4",
|
|
7
|
-
custom1: "Custom 01",
|
|
8
|
-
custom2: "Custom 02",
|
|
9
|
-
custom3: "Custom 03",
|
|
10
|
-
quote: "Quote",
|
|
11
|
-
link: "Link",
|
|
12
|
-
p: "Paragraph"
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
n as TextStyles,
|
|
16
|
-
a as textStyleTitles
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=textStyles.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textStyles.es.js","sources":["../../../../src/components/RichTextEditor/utils/textStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nexport enum TextStyles {\n ELEMENT_HEADING1 = 'heading1',\n ELEMENT_HEADING2 = 'heading2',\n ELEMENT_HEADING3 = 'heading3',\n ELEMENT_HEADING4 = 'heading4',\n ELEMENT_CUSTOM1 = 'custom1',\n ELEMENT_CUSTOM2 = 'custom2',\n ELEMENT_CUSTOM3 = 'custom3',\n ELEMENT_QUOTE = 'quote',\n ELEMENT_LINK = 'link',\n ELEMENT_PARAGRAPH = 'p',\n}\n\nexport const textStyleTitles: Record<TextStyles, string> = {\n [TextStyles.ELEMENT_HEADING1]: 'Heading 1',\n [TextStyles.ELEMENT_HEADING2]: 'Heading 2',\n [TextStyles.ELEMENT_HEADING3]: 'Heading 3',\n [TextStyles.ELEMENT_HEADING4]: 'Heading 4',\n [TextStyles.ELEMENT_CUSTOM1]: 'Custom 01',\n [TextStyles.ELEMENT_CUSTOM2]: 'Custom 02',\n [TextStyles.ELEMENT_CUSTOM3]: 'Custom 03',\n [TextStyles.ELEMENT_QUOTE]: 'Quote',\n [TextStyles.ELEMENT_LINK]: 'Link',\n [TextStyles.ELEMENT_PARAGRAPH]: 'Paragraph',\n};\n"],"names":[],"mappings":"AAEY,IAAA,sBAAA,MACW,GAAA,mBAAA,YACA,EAAA,mBAAA,YACA,EAAA,mBAAA,YACA,EAAA,mBAAA,YACD,EAAA,kBAAA,WACA,EAAA,kBAAA,WACA,EAAA,kBAAA,WACF,EAAA,gBAAA,SACD,EAAA,eAAA,QACK,EAAA,oBAAA,KAVZ,IAAA,KAAA,CAAA,CAAA;AAaL,MAAM,IAA8C;AAAA,EACvD,AAAC,UAA8B;AAAA,EAC/B,AAAC,UAA8B;AAAA,EAC/B,AAAC,UAA8B;AAAA,EAC/B,AAAC,UAA8B;AAAA,EAC/B,AAAC,SAA6B;AAAA,EAC9B,AAAC,SAA6B;AAAA,EAC9B,AAAC,SAA6B;AAAA,EAC9B,AAAC,OAA2B;AAAA,EAC5B,AAAC,MAA0B;AAAA,EAC3B,AAAC,GAA+B;AACpC;"}
|