@xyo-network/react-node-context 5.2.10 → 5.3.1

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,13 +1,13 @@
1
1
  // src/ModuleRepository/Context.ts
2
- import { createContextEx } from "@xyo-network/react-shared";
2
+ import { createContextEx } from "@xylabs/react-shared";
3
3
  var ModuleRepositoryContext = createContextEx();
4
4
 
5
5
  // src/Node/Context.ts
6
- import { createContextEx as createContextEx2 } from "@xyo-network/react-shared";
6
+ import { createContextEx as createContextEx2 } from "@xylabs/react-shared";
7
7
  var NodeContext = createContextEx2();
8
8
 
9
9
  // src/NodeDrawerContext/Context.ts
10
- import { createContextEx as createContextEx3 } from "@xyo-network/react-shared";
10
+ import { createContextEx as createContextEx3 } from "@xylabs/react-shared";
11
11
  var NodeDrawerContext = createContextEx3();
12
12
  export {
13
13
  ModuleRepositoryContext,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/ModuleRepository/Context.ts","../../src/Node/Context.ts","../../src/NodeDrawerContext/Context.ts"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport type { ModuleRepositoryContextState } from './State.ts'\n\nexport const ModuleRepositoryContext = createContextEx<ModuleRepositoryContextState>()\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport type { NodeContextState } from './State.ts'\n\nexport const NodeContext = createContextEx<NodeContextState>()\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport type { NodeDrawerState } from './State.ts'\n\nexport const NodeDrawerContext = createContextEx<NodeDrawerState>()\n"],"mappings":";AAAA,SAASA,uBAAuB;AAIzB,IAAMC,0BAA0BD,gBAAAA;;;ACJvC,SAASE,mBAAAA,wBAAuB;AAIzB,IAAMC,cAAcD,iBAAAA;;;ACJ3B,SAASE,mBAAAA,wBAAuB;AAIzB,IAAMC,oBAAoBD,iBAAAA;","names":["createContextEx","ModuleRepositoryContext","createContextEx","NodeContext","createContextEx","NodeDrawerContext"]}
1
+ {"version":3,"sources":["../../src/ModuleRepository/Context.ts","../../src/Node/Context.ts","../../src/NodeDrawerContext/Context.ts"],"sourcesContent":["import { createContextEx } from '@xylabs/react-shared'\n\nimport type { ModuleRepositoryContextState } from './State.ts'\n\nexport const ModuleRepositoryContext = createContextEx<ModuleRepositoryContextState>()\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { NodeContextState } from './State.ts'\n\nexport const NodeContext = createContextEx<NodeContextState>()\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { NodeDrawerState } from './State.ts'\n\nexport const NodeDrawerContext = createContextEx<NodeDrawerState>()\n"],"mappings":";AAAA,SAASA,uBAAuB;AAIzB,IAAMC,0BAA0BD,gBAAAA;;;ACJvC,SAASE,mBAAAA,wBAAuB;AAIzB,IAAMC,cAAcD,iBAAAA;;;ACJ3B,SAASE,mBAAAA,wBAAuB;AAIzB,IAAMC,oBAAoBD,iBAAAA;","names":["createContextEx","ModuleRepositoryContext","createContextEx","NodeContext","createContextEx","NodeDrawerContext"]}
@@ -1,3 +1,8 @@
1
- import type { ModuleRepositoryContextState } from './State.ts';
2
- export declare const ModuleRepositoryContext: import("react").Context<ModuleRepositoryContextState & import("@xyo-network/react-shared").ContextExState>;
1
+ export declare const ModuleRepositoryContext: import("react").Context<{
2
+ removeResolvers?: (names?: string[]) => boolean;
3
+ resolvers?: import("./State.ts").ResolverEntries;
4
+ updateResolvers?: (resolvers: import("./State.ts").ResolverEntries) => boolean;
5
+ } & {
6
+ provided: true;
7
+ }>;
3
8
  //# sourceMappingURL=Context.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/ModuleRepository/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB;4BACsC,CAAC;;;;;EADW,CAAA"}
@@ -1,11 +1,11 @@
1
+ import type { ContextExState } from '@xylabs/react-shared';
1
2
  import type { ModuleResolver } from '@xyo-network/module-model';
2
- import type { ContextExState } from '@xyo-network/react-shared';
3
3
  export interface ResolverEntries {
4
4
  [name: string]: ModuleResolver;
5
5
  }
6
- export interface ModuleRepositoryContextState extends ContextExState {
6
+ export type ModuleRepositoryContextState = ContextExState<{
7
7
  removeResolvers?: (names?: string[]) => boolean;
8
8
  resolvers?: ResolverEntries;
9
9
  updateResolvers?: (resolvers: ResolverEntries) => boolean;
10
- }
10
+ }>;
11
11
  //# sourceMappingURL=State.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/ModuleRepository/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,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,MAAM,4BAA4B,GAAG,cAAc,CAAC;IACxD,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,CAAC,CAAA"}
