@uniformdev/design-system 20.25.2-alpha.3 → 20.25.2-alpha.5
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/esm/index.js +13 -1
- package/dist/index.js +13 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -15059,7 +15059,19 @@ var RichText = ({
|
|
|
15059
15059
|
useEffect22(() => {
|
|
15060
15060
|
const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState, tags }) => {
|
|
15061
15061
|
requestAnimationFrame(() => {
|
|
15062
|
-
|
|
15062
|
+
const previousEditorState = prevEditorState.toJSON();
|
|
15063
|
+
const currentEditorState = editorState.toJSON();
|
|
15064
|
+
for (const child of currentEditorState.root.children) {
|
|
15065
|
+
if ("direction" in child) {
|
|
15066
|
+
child.direction = null;
|
|
15067
|
+
}
|
|
15068
|
+
}
|
|
15069
|
+
for (const child of previousEditorState.root.children) {
|
|
15070
|
+
if ("direction" in child) {
|
|
15071
|
+
child.direction = null;
|
|
15072
|
+
}
|
|
15073
|
+
}
|
|
15074
|
+
if (!deepEqual2(currentEditorState, previousEditorState)) {
|
|
15063
15075
|
onChange == null ? void 0 : onChange(editorState.toJSON(), tags);
|
|
15064
15076
|
}
|
|
15065
15077
|
});
|
package/dist/index.js
CHANGED
|
@@ -16913,7 +16913,19 @@ var RichText = ({
|
|
|
16913
16913
|
(0, import_react156.useEffect)(() => {
|
|
16914
16914
|
const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState, tags }) => {
|
|
16915
16915
|
requestAnimationFrame(() => {
|
|
16916
|
-
|
|
16916
|
+
const previousEditorState = prevEditorState.toJSON();
|
|
16917
|
+
const currentEditorState = editorState.toJSON();
|
|
16918
|
+
for (const child of currentEditorState.root.children) {
|
|
16919
|
+
if ("direction" in child) {
|
|
16920
|
+
child.direction = null;
|
|
16921
|
+
}
|
|
16922
|
+
}
|
|
16923
|
+
for (const child of previousEditorState.root.children) {
|
|
16924
|
+
if ("direction" in child) {
|
|
16925
|
+
child.direction = null;
|
|
16926
|
+
}
|
|
16927
|
+
}
|
|
16928
|
+
if (!(0, import_fast_equals2.deepEqual)(currentEditorState, previousEditorState)) {
|
|
16917
16929
|
onChange == null ? void 0 : onChange(editorState.toJSON(), tags);
|
|
16918
16930
|
}
|
|
16919
16931
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.25.2-alpha.
|
|
3
|
+
"version": "20.25.2-alpha.5+42c99fa29a",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@storybook/theming": "^8.3.3",
|
|
39
39
|
"@types/react": "18.3.11",
|
|
40
40
|
"@types/react-dom": "18.3.1",
|
|
41
|
-
"@uniformdev/canvas": "^20.25.2-alpha.
|
|
42
|
-
"@uniformdev/richtext": "^20.25.2-alpha.
|
|
41
|
+
"@uniformdev/canvas": "^20.25.2-alpha.5+42c99fa29a",
|
|
42
|
+
"@uniformdev/richtext": "^20.25.2-alpha.5+42c99fa29a",
|
|
43
43
|
"@vitest/coverage-v8": "^3.1.2",
|
|
44
44
|
"autoprefixer": "10.4.21",
|
|
45
45
|
"hygen": "6.2.11",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "42c99fa29a788d699389b1eca81d5077093c41e9"
|
|
95
95
|
}
|