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.
Files changed (109) hide show
  1. package/dist/assets/index.js +3 -3
  2. package/dist/astro/asset-preview-client.js +2 -2
  3. package/dist/astro.js +24 -14
  4. package/dist/astro.js.map +1 -1
  5. package/dist/canvas/astro.d.ts +1 -1
  6. package/dist/canvas/astro.js +2 -2
  7. package/dist/canvas/editor.d.ts +15 -5
  8. package/dist/canvas/editor.js +13 -8
  9. package/dist/canvas/editor.js.map +1 -1
  10. package/dist/canvas/flutter-preview.d.ts +18 -0
  11. package/dist/canvas/flutter-preview.js +9 -0
  12. package/dist/canvas/flutter-preview.js.map +1 -0
  13. package/dist/canvas/index.d.ts +33 -2
  14. package/dist/canvas/index.js +1134 -26
  15. package/dist/canvas/index.js.map +1 -1
  16. package/dist/canvas/interact-projection.js +5 -4
  17. package/dist/canvas/parser.d.ts +142 -3
  18. package/dist/canvas/parser.js +14 -1
  19. package/dist/canvas/svelte.d.ts +1 -1
  20. package/dist/canvas/svelte.js +2 -2
  21. package/dist/canvas/vue.d.ts +74 -0
  22. package/dist/canvas/vue.js +264 -0
  23. package/dist/canvas/vue.js.map +1 -0
  24. package/dist/{chunk-6BSLP7P3.js → chunk-3W4CVWTK.js} +49 -7
  25. package/dist/chunk-3W4CVWTK.js.map +1 -0
  26. package/dist/chunk-5HIIF354.js +67 -0
  27. package/dist/chunk-5HIIF354.js.map +1 -0
  28. package/dist/chunk-5LUQSXSP.js +342 -0
  29. package/dist/chunk-5LUQSXSP.js.map +1 -0
  30. package/dist/{chunk-FE6TYCLF.js → chunk-5VIBKVFO.js} +2 -2
  31. package/dist/{chunk-FE6TYCLF.js.map → chunk-5VIBKVFO.js.map} +1 -1
  32. package/dist/{chunk-77DZCV5Z.js → chunk-CXIW4IKC.js} +2 -2
  33. package/dist/chunk-CYQE3TLC.js +37 -0
  34. package/dist/chunk-CYQE3TLC.js.map +1 -0
  35. package/dist/chunk-EGRHWZRV.js +1 -0
  36. package/dist/chunk-EGRHWZRV.js.map +1 -0
  37. package/dist/chunk-GCGRJTTS.js +285 -0
  38. package/dist/chunk-GCGRJTTS.js.map +1 -0
  39. package/dist/{chunk-EYKOOLPL.js → chunk-GKDDNDG3.js} +1039 -134
  40. package/dist/chunk-GKDDNDG3.js.map +1 -0
  41. package/dist/{chunk-KOSJXE4G.js → chunk-H6BQZOAW.js} +4 -3
  42. package/dist/chunk-HOBTDB6G.js +112 -0
  43. package/dist/chunk-HOBTDB6G.js.map +1 -0
  44. package/dist/{chunk-WTQQOLXM.js → chunk-R3RYGAPB.js} +1571 -1410
  45. package/dist/chunk-R3RYGAPB.js.map +1 -0
  46. package/dist/chunk-SGN7BDRE.js +16 -0
  47. package/dist/chunk-SGN7BDRE.js.map +1 -0
  48. package/dist/{chunk-F23JGM4U.js → chunk-UBTL6JUF.js} +6 -2
  49. package/dist/{chunk-F23JGM4U.js.map → chunk-UBTL6JUF.js.map} +1 -1
  50. package/dist/{chunk-2JRAG36X.js → chunk-WBMO4ZYO.js} +2 -2
  51. package/dist/chunk-WBMO4ZYO.js.map +1 -0
  52. package/dist/{chunk-K3EYTZLL.js → chunk-WTXOWQ7N.js} +3 -1
  53. package/dist/chunk-WTXOWQ7N.js.map +1 -0
  54. package/dist/{chunk-Q2A46HHW.js → chunk-XFPFWTWX.js} +276 -43
  55. package/dist/chunk-XFPFWTWX.js.map +1 -0
  56. package/dist/{chunk-PXDTH36X.js → chunk-Y72PIE3I.js} +212 -20
  57. package/dist/chunk-Y72PIE3I.js.map +1 -0
  58. package/dist/{chunk-6IR5JY6W.js → chunk-YECMP34I.js} +41 -9
  59. package/dist/chunk-YECMP34I.js.map +1 -0
  60. package/dist/{chunk-NSKYOKG5.js → chunk-ZXC7SZIT.js} +278 -26
  61. package/dist/chunk-ZXC7SZIT.js.map +1 -0
  62. package/dist/{controls-reader-SNMI2UY7.js → controls-reader-Z7OQWYWQ.js} +4 -3
  63. package/dist/{controls-reader-SNMI2UY7.js.map → controls-reader-Z7OQWYWQ.js.map} +1 -1
  64. package/dist/expo/plugin.cjs +301 -58
  65. package/dist/expo/plugin.cjs.map +1 -1
  66. package/dist/expo/plugin.js +1 -1
  67. package/dist/expo-babel-plugin.cjs +301 -58
  68. package/dist/expo-babel-plugin.cjs.map +1 -1
  69. package/dist/expo-babel-plugin.js +1 -1
  70. package/dist/flutter-preview-path.d.ts +9 -0
  71. package/dist/flutter-preview-path.js +16 -0
  72. package/dist/flutter-preview-path.js.map +1 -0
  73. package/dist/index.d.ts +16 -15
  74. package/dist/index.js +9 -6
  75. package/dist/nextjs/plugin.cjs +46 -5
  76. package/dist/nextjs/plugin.cjs.map +1 -1
  77. package/dist/nextjs/plugin.js +1 -1
  78. package/dist/nextjs-loader.cjs +343 -68
  79. package/dist/nextjs-loader.cjs.map +1 -1
  80. package/dist/nextjs.cjs +48 -6
  81. package/dist/nextjs.cjs.map +1 -1
  82. package/dist/nextjs.d.cts +9 -1
  83. package/dist/nextjs.d.ts +9 -1
  84. package/dist/nextjs.js +1 -1
  85. package/dist/nuxt/runtime/identity.d.ts +24 -0
  86. package/dist/nuxt/runtime/identity.js +18 -0
  87. package/dist/nuxt/runtime/identity.js.map +1 -0
  88. package/dist/nuxt.d.ts +102 -0
  89. package/dist/nuxt.js +5673 -0
  90. package/dist/nuxt.js.map +1 -0
  91. package/dist/{storyboard-4YdTYq_e.d.ts → storyboard-CMJVBSXn.d.ts} +9 -3
  92. package/dist/svelte.d.ts +4 -2
  93. package/dist/svelte.js +21 -88
  94. package/dist/svelte.js.map +1 -1
  95. package/dist/vue.d.ts +66 -0
  96. package/dist/vue.js +1403 -0
  97. package/dist/vue.js.map +1 -0
  98. package/package.json +48 -5
  99. package/dist/chunk-2JRAG36X.js.map +0 -1
  100. package/dist/chunk-6BSLP7P3.js.map +0 -1
  101. package/dist/chunk-6IR5JY6W.js.map +0 -1
  102. package/dist/chunk-EYKOOLPL.js.map +0 -1
  103. package/dist/chunk-K3EYTZLL.js.map +0 -1
  104. package/dist/chunk-NSKYOKG5.js.map +0 -1
  105. package/dist/chunk-PXDTH36X.js.map +0 -1
  106. package/dist/chunk-Q2A46HHW.js.map +0 -1
  107. package/dist/chunk-WTQQOLXM.js.map +0 -1
  108. /package/dist/{chunk-77DZCV5Z.js.map → chunk-CXIW4IKC.js.map} +0 -0
  109. /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 };