@uniformdev/context-devtools 20.50.2-alpha.167 → 20.50.2-alpha.180
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 +8 -10
- package/dist/index.js +5 -7
- package/package.json +4 -4
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
|
+
UncachedDimensionClient
|
|
14
14
|
} from "@uniformdev/context/api";
|
|
15
15
|
import * as React2 from "react";
|
|
16
16
|
import { useAsync } from "react-use";
|
|
@@ -19,11 +19,10 @@ 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 UncachedDimensionClient({
|
|
23
23
|
projectId,
|
|
24
24
|
apiKey,
|
|
25
|
-
apiHost: apiHost ? apiHost : void 0
|
|
26
|
-
bypassCache: true
|
|
25
|
+
apiHost: apiHost ? apiHost : void 0
|
|
27
26
|
});
|
|
28
27
|
const dimensions = (await client.get()).dimensions;
|
|
29
28
|
const result = {};
|
|
@@ -79,7 +78,7 @@ function useDimensionIndex({ apiHost, apiKey, projectId }, manifest) {
|
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
// src/hooks/useQuirkIndex.ts
|
|
82
|
-
import {
|
|
81
|
+
import { UncachedQuirkClient } from "@uniformdev/context/api";
|
|
83
82
|
import { useMemo as useMemo2 } from "react";
|
|
84
83
|
import { useAsync as useAsync2 } from "react-use";
|
|
85
84
|
function useQuirkIndex({ apiHost, apiKey, projectId }, quirksData) {
|
|
@@ -87,11 +86,10 @@ function useQuirkIndex({ apiHost, apiKey, projectId }, quirksData) {
|
|
|
87
86
|
if (!apiKey || !projectId) {
|
|
88
87
|
return {};
|
|
89
88
|
}
|
|
90
|
-
const client = new
|
|
89
|
+
const client = new UncachedQuirkClient({
|
|
91
90
|
projectId,
|
|
92
91
|
apiKey,
|
|
93
|
-
apiHost: apiHost ? apiHost : void 0
|
|
94
|
-
bypassCache: true
|
|
92
|
+
apiHost: apiHost ? apiHost : void 0
|
|
95
93
|
});
|
|
96
94
|
const quirksResponse = await client.get({ withIntegrations: true });
|
|
97
95
|
const quirksIndexData = {};
|
|
@@ -1756,7 +1754,7 @@ var Settings = ({
|
|
|
1756
1754
|
|
|
1757
1755
|
// src/components/QuickConnect/QuickConnect.tsx
|
|
1758
1756
|
import { parseQuickConnect } from "@uniformdev/context";
|
|
1759
|
-
import { ApiClientError,
|
|
1757
|
+
import { ApiClientError, UncachedManifestClient } from "@uniformdev/context/api";
|
|
1760
1758
|
import { Button as Button8, ErrorMessage as ErrorMessage2, Input as Input3 } from "@uniformdev/design-system";
|
|
1761
1759
|
import { Field as Field2, Form as Form2, Formik as Formik2 } from "formik";
|
|
1762
1760
|
import * as React5 from "react";
|
|
@@ -1766,7 +1764,7 @@ function QuickConnect(props) {
|
|
|
1766
1764
|
const [error, setError] = React5.useState(void 0);
|
|
1767
1765
|
const [manifest, setManifest] = React5.useState(void 0);
|
|
1768
1766
|
const fetchManifest = React5.useCallback(async (data) => {
|
|
1769
|
-
const client = new
|
|
1767
|
+
const client = new UncachedManifestClient(data);
|
|
1770
1768
|
setError(void 0);
|
|
1771
1769
|
try {
|
|
1772
1770
|
const manifest2 = await client.get({ preview: true });
|
package/dist/index.js
CHANGED
|
@@ -52,11 +52,10 @@ 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.UncachedDimensionClient({
|
|
56
56
|
projectId,
|
|
57
57
|
apiKey,
|
|
58
|
-
apiHost: apiHost ? apiHost : void 0
|
|
59
|
-
bypassCache: true
|
|
58
|
+
apiHost: apiHost ? apiHost : void 0
|
|
60
59
|
});
|
|
61
60
|
const dimensions = (await client.get()).dimensions;
|
|
62
61
|
const result = {};
|
|
@@ -120,11 +119,10 @@ function useQuirkIndex({ apiHost, apiKey, projectId }, quirksData) {
|
|
|
120
119
|
if (!apiKey || !projectId) {
|
|
121
120
|
return {};
|
|
122
121
|
}
|
|
123
|
-
const client = new import_api2.
|
|
122
|
+
const client = new import_api2.UncachedQuirkClient({
|
|
124
123
|
projectId,
|
|
125
124
|
apiKey,
|
|
126
|
-
apiHost: apiHost ? apiHost : void 0
|
|
127
|
-
bypassCache: true
|
|
125
|
+
apiHost: apiHost ? apiHost : void 0
|
|
128
126
|
});
|
|
129
127
|
const quirksResponse = await client.get({ withIntegrations: true });
|
|
130
128
|
const quirksIndexData = {};
|
|
@@ -1799,7 +1797,7 @@ function QuickConnect(props) {
|
|
|
1799
1797
|
const [error, setError] = React5.useState(void 0);
|
|
1800
1798
|
const [manifest, setManifest] = React5.useState(void 0);
|
|
1801
1799
|
const fetchManifest = React5.useCallback(async (data) => {
|
|
1802
|
-
const client = new import_api3.
|
|
1800
|
+
const client = new import_api3.UncachedManifestClient(data);
|
|
1803
1801
|
setError(void 0);
|
|
1804
1802
|
try {
|
|
1805
1803
|
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.180+0be2307590",
|
|
4
4
|
"description": "Uniform Context developer tools components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@emotion/react": "11.14.0",
|
|
32
|
-
"@uniformdev/context": "20.50.2-alpha.
|
|
33
|
-
"@uniformdev/design-system": "20.50.2-alpha.
|
|
32
|
+
"@uniformdev/context": "20.50.2-alpha.180+0be2307590",
|
|
33
|
+
"@uniformdev/design-system": "20.50.2-alpha.180+0be2307590",
|
|
34
34
|
"formik": "^2.4.9",
|
|
35
35
|
"react-use": "^17.6.1",
|
|
36
36
|
"yup": "^0.32.11"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "0be23075901a6fd0acd8166a2bea65fbd5589789"
|
|
45
45
|
}
|