@uniformdev/context-devtools 20.46.1-alpha.9 → 20.47.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/LICENSE.txt +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/index.js +7 -7
- package/package.json +4 -4
package/LICENSE.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
©
|
|
1
|
+
© 2026 Uniform Systems, Inc. All Rights Reserved.
|
|
2
2
|
See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
|
package/dist/esm/index.js
CHANGED
|
@@ -1208,12 +1208,9 @@ var AddOverride = ({
|
|
|
1208
1208
|
actions,
|
|
1209
1209
|
dimensionIndex: { index }
|
|
1210
1210
|
}) => {
|
|
1211
|
-
var _a
|
|
1211
|
+
var _a;
|
|
1212
1212
|
const routeParams = settings.route ? [...settings.route.matchAll(/overrides\/(?!.*add)(\w+)?/g)] : [];
|
|
1213
1213
|
const overriddenDimension = routeParams[0] ? routeParams[0][1] : "";
|
|
1214
|
-
if (!((_a = state.manifest.project.pz) == null ? void 0 : _a.sig)) {
|
|
1215
|
-
return /* @__PURE__ */ jsx16("p", { children: "Error, manifest is broken or there is no signal to override." });
|
|
1216
|
-
}
|
|
1217
1214
|
const overridableDimensions = Object.entries(index).filter(([, value]) => value.type !== "Audience" && value.type !== "Intent").map(([key, value]) => {
|
|
1218
1215
|
const type = value.type ? `${value.type}: ` : "";
|
|
1219
1216
|
const category = value.category ? `${value.category} - ` : "";
|
|
@@ -1223,6 +1220,9 @@ var AddOverride = ({
|
|
|
1223
1220
|
label
|
|
1224
1221
|
};
|
|
1225
1222
|
});
|
|
1223
|
+
if (overridableDimensions.length === 0) {
|
|
1224
|
+
return /* @__PURE__ */ jsx16("p", { children: "Error, manifest is broken or there are no dimensions to override." });
|
|
1225
|
+
}
|
|
1226
1226
|
overridableDimensions.unshift({
|
|
1227
1227
|
value: "",
|
|
1228
1228
|
label: "Choose dimension to override"
|
|
@@ -1232,7 +1232,7 @@ var AddOverride = ({
|
|
|
1232
1232
|
{
|
|
1233
1233
|
initialValues: {
|
|
1234
1234
|
dimension: overriddenDimension,
|
|
1235
|
-
score: (
|
|
1235
|
+
score: (_a = state.scores[overriddenDimension]) != null ? _a : 0
|
|
1236
1236
|
},
|
|
1237
1237
|
validate: (values) => {
|
|
1238
1238
|
const errors = {};
|
|
@@ -1246,8 +1246,8 @@ var AddOverride = ({
|
|
|
1246
1246
|
validateOnChange: false,
|
|
1247
1247
|
validateOnBlur: false,
|
|
1248
1248
|
onSubmit: async (values) => {
|
|
1249
|
-
var _a2,
|
|
1250
|
-
const cap = (
|
|
1249
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
1250
|
+
const cap = (_b = (_a2 = index[values.dimension]) == null ? void 0 : _a2.cap) != null ? _b : 0;
|
|
1251
1251
|
const cappedOverrideScore = Math.min(values.score, cap);
|
|
1252
1252
|
const newSettings = {
|
|
1253
1253
|
...settings,
|
package/dist/index.js
CHANGED
|
@@ -1241,12 +1241,9 @@ var AddOverride = ({
|
|
|
1241
1241
|
actions,
|
|
1242
1242
|
dimensionIndex: { index }
|
|
1243
1243
|
}) => {
|
|
1244
|
-
var _a
|
|
1244
|
+
var _a;
|
|
1245
1245
|
const routeParams = settings.route ? [...settings.route.matchAll(/overrides\/(?!.*add)(\w+)?/g)] : [];
|
|
1246
1246
|
const overriddenDimension = routeParams[0] ? routeParams[0][1] : "";
|
|
1247
|
-
if (!((_a = state.manifest.project.pz) == null ? void 0 : _a.sig)) {
|
|
1248
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { children: "Error, manifest is broken or there is no signal to override." });
|
|
1249
|
-
}
|
|
1250
1247
|
const overridableDimensions = Object.entries(index).filter(([, value]) => value.type !== "Audience" && value.type !== "Intent").map(([key, value]) => {
|
|
1251
1248
|
const type = value.type ? `${value.type}: ` : "";
|
|
1252
1249
|
const category = value.category ? `${value.category} - ` : "";
|
|
@@ -1256,6 +1253,9 @@ var AddOverride = ({
|
|
|
1256
1253
|
label
|
|
1257
1254
|
};
|
|
1258
1255
|
});
|
|
1256
|
+
if (overridableDimensions.length === 0) {
|
|
1257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { children: "Error, manifest is broken or there are no dimensions to override." });
|
|
1258
|
+
}
|
|
1259
1259
|
overridableDimensions.unshift({
|
|
1260
1260
|
value: "",
|
|
1261
1261
|
label: "Choose dimension to override"
|
|
@@ -1265,7 +1265,7 @@ var AddOverride = ({
|
|
|
1265
1265
|
{
|
|
1266
1266
|
initialValues: {
|
|
1267
1267
|
dimension: overriddenDimension,
|
|
1268
|
-
score: (
|
|
1268
|
+
score: (_a = state.scores[overriddenDimension]) != null ? _a : 0
|
|
1269
1269
|
},
|
|
1270
1270
|
validate: (values) => {
|
|
1271
1271
|
const errors = {};
|
|
@@ -1279,8 +1279,8 @@ var AddOverride = ({
|
|
|
1279
1279
|
validateOnChange: false,
|
|
1280
1280
|
validateOnBlur: false,
|
|
1281
1281
|
onSubmit: async (values) => {
|
|
1282
|
-
var _a2,
|
|
1283
|
-
const cap = (
|
|
1282
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
1283
|
+
const cap = (_b = (_a2 = index[values.dimension]) == null ? void 0 : _a2.cap) != null ? _b : 0;
|
|
1284
1284
|
const cappedOverrideScore = Math.min(values.score, cap);
|
|
1285
1285
|
const newSettings = {
|
|
1286
1286
|
...settings,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-devtools",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.47.0",
|
|
4
4
|
"description": "Uniform Context developer tools components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/react": "11.13.5",
|
|
34
|
-
"@uniformdev/context": "20.
|
|
35
|
-
"@uniformdev/design-system": "20.
|
|
34
|
+
"@uniformdev/context": "20.47.0",
|
|
35
|
+
"@uniformdev/design-system": "20.47.0",
|
|
36
36
|
"formik": "^2.2.9",
|
|
37
37
|
"react-use": "^17.4.0",
|
|
38
38
|
"yup": "^0.32.11"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "446f701d32eee97220ab693e69b0952ed95cc1c5"
|
|
47
47
|
}
|