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.
- package/README.md +3 -403
- package/dist/assets/editor.d.ts +43 -65
- package/dist/assets/editor.js +1 -573
- package/dist/assets/index.d.ts +11 -61
- package/dist/assets/index.js +1 -338
- package/dist/assets/parser.d.ts +68 -78
- package/dist/assets/parser.js +1 -33
- package/dist/astro/asset-preview-client.d.ts +3 -2
- package/dist/astro/asset-preview-client.js +1 -93
- package/dist/astro/controls.d.ts +1 -3
- package/dist/astro/controls.js +1 -7
- package/dist/astro/document-client.d.ts +5 -6
- package/dist/astro/document-client.js +1 -78
- package/dist/astro/runtime.d.ts +23 -11
- package/dist/astro/runtime.js +1 -86
- package/dist/astro.d.ts +19 -13
- package/dist/astro.js +1 -818
- package/dist/canvas/astro-contract.d.ts +0 -3
- package/dist/canvas/astro-contract.js +1 -9
- package/dist/canvas/astro.d.ts +3 -4
- package/dist/canvas/astro.js +1 -42
- package/dist/canvas/editor.d.ts +187 -183
- package/dist/canvas/editor.js +1 -1094
- package/dist/canvas/flutter-preview.d.ts +0 -1
- package/dist/canvas/flutter-preview.js +1 -9
- package/dist/canvas/index.d.ts +46 -100
- package/dist/canvas/index.js +1 -3926
- package/dist/canvas/interact-projection.d.ts +7 -5
- package/dist/canvas/interact-projection.js +1 -12
- package/dist/canvas/parser.d.ts +10 -303
- package/dist/canvas/parser.js +1 -30
- package/dist/canvas/svelte.d.ts +6 -7
- package/dist/canvas/svelte.js +1 -91
- package/dist/canvas/vue.d.ts +9 -49
- package/dist/canvas/vue.js +1 -264
- package/dist/chunk-CXCUJCXD.js +1 -0
- package/dist/chunk-FH6TMWFA.js +1 -0
- package/dist/chunk-FL7FSJSL.js +1 -0
- package/dist/chunk-GQIOB5SV.js +1 -0
- package/dist/chunk-HBQ7FFH7.js +1 -0
- package/dist/chunk-JRJOWLCN.js +1 -0
- package/dist/chunk-LJCBFTMP.js +1 -0
- package/dist/chunk-M3GN2KUH.js +1 -0
- package/dist/chunk-MPIHFFML.js +1 -0
- package/dist/chunk-T5TY3U2H.js +1 -0
- package/dist/chunk-XO2BSHWM.js +1 -0
- package/dist/chunk-XUSV3KOD.js +1 -0
- package/dist/chunk-ZXBMP6RV.js +1 -0
- package/dist/{controls-uCaQ3CNX.d.ts → controls-DKslABtM.d.ts} +0 -3
- package/dist/expo/plugin.cjs +1 -1928
- package/dist/expo/plugin.js +1 -8
- package/dist/expo-babel-plugin.cjs +1 -1928
- package/dist/expo-babel-plugin.d.cts +46 -40
- package/dist/expo-babel-plugin.d.ts +46 -40
- package/dist/expo-babel-plugin.js +1 -8
- package/dist/flutter-preview-path.d.ts +23 -7
- package/dist/flutter-preview-path.js +1 -16
- package/dist/index.d.ts +33 -45
- package/dist/index.js +1 -20
- package/dist/nextjs/plugin.cjs +1 -413
- package/dist/nextjs/plugin.js +1 -7
- package/dist/nextjs-loader.cjs +1 -2277
- package/dist/nextjs.cjs +1 -484
- package/dist/nextjs.d.cts +2 -58
- package/dist/nextjs.d.ts +2 -58
- package/dist/nextjs.js +1 -17
- package/dist/nuxt/runtime/identity.d.ts +2 -4
- package/dist/nuxt/runtime/identity.js +1 -18
- package/dist/nuxt.d.ts +31 -92
- package/dist/nuxt.js +1 -5854
- package/dist/{page-DwLnOM5d.d.ts → page-Bc8PekIX.d.ts} +1 -5
- package/dist/parser.d-MO5ciJ5n.d.ts +236 -0
- package/dist/{storyboard-CMJVBSXn.d.ts → storyboard.contract.d-UQ4MUYN5.d.ts} +3 -25
- package/dist/svelte.d.ts +8 -18
- package/dist/svelte.js +1 -917
- package/dist/types-CfUgM2w4.d.ts +57 -0
- package/dist/v1-client-compat-n0E0XxuX.d.ts +5 -0
- package/dist/vue.d.ts +17 -58
- package/dist/vue.js +1 -1501
- package/package.json +12 -62
- package/dist/assets/editor.js.map +0 -1
- package/dist/assets/index.js.map +0 -1
- package/dist/assets/parser.js.map +0 -1
- package/dist/astro/asset-preview-client.js.map +0 -1
- package/dist/astro/controls.js.map +0 -1
- package/dist/astro/document-client.js.map +0 -1
- package/dist/astro/runtime.js.map +0 -1
- package/dist/astro.js.map +0 -1
- package/dist/canvas/astro-contract.js.map +0 -1
- package/dist/canvas/astro.js.map +0 -1
- package/dist/canvas/editor.js.map +0 -1
- package/dist/canvas/flutter-preview.js.map +0 -1
- package/dist/canvas/index.js.map +0 -1
- package/dist/canvas/interact-projection.js.map +0 -1
- package/dist/canvas/parser.js.map +0 -1
- package/dist/canvas/svelte.js.map +0 -1
- package/dist/canvas/vue.js.map +0 -1
- package/dist/chunk-27WT3XUG.js +0 -455
- package/dist/chunk-27WT3XUG.js.map +0 -1
- package/dist/chunk-5HIIF354.js +0 -67
- package/dist/chunk-5HIIF354.js.map +0 -1
- package/dist/chunk-65B52AR7.js +0 -11
- package/dist/chunk-65B52AR7.js.map +0 -1
- package/dist/chunk-6HYKKP5N.js +0 -2658
- package/dist/chunk-6HYKKP5N.js.map +0 -1
- package/dist/chunk-6SOP4XU6.js +0 -1891
- package/dist/chunk-6SOP4XU6.js.map +0 -1
- package/dist/chunk-AFXE462X.js +0 -1253
- package/dist/chunk-AFXE462X.js.map +0 -1
- package/dist/chunk-BQPKOVI5.js +0 -115
- package/dist/chunk-BQPKOVI5.js.map +0 -1
- package/dist/chunk-CYDF4LYJ.js +0 -342
- package/dist/chunk-CYDF4LYJ.js.map +0 -1
- package/dist/chunk-CYQE3TLC.js +0 -37
- package/dist/chunk-CYQE3TLC.js.map +0 -1
- package/dist/chunk-DI2ZFAWL.js +0 -14
- package/dist/chunk-DI2ZFAWL.js.map +0 -1
- package/dist/chunk-EGRHWZRV.js +0 -1
- package/dist/chunk-EGRHWZRV.js.map +0 -1
- package/dist/chunk-FGWGY3G3.js +0 -157
- package/dist/chunk-FGWGY3G3.js.map +0 -1
- package/dist/chunk-HOBTDB6G.js +0 -112
- package/dist/chunk-HOBTDB6G.js.map +0 -1
- package/dist/chunk-I7VF4ZOV.js +0 -630
- package/dist/chunk-I7VF4ZOV.js.map +0 -1
- package/dist/chunk-JVVHU3A7.js +0 -1077
- package/dist/chunk-JVVHU3A7.js.map +0 -1
- package/dist/chunk-MIXQVPDH.js +0 -8606
- package/dist/chunk-MIXQVPDH.js.map +0 -1
- package/dist/chunk-MU7S7NU7.js +0 -183
- package/dist/chunk-MU7S7NU7.js.map +0 -1
- package/dist/chunk-OX2YKYSL.js +0 -13
- package/dist/chunk-OX2YKYSL.js.map +0 -1
- package/dist/chunk-PYAJHLXO.js +0 -903
- package/dist/chunk-PYAJHLXO.js.map +0 -1
- package/dist/chunk-SGN7BDRE.js +0 -16
- package/dist/chunk-SGN7BDRE.js.map +0 -1
- package/dist/chunk-SGTGDLOX.js +0 -285
- package/dist/chunk-SGTGDLOX.js.map +0 -1
- package/dist/chunk-T364NBR3.js +0 -1440
- package/dist/chunk-T364NBR3.js.map +0 -1
- package/dist/chunk-U66QI3EN.js +0 -1524
- package/dist/chunk-U66QI3EN.js.map +0 -1
- package/dist/chunk-WTXOWQ7N.js +0 -47
- package/dist/chunk-WTXOWQ7N.js.map +0 -1
- package/dist/chunk-X5DJKVBT.js +0 -1308
- package/dist/chunk-X5DJKVBT.js.map +0 -1
- package/dist/chunk-ZT7HJ6YU.js +0 -38
- package/dist/chunk-ZT7HJ6YU.js.map +0 -1
- package/dist/chunk-ZW26VZHX.js +0 -3169
- package/dist/chunk-ZW26VZHX.js.map +0 -1
- package/dist/controls-reader-5MFHYBZZ.js +0 -192
- package/dist/controls-reader-5MFHYBZZ.js.map +0 -1
- package/dist/expo/plugin.cjs.map +0 -1
- package/dist/expo/plugin.js.map +0 -1
- package/dist/expo-babel-plugin.cjs.map +0 -1
- package/dist/expo-babel-plugin.js.map +0 -1
- package/dist/flutter-preview-path.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/nextjs/plugin.cjs.map +0 -1
- package/dist/nextjs/plugin.js.map +0 -1
- package/dist/nextjs-loader.cjs.map +0 -1
- package/dist/nextjs.cjs.map +0 -1
- package/dist/nextjs.js.map +0 -1
- package/dist/nuxt/runtime/identity.js.map +0 -1
- package/dist/nuxt.js.map +0 -1
- package/dist/svelte.js.map +0 -1
- package/dist/types-C8OIU-kc.d.ts +0 -106
- package/dist/v1-client-compat-qxaXEDm_.d.ts +0 -23
- 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};
|
package/dist/canvas/astro.d.ts
CHANGED
|
@@ -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 {
|
|
5
|
-
import '../page-
|
|
6
|
-
import '../v1-client-compat-
|
|
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;
|
package/dist/canvas/astro.js
CHANGED
|
@@ -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};
|
package/dist/canvas/editor.d.ts
CHANGED
|
@@ -1,213 +1,217 @@
|
|
|
1
|
-
import { StoryboardUiFramework, ParsedCanvasFile, CanvasSourceSpan } from '
|
|
2
|
-
import { V as V1LayoutCompat } from '../v1-client-compat-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
value: string;
|
|
9
9
|
};
|
|
10
10
|
type CanvasEditResult = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
source: string;
|
|
12
|
+
edits: CanvasSourceEdit[];
|
|
13
|
+
parsed: ParsedCanvasFile;
|
|
14
14
|
};
|
|
15
15
|
type CanvasEditorLayout = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
width?: number;
|
|
19
|
+
height?: number;
|
|
20
|
+
zIndex?: number;
|
|
21
21
|
};
|
|
22
|
-
type AddCanvasStoryboardInput =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
declare function updateCanvasPath$1(options: {
|
|
74
|
+
filePath: string;
|
|
75
|
+
source: string;
|
|
76
|
+
path: string;
|
|
78
77
|
}): CanvasEditResult;
|
|
79
|
-
declare function updateCanvasBackgroundColor(options: {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
78
|
+
declare function updateCanvasBackgroundColor$1(options: {
|
|
79
|
+
filePath: string;
|
|
80
|
+
source: string;
|
|
81
|
+
backgroundColor?: string;
|
|
83
82
|
}): CanvasEditResult;
|
|
84
|
-
declare function updateStoryboardName(options: {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
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
|
-
|
|
106
|
-
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
166
|
-
|
|
167
|
-
|
|
147
|
+
declare function addCanvasStoryboard$1(options: {
|
|
148
|
+
filePath: string;
|
|
149
|
+
source: string;
|
|
150
|
+
storyboard: AddCanvasStoryboardInput;
|
|
168
151
|
}): CanvasEditResult;
|
|
169
|
-
declare function removeCanvasStoryboard(options: {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
152
|
+
declare function removeCanvasStoryboard$1(options: {
|
|
153
|
+
filePath: string;
|
|
154
|
+
source: string;
|
|
155
|
+
storyboardId: string;
|
|
156
|
+
removeUnusedComponentImport?: boolean;
|
|
174
157
|
}): CanvasEditResult;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
declare function
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
declare function
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
declare
|
|
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 };
|