tempo-sdk 0.0.99 → 0.0.102

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 (170) hide show
  1. package/README.md +3 -403
  2. package/dist/assets/editor.d.ts +43 -65
  3. package/dist/assets/editor.js +1 -573
  4. package/dist/assets/index.d.ts +11 -61
  5. package/dist/assets/index.js +1 -338
  6. package/dist/assets/parser.d.ts +68 -78
  7. package/dist/assets/parser.js +1 -33
  8. package/dist/astro/asset-preview-client.d.ts +3 -2
  9. package/dist/astro/asset-preview-client.js +1 -93
  10. package/dist/astro/controls.d.ts +1 -3
  11. package/dist/astro/controls.js +1 -7
  12. package/dist/astro/document-client.d.ts +5 -6
  13. package/dist/astro/document-client.js +1 -78
  14. package/dist/astro/runtime.d.ts +23 -11
  15. package/dist/astro/runtime.js +1 -86
  16. package/dist/astro.d.ts +19 -13
  17. package/dist/astro.js +1 -818
  18. package/dist/canvas/astro-contract.d.ts +0 -3
  19. package/dist/canvas/astro-contract.js +1 -9
  20. package/dist/canvas/astro.d.ts +3 -4
  21. package/dist/canvas/astro.js +1 -42
  22. package/dist/canvas/editor.d.ts +187 -183
  23. package/dist/canvas/editor.js +1 -1094
  24. package/dist/canvas/flutter-preview.d.ts +0 -1
  25. package/dist/canvas/flutter-preview.js +1 -9
  26. package/dist/canvas/index.d.ts +46 -100
  27. package/dist/canvas/index.js +1 -3926
  28. package/dist/canvas/interact-projection.d.ts +7 -5
  29. package/dist/canvas/interact-projection.js +1 -12
  30. package/dist/canvas/parser.d.ts +10 -303
  31. package/dist/canvas/parser.js +1 -30
  32. package/dist/canvas/svelte.d.ts +6 -7
  33. package/dist/canvas/svelte.js +1 -91
  34. package/dist/canvas/vue.d.ts +9 -49
  35. package/dist/canvas/vue.js +1 -264
  36. package/dist/chunk-CXCUJCXD.js +1 -0
  37. package/dist/chunk-FH6TMWFA.js +1 -0
  38. package/dist/chunk-FL7FSJSL.js +1 -0
  39. package/dist/chunk-GQIOB5SV.js +1 -0
  40. package/dist/chunk-HBQ7FFH7.js +1 -0
  41. package/dist/chunk-JRJOWLCN.js +1 -0
  42. package/dist/chunk-LJCBFTMP.js +1 -0
  43. package/dist/chunk-M3GN2KUH.js +1 -0
  44. package/dist/chunk-MPIHFFML.js +1 -0
  45. package/dist/chunk-T5TY3U2H.js +1 -0
  46. package/dist/chunk-XO2BSHWM.js +1 -0
  47. package/dist/chunk-XUSV3KOD.js +1 -0
  48. package/dist/chunk-ZXBMP6RV.js +1 -0
  49. package/dist/{controls-uCaQ3CNX.d.ts → controls-DKslABtM.d.ts} +0 -3
  50. package/dist/expo/plugin.cjs +1 -1928
  51. package/dist/expo/plugin.js +1 -8
  52. package/dist/expo-babel-plugin.cjs +1 -1928
  53. package/dist/expo-babel-plugin.d.cts +46 -40
  54. package/dist/expo-babel-plugin.d.ts +46 -40
  55. package/dist/expo-babel-plugin.js +1 -8
  56. package/dist/flutter-preview-path.d.ts +23 -7
  57. package/dist/flutter-preview-path.js +1 -16
  58. package/dist/index.d.ts +33 -45
  59. package/dist/index.js +1 -20
  60. package/dist/nextjs/plugin.cjs +1 -413
  61. package/dist/nextjs/plugin.js +1 -7
  62. package/dist/nextjs-loader.cjs +1 -2277
  63. package/dist/nextjs.cjs +1 -484
  64. package/dist/nextjs.d.cts +2 -58
  65. package/dist/nextjs.d.ts +2 -58
  66. package/dist/nextjs.js +1 -17
  67. package/dist/nuxt/runtime/identity.d.ts +2 -4
  68. package/dist/nuxt/runtime/identity.js +1 -18
  69. package/dist/nuxt.d.ts +31 -92
  70. package/dist/nuxt.js +1 -5854
  71. package/dist/{page-DwLnOM5d.d.ts → page-Bc8PekIX.d.ts} +1 -5
  72. package/dist/parser.d-MO5ciJ5n.d.ts +236 -0
  73. package/dist/{storyboard-CMJVBSXn.d.ts → storyboard.contract.d-UQ4MUYN5.d.ts} +3 -25
  74. package/dist/svelte.d.ts +8 -18
  75. package/dist/svelte.js +1 -917
  76. package/dist/types-CfUgM2w4.d.ts +57 -0
  77. package/dist/v1-client-compat-n0E0XxuX.d.ts +5 -0
  78. package/dist/vue.d.ts +17 -58
  79. package/dist/vue.js +1 -1501
  80. package/package.json +12 -62
  81. package/dist/assets/editor.js.map +0 -1
  82. package/dist/assets/index.js.map +0 -1
  83. package/dist/assets/parser.js.map +0 -1
  84. package/dist/astro/asset-preview-client.js.map +0 -1
  85. package/dist/astro/controls.js.map +0 -1
  86. package/dist/astro/document-client.js.map +0 -1
  87. package/dist/astro/runtime.js.map +0 -1
  88. package/dist/astro.js.map +0 -1
  89. package/dist/canvas/astro-contract.js.map +0 -1
  90. package/dist/canvas/astro.js.map +0 -1
  91. package/dist/canvas/editor.js.map +0 -1
  92. package/dist/canvas/flutter-preview.js.map +0 -1
  93. package/dist/canvas/index.js.map +0 -1
  94. package/dist/canvas/interact-projection.js.map +0 -1
  95. package/dist/canvas/parser.js.map +0 -1
  96. package/dist/canvas/svelte.js.map +0 -1
  97. package/dist/canvas/vue.js.map +0 -1
  98. package/dist/chunk-27WT3XUG.js +0 -455
  99. package/dist/chunk-27WT3XUG.js.map +0 -1
  100. package/dist/chunk-5HIIF354.js +0 -67
  101. package/dist/chunk-5HIIF354.js.map +0 -1
  102. package/dist/chunk-65B52AR7.js +0 -11
  103. package/dist/chunk-65B52AR7.js.map +0 -1
  104. package/dist/chunk-6HYKKP5N.js +0 -2658
  105. package/dist/chunk-6HYKKP5N.js.map +0 -1
  106. package/dist/chunk-6SOP4XU6.js +0 -1891
  107. package/dist/chunk-6SOP4XU6.js.map +0 -1
  108. package/dist/chunk-AFXE462X.js +0 -1253
  109. package/dist/chunk-AFXE462X.js.map +0 -1
  110. package/dist/chunk-BQPKOVI5.js +0 -115
  111. package/dist/chunk-BQPKOVI5.js.map +0 -1
  112. package/dist/chunk-CYDF4LYJ.js +0 -342
  113. package/dist/chunk-CYDF4LYJ.js.map +0 -1
  114. package/dist/chunk-CYQE3TLC.js +0 -37
  115. package/dist/chunk-CYQE3TLC.js.map +0 -1
  116. package/dist/chunk-DI2ZFAWL.js +0 -14
  117. package/dist/chunk-DI2ZFAWL.js.map +0 -1
  118. package/dist/chunk-EGRHWZRV.js +0 -1
  119. package/dist/chunk-EGRHWZRV.js.map +0 -1
  120. package/dist/chunk-FGWGY3G3.js +0 -157
  121. package/dist/chunk-FGWGY3G3.js.map +0 -1
  122. package/dist/chunk-HOBTDB6G.js +0 -112
  123. package/dist/chunk-HOBTDB6G.js.map +0 -1
  124. package/dist/chunk-I7VF4ZOV.js +0 -630
  125. package/dist/chunk-I7VF4ZOV.js.map +0 -1
  126. package/dist/chunk-JVVHU3A7.js +0 -1077
  127. package/dist/chunk-JVVHU3A7.js.map +0 -1
  128. package/dist/chunk-MIXQVPDH.js +0 -8606
  129. package/dist/chunk-MIXQVPDH.js.map +0 -1
  130. package/dist/chunk-MU7S7NU7.js +0 -183
  131. package/dist/chunk-MU7S7NU7.js.map +0 -1
  132. package/dist/chunk-OX2YKYSL.js +0 -13
  133. package/dist/chunk-OX2YKYSL.js.map +0 -1
  134. package/dist/chunk-PYAJHLXO.js +0 -903
  135. package/dist/chunk-PYAJHLXO.js.map +0 -1
  136. package/dist/chunk-SGN7BDRE.js +0 -16
  137. package/dist/chunk-SGN7BDRE.js.map +0 -1
  138. package/dist/chunk-SGTGDLOX.js +0 -285
  139. package/dist/chunk-SGTGDLOX.js.map +0 -1
  140. package/dist/chunk-T364NBR3.js +0 -1440
  141. package/dist/chunk-T364NBR3.js.map +0 -1
  142. package/dist/chunk-U66QI3EN.js +0 -1524
  143. package/dist/chunk-U66QI3EN.js.map +0 -1
  144. package/dist/chunk-WTXOWQ7N.js +0 -47
  145. package/dist/chunk-WTXOWQ7N.js.map +0 -1
  146. package/dist/chunk-X5DJKVBT.js +0 -1308
  147. package/dist/chunk-X5DJKVBT.js.map +0 -1
  148. package/dist/chunk-ZT7HJ6YU.js +0 -38
  149. package/dist/chunk-ZT7HJ6YU.js.map +0 -1
  150. package/dist/chunk-ZW26VZHX.js +0 -3169
  151. package/dist/chunk-ZW26VZHX.js.map +0 -1
  152. package/dist/controls-reader-5MFHYBZZ.js +0 -192
  153. package/dist/controls-reader-5MFHYBZZ.js.map +0 -1
  154. package/dist/expo/plugin.cjs.map +0 -1
  155. package/dist/expo/plugin.js.map +0 -1
  156. package/dist/expo-babel-plugin.cjs.map +0 -1
  157. package/dist/expo-babel-plugin.js.map +0 -1
  158. package/dist/flutter-preview-path.js.map +0 -1
  159. package/dist/index.js.map +0 -1
  160. package/dist/nextjs/plugin.cjs.map +0 -1
  161. package/dist/nextjs/plugin.js.map +0 -1
  162. package/dist/nextjs-loader.cjs.map +0 -1
  163. package/dist/nextjs.cjs.map +0 -1
  164. package/dist/nextjs.js.map +0 -1
  165. package/dist/nuxt/runtime/identity.js.map +0 -1
  166. package/dist/nuxt.js.map +0 -1
  167. package/dist/svelte.js.map +0 -1
  168. package/dist/types-C8OIU-kc.d.ts +0 -106
  169. package/dist/v1-client-compat-qxaXEDm_.d.ts +0 -23
  170. package/dist/vue.js.map +0 -1
