@fangzhongya/vue-archive 0.0.2-28 → 0.0.2-30

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.
@@ -64676,7 +64676,7 @@ function getKeyMds(key) {
64676
64676
  getTestObj(key);
64677
64677
  return componentsObj[key].mds;
64678
64678
  }
64679
- async function getTestImportUrl(url, text, type) {
64679
+ async function getTestImportUrl(url, text, type, comprops) {
64680
64680
  let arr = await getImport(text, type) || [];
64681
64681
  let urs = url.split("/");
64682
64682
  return arr.map((key) => {
@@ -64685,6 +64685,7 @@ async function getTestImportUrl(url, text, type) {
64685
64685
  let v = key.substring(2);
64686
64686
  return {
64687
64687
  name: key,
64688
+ comprops: comprops || "",
64688
64689
  value: v,
64689
64690
  suffix: getSuffix(key),
64690
64691
  head,
@@ -64705,6 +64706,7 @@ async function getTestImportUrl(url, text, type) {
64705
64706
  let v = vs.join("/");
64706
64707
  return {
64707
64708
  name: key,
64709
+ comprops: comprops || "",
64708
64710
  value: v,
64709
64711
  suffix: getSuffix(key),
64710
64712
  head,
@@ -64794,11 +64796,12 @@ async function getPropsImport(text, obj) {
64794
64796
  let arr = (await getTestImportUrl(
64795
64797
  obj.key,
64796
64798
  text,
64797
- obj.suffix
64799
+ obj.suffix,
64800
+ obj.comprops
64798
64801
  )).filter((v) => {
64799
- return v.key.startsWith(obj.head);
64802
+ return v.key.startsWith(obj.head) || isComprops(v.name, obj.comprops || "");
64800
64803
  });
64801
- ts += await getPropsTexts(arr);
64804
+ ts = await getPropsTexts(arr) + ts;
64802
64805
  }
64803
64806
  return ts;
64804
64807
  }
@@ -64848,7 +64851,8 @@ async function getComponentsProps(text, obj) {
64848
64851
  let arr = (await getTestImportUrl(
64849
64852
  obj.key,
64850
64853
  text,
64851
- obj.suffix
64854
+ obj.suffix,
64855
+ obj.comprops || ""
64852
64856
  )).filter((v) => {
64853
64857
  return isComprops(
64854
64858
  v.name,
@@ -64856,7 +64860,7 @@ async function getComponentsProps(text, obj) {
64856
64860
  ) || isCurprops(v.name, obj.curprops || "");
64857
64861
  });
64858
64862
  let str = await getPropsTexts(arr);
64859
- ts += str;
64863
+ ts = str + ts;
64860
64864
  }
64861
64865
  }
64862
64866
  return ts;
@@ -64676,7 +64676,7 @@ function getKeyMds(key) {
64676
64676
  getTestObj(key);
64677
64677
  return componentsObj[key].mds;
64678
64678
  }
64679
- async function getTestImportUrl(url, text, type) {
64679
+ async function getTestImportUrl(url, text, type, comprops) {
64680
64680
  let arr = await getImport(text, type) || [];
64681
64681
  let urs = url.split("/");
64682
64682
  return arr.map((key) => {
@@ -64685,6 +64685,7 @@ async function getTestImportUrl(url, text, type) {
64685
64685
  let v = key.substring(2);
64686
64686
  return {
64687
64687
  name: key,
64688
+ comprops: comprops || "",
64688
64689
  value: v,
64689
64690
  suffix: getSuffix(key),
64690
64691
  head,
@@ -64705,6 +64706,7 @@ async function getTestImportUrl(url, text, type) {
64705
64706
  let v = vs.join("/");
64706
64707
  return {
64707
64708
  name: key,
64709
+ comprops: comprops || "",
64708
64710
  value: v,
64709
64711
  suffix: getSuffix(key),
64710
64712
  head,
@@ -64794,11 +64796,12 @@ async function getPropsImport(text, obj) {
64794
64796
  let arr = (await getTestImportUrl(
64795
64797
  obj.key,
64796
64798
  text,
64797
- obj.suffix
64799
+ obj.suffix,
64800
+ obj.comprops
64798
64801
  )).filter((v) => {
64799
- return v.key.startsWith(obj.head);
64802
+ return v.key.startsWith(obj.head) || isComprops(v.name, obj.comprops || "");
64800
64803
  });
64801
- ts += await getPropsTexts(arr);
64804
+ ts = await getPropsTexts(arr) + ts;
64802
64805
  }
64803
64806
  return ts;
64804
64807
  }
@@ -64848,7 +64851,8 @@ async function getComponentsProps(text, obj) {
64848
64851
  let arr = (await getTestImportUrl(
64849
64852
  obj.key,
64850
64853
  text,
64851
- obj.suffix
64854
+ obj.suffix,
64855
+ obj.comprops || ""
64852
64856
  )).filter((v) => {
64853
64857
  return isComprops(
64854
64858
  v.name,
@@ -64856,7 +64860,7 @@ async function getComponentsProps(text, obj) {
64856
64860
  ) || isCurprops(v.name, obj.curprops || "");
64857
64861
  });
64858
64862
  let str = await getPropsTexts(arr);
64859
- ts += str;
64863
+ ts = str + ts;
64860
64864
  }
64861
64865
  }
64862
64866
  return ts;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),d=require("../boxurl/index.vue.cjs"),m=require("../../router/index.cjs"),x=require("./highlight.vue.cjs"),_=require("../../utils/index.cjs"),p=require("../../utils/glob.cjs"),w=require("vue-router"),E={class:"code"},N={class:"code-top"},V={class:"code-top-but"},y={class:"top-but-files"},b=["onClick"],q={class:"code-highlightjs"},B=e.defineComponent({__name:"index",props:{text:String,value:Object},setup(h){const t=h,f=w.useRouter();e.watch(()=>t.text,()=>{u()});const a=e.ref([]),o=e.ref(),i=e.ref(!1);function k(){var l;(l=o.value)!=null&&l.raw?_.copyCode(o.value.raw):_.copyCode(t.text)}function g(){i.value=!i.value}function C(){m.toSingle(f,t.value)}function r(l){i.value=!0,o.value=l}function u(){var l;o.value=void 0,i.value=!1,t.text&&p.getTestImportUrl((l=t.value)==null?void 0:l.key,t.text,"vue").then(c=>{p.getLocalTextArr(c).then(s=>{a.value=s.filter(n=>n.raw)})})}return u(),(l,c)=>{var s;return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",N,[e.createElementVNode("div",V,[e.createElementVNode("div",{class:"but-div",onClick:C}," go "),e.createElementVNode("div",{class:"but-div",onClick:k}," 复制 "),e.createElementVNode("div",{class:"but-div",onClick:g},e.toDisplayString(i.value?"隐藏":"显示"),1),e.createElementVNode("div",y,[e.createVNode(d,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:!(o.value&&o.value.value)}]),onClick:c[0]||(c[0]=e.withModifiers(n=>r(),["stop"]))}," index.vue ",2)]),_:1},8,["value"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(n,S)=>(e.openBlock(),e.createBlock(d,{value:n},{default:e.withCtx(()=>{var v;return[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:n.key==((v=o.value)==null?void 0:v.key)}]),onClick:e.withModifiers(D=>r(n),["stop"])},e.toDisplayString(n.value),11,b)]}),_:2},1032,["value"]))),256))])])]),e.withDirectives(e.createElementVNode("div",q,[e.createVNode(x,{language:"html",code:((s=o.value)==null?void 0:s.raw)||t.text},null,8,["code"])],512),[[e.vShow,i.value]])])}}});module.exports=B;
1
+ "use strict";const e=require("vue"),p=require("../boxurl/index.vue.cjs"),x=require("../../router/index.cjs"),w=require("./highlight.vue.cjs"),_=require("../../utils/index.cjs"),h=require("../../utils/glob.cjs"),E=require("vue-router"),N={class:"code"},V={class:"code-top"},y={class:"code-top-but"},b={class:"top-but-files"},q=["onClick"],B={class:"code-highlightjs"},S=e.defineComponent({__name:"index",props:{text:String,value:Object},setup(f){const t=f,k=E.useRouter();e.watch(()=>t.text,()=>{u()});const a=e.ref([]),o=e.ref(),i=e.ref(!1);function g(){var l;(l=o.value)!=null&&l.raw?_.copyCode(o.value.raw):_.copyCode(t.text)}function m(){i.value=!i.value}function C(){x.toSingle(k,t.value)}function r(l){i.value=!0,o.value=l}function u(){var l,c;o.value=void 0,i.value=!1,t.text&&h.getTestImportUrl((l=t.value)==null?void 0:l.key,t.text,"vue",(c=t.value)==null?void 0:c.comprops).then(s=>{h.getLocalTextArr(s).then(n=>{a.value=n.filter(v=>v.raw)})})}return u(),(l,c)=>{var s;return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",V,[e.createElementVNode("div",y,[e.createElementVNode("div",{class:"but-div",onClick:C}," go "),e.createElementVNode("div",{class:"but-div",onClick:g}," 复制 "),e.createElementVNode("div",{class:"but-div",onClick:m},e.toDisplayString(i.value?"隐藏":"显示"),1),e.createElementVNode("div",b,[e.createVNode(p,{value:t.value},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:!(o.value&&o.value.value)}]),onClick:c[0]||(c[0]=e.withModifiers(n=>r(),["stop"]))}," index.vue ",2)]),_:1},8,["value"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(n,v)=>(e.openBlock(),e.createBlock(p,{value:n},{default:e.withCtx(()=>{var d;return[e.createElementVNode("div",{class:e.normalizeClass(["but-div",{on:n.key==((d=o.value)==null?void 0:d.key)}]),onClick:e.withModifiers(D=>r(n),["stop"])},e.toDisplayString(n.value),11,q)]}),_:2},1032,["value"]))),256))])])]),e.withDirectives(e.createElementVNode("div",B,[e.createVNode(w,{language:"html",code:((s=o.value)==null?void 0:s.raw)||t.text},null,8,["code"])],512),[[e.vShow,i.value]])])}}});module.exports=S;
@@ -1,91 +1,92 @@
1
- import { defineComponent as D, watch as T, ref as c, openBlock as u, createElementBlock as p, createElementVNode as e, toDisplayString as m, createVNode as h, withCtx as _, normalizeClass as k, withModifiers as g, Fragment as $, renderList as j, createBlock as E, withDirectives as L, vShow as N } from "vue";
2
- import C from "../boxurl/index.vue.js";
3
- import { toSingle as V } from "../../router/index.js";
4
- import z from "./highlight.vue.js";
5
- import { copyCode as x } from "../../utils/index.js";
6
- import { getTestImportUrl as A, getLocalTextArr as F } from "../../utils/glob.js";
7
- import { useRouter as H } from "vue-router";
8
- const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-but" }, R = { class: "top-but-files" }, U = ["onClick"], q = { class: "code-highlightjs" }, ee = /* @__PURE__ */ D({
1
+ import { defineComponent as T, watch as $, ref as c, openBlock as u, createElementBlock as m, createElementVNode as t, toDisplayString as h, createVNode as _, withCtx as k, normalizeClass as g, withModifiers as C, Fragment as j, renderList as E, createBlock as L, withDirectives as N, vShow as V } from "vue";
2
+ import x from "../boxurl/index.vue.js";
3
+ import { toSingle as z } from "../../router/index.js";
4
+ import A from "./highlight.vue.js";
5
+ import { copyCode as w } from "../../utils/index.js";
6
+ import { getTestImportUrl as F, getLocalTextArr as H } from "../../utils/glob.js";
7
+ import { useRouter as I } from "vue-router";
8
+ const M = { class: "code" }, O = { class: "code-top" }, R = { class: "code-top-but" }, U = { class: "top-but-files" }, q = ["onClick"], G = { class: "code-highlightjs" }, ee = /* @__PURE__ */ T({
9
9
  __name: "index",
10
10
  props: {
11
11
  text: String,
12
12
  value: Object
13
13
  },
14
- setup(w) {
15
- const t = w, b = H();
16
- T(
17
- () => t.text,
14
+ setup(b) {
15
+ const e = b, y = I();
16
+ $(
17
+ () => e.text,
18
18
  () => {
19
19
  d();
20
20
  }
21
21
  );
22
22
  const r = c([]), o = c(), a = c(!1);
23
- function y() {
23
+ function S() {
24
24
  var l;
25
- (l = o.value) != null && l.raw ? x(o.value.raw) : x(t.text);
25
+ (l = o.value) != null && l.raw ? w(o.value.raw) : w(e.text);
26
26
  }
27
- function S() {
27
+ function B() {
28
28
  a.value = !a.value;
29
29
  }
30
- function B() {
31
- V(b, t.value);
30
+ function D() {
31
+ z(y, e.value);
32
32
  }
33
33
  function v(l) {
34
34
  a.value = !0, o.value = l;
35
35
  }
36
36
  function d() {
37
- var l;
38
- o.value = void 0, a.value = !1, t.text && A(
39
- (l = t.value) == null ? void 0 : l.key,
40
- t.text,
41
- "vue"
37
+ var l, s;
38
+ o.value = void 0, a.value = !1, e.text && F(
39
+ (l = e.value) == null ? void 0 : l.key,
40
+ e.text,
41
+ "vue",
42
+ (s = e.value) == null ? void 0 : s.comprops
42
43
  ).then((n) => {
43
- F(n).then((s) => {
44
- r.value = s.filter((i) => i.raw);
44
+ H(n).then((i) => {
45
+ r.value = i.filter((f) => f.raw);
45
46
  });
46
47
  });
47
48
  }
48
- return d(), (l, n) => {
49
- var s;
50
- return u(), p("div", I, [
51
- e("div", M, [
52
- e("div", O, [
53
- e("div", {
49
+ return d(), (l, s) => {
50
+ var n;
51
+ return u(), m("div", M, [
52
+ t("div", O, [
53
+ t("div", R, [
54
+ t("div", {
54
55
  class: "but-div",
55
- onClick: B
56
+ onClick: D
56
57
  }, " go "),
57
- e("div", {
58
+ t("div", {
58
59
  class: "but-div",
59
- onClick: y
60
+ onClick: S
60
61
  }, " 复制 "),
61
- e("div", {
62
+ t("div", {
62
63
  class: "but-div",
63
- onClick: S
64
- }, m(a.value ? "隐藏" : "显示"), 1),
65
- e("div", R, [
66
- h(C, {
67
- value: t.value
64
+ onClick: B
65
+ }, h(a.value ? "隐藏" : "显示"), 1),
66
+ t("div", U, [
67
+ _(x, {
68
+ value: e.value
68
69
  }, {
69
- default: _(() => [
70
- e("div", {
71
- class: k(["but-div", {
70
+ default: k(() => [
71
+ t("div", {
72
+ class: g(["but-div", {
72
73
  on: !(o.value && o.value.value)
73
74
  }]),
74
- onClick: n[0] || (n[0] = g((i) => v(), ["stop"]))
75
+ onClick: s[0] || (s[0] = C((i) => v(), ["stop"]))
75
76
  }, " index.vue ", 2)
76
77
  ]),
77
78
  _: 1
78
79
  }, 8, ["value"]),
79
- (u(!0), p($, null, j(r.value, (i, G) => (u(), E(C, { value: i }, {
80
- default: _(() => {
81
- var f;
80
+ (u(!0), m(j, null, E(r.value, (i, f) => (u(), L(x, { value: i }, {
81
+ default: k(() => {
82
+ var p;
82
83
  return [
83
- e("div", {
84
- class: k(["but-div", {
85
- on: i.key == ((f = o.value) == null ? void 0 : f.key)
84
+ t("div", {
85
+ class: g(["but-div", {
86
+ on: i.key == ((p = o.value) == null ? void 0 : p.key)
86
87
  }]),
87
- onClick: g((J) => v(i), ["stop"])
88
- }, m(i.value), 11, U)
88
+ onClick: C((J) => v(i), ["stop"])
89
+ }, h(i.value), 11, q)
89
90
  ];
90
91
  }),
91
92
  _: 2
@@ -93,13 +94,13 @@ const I = { class: "code" }, M = { class: "code-top" }, O = { class: "code-top-b
93
94
  ])
94
95
  ])
95
96
  ]),
96
- L(e("div", q, [
97
- h(z, {
97
+ N(t("div", G, [
98
+ _(A, {
98
99
  language: "html",
99
- code: ((s = o.value) == null ? void 0 : s.raw) || t.text
100
+ code: ((n = o.value) == null ? void 0 : n.raw) || e.text
100
101
  }, null, 8, ["code"])
101
102
  ], 512), [
102
- [N, a.value]
103
+ [V, a.value]
103
104
  ])
104
105
  ]);
105
106
  };
@@ -13,6 +13,7 @@ export interface TextObj {
13
13
  getRaw: GetRaw | null;
14
14
  }
15
15
  export interface PropObj {
16
+ comprops: string;
16
17
  name: string;
17
18
  value: string;
18
19
  suffix: string;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../config.cjs"),p=require("./common.cjs"),w=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.cjs"),E=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.cjs"),C=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.cjs"),j=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.cjs"),y=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.cjs"),x=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.cjs"),K=require("./index.cjs"),f={},O={},P=[],q={},A={},d={};function b(){return N.getConfig("example")}function M(e,t,s){const n=Object.assign({exampless:[],examplessRaw:[]},t,s),r=[],a=n.examples;a&&Object.keys(a).forEach(o=>{r.push(o),A[o]=a[o]});const i=n.examplesRaw,l=[];n.urls&&n.urls.length>0?(n.exampless=n.urls,n.urls.forEach(o=>{l.push(o),i&&(d[o]=L(i,o))})):(n.exampless=r,i&&Object.keys(i).forEach(o=>{l.push(o),i&&(d[o]=L(i,o))})),n.examples=void 0,n.examplessRaw=l,n.examplesRaw=void 0,q[e]=n}function L(e,t){return typeof e=="function"?e:e&&(e[t]||e)}async function H(e,t){let s="";if(t=="vue"){let r=new RegExp(/(<script([^>]*)>)((.|\n|\r)*)(<\/script>)/g).exec(e);r&&(s=r[3])}else(t=="js"||t=="ts"||t=="")&&(s=e);if(s){const n=await K.getTextImport(s);let r=n==null?void 0:n.map(i=>i.n);const a=[];return r&&r.length>0&&r.forEach(i=>{i&&(i.startsWith("./")||i.startsWith("../"))&&a.push(i)}),a}}function I(e){return new Promise(t=>{e?e.raw?t(e.raw):e.getRaw?e.getRaw(e).then(s=>{const n=(s||"")+"";e.raw=n,e.getRaw=null,t(n)}):t(""):t("")})}function k(e,t){e=(e||"")+"";let s="";switch(e){case"1":s=t.tdir+"/";break;case"2":s=t.adir+"/";break;case"3":s=t.tdir+"/"+t.adir+"/";break}return s}function U(e,t,s){var l,o;e=(e||"")+"",s=(s||"")+"";let n=w.humpToLine(t.name),r=[];const a=Object.values(t.aliass||{});if(e==="1")t.alias&&r.push(t.alias+"-"+n);else if(e==="2")a&&a.length>0&&a.forEach(c=>{r.push(c+"-"+n)});else if(e==="3"){let c="";t.alias&&(c=t.alias+"-"),a==null||a.forEach(u=>{r.push(c+u+"-"+n)})}else e==="4"?(l=t.aliasNames)==null||l.forEach(c=>{r.push(w.humpToLine(c))}):e=="9"&&(r.push(n),(o=t.aliasNames)==null||o.forEach(c=>{r.push(w.humpToLine(c))}));r.length==0&&r.push(n);let i=[];return s==="1"?r.forEach(c=>{let u=E.lineToLargeHump(c);i.push(u,C.firstLower(u))}):s==="2"?r.forEach(c=>{let u=E.lineToLargeHump(c);i.push(c,u,C.firstLower(u))}):i=[...r],i=[...new Set(i)],i}function V(e,t,s,n){const r=[];return s.examplessRaw.forEach(a=>{for(let i=0;i<t.length;i++){const l=t[i];if(a==e+l+"/"+s.md+".md"){r.push({topurl:e,comkey:n.key,suffix:x.getSuffix(a),name:n.name,value:l,key:a,raw:"",getRaw:p.getRawValue(d,a)});break}}}),r}function R(e){h();const t=f[e];if(t.tests)return t.tests;{const s=q[t.dir],n=s.dir+k(s.level||0,t),r=U(s.aliaslevel||0,t,s.componentName||0);t.mds=V(n,r,s,t);const a={};return s.exampless.forEach(i=>{for(let l=0;l<r.length;l++){const o=r[l];if(i.startsWith(n+o+"/")){const c=new RegExp("^\\"+n+o+"/(.*)/index\\."+p.defaultExtensions.join("|")+"$");let u="",m=i.match(c);m&&m.length>1&&(u=m[1]),a[i]={topurl:n,name:o,value:u,suffix:x.getSuffix(i),comname:t.name,comkey:t.key,key:i,component:A[i],raw:"",getRaw:p.getRawValue(d,i)};break}}}),t.tests=a,a}}function W(e){if(e){const t=R(e);return Object.values(t)}else return[]}function B(e,t,s){h();const n=R(s),r=[];if(t){let a=n[t];if(a)return r.push(a),r}return Object.values(n).forEach(a=>{a.name+"/"+a.value==e&&r.push(a)}),r}function D(e){return R(e),f[e].mds}async function T(e,t,s){let n=await H(t,s)||[],r=e.split("/");return n.map(a=>{if(a.startsWith("./")){let i=r.slice(0,r.length-1).join("/"),l=a.substring(2);return{name:a,value:l,suffix:x.getSuffix(a),head:i,key:i+"/"+l}}else{let i=a.split("/"),l=0;for(let m=0;m<i.length;m++)if(i[m]!=".."){l=m;break}let o=i.slice(l,i.length),c=r.slice(0,r.length-l-1).join("/"),u=o.join("/");return{name:a,value:u,suffix:x.getSuffix(a),head:c,key:c+"/"+u}}})}function F(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>({raw:"",value:n.value,suffix:x.getSuffix(n.key),key:n.key,getRaw:p.getRawValue(d,n.key)}));y.asyncMergeArray(s,(n,r,a,i)=>{a.raw?n():a.getRaw?a.getRaw(a).then(l=>{const o=(l||"")+"";a.raw=o,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}function J(){const e=b(),t=N.getConfig("components");t==null||t.forEach(s=>{var r;Q(s);let n=s.dir||((r=s==null?void 0:s.resolver)==null?void 0:r.dir)||"";M(n,e,s.example)})}const g="default";function X(e){let t=w.humpToLine(e.name),s=[...e.aliasNames];s.push(t),s.forEach(n=>{P.push({name:n,value:e.key})})}function Z(e,t){const s={};t==null||t.forEach(n=>{f[n.key]=n,X(n);const r=Object.values(n.aliass||{});r&&r.length?r.forEach(a=>{s[a]=s[a]||[],s[a].push(n.key)}):(s[g]=s[g]||[],s[g].push(n.key))})}function Q(e){var n;let t,s;if(e.resolver)t=e.alias||((n=e.resolver)==null?void 0:n.alias)||g,s=p.getComponentsArr(e.resolver.urls||[],e.resolver,e.componentsRaw,e.components,e);else{t=e.alias||g;let r=(e==null?void 0:e.urls)||Object.keys(e.componentsRaw);s=p.getComponentsArr(r,e,e.componentsRaw,e.components,e)}s&&(s!=null&&s.props)&&s.props.forEach(r=>{O[r.key]=r}),Z(t,s.components)}function $(e){return h(),f[e]}function h(){return Object.keys(f).length==0&&J(),Object.values(f)}function G(e,t,s){h();const n=[];if(s){let a=f[s];if(a&&a.key)return[a]}let r=w.humpToLine(e);return P.forEach(a=>{t?a.name.includes(r)&&n.push(f[a.value]):a.name==r&&n.push(f[a.value])}),j.duplicateRemoval(n,"key")}async function Y(e,t){let s=e;if(e){let n=(await T(t.key,e,t.suffix)).filter(r=>r.key.startsWith(t.head));s+=await S(n)}return s}function _(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>O[n.key]||O[n.key+".js"]||O[n.key+".ts"]);y.asyncMergeArray(s,(n,r,a,i)=>{a.raw?n():a.getRaw?a.getRaw(a).then(async l=>{const o=(l||"")+"";let c=await Y(o,e[i]);a.raw=c,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}async function S(e){const t=await _(e);return((t==null?void 0:t.map(n=>n.raw))||[]).join(`
2
- `)}async function z(e,t){let s=e;if(e&&(t.comprops||t.curprops)){let n=(await T(t.key,e,t.suffix)).filter(a=>p.isComprops(a.name,t.comprops||"")||p.isCurprops(a.name,t.curprops||"")),r=await S(n);s+=r}return s}function v(e){return new Promise(t=>{if(e){h();const s=f[e];s?s.raw?t(s.raw):s.getRaw?s.getRaw(s).then(async n=>{const r=(n||"")+"",a=await z(r,s);s.raw=a,s.getRaw=null,t(a)}):t(""):t("")}else t("")})}exports.defaultName=g;exports.getCompoName=G;exports.getCompoNameKey=$;exports.getCompoNameObj=h;exports.getKeyMds=D;exports.getLocalTextArr=F;exports.getLocalTextComponents=v;exports.getLocalTextTests=I;exports.getTestImportUrl=T;exports.getTestName=W;exports.getTestNameObj=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../config.cjs"),m=require("./common.cjs"),w=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.cjs"),E=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.cjs"),L=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.cjs"),M=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.cjs"),P=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.cjs"),x=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.cjs"),H=require("./index.cjs"),f={},R={},q=[],A={},S={},d={};function I(){return y.getConfig("example")}function j(e,t,s){const n=Object.assign({exampless:[],examplessRaw:[]},t,s),r=[],a=n.examples;a&&Object.keys(a).forEach(l=>{r.push(l),S[l]=a[l]});const i=n.examplesRaw,o=[];n.urls&&n.urls.length>0?(n.exampless=n.urls,n.urls.forEach(l=>{o.push(l),i&&(d[l]=N(i,l))})):(n.exampless=r,i&&Object.keys(i).forEach(l=>{o.push(l),i&&(d[l]=N(i,l))})),n.examples=void 0,n.examplessRaw=o,n.examplesRaw=void 0,A[e]=n}function N(e,t){return typeof e=="function"?e:e&&(e[t]||e)}async function k(e,t){let s="";if(t=="vue"){let r=new RegExp(/(<script([^>]*)>)((.|\n|\r)*)(<\/script>)/g).exec(e);r&&(s=r[3])}else(t=="js"||t=="ts"||t=="")&&(s=e);if(s){const n=await H.getTextImport(s);let r=n==null?void 0:n.map(i=>i.n);const a=[];return r&&r.length>0&&r.forEach(i=>{i&&(i.startsWith("./")||i.startsWith("../"))&&a.push(i)}),a}}function U(e){return new Promise(t=>{e?e.raw?t(e.raw):e.getRaw?e.getRaw(e).then(s=>{const n=(s||"")+"";e.raw=n,e.getRaw=null,t(n)}):t(""):t("")})}function V(e,t){e=(e||"")+"";let s="";switch(e){case"1":s=t.tdir+"/";break;case"2":s=t.adir+"/";break;case"3":s=t.tdir+"/"+t.adir+"/";break}return s}function W(e,t,s){var o,l;e=(e||"")+"",s=(s||"")+"";let n=w.humpToLine(t.name),r=[];const a=Object.values(t.aliass||{});if(e==="1")t.alias&&r.push(t.alias+"-"+n);else if(e==="2")a&&a.length>0&&a.forEach(c=>{r.push(c+"-"+n)});else if(e==="3"){let c="";t.alias&&(c=t.alias+"-"),a==null||a.forEach(u=>{r.push(c+u+"-"+n)})}else e==="4"?(o=t.aliasNames)==null||o.forEach(c=>{r.push(w.humpToLine(c))}):e=="9"&&(r.push(n),(l=t.aliasNames)==null||l.forEach(c=>{r.push(w.humpToLine(c))}));r.length==0&&r.push(n);let i=[];return s==="1"?r.forEach(c=>{let u=E.lineToLargeHump(c);i.push(u,L.firstLower(u))}):s==="2"?r.forEach(c=>{let u=E.lineToLargeHump(c);i.push(c,u,L.firstLower(u))}):i=[...r],i=[...new Set(i)],i}function b(e,t,s,n){const r=[];return s.examplessRaw.forEach(a=>{for(let i=0;i<t.length;i++){const o=t[i];if(a==e+o+"/"+s.md+".md"){r.push({topurl:e,comkey:n.key,suffix:x.getSuffix(a),name:n.name,value:o,key:a,raw:"",getRaw:m.getRawValue(d,a)});break}}}),r}function T(e){h();const t=f[e];if(t.tests)return t.tests;{const s=A[t.dir],n=s.dir+V(s.level||0,t),r=W(s.aliaslevel||0,t,s.componentName||0);t.mds=b(n,r,s,t);const a={};return s.exampless.forEach(i=>{for(let o=0;o<r.length;o++){const l=r[o];if(i.startsWith(n+l+"/")){const c=new RegExp("^\\"+n+l+"/(.*)/index\\."+m.defaultExtensions.join("|")+"$");let u="",p=i.match(c);p&&p.length>1&&(u=p[1]),a[i]={topurl:n,name:l,value:u,suffix:x.getSuffix(i),comname:t.name,comkey:t.key,key:i,component:S[i],raw:"",getRaw:m.getRawValue(d,i)};break}}}),t.tests=a,a}}function B(e){if(e){const t=T(e);return Object.values(t)}else return[]}function D(e,t,s){h();const n=T(s),r=[];if(t){let a=n[t];if(a)return r.push(a),r}return Object.values(n).forEach(a=>{a.name+"/"+a.value==e&&r.push(a)}),r}function F(e){return T(e),f[e].mds}async function C(e,t,s,n){let r=await k(t,s)||[],a=e.split("/");return r.map(i=>{if(i.startsWith("./")){let o=a.slice(0,a.length-1).join("/"),l=i.substring(2);return{name:i,comprops:n||"",value:l,suffix:x.getSuffix(i),head:o,key:o+"/"+l}}else{let o=i.split("/"),l=0;for(let O=0;O<o.length;O++)if(o[O]!=".."){l=O;break}let c=o.slice(l,o.length),u=a.slice(0,a.length-l-1).join("/"),p=c.join("/");return{name:i,comprops:n||"",value:p,suffix:x.getSuffix(i),head:u,key:u+"/"+p}}})}function J(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>({raw:"",value:n.value,suffix:x.getSuffix(n.key),key:n.key,getRaw:m.getRawValue(d,n.key)}));P.asyncMergeArray(s,(n,r,a,i)=>{a.raw?n():a.getRaw?a.getRaw(a).then(o=>{const l=(o||"")+"";a.raw=l,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}function X(){const e=I(),t=y.getConfig("components");t==null||t.forEach(s=>{var r;$(s);let n=s.dir||((r=s==null?void 0:s.resolver)==null?void 0:r.dir)||"";j(n,e,s.example)})}const g="default";function Z(e){let t=w.humpToLine(e.name),s=[...e.aliasNames];s.push(t),s.forEach(n=>{q.push({name:n,value:e.key})})}function Q(e,t){const s={};t==null||t.forEach(n=>{f[n.key]=n,Z(n);const r=Object.values(n.aliass||{});r&&r.length?r.forEach(a=>{s[a]=s[a]||[],s[a].push(n.key)}):(s[g]=s[g]||[],s[g].push(n.key))})}function $(e){var n;let t,s;if(e.resolver)t=e.alias||((n=e.resolver)==null?void 0:n.alias)||g,s=m.getComponentsArr(e.resolver.urls||[],e.resolver,e.componentsRaw,e.components,e);else{t=e.alias||g;let r=(e==null?void 0:e.urls)||Object.keys(e.componentsRaw);s=m.getComponentsArr(r,e,e.componentsRaw,e.components,e)}s&&(s!=null&&s.props)&&s.props.forEach(r=>{R[r.key]=r}),Q(t,s.components)}function G(e){return h(),f[e]}function h(){return Object.keys(f).length==0&&X(),Object.values(f)}function Y(e,t,s){h();const n=[];if(s){let a=f[s];if(a&&a.key)return[a]}let r=w.humpToLine(e);return q.forEach(a=>{t?a.name.includes(r)&&n.push(f[a.value]):a.name==r&&n.push(f[a.value])}),M.duplicateRemoval(n,"key")}async function _(e,t){let s=e;if(e){let n=(await C(t.key,e,t.suffix,t.comprops)).filter(r=>r.key.startsWith(t.head)||m.isComprops(r.name,t.comprops||""));s=await K(n)+s}return s}function z(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>R[n.key]||R[n.key+".js"]||R[n.key+".ts"]);P.asyncMergeArray(s,(n,r,a,i)=>{a.raw?n():a.getRaw?a.getRaw(a).then(async o=>{const l=(o||"")+"";let c=await _(l,e[i]);a.raw=c,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}async function K(e){const t=await z(e);return((t==null?void 0:t.map(n=>n.raw))||[]).join(`
2
+ `)}async function v(e,t){let s=e;if(e&&(t.comprops||t.curprops)){let n=(await C(t.key,e,t.suffix,t.comprops||"")).filter(a=>m.isComprops(a.name,t.comprops||"")||m.isCurprops(a.name,t.curprops||""));s=await K(n)+s}return s}function ee(e){return new Promise(t=>{if(e){h();const s=f[e];s?s.raw?t(s.raw):s.getRaw?s.getRaw(s).then(async n=>{const r=(n||"")+"",a=await v(r,s);s.raw=a,s.getRaw=null,t(a)}):t(""):t("")}else t("")})}exports.defaultName=g;exports.getCompoName=Y;exports.getCompoNameKey=G;exports.getCompoNameObj=h;exports.getKeyMds=F;exports.getLocalTextArr=J;exports.getLocalTextComponents=ee;exports.getLocalTextTests=U;exports.getTestImportUrl=C;exports.getTestName=B;exports.getTestNameObj=D;
@@ -15,7 +15,7 @@ export declare function getKeyMds(key: string): MdObj[] | undefined;
15
15
  * @param {*} arr
16
16
  * @returns
17
17
  */
18
- export declare function getTestImportUrl(url: string, text: string, type: string): Promise<Array<PropObj>>;
18
+ export declare function getTestImportUrl(url: string, text: string, type: string, comprops?: string): Promise<Array<PropObj>>;
19
19
  export declare function getLocalTextArr(arr: Array<PropObj>): Promise<TextObj[]>;
20
20
  export declare const defaultName = "default";
21
21
  export declare function getCompoNameKey(key: string): ComponentsObj;
@@ -1,17 +1,17 @@
1
- import { getConfig as P } from "../config.js";
2
- import { getRawValue as R, getComponentsArr as E, defaultExtensions as K, isComprops as b, isCurprops as M } from "./common.js";
1
+ import { getConfig as L } from "../config.js";
2
+ import { getRawValue as O, getComponentsArr as T, defaultExtensions as j, isComprops as W, isCurprops as S } from "./common.js";
3
3
  import { humpToLine as p } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
4
- import { lineToLargeHump as T } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
5
- import { firstLower as C } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
6
- import { duplicateRemoval as U } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js";
7
- import { asyncMergeArray as L } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js";
4
+ import { lineToLargeHump as C } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
5
+ import { firstLower as N } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
6
+ import { duplicateRemoval as V } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js";
7
+ import { asyncMergeArray as y } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-Q6FMBSK4.js";
8
8
  import { getSuffix as g } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-16/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js";
9
- import { getTextImport as S } from "./index.js";
10
- const u = {}, d = {}, j = [], W = {}, y = {}, w = {};
11
- function V() {
12
- return P("example");
9
+ import { getTextImport as F } from "./index.js";
10
+ const m = {}, R = {}, A = [], I = {}, K = {}, w = {};
11
+ function H() {
12
+ return L("example");
13
13
  }
14
- function F(e, t, s) {
14
+ function $(e, t, s) {
15
15
  const n = Object.assign(
16
16
  {
17
17
  exampless: [],
@@ -20,26 +20,26 @@ function F(e, t, s) {
20
20
  t,
21
21
  s
22
22
  ), r = [], a = n.examples;
23
- a && Object.keys(a).forEach((o) => {
24
- r.push(o), y[o] = a[o];
23
+ a && Object.keys(a).forEach((l) => {
24
+ r.push(l), K[l] = a[l];
25
25
  });
26
- const i = n.examplesRaw, l = [];
27
- n.urls && n.urls.length > 0 ? (n.exampless = n.urls, n.urls.forEach((o) => {
28
- l.push(o), i && (w[o] = N(
26
+ const i = n.examplesRaw, o = [];
27
+ n.urls && n.urls.length > 0 ? (n.exampless = n.urls, n.urls.forEach((l) => {
28
+ o.push(l), i && (w[l] = P(
29
29
  i,
30
- o
30
+ l
31
31
  ));
32
- })) : (n.exampless = r, i && Object.keys(i).forEach((o) => {
33
- l.push(o), i && (w[o] = N(
32
+ })) : (n.exampless = r, i && Object.keys(i).forEach((l) => {
33
+ o.push(l), i && (w[l] = P(
34
34
  i,
35
- o
35
+ l
36
36
  ));
37
- })), n.examples = void 0, n.examplessRaw = l, n.examplesRaw = void 0, W[e] = n;
37
+ })), n.examples = void 0, n.examplessRaw = o, n.examplesRaw = void 0, I[e] = n;
38
38
  }
39
- function N(e, t) {
39
+ function P(e, t) {
40
40
  return typeof e == "function" ? e : e && (e[t] || e);
41
41
  }
42
- async function H(e, t) {
42
+ async function b(e, t) {
43
43
  let s = "";
44
44
  if (t == "vue") {
45
45
  let r = new RegExp(
@@ -49,7 +49,7 @@ async function H(e, t) {
49
49
  } else
50
50
  (t == "js" || t == "ts" || t == "") && (s = e);
51
51
  if (s) {
52
- const n = await S(s);
52
+ const n = await F(s);
53
53
  let r = n == null ? void 0 : n.map((i) => i.n);
54
54
  const a = [];
55
55
  return r && r.length > 0 && r.forEach((i) => {
@@ -57,7 +57,7 @@ async function H(e, t) {
57
57
  }), a;
58
58
  }
59
59
  }
60
- function ie(e) {
60
+ function le(e) {
61
61
  return new Promise((t) => {
62
62
  e ? e.raw ? t(e.raw) : e.getRaw ? e.getRaw(e).then((s) => {
63
63
  const n = (s || "") + "";
@@ -65,7 +65,7 @@ function ie(e) {
65
65
  }) : t("") : t("");
66
66
  });
67
67
  }
68
- function $(e, t) {
68
+ function q(e, t) {
69
69
  e = (e || "") + "";
70
70
  let s = "";
71
71
  switch (e) {
@@ -81,8 +81,8 @@ function $(e, t) {
81
81
  }
82
82
  return s;
83
83
  }
84
- function q(e, t, s) {
85
- var l, o;
84
+ function B(e, t, s) {
85
+ var o, l;
86
86
  e = (e || "") + "", s = (s || "") + "";
87
87
  let n = p(t.name), r = [];
88
88
  const a = Object.values(t.aliass || {});
@@ -98,36 +98,36 @@ function q(e, t, s) {
98
98
  r.push(f + c + "-" + n);
99
99
  });
100
100
  } else
101
- e === "4" ? (l = t.aliasNames) == null || l.forEach((f) => {
101
+ e === "4" ? (o = t.aliasNames) == null || o.forEach((f) => {
102
102
  r.push(p(f));
103
- }) : e == "9" && (r.push(n), (o = t.aliasNames) == null || o.forEach((f) => {
103
+ }) : e == "9" && (r.push(n), (l = t.aliasNames) == null || l.forEach((f) => {
104
104
  r.push(p(f));
105
105
  }));
106
106
  r.length == 0 && r.push(n);
107
107
  let i = [];
108
108
  return s === "1" ? r.forEach((f) => {
109
- let c = T(f);
110
- i.push(c, C(c));
109
+ let c = C(f);
110
+ i.push(c, N(c));
111
111
  }) : s === "2" ? r.forEach((f) => {
112
- let c = T(f);
113
- i.push(f, c, C(c));
112
+ let c = C(f);
113
+ i.push(f, c, N(c));
114
114
  }) : i = [...r], i = [...new Set(i)], i;
115
115
  }
116
- function B(e, t, s, n) {
116
+ function D(e, t, s, n) {
117
117
  const r = [];
118
118
  return s.examplessRaw.forEach((a) => {
119
119
  for (let i = 0; i < t.length; i++) {
120
- const l = t[i];
121
- if (a == e + l + "/" + s.md + ".md") {
120
+ const o = t[i];
121
+ if (a == e + o + "/" + s.md + ".md") {
122
122
  r.push({
123
123
  topurl: e,
124
124
  comkey: n.key,
125
125
  suffix: g(a),
126
126
  name: n.name,
127
- value: l,
127
+ value: o,
128
128
  key: a,
129
129
  raw: "",
130
- getRaw: R(
130
+ getRaw: O(
131
131
  w,
132
132
  a
133
133
  )
@@ -137,38 +137,38 @@ function B(e, t, s, n) {
137
137
  }
138
138
  }), r;
139
139
  }
140
- function O(e) {
140
+ function E(e) {
141
141
  x();
142
- const t = u[e];
142
+ const t = m[e];
143
143
  if (t.tests)
144
144
  return t.tests;
145
145
  {
146
- const s = W[t.dir], n = s.dir + $(s.level || 0, t), r = q(
146
+ const s = I[t.dir], n = s.dir + q(s.level || 0, t), r = B(
147
147
  s.aliaslevel || 0,
148
148
  t,
149
149
  s.componentName || 0
150
150
  );
151
- t.mds = B(n, r, s, t);
151
+ t.mds = D(n, r, s, t);
152
152
  const a = {};
153
153
  return s.exampless.forEach((i) => {
154
- for (let l = 0; l < r.length; l++) {
155
- const o = r[l];
156
- if (i.startsWith(n + o + "/")) {
154
+ for (let o = 0; o < r.length; o++) {
155
+ const l = r[o];
156
+ if (i.startsWith(n + l + "/")) {
157
157
  const f = new RegExp(
158
- "^\\" + n + o + "/(.*)/index\\." + K.join("|") + "$"
158
+ "^\\" + n + l + "/(.*)/index\\." + j.join("|") + "$"
159
159
  );
160
- let c = "", m = i.match(f);
161
- m && m.length > 1 && (c = m[1]), a[i] = {
160
+ let c = "", u = i.match(f);
161
+ u && u.length > 1 && (c = u[1]), a[i] = {
162
162
  topurl: n,
163
- name: o,
163
+ name: l,
164
164
  value: c,
165
165
  suffix: g(i),
166
166
  comname: t.name,
167
167
  comkey: t.key,
168
168
  key: i,
169
- component: y[i],
169
+ component: K[i],
170
170
  raw: "",
171
- getRaw: R(
171
+ getRaw: O(
172
172
  w,
173
173
  i
174
174
  )
@@ -179,16 +179,16 @@ function O(e) {
179
179
  }), t.tests = a, a;
180
180
  }
181
181
  }
182
- function le(e) {
182
+ function oe(e) {
183
183
  if (e) {
184
- const t = O(e);
184
+ const t = E(e);
185
185
  return Object.values(t);
186
186
  } else
187
187
  return [];
188
188
  }
189
- function oe(e, t, s) {
189
+ function fe(e, t, s) {
190
190
  x();
191
- const n = O(s), r = [];
191
+ const n = E(s), r = [];
192
192
  if (t) {
193
193
  let a = n[t];
194
194
  if (a)
@@ -198,40 +198,42 @@ function oe(e, t, s) {
198
198
  a.name + "/" + a.value == e && r.push(a);
199
199
  }), r;
200
200
  }
201
- function fe(e) {
202
- return O(e), u[e].mds;
201
+ function ce(e) {
202
+ return E(e), m[e].mds;
203
203
  }
204
- async function A(e, t, s) {
205
- let n = await H(t, s) || [], r = e.split("/");
206
- return n.map((a) => {
207
- if (a.startsWith("./")) {
208
- let i = r.slice(0, r.length - 1).join("/"), l = a.substring(2);
204
+ async function M(e, t, s, n) {
205
+ let r = await b(t, s) || [], a = e.split("/");
206
+ return r.map((i) => {
207
+ if (i.startsWith("./")) {
208
+ let o = a.slice(0, a.length - 1).join("/"), l = i.substring(2);
209
209
  return {
210
- name: a,
210
+ name: i,
211
+ comprops: n || "",
211
212
  value: l,
212
- suffix: g(a),
213
- head: i,
214
- key: i + "/" + l
213
+ suffix: g(i),
214
+ head: o,
215
+ key: o + "/" + l
215
216
  };
216
217
  } else {
217
- let i = a.split("/"), l = 0;
218
- for (let m = 0; m < i.length; m++)
219
- if (i[m] != "..") {
220
- l = m;
218
+ let o = i.split("/"), l = 0;
219
+ for (let d = 0; d < o.length; d++)
220
+ if (o[d] != "..") {
221
+ l = d;
221
222
  break;
222
223
  }
223
- let o = i.slice(l, i.length), f = r.slice(0, r.length - l - 1).join("/"), c = o.join("/");
224
+ let f = o.slice(l, o.length), c = a.slice(0, a.length - l - 1).join("/"), u = f.join("/");
224
225
  return {
225
- name: a,
226
- value: c,
227
- suffix: g(a),
228
- head: f,
229
- key: f + "/" + c
226
+ name: i,
227
+ comprops: n || "",
228
+ value: u,
229
+ suffix: g(i),
230
+ head: c,
231
+ key: c + "/" + u
230
232
  };
231
233
  }
232
234
  });
233
235
  }
234
- function ce(e) {
236
+ function me(e) {
235
237
  return new Promise((t) => {
236
238
  if (e && e.length > 0) {
237
239
  let s = e.map((n) => ({
@@ -239,17 +241,17 @@ function ce(e) {
239
241
  value: n.value,
240
242
  suffix: g(n.key),
241
243
  key: n.key,
242
- getRaw: R(
244
+ getRaw: O(
243
245
  w,
244
246
  n.key
245
247
  )
246
248
  }));
247
- L(
249
+ y(
248
250
  s,
249
251
  (n, r, a, i) => {
250
- a.raw ? n() : a.getRaw ? a.getRaw(a).then((l) => {
251
- const o = (l || "") + "";
252
- a.raw = o, a.getRaw = null, n();
252
+ a.raw ? n() : a.getRaw ? a.getRaw(a).then((o) => {
253
+ const l = (o || "") + "";
254
+ a.raw = l, a.getRaw = null, n();
253
255
  }) : n();
254
256
  }
255
257
  ).then(() => {
@@ -259,40 +261,40 @@ function ce(e) {
259
261
  t([]);
260
262
  });
261
263
  }
262
- function D() {
263
- const e = V(), t = P("components");
264
+ function G() {
265
+ const e = H(), t = L("components");
264
266
  t == null || t.forEach((s) => {
265
267
  var r;
266
- Q(s);
268
+ X(s);
267
269
  let n = s.dir || ((r = s == null ? void 0 : s.resolver) == null ? void 0 : r.dir) || "";
268
- F(n, e, s.example);
270
+ $(n, e, s.example);
269
271
  });
270
272
  }
271
273
  const h = "default";
272
- function G(e) {
274
+ function J(e) {
273
275
  let t = p(e.name), s = [...e.aliasNames];
274
276
  s.push(t), s.forEach((n) => {
275
- j.push({
277
+ A.push({
276
278
  name: n,
277
279
  value: e.key
278
280
  });
279
281
  });
280
282
  }
281
- function J(e, t) {
283
+ function Q(e, t) {
282
284
  const s = {};
283
285
  t == null || t.forEach((n) => {
284
- u[n.key] = n, G(n);
286
+ m[n.key] = n, J(n);
285
287
  const r = Object.values(n.aliass || {});
286
288
  r && r.length ? r.forEach((a) => {
287
289
  s[a] = s[a] || [], s[a].push(n.key);
288
290
  }) : (s[h] = s[h] || [], s[h].push(n.key));
289
291
  });
290
292
  }
291
- function Q(e) {
293
+ function X(e) {
292
294
  var n;
293
295
  let t, s;
294
296
  if (e.resolver)
295
- t = e.alias || ((n = e.resolver) == null ? void 0 : n.alias) || h, s = E(
297
+ t = e.alias || ((n = e.resolver) == null ? void 0 : n.alias) || h, s = T(
296
298
  e.resolver.urls || [],
297
299
  e.resolver,
298
300
  e.componentsRaw,
@@ -302,7 +304,7 @@ function Q(e) {
302
304
  else {
303
305
  t = e.alias || h;
304
306
  let r = (e == null ? void 0 : e.urls) || Object.keys(e.componentsRaw);
305
- s = E(
307
+ s = T(
306
308
  r,
307
309
  e,
308
310
  e.componentsRaw,
@@ -311,51 +313,52 @@ function Q(e) {
311
313
  );
312
314
  }
313
315
  s && (s != null && s.props) && s.props.forEach((r) => {
314
- d[r.key] = r;
315
- }), J(t, s.components);
316
+ R[r.key] = r;
317
+ }), Q(t, s.components);
316
318
  }
317
319
  function ue(e) {
318
- return x(), u[e];
320
+ return x(), m[e];
319
321
  }
320
322
  function x() {
321
- return Object.keys(u).length == 0 && D(), Object.values(u);
323
+ return Object.keys(m).length == 0 && G(), Object.values(m);
322
324
  }
323
- function me(e, t, s) {
325
+ function pe(e, t, s) {
324
326
  x();
325
327
  const n = [];
326
328
  if (s) {
327
- let a = u[s];
329
+ let a = m[s];
328
330
  if (a && a.key)
329
331
  return [a];
330
332
  }
331
333
  let r = p(e);
332
- return j.forEach((a) => {
333
- t ? a.name.includes(r) && n.push(u[a.value]) : a.name == r && n.push(u[a.value]);
334
- }), U(n, "key");
334
+ return A.forEach((a) => {
335
+ t ? a.name.includes(r) && n.push(m[a.value]) : a.name == r && n.push(m[a.value]);
336
+ }), V(n, "key");
335
337
  }
336
- async function X(e, t) {
338
+ async function Y(e, t) {
337
339
  let s = e;
338
340
  if (e) {
339
- let n = (await A(
341
+ let n = (await M(
340
342
  t.key,
341
343
  e,
342
- t.suffix
343
- )).filter((r) => r.key.startsWith(t.head));
344
- s += await I(n);
344
+ t.suffix,
345
+ t.comprops
346
+ )).filter((r) => r.key.startsWith(t.head) || W(r.name, t.comprops || ""));
347
+ s = await U(n) + s;
345
348
  }
346
349
  return s;
347
350
  }
348
- function Y(e) {
351
+ function Z(e) {
349
352
  return new Promise((t) => {
350
353
  if (e && e.length > 0) {
351
- let s = e.map((n) => d[n.key] || d[n.key + ".js"] || d[n.key + ".ts"]);
352
- L(
354
+ let s = e.map((n) => R[n.key] || R[n.key + ".js"] || R[n.key + ".ts"]);
355
+ y(
353
356
  s,
354
357
  (n, r, a, i) => {
355
- a.raw ? n() : a.getRaw ? a.getRaw(a).then(async (l) => {
356
- const o = (l || "") + "";
357
- let f = await X(
358
- o,
358
+ a.raw ? n() : a.getRaw ? a.getRaw(a).then(async (o) => {
359
+ const l = (o || "") + "";
360
+ let f = await Y(
361
+ l,
359
362
  e[i]
360
363
  );
361
364
  a.raw = f, a.getRaw = null, n();
@@ -368,33 +371,34 @@ function Y(e) {
368
371
  t([]);
369
372
  });
370
373
  }
371
- async function I(e) {
372
- const t = await Y(e);
374
+ async function U(e) {
375
+ const t = await Z(e);
373
376
  return ((t == null ? void 0 : t.map((n) => n.raw)) || []).join(`
374
377
  `);
375
378
  }
376
- async function Z(e, t) {
379
+ async function _(e, t) {
377
380
  let s = e;
378
381
  if (e && (t.comprops || t.curprops)) {
379
- let n = (await A(
382
+ let n = (await M(
380
383
  t.key,
381
384
  e,
382
- t.suffix
383
- )).filter((a) => b(
385
+ t.suffix,
386
+ t.comprops || ""
387
+ )).filter((a) => W(
384
388
  a.name,
385
389
  t.comprops || ""
386
- ) || M(a.name, t.curprops || "")), r = await I(n);
387
- s += r;
390
+ ) || S(a.name, t.curprops || ""));
391
+ s = await U(n) + s;
388
392
  }
389
393
  return s;
390
394
  }
391
- function pe(e) {
395
+ function he(e) {
392
396
  return new Promise((t) => {
393
397
  if (e) {
394
398
  x();
395
- const s = u[e];
399
+ const s = m[e];
396
400
  s ? s.raw ? t(s.raw) : s.getRaw ? s.getRaw(s).then(async (n) => {
397
- const r = (n || "") + "", a = await Z(
401
+ const r = (n || "") + "", a = await _(
398
402
  r,
399
403
  s
400
404
  );
@@ -406,14 +410,14 @@ function pe(e) {
406
410
  }
407
411
  export {
408
412
  h as defaultName,
409
- me as getCompoName,
413
+ pe as getCompoName,
410
414
  ue as getCompoNameKey,
411
415
  x as getCompoNameObj,
412
- fe as getKeyMds,
413
- ce as getLocalTextArr,
414
- pe as getLocalTextComponents,
415
- ie as getLocalTextTests,
416
- A as getTestImportUrl,
417
- le as getTestName,
418
- oe as getTestNameObj
416
+ ce as getKeyMds,
417
+ me as getLocalTextArr,
418
+ he as getLocalTextComponents,
419
+ le as getLocalTextTests,
420
+ M as getTestImportUrl,
421
+ oe as getTestName,
422
+ fe as getTestNameObj
419
423
  };
package/dist/style.css CHANGED
@@ -1,4 +1,4 @@
1
- :root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 0}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;top:0;right:0;left:0;bottom:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.form-select .form-select-box{position:absolute;z-index:100;background-color:#fff;text-align:center}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
1
+ :root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 0}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;top:0;right:0;left:0;bottom:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
2
2
  Theme: StackOverflow Light
3
3
  Description: Light theme as used on stackoverflow.com
4
4
  Author: stackoverflow.com
@@ -10,4 +10,4 @@
10
10
  Updated for @stackoverflow/stacks v0.64.0
11
11
  Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
12
12
  Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
13
- */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-attr,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-section,.hljs-selector-tag{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-number,.hljs-quote,.hljs-selector-id,.hljs-template-tag,.hljs-type{color:#b75501}.hljs-selector-class{color:#015692}.hljs-link,.hljs-regexp,.hljs-selector-attr,.hljs-string,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-literal,.hljs-title{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}
13
+ */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-attr,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-section,.hljs-selector-tag{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-number,.hljs-quote,.hljs-selector-id,.hljs-template-tag,.hljs-type{color:#b75501}.hljs-selector-class{color:#015692}.hljs-link,.hljs-regexp,.hljs-selector-attr,.hljs-string,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-literal,.hljs-title{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.form-select .form-select-box{position:absolute;z-index:100;background-color:#fff;text-align:center}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.2-28",
4
+ "version": "0.0.2-30",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",