@xyo-network/react-payload-diviner 9.0.1 → 9.0.4
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/browser/contexts/DivinedPayload/Context.d.ts +6 -6
- package/dist/browser/contexts/DivinedPayload/State.d.ts +1 -1
- package/dist/browser/contexts/DivinedPayload/State.d.ts.map +1 -1
- package/dist/browser/contexts/DivinedPayload/use.d.ts +2 -2
- package/dist/browser/contexts/PayloadDiviner/use.d.ts +1 -1
- package/dist/browser/contexts/PayloadDiviner/use.d.ts.map +1 -1
- package/dist/browser/index.mjs +1 -1
- package/dist/browser/index.mjs.map +2 -2
- package/package.json +20 -30
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export declare const DivinedPayloadContext: import("react").Context<({
|
|
2
|
-
payload?: import("@xyo-network/
|
|
2
|
+
payload?: import("@xyo-network/sdk-protocol-js").Payload | null;
|
|
3
3
|
payloadError?: Error;
|
|
4
|
-
setPayload?: import("react").Dispatch<import("@xyo-network/
|
|
4
|
+
setPayload?: import("react").Dispatch<import("@xyo-network/sdk-protocol-js").Payload | null | undefined>;
|
|
5
5
|
} & {
|
|
6
6
|
provided: true;
|
|
7
7
|
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
|
|
8
|
-
payload?: import("@xyo-network/
|
|
8
|
+
payload?: import("@xyo-network/sdk-protocol-js").Payload | null;
|
|
9
9
|
payloadError?: Error;
|
|
10
|
-
setPayload?: import("react").Dispatch<import("@xyo-network/
|
|
10
|
+
setPayload?: import("react").Dispatch<import("@xyo-network/sdk-protocol-js").Payload | null | undefined>;
|
|
11
11
|
}>, never> & {
|
|
12
12
|
provided: false;
|
|
13
13
|
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
|
|
14
|
-
payload?: import("@xyo-network/
|
|
14
|
+
payload?: import("@xyo-network/sdk-protocol-js").Payload | null;
|
|
15
15
|
payloadError?: Error;
|
|
16
|
-
setPayload?: import("react").Dispatch<import("@xyo-network/
|
|
16
|
+
setPayload?: import("react").Dispatch<import("@xyo-network/sdk-protocol-js").Payload | null | undefined>;
|
|
17
17
|
}>, never> & {
|
|
18
18
|
provided: false;
|
|
19
19
|
})>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContextExState } from '@xylabs/react-shared';
|
|
2
|
-
import type { Payload } from '@xyo-network/
|
|
2
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
3
3
|
import type { Dispatch } from 'react';
|
|
4
4
|
export type DivinedPayloadState = ContextExState<{
|
|
5
5
|
payload?: Payload | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/DivinedPayload/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/DivinedPayload/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,YAAY,CAAC,EAAE,KAAK,CAAA;IACpB,UAAU,CAAC,EAAE,QAAQ,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;CAClD,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const useDivinedPayload: () => Omit<{
|
|
2
|
-
payload?: import("@xyo-network/
|
|
2
|
+
payload?: import("@xyo-network/sdk-protocol-js").Payload | null;
|
|
3
3
|
payloadError?: Error;
|
|
4
|
-
setPayload?: import("react").Dispatch<import("@xyo-network/
|
|
4
|
+
setPayload?: import("react").Dispatch<import("@xyo-network/sdk-protocol-js").Payload | null | undefined>;
|
|
5
5
|
} & {
|
|
6
6
|
provided: true;
|
|
7
7
|
}, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").DivinedPayloadState>, "provided">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/
|
|
1
|
+
import type { Payload } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { Dispatch } from 'react';
|
|
3
3
|
export declare const usePayloadDiviner: (required?: boolean) => Omit<{
|
|
4
4
|
diviner?: import("@xyo-network/diviner-payload-abstract").PayloadDiviner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/use.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/use.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAKrC,eAAO,MAAM,iBAAiB,GAAI,kBAAgB;;;;;qIAEjD,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,CAAC,SAAS,OAAO,GAAG,OAAO,EAC1D,OAAO,MAAM,KACZ,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,KAAK,GAAG,SAAS,CAiC1E,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,OAAO,GAAG,OAAO,EAC3D,UAAU,MAAM,EAAE,KACjB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,KAAK,EAAE,GAAG,SAAS,CA4CpF,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ var DivinedPayloadContext = createContextEx();
|
|
|
4
4
|
|
|
5
5
|
// src/contexts/DivinedPayload/Provider.tsx
|
|
6
6
|
import { ErrorRender } from "@xylabs/react-error";
|
|
7
|
-
import { ModuleErrorSchema } from "@xyo-network/payload-model";
|
|
8
7
|
import { useBuildHuri } from "@xyo-network/react-payload-huri";
|
|
8
|
+
import { ModuleErrorSchema } from "@xyo-network/sdk-js";
|
|
9
9
|
import { useMemo as useMemo2 } from "react";
|
|
10
10
|
import { useParams, useSearchParams } from "react-router-dom";
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/contexts/DivinedPayload/Context.ts", "../../src/contexts/DivinedPayload/Provider.tsx", "../../src/contexts/PayloadDiviner/Context.ts", "../../src/contexts/PayloadDiviner/Provider.tsx", "../../src/contexts/PayloadDiviner/use.ts", "../../src/contexts/DivinedPayload/use.ts"],
|
|
4
|
-
"sourcesContent": ["import { createContextEx } from '@xylabs/react-shared'\n\nimport type { DivinedPayloadState } from './State.ts'\n\nexport const DivinedPayloadContext = createContextEx<DivinedPayloadState>()\n", "import { ErrorRender } from '@xylabs/react-error'\nimport {
|
|
5
|
-
"mappings": ";AAAA,SAAS,uBAAuB;AAIzB,IAAM,wBAAwB,gBAAqC;;;ACJ1E,SAAS,mBAAmB;AAC5B,SAAS,
|
|
4
|
+
"sourcesContent": ["import { createContextEx } from '@xylabs/react-shared'\n\nimport type { DivinedPayloadState } from './State.ts'\n\nexport const DivinedPayloadContext = createContextEx<DivinedPayloadState>()\n", "import { ErrorRender } from '@xylabs/react-error'\nimport { useBuildHuri } from '@xyo-network/react-payload-huri'\nimport { ModuleErrorSchema } from '@xyo-network/sdk-js'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo } from 'react'\nimport { useParams, useSearchParams } from 'react-router-dom'\n\nimport { useDivinePayload } from '../PayloadDiviner/index.ts'\nimport { DivinedPayloadContext } from './Context.ts'\nimport type { DivinedPayloadState } from './State.ts'\nimport { useDivinedPayload } from './use.ts'\n\nexport interface DivinedPayloadProviderProps extends PropsWithChildren {\n hash?: string\n}\n\nexport const DivinedPayloadProvider: React.FC<DivinedPayloadProviderProps> = ({ children, hash }) => {\n const { hash: hashParam } = useParams()\n\n const huriFromHashParam = useBuildHuri(hashParam)\n\n const [params] = useSearchParams()\n const huriSearchParameter = params.get('huri')\n const decodedHuriParam = decodeURIComponent(huriSearchParameter ?? '')\n const huriUri = hash ?? decodedHuriParam ?? huriFromHashParam\n\n const [payload, setPayload, payloadError] = useDivinePayload(huriUri)\n\n const value: DivinedPayloadState = useMemo(() => ({\n payload, payloadError, provided: true, setPayload,\n }), [payload, payloadError, setPayload])\n\n return (\n <DivinedPayloadContext value={value}>\n {children}\n </DivinedPayloadContext>\n )\n}\n\nexport const DivinedPayloadWithHandleInner: React.FC<PropsWithChildren> = ({ children }) => {\n const { payloadError } = useDivinedPayload()\n\n return (\n <ErrorRender\n error={payloadError\n ? {\n message: payloadError.message, schema: ModuleErrorSchema, sources: [],\n }\n : undefined}\n errorContext=\"Divined Payload Provider\"\n >\n {children}\n </ErrorRender>\n )\n}\n\nexport const DivinedPayloadWithHandleProvider: React.FC<DivinedPayloadProviderProps> = ({ children, ...props }) => {\n return (\n <DivinedPayloadProvider {...props}>\n <DivinedPayloadWithHandleInner>{children}</DivinedPayloadWithHandleInner>\n </DivinedPayloadProvider>\n )\n}\n", "import { createContextEx } from '@xylabs/react-shared'\n\nimport type { PayloadDivinerState } from './State.ts'\n\nconst PayloadDivinerContext = createContextEx<PayloadDivinerState>()\n\nexport { PayloadDivinerContext }\n", "import { useResetState } from '@xylabs/react-hooks'\nimport type { ContextExProviderProps } from '@xylabs/react-shared'\nimport type { PayloadDiviner } from '@xyo-network/diviner-payload-abstract'\nimport React, { useMemo } from 'react'\n\nimport { PayloadDivinerContext } from './Context.ts'\nimport type { PayloadDivinerState } from './State.ts'\n\nexport type PayloadDivinerProviderProps = ContextExProviderProps<{\n /** Required */\n diviner?: PayloadDiviner\n}>\n\nexport const PayloadDivinerProvider: React.FC<PayloadDivinerProviderProps> = ({\n diviner: divinerProp, required = false, children,\n}) => {\n const [diviner, setDiviner] = useResetState<PayloadDiviner | undefined>(divinerProp)\n\n const value: PayloadDivinerState = useMemo(() => ({\n diviner: diviner === divinerProp ? diviner : undefined, provided: true, setDiviner,\n }), [diviner, divinerProp, setDiviner])\n\n return (\n <PayloadDivinerContext\n value={value}\n >\n {diviner\n ? children\n : required\n ? null\n : children}\n </PayloadDivinerContext>\n )\n}\n", "import { useAsyncEffect } from '@xylabs/react-async-effect'\nimport { useContextEx } from '@xylabs/react-shared'\nimport { exists } from '@xylabs/sdk-js'\nimport type { HuriPayload } from '@xyo-network/diviner-huri'\nimport { HuriSchema } from '@xyo-network/diviner-huri'\nimport type { Payload } from '@xyo-network/sdk-js'\nimport type { Dispatch } from 'react'\nimport { useEffect, useState } from 'react'\n\nimport { PayloadDivinerContext } from './Context.ts'\n\nexport const usePayloadDiviner = (required = false) => {\n return useContextEx(PayloadDivinerContext, 'PayloadDiviner', required)\n}\n\nexport const useDivinePayload = <T extends Payload = Payload>(\n huri?: string,\n): [T | undefined | null, Dispatch<T | null | undefined>, Error | undefined] => {\n const { diviner } = usePayloadDiviner()\n const [payload, setPayload] = useState<T | null>()\n const [error, setError] = useState<Error>()\n\n useEffect(() => {\n // we do this to clear the payload when the diviner changes\n if (diviner) {\n // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n setPayload(undefined)\n }\n }, [diviner])\n\n useAsyncEffect(\n async (mounted) => {\n if (huri && diviner && payload === undefined) {\n try {\n const huriPayload: HuriPayload = { huri: [huri], schema: HuriSchema }\n const [payload] = (await diviner?.divine([huriPayload])) ?? []\n if (mounted()) {\n setPayload((payload as T) || null)\n }\n } catch (ex) {\n if (mounted()) {\n setError(ex as Error)\n }\n }\n }\n },\n [diviner, huri, payload],\n )\n\n return [payload, setPayload, error]\n}\n\nexport const useDivinePayloads = <T extends Payload = Payload>(\n huriList: string[],\n): [(T | null)[] | undefined, Dispatch<(T | null)[] | undefined>, Error[] | undefined] => {\n const { diviner } = usePayloadDiviner()\n const [payloads, setPayloads] = useState<(T | null)[]>()\n const [errors, setErrors] = useState<Error[]>()\n\n useEffect(() => {\n if (diviner) {\n // clear payloads when diviner changes\n // eslint-disable-next-line react-hooks/set-state-in-effect, react-x/set-state-in-effect\n setPayloads(undefined)\n }\n }, [diviner])\n\n useAsyncEffect(\n async (mounted) => {\n console.log(`huriList: ${JSON.stringify(huriList, null, 2)}`)\n const payloads = await Promise.allSettled(\n huriList.map(async (huri) => {\n const huriPayload: HuriPayload = { huri: [huri], schema: HuriSchema }\n const [payload] = (await diviner?.divine([huriPayload])) ?? []\n return payload\n }),\n )\n if (mounted()) {\n setPayloads([...payloads.values()].map(value => (value.status === 'rejected' ? null : value.value)) as (T | null)[])\n setErrors(\n (\n [...payloads.values()].map(value => (value.status === 'rejected' ? new Error('divine failed', { cause: value.reason }) : undefined))\n ).filter(exists),\n )\n if (mounted()) {\n setPayloads([...payloads.values()].map(value => (value.status === 'rejected' ? null : value.value)) as (T | null)[])\n setErrors(\n (\n [...payloads.values()].map(value => (value.status === 'rejected' ? new Error('divine failed', { cause: value.reason }) : undefined))\n ).filter(exists),\n )\n }\n }\n },\n [diviner, huriList, payloads],\n )\n\n return [payloads, setPayloads, errors]\n}\n", "import { useContextEx } from '@xylabs/react-shared'\n\nimport { DivinedPayloadContext } from './Context.ts'\n\nexport const useDivinedPayload = () => useContextEx(DivinedPayloadContext, 'DivinedPayload', true)\n"],
|
|
5
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F,QAAM,EAAE,aAAa,IAAI,kBAAkB;AAE3C,SACE,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,eACH;AAAA,QACE,SAAS,aAAa;AAAA,QAAS,QAAQ;AAAA,QAAmB,SAAS,CAAC;AAAA,MACtE,IACA;AAAA,MACJ,cAAa;AAAA,MAEZ;AAAA;AAAA,EACH;AAEJ;AAEO,IAAM,mCAA0E,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM;AACjH,SACE,gBAAAA,KAAC,0BAAwB,GAAG,OAC1B,0BAAAA,KAAC,iCAA+B,UAAS,GAC3C;AAEJ;",
|
|
6
6
|
"names": ["useMemo", "createContextEx", "payload", "payloads", "useContextEx", "useContextEx", "jsx", "useMemo"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-payload-diviner",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.4",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-payload-huri": "~9.0.
|
|
44
|
+
"@xyo-network/react-payload-huri": "~9.0.4"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@bitauth/libauth": "~3.0.0",
|
|
@@ -53,27 +53,25 @@
|
|
|
53
53
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
54
54
|
"@scure/base": "~2.2.0",
|
|
55
55
|
"@scure/bip39": "~2.2.0",
|
|
56
|
-
"@types/react": "^19.2.
|
|
57
|
-
"@xylabs/geo": "^6.0.
|
|
58
|
-
"@xylabs/pixel": "~6.0.
|
|
56
|
+
"@types/react": "^19.2.16",
|
|
57
|
+
"@xylabs/geo": "^6.0.7",
|
|
58
|
+
"@xylabs/pixel": "~6.0.7",
|
|
59
59
|
"@xylabs/react-async-effect": "~9.0.2",
|
|
60
60
|
"@xylabs/react-error": "~9.0.2",
|
|
61
61
|
"@xylabs/react-hooks": "~9.0.2",
|
|
62
62
|
"@xylabs/react-promise": "~9.0.2",
|
|
63
63
|
"@xylabs/react-select": "~9.0.2",
|
|
64
64
|
"@xylabs/react-shared": "~9.0.2",
|
|
65
|
-
"@xylabs/sdk-js": "^6.0.
|
|
66
|
-
"@xylabs/threads": "^6.0.
|
|
67
|
-
"@xylabs/toolchain": "~8.1.
|
|
68
|
-
"@xylabs/tsconfig": "^8.1.
|
|
69
|
-
"@xylabs/tsconfig-dom": "^8.1.
|
|
70
|
-
"@xylabs/tsconfig-react": "~8.1.
|
|
71
|
-
"@xyo-network/diviner-huri": "~6.0.
|
|
72
|
-
"@xyo-network/diviner-
|
|
73
|
-
"@xyo-network/
|
|
74
|
-
"@xyo-network/
|
|
75
|
-
"@xyo-network/payload-model": "^6.0.5",
|
|
76
|
-
"@xyo-network/sdk-protocol-js": "~6.0.5",
|
|
65
|
+
"@xylabs/sdk-js": "^6.0.7",
|
|
66
|
+
"@xylabs/threads": "^6.0.7",
|
|
67
|
+
"@xylabs/toolchain": "~8.1.15",
|
|
68
|
+
"@xylabs/tsconfig": "^8.1.15",
|
|
69
|
+
"@xylabs/tsconfig-dom": "^8.1.15",
|
|
70
|
+
"@xylabs/tsconfig-react": "~8.1.15",
|
|
71
|
+
"@xyo-network/diviner-huri": "~6.0.2",
|
|
72
|
+
"@xyo-network/diviner-payload-abstract": "~6.0.2",
|
|
73
|
+
"@xyo-network/sdk-js": "^6.0.2",
|
|
74
|
+
"@xyo-network/sdk-protocol-js": "~6.0.7",
|
|
77
75
|
"ajv": "^8.20.0",
|
|
78
76
|
"async-mutex": "^0.5.0",
|
|
79
77
|
"bn.js": "^5.2.3",
|
|
@@ -84,19 +82,16 @@
|
|
|
84
82
|
"ethers": "^6.16.0",
|
|
85
83
|
"hash-wasm": "~4.12.0",
|
|
86
84
|
"idb": "^8.0.3",
|
|
87
|
-
"lru-cache": "^11.
|
|
88
|
-
"
|
|
89
|
-
"mixpanel-browser": "~2.80",
|
|
85
|
+
"lru-cache": "^11.5.1",
|
|
86
|
+
"mixpanel-browser": "~2.80.0",
|
|
90
87
|
"observable-fns": "~0.6.1",
|
|
91
88
|
"pako": "^2.1.0",
|
|
92
89
|
"query-string": "~9.4.0",
|
|
93
|
-
"react": "^19.2.
|
|
94
|
-
"react-dom": "^19.2.
|
|
90
|
+
"react": "^19.2.7",
|
|
91
|
+
"react-dom": "^19.2.7",
|
|
95
92
|
"react-router-dom": "^7.16.0",
|
|
96
93
|
"spark-md5": "~3.0.2",
|
|
97
|
-
"store2": "~2.14.4",
|
|
98
94
|
"typescript": "^6.0.3",
|
|
99
|
-
"wasm-feature-detect": "~1.8.0",
|
|
100
95
|
"webextension-polyfill": "^0.12.0",
|
|
101
96
|
"zod": "^4.4.3"
|
|
102
97
|
},
|
|
@@ -121,10 +116,8 @@
|
|
|
121
116
|
"@xylabs/sdk-js": "^6.0",
|
|
122
117
|
"@xylabs/threads": "^6.0",
|
|
123
118
|
"@xyo-network/diviner-huri": "~6.0",
|
|
124
|
-
"@xyo-network/diviner-model": "^6.0",
|
|
125
119
|
"@xyo-network/diviner-payload-abstract": "~6.0",
|
|
126
|
-
"@xyo-network/
|
|
127
|
-
"@xyo-network/payload-model": "^6.0",
|
|
120
|
+
"@xyo-network/sdk-js": "^6.0",
|
|
128
121
|
"@xyo-network/sdk-protocol-js": "~6.0",
|
|
129
122
|
"ajv": "^8.20",
|
|
130
123
|
"async-mutex": "^0.5",
|
|
@@ -136,7 +129,6 @@
|
|
|
136
129
|
"hash-wasm": "~4.12",
|
|
137
130
|
"idb": "^8.0",
|
|
138
131
|
"lru-cache": "^11.3",
|
|
139
|
-
"mapbox-gl": "^3.23",
|
|
140
132
|
"mixpanel-browser": "~2.80",
|
|
141
133
|
"observable-fns": "~0.6",
|
|
142
134
|
"pako": "^2.1",
|
|
@@ -145,8 +137,6 @@
|
|
|
145
137
|
"react-dom": "^19.2",
|
|
146
138
|
"react-router-dom": "^7.15",
|
|
147
139
|
"spark-md5": "~3.0",
|
|
148
|
-
"store2": "~2.14",
|
|
149
|
-
"wasm-feature-detect": "~1.8",
|
|
150
140
|
"webextension-polyfill": "^0.12",
|
|
151
141
|
"zod": "^4.4"
|
|
152
142
|
},
|