@fangzhongya/vue-archive 0.0.73 → 0.0.74

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.
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // packages/node/init.ts
31
+ var init_exports = {};
32
+ __export(init_exports, {
33
+ init: () => init
34
+ });
35
+ module.exports = __toCommonJS(init_exports);
36
+ var import_editor = require("monaco-editor/esm/vs/editor/editor.main");
37
+ var import_editor2 = __toESM(require("monaco-editor/esm/vs/editor/editor.worker?worker"), 1);
38
+ var import_json = __toESM(require("monaco-editor/esm/vs/language/json/json.worker?worker"), 1);
39
+ var import_css = __toESM(require("monaco-editor/esm/vs/language/css/css.worker?worker"), 1);
40
+ var import_html = __toESM(require("monaco-editor/esm/vs/language/html/html.worker?worker"), 1);
41
+ var import_ts = __toESM(require("monaco-editor/esm/vs/language/typescript/ts.worker?worker"), 1);
42
+ function init() {
43
+ self.MonacoEnvironment = {
44
+ getWorker(_, label) {
45
+ if (label === "json") {
46
+ return new import_json.default();
47
+ }
48
+ if (label === "css" || label === "scss" || label === "less") {
49
+ return new import_css.default();
50
+ }
51
+ if (label === "html" || label === "handlebars" || label === "razor") {
52
+ return new import_html.default();
53
+ }
54
+ if (label === "typescript" || label === "javascript") {
55
+ return new import_ts.default();
56
+ }
57
+ return new import_editor2.default();
58
+ }
59
+ };
60
+ import_editor.languages.typescript.typescriptDefaults.setEagerModelSync(true);
61
+ }
62
+ // Annotate the CommonJS export names for ESM import in node:
63
+ 0 && (module.exports = {
64
+ init
65
+ });
@@ -0,0 +1,3 @@
1
+ declare function init(): void;
2
+
3
+ export { init };
@@ -0,0 +1,3 @@
1
+ declare function init(): void;
2
+
3
+ export { init };
@@ -0,0 +1,30 @@
1
+ // packages/node/init.ts
2
+ import { languages } from "monaco-editor/esm/vs/editor/editor.main";
3
+ import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";
4
+ import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
5
+ import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
6
+ import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
7
+ import tsWorker from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
8
+ function init() {
9
+ self.MonacoEnvironment = {
10
+ getWorker(_, label) {
11
+ if (label === "json") {
12
+ return new jsonWorker();
13
+ }
14
+ if (label === "css" || label === "scss" || label === "less") {
15
+ return new cssWorker();
16
+ }
17
+ if (label === "html" || label === "handlebars" || label === "razor") {
18
+ return new htmlWorker();
19
+ }
20
+ if (label === "typescript" || label === "javascript") {
21
+ return new tsWorker();
22
+ }
23
+ return new editorWorker();
24
+ }
25
+ };
26
+ languages.typescript.typescriptDefaults.setEagerModelSync(true);
27
+ }
28
+ export {
29
+ init
30
+ };
@@ -1,17 +1,25 @@
1
- import { ObjStr, ObjUnk } from '../../config';
2
- import { SpecObjs, Spec } from '../../utils/index';
3
- export declare function getHmtl(propsname: string, param: {
4
- [key: string]: SpecObjs[];
5
- }, value: ObjUnk, slotValue?: ObjStr, propsText?: ObjStr, exposeText?: ObjUnk): Promise<string>;
6
- export declare function setValStringify(v: unknown, key: string, propsText?: ObjStr): string | Promise<string>;
7
- type SelectsObj = {
8
- label: string;
9
- prop: unknown;
10
- };
11
- export declare function getSpecType(val: Spec): {
12
- arr: SelectsObj[];
13
- type: string;
14
- dataType: string[];
15
- };
16
- export declare function getDefaultValue(obj: Spec, is?: boolean): any;
17
- export {};
1
+ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../vue/dist/vue.esm-bundler.js';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ name: {
4
+ type: StringConstructor;
5
+ };
6
+ html: {
7
+ type: StringConstructor;
8
+ default(): string;
9
+ };
10
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
+ refresh: (...args: any[]) => void;
12
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
13
+ name: {
14
+ type: StringConstructor;
15
+ };
16
+ html: {
17
+ type: StringConstructor;
18
+ default(): string;
19
+ };
20
+ }>> & Readonly<{
21
+ onRefresh?: ((...args: any[]) => any) | undefined;
22
+ }>, {
23
+ html: string;
24
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
25
+ export default _default;
@@ -3,3 +3,54 @@ export declare function getJs(parent: HTMLElement, value: string): monaco.editor
3
3
  export declare function getHtml(parent: HTMLElement, value: string): monaco.editor.IStandaloneCodeEditor;
4
4
  export declare function getJson(parent: HTMLElement, value: string): monaco.editor.IStandaloneCodeEditor;
5
5
  export declare function getCss(parent: HTMLElement, value: string): monaco.editor.IStandaloneCodeEditor;
6
+ ]): string[];
7
+ new (arrayLength: number): string[];
8
+ new (...items: string[]): string[];
9
+ isArray(arg: any): arg is any[];
10
+ readonly prototype: any[];
11
+ from<T>(arrayLike: ArrayLike<T>): T[];
12
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
13
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
14
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
15
+ of<T>(...items: T[]): T[];
16
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
17
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
18
+ readonly [Symbol.species]: ArrayConstructor;
19
+ };
20
+ };
21
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ "update:modelValue": (...args: any[]) => void;
23
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
24
+ modelValue: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ format: {
29
+ type: StringConstructor;
30
+ };
31
+ options: {
32
+ type: {
33
+ (arrayLength: number): string[];
34
+ (...items: string[]): string[];
35
+ new (arrayLength: number): string[];
36
+ new (...items: string[]): string[];
37
+ isArray(arg: any): arg is any[];
38
+ readonly prototype: any[];
39
+ from<T>(arrayLike: ArrayLike<T>): T[];
40
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
41
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
42
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
43
+ of<T>(...items: T[]): T[];
44
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
45
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
46
+ readonly [Symbol.species]: ArrayConstructor;
47
+ };
48
+ };
49
+ }>> & Readonly<{
50
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
51
+ }>, {
52
+ modelValue: string;
53
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
54
+ refText: HTMLDivElement;
55
+ }, HTMLDivElement>;
56
+ export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("monaco-editor/esm/vs/editor/editor.main"),t=require("monaco-editor/esm/vs/editor/editor.worker?worker"),n=require("monaco-editor/esm/vs/language/json/json.worker?worker"),s=require("monaco-editor/esm/vs/language/css/css.worker?worker"),i=require("monaco-editor/esm/vs/language/html/html.worker?worker"),o=require("monaco-editor/esm/vs/language/typescript/ts.worker?worker");function c(){self.MonacoEnvironment={getWorker(u,r){return r==="json"?new n:r==="css"||r==="scss"||r==="less"?new s:r==="html"||r==="handlebars"||r==="razor"?new i:r==="typescript"||r==="javascript"?new o:new t}},e.languages.typescript.typescriptDefaults.setEagerModelSync(!0)}exports.init=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("monaco-editor/esm/vs/editor/editor.main");function e(o){const r="/node_modules/monaco-editor/esm/vs/",t=new Worker(`${r}${o}.js?type=module&worker_file`,{type:"module"});return t.onerror=()=>{},t.postMessage(""),t}const n=e("editor/editor.worker"),i=e("language/json/json.worker"),c=e("language/css/css.worker"),u=e("language/html/html.worker"),g=e("language/typescript/ts.worker");function a(){self.MonacoEnvironment={getWorker(o,r){return r==="json"?i:r==="css"||r==="scss"||r==="less"?c:r==="html"||r==="handlebars"||r==="razor"?u:r==="typescript"||r==="javascript"?g:n}},s.languages.typescript.typescriptDefaults.setEagerModelSync(!0)}exports.init=a;
@@ -1 +1,4 @@
1
+ /**
2
+ * 初始化
3
+ */
1
4
  export declare function init(): void;
