@xyo-network/react-diviner 2.45.0-rc.6 → 2.45.0-rc.8
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/useDiviner.js +1 -1
- package/dist/cjs/hooks/useDiviner.js.map +1 -1
- package/dist/docs.json +2 -2
- package/dist/esm/hooks/useDiviner.js +1 -1
- package/dist/esm/hooks/useDiviner.js.map +1 -1
- package/dist/types/hooks/useDiviner.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/hooks/useDiviner.tsx +1 -1
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
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
|
-
exports.useDiviner = (0, react_node_1.createUseModuleHook)(diviner_1.DivinerWrapper.wrap
|
|
6
|
+
exports.useDiviner = (0, react_node_1.createUseModuleHook)((module) => diviner_1.DivinerWrapper.wrap(module), react_node_1.useNode);
|
|
7
7
|
//# sourceMappingURL=useDiviner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDiviner.js","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":";;;AAAA,kDAAoE;AACpE,wDAAsE;AAEzD,QAAA,UAAU,GAAG,IAAA,gCAAmB,EAAgC,
|
|
1
|
+
{"version":3,"file":"useDiviner.js","sourceRoot":"","sources":["../../../src/hooks/useDiviner.tsx"],"names":[],"mappings":";;;AAAA,kDAAoE;AACpE,wDAAsE;AAEzD,QAAA,UAAU,GAAG,IAAA,gCAAmB,EAAgC,CAAC,MAAM,EAAE,EAAE,CAAC,wBAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,oBAAO,CAAC,CAAA"}
|
package/dist/docs.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"fileName": "packages/modules/packages/diviner/src/hooks/useDiviner.tsx",
|
|
18
18
|
"line": 4,
|
|
19
19
|
"character": 13,
|
|
20
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
20
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8d2961fef77/packages/modules/packages/diviner/src/hooks/useDiviner.tsx#L4"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"signatures": [
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
"fileName": "packages/modules/packages/diviner/src/index.ts",
|
|
519
519
|
"line": 1,
|
|
520
520
|
"character": 0,
|
|
521
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
521
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/8d2961fef77/packages/modules/packages/diviner/src/index.ts#L1"
|
|
522
522
|
}
|
|
523
523
|
]
|
|
524
524
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DivinerWrapper } from '@xyo-network/diviner';
|
|
2
2
|
import { createUseModuleHook, useNode } from '@xyo-network/react-node';
|
|
3
|
-
export const useDiviner = createUseModuleHook(DivinerWrapper.wrap
|
|
3
|
+
export const useDiviner = createUseModuleHook((module) => DivinerWrapper.wrap(module), useNode);
|
|
4
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,mBAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEtE,MAAM,CAAC,MAAM,UAAU,GAAG,mBAAmB,CAAgC,
|
|
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,mBAAmB,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEtE,MAAM,CAAC,MAAM,UAAU,GAAG,mBAAmB,CAAgC,CAAC,MAAM,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAA"}
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAuG,CAAA"}
|
package/package.json
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"@xylabs/react-flexbox": "^2.16.8",
|
|
15
15
|
"@xylabs/react-shared": "^2.16.8",
|
|
16
16
|
"@xyo-network/node": "^2.51.1",
|
|
17
|
-
"@xyo-network/react-module": "^2.45.0-rc.
|
|
18
|
-
"@xyo-network/react-node": "^2.45.0-rc.
|
|
19
|
-
"@xyo-network/react-shared": "^2.45.0-rc.
|
|
17
|
+
"@xyo-network/react-module": "^2.45.0-rc.8",
|
|
18
|
+
"@xyo-network/react-node": "^2.45.0-rc.8",
|
|
19
|
+
"@xyo-network/react-shared": "^2.45.0-rc.8",
|
|
20
20
|
"lodash": "^4.17.21"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@xyo-network/archivist-wrapper": "^2.51.1",
|
|
40
40
|
"@xyo-network/module": "^2.51.1",
|
|
41
41
|
"@xyo-network/payload-model": "^2.51.1",
|
|
42
|
-
"@xyo-network/react-storybook": "^2.45.0-rc.
|
|
42
|
+
"@xyo-network/react-storybook": "^2.45.0-rc.8",
|
|
43
43
|
"require-from-string": "^2.0.2",
|
|
44
44
|
"typescript": "^4.9.5"
|
|
45
45
|
},
|
|
@@ -85,6 +85,6 @@
|
|
|
85
85
|
},
|
|
86
86
|
"sideEffects": false,
|
|
87
87
|
"types": "dist/types/index.d.ts",
|
|
88
|
-
"version": "2.45.0-rc.
|
|
88
|
+
"version": "2.45.0-rc.8",
|
|
89
89
|
"stableVersion": "2.44.1"
|
|
90
90
|
}
|
package/src/hooks/useDiviner.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DivinerModule, DivinerWrapper } from '@xyo-network/diviner'
|
|
2
2
|
import { createUseModuleHook, useNode } from '@xyo-network/react-node'
|
|
3
3
|
|
|
4
|
-
export const useDiviner = createUseModuleHook<DivinerModule, DivinerWrapper>(DivinerWrapper.wrap
|
|
4
|
+
export const useDiviner = createUseModuleHook<DivinerModule, DivinerWrapper>((module) => DivinerWrapper.wrap(module), useNode)
|