okno 1.0.0-beta.42 → 1.0.0-beta.43
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/astro/index.js +1 -1
- package/dist/bake.d.ts +17 -8
- package/dist/bake.d.ts.map +1 -1
- package/dist/codegen/generate.d.ts.map +1 -1
- package/dist/codegen/modules.d.ts.map +1 -1
- package/dist/dispatch-EtWM6-GP.js +989 -0
- package/dist/editor/index.js +16607 -16600
- package/dist/engine/materialize.d.ts +5 -1
- package/dist/engine/materialize.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/next/index.js +53 -53
- package/dist/{plugin-sAwHmkG8.js → plugin-DgYy2aTI.js} +9 -9
- package/dist/runtime/instant.js +129 -124
- package/dist/runtime/wrap.d.ts +28 -1
- package/dist/runtime/wrap.d.ts.map +1 -1
- package/dist/runtime/wrap.js +396 -370
- package/dist/types/fields.d.ts +11 -2
- package/dist/types/fields.d.ts.map +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
- package/src/runtime/wrap.ts +132 -13
- package/dist/dispatch-Bj6gNKBL.js +0 -973
package/dist/astro/index.js
CHANGED
package/dist/bake.d.ts
CHANGED
|
@@ -4,14 +4,23 @@
|
|
|
4
4
|
* ref). Baking `@HEAD` breaks the editor (HEAD isn't a writable branch), so on
|
|
5
5
|
* detachment fall back to the host's branch env var, then "main". */
|
|
6
6
|
export declare function bakeBranch(): string;
|
|
7
|
-
/** Bake the project's repo identity (`owner/repo@branch`, mirroring
|
|
8
|
-
* X-Okno-Repo header) from the app's git origin + current branch
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
|
|
7
|
+
/** Bake the project's repo identity (`owner/repo[#repoId]@branch`, mirroring
|
|
8
|
+
* the X-Okno-Repo header) from the app's git origin + current branch, plus the
|
|
9
|
+
* immutable repo ID from `<dir>/project.json` when present. The ID is the part
|
|
10
|
+
* that survives a GitHub transfer/rename — the git origin URL goes stale the
|
|
11
|
+
* moment a repo moves (push redirects hide it), which is exactly the failure
|
|
12
|
+
* the ID exists to absorb. A deployed site is exactly one repo, so the editor
|
|
13
|
+
* adopts this and skips the picker on live. Returns null outside a GitHub
|
|
14
|
+
* checkout (no origin / no git) — the editor then falls back to the picker.
|
|
15
|
+
* git resolves the repo from any cwd inside the tree, so process.cwd() (the
|
|
16
|
+
* build's working dir, = the app dir even in a monorepo) is enough.
|
|
17
|
+
*
|
|
18
|
+
* The NAME part is ADVISORY, not authoritative: the hosted backend treats it
|
|
19
|
+
* as a lookup key and maps it to the repo's CURRENT location via its
|
|
20
|
+
* repo_names ledger (backend/src/lib/canonical.ts) — never make backend
|
|
21
|
+
* behavior depend on this string being current. The `#repoId` is the part
|
|
22
|
+
* that stays true. */
|
|
23
|
+
export declare function bakeRepoIdentity(oknoDir?: string): string | null;
|
|
15
24
|
/** Bake the monorepo root path — the build dir relative to the git root — so the
|
|
16
25
|
* hosted backend knows which subtree holds this project's `okno/`. "" at the repo
|
|
17
26
|
* root (single-project repo), "apps/site" in a monorepo. POSIX-normalized. */
|
package/dist/bake.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bake.d.ts","sourceRoot":"","sources":["../src/bake.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bake.d.ts","sourceRoot":"","sources":["../src/bake.ts"],"names":[],"mappings":"AAoBA;;;;sEAIsE;AACtE,wBAAgB,UAAU,IAAI,MAAM,CAWnC;AAiBD;;;;;;;;;;;;;;;uBAeuB;AACvB,wBAAgB,gBAAgB,CAAC,OAAO,SAAS,GAAG,MAAM,GAAG,IAAI,CAOhE;AAED;;+EAE+E;AAC/E,wBAAgB,YAAY,IAAI,MAAM,CAIrC"}
|
|
@@ -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,iBAqNhE"}
|
|
@@ -1 +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;uDACuD;AACvD,wBAAgB,uBAAuB,IAAI,MAAM,GAAG,IAAI,CAMvD;AAED;;;mCAGmC;AACnC,wBAAgB,kBAAkB,IAAI,MAAM,CAO3C;AA+CD,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAIrE;AAED;;qDAEqD;AACrD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG;IACtD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IAChC,oFAAoF;IACpF,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACtB,wEAAwE;IACxE,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC1B,CAqBA;AAwBD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAErD;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEtD;AAMD;;;;;+EAK+E;AAC/E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAoD1D;AAED;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EA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