@procedures/splay 0.42.0 → 0.43.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.
@@ -32,12 +32,13 @@ export declare const componentInputSchema: ZodLike<ComponentInput>;
32
32
  */
33
33
  export declare const componentOutputSchema: ZodLike<ComponentOutput>;
34
34
  /**
35
- * Define a component and convert it to a procedure.
36
- *
37
- * Components are registered under ["components", namespace?, type].
35
+ * This function gives the definition of a component, with its type checked. It registers nothing.
36
+ * To start the procedure of the component by its path `["components", namespace?, type]`, give
37
+ * the definition to `componentModule()`. Then give the module to `createRegistry()` or
38
+ * `registerModules()`.
38
39
  *
39
40
  * @param definition - Component definition
40
- * @returns The component definition (for chaining)
41
+ * @returns The component definition
41
42
  *
42
43
  * @example
43
44
  * ```typescript
@@ -63,18 +64,17 @@ export declare const componentOutputSchema: ZodLike<ComponentOutput>;
63
64
  * }
64
65
  * },
65
66
  * });
66
- * ```
67
67
  *
68
- * @deprecated The registration in the global registry. Give the definitions to
69
- * `componentModule()`, and give the module to `createRegistry()` or `registerModules()`. The next
70
- * MINOR of the client group removes the registration: `defineComponent` then only gives the definition.
68
+ * // The procedures of the components
69
+ * const registry = createRegistry(componentModule("my-app/ui", [userCard, liveDashboard]));
70
+ * ```
71
71
  */
72
72
  export declare function defineComponent<TData = unknown>(definition: ComponentDefinition<TData>): ComponentDefinition<TData>;
73
73
  /**
74
74
  * This function gives a module with the procedure of each component, for `createRegistry()` or
75
75
  * `registerModules()`. It registers nothing (rule I2 of `ARCHITECTURE.md`). The path of each
76
76
  * procedure is `["components", namespace?, type]`. A component of a bundle without its own
77
- * namespace gets the namespace of the bundle, as `registerBundle()` does.
77
+ * namespace gets the namespace of the bundle.
78
78
  *
79
79
  * @param name - The name of the module, for example the name of the package
80
80
  * @param components - The component definitions, or a bundle
@@ -96,26 +96,7 @@ export declare function componentModule(name: string, components: ComponentBundl
96
96
  */
97
97
  export declare function componentToProcedure<TData>(definition: ComponentDefinition<TData>, path: ProcedurePath): Procedure<ComponentInput<TData>, ComponentOutput>;
98
98
  /**
99
- * Register a bundle of components.
100
- *
101
- * @param bundle - Component bundle
102
- * @returns The registered components
103
- *
104
- * @example
105
- * ```typescript
106
- * const registered = registerBundle({
107
- * namespace: "ui",
108
- * components: [buttonComponent, cardComponent],
109
- * });
110
- * ```
111
- *
112
- * @deprecated It registers in the global registry. Give the bundle to `componentModule()`, and
113
- * give the module to `createRegistry()` or `registerModules()`. The next MINOR of the client group
114
- * removes `registerBundle`.
115
- */
116
- export declare function registerBundle(bundle: ComponentBundle): AnyComponentDefinition[];
117
- /**
118
- * Create a component bundle.
99
+ * This function makes a component bundle. It registers nothing: give the bundle to `componentModule()`.
119
100
  *
120
101
  * @param namespace - Shared namespace
121
102
  * @param components - Component definitions
@@ -124,7 +105,8 @@ export declare function registerBundle(bundle: ComponentBundle): AnyComponentDef
124
105
  */
125
106
  export declare function createBundle(namespace: string, components: AnyComponentDefinition[], metadata?: ComponentBundle["metadata"]): ComponentBundle;
126
107
  /**
127
- * Define a simple component with minimal boilerplate.
108
+ * This function defines a component with minimal boilerplate. It registers nothing. Give the
109
+ * definition to `componentModule()`.
128
110
  *
129
111
  * @param type - Component type
130
112
  * @param factory - Factory function
@@ -137,32 +119,25 @@ export declare function createBundle(namespace: string, components: AnyComponent
137
119
  * props: { label: ctx.data.label },
138
120
  * }));
139
121
  * ```
140
- *
141
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
142
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
143
122
  */
144
123
  export declare function simpleComponent<TData = unknown>(type: string, factory: (ctx: ComponentContext<TData>) => ComponentOutput): ComponentDefinition<TData>;
