@xyo-network/module-model 2.98.5 → 2.99.0

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.
Files changed (87) hide show
  1. package/dist/browser/CreatableModule/CreatableModule.d.cts +8 -1
  2. package/dist/browser/CreatableModule/CreatableModule.d.cts.map +1 -1
  3. package/dist/browser/CreatableModule/CreatableModule.d.mts +8 -1
  4. package/dist/browser/CreatableModule/CreatableModule.d.mts.map +1 -1
  5. package/dist/browser/CreatableModule/CreatableModule.d.ts +8 -1
  6. package/dist/browser/CreatableModule/CreatableModule.d.ts.map +1 -1
  7. package/dist/browser/CreatableModule/CreatableModuleRegistry.d.cts +16 -4
  8. package/dist/browser/CreatableModule/CreatableModuleRegistry.d.cts.map +1 -1
  9. package/dist/browser/CreatableModule/CreatableModuleRegistry.d.mts +16 -4
  10. package/dist/browser/CreatableModule/CreatableModuleRegistry.d.mts.map +1 -1
  11. package/dist/browser/CreatableModule/CreatableModuleRegistry.d.ts +16 -4
  12. package/dist/browser/CreatableModule/CreatableModuleRegistry.d.ts.map +1 -1
  13. package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.cts +9 -13
  14. package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.cts.map +1 -1
  15. package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.mts +9 -13
  16. package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.mts.map +1 -1
  17. package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.ts +9 -13
  18. package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.ts.map +1 -1
  19. package/dist/browser/Labels/index.d.cts +1 -0
  20. package/dist/browser/Labels/index.d.cts.map +1 -1
  21. package/dist/browser/Labels/index.d.mts +1 -0
  22. package/dist/browser/Labels/index.d.mts.map +1 -1
  23. package/dist/browser/Labels/index.d.ts +1 -0
  24. package/dist/browser/Labels/index.d.ts.map +1 -1
  25. package/dist/browser/Labels/standard/View.d.cts +6 -0
  26. package/dist/browser/Labels/standard/View.d.cts.map +1 -0
  27. package/dist/browser/Labels/standard/View.d.mts +6 -0
  28. package/dist/browser/Labels/standard/View.d.mts.map +1 -0
  29. package/dist/browser/Labels/standard/View.d.ts +6 -0
  30. package/dist/browser/Labels/standard/View.d.ts.map +1 -0
  31. package/dist/browser/Labels/standard/index.d.cts +2 -0
  32. package/dist/browser/Labels/standard/index.d.cts.map +1 -0
  33. package/dist/browser/Labels/standard/index.d.mts +2 -0
  34. package/dist/browser/Labels/standard/index.d.mts.map +1 -0
  35. package/dist/browser/Labels/standard/index.d.ts +2 -0
  36. package/dist/browser/Labels/standard/index.d.ts.map +1 -0
  37. package/dist/browser/index.cjs +66 -15
  38. package/dist/browser/index.cjs.map +1 -1
  39. package/dist/browser/index.js +66 -15
  40. package/dist/browser/index.js.map +1 -1
  41. package/dist/node/CreatableModule/CreatableModule.d.cts +8 -1
  42. package/dist/node/CreatableModule/CreatableModule.d.cts.map +1 -1
  43. package/dist/node/CreatableModule/CreatableModule.d.mts +8 -1
  44. package/dist/node/CreatableModule/CreatableModule.d.mts.map +1 -1
  45. package/dist/node/CreatableModule/CreatableModule.d.ts +8 -1
  46. package/dist/node/CreatableModule/CreatableModule.d.ts.map +1 -1
  47. package/dist/node/CreatableModule/CreatableModuleRegistry.d.cts +16 -4
  48. package/dist/node/CreatableModule/CreatableModuleRegistry.d.cts.map +1 -1
  49. package/dist/node/CreatableModule/CreatableModuleRegistry.d.mts +16 -4
  50. package/dist/node/CreatableModule/CreatableModuleRegistry.d.mts.map +1 -1
  51. package/dist/node/CreatableModule/CreatableModuleRegistry.d.ts +16 -4
  52. package/dist/node/CreatableModule/CreatableModuleRegistry.d.ts.map +1 -1
  53. package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.cts +9 -13
  54. package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.cts.map +1 -1
  55. package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.mts +9 -13
  56. package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.mts.map +1 -1
  57. package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.ts +9 -13
  58. package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.ts.map +1 -1
  59. package/dist/node/Labels/index.d.cts +1 -0
  60. package/dist/node/Labels/index.d.cts.map +1 -1
  61. package/dist/node/Labels/index.d.mts +1 -0
  62. package/dist/node/Labels/index.d.mts.map +1 -1
  63. package/dist/node/Labels/index.d.ts +1 -0
  64. package/dist/node/Labels/index.d.ts.map +1 -1
  65. package/dist/node/Labels/standard/View.d.cts +6 -0
  66. package/dist/node/Labels/standard/View.d.cts.map +1 -0
  67. package/dist/node/Labels/standard/View.d.mts +6 -0
  68. package/dist/node/Labels/standard/View.d.mts.map +1 -0
  69. package/dist/node/Labels/standard/View.d.ts +6 -0
  70. package/dist/node/Labels/standard/View.d.ts.map +1 -0
  71. package/dist/node/Labels/standard/index.d.cts +2 -0
  72. package/dist/node/Labels/standard/index.d.cts.map +1 -0
  73. package/dist/node/Labels/standard/index.d.mts +2 -0
  74. package/dist/node/Labels/standard/index.d.mts.map +1 -0
  75. package/dist/node/Labels/standard/index.d.ts +2 -0
  76. package/dist/node/Labels/standard/index.d.ts.map +1 -0
  77. package/dist/node/index.cjs +70 -16
  78. package/dist/node/index.cjs.map +1 -1
  79. package/dist/node/index.js +66 -15
  80. package/dist/node/index.js.map +1 -1
  81. package/package.json +7 -7
  82. package/src/CreatableModule/CreatableModule.ts +15 -3
  83. package/src/CreatableModule/CreatableModuleRegistry.ts +49 -14
  84. package/src/CreatableModule/LabeledCreatableModuleFactory.ts +13 -2
  85. package/src/Labels/index.ts +1 -0
  86. package/src/Labels/standard/View.ts +6 -0
  87. package/src/Labels/standard/index.ts +1 -0
