@xano/xanoscript-monaco-editor 0.1.0 → 0.1.2
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 +77 -126
- package/dist/.vite/manifest.json +54 -54
- package/dist/assets/{editor-BivTGeL1.js → editor-4HUBGwOu.js} +1 -1
- package/dist/assets/{extensionHost.worker-bYZXB0kM.js → extensionHost.worker-BEj8h9xB.js} +7 -7
- package/dist/assets/{files.contribution._fileEditorFactory-vS4ZLYi1.js → files.contribution._fileEditorFactory-YNF_vxMj.js} +1 -1
- package/dist/assets/{iconv-lite-umd-DQaTktu2.js → iconv-lite-umd-BCZHOywd.js} +2 -7
- package/dist/assets/{iconv-lite-umd-DYWd8cEa.js → iconv-lite-umd-BGIeO9cR.js} +2 -7
- package/dist/assets/{index-CrbRjSB_.js → index-9GTRLRSC.js} +1 -1
- package/dist/assets/{index-BGwiFEyd.js → index-B48SQPT2.js} +1 -1
- package/dist/assets/{index-VRHnXpb2.js → index-B7W-kS7G.js} +1 -1
- package/dist/assets/{index-51WpeTZl.js → index-CBODr4QR.js} +3 -3
- package/dist/assets/{index-C3pnKX8a.js → index-Cw1WVxjJ.js} +1 -1
- package/dist/assets/{index-BwfWF2CI.js → index-DSexFukl.js} +47 -47
- package/dist/assets/{index-C25FTAfE.js → index-DV2XmbY1.js} +1 -1
- package/dist/assets/{index-B132pG6E.js → index-DoXiLhIy.js} +2 -2
- package/dist/assets/{index-DgK2LcnW.js → index-r-mEMSNw.js} +2 -2
- package/dist/assets/{index-yPQeQvu7.js → index-sQEJqDvC.js} +1 -1
- package/dist/assets/main--VvQJcub.js +4 -0
- package/dist/assets/main-DUUA0eUQ.js +4 -0
- package/dist/assets/main-DWv94O3B.js +1 -0
- package/dist/assets/main-Du3mMy1c.js +1 -0
- package/dist/assets/{tokenClassificationRegistry-DcBtqg2t.js → tokenClassificationRegistry-CZyxOMX0.js} +1 -1
- package/dist/assets/{views-hUfpm9tT.js → views-Bu3Oa5Y-.js} +3 -3
- package/dist/assets/{views-C4cPu3oQ.css → views-qXWInm-E.css} +1 -1
- package/dist/assets/workbenchThemeService.service-CXlQNmVU.js +1 -0
- package/dist/assets/{worker-BIMDXoFp.js → worker-BiA-ZZ0u.js} +2 -2
- package/dist/index.html +1 -1
- package/dist/logic-assistant-script.js +22301 -16325
- package/dist/logic-assistant-script.js.map +4 -4
- package/dist/worker.js +20541 -14435
- package/dist/worker.js.map +4 -4
- package/package.json +3 -1
- package/dist/assets/main-D6ceXGB_.js +0 -4
- package/dist/assets/main-DNugpDp4.js +0 -4
- package/dist/assets/main-FP17jmvp.js +0 -1
- package/dist/assets/main-b5eBH2vx.js +0 -1
- package/dist/assets/workbenchThemeService.service-qBFVnuYD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ak as _,cb as Q,bW as U,cc as L,ap as Z,f as ee,g as te,W as ie,cd as oe,ce as re,cf as ne,an as se,bx as ae,O as le,bw as ce,cg as de,ch as ue,h as fe,bz as pe,ci as ge,cj as Pe,ck as p,cl as O,cm as V,cn as g,co as we,cp as d,cq as M,aJ as T,U as ve,cr as K,cs as x,ct as E,cu as ye,cv as me,cw as Re,G as Se}from"./index-
|
|
1
|
+
import{ak as _,cb as Q,bW as U,cc as L,ap as Z,f as ee,g as te,W as ie,cd as oe,ce as re,cf as ne,an as se,bx as ae,O as le,bw as ce,cg as de,ch as ue,h as fe,bz as pe,ci as ge,cj as Pe,ck as p,cl as O,cm as V,cn as g,co as we,cp as d,cq as M,aJ as T,U as ve,cr as K,cs as x,ct as E,cu as ye,cv as me,cw as Re,G as Se}from"./index-DSexFukl.js";import{cD as Ne,cE as Fe,cx as Ye,cB as Xe,cH as $e,cF as je,cz as qe,cy as Je,cC as ze,cG as Qe,cA as Ze}from"./index-DSexFukl.js";import{g as he,a as Te,E as Ae,S as Ce,P as be,A as Ee}from"./views-Bu3Oa5Y-.js";import{b as tt}from"./views-Bu3Oa5Y-.js";import{M as Ie,a as Be}from"./editor-4HUBGwOu.js";import"./files.contribution._fileEditorFactory-YNF_vxMj.js";import"./workbenchThemeService.service-CXlQNmVU.js";function Oe(t,r,c){const P=document.createElement(r==="status"?"footer":"div");return P.classList.add("part","monaco-workbench-part",...c),P.id=t,P.setAttribute("role",r),r==="status"&&P.setAttribute("aria-live","off"),P}function Ve(t){const r=t.getContainer()?.parentNode;r!=null&&t.layout(Math.max(t.minimumWidth,Math.min(t.maximumWidth,r.offsetWidth)),Math.max(t.minimumHeight,Math.min(t.maximumHeight,r.offsetHeight)),r.offsetTop,r.offsetLeft)}function xe(t,r){t.oncontextmenu=()=>!1;function c(){Ve(r)}r.onDidVisibilityChange(P=>{P&&c()}),c()}function De(t){return t.isConnected?t.checkVisibility!=null?t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}):t.offsetHeight>0&&t.offsetWidth>0:!1}function I(){const t=Z.get(L).mainPart.getContainer();return t!=null&&De(t)}let D=class extends Be{constructor(r){super(r.createInstance(Ae),!1,r),this.restoreGroup=(...c)=>this.delegate.restoreGroup(...c)}getId(){return"standalone"}updateStyles(){}registerPart(r){return this.delegate.registerPart(r)}bind(r,c){return this.delegate.bind(r,c)}get activePart(){return this.delegate.activePart}};D=ee([te(0,ie)],D);let H=t=>t;oe(async t=>{const r=t.get(re),c=t.get(ne),P=t.get(se),m=t.get(ae),R=t.get(L),N=t.get(U),S=t.get(le),F=t.get(ce),A=t.get(de),k=t.get(ue),W=t.get(fe),Y=t.get(pe),X=t.get(ge),u=t.get(Pe);function $(){const e=A.options?.defaultLayout;if((e?.editors!=null&&e.editors.length>0||e?.layout?.editors!=null)&&((e.force??!1)||m.isNew(T.WORKSPACE)))return{layout:e.layout?.editors,filesToOpenOrCreate:e.editors?.map(i=>({viewColumn:i.viewColumn,fileUri:ve.revive(i.uri),openOnlyIfExists:i.openOnlyIfExists,options:i.options}))};const{filesToOpenOrCreate:l,filesToDiff:o,filesToMerge:a}=A;if(l!=null||o!=null||a!=null)return{filesToOpenOrCreate:l,filesToDiff:o,filesToMerge:a}}function j(e,l){const o=e.options?.defaultLayout;if(o==null||!(o.force??!1)&&!l.isNew(T.WORKSPACE))return;const{views:a}=o;if(a!=null&&a.length>0)return a.map(i=>i.id)}function q(e,l){return me(e.getWorkspace())?!1:!!(W.getValue("window.restoreWindows")==="preserve")||l===void 0}async function J(e,l){if(l!=null){const o=K(await x(l.filesToMerge,e,S));if(o.length===4&&E(o[0])&&E(o[1])&&E(o[2])&&E(o[3]))return[{editor:{input1:{resource:o[0].resource},input2:{resource:o[1].resource},base:{resource:o[2].resource},result:{resource:o[3].resource},options:{pinned:!0}}}];const a=K(await x(l.filesToDiff,e,S));if(a.length===2)return[{editor:{original:{resource:a[0].resource},modified:{resource:a[1].resource},options:{pinned:!0}}}];const i=[],f=await x(l.filesToOpenOrCreate,e,S);for(let s=0;s<f.length;s++){const w=f[s];w!=null&&i.push({editor:w,viewColumn:l.filesToOpenOrCreate?.[s].viewColumn})}return i}else if(k.getWorkbenchState()===ye.EMPTY&&W.getValue("workbench.startupEditor")==="newUntitledFile")return R.mainPart.hasRestorableState?[]:await X.hasBackups()?[]:[{editor:{resource:void 0}}];return[]}const h=$();h!=null&&S.info("Initial editor state",h);let n={layout:{editors:h?.layout},editor:{restoreEditors:q(k,h),editorsToOpen:J(Y,h)},views:{defaults:j(A,m),containerToRestore:{}}};function v(e){return c.getDefaultViewContainer(e)??c.getViewContainersByLocation(e)[0]}function z(){if(u.isVisible(p.SIDEBAR_PART)){let e;!A.isBuilt||P.startupKind===Re.ReloadedWindow||Se?e=m.get(Ce.activeViewletSettingsKey,T.WORKSPACE,v(d.Sidebar)?.id):e=v(d.Sidebar)?.id,n.views.containerToRestore.sideBar=e}if(u.isVisible(p.PANEL_PART)){const e=m.get(be.activePanelSettingsKey,T.WORKSPACE,v(d.Panel)?.id);n.views.containerToRestore.panel=e}if(u.isVisible(p.AUXILIARYBAR_PART)){const e=m.get(Ee.activeViewSettingsKey,T.WORKSPACE,v(d.AuxiliaryBar)?.id);n.views.containerToRestore.auxiliaryBar=e}}z(),n=H(n),n.views.containerToRestore.sideBar==null&&u.setPartHidden(!0,p.SIDEBAR_PART),n.views.containerToRestore.panel==null&&u.setPartHidden(!0,p.PANEL_PART),n.views.containerToRestore.auxiliaryBar==null&&u.setPartHidden(!0,p.AUXILIARYBAR_PART);const B=document.createElement("div");B.style.display="none",document.body.append(B);for(const{id:e,role:l,classes:o,options:a,getPosition:i,onDidChangePosition:f}of[{id:p.TITLEBAR_PART,role:"none",classes:["titlebar"]},{id:p.BANNER_PART,role:"banner",classes:["banner"]},{id:p.ACTIVITYBAR_PART,role:"none",classes:["activitybar"],getPosition:()=>u.getSideBarPosition(),onDidChangePosition:u.onDidChangeSideBarPosition},{id:p.SIDEBAR_PART,role:"none",classes:["sidebar"],getPosition:()=>u.getSideBarPosition(),onDidChangePosition:u.onDidChangeSideBarPosition},{id:p.EDITOR_PART,role:"main",classes:["editor"],options:{restorePreviousState:n.editor.restoreEditors}},{id:p.PANEL_PART,role:"none",classes:["panel","basepanel"],getPosition:()=>u.getPanelPosition(),onDidChangePosition:u.onDidChangePanelPosition},{id:p.AUXILIARYBAR_PART,role:"none",classes:["auxiliarybar","basepanel"],getPosition:()=>u.getSideBarPosition()===O.LEFT?O.RIGHT:O.LEFT,onDidChangePosition:u.onDidChangeSideBarPosition},{id:p.STATUSBAR_PART,role:"status",classes:["statusbar"]}]){const s=u.getPart(e);if(s!=null){const w=Oe(e,l,o);if(s.create(w,a),xe(w,s),s.layout(9999,9999,0,0),B.append(w),i!=null){let b=i();s.element.classList.add(V(b)),f?.(()=>{s.element.classList.remove(V(b)),b=i(),s.element.classList.add(V(b))})}}}const y=[],G=[];y.push((async()=>{g("code/willRestoreEditors"),await R.mainPart.whenReady,g("code/restoreEditors/editorGroupsReady"),n.layout?.editors!=null&&R.applyLayout(n.layout.editors);const e=await n.editor.editorsToOpen;g("code/restoreEditors/editorsToOpenResolved");let l;if(e.length>0){const o=R.getGroups(we.GRID_APPEARANCE),a=new Map;for(const i of e){const f=o[(i.viewColumn??1)-1];let s=a.get(f.id);s==null&&(s=new Set,a.set(f.id,s)),s.add(i.editor)}l=Promise.all(Array.from(a).map(async([i,f])=>{try{await N.openEditors(Array.from(f),i,{validateTrust:!0})}catch(s){S.error(s)}}))}G.push(Promise.all([l?.finally(()=>g("code/restoreEditors/editorsOpened")),R.mainPart.whenRestored.finally(()=>g("code/restoreEditors/editorGroupsRestored"))]).finally(()=>{g("code/didRestoreEditors")}))})());const C=(async()=>{if(n.views.defaults!=null&&n.views.defaults.length>0){g("code/willOpenDefaultViews");const e=[],l=i=>{const f=c.getViewLocationById(i.id);if(f!==null){const s=c.getViewContainerByViewId(i.id);if(s!=null){i.order>=(e[f]?.order??0)&&(e[f]={id:s.id,order:i.order});const w=c.getViewContainerModel(s);return w.setCollapsed(i.id,!1),w.setVisible(i.id,!0),!0}}return!1},o=[...n.views.defaults].reverse().map((i,f)=>({id:i,order:f}));let a=o.length;for(;a>0;)a--,l(o[a])&&o.splice(a,1);if(o.length>0){await F.whenInstalledExtensionsRegistered();let i=o.length;for(;i>0;)i--,l(o[i])&&o.splice(i,1)}e[d.Sidebar]!=null&&(n.views.containerToRestore.sideBar=e[d.Sidebar].id),e[d.Panel]!=null&&(n.views.containerToRestore.panel=e[d.Panel].id),e[d.AuxiliaryBar]!=null&&(n.views.containerToRestore.auxiliaryBar=e[d.AuxiliaryBar].id),g("code/didOpenDefaultViews")}})();y.push(C),y.push((async()=>{if(await C,n.views.containerToRestore.sideBar==null)return;g("code/willRestoreViewlet"),await r.openPaneComposite(n.views.containerToRestore.sideBar,d.Sidebar)==null&&await r.openPaneComposite(v(d.Sidebar)?.id,d.Sidebar),g("code/didRestoreViewlet")})()),y.push((async()=>{if(await C,n.views.containerToRestore.panel==null)return;g("code/willRestorePanel"),await r.openPaneComposite(n.views.containerToRestore.panel,d.Panel)==null&&await r.openPaneComposite(v(d.Panel)?.id,d.Panel),g("code/didRestorePanel")})()),y.push((async()=>{if(await C,n.views.containerToRestore.auxiliaryBar==null)return;g("code/willRestoreAuxiliaryBar"),await r.openPaneComposite(n.views.containerToRestore.auxiliaryBar,d.AuxiliaryBar)==null&&await r.openPaneComposite(v(d.AuxiliaryBar)?.id,d.AuxiliaryBar),g("code/didRestoreAuxiliaryBar")})()),await M.settled(y),await M.settled(G)});function Ke(t,r,c){return c!=null&&(H=typeof c=="boolean"?P=>({...P,editor:{...P.editor,restoreEditors:c}}):c),{...Te(r),...Q({isKeybindingConfigurationVisible:I,shouldUseGlobalPicker:I}),...he({shouldUseGlobalKeybindings:I}),[L.toString()]:new _(D,[],!1),[U.toString()]:new _(Ie,[t,I],!1)}}export{Ne as AbstractResourceEditorInput,Fe as AbstractTextResourceEditorInput,tt as ActivityService,Ye as ActivitybarPart,Xe as ConfirmResult,$e as DomScrollableElement,je as EditorInput,qe as EditorInputCapabilities,Je as GroupOrientation,be as PanelPart,p as Parts,O as Position,ze as RegisteredEditorPriority,Ce as SidebarPart,Qe as SplitView,d as ViewContainerLocation,Ze as ViewPaneContainer,Ke as default,I as isEditorPartVisible,xe as renderPart};
|