@uniformdev/canvas 19.179.2-alpha.22 → 19.181.1-alpha.4
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 +8 -735
- package/dist/index.d.ts +8 -735
- package/dist/index.esm.js +6 -2
- package/dist/index.js +5 -1
- package/dist/index.mjs +6 -2
- package/package.json +5 -4
package/dist/index.esm.js
CHANGED
@@ -3082,7 +3082,7 @@ function bindVariables({
|
|
3082
3082
|
}
|
3083
3083
|
|
3084
3084
|
// src/utils/variables/bindVariablesToObject.ts
|
3085
|
-
import { produce } from "immer";
|
3085
|
+
import { isDraft, produce } from "immer";
|
3086
3086
|
|
3087
3087
|
// src/utils/variables/createVariableReference.ts
|
3088
3088
|
function createVariableReference(variableName) {
|
@@ -3110,7 +3110,11 @@ function bindVariablesToObjectRecursive({
|
|
3110
3110
|
if (richTextNodeResult !== void 0) {
|
3111
3111
|
return richTextNodeResult;
|
3112
3112
|
}
|
3113
|
-
const
|
3113
|
+
const produceToUse = !isDraft(value) ? produce : (produceValue, producer) => {
|
3114
|
+
producer(produceValue);
|
3115
|
+
return produceValue;
|
3116
|
+
};
|
3117
|
+
const result = produceToUse(value, (draft) => {
|
3114
3118
|
Object.entries(draft).forEach(([property, oldValue]) => {
|
3115
3119
|
const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
|
3116
3120
|
if (typeof oldValue === "string") {
|
package/dist/index.js
CHANGED
@@ -3265,7 +3265,11 @@ function bindVariablesToObjectRecursive({
|
|
3265
3265
|
if (richTextNodeResult !== void 0) {
|
3266
3266
|
return richTextNodeResult;
|
3267
3267
|
}
|
3268
|
-
const
|
3268
|
+
const produceToUse = !(0, import_immer.isDraft)(value) ? import_immer.produce : (produceValue, producer) => {
|
3269
|
+
producer(produceValue);
|
3270
|
+
return produceValue;
|
3271
|
+
};
|
3272
|
+
const result = produceToUse(value, (draft) => {
|
3269
3273
|
Object.entries(draft).forEach(([property, oldValue]) => {
|
3270
3274
|
const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
|
3271
3275
|
if (typeof oldValue === "string") {
|
package/dist/index.mjs
CHANGED
@@ -3082,7 +3082,7 @@ function bindVariables({
|
|
3082
3082
|
}
|
3083
3083
|
|
3084
3084
|
// src/utils/variables/bindVariablesToObject.ts
|
3085
|
-
import { produce } from "immer";
|
3085
|
+
import { isDraft, produce } from "immer";
|
3086
3086
|
|
3087
3087
|
// src/utils/variables/createVariableReference.ts
|
3088
3088
|
function createVariableReference(variableName) {
|
@@ -3110,7 +3110,11 @@ function bindVariablesToObjectRecursive({
|
|
3110
3110
|
if (richTextNodeResult !== void 0) {
|
3111
3111
|
return richTextNodeResult;
|
3112
3112
|
}
|
3113
|
-
const
|
3113
|
+
const produceToUse = !isDraft(value) ? produce : (produceValue, producer) => {
|
3114
|
+
producer(produceValue);
|
3115
|
+
return produceValue;
|
3116
|
+
};
|
3117
|
+
const result = produceToUse(value, (draft) => {
|
3114
3118
|
Object.entries(draft).forEach(([property, oldValue]) => {
|
3115
3119
|
const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
|
3116
3120
|
if (typeof oldValue === "string") {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.181.1-alpha.4+63886f3999",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -38,8 +38,9 @@
|
|
38
38
|
"pusher-js": "8.2.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "19.
|
42
|
-
"@uniformdev/context": "19.
|
41
|
+
"@uniformdev/assets": "19.181.1-alpha.4+63886f3999",
|
42
|
+
"@uniformdev/context": "19.181.1-alpha.4+63886f3999",
|
43
|
+
"@uniformdev/richtext": "19.181.1-alpha.4+63886f3999",
|
43
44
|
"immer": "10.1.1"
|
44
45
|
},
|
45
46
|
"files": [
|
@@ -48,5 +49,5 @@
|
|
48
49
|
"publishConfig": {
|
49
50
|
"access": "public"
|
50
51
|
},
|
51
|
-
"gitHead": "
|
52
|
+
"gitHead": "63886f3999fa693ef6b012fdcaefc930e238fc4d"
|
52
53
|
}
|