@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownTrigger.es.js","sources":["../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/DropdownTrigger.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { getPreventDefaultHandler } from '@udecode/plate';\nimport { IconCaretDown, IconSize } from '@foundation/Icon';\nimport { merge } from '@utilities/merge';\nimport { DropdownTriggerProps } from './types';\nimport { useSelectedTextStyles } from './useSelectedTextStyles';\nimport { AVAILABLE_STYLE_TITLES, DEFAULT_TEXT_STYLE_VALUE } from '../TextStyles';\n\nexport const DropdownTrigger = ({ editor, open }: DropdownTriggerProps) => {\n const selectedTextStyles = useSelectedTextStyles(editor);\n\n const label =\n selectedTextStyles.length === 1 ? AVAILABLE_STYLE_TITLES[selectedTextStyles[0]] : DEFAULT_TEXT_STYLE_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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,KAAkB,CAAC,EAAE,WAAQ,cAAiC;AACjE,QAAA,IAAqB,EAAsB,CAAM,GAEjD,IACF,EAAmB,WAAW,IAAI,EAAuB,EAAmB,MAAM;AAEtF,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;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import t from "react";
|
|
2
|
+
import { ButtonWrapper as r } from "../../helper.es.js";
|
|
3
|
+
import { TextStyleDropdown as m } from "./index.es.js";
|
|
4
|
+
const c = ({ editorId: e, id: o }) => /* @__PURE__ */ t.createElement(r, {
|
|
5
|
+
id: o
|
|
6
|
+
}, /* @__PURE__ */ t.createElement(m, {
|
|
7
|
+
editorId: e
|
|
8
|
+
}));
|
|
9
|
+
export {
|
|
10
|
+
c as TextStyleButton
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=TextStyleButton.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextStyleButton.es.js","sources":["../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/TextStyleButton.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { ButtonWrapper } from '../../helper';\nimport { PluginButtonProps } from '../../types';\nimport { TextStyleDropdown } from './';\n\nexport const TextStyleButton = ({ editorId, id }: PluginButtonProps) => (\n <ButtonWrapper id={id}>\n <TextStyleDropdown editorId={editorId} />\n </ButtonWrapper>\n);\n"],"names":[],"mappings":";;;AAOO,MAAM,IAAkB,CAAC,EAAE,aAAU,YACvC,kBAAA,cAAA,GAAA;AAAA,EAAc;AAAA,GACV,kBAAA,cAAA,GAAA;AAAA,EAAkB;AAAA,CAAoB,CAC3C;"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { usePlateEditorState as s, ToolbarDropdown as c } from "@udecode/plate";
|
|
2
|
+
import e, { useState as T, useCallback as i } from "react";
|
|
3
|
+
import { useRichTextEditorContext as N } from "../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { TextStyles as t, textStyleTitle as r } from "../TextStyles/textStyles.es.js";
|
|
5
|
+
import "../TextStyles/Custom1Plugin/createCustom1Plugin.es.js";
|
|
6
|
+
import "../TextStyles/Custom2Plugin/createCustom2Plugin.es.js";
|
|
7
|
+
import "../TextStyles/Custom3Plugin/createCustom3Plugin.es.js";
|
|
8
|
+
import "../TextStyles/Heading1Plugin/createHeading1Plugin.es.js";
|
|
9
|
+
import "../TextStyles/Heading2Plugin/createHeading2Plugin.es.js";
|
|
10
|
+
import "../TextStyles/Heading3Plugin/createHeading3Plugin.es.js";
|
|
11
|
+
import "../TextStyles/Heading4Plugin/createHeading4Plugin.es.js";
|
|
12
|
+
import "../TextStyles/Quote/createQuotePlugin.es.js";
|
|
13
|
+
import { DropdownItem as o } from "./DropdownItem.es.js";
|
|
14
|
+
import { DropdownTrigger as M } from "./DropdownTrigger.es.js";
|
|
15
|
+
const U = ({ editorId: p }) => {
|
|
16
|
+
const [m, a] = T(!1), E = s(p), { designTokens: n } = N(), l = i(() => {
|
|
17
|
+
a(!m);
|
|
18
|
+
}, [m, a]);
|
|
19
|
+
return /* @__PURE__ */ e.createElement(c, {
|
|
20
|
+
control: /* @__PURE__ */ e.createElement(M, {
|
|
21
|
+
editor: E,
|
|
22
|
+
open: m
|
|
23
|
+
}),
|
|
24
|
+
open: m,
|
|
25
|
+
onOpen: l,
|
|
26
|
+
onClose: l
|
|
27
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
28
|
+
className: "tw-divide-y tw-divide-line"
|
|
29
|
+
}, /* @__PURE__ */ e.createElement(o, {
|
|
30
|
+
editor: E,
|
|
31
|
+
type: t.ELEMENT_HEADING1
|
|
32
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
33
|
+
style: n.heading1
|
|
34
|
+
}, r[t.ELEMENT_HEADING1])), /* @__PURE__ */ e.createElement(o, {
|
|
35
|
+
editor: E,
|
|
36
|
+
type: t.ELEMENT_HEADING2
|
|
37
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
38
|
+
style: n.heading2
|
|
39
|
+
}, r[t.ELEMENT_HEADING2])), /* @__PURE__ */ e.createElement(o, {
|
|
40
|
+
editor: E,
|
|
41
|
+
type: t.ELEMENT_HEADING3
|
|
42
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
43
|
+
style: n.heading3
|
|
44
|
+
}, r[t.ELEMENT_HEADING3])), /* @__PURE__ */ e.createElement(o, {
|
|
45
|
+
editor: E,
|
|
46
|
+
type: t.ELEMENT_HEADING4
|
|
47
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
48
|
+
style: n.heading4
|
|
49
|
+
}, r[t.ELEMENT_HEADING4])), /* @__PURE__ */ e.createElement(o, {
|
|
50
|
+
editor: E,
|
|
51
|
+
type: t.ELEMENT_CUSTOM1
|
|
52
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
53
|
+
style: n.custom1
|
|
54
|
+
}, r[t.ELEMENT_CUSTOM1])), /* @__PURE__ */ e.createElement(o, {
|
|
55
|
+
editor: E,
|
|
56
|
+
type: t.ELEMENT_CUSTOM2
|
|
57
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
58
|
+
style: n.custom2
|
|
59
|
+
}, r[t.ELEMENT_CUSTOM2])), /* @__PURE__ */ e.createElement(o, {
|
|
60
|
+
editor: E,
|
|
61
|
+
type: t.ELEMENT_CUSTOM3
|
|
62
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
63
|
+
style: n.custom3
|
|
64
|
+
}, r[t.ELEMENT_CUSTOM3])), /* @__PURE__ */ e.createElement(o, {
|
|
65
|
+
editor: E,
|
|
66
|
+
type: t.ELEMENT_QUOTE
|
|
67
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
68
|
+
style: n.quote
|
|
69
|
+
}, r[t.ELEMENT_QUOTE])), /* @__PURE__ */ e.createElement(o, {
|
|
70
|
+
editor: E,
|
|
71
|
+
type: t.ELEMENT_PARAGRAPH
|
|
72
|
+
}, /* @__PURE__ */ e.createElement("span", {
|
|
73
|
+
style: n.p
|
|
74
|
+
}, r[t.ELEMENT_PARAGRAPH]))));
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
U as TextStyleDropdown
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/index.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { ToolbarDropdown, usePlateEditorState } from '@udecode/plate';\nimport React, { useCallback, useState } from 'react';\nimport { useRichTextEditorContext } from '../../../../context/RichTextEditorContext';\nimport { TextStyles, textStyleTitle } from '../TextStyles';\nimport { DropdownItem } from './DropdownItem';\nimport { DropdownTrigger } from './DropdownTrigger';\nimport { TextStyleDropdownProps } from './types';\n\nexport const TextStyleDropdown = ({ editorId }: TextStyleDropdownProps) => {\n const [open, setOpen] = useState(false);\n const editor = usePlateEditorState(editorId)!;\n const { designTokens } = useRichTextEditorContext();\n\n const onToggle = useCallback(() => {\n setOpen(!open);\n }, [open, setOpen]);\n\n return (\n <ToolbarDropdown\n control={<DropdownTrigger editor={editor} open={open} />}\n open={open}\n onOpen={onToggle}\n onClose={onToggle}\n >\n <div className=\"tw-divide-y tw-divide-line\">\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_HEADING1}>\n <span style={designTokens.heading1}>{textStyleTitle[TextStyles.ELEMENT_HEADING1]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_HEADING2}>\n <span style={designTokens.heading2}>{textStyleTitle[TextStyles.ELEMENT_HEADING2]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_HEADING3}>\n <span style={designTokens.heading3}>{textStyleTitle[TextStyles.ELEMENT_HEADING3]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_HEADING4}>\n <span style={designTokens.heading4}>{textStyleTitle[TextStyles.ELEMENT_HEADING4]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_CUSTOM1}>\n <span style={designTokens.custom1}>{textStyleTitle[TextStyles.ELEMENT_CUSTOM1]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_CUSTOM2}>\n <span style={designTokens.custom2}>{textStyleTitle[TextStyles.ELEMENT_CUSTOM2]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_CUSTOM3}>\n <span style={designTokens.custom3}>{textStyleTitle[TextStyles.ELEMENT_CUSTOM3]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_QUOTE}>\n <span style={designTokens.quote}>{textStyleTitle[TextStyles.ELEMENT_QUOTE]}</span>\n </DropdownItem>\n <DropdownItem editor={editor} type={TextStyles.ELEMENT_PARAGRAPH}>\n <span style={designTokens.p}>{textStyleTitle[TextStyles.ELEMENT_PARAGRAPH]}</span>\n </DropdownItem>\n </div>\n </ToolbarDropdown>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAUa,MAAA,IAAoB,CAAC,EAAE,kBAAuC;AACvE,QAAM,CAAC,GAAM,KAAW,EAAS,EAAK,GAChC,IAAS,EAAoB,CAAQ,GACrC,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,MAAgB;AAAA,IAAA,CAAY;AAAA,IACtD;AAAA,IACA,QAAQ;AAAA,IACR,SAAS;AAAA,EAAA,GAER,kBAAA,cAAA,OAAA;AAAA,IAAI,WAAU;AAAA,EAAA,GACV,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAe,EAAW,iBAAkB,CACrF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAe,EAAW,iBAAkB,CACrF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAe,EAAW,iBAAkB,CACrF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAW,EAAe,EAAW,iBAAkB,CACrF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAU,EAAe,EAAW,gBAAiB,CACnF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAU,EAAe,EAAW,gBAAiB,CACnF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAU,EAAe,EAAW,gBAAiB,CACnF,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAQ,EAAe,EAAW,cAAe,CAC/E,GACC,kBAAA,cAAA,GAAA;AAAA,IAAa;AAAA,IAAgB,MAAM,EAAW;AAAA,EAAA,GAC1C,kBAAA,cAAA,QAAA;AAAA,IAAK,OAAO,EAAa;AAAA,EAAA,GAAI,EAAe,EAAW,kBAAmB,CAC/E,CACJ,CACJ;AAER;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PlateEditor } from '@udecode/plate';
|
|
3
|
+
import { TextStyles } from '../TextStyles';
|
|
4
|
+
export declare type TextStyleDropdownProps = {
|
|
5
|
+
editorId?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type DropdownTriggerProps = {
|
|
8
|
+
editor: PlateEditor;
|
|
9
|
+
open: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare type DropdownItemProps = {
|
|
12
|
+
editor: PlateEditor;
|
|
13
|
+
type: TextStyles;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getNodeEntries as i, isElement as o, isType as p } from "@udecode/plate";
|
|
2
|
+
import { AVAILABLE_STYLE as n } from "../TextStyles/textStyles.es.js";
|
|
3
|
+
import "../TextStyles/Custom1Plugin/createCustom1Plugin.es.js";
|
|
4
|
+
import "../TextStyles/Custom2Plugin/createCustom2Plugin.es.js";
|
|
5
|
+
import "../TextStyles/Custom3Plugin/createCustom3Plugin.es.js";
|
|
6
|
+
import "../TextStyles/Heading1Plugin/createHeading1Plugin.es.js";
|
|
7
|
+
import "../TextStyles/Heading2Plugin/createHeading2Plugin.es.js";
|
|
8
|
+
import "../TextStyles/Heading3Plugin/createHeading3Plugin.es.js";
|
|
9
|
+
import "../TextStyles/Heading4Plugin/createHeading4Plugin.es.js";
|
|
10
|
+
import "../TextStyles/Quote/createQuotePlugin.es.js";
|
|
11
|
+
const L = (r) => !r || !r.selection ? [] : Array.from(i(r, {
|
|
12
|
+
unhang: !0,
|
|
13
|
+
at: r.selection,
|
|
14
|
+
match: (t) => o(t) && p(r, t, n)
|
|
15
|
+
})).reduce((t, m) => {
|
|
16
|
+
const e = m[0].type;
|
|
17
|
+
return t.includes(e) || t.push(e), t;
|
|
18
|
+
}, []);
|
|
19
|
+
export {
|
|
20
|
+
L as useSelectedTextStyles
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useSelectedTextStyles.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSelectedTextStyles.es.js","sources":["../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyleDropdown/useSelectedTextStyles.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlateEditor, TElement, getNodeEntries, isElement, isType } from '@udecode/plate';\nimport { AVAILABLE_STYLE, AvailableStyles } from '../TextStyles';\n\nexport const useSelectedTextStyles = (editor: PlateEditor): AvailableStyles[] => {\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) => isElement(node) && isType(editor, node, AVAILABLE_STYLE),\n }),\n ).reduce<AvailableStyles[]>((types, current) => {\n const type = current[0].type as AvailableStyles;\n if (!types.includes(type)) {\n types.push(type);\n }\n return types;\n }, []);\n};\n"],"names":[],"mappings":";;;;;;;;;;AAKa,MAAA,IAAwB,CAAC,MAC9B,CAAC,KAAU,CAAC,EAAO,YACZ,KAGJ,MAAM,KACT,EAAe,GAAQ;AAAA,EACnB,QAAQ;AAAA,EACR,IAAI,EAAO;AAAA,EACX,OAAO,CAAC,MAAmB,EAAU,CAAI,KAAK,EAAO,GAAQ,GAAM,CAAe;AACrF,CAAA,CACL,EAAE,OAA0B,CAAC,GAAO,MAAY;AACtC,QAAA,IAAO,EAAQ,GAAG;AACxB,SAAK,EAAM,SAAS,CAAI,KACpB,EAAM,KAAK,CAAI,GAEZ;AACX,GAAG,CAAE,CAAA;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { merge as s } from "../../../../../../../utilities/merge.es.js";
|
|
3
|
+
import { useRichTextEditorContext as a } from "../../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { alignmentClassnames as i } from "../alignment.es.js";
|
|
5
|
+
const u = ({ element: t, attributes: o, children: m }) => {
|
|
6
|
+
const { designTokens: r } = a(), e = t.align;
|
|
7
|
+
return /* @__PURE__ */ n.createElement("p", {
|
|
8
|
+
...o,
|
|
9
|
+
className: s([e && i[e]]),
|
|
10
|
+
style: r.custom1
|
|
11
|
+
}, m);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
u as Custom1MarkupElementNode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Custom1MarkupElementNode.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Custom1MarkupElementNode.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/Custom1MarkupElementNode.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport { useRichTextEditorContext } from '../../../../../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../alignment';\n\nexport const Custom1MarkupElementNode = ({ element, attributes, children }: PlateRenderElementProps) => {\n const { designTokens } = useRichTextEditorContext();\n const align = element.align as string;\n\n return (\n <p {...attributes} className={merge([align && alignmentClassnames[align]])} style={designTokens.custom1}>\n {children}\n </p>\n );\n};\n"],"names":[],"mappings":";;;;AAQO,MAAM,IAA2B,CAAC,EAAE,YAAS,eAAY,kBAAwC;AAC9F,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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createCustom1Plugin: <OP = import("@udecode/plate").AnyObject, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createPluginFactory as t } from "@udecode/plate";
|
|
2
|
+
import { Custom1MarkupElementNode as e } from "./Custom1MarkupElementNode.es.js";
|
|
3
|
+
import { TextStyles as o } from "../textStyles.es.js";
|
|
4
|
+
const i = t({
|
|
5
|
+
key: o.ELEMENT_CUSTOM1,
|
|
6
|
+
isElement: !0,
|
|
7
|
+
component: e
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
i as createCustom1Plugin
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=createCustom1Plugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCustom1Plugin.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom1Plugin/createCustom1Plugin.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { Custom1MarkupElementNode } from './Custom1MarkupElementNode';\nimport { TextStyles } from '../textStyles';\n\nexport const createCustom1Plugin = createPluginFactory({\n key: TextStyles.ELEMENT_CUSTOM1,\n isElement: true,\n component: Custom1MarkupElementNode,\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAsB,EAAoB;AAAA,EACnD,KAAK,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AACf,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createCustom1Plugin';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { merge as s } from "../../../../../../../utilities/merge.es.js";
|
|
3
|
+
import { useRichTextEditorContext as a } from "../../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { alignmentClassnames as i } from "../alignment.es.js";
|
|
5
|
+
const u = ({ element: t, attributes: o, children: m }) => {
|
|
6
|
+
const { designTokens: r } = a(), e = t.align;
|
|
7
|
+
return /* @__PURE__ */ n.createElement("p", {
|
|
8
|
+
...o,
|
|
9
|
+
className: s([e && i[e]]),
|
|
10
|
+
style: r.custom2
|
|
11
|
+
}, m);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
u as Custom2MarkupElementNode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Custom2MarkupElementNode.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Custom2MarkupElementNode.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/Custom2MarkupElementNode.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport { useRichTextEditorContext } from '../../../../../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../alignment';\n\nexport const Custom2MarkupElementNode = ({ element, attributes, children }: PlateRenderElementProps) => {\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,IAA2B,CAAC,EAAE,YAAS,eAAY,kBAAwC;AAC9F,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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createCustom2Plugin: <OP = import("@udecode/plate").AnyObject, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createPluginFactory as t } from "@udecode/plate";
|
|
2
|
+
import { Custom2MarkupElementNode as e } from "./Custom2MarkupElementNode.es.js";
|
|
3
|
+
import { TextStyles as o } from "../textStyles.es.js";
|
|
4
|
+
const i = t({
|
|
5
|
+
key: o.ELEMENT_CUSTOM2,
|
|
6
|
+
isElement: !0,
|
|
7
|
+
component: e
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
i as createCustom2Plugin
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=createCustom2Plugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCustom2Plugin.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom2Plugin/createCustom2Plugin.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { Custom2MarkupElementNode } from './Custom2MarkupElementNode';\nimport { TextStyles } from '../textStyles';\n\nexport const createCustom2Plugin = createPluginFactory({\n key: TextStyles.ELEMENT_CUSTOM2,\n isElement: true,\n component: Custom2MarkupElementNode,\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAsB,EAAoB;AAAA,EACnD,KAAK,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AACf,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createCustom2Plugin';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import n from "react";
|
|
2
|
+
import { merge as s } from "../../../../../../../utilities/merge.es.js";
|
|
3
|
+
import { useRichTextEditorContext as a } from "../../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { alignmentClassnames as i } from "../alignment.es.js";
|
|
5
|
+
const u = ({ element: t, attributes: o, children: m }) => {
|
|
6
|
+
const { designTokens: r } = a(), e = t.align;
|
|
7
|
+
return /* @__PURE__ */ n.createElement("p", {
|
|
8
|
+
...o,
|
|
9
|
+
className: s([e && i[e]]),
|
|
10
|
+
style: r.custom3
|
|
11
|
+
}, m);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
u as Custom3MarkupElementNode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Custom3MarkupElementNode.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Custom3MarkupElementNode.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/Custom3MarkupElementNode.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport { useRichTextEditorContext } from '../../../../../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../alignment';\n\nexport const Custom3MarkupElementNode = ({ element, attributes, children }: PlateRenderElementProps) => {\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,IAA2B,CAAC,EAAE,YAAS,eAAY,kBAAwC;AAC9F,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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createCustom3Plugin: <OP = import("@udecode/plate").AnyObject, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createPluginFactory as t } from "@udecode/plate";
|
|
2
|
+
import { Custom3MarkupElementNode as e } from "./Custom3MarkupElementNode.es.js";
|
|
3
|
+
import { TextStyles as o } from "../textStyles.es.js";
|
|
4
|
+
const i = t({
|
|
5
|
+
key: o.ELEMENT_CUSTOM3,
|
|
6
|
+
isElement: !0,
|
|
7
|
+
component: e
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
i as createCustom3Plugin
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=createCustom3Plugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCustom3Plugin.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Custom3Plugin/createCustom3Plugin.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { Custom3MarkupElementNode } from './Custom3MarkupElementNode';\nimport { TextStyles } from '../textStyles';\n\nexport const createCustom3Plugin = createPluginFactory({\n key: TextStyles.ELEMENT_CUSTOM3,\n isElement: true,\n component: Custom3MarkupElementNode,\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAsB,EAAoB;AAAA,EACnD,KAAK,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AACf,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createCustom3Plugin';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import m from "react";
|
|
2
|
+
import { merge as a } from "../../../../../../../utilities/merge.es.js";
|
|
3
|
+
import { useRichTextEditorContext as i } from "../../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { alignmentClassnames as s } from "../alignment.es.js";
|
|
5
|
+
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
+
const { designTokens: r } = i(), e = t.align;
|
|
7
|
+
return /* @__PURE__ */ m.createElement("h1", {
|
|
8
|
+
...n,
|
|
9
|
+
className: a([e && s[e]]),
|
|
10
|
+
style: r.heading1
|
|
11
|
+
}, o);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
d as Heading1MarkupElementNode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Heading1MarkupElementNode.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading1MarkupElementNode.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/Heading1MarkupElementNode.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport { useRichTextEditorContext } from '../../../../../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../alignment';\n\nexport const Heading1MarkupElementNode = ({ element, attributes, children }: PlateRenderElementProps) => {\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,IAA4B,CAAC,EAAE,YAAS,eAAY,kBAAwC;AAC/F,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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createHeading1Plugin: <OP = import("@udecode/plate").AnyObject, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createPluginFactory as e } from "@udecode/plate";
|
|
2
|
+
import { Heading1MarkupElementNode as t } from "./Heading1MarkupElementNode.es.js";
|
|
3
|
+
import { TextStyles as r } from "../textStyles.es.js";
|
|
4
|
+
const a = e({
|
|
5
|
+
key: r.ELEMENT_HEADING1,
|
|
6
|
+
isElement: !0,
|
|
7
|
+
component: t,
|
|
8
|
+
deserializeHtml: {
|
|
9
|
+
rules: [{ validNodeName: ["h1", "H1"] }]
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
a as createHeading1Plugin
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=createHeading1Plugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHeading1Plugin.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading1Plugin/createHeading1Plugin.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { Heading1MarkupElementNode } from './Heading1MarkupElementNode';\nimport { TextStyles } from '../textStyles';\n\nexport const createHeading1Plugin = createPluginFactory({\n key: TextStyles.ELEMENT_HEADING1,\n isElement: true,\n component: Heading1MarkupElementNode,\n deserializeHtml: {\n rules: [{ validNodeName: ['h1', 'H1'] }],\n },\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAuB,EAAoB;AAAA,EACpD,KAAK,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,IAAI,GAAG;AAAA,EAC3C;AACJ,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createHeading1Plugin';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import m from "react";
|
|
2
|
+
import { merge as a } from "../../../../../../../utilities/merge.es.js";
|
|
3
|
+
import { useRichTextEditorContext as i } from "../../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { alignmentClassnames as s } from "../alignment.es.js";
|
|
5
|
+
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
+
const { designTokens: r } = i(), e = t.align;
|
|
7
|
+
return /* @__PURE__ */ m.createElement("h2", {
|
|
8
|
+
...n,
|
|
9
|
+
className: a([e && s[e]]),
|
|
10
|
+
style: r.heading2
|
|
11
|
+
}, o);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
d as Heading2MarkupElementNode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Heading2MarkupElementNode.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading2MarkupElementNode.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/Heading2MarkupElementNode.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport { useRichTextEditorContext } from '../../../../../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../alignment';\n\nexport const Heading2MarkupElementNode = ({ element, attributes, children }: PlateRenderElementProps) => {\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,IAA4B,CAAC,EAAE,YAAS,eAAY,kBAAwC;AAC/F,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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createHeading2Plugin: <OP = import("@udecode/plate").AnyObject, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createPluginFactory as e } from "@udecode/plate";
|
|
2
|
+
import { Heading2MarkupElementNode as t } from "./Heading2MarkupElementNode.es.js";
|
|
3
|
+
import { TextStyles as r } from "../textStyles.es.js";
|
|
4
|
+
const a = e({
|
|
5
|
+
key: r.ELEMENT_HEADING2,
|
|
6
|
+
isElement: !0,
|
|
7
|
+
component: t,
|
|
8
|
+
deserializeHtml: {
|
|
9
|
+
rules: [{ validNodeName: ["h2", "H2"] }]
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
a as createHeading2Plugin
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=createHeading2Plugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHeading2Plugin.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading2Plugin/createHeading2Plugin.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { Heading2MarkupElementNode } from './Heading2MarkupElementNode';\nimport { TextStyles } from '../textStyles';\n\nexport const createHeading2Plugin = createPluginFactory({\n key: TextStyles.ELEMENT_HEADING2,\n isElement: true,\n component: Heading2MarkupElementNode,\n deserializeHtml: {\n rules: [{ validNodeName: ['h2', 'H2'] }],\n },\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAuB,EAAoB;AAAA,EACpD,KAAK,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,IAAI,GAAG;AAAA,EAC3C;AACJ,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createHeading2Plugin';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import m from "react";
|
|
2
|
+
import { merge as a } from "../../../../../../../utilities/merge.es.js";
|
|
3
|
+
import { useRichTextEditorContext as i } from "../../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { alignmentClassnames as s } from "../alignment.es.js";
|
|
5
|
+
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
+
const { designTokens: r } = i(), e = t.align;
|
|
7
|
+
return /* @__PURE__ */ m.createElement("h3", {
|
|
8
|
+
...n,
|
|
9
|
+
className: a([e && s[e]]),
|
|
10
|
+
style: r.heading3
|
|
11
|
+
}, o);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
d as Heading3MarkupElementNode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Heading3MarkupElementNode.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading3MarkupElementNode.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/Heading3MarkupElementNode.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport { useRichTextEditorContext } from '../../../../../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../alignment';\n\nexport const Heading3MarkupElementNode = ({ element, attributes, children }: PlateRenderElementProps) => {\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,IAA4B,CAAC,EAAE,YAAS,eAAY,kBAAwC;AAC/F,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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createHeading3Plugin: <OP = import("@udecode/plate").AnyObject, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createPluginFactory as e } from "@udecode/plate";
|
|
2
|
+
import { Heading3MarkupElementNode as t } from "./Heading3MarkupElementNode.es.js";
|
|
3
|
+
import { TextStyles as r } from "../textStyles.es.js";
|
|
4
|
+
const a = e({
|
|
5
|
+
key: r.ELEMENT_HEADING3,
|
|
6
|
+
isElement: !0,
|
|
7
|
+
component: t,
|
|
8
|
+
deserializeHtml: {
|
|
9
|
+
rules: [{ validNodeName: ["h3", "H3"] }]
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
a as createHeading3Plugin
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=createHeading3Plugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHeading3Plugin.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading3Plugin/createHeading3Plugin.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { Heading3MarkupElementNode } from './Heading3MarkupElementNode';\nimport { TextStyles } from '../textStyles';\n\nexport const createHeading3Plugin = createPluginFactory({\n key: TextStyles.ELEMENT_HEADING3,\n isElement: true,\n component: Heading3MarkupElementNode,\n deserializeHtml: {\n rules: [{ validNodeName: ['h3', 'H3'] }],\n },\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAuB,EAAoB;AAAA,EACpD,KAAK,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,IAAI,GAAG;AAAA,EAC3C;AACJ,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createHeading3Plugin';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import m from "react";
|
|
2
|
+
import { merge as a } from "../../../../../../../utilities/merge.es.js";
|
|
3
|
+
import { useRichTextEditorContext as i } from "../../../../../context/RichTextEditorContext.es.js";
|
|
4
|
+
import { alignmentClassnames as s } from "../alignment.es.js";
|
|
5
|
+
const d = ({ element: t, attributes: n, children: o }) => {
|
|
6
|
+
const { designTokens: r } = i(), e = t.align;
|
|
7
|
+
return /* @__PURE__ */ m.createElement("h4", {
|
|
8
|
+
...n,
|
|
9
|
+
className: a([e && s[e]]),
|
|
10
|
+
style: r.heading4
|
|
11
|
+
}, o);
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
d as Heading4MarkupElementNode
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Heading4MarkupElementNode.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading4MarkupElementNode.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/Heading4MarkupElementNode.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { PlateRenderElementProps } from '@udecode/plate';\nimport { merge } from '@utilities/merge';\nimport { useRichTextEditorContext } from '../../../../../context/RichTextEditorContext';\nimport { alignmentClassnames } from '../alignment';\n\nexport const Heading4MarkupElementNode = ({ element, attributes, children }: PlateRenderElementProps) => {\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,IAA4B,CAAC,EAAE,YAAS,eAAY,kBAAwC;AAC/F,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;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createHeading4Plugin: <OP = import("@udecode/plate").AnyObject, OV extends import("@udecode/plate").Value = import("@udecode/plate").Value, OE extends import("@udecode/plate").PlateEditor<OV> = import("@udecode/plate").PlateEditor<OV>>(override?: Partial<import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>> | undefined, overrideByKey?: import("@udecode/plate").OverrideByKey<OV, OE> | undefined) => import("@udecode/plate").PlatePlugin<import("@udecode/plate").NoInfer<OP>, OV, OE>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createPluginFactory as e } from "@udecode/plate";
|
|
2
|
+
import { Heading4MarkupElementNode as t } from "./Heading4MarkupElementNode.es.js";
|
|
3
|
+
import { TextStyles as r } from "../textStyles.es.js";
|
|
4
|
+
const a = e({
|
|
5
|
+
key: r.ELEMENT_HEADING4,
|
|
6
|
+
isElement: !0,
|
|
7
|
+
component: t,
|
|
8
|
+
deserializeHtml: {
|
|
9
|
+
rules: [{ validNodeName: ["h4", "H4"] }]
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
a as createHeading4Plugin
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=createHeading4Plugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHeading4Plugin.es.js","sources":["../../../../../../../../src/components/RichTextEditor/EditorActions/Plugins/TextStylePlugin/TextStyles/Heading4Plugin/createHeading4Plugin.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { Heading4MarkupElementNode } from './Heading4MarkupElementNode';\nimport { TextStyles } from '../textStyles';\n\nexport const createHeading4Plugin = createPluginFactory({\n key: TextStyles.ELEMENT_HEADING4,\n isElement: true,\n component: Heading4MarkupElementNode,\n deserializeHtml: {\n rules: [{ validNodeName: ['h4', 'H4'] }],\n },\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAuB,EAAoB;AAAA,EACpD,KAAK,EAAW;AAAA,EAChB,WAAW;AAAA,EACX,WAAW;AAAA,EACX,iBAAiB;AAAA,IACb,OAAO,CAAC,EAAE,eAAe,CAAC,MAAM,IAAI,GAAG;AAAA,EAC3C;AACJ,CAAC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './createHeading4Plugin';
|