@uniformdev/context-devtools 19.165.2-alpha.0 → 19.167.2-alpha.3

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 CHANGED
@@ -587,8 +587,7 @@ function applyScoreOverrides({
587
587
  scoreOverrides
588
588
  }) {
589
589
  const commands = [];
590
- if (!scoreOverrides)
591
- return [];
590
+ if (!scoreOverrides) return [];
592
591
  Object.entries(scoreOverrides).forEach(([dim, override]) => {
593
592
  var _a;
594
593
  const score = (_a = scores[dim]) != null ? _a : 0;
@@ -608,8 +607,7 @@ function applyQuirkOverrides({
608
607
  quirkOverrides
609
608
  }) {
610
609
  const quirkVector = {};
611
- if (!quirkOverrides)
612
- return void 0;
610
+ if (!quirkOverrides) return void 0;
613
611
  Object.entries(quirkOverrides).forEach(([quirk, override]) => {
614
612
  const quirkValue = quirks[quirk];
615
613
  if (quirkValue === override.override) {
@@ -1798,8 +1796,7 @@ function QuickConnect(props) {
1798
1796
  }
1799
1797
  }, []);
1800
1798
  React5.useEffect(() => {
1801
- if (!props.currentData)
1802
- return;
1799
+ if (!props.currentData) return;
1803
1800
  fetchManifest(props.currentData);
1804
1801
  }, [fetchManifest, props.currentData]);
1805
1802
  const onConnect = async (data) => {
@@ -2157,13 +2154,11 @@ function EmbeddedContextDevTools({ context, initialSettings }) {
2157
2154
  }));
2158
2155
  };
2159
2156
  const onPersonalizationResult = (e) => {
2160
- if (!e.changed)
2161
- return;
2157
+ if (!e.changed) return;
2162
2158
  setState((old) => ({ ...old, personalizations: [...old.personalizations, e] }));
2163
2159
  };
2164
2160
  const onTestResult = (e) => {
2165
- if (!e.variantAssigned)
2166
- return;
2161
+ if (!e.variantAssigned) return;
2167
2162
  setState((old) => ({ ...old, tests: [...old.tests, e] }));
2168
2163
  };
2169
2164
  contextInstance.events.on("personalizationResult", onPersonalizationResult);
package/dist/index.js CHANGED
@@ -621,8 +621,7 @@ function applyScoreOverrides({
621
621
  scoreOverrides
622
622
  }) {
623
623
  const commands = [];
624
- if (!scoreOverrides)
625
- return [];
624
+ if (!scoreOverrides) return [];
626
625
  Object.entries(scoreOverrides).forEach(([dim, override]) => {
627
626
  var _a;
628
627
  const score = (_a = scores[dim]) != null ? _a : 0;
@@ -642,8 +641,7 @@ function applyQuirkOverrides({
642
641
  quirkOverrides
643
642
  }) {
644
643
  const quirkVector = {};
645
- if (!quirkOverrides)
646
- return void 0;
644
+ if (!quirkOverrides) return void 0;
647
645
  Object.entries(quirkOverrides).forEach(([quirk, override]) => {
648
646
  const quirkValue = quirks[quirk];
649
647
  if (quirkValue === override.override) {
@@ -1832,8 +1830,7 @@ function QuickConnect(props) {
1832
1830
  }
1833
1831
  }, []);
1834
1832
  React5.useEffect(() => {
1835
- if (!props.currentData)
1836
- return;
1833
+ if (!props.currentData) return;
1837
1834
  fetchManifest(props.currentData);
1838
1835
  }, [fetchManifest, props.currentData]);
1839
1836
  const onConnect = async (data) => {
@@ -2188,13 +2185,11 @@ function EmbeddedContextDevTools({ context, initialSettings }) {
2188
2185
  }));
2189
2186
  };
2190
2187
  const onPersonalizationResult = (e) => {
2191
- if (!e.changed)
2192
- return;
2188
+ if (!e.changed) return;
2193
2189
  setState((old) => ({ ...old, personalizations: [...old.personalizations, e] }));
2194
2190
  };
2195
2191
  const onTestResult = (e) => {
2196
- if (!e.variantAssigned)
2197
- return;
2192
+ if (!e.variantAssigned) return;
2198
2193
  setState((old) => ({ ...old, tests: [...old.tests, e] }));
2199
2194
  };
2200
2195
  contextInstance.events.on("personalizationResult", onPersonalizationResult);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-devtools",
3
- "version": "19.165.2-alpha.0+323887559d",
3
+ "version": "19.167.2-alpha.3+d42f32a982",
4
4
  "description": "Uniform Context developer tools components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -27,12 +27,12 @@
27
27
  "postcss": "8.4.38",
28
28
  "react": "18.2.0",
29
29
  "react-dom": "18.2.0",
30
- "tsup": "8.0.2"
30
+ "tsup": "8.1.0"
31
31
  },
32
32
  "dependencies": {
33
33
  "@emotion/react": "11.11.3",
34
- "@uniformdev/context": "19.165.2-alpha.0+323887559d",
35
- "@uniformdev/design-system": "19.165.2-alpha.0+323887559d",
34
+ "@uniformdev/context": "19.167.2-alpha.3+d42f32a982",
35
+ "@uniformdev/design-system": "19.167.2-alpha.3+d42f32a982",
36
36
  "formik": "^2.2.9",
37
37
  "react-use": "^17.4.0",
38
38
  "reakit": "^1.3.11",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "323887559d1bdc7432f91d305afaec90b98f660f"
47
+ "gitHead": "d42f32a98294c96f55a29c10c7c461c5327f56f3"
48
48
  }