delta-comic-core 0.2.2 → 0.3.0
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 +1 -1
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +10 -4
- package/dist/bundle.js.map +1 -1
- package/dist/lib/components/image.vue.d.ts +2 -2
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/plugin/define.d.ts +27 -3
- package/dist/lib/struct/content.d.ts +16 -29
- package/dist/lib/struct/item.d.ts +18 -2
- package/dist/lib/utils/eventBus.d.ts +2 -0
- package/dist/pack.tgz +0 -0
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -4958,6 +4958,8 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4958
4958
|
ContentVideoPage: () => ContentVideoPage
|
|
4959
4959
|
}), ContentPage = class {
|
|
4960
4960
|
static viewLayout = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/viewLayout");
|
|
4961
|
+
static share = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/share");
|
|
4962
|
+
static shareToken = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/shareToken");
|
|
4961
4963
|
static tabbar = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/tabbar");
|
|
4962
4964
|
static addTabbar(e, ...n) {
|
|
4963
4965
|
this.tabbar.set(e, (this.tabbar.get(e) ?? []).concat(n));
|
|
@@ -4966,7 +4968,6 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4966
4968
|
static addCategories(e, ...n) {
|
|
4967
4969
|
this.categories.set(e, (this.categories.get(e) ?? []).concat(n));
|
|
4968
4970
|
}
|
|
4969
|
-
static itemCard = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/itemCard");
|
|
4970
4971
|
static contentPage = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/contentPage");
|
|
4971
4972
|
static levelboard = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/levelboard");
|
|
4972
4973
|
static addLevelboard(e, n) {
|
|
@@ -5012,6 +5013,7 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
5012
5013
|
return n(e);
|
|
5013
5014
|
}
|
|
5014
5015
|
static authorIcon = SourcedKeyMap.create();
|
|
5016
|
+
static itemCard = useGlobalVar(SourcedKeyMap.create(), "uni/item/itemCard");
|
|
5015
5017
|
static is(e) {
|
|
5016
5018
|
return e instanceof this;
|
|
5017
5019
|
}
|
|
@@ -5371,8 +5373,8 @@ const appConfig = new ConfigPointer("core", {
|
|
|
5371
5373
|
if (isFunction(e)) var n = e(window.$$safe$$);
|
|
5372
5374
|
else var n = e;
|
|
5373
5375
|
console.log("[definePlugin] new plugin defining...", n);
|
|
5374
|
-
let { name: r, content: i, image: a, search: o, user: s, subscribe: c } = n;
|
|
5375
|
-
if (i) for (let [e, { commentRow: n, contentPage: r, itemCard: a, layout: o, itemTranslator: s }] of Object.entries(i)) o && ContentPage.viewLayout.set(e, o), a &&
|
|
5376
|
+
let { name: r, content: i, image: a, search: o, user: s, subscribe: c, share: l } = n;
|
|
5377
|
+
if (i) for (let [e, { commentRow: n, contentPage: r, itemCard: a, layout: o, itemTranslator: s }] of Object.entries(i)) o && ContentPage.viewLayout.set(e, o), a && Item.itemCard.set(e, a), r && ContentPage.contentPage.set(e, r), n && Comment.commentRow.set(e, n), s && Item.itemTranslator.set(e, s);
|
|
5376
5378
|
if (a) {
|
|
5377
5379
|
if (a.forks) for (let [e, n] of Object.entries(a.forks)) Image$1.fork.set([r, e], n);
|
|
5378
5380
|
if (a.process) for (let [e, n] of Object.entries(a.process)) Image$1.processInstances.set([r, e], n);
|
|
@@ -5392,6 +5394,10 @@ const appConfig = new ConfigPointer("core", {
|
|
|
5392
5394
|
}
|
|
5393
5395
|
if (c) for (let [e, n] of Object.entries(c)) User.subscribes.set([r, e], n);
|
|
5394
5396
|
if (n.config) for (let e of n.config) useConfig().$resignerConfig(e);
|
|
5397
|
+
if (l) {
|
|
5398
|
+
for (let e of l.initiative ?? []) ContentPage.share.set([r, e.key], e);
|
|
5399
|
+
for (let e of l.tokenListen ?? []) ContentPage.shareToken.set([r, e.key], e);
|
|
5400
|
+
}
|
|
5395
5401
|
return SharedFunction.call("addPlugin", n);
|
|
5396
5402
|
}, decodePluginMeta = (e) => ({
|
|
5397
5403
|
name: {
|
|
@@ -5414,7 +5420,7 @@ const appConfig = new ConfigPointer("core", {
|
|
|
5414
5420
|
}), declareDependType = (e) => Symbol.for(`expose:${e}`), requireDepend = (e) => _pluginExposes.get(e), _pluginExposes = /* @__PURE__ */ new Map(), coreModule = declareDependType("core"), _ = void 0;
|
|
5415
5421
|
var package_default = {
|
|
5416
5422
|
name: "delta-comic-core",
|
|
5417
|
-
version: "0.
|
|
5423
|
+
version: "0.3.0",
|
|
5418
5424
|
description: "我曾亲眼见证神的熟视无睹.",
|
|
5419
5425
|
homepage: "https://github.com/wenxig/delta-comic-core",
|
|
5420
5426
|
repository: {
|