@uniformdev/context-devtools 18.18.1-alpha.12 → 18.19.1-alpha.7
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/esm/index.js +9 -1
- package/dist/index.js +13 -1
- package/package.json +7 -6
package/dist/esm/index.js
CHANGED
|
@@ -632,8 +632,10 @@ function computeOverrideEffects({ manifest, visitor, override }) {
|
|
|
632
632
|
return changes;
|
|
633
633
|
}
|
|
634
634
|
var CopyTransitionDataStore = class extends TransitionDataStore {
|
|
635
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
635
636
|
async handleDelete() {
|
|
636
637
|
}
|
|
638
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
637
639
|
async handleUpdateData() {
|
|
638
640
|
}
|
|
639
641
|
};
|
|
@@ -979,6 +981,7 @@ var styles = {
|
|
|
979
981
|
justify-content: space-between;
|
|
980
982
|
align-items: center;
|
|
981
983
|
`,
|
|
984
|
+
/* Notes: divider class could be in a different component but it has one use case now so leaving here for now */
|
|
982
985
|
divider: css9`
|
|
983
986
|
background: var(--gray-300);
|
|
984
987
|
display: block;
|
|
@@ -1243,7 +1246,10 @@ var AddOverride = ({
|
|
|
1243
1246
|
scoreOverrides: {
|
|
1244
1247
|
...settings.scoreOverrides,
|
|
1245
1248
|
[values.dimension]: {
|
|
1246
|
-
initial: (
|
|
1249
|
+
initial: (
|
|
1250
|
+
// if override already existed the initial does not change (it's an override edit)
|
|
1251
|
+
(_f = (_e = (_d = (_c = settings.scoreOverrides) == null ? void 0 : _c[values.dimension]) == null ? void 0 : _d.initial) != null ? _e : state.scores[values.dimension]) != null ? _f : 0
|
|
1252
|
+
),
|
|
1247
1253
|
override: cappedOverrideScore
|
|
1248
1254
|
}
|
|
1249
1255
|
},
|
|
@@ -1845,6 +1851,7 @@ function ConnectForm({
|
|
|
1845
1851
|
apiHost: (_a = currentData == null ? void 0 : currentData.apiHost) != null ? _a : "https://uniform.app",
|
|
1846
1852
|
apiKey: (_b = currentData == null ? void 0 : currentData.apiKey) != null ? _b : "",
|
|
1847
1853
|
projectId: (_c = currentData == null ? void 0 : currentData.projectId) != null ? _c : "",
|
|
1854
|
+
// not actually used, just to make typings happy about injecting an error for it
|
|
1848
1855
|
qc: ""
|
|
1849
1856
|
},
|
|
1850
1857
|
onSubmit: onConnect,
|
|
@@ -2181,6 +2188,7 @@ function EmbeddedContextDevTools({ context, initialSettings }) {
|
|
|
2181
2188
|
const { actions, saveSettings, clearAllExtensionData } = React6.useMemo(() => {
|
|
2182
2189
|
const actions2 = {
|
|
2183
2190
|
update: (up) => contextInstance.update(up),
|
|
2191
|
+
// @todo also reset overrides in Forget action.
|
|
2184
2192
|
forget: () => contextInstance.forget(false),
|
|
2185
2193
|
rawUpdate: (commands) => contextInstance.storage.updateData(commands)
|
|
2186
2194
|
};
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
26
|
mod
|
|
23
27
|
));
|
|
@@ -662,8 +666,10 @@ function computeOverrideEffects({ manifest, visitor, override }) {
|
|
|
662
666
|
return changes;
|
|
663
667
|
}
|
|
664
668
|
var CopyTransitionDataStore = class extends import_context.TransitionDataStore {
|
|
669
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
665
670
|
async handleDelete() {
|
|
666
671
|
}
|
|
672
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
667
673
|
async handleUpdateData() {
|
|
668
674
|
}
|
|
669
675
|
};
|
|
@@ -1009,6 +1015,7 @@ var styles = {
|
|
|
1009
1015
|
justify-content: space-between;
|
|
1010
1016
|
align-items: center;
|
|
1011
1017
|
`,
|
|
1018
|
+
/* Notes: divider class could be in a different component but it has one use case now so leaving here for now */
|
|
1012
1019
|
divider: import_react12.css`
|
|
1013
1020
|
background: var(--gray-300);
|
|
1014
1021
|
display: block;
|
|
@@ -1273,7 +1280,10 @@ var AddOverride = ({
|
|
|
1273
1280
|
scoreOverrides: {
|
|
1274
1281
|
...settings.scoreOverrides,
|
|
1275
1282
|
[values.dimension]: {
|
|
1276
|
-
initial: (
|
|
1283
|
+
initial: (
|
|
1284
|
+
// if override already existed the initial does not change (it's an override edit)
|
|
1285
|
+
(_f = (_e = (_d = (_c = settings.scoreOverrides) == null ? void 0 : _c[values.dimension]) == null ? void 0 : _d.initial) != null ? _e : state.scores[values.dimension]) != null ? _f : 0
|
|
1286
|
+
),
|
|
1277
1287
|
override: cappedOverrideScore
|
|
1278
1288
|
}
|
|
1279
1289
|
},
|
|
@@ -1875,6 +1885,7 @@ function ConnectForm({
|
|
|
1875
1885
|
apiHost: (_a = currentData == null ? void 0 : currentData.apiHost) != null ? _a : "https://uniform.app",
|
|
1876
1886
|
apiKey: (_b = currentData == null ? void 0 : currentData.apiKey) != null ? _b : "",
|
|
1877
1887
|
projectId: (_c = currentData == null ? void 0 : currentData.projectId) != null ? _c : "",
|
|
1888
|
+
// not actually used, just to make typings happy about injecting an error for it
|
|
1878
1889
|
qc: ""
|
|
1879
1890
|
},
|
|
1880
1891
|
onSubmit: onConnect,
|
|
@@ -2208,6 +2219,7 @@ function EmbeddedContextDevTools({ context, initialSettings }) {
|
|
|
2208
2219
|
const { actions, saveSettings, clearAllExtensionData } = React6.useMemo(() => {
|
|
2209
2220
|
const actions2 = {
|
|
2210
2221
|
update: (up) => contextInstance.update(up),
|
|
2222
|
+
// @todo also reset overrides in Forget action.
|
|
2211
2223
|
forget: () => contextInstance.forget(false),
|
|
2212
2224
|
rawUpdate: (commands) => contextInstance.storage.updateData(commands)
|
|
2213
2225
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-devtools",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.19.1-alpha.7+b4918b2f5",
|
|
4
4
|
"description": "Uniform Context developer tools components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"clean": "rimraf dist",
|
|
14
14
|
"test": "jest --maxWorkers=1 --passWithNoTests",
|
|
15
15
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
|
16
|
-
"format": "prettier --write \"src/**/*.{js,ts,tsx}\""
|
|
16
|
+
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
|
17
|
+
"document": "api-extractor run --local"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
19
20
|
"react": ">=17 || 17 || 18",
|
|
@@ -26,12 +27,12 @@
|
|
|
26
27
|
"postcss": "8.4.21",
|
|
27
28
|
"react": "18.2.0",
|
|
28
29
|
"react-dom": "18.2.0",
|
|
29
|
-
"tsup": "6.
|
|
30
|
+
"tsup": "6.6.3"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"@emotion/react": "11.10.5",
|
|
33
|
-
"@uniformdev/context": "18.
|
|
34
|
-
"@uniformdev/design-system": "18.
|
|
34
|
+
"@uniformdev/context": "18.19.1-alpha.7+b4918b2f5",
|
|
35
|
+
"@uniformdev/design-system": "18.19.1-alpha.7+b4918b2f5",
|
|
35
36
|
"formik": "^2.2.9",
|
|
36
37
|
"react-use": "^17.4.0",
|
|
37
38
|
"reakit": "^1.3.11",
|
|
@@ -43,5 +44,5 @@
|
|
|
43
44
|
"publishConfig": {
|
|
44
45
|
"access": "public"
|
|
45
46
|
},
|
|
46
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "b4918b2f547ebb0b889528bbbacbc930cbb66694"
|
|
47
48
|
}
|