@uniformdev/context-devtools 20.50.2-alpha.146 → 20.50.2-alpha.167
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 +10 -8
- package/dist/index.js +10 -8
- package/package.json +11 -12
package/dist/esm/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { Theme as DesignSystemTheme } from "@uniformdev/design-system";
|
|
|
10
10
|
import {
|
|
11
11
|
computeDimensionDefinitionDisplayData,
|
|
12
12
|
computeDimensionDisplayData,
|
|
13
|
-
|
|
13
|
+
DimensionClient
|
|
14
14
|
} from "@uniformdev/context/api";
|
|
15
15
|
import * as React2 from "react";
|
|
16
16
|
import { useAsync } from "react-use";
|
|
@@ -19,10 +19,11 @@ function useDimensionIndex({ apiHost, apiKey, projectId }, manifest) {
|
|
|
19
19
|
if (!apiKey || !projectId) {
|
|
20
20
|
return manifestData;
|
|
21
21
|
}
|
|
22
|
-
const client = new
|
|
22
|
+
const client = new DimensionClient({
|
|
23
23
|
projectId,
|
|
24
24
|
apiKey,
|
|
25
|
-
apiHost: apiHost ? apiHost : void 0
|
|
25
|
+
apiHost: apiHost ? apiHost : void 0,
|
|
26
|
+
bypassCache: true
|
|
26
27
|
});
|
|
27
28
|
const dimensions = (await client.get()).dimensions;
|
|
28
29
|
const result = {};
|
|
@@ -78,7 +79,7 @@ function useDimensionIndex({ apiHost, apiKey, projectId }, manifest) {
|
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
// src/hooks/useQuirkIndex.ts
|
|
81
|
-
import {
|
|
82
|
+
import { QuirkClient } from "@uniformdev/context/api";
|
|
82
83
|
import { useMemo as useMemo2 } from "react";
|
|
83
84
|
import { useAsync as useAsync2 } from "react-use";
|
|
84
85
|
function useQuirkIndex({ apiHost, apiKey, projectId }, quirksData) {
|
|
@@ -86,10 +87,11 @@ function useQuirkIndex({ apiHost, apiKey, projectId }, quirksData) {
|
|
|
86
87
|
if (!apiKey || !projectId) {
|
|
87
88
|
return {};
|
|
88
89
|
}
|
|
89
|
-
const client = new
|
|
90
|
+
const client = new QuirkClient({
|
|
90
91
|
projectId,
|
|
91
92
|
apiKey,
|
|
92
|
-
apiHost: apiHost ? apiHost : void 0
|
|
93
|
+
apiHost: apiHost ? apiHost : void 0,
|
|
94
|
+
bypassCache: true
|
|
93
95
|
});
|
|
94
96
|
const quirksResponse = await client.get({ withIntegrations: true });
|
|
95
97
|
const quirksIndexData = {};
|
|
@@ -1754,7 +1756,7 @@ var Settings = ({
|
|
|
1754
1756
|
|
|
1755
1757
|
// src/components/QuickConnect/QuickConnect.tsx
|
|
1756
1758
|
import { parseQuickConnect } from "@uniformdev/context";
|
|
1757
|
-
import { ApiClientError,
|
|
1759
|
+
import { ApiClientError, ManifestClient } from "@uniformdev/context/api";
|
|
1758
1760
|
import { Button as Button8, ErrorMessage as ErrorMessage2, Input as Input3 } from "@uniformdev/design-system";
|
|
1759
1761
|
import { Field as Field2, Form as Form2, Formik as Formik2 } from "formik";
|
|
1760
1762
|
import * as React5 from "react";
|
|
@@ -1764,7 +1766,7 @@ function QuickConnect(props) {
|
|
|
1764
1766
|
const [error, setError] = React5.useState(void 0);
|
|
1765
1767
|
const [manifest, setManifest] = React5.useState(void 0);
|
|
1766
1768
|
const fetchManifest = React5.useCallback(async (data) => {
|
|
1767
|
-
const client = new
|
|
1769
|
+
const client = new ManifestClient({ ...data, bypassCache: true });
|
|
1768
1770
|
setError(void 0);
|
|
1769
1771
|
try {
|
|
1770
1772
|
const manifest2 = await client.get({ preview: true });
|
package/dist/index.js
CHANGED
|
@@ -28,12 +28,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
ContextDevTools: () => ContextDevTools,
|
|
34
34
|
EmbeddedContextDevTools: () => EmbeddedContextDevTools
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
36
|
+
module.exports = __toCommonJS(index_exports);
|
|
37
37
|
|
|
38
38
|
// ../../scripts/emotion-jsx-shim.js
|
|
39
39
|
var import_react = require("@emotion/react");
|
|
@@ -52,10 +52,11 @@ function useDimensionIndex({ apiHost, apiKey, projectId }, manifest) {
|
|
|
52
52
|
if (!apiKey || !projectId) {
|
|
53
53
|
return manifestData;
|
|
54
54
|
}
|
|
55
|
-
const client = new import_api.
|
|
55
|
+
const client = new import_api.DimensionClient({
|
|
56
56
|
projectId,
|
|
57
57
|
apiKey,
|
|
58
|
-
apiHost: apiHost ? apiHost : void 0
|
|
58
|
+
apiHost: apiHost ? apiHost : void 0,
|
|
59
|
+
bypassCache: true
|
|
59
60
|
});
|
|
60
61
|
const dimensions = (await client.get()).dimensions;
|
|
61
62
|
const result = {};
|
|
@@ -119,10 +120,11 @@ function useQuirkIndex({ apiHost, apiKey, projectId }, quirksData) {
|
|
|
119
120
|
if (!apiKey || !projectId) {
|
|
120
121
|
return {};
|
|
121
122
|
}
|
|
122
|
-
const client = new import_api2.
|
|
123
|
+
const client = new import_api2.QuirkClient({
|
|
123
124
|
projectId,
|
|
124
125
|
apiKey,
|
|
125
|
-
apiHost: apiHost ? apiHost : void 0
|
|
126
|
+
apiHost: apiHost ? apiHost : void 0,
|
|
127
|
+
bypassCache: true
|
|
126
128
|
});
|
|
127
129
|
const quirksResponse = await client.get({ withIntegrations: true });
|
|
128
130
|
const quirksIndexData = {};
|
|
@@ -1797,7 +1799,7 @@ function QuickConnect(props) {
|
|
|
1797
1799
|
const [error, setError] = React5.useState(void 0);
|
|
1798
1800
|
const [manifest, setManifest] = React5.useState(void 0);
|
|
1799
1801
|
const fetchManifest = React5.useCallback(async (data) => {
|
|
1800
|
-
const client = new import_api3.
|
|
1802
|
+
const client = new import_api3.ManifestClient({ ...data, bypassCache: true });
|
|
1801
1803
|
setError(void 0);
|
|
1802
1804
|
try {
|
|
1803
1805
|
const manifest2 = await client.get({ preview: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-devtools",
|
|
3
|
-
"version": "20.50.2-alpha.
|
|
3
|
+
"version": "20.50.2-alpha.167+74e60d5bb7",
|
|
4
4
|
"description": "Uniform Context developer tools components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,20 +20,19 @@
|
|
|
20
20
|
"react-dom": ">=17 || 17 || 18"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/chrome": "0.
|
|
24
|
-
"@types/react": "19.2.
|
|
25
|
-
"autoprefixer": "10.
|
|
26
|
-
"postcss": "8.5.
|
|
23
|
+
"@types/chrome": "0.1.43",
|
|
24
|
+
"@types/react": "19.2.17",
|
|
25
|
+
"autoprefixer": "10.5.0",
|
|
26
|
+
"postcss": "8.5.15",
|
|
27
27
|
"react": "19.2.1",
|
|
28
|
-
"react-dom": "19.2.1"
|
|
29
|
-
"tsup": "8.3.0"
|
|
28
|
+
"react-dom": "19.2.1"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
31
|
"@emotion/react": "11.14.0",
|
|
33
|
-
"@uniformdev/context": "20.50.2-alpha.
|
|
34
|
-
"@uniformdev/design-system": "20.50.2-alpha.
|
|
35
|
-
"formik": "^2.
|
|
36
|
-
"react-use": "^17.
|
|
32
|
+
"@uniformdev/context": "20.50.2-alpha.167+74e60d5bb7",
|
|
33
|
+
"@uniformdev/design-system": "20.50.2-alpha.167+74e60d5bb7",
|
|
34
|
+
"formik": "^2.4.9",
|
|
35
|
+
"react-use": "^17.6.1",
|
|
37
36
|
"yup": "^0.32.11"
|
|
38
37
|
},
|
|
39
38
|
"files": [
|
|
@@ -42,5 +41,5 @@
|
|
|
42
41
|
"publishConfig": {
|
|
43
42
|
"access": "public"
|
|
44
43
|
},
|
|
45
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "74e60d5bb79fe1c4d446e4d3e6edf9f08850be4f"
|
|
46
45
|
}
|