145
124
  /**
146
- * Define a namespaced component with minimal boilerplate.
125
+ * This function defines a namespaced component with minimal boilerplate. It registers nothing. Give
126
+ * the definition to `componentModule()`.
147
127
  *
148
128
  * @param namespace - Component namespace
149
129
  * @param type - Component type
150
130
  * @param factory - Factory function
151
131
  * @returns ComponentDefinition
152
- *
153
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
154
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
155
132
  */
156
133
  export declare function namespacedComponent<TData = unknown>(namespace: string, type: string, factory: (ctx: ComponentContext<TData>) => ComponentOutput): ComponentDefinition<TData>;
157
134
  /**
158
- * Define a streaming component.
135
+ * This function defines a streaming component. It registers nothing. Give the definition to
136
+ * `componentModule()`.
159
137
  *
160
138
  * @param type - Component type
161
139
  * @param factory - Generator factory function
162
140
  * @returns ComponentDefinition
163
- *
164
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
165
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
166
141
  */
167
142
  export declare function streamingComponent<TData = unknown>(type: string, factory: (ctx: ComponentContext<TData>) => AsyncGenerator<ComponentOutput, void, unknown>): ComponentDefinition<TData>;
168
143
  //# sourceMappingURL=define.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../../src/components/define.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAgB,SAAS,EAAE,eAAe,EAAE,aAAa,EAAoB,MAAM,4BAA4B,CAAC;AAG5H,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,sBAAsB,EAEtB,IAAI,EAEL,MAAM,YAAY,CAAC;AAOpB;;;GAGG;AACH,MAAM,WAAW,cAAc,CAAC,KAAK,GAAG,OAAO;IAC7C,qBAAqB;IACrB,IAAI,EAAE,KAAK,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAC;IACX,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,cAAc,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@ -100,12 +100,13 @@ export const componentOutputSchema = {
100
100
  // defineComponent
101
101
  // =============================================================================
102
102
  /**
103
- * Define a component and convert it to a procedure.
104
- *
105
- * Components are registered under ["components", namespace?, type].
103
+ * This function gives the definition of a component, with its type checked. It registers nothing.
104
+ * To start the procedure of the component by its path `["components", namespace?, type]`, give
105
+ * the definition to `componentModule()`. Then give the module to `createRegistry()` or
106
+ * `registerModules()`.
106
107
  *
107
108
  * @param definition - Component definition
108
- * @returns The component definition (for chaining)
109
+ * @returns The component definition
109
110
  *
110
111
  * @example
111
112
  * ```typescript
@@ -131,17 +132,13 @@ export const componentOutputSchema = {
131
132
  * }
132
133
  * },
133
134
  * });
134
- * ```
135
135
  *
136
- * @deprecated The registration in the global registry. Give the definitions to
137
- * `componentModule()`, and give the module to `createRegistry()` or `registerModules()`. The next
138
- * MINOR of the client group removes the registration: `defineComponent` then only gives the definition.
136
+ * // The procedures of the components
137
+ * const registry = createRegistry(componentModule("my-app/ui", [userCard, liveDashboard]));
138
+ * ```
139
139
  */
140
140
  export function defineComponent(definition) {
141
- // Create the procedure from the component
142
- const procedure = componentToProcedure(definition, componentPath(definition));
143
- // Register the procedure
144
- PROCEDURE_REGISTRY.register(procedure);
141
+ // The definition is data: componentModule() makes its procedure (O75: no global registration)
145
142
  return definition;
146
143
  }
147
144
  /** The procedure path of a component: `["components", namespace?, type]`. */
@@ -154,7 +151,7 @@ function componentPath(definition) {
154
151
  * This function gives a module with the procedure of each component, for `createRegistry()` or
155
152
  * `registerModules()`. It registers nothing (rule I2 of `ARCHITECTURE.md`). The path of each
156
153
  * procedure is `["components", namespace?, type]`. A component of a bundle without its own
157
- * namespace gets the namespace of the bundle, as `registerBundle()` does.
154
+ * namespace gets the namespace of the bundle.
158
155
  *
159
156
  * @param name - The name of the module, for example the name of the package
160
157
  * @param components - The component definitions, or a bundle
@@ -419,41 +416,10 @@ function isAsyncGenerator(value) {
419
416
  typeof value.next === "function");
420
417
  }
