@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.cjs
CHANGED
|
@@ -6590,6 +6590,16 @@ var RuntimeKit = {
|
|
|
6590
6590
|
declared() {
|
|
6591
6591
|
return Object.keys(needs);
|
|
6592
6592
|
},
|
|
6593
|
+
/** Tell this module which endpoints the consuming app has actually wired to a real backend.
|
|
6594
|
+
* Additive — merges into WIRED_ENDPOINTS, never replaces it, so multiple call sites in a
|
|
6595
|
+
* consuming app (or a call that runs more than once, e.g. React strict-mode double-invoke)
|
|
6596
|
+
* compose safely instead of one clobbering another. Call once, early, before first render:
|
|
6597
|
+
* status() reads WIRED_ENDPOINTS live but nothing here triggers a re-render on its own. */
|
|
6598
|
+
wireEndpoints(ids) {
|
|
6599
|
+
(ids || []).forEach((id) => {
|
|
6600
|
+
if (WIRED_ENDPOINTS.indexOf(id) < 0) WIRED_ENDPOINTS.push(id);
|
|
6601
|
+
});
|
|
6602
|
+
},
|
|
6593
6603
|
isEndpointWired(id) {
|
|
6594
6604
|
return WIRED_ENDPOINTS.indexOf(id) >= 0;
|
|
6595
6605
|
},
|