@xyo-network/react-diviner 2.45.0-rc.17 → 2.45.0-rc.19

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.
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useWrappedDiviner = exports.useDiviner = void 0;
3
+ exports.useDiviner = void 0;
4
4
  const diviner_1 = require("@xyo-network/diviner");
5
5
  const react_node_1 = require("@xyo-network/react-node");
6
- const useDiviner = (nameOrAddress) => (0, react_node_1.useModule)(nameOrAddress);
7
- exports.useDiviner = useDiviner;
8
- exports.useWrappedDiviner = (0, react_node_1.WrappedModuleHookFactory)(diviner_1.DivinerWrapper);
6
+ exports.useDiviner = (0, react_node_1.WrappedModuleHookFactory)(diviner_1.DivinerWrapper);
9
7
  //# sourceMappingURL=useDiviner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDiviner.js","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":";;;AAAA,kDAAoE;AACpE,wDAA6E;AAEtE,MAAM,UAAU,GAAG,CAAC,aAAsB,EAAE,EAAE,CAAC,IAAA,sBAAS,EAAgB,aAAa,CAAC,CAAA;AAAhF,QAAA,UAAU,cAAsE;AAEhF,QAAA,iBAAiB,GAAG,IAAA,qCAAwB,EAAC,wBAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"useDiviner.js","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":";;;AAAA,kDAAqD;AACrD,wDAAkE;AAErD,QAAA,UAAU,GAAG,IAAA,qCAAwB,EAAC,wBAAc,CAAC,CAAA"}
package/dist/docs.json CHANGED
@@ -14,10 +14,10 @@
14
14
  "flags": {},
15
15
  "sources": [
16
16
  {
17
- "fileName": "packages/modules/packages/diviner/src/hooks/useDiviner.tsx",
17
+ "fileName": "diviner/src/hooks/useDiviner.tsx",
18
18
  "line": 4,
19
19
  "character": 13,
20
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/3f15245d6e5/packages/modules/packages/diviner/src/hooks/useDiviner.tsx#L4"
20
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/46c7a9f244d/packages/modules/packages/diviner/src/hooks/useDiviner.tsx#L4"
21
21
  }
22
22
  ],
23
23
  "signatures": [
@@ -40,153 +40,9 @@
40
40
  "type": "intrinsic",
41
41
  "name": "string"
42
42
  }