@@ -1,17 +1,13 @@
1
1
  import { AttachableModuleInstance } from '../instance';
2
2
  import { WithOptionalLabels } from '../Labels';
3
3
  import { CreatableModuleFactory } from './CreatableModule';
4
- export type LabeledCreatableModuleFactory<T extends AttachableModuleInstance = AttachableModuleInstance> = CreatableModuleFactory<T> & WithOptionalLabels;
5
- export declare const hasLabels: (factory: CreatableModuleFactory | LabeledCreatableModuleFactory) => factory is LabeledCreatableModuleFactory<AttachableModuleInstance<import("@xylabs/object").BaseParamsFields & {
6
- account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
7
- addToResolvers?: boolean | undefined;
8
- allowNameResolution?: boolean | undefined;
9
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("..").ArchivingModuleConfig & import("..").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
10
- schema: "network.xyo.module.config";
11
- }, "schema"> & {
12
- schema: string;
13
- };
14
- ephemeralQueryAccountEnabled?: boolean | undefined;
15
- moduleIdentifierTransformers?: import("..").ModuleIdentifierTransformer[] | undefined;
16
- }, import("..").ModuleEventData<object>>>;
4
+ export type LabeledCreatableModuleFactory<T extends AttachableModuleInstance | void = void> = CreatableModuleFactory<T> & WithOptionalLabels;
5
+ export declare const hasLabels: (factory: CreatableModuleFactory | LabeledCreatableModuleFactory) => factory is LabeledCreatableModuleFactory<void>;
6
+ /**
7
+ * Class annotation to be used to decorate Modules which support
8
+ * an asynchronous labeled creation factory pattern
9
+ * @returns The decorated Module requiring it implement the members
10
+ * of the CreatableModule as statics properties/methods
11
+ */
12
+ export declare function labeledCreatableModuleFactory<TModule extends AttachableModuleInstance = AttachableModuleInstance>(): <U extends LabeledCreatableModuleFactory<TModule>>(constructor: U) => void;
17
13
  //# sourceMappingURL=LabeledCreatableModuleFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabeledCreatableModuleFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableModule/LabeledCreatableModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB,IAAI,sBAAsB,CAAC,CAAC,CAAC,GAClI,kBAAkB,CAAA;AAEpB,eAAO,MAAM,SAAS,YAAa,sBAAsB,GAAG,6BAA6B;;;;;;;;;;;yCAExF,CAAA"}
