@xyo-network/react-diviner 3.0.2 → 3.0.3

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.
@@ -0,0 +1,2 @@
1
+ export * from './node/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './useDivinerFromNode.tsx';
2
+ export * from './useDivinersFromNode.tsx';
3
+ export * from './useWeakDivinerFromNode.tsx';
4
+ export * from './useWeakDivinersFromNode.tsx';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { DivinerInstance } from '@xyo-network/diviner-model';
2
+ import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
3
+ export declare const useDivinerFromNode: (nameOrAddressOrInstance?: string | DivinerInstance, config?: ModuleFromNodeConfig) => [DivinerInstance | undefined, Error | undefined];
4
+ //# sourceMappingURL=useDivinerFromNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDivinerFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useDivinerFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAInE,eAAO,MAAM,kBAAkB,6BACH,MAAM,GAAG,eAAe,WACzC,oBAAoB,KAC5B,CAAC,eAAe,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CASjD,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { DivinerInstance } from '@xyo-network/diviner-model';
2
+ import type { ModuleFilter } from '@xyo-network/module-model';
3
+ import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
4
+ export declare const useDivinersFromNode: (filter?: ModuleFilter, config?: ModuleFromNodeConfig) => [DivinerInstance[] | null | undefined, Error | undefined];
5
+ //# sourceMappingURL=useDivinersFromNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDivinersFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useDivinersFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAInE,eAAO,MAAM,mBAAmB,YACrB,YAAY,WACZ,oBAAoB,KAC5B,CAAC,eAAe,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAiB1D,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { DivinerInstance } from '@xyo-network/diviner-model';
2
+ import type { WeakModuleFromNodeConfig } from '@xyo-network/react-node';
3
+ export declare const useWeakDivinerFromNode: (nameOrAddressOrInstance?: string | DivinerInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<DivinerInstance> | undefined, Error | undefined];
4
+ //# sourceMappingURL=useWeakDivinerFromNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWeakDivinerFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWeakDivinerFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAGvE,eAAO,MAAM,sBAAsB,6BACP,MAAM,GAAG,eAAe,WACzC,wBAAwB,KAChC,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAE1D,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { DivinerInstance } from '@xyo-network/diviner-model';
2
+ import type { ModuleFilter } from '@xyo-network/module-model';
3
+ import type { ModuleFromNodeConfig } from '@xyo-network/react-node';
4
+ export declare const useWeakDivinersFromNode: (filter?: ModuleFilter, config?: ModuleFromNodeConfig) => [WeakRef<DivinerInstance>[] | null | undefined, Error | undefined];
5
+ //# sourceMappingURL=useWeakDivinersFromNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWeakDivinersFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWeakDivinersFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAGnE,eAAO,MAAM,uBAAuB,YACzB,YAAY,WACZ,oBAAoB,KAC5B,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAgBnE,CAAA"}
@@ -1,13 +1,2 @@
1
- import { DivinerInstance } from '@xyo-network/diviner-model';
2
- import { ModuleFromNodeConfig, WeakModuleFromNodeConfig } from '@xyo-network/react-node';
3
- import { ModuleFilter } from '@xyo-network/module-model';
4
-
5
- declare const useDivinerFromNode: (nameOrAddressOrInstance?: string | DivinerInstance, config?: ModuleFromNodeConfig) => [DivinerInstance | undefined, Error | undefined];
6
-
7
- declare const useDivinersFromNode: (filter?: ModuleFilter, config?: ModuleFromNodeConfig) => [DivinerInstance[] | null | undefined, Error | undefined];
8
-
9
- declare const useWeakDivinerFromNode: (nameOrAddressOrInstance?: string | DivinerInstance, config?: WeakModuleFromNodeConfig) => [WeakRef<DivinerInstance> | undefined, Error | undefined];
10
-
11
- declare const useWeakDivinersFromNode: (filter?: ModuleFilter, config?: ModuleFromNodeConfig) => [WeakRef<DivinerInstance>[] | null | undefined, Error | undefined];
12
-
13
- export { useDivinerFromNode, useDivinersFromNode, useWeakDivinerFromNode, useWeakDivinersFromNode };
1
+ export * from './hooks/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,34 +1,30 @@
1
1
  {
2
2
  "name": "@xyo-network/react-diviner",
3
- "author": {
4
- "email": "support@xyo.network",
5
- "name": "XYO Development Team",
6
- "url": "https://xyo.network"
7
- },
3
+ "version": "3.0.3",
4
+ "description": "Common React library for all XYO projects that use React",
5
+ "keywords": [
6
+ "xyo",
7
+ "utility",
8
+ "typescript",
9
+ "react"
10
+ ],
11
+ "homepage": "https://xyo.network",
8
12
  "bugs": {
9
- "email": "support@xyo.network",
10
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
- },
12
- "dependencies": {
13
- "@xylabs/exists": "^4.0.2",
14
- "@xyo-network/diviner-model": "^3.0.3",
15
- "@xyo-network/module-model": "^3.0.3",
16
- "@xyo-network/react-node": "^3.0.2"
13
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues",
14
+ "email": "support@xyo.network"
17
15
  },
18
- "peerDependencies": {
19
- "@mui/icons-material": "^5",
20
- "@mui/material": "^5",
21
- "@mui/styles": "^5",
22
- "react": "^18",
23
- "react-dom": "^18"
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
24
19
  },
25
- "description": "Common React library for all XYO projects that use React",
26
- "devDependencies": {
27
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
28
- "@xylabs/tsconfig-react": "^4.0.0-rc.20",
29
- "typescript": "^5.5.4"
20
+ "license": "LGPL-3.0-only",
21
+ "author": {
22
+ "name": "XYO Development Team",
23
+ "email": "support@xyo.network",
24
+ "url": "https://xyo.network"
30
25
  },
31
- "docs": "dist/docs.json",
26
+ "sideEffects": false,
27
+ "type": "module",
32
28
  "exports": {
33
29
  ".": {
34
30
  "import": {
@@ -41,27 +37,31 @@
41
37
  "./package.json": "./package.json"
42
38
  },
43
39
  "module": "dist/browser/index.mjs",
44
- "homepage": "https://xyo.network",
45
- "keywords": [
46
- "xyo",
47
- "utility",
48
- "typescript",
49
- "react"
50
- ],
51
- "license": "LGPL-3.0-only",
52
- "publishConfig": {
53
- "access": "public"
40
+ "types": "dist/browser/index.d.ts",
41
+ "scripts": {
42
+ "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\"",
43
+ "lint-pkg": "npmPkgJsonLint ."
54
44
  },
55
- "repository": {
56
- "type": "git",
57
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-react-js.git"
45
+ "dependencies": {
46
+ "@xylabs/exists": "^4.0.5",
47
+ "@xyo-network/diviner-model": "^3.0.15",
48
+ "@xyo-network/module-model": "^3.0.15",
49
+ "@xyo-network/react-node": "^3.0.3"
58
50
  },
59
- "scripts": {
60
- "lint-pkg": "npmPkgJsonLint .",
61
- "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\""
51
+ "devDependencies": {
52
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
53
+ "@xylabs/tsconfig-react": "^4.0.7",
54
+ "typescript": "^5.5.4"
62
55
  },
63
- "sideEffects": false,
64
- "types": "dist/browser/index.d.ts",
65
- "version": "3.0.2",
66
- "type": "module"
56
+ "peerDependencies": {
57
+ "@mui/icons-material": "^5",
58
+ "@mui/material": "^5",
59
+ "@mui/styles": "^5",
60
+ "react": "^18",
61
+ "react-dom": "^18"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "docs": "dist/docs.json"
67
67
  }
package/xy.config.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
- browser: {
5
- src: true,
6
- },
4
+ browser: { src: true },
7
5
  node: {},
8
6
  neutral: {},
9
7
  },