@xyo-network/react-payload-diviner 6.1.4 → 7.0.0
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/index.d.ts +2 -90
- package/package.json +19 -15
- package/typedoc.json +0 -5
- package/xy.config.ts +0 -10
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,90 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as react from 'react';
|
|
4
|
-
import react__default, { PropsWithChildren, Dispatch } from 'react';
|
|
5
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
6
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
7
|
-
import * as _xyo_network_diviner_payload_abstract from '@xyo-network/diviner-payload-abstract';
|
|
8
|
-
import { PayloadDiviner } from '@xyo-network/diviner-payload-abstract';
|
|
9
|
-
|
|
10
|
-
declare const DivinedPayloadContext: react.Context<({
|
|
11
|
-
payload?: _xyo_network_payload_model.Payload | null;
|
|
12
|
-
payloadError?: Error;
|
|
13
|
-
setPayload?: react.Dispatch<_xyo_network_payload_model.Payload | null | undefined>;
|
|
14
|
-
} & {
|
|
15
|
-
provided: true;
|
|
16
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.ProvidedContextExState<{
|
|
17
|
-
payload?: _xyo_network_payload_model.Payload | null;
|
|
18
|
-
payloadError?: Error;
|
|
19
|
-
setPayload?: react.Dispatch<_xyo_network_payload_model.Payload | null | undefined>;
|
|
20
|
-
}>, never> & {
|
|
21
|
-
provided: false;
|
|
22
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.NotProvidedContextExState<{
|
|
23
|
-
payload?: _xyo_network_payload_model.Payload | null;
|
|
24
|
-
payloadError?: Error;
|
|
25
|
-
setPayload?: react.Dispatch<_xyo_network_payload_model.Payload | null | undefined>;
|
|
26
|
-
}>, never> & {
|
|
27
|
-
provided: false;
|
|
28
|
-
})>;
|
|
29
|
-
|
|
30
|
-
interface DivinedPayloadProviderProps extends PropsWithChildren {
|
|
31
|
-
hash?: string;
|
|
32
|
-
}
|
|
33
|
-
declare const DivinedPayloadProvider: react__default.FC<DivinedPayloadProviderProps>;
|
|
34
|
-
declare const DivinedPayloadWithHandleInner: react__default.FC<PropsWithChildren>;
|
|
35
|
-
declare const DivinedPayloadWithHandleProvider: react__default.FC<DivinedPayloadProviderProps>;
|
|
36
|
-
|
|
37
|
-
type DivinedPayloadState = ContextExState<{
|
|
38
|
-
payload?: Payload | null;
|
|
39
|
-
payloadError?: Error;
|
|
40
|
-
setPayload?: Dispatch<Payload | null | undefined>;
|
|
41
|
-
}>;
|
|
42
|
-
|
|
43
|
-
declare const useDivinedPayload: () => Omit<{
|
|
44
|
-
payload?: _xyo_network_payload_model.Payload | null;
|
|
45
|
-
payloadError?: Error;
|
|
46
|
-
setPayload?: react.Dispatch<_xyo_network_payload_model.Payload | null | undefined>;
|
|
47
|
-
} & {
|
|
48
|
-
provided: true;
|
|
49
|
-
}, "provided"> | Omit<_xylabs_react_shared.NotProvidedContextExState<DivinedPayloadState>, "provided">;
|
|
50
|
-
|
|
51
|
-
declare const PayloadDivinerContext: react.Context<({
|
|
52
|
-
diviner?: _xyo_network_diviner_payload_abstract.PayloadDiviner;
|
|
53
|
-
setDiviner?: react.Dispatch<_xyo_network_diviner_payload_abstract.PayloadDiviner>;
|
|
54
|
-
} & {
|
|
55
|
-
provided: true;
|
|
56
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.ProvidedContextExState<{
|
|
57
|
-
diviner?: _xyo_network_diviner_payload_abstract.PayloadDiviner;
|
|
58
|
-
setDiviner?: react.Dispatch<_xyo_network_diviner_payload_abstract.PayloadDiviner>;
|
|
59
|
-
}>, never> & {
|
|
60
|
-
provided: false;
|
|
61
|
-
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.NotProvidedContextExState<{
|
|
62
|
-
diviner?: _xyo_network_diviner_payload_abstract.PayloadDiviner;
|
|
63
|
-
setDiviner?: react.Dispatch<_xyo_network_diviner_payload_abstract.PayloadDiviner>;
|
|
64
|
-
}>, never> & {
|
|
65
|
-
provided: false;
|
|
66
|
-
})>;
|
|
67
|
-
//# sourceMappingURL=Context.d.ts.map
|
|
68
|
-
|
|
69
|
-
type PayloadDivinerProviderProps = ContextExProviderProps<{
|
|
70
|
-
/** Required */
|
|
71
|
-
diviner?: PayloadDiviner;
|
|
72
|
-
}>;
|
|
73
|
-
declare const PayloadDivinerProvider: react__default.FC<PayloadDivinerProviderProps>;
|
|
74
|
-
|
|
75
|
-
type PayloadDivinerState = ContextExState<{
|
|
76
|
-
diviner?: PayloadDiviner;
|
|
77
|
-
setDiviner?: Dispatch<PayloadDiviner>;
|
|
78
|
-
}>;
|
|
79
|
-
|
|
80
|
-
declare const usePayloadDiviner: (required?: boolean) => Omit<{
|
|
81
|
-
diviner?: _xyo_network_diviner_payload_abstract.PayloadDiviner;
|
|
82
|
-
setDiviner?: Dispatch<_xyo_network_diviner_payload_abstract.PayloadDiviner>;
|
|
83
|
-
} & {
|
|
84
|
-
provided: true;
|
|
85
|
-
}, "provided"> | Omit<_xylabs_react_shared.NotProvidedContextExState<PayloadDivinerState>, "provided">;
|
|
86
|
-
declare const useDivinePayload: <T extends Payload = Payload>(huri?: string) => [T | undefined | null, Dispatch<T | null | undefined>, Error | undefined];
|
|
87
|
-
declare const useDivinePayloads: <T extends Payload = Payload>(huriList: string[]) => [(T | null)[] | undefined, Dispatch<(T | null)[] | undefined>, Error[] | undefined];
|
|
88
|
-
|
|
89
|
-
export { DivinedPayloadContext, DivinedPayloadProvider, DivinedPayloadWithHandleInner, DivinedPayloadWithHandleProvider, PayloadDivinerContext, PayloadDivinerProvider, useDivinePayload, useDivinePayloads, useDivinedPayload, usePayloadDiviner };
|
|
90
|
-
export type { DivinedPayloadProviderProps, DivinedPayloadState, PayloadDivinerProviderProps, PayloadDivinerState };
|
|
1
|
+
export * from './contexts/index.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-payload-diviner",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -38,25 +38,29 @@
|
|
|
38
38
|
},
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
40
|
"types": "dist/browser/index.d.ts",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"src"
|
|
44
|
+
],
|
|
41
45
|
"dependencies": {
|
|
42
|
-
"@xylabs/exists": "^
|
|
43
|
-
"@xylabs/react-async-effect": "^
|
|
44
|
-
"@xylabs/react-error": "^
|
|
45
|
-
"@xylabs/react-hooks": "^
|
|
46
|
-
"@xylabs/react-shared": "^
|
|
47
|
-
"@xyo-network/diviner-huri": "^
|
|
48
|
-
"@xyo-network/diviner-payload-abstract": "^
|
|
49
|
-
"@xyo-network/payload-model": "^
|
|
50
|
-
"@xyo-network/react-payload-huri": "^
|
|
51
|
-
"react-router-dom": "^7.7.
|
|
46
|
+
"@xylabs/exists": "^5.0.0",
|
|
47
|
+
"@xylabs/react-async-effect": "^7.0.0",
|
|
48
|
+
"@xylabs/react-error": "^7.0.0",
|
|
49
|
+
"@xylabs/react-hooks": "^7.0.0",
|
|
50
|
+
"@xylabs/react-shared": "^7.0.0",
|
|
51
|
+
"@xyo-network/diviner-huri": "^5.0.0",
|
|
52
|
+
"@xyo-network/diviner-payload-abstract": "^5.0.0",
|
|
53
|
+
"@xyo-network/payload-model": "^5.0.0",
|
|
54
|
+
"@xyo-network/react-payload-huri": "^7.0.0",
|
|
55
|
+
"react-router-dom": "^7.7.1"
|
|
52
56
|
},
|
|
53
57
|
"devDependencies": {
|
|
54
58
|
"@mui/icons-material": "^7.2.0",
|
|
55
59
|
"@mui/material": "^7.2.0",
|
|
56
|
-
"@types/react": "^19.1.
|
|
57
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
58
|
-
"react": "^19.1.
|
|
59
|
-
"react-dom": "^19.1.
|
|
60
|
+
"@types/react": "^19.1.9",
|
|
61
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.2",
|
|
62
|
+
"react": "^19.1.1",
|
|
63
|
+
"react-dom": "^19.1.1",
|
|
60
64
|
"typescript": "^5.8.3"
|
|
61
65
|
},
|
|
62
66
|
"peerDependencies": {
|
package/typedoc.json
DELETED