@uniformdev/canvas 19.177.2-alpha.10 → 19.178.0

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/index.d.mts CHANGED
@@ -21998,7 +21998,7 @@ type ProjectMapLinkComponentParameterValue = ProjectMapLinkParamValue | undefine
21998
21998
  type LinkComponentParameterValue = LinkParamValue;
21999
21999
 
22000
22000
  type RichTextBuiltInFormat = 'code' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'superscript' | 'subscript';
22001
- type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable' | 'table';
22001
+ type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable';
22002
22002
  type RichTextParamConfiguration = {
22003
22003
  required?: boolean;
22004
22004
  formatting?: {
package/dist/index.d.ts CHANGED
@@ -21998,7 +21998,7 @@ type ProjectMapLinkComponentParameterValue = ProjectMapLinkParamValue | undefine
21998
21998
  type LinkComponentParameterValue = LinkParamValue;
21999
21999
 
22000
22000
  type RichTextBuiltInFormat = 'code' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'superscript' | 'subscript';
22001
- type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable' | 'table';
22001
+ type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable';
22002
22002
  type RichTextParamConfiguration = {
22003
22003
  required?: boolean;
22004
22004
  formatting?: {
package/dist/index.esm.js CHANGED
@@ -2889,7 +2889,7 @@ function bindVariables({
2889
2889
  }
2890
2890
 
2891
2891
  // src/utils/variables/bindVariablesToObject.ts
2892
- import { isDraft, produce } from "immer";
2892
+ import { produce } from "immer";
2893
2893
 
2894
2894
  // src/utils/variables/createVariableReference.ts
2895
2895
  function createVariableReference(variableName) {
@@ -2917,11 +2917,7 @@ function bindVariablesToObjectRecursive({
2917
2917
  if (richTextNodeResult !== void 0) {
2918
2918
  return richTextNodeResult;
2919
2919
  }
2920
- const produceToUse = !isDraft(value) ? produce : (produceValue, producer) => {
2921
- producer(produceValue);
2922
- return produceValue;
2923
- };
2924
- const result = produceToUse(value, (draft) => {
2920
+ const result = produce(value, (draft) => {
2925
2921
  Object.entries(draft).forEach(([property, oldValue]) => {
2926
2922
  const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
2927
2923
  if (typeof oldValue === "string") {
package/dist/index.js CHANGED
@@ -3066,11 +3066,7 @@ function bindVariablesToObjectRecursive({
3066
3066
  if (richTextNodeResult !== void 0) {
3067
3067
  return richTextNodeResult;
3068
3068
  }
3069
- const produceToUse = !(0, import_immer.isDraft)(value) ? import_immer.produce : (produceValue, producer) => {
3070
- producer(produceValue);
3071
- return produceValue;
3072
- };
3073
- const result = produceToUse(value, (draft) => {
3069
+ const result = (0, import_immer.produce)(value, (draft) => {
3074
3070
  Object.entries(draft).forEach(([property, oldValue]) => {
3075
3071
  const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
3076
3072
  if (typeof oldValue === "string") {
package/dist/index.mjs CHANGED
@@ -2889,7 +2889,7 @@ function bindVariables({
2889
2889
  }
2890
2890
 
2891
2891
  // src/utils/variables/bindVariablesToObject.ts
2892
- import { isDraft, produce } from "immer";
2892
+ import { produce } from "immer";
2893
2893
 
2894
2894
  // src/utils/variables/createVariableReference.ts
2895
2895
  function createVariableReference(variableName) {
@@ -2917,11 +2917,7 @@ function bindVariablesToObjectRecursive({
2917
2917
  if (richTextNodeResult !== void 0) {
2918
2918
  return richTextNodeResult;
2919
2919
  }
2920
- const produceToUse = !isDraft(value) ? produce : (produceValue, producer) => {
2921
- producer(produceValue);
2922
- return produceValue;
2923
- };
2924
- const result = produceToUse(value, (draft) => {
2920
+ const result = produce(value, (draft) => {
2925
2921
  Object.entries(draft).forEach(([property, oldValue]) => {
2926
2922
  const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
2927
2923
  if (typeof oldValue === "string") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "19.177.2-alpha.10+c9cb5f414c",
3
+ "version": "19.178.0",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -32,14 +32,14 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/retry": "0.12.5",
35
- "lexical": "0.17.0",
35
+ "lexical": "0.16.1",
36
36
  "p-retry": "5.1.2",
37
37
  "p-throttle": "5.0.0",
38
38
  "pusher-js": "8.2.0"
39
39
  },
40
40
  "dependencies": {
41
- "@uniformdev/assets": "19.177.2-alpha.10+c9cb5f414c",
42
- "@uniformdev/context": "19.177.2-alpha.10+c9cb5f414c",
41
+ "@uniformdev/assets": "19.178.0",
42
+ "@uniformdev/context": "19.178.0",
43
43
  "immer": "10.1.1"
44
44
  },
45
45
  "files": [
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "c9cb5f414c41dc1d2c37dff02a5b87484901657e"
51
+ "gitHead": "66721c01d9bf53917e5c4d83e2e578248e72560d"
52
52
  }