@jxsuite/studio 3.0.0 → 4.0.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/README.md +5 -5
- package/dist/chunks/Overlay.dev-723bv0df.js +23 -0
- package/dist/chunks/{cf-settings-zj2cj1ar.js → cf-settings-45fgyx8y.js} +6 -5
- package/dist/chunks/{components-z6cnkyy1.js → components-zmx10t62.js} +6 -5
- package/dist/chunks/content-source-t88vb2dr.js +49 -0
- package/dist/chunks/{convert-to-repeater-6vvx96n2.js → convert-to-repeater-dhw1nrz9.js} +27 -19
- package/dist/chunks/entry-commands-6z6bhxg0.js +46 -0
- package/dist/chunks/{extension-sections-kwzvpemr.js → extension-sections-3ydgjbdy.js} +32 -24
- package/dist/chunks/file-ops-rskmhxyq.js +48 -0
- package/dist/chunks/files-0cratsr0.js +92 -0
- package/dist/chunks/{format-host-8fr3545e.js → format-host-tgcmfs4p.js} +3 -3
- package/dist/chunks/fs-events-hrrg328g.js +21 -0
- package/dist/chunks/{git-panel-g01d93vc.js → git-panel-0yywyk76.js} +21 -16
- package/dist/chunks/{jx-validate-jj9rnt4n.js → jx-validate-8q2g05x1.js} +6 -4
- package/dist/chunks/layers-panel-z3tqe5cd.js +67 -0
- package/dist/chunks/layers-q75tj2mf.js +45 -0
- package/dist/chunks/lit-html-j055mkh8.js +22 -0
- package/dist/chunks/monaco-buffer-dqw0xxpx.js +25 -0
- package/dist/chunks/{monaco-setup-a5wkmbgh.js → monaco-setup-rws7k4br.js} +4 -4
- package/dist/chunks/notify-yjm79n4s.js +30 -0
- package/dist/chunks/parse-24d0gay3.js +19 -0
- package/dist/chunks/platform-ba1j1gbh.js +16 -0
- package/dist/chunks/publish-panel-54jvhskq.js +28 -0
- package/dist/chunks/quick-search-cgfmjwq5.js +65 -0
- package/dist/chunks/references-3qx8fkyp.js +29 -0
- package/dist/chunks/right-panel-cqp8bc4v.js +46 -0
- package/dist/chunks/sp-overlay.dev-yztmtrs1.js +18 -0
- package/dist/chunks/sp-popover.dev-n2etmqdp.js +9 -0
- package/dist/chunks/sp-progress-circle.dev-hryhj0es.js +15 -0
- package/dist/chunks/sp-tooltip.dev-xcvpnqr0.js +15 -0
- package/dist/chunks/{sp-tray.dev-64v4pxw8.js → sp-tray.dev-tkbscm06.js} +5 -5
- package/dist/chunks/{studio-8ezdegcx.js → studio-1hbqnt19.js} +36 -32
- package/dist/chunks/{studio-r5xbtctf.js → studio-2zkz8evn.js} +446 -2451
- package/dist/chunks/{studio-pkp61mh8.js → studio-4pqqxbrt.js} +23 -15
- package/dist/chunks/{studio-kvfx9z2c.js → studio-4rzyrtjz.js} +70 -31
- package/dist/chunks/{studio-3dkcd4c5.js → studio-5q69gfag.js} +60 -56
- package/dist/chunks/{studio-rh1cnamv.js → studio-5rywrkxz.js} +563 -133
- package/dist/chunks/{studio-6kv3apa9.js → studio-68n67094.js} +25 -9
- package/dist/chunks/{studio-0rqqhrdy.js → studio-7nte2hj4.js} +2 -2
- package/dist/chunks/{studio-xntfdy1x.js → studio-8swrjbny.js} +31 -18
- package/dist/chunks/studio-92ab2jqe.js +282 -0
- package/dist/chunks/{studio-sas7mt3k.js → studio-9ab8gqsm.js} +2 -2
- package/dist/chunks/{studio-ry1vz5sv.js → studio-9c4k4vhv.js} +15 -13
- package/dist/chunks/studio-9n4mrmnb.js +184 -0
- package/dist/chunks/{studio-tr20m8g8.js → studio-9r6j5ev1.js} +37 -2
- package/dist/chunks/{studio-2x9zbxmx.js → studio-ahjfdy6e.js} +9 -7
- package/dist/chunks/{studio-s519zc99.js → studio-bgxt93ga.js} +3 -3
- package/dist/chunks/{studio-dc8s8heb.js → studio-cb12yz9w.js} +8528 -8780
- package/dist/chunks/studio-cft9r4r7.js +119 -0
- package/dist/chunks/{studio-hcxzyk3x.js → studio-eenfkt4e.js} +6 -6
- package/dist/chunks/studio-eesa1myv.js +498 -0
- package/dist/chunks/{studio-ay8wcr2b.js → studio-eqq1w638.js} +7 -9
- package/dist/chunks/{studio-7p35254k.js → studio-ex8zyp98.js} +30 -26
- package/dist/chunks/studio-gv8vvshc.js +118 -0
- package/dist/chunks/studio-hbtp0eh1.js +1315 -0
- package/dist/chunks/{studio-a0yp7syn.js → studio-htsf0w6m.js} +29 -114
- package/dist/chunks/{studio-j595e748.js → studio-kjjsjak4.js} +139 -63
- package/dist/chunks/{studio-5x5774ak.js → studio-kryvsw6j.js} +3 -3
- package/dist/chunks/{studio-kfpek536.js → studio-kyh9avvv.js} +2 -2
- package/dist/chunks/{studio-g5gdqnyd.js → studio-kyk2v92a.js} +14 -14
- package/dist/chunks/{studio-twsafr1e.js → studio-m3hwn7y1.js} +3 -3
- package/dist/chunks/{studio-tzx3xmvx.js → studio-mmv72a27.js} +8 -8
- package/dist/chunks/{studio-vhk5fmfv.js → studio-n8b9wqwy.js} +5 -5
- package/dist/chunks/{studio-cjm7fdjf.js → studio-p4ngc046.js} +8 -104
- package/dist/chunks/{studio-p5dja96s.js → studio-p8j86wag.js} +2 -2
- package/dist/chunks/{studio-6z5eyjwn.js → studio-pdfjntbk.js} +66 -129
- package/dist/chunks/studio-q43a5y9h.js +394 -0
- package/dist/chunks/studio-q7v10cg2.js +106 -0
- package/dist/chunks/{studio-2w11grav.js → studio-qq6jym04.js} +3 -3
- package/dist/chunks/studio-r1r7afxx.js +1066 -0
- package/dist/chunks/{studio-3fk1ac9z.js → studio-rdx8jcxy.js} +4 -4
- package/dist/chunks/{studio-4mqb9a0j.js → studio-rn9ta2mz.js} +4 -4
- package/dist/chunks/studio-sf7zjgv1.js +91 -0
- package/dist/chunks/studio-t7qb9db8.js +665 -0
- package/dist/chunks/studio-tmc5emrw.js +8 -0
- package/dist/chunks/{studio-wdt9y92a.js → studio-txwkm6p9.js} +2 -2
- package/dist/chunks/{studio-k4jvjcfx.js → studio-v38hmvx1.js} +7 -7
- package/dist/chunks/{studio-7ejemhej.js → studio-vadzgkrz.js} +6 -6
- package/dist/chunks/studio-wcy8trfx.js +263 -0
- package/dist/chunks/{studio-5efrtn1m.js → studio-wx5609xd.js} +21 -17
- package/dist/chunks/{studio-qpfq7xhm.js → studio-xrapxwwc.js} +22 -285
- package/dist/chunks/{studio-hj2se583.js → studio-yxrkyv8a.js} +41 -31
- package/dist/chunks/{studio-xm3dbxvn.js → studio-zczps70q.js} +2 -2
- package/dist/chunks/workspace-xpres40v.js +89 -0
- package/dist/iframe-entry.js +108 -24
- package/dist/studio.js +2362 -1695
- package/package.json +16 -15
- package/src/browse/library-pane.ts +57 -3
- package/src/canvas/canvas-render.ts +23 -1
- package/src/canvas/iframe-patch.ts +47 -21
- package/src/canvas/iframe-render.ts +22 -6
- package/src/commands/app-commands.ts +4 -0
- package/src/commands/command-args.ts +29 -0
- package/src/commands/context.ts +15 -1
- package/src/commands/defaults.ts +29 -1
- package/src/commands/levels.ts +16 -0
- package/src/commands/live-context.ts +3 -0
- package/src/content/collection-match.ts +267 -0
- package/src/content/entry-commands.ts +38 -29
- package/src/content/entry-fields.ts +6 -0
- package/src/editor/shortcuts.ts +5 -0
- package/src/files/file-ops.ts +10 -42
- package/src/files/files.ts +485 -59
- package/src/files/fs-events.ts +9 -0
- package/src/files/gitignore.ts +432 -0
- package/src/files/serialize-document.ts +60 -0
- package/src/format/convert-file.ts +511 -0
- package/src/format/format-choices.ts +199 -0
- package/src/grid/grid-view.ts +16 -2
- package/src/media/media-open.ts +58 -0
- package/src/media/media-pane.ts +310 -0
- package/src/new-project/import-tab.ts +332 -160
- package/src/new-project/new-project-modal.ts +27 -34
- package/src/packages/ensure-deps.ts +14 -7
- package/src/packages/jxsuite-update.ts +11 -11
- package/src/page-params.ts +10 -46
- package/src/panels/activity-bar.ts +45 -16
- package/src/panels/ai-chat/attached-context.ts +6 -1
- package/src/panels/ai-chat/chat-view.ts +255 -13
- package/src/panels/ai-chat/composer.ts +21 -97
- package/src/panels/ai-panel.ts +116 -2
- package/src/panels/navigator-panels.ts +7 -6
- package/src/panels/settings-menu.ts +799 -0
- package/src/panels/toolbar.ts +135 -15
- package/src/platforms/cloud.ts +20 -0
- package/src/platforms/devserver.ts +67 -33
- package/src/preview/preview-overlay.ts +226 -0
- package/src/services/ai-ask.ts +247 -0
- package/src/services/ai-import-tools.ts +494 -0
- package/src/services/ai-project-tools.ts +20 -26
- package/src/services/ai-system-prompt.ts +88 -2
- package/src/services/ai-turn-signal.ts +70 -0
- package/src/services/connection.ts +74 -0
- package/src/services/context-manager.ts +89 -0
- package/src/services/document-assistant.ts +45 -4
- package/src/services/import-client.ts +33 -6
- package/src/services/import-run.ts +158 -0
- package/src/services/import-seed.ts +120 -0
- package/src/services/jx-validate.ts +58 -6
- package/src/services/project-adoption.ts +71 -0
- package/src/services/references.ts +0 -0
- package/src/services/settings/definitions.ts +17 -0
- package/src/services/tool-executor.ts +34 -2
- package/src/settings/contexts-section.ts +45 -3
- package/src/settings/dependencies-editor.ts +43 -23
- package/src/settings/general-settings.ts +30 -12
- package/src/settings/preferences-dialog.ts +18 -41
- package/src/settings/preferences-sections.ts +57 -0
- package/src/settings/settings-document.ts +65 -9
- package/src/studio.ts +33 -6
- package/src/tabs/transact.ts +42 -19
- package/src/types.ts +103 -5
- package/src/ui/ai-model-picker.ts +162 -0
- package/src/ui/choice-field.ts +72 -0
- package/src/ui/layers.ts +83 -5
- package/src/utils/studio-utils.ts +22 -52
- package/styles/forced-colors.css +7 -0
- package/styles/overlays.css +256 -0
- package/styles/panels.css +13 -1
- package/styles/shell.css +111 -0
- package/dist/chunks/Overlay.dev-d2ajy6sj.js +0 -23
- package/dist/chunks/content-source-7fy9qrm0.js +0 -40
- package/dist/chunks/files-xcybanxe.js +0 -70
- package/dist/chunks/layers-panel-27essgkc.js +0 -60
- package/dist/chunks/publish-panel-09sy2bab.js +0 -22
- package/dist/chunks/quick-search-sefb61v8.js +0 -55
- package/dist/chunks/right-panel-9r32jd5j.js +0 -39
- package/dist/chunks/sp-overlay.dev-s18hymn9.js +0 -18
- package/dist/chunks/sp-popover.dev-dj9x7e7a.js +0 -9
- package/dist/chunks/sp-progress-circle.dev-0zxcyz3r.js +0 -15
- package/dist/chunks/sp-tooltip.dev-5c6d1kjz.js +0 -15
- package/dist/chunks/studio-c31yb4t6.js +0 -55
- package/src/canvas/site-style-css.ts +0 -117
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
SpectrumElement,
|
|
6
6
|
property,
|
|
7
7
|
query
|
|
8
|
-
} from "./studio-
|
|
8
|
+
} from "./studio-zczps70q.js";
|
|
9
9
|
import {
|
|
10
10
|
css
|
|
11
|
-
} from "./studio-
|
|
11
|
+
} from "./studio-7nte2hj4.js";
|
|
12
12
|
import {
|
|
13
13
|
html,
|
|
14
14
|
nothing
|
|
15
|
-
} from "./studio-
|
|
15
|
+
} from "./studio-kryvsw6j.js";
|
|
16
16
|
|
|
17
17
|
// ../../node_modules/@spectrum-web-components/popover/src/popover.css.js
|
|
18
18
|
var t = css`
|
|
@@ -80,4 +80,4 @@ defineElement("sp-popover", Popover);
|
|
|
80
80
|
export { Popover };
|
|
81
81
|
|
|
82
82
|
//# debugId=08BE34F5BB18076F64756E2164756E21
|
|
83
|
-
//# sourceMappingURL=studio-
|
|
83
|
+
//# sourceMappingURL=studio-rdx8jcxy.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
SpectrumElement,
|
|
6
6
|
property
|
|
7
|
-
} from "./studio-
|
|
7
|
+
} from "./studio-zczps70q.js";
|
|
8
8
|
import {
|
|
9
9
|
css
|
|
10
|
-
} from "./studio-
|
|
10
|
+
} from "./studio-7nte2hj4.js";
|
|
11
11
|
import {
|
|
12
12
|
html
|
|
13
|
-
} from "./studio-
|
|
13
|
+
} from "./studio-kryvsw6j.js";
|
|
14
14
|
|
|
15
15
|
// ../../node_modules/@spectrum-web-components/reactive-controllers/src/MatchMedia.dev.js
|
|
16
16
|
var IS_MOBILE = "(max-width: 743px) and (hover: none) and (pointer: coarse)";
|
|
@@ -108,4 +108,4 @@ defineElement("sp-underlay", Underlay);
|
|
|
108
108
|
export { IS_MOBILE, IS_TOUCH_DEVICE, MatchMediaController, modal_css_default, Underlay };
|
|
109
109
|
|
|
110
110
|
//# debugId=8502071A98A58E4D64756E2164756E21
|
|
111
|
-
//# sourceMappingURL=studio-
|
|
111
|
+
//# sourceMappingURL=studio-rn9ta2mz.js.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {
|
|
2
|
+
collectionInfo
|
|
3
|
+
} from "./studio-eesa1myv.js";
|
|
4
|
+
import {
|
|
5
|
+
findContentTypeSchema
|
|
6
|
+
} from "./studio-2zkz8evn.js";
|
|
7
|
+
import {
|
|
8
|
+
projectState
|
|
9
|
+
} from "./studio-p4ngc046.js";
|
|
10
|
+
|
|
11
|
+
// src/content/entry-model.ts
|
|
12
|
+
function collectionNames() {
|
|
13
|
+
return Object.keys(projectState?.projectConfig?.content ?? {});
|
|
14
|
+
}
|
|
15
|
+
function entryCollection(name) {
|
|
16
|
+
const info = collectionInfo(name);
|
|
17
|
+
if (!info) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
if (/\.[a-z\d]+$/i.test(info.dir)) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
def: info.def,
|
|
25
|
+
dir: info.dir,
|
|
26
|
+
ext: info.ext,
|
|
27
|
+
name: info.name,
|
|
28
|
+
schema: info.def.schema ?? null
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function entryCollections() {
|
|
32
|
+
return collectionNames().map((name) => entryCollection(name)).filter((collection) => collection !== null);
|
|
33
|
+
}
|
|
34
|
+
function collectionOfPath(path) {
|
|
35
|
+
const matched = findContentTypeSchema(path ?? null, projectState?.projectConfig);
|
|
36
|
+
return matched ? entryCollection(matched.name) : null;
|
|
37
|
+
}
|
|
38
|
+
function cloneDefault(value) {
|
|
39
|
+
if (value === null || typeof value !== "object") {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return JSON.parse(JSON.stringify(value));
|
|
43
|
+
}
|
|
44
|
+
function emptyForField(field) {
|
|
45
|
+
if (typeof field.$ref === "string") {
|
|
46
|
+
return "";
|
|
47
|
+
}
|
|
48
|
+
switch (field.type) {
|
|
49
|
+
case "boolean": {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
case "integer":
|
|
53
|
+
case "number": {
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
case "array": {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
case "object": {
|
|
60
|
+
return seedEntry(field);
|
|
61
|
+
}
|
|
62
|
+
default: {
|
|
63
|
+
return "";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function seedEntry(schema) {
|
|
68
|
+
const properties = schema?.properties;
|
|
69
|
+
if (!properties) {
|
|
70
|
+
return {};
|
|
71
|
+
}
|
|
72
|
+
const required = new Set(Array.isArray(schema?.required) ? schema.required : []);
|
|
73
|
+
const seed = {};
|
|
74
|
+
for (const [name, field] of Object.entries(properties)) {
|
|
75
|
+
if (field.default !== undefined) {
|
|
76
|
+
seed[name] = cloneDefault(field.default);
|
|
77
|
+
} else if (required.has(name)) {
|
|
78
|
+
seed[name] = emptyForField(field);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return seed;
|
|
82
|
+
}
|
|
83
|
+
function missingRequired(schema, value) {
|
|
84
|
+
const required = Array.isArray(schema?.required) ? schema.required : [];
|
|
85
|
+
return required.filter((name) => value[name] === undefined);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export { entryCollection, entryCollections, collectionOfPath, seedEntry, missingRequired };
|
|
89
|
+
|
|
90
|
+
//# debugId=4E0453F542F313E864756E2164756E21
|
|
91
|
+
//# sourceMappingURL=studio-sf7zjgv1.js.map
|