@xyo-network/react-node-context 4.4.3 → 4.4.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,4 +1,32 @@
1
- export * from './ModuleRepository/index.ts';
2
- export * from './Node/index.ts';
3
- export * from './NodeDrawerContext/index.ts';
4
- //# sourceMappingURL=index.d.ts.map
1
+ import * as react from 'react';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ import * as _xyo_network_react_shared from '@xyo-network/react-shared';
4
+ import { ContextExState } from '@xyo-network/react-shared';
5
+ import { ModuleResolver } from '@xyo-network/module-model';
6
+ import { NodeInstance } from '@xyo-network/node-model';
7
+
8
+ interface ResolverEntries {
9
+ [name: string]: ModuleResolver;
10
+ }
11
+ interface ModuleRepositoryContextState extends ContextExState {
12
+ removeResolvers?: (names?: string[]) => boolean;
13
+ resolvers?: ResolverEntries;
14
+ updateResolvers?: (resolvers: ResolverEntries) => boolean;
15
+ }
16
+
17
+ declare const ModuleRepositoryContext: react.Context<ModuleRepositoryContextState & _xyo_network_react_shared.ContextExState>;
18
+
19
+ interface NodeContextState {
20
+ node?: NodeInstance | null;
21
+ }
22
+
23
+ declare const NodeContext: react.Context<NodeContextState & _xyo_network_react_shared.ContextExState>;
24
+
25
+ interface NodeDrawerState extends ContextExState {
26
+ open?: boolean;
27
+ setOpen?: Dispatch<SetStateAction<boolean>>;
28
+ }
29
+
30
+ declare const NodeDrawerContext: react.Context<NodeDrawerState & _xyo_network_react_shared.ContextExState>;
31
+
32
+ export { ModuleRepositoryContext, type ModuleRepositoryContextState, NodeContext, type NodeContextState, NodeDrawerContext, type NodeDrawerState, type ResolverEntries };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-node-context",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -45,11 +45,11 @@
45
45
  "dependencies": {
46
46
  "@xyo-network/module-model": "^3.9.2",
47
47
  "@xyo-network/node-model": "^3.9.2",
48
- "@xyo-network/react-shared": "^4.4.3"
48
+ "@xyo-network/react-shared": "^4.4.4"
49
49
  },
50
50
  "devDependencies": {
51
- "@xylabs/ts-scripts-yarn3": "^4.2.6",
52
- "@xylabs/tsconfig-react": "^4.2.6",
51
+ "@xylabs/ts-scripts-yarn3": "^5.0.24",
52
+ "@xylabs/tsconfig-react": "^5.0.24",
53
53
  "typescript": "^5.7.3"
54
54
  },
55
55
  "peerDependencies": {
@@ -1,3 +0,0 @@
1
- import type { ModuleRepositoryContextState } from './State.ts';
2
- export declare const ModuleRepositoryContext: import("react").Context<ModuleRepositoryContextState & import("@xyo-network/react-shared").ContextExState>;
3
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/ModuleRepository/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAA;AAE9D,eAAO,MAAM,uBAAuB,4GAAkD,CAAA"}
@@ -1,11 +0,0 @@
1
- import type { ModuleResolver } from '@xyo-network/module-model';
2
- import type { ContextExState } from '@xyo-network/react-shared';
3
- export interface ResolverEntries {
4
- [name: string]: ModuleResolver;
5
- }
6
- export interface ModuleRepositoryContextState extends ContextExState {
7
- removeResolvers?: (names?: string[]) => boolean;
8
- resolvers?: ResolverEntries;
9
- updateResolvers?: (resolvers: ResolverEntries) => boolean;
10
- }
11
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/ModuleRepository/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,WAAW,eAAe;IAC9B,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;CAC/B;AAED,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAClE,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,CAAA;IAC/C,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,OAAO,CAAA;CAC1D"}
@@ -1,3 +0,0 @@
1
- export * from './Context.ts';
2
- export * from './State.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ModuleRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { NodeContextState } from './State.ts';
2
- export declare const NodeContext: import("react").Context<NodeContextState & import("@xyo-network/react-shared").ContextExState>;
3
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/Node/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,eAAO,MAAM,WAAW,gGAAsC,CAAA"}
@@ -1,5 +0,0 @@
1
- import type { NodeInstance } from '@xyo-network/node-model';
2
- export interface NodeContextState {
3
- node?: NodeInstance | null;
4
- }
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/Node/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;CAC3B"}
@@ -1,3 +0,0 @@
1
- export * from './Context.ts';
2
- export * from './State.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Node/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { NodeDrawerState } from './State.ts';
2
- export declare const NodeDrawerContext: import("react").Context<NodeDrawerState & import("@xyo-network/react-shared").ContextExState>;
3
- //# sourceMappingURL=Context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/NodeDrawerContext/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD,eAAO,MAAM,iBAAiB,+FAAqC,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { ContextExState } from '@xyo-network/react-shared';
2
- import type { Dispatch, SetStateAction } from 'react';
3
- export interface NodeDrawerState extends ContextExState {
4
- open?: boolean;
5
- setOpen?: Dispatch<SetStateAction<boolean>>;
6
- }
7
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/NodeDrawerContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;CAC5C"}
@@ -1,3 +0,0 @@
1
- export * from './Context.ts';
2
- export * from './State.ts';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/NodeDrawerContext/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,8BAA8B,CAAA"}