@webiny/lexical-nodes 5.43.3 → 6.0.0-alpha.1

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.
Files changed (75) hide show
  1. package/FontColorNode.d.ts +4 -4
  2. package/FontColorNode.js +96 -145
  3. package/FontColorNode.js.map +1 -1
  4. package/HeadingNode.d.ts +29 -17
  5. package/HeadingNode.js +181 -152
  6. package/HeadingNode.js.map +1 -1
  7. package/ImageNode.js +143 -188
  8. package/ImageNode.js.map +1 -1
  9. package/LinkNode.d.ts +2 -2
  10. package/LinkNode.js +251 -346
  11. package/LinkNode.js.map +1 -1
  12. package/ListItemNode.d.ts +4 -3
  13. package/ListItemNode.js +276 -354
  14. package/ListItemNode.js.map +1 -1
  15. package/ListNode.d.ts +28 -14
  16. package/ListNode.js +174 -208
  17. package/ListNode.js.map +1 -1
  18. package/ParagraphNode.d.ts +28 -16
  19. package/ParagraphNode.js +141 -179
  20. package/ParagraphNode.js.map +1 -1
  21. package/QuoteNode.d.ts +26 -19
  22. package/QuoteNode.js +104 -186
  23. package/QuoteNode.js.map +1 -1
  24. package/components/ImageNode/ContentEditable.js +7 -14
  25. package/components/ImageNode/ContentEditable.js.map +1 -1
  26. package/components/ImageNode/ImageComponent.js +104 -124
  27. package/components/ImageNode/ImageComponent.js.map +1 -1
  28. package/components/ImageNode/ImageResizer.js +78 -83
  29. package/components/ImageNode/ImageResizer.js.map +1 -1
  30. package/components/ImageNode/Placeholder.d.ts +1 -1
  31. package/components/ImageNode/Placeholder.js +10 -16
  32. package/components/ImageNode/Placeholder.js.map +1 -1
  33. package/components/ImageNode/SharedHistoryContext.d.ts +2 -2
  34. package/components/ImageNode/SharedHistoryContext.js +12 -20
  35. package/components/ImageNode/SharedHistoryContext.js.map +1 -1
  36. package/generateInitialLexicalValue.d.ts +4 -0
  37. package/generateInitialLexicalValue.js +27 -0
  38. package/generateInitialLexicalValue.js.map +1 -0
  39. package/index.d.ts +4 -8
  40. package/index.js +44 -230
  41. package/index.js.map +1 -1
  42. package/package.json +4 -4
  43. package/prepareLexicalState.d.ts +2 -0
  44. package/prepareLexicalState.js +53 -0
  45. package/prepareLexicalState.js.map +1 -0
  46. package/types.d.ts +4 -5
  47. package/types.js +1 -5
  48. package/types.js.map +1 -1
  49. package/utils/clearNodeFormating.d.ts +1 -1
  50. package/utils/clearNodeFormating.js +12 -18
  51. package/utils/clearNodeFormating.js.map +1 -1
  52. package/utils/formatList.d.ts +3 -3
  53. package/utils/formatList.js +171 -208
  54. package/utils/formatList.js.map +1 -1
  55. package/utils/formatToHeading.d.ts +2 -2
  56. package/utils/formatToHeading.js +8 -15
  57. package/utils/formatToHeading.js.map +1 -1
  58. package/utils/formatToParagraph.d.ts +1 -1
  59. package/utils/formatToParagraph.js +8 -16
  60. package/utils/formatToParagraph.js.map +1 -1
  61. package/utils/formatToQuote.d.ts +1 -1
  62. package/utils/formatToQuote.js +8 -15
  63. package/utils/formatToQuote.js.map +1 -1
  64. package/utils/getStyleId.d.ts +11 -0
  65. package/utils/getStyleId.js +14 -0
  66. package/utils/getStyleId.js.map +1 -0
  67. package/utils/listNode.d.ts +2 -2
  68. package/utils/listNode.js +37 -50
  69. package/utils/listNode.js.map +1 -1
  70. package/utils/toggleLink.d.ts +1 -1
  71. package/utils/toggleLink.js +41 -45
  72. package/utils/toggleLink.js.map +1 -1
  73. package/TypographyNode.d.ts +0 -39
  74. package/TypographyNode.js +0 -146
  75. package/TypographyNode.js.map +0 -1