1
+ {"version":3,"file":"LabeledCreatableModuleFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableModule/LabeledCreatableModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,wBAAwB,GAAG,IAAI,GAAG,IAAI,IAAI,sBAAsB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAA;AAE5I,eAAO,MAAM,SAAS,YAAa,sBAAsB,GAAG,6BAA6B,mDAExF,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,SAAS,wBAAwB,GAAG,wBAAwB,qEACxC,CAAC,UAGzE"}
@@ -1,17 +1,13 @@
1
1
  import { AttachableModuleInstance } from '../instance';
2
2
  import { WithOptionalLabels } from '../Labels';
3
3
  import { CreatableModuleFactory } from './CreatableModule';
4
- export type LabeledCreatableModuleFactory<T extends AttachableModuleInstance = AttachableModuleInstance> = CreatableModuleFactory<T> & WithOptionalLabels;
5
- export declare const hasLabels: (factory: CreatableModuleFactory | LabeledCreatableModuleFactory) => factory is LabeledCreatableModuleFactory<AttachableModuleInstance<import("@xylabs/object").BaseParamsFields & {
6
- account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
7
- addToResolvers?: boolean | undefined;
8
- allowNameResolution?: boolean | undefined;
9
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("..").ArchivingModuleConfig & import("..").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
10
- schema: "network.xyo.module.config";
11
- }, "schema"> & {
12
- schema: string;
13
- };
14
- ephemeralQueryAccountEnabled?: boolean | undefined;
15
- moduleIdentifierTransformers?: import("..").ModuleIdentifierTransformer[] | undefined;
16
- }, import("..").ModuleEventData<object>>>;
4
+ export type LabeledCreatableModuleFactory<T extends AttachableModuleInstance | void = void> = CreatableModuleFactory<T> & WithOptionalLabels;
5
+ export declare const hasLabels: (factory: CreatableModuleFactory | LabeledCreatableModuleFactory) => factory is LabeledCreatableModuleFactory<void>;
6
+ /**
7
+ * Class annotation to be used to decorate Modules which support
8
+ * an asynchronous labeled creation factory pattern
9
+ * @returns The decorated Module requiring it implement the members
10
+ * of the CreatableModule as statics properties/methods
11
+ */
12
+ export declare function labeledCreatableModuleFactory<TModule extends AttachableModuleInstance = AttachableModuleInstance>(): <U extends LabeledCreatableModuleFactory<TModule>>(constructor: U) => void;
17
13
  //# sourceMappingURL=LabeledCreatableModuleFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabeledCreatableModuleFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableModule/LabeledCreatableModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB,IAAI,sBAAsB,CAAC,CAAC,CAAC,GAClI,kBAAkB,CAAA;AAEpB,eAAO,MAAM,SAAS,YAAa,sBAAsB,GAAG,6BAA6B;;;;;;;;;;;yCAExF,CAAA"}
1
+ {"version":3,"file":"LabeledCreatableModuleFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableModule/LabeledCreatableModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,wBAAwB,GAAG,IAAI,GAAG,IAAI,IAAI,sBAAsB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAA;AAE5I,eAAO,MAAM,SAAS,YAAa,sBAAsB,GAAG,6BAA6B,mDAExF,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,SAAS,wBAAwB,GAAG,wBAAwB,qEACxC,CAAC,UAGzE"}
@@ -1,17 +1,13 @@
1
1
  import { AttachableModuleInstance } from '../instance';
2
2
  import { WithOptionalLabels } from '../Labels';
3
3
  import { CreatableModuleFactory } from './CreatableModule';