421
418
  // =============================================================================
422
- // Bundle Registration
419
+ // Bundles
423
420
  // =============================================================================
424
421
  /**
425
- * Register a bundle of components.
426
- *
427
- * @param bundle - Component bundle
428
- * @returns The registered components
429
- *
430
- * @example
431
- * ```typescript
432
- * const registered = registerBundle({
433
- * namespace: "ui",
434
- * components: [buttonComponent, cardComponent],
435
- * });
436
- * ```
437
- *
438
- * @deprecated It registers in the global registry. Give the bundle to `componentModule()`, and
439
- * give the module to `createRegistry()` or `registerModules()`. The next MINOR of the client group
440
- * removes `registerBundle`.
441
- */
442
- export function registerBundle(bundle) {
443
- const registered = [];
444
- for (const component of bundle.components) {
445
- // Apply bundle namespace if component doesn't have one
446
- const withNamespace = {
447
- ...component,
448
- namespace: component.namespace ?? bundle.namespace,
449
- };
450
- defineComponent(withNamespace);
451
- registered.push(withNamespace);
452
- }
453
- return registered;
454
- }
455
- /**
456
- * Create a component bundle.
422
+ * This function makes a component bundle. It registers nothing: give the bundle to `componentModule()`.
457
423
  *
458
424
  * @param namespace - Shared namespace
459
425
  * @param components - Component definitions
@@ -471,7 +437,8 @@ export function createBundle(namespace, components, metadata) {
471
437
  // Quick Define Helpers
472
438
  // =============================================================================
473
439
  /**
474
- * Define a simple component with minimal boilerplate.
440
+ * This function defines a component with minimal boilerplate. It registers nothing. Give the
441
+ * definition to `componentModule()`.
475
442
  *
476
443
  * @param type - Component type
477
444
  * @param factory - Factory function
@@ -484,9 +451,6 @@ export function createBundle(namespace, components, metadata) {
484
451
  * props: { label: ctx.data.label },
485
452
  * }));
486
453
  * ```
487
- *
488
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
489
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
490
454
  */