package/dist/nextjs.d.ts CHANGED
@@ -2,23 +2,15 @@ import { JSXElement } from 'oxc-parser';
2
2
 
3
3
  interface ElementInfo {
4
4
  element: JSXElement;
5
- /** e.g. "div", "Button", "Foo.Bar" */
6
5
  tagName: string;
7
- /** The AST type of the element's syntactic parent ("JSXElement" for a
8
- * JSX child, "ArrowFunctionExpression" for a `.map` callback root, ...). */
9
6
  parentType?: string | null;
10
- /** An unconditional element inside a braced JSX child, including type-only wrappers. */
11
7
  isStaticJsxChild?: boolean;
12
8
  }
13
- /** Supported prop value types. `undefined` values are skipped. */
14
9
  type PropValue = string | number | boolean | null | undefined | ((...args: unknown[]) => unknown) | object;
15
10
 
16
- type TempoHostFramework = "vite" | "nextjs" | "nuxt" | "astro";
17
- /** Optional features a host's served identity vouches for. */
11
+ type TempoHostFramework = "vite" | "nextjs" | "nuxt" | "astro" | "expo";
18
12
  interface TempoHostIdentityCapabilities {
19
- /** 1 when the server renders Astro components for the canvas. */
20
13
  astroComponents?: number;
21
- /** 1 when `tempoVuePlugin()` annotates this Vite server's `.vue` files. */
22
14
  vueSourceAnnotation?: number;
23
15
  }
