@xyo-network/react-embed 2.27.17 → 2.27.20
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/cjs/contexts/XyoEmbedPluginContext/Provider.js +8 -10
- package/dist/cjs/contexts/XyoEmbedPluginContext/Provider.js.map +1 -1
- package/dist/docs.json +2 -2
- package/dist/esm/contexts/XyoEmbedPluginContext/Provider.js +8 -10
- package/dist/esm/contexts/XyoEmbedPluginContext/Provider.js.map +1 -1
- package/package.json +16 -11
- package/src/contexts/XyoEmbedPluginContext/Provider.tsx +8 -8
|
@@ -15,31 +15,29 @@ const XyoEmbedPluginProvider = (_a) => {
|
|
|
15
15
|
const [notFound, setNotFound] = (0, react_1.useState)();
|
|
16
16
|
const [huriApiError, setHuriApiError] = (0, react_1.useState)();
|
|
17
17
|
const [activePlugin, setActivePlugin] = (0, react_1.useState)(plugins ? plugins[0] : undefined);
|
|
18
|
+
const [refreshPayload, setRefreshPayload] = (0, react_1.useState)(0);
|
|
18
19
|
(0, react_shared_1.useAsyncEffect)(
|
|
19
20
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
20
21
|
(mounted) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
-
if (
|
|
22
|
+
if (huri && !refreshPayload) {
|
|
22
23
|
try {
|
|
23
24
|
const huriInstance = new payload_1.Huri(huri);
|
|
24
25
|
const result = yield huriInstance.fetch();
|
|
25
26
|
if (mounted()) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
setPayload(result);
|
|
27
|
+
setNotFound(result === null);
|
|
28
|
+
setPayload(result);
|
|
29
|
+
setRefreshPayload(1);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
catch (e) {
|
|
33
33
|
setHuriApiError(e);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
}), [huri, payload]);
|
|
36
|
+
}), [huri, payload, refreshPayload]);
|
|
37
37
|
const refreshHuri = () => {
|
|
38
|
-
|
|
39
|
-
setNotFound(undefined);
|
|
40
|
-
setPayload(undefined);
|
|
38
|
+
setRefreshPayload(0);
|
|
41
39
|
};
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(Context_1.XyoEmbedPluginContext.Provider, Object.assign({ value: { activePlugin, payload, refreshHuri, refreshTitle, setActivePlugin, timestampLabel } }, { children: (0, jsx_runtime_1.jsx)(react_webapp_1.ResultLoader, Object.assign({ searchResult: payload, notFound: !!notFound, apiError: huriApiError }, { children: (0, jsx_runtime_1.jsx)(react_auth_service_1.XyoApiErrorRender, Object.assign({ apiError: huriApiError }, props, { children: children })) })) })));
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(Context_1.XyoEmbedPluginContext.Provider, Object.assign({ value: { activePlugin, payload, refreshHuri, refreshTitle, setActivePlugin, timestampLabel } }, { children: (0, jsx_runtime_1.jsx)(react_webapp_1.ResultLoader, Object.assign({ searchResult: payload, notFound: !!notFound, apiError: huriApiError }, { children: (0, jsx_runtime_1.jsx)(react_auth_service_1.XyoApiErrorRender, Object.assign({ apiError: huriApiError, busy: Boolean(!refreshPayload && payload) }, props, { children: children })) })) })));
|
|
43
41
|
};
|
|
44
42
|
exports.XyoEmbedPluginProvider = XyoEmbedPluginProvider;
|
|
45
43
|
//# sourceMappingURL=Provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Provider.tsx"],"names":[],"mappings":";;;;;AACA,uDAAmE;AAEnE,kDAAuD;AACvD,wEAAmE;AAEnE,4DAAwD;AACxD,iCAAgC;AAEhC,uCAAiD;AAS1C,MAAM,sBAAsB,GAAwD,CAAC,EAO3F,EAAE,EAAE;QAPuF,EAC1F,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,IAAI,EACJ,OAAO,OAER,EADI,KAAK,sBANkF,iEAO3F,CADS;IAER,MAAM,CAAC,OAAO,EAAE,UAAU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ChB,IAAI,IAAI,IAAI,CAAC,cAAc,EAAE;YAC3B,IAAI;gBACF,MAAM,YAAY,GAAG,IAAI,cAAI,CAAC,IAAI,CAAC,CAAA;gBACnC,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,KAAK,EAAE,CAAA;gBAEzC,IAAI,OAAO,EAAE,EAAE;oBACb,WAAW,CAAC,MAAM,KAAK,IAAI,CAAC,CAAA;oBAC5B,UAAU,CAAC,MAAM,CAAC,CAAA;oBAClB,iBAAiB,CAAC,CAAC,CAAC,CAAA;iBACrB;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,eAAe,CAAC,CAAgB,CAAC,CAAA;aAClC;SACF;IACH,CAAC,CAAA,EACD,CAAC,IAAI,EAAE,OAAO,EAAE,cAAc,CAAC,CAChC,CAAA;IAED,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,iBAAiB,CAAC,CAAC,CAAC,CAAA;IACtB,CAAC,CAAA;IAED,OAAO,CACL,uBAAC,+BAAqB,CAAC,QAAQ,kBAAC,KAAK,EAAE,EAAE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,gBAC1H,uBAAC,2BAAY,kBAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,YAAY,gBAC/E,uBAAC,sCAAiB,kBAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,cAAc,IAAI,OAAO,CAAC,IAAM,KAAK,cAC5F,QAAQ,IACS,IACP,IACgB,CAClC,CAAA;AACH,CAAC,CAAA;AAhDY,QAAA,sBAAsB,0BAgDlC"}
|
package/dist/docs.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"fileName": "packages/sdk/embed/src/components/XyoEmbedPlugin.tsx",
|
|
18
18
|
"line": 7,
|
|
19
19
|
"character": 13,
|
|
20
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
20
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/152ef0ae/packages/sdk/embed/src/components/XyoEmbedPlugin.tsx#L7"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"signatures": [
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"fileName": "packages/sdk/embed/src/index.ts",
|
|
96
96
|
"line": 1,
|
|
97
97
|
"character": 0,
|
|
98
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
98
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/152ef0ae/packages/sdk/embed/src/index.ts#L1"
|
|
99
99
|
}
|
|
100
100
|
]
|
|
101
101
|
}
|
|
@@ -10,30 +10,28 @@ export const XyoEmbedPluginProvider = ({ children, refreshTitle, timestampLabel,
|
|
|
10
10
|
const [notFound, setNotFound] = useState();
|
|
11
11
|
const [huriApiError, setHuriApiError] = useState();
|
|
12
12
|
const [activePlugin, setActivePlugin] = useState(plugins ? plugins[0] : undefined);
|
|
13
|
+
const [refreshPayload, setRefreshPayload] = useState(0);
|
|
13
14
|
useAsyncEffect(
|
|
14
15
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15
16
|
async (mounted) => {
|
|
16
|
-
if (
|
|
17
|
+
if (huri && !refreshPayload) {
|
|
17
18
|
try {
|
|
18
19
|
const huriInstance = new Huri(huri);
|
|
19
20
|
const result = await huriInstance.fetch();
|
|
20
21
|
if (mounted()) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
setPayload(result);
|
|
22
|
+
setNotFound(result === null);
|
|
23
|
+
setPayload(result);
|
|
24
|
+
setRefreshPayload(1);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
catch (e) {
|
|
28
28
|
setHuriApiError(e);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
}, [huri, payload]);
|
|
31
|
+
}, [huri, payload, refreshPayload]);
|
|
32
32
|
const refreshHuri = () => {
|
|
33
|
-
|
|
34
|
-
setNotFound(undefined);
|
|
35
|
-
setPayload(undefined);
|
|
33
|
+
setRefreshPayload(0);
|
|
36
34
|
};
|
|
37
|
-
return (_jsx(XyoEmbedPluginContext.Provider, { value: { activePlugin, payload, refreshHuri, refreshTitle, setActivePlugin, timestampLabel }, children: _jsx(ResultLoader, { searchResult: payload, notFound: !!notFound, apiError: huriApiError, children: _jsx(XyoApiErrorRender, { apiError: huriApiError, ...props, children: children }) }) }));
|
|
35
|
+
return (_jsx(XyoEmbedPluginContext.Provider, { value: { activePlugin, payload, refreshHuri, refreshTitle, setActivePlugin, timestampLabel }, children: _jsx(ResultLoader, { searchResult: payload, notFound: !!notFound, apiError: huriApiError, children: _jsx(XyoApiErrorRender, { apiError: huriApiError, busy: Boolean(!refreshPayload && payload), ...props, children: children }) }) }));
|
|
38
36
|
};
|
|
39
37
|
//# sourceMappingURL=Provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.js","sourceRoot":"","sources":["../../../../src/contexts/XyoEmbedPluginContext/Provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAgB,MAAM,sBAAsB,CAAA;AAEnE,OAAO,EAAE,IAAI,EAAc,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA;AASjD,MAAM,CAAC,MAAM,sBAAsB,GAAwD,CAAC,EAC1F,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,IAAI,EACJ,OAAO,EACP,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,EAAc,CAAA;I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"^5.10.0",
|
|
17
|
-
"@xylabs/react-flexbox": "^2.14.
|
|
18
|
-
"@xylabs/react-
|
|
17
|
+
"@xylabs/react-flexbox": "^2.14.11",
|
|
18
|
+
"@xylabs/react-identicon": "^2.14.11",
|
|
19
|
+
"@xylabs/react-shared": "^2.14.11",
|
|
20
|
+
"@xylabs/sdk-js": "^2.6.4",
|
|
19
21
|
"@xyo-network/api": "^2.25.2",
|
|
20
22
|
"@xyo-network/payload": "^2.25.2",
|
|
21
|
-
"@xyo-network/
|
|
22
|
-
"@xyo-network/react-
|
|
23
|
-
"@xyo-network/react-
|
|
24
|
-
"@xyo-network/react-
|
|
25
|
-
"@xyo-network/react-
|
|
23
|
+
"@xyo-network/payload-plugin": "^2.25.2",
|
|
24
|
+
"@xyo-network/react-app-settings": "^2.27.22",
|
|
25
|
+
"@xyo-network/react-auth-service": "^2.27.22",
|
|
26
|
+
"@xyo-network/react-payload": "^2.27.22",
|
|
27
|
+
"@xyo-network/react-payload-plugin": "^2.27.22",
|
|
28
|
+
"@xyo-network/react-shared": "^2.27.22",
|
|
29
|
+
"@xyo-network/react-webapp": "^2.27.22",
|
|
30
|
+
"lodash": "^4.17.21",
|
|
26
31
|
"react": "^18.2.0",
|
|
27
32
|
"react-dom": "^18.2.0",
|
|
28
33
|
"tslib": "^2.4.0"
|
|
@@ -30,9 +35,9 @@
|
|
|
30
35
|
"description": "Common React library for all XYO projects that use React",
|
|
31
36
|
"devDependencies": {
|
|
32
37
|
"@storybook/react": "^6.5.10",
|
|
33
|
-
"@xylabs/tsconfig-dom": "^2.5.
|
|
34
|
-
"@xyo-network/react-aggregate-price-plugin": "^2.27.
|
|
35
|
-
"@xyo-network/react-crypto-market-uniswap-payload-plugin": "^2.27.
|
|
38
|
+
"@xylabs/tsconfig-dom": "^2.5.92",
|
|
39
|
+
"@xyo-network/react-aggregate-price-plugin": "^2.27.21",
|
|
40
|
+
"@xyo-network/react-crypto-market-uniswap-payload-plugin": "^2.27.22",
|
|
36
41
|
"react-router-dom": "^6.3.0"
|
|
37
42
|
},
|
|
38
43
|
"browser": "dist/esm/index.js",
|
|
@@ -77,5 +82,5 @@
|
|
|
77
82
|
},
|
|
78
83
|
"sideEffects": false,
|
|
79
84
|
"types": "dist/esm/index.d.ts",
|
|
80
|
-
"version": "2.27.
|
|
85
|
+
"version": "2.27.20"
|
|
81
86
|
}
|
|
@@ -28,37 +28,37 @@ export const XyoEmbedPluginProvider: React.FC<WithChildren<XyoEmbedPluginProvide
|
|
|
28
28
|
const [notFound, setNotFound] = useState<boolean>()
|
|
29
29
|
const [huriApiError, setHuriApiError] = useState<XyoApiError>()
|
|
30
30
|
const [activePlugin, setActivePlugin] = useState<XyoPayloadRenderPlugin | undefined>(plugins ? plugins[0] : undefined)
|
|
31
|
+
const [refreshPayload, setRefreshPayload] = useState(0)
|
|
31
32
|
|
|
32
33
|
useAsyncEffect(
|
|
33
34
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
34
35
|
async (mounted) => {
|
|
35
|
-
if (
|
|
36
|
+
if (huri && !refreshPayload) {
|
|
36
37
|
try {
|
|
37
38
|
const huriInstance = new Huri(huri)
|
|
38
39
|
const result = await huriInstance.fetch()
|
|
39
40
|
|
|
40
41
|
if (mounted()) {
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
setNotFound(result === null)
|
|
43
|
+
setPayload(result)
|
|
44
|
+
setRefreshPayload(1)
|
|
43
45
|
}
|
|
44
46
|
} catch (e) {
|
|
45
47
|
setHuriApiError(e as XyoApiError)
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
},
|
|
49
|
-
[huri, payload],
|
|
51
|
+
[huri, payload, refreshPayload],
|
|
50
52
|
)
|
|
51
53
|
|
|
52
54
|
const refreshHuri = () => {
|
|
53
|
-
|
|
54
|
-
setNotFound(undefined)
|
|
55
|
-
setPayload(undefined)
|
|
55
|
+
setRefreshPayload(0)
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
return (
|
|
59
59
|
<XyoEmbedPluginContext.Provider value={{ activePlugin, payload, refreshHuri, refreshTitle, setActivePlugin, timestampLabel }}>
|
|
60
60
|
<ResultLoader searchResult={payload} notFound={!!notFound} apiError={huriApiError}>
|
|
61
|
-
<XyoApiErrorRender apiError={huriApiError} {...props}>
|
|
61
|
+
<XyoApiErrorRender apiError={huriApiError} busy={Boolean(!refreshPayload && payload)} {...props}>
|
|
62
62
|
{children}
|
|
63
63
|
</XyoApiErrorRender>
|
|
64
64
|
</ResultLoader>
|