okno 1.0.0-beta.37 → 1.0.0-beta.39
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.d.ts +13 -0
- package/dist/astro/index.d.ts.map +1 -0
- package/dist/astro/index.js +15 -0
- package/dist/codegen/generate.d.ts.map +1 -1
- package/dist/codegen/modules.d.ts.map +1 -1
- package/dist/dispatch-BifB_3GO.js +955 -0
- package/dist/editor/index.js +16807 -15811
- package/dist/index.js +1 -1
- package/dist/init.d.ts +24 -4
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +167 -147
- package/dist/local/dispatch.d.ts.map +1 -1
- package/dist/next/index.js +1 -1
- package/dist/{plugin-CPb37kty.js → plugin-BdiBIiAv.js} +167 -139
- package/dist/runtime/wrap.d.ts +23 -0
- package/dist/runtime/wrap.d.ts.map +1 -1
- package/dist/runtime/wrap.js +344 -226
- package/dist/types/schema.d.ts +23 -12
- package/dist/types/schema.d.ts.map +1 -1
- package/dist/vite/index.js +1 -1
- package/dist/vite/plugin.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/runtime/wrap.ts +288 -33
- package/dist/dispatch-dIjAypRM.js +0 -934
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { OknoConfig } from "../types/schema.ts";
|
|
2
|
+
interface AstroIntegrationLike {
|
|
3
|
+
name: string;
|
|
4
|
+
hooks: {
|
|
5
|
+
"astro:config:setup"(opts: {
|
|
6
|
+
updateConfig(config: Record<string, unknown>): void;
|
|
7
|
+
injectScript(stage: "page" | "before-hydration" | "page-ssr" | "head-inline", code: string): void;
|
|
8
|
+
}): void;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function okno(config?: OknoConfig): AstroIntegrationLike;
|
|
12
|
+
export default okno;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/astro/index.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,UAAU,oBAAoB;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE;QACN,oBAAoB,CAAC,IAAI,EAAE;YAC1B,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;YACnD,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB,GAAG,UAAU,GAAG,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;SACjG,GAAG,IAAI,CAAA;KACR,CAAA;CACD;AAED,wBAAgB,IAAI,CAAC,MAAM,GAAE,UAAe,GAAG,oBAAoB,CAUlE;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { o as e } from "../plugin-BdiBIiAv.js";
|
|
2
|
+
function a(o = {}) {
|
|
3
|
+
return {
|
|
4
|
+
name: "okno",
|
|
5
|
+
hooks: {
|
|
6
|
+
"astro:config:setup"({ updateConfig: n, injectScript: t }) {
|
|
7
|
+
n({ vite: { plugins: [e(o)] } }), t("page", 'import "okno/boot"');
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
a as default,
|
|
14
|
+
a as okno
|
|
15
|
+
};
|
|
@@ -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,iBAoLhE"}
|
|
@@ -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;;;mCAGmC;AACnC,wBAAgB,kBAAkB,IAAI,MAAM,CAO3C;
|
|
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;AAuHD;;;;;+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,CAqFtG;AAED,2FAA2F;AAC3F,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,EAAE,OAAO,UAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAiJ7H;AAED,4CAA4C;AAC5C,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,GAAG,CAAC,MAAM,CAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAyExG"}
|