okno 1.0.0-beta.13 → 1.0.0-beta.14
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/codegen/generate.d.ts.map +1 -1
- package/dist/codegen/modules.d.ts +32 -0
- package/dist/codegen/modules.d.ts.map +1 -0
- package/dist/dispatch-C34WXMSB.js +1049 -0
- package/dist/index.js +1 -1
- package/dist/next/codegen.d.ts +26 -0
- package/dist/next/codegen.d.ts.map +1 -0
- package/dist/next/config.d.ts.map +1 -1
- package/dist/next/handler.d.ts +11 -4
- package/dist/next/handler.d.ts.map +1 -1
- package/dist/next/index.js +94 -53
- package/dist/plugin-DmiwHDt_.js +459 -0
- package/dist/vite/index.js +1 -1
- package/dist/vite/plugin.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/dispatch-bnmIdH8E.js +0 -759
- package/dist/plugin-DkXOrSVC.js +0 -721
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/codegen/generate.ts"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/codegen/generate.ts"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iBAoHhE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const IMAGE_MAP_SETUP = "__oknoSetImages(import.meta.glob(\"/okno/files/**/*.{png,jpg,jpeg,webp,avif,gif,svg,tiff}\", { eager: false }))";
|
|
2
|
+
/** The `okno:runtime` module body (the built `dist/runtime/wrap.js`), or null
|
|
3
|
+
* when it's missing (unbuilt tree — run `bun run build:pkg`). */
|
|
4
|
+
export declare function getRuntimeSource(): string | null;
|
|
5
|
+
/** The umbrella `okno:content` module: one import, all kinds namespaced
|
|
6
|
+
* (`import * as okno from "okno:content"` → okno.pages / .globals /
|
|
7
|
+
* .collections) + the UI-strings store (okno.strings). Pure re-export — the
|
|
8
|
+
* per-kind modules still work. */
|
|
9
|
+
export declare function buildContentModule(): string;
|
|
10
|
+
/** Build the framework-agnostic `okno:locales` module: ONE export, `locales` —
|
|
11
|
+
* an array of the configured languages (`{ id, name, slug, link(url) }`) with a
|
|
12
|
+
* `.default` property pointing at the base-locale entry. `link(url)` emits the
|
|
13
|
+
* entry's per-page hreflang `<link>` descriptor. Okno owns NO routing — the dev
|
|
14
|
+
* maps `locales` into their own framework (Astro `getStaticPaths`, the hreflang
|
|
15
|
+
* snippet, a switcher). The editor reads the same hreflang tags to switch. */
|
|
16
|
+
export declare function buildLocalesModule(oknoDir: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Build the `okno:strings` virtual module — the UI-strings store. The default
|
|
19
|
+
* locale lives flat in `okno/strings.ts` (a flat map of dot-path keys); each
|
|
20
|
+
* other locale's overrides sit in `okno/strings/<locale>.ts`. We expand the flat
|
|
21
|
+
* maps to nested trees, deep-merge each locale over the default (same machine as
|
|
22
|
+
* content localization), and wrap the result so `s.nav.home` reads, spreads the
|
|
23
|
+
* `string:nav.home` hook, and `.locale(code)` re-roots. See docs/strings-i18n.md.
|
|
24
|
+
*/
|
|
25
|
+
export declare function buildStringsModule(oknoDir: string): Promise<string>;
|
|
26
|
+
/** Build virtual module for okno:pages */
|
|
27
|
+
export declare function buildPagesModule(oknoDir: string, used?: Set<string>): Promise<string>;
|
|
28
|
+
/** Build virtual module for okno:collections — exports each collection as a named array */
|
|
29
|
+
export declare function buildCollectionsModule(oknoDir: string, used?: Set<string>, isBuild?: boolean): Promise<string>;
|
|
30
|
+
/** Build virtual module for okno:globals */
|
|
31
|
+
export declare function buildGlobalsModule(oknoDir: string, used?: Set<string>): Promise<string>;
|
|
32
|
+
//# sourceMappingURL=modules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../../src/codegen/modules.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,eAAe,oHACoF,CAAA;AAoBhH;kEACkE;AAClE,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAKhD;AAED;;;mCAGmC;AACnC,wBAAgB,kBAAkB,IAAI,MAAM,CAO3C;AA+GD;;;;;+EAK+E;AAC/E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAoD1D;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAsDzE;AAED,0CAA0C;AAC1C,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAmFtG;AAED,2FAA2F;AAC3F,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,EAAE,OAAO,UAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CA6H7H;AAED,4CAA4C;AAC5C,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAuExG"}
|