@uniformdev/context-ui 19.133.0 → 19.134.3-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.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 !== "+" && 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 !== "+" && 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 !== "+" && 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.133.0",
3
+ "version": "19.134.3-alpha.10+ae656e8e4c",
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,9 +34,9 @@
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.133.0",
38
- "@uniformdev/design-system": "19.133.0",
39
- "immer": "10.0.3",
37
+ "@uniformdev/context": "19.134.3-alpha.10+ae656e8e4c",
38
+ "@uniformdev/design-system": "19.134.3-alpha.10+ae656e8e4c",
39
+ "immer": "10.0.4",
40
40
  "react-beautiful-dnd": "13.1.1",
41
41
  "react-select": "5.8.0",
42
42
  "react-use": "17.4.2",
@@ -61,7 +61,7 @@
61
61
  "@types/react-beautiful-dnd": "13.1.8",
62
62
  "@types/uuid": "9.0.4",
63
63
  "autoprefixer": "10.4.16",
64
- "postcss": "8.4.32",
64
+ "postcss": "8.4.38",
65
65
  "postcss-import": "15.1.0",
66
66
  "react": "18.2.0",
67
67
  "react-dom": "18.2.0",
@@ -73,5 +73,5 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "405a628b0f592ca13bf65006ef5c92261468c144"
76
+ "gitHead": "ae656e8e4c730dbf960ef43b6c5e9a0b8ba13193"
77
77
  }