4
- export type LabeledCreatableModuleFactory<T extends AttachableModuleInstance = AttachableModuleInstance> = CreatableModuleFactory<T> & WithOptionalLabels;
5
- export declare const hasLabels: (factory: CreatableModuleFactory | LabeledCreatableModuleFactory) => factory is LabeledCreatableModuleFactory<AttachableModuleInstance<import("@xylabs/object").BaseParamsFields & {
6
- account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
7
- addToResolvers?: boolean | undefined;
8
- allowNameResolution?: boolean | undefined;
9
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("..").ArchivingModuleConfig & import("..").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
10
- schema: "network.xyo.module.config";
11
- }, "schema"> & {
12
- schema: string;
13
- };
14
- ephemeralQueryAccountEnabled?: boolean | undefined;
15
- moduleIdentifierTransformers?: import("..").ModuleIdentifierTransformer[] | undefined;
16
- }, import("..").ModuleEventData<object>>>;
4
+ export type LabeledCreatableModuleFactory<T extends AttachableModuleInstance | void = void> = CreatableModuleFactory<T> & WithOptionalLabels;
5
+ export declare const hasLabels: (factory: CreatableModuleFactory | LabeledCreatableModuleFactory) => factory is LabeledCreatableModuleFactory<void>;
6
+ /**
7
+ * Class annotation to be used to decorate Modules which support
8
+ * an asynchronous labeled creation factory pattern
9
+ * @returns The decorated Module requiring it implement the members
10
+ * of the CreatableModule as statics properties/methods
11
+ */
12
+ export declare function labeledCreatableModuleFactory<TModule extends AttachableModuleInstance = AttachableModuleInstance>(): <U extends LabeledCreatableModuleFactory<TModule>>(constructor: U) => void;
17
13
  //# sourceMappingURL=LabeledCreatableModuleFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LabeledCreatableModuleFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableModule/LabeledCreatableModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,wBAAwB,GAAG,wBAAwB,IAAI,sBAAsB,CAAC,CAAC,CAAC,GAClI,kBAAkB,CAAA;AAEpB,eAAO,MAAM,SAAS,YAAa,sBAAsB,GAAG,6BAA6B;;;;;;;;;;;yCAExF,CAAA"}
