@vtj/pro 0.8.8 → 0.8.9

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 (43) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +32 -32
  9. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +4 -4
  10. package/dist/assets/{@element-plus-hb5PCPZy.js → @element-plus-D6n2RTX_.js} +1 -1
  11. package/dist/assets/@floating-ui-CYeB_Mhp.js +1 -0
  12. package/dist/assets/@vue-pheekl12.js +25 -0
  13. package/dist/assets/@vueuse-4_NYtZCP.js +1 -0
  14. package/dist/assets/{Editor-BKlikwSl-4GZCoIzC.js → Editor-BKlikwSl-SVzFnpo8.js} +2 -2
  15. package/dist/assets/{css.worker-CKheHE4x.js → css.worker-CilUBJBN.js} +12 -12
  16. package/dist/assets/{editor.worker-DvDP0gnj.js → editor.worker-BJZ5cnST.js} +1 -1
  17. package/dist/assets/{element-plus-Yl9-B9am.js → element-plus-DdvN1jqD.js} +4 -4
  18. package/dist/assets/{html.worker-BZndpN3i.js → html.worker-CNHktepm.js} +10 -10
  19. package/dist/assets/index-D9EpXQVL.css +1 -0
  20. package/dist/assets/{index-C4mYQDHS.js → index-DBWV64ks.js} +2 -2
  21. package/dist/assets/index-DEA9g1Ih.js +1 -0
  22. package/dist/assets/index-TXS29-Ip.js +199 -0
  23. package/dist/assets/{json.worker-CBN7s-rZ.js → json.worker-CV0MTB3L.js} +2 -2
  24. package/dist/assets/lodash-es-D0J8aJCM.js +1 -0
  25. package/dist/assets/{monaco-editor-D2tIhfZq.js → monaco-editor-C8KYOXSh.js} +260 -260
  26. package/dist/assets/preview-aLWd6TgM.js +2 -0
  27. package/dist/assets/{ts.worker-E_ED-foG.js → ts.worker-mZI20X7J.js} +66 -66
  28. package/dist/assets/{vue-CYXSepfi.js → vue-CjubWy22.js} +3 -3
  29. package/dist/assets/{vue-router-Cl6Ao8EQ.js → vue-router-D533GGmG.js} +1 -1
  30. package/dist/extension/index.umd.js +1 -0
  31. package/dist/extension/style.css +1 -0
  32. package/dist/index.html +9 -9
  33. package/package.json +10 -10
  34. package/src/extension.ts +46 -0
  35. package/src/index.ts +1 -0
  36. package/dist/assets/@floating-ui-o_LpjUj1.js +0 -1
  37. package/dist/assets/@vue-D7cHi7PH.js +0 -25
  38. package/dist/assets/@vueuse-cyfiBh8g.js +0 -1
  39. package/dist/assets/index-Bi40hQZn.js +0 -199
  40. package/dist/assets/index-DKg2x8_E.js +0 -1
  41. package/dist/assets/index-DWzxOdcl.css +0 -1
  42. package/dist/assets/lodash-es-DKmLY3Gz.js +0 -1
  43. package/dist/assets/preview-pbOn43-7.js +0 -2
