@fallen-8/studio 0.0.40 → 0.0.41

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,4 +1,4 @@
1
- import { conf as t, language as e } from "./typescript-CN4PnAKf.js";
1
+ import { conf as t, language as e } from "./typescript-xZxa-xcs.js";
2
2
  var i = t, o = {
3
3
  // Set defaultToken to invalid to see what you do not tokenize yet
4
4
  defaultToken: "invalid",
@@ -1,4 +1,4 @@
1
- import { m as Et } from "./index-bm1ERcEP.js";
1
+ import { m as Et } from "./index-CvTaRCl2.js";
2
2
  var Lt = Object.defineProperty, Ot = Object.getOwnPropertyDescriptor, Nt = Object.getOwnPropertyNames, Rt = Object.prototype.hasOwnProperty, Mt = (e, r, i, n) => {
3
3
  if (r && typeof r == "object" || typeof r == "function")
4
4
  for (let t of Nt(r))
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-bm1ERcEP.js";
1
+ import { m as l } from "./index-CvTaRCl2.js";
2
2
  var d = Object.defineProperty, s = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, u = Object.prototype.hasOwnProperty, m = (t, e, r, n) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let i of c(e))
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-bm1ERcEP.js";
1
+ import { m as s } from "./index-CvTaRCl2.js";
2
2
  var d = Object.defineProperty, c = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, a = Object.prototype.hasOwnProperty, k = (n, e, i, r) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let o of p(e))
@@ -1,4 +1,4 @@
1
- import { m as o } from "./index-bm1ERcEP.js";
1
+ import { m as o } from "./index-CvTaRCl2.js";
2
2
  var a = Object.defineProperty, l = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, c = Object.prototype.hasOwnProperty, g = (t, e, n, s) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let r of p(e))
@@ -1,4 +1,4 @@
1
- import { m } from "./index-bm1ERcEP.js";
1
+ import { m } from "./index-CvTaRCl2.js";
2
2
  var s = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, p = (t, e, o, n) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let r of l(e))
@@ -1,4 +1,4 @@
1
- import { t as O, m as I } from "./index-bm1ERcEP.js";
1
+ import { t as O, m as I } from "./index-CvTaRCl2.js";
2
2
  var N = Object.defineProperty, M = Object.getOwnPropertyDescriptor, R = Object.getOwnPropertyNames, K = Object.prototype.hasOwnProperty, E = (e, t, i, o) => {
3
3
  if (t && typeof t == "object" || typeof t == "function")
4
4
  for (let n of R(t))
@@ -0,0 +1,34 @@
1
+ import type { InstanceConfig } from "../instances/types";
2
+ /**
3
+ * The key the shared /ns cache entry lives under, exported because several sites INVALIDATE it and
4
+ * not all of them are in a position to hold the hook. state/liveFeed.ts is a plain factory over a
5
+ * queryClient and debounces by key rather than calling invalidateQueries at all, and
6
+ * NamespaceSwitcher takes its entries as a prop; a hook-returned callback would force both to
7
+ * mount an observer they do not want. So the KEY is the shared thing, and this is its one home.
8
+ *
9
+ * Takes the instance id as a string rather than an InstanceConfig, because liveFeed has already
10
+ * stripped a bound view's /{namespace} suffix down to the raw id. undefined is accepted so the
11
+ * sites holding a nullable instance produce byte-identical keys to the ones they used before.
12
+ */
13
+ export declare const namespacesKey: (instanceId: string | undefined) => readonly [string | undefined, "namespaces"];
14
+ /**
15
+ * The shared namespace inventory (feature graph-namespaces): one cache row and one poll, read by
16
+ * the app shell, the namespace scope, the Connect panel and each registered instance's health row.
17
+ *
18
+ * The inventory is Fallen-8-level, so it is keyed by the RAW instance id rather than per namespace,
19
+ * and every observer of that key rides one request instead of adding its own. It was four
20
+ * definitions of the same query before, agreeing on the key, the poll and the retry and disagreeing
21
+ * on when to ask.
22
+ *
23
+ * `enabled` NARROWS and never widens: it is ANDed with the instance being present, so no caller can
24
+ * hand listNamespaces a null. Each site's own predicate stays that site's business and is passed
25
+ * in, because react-query takes the fetch decision from whichever observer is mounted, and two of
26
+ * the four are the ONLY observer of this key on the routes they render on. Their gates therefore
27
+ * decide whether a request happens at all, not merely when, which is why they are not defaults:
28
+ * the app shell is alone on the routes that hang off the root rather than off a namespace, and an
29
+ * instance health row renders for every registered instance including the ones nothing else
30
+ * observes.
31
+ */
32
+ export declare function useNamespaces(instance: InstanceConfig | null, options?: {
33
+ enabled?: boolean;
34
+ }): import("@tanstack/react-query").UseQueryResult<NoInfer<import("../api/types").NamespacesResponse | null>, Error>;
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-bm1ERcEP.js";
1
+ import { m as s } from "./index-CvTaRCl2.js";
2
2
  var c = Object.defineProperty, a = Object.getOwnPropertyDescriptor, p = Object.getOwnPropertyNames, g = Object.prototype.hasOwnProperty, l = (t, e, o, i) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let n of p(e))
@@ -1,4 +1,4 @@
1
- import { m as r } from "./index-bm1ERcEP.js";
1
+ import { m as r } from "./index-CvTaRCl2.js";
2
2
  var m = Object.defineProperty, c = Object.getOwnPropertyDescriptor, l = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, p = (t, e, o, i) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let n of l(e))
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-bm1ERcEP.js";
1
+ import { m as l } from "./index-CvTaRCl2.js";
2
2
  var i = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, s = Object.prototype.hasOwnProperty, d = (n, e, r, o) => {
3
3
  if (e && typeof e == "object" || typeof e == "function")
4
4
  for (let t of u(e))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fallen-8/studio",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "description": "F8 Studio - browser frontend for Fallen-8 instances, and its graph canvas as a standalone component",
5
5
  "license": "MIT",
6
6
  "author": "Henning Rauch",