@@ -1,16 +1,19 @@
1
- import { languages as t } from "monaco-editor/esm/vs/editor/editor.main";
2
- import o from "monaco-editor/esm/vs/editor/editor.worker?worker";
3
- import e from "monaco-editor/esm/vs/language/json/json.worker?worker";
4
- import n from "monaco-editor/esm/vs/language/css/css.worker?worker";
5
- import s from "monaco-editor/esm/vs/language/html/html.worker?worker";
6
- import i from "monaco-editor/esm/vs/language/typescript/ts.worker?worker";
7
- function w() {
1
+ import { languages as s } from "monaco-editor/esm/vs/editor/editor.main";
2
+ function e(t) {
3
+ const r = "/node_modules/monaco-editor/esm/vs/", o = new Worker(`${r}${t}.js?type=module&worker_file`, {
4
+ type: "module"
5
+ });
6
+ return o.onerror = () => {
7
+ }, o.postMessage(""), o;
8
+ }
9
+ const n = e("editor/editor.worker"), c = e("language/json/json.worker"), i = e("language/css/css.worker"), u = e("language/html/html.worker"), k = e("language/typescript/ts.worker");
10
+ function p() {
8
11
  self.MonacoEnvironment = {
9
- getWorker(m, r) {
10
- return r === "json" ? new e() : r === "css" || r === "scss" || r === "less" ? new n() : r === "html" || r === "handlebars" || r === "razor" ? new s() : r === "typescript" || r === "javascript" ? new i() : new o();
12
+ getWorker(t, r) {
13
+ return r === "json" ? c : r === "css" || r === "scss" || r === "less" ? i : r === "html" || r === "handlebars" || r === "razor" ? u : r === "typescript" || r === "javascript" ? k : n;
11
14
  }
12
- }, t.typescript.typescriptDefaults.setEagerModelSync(!0);
15
+ }, s.typescript.typescriptDefaults.setEagerModelSync(!0);
13
16
  }
14
17
  export {
15
- w as init
18
+ p as init
16
19
  };
@@ -0,0 +1 @@
1
+ export declare function init(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.73",
4
+ "version": "0.0.74",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -65,6 +65,11 @@
65
65
  "require": "./dist/node/index.cjs",
66
66
  "import": "./dist/node/index.js"
67
67
  },
68
+ "./init": {
69
+ "types": "./dist/node/init.d.ts",
70
+ "require": "./dist/node/init.cjs",
71
+ "import": "./dist/node/init.js"
72
+ },
68
73
  ".": {
69
74
  "require": {
70
75
  "types": "./dist/packages/index.d.cts",