@uniformdev/canvas 19.186.2-alpha.14 → 19.186.4-alpha.29
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 +1596 -254
- package/dist/index.d.ts +1596 -254
- package/dist/index.esm.js +12 -4
- package/dist/index.js +12 -4
- package/dist/index.mjs +12 -4
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
@@ -1042,6 +1042,9 @@ var escapeCharacter = "\\";
|
|
1042
1042
|
var variablePrefix = "${";
|
1043
1043
|
var variableSuffix = "}";
|
1044
1044
|
function parseVariableExpression(serialized, onToken) {
|
1045
|
+
if (typeof serialized !== "string") {
|
1046
|
+
throw new TypeError("Variable expression must be a string");
|
1047
|
+
}
|
1045
1048
|
let bufferStartIndex = 0;
|
1046
1049
|
let bufferEndIndex = 0;
|
1047
1050
|
let tokenCount = 0;
|
@@ -1742,7 +1745,7 @@ function evaluateCriterion(clause, rootOptions) {
|
|
1742
1745
|
}
|
1743
1746
|
const lhs = (_a = clause.source) != null ? _a : clause.rule;
|
1744
1747
|
const rhs = Array.isArray(clause.value) ? clause.value : clause.value !== void 0 ? [clause.value] : void 0;
|
1745
|
-
if (hasReferencedVariables(lhs) > 0 || (rhs == null ? void 0 : rhs.some((rhv) => hasReferencedVariables(rhv) > 0))) {
|
1748
|
+
if (typeof lhs === "string" && hasReferencedVariables(lhs) > 0 || (rhs == null ? void 0 : rhs.some((rhv) => typeof rhv === "string" && hasReferencedVariables(rhv) > 0))) {
|
1746
1749
|
return null;
|
1747
1750
|
}
|
1748
1751
|
const rule = rootOptions.rules[clause.rule];
|
@@ -2028,7 +2031,7 @@ function createDynamicTokenVisibilityRule() {
|
|
2028
2031
|
return {
|
2029
2032
|
[CANVAS_VIZ_DYNAMIC_TOKEN_RULE]: (criterion) => {
|
2030
2033
|
var _a;
|
2031
|
-
if (hasReferencedVariables(criterion.source)) {
|
2034
|
+
if (typeof criterion.source !== "string" || hasReferencedVariables(criterion.source)) {
|
2032
2035
|
return null;
|
2033
2036
|
}
|
2034
2037
|
return evaluateStringMatch(criterion, (_a = criterion.source) != null ? _a : "", dynamicTokenVisibilityOperators);
|
@@ -2953,14 +2956,19 @@ function convertEntryToPutEntry(entry) {
|
|
2953
2956
|
_overridability: entry.entry._overridability,
|
2954
2957
|
_overrides: entry.entry._overrides,
|
2955
2958
|
fields: entry.entry.fields,
|
2956
|
-
_locales: entry.entry._locales
|
2959
|
+
_locales: entry.entry._locales,
|
2960
|
+
_thumbnail: entry.entry._thumbnail,
|
2961
|
+
_patternDataResources: entry.entry._patternDataResources
|
2957
2962
|
},
|
2958
2963
|
pattern: entry.pattern,
|
2959
2964
|
state: entry.state,
|
2960
2965
|
projectId: entry.projectId,
|
2961
2966
|
releaseId: entry.releaseId,
|
2962
2967
|
workflowId: entry.workflowId,
|
2963
|
-
workflowStageId: entry.workflowStageId
|
2968
|
+
workflowStageId: entry.workflowStageId,
|
2969
|
+
editionId: entry.editionId,
|
2970
|
+
editionName: entry.editionName,
|
2971
|
+
editionPriority: entry.editionPriority
|
2964
2972
|
};
|
2965
2973
|
}
|
2966
2974
|
|
package/dist/index.js
CHANGED
@@ -1198,6 +1198,9 @@ var escapeCharacter = "\\";
|
|
1198
1198
|
var variablePrefix = "${";
|
1199
1199
|
var variableSuffix = "}";
|
1200
1200
|
function parseVariableExpression(serialized, onToken) {
|
1201
|
+
if (typeof serialized !== "string") {
|
1202
|
+
throw new TypeError("Variable expression must be a string");
|
1203
|
+
}
|
1201
1204
|
let bufferStartIndex = 0;
|
1202
1205
|
let bufferEndIndex = 0;
|
1203
1206
|
let tokenCount = 0;
|
@@ -1898,7 +1901,7 @@ function evaluateCriterion(clause, rootOptions) {
|
|
1898
1901
|
}
|
1899
1902
|
const lhs = (_a = clause.source) != null ? _a : clause.rule;
|
1900
1903
|
const rhs = Array.isArray(clause.value) ? clause.value : clause.value !== void 0 ? [clause.value] : void 0;
|
1901
|
-
if (hasReferencedVariables(lhs) > 0 || (rhs == null ? void 0 : rhs.some((rhv) => hasReferencedVariables(rhv) > 0))) {
|
1904
|
+
if (typeof lhs === "string" && hasReferencedVariables(lhs) > 0 || (rhs == null ? void 0 : rhs.some((rhv) => typeof rhv === "string" && hasReferencedVariables(rhv) > 0))) {
|
1902
1905
|
return null;
|
1903
1906
|
}
|
1904
1907
|
const rule = rootOptions.rules[clause.rule];
|
@@ -2184,7 +2187,7 @@ function createDynamicTokenVisibilityRule() {
|
|
2184
2187
|
return {
|
2185
2188
|
[CANVAS_VIZ_DYNAMIC_TOKEN_RULE]: (criterion) => {
|
2186
2189
|
var _a;
|
2187
|
-
if (hasReferencedVariables(criterion.source)) {
|
2190
|
+
if (typeof criterion.source !== "string" || hasReferencedVariables(criterion.source)) {
|
2188
2191
|
return null;
|
2189
2192
|
}
|
2190
2193
|
return evaluateStringMatch(criterion, (_a = criterion.source) != null ? _a : "", dynamicTokenVisibilityOperators);
|
@@ -3109,14 +3112,19 @@ function convertEntryToPutEntry(entry) {
|
|
3109
3112
|
_overridability: entry.entry._overridability,
|
3110
3113
|
_overrides: entry.entry._overrides,
|
3111
3114
|
fields: entry.entry.fields,
|
3112
|
-
_locales: entry.entry._locales
|
3115
|
+
_locales: entry.entry._locales,
|
3116
|
+
_thumbnail: entry.entry._thumbnail,
|
3117
|
+
_patternDataResources: entry.entry._patternDataResources
|
3113
3118
|
},
|
3114
3119
|
pattern: entry.pattern,
|
3115
3120
|
state: entry.state,
|
3116
3121
|
projectId: entry.projectId,
|
3117
3122
|
releaseId: entry.releaseId,
|
3118
3123
|
workflowId: entry.workflowId,
|
3119
|
-
workflowStageId: entry.workflowStageId
|
3124
|
+
workflowStageId: entry.workflowStageId,
|
3125
|
+
editionId: entry.editionId,
|
3126
|
+
editionName: entry.editionName,
|
3127
|
+
editionPriority: entry.editionPriority
|
3120
3128
|
};
|
3121
3129
|
}
|
3122
3130
|
|
package/dist/index.mjs
CHANGED
@@ -1042,6 +1042,9 @@ var escapeCharacter = "\\";
|
|
1042
1042
|
var variablePrefix = "${";
|
1043
1043
|
var variableSuffix = "}";
|
1044
1044
|
function parseVariableExpression(serialized, onToken) {
|
1045
|
+
if (typeof serialized !== "string") {
|
1046
|
+
throw new TypeError("Variable expression must be a string");
|
1047
|
+
}
|
1045
1048
|
let bufferStartIndex = 0;
|
1046
1049
|
let bufferEndIndex = 0;
|
1047
1050
|
let tokenCount = 0;
|
@@ -1742,7 +1745,7 @@ function evaluateCriterion(clause, rootOptions) {
|
|
1742
1745
|
}
|
1743
1746
|
const lhs = (_a = clause.source) != null ? _a : clause.rule;
|
1744
1747
|
const rhs = Array.isArray(clause.value) ? clause.value : clause.value !== void 0 ? [clause.value] : void 0;
|
1745
|
-
if (hasReferencedVariables(lhs) > 0 || (rhs == null ? void 0 : rhs.some((rhv) => hasReferencedVariables(rhv) > 0))) {
|
1748
|
+
if (typeof lhs === "string" && hasReferencedVariables(lhs) > 0 || (rhs == null ? void 0 : rhs.some((rhv) => typeof rhv === "string" && hasReferencedVariables(rhv) > 0))) {
|
1746
1749
|
return null;
|
1747
1750
|
}
|
1748
1751
|
const rule = rootOptions.rules[clause.rule];
|
@@ -2028,7 +2031,7 @@ function createDynamicTokenVisibilityRule() {
|
|
2028
2031
|
return {
|
2029
2032
|
[CANVAS_VIZ_DYNAMIC_TOKEN_RULE]: (criterion) => {
|
2030
2033
|
var _a;
|
2031
|
-
if (hasReferencedVariables(criterion.source)) {
|
2034
|
+
if (typeof criterion.source !== "string" || hasReferencedVariables(criterion.source)) {
|
2032
2035
|
return null;
|
2033
2036
|
}
|
2034
2037
|
return evaluateStringMatch(criterion, (_a = criterion.source) != null ? _a : "", dynamicTokenVisibilityOperators);
|
@@ -2953,14 +2956,19 @@ function convertEntryToPutEntry(entry) {
|
|
2953
2956
|
_overridability: entry.entry._overridability,
|
2954
2957
|
_overrides: entry.entry._overrides,
|
2955
2958
|
fields: entry.entry.fields,
|
2956
|
-
_locales: entry.entry._locales
|
2959
|
+
_locales: entry.entry._locales,
|
2960
|
+
_thumbnail: entry.entry._thumbnail,
|
2961
|
+
_patternDataResources: entry.entry._patternDataResources
|
2957
2962
|
},
|
2958
2963
|
pattern: entry.pattern,
|
2959
2964
|
state: entry.state,
|
2960
2965
|
projectId: entry.projectId,
|
2961
2966
|
releaseId: entry.releaseId,
|
2962
2967
|
workflowId: entry.workflowId,
|
2963
|
-
workflowStageId: entry.workflowStageId
|
2968
|
+
workflowStageId: entry.workflowStageId,
|
2969
|
+
editionId: entry.editionId,
|
2970
|
+
editionName: entry.editionName,
|
2971
|
+
editionPriority: entry.editionPriority
|
2964
2972
|
};
|
2965
2973
|
}
|
2966
2974
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.186.
|
3
|
+
"version": "19.186.4-alpha.29+03de47b2a8",
|
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,9 +38,9 @@
|
|
38
38
|
"pusher-js": "8.2.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "19.186.
|
42
|
-
"@uniformdev/context": "19.186.
|
43
|
-
"@uniformdev/richtext": "19.186.
|
41
|
+
"@uniformdev/assets": "19.186.4-alpha.29+03de47b2a8",
|
42
|
+
"@uniformdev/context": "19.186.4-alpha.29+03de47b2a8",
|
43
|
+
"@uniformdev/richtext": "19.186.4-alpha.29+03de47b2a8",
|
44
44
|
"immer": "10.1.1"
|
45
45
|
},
|
46
46
|
"files": [
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"publishConfig": {
|
50
50
|
"access": "public"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "03de47b2a82e853fe3a989a5a60f352c74ed2777"
|
53
53
|
}
|