1
+ {"version":3,"file":"LabeledCreatableModuleFactory.d.ts","sourceRoot":"","sources":["../../../src/CreatableModule/LabeledCreatableModuleFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,wBAAwB,GAAG,IAAI,GAAG,IAAI,IAAI,sBAAsB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAA;AAE5I,eAAO,MAAM,SAAS,YAAa,sBAAsB,GAAG,6BAA6B,mDAExF,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,SAAS,wBAAwB,GAAG,wBAAwB,qEACxC,CAAC,UAGzE"}
@@ -1,2 +1,3 @@
1
1
  export * from './Labels';
2
+ export * from './standard';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Labels/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Labels/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from './Labels';
2
+ export * from './standard';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Labels/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Labels/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from './Labels';
2
+ export * from './standard';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Labels/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Labels/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const ModuleLimitationLabelName = "network.xyo.module.limitation";
2
+ export type ModuleLimitationLabelName = typeof ModuleLimitationLabelName;
3
+ export declare const ModuleLimitationViewLabel: {
4
+ ModuleLimitationLabelName: string;
5
+ };
6
+ //# sourceMappingURL=View.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../src/Labels/standard/View.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,kCAAkC,CAAA;AACxE,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,eAAO,MAAM,yBAAyB;;CAErC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const ModuleLimitationLabelName = "network.xyo.module.limitation";
2
+ export type ModuleLimitationLabelName = typeof ModuleLimitationLabelName;
3
+ export declare const ModuleLimitationViewLabel: {
4
+ ModuleLimitationLabelName: string;
5
+ };
6
+ //# sourceMappingURL=View.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../src/Labels/standard/View.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,kCAAkC,CAAA;AACxE,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,eAAO,MAAM,yBAAyB;;CAErC,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare const ModuleLimitationLabelName = "network.xyo.module.limitation";
2
+ export type ModuleLimitationLabelName = typeof ModuleLimitationLabelName;
3
+ export declare const ModuleLimitationViewLabel: {
4
+ ModuleLimitationLabelName: string;
5
+ };
6
+ //# sourceMappingURL=View.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"View.d.ts","sourceRoot":"","sources":["../../../../src/Labels/standard/View.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,kCAAkC,CAAA;AACxE,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,eAAO,MAAM,yBAAyB;;CAErC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './View';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Labels/standard/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './View';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Labels/standard/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './View';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Labels/standard/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -37,6 +37,8 @@ __export(src_exports, {
37
37
  ModuleConfigSchema: () => ModuleConfigSchema,
38
38
  ModuleDescriptionSchema: () => ModuleDescriptionSchema,
39
39
  ModuleFactory: () => ModuleFactory,
40
+ ModuleLimitationLabelName: () => ModuleLimitationLabelName,
41
+ ModuleLimitationViewLabel: () => ModuleLimitationViewLabel,
40
42
  ModuleManifestQuerySchema: () => ModuleManifestQuerySchema,
41
43
  ModuleStateQuerySchema: () => ModuleStateQuerySchema,
42
44
  ModuleStateSchema: () => ModuleStateSchema,
@@ -51,6 +53,7 @@ __export(src_exports, {
51
53
  asModuleObject: () => asModuleObject,
52
54
  assignCreatableModuleRegistry: () => assignCreatableModuleRegistry,
53
55
  creatableModule: () => creatableModule,
56
+ creatableModuleFactory: () => creatableModuleFactory,
54
57
  duplicateModules: () => duplicateModules,
55
58
  hasAllLabels: () => hasAllLabels,
56
59
  hasLabels: () => hasLabels,
@@ -71,9 +74,9 @@ __export(src_exports, {
71
74
  isObjectResolver: () => isObjectResolver,
72
75
  isQueryModuleFilter: () => isQueryModuleFilter,
73
76
  isQueryObjectFilter: () => isQueryObjectFilter,
77
+ labeledCreatableModuleFactory: () => labeledCreatableModuleFactory,
74
78
  registerCreatableModuleFactories: () => registerCreatableModuleFactories,
75
79
  registerCreatableModuleFactory: () => registerCreatableModuleFactory,
76
- registerPrimaryCreatableModuleFactory: () => registerPrimaryCreatableModuleFactory,
77
80
  requiredAttachableModuleInstanceFunctions: () => requiredAttachableModuleInstanceFunctions,
78
81
  requiredModuleInstanceFunctions: () => requiredModuleInstanceFunctions,
79
82
  requiredModuleQueries: () => requiredModuleQueries,
@@ -103,29 +106,65 @@ function creatableModule() {
103
106
  };
104
107
  }
105
108
  __name(creatableModule, "creatableModule");
109
+ function creatableModuleFactory() {
110
+ return (constructor) => {
111
+ constructor;
112
+ };
113
+ }
114
+ __name(creatableModuleFactory, "creatableModuleFactory");
106
115
 
107
116
  // src/CreatableModule/CreatableModuleRegistry.ts
108
- var registerCreatableModuleFactory = /* @__PURE__ */ __name((registry, factory5) => {
117
+ var buildModuleFactory = /* @__PURE__ */ __name((mod, labels) => {
118
+ const factory5 = {
119
+ // Destructure instance properties
120
+ ...mod,
121
+ configSchemas: mod.configSchemas,
122
+ // Copy static methods
123
+ create: mod.create.bind(mod),
124
+ defaultConfigSchema: mod.defaultConfigSchema,
125
+ // Merge module & supplied labels
126
+ labels: {
127
+ ...mod.labels,
128
+ ...labels
129
+ }
130
+ };
131
+ return factory5;
132
+ }, "buildModuleFactory");
133
+ var registerCreatableModuleFactory = /* @__PURE__ */ __name((registry, factory5, labels, primary = false) => {
134
+ const isPrimaryForSchema = /* @__PURE__ */ __name((schema) => {
135
+ switch (typeof primary) {
136
+ case "boolean": {
137
+ return primary;
138
+ }
139
+ case "string": {
140
+ return schema === primary;
141
+ }
142
+ case "object": {
143
+ if (Array.isArray(primary)) {
144
+ return primary.includes(schema);
145
+ }
146
+ }
147
+ }
148
+ throw new Error(`Invalid primary value: ${primary}`);
149
+ }, "isPrimaryForSchema");
150
+ const factoryClone = buildModuleFactory(factory5, labels);
109
151
  registry[factory5.defaultConfigSchema] = [
110
- factory5,
111
- ...registry[factory5.defaultConfigSchema] ?? []
152
+ factoryClone,
153
+ ...registry[factoryClone.defaultConfigSchema] ?? []
112
154
  ];
113
- for (const schema of factory5.configSchemas) {
114
- registry[schema] = [
155
+ for (const schema of factoryClone.configSchemas) {
156
+ registry[schema] = isPrimaryForSchema(schema) ? [
157
+ factoryClone,
158
+ ...registry[schema] ?? []
159
+ ] : [
115
160
  ...registry[schema] ?? [],
116
- factory5
161
+ factoryClone
117
162
  ];
118
163
  }
119
164
  }, "registerCreatableModuleFactory");
120
- var registerPrimaryCreatableModuleFactory = /* @__PURE__ */ __name((registry, factory5, configSchema) => {
121
- registry[configSchema] = [
122
- factory5,
123
- ...registry[configSchema] ?? []
124
- ];
125
- }, "registerPrimaryCreatableModuleFactory");
126
- var registerCreatableModuleFactories = /* @__PURE__ */ __name((factories, registry = {}) => {
165
+ var registerCreatableModuleFactories = /* @__PURE__ */ __name((factories, registry = {}, primary = false) => {
127
166
  for (const factory5 of factories) {
128
- registerCreatableModuleFactory(registry, factory5);
167
+ registerCreatableModuleFactory(registry, factory5, void 0, primary);
129
168
  }
130
169
  return registry;
131
170
  }, "registerCreatableModuleFactories");
@@ -146,6 +185,12 @@ var assignCreatableModuleRegistry = /* @__PURE__ */ __name((target = {}, ...sour
146
185
  var hasLabels = /* @__PURE__ */ __name((factory5) => {
147
186
  return factory5.labels !== void 0;
148
187
  }, "hasLabels");
188
+ function labeledCreatableModuleFactory() {
189
+ return (constructor) => {
190
+ constructor;
191
+ };
192
+ }
193
+ __name(labeledCreatableModuleFactory, "labeledCreatableModuleFactory");
149
194
 
150
195
  // src/CreatableModule/ModuleFactory.ts
151
196
  var import_assert = require("@xylabs/assert");
@@ -353,6 +398,12 @@ var hasAllLabels = /* @__PURE__ */ __name((source, required) => {
353
398
  });
354
399
  }, "hasAllLabels");
355
400
 
401
+ // src/Labels/standard/View.ts
402
+ var ModuleLimitationLabelName = "network.xyo.module.limitation";
403
+ var ModuleLimitationViewLabel = {
404
+ ModuleLimitationLabelName: "view"
405
+ };
406
+
356
407
  // src/lib/duplicateModules.ts
357
408
  var duplicateModules = /* @__PURE__ */ __name((value, index, array) => {
358
409
  return array.findIndex((v) => v.address === value.address) === index;
@@ -750,6 +801,8 @@ var withModuleInstance = WithFactory.create(isModuleInstance);
750
801
  ModuleConfigSchema,
751
802
  ModuleDescriptionSchema,
752
803
  ModuleFactory,
804
+ ModuleLimitationLabelName,
805
+ ModuleLimitationViewLabel,
753
806
  ModuleManifestQuerySchema,
754
807
  ModuleStateQuerySchema,
755
808
  ModuleStateSchema,
@@ -764,6 +817,7 @@ var withModuleInstance = WithFactory.create(isModuleInstance);
764
817
  asModuleObject,
765
818
  assignCreatableModuleRegistry,
766
819
  creatableModule,
820
+ creatableModuleFactory,
767
821
  duplicateModules,
768
822
  hasAllLabels,
769
823
  hasLabels,
@@ -784,9 +838,9 @@ var withModuleInstance = WithFactory.create(isModuleInstance);
784
838
  isObjectResolver,
785
839
  isQueryModuleFilter,
786
840
  isQueryObjectFilter,
841
+ labeledCreatableModuleFactory,
787
842
  registerCreatableModuleFactories,
788
843
  registerCreatableModuleFactory,
789
- registerPrimaryCreatableModuleFactory,
790
844
  requiredAttachableModuleInstanceFunctions,
791
845
  requiredModuleInstanceFunctions,
792
846
  requiredModuleQueries,