24
16
  interface TempoHostIdentity<Framework extends TempoHostFramework = TempoHostFramework> {
@@ -27,43 +19,18 @@ interface TempoHostIdentity<Framework extends TempoHostFramework = TempoHostFram
27
19
  workspaceNonce: string;
28
20
  sdkVersion: string;
29
21
  sdkChannel: string;
22
+ tempoRuntimeContract?: number;
30
23
  pluginActive: boolean;
31
24
  framework: Framework;
32
25
  capabilities?: TempoHostIdentityCapabilities;
33
26
  }
34
27
 
35
- /**
36
- * Next.js plugin that registers the tempo-annotate loader for Webpack and
37
- * Turbopack. Mirrors the user-facing pattern of `@next/mdx`: a higher-order
38
- * function that takes plugin options, returns a function that takes the user's
39
- * `next.config`, and returns a new config with the plugin's loader rules
40
- * merged in.
41
- *
42
- * See SPEC_NEXTJS.md (in this directory) for the full design rationale.
43
- *
44
- * @example
45
- * ```js
46
- * // next.config.js
47
- * const tempoNextjsPlugin = require("tempo-sdk/nextjs");
48
- * module.exports = tempoNextjsPlugin()({ reactStrictMode: true });
49
- * ```
50
- */
51
-
52
28
  type ComputeAnnotatedProps = (info: ElementInfo, filepath: string, modifiedtsMs: number) => Record<string, PropValue>;
