@uniformdev/canvas 19.180.0 → 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 +4 -4
- package/dist/index.d.ts +4 -4
- 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.d.mts
CHANGED
@@ -5,7 +5,7 @@ import { Quirks, StorageCommands, PersonalizedVariant, TestVariant } from '@unif
|
|
5
5
|
import Pusher from 'pusher-js';
|
6
6
|
import { Options as Options$1 } from 'p-retry';
|
7
7
|
import { Options } from 'p-throttle';
|
8
|
-
import {
|
8
|
+
import { RichTextBuiltInFormat as RichTextBuiltInFormat$1, RichTextBuiltInElement as RichTextBuiltInElement$1, ParameterRichTextValue } from '@uniformdev/richtext';
|
9
9
|
|
10
10
|
/**
|
11
11
|
* This file was auto-generated by openapi-typescript.
|
@@ -23041,8 +23041,8 @@ type ProjectMapLinkComponentParameterValue = ProjectMapLinkParamValue | undefine
|
|
23041
23041
|
*/
|
23042
23042
|
type LinkComponentParameterValue = LinkParamValue;
|
23043
23043
|
|
23044
|
-
type RichTextBuiltInFormat =
|
23045
|
-
type RichTextBuiltInElement =
|
23044
|
+
type RichTextBuiltInFormat = RichTextBuiltInFormat$1;
|
23045
|
+
type RichTextBuiltInElement = RichTextBuiltInElement$1;
|
23046
23046
|
type RichTextParamConfiguration = {
|
23047
23047
|
required?: boolean;
|
23048
23048
|
formatting?: {
|
@@ -23052,7 +23052,7 @@ type RichTextParamConfiguration = {
|
|
23052
23052
|
builtIn?: Array<RichTextBuiltInElement>;
|
23053
23053
|
};
|
23054
23054
|
};
|
23055
|
-
type RichTextParamValue =
|
23055
|
+
type RichTextParamValue = ParameterRichTextValue;
|
23056
23056
|
|
23057
23057
|
/**
|
23058
23058
|
* This file was auto-generated by openapi-typescript.
|
package/dist/index.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { Quirks, StorageCommands, PersonalizedVariant, TestVariant } from '@unif
|
|
5
5
|
import Pusher from 'pusher-js';
|
6
6
|
import { Options as Options$1 } from 'p-retry';
|
7
7
|
import { Options } from 'p-throttle';
|
8
|
-
import {
|
8
|
+
import { RichTextBuiltInFormat as RichTextBuiltInFormat$1, RichTextBuiltInElement as RichTextBuiltInElement$1, ParameterRichTextValue } from '@uniformdev/richtext';
|
9
9
|
|
10
10
|
/**
|
11
11
|
* This file was auto-generated by openapi-typescript.
|
@@ -23041,8 +23041,8 @@ type ProjectMapLinkComponentParameterValue = ProjectMapLinkParamValue | undefine
|
|
23041
23041
|
*/
|
23042
23042
|
type LinkComponentParameterValue = LinkParamValue;
|
23043
23043
|
|
23044
|
-
type RichTextBuiltInFormat =
|
23045
|
-
type RichTextBuiltInElement =
|
23044
|
+
type RichTextBuiltInFormat = RichTextBuiltInFormat$1;
|
23045
|
+
type RichTextBuiltInElement = RichTextBuiltInElement$1;
|
23046
23046
|
type RichTextParamConfiguration = {
|
23047
23047
|
required?: boolean;
|
23048
23048
|
formatting?: {
|
@@ -23052,7 +23052,7 @@ type RichTextParamConfiguration = {
|
|
23052
23052
|
builtIn?: Array<RichTextBuiltInElement>;
|
23053
23053
|
};
|
23054
23054
|
};
|
23055
|
-
type RichTextParamValue =
|
23055
|
+
type RichTextParamValue = ParameterRichTextValue;
|
23056
23056
|
|
23057
23057
|
/**
|
23058
23058
|
* This file was auto-generated by openapi-typescript.
|
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
|
}
|