@xyo-network/react-network 4.4.4 → 4.4.6

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.
@@ -6,7 +6,6 @@ import { ContextExState } from '@xyo-network/react-shared';
6
6
  import * as _xyo_network_network from '@xyo-network/network';
7
7
  import { NetworkPayload, NetworkNodePayload } from '@xyo-network/network';
8
8
  import { Hash } from '@xylabs/hex';
9
- import * as _xylabs_object from '@xylabs/object';
10
9
 
11
10
  type NetworkSelectExProps = Omit<SelectExProps<string>, 'variant'> & Partial<SelectExProps<string>> & {
12
11
  responsive?: boolean;
@@ -33,90 +32,17 @@ declare const findArchivistPreset: (slug: string) => ArchivistPreset;
33
32
  declare const archivistPresets: ArchivistPreset[];
34
33
 
35
34
  declare const defaultNetworkConfigs: NetworkPayload[];
36
- declare const networkPresets: _xylabs_object.DeepRestrictToStringKeys<{
37
- schema: "network.xyo.network";
38
- name?: string | undefined;
39
- nodes?: {
40
- schema: "network.xyo.network.node";
41
- docs?: string | undefined;
42
- name?: string | undefined;
43
- slug: string;
44
- type: _xyo_network_network.NetworkNodeType;
45
- uri: string;
46
- web?: string | undefined;
47
- }[] | undefined;
48
- slug: string;
49
- }>[];
35
+ declare const networkPresets: NetworkPayload[];
50
36
 
51
- declare const findNetworkConfig: (slug: string, configs?: _xylabs_object.DeepRestrictToStringKeys<{
52
- schema: "network.xyo.network";
53
- name?: string | undefined;
54
- nodes?: {
55
- schema: "network.xyo.network.node";
56
- docs?: string | undefined;
57
- name?: string | undefined;
58
- slug: string;
59
- type: _xyo_network_network.NetworkNodeType;
60
- uri: string;
61
- web?: string | undefined;
62
- }[] | undefined;
63
- slug: string;
64
- }>[]) => _xylabs_object.DeepRestrictToStringKeys<{
65
- schema: "network.xyo.network";
66
- name?: string | undefined;
67
- nodes?: {
68
- schema: "network.xyo.network.node";
69
- docs?: string | undefined;
70
- name?: string | undefined;
71
- slug: string;
72
- type: _xyo_network_network.NetworkNodeType;
73
- uri: string;
74
- web?: string | undefined;
75
- }[] | undefined;
76
- slug: string;
77
- }> | undefined;
78
- declare const findNetworkPreset: (slug: string, configs?: _xylabs_object.DeepRestrictToStringKeys<{
79
- schema: "network.xyo.network";
80
- name?: string | undefined;
81
- nodes?: {
82
- schema: "network.xyo.network.node";
83
- docs?: string | undefined;
84
- name?: string | undefined;
85
- slug: string;
86
- type: _xyo_network_network.NetworkNodeType;
87
- uri: string;
88
- web?: string | undefined;
89
- }[] | undefined;
90
- slug: string;
91
- }>[]) => _xylabs_object.DeepRestrictToStringKeys<{
92
- schema: "network.xyo.network";
93
- name?: string | undefined;
94
- nodes?: {
95
- schema: "network.xyo.network.node";
96
- docs?: string | undefined;
97
- name?: string | undefined;
98
- slug: string;
99
- type: _xyo_network_network.NetworkNodeType;
100
- uri: string;
101
- web?: string | undefined;
102
- }[] | undefined;
103
- slug: string;
104
- }> | undefined;
37
+ declare const findNetworkConfig: (slug: string, configs?: _xyo_network_network.NetworkPayload[]) => _xyo_network_network.NetworkPayload | undefined;
38
+ declare const findNetworkPreset: (slug: string, configs?: _xyo_network_network.NetworkPayload[]) => _xyo_network_network.NetworkPayload | undefined;
105
39
 
106
40
  type NetworkNames = 'Kerplunk' | 'Main' | 'Local' | 'Custom';
107
41
 
108
42
  type SiteName = 'explore' | 'node';
109
43
  declare const resolveNetworkFromHostName: (fallback: NetworkNames | undefined, siteName: SiteName) => NetworkNames;
110
44
 
111
- declare const findDivinerPreset: (slug: string) => _xylabs_object.DeepRestrictToStringKeys<{
112
- schema: "network.xyo.network.node";
113
- docs?: string | undefined;
114
- name?: string | undefined;
115
- slug: string;
116
- type: _xyo_network_network.NetworkNodeType;
117
- uri: string;
118
- web?: string | undefined;
119
- }>;
45
+ declare const findDivinerPreset: (slug: string) => NetworkNodePayload;
120
46
  declare const divinerPresets: NetworkNodePayload[];
121
47
 
122
48
  interface NetworkProviderProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-network",
3
- "version": "4.4.4",
3
+ "version": "4.4.6",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -47,21 +47,21 @@
47
47
  "@xylabs/hex": "^4.5.1",
48
48
  "@xylabs/react-select": "^5.3.23",
49
49
  "@xylabs/react-shared": "^5.3.23",
50
- "@xyo-network/network": "^3.9.2",
51
- "@xyo-network/react-shared": "^4.4.4",
52
- "react-router-dom": "^7.1.5"
50
+ "@xyo-network/network": "^3.9.17",
51
+ "@xyo-network/react-shared": "^4.4.6",
52
+ "react-router-dom": "^7.2.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@mui/icons-material": "^6.4.4",
56
- "@mui/material": "^6.4.4",
57
- "@mui/styles": "^6.4.4",
58
- "@storybook/react": "^8.5.5",
55
+ "@mui/icons-material": "^6.4.5",
56
+ "@mui/material": "^6.4.5",
57
+ "@mui/styles": "^6.4.5",
58
+ "@storybook/react": "^8.6.0",
59
59
  "@xylabs/react-flexbox": "^5.3.23",
60
- "@xylabs/ts-scripts-yarn3": "^5.0.24",
61
- "@xylabs/tsconfig-react": "^5.0.24",
60
+ "@xylabs/ts-scripts-yarn3": "^5.0.25",
61
+ "@xylabs/tsconfig-react": "^5.0.25",
62
62
  "react": "^18.3.1",
63
63
  "react-dom": "^18.3.1",
64
- "storybook": "^8.5.5",
64
+ "storybook": "^8.6.0",
65
65
  "typescript": "^5.7.3"
66
66
  },
67
67
  "peerDependencies": {