@xyo-network/react-network 5.3.2 → 5.3.4

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,8 +1,20 @@
1
- export declare const NetworkContext: import("react").Context<{
1
+ export declare const NetworkContext: import("react").Context<({
2
2
  network?: import("@xyo-network/network").NetworkPayload;
3
3
  networks?: import("@xyo-network/network").NetworkPayload[];
4
4
  setNetwork?: import("react").Dispatch<import("@xyo-network/network").NetworkPayload>;
5
5
  } & {
6
6
  provided: true;
7
- }>;
7
+ }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").ProvidedContextExState<{
8
+ network?: import("@xyo-network/network").NetworkPayload;
9
+ networks?: import("@xyo-network/network").NetworkPayload[];
10
+ setNetwork?: import("react").Dispatch<import("@xyo-network/network").NetworkPayload>;
11
+ }>, never> & {
12
+ provided: false;
13
+ }) | (import("@xylabs/react-shared").FixedValues<import("@xylabs/react-shared").NotProvidedContextExState<{
14
+ network?: import("@xyo-network/network").NetworkPayload;
15
+ networks?: import("@xyo-network/network").NetworkPayload[];
16
+ setNetwork?: import("react").Dispatch<import("@xyo-network/network").NetworkPayload>;
17
+ }>, never> & {
18
+ provided: false;
19
+ })>;
8
20
  //# sourceMappingURL=Context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;EAAyC,CAAA"}
1
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;GAAyC,CAAA"}
@@ -1,8 +1,9 @@
1
+ import type { NetworkContextState } from './State.ts';
1
2
  export declare const useNetwork: (required?: boolean) => Omit<{
2
3
  network?: import("@xyo-network/network").NetworkPayload;
3
4
  networks?: import("@xyo-network/network").NetworkPayload[];
4
5
  setNetwork?: import("react").Dispatch<import("@xyo-network/network").NetworkPayload>;
5
6
  } & {
6
7
  provided: true;
7
- }, "provided"> | Omit<never, "provided">;
8
+ }, "provided"> | Omit<import("@xylabs/react-shared").NotProvidedContextExState<NetworkContextState>, "provided">;
8
9
  //# sourceMappingURL=use.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,GAAI,kBAAgB;;;;;;wCAE1C,CAAA"}
1
+ {"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,eAAO,MAAM,UAAU,GAAI,kBAAgB;;;;;;gHAE1C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-network",
3
- "version": "5.3.2",
3
+ "version": "5.3.4",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -39,11 +39,11 @@
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/types/index.d.ts",
41
41
  "dependencies": {
42
- "@xylabs/assert": "^4.9.15",
43
- "@xylabs/hex": "^4.9.15",
44
- "@xylabs/react-select": "^6.3.0",
45
- "@xylabs/react-shared": "^6.3.0",
46
- "@xyo-network/network": "^3.15.5",
42
+ "@xylabs/assert": "^4.9.18",
43
+ "@xylabs/hex": "^4.9.18",
44
+ "@xylabs/react-select": "^6.3.1",
45
+ "@xylabs/react-shared": "^6.3.1",
46
+ "@xyo-network/network": "^3.15.10",
47
47
  "react-router-dom": "^7.6.0"
48
48
  },
49
49
  "devDependencies": {
@@ -51,9 +51,9 @@
51
51
  "@mui/material": "^7.1.0",
52
52
  "@storybook/react": "^8.6.12",
53
53
  "@types/react": "^19.1.4",
54
- "@xylabs/react-flexbox": "^6.3.0",
55
- "@xylabs/ts-scripts-yarn3": "^6.5.5",
56
- "@xylabs/tsconfig-react": "^6.5.5",
54
+ "@xylabs/react-flexbox": "^6.3.1",
55
+ "@xylabs/ts-scripts-yarn3": "^6.5.6",
56
+ "@xylabs/tsconfig-react": "^6.5.6",
57
57
  "react": "^19.1.0",
58
58
  "react-dom": "^19.1.0",
59
59
  "storybook": "^8.6.12",