st-comp 0.0.84 → 0.0.86

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.
@@ -74859,7 +74859,7 @@ UY({
74859
74859
  extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
74860
74860
  aliases: ["Python", "py"],
74861
74861
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
74862
- loader: () => import("./python-0b8dfd75.js")
74862
+ loader: () => import("./python-86b2bf30.js")
74863
74863
  });
74864
74864
  const $Y = /* @__PURE__ */ kM({
74865
74865
  __name: "index",
@@ -74895,7 +74895,10 @@ const $Y = /* @__PURE__ */ kM({
74895
74895
  setValue: (a) => {
74896
74896
  i.setValue(a);
74897
74897
  },
74898
- getValue: () => i.getValue()
74898
+ getValue: () => i.getValue(),
74899
+ setReadOnly: (a = !0) => {
74900
+ i.updateOptions({ readOnly: a });
74901
+ }
74899
74902
  }), (a, l) => (IM(), TM("div", {
74900
74903
  ref_key: "editorContainer",
74901
74904
  ref: r,
@@ -655,4 +655,4 @@ ${e.toString()}`}}class a_{constructor(e=new tg,t=!1,i,n=wj){var o;this._service
655
655
  * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
656
656
  * Released under the MIT license
657
657
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
658
- *-----------------------------------------------------------------------------*/BY({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.resolve().then(()=>require("./python-bd86111b.cjs"))});const WY=xc.defineComponent({__name:"index",props:{defaultValue:{type:String,default:""},language:{type:String,default:"python"},theme:{type:String,default:"vs-dark"}},emits:["change"],setup(s,{expose:e,emit:t}){let i;const n=t,o=s,r=xc.ref(null);return xc.onMounted(()=>{i=wM.create(r.value,{value:o.defaultValue,language:o.language,theme:o.theme}),i.onDidChangeModelContent(a=>{n("change",i.getValue())})}),xc.onUnmounted(()=>{i&&i.dispose()}),e({setValue:a=>{i.setValue(a)},getValue:()=>i.getValue()}),(a,l)=>(xc.openBlock(),xc.createElementBlock("div",{ref_key:"editorContainer",ref:r,style:{width:"100%",height:"100%"}},null,512))}}),VY={install(s){s.component("st-monacoEditor",WY)}};exports.index=VY;exports.monaco_editor_core_star=SM;
658
+ *-----------------------------------------------------------------------------*/BY({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.resolve().then(()=>require("./python-a0dc573a.cjs"))});const WY=xc.defineComponent({__name:"index",props:{defaultValue:{type:String,default:""},language:{type:String,default:"python"},theme:{type:String,default:"vs-dark"}},emits:["change"],setup(s,{expose:e,emit:t}){let i;const n=t,o=s,r=xc.ref(null);return xc.onMounted(()=>{i=wM.create(r.value,{value:o.defaultValue,language:o.language,theme:o.theme}),i.onDidChangeModelContent(a=>{n("change",i.getValue())})}),xc.onUnmounted(()=>{i&&i.dispose()}),e({setValue:a=>{i.setValue(a)},getValue:()=>i.getValue(),setReadOnly:(a=!0)=>{i.updateOptions({readOnly:a})}}),(a,l)=>(xc.openBlock(),xc.createElementBlock("div",{ref_key:"editorContainer",ref:r,style:{width:"100%",height:"100%"}},null,512))}}),VY={install(s){s.component("st-monacoEditor",WY)}};exports.index=VY;exports.monaco_editor_core_star=SM;
@@ -1,4 +1,4 @@
1
- import { m as a } from "./index-caa490bf.js";
1
+ import { m as a } from "./index-07e788d7.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-a091492d.cjs");require("vue");/*!-----------------------------------------------------------------------------
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index-47fc965e.cjs");require("vue");/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
4
4
  * Released under the MIT license