@@ -0,0 +1 @@
1
+ .designer[data-v-b233af06]{width:100%;height:100%}
@@ -1,2 +1,2 @@
1
- const __vite__fileDeps=["./index-DKg2x8_E.js","./vue-router-Cl6Ao8EQ.js","./@vue-D7cHi7PH.js","./element-plus-Yl9-B9am.js","./lodash-es-DKmLY3Gz.js","./@vueuse-cyfiBh8g.js","./@element-plus-hb5PCPZy.js","./@popperjs-CsO2-mKt.js","./@ctrl-r5W6hzzQ.js","./dayjs-Cdlb6j_n.js","./async-validator-Cr9EP88T.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-o_LpjUj1.js","./element-plus-Dj7XYlV7.css","./index-Bi40hQZn.js","./monaco-editor-D2tIhfZq.js","./monaco-editor-BgBQhOSF.css","./vue-CYXSepfi.js","./mockjs-c-NHcvHM.js","./index-DmZaHsx9.css","./index-DWzxOdcl.css","./preview-pbOn43-7.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
- import{d as f,S as n,U as p,u as a,ai as d,o as c,aF as _,_ as h,at as y}from"./@vue-D7cHi7PH.js";import{z as v,E as g}from"./element-plus-Yl9-B9am.js";import{_ as m}from"./monaco-editor-D2tIhfZq.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-Cl6Ao8EQ.js";import"./lodash-es-DKmLY3Gz.js";import"./@vueuse-cyfiBh8g.js";import"./@element-plus-hb5PCPZy.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-o_LpjUj1.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return c(),n(a(g),{locale:a(v)},{default:p(()=>[(c(),n(_,null,{default:p(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-DKg2x8_E.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>m(()=>import("./preview-pbOn43-7.js"),__vite__mapDeps([22,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
1
+ const __vite__fileDeps=["./index-DEA9g1Ih.js","./vue-router-D533GGmG.js","./@vue-pheekl12.js","./element-plus-DdvN1jqD.js","./lodash-es-D0J8aJCM.js","./@vueuse-4_NYtZCP.js","./@element-plus-D6n2RTX_.js","./@popperjs-CsO2-mKt.js","./@ctrl-r5W6hzzQ.js","./dayjs-Cdlb6j_n.js","./async-validator-Cr9EP88T.js","./memoize-one-BdPwpGay.js","./normalize-wheel-es-B6fDCfyv.js","./@floating-ui-CYeB_Mhp.js","./element-plus-Dj7XYlV7.css","./index-TXS29-Ip.js","./monaco-editor-C8KYOXSh.js","./monaco-editor-BgBQhOSF.css","./vue-CjubWy22.js","./mockjs-c-NHcvHM.js","./index-DmZaHsx9.css","./index-D9EpXQVL.css","./preview-aLWd6TgM.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2
+ import{d as f,S as n,u as p,ai as d,o as a,U as c,aF as _,_ as h,at as y}from"./@vue-pheekl12.js";import{z as v,E as g}from"./element-plus-DdvN1jqD.js";import{_ as m}from"./monaco-editor-C8KYOXSh.js";import{createRouter as O,createWebHashHistory as P}from"./vue-router-D533GGmG.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))o(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const i of t.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function s(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function o(e){if(e.ep)return;e.ep=!0;const t=s(e);fetch(e.href,t)}})();const E=f({__name:"app",setup(l){return(r,s)=>{const o=d("router-view");return a(),n(p(g),{locale:p(v)},{default:c(()=>[(a(),n(_,null,{default:c(()=>[h(o)]),_:1}))]),_:1},8,["locale"])}}}),L=[{path:"/",name:"home",component:()=>m(()=>import("./index-DEA9g1Ih.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},{path:"/preview/:id",name:"preview",component:()=>m(()=>import("./preview-aLWd6TgM.js"),__vite__mapDeps([22,16,17,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,18,19,20]),import.meta.url)}],w=O({history:P(),routes:L}),u=y(E);u.use(w);u.mount("#app");
@@ -0,0 +1 @@
1
+ import{useRoute as f}from"./vue-router-D533GGmG.js";import{a as w}from"./element-plus-DdvN1jqD.js";import{V as h,a as y,L as V,o as g,B as v,c as x,d as b,r as P,j as u,b as j,M as k}from"./index-TXS29-Ip.js";import{V as B}from"./vue-CjubWy22.js";import{d as E,r as O,bO as _,f as $,c as C,o as F}from"./@vue-pheekl12.js";import"./lodash-es-D0J8aJCM.js";import"./@vueuse-4_NYtZCP.js";import"./@element-plus-D6n2RTX_.js";import"./@popperjs-CsO2-mKt.js";import"./@ctrl-r5W6hzzQ.js";import"./dayjs-Cdlb6j_n.js";import"./async-validator-Cr9EP88T.js";import"./memoize-one-BdPwpGay.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@floating-ui-CYeB_Mhp.js";import"./monaco-editor-C8KYOXSh.js";import"./mockjs-c-NHcvHM.js";class I{urls=[];library="";constructor(t){const o={...x,...b,...P};window.Vue=B,window.__VTJ_PRO__=o,window.VtjIcons=h,window.ElementPlus=w;const{urls:e,library:n}=t;this.urls=e,this.library=n}async load(){const t=this.urls.filter(e=>y(e)),o=this.urls.filter(e=>V(e));if(g(t),o.length){const e=await v(o,this.library).catch(()=>null);if(e&&typeof e=="function")return e()}}}const J=E({__name:"index",async setup(s){let t,o;const e=f(),n=O(),l=new k,m=([t,o]=_(()=>l.getExtension().catch(()=>null)),t=await t,o(),t),d=m?([t,o]=_(()=>new I(m).load()),t=await t,o(),t):void 0;u.set("Switcher",{props:{onClick:r=>{const i=location.pathname;let p=i==="/@vtj/pro/"?"/":i;const a=r.currentFile;a&&a.type==="page"&&r.homepage!==a.id&&(p=`${p}#/page/${a.id}`),window.open(p,"VTJProject")}}}),u.set("Previewer",{props:{path:r=>`${location.pathname}#/preview/${r.id}`}});const c=new j({container:n,service:l,...d});return c.ready(()=>{c.openFile(e.query.id)}),$(()=>e.query.id,r=>{c.openFile(r)}),(r,i)=>(F(),C("div",{class:"designer",ref_key:"container",ref:n},null,512))}}),R=(s,t)=>{const o=s.__vccOpts||s;for(const[e,n]of t)o[e]=n;return o},Z=R(J,[["__scopeId","data-v-b233af06"]]);export{Z as default};