@uniformdev/design-system 20.25.2-alpha.0 → 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 CHANGED
@@ -12430,20 +12430,6 @@ var getLabelForElement = (type) => {
12430
12430
  const element = richTextBuiltInElements.find((element2) => element2.type === type);
12431
12431
  return (_a = element == null ? void 0 : element.label) != null ? _a : type;
12432
12432
  };
12433
- var defaultParameterConfiguration = {
12434
- required: false,
12435
- formatting: {
12436
- builtIn: richTextBuiltInFormats.map((format) => format.type)
12437
- },
12438
- elements: {
12439
- builtIn: richTextBuiltInElements.map((element) => element.type)
12440
- },
12441
- elementsConfig: {
12442
- asset: {
12443
- allowedTypes: ["image"]
12444
- }
12445
- }
12446
- };
12447
12433
 
12448
12434
  // src/components/ParameterInputs/ParameterRichText.tsx
12449
12435
  import { deepEqual as deepEqual2 } from "fast-equals";
@@ -15073,7 +15059,19 @@ var RichText = ({
15073
15059
  useEffect22(() => {
15074
15060
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState, tags }) => {
15075
15061
  requestAnimationFrame(() => {
15076
- if (!deepEqual2(editorState.toJSON(), prevEditorState.toJSON())) {
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)) {
15077
15075
  onChange == null ? void 0 : onChange(editorState.toJSON(), tags);
15078
15076
  }
15079
15077
  });
package/dist/index.js CHANGED
@@ -14347,20 +14347,6 @@ var getLabelForElement = (type) => {
14347
14347
  const element = richTextBuiltInElements.find((element2) => element2.type === type);
14348
14348
  return (_a = element == null ? void 0 : element.label) != null ? _a : type;
14349
14349
  };
14350
- var defaultParameterConfiguration = {
14351
- required: false,
14352
- formatting: {
14353
- builtIn: richTextBuiltInFormats.map((format) => format.type)
14354
- },
14355
- elements: {
14356
- builtIn: richTextBuiltInElements.map((element) => element.type)
14357
- },
14358
- elementsConfig: {
14359
- asset: {
14360
- allowedTypes: ["image"]
14361
- }
14362
- }
14363
- };
14364
14350
 
14365
14351
  // src/components/ParameterInputs/ParameterRichText.tsx
14366
14352
  var import_fast_equals2 = require("fast-equals");
@@ -16927,7 +16913,19 @@ var RichText = ({
16927
16913
  (0, import_react156.useEffect)(() => {
16928
16914
  const removeUpdateListener = editor.registerUpdateListener(({ editorState, prevEditorState, tags }) => {
16929
16915
  requestAnimationFrame(() => {
16930
- if (!(0, import_fast_equals2.deepEqual)(editorState.toJSON(), prevEditorState.toJSON())) {
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)) {
16931
16929
  onChange == null ? void 0 : onChange(editorState.toJSON(), tags);
16932
16930
  }
16933
16931
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "20.25.2-alpha.0+93d3ffc2f1",
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.0+93d3ffc2f1",
42
- "@uniformdev/richtext": "^20.25.2-alpha.0+93d3ffc2f1",
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": "93d3ffc2f1717d4ab6789d483ca7164f68a36b72"
94
+ "gitHead": "42c99fa29a788d699389b1eca81d5077093c41e9"
95
95
  }