@@ -1,3 +1,6 @@
1
- import type { NodeContextState } from './State.ts';
2
- export declare const NodeContext: import("react").Context<NodeContextState & import("@xyo-network/react-shared").ContextExState>;
1
+ export declare const NodeContext: import("react").Context<{
2
+ node?: import("@xyo-network/node-model").NodeInstance | null;
3
+ } & {
4
+ provided: true;
5
+ }>;
3
6
  //# sourceMappingURL=Context.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/Node/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;EAAsC,CAAA"}
@@ -1,5 +1,6 @@
1
+ import type { ContextExState } from '@xylabs/react-shared';
1
2
  import type { NodeInstance } from '@xyo-network/node-model';
2
- export interface NodeContextState {
3
+ export type NodeContextState = ContextExState<{
3
4
  node?: NodeInstance | null;
4
- }
5
+ }>;
5
6
  //# sourceMappingURL=State.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/Node/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;IAC5C,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI,CAAA;CAC3B,CAAC,CAAA"}
@@ -1,3 +1,7 @@
1
- import type { NodeDrawerState } from './State.ts';
2
- export declare const NodeDrawerContext: import("react").Context<NodeDrawerState & import("@xyo-network/react-shared").ContextExState>;
1
+ export declare const NodeDrawerContext: import("react").Context<{
2
+ open?: boolean;
3
+ setOpen?: import("react").Dispatch<import("react").SetStateAction<boolean>>;
4
+ } & {
5
+ provided: true;
6
+ }>;
3
7
  //# sourceMappingURL=Context.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/NodeDrawerContext/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;EAAqC,CAAA"}
@@ -1,7 +1,7 @@
1
- import type { ContextExState } from '@xyo-network/react-shared';
1
+ import type { ContextExState } from '@xylabs/react-shared';
2
2
  import type { Dispatch, SetStateAction } from 'react';
3
- export interface NodeDrawerState extends ContextExState {
3
+ export type NodeDrawerState = ContextExState<{
4
4
  open?: boolean;
5
5
  setOpen?: Dispatch<SetStateAction<boolean>>;
6
- }
6
+ }>;
7
7
  //# sourceMappingURL=State.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/NodeDrawerContext/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC;IAC3C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAA;CAC5C,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-node-context",
3
- "version": "5.2.10",
3
+ "version": "5.3.1",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -39,9 +39,9 @@
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/types/index.d.ts",
41
41
  "dependencies": {
42
- "@xyo-network/module-model": "^3.14.16",
43
- "@xyo-network/node-model": "^3.14.16",
44
- "@xyo-network/react-shared": "^5.2.10"
42
+ "@xylabs/react-shared": "^6.3.0",
43
+ "@xyo-network/module-model": "^3.15.5",
44
+ "@xyo-network/node-model": "^3.15.5"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@xylabs/ts-scripts-yarn3": "^6.5.5",
@@ -1,4 +1,4 @@
1
- import { createContextEx } from '@xyo-network/react-shared'
1
+ import { createContextEx } from '@xylabs/react-shared'
2
2
 
3
3
  import type { ModuleRepositoryContextState } from './State.ts'
4
4
 
@@ -1,12 +1,12 @@
1
+ import type { ContextExState } from '@xylabs/react-shared'
1
2
  import type { ModuleResolver } from '@xyo-network/module-model'
2
- import type { ContextExState } from '@xyo-network/react-shared'
3
3
 
4
4
  export interface ResolverEntries {
5
5
  [name: string]: ModuleResolver
6
6
  }
7
7
 
8
- export interface ModuleRepositoryContextState extends ContextExState {
8
+ export type ModuleRepositoryContextState = ContextExState<{
9
9
  removeResolvers?: (names?: string[]) => boolean
10
10
  resolvers?: ResolverEntries
11
11
  updateResolvers?: (resolvers: ResolverEntries) => boolean
12
- }
12
+ }>
@@ -1,4 +1,4 @@
1
- import { createContextEx } from '@xyo-network/react-shared'
1
+ import { createContextEx } from '@xylabs/react-shared'
2
2
 
3
3
  import type { NodeContextState } from './State.ts'
4
4
 
package/src/Node/State.ts CHANGED
@@ -1,4 +1,5 @@
1
+ import type { ContextExState } from '@xylabs/react-shared'
1
2
  import type { NodeInstance } from '@xyo-network/node-model'
2
- export interface NodeContextState {
3
+ export type NodeContextState = ContextExState<{
3
4
  node?: NodeInstance | null
4
- }
5
+ }>
@@ -1,4 +1,4 @@
1
- import { createContextEx } from '@xyo-network/react-shared'
1
+ import { createContextEx } from '@xylabs/react-shared'
2
2
 
3
3
  import type { NodeDrawerState } from './State.ts'
4
4
 
@@ -1,7 +1,7 @@
1
- import type { ContextExState } from '@xyo-network/react-shared'
1
+ import type { ContextExState } from '@xylabs/react-shared'
2
2
  import type { Dispatch, SetStateAction } from 'react'
3
3
 
4
- export interface NodeDrawerState extends ContextExState {
4
+ export type NodeDrawerState = ContextExState<{
5
5
  open?: boolean
6
6
  setOpen?: Dispatch<SetStateAction<boolean>>
7
- }
7
+ }>