491
455
  export function simpleComponent(type, factory) {
492
456
  return defineComponent({
@@ -495,15 +459,13 @@ export function simpleComponent(type, factory) {
495
459
  });
496
460
  }
497
461
  /**
498
- * Define a namespaced component with minimal boilerplate.
462
+ * This function defines a namespaced component with minimal boilerplate. It registers nothing. Give
463
+ * the definition to `componentModule()`.
499
464
  *
500
465
  * @param namespace - Component namespace
501
466
  * @param type - Component type
502
467
  * @param factory - Factory function
503
468
  * @returns ComponentDefinition
504
- *
505
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
506
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
507
469
  */
508
470
  export function namespacedComponent(namespace, type, factory) {
509
471
  return defineComponent({
@@ -513,14 +475,12 @@ export function namespacedComponent(namespace, type, factory) {
513
475
  });
514
476
  }
515
477
  /**
516
- * Define a streaming component.
478
+ * This function defines a streaming component. It registers nothing. Give the definition to
479
+ * `componentModule()`.
517
480
  *
518
481
  * @param type - Component type
519
482
  * @param factory - Generator factory function
520
483
  * @returns ComponentDefinition
521
- *
522
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
523
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
524
484
  */
525
485
  export function streamingComponent(type, factory) {
526
486
  return defineComponent({
@@ -1 +1 @@
1
- {"version":3,"file":"define.js","sourceRoot":"","sources":["../../src/components/define.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAA0B,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAW9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAqBhD;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA4B;IAC3D,KAAK,CAAC,KAAc;QAClB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC;IACrB,CAAC;IACD,SAAS,CAAC,KAAc;QACtB,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,Q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CAAC;QACrB,IAAI;QACJ,SAAS,EAAE,IAAI;QACf,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -6,7 +6,8 @@
6
6
  *
7
7
  * @example
8
8
  * ```typescript
9
- * import { defineComponent, simpleComponent, registerBundle } from "@procedures/splay";
9
+ * import { defineComponent, simpleComponent, componentModule, createBundle } from "@procedures/splay";
10
+ * import { createRegistry } from "@procedures/client";
10
11
  *
11
12
  * // Define a component
12
13
  * const userCard = defineComponent({
@@ -25,15 +26,12 @@
25
26
  * props: { label: ctx.data.label },
26
27
  * }));
27
28
  *
28
- * // Register a bundle
29
- * registerBundle({
30
- * namespace: "ui",
31
- * components: [buttonComponent, cardComponent],
32
- * });
29
+ * // The definitions register nothing: a module gives their procedures to a registry
30
+ * const registry = createRegistry(componentModule("my-app/ui", createBundle("ui", [userCard, badge])));
33
31
  * ```
34
32
  */
35
33
  export type { ComponentOutput, FragmentOutput, NullOutput, AnyComponentOutput, Size, ComponentContext, ComponentFactory, StreamingComponentFactory, AnyComponentFactory, ComponentMetadata, ComponentDefinition, AnyComponentDefinition, RegisteredComponent, ComponentBundle, InferComponentInput, IsStreamingComponent, } from "./types.js";
36
34
  export { nullOutput, fragment, isFragment, isNullOutput, isStreamingFactory, } from "./types.js";
37
35
  export type { ComponentInput } from "./define.js";
38
- export { defineComponent, componentModule, componentToProcedure, registerBundle, createBundle, simpleComponent, namespacedComponent, streamingComponent, componentInputSchema, componentOutputSchema, } from "./define.js";
36
+ export { defineComponent, componentModule, componentToProcedure, createBundle, simpleComponent, namespacedComponent, streamingComponent, componentInputSchema, componentOutputSchema, } from "./define.js";
39
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAGH,YAAY,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,YAAY,EACV,eAAe,EACf,cAAc,EACd,UAAU,EACV,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
@@ -6,7 +6,8 @@
6
6
  *
7
7
  * @example
8
8
  * ```typescript
9
- * import { defineComponent, simpleComponent, registerBundle } from "@procedures/splay";
9
+ * import { defineComponent, simpleComponent, componentModule, createBundle } from "@procedures/splay";
10
+ * import { createRegistry } from "@procedures/client";
10
11
  *
11
12
  * // Define a component
12
13
  * const userCard = defineComponent({
@@ -25,14 +26,11 @@
25
26
  * props: { label: ctx.data.label },
26
27
  * }));
27
28
  *
28
- * // Register a bundle
29
- * registerBundle({
30
- * namespace: "ui",
31
- * components: [buttonComponent, cardComponent],
32
- * });
29
+ * // The definitions register nothing: a module gives their procedures to a registry
30
+ * const registry = createRegistry(componentModule("my-app/ui", createBundle("ui", [userCard, badge])));
33
31
  * ```
34
32
  */
35
33
  // Type utilities
36
34
  export { nullOutput, fragment, isFragment, isNullOutput, isStreamingFactory, } from "./types.js";
37
- export { defineComponent, componentModule, componentToProcedure, registerBundle, createBundle, simpleComponent, namespacedComponent, streamingComponent, componentInputSchema, componentOutputSchema, } from "./define.js";
35
+ export { defineComponent, componentModule, componentToProcedure, createBundle, simpleComponent, namespacedComponent, streamingComponent, componentInputSchema, componentOutputSchema, } from "./define.js";
38
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAsBH,iBAAiB;AACjB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAKpB,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAsBH,iBAAiB;AACjB,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAKpB,OAAO,EACL,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC"}
@@ -192,8 +192,9 @@ export interface ComponentDefinition<TData = unknown> {
192
192
  }
193
193
  /**
194
194
  * Any component definition (type-erased for storage).
195
+ * The type uses `any` for the data, as `AnyProcedure` does: a list of definitions then accepts a definition with a typed `input` schema.
195
196
  */
196
- export type AnyComponentDefinition = ComponentDefinition<unknown>;
197
+ export type AnyComponentDefinition = ComponentDefinition<any>;
197
198
  /**
198
199
  * Registered component with resolved path.
199
200
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,IAAI,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAMxE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IAEb,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAE7B,kDAAkD;IAClD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B;AAED;;GAEG;A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AAgB,kBAAkB,CAAC,KAAK,EACtC,OAAO,EAAE,mBAAmB,CAAC,KAAK,CAAC,GAClC,OAAO,IAAI,yBAAyB,CAAC,KAAK,CAAC,CAK7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAkTH,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAG,QAA2B;IACrD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,MAA0B;IACnD,OAAO,MAAM,CAAC,IAAI,KAAK,cAAc,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAmC;IAEnC,wFAAwF;IACxF,oFAAoF;IACpF,wFAAwF;IACxF,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,iCAAiC,CAAC;AACvF,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/components/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAmTH,gFAAgF;AAChF,iBAAiB;AACjB,gFAAgF;AAEhF;;GAEG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,GAAG,QAA2B;IACrD,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,MAA0B;IACnD,OAAO,MAAM,CAAC,IAAI,KAAK,cAAc,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAChC,OAAmC;IAEnC,wFAAwF;IACxF,oFAAoF;IACpF,wFAAwF;IACxF,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,iCAAiC,CAAC;AACvF,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@procedures/splay",
4
- "version": "0.42.0",
4
+ "version": "0.43.0",
5
5
  "description": "Render procedure results with splay: a bridge between the client procedures and the splay recursive renderer, with stream helpers.",
6
6
  "keywords": [
7
7
  "splay",
@@ -71,7 +71,7 @@
71
71
  "vitest": "^5.0.3"
72
72
  },
73
73
  "dependencies": {
74
- "@procedures/client": "0.42.0",
74
+ "@procedures/client": "0.43.0",
75
75
  "@mark1russell7/splay": "^0.2.0"
76
76
  },
77
77
  "scripts": {
@@ -146,12 +146,13 @@ export const componentOutputSchema: ZodLike<ComponentOutput> = {
146
146
  // =============================================================================
147
147
 
148
148
  /**
149
- * Define a component and convert it to a procedure.
150
- *
151
- * Components are registered under ["components", namespace?, type].
149
+ * This function gives the definition of a component, with its type checked. It registers nothing.
150
+ * To start the procedure of the component by its path `["components", namespace?, type]`, give
151
+ * the definition to `componentModule()`. Then give the module to `createRegistry()` or
152
+ * `registerModules()`.
152
153
  *
153
154
  * @param definition - Component definition
154
- * @returns The component definition (for chaining)
155
+ * @returns The component definition
155
156
  *
156
157
  * @example
157
158
  * ```typescript
@@ -177,21 +178,15 @@ export const componentOutputSchema: ZodLike<ComponentOutput> = {
177
178
  * }
178
179
  * },
179
180
  * });
180
- * ```
181
181
  *
182
- * @deprecated The registration in the global registry. Give the definitions to
183
- * `componentModule()`, and give the module to `createRegistry()` or `registerModules()`. The next
184
- * MINOR of the client group removes the registration: `defineComponent` then only gives the definition.
182
+ * // The procedures of the components
183
+ * const registry = createRegistry(componentModule("my-app/ui", [userCard, liveDashboard]));
184
+ * ```
185
185
  */
186
186
  export function defineComponent<TData = unknown>(
187
187
  definition: ComponentDefinition<TData>
188
188
  ): ComponentDefinition<TData> {
189
- // Create the procedure from the component
190
- const procedure = componentToProcedure(definition, componentPath(definition));
191
-
192
- // Register the procedure
193
- PROCEDURE_REGISTRY.register(procedure);
194
-
189
+ // The definition is data: componentModule() makes its procedure (O75: no global registration)
195
190
  return definition;
196
191
  }
197
192
 
@@ -206,7 +201,7 @@ function componentPath(definition: Pick<AnyComponentDefinition, "type" | "namesp
206
201
  * This function gives a module with the procedure of each component, for `createRegistry()` or
207
202
  * `registerModules()`. It registers nothing (rule I2 of `ARCHITECTURE.md`). The path of each
208
203
  * procedure is `["components", namespace?, type]`. A component of a bundle without its own
209
- * namespace gets the namespace of the bundle, as `registerBundle()` does.
204
+ * namespace gets the namespace of the bundle.
210
205
  *
211
206
  * @param name - The name of the module, for example the name of the package
212
207
  * @param components - The component definitions, or a bundle
@@ -519,46 +514,11 @@ function isAsyncGenerator(value: unknown): value is AsyncGenerator {
519
514
  }
520
515
 
521
516
  // =============================================================================
522
- // Bundle Registration
517
+ // Bundles
523
518
  // =============================================================================
524
519
 
525
520
  /**
526
- * Register a bundle of components.
527
- *
528
- * @param bundle - Component bundle
529
- * @returns The registered components
530
- *
531
- * @example
532
- * ```typescript
533
- * const registered = registerBundle({
534
- * namespace: "ui",
535
- * components: [buttonComponent, cardComponent],
536
- * });
537
- * ```
538
- *
539
- * @deprecated It registers in the global registry. Give the bundle to `componentModule()`, and
540
- * give the module to `createRegistry()` or `registerModules()`. The next MINOR of the client group
541
- * removes `registerBundle`.
542
- */
543
- export function registerBundle(bundle: ComponentBundle): AnyComponentDefinition[] {
544
- const registered: AnyComponentDefinition[] = [];
545
-
546
- for (const component of bundle.components) {
547
- // Apply bundle namespace if component doesn't have one
548
- const withNamespace: AnyComponentDefinition = {
549
- ...component,
550
- namespace: component.namespace ?? bundle.namespace,
551
- };
552
-
553
- defineComponent(withNamespace);
554
- registered.push(withNamespace);
555
- }
556
-
557
- return registered;
558
- }
559
-
560
- /**
561
- * Create a component bundle.
521
+ * This function makes a component bundle. It registers nothing: give the bundle to `componentModule()`.
562
522
  *
563
523
  * @param namespace - Shared namespace
564
524
  * @param components - Component definitions
@@ -582,7 +542,8 @@ export function createBundle(
582
542
  // =============================================================================
583
543
 
584
544
  /**
585
- * Define a simple component with minimal boilerplate.
545
+ * This function defines a component with minimal boilerplate. It registers nothing. Give the
546
+ * definition to `componentModule()`.
586
547
  *
587
548
  * @param type - Component type
588
549
  * @param factory - Factory function
@@ -595,9 +556,6 @@ export function createBundle(
595
556
  * props: { label: ctx.data.label },
596
557
  * }));
597
558
  * ```
598
- *
599
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
600
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
601
559
  */
602
560
  export function simpleComponent<TData = unknown>(
603
561
  type: string,
@@ -610,15 +568,13 @@ export function simpleComponent<TData = unknown>(
610
568
  }
611
569
 
612
570
  /**
613
- * Define a namespaced component with minimal boilerplate.
571
+ * This function defines a namespaced component with minimal boilerplate. It registers nothing. Give
572
+ * the definition to `componentModule()`.
614
573
  *
615
574
  * @param namespace - Component namespace
616
575
  * @param type - Component type
617
576
  * @param factory - Factory function
618
577
  * @returns ComponentDefinition
619
- *
620
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
621
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
622
578
  */
623
579
  export function namespacedComponent<TData = unknown>(
624
580
  namespace: string,
@@ -633,14 +589,12 @@ export function namespacedComponent<TData = unknown>(
633
589
  }
634
590
 
635
591
  /**
636
- * Define a streaming component.
592
+ * This function defines a streaming component. It registers nothing. Give the definition to
593
+ * `componentModule()`.
637
594
  *
638
595
  * @param type - Component type
639
596
  * @param factory - Generator factory function
640
597
  * @returns ComponentDefinition
641
- *
642
- * @deprecated The registration in the global registry, as of `defineComponent`. Give the
643
- * definition to `componentModule()`. The next MINOR of the client group removes the registration.
644
598
  */
645
599
  export function streamingComponent<TData = unknown>(
646
600
  type: string,
@@ -6,7 +6,8 @@
6
6
  *
7
7
  * @example
8
8
  * ```typescript
9
- * import { defineComponent, simpleComponent, registerBundle } from "@procedures/splay";
9
+ * import { defineComponent, simpleComponent, componentModule, createBundle } from "@procedures/splay";
10
+ * import { createRegistry } from "@procedures/client";
10
11
  *
11
12
  * // Define a component
12
13
  * const userCard = defineComponent({
@@ -25,11 +26,8 @@
25
26
  * props: { label: ctx.data.label },
26
27
  * }));
27
28
  *
28
- * // Register a bundle
29
- * registerBundle({
30
- * namespace: "ui",
31
- * components: [buttonComponent, cardComponent],
32
- * });
29
+ * // The definitions register nothing: a module gives their procedures to a registry
30
+ * const registry = createRegistry(componentModule("my-app/ui", createBundle("ui", [userCard, badge])));
33
31
  * ```
34
32
  */
35
33
 
@@ -69,7 +67,6 @@ export {
69
67
  defineComponent,
70
68
  componentModule,
71
69
  componentToProcedure,
72
- registerBundle,
73
70
  createBundle,
74
71
  simpleComponent,
75
72
  namespacedComponent,