okno 1.0.0-beta.39 → 1.0.0-beta.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.
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Instant-mode runtime — the body of the `okno:instant` virtual module.
3
+ *
4
+ * In instant mode content is NOT baked into the build: the generated
5
+ * `okno:pages` / `okno:globals` / `okno:collections` / `okno:strings` modules
6
+ * export lazy proxies from this file that read the CURRENT request's snapshot
7
+ * (put in AsyncLocalStorage by the injected middleware) and run the exact same
8
+ * materialization the baked modules would. That pipeline (localize → resolve
9
+ * refs + enums → wrap) now lives ONCE in the framework-agnostic
10
+ * `engine/materialize.ts` — this file is the instant-only shell around it: the
11
+ * request source (ALS), the snapshot fetch/cache, and the lazy proxies. Same
12
+ * public API, different content source. See docs/instant.md + docs/instant-unification.md.
13
+ *
14
+ * Module-state discipline: `okno:runtime` (wrap.js) holds shared state (image
15
+ * map, routes), so this module never imports it — the generated modules import
16
+ * both and pass the wrap functions in as `deps`. One runtime instance, no
17
+ * duplicated state.
18
+ *
19
+ * Fail-soft: no snapshot (first request ever + fetch down) → accessors render
20
+ * as empty placeholders (`wrap(null)`), never a crash. Last-good snapshot is
21
+ * kept across fetch failures.
22
+ *
23
+ * Self-contained by contract: the only import here is `node:async_hooks` (a
24
+ * builtin the consumer resolves). `engine/materialize.ts` is INLINED into
25
+ * dist/runtime/instant.js by the bundler (single importer), so this file stays
26
+ * a self-contained `okno:instant` module body — no relative import a consumer
27
+ * can't resolve. See engine/materialize.ts header.
28
+ */
29
+ import { type MaterializeDeps, type Snapshot, type StringsDeps } from "../engine/materialize.ts";
30
+ /** The `okno:instant` snapshot envelope: the materializer's {@link Snapshot}
31
+ * plus the transport tag the R2 object carries. */
32
+ export type InstantSnapshot = Snapshot & {
33
+ v: 1;
34
+ /** Every file under `okno/files/**` at the published commit → its git blob
35
+ * sha. No bytes. Written by the backend generator; read by the media branch
36
+ * below. Absent on snapshots written before tier 1.5. */
37
+ media?: Record<string, string>;
38
+ };
39
+ export type InstantDeps = MaterializeDeps;
40
+ export type InstantStringsDeps = StringsDeps;
41
+ /** Middleware: run `fn` (the rest of the request) with `snap` as the content. */
42
+ export declare function __oknoInstantRun<T>(snap: InstantSnapshot, fn: () => T): T;
43
+ export declare function __oknoInstantLoad(url: string): Promise<InstantSnapshot | null>;
44
+ /**
45
+ * okno's injected instant middleware (the body of `okno:instant-middleware`):
46
+ * load the request's snapshot, then serve it as ISR-like SSR. `context` is the
47
+ * framework request context (Astro `APIContext` — `.request`), `next` renders
48
+ * the rest of the pipeline inside the snapshot's AsyncLocalStorage scope.
49
+ */
50
+ export declare function __oknoInstantMiddleware(url: string, apiUrl: string, context: {
51
+ request?: Request;
52
+ } | undefined, next: () => Promise<Response> | Response): Promise<Response>;
53
+ export declare function __oknoInstantPage(name: string, fields: unknown, deps: InstantDeps): any;
54
+ export declare function __oknoInstantGlobal(name: string, fields: unknown, deps: InstantDeps): any;
55
+ export declare function __oknoInstantCollection(name: string, fields: unknown, flags: {
56
+ drafts: boolean;
57
+ scheduling: boolean;
58
+ }, deps: InstantDeps): any[];
59
+ export declare function __oknoInstantStrings(slots: unknown, def: unknown, deps: InstantStringsDeps): any;
60
+ //# sourceMappingURL=instant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instant.d.ts","sourceRoot":"","sources":["../../src/runtime/instant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,EAIN,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,MAAM,0BAA0B,CAAA;AAEjC;oDACoD;AACpD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG;IACxC,CAAC,EAAE,CAAC,CAAA;IACJ;;8DAE0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,WAAW,G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= /* @__PURE__ */ new Map()), o.has(e) || o.set(e, n()), o.get(e);
6
+ }
7
+ const D = /^[a-z]{2,3}(-[a-z]{4})?(-([a-z]{2}|[0-9]{3}))?$/i;
8
+ function v(t) {
9
+ const e = t.schema?.locales?.supported;
10
+ if (!Array.isArray(e) || e.length === 0) return null;
11
+ const n = e.map((o) => typeof o == "string" ? o : o?.id).filter((o) => typeof o == "string");
12
+ return n.length ? new Set(n) : null;
13
+ }
14
+ const R = (t, e) => e ? e.has(t) : D.test(t);
15
+ function z(t, e) {
16
+ return g(t, `locales:${e}`, () => {
17
+ const n = v(t), o = /* @__PURE__ */ new Set();
18
+ for (const s of Object.keys(t.entries)) {
19
+ const r = s.split("/");
20
+ r[0] === e && r.length === 3 && R(r[1], n) && o.add(r[1]);
21
+ }
22
+ return [...o];
23
+ });
24
+ }
25
+ function A(t) {
26
+ return g(t, "locales:collections", () => {
27
+ const e = /* @__PURE__ */ new Set();
28
+ for (const n of Object.values(t.collections))
29
+ for (const o of n) for (const s of Object.keys(o.locales ?? {})) e.add(s);
30
+ return [...e];
31
+ });
32
+ }
33
+ function H(t, e) {
34
+ return g(t, "ns", () => {
35
+ const n = {};
36
+ for (const [o, s] of Object.entries(t.collections))
37
+ n[o] = s.map((r) => r.locales ? e.localize(r.record, r.locales) : r.record);
38
+ return n;
39
+ });
40
+ }
41
+ function S(t, e) {
42
+ return g(t, "resolvedNs", () => {
43
+ const n = t.schema?.collections ?? {}, o = {};
44
+ for (const s of Object.keys(t.collections)) {
45
+ const r = n[s] ?? {};
46
+ o[s] = k(
47
+ t,
48
+ s,
49
+ r.fields,
50
+ { drafts: r.drafts !== !1, scheduling: r.scheduling !== !1 },
51
+ e
52
+ );
53
+ }
54
+ return o;
55
+ });
56
+ }
57
+ function M(t, e, n, o) {
58
+ const s = t.entries[`${e}/${n}`], r = z(t, e);
59
+ if (s === void 0) return { data: null, locales: r };
60
+ if (r.length === 0) return { data: s, locales: r };
61
+ const a = {};
62
+ for (const l of r) {
63
+ const u = t.entries[`${e}/${l}/${n}`];
64
+ u !== void 0 && (a[l] = u);
65
+ }
66
+ return { data: o.localize(s, a), locales: r };
67
+ }
68
+ function $(t, e, n, o, s) {
69
+ return g(t, `${e}:${n}`, () => {
70
+ const { data: r, locales: a } = M(t, e, n, s);
71
+ if (r === null) return s.wrap(null, n);
72
+ const l = o ? s.resolveEnums(s.resolveRefs(r, o, S(t, s), a), o, a) : r;
73
+ return s.wrap(l, n);
74
+ });
75
+ }
76
+ function k(t, e, n, o, s) {
77
+ return g(t, `collection:${e}`, () => {
78
+ const r = t.collections[e] ?? [], a = A(t), l = H(t, s);
79
+ return r.filter(
80
+ (c) => (!o.drafts || c.record.status !== "draft") && (!o.scheduling || s.visible(c.record))
81
+ ).map((c, f) => {
82
+ const i = c.locales ? s.localize(c.record, c.locales) : c.record, h = n ? s.resolveEnums(s.resolveRefs(i, n, l, a), n, a) : i;
83
+ return s.wrap(h, `${e}.${c.slug}`, `${e}.${f}`);
84
+ });
85
+ });
86
+ }
87
+ function N(t, e, n, o) {
88
+ return g(t, "strings", () => {
89
+ const s = o.expand(t.entries.strings ?? {}), r = v(t), a = {};
90
+ for (const u of Object.keys(t.entries)) {
91
+ const c = u.match(/^strings\/(.+)$/);
92
+ c && R(c[1], r) && (a[c[1]] = o.expand(t.entries[u]));
93
+ }
94
+ const l = Object.keys(a).length ? o.localize(s, a) : s;
95
+ return o.make(l, e, n);
96
+ });
97
+ }
98
+ const I = new j();
99
+ function P(t, e) {
100
+ return I.run(t, e);
101
+ }
102
+ const w = () => I.getStore() ?? null;
103
+ let d = null;
104
+ const G = 3e3;
105
+ async function K(t) {
106
+ if (d?.url === t && Date.now() - d.at < G) return d.snap;
107
+ try {
108
+ const e = {};
109
+ d?.url === t && d.etag && (e["If-None-Match"] = d.etag);
110
+ const n = await fetch(t, { headers: e });
111
+ if (n.status === 304 && d?.url === t)
112
+ return d.at = Date.now(), d.snap;
113
+ if (!n.ok) throw new Error(`snapshot fetch: ${n.status}`);
114
+ const o = await n.json();
115
+ return d = { url: t, etag: n.headers.get("etag"), snap: o, at: Date.now() }, o;
116
+ } catch (e) {
117
+ return console.error("[okno] instant:", e instanceof Error ? e.message : e), d?.url === t ? d.snap : null;
118
+ }
119
+ }
120
+ const T = "public, max-age=1, stale-while-revalidate=86400", U = "public, s-maxage=31536000, immutable";
121
+ function O() {
122
+ const t = globalThis.caches;
123
+ return t && typeof t == "object" && "default" in t ? t.default : null;
124
+ }
125
+ function F(t, e) {
126
+ const n = new URL(t);
127
+ return n.searchParams.set("__okno_v", e), new Request(n.toString());
128
+ }
129
+ const W = (t) => (t.headers.get("content-type") ?? "").includes("text/html"), b = "/okno/files/", q = "public, max-age=60";
130
+ function B(t) {
131
+ const e = t.split("/").filter(Boolean), n = e[e.length - 2];
132
+ return n && n.startsWith("prj_") ? n : null;
133
+ }
134
+ async function X(t, e, n, o) {
135
+ if (o.method !== "GET" && o.method !== "HEAD") return null;
136
+ let s;
137
+ try {
138
+ s = new URL(o.url).pathname;
139
+ } catch {
140
+ return null;
141
+ }
142
+ if (!s.startsWith(b)) return null;
143
+ let r;
144
+ try {
145
+ r = "files/" + decodeURIComponent(s.slice(b.length));
146
+ } catch {
147
+ return null;
148
+ }
149
+ const a = t.media?.[r];
150
+ if (!a) return null;
151
+ const l = O(), u = new Request(`https://okno.invalid/media/${a}`);
152
+ if (l) {
153
+ const f = await l.match(u).catch(() => {
154
+ });
155
+ if (f) return p(f);
156
+ }
157
+ const c = B(e);
158
+ if (!c) return null;
159
+ try {
160
+ const f = await fetch(
161
+ `${n.replace(/\/$/, "")}/media/${c}/${a}?path=${encodeURIComponent(r)}`
162
+ );
163
+ if (!f.ok) return null;
164
+ const i = new Response(f.body, {
165
+ status: 200,
166
+ headers: {
167
+ "Content-Type": f.headers.get("content-type") ?? "application/octet-stream",
168
+ // The stored copy may sit at the edge for a while; the client copy
169
+ // gets the short header from withMediaHeaders.
170
+ "Cache-Control": "public, max-age=31536000"
171
+ }
172
+ });
173
+ if (l) {
174
+ const h = i.clone();
175
+ return await l.put(u, i).catch(() => {
176
+ }), p(h);
177
+ }
178
+ return p(i);
179
+ } catch {
180
+ return null;
181
+ }
182
+ }
183
+ function p(t) {
184
+ const e = new Headers(t.headers);
185
+ return e.set("Cache-Control", q), new Response(t.body, { status: t.status, statusText: t.statusText, headers: e });
186
+ }
187
+ function y(t, e) {
188
+ const n = new Headers(t.headers);
189
+ return n.set("ETag", e), n.set("Cache-Control", T), new Response(t.body, { status: t.status, statusText: t.statusText, headers: n });
190
+ }
191
+ async function Q(t, e, n, o) {
192
+ const s = await K(t);
193
+ if (!s) return o();
194
+ const r = n?.request;
195
+ if (r) {
196
+ const h = await X(s, t, e, r);
197
+ if (h) return h;
198
+ }
199
+ const a = r?.method ?? "GET", l = a === "GET" || a === "HEAD", u = `W/"${s.version}"`;
200
+ if (l && r && r.headers.get("if-none-match") === u)
201
+ return new Response(null, { status: 304, headers: { ETag: u, "Cache-Control": T } });
202
+ const c = l ? O() : null, f = c && r ? F(r.url, s.version) : null;
203
+ if (c && f) {
204
+ const h = await c.match(f);
205
+ if (h) return y(h, u);
206
+ }
207
+ const i = await P(s, o);
208
+ if (l && i.status === 200 && W(i)) {
209
+ if (c && f) {
210
+ const h = new Headers(i.headers);
211
+ h.set("ETag", u), h.set("Cache-Control", U);
212
+ const _ = new Response(i.body, { status: i.status, statusText: i.statusText, headers: h }), x = _.clone(), C = n?.waitUntil, L = c.put(f, _).catch(() => {
213
+ });
214
+ return typeof C == "function" && C(L), y(x, u);
215
+ }
216
+ return y(i, u);
217
+ }
218
+ return i;
219
+ }
220
+ function m(t, e) {
221
+ return new Proxy(e, {
222
+ get(n, o) {
223
+ const s = t(), r = Reflect.get(s, o);
224
+ return typeof r == "function" ? r.bind(s) : r;
225
+ },
226
+ has: (n, o) => Reflect.has(t(), o),
227
+ ownKeys: () => Reflect.ownKeys(t()),
228
+ getOwnPropertyDescriptor(n, o) {
229
+ const s = Reflect.getOwnPropertyDescriptor(t(), o);
230
+ return s && { ...s, configurable: !0 };
231
+ }
232
+ });
233
+ }
234
+ function V(t, e, n) {
235
+ return m(() => {
236
+ const o = w();
237
+ return o ? $(o, "pages", t, e, n) : n.wrap(null, t);
238
+ }, {});
239
+ }
240
+ function Y(t, e, n) {
241
+ return m(() => {
242
+ const o = w();
243
+ return o ? $(o, "globals", t, e, n) : n.wrap(null, t);
244
+ }, {});
245
+ }
246
+ function Z(t, e, n, o) {
247
+ return m(() => {
248
+ const s = w();
249
+ return s ? k(s, t, e, n, o) : [];
250
+ }, []);
251
+ }
252
+ function tt(t, e, n) {
253
+ return m(() => {
254
+ const o = w();
255
+ return o ? N(o, t, e, n) : n.make({}, t, e);
256
+ }, {});
257
+ }
258
+ export {
259
+ Z as __oknoInstantCollection,
260
+ Y as __oknoInstantGlobal,
261
+ K as __oknoInstantLoad,
262
+ Q as __oknoInstantMiddleware,
263
+ V as __oknoInstantPage,
264
+ P as __oknoInstantRun,
265
+ tt as __oknoInstantStrings
266
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"wrap.d.ts","sourceRoot":"","sources":["../../src/runtime/wrap.ts"],"names":[],"mappings":"AAgCA;0DAC0D;AAC1D,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAElE;AAWD;oDACoD;AACpD,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CASrD;AA6BD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,GAAE,MAAmB,GAAG,OAAO,CAQ7E;AAiHD;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAChD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA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,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,WAAW,GAAG,IAAI,CAQ9E;AAED;;+EAE+E;AAC/E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAS1E;AA0ID;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,GAAG,IAAI,CAqDtE;AAuGD;2EAC2E;AAC3E,wBAAgB,mBAAmB,IAAI,IAAI,CAK1C"}
@@ -71,12 +71,12 @@ function j(t, r = "") {
71
71
  const o = r.split(".").pop() ?? "";
72
72
  return !o || K.has(o) ? "" : J(o);
73
73
  }
