@xyo-network/react-payload-diviner 4.4.5 → 4.4.6
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 -8
- package/package.json +11 -11
package/dist/browser/index.d.ts
CHANGED
|
@@ -2,10 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { Dispatch, PropsWithChildren } from 'react';
|
|
3
3
|
import * as _xyo_network_react_shared from '@xyo-network/react-shared';
|
|
4
4
|
import { ContextExState, ContextExProviderProps } from '@xyo-network/react-shared';
|
|
5
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
6
5
|
import { Payload } from '@xyo-network/payload-model';
|
|
7
6
|
import { PayloadDiviner } from '@xyo-network/diviner-payload-abstract';
|
|
8
|
-
import * as _xylabs_object from '@xylabs/object';
|
|
9
7
|
|
|
10
8
|
interface DivinedPayloadState extends ContextExState {
|
|
11
9
|
payload?: Payload | null;
|
|
@@ -37,11 +35,7 @@ type PayloadDivinerProviderProps = ContextExProviderProps<{
|
|
|
37
35
|
declare const PayloadDivinerProvider: React__default.FC<PayloadDivinerProviderProps>;
|
|
38
36
|
|
|
39
37
|
declare const usePayloadDiviner: (required?: boolean) => Omit<PayloadDivinerState & _xyo_network_react_shared.ContextExState, "provided">;
|
|
40
|
-
declare const useDivinePayload: <T extends Payload =
|
|
41
|
-
|
|
42
|
-
}>>(huri?: string) => [T | undefined | null, Dispatch<T | null | undefined>, Error | undefined];
|
|
43
|
-
declare const useDivinePayloads: <T extends Payload = _xylabs_object.DeepRestrictToStringKeys<{
|
|
44
|
-
schema: _xyo_network_payload_model.Schema;
|
|
45
|
-
}>>(huriList: string[]) => [(T | null)[] | undefined, Dispatch<(T | null)[] | undefined>, Error[] | undefined];
|
|
38
|
+
declare const useDivinePayload: <T extends Payload = Payload>(huri?: string) => [T | undefined | null, Dispatch<T | null | undefined>, Error | undefined];
|
|
39
|
+
declare const useDivinePayloads: <T extends Payload = Payload>(huriList: string[]) => [(T | null)[] | undefined, Dispatch<(T | null)[] | undefined>, Error[] | undefined];
|
|
46
40
|
|
|
47
41
|
export { DivinedPayloadContext, DivinedPayloadProvider, type DivinedPayloadProviderProps, type DivinedPayloadState, DivinedPayloadWithHandleInner, DivinedPayloadWithHandleProvider, PayloadDivinerContext, PayloadDivinerProvider, type PayloadDivinerProviderProps, type PayloadDivinerState, useDivinePayload, useDivinePayloads, useDivinedPayload, usePayloadDiviner };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-payload-diviner",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.6",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
"@xylabs/react-async-effect": "^5.3.23",
|
|
48
48
|
"@xylabs/react-error": "^5.3.23",
|
|
49
49
|
"@xylabs/react-hooks": "^5.3.23",
|
|
50
|
-
"@xyo-network/diviner-huri": "^3.9.
|
|
51
|
-
"@xyo-network/diviner-payload-abstract": "^3.9.
|
|
52
|
-
"@xyo-network/payload-model": "^3.9.
|
|
53
|
-
"@xyo-network/react-payload-huri": "^4.4.
|
|
54
|
-
"@xyo-network/react-shared": "^4.4.
|
|
55
|
-
"react-router-dom": "^7.
|
|
50
|
+
"@xyo-network/diviner-huri": "^3.9.17",
|
|
51
|
+
"@xyo-network/diviner-payload-abstract": "^3.9.17",
|
|
52
|
+
"@xyo-network/payload-model": "^3.9.17",
|
|
53
|
+
"@xyo-network/react-payload-huri": "^4.4.6",
|
|
54
|
+
"@xyo-network/react-shared": "^4.4.6",
|
|
55
|
+
"react-router-dom": "^7.2.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@mui/icons-material": "^6.4.
|
|
59
|
-
"@mui/material": "^6.4.
|
|
60
|
-
"@mui/styles": "^6.4.
|
|
61
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
58
|
+
"@mui/icons-material": "^6.4.5",
|
|
59
|
+
"@mui/material": "^6.4.5",
|
|
60
|
+
"@mui/styles": "^6.4.5",
|
|
61
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.25",
|
|
62
62
|
"react": "^18.3.1",
|
|
63
63
|
"react-dom": "^18.3.1",
|
|
64
64
|
"typescript": "^5.7.3"
|