tempo-sdk 0.0.69 → 0.0.76
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/assets/index.js +3 -3
- package/dist/astro/asset-preview-client.js +2 -2
- package/dist/astro.js +24 -14
- package/dist/astro.js.map +1 -1
- package/dist/canvas/astro.d.ts +1 -1
- package/dist/canvas/astro.js +2 -2
- package/dist/canvas/editor.d.ts +15 -5
- package/dist/canvas/editor.js +13 -8
- package/dist/canvas/editor.js.map +1 -1
- package/dist/canvas/flutter-preview.d.ts +18 -0
- package/dist/canvas/flutter-preview.js +9 -0
- package/dist/canvas/flutter-preview.js.map +1 -0
- package/dist/canvas/index.d.ts +33 -2
- package/dist/canvas/index.js +1134 -26
- package/dist/canvas/index.js.map +1 -1
- package/dist/canvas/interact-projection.js +5 -4
- package/dist/canvas/parser.d.ts +142 -3
- package/dist/canvas/parser.js +14 -1
- package/dist/canvas/svelte.d.ts +1 -1
- package/dist/canvas/svelte.js +2 -2
- package/dist/canvas/vue.d.ts +74 -0
- package/dist/canvas/vue.js +264 -0
- package/dist/canvas/vue.js.map +1 -0
- package/dist/{chunk-6BSLP7P3.js → chunk-3W4CVWTK.js} +49 -7
- package/dist/chunk-3W4CVWTK.js.map +1 -0
- package/dist/chunk-5HIIF354.js +67 -0
- package/dist/chunk-5HIIF354.js.map +1 -0
- package/dist/chunk-5LUQSXSP.js +342 -0
- package/dist/chunk-5LUQSXSP.js.map +1 -0
- package/dist/{chunk-FE6TYCLF.js → chunk-5VIBKVFO.js} +2 -2
- package/dist/{chunk-FE6TYCLF.js.map → chunk-5VIBKVFO.js.map} +1 -1
- package/dist/{chunk-77DZCV5Z.js → chunk-CXIW4IKC.js} +2 -2
- package/dist/chunk-CYQE3TLC.js +37 -0
- package/dist/chunk-CYQE3TLC.js.map +1 -0
- package/dist/chunk-EGRHWZRV.js +1 -0
- package/dist/chunk-EGRHWZRV.js.map +1 -0
- package/dist/chunk-GCGRJTTS.js +285 -0
- package/dist/chunk-GCGRJTTS.js.map +1 -0
- package/dist/{chunk-EYKOOLPL.js → chunk-GKDDNDG3.js} +1039 -134
- package/dist/chunk-GKDDNDG3.js.map +1 -0
- package/dist/{chunk-KOSJXE4G.js → chunk-H6BQZOAW.js} +4 -3
- package/dist/chunk-HOBTDB6G.js +112 -0
- package/dist/chunk-HOBTDB6G.js.map +1 -0
- package/dist/{chunk-WTQQOLXM.js → chunk-R3RYGAPB.js} +1571 -1410
- package/dist/chunk-R3RYGAPB.js.map +1 -0
- package/dist/chunk-SGN7BDRE.js +16 -0
- package/dist/chunk-SGN7BDRE.js.map +1 -0
- package/dist/{chunk-F23JGM4U.js → chunk-UBTL6JUF.js} +6 -2
- package/dist/{chunk-F23JGM4U.js.map → chunk-UBTL6JUF.js.map} +1 -1
- package/dist/{chunk-2JRAG36X.js → chunk-WBMO4ZYO.js} +2 -2
- package/dist/chunk-WBMO4ZYO.js.map +1 -0
- package/dist/{chunk-K3EYTZLL.js → chunk-WTXOWQ7N.js} +3 -1
- package/dist/chunk-WTXOWQ7N.js.map +1 -0
- package/dist/{chunk-Q2A46HHW.js → chunk-XFPFWTWX.js} +276 -43
- package/dist/chunk-XFPFWTWX.js.map +1 -0
- package/dist/{chunk-PXDTH36X.js → chunk-Y72PIE3I.js} +212 -20
- package/dist/chunk-Y72PIE3I.js.map +1 -0
- package/dist/{chunk-6IR5JY6W.js → chunk-YECMP34I.js} +41 -9
- package/dist/chunk-YECMP34I.js.map +1 -0
- package/dist/{chunk-NSKYOKG5.js → chunk-ZXC7SZIT.js} +278 -26
- package/dist/chunk-ZXC7SZIT.js.map +1 -0
- package/dist/{controls-reader-SNMI2UY7.js → controls-reader-Z7OQWYWQ.js} +4 -3
- package/dist/{controls-reader-SNMI2UY7.js.map → controls-reader-Z7OQWYWQ.js.map} +1 -1
- package/dist/expo/plugin.cjs +301 -58
- package/dist/expo/plugin.cjs.map +1 -1
- package/dist/expo/plugin.js +1 -1
- package/dist/expo-babel-plugin.cjs +301 -58
- package/dist/expo-babel-plugin.cjs.map +1 -1
- package/dist/expo-babel-plugin.js +1 -1
- package/dist/flutter-preview-path.d.ts +9 -0
- package/dist/flutter-preview-path.js +16 -0
- package/dist/flutter-preview-path.js.map +1 -0
- package/dist/index.d.ts +16 -15
- package/dist/index.js +9 -6
- package/dist/nextjs/plugin.cjs +46 -5
- package/dist/nextjs/plugin.cjs.map +1 -1
- package/dist/nextjs/plugin.js +1 -1
- package/dist/nextjs-loader.cjs +343 -68
- package/dist/nextjs-loader.cjs.map +1 -1
- package/dist/nextjs.cjs +48 -6
- package/dist/nextjs.cjs.map +1 -1
- package/dist/nextjs.d.cts +9 -1
- package/dist/nextjs.d.ts +9 -1
- package/dist/nextjs.js +1 -1
- package/dist/nuxt/runtime/identity.d.ts +24 -0
- package/dist/nuxt/runtime/identity.js +18 -0
- package/dist/nuxt/runtime/identity.js.map +1 -0
- package/dist/nuxt.d.ts +102 -0
- package/dist/nuxt.js +5673 -0
- package/dist/nuxt.js.map +1 -0
- package/dist/{storyboard-4YdTYq_e.d.ts → storyboard-CMJVBSXn.d.ts} +9 -3
- package/dist/svelte.d.ts +4 -2
- package/dist/svelte.js +21 -88
- package/dist/svelte.js.map +1 -1
- package/dist/vue.d.ts +66 -0
- package/dist/vue.js +1403 -0
- package/dist/vue.js.map +1 -0
- package/package.json +48 -5
- package/dist/chunk-2JRAG36X.js.map +0 -1
- package/dist/chunk-6BSLP7P3.js.map +0 -1
- package/dist/chunk-6IR5JY6W.js.map +0 -1
- package/dist/chunk-EYKOOLPL.js.map +0 -1
- package/dist/chunk-K3EYTZLL.js.map +0 -1
- package/dist/chunk-NSKYOKG5.js.map +0 -1
- package/dist/chunk-PXDTH36X.js.map +0 -1
- package/dist/chunk-Q2A46HHW.js.map +0 -1
- package/dist/chunk-WTQQOLXM.js.map +0 -1
- /package/dist/{chunk-77DZCV5Z.js.map → chunk-CXIW4IKC.js.map} +0 -0
- /package/dist/{chunk-KOSJXE4G.js.map → chunk-H6BQZOAW.js.map} +0 -0
package/dist/vue.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { PluginOption, Plugin } from 'vite';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Vue-specific Tempo source annotation.
|
|
5
|
+
*
|
|
6
|
+
* Put `tempoVuePlugin()` before `vue()` in the Vite plugins. It only supplies
|
|
7
|
+
* filesystem/project identity and the Vite hook order; parsing and
|
|
8
|
+
* annotation remain isolated in the framework-focused @modules/vue-editor
|
|
9
|
+
* package. `tempoVueAppPlugins()` brings the app's own Vite plugins into
|
|
10
|
+
* Tempo's Vue canvas host.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
interface TempoVuePluginOptions {
|
|
14
|
+
/** Annotation identity root. Defaults to the process working directory. */
|
|
15
|
+
root?: string;
|
|
16
|
+
/** Allowed source boundary. Defaults to the package-manager workspace
|
|
17
|
+
* around `root`, else `root` (see defaultSourceRoot); host sidecars set
|
|
18
|
+
* this to the project root while annotations remain relative to the host
|
|
19
|
+
* root. */
|
|
20
|
+
sourceRoot?: string;
|
|
21
|
+
/** Override the normal TEMPO environment gate, primarily for tests. */
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
/** Directories whose `.vue` files are never annotated or registered, even
|
|
24
|
+
* inside the source boundary. The Nuxt sidecar lists its own root here:
|
|
25
|
+
* its `app.vue` and host page are canvas plumbing, not authored UI. */
|
|
26
|
+
exclude?: string[];
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Two Vite plugins around @vitejs/plugin-vue:
|
|
30
|
+
* - `pre` stamps the authored template (native elements get the four
|
|
31
|
+
* `data-tempo-*` stamps, component invocations a vnode-hook marker) at
|
|
32
|
+
* exact UTF-16 offsets of the raw file. It never touches `<script>`, so
|
|
33
|
+
* plugin-vue's template-only HMR (`rerender`) keeps working. Its transform
|
|
34
|
+
* is `order: "pre"`, which Vite runs ahead of every unordered transform, so
|
|
35
|
+
* only a plugin listed earlier that is also `order: "pre"` can rewrite a
|
|
36
|
+
* file before it (vue-router's `definePage`, vue-macros and markdown
|
|
37
|
+
* plugins are `enforce: "pre"` with unordered transforms).
|
|
38
|
+
* - `post` ends plugin-vue's compiled main module with the file's source
|
|
39
|
+
* registry record and module version record, so both run once per module
|
|
40
|
+
* evaluation (a `<script setup>` statement would run per instance).
|
|
41
|
+
*/
|
|
42
|
+
declare function tempoVuePlugin(options?: TempoVuePluginOptions): Plugin[];
|
|
43
|
+
interface TempoVueAppPluginsOptions {
|
|
44
|
+
/** The canvas host's Vite root (`tempo/`). */
|
|
45
|
+
root: string;
|
|
46
|
+
/** The folder holding the app's own vite.config. */
|
|
47
|
+
appRoot: string;
|
|
48
|
+
/** The host's `@vitejs/plugin-vue` factory, called only when the app's
|
|
49
|
+
* config has no plugin-vue of its own or cannot load. */
|
|
50
|
+
vue: () => PluginOption;
|
|
51
|
+
/** App plugin names (or name prefixes) the host leaves out, for a plugin
|
|
52
|
+
* the host config adds its own copy of after this call. */
|
|
53
|
+
exclude?: string[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* The app's own Vite plugins for Tempo's Vue canvas host, taken from the
|
|
57
|
+
* app's vite.config: auto-imports, auto-registered components, macros, the
|
|
58
|
+
* typed router, i18n, UnoCSS. The app's `@vitejs/plugin-vue` compiles its
|
|
59
|
+
* components with the options and position the app gave it; `vue` builds the
|
|
60
|
+
* host's own only when the app has none. List it after `...tempoVuePlugin()`,
|
|
61
|
+
* which must stamp each `.vue` file before any app plugin rewrites it. Never
|
|
62
|
+
* rejects: a config that cannot load leaves the host's `vue()` and a warning.
|
|
63
|
+
*/
|
|
64
|
+
declare function tempoVueAppPlugins(options: TempoVueAppPluginsOptions): Promise<PluginOption[]>;
|
|
65
|
+
|
|
66
|
+
export { type TempoVueAppPluginsOptions, type TempoVuePluginOptions, tempoVueAppPlugins, tempoVuePlugin };
|