@jxsuite/studio 5.1.0 → 5.3.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/chunks/{cf-account-picker-qwkm9zrf.js → cf-account-picker-nwnwdm6p.js} +10 -10
- package/dist/chunks/{cf-settings-71bv5zn9.js → cf-settings-adg74qsk.js} +4 -4
- package/dist/chunks/{components-vj72gqtq.js → components-5y78e05d.js} +4 -4
- package/dist/chunks/content-source-4rzvmp0m.js +46 -0
- package/dist/chunks/{convert-to-repeater-n64h8znc.js → convert-to-repeater-jxsv62v7.js} +22 -22
- package/dist/chunks/entry-commands-1wnsqn5d.js +42 -0
- package/dist/chunks/{extension-sections-3hpcambp.js → extension-sections-2mrptyek.js} +27 -27
- package/dist/chunks/{file-ops-8yhd83xr.js → file-ops-knfqshrm.js} +22 -22
- package/dist/chunks/{files-hnxqxtsg.js → files-y6fr4he9.js} +32 -30
- package/dist/chunks/{format-host-779sfp2n.js → format-host-1k4qrcqd.js} +2 -2
- package/dist/chunks/{fs-events-b88z7g4h.js → fs-events-3y6y0nrm.js} +4 -4
- package/dist/chunks/{git-panel-xwj8fpab.js → git-panel-2rkrsjva.js} +23 -22
- package/dist/chunks/grid-view-1p6hsyjx.css +8406 -0
- package/dist/chunks/grid-view-a7b87n2c.js +15322 -0
- package/dist/chunks/{iframe-host-syr0f9sb.js → iframe-host-scpw01h8.js} +13 -13
- package/dist/chunks/{jx-validate-j0wxk72w.js → jx-validate-epp2z3s3.js} +2 -2
- package/dist/chunks/{layers-ff81wthn.js → layers-jnvdbqva.js} +5 -5
- package/dist/chunks/layers-panel-73gfkcga.js +41 -0
- package/dist/chunks/{listbox-6v2ac08j.js → listbox-b7jxnhq1.js} +19 -3
- package/dist/chunks/{media-picker-cqhhxhhe.js → media-picker-f66nav16.js} +13 -13
- package/dist/chunks/menu-1dfhry4s.js +15 -0
- package/dist/chunks/{monaco-buffer-bhy3hb6m.js → monaco-buffer-pykwbm92.js} +3 -3
- package/dist/chunks/{monaco-setup-8r62fj6y.js → monaco-setup-km6abc6q.js} +2 -2
- package/dist/chunks/{notify-628t0anh.js → notify-42gk8ha1.js} +2 -2
- package/dist/chunks/{parse-0zx14y15.js → parse-reg9eevt.js} +2 -2
- package/dist/chunks/publish-panel-z1zd2da1.js +27 -0
- package/dist/chunks/quick-search-zdv7h8ht.js +47 -0
- package/dist/chunks/{references-qvvxej7h.js → references-h69xp9zz.js} +2 -2
- package/dist/chunks/right-panel-889vbnm5.js +45 -0
- package/dist/chunks/{split-g7nm1rgb.js → split-4cz4b6ef.js} +14 -3
- package/dist/chunks/{studio-vfq8qpjt.js → studio-0j7r7s9g.js} +3 -3
- package/dist/chunks/{studio-b4s9eykd.js → studio-151w0xnh.js} +15 -15
- package/dist/chunks/studio-1tbjfqv4.js +146 -0
- package/dist/chunks/{studio-8scdew0e.js → studio-27q131j3.js} +4 -4
- package/dist/chunks/{studio-7r42c6ca.js → studio-3ntvq6cg.js} +5 -5
- package/dist/chunks/{studio-g3jevyjt.js → studio-4c041r8y.js} +2 -2
- package/dist/chunks/{studio-js8nv53n.js → studio-4f3psrk1.js} +14 -14
- package/dist/chunks/{studio-pxbgypmg.js → studio-50wfwy44.js} +17 -14
- package/dist/chunks/{studio-vw7mzp6z.js → studio-6gryj0sg.js} +5 -5
- package/dist/chunks/{studio-e1pgga3k.js → studio-6kvgrkrp.js} +7 -7
- package/dist/chunks/{studio-wqz6dggm.js → studio-7144epdr.js} +9 -9
- package/dist/chunks/{studio-b0k5tqgp.js → studio-7rrb1esn.js} +32 -28
- package/dist/chunks/{studio-38emantv.js → studio-a5h5j33a.js} +19 -5
- package/dist/chunks/{studio-3773086z.js → studio-a65w20ex.js} +4 -4
- package/dist/chunks/{studio-nzzpvzx9.js → studio-ab87phj1.js} +4 -4
- package/dist/chunks/{studio-r6nvacqs.js → studio-b66rsh78.js} +20 -20
- package/dist/chunks/{studio-jxp12rnj.js → studio-b7xacrwe.js} +6 -6
- package/dist/chunks/{studio-6xa21ej9.js → studio-c04nzbby.js} +2 -2
- package/dist/chunks/{studio-try13h8c.js → studio-c0qgc3tn.js} +18 -18
- package/dist/chunks/{studio-tqgryxwg.js → studio-cgprcdxn.js} +7 -7
- package/dist/chunks/{studio-kkqkcp3d.js → studio-d1n2bykn.js} +40 -13
- package/dist/chunks/{studio-p1dw8wfw.js → studio-d8z5bajd.js} +14 -10
- package/dist/chunks/{studio-3rz5md06.js → studio-dd1qqkry.js} +6 -6
- package/dist/chunks/{studio-1z1kcjv4.js → studio-drg8qj9k.js} +11 -11
- package/dist/chunks/{studio-kcgff4r0.js → studio-fgmfksz8.js} +2 -2
- package/dist/chunks/{studio-qk90fgqm.js → studio-fzjx96t2.js} +7 -7
- package/dist/chunks/{studio-a79k90n9.js → studio-g33v4fe9.js} +17 -16
- package/dist/chunks/{studio-k75n7vhp.js → studio-gk2twyh4.js} +74 -36
- package/dist/chunks/{studio-syg2tadj.js → studio-gtfq1dkz.js} +3 -3
- package/dist/chunks/{studio-1knfqgy7.js → studio-j0w60gft.js} +8 -8
- package/dist/chunks/{studio-aj37eer3.js → studio-jt27ta6x.js} +4 -4
- package/dist/chunks/{studio-gb13095a.js → studio-ke09tn9k.js} +59 -20
- package/dist/chunks/{studio-d0300636.js → studio-ks2zzth2.js} +17 -2
- package/dist/chunks/{studio-6ewqv390.js → studio-m1p9b6c3.js} +5 -5
- package/dist/chunks/{studio-qk4bfsq2.js → studio-msc1ee1m.js} +4 -4
- package/dist/chunks/{studio-93zafjcm.js → studio-nfx354t1.js} +10 -10
- package/dist/chunks/{studio-mhhyamxf.js → studio-nsgw7dbk.js} +6 -6
- package/dist/chunks/{studio-qhhm6hbt.js → studio-rtskkm43.js} +4 -4
- package/dist/chunks/studio-t171hxhe.js +23 -0
- package/dist/chunks/{studio-hhvs4sdg.js → studio-vn5hske5.js} +10 -4
- package/dist/chunks/{studio-q3x06vmj.js → studio-wnsyffg1.js} +2 -2
- package/dist/chunks/{studio-5wt9nvhd.js → studio-xajk70w0.js} +29 -42
- package/dist/chunks/{studio-7xnmgv66.js → studio-ye9drbk8.js} +45 -44
- package/dist/chunks/{studio-y9zedyjn.js → studio-z2smx5ce.js} +2 -2
- package/dist/chunks/{studio-sbjyc8bt.js → studio-ze46gzjh.js} +9 -9
- package/dist/chunks/{studio-zdn2g6dt.js → studio-zjjde71a.js} +2 -2
- package/dist/chunks/{workspace-t55jdjbx.js → workspace-np10mayv.js} +18 -10
- package/dist/iframe-entry.js +9 -5
- package/dist/studio.css +1 -2
- package/dist/studio.js +910 -15705
- package/package.json +10 -10
- package/src/files/files.ts +38 -15
- package/src/grid/grid-lazy.ts +59 -0
- package/src/grid/grid-open.ts +20 -3
- package/src/grid/grid-panel.ts +43 -9
- package/src/media/media-open.ts +14 -2
- package/src/panels/chat-panel.ts +40 -5
- package/src/panels/pane-context.ts +5 -4
- package/src/panels/pane-grid.ts +100 -10
- package/src/panels/tab-drop.ts +220 -0
- package/src/panels/tab-strip.ts +235 -30
- package/src/services/ai-models.ts +13 -0
- package/src/services/module-preloads.ts +67 -0
- package/src/studio.ts +16 -6
- package/src/surfaces/commandbar.json +26 -16
- package/src/surfaces/formula-palette.json +8 -7
- package/src/surfaces/formula-palette.ts +10 -6
- package/src/surfaces/palette.json +8 -7
- package/src/surfaces/pane-grid.json +35 -3
- package/src/surfaces/pane-grid.ts +26 -4
- package/src/surfaces/tab-strip.json +16 -39
- package/src/surfaces/tab-strip.ts +76 -12
- package/src/ui/ai-credentials-form.ts +12 -1
- package/src/ui/panel-resize.ts +3 -23
- package/src/ui/virtual-window.ts +57 -4
- package/src/workspace/pane-derive.ts +7 -5
- package/src/workspace/session.ts +3 -3
- package/src/workspace/workspace.ts +160 -43
- package/styles/shell-frame.css +8 -0
- package/styles/shell-frame.json +4 -0
- package/dist/chunks/content-source-5mex4x1h.js +0 -46
- package/dist/chunks/entry-commands-234hjnqw.js +0 -42
- package/dist/chunks/layers-panel-pnnghw12.js +0 -40
- package/dist/chunks/menu-9p2w46gj.js +0 -15
- package/dist/chunks/publish-panel-5zt840sy.js +0 -27
- package/dist/chunks/quick-search-3748564r.js +0 -45
- package/dist/chunks/right-panel-eccz92qt.js +0 -45
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectState,
|
|
3
3
|
updateSession
|
|
4
|
-
} from "./studio-
|
|
4
|
+
} from "./studio-m1p9b6c3.js";
|
|
5
5
|
import {
|
|
6
6
|
isKeyframesAtRule
|
|
7
|
-
} from "./studio-
|
|
7
|
+
} from "./studio-d1n2bykn.js";
|
|
8
8
|
import {
|
|
9
9
|
registerSurface,
|
|
10
10
|
mountSurface
|
|
11
|
-
} from "./studio-
|
|
11
|
+
} from "./studio-0j7r7s9g.js";
|
|
12
12
|
import {
|
|
13
13
|
reactive
|
|
14
|
-
} from "./studio-
|
|
14
|
+
} from "./studio-d8z5bajd.js";
|
|
15
15
|
import {
|
|
16
16
|
isSpliceablePath,
|
|
17
17
|
varDisplayName,
|
|
18
18
|
activeTab2
|
|
19
|
-
} from "./studio-
|
|
19
|
+
} from "./studio-gk2twyh4.js";
|
|
20
20
|
import {
|
|
21
21
|
getEffectiveMedia,
|
|
22
22
|
getEffectiveStyle,
|
|
23
23
|
shell
|
|
24
|
-
} from "./studio-
|
|
24
|
+
} from "./studio-fzjx96t2.js";
|
|
25
25
|
import {
|
|
26
26
|
componentRegistry2
|
|
27
|
-
} from "./studio-
|
|
27
|
+
} from "./studio-zjjde71a.js";
|
|
28
28
|
import {
|
|
29
29
|
tabOfPane,
|
|
30
30
|
mediaDisplayName,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
parseMediaEntries,
|
|
34
34
|
mountStylebookCanvas2,
|
|
35
35
|
panToStylebookTag2
|
|
36
|
-
} from "./studio-
|
|
36
|
+
} from "./studio-drg8qj9k.js";
|
|
37
37
|
import {
|
|
38
38
|
__preload
|
|
39
39
|
} from "./studio-5te5tqng.js";
|
|
@@ -981,7 +981,7 @@ function defaultCommands(deps) {
|
|
|
981
981
|
enablement: (ctx) => structurallyEditable(ctx) && !ctx.selection.isRepeater,
|
|
982
982
|
requires: "an element with a sibling position that is not already a repeater",
|
|
983
983
|
run: () => {
|
|
984
|
-
(__preload("
|
|
984
|
+
(__preload("jxsv62v7"), import("./convert-to-repeater-jxsv62v7.js")).then(({ convertToRepeater }) => convertToRepeater());
|
|
985
985
|
}
|
|
986
986
|
},
|
|
987
987
|
{
|
|
@@ -1190,4 +1190,4 @@ function inspectorFocusCommands(deps) {
|
|
|
1190
1190
|
export { transposeStylebookStyle, PROJECT_STYLES_TITLE, PROJECT_STYLES_VIEW, TOKEN_GROUPS, tokenLabel, groupTokens, listTokenContexts, readTokenOverride, writeTokenOverride, addableContexts, stylebook_meta_default, renderStylebookMode, selectStylebookTag, INSPECTOR_TABS, noopCommandDeps, defaultCommands };
|
|
1191
1191
|
|
|
1192
1192
|
//# debugId=10489CF10762040B64756E2164756E21
|
|
1193
|
-
//# sourceMappingURL=studio-
|
|
1193
|
+
//# sourceMappingURL=studio-nfx354t1.js.map
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./studio-6nzaktvy.js";
|
|
4
4
|
import {
|
|
5
5
|
projectState
|
|
6
|
-
} from "./studio-
|
|
6
|
+
} from "./studio-m1p9b6c3.js";
|
|
7
7
|
import {
|
|
8
8
|
effectScope,
|
|
9
9
|
effect,
|
|
10
10
|
reactive,
|
|
11
11
|
shallowReactive
|
|
12
|
-
} from "./studio-
|
|
12
|
+
} from "./studio-d8z5bajd.js";
|
|
13
13
|
import {
|
|
14
14
|
updateSiteConfig,
|
|
15
15
|
shell
|
|
16
|
-
} from "./studio-
|
|
16
|
+
} from "./studio-fzjx96t2.js";
|
|
17
17
|
import {
|
|
18
18
|
activeRegistry
|
|
19
|
-
} from "./studio-
|
|
19
|
+
} from "./studio-d1n2bykn.js";
|
|
20
20
|
import {
|
|
21
21
|
registerSurface,
|
|
22
22
|
mountSurface
|
|
23
|
-
} from "./studio-
|
|
23
|
+
} from "./studio-0j7r7s9g.js";
|
|
24
24
|
|
|
25
25
|
// ../create/scaffold.ts
|
|
26
26
|
var CF_ADAPTERS = new Set(["cloudflare-pages", "cloudflare-workers"]);
|
|
@@ -760,4 +760,4 @@ function syncDeployChecklist(host) {
|
|
|
760
760
|
export { platformSupportsPublish, listAccounts2, latestDeployment, writeDeployConfig, connectDeploy, currentDeploy, noteDeployment, deployStatusItem, syncDeployChecklist };
|
|
761
761
|
|
|
762
762
|
//# debugId=D0D91CF5DFF5DC8F64756E2164756E21
|
|
763
|
-
//# sourceMappingURL=studio-
|
|
763
|
+
//# sourceMappingURL=studio-nsgw7dbk.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
projectState
|
|
3
|
-
} from "./studio-
|
|
3
|
+
} from "./studio-m1p9b6c3.js";
|
|
4
4
|
import {
|
|
5
5
|
findContentTypeSchema
|
|
6
|
-
} from "./studio-
|
|
6
|
+
} from "./studio-gk2twyh4.js";
|
|
7
7
|
import {
|
|
8
8
|
collectionInfo2
|
|
9
|
-
} from "./studio-
|
|
9
|
+
} from "./studio-j0w60gft.js";
|
|
10
10
|
|
|
11
11
|
// src/content/entry-model.ts
|
|
12
12
|
function collectionNames() {
|
|
@@ -88,4 +88,4 @@ function missingRequired(schema, value) {
|
|
|
88
88
|
export { entryCollection, entryCollections, collectionOfPath, seedEntry, missingRequired };
|
|
89
89
|
|
|
90
90
|
//# debugId=DEACD1047368F5A364756E2164756E21
|
|
91
|
-
//# sourceMappingURL=studio-
|
|
91
|
+
//# sourceMappingURL=studio-rtskkm43.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/grid/grid-idle.ts
|
|
2
|
+
var liveGrids = new Set;
|
|
3
|
+
function registerGridProbe(probe) {
|
|
4
|
+
liveGrids.add(probe);
|
|
5
|
+
return () => liveGrids.delete(probe);
|
|
6
|
+
}
|
|
7
|
+
function gridIdleBlockers() {
|
|
8
|
+
const blockers = [];
|
|
9
|
+
for (const probe of liveGrids) {
|
|
10
|
+
try {
|
|
11
|
+
const reason = probe();
|
|
12
|
+
if (reason) {
|
|
13
|
+
blockers.push(reason);
|
|
14
|
+
}
|
|
15
|
+
} catch {}
|
|
16
|
+
}
|
|
17
|
+
return blockers;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { registerGridProbe, gridIdleBlockers };
|
|
21
|
+
|
|
22
|
+
//# debugId=23F8A33232CDB08E64756E2164756E21
|
|
23
|
+
//# sourceMappingURL=studio-t171hxhe.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
setSetting,
|
|
10
10
|
setSettings,
|
|
11
11
|
clearSettings
|
|
12
|
-
} from "./studio-
|
|
12
|
+
} from "./studio-z2smx5ce.js";
|
|
13
13
|
|
|
14
14
|
// src/services/ai-settings.ts
|
|
15
15
|
function getOpenAiKey() {
|
|
@@ -54,6 +54,7 @@ var proxyConfigured = false;
|
|
|
54
54
|
var proxyManaged = false;
|
|
55
55
|
var proxyDefaultModel = "";
|
|
56
56
|
var proxyCode;
|
|
57
|
+
var proxyModelsError = "";
|
|
57
58
|
var proxyProbe = null;
|
|
58
59
|
var probeListeners = new Set;
|
|
59
60
|
var PROBE_STALE_MS = 600000;
|
|
@@ -66,6 +67,7 @@ function resetModelCache() {
|
|
|
66
67
|
proxyManaged = false;
|
|
67
68
|
proxyDefaultModel = "";
|
|
68
69
|
proxyCode = undefined;
|
|
70
|
+
proxyModelsError = "";
|
|
69
71
|
proxyProbe = null;
|
|
70
72
|
probeSettledAt = 0;
|
|
71
73
|
}
|
|
@@ -134,6 +136,9 @@ function isManagedProxy() {
|
|
|
134
136
|
function proxyStateCode() {
|
|
135
137
|
return proxyCode;
|
|
136
138
|
}
|
|
139
|
+
function proxyModelsErrorMessage() {
|
|
140
|
+
return proxyModelsError;
|
|
141
|
+
}
|
|
137
142
|
function getProxyDefaultModel() {
|
|
138
143
|
return proxyDefaultModel;
|
|
139
144
|
}
|
|
@@ -175,6 +180,7 @@ async function fetchAvailableModels(opts = {}) {
|
|
|
175
180
|
proxyManaged = data.managed === true;
|
|
176
181
|
proxyDefaultModel = data.defaultModel ?? "";
|
|
177
182
|
proxyCode = data.code;
|
|
183
|
+
proxyModelsError = data.upstreamError !== undefined ? data.upstreamMessage ?? "" : "";
|
|
178
184
|
cache = (data.models || []).map((m) => {
|
|
179
185
|
const model = { id: m.id, name: m.name || m.id };
|
|
180
186
|
if (typeof m.contextWindow === "number") {
|
|
@@ -189,7 +195,7 @@ async function fetchAvailableModels(opts = {}) {
|
|
|
189
195
|
return cache;
|
|
190
196
|
}
|
|
191
197
|
|
|
192
|
-
export { getOpenAiKey, setOpenAiKey, hasOpenAiKey, getBaseUrl, storedModel, setModel, saveAiProvider, clearAiProvider, aiConnection, resetModelCache, cachedModels, modelToolSupport, modelContextWindow, ensureProxyProbe, hasAiCredentials, isProxyConfigured, isManagedProxy, proxyStateCode, preferredModel, fetchAvailableModels };
|
|
198
|
+
export { getOpenAiKey, setOpenAiKey, hasOpenAiKey, getBaseUrl, storedModel, setModel, saveAiProvider, clearAiProvider, aiConnection, resetModelCache, cachedModels, modelToolSupport, modelContextWindow, ensureProxyProbe, hasAiCredentials, isProxyConfigured, isManagedProxy, proxyStateCode, proxyModelsErrorMessage, preferredModel, fetchAvailableModels };
|
|
193
199
|
|
|
194
|
-
//# debugId=
|
|
195
|
-
//# sourceMappingURL=studio-
|
|
200
|
+
//# debugId=C5291DD230D7E25064756E2164756E21
|
|
201
|
+
//# sourceMappingURL=studio-vn5hske5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toRaw,
|
|
3
3
|
notify2
|
|
4
|
-
} from "./studio-
|
|
4
|
+
} from "./studio-d8z5bajd.js";
|
|
5
5
|
|
|
6
6
|
// src/view.ts
|
|
7
7
|
var view = {
|
|
@@ -261,4 +261,4 @@ function tabBufferUnsaved2(tab) {
|
|
|
261
261
|
export { view, nextRenderGeneration, surfaceForPane, allCanvasSurfaces, stageContaining, registerCanvasSurface, createPaneSurface, setSurfaceTeardown, disposePaneSurface, BUFFER_COMMIT2, bufferWrites2, commitBufferWrites2, cancelBufferWrites2, bufferIsLive2, bufferMovedOn2, commitTabBuffers2, tabBufferUnsaved2 };
|
|
262
262
|
|
|
263
263
|
//# debugId=CEB2BECD922331C964756E2164756E21
|
|
264
|
-
//# sourceMappingURL=studio-
|
|
264
|
+
//# sourceMappingURL=studio-wnsyffg1.js.map
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
} from "./studio-6nzaktvy.js";
|
|
12
12
|
import {
|
|
13
13
|
formatForPath2
|
|
14
|
-
} from "./studio-
|
|
14
|
+
} from "./studio-6gryj0sg.js";
|
|
15
15
|
import {
|
|
16
16
|
POLL_GIT,
|
|
17
17
|
projectState,
|
|
18
18
|
rendersInFlight,
|
|
19
19
|
render3
|
|
20
|
-
} from "./studio-
|
|
20
|
+
} from "./studio-m1p9b6c3.js";
|
|
21
21
|
import {
|
|
22
22
|
collabState,
|
|
23
23
|
flushAllCollab,
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
activeTab2,
|
|
26
26
|
openTab2,
|
|
27
27
|
activateTab2
|
|
28
|
-
} from "./studio-
|
|
28
|
+
} from "./studio-gk2twyh4.js";
|
|
29
29
|
import {
|
|
30
30
|
effectScope,
|
|
31
31
|
effect,
|
|
32
32
|
reactive,
|
|
33
33
|
now,
|
|
34
34
|
notify2
|
|
35
|
-
} from "./studio-
|
|
35
|
+
} from "./studio-d8z5bajd.js";
|
|
36
36
|
import {
|
|
37
37
|
extensionOf,
|
|
38
38
|
isMediaFile,
|
|
39
39
|
mediaKind,
|
|
40
40
|
mediaSiteUrl,
|
|
41
41
|
previewFileSrc
|
|
42
|
-
} from "./studio-
|
|
42
|
+
} from "./studio-b7xacrwe.js";
|
|
43
43
|
import {
|
|
44
44
|
REGION_ATTR,
|
|
45
45
|
paneRegion,
|
|
@@ -51,26 +51,26 @@ import {
|
|
|
51
51
|
showConfirmDialog2,
|
|
52
52
|
showPromptDialog2,
|
|
53
53
|
overlayIdleBlockers2
|
|
54
|
-
} from "./studio-
|
|
54
|
+
} from "./studio-0j7r7s9g.js";
|
|
55
55
|
import {
|
|
56
56
|
showModal,
|
|
57
57
|
close2
|
|
58
|
-
} from "./studio-
|
|
58
|
+
} from "./studio-d1n2bykn.js";
|
|
59
59
|
import {
|
|
60
60
|
peekMediaMeta,
|
|
61
61
|
loadMediaMeta,
|
|
62
62
|
recordImageSize,
|
|
63
63
|
formatBytes
|
|
64
|
-
} from "./studio-
|
|
64
|
+
} from "./studio-gtfq1dkz.js";
|
|
65
65
|
import {
|
|
66
66
|
shell
|
|
67
|
-
} from "./studio-
|
|
67
|
+
} from "./studio-fzjx96t2.js";
|
|
68
68
|
import {
|
|
69
69
|
registerPanel
|
|
70
|
-
} from "./studio-
|
|
70
|
+
} from "./studio-27q131j3.js";
|
|
71
71
|
import {
|
|
72
72
|
authenticateGithub
|
|
73
|
-
} from "./studio-
|
|
73
|
+
} from "./studio-msc1ee1m.js";
|
|
74
74
|
import {
|
|
75
75
|
beginActivity,
|
|
76
76
|
activityIdleBlockers,
|
|
@@ -78,12 +78,15 @@ import {
|
|
|
78
78
|
peekMediaUsages,
|
|
79
79
|
loadMediaUsages,
|
|
80
80
|
mediaUsageHeadline
|
|
81
|
-
} from "./studio-
|
|
81
|
+
} from "./studio-cgprcdxn.js";
|
|
82
82
|
import {
|
|
83
83
|
canvasIdleBlockers2,
|
|
84
84
|
canvasPointAt2,
|
|
85
85
|
revealCanvasPath2
|
|
86
|
-
} from "./studio-
|
|
86
|
+
} from "./studio-drg8qj9k.js";
|
|
87
|
+
import {
|
|
88
|
+
gridIdleBlockers
|
|
89
|
+
} from "./studio-t171hxhe.js";
|
|
87
90
|
import {
|
|
88
91
|
rectOf
|
|
89
92
|
} from "./studio-rs76k67r.js";
|
|
@@ -734,7 +737,7 @@ function usageOf(usage) {
|
|
|
734
737
|
};
|
|
735
738
|
}
|
|
736
739
|
async function openDocument(path) {
|
|
737
|
-
const { openFileInTab } = await (__preload("
|
|
740
|
+
const { openFileInTab } = await (__preload("y6fr4he9"), import("./files-y6fr4he9.js"));
|
|
738
741
|
await openFileInTab(path);
|
|
739
742
|
}
|
|
740
743
|
function renderMediaMode(surface, tab) {
|
|
@@ -816,10 +819,10 @@ function isViewableMedia(path) {
|
|
|
816
819
|
function mediaTabModes(path) {
|
|
817
820
|
return extensionOf(path) === ".svg" ? [MEDIA_MODE, "source"] : [MEDIA_MODE];
|
|
818
821
|
}
|
|
819
|
-
function openMediaTab(path) {
|
|
822
|
+
function openMediaTab(path, opts = {}) {
|
|
820
823
|
const existing = workspace2.tabs.get(path);
|
|
821
824
|
if (existing) {
|
|
822
|
-
activateTab2(path);
|
|
825
|
+
activateTab2(path, { focus: opts.focus !== false });
|
|
823
826
|
return existing;
|
|
824
827
|
}
|
|
825
828
|
return openTab2({
|
|
@@ -827,7 +830,10 @@ function openMediaTab(path) {
|
|
|
827
830
|
document: structuredClone(MEDIA_STUB_DOCUMENT),
|
|
828
831
|
documentPath: path,
|
|
829
832
|
id: path,
|
|
830
|
-
sourceFormat: null
|
|
833
|
+
sourceFormat: null,
|
|
834
|
+
...opts.paneId !== undefined && { paneId: opts.paneId },
|
|
835
|
+
...opts.preview === true && { preview: true },
|
|
836
|
+
...opts.focus === false && { focus: false }
|
|
831
837
|
});
|
|
832
838
|
}
|
|
833
839
|
|
|
@@ -881,7 +887,7 @@ async function openComparisonTab(path) {
|
|
|
881
887
|
if (!canRenderComparison(path)) {
|
|
882
888
|
return openDiffTab(path);
|
|
883
889
|
}
|
|
884
|
-
const files = await (__preload("
|
|
890
|
+
const files = await (__preload("y6fr4he9"), import("./files-y6fr4he9.js"));
|
|
885
891
|
const opened = await files.openFileInTab(path, {});
|
|
886
892
|
return opened ?? [...workspace2.tabs.values()].find((tab) => tab.documentPath === path) ?? null;
|
|
887
893
|
}
|
|
@@ -1266,7 +1272,7 @@ async function createGithubRepository({ projectName }) {
|
|
|
1266
1272
|
});
|
|
1267
1273
|
return false;
|
|
1268
1274
|
}
|
|
1269
|
-
const { refreshGitStatus } = await (__preload("
|
|
1275
|
+
const { refreshGitStatus } = await (__preload("2rkrsjva"), import("./git-panel-2rkrsjva.js"));
|
|
1270
1276
|
await refreshGitStatus();
|
|
1271
1277
|
activity.done(repo.html_url);
|
|
1272
1278
|
notify2.success(`Repository created: ${repo.html_url}`, { key: "github.repo" });
|
|
@@ -1296,25 +1302,6 @@ function seedProjectList(entries) {
|
|
|
1296
1302
|
cache = entries;
|
|
1297
1303
|
}
|
|
1298
1304
|
|
|
1299
|
-
// src/grid/grid-idle.ts
|
|
1300
|
-
var liveGrids = new Set;
|
|
1301
|
-
function registerGridProbe(probe) {
|
|
1302
|
-
liveGrids.add(probe);
|
|
1303
|
-
return () => liveGrids.delete(probe);
|
|
1304
|
-
}
|
|
1305
|
-
function gridIdleBlockers() {
|
|
1306
|
-
const blockers = [];
|
|
1307
|
-
for (const probe of liveGrids) {
|
|
1308
|
-
try {
|
|
1309
|
-
const reason = probe();
|
|
1310
|
-
if (reason) {
|
|
1311
|
-
blockers.push(reason);
|
|
1312
|
-
}
|
|
1313
|
-
} catch {}
|
|
1314
|
-
}
|
|
1315
|
-
return blockers;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
1305
|
// src/services/idle.ts
|
|
1319
1306
|
var QUIET_FRAMES = 2;
|
|
1320
1307
|
var DEFAULT_IDLE_TIMEOUT_MS = 1e4;
|
|
@@ -4518,7 +4505,7 @@ async function discardFile(path) {
|
|
|
4518
4505
|
await gitAction("gitDiscard", [path]);
|
|
4519
4506
|
}
|
|
4520
4507
|
function openCommitMenu(anchor) {
|
|
4521
|
-
(__preload("
|
|
4508
|
+
(__preload("1dfhry4s"), import("./menu-1dfhry4s.js")).then(({ openMenu }) => {
|
|
4522
4509
|
openMenu({
|
|
4523
4510
|
label: "Commit options",
|
|
4524
4511
|
opener: anchor,
|
|
@@ -4757,7 +4744,7 @@ function registerGitPanel2() {
|
|
|
4757
4744
|
});
|
|
4758
4745
|
}
|
|
4759
4746
|
|
|
4760
|
-
export { hydrateProjectList, getProjectList,
|
|
4747
|
+
export { hydrateProjectList, getProjectList, shouldInstallAutomation, installAutomationHook, stripRange, isUpgrade, maybePromptJxsuiteUpdate, autoSyncProjectOnOpen, mediaPaneMounted, detachMediaPane, renderMediaMode, isViewableMedia, openMediaTab, canRenderComparison, refreshGitStatus2, noteFileSaved2, cloneRepository2, platformSupportsClone2, loadDiffForLens2, renderGitPanel2, registerSourceControlCommands2, cleanupGitPanel2, registerGitPanel2 };
|
|
4761
4748
|
|
|
4762
|
-
//# debugId=
|
|
4763
|
-
//# sourceMappingURL=studio-
|
|
4749
|
+
//# debugId=9BC159B45C360F4964756E2164756E21
|
|
4750
|
+
//# sourceMappingURL=studio-xajk70w0.js.map
|