vft 0.0.35 → 0.0.36
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/es/components/md-vue-playground/md-vue-playground.vue2.mjs +10 -11
- package/es/package.json.mjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.js +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +8 -8
- package/theme-style/src/icon.scss +0 -0
- package/theme-style/vft-icon.css +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as c, ref as n, shallowRef as f, computed as w, onMounted as g, createVNode as e, withDirectives as
|
|
1
|
+
import { defineComponent as c, ref as n, shallowRef as f, computed as w, onMounted as g, createVNode as e, withDirectives as u, resolveDirective as r, h } from "vue";
|
|
2
2
|
import { useNamespace as V } from "../../hooks/use-namespace/index.mjs";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -7,7 +7,6 @@ import "@vueuse/core";
|
|
|
7
7
|
import "@vue/shared";
|
|
8
8
|
import "@vft/utils";
|
|
9
9
|
import "../../utils/ns-cover.mjs";
|
|
10
|
-
import "@vue/repl/style.css";
|
|
11
10
|
import { getVuePlaygroundSettings as C } from "./playground.mjs";
|
|
12
11
|
import { VftIcon as R } from "../icon/index.mjs";
|
|
13
12
|
const p = (
|
|
@@ -15,7 +14,7 @@ const p = (
|
|
|
15
14
|
V("md-vue-playground")
|
|
16
15
|
), y = c({
|
|
17
16
|
name: p.b()
|
|
18
|
-
}),
|
|
17
|
+
}), P = /* @__PURE__ */ c({
|
|
19
18
|
...y,
|
|
20
19
|
props: {
|
|
21
20
|
title: null,
|
|
@@ -25,10 +24,10 @@ const p = (
|
|
|
25
24
|
setup(t) {
|
|
26
25
|
const a = n(!0), i = f(), s = n(), o = w(() => C(t.settings)), l = n(o.value.showCode || !1), d = async () => {
|
|
27
26
|
const {
|
|
28
|
-
ReplStore:
|
|
29
|
-
Repl:
|
|
27
|
+
ReplStore: v,
|
|
28
|
+
Repl: m
|
|
30
29
|
} = await import("@vue/repl");
|
|
31
|
-
i.value =
|
|
30
|
+
i.value = m, s.value = new v({
|
|
32
31
|
serializedState: decodeURIComponent(t.files),
|
|
33
32
|
showOutput: !0
|
|
34
33
|
}), o.value.vueVersion && await s.value.setVueVersion(o.value.vueVersion);
|
|
@@ -39,23 +38,23 @@ const p = (
|
|
|
39
38
|
class: p.b()
|
|
40
39
|
}, [e("div", {
|
|
41
40
|
class: "title-wrapper"
|
|
42
|
-
}, [
|
|
41
|
+
}, [u(e("div", {
|
|
43
42
|
class: "title"
|
|
44
|
-
}, [decodeURIComponent(t.title)]), [[
|
|
43
|
+
}, [decodeURIComponent(t.title)]), [[r("if"), t.title]]), e(R, {
|
|
45
44
|
cursor: !0,
|
|
46
45
|
icon: l.value ? "i-bx:collapse-alt" : "i-bx:expand-alt",
|
|
47
46
|
size: 20,
|
|
48
47
|
onClick: () => {
|
|
49
48
|
l.value = !l.value;
|
|
50
49
|
}
|
|
51
|
-
}, null)]),
|
|
50
|
+
}, null)]), u(e("div", {
|
|
52
51
|
class: ["repl-container", l.value ? "show-code" : "hide-code"]
|
|
53
52
|
}, [i.value ? h(i.value, {
|
|
54
53
|
store: s.value,
|
|
55
54
|
...o.value
|
|
56
|
-
}) : null]), [[
|
|
55
|
+
}) : null]), [[r("spin"), a.value]])]);
|
|
57
56
|
}
|
|
58
57
|
});
|
|
59
58
|
export {
|
|
60
|
-
|
|
59
|
+
P as default
|
|
61
60
|
};
|
package/es/package.json.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var v=Object.create;var u=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,
|
|
1
|
+
"use strict";var v=Object.create;var u=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var g=(t,o,l,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of f(o))!w.call(t,i)&&i!==l&&u(t,i,{get:()=>o[i],enumerable:!(n=p(o,i))||n.enumerable});return t};var q=(t,o,l)=>(l=t!=null?v(m(t)):{},g(o||!t||!t.__esModule?u(l,"default",{value:t,enumerable:!0}):l,t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("../../hooks/use-namespace/index.js");require("@popperjs/core");require("lodash");require("../../hooks/use-z-index/index.js");require("@vueuse/core");require("@vue/shared");require("@vft/utils");require("../../utils/ns-cover.js");const h=require("./playground.js"),y=require("../icon/index.js"),s=V.useNamespace("md-vue-playground"),C=e.defineComponent({name:s.b()}),b=e.defineComponent({...C,props:{title:null,files:null,settings:null},setup(t){const o=e.ref(!0),l=e.shallowRef(),n=e.ref(),i=e.computed(()=>h.getVuePlaygroundSettings(t.settings)),r=e.ref(i.value.showCode||!1),a=async()=>{const{ReplStore:c,Repl:d}=await import("@vue/repl");l.value=d,n.value=new c({serializedState:decodeURIComponent(t.files),showOutput:!0}),i.value.vueVersion&&await n.value.setVueVersion(i.value.vueVersion)};return e.onMounted(async()=>{await a(),o.value=!1}),()=>e.createVNode("div",{class:s.b()},[e.createVNode("div",{class:"title-wrapper"},[e.withDirectives(e.createVNode("div",{class:"title"},[decodeURIComponent(t.title)]),[[e.resolveDirective("if"),t.title]]),e.createVNode(y.VftIcon,{cursor:!0,icon:r.value?"i-bx:collapse-alt":"i-bx:expand-alt",size:20,onClick:()=>{r.value=!r.value}},null)]),e.withDirectives(e.createVNode("div",{class:["repl-container",r.value?"show-code":"hide-code"]},[l.value?e.h(l.value,{store:n.value,...i.value}):null]),[[e.resolveDirective("spin"),o.value]])])}});exports.default=b;
|
package/lib/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.0.35";exports.version=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -19,12 +19,6 @@
|
|
|
19
19
|
"./lib/*": "./lib/*.js",
|
|
20
20
|
"./*": "./*"
|
|
21
21
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"update:version": "pnpm version patch",
|
|
24
|
-
"clean": "pnpm /^clean:/",
|
|
25
|
-
"clean:dist": "rimraf dist",
|
|
26
|
-
"clean:node_modules": "rimraf node_modules"
|
|
27
|
-
},
|
|
28
22
|
"unpkg": "dist/index.full.js",
|
|
29
23
|
"jsdelivr": "dist/index.full.js",
|
|
30
24
|
"repository": {
|
|
@@ -73,5 +67,11 @@
|
|
|
73
67
|
"@waline/client": "^2.14.7",
|
|
74
68
|
"balloon-css": "^1.2.0",
|
|
75
69
|
"fflate": "^0.7.4"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"update:version": "pnpm version patch",
|
|
73
|
+
"clean": "pnpm /^clean:/",
|
|
74
|
+
"clean:dist": "rimraf dist",
|
|
75
|
+
"clean:node_modules": "rimraf node_modules"
|
|
76
76
|
}
|
|
77
|
-
}
|
|
77
|
+
}
|
|
File without changes
|
package/theme-style/vft-icon.css
CHANGED
|
File without changes
|