@uniformdev/context-ui 20.11.0 → 20.12.1-alpha.8

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
@@ -857,6 +857,7 @@ function DimensionMenu({
857
857
  ...props,
858
858
  value: valueAsMenuOption,
859
859
  options: groupedDimensions,
860
+ getOptionValue: (option) => option.label,
860
861
  styles: {
861
862
  ...props.styles,
862
863
  valueContainer: (provided, state) => {
@@ -1448,8 +1449,9 @@ var PersonalizationCriteriaStatic = ({
1448
1449
  var _a2, _b, _c, _d, _e, _f, _g, _h;
1449
1450
  const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
1450
1451
  const critHasRhs = opHasRhs(currentCriteria.op);
1451
- const currentDimension = dimensions.dimIndex[currentCriteria.l];
1452
- const currentQuirk = quirks == null ? void 0 : quirks.find((q) => q.id === currentCriteria.l);
1452
+ const selectedValueIsQuirk = "t" in currentCriteria && currentCriteria.t === "q";
1453
+ const currentDimension = selectedValueIsQuirk ? void 0 : dimensions.dimIndex[currentCriteria.l];
1454
+ const currentQuirk = selectedValueIsQuirk ? quirks == null ? void 0 : quirks.find((q) => q.id === currentCriteria.l) : void 0;
1453
1455
  return /* @__PURE__ */ jsxs9("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
1454
1456
  /* @__PURE__ */ jsxs9("div", { css: criteriaItemInner, className: "criteriaItemInner", children: [
1455
1457
  /* @__PURE__ */ jsx17(
package/dist/index.js CHANGED
@@ -910,6 +910,7 @@ function DimensionMenu({
910
910
  ...props,
911
911
  value: valueAsMenuOption,
912
912
  options: groupedDimensions,
913
+ getOptionValue: (option) => option.label,
913
914
  styles: {
914
915
  ...props.styles,
915
916
  valueContainer: (provided, state) => {
@@ -1484,8 +1485,9 @@ var PersonalizationCriteriaStatic = ({
1484
1485
  var _a2, _b, _c, _d, _e, _f, _g, _h;
1485
1486
  const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
1486
1487
  const critHasRhs = opHasRhs(currentCriteria.op);
1487
- const currentDimension = dimensions.dimIndex[currentCriteria.l];
1488
- const currentQuirk = quirks == null ? void 0 : quirks.find((q) => q.id === currentCriteria.l);
1488
+ const selectedValueIsQuirk = "t" in currentCriteria && currentCriteria.t === "q";
1489
+ const currentDimension = selectedValueIsQuirk ? void 0 : dimensions.dimIndex[currentCriteria.l];
1490
+ const currentQuirk = selectedValueIsQuirk ? quirks == null ? void 0 : quirks.find((q) => q.id === currentCriteria.l) : void 0;
1489
1491
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
1490
1492
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { css: criteriaItemInner, className: "criteriaItemInner", children: [
1491
1493
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
package/dist/index.mjs CHANGED
@@ -857,6 +857,7 @@ function DimensionMenu({
857
857
  ...props,
858
858
  value: valueAsMenuOption,
859
859
  options: groupedDimensions,
860
+ getOptionValue: (option) => option.label,
860
861
  styles: {
861
862
  ...props.styles,
862
863
  valueContainer: (provided, state) => {
@@ -1448,8 +1449,9 @@ var PersonalizationCriteriaStatic = ({
1448
1449
  var _a2, _b, _c, _d, _e, _f, _g, _h;
1449
1450
  const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
1450
1451
  const critHasRhs = opHasRhs(currentCriteria.op);
1451
- const currentDimension = dimensions.dimIndex[currentCriteria.l];
1452
- const currentQuirk = quirks == null ? void 0 : quirks.find((q) => q.id === currentCriteria.l);
1452
+ const selectedValueIsQuirk = "t" in currentCriteria && currentCriteria.t === "q";
1453
+ const currentDimension = selectedValueIsQuirk ? void 0 : dimensions.dimIndex[currentCriteria.l];
1454
+ const currentQuirk = selectedValueIsQuirk ? quirks == null ? void 0 : quirks.find((q) => q.id === currentCriteria.l) : void 0;
1453
1455
  return /* @__PURE__ */ jsxs9("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
1454
1456
  /* @__PURE__ */ jsxs9("div", { css: criteriaItemInner, className: "criteriaItemInner", children: [
1455
1457
  /* @__PURE__ */ jsx17(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-ui",
3
- "version": "20.11.0",
3
+ "version": "20.12.1-alpha.8+98c4209e77",
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.13.5",
36
36
  "@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
37
- "@uniformdev/context": "20.11.0",
38
- "@uniformdev/design-system": "20.11.0",
37
+ "@uniformdev/context": "20.12.1-alpha.8+98c4209e77",
38
+ "@uniformdev/design-system": "20.12.1-alpha.8+98c4209e77",
39
39
  "immer": "10.1.1",
40
40
  "react-beautiful-dnd": "13.1.1",
41
41
  "react-select": "5.10.0",
@@ -76,5 +76,5 @@
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  },
79
- "gitHead": "493d4a260f61ec89f043e67fa8948898ecb2f45e"
79
+ "gitHead": "98c4209e77221c324d5ef662825e7bdbed42ed43"
80
80
  }