package/QuoteNode.js CHANGED
@@ -1,201 +1,119 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.$createQuoteNode = $createQuoteNode;
8
- exports.$isQuoteNode = $isQuoteNode;
9
- exports.QuoteNode = void 0;
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
12
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
14
- var _callSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/callSuper"));
15
- var _superPropGet2 = _interopRequireDefault(require("@babel/runtime/helpers/superPropGet"));
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
- var _lexicalTheme = require("@webiny/lexical-theme");
19
- var _utils = require("@lexical/utils");
20
- var _richText = require("@lexical/rich-text");
21
- var QuoteNode = exports.QuoteNode = /*#__PURE__*/function (_BaseQuoteNode) {
22
- function QuoteNode(themeStyleId, key) {
23
- var _this;
24
- (0, _classCallCheck2.default)(this, QuoteNode);
25
- _this = (0, _callSuper2.default)(this, QuoteNode, [key]);
26
- (0, _defineProperty2.default)(_this, "__styles", []);
27
- _this.__themeStyleId = themeStyleId || "";
28
- if (themeStyleId) {
29
- _this.__styles.push({
30
- styleId: themeStyleId,
31
- type: "typography"
32
- });
33
- }
34
- return _this;
1
+ import { $applyNodeReplacement } from "lexical";
2
+ import { findTypographyStyleByHtmlTag } from "@webiny/lexical-theme";
3
+ import { addClassNamesToElement } from "@lexical/utils";
4
+ import { QuoteNode as BaseQuoteNode } from "@lexical/rich-text";
5
+ import { getStyleId } from "./utils/getStyleId";
6
+ export class QuoteNode extends BaseQuoteNode {
7
+ constructor(options = {}) {
8
+ super(options.key);
9
+ this.__styleId = options?.styleId;
10
+ this.__className = options?.className;
35
11
  }
36
- (0, _inherits2.default)(QuoteNode, _BaseQuoteNode);
37
- return (0, _createClass2.default)(QuoteNode, [{
38
- key: "getStyleId",
39
- value: function getStyleId() {
40
- return this.__themeStyleId;
41
- }
42
-
43
- /*
44
- * Find the first occurrence of the quoteblock in the theme styles and set as default.
45
- */
46
- }, {
47
- key: "setDefaultTypography",
48
- value: function setDefaultTypography(themeEmotionMap) {
49
- var typographyStyle = (0, _lexicalTheme.findTypographyStyleByHtmlTag)("quoteblock", themeEmotionMap);
50
- if (typographyStyle) {
51
- this.__styles.push({
52
- styleId: typographyStyle.id,
53
- type: "typography"
54
- });
55
- }
56
- }
57
- }, {
58
- key: "typographyStyleExist",
59
- value: function typographyStyleExist(themeEmotionMap) {
60
- var styleId = this.getTypographyStyleId();
61
- if (!styleId) {
62
- return false;
63
- }
64
- var style = themeEmotionMap[styleId];
65
- return !!style;
66
- }
67
- }, {
68
- key: "getTypographyStyleId",
69
- value: function getTypographyStyleId() {
70
- var style = this.__styles.find(function (x) {
71
- return x.type === "typography";
72
- });
73
- return style?.styleId || undefined;
74
- }
75
- }, {
76
- key: "hasTypographyStyle",
77
- value: function hasTypographyStyle() {
78
- return !!this.getTypographyStyleId();
79
- }
80
- }, {
81
- key: "getThemeStyles",
82
- value: function getThemeStyles() {
83
- var self = (0, _superPropGet2.default)(QuoteNode, "getLatest", this, 3)([]);
84
- return self.__styles;
85
- }
86
- }, {
87
- key: "setThemeStyles",
88
- value: function setThemeStyles(styles) {
89
- var self = (0, _superPropGet2.default)(QuoteNode, "getWritable", this, 3)([]);
90
- self.__styles = (0, _toConsumableArray2.default)(styles);
91
- return self;
92
- }
93
- }, {
94
- key: "addThemeStylesToHTMLElement",
95
- value: function addThemeStylesToHTMLElement(element, theme) {
96
- var themeEmotionMap = theme?.emotionMap;
97
- if (!themeEmotionMap) {
98
- return element;
99
- }
100
-
101
- // style exist and is in active use
102
- if (this.hasTypographyStyle() && this.typographyStyleExist(themeEmotionMap)) {
103
- var styleId = this.getTypographyStyleId();
104
- if (styleId) {
105
- var typographyValue = themeEmotionMap[styleId];
106
- (0, _utils.addClassNamesToElement)(element, typographyValue?.className);
107
- return element;
108
- }
109
- }
110
- return element;
12
+ getStyleId() {
13
+ return this.__styleId;
14
+ }
15
+ setStyleId(styleId) {
16
+ this.__styleId = styleId;
17
+ }
18
+ setClassName(className) {
19
+ this.__className = className;
20
+ }
21
+ getClassName() {
22
+ return this.__className;
23
+ }
24
+ setDefaultTypography(themeEmotionMap) {
25
+ // For some time in v5 we had `quoteblock` as tag name :facepalm: We must not break it.
26
+ const typographyStyle = findTypographyStyleByHtmlTag(["blockquote", "quoteblock"], themeEmotionMap);
27
+ if (typographyStyle) {
28
+ this.__styleId = typographyStyle.id;
29
+ this.__className = typographyStyle.className;
111
30
  }
112
- }, {
113
- key: "createDOM",
114
- value: function createDOM(config) {
115
- var element = (0, _superPropGet2.default)(QuoteNode, "createDOM", this, 3)([config]);
116
- var wTheme = config.theme;
117
- var emotionThemeMap = wTheme?.emotionMap;
118
- if (!emotionThemeMap) {
119
- return element;
120
- }
121
-
122
- // if styleId is not set or user removed the style from theme, set default style
123
- if (!this.hasTypographyStyle() || !this.typographyStyleExist(emotionThemeMap)) {
124
- this.setDefaultTypography(emotionThemeMap);
31
+ }
32
+ static getType() {
33
+ return "wby-quote";
34
+ }
35
+ static clone(node) {
36
+ return new QuoteNode({
37
+ styleId: node.getStyleId(),
38
+ className: node.getClassName(),
39
+ key: node.getKey()
40
+ });
41
+ }
42
+ createDOM(config) {
43
+ const element = super.createDOM(config);
44
+ return this.updateElementWithThemeClasses(element, config.theme);
45
+ }
46
+ exportDOM(editor) {
47
+ const base = super.exportDOM(editor);
48
+ const element = base.element;
49
+ if (element && this.__className) {
50
+ element.classList.add(this.__className);
51
+ }
52
+ return {
53
+ ...base,
54
+ element
55
+ };
56
+ }
57
+ static importDomConversionMap() {
58
+ return {
59
+ conversion: convertBlockquoteElement,
60
+ priority: 0
61
+ };
62
+ }
63
+ static importDOM() {
64
+ return {
65
+ blockquote: () => {
66
+ return this.importDomConversionMap();
125
67
  }
126
- this.addThemeStylesToHTMLElement(element, config.theme);
68
+ };
69
+ }
70
+ static importJSON(serializedNode) {
71
+ const node = $createQuoteNode();
72
+ node.setFormat(serializedNode.format);
73
+ node.setIndent(serializedNode.indent);
74
+ node.setDirection(serializedNode.direction);
75
+ const styleId = getStyleId({
76
+ styleId: serializedNode.styleId,
77
+ styles: serializedNode.styles
78
+ });
79
+ node.setStyleId(styleId);
80
+ node.setClassName(serializedNode.className);
81
+ return node;
82
+ }
83
+ exportJSON() {
84
+ return {
85
+ ...super.exportJSON(),
86
+ type: "wby-quote",
87
+ className: this.__className,
88
+ styleId: this.__styleId
89
+ };
90
+ }
91
+ updateElementWithThemeClasses(element, theme) {
92
+ if (!theme?.emotionMap) {
127
93
  return element;
128
94
  }
129
- }, {
130
- key: "exportJSON",
131
- value: function exportJSON() {
132
- return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _superPropGet2.default)(QuoteNode, "exportJSON", this, 3)([])), {}, {
133
- type: "webiny-quote",
134
- styles: this.__styles,
135
- styleId: this.getTypographyStyleId()
136
- });
137
- }
138
- }], [{
139
- key: "getType",
140
- value: function getType() {
141
- return "webiny-quote";
142
- }
143
- }, {
144
- key: "clone",
145
- value: function clone(node) {
146
- return new QuoteNode(node.getTypographyStyleId(), node.__key);
95
+ if (!this.__styleId || !this.__className) {
96
+ this.setDefaultTypography(theme.emotionMap);
147
97
  }
148
- }, {
149
- key: "importDomConversionMap",
150
- value: function importDomConversionMap() {
151
- return {
152
- conversion: convertBlockquoteElement,
153
- priority: 0
154
- };
98
+ if (this.__className) {
99
+ addClassNamesToElement(element, this.__className);
155
100
  }
156
- }, {
157
- key: "importDOM",
158
- value: function importDOM() {
159
- var _this2 = this;
160
- return {
161
- blockquote: function blockquote() {
162
- return _this2.importDomConversionMap();
163
- }
164
- };
165
- }
166
- }, {
167
- key: "importJSON",
168
- value: function importJSON(serializedNode) {
169
- var node = $createQuoteNode();
170
- node.setFormat(serializedNode.format);
171
- node.setIndent(serializedNode.indent);
172
- node.setDirection(serializedNode.direction);
173
- if (!!serializedNode?.styles?.length) {
174
- node.setThemeStyles(serializedNode.styles);
175
- return node;
176
- }
177
- // for old nodes data migrate the style id into the list
178
- if (!!serializedNode?.styleId) {
179
- var styles = [{
180
- styleId: serializedNode.styleId,
181
- type: "typography"
182
- }];
183
- node.setThemeStyles(styles);
184
- }
185
- return node;
186
- }
187
- }]);
188
- }(_richText.QuoteNode);
101
+ return element;
102
+ }
103
+ }
189
104
  function convertBlockquoteElement() {
190
- var node = $createQuoteNode();
105
+ const node = $createQuoteNode();
191
106
  return {
192
- node: node
107
+ node
193
108
  };
194
109
  }
195
- function $createQuoteNode(themeStyleId, key) {
196
- return new QuoteNode(themeStyleId, key);
110
+ export function $createQuoteNode(styleId, key) {
111
+ return $applyNodeReplacement(new QuoteNode({
112
+ styleId,
113
+ key
114
+ }));
197
115
  }
198
- function $isQuoteNode(node) {
116
+ export function $isQuoteNode(node) {
199
117
  return node instanceof QuoteNode;
200
118
  }
201
119
 
package/QuoteNode.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_lexicalTheme","require","_utils","_richText","QuoteNode","exports","_BaseQuoteNode","themeStyleId","key","_this","_classCallCheck2","default","_callSuper2","_defineProperty2","__themeStyleId","__styles","push","styleId","type","_inherits2","_createClass2","value","getStyleId","setDefaultTypography","themeEmotionMap","typographyStyle","findTypographyStyleByHtmlTag","id","typographyStyleExist","getTypographyStyleId","style","find","x","undefined","hasTypographyStyle","getThemeStyles","self","_superPropGet2","setThemeStyles","styles","_toConsumableArray2","addThemeStylesToHTMLElement","element","theme","emotionMap","typographyValue","addClassNamesToElement","className","createDOM","config","wTheme","emotionThemeMap","exportJSON","_objectSpread2","getType","clone","node","__key","importDomConversionMap","conversion","convertBlockquoteElement","priority","importDOM","_this2","blockquote","importJSON","serializedNode","$createQuoteNode","setFormat","format","setIndent","indent","setDirection","direction","length","BaseQuoteNode","$isQuoteNode"],"sources":["QuoteNode.ts"],"sourcesContent":["import {\n DOMConversion,\n DOMConversionMap,\n EditorConfig,\n LexicalNode,\n NodeKey,\n Spread\n} from \"lexical\";\nimport { EditorTheme, ThemeEmotionMap, findTypographyStyleByHtmlTag } from \"@webiny/lexical-theme\";\nimport { addClassNamesToElement } from \"@lexical/utils\";\nimport {\n QuoteNode as BaseQuoteNode,\n SerializedQuoteNode as BaseSerializedQuoteNode\n} from \"@lexical/rich-text\";\nimport { TextNodeThemeStyles, ThemeStyleValue, TypographyStylesNode } from \"~/types\";\n\nexport type SerializedQuoteNode = Spread<\n {\n styleId?: string;\n styles: ThemeStyleValue[];\n type: \"webiny-quote\";\n },\n BaseSerializedQuoteNode\n>;\n\nexport class QuoteNode extends BaseQuoteNode implements TextNodeThemeStyles, TypographyStylesNode {\n private __themeStyleId: string;\n private __styles: ThemeStyleValue[] = [];\n\n constructor(themeStyleId?: string, key?: NodeKey) {\n super(key);\n this.__themeStyleId = themeStyleId || \"\";\n\n if (themeStyleId) {\n this.__styles.push({ styleId: themeStyleId, type: \"typography\" });\n }\n }\n\n getStyleId(): string {\n return this.__themeStyleId;\n }\n\n /*\n * Find the first occurrence of the quoteblock in the theme styles and set as default.\n */\n protected setDefaultTypography(themeEmotionMap: ThemeEmotionMap) {\n const typographyStyle = findTypographyStyleByHtmlTag(\"quoteblock\", themeEmotionMap);\n if (typographyStyle) {\n this.__styles.push({ styleId: typographyStyle.id, type: \"typography\" });\n }\n }\n\n protected typographyStyleExist(themeEmotionMap: ThemeEmotionMap): boolean {\n const styleId = this.getTypographyStyleId();\n if (!styleId) {\n return false;\n }\n const style = themeEmotionMap[styleId];\n return !!style;\n }\n\n getTypographyStyleId(): string | undefined {\n const style = this.__styles.find(x => x.type === \"typography\");\n return style?.styleId || undefined;\n }\n\n private hasTypographyStyle(): boolean {\n return !!this.getTypographyStyleId();\n }\n\n getThemeStyles(): ThemeStyleValue[] {\n const self = super.getLatest();\n return self.__styles;\n }\n\n setThemeStyles(styles: ThemeStyleValue[]) {\n const self = super.getWritable();\n self.__styles = [...styles];\n return self;\n }\n\n static override getType(): string {\n return \"webiny-quote\";\n }\n\n static override clone(node: QuoteNode): QuoteNode {\n return new QuoteNode(node.getTypographyStyleId(), node.__key);\n }\n\n addThemeStylesToHTMLElement(element: HTMLElement, theme: EditorTheme): HTMLElement {\n const themeEmotionMap = theme?.emotionMap;\n\n if (!themeEmotionMap) {\n return element;\n }\n\n // style exist and is in active use\n if (this.hasTypographyStyle() && this.typographyStyleExist(themeEmotionMap)) {\n const styleId = this.getTypographyStyleId();\n if (styleId) {\n const typographyValue = themeEmotionMap[styleId];\n addClassNamesToElement(element, typographyValue?.className);\n return element;\n }\n }\n\n return element;\n }\n\n override createDOM(config: EditorConfig): HTMLElement {\n const element = super.createDOM(config);\n const wTheme = config.theme as EditorTheme;\n const emotionThemeMap = wTheme?.emotionMap;\n\n if (!emotionThemeMap) {\n return element;\n }\n\n // if styleId is not set or user removed the style from theme, set default style\n if (!this.hasTypographyStyle() || !this.typographyStyleExist(emotionThemeMap)) {\n this.setDefaultTypography(emotionThemeMap);\n }\n\n this.addThemeStylesToHTMLElement(element, config.theme as EditorTheme);\n return element;\n }\n\n static importDomConversionMap(): DOMConversion<HTMLElement> | null {\n return {\n conversion: convertBlockquoteElement,\n priority: 0\n };\n }\n\n static override importDOM(): DOMConversionMap | null {\n return {\n blockquote: () => {\n return this.importDomConversionMap();\n }\n };\n }\n\n static override importJSON(serializedNode: SerializedQuoteNode): QuoteNode {\n const node = $createQuoteNode();\n node.setFormat(serializedNode.format);\n node.setIndent(serializedNode.indent);\n node.setDirection(serializedNode.direction);\n if (!!serializedNode?.styles?.length) {\n node.setThemeStyles(serializedNode.styles);\n return node;\n }\n // for old nodes data migrate the style id into the list\n if (!!serializedNode?.styleId) {\n const styles = [\n { styleId: serializedNode.styleId, type: \"typography\" }\n ] as ThemeStyleValue[];\n node.setThemeStyles(styles);\n }\n return node;\n }\n\n override exportJSON(): SerializedQuoteNode {\n return {\n ...super.exportJSON(),\n type: \"webiny-quote\",\n styles: this.__styles,\n styleId: this.getTypographyStyleId()\n };\n }\n}\n\nfunction convertBlockquoteElement() {\n const node = $createQuoteNode();\n return {\n node\n };\n}\n\nexport function $createQuoteNode(themeStyleId?: string, key?: NodeKey): QuoteNode {\n return new QuoteNode(themeStyleId, key);\n}\n\nexport function $isQuoteNode(node: LexicalNode | null | undefined): node is QuoteNode {\n return node instanceof QuoteNode;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAQA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAG4B,IAYfG,SAAS,GAAAC,OAAA,CAAAD,SAAA,0BAAAE,cAAA;EAIlB,SAAAF,UAAYG,YAAqB,EAAEC,GAAa,EAAE;IAAA,IAAAC,KAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAP,SAAA;IAC9CK,KAAA,OAAAG,WAAA,CAAAD,OAAA,QAAAP,SAAA,GAAMI,GAAG;IAAE,IAAAK,gBAAA,CAAAF,OAAA,EAAAF,KAAA,cAHuB,EAAE;IAIpCA,KAAA,CAAKK,cAAc,GAAGP,YAAY,IAAI,EAAE;IAExC,IAAIA,YAAY,EAAE;MACdE,KAAA,CAAKM,QAAQ,CAACC,IAAI,CAAC;QAAEC,OAAO,EAAEV,YAAY;QAAEW,IAAI,EAAE;MAAa,CAAC,CAAC;IACrE;IAAC,OAAAT,KAAA;EACL;EAAC,IAAAU,UAAA,CAAAR,OAAA,EAAAP,SAAA,EAAAE,cAAA;EAAA,WAAAc,aAAA,CAAAT,OAAA,EAAAP,SAAA;IAAAI,GAAA;IAAAa,KAAA,EAED,SAAAC,UAAUA,CAAA,EAAW;MACjB,OAAO,IAAI,CAACR,cAAc;IAC9B;;IAEA;AACJ;AACA;EAFI;IAAAN,GAAA;IAAAa,KAAA,EAGA,SAAUE,oBAAoBA,CAACC,eAAgC,EAAE;MAC7D,IAAMC,eAAe,GAAG,IAAAC,0CAA4B,EAAC,YAAY,EAAEF,eAAe,CAAC;MACnF,IAAIC,eAAe,EAAE;QACjB,IAAI,CAACV,QAAQ,CAACC,IAAI,CAAC;UAAEC,OAAO,EAAEQ,eAAe,CAACE,EAA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O,EAAE;QAC3B,IAAMsB,MAAM,GAAG,CACX;UAAEtB,OAAO,EAAEiD,cAAc,CAACjD,OAAO;UAAEC,IAAI,EAAE;QAAa,CAAC,CACrC;QACtBsC,IAAI,CAAClB,cAAc,CAACC,MAAM,CAAC;MAC/B;MACA,OAAOiB,IAAI;IACf;EAAC;AAAA,EAtI0BmB,mBAAa;AAkJ5C,SAASf,wBAAwBA,CAAA,EAAG;EAChC,IAAMJ,IAAI,GAAGW,gBAAgB,CAAC,CAAC;EAC/B,OAAO;IACHX,IAAI,EAAJA;EACJ,CAAC;AACL;AAEO,SAASW,gBAAgBA,CAAC5D,YAAqB,EAAEC,GAAa,EAAa;EAC9E,OAAO,IAAIJ,SAAS,CAACG,YAAY,EAAEC,GAAG,CAAC;AAC3C;AAEO,SAASoE,YAAYA,CAACpB,IAAoC,EAAqB;EAClF,OAAOA,IAAI,YAAYpD,SAAS;AACpC","ignoreList":[]}
1
+ {"version":3,"names":["$applyNodeReplacement","findTypographyStyleByHtmlTag","addClassNamesToElement","QuoteNode","BaseQuoteNode","getStyleId","constructor","options","key","__styleId","styleId","__className","className","setStyleId","setClassName","getClassName","setDefaultTypography","themeEmotionMap","typographyStyle","id","getType","clone","node","getKey","createDOM","config","element","updateElementWithThemeClasses","theme","exportDOM","editor","base","classList","add","importDomConversionMap","conversion","convertBlockquoteElement","priority","importDOM","blockquote","importJSON","serializedNode","$createQuoteNode","setFormat","format","setIndent","indent","setDirection","direction","styles","exportJSON","type","emotionMap","$isQuoteNode"],"sources":["QuoteNode.ts"],"sourcesContent":["import type {\n DOMConversion,\n DOMConversionMap,\n DOMExportOutput,\n EditorConfig,\n LexicalEditor,\n LexicalNode,\n NodeKey,\n Spread\n} from \"lexical\";\nimport { $applyNodeReplacement } from \"lexical\";\nimport type { EditorTheme, ThemeEmotionMap } from \"@webiny/lexical-theme\";\nimport { findTypographyStyleByHtmlTag } from \"@webiny/lexical-theme\";\nimport { addClassNamesToElement } from \"@lexical/utils\";\nimport type { SerializedQuoteNode as BaseSerializedQuoteNode } from \"@lexical/rich-text\";\nimport { QuoteNode as BaseQuoteNode } from \"@lexical/rich-text\";\nimport type { ThemeStyleValue, TypographyStylesNode } from \"~/types\";\nimport { getStyleId } from \"~/utils/getStyleId\";\n\nexport type SerializedQuoteNode = Spread<\n {\n styleId?: string;\n styles?: ThemeStyleValue[];\n className?: string;\n type: \"wby-quote\";\n },\n BaseSerializedQuoteNode\n>;\n\ninterface QuoteNodeOptions {\n className?: string;\n styleId?: string;\n key?: NodeKey;\n}\n\nexport class QuoteNode extends BaseQuoteNode implements TypographyStylesNode {\n private __styleId: string | undefined;\n private __className: string | undefined;\n\n constructor(options: QuoteNodeOptions = {}) {\n super(options.key);\n this.__styleId = options?.styleId;\n this.__className = options?.className;\n }\n\n getStyleId(): string | undefined {\n return this.__styleId;\n }\n\n setStyleId(styleId: string | undefined) {\n this.__styleId = styleId;\n }\n\n setClassName(className: string | undefined) {\n this.__className = className;\n }\n\n getClassName(): string | undefined {\n return this.__className;\n }\n\n private setDefaultTypography(themeEmotionMap: ThemeEmotionMap) {\n // For some time in v5 we had `quoteblock` as tag name :facepalm: We must not break it.\n const typographyStyle = findTypographyStyleByHtmlTag(\n [\"blockquote\", \"quoteblock\"],\n themeEmotionMap\n );\n\n if (typographyStyle) {\n this.__styleId = typographyStyle.id;\n this.__className = typographyStyle.className;\n }\n }\n\n static override getType(): string {\n return \"wby-quote\";\n }\n\n static override clone(node: QuoteNode): QuoteNode {\n return new QuoteNode({\n styleId: node.getStyleId(),\n className: node.getClassName(),\n key: node.getKey()\n });\n }\n\n override createDOM(config: EditorConfig): HTMLElement {\n const element = super.createDOM(config);\n return this.updateElementWithThemeClasses(element, config.theme as EditorTheme);\n }\n\n override exportDOM(editor: LexicalEditor): DOMExportOutput {\n const base = super.exportDOM(editor);\n\n const element = base.element as HTMLElement;\n if (element && this.__className) {\n element.classList.add(this.__className);\n }\n\n return { ...base, element };\n }\n\n static importDomConversionMap(): DOMConversion<HTMLElement> | null {\n return {\n conversion: convertBlockquoteElement,\n priority: 0\n };\n }\n\n static override importDOM(): DOMConversionMap | null {\n return {\n blockquote: () => {\n return this.importDomConversionMap();\n }\n };\n }\n\n static override importJSON(serializedNode: SerializedQuoteNode): QuoteNode {\n const node = $createQuoteNode();\n node.setFormat(serializedNode.format);\n node.setIndent(serializedNode.indent);\n node.setDirection(serializedNode.direction);\n\n const styleId = getStyleId({\n styleId: serializedNode.styleId,\n styles: serializedNode.styles\n });\n\n node.setStyleId(styleId);\n node.setClassName(serializedNode.className);\n\n return node;\n }\n\n override exportJSON(): SerializedQuoteNode {\n return {\n ...super.exportJSON(),\n type: \"wby-quote\",\n className: this.__className,\n styleId: this.__styleId\n };\n }\n\n protected updateElementWithThemeClasses(element: HTMLElement, theme: EditorTheme): HTMLElement {\n if (!theme?.emotionMap) {\n return element;\n }\n\n if (!this.__styleId || !this.__className) {\n this.setDefaultTypography(theme.emotionMap);\n }\n\n if (this.__className) {\n addClassNamesToElement(element, this.__className);\n }\n\n return element;\n }\n}\n\nfunction convertBlockquoteElement() {\n const node = $createQuoteNode();\n return {\n node\n };\n}\n\nexport function $createQuoteNode(styleId?: string, key?: NodeKey): QuoteNode {\n return $applyNodeReplacement(new QuoteNode({ styleId, key }));\n}\n\nexport function $isQuoteNode(node: LexicalNode | null | undefined): node is QuoteNode {\n return node instanceof QuoteNode;\n}\n"],"mappings":"AAUA,SAASA,qBAAqB,QAAQ,SAAS;AAE/C,SAASC,4BAA4B,QAAQ,uBAAuB;AACpE,SAASC,sBAAsB,QAAQ,gBAAgB;AAEvD,SAASC,SAAS,IAAIC,aAAa,QAAQ,oBAAoB;AAE/D,SAASC,UAAU;AAkBnB,OAAO,MAAMF,SAAS,SAASC,aAAa,CAAiC;EAIzEE,WAAWA,CAACC,OAAyB,GAAG,CAAC,CAAC,EAAE;IACxC,KAAK,CAACA,OAAO,CAACC,GAAG,CAAC;IAClB,IAAI,CAACC,SAAS,GAAGF,OAAO,EAAEG,O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;IAC3F,IAAI,CAACA,KAAK,EAAEwB,UAAU,EAAE;MACpB,OAAO1B,OAAO;IAClB;IAEA,IAAI,CAAC,IAAI,CAACjB,SAAS,IAAI,CAAC,IAAI,CAACE,WAAW,EAAE;MACtC,IAAI,CAACK,oBAAoB,CAACY,KAAK,CAACwB,UAAU,CAAC;IAC/C;IAEA,IAAI,IAAI,CAACzC,WAAW,EAAE;MAClBT,sBAAsB,CAACwB,OAAO,EAAE,IAAI,CAACf,WAAW,CAAC;IACrD;IAEA,OAAOe,OAAO;EAClB;AACJ;AAEA,SAASU,wBAAwBA,CAAA,EAAG;EAChC,MAAMd,IAAI,GAAGoB,gBAAgB,CAAC,CAAC;EAC/B,OAAO;IACHpB;EACJ,CAAC;AACL;AAEA,OAAO,SAASoB,gBAAgBA,CAAChC,OAAgB,EAAEF,GAAa,EAAa;EACzE,OAAOR,qBAAqB,CAAC,IAAIG,SAAS,CAAC;IAAEO,OAAO;IAAEF;EAAI,CAAC,CAAC,CAAC;AACjE;AAEA,OAAO,SAAS6C,YAAYA,CAAC/B,IAAoC,EAAqB;EAClF,OAAOA,IAAI,YAAYnB,SAAS;AACpC","ignoreList":[]}
@@ -1,13 +1,3 @@
1
- "use strict";
2
-
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.LexicalContentEditable = LexicalContentEditable;
8
- require("./ContentEditable.css");
9
- var _LexicalContentEditable = require("@lexical/react/LexicalContentEditable");
10
- var React = _interopRequireWildcard(require("react"));
11
1
  /**
12
2
  * Copyright (c) Meta Platforms, Inc. and affiliates.
13
3
  *
@@ -15,10 +5,13 @@ var React = _interopRequireWildcard(require("react"));
15
5
  * LICENSE file in the root directory of this source tree.
16
6
  *
17
7
  */
18
-
19
- function LexicalContentEditable(_ref) {
20
- var className = _ref.className;
21
- return /*#__PURE__*/React.createElement(_LexicalContentEditable.ContentEditable, {
8
+ import "./ContentEditable.css";
9
+ import { ContentEditable } from "@lexical/react/LexicalContentEditable";
10
+ import * as React from "react";
11
+ export function LexicalContentEditable({
12
+ className
13
+ }) {
14
+ return /*#__PURE__*/React.createElement(ContentEditable, {
22
15
  className: className || "ContentEditable__root"
23
16
  });
24
17
  }
@@ -1 +1 @@
1
- {"version":3,"names":["require","_LexicalContentEditable","React","_interopRequireWildcard","LexicalContentEditable","_ref","className","createElement","ContentEditable"],"sources":["ContentEditable.tsx"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nimport \"./ContentEditable.css\";\n\nimport { ContentEditable } from \"@lexical/react/LexicalContentEditable\";\nimport * as React from \"react\";\n\nexport function LexicalContentEditable({ className }: { className?: string }): JSX.Element {\n return <ContentEditable className={className || \"ContentEditable__root\"} />;\n}\n"],"mappings":";;;;;;;AAOAA,OAAA;AAEA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAC,uBAAA,CAAAH,OAAA;AAVA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,SAASI,sBAAsBA,CAAAC,IAAA,EAAqD;EAAA,IAAlDC,SAAS,GAAAD,IAAA,CAATC,SAAS;EAC9C,oBAAOJ,KAAA,CAAAK,aAAA,CAACN,uBAAA,CAAAO,eAAe;IAACF,SAAS,EAAEA,SAAS,IAAI;EAAwB,CAAE,CAAC;AAC/E","ignoreList":[]}
1
+ {"version":3,"names":["ContentEditable","React","LexicalContentEditable","className","createElement"],"sources":["ContentEditable.tsx"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nimport \"./ContentEditable.css\";\n\nimport { ContentEditable } from \"@lexical/react/LexicalContentEditable\";\nimport * as React from \"react\";\n\nexport function LexicalContentEditable({ className }: { className?: string }): JSX.Element {\n return <ContentEditable className={className || \"ContentEditable__root\"} />;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,eAAe,QAAQ,uCAAuC;AACvE,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,OAAO,SAASC,sBAAsBA,CAAC;EAAEC;AAAkC,CAAC,EAAe;EACvF,oBAAOF,KAAA,CAAAG,aAAA,CAACJ,eAAe;IAACG,SAAS,EAAEA,SAAS,IAAI;EAAwB,CAAE,CAAC;AAC/E","ignoreList":[]}