tempo-sdk 0.0.99 → 0.0.101

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-FH6TMWFA.js +1 -0
  37. package/dist/chunk-GQIOB5SV.js +1 -0
  38. package/dist/chunk-HBQ7FFH7.js +1 -0
  39. package/dist/chunk-JRJOWLCN.js +1 -0
  40. package/dist/chunk-M3GN2KUH.js +1 -0
  41. package/dist/chunk-MPIHFFML.js +1 -0
  42. package/dist/chunk-N2V6XXRK.js +1 -0
  43. package/dist/chunk-QNVQ7U2W.js +1 -0
  44. package/dist/chunk-T5TY3U2H.js +1 -0
  45. package/dist/chunk-TK37FQAR.js +1 -0
  46. package/dist/chunk-XO2BSHWM.js +1 -0
  47. package/dist/chunk-XUSV3KOD.js +1 -0
  48. package/dist/chunk-YRBEBVG4.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
@@ -1,11 +1,9 @@
1
- /** Browser-safe descriptors. They contain no component factory or server imports. */
2
1
  type AstroJson = string | number | boolean | null | AstroJson[] | {
3
2
  [key: string]: AstroJson;
4
3
  };
5
4
  interface AstroComponent<Props extends object = Record<string, AstroJson>> {
6
5
  readonly kind: "astro-component";
7
6
  readonly module: string;
8
- /** Type-only props carried by an authored descriptor. */
9
7
  readonly propsType?: Props;
10
8
  readonly __tempoAstroControls?: {
11
9
  controls?: Record<string, unknown>;
@@ -14,7 +12,6 @@ interface AstroComponent<Props extends object = Record<string, AstroJson>> {
14
12
  shared?: boolean;
15
13
  };
16
14
  }
17
- /** Stable addressing shared by the application, desktop and capture runners. */
18
15
  declare function astroStoryboardPath(canvasPath: string, storyboardId: string): string;
19
16
  declare function isAstroComponent(value: unknown): value is AstroComponent;
20
17
 
@@ -1,9 +1 @@
1
- import {
2
- astroStoryboardPath,
3
- isAstroComponent
4
- } from "../chunk-OX2YKYSL.js";
5
- export {
6
- astroStoryboardPath,
7
- isAstroComponent
8
- };
9
- //# sourceMappingURL=astro-contract.js.map
1
+ import{a,b}from"../chunk-T5TY3U2H.js";import"../chunk-XUSV3KOD.js";export{a as astroStoryboardPath,b as isAstroComponent};
@@ -1,11 +1,10 @@
1
1
  import * as react from 'react';
2
2
  import { AstroJson, AstroComponent } from './astro-contract.js';
3
3
  export { astroStoryboardPath, isAstroComponent } from './astro-contract.js';
4
- import { S as StoryboardLayout, a as StoryboardVrtConfig } from '../storyboard-CMJVBSXn.js';
5
- import '../page-DwLnOM5d.js';
6
- import '../v1-client-compat-qxaXEDm_.js';
4
+ import { b as StoryboardLayout, c as StoryboardVrtConfig } from '../storyboard.contract.d-UQ4MUYN5.js';
5
+ import '../page-Bc8PekIX.js';
6
+ import '../v1-client-compat-n0E0XxuX.js';
7
7
 
8
- /** Native Astro components render as application documents, never in this React shell. */
9
8
  declare function AstroStoryboard<Props extends object = Record<string, AstroJson>>({ id, name, component, layout, vrt, }: {
10
9
  id: string;
11
10
  name?: string;
@@ -1,42 +1 @@
1
- import {
2
- StoryboardSlot
3
- } from "../chunk-X5DJKVBT.js";
4
- import "../chunk-ZW26VZHX.js";
5
- import "../chunk-T364NBR3.js";
6
- import {
7
- astroStoryboardPath,
8
- isAstroComponent
9
- } from "../chunk-OX2YKYSL.js";
10
-
11
- // canvas/astro.tsx
12
- import { jsx } from "react/jsx-runtime";
13
- function AstroStoryboard({
14
- id,
15
- name,
16
- component,
17
- layout,
18
- vrt
19
- }) {
20
- if (!isAstroComponent(component))
21
- throw new Error(
22
- "AstroStoryboard requires a .astro?tempo-component descriptor import"
23
- );
24
- return /* @__PURE__ */ jsx(
25
- StoryboardSlot,
26
- {
27
- "data-tempo-hide-fiber": "true",
28
- id,
29
- name,
30
- layout,
31
- kind: "component",
32
- uiFramework: "astro",
33
- vrt: !!vrt
34
- }
35
- );
36
- }
37
- export {
38
- AstroStoryboard,
39
- astroStoryboardPath,
40
- isAstroComponent
41
- };
42
- //# sourceMappingURL=astro.js.map
1
+ import{e as t}from"../chunk-HBQ7FFH7.js";import"../chunk-GQIOB5SV.js";import"../chunk-JRJOWLCN.js";import"../chunk-XO2BSHWM.js";import"../chunk-M3GN2KUH.js";import"../chunk-FH6TMWFA.js";import{a as i,b as o}from"../chunk-T5TY3U2H.js";import{a as r}from"../chunk-XUSV3KOD.js";import{jsx as m}from"react/jsx-runtime";function b({id:n,name:e,component:s,layout:p,vrt:a}){if(!o(s))throw new Error("AstroStoryboard requires a .astro?tempo-component descriptor import");return m(t,{"data-tempo-hide-fiber":"true",id:n,name:e,layout:p,kind:"component",uiFramework:"astro",vrt:!!a})}r(b,"AstroStoryboard");export{b as AstroStoryboard,i as astroStoryboardPath,o as isAstroComponent};
@@ -1,213 +1,217 @@
1
- import { StoryboardUiFramework, ParsedCanvasFile, CanvasSourceSpan } from './parser.js';
2
- import { V as V1LayoutCompat } from '../v1-client-compat-qxaXEDm_.js';
1
+ import { S as StoryboardUiFramework, P as ParsedCanvasFile, C as CanvasSourceSpan } from '../parser.d-MO5ciJ5n.js';
2
+ import { V as V1LayoutCompat } from '../v1-client-compat-n0E0XxuX.js';
3
3
  import 'oxc-parser';
4
4
 
5
5
  type CanvasSourceEdit = {
6
- start: number;
7
- end: number;
8
- value: string;
6
+ start: number;
7
+ end: number;
8
+ value: string;
9
9
  };
10
10
  type CanvasEditResult = {
11
- source: string;
12
- edits: CanvasSourceEdit[];
13
- parsed: ParsedCanvasFile;
11
+ source: string;
12
+ edits: CanvasSourceEdit[];
13
+ parsed: ParsedCanvasFile;
14
14
  };
15
15
  type CanvasEditorLayout = {
16
- x: number;
17
- y: number;
18
- width?: number;
19
- height?: number;
20
- zIndex?: number;
16
+ x: number;
17
+ y: number;
18
+ width?: number;
19
+ height?: number;
20
+ zIndex?: number;
21
21
  };
22
- type AddCanvasStoryboardInput = {
23
- kind: "component";
24
- /** The component's authored framework, as the declaration spells it
25
- * (the parser reports it through `componentFramework`): a Svelte
26
- * component is written as
27
- * `<SvelteStoryboard>` from "tempo-sdk/canvas/svelte", a Vue one as
28
- * `<VueStoryboard>` from "tempo-sdk/canvas/vue", an Astro one as
29
- * `<AstroStoryboard>` from "tempo-sdk/canvas/astro". */
30
- uiFramework?: StoryboardUiFramework;
31
- id: string;
32
- /** Migration passes a legacy responsive layout in its V1-readable
33
- * spelling (see v1-file-compat.ts). */
34
- layout: CanvasEditorLayout & V1LayoutCompat;
35
- name?: string;
36
- componentExpression?: string;
37
- props?: string;
38
- componentImport?: {
22
+ type AddCanvasStoryboardInput =
23
+ | {
24
+ kind: "component";
25
+ uiFramework?: StoryboardUiFramework;
26
+ id: string;
27
+ layout: CanvasEditorLayout & V1LayoutCompat;
28
+ name?: string;
29
+ componentExpression?: string;
30
+ props?: string;
31
+ componentImport?: {
39
32
  localName: string;
40
33
  source: string;
41
34
  importedName?: string;
35
+ };
36
+ }
37
+ | {
38
+ kind: "legacy-v1";
39
+ id: string;
40
+ storyboardExpression: string;
41
+ }
42
+ | {
43
+ kind: "route";
44
+ id: string;
45
+ route: string;
46
+ layout: CanvasEditorLayout;
47
+ name?: string;
48
+ }
49
+ | {
50
+ kind: "html";
51
+ id: string;
52
+ layout: CanvasEditorLayout;
53
+ name?: string;
54
+ filepath?: string;
55
+ src?: string;
56
+ }
57
+ | {
58
+ kind: "flutter";
59
+ id: string;
60
+ layout: CanvasEditorLayout;
61
+ name?: string;
62
+ preview: string;
42
63
  };
43
- } | {
44
- kind: "legacy-v1";
45
- id: string;
46
- storyboardExpression: string;
47
- } | {
48
- kind: "route";
49
- id: string;
50
- route: string;
51
- layout: CanvasEditorLayout;
52
- name?: string;
53
- } | {
54
- kind: "html";
55
- id: string;
56
- layout: CanvasEditorLayout;
57
- name?: string;
58
- filepath?: string;
59
- src?: string;
60
- } | {
61
- kind: "flutter";
62
- id: string;
63
- layout: CanvasEditorLayout;
64
- name?: string;
65
- /** `lib/<file>.dart#<function>` inside the project's Flutter app. */
66
- preview: string;
67
- };
68
- declare function applyCanvasSourceEdits(source: string, edits: readonly CanvasSourceEdit[]): string;
69
- declare function updateCanvasName(options: {
70
- filePath: string;
71
- source: string;
72
- name: string;
64
+ declare function applyCanvasSourceEdits$1(
65
+ source: string,
66
+ edits: readonly CanvasSourceEdit[],
67
+ ): string;
68
+ declare function updateCanvasName$1(options: {
69
+ filePath: string;
70
+ source: string;
71
+ name: string;
73
72
  }): CanvasEditResult;
74
- declare function updateCanvasPath(options: {
75
- filePath: string;
76
- source: string;
77
- path: string;
73
+ declare function updateCanvasPath$1(options: {
74
+ filePath: string;
75
+ source: string;
76
+ path: string;
78
77
  }): CanvasEditResult;
79
- declare function updateCanvasBackgroundColor(options: {
80
- filePath: string;
81
- source: string;
82
- backgroundColor?: string;
78
+ declare function updateCanvasBackgroundColor$1(options: {
79
+ filePath: string;
80
+ source: string;
81
+ backgroundColor?: string;
83
82
  }): CanvasEditResult;
84
- declare function updateStoryboardName(options: {
85
- filePath: string;
86
- source: string;
87
- storyboardId: string;
88
- name?: string;
83
+ declare function updateStoryboardName$1(options: {
84
+ filePath: string;
85
+ source: string;
86
+ storyboardId: string;
87
+ name?: string;
89
88
  }): CanvasEditResult;
90
- declare function updateStoryboardId(options: {
91
- filePath: string;
92
- source: string;
93
- storyboardId: string;
94
- nextId: string;
89
+ declare function updateStoryboardId$1(options: {
90
+ filePath: string;
91
+ source: string;
92
+ storyboardId: string;
93
+ nextId: string;
95
94
  }): CanvasEditResult;
96
- declare function updateStoryboardLayout(options: {
97
- filePath: string;
98
- source: string;
99
- storyboardId: string;
100
- layout: Partial<CanvasEditorLayout>;
95
+ declare function updateStoryboardLayout$1(options: {
96
+ filePath: string;
97
+ source: string;
98
+ storyboardId: string;
99
+ layout: Partial<CanvasEditorLayout>;
101
100
  }): CanvasEditResult;
102
- declare function updateStoryboardComponent(options: {
103
- filePath: string;
101
+ declare function updateStoryboardComponent$1(options: {
102
+ filePath: string;
103
+ source: string;
104
+ storyboardId: string;
105
+ componentExpression: string;
106
+ componentImport?: {
107
+ localName: string;
104
108
  source: string;
105
- storyboardId: string;
106
- componentExpression: string;
107
- componentImport?: {
108
- localName: string;
109
- source: string;
110
- importedName?: string;
111
- };
109
+ importedName?: string;
110
+ };
112
111
  }): CanvasEditResult;
113
- declare function updateStoryboardProps(options: {
114
- filePath: string;
115
- source: string;
116
- storyboardId: string;
117
- propsExpression?: string;
112
+ declare function updateStoryboardProps$1(options: {
113
+ filePath: string;
114
+ source: string;
115
+ storyboardId: string;
116
+ propsExpression?: string;
118
117
  }): CanvasEditResult;
119
- /** Literal `vrt` options an editor may write (TEM-1775). Mirrors the parsed
120
- * shape: `threshold` 0..0.5, `skip` pauses without losing config, `ignore`
121
- * regions are storyboard-local CSS px. */
122
118
  type StoryboardVrtConfigInput = {
123
- threshold?: number;
124
- skip?: boolean;
125
- ignore?: Array<{
126
- x: number;
127
- y: number;
128
- w: number;
129
- h: number;
130
- }>;
119
+ threshold?: number;
120
+ skip?: boolean;
121
+ ignore?: Array<{
122
+ x: number;
123
+ y: number;
124
+ w: number;
125
+ h: number;
126
+ }>;
131
127
  };
132
- /**
133
- * Sets or clears the opt-in visual-regression tracking mark (TEM-1775) on a
134
- * component storyboard. `tracked: true` writes the bare `vrt` attribute
135
- * (tracked with defaults), replacing an existing untracked declaration
136
- * (`vrt={false}`, dynamic forms) in place; an already-tracked declaration —
137
- * including the object form with threshold/ignore overrides — is left
138
- * untouched. `tracked: false` removes the whole `vrt` attribute, object
139
- * config included: the in-app toggle is a full untrack, not the
140
- * `skip: true` pause. An OBJECT `tracked` writes that exact literal config
141
- * (`vrt={{ threshold, skip, ignore }}`), replacing whatever declaration
142
- * exists — the agent-facing `canvas_set_vrt` path for thresholds, masks and
143
- * pauses; an empty object is the bare mark.
144
- */
145
- declare function updateStoryboardVrt(options: {
146
- filePath: string;
147
- source: string;
148
- storyboardId: string;
149
- tracked: boolean | StoryboardVrtConfigInput;
128
+ declare function updateStoryboardVrt$1(options: {
129
+ filePath: string;
130
+ source: string;
131
+ storyboardId: string;
132
+ tracked: boolean | StoryboardVrtConfigInput;
150
133
  }): CanvasEditResult;
151
- declare function updateRouteStoryboardRoute(options: {
152
- filePath: string;
153
- source: string;
154
- storyboardId: string;
155
- route: string;
134
+ declare function updateRouteStoryboardRoute$1(options: {
135
+ filePath: string;
136
+ source: string;
137
+ storyboardId: string;
138
+ route: string;
156
139
  }): CanvasEditResult;
157
- declare function updateHtmlStoryboardSource(options: {
158
- filePath: string;
159
- source: string;
160
- storyboardId: string;
161
- filepath?: string;
162
- src?: string;
140
+ declare function updateHtmlStoryboardSource$1(options: {
141
+ filePath: string;
142
+ source: string;
143
+ storyboardId: string;
144
+ filepath?: string;
145
+ src?: string;
163
146
  }): CanvasEditResult;
164
- declare function addCanvasStoryboard(options: {
165
- filePath: string;
166
- source: string;
167
- storyboard: AddCanvasStoryboardInput;
147
+ declare function addCanvasStoryboard$1(options: {
148
+ filePath: string;
149
+ source: string;
150
+ storyboard: AddCanvasStoryboardInput;
168
151
  }): CanvasEditResult;
169
- declare function removeCanvasStoryboard(options: {
170
- filePath: string;
171
- source: string;
172
- storyboardId: string;
173
- removeUnusedComponentImport?: boolean;
152
+ declare function removeCanvasStoryboard$1(options: {
153
+ filePath: string;
154
+ source: string;
155
+ storyboardId: string;
156
+ removeUnusedComponentImport?: boolean;
174
157
  }): CanvasEditResult;
175
- /**
176
- * Format a JSX string attribute. Prefers the idiomatic plain form
177
- * (`name="value"`) and falls back to the expression form (`name={"value"}`)
178
- * when the plain form can't represent the value faithfully: JSX string
179
- * attributes don't process backslash escapes but DO decode HTML entities, so
180
- * any value that JSON-escapes (quotes, backslashes, control characters) or
181
- * contains `&` must go through a braced string literal.
182
- */
183
- declare function formatJsxStringAttribute(name: string, value: string): string;
184
- declare function expandToFullLines(source: string, span: CanvasSourceSpan): CanvasSourceSpan;
185
- declare function expandStatementForward(source: string, span: CanvasSourceSpan): CanvasSourceSpan;
186
- declare function collapseBlankLines(source: string, newline: string): string;
187
- declare function detectNewline(source: string): "\n" | "\r\n";
188
- declare function topLevelInsertionOffset(source: string): number;
189
- /**
190
- * Cheap word-boundary text scan. It matches occurrences inside string literals
191
- * and comments too, so it is SAFE-DIRECTION ONLY: use it where a false positive
192
- * is harmless (conservatively keeping an import that might still be used), NEVER
193
- * for a collision check that throws or blocks an edit — those must use
194
- * {@link sourceContainsIdentifierNode}, which counts real identifier nodes only.
195
- */
196
- declare function hasIdentifier(source: string, identifier: string): boolean;
197
- /**
198
- * True when `name` appears as a real identifier node (`Identifier` /
199
- * `JSXIdentifier`) anywhere in `source` — a binding or reference, never a
200
- * string-literal or comment occurrence. Use this for collision checks that
201
- * throw or block an edit, so a name appearing only inside a string (e.g.
202
- * `<Canvas name="Card Demo">` vs a `Card` import) can't masquerade as a
203
- * declared identifier.
204
- */
205
- declare function sourceContainsIdentifierNode(filePath: string, source: string, name: string): boolean;
206
- /**
207
- * Depth-first walk that hands each AST node to `visit` along with its parent and
208
- * the parent field it was reached through — the context callers need to tell a
209
- * value reference from a property key or member access.
210
- */
211
- declare function walkWithParent(node: any, visit: (node: any, parent: any, key: string | null) => void, parent?: any, key?: string | null, seen?: Set<any>): void;
158
+ declare function formatJsxStringAttribute$1(
159
+ name: string,
160
+ value: string,
161
+ ): string;
162
+ declare function expandToFullLines$1(
163
+ source: string,
164
+ span: CanvasSourceSpan,
165
+ ): CanvasSourceSpan;
166
+ declare function expandStatementForward$1(
167
+ source: string,
168
+ span: CanvasSourceSpan,
169
+ ): CanvasSourceSpan;
170
+ declare function collapseBlankLines$1(
171
+ source: string,
172
+ newline: string,
173
+ ): string;
174
+ declare function detectNewline$1(source: string): "\n" | "\r\n";
175
+ declare function topLevelInsertionOffset$1(source: string): number;
176
+ declare function hasIdentifier$1(
177
+ source: string,
178
+ identifier: string,
179
+ ): boolean;
180
+ declare function sourceContainsIdentifierNode$1(
181
+ filePath: string,
182
+ source: string,
183
+ name: string,
184
+ ): boolean;
185
+ declare function walkWithParent$1(
186
+ node: any,
187
+ visit: (node: any, parent: any, key: string | null) => void,
188
+ parent?: any,
189
+ key?: string | null,
190
+ seen?: Set<any>,
191
+ ): void;
192
+
193
+ declare const applyCanvasSourceEdits: typeof applyCanvasSourceEdits$1;
194
+ declare const updateCanvasName: typeof updateCanvasName$1;
195
+ declare const updateCanvasPath: typeof updateCanvasPath$1;
196
+ declare const updateCanvasBackgroundColor: typeof updateCanvasBackgroundColor$1;
197
+ declare const updateStoryboardName: typeof updateStoryboardName$1;
198
+ declare const updateStoryboardId: typeof updateStoryboardId$1;
199
+ declare const updateStoryboardLayout: typeof updateStoryboardLayout$1;
200
+ declare const updateStoryboardComponent: typeof updateStoryboardComponent$1;
201
+ declare const updateStoryboardProps: typeof updateStoryboardProps$1;
202
+ declare const updateStoryboardVrt: typeof updateStoryboardVrt$1;
203
+ declare const updateRouteStoryboardRoute: typeof updateRouteStoryboardRoute$1;
204
+ declare const updateHtmlStoryboardSource: typeof updateHtmlStoryboardSource$1;
205
+ declare const addCanvasStoryboard: typeof addCanvasStoryboard$1;
206
+ declare const removeCanvasStoryboard: typeof removeCanvasStoryboard$1;
207
+ declare const formatJsxStringAttribute: typeof formatJsxStringAttribute$1;
208
+ declare const expandToFullLines: typeof expandToFullLines$1;
209
+ declare const expandStatementForward: typeof expandStatementForward$1;
210
+ declare const collapseBlankLines: typeof collapseBlankLines$1;
211
+ declare const detectNewline: typeof detectNewline$1;
212
+ declare const topLevelInsertionOffset: typeof topLevelInsertionOffset$1;
213
+ declare const hasIdentifier: typeof hasIdentifier$1;
214
+ declare const sourceContainsIdentifierNode: typeof sourceContainsIdentifierNode$1;
215
+ declare const walkWithParent: typeof walkWithParent$1;
212
216
 
213
217
  export { type AddCanvasStoryboardInput, type CanvasEditResult, type CanvasEditorLayout, type CanvasSourceEdit, type StoryboardVrtConfigInput, addCanvasStoryboard, applyCanvasSourceEdits, collapseBlankLines, detectNewline, expandStatementForward, expandToFullLines, formatJsxStringAttribute, hasIdentifier, removeCanvasStoryboard, sourceContainsIdentifierNode, topLevelInsertionOffset, updateCanvasBackgroundColor, updateCanvasName, updateCanvasPath, updateHtmlStoryboardSource, updateRouteStoryboardRoute, updateStoryboardComponent, updateStoryboardId, updateStoryboardLayout, updateStoryboardName, updateStoryboardProps, updateStoryboardVrt, walkWithParent };