@uniformdev/context-ui 19.133.0 → 19.134.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.esm.js +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -1268,7 +1268,7 @@ function isPersonalizationCriteriaData(obj) {
|
|
|
1268
1268
|
return obj.crit !== void 0;
|
|
1269
1269
|
}
|
|
1270
1270
|
function opHasRhs(op) {
|
|
1271
|
-
return op !== "+" && op !== "-";
|
|
1271
|
+
return op !== "+" && op !== "-" && op !== "^";
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
// src/components/PersonalizationCriteria/PersonalizationCriteriaStatic.tsx
|
|
@@ -1398,7 +1398,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1398
1398
|
!currentValue.crit.length ? /* @__PURE__ */ jsx17(Callout3, { title: "Default variant", type: "info", css: { marginBlock: "var(--spacing-base)" }, children: /* @__PURE__ */ jsx17(Paragraph, { children: 'This personalized variant has no match criteria and will be shown to any visitor that does not match any preceding variants. Ensure that default variants come last in the variant list. Personalize this variant by clicking "Add Criteria" to get started.' }) }) : /* @__PURE__ */ jsx17("div", { children: currentValue.crit.map((currentCriteria, index) => {
|
|
1399
1399
|
var _a2, _b, _c, _d;
|
|
1400
1400
|
const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
|
|
1401
|
-
const critHasRhs = currentCriteria.op
|
|
1401
|
+
const critHasRhs = opHasRhs(currentCriteria.op);
|
|
1402
1402
|
return /* @__PURE__ */ jsxs9("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
|
|
1403
1403
|
/* @__PURE__ */ jsxs9(
|
|
1404
1404
|
"div",
|
package/dist/index.js
CHANGED
|
@@ -1312,7 +1312,7 @@ function isPersonalizationCriteriaData(obj) {
|
|
|
1312
1312
|
return obj.crit !== void 0;
|
|
1313
1313
|
}
|
|
1314
1314
|
function opHasRhs(op) {
|
|
1315
|
-
return op !== "+" && op !== "-";
|
|
1315
|
+
return op !== "+" && op !== "-" && op !== "^";
|
|
1316
1316
|
}
|
|
1317
1317
|
|
|
1318
1318
|
// src/components/PersonalizationCriteria/PersonalizationCriteriaStatic.tsx
|
|
@@ -1442,7 +1442,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1442
1442
|
!currentValue.crit.length ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_design_system10.Callout, { title: "Default variant", type: "info", css: { marginBlock: "var(--spacing-base)" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_design_system10.Paragraph, { children: 'This personalized variant has no match criteria and will be shown to any visitor that does not match any preceding variants. Ensure that default variants come last in the variant list. Personalize this variant by clicking "Add Criteria" to get started.' }) }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: currentValue.crit.map((currentCriteria, index) => {
|
|
1443
1443
|
var _a2, _b, _c, _d;
|
|
1444
1444
|
const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
|
|
1445
|
-
const critHasRhs = currentCriteria.op
|
|
1445
|
+
const critHasRhs = opHasRhs(currentCriteria.op);
|
|
1446
1446
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
|
|
1447
1447
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1448
1448
|
"div",
|
package/dist/index.mjs
CHANGED
|
@@ -1268,7 +1268,7 @@ function isPersonalizationCriteriaData(obj) {
|
|
|
1268
1268
|
return obj.crit !== void 0;
|
|
1269
1269
|
}
|
|
1270
1270
|
function opHasRhs(op) {
|
|
1271
|
-
return op !== "+" && op !== "-";
|
|
1271
|
+
return op !== "+" && op !== "-" && op !== "^";
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
// src/components/PersonalizationCriteria/PersonalizationCriteriaStatic.tsx
|
|
@@ -1398,7 +1398,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1398
1398
|
!currentValue.crit.length ? /* @__PURE__ */ jsx17(Callout3, { title: "Default variant", type: "info", css: { marginBlock: "var(--spacing-base)" }, children: /* @__PURE__ */ jsx17(Paragraph, { children: 'This personalized variant has no match criteria and will be shown to any visitor that does not match any preceding variants. Ensure that default variants come last in the variant list. Personalize this variant by clicking "Add Criteria" to get started.' }) }) : /* @__PURE__ */ jsx17("div", { children: currentValue.crit.map((currentCriteria, index) => {
|
|
1399
1399
|
var _a2, _b, _c, _d;
|
|
1400
1400
|
const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
|
|
1401
|
-
const critHasRhs = currentCriteria.op
|
|
1401
|
+
const critHasRhs = opHasRhs(currentCriteria.op);
|
|
1402
1402
|
return /* @__PURE__ */ jsxs9("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
|
|
1403
1403
|
/* @__PURE__ */ jsxs9(
|
|
1404
1404
|
"div",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-ui",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.134.0",
|
|
4
4
|
"description": "React-based functionality and components for Uniform Context",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@emotion/react": "11.11.3",
|
|
36
36
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v4.10.1/react-icons-all-files-4.10.1.tgz",
|
|
37
|
-
"@uniformdev/context": "19.
|
|
38
|
-
"@uniformdev/design-system": "19.
|
|
37
|
+
"@uniformdev/context": "19.134.0",
|
|
38
|
+
"@uniformdev/design-system": "19.134.0",
|
|
39
39
|
"immer": "10.0.3",
|
|
40
40
|
"react-beautiful-dnd": "13.1.1",
|
|
41
41
|
"react-select": "5.8.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "4d3856ce53d66b4e69fd693dadc98292cfbc37d1"
|
|
77
77
|
}
|