@flytedan/flytebot-design-system 0.2.2 → 0.3.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.
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -2637,6 +2637,12 @@ declare const RuntimeKit: {
|
|
|
2637
2637
|
needsOf(key: string): string[];
|
|
2638
2638
|
/** Every declared feature, for the admin surface. */
|
|
2639
2639
|
declared(): string[];
|
|
2640
|
+
/** Tell this module which endpoints the consuming app has actually wired to a real backend.
|
|
2641
|
+
* Additive — merges into WIRED_ENDPOINTS, never replaces it, so multiple call sites in a
|
|
2642
|
+
* consuming app (or a call that runs more than once, e.g. React strict-mode double-invoke)
|
|
2643
|
+
* compose safely instead of one clobbering another. Call once, early, before first render:
|
|
2644
|
+
* status() reads WIRED_ENDPOINTS live but nothing here triggers a re-render on its own. */
|
|
2645
|
+
wireEndpoints(ids: string[]): void;
|
|
2640
2646
|
isEndpointWired(id: string): boolean;
|
|
2641
2647
|
/** The whole point: complete is computed, never stored. */
|
|
2642
2648
|
status(key: string): FeatureStatus;
|
package/dist/index.d.ts
CHANGED
|
@@ -2637,6 +2637,12 @@ declare const RuntimeKit: {
|
|
|
2637
2637
|
needsOf(key: string): string[];
|
|
2638
2638
|
/** Every declared feature, for the admin surface. */
|
|
2639
2639
|
declared(): string[];
|
|
2640
|
+
/** Tell this module which endpoints the consuming app has actually wired to a real backend.
|
|
2641
|
+
* Additive — merges into WIRED_ENDPOINTS, never replaces it, so multiple call sites in a
|
|
2642
|
+
* consuming app (or a call that runs more than once, e.g. React strict-mode double-invoke)
|
|
2643
|
+
* compose safely instead of one clobbering another. Call once, early, before first render:
|
|
2644
|
+
* status() reads WIRED_ENDPOINTS live but nothing here triggers a re-render on its own. */
|
|
2645
|
+
wireEndpoints(ids: string[]): void;
|
|
2640
2646
|
isEndpointWired(id: string): boolean;
|
|
2641
2647
|
/** The whole point: complete is computed, never stored. */
|
|
2642
2648
|
status(key: string): FeatureStatus;
|
package/dist/index.js
CHANGED
|
@@ -6407,6 +6407,16 @@ var RuntimeKit = {
|
|
|
6407
6407
|
declared() {
|
|
6408
6408
|
return Object.keys(needs);
|
|
6409
6409
|
},
|
|
6410
|
+
/** Tell this module which endpoints the consuming app has actually wired to a real backend.
|
|
6411
|
+
* Additive — merges into WIRED_ENDPOINTS, never replaces it, so multiple call sites in a
|
|
6412
|
+
* consuming app (or a call that runs more than once, e.g. React strict-mode double-invoke)
|
|
6413
|
+
* compose safely instead of one clobbering another. Call once, early, before first render:
|
|
6414
|
+
* status() reads WIRED_ENDPOINTS live but nothing here triggers a re-render on its own. */
|
|
6415
|
+
wireEndpoints(ids) {
|
|
6416
|
+
(ids || []).forEach((id) => {
|
|
6417
|
+
if (WIRED_ENDPOINTS.indexOf(id) < 0) WIRED_ENDPOINTS.push(id);
|
|
6418
|
+
});
|
|
6419
|
+
},
|
|
6410
6420
|
isEndpointWired(id) {
|
|
6411
6421
|
return WIRED_ENDPOINTS.indexOf(id) >= 0;
|
|
6412
6422
|
},
|