delta-comic-core 0.2.1 → 0.2.2
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/dist/bundle.cjs +3 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +158 -65
- package/dist/bundle.js.map +1 -1
- package/dist/bundle2.cjs +1 -1
- package/dist/bundle2.cjs.map +1 -1
- package/dist/bundle2.js +4 -4
- package/dist/bundle2.js.map +1 -1
- package/dist/lib/components/image.vue.d.ts +1099 -4
- package/dist/lib/index.d.ts +1468 -7
- package/dist/lib/plugin/index.d.ts +25 -0
- package/dist/lib/utils/data.d.ts +1 -1
- package/dist/lib/utils/eventBus.d.ts +1 -1
- package/dist/pack.tgz +0 -0
- package/dist/vite/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/bundle2.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=(e,t)=>({entry:e.entry??`src/main.ts`,userscript:{name:{
|
|
1
|
+
const e=(e,t)=>({entry:e.entry??`src/main.ts`,userscript:{name:{display:e.displayName,id:e.name},version:`${e.version}/${e.supportCoreVersion}`,author:e.author,description:e.description,require:[`core`,...e.require??[]].map(e=>typeof e==`string`?`${e}:`:`${e.id}:${e.download??``}`)},build:{externalGlobals:t==`serve`?{}:{vue:`window.$$lib$$.Vue`,vant:`window.$$lib$$.Vant`,"naive-ui":`window.$$lib$$.Naive`,axios:`window.$$lib$$.Axios`,"es-toolkit":`window.$$lib$$.EsKits`,"delta-comic-core":`window.$$lib$$.Dcc`,"vue-router":`window.$$lib$$.VR`,"crypto-js":`window.$$lib$$.Crypto`}},server:{mountGmApi:!1,open:!1,prefix:!1}}),t=e=>e==`build`?{}:{externals:{vue:`window.$$lib$$.Vue`,vant:`window.$$lib$$.Vant`,"naive-ui":`window.$$lib$$.Naive`,axios:`window.$$lib$$.Axios`,"es-toolkit":`window.$$lib$$.EsKits`,"delta-comic-core":`window.$$lib$$.Dcc`,"vue-router":`window.$$lib$$.VR`,"crypto-js":`window.$$lib$$.Crypto`}};exports.createExternalConfig=t,exports.createMonkeyConfig=e;
|
|
2
2
|
//# sourceMappingURL=bundle2.cjs.map
|
package/dist/bundle2.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n
|
|
1
|
+
{"version":3,"file":"bundle2.cjs","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** 通过语义化版本号描述core支持版本,通过`semver.satisfies`判定 */\r\n supportCoreVersion: string\r\n /** @default ['core'] */\r\n require?: ({\r\n id: string\r\n download?: string\r\n } | string)[]\r\n /** @default 'src/main.ts' */\r\n entry?: string\r\n}, command: \"build\" | \"serve\") => ({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n display: config.displayName,\r\n id: config.name\r\n },\r\n version: `${config.version}/${config.supportCoreVersion}`,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])].map(v => {\r\n if (typeof v == 'string') return `${v}:`\r\n return `${v.id}:${v.download ?? ''}`\r\n }),\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ? {} : {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n },\r\n },\r\n server: {\r\n mountGmApi: false,\r\n open: false,\r\n prefix: false\r\n }\r\n} as any)\r\n\r\n\r\nexport const createExternalConfig = (command: \"build\" | \"serve\") => command == 'build' ? {} : {\r\n externals: {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n }\r\n} as any\r\n"],"mappings":"AAAA,MAAa,GAAsB,EAehC,KAAgC,CACjC,MAAO,EAAO,OAAS,cACvB,WAAY,CACV,KAAM,CACJ,QAAS,EAAO,YAChB,GAAI,EAAO,KACZ,CACD,QAAS,GAAG,EAAO,QAAQ,GAAG,EAAO,qBACrC,OAAQ,EAAO,OACf,YAAa,EAAO,YACpB,QAAS,CAAC,OAAQ,GAAI,EAAO,SAAW,EAAE,CAAE,CAAC,IAAI,GAC3C,OAAO,GAAK,SAAiB,GAAG,EAAE,GAC/B,GAAG,EAAE,GAAG,GAAG,EAAE,UAAY,KAChC,CACH,CACD,MAAO,CACL,gBAAiB,GAAW,QAAU,EAAE,CAAG,CACzC,IAAK,qBACL,KAAM,sBACN,WAAY,uBACZ,MAAO,uBACP,aAAc,wBACd,mBAAoB,qBACpB,aAAc,oBACd,YAAa,wBACd,CACF,CACD,OAAQ,CACN,WAAY,GACZ,KAAM,GACN,OAAQ,GACT,CACF,EAGY,EAAwB,GAA+B,GAAW,QAAU,EAAE,CAAG,CAC5F,UAAW,CACT,IAAK,qBACL,KAAM,sBACN,WAAY,uBACZ,MAAO,uBACP,aAAc,wBACd,mBAAoB,qBACpB,aAAc,oBACd,YAAa,wBACd,CACF"}
|
package/dist/bundle2.js
CHANGED
|
@@ -2,13 +2,13 @@ const createMonkeyConfig = (e, t) => ({
|
|
|
2
2
|
entry: e.entry ?? "src/main.ts",
|
|
3
3
|
userscript: {
|
|
4
4
|
name: {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
display: e.displayName,
|
|
6
|
+
id: e.name
|
|
7
7
|
},
|
|
8
|
-
version: e.version
|
|
8
|
+
version: `${e.version}/${e.supportCoreVersion}`,
|
|
9
9
|
author: e.author,
|
|
10
10
|
description: e.description,
|
|
11
|
-
require: ["core", ...e.require ?? []]
|
|
11
|
+
require: ["core", ...e.require ?? []].map((e) => typeof e == "string" ? `${e}:` : `${e.id}:${e.download ?? ""}`)
|
|
12
12
|
},
|
|
13
13
|
build: { externalGlobals: t == "serve" ? {} : {
|
|
14
14
|
vue: "window.$$lib$$.Vue",
|
package/dist/bundle2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n
|
|
1
|
+
{"version":3,"file":"bundle2.js","names":[],"sources":["../vite/index.ts"],"sourcesContent":["export const createMonkeyConfig = (config: {\r\n name: string\r\n displayName: string\r\n version: string\r\n author?: string\r\n description: string\r\n /** 通过语义化版本号描述core支持版本,通过`semver.satisfies`判定 */\r\n supportCoreVersion: string\r\n /** @default ['core'] */\r\n require?: ({\r\n id: string\r\n download?: string\r\n } | string)[]\r\n /** @default 'src/main.ts' */\r\n entry?: string\r\n}, command: \"build\" | \"serve\") => ({\r\n entry: config.entry ?? 'src/main.ts',\r\n userscript: {\r\n name: {\r\n display: config.displayName,\r\n id: config.name\r\n },\r\n version: `${config.version}/${config.supportCoreVersion}`,\r\n author: config.author,\r\n description: config.description,\r\n require: ['core', ...(config.require ?? [])].map(v => {\r\n if (typeof v == 'string') return `${v}:`\r\n return `${v.id}:${v.download ?? ''}`\r\n }),\r\n },\r\n build: {\r\n externalGlobals: command == 'serve' ? {} : {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n },\r\n },\r\n server: {\r\n mountGmApi: false,\r\n open: false,\r\n prefix: false\r\n }\r\n} as any)\r\n\r\n\r\nexport const createExternalConfig = (command: \"build\" | \"serve\") => command == 'build' ? {} : {\r\n externals: {\r\n vue: 'window.$$lib$$.Vue',\r\n vant: 'window.$$lib$$.Vant',\r\n 'naive-ui': 'window.$$lib$$.Naive',\r\n axios: 'window.$$lib$$.Axios',\r\n 'es-toolkit': 'window.$$lib$$.EsKits',\r\n 'delta-comic-core': 'window.$$lib$$.Dcc',\r\n 'vue-router': 'window.$$lib$$.VR',\r\n 'crypto-js': 'window.$$lib$$.Crypto'\r\n }\r\n} as any\r\n"],"mappings":"AAAA,MAAa,sBAAsB,GAehC,OAAgC;CACjC,OAAO,EAAO,SAAS;CACvB,YAAY;EACV,MAAM;GACJ,SAAS,EAAO;GAChB,IAAI,EAAO;GACZ;EACD,SAAS,GAAG,EAAO,QAAQ,GAAG,EAAO;EACrC,QAAQ,EAAO;EACf,aAAa,EAAO;EACpB,SAAS,CAAC,QAAQ,GAAI,EAAO,WAAW,EAAE,CAAE,CAAC,KAAI,MAC3C,OAAO,KAAK,WAAiB,GAAG,EAAE,KAC/B,GAAG,EAAE,GAAG,GAAG,EAAE,YAAY,KAChC;EACH;CACD,OAAO,EACL,iBAAiB,KAAW,UAAU,EAAE,GAAG;EACzC,KAAK;EACL,MAAM;EACN,YAAY;EACZ,OAAO;EACP,cAAc;EACd,oBAAoB;EACpB,cAAc;EACd,aAAa;EACd,EACF;CACD,QAAQ;EACN,YAAY;EACZ,MAAM;EACN,QAAQ;EACT;CACF,GAGY,wBAAwB,MAA+B,KAAW,UAAU,EAAE,GAAG,EAC5F,WAAW;CACT,KAAK;CACL,MAAM;CACN,YAAY;CACZ,OAAO;CACP,cAAc;CACd,oBAAoB;CACpB,cAAc;CACd,aAAa;CACd,EACF"}
|