@uniformdev/canvas 19.176.2-alpha.0 → 19.177.2-alpha.10
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 +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.esm.js +6 -2
- package/dist/index.js +5 -1
- package/dist/index.mjs +6 -2
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
@@ -13402,6 +13402,8 @@ interface paths$7 {
|
|
13402
13402
|
* * `composition` - Returns only composition patterns
|
13403
13403
|
*/
|
13404
13404
|
patternType?: components$5["parameters"]["patternType"];
|
13405
|
+
/** @deprecated Includes the `patternType` attribute in the response */
|
13406
|
+
withPatternType?: components$5["parameters"]["withPatternType"];
|
13405
13407
|
/** The project the composition(s) belong to */
|
13406
13408
|
projectId: components$5["parameters"]["projectId"];
|
13407
13409
|
/**
|
@@ -13698,6 +13700,11 @@ interface components$5 {
|
|
13698
13700
|
previewImageUrl?: string;
|
13699
13701
|
/** @description Indicates if the composition is a pattern that can be referenced in other compositions */
|
13700
13702
|
pattern: boolean;
|
13703
|
+
/**
|
13704
|
+
* @description If the instance is a pattern, this indicates if it's a component pattern or a composition pattern
|
13705
|
+
* @enum {string}
|
13706
|
+
*/
|
13707
|
+
patternType?: "component" | "composition";
|
13701
13708
|
/**
|
13702
13709
|
* Format: uuid
|
13703
13710
|
* @description The release this composition belongs to. If not set, it belongs to the base
|
@@ -13839,6 +13846,11 @@ interface components$5 {
|
|
13839
13846
|
* * `composition` - Returns only composition patterns
|
13840
13847
|
*/
|
13841
13848
|
patternType: "all" | "component" | "composition";
|
13849
|
+
/**
|
13850
|
+
* @deprecated
|
13851
|
+
* @description Includes the `patternType` attribute in the response
|
13852
|
+
*/
|
13853
|
+
withPatternType: boolean;
|
13842
13854
|
/**
|
13843
13855
|
* @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
|
13844
13856
|
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
|
@@ -17428,6 +17440,8 @@ interface external$6 {
|
|
17428
17440
|
* * `composition` - Returns only composition patterns
|
17429
17441
|
*/
|
17430
17442
|
patternType?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
|
17443
|
+
/** @deprecated Includes the `patternType` attribute in the response */
|
17444
|
+
withPatternType?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["withPatternType"];
|
17431
17445
|
/** The project the composition(s) belong to */
|
17432
17446
|
projectId: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
|
17433
17447
|
/**
|
@@ -17724,6 +17738,11 @@ interface external$6 {
|
|
17724
17738
|
previewImageUrl?: string;
|
17725
17739
|
/** @description Indicates if the composition is a pattern that can be referenced in other compositions */
|
17726
17740
|
pattern: boolean;
|
17741
|
+
/**
|
17742
|
+
* @description If the instance is a pattern, this indicates if it's a component pattern or a composition pattern
|
17743
|
+
* @enum {string}
|
17744
|
+
*/
|
17745
|
+
patternType?: "component" | "composition";
|
17727
17746
|
/**
|
17728
17747
|
* Format: uuid
|
17729
17748
|
* @description The release this composition belongs to. If not set, it belongs to the base
|
@@ -17865,6 +17884,11 @@ interface external$6 {
|
|
17865
17884
|
* * `composition` - Returns only composition patterns
|
17866
17885
|
*/
|
17867
17886
|
patternType: "all" | "component" | "composition";
|
17887
|
+
/**
|
17888
|
+
* @deprecated
|
17889
|
+
* @description Includes the `patternType` attribute in the response
|
17890
|
+
*/
|
17891
|
+
withPatternType: boolean;
|
17868
17892
|
/**
|
17869
17893
|
* @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
|
17870
17894
|
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
|
@@ -20326,6 +20350,8 @@ interface external$5 {
|
|
20326
20350
|
* * `composition` - Returns only composition patterns
|
20327
20351
|
*/
|
20328
20352
|
patternType?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
|
20353
|
+
/** @deprecated Includes the `patternType` attribute in the response */
|
20354
|
+
withPatternType?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["withPatternType"];
|
20329
20355
|
/** The project the composition(s) belong to */
|
20330
20356
|
projectId: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
|
20331
20357
|
/**
|
@@ -20622,6 +20648,11 @@ interface external$5 {
|
|
20622
20648
|
previewImageUrl?: string;
|
20623
20649
|
/** @description Indicates if the composition is a pattern that can be referenced in other compositions */
|
20624
20650
|
pattern: boolean;
|
20651
|
+
/**
|
20652
|
+
* @description If the instance is a pattern, this indicates if it's a component pattern or a composition pattern
|
20653
|
+
* @enum {string}
|
20654
|
+
*/
|
20655
|
+
patternType?: "component" | "composition";
|
20625
20656
|
/**
|
20626
20657
|
* Format: uuid
|
20627
20658
|
* @description The release this composition belongs to. If not set, it belongs to the base
|
@@ -20763,6 +20794,11 @@ interface external$5 {
|
|
20763
20794
|
* * `composition` - Returns only composition patterns
|
20764
20795
|
*/
|
20765
20796
|
patternType: "all" | "component" | "composition";
|
20797
|
+
/**
|
20798
|
+
* @deprecated
|
20799
|
+
* @description Includes the `patternType` attribute in the response
|
20800
|
+
*/
|
20801
|
+
withPatternType: boolean;
|
20766
20802
|
/**
|
20767
20803
|
* @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
|
20768
20804
|
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
|
@@ -21962,7 +21998,7 @@ type ProjectMapLinkComponentParameterValue = ProjectMapLinkParamValue | undefine
|
|
21962
21998
|
type LinkComponentParameterValue = LinkParamValue;
|
21963
21999
|
|
21964
22000
|
type RichTextBuiltInFormat = 'code' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'superscript' | 'subscript';
|
21965
|
-
type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable';
|
22001
|
+
type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable' | 'table';
|
21966
22002
|
type RichTextParamConfiguration = {
|
21967
22003
|
required?: boolean;
|
21968
22004
|
formatting?: {
|
package/dist/index.d.ts
CHANGED
@@ -13402,6 +13402,8 @@ interface paths$7 {
|
|
13402
13402
|
* * `composition` - Returns only composition patterns
|
13403
13403
|
*/
|
13404
13404
|
patternType?: components$5["parameters"]["patternType"];
|
13405
|
+
/** @deprecated Includes the `patternType` attribute in the response */
|
13406
|
+
withPatternType?: components$5["parameters"]["withPatternType"];
|
13405
13407
|
/** The project the composition(s) belong to */
|
13406
13408
|
projectId: components$5["parameters"]["projectId"];
|
13407
13409
|
/**
|
@@ -13698,6 +13700,11 @@ interface components$5 {
|
|
13698
13700
|
previewImageUrl?: string;
|
13699
13701
|
/** @description Indicates if the composition is a pattern that can be referenced in other compositions */
|
13700
13702
|
pattern: boolean;
|
13703
|
+
/**
|
13704
|
+
* @description If the instance is a pattern, this indicates if it's a component pattern or a composition pattern
|
13705
|
+
* @enum {string}
|
13706
|
+
*/
|
13707
|
+
patternType?: "component" | "composition";
|
13701
13708
|
/**
|
13702
13709
|
* Format: uuid
|
13703
13710
|
* @description The release this composition belongs to. If not set, it belongs to the base
|
@@ -13839,6 +13846,11 @@ interface components$5 {
|
|
13839
13846
|
* * `composition` - Returns only composition patterns
|
13840
13847
|
*/
|
13841
13848
|
patternType: "all" | "component" | "composition";
|
13849
|
+
/**
|
13850
|
+
* @deprecated
|
13851
|
+
* @description Includes the `patternType` attribute in the response
|
13852
|
+
*/
|
13853
|
+
withPatternType: boolean;
|
13842
13854
|
/**
|
13843
13855
|
* @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
|
13844
13856
|
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
|
@@ -17428,6 +17440,8 @@ interface external$6 {
|
|
17428
17440
|
* * `composition` - Returns only composition patterns
|
17429
17441
|
*/
|
17430
17442
|
patternType?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
|
17443
|
+
/** @deprecated Includes the `patternType` attribute in the response */
|
17444
|
+
withPatternType?: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["withPatternType"];
|
17431
17445
|
/** The project the composition(s) belong to */
|
17432
17446
|
projectId: external$6["../../../lambda/functions/v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
|
17433
17447
|
/**
|
@@ -17724,6 +17738,11 @@ interface external$6 {
|
|
17724
17738
|
previewImageUrl?: string;
|
17725
17739
|
/** @description Indicates if the composition is a pattern that can be referenced in other compositions */
|
17726
17740
|
pattern: boolean;
|
17741
|
+
/**
|
17742
|
+
* @description If the instance is a pattern, this indicates if it's a component pattern or a composition pattern
|
17743
|
+
* @enum {string}
|
17744
|
+
*/
|
17745
|
+
patternType?: "component" | "composition";
|
17727
17746
|
/**
|
17728
17747
|
* Format: uuid
|
17729
17748
|
* @description The release this composition belongs to. If not set, it belongs to the base
|
@@ -17865,6 +17884,11 @@ interface external$6 {
|
|
17865
17884
|
* * `composition` - Returns only composition patterns
|
17866
17885
|
*/
|
17867
17886
|
patternType: "all" | "component" | "composition";
|
17887
|
+
/**
|
17888
|
+
* @deprecated
|
17889
|
+
* @description Includes the `patternType` attribute in the response
|
17890
|
+
*/
|
17891
|
+
withPatternType: boolean;
|
17868
17892
|
/**
|
17869
17893
|
* @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
|
17870
17894
|
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
|
@@ -20326,6 +20350,8 @@ interface external$5 {
|
|
20326
20350
|
* * `composition` - Returns only composition patterns
|
20327
20351
|
*/
|
20328
20352
|
patternType?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["patternType"];
|
20353
|
+
/** @deprecated Includes the `patternType` attribute in the response */
|
20354
|
+
withPatternType?: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["withPatternType"];
|
20329
20355
|
/** The project the composition(s) belong to */
|
20330
20356
|
projectId: external$5["v1-canvas.swagger.yml"]["components"]["parameters"]["projectId"];
|
20331
20357
|
/**
|
@@ -20622,6 +20648,11 @@ interface external$5 {
|
|
20622
20648
|
previewImageUrl?: string;
|
20623
20649
|
/** @description Indicates if the composition is a pattern that can be referenced in other compositions */
|
20624
20650
|
pattern: boolean;
|
20651
|
+
/**
|
20652
|
+
* @description If the instance is a pattern, this indicates if it's a component pattern or a composition pattern
|
20653
|
+
* @enum {string}
|
20654
|
+
*/
|
20655
|
+
patternType?: "component" | "composition";
|
20625
20656
|
/**
|
20626
20657
|
* Format: uuid
|
20627
20658
|
* @description The release this composition belongs to. If not set, it belongs to the base
|
@@ -20763,6 +20794,11 @@ interface external$5 {
|
|
20763
20794
|
* * `composition` - Returns only composition patterns
|
20764
20795
|
*/
|
20765
20796
|
patternType: "all" | "component" | "composition";
|
20797
|
+
/**
|
20798
|
+
* @deprecated
|
20799
|
+
* @description Includes the `patternType` attribute in the response
|
20800
|
+
*/
|
20801
|
+
withPatternType: boolean;
|
20766
20802
|
/**
|
20767
20803
|
* @description Sets the sorting of the results. If unspecified, results are sorted by name ascending.
|
20768
20804
|
* Allowed values are: updated_at_DESC, updated_at_ASC, created_at_DESC, created_at_ASC,
|
@@ -21962,7 +21998,7 @@ type ProjectMapLinkComponentParameterValue = ProjectMapLinkParamValue | undefine
|
|
21962
21998
|
type LinkComponentParameterValue = LinkParamValue;
|
21963
21999
|
|
21964
22000
|
type RichTextBuiltInFormat = 'code' | 'bold' | 'italic' | 'underline' | 'strikethrough' | 'superscript' | 'subscript';
|
21965
|
-
type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable';
|
22001
|
+
type RichTextBuiltInElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'unorderedList' | 'orderedList' | 'link' | 'quote' | 'code' | 'variable' | 'table';
|
21966
22002
|
type RichTextParamConfiguration = {
|
21967
22003
|
required?: boolean;
|
21968
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 { produce } from "immer";
|
2892
|
+
import { isDraft, produce } from "immer";
|
2893
2893
|
|
2894
2894
|
// src/utils/variables/createVariableReference.ts
|
2895
2895
|
function createVariableReference(variableName) {
|
@@ -2917,7 +2917,11 @@ function bindVariablesToObjectRecursive({
|
|
2917
2917
|
if (richTextNodeResult !== void 0) {
|
2918
2918
|
return richTextNodeResult;
|
2919
2919
|
}
|
2920
|
-
const
|
2920
|
+
const produceToUse = !isDraft(value) ? produce : (produceValue, producer) => {
|
2921
|
+
producer(produceValue);
|
2922
|
+
return produceValue;
|
2923
|
+
};
|
2924
|
+
const result = produceToUse(value, (draft) => {
|
2921
2925
|
Object.entries(draft).forEach(([property, oldValue]) => {
|
2922
2926
|
const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
|
2923
2927
|
if (typeof oldValue === "string") {
|
package/dist/index.js
CHANGED
@@ -3066,7 +3066,11 @@ function bindVariablesToObjectRecursive({
|
|
3066
3066
|
if (richTextNodeResult !== void 0) {
|
3067
3067
|
return richTextNodeResult;
|
3068
3068
|
}
|
3069
|
-
const
|
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) => {
|
3070
3074
|
Object.entries(draft).forEach(([property, oldValue]) => {
|
3071
3075
|
const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
|
3072
3076
|
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 { produce } from "immer";
|
2892
|
+
import { isDraft, produce } from "immer";
|
2893
2893
|
|
2894
2894
|
// src/utils/variables/createVariableReference.ts
|
2895
2895
|
function createVariableReference(variableName) {
|
@@ -2917,7 +2917,11 @@ function bindVariablesToObjectRecursive({
|
|
2917
2917
|
if (richTextNodeResult !== void 0) {
|
2918
2918
|
return richTextNodeResult;
|
2919
2919
|
}
|
2920
|
-
const
|
2920
|
+
const produceToUse = !isDraft(value) ? produce : (produceValue, producer) => {
|
2921
|
+
producer(produceValue);
|
2922
|
+
return produceValue;
|
2923
|
+
};
|
2924
|
+
const result = produceToUse(value, (draft) => {
|
2921
2925
|
Object.entries(draft).forEach(([property, oldValue]) => {
|
2922
2926
|
const currentObjectPath = recursivePath ? `${recursivePath}.${property}` : property;
|
2923
2927
|
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.177.2-alpha.10+c9cb5f414c",
|
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.
|
35
|
+
"lexical": "0.17.0",
|
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.
|
42
|
-
"@uniformdev/context": "19.
|
41
|
+
"@uniformdev/assets": "19.177.2-alpha.10+c9cb5f414c",
|
42
|
+
"@uniformdev/context": "19.177.2-alpha.10+c9cb5f414c",
|
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": "
|
51
|
+
"gitHead": "c9cb5f414c41dc1d2c37dff02a5b87484901657e"
|
52
52
|
}
|