@jxsuite/studio 6.0.0 → 6.1.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.
Files changed (159) hide show
  1. package/dist/chunks/{2020-cs2sb9t1.js → 2020-nkxms0ay.js} +3 -3
  2. package/dist/chunks/adapter-m948ab5f.js +4 -0
  3. package/dist/chunks/{cf-account-picker-bb2yq946.js → cf-account-picker-n8hr38v7.js} +3 -3
  4. package/dist/chunks/cf-settings-356xdtne.js +4 -0
  5. package/dist/chunks/components-yk3t844e.js +4 -0
  6. package/dist/chunks/content-source-bawmyc09.js +4 -0
  7. package/dist/chunks/{convert-to-repeater-vqkt7s3s.js → convert-to-repeater-7wns8kf1.js} +3 -3
  8. package/dist/chunks/editor-6sc8nacq.js +4 -0
  9. package/dist/chunks/entry-commands-8ay9fh81.js +4 -0
  10. package/dist/chunks/{extension-sections-8beq9ac3.js → extension-sections-na7rj3nr.js} +3 -3
  11. package/dist/chunks/file-ops-gye0qw56.js +4 -0
  12. package/dist/chunks/files-dmc2xvcq.js +4 -0
  13. package/dist/chunks/format-host-t76b53f8.js +4 -0
  14. package/dist/chunks/fs-events-cg4tpz06.js +4 -0
  15. package/dist/chunks/git-panel-yef7bshy.js +4 -0
  16. package/dist/chunks/{grid-view-ca10def6.js → grid-view-7tt4bxw1.js} +6 -6
  17. package/dist/chunks/iframe-host-tmz30gfp.js +4 -0
  18. package/dist/chunks/{index-9ydfe04y.js → index-gybvv7a6.js} +3 -3
  19. package/dist/chunks/index-nag78a9h.js +4 -0
  20. package/dist/chunks/{javascript-d9pqgc2p.js → javascript-rnvdp3k4.js} +2 -2
  21. package/dist/chunks/{jsonMode-800yvbem.js → jsonMode-zhwsprqk.js} +5 -5
  22. package/dist/chunks/jx-validate-3gbp5nkn.js +4 -0
  23. package/dist/chunks/layers-fvz99859.js +4 -0
  24. package/dist/chunks/layers-panel-gchmbf9p.js +4 -0
  25. package/dist/chunks/lit-html-9agdspkt.js +4 -0
  26. package/dist/chunks/media-picker-rhjvyy00.js +4 -0
  27. package/dist/chunks/menu-2e4y9j7b.js +4 -0
  28. package/dist/chunks/{monaco-binding-62dtmgbf.js → monaco-binding-2jnhjjvr.js} +3 -3
  29. package/dist/chunks/monaco-buffer-rp21359g.js +4 -0
  30. package/dist/chunks/{monaco-setup-tj13ndtm.js → monaco-setup-vhh7gayr.js} +3 -3
  31. package/dist/chunks/notify-h3www560.js +4 -0
  32. package/dist/chunks/platform-hz34wcd7.js +4 -0
  33. package/dist/chunks/publish-panel-exsmjzyj.js +4 -0
  34. package/dist/chunks/quick-search-pgaqeh0m.js +4 -0
  35. package/dist/chunks/references-2cgdxnb8.js +4 -0
  36. package/dist/chunks/right-panel-jf856w5w.js +4 -0
  37. package/dist/chunks/section-registry-jnf8r5gy.js +4 -0
  38. package/dist/chunks/studio-0f55h9ye.js +5 -0
  39. package/dist/chunks/{studio-hjbg8d5y.js → studio-0sqdhnew.js} +7 -7
  40. package/dist/chunks/{studio-1wvfxkyy.js → studio-0x3jyb8r.js} +4 -4
  41. package/dist/chunks/{studio-yr04mv2j.js → studio-19x1c75w.js} +4 -4
  42. package/dist/chunks/{studio-evwgp1ym.js → studio-2sqcndak.js} +4 -4
  43. package/dist/chunks/{studio-x5g1xk77.js → studio-3aey7dd3.js} +4 -4
  44. package/dist/chunks/{studio-xkfs0dp2.js → studio-3bpdkq2s.js} +4 -4
  45. package/dist/chunks/{studio-5gs9th4b.js → studio-47y6fbpf.js} +4 -4
  46. package/dist/chunks/{studio-e47215hh.js → studio-4m3826v2.js} +4 -4
  47. package/dist/chunks/studio-4nx2dj1g.js +4 -0
  48. package/dist/chunks/{studio-gjknvzam.js → studio-4xv5s47r.js} +5 -5
  49. package/dist/chunks/{studio-sxc0zvpt.js → studio-5g0ag7c0.js} +3 -3
  50. package/dist/chunks/{studio-semd1s8s.js → studio-5g4t8v6w.js} +4 -4
  51. package/dist/chunks/studio-5py436sf.js +5 -0
  52. package/dist/chunks/{studio-aje966s9.js → studio-77kt594t.js} +4 -4
  53. package/dist/chunks/{studio-3ck2a5c4.js → studio-8f87n763.js} +6 -6
  54. package/dist/chunks/studio-8mb00b84.js +5 -0
  55. package/dist/chunks/studio-8p51gq2h.js +6 -0
  56. package/dist/chunks/studio-954ds834.js +5 -0
  57. package/dist/chunks/{studio-capk0583.js → studio-9ft45c83.js} +6 -6
  58. package/dist/chunks/studio-a2138x5k.js +7 -0
  59. package/dist/chunks/studio-a9yzstqj.js +5 -0
  60. package/dist/chunks/{studio-gp02nqnw.js → studio-acdksxx6.js} +4 -4
  61. package/dist/chunks/{studio-edbtvcd1.js → studio-anyrgzvb.js} +4 -4
  62. package/dist/chunks/{studio-4r0sjtx8.js → studio-ar8jcf2y.js} +4 -4
  63. package/dist/chunks/{studio-rmn2dz59.js → studio-bmn4mn9j.js} +5 -5
  64. package/dist/chunks/{studio-03wwfvyt.js → studio-cpxkgjrj.js} +4 -4
  65. package/dist/chunks/{studio-7qvs7v0m.js → studio-e7xxa0sj.js} +4 -4
  66. package/dist/chunks/{studio-01qza1n3.js → studio-ecaz25vk.js} +4 -4
  67. package/dist/chunks/{studio-5e9zsamh.js → studio-fzdywr6p.js} +6 -6
  68. package/dist/chunks/{studio-xg1942as.js → studio-g5fmf0c1.js} +4 -4
  69. package/dist/chunks/{studio-1q6amtph.js → studio-g7nse7zb.js} +4 -4
  70. package/dist/chunks/studio-geq1ea6k.js +14 -0
  71. package/dist/chunks/{studio-n78gjfy8.js → studio-ghkb32r8.js} +4 -4
  72. package/dist/chunks/{studio-bftp4n4b.js → studio-ghrhy2y7.js} +4 -4
  73. package/dist/chunks/{studio-5d7wfmnp.js → studio-grawhey1.js} +4 -4
  74. package/dist/chunks/{studio-rr4xkv81.js → studio-h0xgswew.js} +4 -4
  75. package/dist/chunks/{studio-cbr9czkn.js → studio-h9c4p2tx.js} +4 -4
  76. package/dist/chunks/studio-jyzj5cxs.js +5 -0
  77. package/dist/chunks/{studio-x92tgnee.js → studio-mgx8yhnz.js} +31 -31
  78. package/dist/chunks/{studio-g8dsj3d2.js → studio-mpb04y1d.js} +5 -5
  79. package/dist/chunks/{studio-zev8ssp1.js → studio-n17mty64.js} +4 -4
  80. package/dist/chunks/{studio-4jj9gme2.js → studio-nwh2eqsk.js} +5 -5
  81. package/dist/chunks/{studio-8xcwewjq.js → studio-pxg4ap1e.js} +3 -3
  82. package/dist/chunks/{studio-4m50vh74.js → studio-q1h883bt.js} +5 -5
  83. package/dist/chunks/{studio-c6zdm25z.js → studio-q4tv82h7.js} +6 -6
  84. package/dist/chunks/{studio-st75kn99.js → studio-qbj760tx.js} +5 -5
  85. package/dist/chunks/{studio-y7jehjrp.js → studio-qpqa7vk3.js} +4 -4
  86. package/dist/chunks/{studio-5vy2wfm5.js → studio-qqz8e5gk.js} +4 -4
  87. package/dist/chunks/{studio-qa73881a.js → studio-qvasen3f.js} +4 -4
  88. package/dist/chunks/studio-rggdb3hm.js +5 -0
  89. package/dist/chunks/{studio-4xppwncr.js → studio-sghy936h.js} +3 -3
  90. package/dist/chunks/{studio-mk00zd5d.js → studio-skprc6ef.js} +4 -4
  91. package/dist/chunks/{studio-cqmtbg2p.js → studio-tt2nactf.js} +4 -4
  92. package/dist/chunks/{studio-ge5fqjth.js → studio-txjjzrsm.js} +5 -5
  93. package/dist/chunks/{studio-tmeq6mjb.js → studio-tyasmc39.js} +4 -4
  94. package/dist/chunks/{studio-0bbxhhce.js → studio-v2bvmbjj.js} +4 -4
  95. package/dist/chunks/{studio-pwqfmt4p.js → studio-vk9ezads.js} +4 -4
  96. package/dist/chunks/{studio-fqq890ap.js → studio-vzacdfsc.js} +3 -3
  97. package/dist/chunks/{studio-zd4kayn2.js → studio-w4c0xmrw.js} +4 -4
  98. package/dist/chunks/{studio-ztvcxm3w.js → studio-wfjqhhbk.js} +4 -4
  99. package/dist/chunks/{studio-tp642n5g.js → studio-wgh5kxpj.js} +4 -4
  100. package/dist/chunks/studio-xasj0796.js +5 -0
  101. package/dist/chunks/{studio-tzegmy4w.js → studio-y78s8r2n.js} +4 -4
  102. package/dist/chunks/{studio-7pgy3xaf.js → studio-z8w183sh.js} +4 -4
  103. package/dist/chunks/{studio-01kbbqg3.js → studio-zscd9ty4.js} +124 -124
  104. package/dist/chunks/{studio-hnvnfbdv.js → studio-zxp13sss.js} +6 -6
  105. package/dist/chunks/{studio-r3kaka4d.js → studio-zygnmm01.js} +4 -4
  106. package/dist/chunks/{tsMode-k9s9fcag.js → tsMode-gr0m4dzr.js} +5 -5
  107. package/dist/chunks/workspace-m15qtcqp.js +4 -0
  108. package/dist/chunks/{ws-client-0ja08haa.js → ws-client-nf61frr1.js} +3 -3
  109. package/dist/manifest.json +62 -62
  110. package/dist/studio.js +83 -83
  111. package/package.json +2 -2
  112. package/src/new-project/add-repo-modal.ts +459 -59
  113. package/src/platforms/cloud.ts +95 -18
  114. package/src/publish/pages-service.ts +7 -0
  115. package/src/publish/publish-panel.ts +16 -2
  116. package/src/surfaces/add-repo.json +721 -224
  117. package/src/surfaces/add-repo.ts +196 -31
  118. package/src/types.ts +42 -3
  119. package/src/utils/project-dir.ts +24 -0
  120. package/dist/chunks/adapter-y5gdq19c.js +0 -4
  121. package/dist/chunks/cf-settings-20dznc3j.js +0 -4
  122. package/dist/chunks/components-q037dya7.js +0 -4
  123. package/dist/chunks/content-source-t0q184js.js +0 -4
  124. package/dist/chunks/editor-j5sq149q.js +0 -4
  125. package/dist/chunks/entry-commands-fxzgcc4k.js +0 -4
  126. package/dist/chunks/file-ops-2n77759h.js +0 -4
  127. package/dist/chunks/files-fjy7zpxt.js +0 -4
  128. package/dist/chunks/format-host-wj3mf3n8.js +0 -4
  129. package/dist/chunks/fs-events-7kcgn4e9.js +0 -4
  130. package/dist/chunks/git-panel-7z2mpt2d.js +0 -4
  131. package/dist/chunks/iframe-host-a0zjd6xp.js +0 -4
  132. package/dist/chunks/index-m0x5ztax.js +0 -4
  133. package/dist/chunks/jx-validate-zc9zp77s.js +0 -4
  134. package/dist/chunks/layers-p677nrh5.js +0 -4
  135. package/dist/chunks/layers-panel-y4w1dq90.js +0 -4
  136. package/dist/chunks/lit-html-cfn61dn7.js +0 -4
  137. package/dist/chunks/media-picker-xg7yjpz9.js +0 -4
  138. package/dist/chunks/menu-fpekzj6w.js +0 -4
  139. package/dist/chunks/monaco-buffer-nn4dtx27.js +0 -4
  140. package/dist/chunks/notify-ahs57a2z.js +0 -4
  141. package/dist/chunks/platform-v9xyfkbx.js +0 -4
  142. package/dist/chunks/publish-panel-xtbfgg2r.js +0 -4
  143. package/dist/chunks/quick-search-d3a6m7j3.js +0 -4
  144. package/dist/chunks/references-99ws0b0m.js +0 -4
  145. package/dist/chunks/right-panel-31vbk5xp.js +0 -4
  146. package/dist/chunks/section-registry-b2yzp9sw.js +0 -4
  147. package/dist/chunks/studio-1a99w39s.js +0 -5
  148. package/dist/chunks/studio-4fde4a0x.js +0 -5
  149. package/dist/chunks/studio-84rtc120.js +0 -5
  150. package/dist/chunks/studio-aekhcdzw.js +0 -7
  151. package/dist/chunks/studio-aqmph6k4.js +0 -5
  152. package/dist/chunks/studio-chdmwwzw.js +0 -5
  153. package/dist/chunks/studio-cp1gbff9.js +0 -14
  154. package/dist/chunks/studio-fbx6twps.js +0 -6
  155. package/dist/chunks/studio-fthwn4kf.js +0 -5
  156. package/dist/chunks/studio-nbxqcgvf.js +0 -5
  157. package/dist/chunks/studio-t1eedsyx.js +0 -4
  158. package/dist/chunks/studio-vavmwshr.js +0 -5
  159. package/dist/chunks/workspace-5vmgsagj.js +0 -4
