@uniformdev/context-ui 19.37.1 → 19.38.2
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 +9 -9
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -506,11 +506,11 @@ function DimensionValue({ displayName }) {
|
|
|
506
506
|
css: { color: "var(--gray-500)", display: "flex", alignItems: "center", gap: "var(--spacing-xs)" },
|
|
507
507
|
children: [
|
|
508
508
|
type ? /* @__PURE__ */ jsx10(Icon2, { icon: dimensionIcon(type), iconColor: "currentColor", size: 16 }) : null,
|
|
509
|
-
/* @__PURE__ */ jsx10("span", { "data-
|
|
509
|
+
/* @__PURE__ */ jsx10("span", { "data-testid": "dimension-name", children: type })
|
|
510
510
|
]
|
|
511
511
|
}
|
|
512
512
|
) : null,
|
|
513
|
-
/* @__PURE__ */ jsx10("div", { css: { color: "var(--gray-700)" }, "data-
|
|
513
|
+
/* @__PURE__ */ jsx10("div", { css: { color: "var(--gray-700)" }, "data-testid": "dimension-value", children: name != null ? name : type })
|
|
514
514
|
]
|
|
515
515
|
}
|
|
516
516
|
);
|
|
@@ -1222,7 +1222,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1222
1222
|
var _a2, _b, _c, _d;
|
|
1223
1223
|
const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
|
|
1224
1224
|
const critHasRhs = currentCriteria.op !== "+" && currentCriteria.op !== "-";
|
|
1225
|
-
return /* @__PURE__ */ jsxs8("div", { css: criteriaItem, "data-
|
|
1225
|
+
return /* @__PURE__ */ jsxs8("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
|
|
1226
1226
|
/* @__PURE__ */ jsxs8(
|
|
1227
1227
|
"div",
|
|
1228
1228
|
{
|
|
@@ -1236,7 +1236,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1236
1236
|
{
|
|
1237
1237
|
css: [criteriaWrapper, criteriaOperandWrapper],
|
|
1238
1238
|
className: "criteria-wrapper",
|
|
1239
|
-
"data-
|
|
1239
|
+
"data-testid": "select-criteria",
|
|
1240
1240
|
children: /* @__PURE__ */ jsx16(
|
|
1241
1241
|
DimensionMenu,
|
|
1242
1242
|
{
|
|
@@ -1259,7 +1259,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1259
1259
|
{
|
|
1260
1260
|
css: [criteriaWrapper, criteriaOperatorWrapper],
|
|
1261
1261
|
className: "criteria-wrapper",
|
|
1262
|
-
"data-
|
|
1262
|
+
"data-testid": "select-operator",
|
|
1263
1263
|
children: /* @__PURE__ */ jsx16(
|
|
1264
1264
|
CriteriaOperatorMenu,
|
|
1265
1265
|
{
|
|
@@ -1285,7 +1285,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1285
1285
|
{
|
|
1286
1286
|
css: [criteriaWrapper, criteriaOperandWrapper],
|
|
1287
1287
|
className: "criteria-wrapper",
|
|
1288
|
-
"data-
|
|
1288
|
+
"data-testid": "select-match-criteria",
|
|
1289
1289
|
children: /* @__PURE__ */ jsx16(
|
|
1290
1290
|
CriteriaMatchMenu,
|
|
1291
1291
|
{
|
|
@@ -1314,7 +1314,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1314
1314
|
onClick: () => removeFromList(index),
|
|
1315
1315
|
title: `Delete Personalization`,
|
|
1316
1316
|
css: { backgroundColor: "transparent", backgroundImage: "none", borderWidth: 0 },
|
|
1317
|
-
"data-
|
|
1317
|
+
"data-testid": "button-delete",
|
|
1318
1318
|
children: /* @__PURE__ */ jsx16(Icon5, { icon: CgCloseO2, iconColor: "red", size: "1.5rem" })
|
|
1319
1319
|
}
|
|
1320
1320
|
),
|
|
@@ -1330,7 +1330,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1330
1330
|
children: /* @__PURE__ */ jsx16(
|
|
1331
1331
|
InputInlineSelect,
|
|
1332
1332
|
{
|
|
1333
|
-
"data-
|
|
1333
|
+
"data-testid": "dropdown-button-combine",
|
|
1334
1334
|
disabled: index > 1,
|
|
1335
1335
|
value: (_d = currentValue.op) != null ? _d : "&",
|
|
1336
1336
|
options: [
|
|
@@ -1349,7 +1349,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1349
1349
|
dimensions.dimensions.length === 0 ? (components == null ? void 0 : components.NoDimensionsDefined) ? /* @__PURE__ */ jsx16(components.NoDimensionsDefined, {}) : /* @__PURE__ */ jsx16(Callout2, { title: "Dimensions", type: "info", css: { marginBlock: "var(--spacing-base)" }, children: /* @__PURE__ */ jsx16("p", { children: "You do not have any dimensions configured." }) }) : /* @__PURE__ */ jsx16(
|
|
1350
1350
|
AddListButton2,
|
|
1351
1351
|
{
|
|
1352
|
-
"data-
|
|
1352
|
+
"data-testid": "button-add-criteria",
|
|
1353
1353
|
className: "add-more",
|
|
1354
1354
|
buttonText: "Add Criteria",
|
|
1355
1355
|
onButtonClick: addToList
|
package/dist/index.js
CHANGED
|
@@ -565,11 +565,11 @@ function DimensionValue({ displayName }) {
|
|
|
565
565
|
css: { color: "var(--gray-500)", display: "flex", alignItems: "center", gap: "var(--spacing-xs)" },
|
|
566
566
|
children: [
|
|
567
567
|
type ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_design_system4.Icon, { icon: dimensionIcon(type), iconColor: "currentColor", size: 16 }) : null,
|
|
568
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "data-
|
|
568
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "data-testid": "dimension-name", children: type })
|
|
569
569
|
]
|
|
570
570
|
}
|
|
571
571
|
) : null,
|
|
572
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { css: { color: "var(--gray-700)" }, "data-
|
|
572
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { css: { color: "var(--gray-700)" }, "data-testid": "dimension-value", children: name != null ? name : type })
|
|
573
573
|
]
|
|
574
574
|
}
|
|
575
575
|
);
|
|
@@ -1273,7 +1273,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1273
1273
|
var _a2, _b, _c, _d;
|
|
1274
1274
|
const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
|
|
1275
1275
|
const critHasRhs = currentCriteria.op !== "+" && currentCriteria.op !== "-";
|
|
1276
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { css: criteriaItem, "data-
|
|
1276
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
|
|
1277
1277
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1278
1278
|
"div",
|
|
1279
1279
|
{
|
|
@@ -1287,7 +1287,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1287
1287
|
{
|
|
1288
1288
|
css: [criteriaWrapper, criteriaOperandWrapper],
|
|
1289
1289
|
className: "criteria-wrapper",
|
|
1290
|
-
"data-
|
|
1290
|
+
"data-testid": "select-criteria",
|
|
1291
1291
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1292
1292
|
DimensionMenu,
|
|
1293
1293
|
{
|
|
@@ -1310,7 +1310,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1310
1310
|
{
|
|
1311
1311
|
css: [criteriaWrapper, criteriaOperatorWrapper],
|
|
1312
1312
|
className: "criteria-wrapper",
|
|
1313
|
-
"data-
|
|
1313
|
+
"data-testid": "select-operator",
|
|
1314
1314
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1315
1315
|
CriteriaOperatorMenu,
|
|
1316
1316
|
{
|
|
@@ -1336,7 +1336,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1336
1336
|
{
|
|
1337
1337
|
css: [criteriaWrapper, criteriaOperandWrapper],
|
|
1338
1338
|
className: "criteria-wrapper",
|
|
1339
|
-
"data-
|
|
1339
|
+
"data-testid": "select-match-criteria",
|
|
1340
1340
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1341
1341
|
CriteriaMatchMenu,
|
|
1342
1342
|
{
|
|
@@ -1365,7 +1365,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1365
1365
|
onClick: () => removeFromList(index),
|
|
1366
1366
|
title: `Delete Personalization`,
|
|
1367
1367
|
css: { backgroundColor: "transparent", backgroundImage: "none", borderWidth: 0 },
|
|
1368
|
-
"data-
|
|
1368
|
+
"data-testid": "button-delete",
|
|
1369
1369
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system9.Icon, { icon: import_cg3.CgCloseO, iconColor: "red", size: "1.5rem" })
|
|
1370
1370
|
}
|
|
1371
1371
|
),
|
|
@@ -1381,7 +1381,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1381
1381
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1382
1382
|
import_design_system9.InputInlineSelect,
|
|
1383
1383
|
{
|
|
1384
|
-
"data-
|
|
1384
|
+
"data-testid": "dropdown-button-combine",
|
|
1385
1385
|
disabled: index > 1,
|
|
1386
1386
|
value: (_d = currentValue.op) != null ? _d : "&",
|
|
1387
1387
|
options: [
|
|
@@ -1400,7 +1400,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1400
1400
|
dimensions.dimensions.length === 0 ? (components == null ? void 0 : components.NoDimensionsDefined) ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(components.NoDimensionsDefined, {}) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system9.Callout, { title: "Dimensions", type: "info", css: { marginBlock: "var(--spacing-base)" }, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { children: "You do not have any dimensions configured." }) }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1401
1401
|
import_design_system9.AddListButton,
|
|
1402
1402
|
{
|
|
1403
|
-
"data-
|
|
1403
|
+
"data-testid": "button-add-criteria",
|
|
1404
1404
|
className: "add-more",
|
|
1405
1405
|
buttonText: "Add Criteria",
|
|
1406
1406
|
onButtonClick: addToList
|
package/dist/index.mjs
CHANGED
|
@@ -506,11 +506,11 @@ function DimensionValue({ displayName }) {
|
|
|
506
506
|
css: { color: "var(--gray-500)", display: "flex", alignItems: "center", gap: "var(--spacing-xs)" },
|
|
507
507
|
children: [
|
|
508
508
|
type ? /* @__PURE__ */ jsx10(Icon2, { icon: dimensionIcon(type), iconColor: "currentColor", size: 16 }) : null,
|
|
509
|
-
/* @__PURE__ */ jsx10("span", { "data-
|
|
509
|
+
/* @__PURE__ */ jsx10("span", { "data-testid": "dimension-name", children: type })
|
|
510
510
|
]
|
|
511
511
|
}
|
|
512
512
|
) : null,
|
|
513
|
-
/* @__PURE__ */ jsx10("div", { css: { color: "var(--gray-700)" }, "data-
|
|
513
|
+
/* @__PURE__ */ jsx10("div", { css: { color: "var(--gray-700)" }, "data-testid": "dimension-value", children: name != null ? name : type })
|
|
514
514
|
]
|
|
515
515
|
}
|
|
516
516
|
);
|
|
@@ -1222,7 +1222,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1222
1222
|
var _a2, _b, _c, _d;
|
|
1223
1223
|
const critHasLhs = ((_a2 = currentCriteria.l) == null ? void 0 : _a2.length) > 0;
|
|
1224
1224
|
const critHasRhs = currentCriteria.op !== "+" && currentCriteria.op !== "-";
|
|
1225
|
-
return /* @__PURE__ */ jsxs8("div", { css: criteriaItem, "data-
|
|
1225
|
+
return /* @__PURE__ */ jsxs8("div", { css: criteriaItem, "data-testid": "criteria-container", children: [
|
|
1226
1226
|
/* @__PURE__ */ jsxs8(
|
|
1227
1227
|
"div",
|
|
1228
1228
|
{
|
|
@@ -1236,7 +1236,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1236
1236
|
{
|
|
1237
1237
|
css: [criteriaWrapper, criteriaOperandWrapper],
|
|
1238
1238
|
className: "criteria-wrapper",
|
|
1239
|
-
"data-
|
|
1239
|
+
"data-testid": "select-criteria",
|
|
1240
1240
|
children: /* @__PURE__ */ jsx16(
|
|
1241
1241
|
DimensionMenu,
|
|
1242
1242
|
{
|
|
@@ -1259,7 +1259,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1259
1259
|
{
|
|
1260
1260
|
css: [criteriaWrapper, criteriaOperatorWrapper],
|
|
1261
1261
|
className: "criteria-wrapper",
|
|
1262
|
-
"data-
|
|
1262
|
+
"data-testid": "select-operator",
|
|
1263
1263
|
children: /* @__PURE__ */ jsx16(
|
|
1264
1264
|
CriteriaOperatorMenu,
|
|
1265
1265
|
{
|
|
@@ -1285,7 +1285,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1285
1285
|
{
|
|
1286
1286
|
css: [criteriaWrapper, criteriaOperandWrapper],
|
|
1287
1287
|
className: "criteria-wrapper",
|
|
1288
|
-
"data-
|
|
1288
|
+
"data-testid": "select-match-criteria",
|
|
1289
1289
|
children: /* @__PURE__ */ jsx16(
|
|
1290
1290
|
CriteriaMatchMenu,
|
|
1291
1291
|
{
|
|
@@ -1314,7 +1314,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1314
1314
|
onClick: () => removeFromList(index),
|
|
1315
1315
|
title: `Delete Personalization`,
|
|
1316
1316
|
css: { backgroundColor: "transparent", backgroundImage: "none", borderWidth: 0 },
|
|
1317
|
-
"data-
|
|
1317
|
+
"data-testid": "button-delete",
|
|
1318
1318
|
children: /* @__PURE__ */ jsx16(Icon5, { icon: CgCloseO2, iconColor: "red", size: "1.5rem" })
|
|
1319
1319
|
}
|
|
1320
1320
|
),
|
|
@@ -1330,7 +1330,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1330
1330
|
children: /* @__PURE__ */ jsx16(
|
|
1331
1331
|
InputInlineSelect,
|
|
1332
1332
|
{
|
|
1333
|
-
"data-
|
|
1333
|
+
"data-testid": "dropdown-button-combine",
|
|
1334
1334
|
disabled: index > 1,
|
|
1335
1335
|
value: (_d = currentValue.op) != null ? _d : "&",
|
|
1336
1336
|
options: [
|
|
@@ -1349,7 +1349,7 @@ var PersonalizationCriteriaStatic = ({
|
|
|
1349
1349
|
dimensions.dimensions.length === 0 ? (components == null ? void 0 : components.NoDimensionsDefined) ? /* @__PURE__ */ jsx16(components.NoDimensionsDefined, {}) : /* @__PURE__ */ jsx16(Callout2, { title: "Dimensions", type: "info", css: { marginBlock: "var(--spacing-base)" }, children: /* @__PURE__ */ jsx16("p", { children: "You do not have any dimensions configured." }) }) : /* @__PURE__ */ jsx16(
|
|
1350
1350
|
AddListButton2,
|
|
1351
1351
|
{
|
|
1352
|
-
"data-
|
|
1352
|
+
"data-testid": "button-add-criteria",
|
|
1353
1353
|
className: "add-more",
|
|
1354
1354
|
buttonText: "Add Criteria",
|
|
1355
1355
|
onButtonClick: addToList
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-ui",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.38.2",
|
|
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",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@emotion/react": "11.11.1",
|
|
35
|
-
"@uniformdev/context": "19.
|
|
36
|
-
"@uniformdev/design-system": "19.
|
|
35
|
+
"@uniformdev/context": "19.38.2",
|
|
36
|
+
"@uniformdev/design-system": "19.38.2",
|
|
37
37
|
"immer": "9.0.21",
|
|
38
38
|
"react-beautiful-dnd": "13.1.1",
|
|
39
39
|
"react-icons": "^4.7.1",
|
|
40
|
-
"react-select": "5.7.
|
|
40
|
+
"react-select": "5.7.4",
|
|
41
41
|
"react-use": "17.4.0",
|
|
42
42
|
"reakit": "1.3.11",
|
|
43
43
|
"timeago.js": "4.0.2",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b97fd17fd44e0f5bd3806e942b516cb2bd218096"
|
|
79
79
|
}
|