@tangle-network/sandbox-ui 0.113.6 → 0.114.0
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/WorkflowGraph-B-NsdYz_.js +1961 -0
- package/dist/assets.d.ts +214 -206
- package/dist/assets.js +1057 -908
- package/dist/auth-CWe17Hly.js +37 -0
- package/dist/auth.d.ts +2 -30
- package/dist/auth.js +2 -15
- package/dist/chat-BOvFAe6p.js +903 -0
- package/dist/chat.d.ts +2 -230
- package/dist/chat.js +2 -34
- package/dist/connectors.d.ts +52 -49
- package/dist/connectors.js +595 -643
- package/dist/dashboard-CZ3VgNPR.js +4969 -0
- package/dist/dashboard.d.ts +4 -1297
- package/dist/dashboard.js +4 -152
- package/dist/editor.d.ts +2 -1
- package/dist/editor.js +2 -31
- package/dist/files.d.ts +2 -6
- package/dist/files.js +2 -33
- package/dist/globals.css +63 -3
- package/dist/hooks.d.ts +146 -148
- package/dist/hooks.js +222 -55
- package/dist/index-CKRaj1pM.d.ts +776 -0
- package/dist/index-CXX5IpH2.d.ts +2 -0
- package/dist/index-DPePq7c8.d.ts +1340 -0
- package/dist/index-DiyLLZuJ.d.ts +230 -0
- package/dist/index-DvmZLMT1.d.ts +30 -0
- package/dist/index-I8ZLVtHd.d.ts +330 -0
- package/dist/index-PRM636Ex.d.ts +86 -0
- package/dist/index.d.ts +21 -33
- package/dist/index.js +21 -701
- package/dist/info-panel-C9cqDzOL.js +594 -0
- package/dist/integrations.d.ts +133 -139
- package/dist/integrations.js +491 -673
- package/dist/markdown.d.ts +2 -1
- package/dist/markdown.js +2 -13
- package/dist/model-I-NIxeM-.js +1250 -0
- package/dist/model-brand-B9A4H9pJ.d.ts +98 -0
- package/dist/model-brand-hMyDTUqB.js +624 -0
- package/dist/motion-DkyBRJb9.js +37 -0
- package/dist/openui.d.ts +2 -1
- package/dist/openui.js +2 -7
- package/dist/pages.d.ts +307 -300
- package/dist/pages.js +4404 -4181
- package/dist/primitives-Dh1vG6J3.js +113 -0
- package/dist/primitives.d.ts +2 -74
- package/dist/primitives.js +2 -204
- package/dist/provider-logo-DjqmConF.js +311 -0
- package/dist/run.d.ts +2 -1
- package/dist/run.js +2 -23
- package/dist/sdk-hooks.d.ts +3 -4
- package/dist/sdk-hooks.js +3 -31
- package/dist/sidecar-DgH_vQ6m.d.ts +9 -0
- package/dist/stores.d.ts +14 -15
- package/dist/stores.js +13 -81
- package/dist/styles.css +63 -3
- package/dist/template-card-L-4gmjx2.d.ts +90 -0
- package/dist/terminal-CN9ZgHRt.js +197 -0
- package/dist/terminal.d.ts +60 -60
- package/dist/terminal.js +2 -10
- package/dist/tokens.css +51 -0
- package/dist/types.d.ts +4 -11
- package/dist/types.js +0 -1
- package/dist/use-pty-session-C8cE0adT.js +669 -0
- package/dist/use-sidecar-auth-CCTJcrq7.d.ts +145 -0
- package/dist/use-sidecar-auth-DkdcufOz.js +742 -0
- package/dist/utils-DzWbktWG.js +2 -0
- package/dist/utils.d.ts +2 -1
- package/dist/utils.js +2 -37
- package/dist/workbench-BCaCKl-J.js +8347 -0
- package/dist/workbench.d.ts +2 -310
- package/dist/workbench.js +2 -44
- package/dist/workflows.d.ts +341 -339
- package/dist/workflows.js +74 -109
- package/dist/workspace-B6AtI6ld.js +2510 -0
- package/dist/workspace.d.ts +2 -761
- package/dist/workspace.js +2 -51
- package/package.json +46 -40
- package/dist/WorkflowGraph-2QOORYIR.js +0 -1722
- package/dist/chunk-2BUPSB7O.js +0 -0
- package/dist/chunk-3KBNPQQF.js +0 -2697
- package/dist/chunk-3LIXVEEE.js +0 -279
- package/dist/chunk-72UF2H5H.js +0 -707
- package/dist/chunk-AI25G5MX.js +0 -944
- package/dist/chunk-ANSC5AFC.js +0 -314
- package/dist/chunk-AZ3AWMTM.js +0 -8
- package/dist/chunk-BGVEHENC.js +0 -10
- package/dist/chunk-CZ7CSFO4.js +0 -39
- package/dist/chunk-DYXXYGS4.js +0 -4700
- package/dist/chunk-EI44GEQ5.js +0 -6
- package/dist/chunk-IACRDXER.js +0 -219
- package/dist/chunk-IOB2PW5Z.js +0 -55
- package/dist/chunk-M4K7ZGR2.js +0 -24
- package/dist/chunk-MYZAW4RX.js +0 -665
- package/dist/chunk-OMUIPJQZ.js +0 -555
- package/dist/chunk-RQZRXKMR.js +0 -398
- package/dist/chunk-SOKKTB7W.js +0 -230
- package/dist/chunk-TADGS4Q7.js +0 -1010
- package/dist/chunk-UCQNOUN3.js +0 -7964
- package/dist/chunk-ULPLRBMF.js +0 -34
- package/dist/chunk-WID73FPH.js +0 -89
- package/dist/chunk-X3YXP7FG.js +0 -38
- package/dist/logo-DiAjq759.d.ts +0 -15
- package/dist/model-brand-BNnaUKKZ.d.ts +0 -99
- package/dist/ports-list-CDIvTNnX.d.ts +0 -17
- package/dist/sdk-hooks-Djkjq4cp.d.ts +0 -145
- package/dist/template-card-Bn-Bw5xC.d.ts +0 -87
package/dist/workbench.d.ts
CHANGED
|
@@ -1,310 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { RichFileTreeGitStatus, RichFileTreeGitEntry } from '@tangle-network/ui/files';
|
|
4
|
-
import { E as ExposedPort } from './ports-list-CDIvTNnX.js';
|
|
5
|
-
|
|
6
|
-
/** Which surface the artifact pane is currently showing. */
|
|
7
|
-
type ArtifactView = "code" | "diff" | "preview" | "ports" | "terminal";
|
|
8
|
-
/**
|
|
9
|
-
* A single artifact rendered by the pane. `content` is the working copy;
|
|
10
|
-
* when `baselineContent` differs from it, the Diff view becomes available
|
|
11
|
-
* and renders a word-level unified diff of baseline → content.
|
|
12
|
-
*/
|
|
13
|
-
interface SandboxArtifact {
|
|
14
|
-
id: string;
|
|
15
|
-
/** Canonical path inside the sandbox, e.g. `src/lib/retry.ts`. */
|
|
16
|
-
path: string;
|
|
17
|
-
/** Display name for the active file (usually the last path segment). */
|
|
18
|
-
filename: string;
|
|
19
|
-
/** Working-copy contents of the file. */
|
|
20
|
-
content: string;
|
|
21
|
-
/** Prior contents the working copy is diffed against. */
|
|
22
|
-
baselineContent?: string;
|
|
23
|
-
/** Explicit syntax language id (overrides extension inference). */
|
|
24
|
-
language?: string;
|
|
25
|
-
mimeType?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Live PTY terminal binding. Maps straight onto `TerminalView` — both
|
|
29
|
-
* `apiUrl` and `token` are required to open a session against the sidecar.
|
|
30
|
-
*/
|
|
31
|
-
interface SandboxArtifactTerminal {
|
|
32
|
-
apiUrl: string;
|
|
33
|
-
token: string;
|
|
34
|
-
/** Stable id so the same PTY is restored across remounts. */
|
|
35
|
-
connectionId?: string;
|
|
36
|
-
title?: string;
|
|
37
|
-
subtitle?: string;
|
|
38
|
-
}
|
|
39
|
-
interface SandboxArtifactPaneProps {
|
|
40
|
-
/** The active artifact shown in the Code / Diff surfaces. */
|
|
41
|
-
artifact: SandboxArtifact;
|
|
42
|
-
/**
|
|
43
|
-
* Flat list of canonical paths for the file-tree rail in the Code view.
|
|
44
|
-
* Defaults to `[artifact.path]` when omitted (single-file tree).
|
|
45
|
-
*/
|
|
46
|
-
paths?: ReadonlyArray<string>;
|
|
47
|
-
/** Per-path git-status decorations for the file tree. */
|
|
48
|
-
gitStatus?: ReadonlyArray<RichFileTreeGitEntry>;
|
|
49
|
-
/** Show the Code view's file-tree rail. Off for single-file embeds where the host owns navigation/tabs. */
|
|
50
|
-
showTree?: boolean;
|
|
51
|
-
/** Exposed ports; presence enables the Ports tab. */
|
|
52
|
-
ports?: ExposedPort[];
|
|
53
|
-
/** Live preview origin; presence enables the Preview tab. */
|
|
54
|
-
previewUrl?: string;
|
|
55
|
-
/** Live terminal binding; presence enables the Terminal tab. */
|
|
56
|
-
terminal?: SandboxArtifactTerminal;
|
|
57
|
-
/** Controlled active view. Pair with `onViewChange`. */
|
|
58
|
-
activeView?: ArtifactView;
|
|
59
|
-
/** Initial view when uncontrolled. Defaults to the first available view. */
|
|
60
|
-
defaultView?: ArtifactView;
|
|
61
|
-
onViewChange?: (view: ArtifactView) => void;
|
|
62
|
-
/** Fired when a different file is chosen in the tree (host swaps artifact). */
|
|
63
|
-
onFileSelect?: (path: string) => void;
|
|
64
|
-
/** Forwarded to the Ports view. */
|
|
65
|
-
onExposePort?: (port: number) => void;
|
|
66
|
-
onRemovePort?: (port: number) => void;
|
|
67
|
-
className?: string;
|
|
68
|
-
style?: CSSProperties;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* One entry of the sandbox's git working tree, as the Changes pane lists it.
|
|
72
|
-
* `additions` / `deletions` are the numstat counts the sidecar's
|
|
73
|
-
* `GET /git/diff` reports per file.
|
|
74
|
-
*
|
|
75
|
-
* `baseline` / `current` are the file contents the diff is drawn from and are
|
|
76
|
-
* absent until the consumer resolves them for the selected file. Which of the
|
|
77
|
-
* two counts as "resolved" follows the status: an added or untracked file has
|
|
78
|
-
* no baseline and diffs against the empty string once `current` is present; a
|
|
79
|
-
* deleted file has no working copy and diffs against the empty string once
|
|
80
|
-
* `baseline` is present; every other status waits for both.
|
|
81
|
-
*/
|
|
82
|
-
interface ChangedFile {
|
|
83
|
-
path: string;
|
|
84
|
-
status: RichFileTreeGitStatus;
|
|
85
|
-
additions: number;
|
|
86
|
-
deletions: number;
|
|
87
|
-
/** Present once the consumer has resolved contents for the selected file. */
|
|
88
|
-
baseline?: string;
|
|
89
|
-
current?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Why the sides could not be resolved. Shown under the file's header in
|
|
92
|
-
* place of the loading line, so a failed read never looks like a slow one.
|
|
93
|
-
*/
|
|
94
|
-
loadError?: string;
|
|
95
|
-
}
|
|
96
|
-
interface ChangesPaneProps {
|
|
97
|
-
/** Current branch; `null` when the tree has no commits yet or is not a repository. */
|
|
98
|
-
branch: string | null;
|
|
99
|
-
ahead?: number;
|
|
100
|
-
behind?: number;
|
|
101
|
-
files: ChangedFile[];
|
|
102
|
-
selectedPath?: string;
|
|
103
|
-
onSelectFile?: (path: string) => void;
|
|
104
|
-
loading?: boolean;
|
|
105
|
-
error?: string | null;
|
|
106
|
-
onRefresh?: () => void;
|
|
107
|
-
/** Stage everything and commit. Resolve on success; reject with an Error the pane shows inline. */
|
|
108
|
-
onCommit?: (message: string) => Promise<void>;
|
|
109
|
-
onPush?: () => Promise<void>;
|
|
110
|
-
/** Which action is in flight; the pane disables the other and shows a spinner on this one. */
|
|
111
|
-
busy?: "commit" | "push" | null;
|
|
112
|
-
/** Open the file as a workbench artifact (the product wires this to its artifact opener). */
|
|
113
|
-
onOpenFile?: (path: string) => void;
|
|
114
|
-
className?: string;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Blueprint-grade artifact workbench. Composes the sandbox-ui substrate
|
|
119
|
-
* (`RichFileTree`, `PortsList`, `TerminalView`, `@pierre/diffs`) behind a
|
|
120
|
-
* single pill-tab view switcher: Code · Diff · Preview · Ports · Terminal.
|
|
121
|
-
* Tabs appear only when their data is present (Diff requires a differing
|
|
122
|
-
* baseline; Preview a url; Ports a port list; Terminal a live binding), so the
|
|
123
|
-
* chrome never shows a dead surface.
|
|
124
|
-
*/
|
|
125
|
-
declare function SandboxArtifactPane({ artifact, paths, gitStatus, showTree, ports, previewUrl, terminal, activeView, defaultView, onViewChange, onFileSelect, onExposePort, onRemovePort, className, style, }: SandboxArtifactPaneProps): React.JSX.Element;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* The sandbox's git working tree as a review surface: every changed file with
|
|
129
|
-
* its line counts, the selected file's word-level diff beneath, and a commit
|
|
130
|
-
* box in the footer. Data in, callbacks out — the pane never fetches; the
|
|
131
|
-
* consumer feeds it the sidecar's `/git/status` + `/git/diff` and resolves
|
|
132
|
-
* `baseline` / `current` for the file it is told was selected.
|
|
133
|
-
*
|
|
134
|
-
* The list is capped at 40% of the pane and scrolls, so the diff keeps its
|
|
135
|
-
* room however many files changed. The row's own chrome is compact: the
|
|
136
|
-
* workspace shell already gives its right pane the 56px `WorkspacePaneHeader`,
|
|
137
|
-
* so this header nests beneath it at `PanelHeader` rhythm rather than adding a
|
|
138
|
-
* second tall bar.
|
|
139
|
-
*/
|
|
140
|
-
declare function ChangesPane({ branch, ahead, behind, files, selectedPath, onSelectFile, loading, error, onRefresh, onCommit, onPush, busy, onOpenFile, className, }: ChangesPaneProps): React.JSX.Element;
|
|
141
|
-
|
|
142
|
-
interface PillTabItem<T extends string> {
|
|
143
|
-
value: T;
|
|
144
|
-
label: string;
|
|
145
|
-
icon?: React.ReactNode;
|
|
146
|
-
}
|
|
147
|
-
interface PillTabsProps<T extends string> {
|
|
148
|
-
items: ReadonlyArray<PillTabItem<T>>;
|
|
149
|
-
value: T;
|
|
150
|
-
onChange: (value: T) => void;
|
|
151
|
-
className?: string;
|
|
152
|
-
"aria-label"?: string;
|
|
153
|
-
/** Stable IDs supplied by the parent when it renders the associated panel. */
|
|
154
|
-
idPrefix?: string;
|
|
155
|
-
panelId?: string;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Sliding-pill segmented control. Reimplemented from blueprint-agent's
|
|
159
|
-
* framer-motion `PillTabs` with a measured CSS transform instead — no motion
|
|
160
|
-
* dependency. A `ResizeObserver` re-measures on container resize and font
|
|
161
|
-
* load so the indicator tracks the active tab exactly. Token-swapped onto the
|
|
162
|
-
* sandbox-ui surface ladder.
|
|
163
|
-
*/
|
|
164
|
-
declare function PillTabs<T extends string>({ items, value, onChange, className, "aria-label": ariaLabel, idPrefix, panelId, }: PillTabsProps<T>): React.JSX.Element;
|
|
165
|
-
|
|
166
|
-
interface DiffStats {
|
|
167
|
-
added: number;
|
|
168
|
-
removed: number;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Count added / removed lines between two file revisions.
|
|
172
|
-
*
|
|
173
|
-
* Ported from blueprint-agent's `computeDiffStats`: normalize CRLF, short-
|
|
174
|
-
* circuit on equality, then `diffLines` with `ignoreWhitespace` so pure
|
|
175
|
-
* reindentation does not inflate the counts. `newlineIsToken:false` keeps a
|
|
176
|
-
* line (not its trailing newline) as the unit, matching the +/- a reader
|
|
177
|
-
* counts by eye.
|
|
178
|
-
*/
|
|
179
|
-
declare function computeDiffStats(original: string, current: string): DiffStats;
|
|
180
|
-
/**
|
|
181
|
-
* Build a single-file unified patch (baseline → current) for `@pierre/diffs`'
|
|
182
|
-
* `PatchDiff`. `context: Infinity` would print the whole file; the default
|
|
183
|
-
* 4-line context keeps hunks compact while preserving locality. Equal inputs
|
|
184
|
-
* yield an empty string so callers can treat "" as "no diff".
|
|
185
|
-
*/
|
|
186
|
-
declare function buildUnifiedPatch(filename: string, baseline: string, current: string): string;
|
|
187
|
-
|
|
188
|
-
declare function GitStatusBadge({ status }: {
|
|
189
|
-
status: RichFileTreeGitStatus;
|
|
190
|
-
}): React.JSX.Element;
|
|
191
|
-
/** `+added −removed` line counts in mono; the same pair the Changes list prints per file. */
|
|
192
|
-
declare function DiffStatsBadge({ stats, className }: {
|
|
193
|
-
stats: DiffStats;
|
|
194
|
-
className?: string;
|
|
195
|
-
}): React.JSX.Element;
|
|
196
|
-
interface PanelHeaderProps {
|
|
197
|
-
filename: string;
|
|
198
|
-
gitStatus?: RichFileTreeGitStatus;
|
|
199
|
-
/** Added/removed line counts; rendered only when provided (Diff view). */
|
|
200
|
-
stats?: DiffStats;
|
|
201
|
-
/** Enables the copy-to-clipboard action when set. */
|
|
202
|
-
copyText?: string;
|
|
203
|
-
/** Extra content rendered at the right edge, before the copy button. */
|
|
204
|
-
children?: React.ReactNode;
|
|
205
|
-
className?: string;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Thin bordered chrome bar above the artifact body — filename, git-status
|
|
209
|
-
* badge, optional diff counts, and a copy action. Ported in spirit from
|
|
210
|
-
* blueprint-agent's `PanelHeader` (min-h, hairline bottom border, dense
|
|
211
|
-
* horizontal rhythm), retoned to the sandbox-ui surface ladder.
|
|
212
|
-
*/
|
|
213
|
-
declare function PanelHeader({ filename, gitStatus, stats, copyText, children, className }: PanelHeaderProps): React.JSX.Element;
|
|
214
|
-
|
|
215
|
-
interface FileBreadcrumbProps {
|
|
216
|
-
/** Canonical path, e.g. `src/lib/retry.ts`. */
|
|
217
|
-
path: string;
|
|
218
|
-
className?: string;
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Slim path breadcrumb for the code panel. Reimplemented (not ported) from
|
|
222
|
-
* blueprint-agent's `FileBreadcrumb` — that one nests a `FileTree` dropdown per
|
|
223
|
-
* segment and couples to the workbench store + framer-motion. Here the rail
|
|
224
|
-
* already owns navigation, so this is a read-only trail: caret-separated parent
|
|
225
|
-
* segments with a file-icon leaf.
|
|
226
|
-
*/
|
|
227
|
-
declare function FileBreadcrumb({ path, className }: FileBreadcrumbProps): React.JSX.Element;
|
|
228
|
-
|
|
229
|
-
interface CodeViewProps {
|
|
230
|
-
path: string;
|
|
231
|
-
filename: string;
|
|
232
|
-
content: string;
|
|
233
|
-
language?: string;
|
|
234
|
-
/** Flat list of paths for the rail; defaults to `[path]`. */
|
|
235
|
-
paths?: ReadonlyArray<string>;
|
|
236
|
-
gitStatus?: ReadonlyArray<RichFileTreeGitEntry>;
|
|
237
|
-
onFileSelect?: (path: string) => void;
|
|
238
|
-
/** Show the file-tree rail. Off for single-file embeds where the host owns navigation. */
|
|
239
|
-
showTree?: boolean;
|
|
240
|
-
className?: string;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Code surface: a fixed-width `RichFileTree` rail (with git-status
|
|
244
|
-
* decorations) beside a breadcrumb-topped, syntax-highlighted read-only file
|
|
245
|
-
* view. The rail owns navigation; selecting a path fans out to `onFileSelect`
|
|
246
|
-
* so the host can swap the active artifact.
|
|
247
|
-
*/
|
|
248
|
-
declare function CodeView({ path, filename, content, language, paths, gitStatus, onFileSelect, showTree, className, }: CodeViewProps): React.JSX.Element;
|
|
249
|
-
|
|
250
|
-
interface DiffViewProps {
|
|
251
|
-
filename: string;
|
|
252
|
-
baseline: string;
|
|
253
|
-
current: string;
|
|
254
|
-
/**
|
|
255
|
-
* The renderer's own sticky file header (name + counts). On by default; a
|
|
256
|
-
* host whose chrome already names the file, such as the Changes pane under
|
|
257
|
-
* its `PanelHeader`, turns it off so the name is not printed twice.
|
|
258
|
-
*/
|
|
259
|
-
showFileHeader?: boolean;
|
|
260
|
-
className?: string;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Word-level unified diff via `@pierre/diffs`' core `FileDiff` renderer. The
|
|
264
|
-
* patch is built with jsdiff's `createTwoFilesPatch` (baseline → current); the
|
|
265
|
-
* renderer owns hunking, intra-line word diffing, gutters, and highlighting.
|
|
266
|
-
*
|
|
267
|
-
* The renderer is driven from an effect on a host element this component
|
|
268
|
-
* creates for every mount, not through the library's React wrapper. The
|
|
269
|
-
* wrapper hydrates the element React hands it and treats an existing shadow
|
|
270
|
-
* `<pre>` as prerendered content; React StrictMode attaches, detaches, and
|
|
271
|
-
* re-attaches that element on mount, so the second hydrate finds the first
|
|
272
|
-
* mount's `<pre>` and renders nothing. A fresh element per effect run has no
|
|
273
|
-
* such history, and the cleanup removes it (the instance is not
|
|
274
|
-
* container-managed).
|
|
275
|
-
*/
|
|
276
|
-
declare function DiffView({ filename, baseline, current, showFileHeader, className }: DiffViewProps): React.JSX.Element;
|
|
277
|
-
|
|
278
|
-
interface PreviewViewProps {
|
|
279
|
-
/** Origin to load in the preview iframe. */
|
|
280
|
-
url: string;
|
|
281
|
-
className?: string;
|
|
282
|
-
}
|
|
283
|
-
/**
|
|
284
|
-
* Live preview: a slim address bar (reload + open-in-new-tab) over a sandboxed
|
|
285
|
-
* iframe. The iframe is force-remounted by bumping `iframeKey` on reload — the
|
|
286
|
-
* same remount trick blueprint-agent's `Preview` uses. The readiness probe is
|
|
287
|
-
* intentionally a stub here: the iframe shows optimistically and a loading
|
|
288
|
-
* veil clears when the frame fires `load`. A slow load stays visible as a
|
|
289
|
-
* warning, since a timer cannot prove the preview became ready.
|
|
290
|
-
*/
|
|
291
|
-
declare function PreviewView({ url, className }: PreviewViewProps): React.JSX.Element;
|
|
292
|
-
|
|
293
|
-
/** Resolve a Prism language id from an explicit hint or the filename. */
|
|
294
|
-
declare function resolveLanguage(filename: string, explicit?: string): string;
|
|
295
|
-
declare const BRAND_PRISM_THEME: Record<string, CSSProperties>;
|
|
296
|
-
interface CodeSurfaceProps {
|
|
297
|
-
code: string;
|
|
298
|
-
filename: string;
|
|
299
|
-
language?: string;
|
|
300
|
-
showLineNumbers?: boolean;
|
|
301
|
-
className?: string;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* Read-only, brand-themed code renderer. Wrapped in a scroll container so the
|
|
305
|
-
* highlighter itself never grows the layout; line numbers sit in a muted,
|
|
306
|
-
* tabular column.
|
|
307
|
-
*/
|
|
308
|
-
declare function CodeSurface({ code, filename, language, showLineNumbers, className, }: CodeSurfaceProps): React.JSX.Element;
|
|
309
|
-
|
|
310
|
-
export { type ArtifactView, BRAND_PRISM_THEME, type ChangedFile, ChangesPane, type ChangesPaneProps, CodeSurface, type CodeSurfaceProps, CodeView, type CodeViewProps, type DiffStats, DiffStatsBadge, DiffView, type DiffViewProps, FileBreadcrumb, type FileBreadcrumbProps, GitStatusBadge, PanelHeader, type PanelHeaderProps, type PillTabItem, PillTabs, type PillTabsProps, PreviewView, type PreviewViewProps, type SandboxArtifact, SandboxArtifactPane, type SandboxArtifactPaneProps, type SandboxArtifactTerminal, buildUnifiedPatch, computeDiffStats, resolveLanguage };
|
|
1
|
+
import { A as SandboxArtifactTerminal, C as ChangesPane, D as ChangesPaneProps, E as ChangedFile, O as SandboxArtifact, S as PillTabsProps, T as ArtifactView, _ as DiffStats, a as PreviewView, b as PillTabItem, c as DiffViewProps, d as FileBreadcrumb, f as FileBreadcrumbProps, g as PanelHeaderProps, h as PanelHeader, i as resolveLanguage, k as SandboxArtifactPaneProps, l as CodeView, m as GitStatusBadge, n as CodeSurface, o as PreviewViewProps, p as DiffStatsBadge, r as CodeSurfaceProps, s as DiffView, t as BRAND_PRISM_THEME, u as CodeViewProps, v as buildUnifiedPatch, w as SandboxArtifactPane, x as PillTabs, y as computeDiffStats } from "./index-I8ZLVtHd.js";
|
|
2
|
+
export { type ArtifactView, BRAND_PRISM_THEME, type ChangedFile, ChangesPane, type ChangesPaneProps, CodeSurface, type CodeSurfaceProps, CodeView, type CodeViewProps, type DiffStats, DiffStatsBadge, DiffView, type DiffViewProps, FileBreadcrumb, type FileBreadcrumbProps, GitStatusBadge, PanelHeader, type PanelHeaderProps, type PillTabItem, PillTabs, type PillTabsProps, PreviewView, type PreviewViewProps, type SandboxArtifact, SandboxArtifactPane, type SandboxArtifactPaneProps, type SandboxArtifactTerminal, buildUnifiedPatch, computeDiffStats, resolveLanguage };
|
package/dist/workbench.js
CHANGED
|
@@ -1,44 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
ChangesPane,
|
|
4
|
-
CodeSurface,
|
|
5
|
-
CodeView,
|
|
6
|
-
DiffStatsBadge,
|
|
7
|
-
DiffView,
|
|
8
|
-
FileBreadcrumb,
|
|
9
|
-
GitStatusBadge,
|
|
10
|
-
PanelHeader,
|
|
11
|
-
PillTabs,
|
|
12
|
-
PreviewView,
|
|
13
|
-
SandboxArtifactPane,
|
|
14
|
-
buildUnifiedPatch,
|
|
15
|
-
computeDiffStats,
|
|
16
|
-
resolveLanguage
|
|
17
|
-
} from "./chunk-UCQNOUN3.js";
|
|
18
|
-
import "./chunk-ULPLRBMF.js";
|
|
19
|
-
import "./chunk-DYXXYGS4.js";
|
|
20
|
-
import "./chunk-OMUIPJQZ.js";
|
|
21
|
-
import "./chunk-IACRDXER.js";
|
|
22
|
-
import "./chunk-MYZAW4RX.js";
|
|
23
|
-
import "./chunk-ANSC5AFC.js";
|
|
24
|
-
import "./chunk-RQZRXKMR.js";
|
|
25
|
-
import "./chunk-BGVEHENC.js";
|
|
26
|
-
import "./chunk-EI44GEQ5.js";
|
|
27
|
-
import "./chunk-CZ7CSFO4.js";
|
|
28
|
-
export {
|
|
29
|
-
BRAND_PRISM_THEME,
|
|
30
|
-
ChangesPane,
|
|
31
|
-
CodeSurface,
|
|
32
|
-
CodeView,
|
|
33
|
-
DiffStatsBadge,
|
|
34
|
-
DiffView,
|
|
35
|
-
FileBreadcrumb,
|
|
36
|
-
GitStatusBadge,
|
|
37
|
-
PanelHeader,
|
|
38
|
-
PillTabs,
|
|
39
|
-
PreviewView,
|
|
40
|
-
SandboxArtifactPane,
|
|
41
|
-
buildUnifiedPatch,
|
|
42
|
-
computeDiffStats,
|
|
43
|
-
resolveLanguage
|
|
44
|
-
};
|
|
1
|
+
import { a as buildUnifiedPatch, c as FileBreadcrumb, d as resolveLanguage, f as DiffStatsBadge, h as PillTabs, i as DiffView, l as BRAND_PRISM_THEME, m as PanelHeader, n as SandboxArtifactPane, o as computeDiffStats, p as GitStatusBadge, r as PreviewView, s as CodeView, t as ChangesPane, u as CodeSurface } from "./workbench-BCaCKl-J.js";
|
|
2
|
+
export { BRAND_PRISM_THEME, ChangesPane, CodeSurface, CodeView, DiffStatsBadge, DiffView, FileBreadcrumb, GitStatusBadge, PanelHeader, PillTabs, PreviewView, SandboxArtifactPane, buildUnifiedPatch, computeDiffStats, resolveLanguage };
|