@frontify/fondue 12.0.0-beta.8 → 12.0.0-beta.9
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/ColorInputFlyout/ColorPickerFlyout.es.js +8 -7
- package/dist/components/ColorInputFlyout/ColorPickerFlyout.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/BoldPlugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/BoldPlugin/index.es.js +11 -7
- package/dist/components/RichTextEditor/Plugins/BoldPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/CheckboxListPlugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/CheckboxListPlugin/index.es.js +11 -8
- package/dist/components/RichTextEditor/Plugins/CheckboxListPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/CodePlugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/CodePlugin/index.es.js +16 -8
- package/dist/components/RichTextEditor/Plugins/CodePlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/ItalicPlugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/ItalicPlugin/index.es.js +12 -8
- package/dist/components/RichTextEditor/Plugins/ItalicPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/ListPlugin/ListItemContentMarkupElement.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/ListPlugin/ListItemContentMarkupElement.es.js +2 -1
- package/dist/components/RichTextEditor/Plugins/ListPlugin/ListItemContentMarkupElement.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/ListPlugin/ListItemMarkupElement.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/ListPlugin/ListItemMarkupElement.es.js +2 -1
- package/dist/components/RichTextEditor/Plugins/ListPlugin/ListItemMarkupElement.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/ListPlugin/OrderedListPlugin/index.d.ts +2 -0
- package/dist/components/RichTextEditor/Plugins/ListPlugin/OrderedListPlugin/index.es.js +12 -6
- package/dist/components/RichTextEditor/Plugins/ListPlugin/OrderedListPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/ListPlugin/UnorderedListPlugin/index.d.ts +2 -0
- package/dist/components/RichTextEditor/Plugins/ListPlugin/UnorderedListPlugin/index.es.js +12 -6
- package/dist/components/RichTextEditor/Plugins/ListPlugin/UnorderedListPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/MarkupElement.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/StrikethroughPlugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/StrikethroughPlugin/index.es.js +10 -6
- package/dist/components/RichTextEditor/Plugins/StrikethroughPlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/Plugins/UnderlinePlugin/index.d.ts +1 -0
- package/dist/components/RichTextEditor/Plugins/UnderlinePlugin/index.es.js +10 -6
- package/dist/components/RichTextEditor/Plugins/UnderlinePlugin/index.es.js.map +1 -1
- package/dist/components/RichTextEditor/serializer/serializeToHtml.es.js +12 -9
- package/dist/components/RichTextEditor/serializer/serializeToHtml.es.js.map +1 -1
- package/dist/components/RichTextEditor/serializer/utils/reactCssPropsToCss.es.js.map +1 -1
- package/dist/components/RichTextEditor/serializer/utils/serializeLeafToHtml.es.js +11 -13
- package/dist/components/RichTextEditor/serializer/utils/serializeLeafToHtml.es.js.map +1 -1
- package/dist/components/RichTextEditor/serializer/utils/serializeNodeToHtmlRecursive.d.ts +1 -1
- package/dist/components/RichTextEditor/serializer/utils/serializeNodeToHtmlRecursive.es.js +9 -10
- package/dist/components/RichTextEditor/serializer/utils/serializeNodeToHtmlRecursive.es.js.map +1 -1
- package/dist/components/RichTextEditor/serializer/utils/setDefaultDesignTokensIfNull.d.ts +1 -1
- package/dist/components/RichTextEditor/serializer/utils/setDefaultDesignTokensIfNull.es.js +5 -16
- package/dist/components/RichTextEditor/serializer/utils/setDefaultDesignTokensIfNull.es.js.map +1 -1
- package/dist/components/RichTextEditor/utils/deepMerge.d.ts +6 -0
- package/dist/components/RichTextEditor/utils/deepMerge.es.js +18 -0
- package/dist/components/RichTextEditor/utils/deepMerge.es.js.map +1 -0
- package/dist/components/RichTextEditor/utils/editorConfig.es.js +31 -31
- package/dist/components/RichTextEditor/utils/editorConfig.es.js.map +1 -1
- package/dist/components/RichTextEditor/utils/index.d.ts +1 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3565 -3527
- package/dist/index.es.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/components/bold.d.ts +0 -4
- package/dist/components/RichTextEditor/components/bold.es.js +0 -10
- package/dist/components/RichTextEditor/components/bold.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/code.d.ts +0 -4
- package/dist/components/RichTextEditor/components/code.es.js +0 -10
- package/dist/components/RichTextEditor/components/code.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/index.d.ts +0 -10
- package/dist/components/RichTextEditor/components/italic.d.ts +0 -4
- package/dist/components/RichTextEditor/components/italic.es.js +0 -10
- package/dist/components/RichTextEditor/components/italic.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/list-item-content.d.ts +0 -3
- package/dist/components/RichTextEditor/components/list-item-content.es.js +0 -8
- package/dist/components/RichTextEditor/components/list-item-content.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/list-item.d.ts +0 -3
- package/dist/components/RichTextEditor/components/list-item.es.js +0 -8
- package/dist/components/RichTextEditor/components/list-item.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/ordered-list.d.ts +0 -4
- package/dist/components/RichTextEditor/components/ordered-list.es.js +0 -10
- package/dist/components/RichTextEditor/components/ordered-list.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/strikethrough.d.ts +0 -4
- package/dist/components/RichTextEditor/components/strikethrough.es.js +0 -10
- package/dist/components/RichTextEditor/components/strikethrough.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/underline.d.ts +0 -4
- package/dist/components/RichTextEditor/components/underline.es.js +0 -10
- package/dist/components/RichTextEditor/components/underline.es.js.map +0 -1
- package/dist/components/RichTextEditor/components/unordered-list.d.ts +0 -4
- package/dist/components/RichTextEditor/components/unordered-list.es.js +0 -10
- package/dist/components/RichTextEditor/components/unordered-list.es.js.map +0 -1
|
@@ -1672,7 +1672,7 @@ import "react-popper";
|
|
|
1672
1672
|
import "react-colorful";
|
|
1673
1673
|
import { Flyout as w } from "../Flyout/Flyout.es.js";
|
|
1674
1674
|
import { ColorInputTrigger as x } from "./ColorPickerTrigger.es.js";
|
|
1675
|
-
const
|
|
1675
|
+
const CC = ({
|
|
1676
1676
|
id: c,
|
|
1677
1677
|
onClick: o,
|
|
1678
1678
|
onClose: m,
|
|
@@ -1684,7 +1684,7 @@ const HI = ({
|
|
|
1684
1684
|
onClear: e,
|
|
1685
1685
|
onDelete: p
|
|
1686
1686
|
}) => {
|
|
1687
|
-
const [a, r] = s(!1), [
|
|
1687
|
+
const [a, r] = s(!1), [n, F] = s(O.Hex), f = (l) => {
|
|
1688
1688
|
l || m == null || m(), r(l);
|
|
1689
1689
|
}, E = () => {
|
|
1690
1690
|
r(!1), o == null || o();
|
|
@@ -1693,15 +1693,16 @@ const HI = ({
|
|
|
1693
1693
|
hug: !1,
|
|
1694
1694
|
onConfirm: E,
|
|
1695
1695
|
isOpen: a,
|
|
1696
|
-
onCancel: () =>
|
|
1696
|
+
onCancel: () => f(!1),
|
|
1697
|
+
contentMinHeight: 300,
|
|
1697
1698
|
fixedHeader: /* @__PURE__ */ t.createElement(v, {
|
|
1698
1699
|
color: i || { red: 255, green: 255, blue: 255 }
|
|
1699
1700
|
}),
|
|
1700
|
-
onOpenChange:
|
|
1701
|
+
onOpenChange: f,
|
|
1701
1702
|
trigger: /* @__PURE__ */ t.createElement(x, {
|
|
1702
1703
|
isOpen: a,
|
|
1703
1704
|
currentColor: i,
|
|
1704
|
-
format:
|
|
1705
|
+
format: n,
|
|
1705
1706
|
disabled: d,
|
|
1706
1707
|
id: c,
|
|
1707
1708
|
clearable: h,
|
|
@@ -1713,7 +1714,7 @@ const HI = ({
|
|
|
1713
1714
|
} : void 0
|
|
1714
1715
|
})
|
|
1715
1716
|
}, /* @__PURE__ */ t.createElement(P, {
|
|
1716
|
-
currentFormat:
|
|
1717
|
+
currentFormat: n,
|
|
1717
1718
|
setFormat: F,
|
|
1718
1719
|
palettes: u,
|
|
1719
1720
|
showPreview: !1,
|
|
@@ -1722,6 +1723,6 @@ const HI = ({
|
|
|
1722
1723
|
}));
|
|
1723
1724
|
};
|
|
1724
1725
|
export {
|
|
1725
|
-
|
|
1726
|
+
CC as ColorPickerFlyout
|
|
1726
1727
|
};
|
|
1727
1728
|
//# sourceMappingURL=ColorPickerFlyout.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPickerFlyout.es.js","sources":["../../../src/components/ColorInputFlyout/ColorPickerFlyout.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { ColorPreview } from '@components/ColorPicker';\nimport { ColorPicker, ColorPickerProps } from '@components/ColorPicker/ColorPicker';\nimport { Flyout } from '@components/Flyout/Flyout';\nimport React, { FC, useState } from 'react';\nimport { Color, ColorFormat } from '../../types/colors';\nimport { ColorInputTrigger } from './ColorPickerTrigger';\n\nexport type ColorPickerFlyoutProps = Pick<ColorPickerProps, 'palettes' | 'onSelect'> & {\n id?: string;\n disabled?: boolean;\n onClick?: () => void;\n onClose?: () => void;\n currentColor: Color | null;\n clearable?: boolean;\n onClear?: () => void;\n onDelete?: () => void;\n};\n\nexport const ColorPickerFlyout: FC<ColorPickerFlyoutProps> = ({\n id,\n onClick,\n onClose,\n onSelect,\n currentColor,\n palettes,\n disabled = false,\n clearable = false,\n onClear,\n onDelete,\n}) => {\n const [open, setOpen] = useState(false);\n const [currentFormat, setCurrentFormat] = useState(ColorFormat.Hex);\n\n const handleOpenChange = (isOpen: boolean) => {\n if (!isOpen) {\n onClose?.();\n }\n setOpen(isOpen);\n };\n\n const handleClick = () => {\n setOpen(false);\n onClick?.();\n };\n\n return (\n <Flyout\n hug={false}\n onConfirm={handleClick}\n isOpen={open}\n onCancel={() => handleOpenChange(false)}\n fixedHeader={<ColorPreview color={currentColor || { red: 255, green: 255, blue: 255 }} />}\n onOpenChange={handleOpenChange}\n trigger={\n <ColorInputTrigger\n isOpen={open}\n currentColor={currentColor}\n format={currentFormat}\n disabled={disabled}\n id={id}\n clearable={clearable}\n onClear={() => {\n setOpen(false);\n onClear && onClear();\n }}\n onDelete={\n onDelete\n ? () => {\n setOpen(false);\n onDelete && onDelete();\n }\n : undefined\n }\n />\n }\n >\n <ColorPicker\n currentFormat={currentFormat}\n setFormat={setCurrentFormat}\n palettes={palettes}\n showPreview={false}\n currentColor={currentColor || { red: 255, green: 255, blue: 255 }}\n onSelect={onSelect}\n />\n </Flyout>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,KAAgD,CAAC;AAAA,EAC1D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAW;AAAA,EACX,eAAY;AAAA,EACZ;AAAA,EACA;AAAA,MACE;AACF,QAAM,CAAC,GAAM,KAAW,EAAS,EAAK,GAChC,CAAC,GAAe,KAAoB,EAAS,EAAY,GAAG,GAE5D,IAAmB,CAAC,MAAoB;AAC1C,IAAK,KACS,kBAEd,EAAQ,CAAM;AAAA,EAAA,GAGZ,IAAc,MAAM;AACtB,MAAQ,EAAK,GACH;AAAA,EAAA;AAGd,SACK,kBAAA,cAAA,GAAA;AAAA,IACG,KAAK;AAAA,IACL,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,UAAU,MAAM,EAAiB,EAAK;AAAA,IACtC,aAAc,kBAAA,cAAA,GAAA;AAAA,MAAa,OAAO,KAAgB,EAAE,KAAK,KAAK,OAAO,KAAK,MAAM,IAAI;AAAA,IAAA,CAAG;AAAA,IACvF,cAAc;AAAA,IACd,SACK,kBAAA,cAAA,GAAA;AAAA,MACG,QAAQ;AAAA,MACR;AAAA,MACA,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS,MAAM;AACX,UAAQ,EAAK,GACb,KAAW,EAAQ;AAAA,MACvB;AAAA,MACA,UACI,IACM,MAAM;AACF,UAAQ,EAAK,GACb,KAAY,EAAS;AAAA,MAEzB,IAAA;AAAA,IAAA,CAEd;AAAA,EAAA,GAGH,kBAAA,cAAA,GAAA;AAAA,IACG;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,aAAa;AAAA,IACb,cAAc,KAAgB,EAAE,KAAK,KAAK,OAAO,KAAK,MAAM,IAAI;AAAA,IAChE;AAAA,EACJ,CAAA,CACJ;AAER;"}
|
|
1
|
+
{"version":3,"file":"ColorPickerFlyout.es.js","sources":["../../../src/components/ColorInputFlyout/ColorPickerFlyout.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { ColorPreview } from '@components/ColorPicker';\nimport { ColorPicker, ColorPickerProps } from '@components/ColorPicker/ColorPicker';\nimport { Flyout } from '@components/Flyout/Flyout';\nimport React, { FC, useState } from 'react';\nimport { Color, ColorFormat } from '../../types/colors';\nimport { ColorInputTrigger } from './ColorPickerTrigger';\n\nexport type ColorPickerFlyoutProps = Pick<ColorPickerProps, 'palettes' | 'onSelect'> & {\n id?: string;\n disabled?: boolean;\n onClick?: () => void;\n onClose?: () => void;\n currentColor: Color | null;\n clearable?: boolean;\n onClear?: () => void;\n onDelete?: () => void;\n};\n\nexport const ColorPickerFlyout: FC<ColorPickerFlyoutProps> = ({\n id,\n onClick,\n onClose,\n onSelect,\n currentColor,\n palettes,\n disabled = false,\n clearable = false,\n onClear,\n onDelete,\n}) => {\n const [open, setOpen] = useState(false);\n const [currentFormat, setCurrentFormat] = useState(ColorFormat.Hex);\n\n const handleOpenChange = (isOpen: boolean) => {\n if (!isOpen) {\n onClose?.();\n }\n setOpen(isOpen);\n };\n\n const handleClick = () => {\n setOpen(false);\n onClick?.();\n };\n\n return (\n <Flyout\n hug={false}\n onConfirm={handleClick}\n isOpen={open}\n onCancel={() => handleOpenChange(false)}\n contentMinHeight={300}\n fixedHeader={<ColorPreview color={currentColor || { red: 255, green: 255, blue: 255 }} />}\n onOpenChange={handleOpenChange}\n trigger={\n <ColorInputTrigger\n isOpen={open}\n currentColor={currentColor}\n format={currentFormat}\n disabled={disabled}\n id={id}\n clearable={clearable}\n onClear={() => {\n setOpen(false);\n onClear && onClear();\n }}\n onDelete={\n onDelete\n ? () => {\n setOpen(false);\n onDelete && onDelete();\n }\n : undefined\n }\n />\n }\n >\n <ColorPicker\n currentFormat={currentFormat}\n setFormat={setCurrentFormat}\n palettes={palettes}\n showPreview={false}\n currentColor={currentColor || { red: 255, green: 255, blue: 255 }}\n onSelect={onSelect}\n />\n </Flyout>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,MAAM,KAAgD,CAAC;AAAA,EAC1D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAW;AAAA,EACX,eAAY;AAAA,EACZ;AAAA,EACA;AAAA,MACE;AACF,QAAM,CAAC,GAAM,KAAW,EAAS,EAAK,GAChC,CAAC,GAAe,KAAoB,EAAS,EAAY,GAAG,GAE5D,IAAmB,CAAC,MAAoB;AAC1C,IAAK,KACS,kBAEd,EAAQ,CAAM;AAAA,EAAA,GAGZ,IAAc,MAAM;AACtB,MAAQ,EAAK,GACH;AAAA,EAAA;AAGd,SACK,kBAAA,cAAA,GAAA;AAAA,IACG,KAAK;AAAA,IACL,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,UAAU,MAAM,EAAiB,EAAK;AAAA,IACtC,kBAAkB;AAAA,IAClB,aAAc,kBAAA,cAAA,GAAA;AAAA,MAAa,OAAO,KAAgB,EAAE,KAAK,KAAK,OAAO,KAAK,MAAM,IAAI;AAAA,IAAA,CAAG;AAAA,IACvF,cAAc;AAAA,IACd,SACK,kBAAA,cAAA,GAAA;AAAA,MACG,QAAQ;AAAA,MACR;AAAA,MACA,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS,MAAM;AACX,UAAQ,EAAK,GACb,KAAW,EAAQ;AAAA,MACvB;AAAA,MACA,UACI,IACM,MAAM;AACF,UAAQ,EAAK,GACb,KAAY,EAAS;AAAA,MAEzB,IAAA;AAAA,IAAA,CAEd;AAAA,EAAA,GAGH,kBAAA,cAAA,GAAA;AAAA,IACG;AAAA,IACA,WAAW;AAAA,IACX;AAAA,IACA,aAAa;AAAA,IACb,cAAc,KAAgB,EAAE,KAAK,KAAK,OAAO,KAAK,MAAM,IAAI;AAAA,IAChE;AAAA,EACJ,CAAA,CACJ;AAER;"}
|
|
@@ -3,3 +3,4 @@ export declare class BoldPlugin extends Plugin {
|
|
|
3
3
|
constructor(props?: PluginProps);
|
|
4
4
|
plugins(): import("@udecode/plate").PlatePlugin<import("@udecode/plate").ToggleMarkPlugin<import("@udecode/plate").Value, keyof import("@udecode/plate").TText>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>[];
|
|
5
5
|
}
|
|
6
|
+
export * from './BoldMarkupElement';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createBoldPlugin as r } from "@udecode/plate";
|
|
2
2
|
import { BOLD_PLUGIN as t } from "./id.es.js";
|
|
3
|
-
import { BoldMarkupElement as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
3
|
+
import { BoldMarkupElement as e } from "./BoldMarkupElement.es.js";
|
|
4
|
+
import { BOLD_CLASSES as E, BoldMarkupElement as c, BoldMarkupElementNode as g } from "./BoldMarkupElement.es.js";
|
|
5
|
+
import { BoldButton as m } from "./BoldButton.es.js";
|
|
6
|
+
import { Plugin as l } from "../Plugin.es.js";
|
|
7
|
+
class a extends l {
|
|
7
8
|
constructor(o) {
|
|
8
9
|
super(t, {
|
|
9
|
-
button:
|
|
10
|
-
markupElement: new
|
|
10
|
+
button: m,
|
|
11
|
+
markupElement: new e(),
|
|
11
12
|
...o
|
|
12
13
|
});
|
|
13
14
|
}
|
|
@@ -16,6 +17,9 @@ class d extends n {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
E as BOLD_CLASSES,
|
|
21
|
+
c as BoldMarkupElement,
|
|
22
|
+
g as BoldMarkupElementNode,
|
|
23
|
+
a as BoldPlugin
|
|
20
24
|
};
|
|
21
25
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/BoldPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createBoldPlugin } from '@udecode/plate';\nimport { BOLD_PLUGIN } from './id';\nimport { BoldMarkupElement } from './BoldMarkupElement';\nimport { BoldButton } from './BoldButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class BoldPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(BOLD_PLUGIN, {\n button: BoldButton,\n markupElement: new BoldMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createBoldPlugin()];\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/BoldPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createBoldPlugin } from '@udecode/plate';\nimport { BOLD_PLUGIN } from './id';\nimport { BoldMarkupElement } from './BoldMarkupElement';\nimport { BoldButton } from './BoldButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class BoldPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(BOLD_PLUGIN, {\n button: BoldButton,\n markupElement: new BoldMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createBoldPlugin()];\n }\n}\n\nexport * from './BoldMarkupElement';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,UAAmB,EAAO;AAAA,EACnC,YAAY,GAAqB;AAC7B,UAAM,GAAa;AAAA,MACf,QAAQ;AAAA,MACR,eAAe,IAAI,EAAkB;AAAA,MACrC,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AAAA,EAEA,UAAU;AACC,WAAA,CAAC,GAAkB;AAAA,EAC9B;AACJ;"}
|
|
@@ -4,3 +4,4 @@ export declare class CheckboxListPlugin extends Plugin {
|
|
|
4
4
|
constructor(props?: PluginProps);
|
|
5
5
|
plugins(): import("@udecode/plate").PlatePlugin<import("@udecode/plate").AnyObject, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>[];
|
|
6
6
|
}
|
|
7
|
+
export * from './id';
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
import { createPluginFactory as e } from "@udecode/plate";
|
|
2
2
|
import { ELEMENT_CHECK_ITEM as o, CHECKBOX_LIST_PLUGIN as r } from "./id.es.js";
|
|
3
|
+
import { CHECKBOX_LIST_PLUGIN as f, ELEMENT_CHECK_ITEM as k } from "./id.es.js";
|
|
3
4
|
import { CheckboxListElement as i } from "./CheckboxListElement.es.js";
|
|
4
|
-
import { CheckboxListButton as
|
|
5
|
-
import { Plugin as
|
|
6
|
-
const
|
|
5
|
+
import { CheckboxListButton as m } from "./CheckboxListButton/index.es.js";
|
|
6
|
+
import { Plugin as n } from "../Plugin.es.js";
|
|
7
|
+
const E = e({
|
|
7
8
|
key: o,
|
|
8
9
|
isElement: !0
|
|
9
10
|
});
|
|
10
|
-
class
|
|
11
|
+
class l extends n {
|
|
11
12
|
constructor(t) {
|
|
12
13
|
super(r, {
|
|
13
|
-
button:
|
|
14
|
+
button: m,
|
|
14
15
|
markupElement: new i(),
|
|
15
16
|
...t
|
|
16
17
|
});
|
|
17
18
|
}
|
|
18
19
|
plugins() {
|
|
19
|
-
return [
|
|
20
|
+
return [E()];
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
f as CHECKBOX_LIST_PLUGIN,
|
|
25
|
+
l as CheckboxListPlugin,
|
|
26
|
+
k as ELEMENT_CHECK_ITEM,
|
|
27
|
+
E as createCheckboxListPlugin
|
|
25
28
|
};
|
|
26
29
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/CheckboxListPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { CHECKBOX_LIST_PLUGIN, ELEMENT_CHECK_ITEM } from './id';\nimport { CheckboxListElement } from './CheckboxListElement';\nimport { CheckboxListButton } from './CheckboxListButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport const createCheckboxListPlugin = createPluginFactory({\n key: ELEMENT_CHECK_ITEM,\n isElement: true,\n});\n\nexport class CheckboxListPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(CHECKBOX_LIST_PLUGIN, {\n button: CheckboxListButton,\n markupElement: new CheckboxListElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createCheckboxListPlugin()];\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/CheckboxListPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createPluginFactory } from '@udecode/plate';\nimport { CHECKBOX_LIST_PLUGIN, ELEMENT_CHECK_ITEM } from './id';\nimport { CheckboxListElement } from './CheckboxListElement';\nimport { CheckboxListButton } from './CheckboxListButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport const createCheckboxListPlugin = createPluginFactory({\n key: ELEMENT_CHECK_ITEM,\n isElement: true,\n});\n\nexport class CheckboxListPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(CHECKBOX_LIST_PLUGIN, {\n button: CheckboxListButton,\n markupElement: new CheckboxListElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createCheckboxListPlugin()];\n }\n}\n\nexport * from './id';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,IAA2B,EAAoB;AAAA,EACxD,KAAK;AAAA,EACL,WAAW;AACf,CAAC;AAEM,MAAM,UAA2B,EAAO;AAAA,EAC3C,YAAY,GAAqB;AAC7B,UAAM,GAAsB;AAAA,MACxB,QAAQ;AAAA,MACR,eAAe,IAAI,EAAoB;AAAA,MACvC,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AAAA,EAEA,UAAU;AACC,WAAA,CAAC,GAA0B;AAAA,EACtC;AACJ;"}
|
|
@@ -3,3 +3,4 @@ export declare class CodePlugin extends Plugin {
|
|
|
3
3
|
constructor(props?: PluginProps);
|
|
4
4
|
plugins(): import("@udecode/plate").PlatePlugin<import("@udecode/plate").ToggleMarkPlugin<import("@udecode/plate").Value, keyof import("@udecode/plate").TText>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>[];
|
|
5
5
|
}
|
|
6
|
+
export * from './CodeMarkupElement';
|
|
@@ -1,17 +1,25 @@
|
|
|
1
|
-
import { createCodePlugin as
|
|
2
|
-
import { CODE_PLUGIN as
|
|
3
|
-
import { CodeMarkupElement as
|
|
1
|
+
import { createCodePlugin as o } from "@udecode/plate";
|
|
2
|
+
import { CODE_PLUGIN as r } from "./id.es.js";
|
|
3
|
+
import { CodeMarkupElement as t } from "./CodeMarkupElement.es.js";
|
|
4
|
+
import { CODE_CLASSES as s, CodeMarkupElement as c, CodeMarkupElementNode as g } from "./CodeMarkupElement.es.js";
|
|
4
5
|
import { CodeButton as m } from "./CodeButton.es.js";
|
|
5
6
|
import { Plugin as n } from "../Plugin.es.js";
|
|
6
|
-
class
|
|
7
|
-
constructor(
|
|
8
|
-
super(
|
|
7
|
+
class E extends n {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
super(r, {
|
|
10
|
+
button: m,
|
|
11
|
+
markupElement: new t(),
|
|
12
|
+
...e
|
|
13
|
+
});
|
|
9
14
|
}
|
|
10
15
|
plugins() {
|
|
11
|
-
return [
|
|
16
|
+
return [o()];
|
|
12
17
|
}
|
|
13
18
|
}
|
|
14
19
|
export {
|
|
15
|
-
|
|
20
|
+
s as CODE_CLASSES,
|
|
21
|
+
c as CodeMarkupElement,
|
|
22
|
+
g as CodeMarkupElementNode,
|
|
23
|
+
E as CodePlugin
|
|
16
24
|
};
|
|
17
25
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/CodePlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createCodePlugin } from '@udecode/plate';\nimport { CODE_PLUGIN } from './id';\nimport { CodeMarkupElement } from './CodeMarkupElement';\nimport { CodeButton } from './CodeButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class CodePlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(CODE_PLUGIN, {
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/CodePlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createCodePlugin } from '@udecode/plate';\nimport { CODE_PLUGIN } from './id';\nimport { CodeMarkupElement } from './CodeMarkupElement';\nimport { CodeButton } from './CodeButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class CodePlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(CODE_PLUGIN, {\n button: CodeButton,\n markupElement: new CodeMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createCodePlugin()];\n }\n}\n\nexport * from './CodeMarkupElement';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,UAAmB,EAAO;AAAA,EACnC,YAAY,GAAqB;AAC7B,UAAM,GAAa;AAAA,MACf,QAAQ;AAAA,MACR,eAAe,IAAI,EAAkB;AAAA,MACrC,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AAAA,EAEA,UAAU;AACC,WAAA,CAAC,GAAkB;AAAA,EAC9B;AACJ;"}
|
|
@@ -3,3 +3,4 @@ export declare class ItalicPlugin extends Plugin {
|
|
|
3
3
|
constructor(props?: PluginProps);
|
|
4
4
|
plugins(): import("@udecode/plate").PlatePlugin<import("@udecode/plate").ToggleMarkPlugin<import("@udecode/plate").Value, keyof import("@udecode/plate").TText>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>[];
|
|
5
5
|
}
|
|
6
|
+
export * from './ItalicMarkupElement';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createItalicPlugin as r } from "@udecode/plate";
|
|
2
|
-
import { ITALIC_PLUGIN as
|
|
3
|
-
import { ItalicMarkupElement as
|
|
2
|
+
import { ITALIC_PLUGIN as e } from "./id.es.js";
|
|
3
|
+
import { ItalicMarkupElement as o } from "./ItalicMarkupElement.es.js";
|
|
4
|
+
import { ITALIC_CLASSES as E, ItalicMarkupElement as g, ItalicMarkupElementNode as k } from "./ItalicMarkupElement.es.js";
|
|
4
5
|
import { Plugin as m } from "../Plugin.es.js";
|
|
5
|
-
import { ItalicButton as
|
|
6
|
-
class
|
|
6
|
+
import { ItalicButton as i } from "./ItalicButton.es.js";
|
|
7
|
+
class c extends m {
|
|
7
8
|
constructor(t) {
|
|
8
|
-
super(
|
|
9
|
-
button:
|
|
10
|
-
markupElement: new
|
|
9
|
+
super(e, {
|
|
10
|
+
button: i,
|
|
11
|
+
markupElement: new o(),
|
|
11
12
|
...t
|
|
12
13
|
});
|
|
13
14
|
}
|
|
@@ -16,6 +17,9 @@ class I extends m {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
E as ITALIC_CLASSES,
|
|
21
|
+
g as ItalicMarkupElement,
|
|
22
|
+
k as ItalicMarkupElementNode,
|
|
23
|
+
c as ItalicPlugin
|
|
20
24
|
};
|
|
21
25
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/ItalicPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createItalicPlugin } from '@udecode/plate';\nimport { ITALIC_PLUGIN } from './id';\nimport { ItalicMarkupElement } from './ItalicMarkupElement';\nimport { Plugin, PluginProps } from '../Plugin';\nimport { ItalicButton } from './ItalicButton';\n\nexport class ItalicPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(ITALIC_PLUGIN, {\n button: ItalicButton,\n markupElement: new ItalicMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createItalicPlugin()];\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/ItalicPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createItalicPlugin } from '@udecode/plate';\nimport { ITALIC_PLUGIN } from './id';\nimport { ItalicMarkupElement } from './ItalicMarkupElement';\nimport { Plugin, PluginProps } from '../Plugin';\nimport { ItalicButton } from './ItalicButton';\n\nexport class ItalicPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(ITALIC_PLUGIN, {\n button: ItalicButton,\n markupElement: new ItalicMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createItalicPlugin()];\n }\n}\n\nexport * from './ItalicMarkupElement';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,UAAqB,EAAO;AAAA,EACrC,YAAY,GAAqB;AAC7B,UAAM,GAAe;AAAA,MACjB,QAAQ;AAAA,MACR,eAAe,IAAI,EAAoB;AAAA,MACvC,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AAAA,EAEA,UAAU;AACC,WAAA,CAAC,GAAoB;AAAA,EAChC;AACJ;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PlateRenderElementProps } from '@udecode/plate';
|
|
3
3
|
import { MarkupElement } from '../MarkupElement';
|
|
4
|
+
export declare const ListItemContentMarkupElementNode: ({ attributes, children }: PlateRenderElementProps) => JSX.Element;
|
|
4
5
|
export declare class ListItemContentMarkupElement extends MarkupElement {
|
|
5
6
|
constructor(id?: string, node?: ({ attributes, children }: PlateRenderElementProps<import("@udecode/plate").Value, import("@udecode/plate").TElement>) => JSX.Element);
|
|
6
7
|
}
|
package/dist/components/RichTextEditor/Plugins/ListPlugin/ListItemContentMarkupElement.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemContentMarkupElement.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/ListPlugin/ListItemContentMarkupElement.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { ELEMENT_LIC, PlateRenderElementProps } from '@udecode/plate';\nimport { MarkupElement } from '../MarkupElement';\n\
|
|
1
|
+
{"version":3,"file":"ListItemContentMarkupElement.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/ListPlugin/ListItemContentMarkupElement.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { ELEMENT_LIC, PlateRenderElementProps } from '@udecode/plate';\nimport { MarkupElement } from '../MarkupElement';\n\nexport const ListItemContentMarkupElementNode = ({ attributes, children }: PlateRenderElementProps) => (\n <span {...attributes}>{children}</span>\n);\n\nexport class ListItemContentMarkupElement extends MarkupElement {\n constructor(id = ELEMENT_LIC, node = ListItemContentMarkupElementNode) {\n super(id, node);\n }\n}\n"],"names":[],"mappings":";;;AAMO,MAAM,IAAmC,CAAC,EAAE,eAAY,kBAC1D,kBAAA,cAAA,QAAA;AAAA,EAAM,GAAG;AAAA,GAAa,CAAS;AAG7B,MAAM,UAAqC,EAAc;AAAA,EAC5D,YAAY,IAAK,GAAa,IAAO,GAAkC;AACnE,UAAM,GAAI,CAAI;AAAA,EAClB;AACJ;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { PlateRenderElementProps } from '@udecode/plate';
|
|
3
3
|
import { MarkupElement } from '../MarkupElement';
|
|
4
|
+
export declare const ListItemMarkupElementNode: ({ attributes, children }: PlateRenderElementProps) => JSX.Element;
|
|
4
5
|
export declare class ListItemMarkupElement extends MarkupElement {
|
|
5
6
|
constructor(id?: string, node?: ({ attributes, children }: PlateRenderElementProps<import("@udecode/plate").Value, import("@udecode/plate").TElement>) => JSX.Element);
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemMarkupElement.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/ListPlugin/ListItemMarkupElement.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { ELEMENT_LI, PlateRenderElementProps } from '@udecode/plate';\nimport { MarkupElement } from '../MarkupElement';\n\
|
|
1
|
+
{"version":3,"file":"ListItemMarkupElement.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/ListPlugin/ListItemMarkupElement.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport React from 'react';\nimport { ELEMENT_LI, PlateRenderElementProps } from '@udecode/plate';\nimport { MarkupElement } from '../MarkupElement';\n\nexport const ListItemMarkupElementNode = ({ attributes, children }: PlateRenderElementProps) => (\n <li {...attributes}>{children}</li>\n);\n\nexport class ListItemMarkupElement extends MarkupElement {\n constructor(id = ELEMENT_LI, node = ListItemMarkupElementNode) {\n super(id, node);\n }\n}\n"],"names":[],"mappings":";;;AAMO,MAAM,IAA4B,CAAC,EAAE,eAAY,kBACnD,kBAAA,cAAA,MAAA;AAAA,EAAI,GAAG;AAAA,GAAa,CAAS;AAG3B,MAAM,UAA8B,EAAc;AAAA,EACrD,YAAY,IAAK,GAAY,IAAO,GAA2B;AAC3D,UAAM,GAAI,CAAI;AAAA,EAClB;AACJ;"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { LIST_PLUGIN as
|
|
2
|
-
import { OrderedListMarkupElement as
|
|
1
|
+
import { LIST_PLUGIN as e } from "../id.es.js";
|
|
2
|
+
import { OrderedListMarkupElement as t } from "./OrderedListMarkupElement.es.js";
|
|
3
|
+
import { OL_CLASSES as O, OrderedListMarkupElement as f, OrderedListMarkupElementNode as a } from "./OrderedListMarkupElement.es.js";
|
|
3
4
|
import { OrderedListButton as o } from "./OrderedListButton.es.js";
|
|
4
|
-
import {
|
|
5
|
-
|
|
5
|
+
import { OrderedListButton as k } from "./OrderedListButton.es.js";
|
|
6
|
+
import { ListPlugin as d } from "../ListPlugin.es.js";
|
|
7
|
+
class u extends d {
|
|
6
8
|
constructor(r) {
|
|
7
9
|
super({
|
|
8
|
-
id:
|
|
10
|
+
id: e,
|
|
9
11
|
button: o,
|
|
10
|
-
markupElement: new
|
|
12
|
+
markupElement: new t(),
|
|
11
13
|
...r
|
|
12
14
|
});
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
export {
|
|
18
|
+
O as OL_CLASSES,
|
|
19
|
+
k as OrderedListButton,
|
|
20
|
+
f as OrderedListMarkupElement,
|
|
21
|
+
a as OrderedListMarkupElementNode,
|
|
16
22
|
u as OrderedListPlugin
|
|
17
23
|
};
|
|
18
24
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../../src/components/RichTextEditor/Plugins/ListPlugin/OrderedListPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { LIST_PLUGIN } from '../id';\nimport { OrderedListMarkupElement } from './OrderedListMarkupElement';\nimport { OrderedListButton } from './OrderedListButton';\nimport { ListPlugin } from '../ListPlugin';\nimport { PluginProps } from '../../Plugin';\n\nexport class OrderedListPlugin extends ListPlugin {\n constructor(props?: PluginProps) {\n super({\n id: LIST_PLUGIN,\n button: OrderedListButton,\n markupElement: new OrderedListMarkupElement(),\n ...props,\n });\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../src/components/RichTextEditor/Plugins/ListPlugin/OrderedListPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { LIST_PLUGIN } from '../id';\nimport { OrderedListMarkupElement } from './OrderedListMarkupElement';\nimport { OrderedListButton } from './OrderedListButton';\nimport { ListPlugin } from '../ListPlugin';\nimport { PluginProps } from '../../Plugin';\n\nexport class OrderedListPlugin extends ListPlugin {\n constructor(props?: PluginProps) {\n super({\n id: LIST_PLUGIN,\n button: OrderedListButton,\n markupElement: new OrderedListMarkupElement(),\n ...props,\n });\n }\n}\n\nexport * from './OrderedListButton';\nexport * from './OrderedListMarkupElement';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,UAA0B,EAAW;AAAA,EAC9C,YAAY,GAAqB;AACvB,UAAA;AAAA,MACF,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,eAAe,IAAI,EAAyB;AAAA,MAC5C,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AACJ;"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
import { LIST_PLUGIN as
|
|
2
|
-
import { UnorderedListMarkupElement as
|
|
3
|
-
import {
|
|
1
|
+
import { LIST_PLUGIN as e } from "../id.es.js";
|
|
2
|
+
import { UnorderedListMarkupElement as t } from "./UnorderedListMarkupElement.es.js";
|
|
3
|
+
import { UL_CLASSES as l, UnorderedListMarkupElement as f, UnorderedListMarkupElementNode as a } from "./UnorderedListMarkupElement.es.js";
|
|
4
|
+
import { UnorderedListButton as o } from "./UnorderedListButton.es.js";
|
|
5
|
+
import { UnorderedListButton as k } from "./UnorderedListButton.es.js";
|
|
4
6
|
import { ListPlugin as n } from "../ListPlugin.es.js";
|
|
5
7
|
class u extends n {
|
|
6
8
|
constructor(r) {
|
|
7
9
|
super({
|
|
8
|
-
id:
|
|
9
|
-
button:
|
|
10
|
-
markupElement: new
|
|
10
|
+
id: e,
|
|
11
|
+
button: o,
|
|
12
|
+
markupElement: new t(),
|
|
11
13
|
...r
|
|
12
14
|
});
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
export {
|
|
18
|
+
l as UL_CLASSES,
|
|
19
|
+
k as UnorderedListButton,
|
|
20
|
+
f as UnorderedListMarkupElement,
|
|
21
|
+
a as UnorderedListMarkupElementNode,
|
|
16
22
|
u as UnorderedListPlugin
|
|
17
23
|
};
|
|
18
24
|
//# sourceMappingURL=index.es.js.map
|
package/dist/components/RichTextEditor/Plugins/ListPlugin/UnorderedListPlugin/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../../src/components/RichTextEditor/Plugins/ListPlugin/UnorderedListPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { LIST_PLUGIN } from '../id';\nimport { UnorderedListMarkupElement } from './UnorderedListMarkupElement';\nimport { UnorderedListButton } from './UnorderedListButton';\nimport { ListPlugin } from '../ListPlugin';\nimport { PluginProps } from '../../Plugin';\n\nexport class UnorderedListPlugin extends ListPlugin {\n constructor(props?: PluginProps) {\n super({\n id: LIST_PLUGIN,\n button: UnorderedListButton,\n markupElement: new UnorderedListMarkupElement(),\n ...props,\n });\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../../src/components/RichTextEditor/Plugins/ListPlugin/UnorderedListPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { LIST_PLUGIN } from '../id';\nimport { UnorderedListMarkupElement } from './UnorderedListMarkupElement';\nimport { UnorderedListButton } from './UnorderedListButton';\nimport { ListPlugin } from '../ListPlugin';\nimport { PluginProps } from '../../Plugin';\n\nexport class UnorderedListPlugin extends ListPlugin {\n constructor(props?: PluginProps) {\n super({\n id: LIST_PLUGIN,\n button: UnorderedListButton,\n markupElement: new UnorderedListMarkupElement(),\n ...props,\n });\n }\n}\n\nexport * from './UnorderedListButton';\nexport * from './UnorderedListMarkupElement';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,UAA4B,EAAW;AAAA,EAChD,YAAY,GAAqB;AACvB,UAAA;AAAA,MACF,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,eAAe,IAAI,EAA2B;AAAA,MAC9C,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AACJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkupElement.es.js","sources":["../../../../src/components/RichTextEditor/Plugins/MarkupElement.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlatePluginComponent } from '@udecode/plate';\n\nexport class MarkupElement {\n constructor(readonly id: string, readonly node?: PlatePluginComponent
|
|
1
|
+
{"version":3,"file":"MarkupElement.es.js","sources":["../../../../src/components/RichTextEditor/Plugins/MarkupElement.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { PlatePluginComponent } from '@udecode/plate';\n\nexport class MarkupElement {\n constructor(readonly id: string, readonly node?: PlatePluginComponent) {}\n}\n"],"names":[],"mappings":"AAIO,MAAM,EAAc;AAAA,EACvB,YAAqB,GAAqB,GAA6B;AAAlD,SAAA,KAAA,GAAqB,KAAA,OAAA;AAAA,EAA8B;AAC5E;"}
|
|
@@ -3,3 +3,4 @@ export declare class StrikethroughPlugin extends Plugin {
|
|
|
3
3
|
constructor(props?: PluginProps);
|
|
4
4
|
plugins(): import("@udecode/plate").PlatePlugin<import("@udecode/plate").ToggleMarkPlugin<import("@udecode/plate").Value, keyof import("@udecode/plate").TText>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>[];
|
|
5
5
|
}
|
|
6
|
+
export * from './StrikethroughMarkupElement';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createStrikethroughPlugin as t } from "@udecode/plate";
|
|
2
|
-
import { STRIKETHROUGH_PLUGIN as
|
|
3
|
-
import { StrikethroughMarkupElement as
|
|
2
|
+
import { STRIKETHROUGH_PLUGIN as e } from "./id.es.js";
|
|
3
|
+
import { StrikethroughMarkupElement as o } from "./StrikethroughMarkupElement.es.js";
|
|
4
|
+
import { STRIKETHROUGH_CLASSES as a, StrikethroughMarkupElement as f, StrikethroughMarkupElementNode as s } from "./StrikethroughMarkupElement.es.js";
|
|
4
5
|
import { StrikethroughButton as u } from "./StrikethroughButton.es.js";
|
|
5
|
-
import { Plugin as
|
|
6
|
-
class k extends
|
|
6
|
+
import { Plugin as m } from "../Plugin.es.js";
|
|
7
|
+
class k extends m {
|
|
7
8
|
constructor(r) {
|
|
8
|
-
super(
|
|
9
|
+
super(e, {
|
|
9
10
|
button: u,
|
|
10
|
-
markupElement: new
|
|
11
|
+
markupElement: new o(),
|
|
11
12
|
...r
|
|
12
13
|
});
|
|
13
14
|
}
|
|
@@ -16,6 +17,9 @@ class k extends i {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
20
|
+
a as STRIKETHROUGH_CLASSES,
|
|
21
|
+
f as StrikethroughMarkupElement,
|
|
22
|
+
s as StrikethroughMarkupElementNode,
|
|
19
23
|
k as StrikethroughPlugin
|
|
20
24
|
};
|
|
21
25
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/StrikethroughPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createStrikethroughPlugin } from '@udecode/plate';\nimport { STRIKETHROUGH_PLUGIN } from './id';\nimport { StrikethroughMarkupElement } from './StrikethroughMarkupElement';\nimport { StrikethroughButton } from './StrikethroughButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class StrikethroughPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(STRIKETHROUGH_PLUGIN, {\n button: StrikethroughButton,\n markupElement: new StrikethroughMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createStrikethroughPlugin()];\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/StrikethroughPlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createStrikethroughPlugin } from '@udecode/plate';\nimport { STRIKETHROUGH_PLUGIN } from './id';\nimport { StrikethroughMarkupElement } from './StrikethroughMarkupElement';\nimport { StrikethroughButton } from './StrikethroughButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class StrikethroughPlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(STRIKETHROUGH_PLUGIN, {\n button: StrikethroughButton,\n markupElement: new StrikethroughMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createStrikethroughPlugin()];\n }\n}\n\nexport * from './StrikethroughMarkupElement';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,UAA4B,EAAO;AAAA,EAC5C,YAAY,GAAqB;AAC7B,UAAM,GAAsB;AAAA,MACxB,QAAQ;AAAA,MACR,eAAe,IAAI,EAA2B;AAAA,MAC9C,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AAAA,EAEA,UAAU;AACC,WAAA,CAAC,GAA2B;AAAA,EACvC;AACJ;"}
|
|
@@ -3,3 +3,4 @@ export declare class UnderlinePlugin extends Plugin {
|
|
|
3
3
|
constructor(props?: PluginProps);
|
|
4
4
|
plugins(): import("@udecode/plate").PlatePlugin<import("@udecode/plate").ToggleMarkPlugin<import("@udecode/plate").Value, keyof import("@udecode/plate").TText>, import("@udecode/plate").Value, import("@udecode/plate").PlateEditor<import("@udecode/plate").Value>>[];
|
|
5
5
|
}
|
|
6
|
+
export * from './UnderlineMarkupElement';
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
import { createUnderlinePlugin as
|
|
1
|
+
import { createUnderlinePlugin as r } from "@udecode/plate";
|
|
2
2
|
import { UNDERLINE_PLUGIN as n } from "./id.es.js";
|
|
3
3
|
import { UnderlineMarkupElement as t } from "./UnderlineMarkupElement.es.js";
|
|
4
|
+
import { UNDERLINE_CLASSES as s, UnderlineMarkupElement as N, UnderlineMarkupElementNode as c } from "./UnderlineMarkupElement.es.js";
|
|
4
5
|
import { UnderlineButton as o } from "./UnderlineButton.es.js";
|
|
5
|
-
import { Plugin as
|
|
6
|
-
class d extends
|
|
7
|
-
constructor(
|
|
6
|
+
import { Plugin as m } from "../Plugin.es.js";
|
|
7
|
+
class d extends m {
|
|
8
|
+
constructor(e) {
|
|
8
9
|
super(n, {
|
|
9
10
|
button: o,
|
|
10
11
|
markupElement: new t(),
|
|
11
|
-
...
|
|
12
|
+
...e
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
15
|
plugins() {
|
|
15
|
-
return [
|
|
16
|
+
return [r()];
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
20
|
+
s as UNDERLINE_CLASSES,
|
|
21
|
+
N as UnderlineMarkupElement,
|
|
22
|
+
c as UnderlineMarkupElementNode,
|
|
19
23
|
d as UnderlinePlugin
|
|
20
24
|
};
|
|
21
25
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/UnderlinePlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createUnderlinePlugin } from '@udecode/plate';\nimport { UNDERLINE_PLUGIN } from './id';\nimport { UnderlineMarkupElement } from './UnderlineMarkupElement';\nimport { UnderlineButton } from './UnderlineButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class UnderlinePlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(UNDERLINE_PLUGIN, {\n button: UnderlineButton,\n markupElement: new UnderlineMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createUnderlinePlugin()];\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../../../src/components/RichTextEditor/Plugins/UnderlinePlugin/index.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { createUnderlinePlugin } from '@udecode/plate';\nimport { UNDERLINE_PLUGIN } from './id';\nimport { UnderlineMarkupElement } from './UnderlineMarkupElement';\nimport { UnderlineButton } from './UnderlineButton';\nimport { Plugin, PluginProps } from '../Plugin';\n\nexport class UnderlinePlugin extends Plugin {\n constructor(props?: PluginProps) {\n super(UNDERLINE_PLUGIN, {\n button: UnderlineButton,\n markupElement: new UnderlineMarkupElement(),\n ...props,\n });\n }\n\n plugins() {\n return [createUnderlinePlugin()];\n }\n}\n\nexport * from './UnderlineMarkupElement';\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,UAAwB,EAAO;AAAA,EACxC,YAAY,GAAqB;AAC7B,UAAM,GAAkB;AAAA,MACpB,QAAQ;AAAA,MACR,eAAe,IAAI,EAAuB;AAAA,MAC1C,GAAG;AAAA,IAAA,CACN;AAAA,EACL;AAAA,EAEA,UAAU;AACC,WAAA,CAAC,GAAuB;AAAA,EACnC;AACJ;"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { defaultDesignTokens as
|
|
1
|
+
import { defaultDesignTokens as s } from "../utils/defaultDesignTokens.es.js";
|
|
2
2
|
import { parseRawValue as i } from "../utils/parseRawValue.es.js";
|
|
3
|
-
import { serializeNodeToHtmlRecursive as
|
|
4
|
-
import { setDefaultDesignTokensIfNull as
|
|
5
|
-
const
|
|
6
|
-
const r = i(
|
|
7
|
-
return
|
|
8
|
-
},
|
|
3
|
+
import { serializeNodeToHtmlRecursive as n } from "./utils/serializeNodeToHtmlRecursive.es.js";
|
|
4
|
+
import { setDefaultDesignTokensIfNull as m } from "./utils/setDefaultDesignTokensIfNull.es.js";
|
|
5
|
+
const T = (e, o = s) => {
|
|
6
|
+
const r = i(e);
|
|
7
|
+
return l(r, o);
|
|
8
|
+
}, l = (e, o = s) => {
|
|
9
|
+
const r = m(s, o);
|
|
10
|
+
return e.map((t) => n(t, r)).join("");
|
|
11
|
+
};
|
|
9
12
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
l as serializeNodesToHtml,
|
|
14
|
+
T as serializeRawToHtml
|
|
12
15
|
};
|
|
13
16
|
//# sourceMappingURL=serializeToHtml.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializeToHtml.es.js","sources":["../../../../src/components/RichTextEditor/serializer/serializeToHtml.ts"],"sourcesContent":["import { TDescendant } from '@udecode/plate';\nimport { DesignTokens } from '../types';\nimport { defaultDesignTokens } from '../utils/defaultDesignTokens';\nimport { parseRawValue } from '../utils/parseRawValue';\nimport { serializeNodeToHtmlRecursive } from './utils/serializeNodeToHtmlRecursive';\nimport { setDefaultDesignTokensIfNull } from './utils/setDefaultDesignTokensIfNull';\n\nexport const serializeRawToHtml = (raw: string, designTokens: DesignTokens = defaultDesignTokens): string => {\n const nodes = parseRawValue(raw);\n return serializeNodesToHtml(nodes, designTokens);\n};\n\nexport const serializeNodesToHtml = (\n nodes: TDescendant[],\n designTokens: DesignTokens = defaultDesignTokens,\n): string => {\n
|
|
1
|
+
{"version":3,"file":"serializeToHtml.es.js","sources":["../../../../src/components/RichTextEditor/serializer/serializeToHtml.ts"],"sourcesContent":["import { TDescendant } from '@udecode/plate';\nimport { DesignTokens } from '../types';\nimport { defaultDesignTokens } from '../utils/defaultDesignTokens';\nimport { parseRawValue } from '../utils/parseRawValue';\nimport { serializeNodeToHtmlRecursive } from './utils/serializeNodeToHtmlRecursive';\nimport { setDefaultDesignTokensIfNull } from './utils/setDefaultDesignTokensIfNull';\n\nexport const serializeRawToHtml = (raw: string, designTokens: DesignTokens = defaultDesignTokens): string => {\n const nodes = parseRawValue(raw);\n return serializeNodesToHtml(nodes, designTokens);\n};\n\nexport const serializeNodesToHtml = (\n nodes: TDescendant[],\n designTokens: DesignTokens = defaultDesignTokens,\n): string => {\n const mergedDesignTokens = setDefaultDesignTokensIfNull(defaultDesignTokens, designTokens);\n return nodes.map((node) => serializeNodeToHtmlRecursive(node, mergedDesignTokens)).join('');\n};\n"],"names":[],"mappings":";;;;AAOO,MAAM,IAAqB,CAAC,GAAa,IAA6B,MAAgC;AACnG,QAAA,IAAQ,EAAc,CAAG;AACxB,SAAA,EAAqB,GAAO,CAAY;AACnD,GAEa,IAAuB,CAChC,GACA,IAA6B,MACpB;AACH,QAAA,IAAqB,EAA6B,GAAqB,CAAY;AAClF,SAAA,EAAM,IAAI,CAAC,MAAS,EAA6B,GAAM,CAAkB,CAAC,EAAE,KAAK,EAAE;AAC9F;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reactCssPropsToCss.es.js","sources":["../../../../../src/components/RichTextEditor/serializer/utils/reactCssPropsToCss.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"reactCssPropsToCss.es.js","sources":["../../../../../src/components/RichTextEditor/serializer/utils/reactCssPropsToCss.ts"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { convertCamelCaseToKebabCase } from './convertCamelCaseToKebabCase';\n\nexport const reactCssPropsToCss = (props?: any): string => {\n if (!props) {\n return '';\n }\n return Object.keys(props)\n .map((key) => `${convertCamelCaseToKebabCase(key)}: ${props[key]};`)\n .join(' ');\n};\n"],"names":[],"mappings":";AAIa,MAAA,IAAqB,CAAC,MAC1B,IAGE,OAAO,KAAK,CAAK,EACnB,IAAI,CAAC,MAAQ,GAAG,EAA4B,CAAG,MAAM,EAAM,KAAO,EAClE,KAAK,GAAG,IAJF;"}
|