@jxsuite/studio 10.4.0 → 10.6.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/locales/en/elements.json +434 -0
- package/data/webdata.json +116 -139
- package/dist/chunks/2020-rqm7qrje.js +4 -0
- package/dist/chunks/adapter-cyy8vbcx.js +4 -0
- package/dist/chunks/add-new-flow-8cgtejv2.js +4 -0
- package/dist/chunks/{cf-account-picker-xb8vvt2h.js → cf-account-picker-v3qd2dhw.js} +3 -3
- package/dist/chunks/cf-settings-1fnw874z.js +4 -0
- package/dist/chunks/{color-area-h8dbasp1.js → color-area-frd9y9q6.js} +2 -2
- package/dist/chunks/color-field-rebpbe33.js +4 -0
- package/dist/chunks/{color-slider-nz2mrzky.js → color-slider-6bzmk3s7.js} +2 -2
- package/dist/chunks/color-t2bnnj8y.js +4 -0
- package/dist/chunks/{combobox-6hs00996.js → combobox-c49x7gf1.js} +3 -3
- package/dist/chunks/components-y8yhdd7d.js +4 -0
- package/dist/chunks/content-source-9e7qvmsf.js +4 -0
- package/dist/chunks/convert-to-repeater-pd2w4z21.js +4 -0
- package/dist/chunks/editor-mb9jzdrw.js +4 -0
- package/dist/chunks/entry-commands-at0wnx3f.js +4 -0
- package/dist/chunks/extension-sections-4z9qq0gh.js +4 -0
- package/dist/chunks/file-ops-dtdvjmza.js +4 -0
- package/dist/chunks/files-8pf70854.js +4 -0
- package/dist/chunks/format-host-fd3m2y2a.js +4 -0
- package/dist/chunks/fs-events-hrk29vcv.js +4 -0
- package/dist/chunks/grid-open-bh74v82z.js +4 -0
- package/dist/chunks/{grid-view-2f03wcgw.js → grid-view-a51mgzmq.js} +17 -17
- package/dist/chunks/{icons-gb967qc8.js → icons-qp8fn1k8.js} +2 -2
- package/dist/chunks/{iframe-entry-btck0e9s.js → iframe-entry-mpwe5pwk.js} +4 -4
- package/dist/chunks/{iframe-entry-2x9bn5ng.js → iframe-entry-msd43x9h.js} +4 -4
- package/dist/chunks/iframe-entry-rt8jz5t8.js +5 -0
- package/dist/chunks/{iframe-entry-b5qgggyp.js → iframe-entry-v40cr813.js} +4 -4
- package/dist/chunks/iframe-host-q0s0wwy3.js +4 -0
- package/dist/chunks/{image-bake-4afr4y6a.js → image-bake-q9ajdjsj.js} +3 -3
- package/dist/chunks/{image-editor-x7t8jbjn.js → image-editor-ke9std9b.js} +3 -3
- package/dist/chunks/index-57ang7ma.js +4 -0
- package/dist/chunks/index-eytr7av4.js +17 -0
- package/dist/chunks/{index-yjrfeks8.js → index-x495reff.js} +3 -3
- package/dist/chunks/{javascript-hy2mws8v.js → javascript-qe34bvaz.js} +3 -3
- package/dist/chunks/jsonMode-m8rseh31.js +13 -0
- package/dist/chunks/jx-validate-bbd1mary.js +4 -0
- package/dist/chunks/layers-panel-wcjtdqsa.js +4 -0
- package/dist/chunks/layers-yscpys6q.js +4 -0
- package/dist/chunks/{listbox-7gka1h86.js → listbox-tktzq5xj.js} +2 -2
- package/dist/chunks/lit-html-qm5wbhqz.js +4 -0
- package/dist/chunks/media-library-2hfff88g.js +4 -0
- package/dist/chunks/media-open-4pb05cne.js +4 -0
- package/dist/chunks/media-picker-bzktmmwr.js +4 -0
- package/dist/chunks/menu-xc3cbgsd.js +4 -0
- package/dist/chunks/{monaco-binding-a51py33c.js → monaco-binding-7t38arh9.js} +3 -3
- package/dist/chunks/monaco-buffer-3vz94c9f.js +4 -0
- package/dist/chunks/monaco-setup-fstdew02.js +4 -0
- package/dist/chunks/notify-gbdcckrh.js +4 -0
- package/dist/chunks/parse-fpdzgk4c.js +4 -0
- package/dist/chunks/platform-9g72gdqr.js +4 -0
- package/dist/chunks/popover-cnmsav6b.js +4 -0
- package/dist/chunks/publish-panel-91x1cb5d.js +4 -0
- package/dist/chunks/publish-quick-e2dmf7eg.js +4 -0
- package/dist/chunks/publish-workspace-1x8mnzrj.js +4 -0
- package/dist/chunks/quick-search-2m4y6p1x.js +4 -0
- package/dist/chunks/references-yg1g9rwx.js +4 -0
- package/dist/chunks/right-panel-7mfyhzrk.js +4 -0
- package/dist/chunks/source-control-rrc4jgp5.js +4 -0
- package/dist/chunks/{split-m5rwn31z.js → split-d15yencd.js} +2 -2
- package/dist/chunks/studio-0jhhznxy.js +9 -0
- package/dist/chunks/studio-0nb57pjg.js +7 -0
- package/dist/chunks/{studio-s24mhq0z.js → studio-0wa4wv4s.js} +4 -4
- package/dist/chunks/studio-0z8kp4xk.js +5 -0
- package/dist/chunks/{studio-g0hxtcga.js → studio-18gc5t3v.js} +4 -4
- package/dist/chunks/{studio-4fnb5648.js → studio-1b79rpcb.js} +4 -4
- package/dist/chunks/studio-211q5j7m.js +4 -0
- package/dist/chunks/studio-213pyfxh.js +16 -0
- package/dist/chunks/studio-2b1smjvp.js +5 -0
- package/dist/chunks/{studio-nwf0c32p.js → studio-2v6tc9jp.js} +4 -4
- package/dist/chunks/studio-30j0wz99.js +5 -0
- package/dist/chunks/studio-3kmqhwtt.js +5 -0
- package/dist/chunks/studio-44drsmhw.js +5 -0
- package/dist/chunks/{studio-2pk7kc7z.js → studio-495b6f2r.js} +4 -4
- package/dist/chunks/{studio-jma2q8r9.js → studio-4gthb2fd.js} +4 -4
- package/dist/chunks/{studio-0gvvqj3h.js → studio-4xadhxj1.js} +4 -4
- package/dist/chunks/{studio-nvcn2ykc.js → studio-52mzbxqm.js} +4 -4
- package/dist/chunks/{studio-v7a7yb5w.js → studio-56mmnsw8.js} +7 -7
- package/dist/chunks/studio-59hz8f4r.js +5 -0
- package/dist/chunks/{studio-sce30r7b.js → studio-5k9mfafh.js} +3 -3
- package/dist/chunks/{studio-rr00ex23.js → studio-5qez462c.js} +6 -6
- package/dist/chunks/studio-6tnpg0vx.js +5 -0
- package/dist/chunks/studio-6w8mt734.js +6 -0
- package/dist/chunks/studio-7hm04x5z.js +5 -0
- package/dist/chunks/studio-8atmfjjm.js +7 -0
- package/dist/chunks/{studio-wmjmsw0p.js → studio-8n99z71s.js} +4 -4
- package/dist/chunks/studio-8vmad6x2.js +5 -0
- package/dist/chunks/studio-93p5k4r4.js +5 -0
- package/dist/chunks/{studio-2x972v58.js → studio-9gb0m81w.js} +4 -4
- package/dist/chunks/studio-a4ymg4vd.js +5 -0
- package/dist/chunks/studio-anc8067x.js +5 -0
- package/dist/chunks/{studio-2e4hry72.js → studio-dbdt67kr.js} +5 -5
- package/dist/chunks/studio-dbex091t.js +5 -0
- package/dist/chunks/{studio-amaz545p.js → studio-dj8ctxey.js} +4 -4
- package/dist/chunks/{studio-k2evngrj.js → studio-ed9bz68j.js} +5 -5
- package/dist/chunks/{studio-4bgvvzhv.js → studio-fe2d1fp5.js} +4 -4
- package/dist/chunks/{studio-45mj4jqe.js → studio-fgp4cyy3.js} +4 -4
- package/dist/chunks/studio-ft706q02.js +5 -0
- package/dist/chunks/studio-g79s1dyg.js +6 -0
- package/dist/chunks/{studio-pj216fmn.js → studio-gahswxp4.js} +4 -4
- package/dist/chunks/studio-gbqc12bk.js +5 -0
- package/dist/chunks/studio-gxphbetb.js +6 -0
- package/dist/chunks/studio-hdf01j7q.js +7 -0
- package/dist/chunks/studio-hf259xzd.js +48 -0
- package/dist/chunks/studio-jbva4wxw.js +5 -0
- package/dist/chunks/studio-jj9gf1qc.js +5 -0
- package/dist/chunks/studio-jsjg3mjv.js +5 -0
- package/dist/chunks/studio-jtvb8hd7.js +5 -0
- package/dist/chunks/{studio-g9brbewz.js → studio-kp4vzrct.js} +4 -4
- package/dist/chunks/studio-kpx02gaa.js +7 -0
- package/dist/chunks/{studio-3na1r48j.js → studio-kv1728ex.js} +8 -8
- package/dist/chunks/studio-m25ry0mf.js +5 -0
- package/dist/chunks/studio-mcbwmkyh.js +5 -0
- package/dist/chunks/studio-meajkr51.js +5 -0
- package/dist/chunks/studio-mkjrjpr2.js +6 -0
- package/dist/chunks/{studio-eqcddvc2.js → studio-mr084886.js} +201 -201
- package/dist/chunks/studio-mrb10hv3.js +5 -0
- package/dist/chunks/{studio-0939t1q1.js → studio-nhpg405j.js} +4 -4
- package/dist/chunks/studio-nsec0hxm.js +64 -0
- package/dist/chunks/{studio-xx3r3sb0.js → studio-nv0mh0p5.js} +4 -4
- package/dist/chunks/studio-pafmb06w.js +5 -0
- package/dist/chunks/{studio-pm17wdc4.js → studio-pgftd79b.js} +4 -4
- package/dist/chunks/{studio-4zd6an2b.js → studio-pk961xgz.js} +4 -4
- package/dist/chunks/studio-pzbr7g05.js +5 -0
- package/dist/chunks/studio-qcc5hsw2.js +10 -0
- package/dist/chunks/studio-qfq58c8n.js +5 -0
- package/dist/chunks/studio-qvb2jr83.js +5 -0
- package/dist/chunks/studio-r85zw6ay.js +5 -0
- package/dist/chunks/studio-s0kwce5w.js +9 -0
- package/dist/chunks/studio-s6ymkf3q.js +14 -0
- package/dist/chunks/{studio-0x6f3nk9.js → studio-s7p5ccxa.js} +4 -4
- package/dist/chunks/{studio-1410q5dw.js → studio-s9jjap3x.js} +4 -4
- package/dist/chunks/{studio-evq47j2z.js → studio-t5hde1ws.js} +4 -4
- package/dist/chunks/studio-vj9yv897.js +5 -0
- package/dist/chunks/studio-wmak8xjw.js +5 -0
- package/dist/chunks/{studio-bnc50f9h.js → studio-wqsmvtqj.js} +4 -4
- package/dist/chunks/studio-x3z3rhej.js +5 -0
- package/dist/chunks/{studio-bg8pzprg.js → studio-xb55kpmy.js} +4 -4
- package/dist/chunks/studio-xxtdajmv.js +12 -0
- package/dist/chunks/studio-xxttcym1.js +5 -0
- package/dist/chunks/{studio-90zkgne5.js → studio-y2zsnzye.js} +7 -7
- package/dist/chunks/{studio-3qr08sxq.js → studio-y3tjh2xb.js} +3 -3
- package/dist/chunks/studio-y4f1rdsj.js +5 -0
- package/dist/chunks/studio-ybkd5w8k.js +5 -0
- package/dist/chunks/{studio-tpxcryf2.js → studio-yetr4gg1.js} +4 -4
- package/dist/chunks/studio-z295anhs.js +6 -0
- package/dist/chunks/studio-z89e6wpg.js +9 -0
- package/dist/chunks/{studio-5tet77de.js → studio-zbwr6prc.js} +3 -3
- package/dist/chunks/{studio-daksw8kh.js → studio-zdbsv5q2.js} +4 -4
- package/dist/chunks/{studio-abh9kfdh.js → studio-zvthj8hg.js} +4 -4
- package/dist/chunks/toast-2kn2vrn4.js +4 -0
- package/dist/chunks/{toast-host-g3r2s0kn.js → toast-host-3rxeyj3d.js} +3 -3
- package/dist/chunks/{tooltip-dj1pvgz7.js → tooltip-ghkxkasp.js} +3 -3
- package/dist/chunks/{tree-j0ebwr5s.js → tree-vw4nc63s.js} +2 -2
- package/dist/chunks/tsMode-7gngmamr.js +14 -0
- package/dist/chunks/workspace-gv0hxgsm.js +4 -0
- package/dist/chunks/workspace-home-j7e0mjy5.js +4 -0
- package/dist/chunks/{ws-client-arz2qsy9.js → ws-client-vs11sxc5.js} +3 -3
- package/dist/iframe-entry.js +14 -14
- package/dist/manifest.json +84 -83
- package/dist/studio.js +99 -98
- package/dist/workers/ts.worker.js +3 -3
- package/package.json +12 -12
- package/src/browse/library-layouts.ts +9 -12
- package/src/browse/library-pane.ts +22 -16
- package/src/browse/library-source.ts +3 -4
- package/src/browse/preview-style.ts +2 -1
- package/src/canvas/canvas-live-render.ts +2 -5
- package/src/canvas/canvas-page-context.ts +5 -0
- package/src/canvas/canvas-render.ts +6 -1
- package/src/canvas/iframe-drop.ts +84 -1
- package/src/canvas/iframe-entry.ts +9 -6
- package/src/canvas/iframe-render.ts +13 -0
- package/src/collab/collab-session.ts +2 -2
- package/src/commands/levels.ts +1 -1
- package/src/content/entry-commands.ts +32 -27
- package/src/content/entry-editor.ts +46 -44
- package/src/content/entry-inspector.ts +15 -12
- package/src/content/entry-model.ts +3 -3
- package/src/content/entry-summaries.ts +5 -5
- package/src/content/hold-state.ts +172 -0
- package/src/content/page-summaries.ts +10 -14
- package/src/create/add-new-flow.ts +2 -1
- package/src/editor/convert-targets.ts +2 -23
- package/src/editor/inline-edit.ts +6 -1
- package/src/editor/repeater-scope.ts +333 -74
- package/src/editor/slash-menu.ts +35 -17
- package/src/files/files.ts +18 -0
- package/src/format/format-choices.ts +5 -5
- package/src/format/format-host.ts +35 -3
- package/src/grid/redirects-grid.ts +4 -4
- package/src/grid/sources/content-source.ts +42 -66
- package/src/locale/element-names.ts +131 -0
- package/src/panels/block-action-bar.ts +3 -4
- package/src/panels/dnd.ts +3 -1
- package/src/panels/elements-panel.ts +93 -36
- package/src/panels/events-panel.ts +6 -2
- package/src/panels/formula-workspace.ts +9 -0
- package/src/panels/imports-panel.ts +3 -2
- package/src/panels/navigator-panels.ts +10 -10
- package/src/panels/panel-registry.ts +3 -3
- package/src/panels/properties-panel.ts +127 -35
- package/src/panels/site-panel.ts +2 -1
- package/src/panels/statement-editor.ts +4 -0
- package/src/panels/style-panel.ts +2 -1
- package/src/panels/styles-panel.ts +2 -2
- package/src/panels/tab-strip.ts +29 -26
- package/src/platforms/cloud.ts +5 -2
- package/src/services/ai-command-tools.ts +2 -1
- package/src/services/ai-project-tools.ts +21 -8
- package/src/services/ai-tools.ts +5 -5
- package/src/services/ai-write-report.ts +22 -4
- package/src/services/context-manager.ts +110 -2
- package/src/services/document-assistant.ts +2 -2
- package/src/services/harness/chat-reducer.ts +9 -4
- package/src/services/jxn-language.ts +110 -0
- package/src/services/model-uri.ts +3 -0
- package/src/services/monaco-setup.ts +6 -2
- package/src/services/render-critic.ts +234 -12
- package/src/services/tool-executor.ts +16 -8
- package/src/settings/contributed-section.ts +2 -1
- package/src/settings/extension-commands.ts +2 -1
- package/src/settings/general-settings.ts +2 -2
- package/src/settings/settings-document.ts +5 -5
- package/src/shell.ts +1 -1
- package/src/studio.ts +28 -11
- package/src/style/variables-view.ts +2 -2
- package/src/surfaces/collections-panel.json +1 -1
- package/src/surfaces/collections-panel.ts +1 -1
- package/src/surfaces/entry-editor.json +10 -10
- package/src/surfaces/entry-editor.ts +22 -19
- package/src/surfaces/entry-inspector.json +11 -11
- package/src/surfaces/entry-inspector.ts +17 -10
- package/src/surfaces/panel-elements.json +466 -206
- package/src/surfaces/panel-elements.ts +61 -25
- package/src/surfaces/tab-strip.json +5 -5
- package/src/surfaces/tab-strip.ts +2 -2
- package/src/tabs/project-config.ts +13 -13
- package/src/tabs/tab.ts +7 -2
- package/src/types.ts +13 -2
- package/src/ui/expression-editor.ts +10 -5
- package/src/ui/schema-form.ts +18 -1
- package/src/utils/edit-display.ts +27 -1
- package/src/view.ts +9 -2
- package/src/workspace/tab-workspace.ts +2 -2
- package/src/workspace/workspace-back.ts +2 -2
- package/dist/chunks/2020-906vx2dq.js +0 -4
- package/dist/chunks/adapter-hnvad61x.js +0 -4
- package/dist/chunks/add-new-flow-v0pm96mr.js +0 -4
- package/dist/chunks/cf-settings-mkbcz4z2.js +0 -4
- package/dist/chunks/color-04361ttk.js +0 -4
- package/dist/chunks/color-field-qv5r2b16.js +0 -4
- package/dist/chunks/components-w5zqwva1.js +0 -4
- package/dist/chunks/content-source-g38w0d3f.js +0 -4
- package/dist/chunks/convert-to-repeater-r8sfxjjm.js +0 -4
- package/dist/chunks/editor-wvf5e6j9.js +0 -4
- package/dist/chunks/entry-commands-t13dyw3c.js +0 -4
- package/dist/chunks/extension-sections-vjzw46xb.js +0 -4
- package/dist/chunks/file-ops-1sghzgcr.js +0 -4
- package/dist/chunks/files-zrqtgt41.js +0 -4
- package/dist/chunks/format-host-9gy76erh.js +0 -4
- package/dist/chunks/fs-events-45rhg3me.js +0 -4
- package/dist/chunks/grid-open-t4fq6bbm.js +0 -4
- package/dist/chunks/iframe-entry-42hpmwz5.js +0 -5
- package/dist/chunks/iframe-host-9aq8ze3q.js +0 -4
- package/dist/chunks/index-f9qr7kzh.js +0 -4
- package/dist/chunks/jsonMode-vj30te2h.js +0 -13
- package/dist/chunks/jx-validate-r4ax11e3.js +0 -4
- package/dist/chunks/layers-m49nmwvx.js +0 -4
- package/dist/chunks/layers-panel-zr92pwdp.js +0 -4
- package/dist/chunks/lit-html-k2mb9k0r.js +0 -4
- package/dist/chunks/media-library-j74rt0w4.js +0 -4
- package/dist/chunks/media-open-mypr0k6b.js +0 -4
- package/dist/chunks/media-picker-pemtbsjv.js +0 -4
- package/dist/chunks/menu-d2jxpgma.js +0 -4
- package/dist/chunks/monaco-buffer-pa0g6ax7.js +0 -4
- package/dist/chunks/monaco-setup-0hw9f835.js +0 -4
- package/dist/chunks/notify-bwehrp7q.js +0 -4
- package/dist/chunks/parse-hee7ne9b.js +0 -4
- package/dist/chunks/platform-kv0k65cy.js +0 -4
- package/dist/chunks/popover-9tf4cjrk.js +0 -4
- package/dist/chunks/publish-panel-vg1n880b.js +0 -4
- package/dist/chunks/publish-quick-4fwngwrw.js +0 -4
- package/dist/chunks/publish-workspace-jv4w2bx2.js +0 -4
- package/dist/chunks/quick-search-nh29rt8a.js +0 -4
- package/dist/chunks/references-vqyr5s9x.js +0 -4
- package/dist/chunks/right-panel-3ws9f2w0.js +0 -4
- package/dist/chunks/source-control-h3hcs5gy.js +0 -4
- package/dist/chunks/studio-0khd8xtx.js +0 -4
- package/dist/chunks/studio-1ctnw3xv.js +0 -5
- package/dist/chunks/studio-1ks5d9y4.js +0 -5
- package/dist/chunks/studio-1y9mab9m.js +0 -5
- package/dist/chunks/studio-2kpxm0eh.js +0 -7
- package/dist/chunks/studio-2zz4qbv9.js +0 -5
- package/dist/chunks/studio-3pz4t5a2.js +0 -5
- package/dist/chunks/studio-4f7thq0p.js +0 -5
- package/dist/chunks/studio-61rg2cz5.js +0 -5
- package/dist/chunks/studio-7rrdbvex.js +0 -5
- package/dist/chunks/studio-9c6cbq2c.js +0 -4
- package/dist/chunks/studio-9dq7rwc7.js +0 -5
- package/dist/chunks/studio-9gr7xs9r.js +0 -6
- package/dist/chunks/studio-a88ej93p.js +0 -7
- package/dist/chunks/studio-acer0g8w.js +0 -5
- package/dist/chunks/studio-az3wvyh2.js +0 -5
- package/dist/chunks/studio-brh8d2pr.js +0 -5
- package/dist/chunks/studio-c2fa783p.js +0 -9
- package/dist/chunks/studio-cfnn70h1.js +0 -5
- package/dist/chunks/studio-cqxj4fcy.js +0 -5
- package/dist/chunks/studio-cw11h078.js +0 -5
- package/dist/chunks/studio-dn56z7sn.js +0 -5
- package/dist/chunks/studio-egnjpyde.js +0 -9
- package/dist/chunks/studio-ejrypvmq.js +0 -5
- package/dist/chunks/studio-frc16j8v.js +0 -10
- package/dist/chunks/studio-gnazwtv3.js +0 -5
- package/dist/chunks/studio-hfqpfmpk.js +0 -5
- package/dist/chunks/studio-hh394phe.js +0 -5
- package/dist/chunks/studio-j0zf5x2x.js +0 -5
- package/dist/chunks/studio-j5fcp6gj.js +0 -5
- package/dist/chunks/studio-jd1qb1st.js +0 -7
- package/dist/chunks/studio-k0xzrse2.js +0 -64
- package/dist/chunks/studio-k1xqrgm5.js +0 -5
- package/dist/chunks/studio-k3we3kqb.js +0 -5
- package/dist/chunks/studio-knsjyx7n.js +0 -5
- package/dist/chunks/studio-mrjtnm62.js +0 -5
- package/dist/chunks/studio-n9qba0gx.js +0 -5
- package/dist/chunks/studio-nzemfbkk.js +0 -14
- package/dist/chunks/studio-pwctzka3.js +0 -16
- package/dist/chunks/studio-q80fg1d6.js +0 -12
- package/dist/chunks/studio-q9hx2qp0.js +0 -5
- package/dist/chunks/studio-qrzmfaf6.js +0 -5
- package/dist/chunks/studio-r6mx7vm5.js +0 -7
- package/dist/chunks/studio-swedpd82.js +0 -5
- package/dist/chunks/studio-tmfcn347.js +0 -6
- package/dist/chunks/studio-v5wktj6f.js +0 -5
- package/dist/chunks/studio-vpevkfxw.js +0 -5
- package/dist/chunks/studio-wqfaqw4m.js +0 -5
- package/dist/chunks/studio-xpx91fby.js +0 -6
- package/dist/chunks/studio-xva3hzkv.js +0 -5
- package/dist/chunks/studio-z3fztxrp.js +0 -9
- package/dist/chunks/studio-z9453ypn.js +0 -6
- package/dist/chunks/toast-w11qpkyz.js +0 -4
- package/dist/chunks/tsMode-jg1dtphj.js +0 -14
- package/dist/chunks/workspace-6ztqcrsh.js +0 -4
- package/dist/chunks/workspace-home-rse9h8a0.js +0 -4
- package/src/content/draft-state.ts +0 -108
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Z}from"./studio-mkjrjpr2.js";import{p,we}from"./studio-1b79rpcb.js";import"./studio-5k9mfafh.js";import"./studio-zbwr6prc.js";import{Gt,Ut}from"./studio-s6ymkf3q.js";import"./studio-52mzbxqm.js";import{an,dt}from"./studio-yetr4gg1.js";import"./studio-dbex091t.js";import"./studio-ed9bz68j.js";import"./studio-kp4vzrct.js";import"./studio-qfq58c8n.js";import"./studio-g79s1dyg.js";import{gm}from"./studio-vj9yv897.js";import{ze,yt,E,I}from"./studio-xxttcym1.js";import{b}from"./studio-y3tjh2xb.js";var d={$schema:"https://jxsuite.com/schema/v1",$id:"StudioCfAccountPicker",$description:"The Cloudflare account picker: which of the accounts this grant reaches should publishing and the assistant run against. A `jx-dialog`, so the platform owns modality, Escape, focus restoration and the backdrop — which is what retired the `sp-dialog-wrapper` this surface used to open by hand, along with the focus trap and the `aria-modal` slot `showDialog` wrapped around it. There is no confirming button: each row commits itself, because a picker whose answer is one of N rows has N answers rather than one. The adapter (`surfaces/cf-account-picker.ts`) hands in rows that are already strings and booleans — nothing here knows what `cf_account_required` is, which call refused, or whether the list came back empty because the grant reaches nothing or because Cloudflare could not be reached.",tagName:"jx-dialog",$props:{headline:"Choose a Cloudflare account",confirmLabel:"",cancelLabel:"Cancel",size:"sm"},attributes:{part:"cf-accounts"},oncancel:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},onclose:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},style:{$description:"The picker's own look. Four `.cf-account-picker*` rules in `styles/shell.css` become the parts below and one of them does not come with them: `min-width: 320px` was this surface sizing its own box, and `jx-dialog` is what sizes a dialog now — `sm` is `min(90vw, 24rem)`, which is wider than the 320px it asked for. The row shape came from `.prefs-account`, which the lit template BORROWED from Preferences › Accounts; it is copied here rather than shared, because a class in a stylesheet is a thing two surfaces can drift apart on and `preferences-dialog.ts` still draws its own rows from it. Three token repairs travel with them: `--spectrum-font-size-75` and `--spectrum-font-size-50` resolve only inside `<sp-theme>`, and a document mounted in the dialog layer is outside it, so every one of them would silently have taken its hard-coded fallback.",'& [part="picker"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-4)"},'& [part="intro"], & [part="empty"]':{$description:"The lede and the two absences read as the same secondary line, so they are one rule: the sentence over the list and the sentence drawn instead of it are the same voice.",margin:"0",fontSize:"var(--jx-text-md)",color:"var(--fg-dim)"},'& [part="failure"]':{$description:'A commit the broker refused, said above the list the reader is still looking at. It is not an announcement of the same thing twice: the list survives a refusal, because listing again is not what would fix an account Cloudflare will not accept, so the reason has to sit beside the rows that are still on offer. It is `failure` rather than `error` because every kit field draws a permanent, empty `[part="error"]` of its own, and the kit is light DOM: a rule on that name here would reach any field this dialog ever holds.',margin:"0",fontSize:"var(--jx-text-md)",color:"var(--danger)"},'& [part="fail"]':{$description:"The one state that offers a verb of its own. Retrying is right for a listing that never landed and wrong for a grant that genuinely reaches nothing, so the button lives in this branch rather than under both.",display:"flex",flexDirection:"column",alignItems:"flex-start",gap:"var(--jx-space-3)"},'& [part="list"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-2)"},'& [part="row"]':{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--jx-space-4)",padding:"var(--jx-space-3)",border:"1px solid var(--border)",borderRadius:"var(--radius)"},'& [part="text"]':{$description:"`min-width: 0` lets the column shrink below its content, so the name and id reflow inside the row instead of pushing its own button off the end of it; what lets them reflow is their own `overflow-wrap`. Nothing here ellipsizes. Unlike Preferences › Accounts, the row does not wrap its button onto a line of its own: in an `sm` dialog the arithmetic (a 120px basis, the gap and a 105px button against a 236px row) would wrap every row at rest.",display:"flex",flexDirection:"column",gap:"var(--jx-space-1)",minWidth:"0"},'& [part="name"]':{$description:"`overflow-wrap: anywhere` because Cloudflare names a new account after the email that opened it (`name@example.com's Account`), and an address has no break opportunity in it.",color:"var(--fg)",overflowWrap:"anywhere"},'& [part="detail"]':{$description:"The account id under the name. Two Cloudflare accounts may carry the same name and the id is what is stored, so the row shows both rather than the half a reader would have to guess from. `overflow-wrap: anywhere` because the id is 32 hex digits with no break opportunity: it measured 203px in a 119px column and ran under the row's own button. It reflows rather than ellipsizing, because the id is the half that tells two same-named accounts apart.",fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)",overflowWrap:"anywhere"}},children:[{tagName:"div",attributes:{part:"picker"},children:[{tagName:"p",attributes:{part:"intro"},textContent:"Your Cloudflare login reaches more than one account. Publishing and the assistant both run against the one you pick; you can change it in Preferences › Accounts."},{tagName:"div",attributes:{part:"body-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/listState"},cases:{loading:{tagName:"p",attributes:{part:"empty"},textContent:"Reading your Cloudflare accounts…"},empty:{tagName:"p",attributes:{part:"empty"},textContent:"This Cloudflare login reaches no accounts. Create one at dash.cloudflare.com, then try again."},failed:{tagName:"div",attributes:{part:"fail"},children:[{tagName:"p",attributes:{part:"empty"},textContent:"${state.failureMessage}"},{tagName:"jx-button",attributes:{part:"retry"},$props:{size:"sm"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/retry"},value:[]}]},children:[{tagName:"span",textContent:"Try again"}]}]},listed:{tagName:"div",attributes:{part:"listed",role:"none"},style:{display:"contents"},children:[{tagName:"div",attributes:{part:"failure-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/hasFailure"},cases:{true:{tagName:"p",attributes:{part:"failure"},textContent:"${state.failure}"}}},{tagName:"div",attributes:{part:"list"},children:[{$prototype:"Array",items:{$ref:"#/state/rows"},key:{$ref:"$map/item/id"},map:{tagName:"div",attributes:{part:"row","data-account":"${$map.item.id}"},children:[{tagName:"div",attributes:{part:"text"},children:[{tagName:"span",attributes:{part:"name"},textContent:"${$map.item.name}"},{tagName:"span",attributes:{part:"detail"},textContent:"${$map.item.id}"}]},{tagName:"jx-button",attributes:{part:"choose"},$props:{size:"sm",variant:"accent",disabled:{$ref:"$map/item/busy"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/choose"},value:[{$ref:"$map/item/id"}]}]},children:[{tagName:"span",textContent:"${$map.item.label}"}]}]}}]}]}}}]}]};E("cf-account-picker",d);function h(t){let a=t.choosing!=="";return{...t,failureMessage:`Cloudflare could not be reached: ${t.failure}`,hasFailure:t.failure!=="",listState:t.loading?"loading":t.accounts.length>0?"listed":t.failure!==""?"failed":"empty",rows:t.accounts.map((o)=>({busy:a,id:o.id,label:t.choosing===o.id?"Selecting…":"Use this account",name:o.name}))}}function f(t){let a=document.createElement("div");a.style.pointerEvents="auto",a.setAttribute(ze,yt("dialog","cf-accounts")),t.layer.append(a);let o=!1,s=()=>{if(o)return;o=!0,t.onClosed()},u=()=>o,n=b({...h({accounts:[],choosing:"",failure:"",loading:!0}),choose:(e)=>{t.onChoose(e)},closed:s,retry:()=>{t.onRetry()}}),l=null,c=I("cf-account-picker",n,a).then(async(e)=>{l=e;let i=e.root;if(u())return e.dispose(),i;if(await an(i),u())return i;return Gt(i),i});return{close(){if(o)return;let e=l?.root;if(e instanceof HTMLElement)Ut(e);l?.dispose(),l=null,a.remove(),s()},host:a,ready:c,update(e){Object.assign(n,h({accounts:e.accounts??n.accounts,choosing:e.choosing??n.choosing,failure:e.failure??n.failure,loading:e.loading??n.loading}))}}}function g(){if(!we())return!1;let t=p();return Boolean(t.cfAccounts&&t.cfSelectAccount)}function z(){if(!g())return Promise.resolve(null);return new Promise((t)=>{let a=[],o="",s=!1,u=(r)=>{if(s)return;s=!0,c.close(),t(r)};async function n(){c.update({failure:"",loading:!0});let r="";try{a=await p().cfAccounts?.()??[]}catch(e){a=[],r=Z(e)}if(s)return;c.update({accounts:a,failure:r,loading:!1})}async function l(r){let e=a.find((i)=>i.id===r);if(!e||o!=="")return;o=r,c.update({choosing:r,failure:""});try{await p().cfSelectAccount?.({id:e.id,name:e.name})}catch(i){if(o="",!s)c.update({choosing:"",failure:Z(i)});return}gm(),u(e)}let c=f({layer:dt("dialog"),onChoose:(r)=>{l(r)},onClosed:()=>{u(null)},onRetry:()=>{n()}});n()})}export{z as openCfAccountPicker};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
4
|
-
//# sourceMappingURL=cf-account-picker-
|
|
3
|
+
//# debugId=AF37109E7DBCF96964756E2164756E21
|
|
4
|
+
//# sourceMappingURL=cf-account-picker-v3qd2dhw.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{vb,QE,eT,PF,tT}from"./studio-qfq58c8n.js";import"./studio-kp4vzrct.js";import"./studio-5k9mfafh.js";import"./studio-1b79rpcb.js";export{tT as clearCfConnection,eT as getCfAccountId,vb as getCfToken,PF as setCfAccountId,QE as setCfToken};
|
|
2
|
+
|
|
3
|
+
//# debugId=79B04B8EBD6EFA2564756E2164756E21
|
|
4
|
+
//# sourceMappingURL=cf-settings-1fnw874z.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m,h}from"./iframe-entry-
|
|
1
|
+
import{m,h}from"./iframe-entry-mpwe5pwk.js";import{t}from"./iframe-entry-rt8jz5t8.js";var b="jx-color-area",g={x:"saturation",y:"brightness"},E=new Map([["ArrowDown","y"],["ArrowLeft","x"],["ArrowRight","x"],["ArrowUp","y"]]),l=new WeakSet;function i(r){let e=r.currentTarget;return e instanceof HTMLElement&&e.localName===b?e:null}function f(r){return r.querySelector('[part="track"]')}function p(r){if(!(r instanceof Element))return null;let e=r.getAttribute("part");return e==="x"||e==="y"?e:null}function d(r){let e=Number(r.step);return Number.isFinite(e)&&e>0?e:1}function u(r,...e){for(let n of e)r.dispatchEvent(new Event(n,{bubbles:!0}))}function s(r,e,n){let o=g[e],a=h(n,d(r),0,100);if(r[o]===a)return!1;return r[o]=a,!0}function S(r,e){let n=i(e),o=p(e.target);if(!n||!o)return;e.stopPropagation(),s(r,o,Number(e.target.value)),u(n,"input")}function P(r,e){let n=i(e),o=p(e.target);if(!n||!o)return;e.stopPropagation(),s(r,o,Number(e.target.value)),u(n,"change")}function T(r,e){let n=i(e),o=p(e.target);if(!n||!o||r.disabled===!0)return;let a=E.get(e.key);if(!a)return;if(a===o&&!e.shiftKey)return;e.preventDefault(),e.stopPropagation();let c=d(r)*(e.shiftKey?10:1)*(m.get(e.key)??0);if(s(r,a,Number(r[g[a]])+c))u(n,"input","change")}function x(r,e,n){let o=f(e);if(!o)return!1;let a=o.getBoundingClientRect();if(a.width<=0||a.height<=0)return!1;let c=s(r,"x",(n.clientX-a.left)/a.width*100),A=s(r,"y",(1-(n.clientY-a.top)/a.height)*100);return c||A}function M(r,e){let n=i(e);if(!n||r.disabled===!0)return;e.preventDefault(),l.add(n);let o=f(n);if(o&&t(o.setPointerCapture))try{o.setPointerCapture(e.pointerId)}catch{}if(n.querySelector('[part="x"]')?.focus(),x(r,n,e))u(n,"input")}function w(r,e){let n=i(e);if(!n||!l.has(n))return;if(x(r,n,e))u(n,"input")}function H(r,e){let n=i(e);if(!n||!l.delete(n))return;let o=f(n);if(o&&t(o.releasePointerCapture)&&t(o.hasPointerCapture)&&o.hasPointerCapture(e.pointerId))o.releasePointerCapture(e.pointerId);u(n,"change")}export{P as onAreaAxisChange,S as onAreaAxisInput,T as onAreaKeydown,M as onAreaPointerDown,w as onAreaPointerMove,H as onAreaPointerUp};
|
|
2
2
|
|
|
3
3
|
//# debugId=C085CB743BF776AB64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=color-area-
|
|
4
|
+
//# sourceMappingURL=color-area-frd9y9q6.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{d,g,T,O,k,R,M}from"./iframe-entry-mpwe5pwk.js";import{l,f}from"./iframe-entry-v40cr813.js";import{t}from"./iframe-entry-rt8jz5t8.js";var E="jx-color-field",m=0,P=new WeakMap;function x(e){let n=e.currentTarget;return n instanceof HTMLElement&&n.localName===E?n:null}function y(e){let n=e.currentTarget??e.target;return n instanceof Element?n.closest(E):null}function F(e){return e.querySelector('[part="picker"]')}function S(e){return O({a:e.alpha===!0?Number(e.opacity)/100:1,h:Number(e.hue),s:Number(e.saturation),v:Number(e.brightness)})}function c(e,...n){for(let r of n)e.dispatchEvent(new Event(r,{bubbles:!0}))}function C(e,n){let r={...n,a:1};e.solid=g(r),e.ink=M(r)}function s(e){let n=S(e);e.value=e.format==="oklch"?R(k(n)):g(n),e.text=e.value,e.invalid=!1,C(e,n)}function v(e){let n=d(String(e.value??""))??d(String(e.resolved??""));if(e.invalid=!1,e.text=String(e.value??""),!n)return;if(C(e,n),g(n)===g(S(e)))return;let r=T(n);if(e.saturation=Number(r.s.toFixed(2)),e.brightness=Number(r.v.toFixed(2)),e.opacity=Number((r.a*100).toFixed(2)),r.s>0&&r.v>0)e.hue=Number(r.h.toFixed(2))}var L="[data-jx-channel]";function w(e){let{target:n}=e;return n instanceof Element?n.closest(L):null}function h(e){let{target:n}=e;return n!==null&&"value"in n?String(n.value??""):""}function N(e,n,r){let o=x(n);if(!o||n.target===o)return;let i=w(n),u=i?.dataset.jxChannel;if(!i||!u)return;if(n.stopPropagation(),u==="text"){let a=h(n);e.text=a;let b=d(a);if(r==="input"){e.invalid=!1;return}if(!b){e.invalid=a!=="";return}p(e,b),s(e),c(o,"input","change");return}if(u==="system"||u==="palette"){let a=d(h(n));if(!a)return;p(e,{...a,a:e.alpha===!0?Number(e.opacity)/100:1})}else if(u==="area")e.saturation=Number(i.saturation),e.brightness=Number(i.brightness);else if(u==="hue")e.hue=Number(i.value);else if(u==="opacity")e.opacity=Number(i.value);else return;s(e),c(o,r)}function p(e,n){let r=T(n);if(e.saturation=Number(r.s.toFixed(2)),e.brightness=Number(r.v.toFixed(2)),e.alpha===!0)e.opacity=Number((r.a*100).toFixed(2));if(r.s>0&&r.v>0)e.hue=Number(r.h.toFixed(2))}function V(e,n){N(e,n,"input")}function B(e,n){N(e,n,"change")}function q(e,n){let r=y(n),o=r?F(r):null;if(!r||!o||e.disabled===!0)return;if(e.expanded===!0){f(o);return}let i=r.getBoundingClientRect();o.x=Math.round(i.left),o.y=Math.round(i.bottom),l(o,n.currentTarget instanceof Element?n.currentTarget:r)}function G(e){return e===!0&&t(H())}function H(){return globalThis.EyeDropper}function I(e,n){let r=y(n),o=H();if(!r||!o||e.disabled===!0)return Promise.resolve();return new o().open().then((i)=>{let u=d(String(i?.sRGBHex??""));if(!u)return;p(e,u),s(e),c(r,"input","change")}).catch(()=>{})}function J(e,n){let r=x(n);if(!r)return;P.set(e,r),m+=1,e.uid=`jx-color-field-${m}`,v(e),new MutationObserver(()=>{v(e)}).observe(r,{attributeFilter:["data-resolved","data-value"],attributes:!0});let i=F(r);if(i)i.addEventListener("toggle",(u)=>{e.expanded="newState"in u&&u.newState==="open"})}export{G as eyeDropperAvailable,I as onEyeDropper,B as onFieldChange,V as onFieldInput,J as onFieldMount,q as onOpenPicker,v as syncFromValue};
|
|
2
|
+
|
|
3
|
+
//# debugId=254E26ABA4B35A3A64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=color-field-rebpbe33.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m,h}from"./iframe-entry-
|
|
1
|
+
import{m,h}from"./iframe-entry-mpwe5pwk.js";var p="jx-color-slider";function u(n){let e=n.currentTarget;return e instanceof HTMLElement&&e.localName===p?e:null}function b(n){return n.querySelector('input[part="input"]')}function i(n,...e){for(let t of e)n.dispatchEvent(new Event(t,{bubbles:!0}))}function d(n){let e=Number.isFinite(Number(n.min))?Number(n.min):0,t=Number(n.maxValue),r=Number(n.step);return{max:Number.isFinite(t)&&t>e?t:360,min:e,step:Number.isFinite(r)&&r>0?r:1}}function S(n,e){let t=u(e);if(!t||e.target===t)return;e.stopPropagation(),n.value=Number(e.target.value),i(t,"input")}function g(n,e){let t=u(e);if(!t||e.target===t)return;e.stopPropagation(),n.value=Number(e.target.value),i(t,"change")}function E(n,e){let t=u(e),r=m.get(e.key);if(!t||!r||!e.shiftKey||n.disabled===!0)return;e.preventDefault();let{max:s,min:c,step:l}=d(n),o=h(Number(n.value)+r*l*10,l,c,s);if(o===Number(n.value))return;n.value=o;let a=b(t);if(a)a.value=String(o);i(t,"input","change")}export{g as onSliderChange,S as onSliderInput,E as onSliderKeydown};
|
|
2
2
|
|
|
3
3
|
//# debugId=0E17FEC2B87B32AA64756E2164756E21
|
|
4
|
-
//# sourceMappingURL=color-slider-
|
|
4
|
+
//# sourceMappingURL=color-slider-6bzmk3s7.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{o,m,h,B,d,g,T,O,k,K,R,_,j,M,ee}from"./iframe-entry-mpwe5pwk.js";export{m as ARROW_SIGN,o as clamp,j as contrastRatio,g as formatHex,R as formatOklch,O as hsvToRgb,ee as inkOn,K as oklchToSrgb,d as parseColor,B as parseHex,M as preferredInk,_ as relativeLuminance,T as rgbToHsv,h as snapToStep,k as srgbToOklch};
|
|
2
|
+
|
|
3
|
+
//# debugId=9857BE64570FE6F864756E2164756E21
|
|
4
|
+
//# sourceMappingURL=color-t2bnnj8y.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{l,f}from"./iframe-entry-v40cr813.js";var S="jx-combobox",s=0;function c(o){let n=o.currentTarget;return n instanceof Element?n.closest(S):null}function g(o){return o.querySelector('input[part="input"]')}function v(o){return o.querySelector('[part="popup"]')}function b(o){return Array.isArray(o.options)?o.options:[]}function C(o,...n){for(let e of n)o.dispatchEvent(new Event(e,{bubbles:!0}))}function m(o){return o.disabled!==!0&&o.readonly!==!0}function E(o){let n=v(o);if(!n)return;let e=o.getBoundingClientRect();n.x=Math.round(e.left),n.y=Math.round(e.bottom),l(n,o)}function u(o){let n=v(o);if(n)f(n)}function d(o,n){if(!m(o)||b(o).length===0)return!1;return E(n),!0}function w(o){let n=b(o),e=x(n,String(o.value??""));return e&&e.disabled!==!0?n.indexOf(e):-1}function a(o,n,e){let t=n<0?e>0?-1:0:n;for(let r of o.keys()){let i=((t+e*(r+1))%o.length+o.length)%o.length;if(o[i]?.disabled!==!0)return i}return-1}function x(o,n){let e=n.toLowerCase();return o.find((t)=>String(t.value).toLowerCase()===e)??null}function p(o,n,e){let t=String(e.value);o.value=t,o.committed=t,o.activeIndex=-1,u(n),g(n)?.focus(),C(n,"input","change")}function T(o,n){s+=1,o.uid=`jx-combobox-${s}`,o.committed=String(o.value??"")}function y(o,n){let e=c(n),t=n.target;if(!e||!(t instanceof HTMLInputElement))return;o.value=t.value,o.activeIndex=-1,d(o,e)}function I(o,n){let e="newState"in n&&n.newState==="open";if(o.open=e,!e)o.activeIndex=-1}function M(o,n){let e=c(n);if(!e||!m(o))return;if(o.open===!0){u(e);return}if(d(o,e))o.activeIndex=w(o);g(e)?.focus()}function h(o,n){let e=c(n),t="detail"in n?String(n.detail??""):"",r=x(b(o),t);if(!e||!r)return;p(o,e,r)}function H(o,n){let e=c(n);if(!e)return;let t=n.target instanceof HTMLInputElement?n.target:null,r=t?t.value:String(o.value??""),i=x(b(o),r);if(o.allowsCustomValue===!0||r===""||i){o.value=i?String(i.value):r,o.committed=String(o.value),u(e);return}n.stopPropagation(),o.value=String(o.committed??""),C(e,"change")}function k(o,n){let e=c(n);if(!e||n.ctrlKey||n.metaKey)return;let t=b(o),r=Number(o.activeIndex??-1);switch(n.key){case"ArrowDown":{if(!m(o))return;if(o.open!==!0){if(!d(o,e))return;o.activeIndex=n.altKey?w(o):a(t,-1,1)}else if(!n.altKey)o.activeIndex=a(t,r,1);break}case"ArrowUp":{if(!m(o))return;if(n.altKey){u(e);break}if(o.open!==!0){if(!d(o,e))return;o.activeIndex=a(t,-1,-1)}else o.activeIndex=a(t,r,-1);break}case"Enter":{let i=o.open===!0&&r>=0?t[r]:void 0;if(!i){if(o.open===!0)u(e);return}p(o,e,i);break}case"Tab":{let i=o.open===!0&&r>=0?t[r]:void 0;if(i)p(o,e,i);else u(e);return}case"Escape":{if(o.open!==!0)return;u(e),n.stopPropagation();break}default:return}n.preventDefault()}export{u as closeList,g as inputOf,w as landingIndex,T as mountCombobox,a as nextIndex,M as onComboboxButton,H as onComboboxCommit,y as onComboboxInput,k as onComboboxKeydown,h as onComboboxPick,I as onComboboxToggle,E as openList,x as rowFor};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
4
|
-
//# sourceMappingURL=combobox-
|
|
3
|
+
//# debugId=C3FCBC11DC71E09564756E2164756E21
|
|
4
|
+
//# sourceMappingURL=combobox-c49x7gf1.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{De,Nx,Ra,cy,Jc,Kc}from"./studio-mrb10hv3.js";import"./studio-1b79rpcb.js";export{Nx as _componentRegistryLoaded,Jc as buildComponentInstance,De as componentRegistry,Kc as computeRelativePath,Ra as loadComponentRegistry,cy as noteComponentSaved};
|
|
2
|
+
|
|
3
|
+
//# debugId=5AF575CB0C359D9564756E2164756E21
|
|
4
|
+
//# sourceMappingURL=components-y8yhdd7d.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Am,nC,iC,jb,c$,d$,u$}from"./studio-qcc5hsw2.js";import"./studio-a4ymg4vd.js";import"./studio-gxphbetb.js";import"./studio-56mmnsw8.js";import"./studio-qvb2jr83.js";import"./studio-5qez462c.js";import"./studio-g79s1dyg.js";import"./studio-0nb57pjg.js";import"./studio-m25ry0mf.js";import"./studio-mrb10hv3.js";import"./studio-3kmqhwtt.js";import"./studio-kp4vzrct.js";import"./studio-y2zsnzye.js";import"./studio-jj9gf1qc.js";import"./studio-yetr4gg1.js";import"./studio-zbwr6prc.js";import"./studio-wqsmvtqj.js";import"./studio-pk961xgz.js";import"./studio-meajkr51.js";import"./studio-dbex091t.js";import"./studio-44drsmhw.js";import"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import"./studio-5k9mfafh.js";import"./studio-hf259xzd.js";import"./studio-1b79rpcb.js";import"./studio-xxttcym1.js";import"./studio-s6ymkf3q.js";import"./studio-52mzbxqm.js";import"./studio-s9jjap3x.js";import"./studio-6tnpg0vx.js";import"./studio-213pyfxh.js";import"./studio-mkjrjpr2.js";export{nC as collectionDirs,Am as collectionInfo,iC as collectionSourceDirs,d$ as createCollectionSource,u$ as createPagesSource,jb as listCollectionEntryIds,c$ as reloadHoldAwareGrids};
|
|
2
|
+
|
|
3
|
+
//# debugId=4D3C535CFA87028D64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=content-source-9e7qvmsf.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Pe,X,h}from"./studio-ybkd5w8k.js";import"./studio-5k9mfafh.js";import"./studio-r85zw6ay.js";import"./studio-1b79rpcb.js";import"./studio-mkjrjpr2.js";import"./studio-hf259xzd.js";import"./studio-52mzbxqm.js";import"./studio-zbwr6prc.js";import{Gt,Ut,Oh}from"./studio-s6ymkf3q.js";import{an,dt}from"./studio-yetr4gg1.js";import"./studio-dbex091t.js";import{Jl}from"./studio-z295anhs.js";import"./studio-8vmad6x2.js";import"./studio-k1wvtp03.js";import"./studio-0nb57pjg.js";import"./studio-kp4vzrct.js";import"./studio-3kmqhwtt.js";import"./studio-mrb10hv3.js";import"./studio-44drsmhw.js";import"./studio-6tnpg0vx.js";import"./studio-m25ry0mf.js";import"./studio-y2zsnzye.js";import"./studio-gahswxp4.js";import"./studio-zdbsv5q2.js";import"./studio-fe2d1fp5.js";import"./studio-pk961xgz.js";import"./studio-wqsmvtqj.js";import"./studio-jj9gf1qc.js";import{ox}from"./studio-gxphbetb.js";import"./studio-meajkr51.js";import{so,zt,Wi}from"./studio-anc8067x.js";import{re}from"./studio-ft706q02.js";import{ze,yt,E,I}from"./studio-xxttcym1.js";import{b}from"./studio-y3tjh2xb.js";import"./studio-213pyfxh.js";import{f,rv}from"./studio-0z8kp4xk.js";var v={$schema:"https://jxsuite.com/schema/v1",$id:"StudioConvertRepeater",$description:'Repeat…: the dialog that turns the selected element into an `$prototype: "Array"` template. One `jx-dialog`, so the platform owns modality, Escape, the backdrop and focus restoration — which is what retired the `sp-dialog-wrapper` this surface used to open through its bare `open` attribute, and the hand-rolled `requestAnimationFrame` focus move that had to follow it. Three questions in one form: which state definition holds the items, and optionally which function filters and which sorts. The name field appears only when the answer to the first is "Create new…", because a definition that already exists needs no name. Nothing here knows what makes a definition an array — `editor/convert-to-repeater.ts` asks the plugin schemas, keeps the refusals and writes the repeater — and it hands over rows that are already strings.',tagName:"jx-dialog",$props:{headline:"Repeat…",confirmLabel:"Create Repeater",cancelLabel:"Cancel",size:"sm"},attributes:{part:"convert-repeater"},onconfirm:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]},oncancel:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},onclose:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/closed"},value:[]}]},style:{$description:"There is no stylesheet to transcribe: the lit version carried one inline `display:flex;flex-direction:column;gap:12px` on a wrapper div and nothing else, because `sp-field-label` and `sp-dialog-wrapper` drew the rest. Both of those are gone — the label is `jx-field`'s, which actually NAMES the control it wraps rather than sitting beside it, and the box is the dialog's — so the whole of this block is the one gap that separated the rows, said in the kit's scale instead of in the twelve pixels somebody typed.",'& [part="form"]':{display:"flex",flexDirection:"column",gap:"var(--jx-space-4)"},'& [part="new-slot"], & [part="functions-slot"], & [part="functions"]':{$description:"A branch host and the pair inside it are structure rather than layout: `display: contents` puts the rows they carry straight into the form's own column, so one gap rule spaces every row whether it is drawn or not.",display:"contents"}},children:[{tagName:"div",attributes:{part:"form"},children:[{tagName:"jx-field",attributes:{part:"source-row"},$props:{span:!0,label:"Items source"},children:[{tagName:"jx-select",attributes:{part:"source"},$props:{size:"sm",options:{$ref:"#/state/sourceOptions"},value:{$ref:"#/state/source"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickSource"},value:[{$ref:"event#/target/value"}]}]}}]},{tagName:"div",attributes:{part:"new-slot",role:"none"},$switch:{$ref:"#/state/creating"},cases:{true:{tagName:"jx-field",attributes:{part:"new-row"},$props:{span:!0,label:"New definition name",invalid:{$ref:"#/state/invalid"}},children:[{tagName:"jx-textfield",attributes:{part:"new-name"},$props:{size:"sm",placeholder:"myItems",value:{$ref:"#/state/newName"},invalid:{$ref:"#/state/invalid"},error:{$ref:"#/state/error"}},oninput:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/setName"},value:[{$ref:"event#/target/value"}]}]},onkeydown:{$prototype:"Function",body:[{$switch:{$ref:"event#/key"},cases:{Enter:[{preventDefault:!0},{operator:"call",target:{$ref:"#/state/confirm"},value:[]}]}}]}}]}}},{tagName:"div",attributes:{part:"functions-slot",role:"none"},$switch:{$ref:"#/state/hasFunctions"},cases:{true:{tagName:"div",attributes:{part:"functions",role:"none"},children:[{tagName:"jx-field",attributes:{part:"filter-row"},$props:{span:!0,label:"Filter (optional)"},children:[{tagName:"jx-select",attributes:{part:"filter"},$props:{size:"sm",options:{$ref:"#/state/functionOptions"},value:{$ref:"#/state/filter"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickFilter"},value:[{$ref:"event#/target/value"}]}]}}]},{tagName:"jx-field",attributes:{part:"sort-row"},$props:{span:!0,label:"Sort (optional)"},children:[{tagName:"jx-select",attributes:{part:"sort"},$props:{size:"sm",options:{$ref:"#/state/functionOptions"},value:{$ref:"#/state/sort"}},onchange:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/pickSort"},value:[{$ref:"event#/target/value"}]}]}}]}]}}}]}]};E("convert-repeater",v);var d="__new__";function g(r){return{...r,creating:r.source===d,functionOptions:[{label:"None",value:""},...r.functions.map((o)=>({label:o,value:o}))],hasFunctions:r.functions.length>0,invalid:r.error!=="",sourceOptions:[...r.sources.map((o)=>({label:o,value:o})),{label:"Create new…",value:d}]}}function y(r){let o=document.createElement("div");o.style.pointerEvents="auto",o.setAttribute(ze,yt("dialog","convert-repeater")),r.layer.append(o);let l=!1,i=()=>{if(l)return;l=!0,r.onClosed()},e=()=>l,s=b({...g(r.view),closed:i,confirm:()=>{r.onConfirm()},pickFilter:(t)=>{s.filter=t,r.onPickFilter(t)},pickSort:(t)=>{s.sort=t,r.onPickSort(t)},pickSource:(t)=>{s.source=t,r.onPickSource(t)},setName:(t)=>{s.newName=t,r.onName(t)}}),c=null,p=()=>{setTimeout(()=>{let t=c?.root;if(l||!(t instanceof HTMLElement))return;let a=t.querySelector('jx-textfield[part="new-name"]');if(a)Oh(a,"all")},0)},u=I("convert-repeater",s,o).then(async(t)=>{c=t;let a=t.root;if(e())return t.dispose(),a;if(await an(a),e())return a;if(Gt(a),s.creating)p();return a});return{close(){let t=c?.root;if(t instanceof HTMLElement)Ut(t);c?.dispose(),c=null,o.remove(),i()},host:o,ready:u,update(t){let a=g(t),n=a.creating&&!s.creating,m=a.error!==""&&a.error===s.error;if(Object.assign(s,m?{...a,error:""}:a),m){let w=a.error;queueMicrotask(()=>{s.error=w})}if(n)p()}}}var R=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;async function Z(){let r=h.value,o=Pe(r?.session.selection);if(!r||!o||o.length<2)return;if(!re(r.doc.document,o))return;let i=r.doc.document.state||{},e=await S(i);if(!e)return;X(r,(s)=>{let c=s.doc.document;if(e.newDef){if(!c.state)c.state={};c.state[e.newDef.name]={default:[],type:"array"}}let p=zt(o);if(!p)return;let u=Wi(o),t=re(c,p);if(!t?.children)return;let a=so(t)[u],n={$prototype:"Array",items:e.items,map:a};if(e.filter)n.filter=e.filter;if(e.sort)n.sort=e.sort;t.children[u]=n})}async function C(r){let o=Object.entries(r).filter(([,i])=>f(i)&&(i.type==="array"||Array.isArray(i.default)||i.$prototype==="Array")).map(([i])=>i),l=h.value?.documentPath;for(let[i,e]of Object.entries(r)){if(!rv(e)||!e.$prototype||e.$prototype==="Array")continue;if(o.includes(i))continue;if((await ox({...e.$src!=null&&{$src:e.$src},$prototype:e.$prototype},{...l!=null&&{documentPath:l}}))?.returns?.type==="array")o.push(i)}return o}async function S(r){let o=await C(r),l=Object.entries(r).filter(([,i])=>Jl(i)==="function").map(([i])=>i);return new Promise((i)=>{let e={error:"",filter:"",functions:l,newName:"",sort:"",source:o[0]??d,sources:o},s=!1,c=(n)=>{if(s)return;s=!0,a.close(),i(n)},p=(n)=>{e.error=n,a.update(e)},u=()=>({...e.filter&&{filter:{$ref:`#/state/${e.filter}`}},...e.sort&&{sort:{$ref:`#/state/${e.sort}`}}}),t=()=>{if(e.source!==d){c({items:{$ref:`#/state/${e.source}`},...u()});return}let n=e.newName.trim();if(!n){p("Enter a name for the new state definition.");return}if(r[n]){p(`"${n}" already exists.`);return}if(!R.test(n)){p("Invalid identifier name.");return}c({items:{$ref:`#/state/${n}`},...u(),newDef:{name:n}})},a=y({layer:dt("dialog"),onClosed:()=>c(null),onConfirm:t,onName:(n)=>{e.newName=n,e.error="",a.update(e)},onPickFilter:(n)=>{e.filter=n,a.update(e)},onPickSort:(n)=>{e.sort=n,a.update(e)},onPickSource:(n)=>{e.source=n,e.error="",a.update(e)},view:e})})}export{Z as convertToRepeater};
|
|
2
|
+
|
|
3
|
+
//# debugId=C67010D9A62026A064756E2164756E21
|
|
4
|
+
//# sourceMappingURL=convert-to-repeater-pd2w4z21.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{EF,sm,TF,$F,LF,pp,RF,IF,ka,j0,$d,NF,Un,ve}from"./studio-mr084886.js";export{EF as CancellationTokenSource,sm as Emitter,TF as KeyCode,$F as KeyMod,ka as MarkerSeverity,j0 as MarkerTag,LF as Position,pp as Range,RF as Selection,IF as SelectionDirection,NF as Token,$d as Uri,Un as editor,ve as languages};
|
|
2
|
+
|
|
3
|
+
//# debugId=15BA3FC7C8629E2064756E2164756E21
|
|
4
|
+
//# sourceMappingURL=editor-mb9jzdrw.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{IS,HF,_T}from"./studio-gbqc12bk.js";import"./studio-dj8ctxey.js";import"./studio-0wa4wv4s.js";import"./studio-jbva4wxw.js";import"./studio-z89e6wpg.js";import"./studio-8vmad6x2.js";import"./studio-fe2d1fp5.js";import"./studio-pafmb06w.js";import"./studio-zdbsv5q2.js";import"./studio-qcc5hsw2.js";import"./studio-a4ymg4vd.js";import"./studio-gxphbetb.js";import"./studio-56mmnsw8.js";import"./studio-qvb2jr83.js";import"./studio-5qez462c.js";import"./studio-g79s1dyg.js";import"./studio-0nb57pjg.js";import"./studio-m25ry0mf.js";import"./studio-mrb10hv3.js";import"./studio-3kmqhwtt.js";import"./studio-kp4vzrct.js";import"./studio-y2zsnzye.js";import"./studio-jj9gf1qc.js";import"./studio-yetr4gg1.js";import"./studio-zbwr6prc.js";import"./studio-wqsmvtqj.js";import"./studio-pk961xgz.js";import"./studio-meajkr51.js";import"./studio-dbex091t.js";import"./studio-44drsmhw.js";import"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import"./studio-5k9mfafh.js";import"./studio-hf259xzd.js";import"./studio-1b79rpcb.js";import"./studio-xxttcym1.js";import"./studio-s6ymkf3q.js";import"./studio-52mzbxqm.js";import"./studio-s9jjap3x.js";import"./studio-6tnpg0vx.js";import"./studio-k1wvtp03.js";import"./studio-213pyfxh.js";import"./studio-mkjrjpr2.js";export{HF as createEntry,IS as entryFormatName,_T as registerContentCommands};
|
|
2
|
+
|
|
3
|
+
//# debugId=D0A9611F403FA44764756E2164756E21
|
|
4
|
+
//# sourceMappingURL=entry-commands-at0wnx3f.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import"./studio-1b79rpcb.js";import"./studio-mkjrjpr2.js";import{jt,sd,su}from"./studio-hf259xzd.js";import"./studio-5k9mfafh.js";import"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import"./studio-52mzbxqm.js";import"./studio-s6ymkf3q.js";import"./studio-8vmad6x2.js";import"./studio-zbwr6prc.js";import{ta,dt}from"./studio-yetr4gg1.js";import"./studio-dbex091t.js";import"./studio-zdbsv5q2.js";import"./studio-k1wvtp03.js";import"./studio-7hm04x5z.js";import{zD,UD,Yl,qD}from"./studio-2v6tc9jp.js";import"./studio-kp4vzrct.js";import"./studio-3kmqhwtt.js";import{AT}from"./studio-30j0wz99.js";import{XS,aO,r$,s$}from"./studio-93p5k4r4.js";import"./studio-pk961xgz.js";import"./studio-44drsmhw.js";import"./studio-wqsmvtqj.js";import"./studio-g79s1dyg.js";import"./studio-5qez462c.js";import"./studio-56mmnsw8.js";import"./studio-0nb57pjg.js";import"./studio-qcc5hsw2.js";import"./studio-6tnpg0vx.js";import"./studio-jj9gf1qc.js";import"./studio-s9jjap3x.js";import"./studio-qvb2jr83.js";import"./studio-m25ry0mf.js";import"./studio-mrb10hv3.js";import"./studio-y2zsnzye.js";import"./studio-a4ymg4vd.js";import"./studio-gxphbetb.js";import"./studio-meajkr51.js";import{E,I}from"./studio-xxttcym1.js";import{b}from"./studio-y3tjh2xb.js";import"./studio-213pyfxh.js";import{n,S}from"./studio-0z8kp4xk.js";var g={$schema:"https://jxsuite.com/schema/v1",$id:"StudioDataActions",$description:"The actions row a data-domain settings section grows: test a connection, push the schema, open the rows as a grid. It is an ISLAND inside `surfaces/settings-contributed.json` — the generic contributed-section renderer stays extension-agnostic and draws an empty host, and `panels/data-grid.ts` mounts this into it — which is the seam that lets the data surface contribute verbs without the settings machinery learning what a connection is.",tagName:"div",attributes:{part:"data-actions"},style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"var(--jx-space-2)",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",'& [part="result"]':{fontSize:"var(--jx-text-sm)",color:"var(--fg-dim)"},'& [part="result"][data-ok="false"]':{color:"var(--danger)"},'& [part="result"][data-ok="true"]':{color:"var(--success, var(--accent))"}},children:[{tagName:"span",attributes:{part:"test-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/testState"},cases:{shown:{tagName:"jx-button",attributes:{part:"test"},$props:{variant:"secondary",size:"sm",disabled:{$ref:"#/state/testDisabled"}},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/test"},value:[]}]},children:[{tagName:"span",textContent:"${state.testLabel}"}]}}},{tagName:"jx-button",attributes:{part:"push"},$props:{variant:"secondary",size:"sm"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/push"},value:[]}]},children:[{tagName:"span",textContent:"Push Schema"}]},{tagName:"jx-button",attributes:{part:"grid"},$props:{variant:"secondary",size:"sm"},onclick:{$prototype:"Function",body:[{operator:"call",target:{$ref:"#/state/openGrid"},value:[]}]},children:[{tagName:"span",textContent:"Open Data Grid"}]},{tagName:"span",attributes:{part:"result-slot",role:"none"},style:{display:"contents"},$switch:{$ref:"#/state/resultState"},cases:{shown:{$description:"The last test's verdict, and a live region because it arrives after the press that asked for it.",tagName:"span",attributes:{part:"result",role:"status","data-ok":"${state.resultOk}",title:"${state.resultTitle}"},textContent:"${state.resultText}"}}}]};E("data-actions",g);function h(t,e){t.testState=e.testState,t.testLabel=e.testLabel,t.testDisabled=e.testDisabled,t.resultState=e.resultState,t.resultOk=e.resultOk,t.resultText=e.resultText,t.resultTitle=e.resultTitle}function y(t,e,o){let a=b({openGrid:o.openGrid,push:o.push,resultOk:"false",resultState:"hidden",resultText:"",resultTitle:"",test:o.test,testDisabled:!1,testLabel:"Test Connection",testState:"hidden"});h(a,e);let s=null,l=!1,r=I("data-actions",a,t).then((i)=>{let d=i.root;if(l)return i.dispose(),d;return s=i,d});return{dispose(){l=!0,s?.dispose(),s=null},ready:r,update:(i)=>h(a,i)}}var x={$schema:"https://jxsuite.com/schema/v1",$id:"StudioPushPlan",$description:"What pushing the schema would do, or what it did. The dry run is the whole point of the surface: a push rewrites a live database's shape, so the plan is read before the apply, and the confirm dialog around this document is the one that gates it. The ISLAND of `ui/layers.ts`'s confirm dialog rather than a dialog of its own (studio-ui-guidelines.md §12.5).",tagName:"div",attributes:{part:"plan"},style:{display:"flex",flexDirection:"column",gap:"var(--jx-space-2)",minWidth:"0",fontFamily:"var(--jx-font-sans)",fontSize:"var(--jx-text-md)",color:"var(--fg)",'& [part="steps"]':{margin:"0",padding:"0",listStyle:"none",display:"flex",flexDirection:"column",gap:"2px",maxHeight:"40vh",overflowY:"auto"},'& [part="step"]':{fontFamily:"var(--font-mono)",fontSize:"var(--jx-text-sm)",padding:"2px var(--jx-space-2)",borderLeft:"2px solid var(--border)"},'& [part="step"][data-kind="drop"]':{borderLeftColor:"var(--danger)"},'& [part="step"][data-kind="create"]':{borderLeftColor:"var(--success, var(--accent))"},'& [part="warning"]':{margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--warning, var(--fg-dim))"},'& [part="failure"]':{$description:'`failure` rather than `error`: every kit field draws a permanent, empty `[part="error"]` of its own, and the kit is light DOM, so a rule on that name here would reach any field the plan ever holds.',margin:"0",fontSize:"var(--jx-text-sm)",color:"var(--danger)"}},children:[{tagName:"ul",attributes:{part:"steps"},children:[{$prototype:"Array",items:{$ref:"#/state/steps"},key:{$ref:"$map/item/key"},map:{tagName:"li",attributes:{part:"step","data-kind":"${$map.item.kind}"},textContent:"${$map.item.summary}"}}]},{$prototype:"Array",items:{$ref:"#/state/warnings"},key:{$ref:"$map/item/key"},map:{tagName:"p",attributes:{part:"warning"},textContent:"${$map.item.text}"}},{$prototype:"Array",items:{$ref:"#/state/errors"},key:{$ref:"$map/item/key"},map:{tagName:"p",attributes:{part:"failure",role:"alert"},textContent:"${$map.item.text}"}}]};E("push-plan",x);function v(t,e){let o=b({errors:e.errors,steps:e.steps,warnings:e.warnings}),a=null,s=!1,l=I("push-plan",o,t).then((r)=>{if(s)r.dispose();else a=r;return r.root});return{dispose(){s=!0,a?.dispose(),a=null},ready:l,update(r){o.steps=r.steps,o.warnings=r.warnings,o.errors=r.errors}}}var u=null;function P(){let t=u;u=null,t?.plan?.dispose(),t?.handle.close()}function D(t,e){return t.map((o,a)=>({key:`${e}:${a}`,text:o}))}function A(t){let e=t.phase==="done"?t.result:t.dryRun;return{errors:D(e?.errors??[],"error"),steps:(e?.plan??[]).map((o,a)=>({key:`${o.kind}:${a}`,kind:o.kind,summary:o.summary})),warnings:D(e?.warnings??[],"warning")}}function L(t){if(t.phase==="loading")return"Compiling plan…";if(t.phase==="applying")return"Applying…";if(t.phase==="done")return t.result?.applied?"Schema applied.":"Push failed.";let e=t.dryRun?.plan.length??0,o=t.dryRun?.errors?.length??0;return e===0&&o===0?"Nothing to push — the schema is up to date.":""}function f(){let t=u;if(!t)return;let e=t.phase==="confirm"&&(t.dryRun?.plan.length??0)>0;t.handle.update({cancelLabel:t.phase==="done"?"Close":"Cancel",confirmLabel:e?"Apply":"",message:L(t)}),t.plan?.update(A(t))}async function H(t,e){if(u)return;let o={connection:t,dryRun:null,onDone:e,phase:"loading",plan:null,result:null},a=ta({cancelLabel:"Cancel",confirmLabel:"",headline:t?`Push Schema — ${t}`:"Push Schema",island:(i)=>{o.plan=v(i,A(o))},layer:dt("dialog"),message:"Compiling plan…",onCancel:P,onClosed:()=>{if(u===o)P()},onConfirm:()=>{N()},region:"data/push"}),s=Object.assign(o,{handle:a});u=s;let l={dryRun:!0};if(t!==void 0)l.connection=t;let r=await r$(l);if(u!==s)return;s.dryRun=r,s.phase="confirm",f()}async function N(){let t=u;if(!t)return;t.phase="applying",f();let e=await r$(t.connection===void 0?{}:{connection:t.connection});if(u!==t)return;t.result=e,t.phase="done",f(),t.onDone()}var c={pushing:!1,testResult:null,testing:null},w=new Map;function k(t,e){let{testResult:o}=c;return{resultOk:o?.ok?"true":"false",resultState:o?"shown":"hidden",resultText:o?`${o.connection}: ${o.ok?"connected":o.error??"failed"}`:"",resultTitle:o?.error??"",testDisabled:!e||c.testing!==null,testLabel:c.testing?"Testing…":"Test Connection",testState:t==="connections"?"shown":"hidden"}}function C(t){if(t!=="connections"&&t!=="data"||!XS())return null;return(e,o)=>O(e,t,o)}async function j(t,e){c.testing=t,c.testResult=null,e();let o=await aO(t);c.testing=null,c.testResult={...o,connection:t},e()}function O(t,e,o){let{rerender:a,selected:s}=o,l=w.get(t);if(l){l.update(k(e,s));return}let r=()=>e==="connections"?o.selected??void 0:void 0;w.set(t,y(t,k(e,s),{openGrid:()=>{s$()},push:()=>{H(r(),a)},test:()=>{let i=o.selected;if(i)j(i,a)}}))}var V=100;function G(t){let e=t.studio?.settings;if(!e)return null;let{key:o}=t.project,a=e.layout??"form",s=t.entrySchema??{},l=a==="map"?S(s.additionalProperties)?s.additionalProperties:{}:s,r=e.label??t.project.title??o,i={};if(e.entry!==void 0)i.entry=e.entry;if(e.layout!==void 0)i.layout=e.layout;return{contribution:{entrySchema:l,key:o,settings:i,title:r},group:UD(e.group)?e.group:zD,icon:e.icon,intro:n(e.intro)?e.intro:void 0,key:o,label:r,order:e.order??V}}var m=new Set,p=null;function ut(){return p??Promise.resolve()}function ct(){return p??=M().finally(()=>{p=null}),p}async function M(){let[t]=await Promise.all([sd(),jt()]),e=new Set;for(let o of t)for(let a of o.contributions){let s=G(a);if(!s)continue;let{contribution:l}=s;Yl({group:s.group,icon:s.icon,intro:s.intro,key:s.key,label:s.label,order:s.order,render:(r)=>{let i=C(s.key),d={formats:su()};if(i!==null)d.actions=i;AT(r,l,d)}}),e.add(s.key)}for(let o of m)if(!e.has(o))qD(o);m.clear();for(let o of e)m.add(o)}export{ut as extensionSectionsReady,ct as syncExtensionSettingsSections};
|
|
2
|
+
|
|
3
|
+
//# debugId=EFD4A8A2C6586FBE64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=extension-sections-4z9qq0gh.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{gO,Vo,p$,zF,f$,Dp,m$,Bb,Vb}from"./studio-a4ymg4vd.js";import"./studio-gxphbetb.js";import"./studio-56mmnsw8.js";import"./studio-qvb2jr83.js";import"./studio-5qez462c.js";import"./studio-g79s1dyg.js";import"./studio-0nb57pjg.js";import"./studio-m25ry0mf.js";import"./studio-mrb10hv3.js";import"./studio-3kmqhwtt.js";import"./studio-kp4vzrct.js";import"./studio-y2zsnzye.js";import"./studio-jj9gf1qc.js";import"./studio-yetr4gg1.js";import"./studio-zbwr6prc.js";import"./studio-wqsmvtqj.js";import"./studio-pk961xgz.js";import"./studio-meajkr51.js";import"./studio-dbex091t.js";import"./studio-44drsmhw.js";import"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import"./studio-5k9mfafh.js";import"./studio-hf259xzd.js";import"./studio-1b79rpcb.js";import"./studio-xxttcym1.js";import"./studio-s6ymkf3q.js";import"./studio-52mzbxqm.js";import"./studio-s9jjap3x.js";import"./studio-6tnpg0vx.js";import"./studio-213pyfxh.js";import"./studio-mkjrjpr2.js";export{Bb as confirmFileDelete,m$ as exportFile,zF as openFile,p$ as parseCollabSource,gO as parseFormatSource,Vo as parseSourceForPath,Vb as renamePromptMessage,Dp as saveFile,f$ as setDocumentSavedListener};
|
|
2
|
+
|
|
3
|
+
//# debugId=707B4AE3D1F526FE64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=file-ops-dtdvjmza.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{al,Im,UT,qT,gF,JT,KT,GT,YT,qS,bF,Fb,ZT,yF,vF,XT,iO,wF,xF,qw,JS,KS,Jw,Nm,_F,Kw,GS,hi,YS,QT,e$,Dm,t$,SF,CF}from"./studio-8atmfjjm.js";import"./studio-pafmb06w.js";import"./studio-93p5k4r4.js";import"./studio-zdbsv5q2.js";import"./studio-qcc5hsw2.js";import"./studio-a4ymg4vd.js";import"./studio-gxphbetb.js";import"./studio-wmak8xjw.js";import"./studio-ed9bz68j.js";import"./studio-4gthb2fd.js";import"./studio-56mmnsw8.js";import"./studio-qvb2jr83.js";import"./studio-5qez462c.js";import"./studio-g79s1dyg.js";import"./studio-0nb57pjg.js";import"./studio-m25ry0mf.js";import"./studio-mrb10hv3.js";import"./studio-3kmqhwtt.js";import"./studio-kp4vzrct.js";import"./studio-y2zsnzye.js";import"./studio-jj9gf1qc.js";import"./studio-yetr4gg1.js";import"./studio-zbwr6prc.js";import"./studio-wqsmvtqj.js";import"./studio-pk961xgz.js";import"./studio-meajkr51.js";import"./studio-dbex091t.js";import"./studio-44drsmhw.js";import"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import"./studio-5k9mfafh.js";import"./studio-hf259xzd.js";import"./studio-1b79rpcb.js";import"./studio-xxttcym1.js";import"./studio-s6ymkf3q.js";import"./studio-52mzbxqm.js";import"./studio-s9jjap3x.js";import"./studio-6tnpg0vx.js";import"./studio-213pyfxh.js";import"./studio-mkjrjpr2.js";export{yF as FILE_ROW_HEIGHT,XT as canMoveInto,Kw as commitRename,xF as createFileIn,qS as findHomePage,KT as followOpenDocuments,YT as initProjectRepo,vF as isFileDrag,GS as listRenameSiblings,qw as listTakenNames,al as loadDirectory,JT as loadProject,Im as loadProjectDirectories,SF as mountFilesPanel,Jw as notifyMoveOutcome,YS as openFileInPane,hi as openFileInTab,bF as openHomePage,Fb as openLastSessionOrHome,GT as openProject,Nm as parentDirOf,wF as pickAndUploadTo,UT as refreshProjectDirectoriesFor,t$ as registerFilesPanel,QT as reloadCleanTab,Dm as reloadFileInTab,e$ as reloadTabsIfChanged,KS as renameStatus,ZT as setSessionWorkspaceShow,gF as setShowIgnoredFiles,_F as settleRename,qT as showIgnoredFiles,CF as unmountFilesPanel,iO as uploadFilesToDir,JS as writeNewFile};
|
|
2
|
+
|
|
3
|
+
//# debugId=634BE2A4A170DD1164756E2164756E21
|
|
4
|
+
//# sourceMappingURL=files-8pf70854.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{jt,Ih,sd,Vy,__,dc,su,Fa,zi,hf,fn,Cl,Wy,co,QR,ja,eI}from"./studio-hf259xzd.js";import"./studio-1b79rpcb.js";import"./studio-mkjrjpr2.js";export{co as defaultContentFormat,Cl as documentExtensions,Fa as formatByExtension,zi as formatByName,fn as formatForPath,QR as formatParse,ja as formatSerialize,__ as getExtensionCatalog,Vy as getExtensions,su as getFormats,sd as loadExtensions,jt as loadFormats,hf as noFormatError,dc as refreshExtensionUi,Ih as refreshFormats,Wy as routedPageExtensions,eI as splitFormatDocument};
|
|
2
|
+
|
|
3
|
+
//# debugId=F816331D7E60203764756E2164756E21
|
|
4
|
+
//# sourceMappingURL=format-host-fd3m2y2a.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Rs,Jd,wR}from"./studio-wqsmvtqj.js";import"./studio-pk961xgz.js";import"./studio-44drsmhw.js";import"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import"./studio-5k9mfafh.js";import"./studio-hf259xzd.js";import"./studio-1b79rpcb.js";import"./studio-52mzbxqm.js";import"./studio-213pyfxh.js";import"./studio-mkjrjpr2.js";export{Jd as isRecentLocal,Rs as markLocalMutation,wR as startFsSync};
|
|
2
|
+
|
|
3
|
+
//# debugId=BA6D0A0A07B29EB764756E2164756E21
|
|
4
|
+
//# sourceMappingURL=fs-events-hrk29vcv.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{o$,cO,eC,s$,a$}from"./studio-93p5k4r4.js";import"./studio-qcc5hsw2.js";import"./studio-a4ymg4vd.js";import"./studio-gxphbetb.js";import"./studio-56mmnsw8.js";import"./studio-qvb2jr83.js";import"./studio-5qez462c.js";import"./studio-g79s1dyg.js";import"./studio-0nb57pjg.js";import"./studio-m25ry0mf.js";import"./studio-mrb10hv3.js";import"./studio-3kmqhwtt.js";import"./studio-kp4vzrct.js";import"./studio-y2zsnzye.js";import"./studio-jj9gf1qc.js";import"./studio-yetr4gg1.js";import"./studio-zbwr6prc.js";import"./studio-wqsmvtqj.js";import"./studio-pk961xgz.js";import"./studio-meajkr51.js";import"./studio-dbex091t.js";import"./studio-44drsmhw.js";import"./studio-ybkd5w8k.js";import"./studio-r85zw6ay.js";import"./studio-5k9mfafh.js";import"./studio-hf259xzd.js";import"./studio-1b79rpcb.js";import"./studio-xxttcym1.js";import"./studio-s6ymkf3q.js";import"./studio-52mzbxqm.js";import"./studio-s9jjap3x.js";import"./studio-6tnpg0vx.js";import"./studio-213pyfxh.js";import"./studio-mkjrjpr2.js";export{cO as openCollectionGrid,o$ as openCsvGridTab,s$ as openGridSourcePicker,eC as openPagesGrid,a$ as registerGridCommands};
|
|
2
|
+
|
|
3
|
+
//# debugId=65AA0FA4025F5B3B64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=grid-open-bh74v82z.js.map
|