@crystallize/design-system 1.17.1 → 1.17.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @crystallize/design-system
|
|
2
2
|
|
|
3
|
+
## 1.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fd2e53c: The line breaks in the rich text editor are not considered as elements and thus they are not transformed onChange. To fix it we check for them and when present we add them to the list of elements.
|
|
8
|
+
|
|
3
9
|
## 1.17.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -35267,12 +35267,11 @@ function lexicalToCrystallizeRichText({
|
|
|
35267
35267
|
if ((0, import_lexical2.$isElementNode)(childNode)) {
|
|
35268
35268
|
handleNode(childNode, parentChildrenToUse);
|
|
35269
35269
|
} else if ((0, import_LexicalHorizontalRuleNode2.$isHorizontalRuleNode)(childNode)) {
|
|
35270
|
-
parentChildrenToUse.push({
|
|
35271
|
-
kind: "block",
|
|
35272
|
-
type: "horizontal-line"
|
|
35273
|
-
});
|
|
35270
|
+
parentChildrenToUse.push({ kind: "block", type: "horizontal-line" });
|
|
35274
35271
|
} else if ((0, import_lexical2.$isTextNode)(childNode)) {
|
|
35275
35272
|
parentChildrenToUse.push(getTextChild(childNode));
|
|
35273
|
+
} else if ((0, import_lexical2.$isLineBreakNode)(childNode)) {
|
|
35274
|
+
parentChildrenToUse.push({ kind: "inline", type: "line-break" });
|
|
35276
35275
|
}
|
|
35277
35276
|
});
|
|
35278
35277
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -6391,12 +6391,11 @@ function lexicalToCrystallizeRichText({
|
|
|
6391
6391
|
if ($isElementNode(childNode)) {
|
|
6392
6392
|
handleNode(childNode, parentChildrenToUse);
|
|
6393
6393
|
} else if ($isHorizontalRuleNode(childNode)) {
|
|
6394
|
-
parentChildrenToUse.push({
|
|
6395
|
-
kind: "block",
|
|
6396
|
-
type: "horizontal-line"
|
|
6397
|
-
});
|
|
6394
|
+
parentChildrenToUse.push({ kind: "block", type: "horizontal-line" });
|
|
6398
6395
|
} else if ($isTextNode2(childNode)) {
|
|
6399
6396
|
parentChildrenToUse.push(getTextChild(childNode));
|
|
6397
|
+
} else if ($isLineBreakNode(childNode)) {
|
|
6398
|
+
parentChildrenToUse.push({ kind: "inline", type: "line-break" });
|
|
6400
6399
|
}
|
|
6401
6400
|
});
|
|
6402
6401
|
}
|
package/package.json
CHANGED
|
@@ -183,12 +183,11 @@ export function lexicalToCrystallizeRichText({
|
|
|
183
183
|
if ($isElementNode(childNode)) {
|
|
184
184
|
handleNode(childNode, parentChildrenToUse);
|
|
185
185
|
} else if ($isHorizontalRuleNode(childNode)) {
|
|
186
|
-
parentChildrenToUse.push({
|
|
187
|
-
kind: 'block',
|
|
188
|
-
type: 'horizontal-line',
|
|
189
|
-
});
|
|
186
|
+
parentChildrenToUse.push({ kind: 'block', type: 'horizontal-line' });
|
|
190
187
|
} else if ($isTextNode(childNode)) {
|
|
191
188
|
parentChildrenToUse.push(getTextChild(childNode));
|
|
189
|
+
} else if ($isLineBreakNode(childNode)) {
|
|
190
|
+
parentChildrenToUse.push({ kind: 'inline', type: 'line-break' });
|
|
192
191
|
}
|
|
193
192
|
});
|
|
194
193
|
}
|