@xyo-network/react-payload-diviner 5.3.1 → 5.3.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/types/contexts/DivinedPayload/Context.d.ts +14 -2
- package/dist/types/contexts/DivinedPayload/Context.d.ts.map +1 -1
- package/dist/types/contexts/DivinedPayload/use.d.ts +1 -1
- package/dist/types/contexts/DivinedPayload/use.d.ts.map +1 -1
- package/dist/types/contexts/PayloadDiviner/Context.d.ts +12 -2
- package/dist/types/contexts/PayloadDiviner/Context.d.ts.map +1 -1
- package/dist/types/contexts/PayloadDiviner/use.d.ts +1 -1
- package/dist/types/contexts/PayloadDiviner/use.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
export declare const DivinedPayloadContext: import("react").Context<{
|
|
1
|
+
export declare const DivinedPayloadContext: import("react").Context<({
|
|
2
2
|
payload?: import("@xyo-network/payload-model").Payload | null;
|
|
3
3
|
payloadError?: Error;
|
|
4
4
|
setPayload?: import("react").Dispatch<import("@xyo-network/payload-model").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/payload-model").Payload | null;
|
|
9
|
+
payloadError?: Error;
|
|
10
|
+
setPayload?: import("react").Dispatch<import("@xyo-network/payload-model").Payload | null | undefined>;
|
|
11
|
+
}>, never> & {
|
|
12
|
+
provided: false;
|
|
13
|
+
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
|
|
14
|
+
payload?: import("@xyo-network/payload-model").Payload | null;
|
|
15
|
+
payloadError?: Error;
|
|
16
|
+
setPayload?: import("react").Dispatch<import("@xyo-network/payload-model").Payload | null | undefined>;
|
|
17
|
+
}>, never> & {
|
|
18
|
+
provided: false;
|
|
19
|
+
})>;
|
|
8
20
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/DivinedPayload/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/DivinedPayload/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;GAAyC,CAAA"}
|
|
@@ -4,5 +4,5 @@ export declare const useDivinedPayload: () => Omit<{
|
|
|
4
4
|
setPayload?: import("react").Dispatch<import("@xyo-network/payload-model").Payload | null | undefined>;
|
|
5
5
|
} & {
|
|
6
6
|
provided: true;
|
|
7
|
-
}, "provided"> | Omit<
|
|
7
|
+
}, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").DivinedPayloadState>, "provided">;
|
|
8
8
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/DivinedPayload/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/DivinedPayload/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;qIAAoE,CAAA"}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
declare const PayloadDivinerContext: import("react").Context<{
|
|
1
|
+
declare const PayloadDivinerContext: import("react").Context<({
|
|
2
2
|
diviner?: import("@xyo-network/diviner-payload-abstract").PayloadDiviner;
|
|
3
3
|
setDiviner?: import("react").Dispatch<import("@xyo-network/diviner-payload-abstract").PayloadDiviner>;
|
|
4
4
|
} & {
|
|
5
5
|
provided: true;
|
|
6
|
-
}
|
|
6
|
+
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
|
|
7
|
+
diviner?: import("@xyo-network/diviner-payload-abstract").PayloadDiviner;
|
|
8
|
+
setDiviner?: import("react").Dispatch<import("@xyo-network/diviner-payload-abstract").PayloadDiviner>;
|
|
9
|
+
}>, never> & {
|
|
10
|
+
provided: false;
|
|
11
|
+
}) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
|
|
12
|
+
diviner?: import("@xyo-network/diviner-payload-abstract").PayloadDiviner;
|
|
13
|
+
setDiviner?: import("react").Dispatch<import("@xyo-network/diviner-payload-abstract").PayloadDiviner>;
|
|
14
|
+
}>, never> & {
|
|
15
|
+
provided: false;
|
|
16
|
+
})>;
|
|
7
17
|
export { PayloadDivinerContext };
|
|
8
18
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/Context.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/Context.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;GAAyC,CAAA;AAEpE,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -5,7 +5,7 @@ export declare const usePayloadDiviner: (required?: boolean) => Omit<{
|
|
|
5
5
|
setDiviner?: Dispatch<import("@xyo-network/diviner-payload-abstract").PayloadDiviner>;
|
|
6
6
|
} & {
|
|
7
7
|
provided: true;
|
|
8
|
-
}, "provided"> | Omit<
|
|
8
|
+
}, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<import("./State.ts").PayloadDivinerState>, "provided">;
|
|
9
9
|
export declare const useDivinePayload: <T extends Payload = Payload>(huri?: string) => [T | undefined | null, Dispatch<T | null | undefined>, Error | undefined];
|
|
10
10
|
export declare const useDivinePayloads: <T extends Payload = Payload>(huriList: string[]) => [(T | null)[] | undefined, Dispatch<(T | null)[] | undefined>, Error[] | undefined];
|
|
11
11
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -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,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAKrC,eAAO,MAAM,iBAAiB,GAAI,kBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/PayloadDiviner/use.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-payload-diviner",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"types": "dist/types/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@xylabs/exists": "^4.9.15",
|
|
43
|
-
"@xylabs/react-async-effect": "^6.3.
|
|
44
|
-
"@xylabs/react-error": "^6.3.
|
|
45
|
-
"@xylabs/react-hooks": "^6.3.
|
|
46
|
-
"@xylabs/react-shared": "^6.3.
|
|
43
|
+
"@xylabs/react-async-effect": "^6.3.1",
|
|
44
|
+
"@xylabs/react-error": "^6.3.1",
|
|
45
|
+
"@xylabs/react-hooks": "^6.3.1",
|
|
46
|
+
"@xylabs/react-shared": "^6.3.1",
|
|
47
47
|
"@xyo-network/diviner-huri": "^3.15.5",
|
|
48
48
|
"@xyo-network/diviner-payload-abstract": "^3.15.5",
|
|
49
49
|
"@xyo-network/payload-model": "^3.15.5",
|
|
50
|
-
"@xyo-network/react-payload-huri": "^5.3.
|
|
50
|
+
"@xyo-network/react-payload-huri": "^5.3.3",
|
|
51
51
|
"react-router-dom": "^7.6.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|