74
- return typeof t != "object" ? String(t) : g(t) ? t.text ?? "" : W(t) ? t.name ?? "" : "";
74
+ return typeof t != "object" ? String(t) : p(t) ? t.text ?? "" : W(t) ? t.name ?? "" : "";
75
75
  }
76
- function p(t) {
76
+ function g(t) {
77
77
  return typeof t == "object" && t !== null && !Array.isArray(t) && "src" in t;
78
78
  }
79
- function g(t) {
79
+ function p(t) {
80
80
  return typeof t == "object" && t !== null && !Array.isArray(t) && "url" in t && "text" in t && "external" in t;
81
81
  }
82
82
  function W(t) {
@@ -111,7 +111,7 @@ function bt(t) {
111
111
  }
112
112
  return r;
113
113
  }
114
- const w = "string:", F = { slots: {} };
114
+ const S = "string:", F = { slots: {} };
115
115
  function G(t, r) {
116
116
  try {
117
117
  return new Intl.PluralRules(t || void 0).select(r);
@@ -154,7 +154,7 @@ function b(t, r = "", o = F) {
154
154
  const s = { __raw: t, __path: r };
155
155
  return new Proxy(s, {
156
156
  get(n, e) {
157
- if (e === "data-okno") return w + n.__path;
157
+ if (e === "data-okno") return S + n.__path;
158
158
  if (e === Symbol.toPrimitive || e === "toString" || e === "valueOf")
159
159
  return () => j(n.__raw, n.__path);
160
160
  if (e === Symbol.iterator) {
@@ -168,7 +168,7 @@ function b(t, r = "", o = F) {
168
168
  if (e === "onedit")
169
169
  return (u) => {
170
170
  M();
171
- const l = w + n.__path;
171
+ const l = S + n.__path;
172
172
  return _.has(l) || _.set(l, /* @__PURE__ */ new Set()), _.get(l).add(u), () => {
173
173
  _.get(l)?.delete(u), _.get(l)?.size === 0 && _.delete(l);
174
174
  };
@@ -196,7 +196,7 @@ function b(t, r = "", o = F) {
196
196
  },
197
197
  getOwnPropertyDescriptor(n, e) {
198
198
  if (e === "data-okno")
199
- return { value: w + n.__path, enumerable: !0, configurable: !0 };
199
+ return { value: S + n.__path, enumerable: !0, configurable: !0 };
200
200
  },
201
201
  has(n, e) {
202
202
  if (e === "data-okno" || e === Symbol.toPrimitive || e === "toString") return !0;
@@ -216,7 +216,7 @@ function m(t, r, o) {
216
216
  if (e === "exists") return n.__raw !== null && n.__raw !== void 0;
217
217
  if (e === "value" && (n.__raw === null || typeof n.__raw != "object"))
218
218
  return n.__raw;
219
- if (e === "image" && p(n.__raw)) {
219
+ if (e === "image" && g(n.__raw)) {
220
220
  const c = n.__raw;
221
221
  return {
222
222
  src: z(c.src),
@@ -226,7 +226,9 @@ function m(t, r, o) {
226
226
  "data-okno": n.__path
227
227
  };
228
228
  }
229
- if (e === "href" && !g(n.__raw) && !p(n.__raw)) {
229
+ if (e === "slug" && typeof n.__raw?.slug == "string")
230
+ return n.__raw.slug;
231
+ if (e === "href" && !p(n.__raw) && !g(n.__raw)) {
230
232
  const c = n.__raw, u = n.__path.split(".");
231
233
  if (c && typeof c == "object" && !Array.isArray(c) && !("href" in c) && u.length === 2) {
232
234
  const l = L[u[0]];
@@ -260,12 +262,12 @@ function m(t, r, o) {
260
262
  ) : m(u, n.__path);
261
263
  };
262
264
  const i = n.__raw, f = n.__path ? `${n.__path}.${String(e)}` : String(e);
263
- if (g(i) && typeof e == "string") {
265
+ if (p(i) && typeof e == "string") {
264
266
  if (e === "href") return i.url ?? "";
265
267
  if (e === "target" && i.external) return "_blank";
266
268
  if (e === "rel" && i.external) return "noopener noreferrer";
267
269
  }
268
- if (p(i) && typeof e == "string" && e !== "focal" && e in i)
270
+ if (g(i) && typeof e == "string" && e !== "focal" && e in i)
269
271
  return i[e];
270
272
  if (i != null && typeof i != "object") {
271
273
  const c = i[e];
@@ -280,7 +282,7 @@ function m(t, r, o) {
280
282
  // For spread: expose data-okno, plus all keys for file objects (src, alt, width, height, etc.)
281
283
  ownKeys(n) {
282
284
  const e = n.__raw, i = n.__drag != null ? ["data-okno-item"] : [];
283
- return p(e) ? [...Object.keys(e).filter((f) => f !== "focal"), "data-okno", ...i] : g(e) ? e.external ? ["href", "target", "rel", "data-okno", ...i] : ["href", "data-okno", ...i] : ["data-okno", ...i];
285
+ return g(e) ? [...Object.keys(e).filter((f) => f !== "focal"), "data-okno", ...i] : p(e) ? e.external ? ["href", "target", "rel", "data-okno", ...i] : ["href", "data-okno", ...i] : ["data-okno", ...i];
284
286
  },
285
287
  getOwnPropertyDescriptor(n, e) {
286
288
  if (e === "data-okno")
@@ -292,13 +294,13 @@ function m(t, r, o) {
292
294
  if (e === "data-okno-item")
293
295
  return n.__drag == null ? void 0 : { value: n.__drag, enumerable: !0, configurable: !0 };
294
296
  const i = n.__raw;
295
- if (p(i) && typeof e == "string" && e in i && e !== "focal")
297
+ if (g(i) && typeof e == "string" && e in i && e !== "focal")
296
298
  return {
297
299
  value: i[e],
298
300
  enumerable: !0,
299
301
  configurable: !0
300
302
  };
301
- if (g(i) && (e === "href" || i.external && (e === "target" || e === "rel")))
303
+ if (p(i) && (e === "href" || i.external && (e === "target" || e === "rel")))
302
304
  return { value: void 0, enumerable: !0, configurable: !0 };
303
305
  },
304
306
  has(n, e) {
@@ -332,7 +334,7 @@ function Z(t, r) {
332
334
  }
333
335
  return t;
334
336
  }
335
- function pt(t, r, o, s = []) {
337
+ function gt(t, r, o, s = []) {
336
338
  if (!t || typeof t != "object" || Array.isArray(t) || !r) return t;
337
339
  const n = Object.keys(r).filter(
338
340
  (c) => r[c]?.type === "reference" && typeof r[c]?.collection == "string"
@@ -356,8 +358,8 @@ function pt(t, r, o, s = []) {
356
358
  if (typeof k != "string" || !k) return null;
357
359
  const E = y.get(k);
358
360
  return E === void 0 ? null : { __oknoRef: { path: `${h.collection}.${k}`, data: Z(E, u) } };
359
- }, S = c[a];
360
- l[a] = Array.isArray(S) ? S.map($).filter(Boolean) : $(S);
361
+ }, w = c[a];
362
+ l[a] = Array.isArray(w) ? w.map($).filter(Boolean) : $(w);
361
363
  }
362
364
  return l;
363
365
  }, f = i(t, void 0);
@@ -367,7 +369,7 @@ function pt(t, r, o, s = []) {
367
369
  }
368
370
  return f;
369
371
  }
370
- function gt(t, r, o = []) {
372
+ function pt(t, r, o = []) {
371
373
  if (!t || typeof t != "object" || Array.isArray(t) || !r) return t;
372
374
  const s = Object.keys(r).filter(
373
375
  (f) => r[f]?.type === "enum" && Array.isArray(r[f]?.options)
@@ -581,8 +583,8 @@ export {
581
583
  vt as __oknoInitStructure,
582
584
  dt as __oknoLocalize,
583
585
  mt as __oknoMakeStrings,
584
- gt as __oknoResolveEnums,
585
- pt as __oknoResolveRefs,
586
+ pt as __oknoResolveEnums,
587
+ gt as __oknoResolveRefs,
586
588
  yt as __oknoSetImages,
587
589
  _t as __oknoSetRoutes,
588
590
  D as __oknoUnitIndex,
@@ -161,6 +161,11 @@ export interface OknoConfig {
161
161
  * persisted; a reload resets). For showcasing okno on a marketing site —
162
162
  * see `docs/demo-mode.md`. A demo build never reaches the backend. */
163
163
  demo?: boolean;
164
+ /** Base URL the instant-mode snapshot is served from (default:
165
+ * "https://snap.okno.build"). Only read when okno/project.json has
166
+ * `"instant": true` — see docs/instant.md. Override for self-hosted or
167
+ * local testing of the hot layer. */
168
+ instantUrl?: string;
164
169
  /** Localization configuration */
165
170
  locales?: {
166
171
  /** Default/base locale code (e.g. "en") */
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/types/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE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
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AA8DpD,wBAAgB,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,MAAM,CAqbpD"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAClC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAsEpD,wBAAgB,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,MAAM,CA8dpD"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "okno",
3
3
  "description": "Git-backed CMS with live editing for any Vite framework",
4
4
  "author": "Gabriel Uhlíř",
5
- "version": "1.0.0-beta.39",
5
+ "version": "1.0.0-beta.41",
6
6
  "homepage": "https://okno.build",
7
7
  "type": "module",
8
8
  "types": "./dist/index.d.ts",