53
29
  interface TempoNextjsOptions {
54
- /** Path to a JS/TS module that default-exports a `ComputeAnnotatedProps`
55
- * function. Resolved relative to the project root (CWD where the user
56
- * invokes `next dev` / `next build`). Turbopack does not allow function-
57
- * valued loader options, so this must be a path. */
58
30
  computeAnnotatedPropsModule?: string;
59
- /** File patterns to include. Default: `["**\/*.tsx", "**\/*.jsx"]`. */
60
31
  include?: string | RegExp | Array<string | RegExp>;
61
- /** File patterns to exclude. Default: `["**\/node_modules\/**"]`. */
62
32
  exclude?: string | RegExp | Array<string | RegExp>;
63
- /** Auto-inject `<meta name="tempo-project-root">` into JSX `<head>`.
64
- * Default: `true`. */
65
33
  autoInjectRootMeta?: boolean;
66
- /** Run the loader during production builds too. Default: `false`. */
67
34
  productionBuild?: boolean;
68
35
  }
69
36
  interface TurbopackRule {
@@ -95,37 +62,14 @@ interface NextVersionInfo {
95
62
  minor: number;
96
63
  }
97
64
  declare function detectNextVersion(): NextVersionInfo | null;
98
- /** Should the wrapper write to `experimental.turbo` instead of `turbopack`? */
99
65
  declare function useExperimentalTurbo(version: NextVersionInfo | null): boolean;
100
- /** Should the wrapper omit Turbopack registration entirely? Some pre-13 versions
101
- * error on unknown config keys. */
102
66
  declare function shouldOmitTurbopack(version: NextVersionInfo | null): boolean;
103
67
  declare function buildTurbopackRule(loaderPath: string, options: TempoNextjsOptions): TurbopackRule;
104
68
  declare function mergeTurbopackRules(existing: TurbopackConfig | undefined, newRule: TurbopackRule): TurbopackConfig;
105
69
  declare function buildWebpackHook(loaderPath: string, options: TempoNextjsOptions, userWebpack: NextConfigLike["webpack"]): NonNullable<NextConfigLike["webpack"]>;
106
- /**
107
- * Returns the canonical project root that the Tempo loader uses to compute
108
- * `data-tempo-filepath` values. Use this in `pages/_document.tsx` to set the
109
- * content of `<meta name="tempo-project-root">`, ensuring the manual meta tag
110
- * value matches what the loader produces.
111
- */
112
70
  declare function tempoProjectRoot(): string;
113
- /** Request-time identity for a Next route served by a Tempo-enabled host. */
114
71
  declare function tempoHostIdentity(): TempoHostIdentity<"nextjs">;
115
- /** Reset the cached project root. For tests only. */
116
72
  declare function _resetTempoProjectRoot(): void;
117
- /**
118
- * Higher-order function that wraps a Next.js config to register the
119
- * tempo-annotate loader with both Webpack and Turbopack. No-op when
120
- * `process.env.TEMPO` is not set.
121
- *
122
- * @example
123
- * ```js
124
- * // next.config.js
125
- * const tempoNextjsPlugin = require("tempo-sdk/nextjs");
126
- * module.exports = tempoNextjsPlugin()({ reactStrictMode: true });
127
- * ```
128
- */
129
73
  declare function tempoNextjsPlugin(pluginOptions?: TempoNextjsOptions): (inputConfig?: NextConfigLike) => NextConfigLike;
130
74
 
131
75
  declare const _internal: {
package/dist/nextjs.js CHANGED
@@ -1,17 +1 @@
1
- import {
2
- _internal,
3
- _resetTempoProjectRoot,
4
- nextjs_default,
5
- tempoHostIdentity,
6
- tempoNextjsPlugin,
7
- tempoProjectRoot
8
- } from "./chunk-27WT3XUG.js";
9
- export {
10
- _internal,
11
- _resetTempoProjectRoot,
12
- nextjs_default as default,
13
- tempoHostIdentity,
14
- tempoNextjsPlugin,
15
- tempoProjectRoot
16
- };
17
- //# sourceMappingURL=nextjs.js.map
1
+ import{a,b,c,d,e,f}from"./chunk-FL7FSJSL.js";export{f as _internal,c as _resetTempoProjectRoot,e as default,b as tempoHostIdentity,d as tempoNextjsPlugin,a as tempoProjectRoot};
@@ -1,11 +1,8 @@
1
1
  import * as h3 from 'h3';
2
2
 
3
- type TempoHostFramework = "vite" | "nextjs" | "nuxt" | "astro";
4
- /** Optional features a host's served identity vouches for. */
3
+ type TempoHostFramework = "vite" | "nextjs" | "nuxt" | "astro" | "expo";
5
4
  interface TempoHostIdentityCapabilities {
6
- /** 1 when the server renders Astro components for the canvas. */
7
5
  astroComponents?: number;
8
- /** 1 when `tempoVuePlugin()` annotates this Vite server's `.vue` files. */
9
6
  vueSourceAnnotation?: number;
10
7
  }
11
8
  interface TempoHostIdentity<Framework extends TempoHostFramework = TempoHostFramework> {
@@ -14,6 +11,7 @@ interface TempoHostIdentity<Framework extends TempoHostFramework = TempoHostFram
14
11
  workspaceNonce: string;
15
12
  sdkVersion: string;
16
13
  sdkChannel: string;
14
+ tempoRuntimeContract?: number;
17
15
  pluginActive: boolean;
18
16
  framework: Framework;
19
17
  capabilities?: TempoHostIdentityCapabilities;
@@ -1,18 +1 @@
1
- import {
2
- TEMPO_HOST_IDENTITY_CAPABILITY_HEADER,
3
- createTempoHostIdentity
4
- } from "../../chunk-SGTGDLOX.js";
5
-
6
- // nuxt/runtime/identity.ts
7
- import { defineEventHandler, setResponseHeaders } from "h3";
8
- var identity_default = defineEventHandler((event) => {
9
- setResponseHeaders(event, {
10
- "cache-control": "no-store",
11
- [TEMPO_HOST_IDENTITY_CAPABILITY_HEADER]: "1"
12
- });
13
- return createTempoHostIdentity("nuxt");
14
- });
15
- export {
16
- identity_default as default
17
- };
18
- //# sourceMappingURL=identity.js.map
1
+ import{b as e,c as t}from"../../chunk-CXCUJCXD.js";import{defineEventHandler as r,setResponseHeaders as n}from"h3";var a=r(o=>(n(o,{"cache-control":"no-store",[e]:"1"}),t("nuxt")));export{a as default};
package/dist/nuxt.d.ts CHANGED
@@ -1,102 +1,41 @@
1
1
  import * as nuxt_schema from 'nuxt/schema';
2
2
 
3
- /**
4
- * The Tempo Nuxt module. The Tempo-owned Nuxt sidecar under `tempo/`
5
- * (`extends: [".."]`, `ssr: false`, `modules: ["tempo-sdk/nuxt"]`) hosts a
6
- * Nuxt project's component storyboards at `/tempo-host`, inside Nuxt's own
7
- * Vite dev server, the way the Next sidecar hosts them in `next dev`. This
8
- * module makes that server a Tempo canvas host: it annotates `.vue` sources,
9
- * compiles the generated React host and the canvas files as React, serves
10
- * the identity route the devserver probes and the registration barrier the
11
- * render pool crosses, and keeps the user's layer from wrapping the host
12
- * page.
13
- *
14
- * Every rule below (R1 to R9) removes a failure the research measured; the
15
- * symptom each prevents is in tempo-sdk/CLAUDE.md. Like every Tempo plugin
16
- * it is a no-op unless `TEMPO` is set (or `enabled` says otherwise).
17
- */
18
- /**
19
- * The module's options, read from the merged `tempo` config key only, never
20
- * from inline module options. The app is a layer of the sidecar, so both may
21
- * list the module; kit installs it once per Nuxt (the first listing, with
22
- * that listing's inline options), and which listing is first differs by
23
- * major (Nuxt 4 the app's, Nuxt 3 the sidecar's, measured). The config key
24
- * merges with the root config winning on both, so the sidecar's own config
25
- * decides, never module order.
26
- */
27
3
  interface TempoNuxtModuleOptions {
28
- /** Whether the module does anything. Defaults to `Boolean(process.env.TEMPO)`,
29
- * the gate every Tempo plugin shares, so a sidecar started outside Tempo
30
- * is an ordinary Nuxt app. */
31
- enabled?: boolean;
32
- /**
33
- * `"app"` (default): the user's own `nuxt dev`, which serves route
34
- * storyboards. Annotation only, the least a user who lists the module in
35
- * their own nuxt.config can get. Tempo adds it there through its generated
36
- * app layer on the command line (`nuxt dev --extends
37
- * ./tempo/nuxt-app-layer`), never by editing that config.
38
- * `"host"`: the Tempo sidecar, which hosts component storyboards. The
39
- * generated sidecar config sets it as `tempo: { role: "host" }`.
40
- */
41
- role?: "host" | "app";
4
+ enabled?: boolean;
5
+ role?: "host" | "app";
42
6
  }
43
- declare const _default: nuxt_schema.NuxtModule<TempoNuxtModuleOptions, TempoNuxtModuleOptions, false>;
44
-
45
- /** The `<meta>` tags the Tempo Vite plugin's `transformIndexHtml` puts on
46
- * a host page, with the same values: the host root (what `data-tempo-filepath`
47
- * is relative to, and what the devserver's readiness probe checks), the
48
- * source identity root (the user's app) and the workspace nonce when the
49
- * devserver issued one. Real paths, as the Vite plugin publishes them. */
50
- declare function tempoHostPageMetas(tempoRoot: string, projectRoot: string): Array<{
51
- name: string;
52
- content: string;
7
+ declare function tempoHostPageMetas$1(
8
+ tempoRoot: string,
9
+ projectRoot: string,
10
+ ): Array<{
11
+ name: string;
12
+ content: string;
53
13
  }>;
54
- /** The parts of the client Vite config R6 and R17 rewrite. */
55
14
  interface MutableViteConfig {
56
- plugins?: unknown[];
57
- esbuild?: Record<string, unknown> | false;
58
- oxc?: Record<string, unknown> | false;
59
- server?: {
60
- watch?: {
61
- ignored?: unknown;
62
- } | null;
63
- };
15
+ plugins?: unknown[];
16
+ esbuild?: Record<string, unknown> | false;
17
+ oxc?: Record<string, unknown> | false;
18
+ server?: {
19
+ watch?: {
20
+ ignored?: unknown;
21
+ } | null;
22
+ };
64
23
  }
65
- /** The build template `.tempo/nuxt-board-environment.ts` imports, as
66
- * `#build/tempo-board-plugin-sources.mjs`, to name a board's plugins (R16). */
67
- declare const BOARD_PLUGIN_SOURCES_TEMPLATE = "tempo-board-plugin-sources.mjs";
68
- /**
69
- * R16. Each client plugin's source file, keyed by the plugin itself. Every
70
- * Vue board applies the app's client plugins, and `canvas/vue.tsx` turns a
71
- * board setup that never settles into the board's own error, asking the
72
- * board environment which plugin is still running. Nuxt strips a plugin's
73
- * `name` at build time and `#build/plugins` is a list of bare functions, so
74
- * only the build knows which file each came from. This module imports the
75
- * same files `#build/plugins` does, so its keys are the very functions a
76
- * board applies; server-only plugins are left out, as `#build/plugins` leaves
77
- * them out of the client.
78
- */
79
- declare function boardPluginSourcesModule(plugins: ReadonlyArray<{
24
+ declare function boardPluginSourcesModule$1(
25
+ plugins: ReadonlyArray<{
80
26
  src: string;
81
27
  mode?: string;
82
- }>, projectRoot: string): string;
83
- /**
84
- * R6. Nuxt pushes plugin-vue and plugin-vue-jsx after `vite:extendConfig`;
85
- * `vite:configResolved` is the last hook before createServer. The vue-jsx
86
- * plugin's config hook narrows the TS transformer to `.ts`, so `.tsx`
87
- * reached import analysis untransformed, and when it did run it emitted
88
- * Vue vnodes. Nuxt's esbuild options (`jsxFactory: "h"`) also override
89
- * plugin-react's own config hook, so the React runtime is pinned here, last.
90
- * Vue JSX components are therefore unsupported in the sidecar.
91
- *
92
- * Dropping vue-jsx also drops the `include: /\.ts$/` its config hook adds.
93
- * Vite concatenates every plugin's `include` into one allow-list, so a plugin
94
- * that adds a narrow entry assuming vue-jsx's is there (@vue-macros/setup-sfc
95
- * re-includes `vitest.setup.*`) left the transformer with only that entry:
96
- * Elk's app `.ts` and the canvas `.tsx` reached unctx, import protection and
97
- * import analysis as raw TypeScript (`Unexpected token`). Vite's default
98
- * include goes back in vue-jsx's place.
99
- */
100
- declare function pinHostTransformOptions(config: MutableViteConfig): void;
28
+ }>,
29
+ projectRoot: string,
30
+ ): string;
31
+ declare function pinHostTransformOptions$1(
32
+ config: MutableViteConfig,
33
+ ): void;
34
+
35
+ declare const tempoHostPageMetas: typeof tempoHostPageMetas$1;
36
+ declare const boardPluginSourcesModule: typeof boardPluginSourcesModule$1;
37
+ declare const pinHostTransformOptions: typeof pinHostTransformOptions$1;
38
+ declare const BOARD_PLUGIN_SOURCES_TEMPLATE = "tempo-board-plugin-sources.mjs";
39
+ declare const defaultExport: nuxt_schema.NuxtModule<TempoNuxtModuleOptions, TempoNuxtModuleOptions, false>;
101
40
 
102
- export { BOARD_PLUGIN_SOURCES_TEMPLATE, type MutableViteConfig, type TempoNuxtModuleOptions, boardPluginSourcesModule, _default as default, pinHostTransformOptions, tempoHostPageMetas };
41
+ export { BOARD_PLUGIN_SOURCES_TEMPLATE, type MutableViteConfig, type TempoNuxtModuleOptions, boardPluginSourcesModule, defaultExport as default, pinHostTransformOptions, tempoHostPageMetas };