@@ -1,6 +0,0 @@
1
- import{p}from"./studio-y7jehjrp.js";import{K,D}from"./studio-tp642n5g.js";import{th}from"./studio-cqmtbg2p.js";import{nt,Pv}from"./studio-nbxqcgvf.js";async function xb(e,s){let o=p();if(!o.codeService)return null;return o.codeService(e,s)}var gc=new Map;async function _b(e,s){let o=e.$prototype?D?.projectConfig?.imports?.[e.$prototype]:null,t=e.$src||o;if(!t||!e.$prototype)return null;let r=`${t}::${e.$prototype}`;if(gc.has(r))return gc.get(r);try{let n=p();if(!n.fetchPluginSchema)return gc.set(r,null),null;let i=!o&&s.documentPath?`${location.origin}/${s.documentPath}`:void 0,a=await n.fetchPluginSchema(t,e.$prototype,i);return gc.set(r,a),a}catch{return gc.set(r,null),null}}function M1(e,s){let o=e.getModel();if(!o)return;let t=th();if(!t)return;let r=s.map((n)=>{let i=n.labels?.[0];if(!i)return null;let{line:a,column:l,length:c}=i.span;return{code:n.url?{target:t.Uri.parse(n.url),value:n.code}:n.code,endColumn:l+(c||1),endLineNumber:a,message:n.message+(n.help?`
2
- ${n.help}`:""),severity:n.severity==="error"?t.MarkerSeverity.Error:t.MarkerSeverity.Warning,source:"oxlint",startColumn:l,startLineNumber:a}}).filter(Boolean);t.editor.setModelMarkers(o,"oxlint",r)}function UE(e,s){let o=(t)=>{if(!nt(t))return null;let r=t.parameters;if(!Array.isArray(r)||r.length===0)return null;return Pv(r)};if(e.type==="def"){let t=e.defName?o(s?.state?.[e.defName]):null;if(t)return t}else if(e.type==="event"){if(!s||!e.path)return["state","event"];let t=K(s,e.path),r=t&&e.eventKey?o(t[e.eventKey]):null;if(r)return r}return["state","event"]}
3
- export{xb,gc,_b,M1,UE};
4
-
5
- //# debugId=602B7A9B1AEF7FB564756E2164756E21
6
- //# sourceMappingURL=studio-fbx6twps.js.map
@@ -1,5 +0,0 @@
1
- import{p}from"./studio-y7jehjrp.js";import{di}from"./studio-1q6amtph.js";import{Ir}from"./studio-xkfs0dp2.js";import{Gi,up,pL,fL}from"./studio-e47215hh.js";var r=new Map,d=new Map,a=new Map;function l(e,t){let n=pL(e),i=a.get(e);return{bytes:typeof t?.size==="number"?t.size:null,ext:Gi(n),height:i?.height??null,kind:up({name:n}),modified:t?.modified??null,name:n,path:e,width:i?.width??null}}function sb(e){return r.get(di(e))??null}function bE(e){for(let t of e){if(t.type!=="file")continue;let n=di(t.path);if(!r.has(n))r.set(n,l(n,t))}}async function vE(e){let t=di(e),n=r.get(t);if(n)return n;let i=d.get(t);if(i)return i;let o=(async()=>{let u;try{u=(await Ir(()=>p().listDirectory(fL(t)))).find((f)=>di(f.path)===t)}catch{u=void 0}return l(t,u)})();d.set(t,o);let s=await o;return d.delete(t),r.set(t,s),s}function ab(e,t,n){if(!(t>0&&n>0))return!1;let i=di(e),o=a.get(i);if(o&&o.width===t&&o.height===n)return!1;a.set(i,{height:n,width:t});let s=r.get(i);if(s)r.set(i,{...s,height:n,width:t});return!0}function yE(){r.clear(),a.clear()}function m1(e){if(e<1024)return`${e} B`;if(e<1048576)return`${Math.round(e/1024)} KB`;return`${(e/1048576).toFixed(1)} MB`}function wE(e){if(!e)return"";let t=[];if(e.width!==null&&e.height!==null)t.push(`${e.width} × ${e.height}`);if(e.bytes!==null)t.push(m1(e.bytes));return t.join(" · ")}
2
- export{sb,bE,vE,ab,yE,m1,wE};
3
-
4
- //# debugId=4F04E6D76DE7569064756E2164756E21
5
- //# sourceMappingURL=studio-fthwn4kf.js.map
@@ -1,5 +0,0 @@
1
- function nt(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function Ot(e){return nt(e)&&typeof e.$ref==="string"}function Za(e){return nt(e)&&e.$prototype==="Function"}function ba(e){return nt(e)&&nt(e.$expression)}function Mv(e){return ba(e)&&Array.isArray(e.parameters)&&e.parameters.length>0}function Tk(e){return Za(e)&&Array.isArray(e.body)}function Lk(e){return nt(e)&&typeof e.$prototype==="string"&&e.$prototype!=="Function"}function Ik(e){return nt(e)&&e.timing==="server"&&typeof e.$src==="string"&&typeof e.$export==="string"&&!e.$prototype}function Vx(e){return nt(e)&&e.$prototype==="Array"}function Ks(e){return typeof e==="string"&&e.includes("${")}function Rk(e){return/\breturn\b[^\S\n]*(?![;}\s]|$)/.test(e)}function ih(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function va(e,n){let t=e?.[n];return ih(t)?t:void 0}function oh(e,n){let t=e[n];if(ih(t))return t;let r={};return e[n]=r,r}function rh(e){return Ot(e)||Za(e)||ba(e)}function Op(e,n){let t=e[n];return rh(t)?t:void 0}function Pv(e){if(!e)return[];return e.map((n)=>typeof n==="string"?n:n.name)}function Hd(e){if(!nt(e)||!nt(e.$expression))return!1;let n=e.$expression;if(n.operator==="?:")return typeof n.value==="string"&&typeof n.initial==="string";if(n.operator==="switch")return nt(n.cases)&&Object.values(n.cases).every((t)=>typeof t==="string")&&typeof n.default==="string";return!1}function $k(e){if(typeof e==="string")return[e];if(!Hd(e))return[];let n=e.$expression;if(n.operator==="?:")return[...new Set([n.value,n.initial])];return[...new Set([...Object.values(n.cases),n.default])]}function qe(e){return typeof e==="string"?e:$k(e).join("|")}function Mp(e){return e.startsWith("#")}
2
- export{nt,Ot,Za,ba,Mv,Tk,Lk,Ik,Vx,Ks,Rk,ih,va,oh,rh,Op,Pv,Hd,$k,qe,Mp};
3
-
4
- //# debugId=DBCFD34E007C461F64756E2164756E21
5
- //# sourceMappingURL=studio-nbxqcgvf.js.map
@@ -1,4 +0,0 @@
1
- var e=new Map,r=new Set;function o(){for(let t of r)t()}function ja(){o()}function db(t){return r.add(t),()=>{r.delete(t)}}function cs(t){e.set(t.key,t),o()}function x1(t){if(e.delete(t))o()}function Vf(){return[...e.values()].toSorted((t,s)=>t.order-s.order)}function Lw(){return Vf().map((t)=>t.key)}function Iw(t){return e.get(t)}var i=null,n="overview";function ub(){if(i!==null&&e.has(i))return n=i,i=null,n;if(e.has(n))return n;return Lw()[0]??n}function hb(t){if(e.has(t))n=t,i=null;else i=t;o()}export{ja,db,cs,x1,Vf,Lw,Iw,ub,hb};
2
-
3
- //# debugId=2A602E1D78BE302464756E2164756E21
4
- //# sourceMappingURL=studio-t1eedsyx.js.map
@@ -1,5 +0,0 @@
1
- function Oe(e){return e.getBoundingClientRect()}function Rv(e,t,n=document){return n.elementFromPoint(e,t)}
2
- export{Oe,Rv};
3
-
4
- //# debugId=07973ACE60D252EA64756E2164756E21
5
- //# sourceMappingURL=studio-vavmwshr.js.map
@@ -1,4 +0,0 @@
1
- import{Qn,vp,ZC,m,u,Rr,Hn,Gu,$r,yp,Ox,Mx,Pl,wp,xp,_p,Ku,Ua,Cp,Sc,No,Fl,Px,kv,XC,Fx,QC,ek,ci,Cm,Sv,tk}from"./studio-x5g1xk77.js";import"./studio-7pgy3xaf.js";import"./studio-cqmtbg2p.js";import"./studio-y7jehjrp.js";import"./studio-fqq890ap.js";export{ZC as MAX_PANES,Qn as PRIMARY_PANE,vp as SECONDARY_PANE,ci as activateTab,Rr as activePane,u as activeTab,QC as closeAllTabs,wp as closePane,Fx as closeTab,_p as detachTab,$r as focusPane,Ku as insertIntoPane,yp as isPaneFocused,Cp as isTabActive,XC as moveTab,Cm as moveTabToPane,No as openTab,Mx as paneBeside,Hn as paneById,xp as paneIsEmpty,Gu as paneOfTab,Px as promoteDirtyPreviewTabs,Fl as promoteTab,Pl as receivingPane,tk as registerTabCommands,Sv as renameTab,ek as replaceAllTabs,kv as setTabPinned,Ua as setWorkspaceProject,Ox as splitRight,Sc as tabIsLive,m as workspace};
2
-
3
- //# debugId=1D3E7F0FC61927CE64756E2164756E21
4
- //# sourceMappingURL=workspace-5vmgsagj.js.map