43
- }
44
- ],
45
- "type": {
46
- "type": "tuple",
47
- "elements": [
48
- {
49
- "type": "union",
50
- "types": [
51
- {
52
- "type": "intrinsic",
53
- "name": "undefined"
54
- },
55
- {
56
- "type": "reference",
57
- "typeArguments": [
58
- {
59
- "type": "intersection",
60
- "types": [
61
- {
62
- "type": "reference",
63
- "name": "SchemaFields",
64
- "qualifiedName": "SchemaFields",
65
- "package": "@xyo-network/payload-model"
66
- },
67
- {
68
- "type": "reference",
69
- "name": "PayloadFields",
70
- "qualifiedName": "PayloadFields",
71
- "package": "@xyo-network/payload-model"
72
- },
73
- {
74
- "type": "reflection",
75
- "declaration": {
76
- "id": 4,
77
- "name": "__type",
78
- "kind": 65536,
79
- "kindString": "Type literal",
80
- "flags": {},
81
- "sources": [
82
- {
83
- "fileName": "node_modules/@xyo-network/module-model/dist/types/Config.d.ts",
84
- "line": 8,
85
- "character": 75
86
- }
87
- ]
88
- }
89
- },
90
- {
91
- "type": "reflection",
92
- "declaration": {
93
- "id": 5,
94
- "name": "__type",
95
- "kind": 65536,
96
- "kindString": "Type literal",
97
- "flags": {},
98
- "sources": [
99
- {
100
- "fileName": "node_modules/@xyo-network/diviner-model/dist/types/Config.d.ts",
101
- "line": 5,
102
- "character": 123
103
- }
104
- ]
105
- }
106
- },
107
- {
108
- "type": "reflection",
109
- "declaration": {
110
- "id": 6,
111
- "name": "__type",
112
- "kind": 65536,
113
- "kindString": "Type literal",
114
- "flags": {},
115
- "sources": [
116
- {
117
- "fileName": "node_modules/@xyo-network/payload-model/dist/types/XyoPayload.d.ts",
118
- "line": 18,
119
- "character": 17
120
- }
121
- ]
122
- }
123
- }
124
- ]
125
- }
126
- ],
127
- "name": "DivinerModule",
128
- "qualifiedName": "DivinerModule",
129
- "package": "@xyo-network/diviner-model"
130
- }
131
- ]
132
- },
133
- {
134
- "type": "union",
135
- "types": [
136
- {
137
- "type": "intrinsic",
138
- "name": "undefined"
139
- },
140
- {
141
- "type": "reference",
142
- "name": "Error",
143
- "qualifiedName": "Error",
144
- "package": "typescript"
145
- }
146
- ]
147
- }
148
- ]
149
- }
150
- }
151
- ]
152
- },
153
- {
154
- "id": 7,
155
- "name": "useWrappedDiviner",
156
- "kind": 64,
157
- "kindString": "Function",
158
- "flags": {},
159
- "sources": [
160
- {
161
- "fileName": "packages/modules/packages/diviner/src/hooks/useDiviner.tsx",
162
- "line": 6,
163
- "character": 13,
164
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/3f15245d6e5/packages/modules/packages/diviner/src/hooks/useDiviner.tsx#L6"
165
- }
166
- ],
167
- "signatures": [
168
- {
169
- "id": 8,
170
- "name": "useWrappedDiviner",
171
- "kind": 4096,
172
- "kindString": "Call signature",
173
- "flags": {},
174
- "parameters": [
175
- {
176
- "id": 9,
177
- "name": "nameOrAddress",
178
- "kind": 32768,
179
- "kindString": "Parameter",
180
- "flags": {
181
- "isOptional": true
182
- },
183
- "type": {
184
- "type": "intrinsic",
185
- "name": "string"
186
- }
187
43
  },
188
44
  {
189
- "id": 10,
45
+ "id": 4,
190
46
  "name": "account",
191
47
  "kind": 32768,
192
48
  "kindString": "Parameter",
@@ -244,17 +100,16 @@
244
100
  {
245
101
  "title": "Functions",
246
102
  "children": [
247
- 1,
248
- 7
103
+ 1
249
104
  ]
250
105
  }
251
106
  ],
252
107
  "sources": [
253
108
  {
254
- "fileName": "packages/modules/packages/diviner/src/index.ts",
109
+ "fileName": "diviner/src/index.ts",
255
110
  "line": 1,
256
111
  "character": 0,
257
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/3f15245d6e5/packages/modules/packages/diviner/src/index.ts#L1"
112
+ "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/46c7a9f244d/packages/modules/packages/diviner/src/index.ts#L1"
258
113
  }
259
114
  ]
260
115
  }
@@ -1,5 +1,4 @@
1
1
  import { DivinerWrapper } from '@xyo-network/diviner';
2
- import { useModule, WrappedModuleHookFactory } from '@xyo-network/react-node';
3
- export const useDiviner = (nameOrAddress) => useModule(nameOrAddress);
4
- export const useWrappedDiviner = WrappedModuleHookFactory(DivinerWrapper);
2
+ import { WrappedModuleHookFactory } from '@xyo-network/react-node';
3
+ export const useDiviner = WrappedModuleHookFactory(DivinerWrapper);
5
4
  //# sourceMappingURL=useDiviner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDiviner.js","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAE7E,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,aAAsB,EAAE,EAAE,CAAC,SAAS,CAAgB,aAAa,CAAC,CAAA;AAE7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"useDiviner.js","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAwB,CAAC,cAAc,CAAC,CAAA"}
@@ -1,16 +1,3 @@
1
- import { DivinerModule, DivinerWrapper } from '@xyo-network/diviner';
2
- export declare const useDiviner: (nameOrAddress?: string) => [DivinerModule<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
- name?: string | undefined;
4
- security?: {
5
- allowAnonymous?: boolean | undefined;
6
- allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
7
- disallowed?: Record<string, string[]> | undefined;
8
- } | undefined;
9
- storeQueries?: boolean | undefined;
10
- } & {
11
- targetSchema?: string | undefined;
12
- } & {
13
- schema: string;
14
- }> | undefined, Error | undefined];
15
- export declare const useWrappedDiviner: (nameOrAddress?: string | undefined, account?: import("@xyo-network/account-model").AccountInstance | undefined) => [DivinerWrapper | undefined, Error | undefined];
1
+ import { DivinerWrapper } from '@xyo-network/diviner';
2
+ export declare const useDiviner: (nameOrAddress?: string | undefined, account?: import("@xyo-network/account-model").AccountInstance | undefined) => [DivinerWrapper | undefined, Error | undefined];
16
3
  //# sourceMappingURL=useDiviner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDiviner.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGpE,eAAO,MAAM,UAAU,mBAAoB,MAAM;;;;;;;;;;;;kCAA4C,CAAA;AAE7F,eAAO,MAAM,iBAAiB,qKAA2C,CAAA"}
1
+ {"version":3,"file":"useDiviner.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAGrD,eAAO,MAAM,UAAU,qKAA2C,CAAA"}
package/package.json CHANGED
@@ -10,14 +10,8 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-button": "^2.16.8",
14
- "@xylabs/react-flexbox": "^2.16.8",
15
- "@xylabs/react-shared": "^2.16.8",
16
- "@xyo-network/node": "^2.51.2",
17
- "@xyo-network/react-module": "^2.45.0-rc.17",
18
- "@xyo-network/react-node": "^2.45.0-rc.17",
19
- "@xyo-network/react-shared": "^2.45.0-rc.17",
20
- "lodash": "^4.17.21"
13
+ "@xyo-network/diviner": "^2.51.4",
14
+ "@xyo-network/react-node": "^2.45.0-rc.19"
21
15
  },
22
16
  "peerDependencies": {
23
17
  "@mui/icons-material": "^5",
@@ -31,16 +25,8 @@
31
25
  },
32
26
  "description": "Common React library for all XYO projects that use React",
33
27
  "devDependencies": {
34
- "@storybook/react": "^6.5.16",
35
- "@types/lodash": "^4.14.191",
36
28
  "@xylabs/ts-scripts-yarn3": "^2.16.1",
37
29
  "@xylabs/tsconfig-react": "^2.16.1",
38
- "@xyo-network/archivist": "^2.51.2",
39
- "@xyo-network/archivist-wrapper": "^2.51.2",
40
- "@xyo-network/module": "^2.51.2",
41
- "@xyo-network/payload-model": "^2.51.2",
42
- "@xyo-network/react-storybook": "^2.45.0-rc.17",
43
- "require-from-string": "^2.0.2",
44
30
  "typescript": "^4.9.5"
45
31
  },
46
32
  "browser": "dist/esm/index.js",
@@ -85,6 +71,6 @@
85
71
  },
86
72
  "sideEffects": false,
87
73
  "types": "dist/types/index.d.ts",
88
- "version": "2.45.0-rc.17",
74
+ "version": "2.45.0-rc.19",
89
75
  "stableVersion": "2.44.1"
90
76
  }
@@ -1,6 +1,4 @@
1
- import { DivinerModule, DivinerWrapper } from '@xyo-network/diviner'
2
- import { useModule, WrappedModuleHookFactory } from '@xyo-network/react-node'
1
+ import { DivinerWrapper } from '@xyo-network/diviner'
2
+ import { WrappedModuleHookFactory } from '@xyo-network/react-node'
3
3
 
4
- export const useDiviner = (nameOrAddress?: string) => useModule<DivinerModule>(nameOrAddress)
5
-
6
- export const useWrappedDiviner = WrappedModuleHookFactory(DivinerWrapper)
4
+ export const useDiviner = WrappedModuleHookFactory(DivinerWrapper)