@jxsuite/studio 2.2.2 → 2.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/data/css-meta.json +1487 -0
- package/data/elements-meta.json +370 -0
- package/data/html-meta.json +366 -0
- package/data/stylebook-meta.json +200 -0
- package/data/webdata.json +1621 -0
- package/dist/chunks/{Overlay.dev-ymy3et3y.js → Overlay.dev-d2ajy6sj.js} +7 -7
- package/dist/chunks/{content-source-r2n7v682.js → content-source-56xpvx83.js} +13 -12
- package/dist/chunks/{convert-to-repeater-cnpyvj74.js → convert-to-repeater-0xh9wwek.js} +12 -11
- package/dist/chunks/{extension-sections-vpcm4jvx.js → extension-sections-g34239vm.js} +17 -16
- package/dist/chunks/{files-zeg88k2d.js → files-gkz202dp.js} +18 -19
- package/dist/chunks/{format-host-taymsw55.js → format-host-pej3srnw.js} +2 -2
- package/dist/chunks/{git-panel-qp4rrwr9.js → git-panel-4j6xbh8g.js} +12 -11
- package/dist/chunks/{layers-panel-kj93w2zg.js → layers-panel-8mvn8sgd.js} +15 -14
- package/dist/chunks/{monaco-setup-xy3bs05d.js → monaco-setup-a5wkmbgh.js} +6 -3
- package/dist/chunks/{publish-panel-6qz6kp41.js → publish-panel-ptddc3kg.js} +6 -6
- package/dist/chunks/{quick-search-9wwa09hh.js → quick-search-j88azfs2.js} +19 -18
- package/dist/chunks/right-panel-egkaxy89.js +38 -0
- package/dist/chunks/{sp-overlay.dev-h6kdx076.js → sp-overlay.dev-s18hymn9.js} +8 -8
- package/dist/chunks/sp-progress-circle.dev-0zxcyz3r.js +15 -0
- package/dist/chunks/sp-tooltip.dev-5c6d1kjz.js +15 -0
- package/dist/chunks/{studio-753znj4c.js → studio-0e4h32g6.js} +5 -5
- package/dist/chunks/{studio-yz9s88s0.js → studio-10s469da.js} +25 -9
- package/dist/chunks/{studio-6f0am8f2.js → studio-2w11grav.js} +2 -2
- package/dist/chunks/{studio-zqv3w24n.js → studio-3q65xvzv.js} +5 -5
- package/dist/chunks/{studio-qhh8r5fz.js → studio-4058pg09.js} +4 -4
- package/dist/chunks/{studio-hekaagev.js → studio-4enps87v.js} +17 -17
- package/dist/chunks/{studio-tqemhphj.js → studio-50eed4c9.js} +4 -4
- package/dist/chunks/studio-53n8bp04.js +16 -0
- package/dist/chunks/{studio-nqq8jk8f.js → studio-5amdrjm4.js} +14 -14
- package/dist/chunks/{studio-6zzbyx17.js → studio-5ne8mdx9.js} +2 -2
- package/dist/chunks/{studio-3z8jjm2p.js → studio-7ejemhej.js} +3 -3
- package/dist/chunks/{studio-1kgfcv7s.js → studio-a11d3a1b.js} +12 -11
- package/dist/chunks/{studio-rgwcpast.js → studio-ay8wcr2b.js} +2 -2
- package/dist/chunks/{studio-fys6z73y.js → studio-bak2cyjr.js} +7 -7
- package/dist/chunks/{studio-xmvbhg31.js → studio-c31yb4t6.js} +2 -2
- package/dist/chunks/{studio-8sdyjfd6.js → studio-cf4rk7kv.js} +2 -2
- package/dist/chunks/{studio-yphy4z9m.js → studio-cv606rs1.js} +5 -5
- package/dist/chunks/{studio-5kt960pk.js → studio-hk523hby.js} +133 -147
- package/dist/chunks/{studio-x0et2z9g.js → studio-hs8x23fv.js} +15 -15
- package/dist/chunks/{studio-p471gg5n.js → studio-kvfx9z2c.js} +7 -3
- package/dist/chunks/{studio-22xr4q8q.js → studio-ncnet0ba.js} +18 -29
- package/dist/chunks/{studio-ckwz4d3x.js → studio-twsafr1e.js} +2 -2
- package/dist/chunks/{studio-qrsfh1w7.js → studio-tzx3xmvx.js} +5 -5
- package/dist/chunks/{studio-g8t7g0gp.js → studio-vdpcpada.js} +3 -3
- package/dist/chunks/{studio-6a0h7sne.js → studio-vhk5fmfv.js} +2 -2
- package/dist/chunks/{studio-hrajjyt2.js → studio-wdt9y92a.js} +2 -2
- package/dist/chunks/{studio-r8vx7bkz.js → studio-x3etxs0s.js} +14 -13
- package/dist/chunks/{studio-pv8m0h4a.js → studio-yxzgjq8q.js} +28 -23
- package/dist/chunks/{studio-300zsz1k.js → studio-zdkgwhkv.js} +6 -6
- package/dist/codicon.ttf +0 -0
- package/dist/iframe-entry.js +8 -1
- package/dist/manifest.json +82 -0
- package/dist/studio.js +232 -103
- package/index.html +0 -50
- package/package.json +11 -4
- package/src/canvas/iframe-entry.ts +5 -0
- package/src/canvas/iframe-host.ts +45 -4
- package/src/content/entry-editor.ts +2 -1
- package/src/editor/context-menu.ts +13 -2
- package/src/editor/slash-menu.ts +26 -11
- package/src/files/files.ts +11 -23
- package/src/grid/grid-panel.ts +27 -6
- package/src/hosting/document.ts +109 -0
- package/src/hosting/layout.ts +211 -0
- package/src/hosting/stage.ts +166 -0
- package/src/hosting/tsconfig.json +18 -0
- package/src/panels/ai-chat/chat-view.ts +25 -14
- package/src/panels/git-panel.ts +17 -14
- package/src/panels/head-panel.ts +32 -14
- package/src/panels/imports-panel.ts +32 -13
- package/src/panels/layers-panel.ts +9 -1
- package/src/panels/panel-registry.ts +0 -1
- package/src/panels/properties-panel.ts +3 -3
- package/src/panels/settings-pane.ts +1 -1
- package/src/panels/style-panel.ts +3 -3
- package/src/panels/stylebook-panel.ts +10 -1
- package/src/panels/toolbar.ts +1 -1
- package/src/services/bundle-base.ts +69 -0
- package/src/services/monaco-setup.ts +19 -13
- package/src/shell/tree.ts +155 -0
- package/src/shell.ts +0 -2
- package/src/studio.ts +22 -2
- package/src/types.ts +15 -0
- package/src/ui/regions.ts +10 -45
- package/styles/overlays.css +35 -0
- package/dist/chunks/2020-xp8vnwma.js.map +0 -24
- package/dist/chunks/Overlay.dev-ymy3et3y.js.map +0 -9
- package/dist/chunks/adapter-jkcyhgtr.js.map +0 -9
- package/dist/chunks/cf-settings-g5fbf2zp.js.map +0 -9
- package/dist/chunks/components-z6cnkyy1.js.map +0 -9
- package/dist/chunks/content-source-r2n7v682.js.map +0 -9
- package/dist/chunks/convert-to-repeater-cnpyvj74.js.map +0 -10
- package/dist/chunks/editor-cptq5jp1.js.map +0 -9
- package/dist/chunks/extension-sections-vpcm4jvx.js.map +0 -11
- package/dist/chunks/files-zeg88k2d.js.map +0 -9
- package/dist/chunks/flow-qbfgrpeh.js.map +0 -12
- package/dist/chunks/focus-trap.esm-ggawf1hy.js.map +0 -11
- package/dist/chunks/focus-visible-6eg70z18.js.map +0 -10
- package/dist/chunks/format-host-taymsw55.js.map +0 -9
- package/dist/chunks/git-panel-qp4rrwr9.js.map +0 -9
- package/dist/chunks/index-nj44jpzj.js.map +0 -14
- package/dist/chunks/index-zqxmqxmh.js.map +0 -9
- package/dist/chunks/javascript-q8kpmfah.js.map +0 -11
- package/dist/chunks/jsonMode-dkr040ga.js.map +0 -18
- package/dist/chunks/jx-validate-jj9rnt4n.js.map +0 -9
- package/dist/chunks/layers-panel-kj93w2zg.js.map +0 -9
- package/dist/chunks/monaco-binding-rj6xpx9y.js.map +0 -10
- package/dist/chunks/monaco-setup-xy3bs05d.js.map +0 -15
- package/dist/chunks/publish-panel-6qz6kp41.js.map +0 -9
- package/dist/chunks/quick-search-9wwa09hh.js.map +0 -9
- package/dist/chunks/right-panel-faf816ch.js +0 -37
- package/dist/chunks/right-panel-faf816ch.js.map +0 -9
- package/dist/chunks/section-registry-sx1ykvkw.js.map +0 -9
- package/dist/chunks/sp-overlay.dev-h6kdx076.js.map +0 -9
- package/dist/chunks/sp-popover.dev-dj9x7e7a.js.map +0 -9
- package/dist/chunks/sp-progress-circle.dev-0fpvhm52.js +0 -15
- package/dist/chunks/sp-progress-circle.dev-0fpvhm52.js.map +0 -9
- package/dist/chunks/sp-tooltip.dev-rvepkw4r.js +0 -15
- package/dist/chunks/sp-tooltip.dev-rvepkw4r.js.map +0 -9
- package/dist/chunks/sp-tray.dev-64v4pxw8.js.map +0 -12
- package/dist/chunks/studio-0a5qrh01.js.map +0 -9
- package/dist/chunks/studio-0rqqhrdy.js.map +0 -12
- package/dist/chunks/studio-18j3bmcz.js.map +0 -10
- package/dist/chunks/studio-1kgfcv7s.js.map +0 -13
- package/dist/chunks/studio-22xr4q8q.js.map +0 -13
- package/dist/chunks/studio-300zsz1k.js.map +0 -39
- package/dist/chunks/studio-3fk1ac9z.js.map +0 -12
- package/dist/chunks/studio-3n4ndrzh.js.map +0 -41
- package/dist/chunks/studio-3z8jjm2p.js.map +0 -13
- package/dist/chunks/studio-4mqb9a0j.js.map +0 -14
- package/dist/chunks/studio-4q0wznzf.js.map +0 -73
- package/dist/chunks/studio-5ehhackm.js.map +0 -10
- package/dist/chunks/studio-5kt960pk.js.map +0 -38
- package/dist/chunks/studio-5x5774ak.js.map +0 -10
- package/dist/chunks/studio-685s0ytq.js.map +0 -76
- package/dist/chunks/studio-6a0h7sne.js.map +0 -15
- package/dist/chunks/studio-6f0am8f2.js.map +0 -10
- package/dist/chunks/studio-6kv3apa9.js.map +0 -10
- package/dist/chunks/studio-6zzbyx17.js.map +0 -12
- package/dist/chunks/studio-753znj4c.js.map +0 -16
- package/dist/chunks/studio-7afd21nw.js.map +0 -10
- package/dist/chunks/studio-8jpzqk5s.js.map +0 -10
- package/dist/chunks/studio-8q517dfr.js.map +0 -10
- package/dist/chunks/studio-8sdyjfd6.js.map +0 -10
- package/dist/chunks/studio-a0tswy0w.js.map +0 -9
- package/dist/chunks/studio-a7pzveq1.js.map +0 -11
- package/dist/chunks/studio-ahnzd9rg.js.map +0 -10
- package/dist/chunks/studio-b9b6t1dg.js.map +0 -651
- package/dist/chunks/studio-bw5dz6km.js.map +0 -21
- package/dist/chunks/studio-cjm7fdjf.js.map +0 -14
- package/dist/chunks/studio-ckwz4d3x.js.map +0 -12
- package/dist/chunks/studio-d1ks410h.js.map +0 -10
- package/dist/chunks/studio-dg7zyt5x.js.map +0 -10
- package/dist/chunks/studio-fys6z73y.js.map +0 -10
- package/dist/chunks/studio-g1wdche0.js.map +0 -56
- package/dist/chunks/studio-g8t7g0gp.js.map +0 -10
- package/dist/chunks/studio-h4rxscfc.js.map +0 -10
- package/dist/chunks/studio-hekaagev.js.map +0 -18
- package/dist/chunks/studio-hrajjyt2.js.map +0 -10
- package/dist/chunks/studio-nqq8jk8f.js.map +0 -14
- package/dist/chunks/studio-p471gg5n.js.map +0 -14
- package/dist/chunks/studio-pv8m0h4a.js.map +0 -98
- package/dist/chunks/studio-qhh8r5fz.js.map +0 -13
- package/dist/chunks/studio-qrsfh1w7.js.map +0 -41
- package/dist/chunks/studio-r8vx7bkz.js.map +0 -235
- package/dist/chunks/studio-rgwcpast.js.map +0 -12
- package/dist/chunks/studio-s519zc99.js.map +0 -10
- package/dist/chunks/studio-sas7mt3k.js.map +0 -10
- package/dist/chunks/studio-t5wqwzdh.js.map +0 -10
- package/dist/chunks/studio-tqemhphj.js.map +0 -11
- package/dist/chunks/studio-tr20m8g8.js.map +0 -9
- package/dist/chunks/studio-tvgyw9xw.js.map +0 -14
- package/dist/chunks/studio-x0et2z9g.js.map +0 -32
- package/dist/chunks/studio-xm3dbxvn.js.map +0 -19
- package/dist/chunks/studio-xmvbhg31.js.map +0 -10
- package/dist/chunks/studio-ynxwkrzd.js.map +0 -246
- package/dist/chunks/studio-yphy4z9m.js.map +0 -10
- package/dist/chunks/studio-yz9s88s0.js.map +0 -54
- package/dist/chunks/studio-z6nw2ek2.js.map +0 -10
- package/dist/chunks/studio-zqv3w24n.js.map +0 -11
- package/dist/chunks/tsMode-76kr53q0.js.map +0 -13
- package/dist/chunks/ws-client-6shc5rze.js.map +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ref,
|
|
3
3
|
repeat
|
|
4
|
-
} from "./studio-
|
|
4
|
+
} from "./studio-kvfx9z2c.js";
|
|
5
5
|
import {
|
|
6
6
|
html,
|
|
7
7
|
nothing,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
formatByName,
|
|
27
27
|
formatForPath,
|
|
28
28
|
loadedMonaco
|
|
29
|
-
} from "./studio-
|
|
29
|
+
} from "./studio-50eed4c9.js";
|
|
30
30
|
import {
|
|
31
31
|
getPlatform
|
|
32
32
|
} from "./studio-sas7mt3k.js";
|
|
@@ -1623,146 +1623,6 @@ function pinClock(at) {
|
|
|
1623
1623
|
return ms;
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
1626
|
-
// src/ui/regions.ts
|
|
1627
|
-
var REGION_ATTR = "data-jx-region";
|
|
1628
|
-
var REGION_SURFACES = [
|
|
1629
|
-
"rail",
|
|
1630
|
-
"navigator",
|
|
1631
|
-
"inspector",
|
|
1632
|
-
"pane",
|
|
1633
|
-
"dock.bottom",
|
|
1634
|
-
"statusbar",
|
|
1635
|
-
"commandbar",
|
|
1636
|
-
"overlay"
|
|
1637
|
-
];
|
|
1638
|
-
var DOTTED_SURFACES = new Set(["dock.bottom"]);
|
|
1639
|
-
function parseRegionId(id) {
|
|
1640
|
-
const slash = id.indexOf("/");
|
|
1641
|
-
const head = slash === -1 ? id : id.slice(0, slash);
|
|
1642
|
-
const part = slash === -1 ? undefined : id.slice(slash + 1);
|
|
1643
|
-
if (part === "" || head === "") {
|
|
1644
|
-
return null;
|
|
1645
|
-
}
|
|
1646
|
-
let surface = head;
|
|
1647
|
-
let instance;
|
|
1648
|
-
if (!DOTTED_SURFACES.has(head)) {
|
|
1649
|
-
const dot = head.indexOf(".");
|
|
1650
|
-
if (dot !== -1) {
|
|
1651
|
-
surface = head.slice(0, dot);
|
|
1652
|
-
instance = head.slice(dot + 1);
|
|
1653
|
-
if (instance === "") {
|
|
1654
|
-
return null;
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
if (!REGION_SURFACES.includes(surface)) {
|
|
1659
|
-
return null;
|
|
1660
|
-
}
|
|
1661
|
-
return instance === undefined ? part === undefined ? { surface } : { part, surface } : part === undefined ? { instance, surface } : { instance, part, surface };
|
|
1662
|
-
}
|
|
1663
|
-
function isRegionId(id) {
|
|
1664
|
-
return parseRegionId(id) !== null;
|
|
1665
|
-
}
|
|
1666
|
-
function canonicalRegionId(id) {
|
|
1667
|
-
if (id === "pane") {
|
|
1668
|
-
return "pane.primary";
|
|
1669
|
-
}
|
|
1670
|
-
return id.startsWith("pane/") ? `pane.primary/${id.slice(5)}` : id;
|
|
1671
|
-
}
|
|
1672
|
-
function regionRoot(root) {
|
|
1673
|
-
return root ?? document;
|
|
1674
|
-
}
|
|
1675
|
-
var DERIVED_RESOLVERS = [
|
|
1676
|
-
{
|
|
1677
|
-
locate: ([, prop], root) => {
|
|
1678
|
-
const row = resolveRegion(`inspector/field:${prop}`, root);
|
|
1679
|
-
const browse = row?.querySelector(".media-picker-browse");
|
|
1680
|
-
return browse ? [browse] : [];
|
|
1681
|
-
},
|
|
1682
|
-
pattern: /^inspector\/field:(.+)\/browse$/
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
locate: ([, prop], root) => {
|
|
1686
|
-
const inspector = resolveRegion("inspector", root);
|
|
1687
|
-
return inspector ? [...inspector.querySelectorAll(`[data-prop="${CSS.escape(prop)}"]`)] : [];
|
|
1688
|
-
},
|
|
1689
|
-
pattern: /^inspector\/field:(.+)$/
|
|
1690
|
-
}
|
|
1691
|
-
];
|
|
1692
|
-
function resolveAllRegions(id, root) {
|
|
1693
|
-
const canonical = canonicalRegionId(id);
|
|
1694
|
-
if (!isRegionId(canonical)) {
|
|
1695
|
-
return [];
|
|
1696
|
-
}
|
|
1697
|
-
const stamped = [
|
|
1698
|
-
...regionRoot(root).querySelectorAll(`[${REGION_ATTR}="${CSS.escape(canonical)}"]`)
|
|
1699
|
-
];
|
|
1700
|
-
if (stamped.length > 0) {
|
|
1701
|
-
return stamped;
|
|
1702
|
-
}
|
|
1703
|
-
for (const resolver of DERIVED_RESOLVERS) {
|
|
1704
|
-
const match = canonical.match(resolver.pattern);
|
|
1705
|
-
if (match) {
|
|
1706
|
-
return resolver.locate(match, regionRoot(root));
|
|
1707
|
-
}
|
|
1708
|
-
}
|
|
1709
|
-
return [];
|
|
1710
|
-
}
|
|
1711
|
-
function resolveRegion(id, root) {
|
|
1712
|
-
const all = resolveAllRegions(id, root);
|
|
1713
|
-
return all.at(-1) ?? null;
|
|
1714
|
-
}
|
|
1715
|
-
var REGION_FOR_FOCUS = {
|
|
1716
|
-
dock: "dock.bottom",
|
|
1717
|
-
inspector: "inspector",
|
|
1718
|
-
navigator: "navigator",
|
|
1719
|
-
pane: "pane.primary",
|
|
1720
|
-
rail: "rail",
|
|
1721
|
-
status: "statusbar"
|
|
1722
|
-
};
|
|
1723
|
-
var SHELL_REGION_HOSTS = {
|
|
1724
|
-
"#activity-bar": "rail",
|
|
1725
|
-
"#layer-toast": "overlay.toasts",
|
|
1726
|
-
"#left-panel": "navigator",
|
|
1727
|
-
"#right-panel": "inspector",
|
|
1728
|
-
"#statusbar": "statusbar",
|
|
1729
|
-
"#toolbar": "commandbar"
|
|
1730
|
-
};
|
|
1731
|
-
function stampShellRegions(root = document) {
|
|
1732
|
-
for (const [selector, id] of Object.entries(SHELL_REGION_HOSTS)) {
|
|
1733
|
-
root.querySelector(selector)?.setAttribute(REGION_ATTR, id);
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
function paneRegion(paneId, part) {
|
|
1737
|
-
return part ? `pane.${paneId}/${part}` : `pane.${paneId}`;
|
|
1738
|
-
}
|
|
1739
|
-
function paneStripRegion(paneId) {
|
|
1740
|
-
return paneRegion(paneId, "tabs");
|
|
1741
|
-
}
|
|
1742
|
-
function navigatorPanelRegion(panelId) {
|
|
1743
|
-
return `navigator/panel:${panelId}`;
|
|
1744
|
-
}
|
|
1745
|
-
function inspectorTabRegion(tabId) {
|
|
1746
|
-
return `inspector/tab:${tabId}`;
|
|
1747
|
-
}
|
|
1748
|
-
var NAVIGATOR_STATEMENTS_REGION = "navigator/statements";
|
|
1749
|
-
function inspectorStatementsRegion(eventKey) {
|
|
1750
|
-
return `inspector/statements:${eventKey}`;
|
|
1751
|
-
}
|
|
1752
|
-
function bottomPanelRegion(panelId) {
|
|
1753
|
-
return `dock.bottom/panel:${panelId}`;
|
|
1754
|
-
}
|
|
1755
|
-
var OVERLAY_INSTANCE = {
|
|
1756
|
-
dialog: "dialog",
|
|
1757
|
-
modal: "dialog",
|
|
1758
|
-
popover: "menu",
|
|
1759
|
-
toast: "toasts"
|
|
1760
|
-
};
|
|
1761
|
-
function overlayRegion(layer, id) {
|
|
1762
|
-
const instance = OVERLAY_INSTANCE[layer];
|
|
1763
|
-
return id ? `overlay.${instance}:${id}` : `overlay.${instance}`;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
1626
|
// src/services/announce.ts
|
|
1767
1627
|
var REGION_ID = {
|
|
1768
1628
|
assertive: "jx-live-assertive",
|
|
@@ -3222,6 +3082,133 @@ function applyFmState(tab, field, value) {
|
|
|
3222
3082
|
}
|
|
3223
3083
|
}
|
|
3224
3084
|
|
|
3085
|
+
// src/ui/regions.ts
|
|
3086
|
+
var REGION_ATTR = "data-jx-region";
|
|
3087
|
+
var REGION_SURFACES = [
|
|
3088
|
+
"rail",
|
|
3089
|
+
"navigator",
|
|
3090
|
+
"inspector",
|
|
3091
|
+
"pane",
|
|
3092
|
+
"dock.bottom",
|
|
3093
|
+
"statusbar",
|
|
3094
|
+
"commandbar",
|
|
3095
|
+
"overlay"
|
|
3096
|
+
];
|
|
3097
|
+
var DOTTED_SURFACES = new Set(["dock.bottom"]);
|
|
3098
|
+
function parseRegionId(id) {
|
|
3099
|
+
const slash = id.indexOf("/");
|
|
3100
|
+
const head = slash === -1 ? id : id.slice(0, slash);
|
|
3101
|
+
const part = slash === -1 ? undefined : id.slice(slash + 1);
|
|
3102
|
+
if (part === "" || head === "") {
|
|
3103
|
+
return null;
|
|
3104
|
+
}
|
|
3105
|
+
let surface = head;
|
|
3106
|
+
let instance;
|
|
3107
|
+
if (!DOTTED_SURFACES.has(head)) {
|
|
3108
|
+
const dot = head.indexOf(".");
|
|
3109
|
+
if (dot !== -1) {
|
|
3110
|
+
surface = head.slice(0, dot);
|
|
3111
|
+
instance = head.slice(dot + 1);
|
|
3112
|
+
if (instance === "") {
|
|
3113
|
+
return null;
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
if (!REGION_SURFACES.includes(surface)) {
|
|
3118
|
+
return null;
|
|
3119
|
+
}
|
|
3120
|
+
return instance === undefined ? part === undefined ? { surface } : { part, surface } : part === undefined ? { instance, surface } : { instance, part, surface };
|
|
3121
|
+
}
|
|
3122
|
+
function isRegionId(id) {
|
|
3123
|
+
return parseRegionId(id) !== null;
|
|
3124
|
+
}
|
|
3125
|
+
function canonicalRegionId(id) {
|
|
3126
|
+
if (id === "pane") {
|
|
3127
|
+
return "pane.primary";
|
|
3128
|
+
}
|
|
3129
|
+
return id.startsWith("pane/") ? `pane.primary/${id.slice(5)}` : id;
|
|
3130
|
+
}
|
|
3131
|
+
function regionRoot(root) {
|
|
3132
|
+
return root ?? document;
|
|
3133
|
+
}
|
|
3134
|
+
var DERIVED_RESOLVERS = [
|
|
3135
|
+
{
|
|
3136
|
+
locate: ([, prop], root) => {
|
|
3137
|
+
const row = resolveRegion(`inspector/field:${prop}`, root);
|
|
3138
|
+
const browse = row?.querySelector(".media-picker-browse");
|
|
3139
|
+
return browse ? [browse] : [];
|
|
3140
|
+
},
|
|
3141
|
+
pattern: /^inspector\/field:(.+)\/browse$/
|
|
3142
|
+
},
|
|
3143
|
+
{
|
|
3144
|
+
locate: ([, prop], root) => {
|
|
3145
|
+
const inspector = resolveRegion("inspector", root);
|
|
3146
|
+
return inspector ? [...inspector.querySelectorAll(`[data-prop="${CSS.escape(prop)}"]`)] : [];
|
|
3147
|
+
},
|
|
3148
|
+
pattern: /^inspector\/field:(.+)$/
|
|
3149
|
+
}
|
|
3150
|
+
];
|
|
3151
|
+
function resolveAllRegions(id, root) {
|
|
3152
|
+
const canonical = canonicalRegionId(id);
|
|
3153
|
+
if (!isRegionId(canonical)) {
|
|
3154
|
+
return [];
|
|
3155
|
+
}
|
|
3156
|
+
const stamped = [
|
|
3157
|
+
...regionRoot(root).querySelectorAll(`[${REGION_ATTR}="${CSS.escape(canonical)}"]`)
|
|
3158
|
+
];
|
|
3159
|
+
if (stamped.length > 0) {
|
|
3160
|
+
return stamped;
|
|
3161
|
+
}
|
|
3162
|
+
for (const resolver of DERIVED_RESOLVERS) {
|
|
3163
|
+
const match = canonical.match(resolver.pattern);
|
|
3164
|
+
if (match) {
|
|
3165
|
+
return resolver.locate(match, regionRoot(root));
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
return [];
|
|
3169
|
+
}
|
|
3170
|
+
function resolveRegion(id, root) {
|
|
3171
|
+
const all = resolveAllRegions(id, root);
|
|
3172
|
+
return all.at(-1) ?? null;
|
|
3173
|
+
}
|
|
3174
|
+
var REGION_FOR_FOCUS = {
|
|
3175
|
+
dock: "dock.bottom",
|
|
3176
|
+
inspector: "inspector",
|
|
3177
|
+
navigator: "navigator",
|
|
3178
|
+
pane: "pane.primary",
|
|
3179
|
+
rail: "rail",
|
|
3180
|
+
status: "statusbar"
|
|
3181
|
+
};
|
|
3182
|
+
function paneRegion(paneId, part) {
|
|
3183
|
+
return part ? `pane.${paneId}/${part}` : `pane.${paneId}`;
|
|
3184
|
+
}
|
|
3185
|
+
function paneStripRegion(paneId) {
|
|
3186
|
+
return paneRegion(paneId, "tabs");
|
|
3187
|
+
}
|
|
3188
|
+
function navigatorPanelRegion(panelId) {
|
|
3189
|
+
return `navigator/panel:${panelId}`;
|
|
3190
|
+
}
|
|
3191
|
+
function inspectorTabRegion(tabId) {
|
|
3192
|
+
return `inspector/tab:${tabId}`;
|
|
3193
|
+
}
|
|
3194
|
+
var NAVIGATOR_STATEMENTS_REGION = "navigator/statements";
|
|
3195
|
+
function inspectorStatementsRegion(eventKey) {
|
|
3196
|
+
return `inspector/statements:${eventKey}`;
|
|
3197
|
+
}
|
|
3198
|
+
function bottomPanelRegion(panelId) {
|
|
3199
|
+
return `dock.bottom/panel:${panelId}`;
|
|
3200
|
+
}
|
|
3201
|
+
var OVERLAY_INSTANCE = {
|
|
3202
|
+
dialog: "dialog",
|
|
3203
|
+
modal: "dialog",
|
|
3204
|
+
popover: "menu",
|
|
3205
|
+
toast: "toasts"
|
|
3206
|
+
};
|
|
3207
|
+
function overlayRegion(layer, id) {
|
|
3208
|
+
const instance = OVERLAY_INSTANCE[layer];
|
|
3209
|
+
return id ? `overlay.${instance}:${id}` : `overlay.${instance}`;
|
|
3210
|
+
}
|
|
3211
|
+
|
|
3225
3212
|
// src/commands/active-registry.ts
|
|
3226
3213
|
var _registry = shallowRef(null);
|
|
3227
3214
|
function setActiveRegistry(registry) {
|
|
@@ -6047,7 +6034,6 @@ function mountShell() {
|
|
|
6047
6034
|
if (_scope) {
|
|
6048
6035
|
return;
|
|
6049
6036
|
}
|
|
6050
|
-
stampShellRegions();
|
|
6051
6037
|
for (const surface of _surfaces2) {
|
|
6052
6038
|
surface.mount();
|
|
6053
6039
|
}
|
|
@@ -6457,7 +6443,7 @@ function extensionsKey(config) {
|
|
|
6457
6443
|
return JSON.stringify(config.extensions ?? null);
|
|
6458
6444
|
}
|
|
6459
6445
|
async function refreshExtensionSurfaces() {
|
|
6460
|
-
const { loadFormats, refreshExtensionUi, refreshFormats } = await import("./format-host-
|
|
6446
|
+
const { loadFormats, refreshExtensionUi, refreshFormats } = await import("./format-host-pej3srnw.js");
|
|
6461
6447
|
refreshFormats();
|
|
6462
6448
|
loadFormats();
|
|
6463
6449
|
refreshExtensionUi(getPlatform());
|
|
@@ -6690,7 +6676,7 @@ async function updateSiteConfig(patch) {
|
|
|
6690
6676
|
}
|
|
6691
6677
|
}
|
|
6692
6678
|
|
|
6693
|
-
export { errorMessage, LANGUAGE_TAG_PATTERN, canonicalizeLocale, isWellFormedLocale, localeDirection, localeLabel, resolveI18n, localeOfPath, servedLocaleOfPath, translationKeyOfPath, translationPathFor, EDITOR_KIND_LABELS, editorKindForMode, canvasViewForMode, inCanvas, hasSelection, hasElementSelection, emptyContext, makeContext, keyScopeStack, effectScope, onScopeDispose, effect, onEffectCleanup, reactive, toRaw, isRef, ref2 as ref, shallowRef, computed, now,
|
|
6679
|
+
export { errorMessage, LANGUAGE_TAG_PATTERN, canonicalizeLocale, isWellFormedLocale, localeDirection, localeLabel, resolveI18n, localeOfPath, servedLocaleOfPath, translationKeyOfPath, translationPathFor, EDITOR_KIND_LABELS, editorKindForMode, canvasViewForMode, inCanvas, hasSelection, hasElementSelection, emptyContext, makeContext, keyScopeStack, effectScope, onScopeDispose, effect, onEffectCleanup, reactive, toRaw, isRef, ref2 as ref, shallowRef, computed, now, problems, notify, dismiss, clearProblems, problemCount, view, STAGE_CLASS, nextRenderGeneration, surfaceForPane, allCanvasSurfaces, stageContaining, registerCanvasSurface, createPaneSurface, setSurfaceTeardown, disposePaneSurface, BUFFER_COMMIT, bufferWrites, commitBufferWrites, cancelBufferWrites, bufferIsLive, bufferMovedOn, commitTabBuffers, tabBufferUnsaved, PROJECT_CONFIG_PATH, editorKindOf, editorKindsOf, modeForEditorKind, primarySelection, selectionAnchor, isSelected, cloneSelection, toggleSelected, rangeSelection, isSpliceablePath, structuralBatch, uniquePaths, unifyValues, setPatchConsumer, recordDocOp, transactDoc, transact, beginBatch, endBatch2 as endBatch, isBatching, batchTab, setHistoryDelegate, canUndo, canRedo, undo, redo, mutateInsertNode, mutateRemoveNode, mutateDuplicateNode, mutateRemoveNodes, mutateDuplicateNodes, mutateWrapNode, mutateMoveNode, mutateUpdateProperty, mutateUpdateStyle, mutateUpdateAttribute, mutateUpdateMediaStyle, mutateUpdateNestedStyle, mutateUpdateMediaNestedStyle, mutateUpdateNestedStylePath, mutateUpdateMediaNestedStylePath, mutateReplaceStyle, mutateAddDef, mutateRemoveDef, mutateUpdateDef, mutateRenameDef, mutateUpdateProp, mutateAddSwitchCase, mutateRemoveSwitchCase, mutateRenameSwitchCase, mutateUpdateFrontmatter, serializeProjectConfig, commitProjectConfig, adoptProjectConfig, REGION_ATTR, resolveRegion, REGION_FOR_FOCUS, paneRegion, paneStripRegion, navigatorPanelRegion, inspectorTabRegion, NAVIGATOR_STATEMENTS_REGION, inspectorStatementsRegion, bottomPanelRegion, overlayRegion, setActiveRegistry, activeRegistry, initLayers, isModalOpen, showDialog, showConfirmDialog, showSaveDiscardDialog, showPromptDialog, openModal, renderPopover, popoverLayerFor, getLayerSlot, overlayIdleBlockers, getEffectiveMedia, getEffectiveStyle, getEffectiveImports, getEffectiveElements, getEffectiveHead, getEffectiveLocales, invalidateLayoutCache, getEffectiveLayoutPath, resolveLayoutDoc, distributePageIntoLayout, updateSiteConfig, collabState, isCollabPath, stringArg, optionalStringArg, boundedNumberArg, booleanArg, enumArg, pathArg, nullablePathArg, pathListArg, argsSchema, enumProperty, numberProperty, booleanProperty, pathProperty, pathListProperty, stringProperty, restoreSession, camelToKebab, camelToLabel, toCamelCase, kebabToLabel, propLabel, attrLabel, abbreviateValue, inferInputType, findContentTypeSchema, friendlyNameToVar, varDisplayName, parseCemType, jsonClone, configureCollabSerializer, configureCollabParser, configureCollabNotifier, collabSourceContext, collabReadOnly, collabSave, flushAllCollab, setCollabEnabled, isCollabEnabled, PRIMARY_PANE, workspace, activeTab, activePane, paneById, paneOfTab, focusPane, isPaneFocused, sidePane, receivingPane, detachTab, insertIntoPane, setWorkspaceProject, isTabActive, tabIsLive, openTab, promoteTab, promoteDirtyPreviewTabs, setTabPinned, moveTab, closeTab, closeAllTabs, replaceAllTabs, activateTab, moveTabToPane, renameTab, registerTabCommands, requireNavigatorPanelId, DEFAULT_INSPECTOR_TAB, isInspectorTabId, BOTTOM_TAB_IDS, DEFAULT_BOTTOM_TAB, isBottomTabId, CHROME_THEMES, DOCK_IDS, DOCK_DEFAULT_SIZES, setPaneSplit, shell, persistDocks, persistedSession, markSessionRestored, flushSession, monacoTheme, registerShellSurface, mountShell, setDockCollapsed, setDockSize, setActivityTab, setBottomTab, setChromeTheme, toggleActivityTab, setLayoutSelection, resetProjectShell, registerShellViewCommands };
|
|
6694
6680
|
|
|
6695
|
-
//# debugId=
|
|
6696
|
-
//# sourceMappingURL=studio-
|
|
6681
|
+
//# debugId=BC232D1D1532287464756E2164756E21
|
|
6682
|
+
//# sourceMappingURL=studio-hk523hby.js.map
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
renderOperandEditor,
|
|
20
20
|
resolveContextPointer,
|
|
21
21
|
slotMode
|
|
22
|
-
} from "./studio-
|
|
22
|
+
} from "./studio-zdkgwhkv.js";
|
|
23
23
|
import {
|
|
24
24
|
live
|
|
25
|
-
} from "./studio-
|
|
25
|
+
} from "./studio-c31yb4t6.js";
|
|
26
26
|
import {
|
|
27
27
|
IMAGE_EXTENSIONS,
|
|
28
28
|
MEDIA_EXTENSIONS,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
uploadAssets,
|
|
44
44
|
usageFiles,
|
|
45
45
|
usageHeadline
|
|
46
|
-
} from "./studio-
|
|
46
|
+
} from "./studio-4058pg09.js";
|
|
47
47
|
import {
|
|
48
48
|
attachInstruction,
|
|
49
49
|
canvasModeOfTab,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
requestCanvasEval,
|
|
65
65
|
staleSelectionMessage,
|
|
66
66
|
tabOfPane
|
|
67
|
-
} from "./studio-
|
|
67
|
+
} from "./studio-10s469da.js";
|
|
68
68
|
import {
|
|
69
69
|
BUFFER_COMMIT,
|
|
70
70
|
NAVIGATOR_STATEMENTS_REGION,
|
|
@@ -129,17 +129,17 @@ import {
|
|
|
129
129
|
varDisplayName,
|
|
130
130
|
view,
|
|
131
131
|
workspace
|
|
132
|
-
} from "./studio-
|
|
132
|
+
} from "./studio-hk523hby.js";
|
|
133
133
|
import {
|
|
134
134
|
classMap,
|
|
135
135
|
ifDefined
|
|
136
|
-
} from "./studio-
|
|
136
|
+
} from "./studio-twsafr1e.js";
|
|
137
137
|
import {
|
|
138
138
|
Directive,
|
|
139
139
|
directive,
|
|
140
140
|
ref,
|
|
141
141
|
setCommittedValue
|
|
142
|
-
} from "./studio-
|
|
142
|
+
} from "./studio-kvfx9z2c.js";
|
|
143
143
|
import {
|
|
144
144
|
html,
|
|
145
145
|
nothing,
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
loadExtensions,
|
|
173
173
|
loadMonaco,
|
|
174
174
|
mountStillWanted
|
|
175
|
-
} from "./studio-
|
|
175
|
+
} from "./studio-50eed4c9.js";
|
|
176
176
|
import {
|
|
177
177
|
getPlatform
|
|
178
178
|
} from "./studio-sas7mt3k.js";
|
|
@@ -4961,7 +4961,7 @@ function renderLinkTargetField(node, path) {
|
|
|
4961
4961
|
<sp-picker
|
|
4962
4962
|
class="link-target-kind"
|
|
4963
4963
|
size="s"
|
|
4964
|
-
value=${kind}
|
|
4964
|
+
.value=${live(kind)}
|
|
4965
4965
|
@change=${(e) => {
|
|
4966
4966
|
const nextKind = e.target.value;
|
|
4967
4967
|
commit(nextKind, value);
|
|
@@ -4981,7 +4981,7 @@ function renderLinkTargetField(node, path) {
|
|
|
4981
4981
|
<sp-picker
|
|
4982
4982
|
class="link-target-value"
|
|
4983
4983
|
size="s"
|
|
4984
|
-
value=${value}
|
|
4984
|
+
.value=${live(value)}
|
|
4985
4985
|
@change=${(e) => commit("internal", e.target.value)}
|
|
4986
4986
|
>
|
|
4987
4987
|
${knownValue ? html`<sp-menu-item value=${value}>${value}</sp-menu-item>` : nothing}
|
|
@@ -5020,7 +5020,7 @@ function renderTargetField(node, path, entry) {
|
|
|
5020
5020
|
<sp-picker
|
|
5021
5021
|
class="link-target-window"
|
|
5022
5022
|
size="s"
|
|
5023
|
-
value=${current}
|
|
5023
|
+
.value=${live(current)}
|
|
5024
5024
|
@change=${(e) => transactDoc(activeTab.value, (t) => mutateUpdateAttribute(t, path, "target", e.target.value || undefined))}
|
|
5025
5025
|
>
|
|
5026
5026
|
${options.map((o) => html`<sp-menu-item value=${o}>${o}</sp-menu-item>`)}
|
|
@@ -5128,10 +5128,10 @@ function renderUsagesSection(tagName, componentPath) {
|
|
|
5128
5128
|
`;
|
|
5129
5129
|
}
|
|
5130
5130
|
function openUsage(path) {
|
|
5131
|
-
import("./files-
|
|
5131
|
+
import("./files-gkz202dp.js").then((m) => m.openFileInTab(path));
|
|
5132
5132
|
}
|
|
5133
5133
|
function showLogicTab() {
|
|
5134
|
-
import("./right-panel-
|
|
5134
|
+
import("./right-panel-egkaxy89.js").then((m) => m.setInspectorTab("events"));
|
|
5135
5135
|
}
|
|
5136
5136
|
function renderPropertiesPanelTemplate(ctx) {
|
|
5137
5137
|
const tab = activeTab.value;
|
|
@@ -6999,5 +6999,5 @@ function registerSignalsCommands(registry) {
|
|
|
6999
6999
|
|
|
7000
7000
|
export { isSchemeQuery, schemeOfQuery, parseMediaEntries, DERIVE_PRESETS, PRESET_LABELS, declaredMedia, installDerivationEffects, presetRefusal, deriveRefusal, pinRefusal, derivationCommands, invalidateMediaCache, renderMediaPicker, spTextField, spTextArea, spNumberField, unwrapSignal, dataTypeLabel, registerDataExplorerCommands, registerDataPanel, livePreviewExpression, closeFunctionEditor, logicTarget, revealLogicPanel, openLogicTarget, registerLogicPanel, registerFormulaEditorCommands, JxColorPopover, isColorPopoverOpen, css_meta_default, initCssData, getCssInitialMap, allConditionsPass, autoOpenSections, getLonghands, expandShorthand, compressShorthand, expandBorderSide, compressBorderSide, widgetForType2 as widgetForType, renderStatementEditor, mapSignalsFor, bindableSignalNames, defaultAsString, invalidatePageRouteCache, renderPropertiesPanelTemplate, isInspectorSectionOpen, setInspectorSection, inspectorCommands, registerInspectorCommands, defCategory, defBadgeLabel, isCustomElementDoc, collectCssParts, renderSignalsTemplate, registerSignalsCommands };
|
|
7001
7001
|
|
|
7002
|
-
//# debugId=
|
|
7003
|
-
//# sourceMappingURL=studio-
|
|
7002
|
+
//# debugId=9BF36A7266D05ECB64756E2164756E21
|
|
7003
|
+
//# sourceMappingURL=studio-hs8x23fv.js.map
|
|
@@ -198,6 +198,10 @@ class AsyncDirective extends Directive {
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
// ../../node_modules/lit-html/development/directives/ref.js
|
|
201
|
+
var createRef = () => new Ref;
|
|
202
|
+
|
|
203
|
+
class Ref {
|
|
204
|
+
}
|
|
201
205
|
var lastElementForContextAndCallback = new WeakMap;
|
|
202
206
|
|
|
203
207
|
class RefDirective extends AsyncDirective {
|
|
@@ -377,7 +381,7 @@ class RepeatDirective extends Directive {
|
|
|
377
381
|
}
|
|
378
382
|
var repeat = directive(RepeatDirective);
|
|
379
383
|
|
|
380
|
-
export { PartType, directive, Directive, isPrimitive, isSingleExpression, setCommittedValue, AsyncDirective, ref, repeat };
|
|
384
|
+
export { PartType, directive, Directive, isPrimitive, isSingleExpression, setCommittedValue, AsyncDirective, createRef, ref, repeat };
|
|
381
385
|
|
|
382
|
-
//# debugId=
|
|
383
|
-
//# sourceMappingURL=studio-
|
|
386
|
+
//# debugId=9ADF88F72D5F364E64756E2164756E21
|
|
387
|
+
//# sourceMappingURL=studio-kvfx9z2c.js.map
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
measuredRowHeight,
|
|
4
4
|
revealListRow,
|
|
5
5
|
watchListWindow
|
|
6
|
-
} from "./studio-
|
|
6
|
+
} from "./studio-cf4rk7kv.js";
|
|
7
7
|
import {
|
|
8
8
|
autoSyncProjectOnOpen,
|
|
9
9
|
cleanupGitPanel,
|
|
10
10
|
maybePromptJxsuiteUpdate,
|
|
11
11
|
shouldInstallAutomation
|
|
12
|
-
} from "./studio-
|
|
12
|
+
} from "./studio-4enps87v.js";
|
|
13
13
|
import {
|
|
14
14
|
openCsvGridTab,
|
|
15
15
|
openPagesGrid
|
|
16
|
-
} from "./studio-
|
|
16
|
+
} from "./studio-0e4h32g6.js";
|
|
17
17
|
import {
|
|
18
18
|
collectionDirs,
|
|
19
19
|
collectionInfo,
|
|
@@ -21,20 +21,20 @@ import {
|
|
|
21
21
|
markLocalMutation,
|
|
22
22
|
parseSourceForPath,
|
|
23
23
|
renamePromptMessage
|
|
24
|
-
} from "./studio-
|
|
24
|
+
} from "./studio-x3etxs0s.js";
|
|
25
25
|
import {
|
|
26
26
|
UPLOAD_ACCEPT,
|
|
27
27
|
invalidateUsages,
|
|
28
28
|
isImage,
|
|
29
29
|
uploadAssets
|
|
30
|
-
} from "./studio-
|
|
30
|
+
} from "./studio-4058pg09.js";
|
|
31
31
|
import {
|
|
32
32
|
showProgressModal
|
|
33
|
-
} from "./studio-
|
|
33
|
+
} from "./studio-3q65xvzv.js";
|
|
34
34
|
import {
|
|
35
35
|
rectOf,
|
|
36
36
|
registerPanel
|
|
37
|
-
} from "./studio-
|
|
37
|
+
} from "./studio-10s469da.js";
|
|
38
38
|
import {
|
|
39
39
|
activateTab,
|
|
40
40
|
activeRegistry,
|
|
@@ -61,14 +61,14 @@ import {
|
|
|
61
61
|
setWorkspaceProject,
|
|
62
62
|
showPromptDialog,
|
|
63
63
|
workspace
|
|
64
|
-
} from "./studio-
|
|
64
|
+
} from "./studio-hk523hby.js";
|
|
65
65
|
import {
|
|
66
66
|
classMap
|
|
67
|
-
} from "./studio-
|
|
67
|
+
} from "./studio-twsafr1e.js";
|
|
68
68
|
import {
|
|
69
69
|
ref,
|
|
70
70
|
repeat
|
|
71
|
-
} from "./studio-
|
|
71
|
+
} from "./studio-kvfx9z2c.js";
|
|
72
72
|
import {
|
|
73
73
|
html,
|
|
74
74
|
nothing
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
noFormatError,
|
|
95
95
|
refreshExtensionUi,
|
|
96
96
|
refreshFormats
|
|
97
|
-
} from "./studio-
|
|
97
|
+
} from "./studio-50eed4c9.js";
|
|
98
98
|
import {
|
|
99
99
|
getPlatform,
|
|
100
100
|
hasPlatform
|
|
@@ -597,6 +597,9 @@ function renderFilesTemplate({
|
|
|
597
597
|
class="file-tree"
|
|
598
598
|
role="tree"
|
|
599
599
|
aria-label="Project files"
|
|
600
|
+
@keydown=${(e) => {
|
|
601
|
+
onFileTreeKeydown(e, e.currentTarget);
|
|
602
|
+
}}
|
|
600
603
|
${ref((el) => {
|
|
601
604
|
if (el) {
|
|
602
605
|
afterFileTreeRender(el);
|
|
@@ -773,16 +776,6 @@ async function toggleTreeDirectory(path) {
|
|
|
773
776
|
await loadDirectory(path);
|
|
774
777
|
}
|
|
775
778
|
}
|
|
776
|
-
var _keyboardTrees = new WeakSet;
|
|
777
|
-
function setupTreeKeyboard(tree) {
|
|
778
|
-
if (_keyboardTrees.has(tree)) {
|
|
779
|
-
return;
|
|
780
|
-
}
|
|
781
|
-
_keyboardTrees.add(tree);
|
|
782
|
-
tree.addEventListener("keydown", (e) => {
|
|
783
|
-
onFileTreeKeydown(e, tree);
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
779
|
function onFileTreeKeydown(e, tree) {
|
|
787
780
|
const focused = tree.querySelector(".file-tree-item:focus");
|
|
788
781
|
if (!focused) {
|
|
@@ -1466,17 +1459,13 @@ function registerFilesPanel() {
|
|
|
1466
1459
|
dock: "navigator",
|
|
1467
1460
|
icon: "sp-icon-folder",
|
|
1468
1461
|
render: (ctx) => ctx.deps.renderFilesTemplate(),
|
|
1469
|
-
afterRender: (ctx
|
|
1470
|
-
const tree = host.querySelector(".file-tree");
|
|
1471
|
-
if (tree) {
|
|
1472
|
-
ctx.deps.setupTreeKeyboard(tree);
|
|
1473
|
-
}
|
|
1462
|
+
afterRender: (ctx) => {
|
|
1474
1463
|
ctx.deps.registerFileTreeDnD({ renderLeftPanel: ctx.rerender });
|
|
1475
1464
|
}
|
|
1476
1465
|
});
|
|
1477
1466
|
}
|
|
1478
1467
|
|
|
1479
|
-
export { ensureDependenciesInstalled, entryCollection, entryCollections, collectionOfPath, seedEntry, missingRequired, hydrateRecentProjects, getRecentProjects, addRecentProject, removeRecentProject, clearRecentProjects, getRecentFiles, trackRecentFile, loadDirectory, loadProject, openProject, initProjectRepo, findHomePage, openHomePage, openLastSessionOrHome, renderFilesTemplate, FILE_ROW_HEIGHT,
|
|
1468
|
+
export { ensureDependenciesInstalled, entryCollection, entryCollections, collectionOfPath, seedEntry, missingRequired, hydrateRecentProjects, getRecentProjects, addRecentProject, removeRecentProject, clearRecentProjects, getRecentFiles, trackRecentFile, loadDirectory, loadProject, openProject, initProjectRepo, findHomePage, openHomePage, openLastSessionOrHome, renderFilesTemplate, FILE_ROW_HEIGHT, isFileDrag, uploadFilesToDir, pickAndUploadTo, registerFileTreeDnD, createFileIn, openFileInTab, openFileInPane, reloadCleanTab, reloadFileInTab, registerFilesPanel };
|
|
1480
1469
|
|
|
1481
|
-
//# debugId=
|
|
1482
|
-
//# sourceMappingURL=studio-
|
|
1470
|
+
//# debugId=AF54EB1634A6A49164756E2164756E21
|
|
1471
|
+
//# sourceMappingURL=studio-ncnet0ba.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Directive,
|
|
3
3
|
PartType,
|
|
4
4
|
directive
|
|
5
|
-
} from "./studio-
|
|
5
|
+
} from "./studio-kvfx9z2c.js";
|
|
6
6
|
import {
|
|
7
7
|
noChange,
|
|
8
8
|
nothing
|
|
@@ -117,4 +117,4 @@ var classMap = directive(ClassMapDirective);
|
|
|
117
117
|
export { ifDefined, styleMap, classMap };
|
|
118
118
|
|
|
119
119
|
//# debugId=A0F1689B5230596A64756E2164756E21
|
|
120
|
-
//# sourceMappingURL=studio-
|
|
120
|
+
//# sourceMappingURL=studio-twsafr1e.js.map
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
ifDefined,
|
|
21
21
|
styleMap
|
|
22
|
-
} from "./studio-
|
|
22
|
+
} from "./studio-twsafr1e.js";
|
|
23
23
|
import {
|
|
24
24
|
html,
|
|
25
25
|
nothing
|
|
@@ -385,7 +385,7 @@ class AbstractOverlay extends SpectrumElement {
|
|
|
385
385
|
document.dispatchEvent(overlayUpdateEvent);
|
|
386
386
|
}
|
|
387
387
|
static async open(triggerOrContent, interactionOrOptions, content, optionsV1) {
|
|
388
|
-
await import("./sp-overlay.dev-
|
|
388
|
+
await import("./sp-overlay.dev-s18hymn9.js");
|
|
389
389
|
const v2 = arguments.length === 2;
|
|
390
390
|
const overlayContent = content || triggerOrContent;
|
|
391
391
|
const overlay = new this;
|
|
@@ -3379,12 +3379,12 @@ class InteractionController {
|
|
|
3379
3379
|
return;
|
|
3380
3380
|
}
|
|
3381
3381
|
customElements.whenDefined("sp-overlay").then(async () => {
|
|
3382
|
-
const { Overlay } = await import("./Overlay.dev-
|
|
3382
|
+
const { Overlay } = await import("./Overlay.dev-d2ajy6sj.js");
|
|
3383
3383
|
this.overlay = new Overlay;
|
|
3384
3384
|
this.overlay.open = true;
|
|
3385
3385
|
this.target[lastInteractionType] = this.type;
|
|
3386
3386
|
});
|
|
3387
|
-
import("./sp-overlay.dev-
|
|
3387
|
+
import("./sp-overlay.dev-s18hymn9.js");
|
|
3388
3388
|
}
|
|
3389
3389
|
get overlay() {
|
|
3390
3390
|
return this._overlay;
|
|
@@ -4341,4 +4341,4 @@ var Overlay = _Overlay;
|
|
|
4341
4341
|
export { FocusVisiblePolyfillMixin, Focusable, LikeAnchor, MutationController, ObserveSlotPresence, ObserveSlotText, isIPhone, isIOS, isWebKit, isAndroid, randomID, conditionAttributeWithoutId, conditionAttributeWithId, elementResolverUpdatedSymbol, ElementResolutionController, LONGPRESS_INSTRUCTIONS, SlottableRequestEvent, Overlay };
|
|
4342
4342
|
|
|
4343
4343
|
//# debugId=B4C0094FFD6AEF9A64756E2164756E21
|
|
4344
|
-
//# sourceMappingURL=studio-
|
|
4344
|
+
//# sourceMappingURL=studio-tzx3xmvx.js.map
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
noteDeployment,
|
|
11
11
|
platformSupportsPublish,
|
|
12
12
|
writeDeployConfig
|
|
13
|
-
} from "./studio-
|
|
13
|
+
} from "./studio-5ne8mdx9.js";
|
|
14
14
|
import {
|
|
15
15
|
activeRegistry,
|
|
16
16
|
openModal
|
|
17
|
-
} from "./studio-
|
|
17
|
+
} from "./studio-hk523hby.js";
|
|
18
18
|
import {
|
|
19
19
|
html
|
|
20
20
|
} from "./studio-5x5774ak.js";
|
|
@@ -387,4 +387,4 @@ function openPublishPanel() {
|
|
|
387
387
|
export { seedPublishConnected, openPublishPanel };
|
|
388
388
|
|
|
389
389
|
//# debugId=32DE20DAF46B08AA64756E2164756E21
|
|
390
|
-
//# sourceMappingURL=studio-
|
|
390
|
+
//# sourceMappingURL=studio-vdpcpada.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./studio-0rqqhrdy.js";
|
|
16
16
|
import {
|
|
17
17
|
ifDefined
|
|
18
|
-
} from "./studio-
|
|
18
|
+
} from "./studio-twsafr1e.js";
|
|
19
19
|
import {
|
|
20
20
|
html
|
|
21
21
|
} from "./studio-5x5774ak.js";
|
|
@@ -288,4 +288,4 @@ defineElement("sp-progress-circle", ProgressCircle);
|
|
|
288
288
|
export { languageResolverUpdatedSymbol, LanguageResolutionController, ProgressCircle };
|
|
289
289
|
|
|
290
290
|
//# debugId=D9778D0A36E46FD364756E2164756E21
|
|
291
|
-
//# sourceMappingURL=studio-
|
|
291
|
+
//# sourceMappingURL=studio-vhk5fmfv.js.map
|