@xyo-network/react-payload 2.25.15 → 2.25.16
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/hooks/lib/findHuriNetwork.d.ts +1 -1
- package/dist/cjs/hooks/useGetSchema.d.ts +1 -1
- package/dist/cjs/hooks/useHuriHash.d.ts +1 -1
- package/dist/cjs/hooks/usePayload.d.ts +1 -1
- package/dist/cjs/hooks/useResolveHuri.d.ts +1 -1
- package/dist/docs.json +117319 -51897
- package/dist/esm/hooks/lib/findHuriNetwork.d.ts +1 -1
- package/dist/esm/hooks/useGetSchema.d.ts +1 -1
- package/dist/esm/hooks/useHuriHash.d.ts +1 -1
- package/dist/esm/hooks/usePayload.d.ts +1 -1
- package/dist/esm/hooks/useResolveHuri.d.ts +1 -1
- package/package.json +15 -22
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Huri } from '@xyo-network/core';
|
|
2
2
|
import { XyoNetworkPayload } from '@xyo-network/network';
|
|
3
|
-
export declare const findHuriNetwork: (huriInstance: Huri, networks?: XyoNetworkPayload[]
|
|
3
|
+
export declare const findHuriNetwork: (huriInstance: Huri, networks?: XyoNetworkPayload[]) => XyoNetworkPayload | undefined;
|
|
@@ -2,7 +2,7 @@ import { XyoApiError } from '@xyo-network/api';
|
|
|
2
2
|
/**
|
|
3
3
|
* Gets a Huri and schema payload from a schema string
|
|
4
4
|
*/
|
|
5
|
-
declare const useGetSchemaPayload: (schema?: string
|
|
5
|
+
declare const useGetSchemaPayload: (schema?: string) => {
|
|
6
6
|
apiError: XyoApiError<any, any> | undefined;
|
|
7
7
|
notFound: boolean;
|
|
8
8
|
schemaHuri: import("@xyo-network/core").Huri | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoApiError } from '@xyo-network/api';
|
|
2
2
|
import { Huri, XyoPayload } from '@xyo-network/core';
|
|
3
3
|
import { FetchHuriHashOptions } from './lib';
|
|
4
|
-
declare const useHuriHash: (huriOrHash?: string | Huri
|
|
4
|
+
declare const useHuriHash: (huriOrHash?: string | Huri, huriUri?: string, options?: FetchHuriHashOptions) => [XyoPayload | undefined, boolean, XyoApiError | undefined];
|
|
5
5
|
export { useHuriHash };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { XyoApiError } from '@xyo-network/api';
|
|
2
2
|
import { XyoPayload } from '@xyo-network/core';
|
|
3
|
-
export declare const usePayload: (hash?: string
|
|
3
|
+
export declare const usePayload: (hash?: string) => [XyoPayload | undefined, boolean, XyoApiError | undefined];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { XyoApiError } from '@xyo-network/api';
|
|
2
2
|
import { XyoPayload } from '@xyo-network/core';
|
|
3
3
|
import { FetchHuriHashOptions } from './lib';
|
|
4
|
-
declare const useResolveHuri: (huriUri?: string
|
|
4
|
+
declare const useResolveHuri: (huriUri?: string, dependentNotFound?: boolean, options?: FetchHuriHashOptions) => [XyoPayload | undefined, boolean, XyoApiError | undefined];
|
|
5
5
|
export { useResolveHuri };
|
package/package.json
CHANGED
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"@xyo-network/api": "^2.20.33",
|
|
19
19
|
"@xyo-network/core": "^2.20.33",
|
|
20
20
|
"@xyo-network/network": "^2.20.33",
|
|
21
|
-
"@xyo-network/react-archive": "^2.25.
|
|
22
|
-
"@xyo-network/react-archivist-api": "^2.25.
|
|
23
|
-
"@xyo-network/react-auth-service": "^2.25.
|
|
24
|
-
"@xyo-network/react-network": "^2.25.
|
|
25
|
-
"@xyo-network/react-property": "^2.25.
|
|
26
|
-
"@xyo-network/react-shared": "^2.25.
|
|
27
|
-
"@xyo-network/react-theme": "^2.25.
|
|
21
|
+
"@xyo-network/react-archive": "^2.25.16",
|
|
22
|
+
"@xyo-network/react-archivist-api": "^2.25.16",
|
|
23
|
+
"@xyo-network/react-auth-service": "^2.25.16",
|
|
24
|
+
"@xyo-network/react-network": "^2.25.16",
|
|
25
|
+
"@xyo-network/react-property": "^2.25.16",
|
|
26
|
+
"@xyo-network/react-shared": "^2.25.16",
|
|
27
|
+
"@xyo-network/react-theme": "^2.25.16",
|
|
28
28
|
"@xyo-network/utils": "^2.20.33",
|
|
29
29
|
"lodash": "^4.17.21",
|
|
30
30
|
"luxon": "^2.4.0",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.18.0",
|
|
42
42
|
"@babel/preset-env": "^7.18.0",
|
|
43
|
-
"@storybook/addons": "^6.5.
|
|
44
|
-
"@storybook/api": "^6.5.
|
|
45
|
-
"@storybook/components": "^6.5.
|
|
46
|
-
"@storybook/core-events": "^6.5.
|
|
47
|
-
"@storybook/react": "^6.5.
|
|
48
|
-
"@storybook/theming": "^6.5.
|
|
43
|
+
"@storybook/addons": "^6.5.5",
|
|
44
|
+
"@storybook/api": "^6.5.5",
|
|
45
|
+
"@storybook/components": "^6.5.5",
|
|
46
|
+
"@storybook/core-events": "^6.5.5",
|
|
47
|
+
"@storybook/react": "^6.5.5",
|
|
48
|
+
"@storybook/theming": "^6.5.5",
|
|
49
49
|
"@types/lodash": "^4.14.182",
|
|
50
50
|
"@types/luxon": "^2.3.2",
|
|
51
51
|
"@xylabs/sdk-react": "^2.12.8",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@xylabs/tsconfig": "^1.0.13",
|
|
54
54
|
"axios": "^0.27.2",
|
|
55
55
|
"storybook-dark-mode": "^1.1.0",
|
|
56
|
-
"typescript": "^4.
|
|
56
|
+
"typescript": "^4.7.2"
|
|
57
57
|
},
|
|
58
58
|
"browser": "dist/esm/index.js",
|
|
59
59
|
"docs": "dist/docs.json",
|
|
@@ -109,17 +109,10 @@
|
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"lint-pkg": "npmPkgJsonLint .",
|
|
112
|
-
"gen:docs:package": "typedoc src/index.ts --json dist/docs.json",
|
|
113
|
-
"clean:package": "rimraf -q ./dist && rimraf -q ./build",
|
|
114
|
-
"fix:package": "yarn fix",
|
|
115
|
-
"lint:package": "yarn lint",
|
|
116
|
-
"deps:package": "depcheck $INIT_CWD",
|
|
117
|
-
"updo3:package": "yarn updo3",
|
|
118
|
-
"build:package": "yarn clean:package && tsc -p tsconfig.build.cjs.json && tsc -p tsconfig.build.esm.json && yarn gen:docs:package",
|
|
119
112
|
"license": "yarn license-checker --exclude \"MIT, ISC, Apache-2.0, BSD, BSD-2-Clause, CC-BY-4.0, Unlicense, CC-BY-3.0, CC0-1.0\""
|
|
120
113
|
},
|
|
121
114
|
"sideEffects": false,
|
|
122
115
|
"types": "dist/esm/index.d.ts",
|
|
123
|
-
"version": "2.25.
|
|
116
|
+
"version": "2.25.16",
|
|
124
117
|
"packageManager": "yarn@3.1.1"
|
|
125
118
|
}
|