@saastro/studio 0.7.1 → 0.8.0
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/chunk-4L5C226B.js +71 -0
- package/dist/chunk-4L5C226B.js.map +1 -0
- package/dist/chunk-FGYTDBZU.js +13812 -0
- package/dist/chunk-FGYTDBZU.js.map +1 -0
- package/dist/chunk-JMSDBWL2.js +28 -0
- package/dist/chunk-JMSDBWL2.js.map +1 -0
- package/dist/chunk-K7DTYPRE.js +1348 -0
- package/dist/chunk-K7DTYPRE.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/doctor.d.ts +15 -3
- package/dist/doctor.js +103 -2
- package/dist/doctor.js.map +1 -1
- package/dist/image/index.js +1 -0
- package/dist/image/index.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/integration/index.js +4 -3
- package/dist/middleware/index.js +2 -1
- package/dist/middleware/index.js.map +1 -1
- package/dist/richtext/index.d.ts +63 -0
- package/dist/richtext/index.js +18 -0
- package/dist/richtext/index.js.map +1 -0
- package/dist/vite/index.js +3 -2
- package/package.json +21 -14
- package/src/RichText.astro +70 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
studioAutoWrap
|
|
3
|
+
} from "./chunk-K7DTYPRE.js";
|
|
4
|
+
|
|
5
|
+
// src/integration/index.ts
|
|
6
|
+
function saastro(options = {}) {
|
|
7
|
+
return {
|
|
8
|
+
name: "@saastro/studio",
|
|
9
|
+
hooks: {
|
|
10
|
+
"astro:config:setup": ({ updateConfig, addMiddleware }) => {
|
|
11
|
+
updateConfig({
|
|
12
|
+
vite: {
|
|
13
|
+
plugins: [studioAutoWrap(options)]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
addMiddleware({
|
|
17
|
+
entrypoint: "@saastro/studio/middleware",
|
|
18
|
+
order: "pre"
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
saastro
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-JMSDBWL2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/integration/index.ts"],"sourcesContent":["import type { AstroIntegration } from 'astro'\nimport studioAutoWrap from '../vite/index.js'\nimport type { StudioAutoWrapOptions } from '../vite/types.js'\n\nexport type SaastroStudioOptions = StudioAutoWrapOptions\n\n/**\n * Astro Integration for Saastro Studio.\n *\n * import saastro from '@saastro/studio'\n * export default defineConfig({\n * integrations: [saastro({ autoWrap: true })],\n * })\n *\n * This integration is sugar: it registers the underlying Vite plugin\n * (`@saastro/studio/vite`) so users only need one import. The plugin's\n * ordering correctness comes from using a `load` hook (which always runs\n * before any `transform`, including Astro's `.astro` compiler) — NOT\n * from where the integration slots itself in. See the comment block in\n * `../vite/index.ts` for the full rationale.\n *\n * The `@saastro/studio/vite` entry remains exported for sites that wired\n * the bare Vite plugin directly.\n */\nexport default function saastro(options: SaastroStudioOptions = {}): AstroIntegration {\n return {\n name: '@saastro/studio',\n hooks: {\n 'astro:config:setup': ({ updateConfig, addMiddleware }) => {\n updateConfig({\n vite: {\n plugins: [studioAutoWrap(options)],\n },\n })\n // SSR routes bypass Vite's `transformIndexHtml`, so the\n // <meta name=\"saastro:studio-version\"> tags would never land\n // in dynamic responses. The middleware patches the HTML\n // body server-side so the Hub overlay can read the protocol\n // version regardless of how the page is rendered.\n addMiddleware({\n entrypoint: '@saastro/studio/middleware',\n order: 'pre',\n })\n },\n },\n }\n}\n"],"mappings":";;;;;AAwBe,SAAR,QAAyB,UAAgC,CAAC,GAAqB;AACpF,SAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,MACL,sBAAsB,CAAC,EAAE,cAAc,cAAc,MAAM;AACzD,qBAAa;AAAA,UACX,MAAM;AAAA,YACJ,SAAS,CAAC,eAAe,OAAO,CAAC;AAAA,UACnC;AAAA,QACF,CAAC;AAMD,sBAAc;AAAA,UACZ,YAAY;AAAA,UACZ,OAAO;AAAA,QACT,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|