@delta-comic/model 3.0.0-next.8 → 3.0.0-next.9

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/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Component } from "vue";
2
-
3
2
  //#region lib/struct/store.d.ts
4
3
  /**
5
4
  * 比如有很多需要注明来自哪个插件的值都可以用
@@ -49,7 +48,7 @@ declare class Struct<TRaw extends object> {
49
48
  * @param $$raw 一个纯粹json对象,不可以是高级对象
50
49
  */
51
50
  constructor($$raw: TRaw);
52
- static toRaw<T extends object, TRaw = (T extends Struct<infer TR> ? TR : T)>(item: T): TRaw;
51
+ static toRaw<T extends object, TRaw = T extends Struct<infer TR> ? TR : T>(item: T): TRaw;
53
52
  }
54
53
  //#endregion
55
54
  //#region lib/struct/meta.d.ts
@@ -149,8 +148,8 @@ interface FormDefaultValue {
149
148
  }
150
149
  type FormSingleConfigure = FormString | FormNumber | FormRadio | FormCheckbox | FormSwitch | FormDate | FormDateRange | FormPairs;
151
150
  type FormSingleResult<T extends FormSingleConfigure> = FormDefaultValue[T['type']];
152
- type FormConfigure = { [x in string]: FormSingleConfigure };
153
- type FormResult<T extends FormConfigure> = { [K in keyof T]: FormSingleResult<T[K]> };
151
+ type FormConfigure = { [x in string]: FormSingleConfigure; };
152
+ type FormResult<T extends FormConfigure> = { [K in keyof T]: FormSingleResult<T[K]>; };
154
153
  //#endregion
155
154
  //#region lib/model/download.d.ts
156
155
  type UniDownloadChecksumAlgorithm = 'sha256' | 'md5';
@@ -395,8 +394,7 @@ interface UniItemAuthor extends Metadatable {
395
394
  /**
396
395
  * 为空则不可订阅
397
396
  * 否则传入的为`defineConfig`中定义的`subscribe.type`
398
- */
399
- subscribe?: string;
397
+ */ subscribe?: string;
400
398
  actions?: string[];
401
399
  }
402
400
  interface UniItemRaw extends Metadatable {
@@ -543,4 +541,35 @@ declare abstract class UniComment extends Struct<UniCommentRaw> implements UniCo
543
541
  abstract fetchChildren: StreamQuery<UniComment>;
544
542
  }
545
543
  //#endregion
546
- export { Base, FormCheckbox, FormConfigure, FormDate, FormDateRange, FormDefaultValue, FormNumber, FormPairs, FormRadio, FormResult, FormSingleConfigure, FormSingleResult, FormString, FormSwitch, Metadata, Metadatable, PageKey, SourcedKeyMap, SourcedKeyType, SourcedValue, StreamQuery, Struct, UniComment, UniCommentRaw, UniCommentRow, UniContentDownloadProvider, UniContentDownloadSelection, UniContentLayoutComponent, UniContentPage, UniContentPageLike, UniContentType, UniContentType_, UniContentViewComponent, UniDownloadAsset, UniDownloadChecksum, UniDownloadChecksumAlgorithm, UniDownloadHttpHeaderValue, UniDownloadHttpMirror, UniDownloadHttpSource, UniDownloadPlan, UniDownloadRefreshSourceInput, UniDownloadRefreshSourceReason, UniDownloadResolveInput, UniDownloadSource, UniDownloadTorrentInput, UniDownloadTorrentSeedPolicy, UniDownloadTorrentSource, UniDownloader, UniEp, UniEpRaw, UniImage, UniImageAspect, UniImageRaw, UniImage_, UniItem, UniItemAuthor, UniItemCardComponent, UniItemCategory, UniItemDescription, UniItemRaw, UniItemTranslator, UniLegacyDownloader, UniResource, UniResourceProcessInstance, UniResourceProcessStep, UniResourceProcessStep_, UniResourceRaw, UniResourceType, UniUser, UniUserCardComponent, UniUserRaw };
544
+ //#region lib/model/plugin.d.ts
545
+ declare const DELTA_COMIC_PLUGIN_API_VERSION: 1;
546
+ interface PluginManifest {
547
+ apiVersion: typeof DELTA_COMIC_PLUGIN_API_VERSION;
548
+ name: {
549
+ display: string;
550
+ id: string;
551
+ };
552
+ version: {
553
+ plugin: string;
554
+ supportCore: string;
555
+ };
556
+ author: string;
557
+ description: string;
558
+ /** An HTTP(S) URL or a path relative to the installed plugin root. */
559
+ icon?: string;
560
+ require: {
561
+ id: string;
562
+ download?: string;
563
+ }[];
564
+ entry?: {
565
+ jsPath: string;
566
+ cssPath?: string;
567
+ };
568
+ kind?: 'normal' | 'preboot';
569
+ integrity?: {
570
+ algorithm: 'blake3' | 'sha256';
571
+ digest: string;
572
+ };
573
+ }
574
+ //#endregion
575
+ export { Base, DELTA_COMIC_PLUGIN_API_VERSION, FormCheckbox, FormConfigure, FormDate, FormDateRange, FormDefaultValue, FormNumber, FormPairs, FormRadio, FormResult, FormSingleConfigure, FormSingleResult, FormString, FormSwitch, Metadata, Metadatable, PageKey, PluginManifest, SourcedKeyMap, SourcedKeyType, SourcedValue, StreamQuery, Struct, UniComment, UniCommentRaw, UniCommentRow, UniContentDownloadProvider, UniContentDownloadSelection, UniContentLayoutComponent, UniContentPage, UniContentPageLike, UniContentType, UniContentType_, UniContentViewComponent, UniDownloadAsset, UniDownloadChecksum, UniDownloadChecksumAlgorithm, UniDownloadHttpHeaderValue, UniDownloadHttpMirror, UniDownloadHttpSource, UniDownloadPlan, UniDownloadRefreshSourceInput, UniDownloadRefreshSourceReason, UniDownloadResolveInput, UniDownloadSource, UniDownloadTorrentInput, UniDownloadTorrentSeedPolicy, UniDownloadTorrentSource, UniDownloader, UniEp, UniEpRaw, UniImage, UniImageAspect, UniImageRaw, UniImage_, UniItem, UniItemAuthor, UniItemCardComponent, UniItemCategory, UniItemDescription, UniItemRaw, UniItemTranslator, UniLegacyDownloader, UniResource, UniResourceProcessInstance, UniResourceProcessStep, UniResourceProcessStep_, UniResourceRaw, UniResourceType, UniUser, UniUserCardComponent, UniUserRaw };
package/dist/index.mjs CHANGED
@@ -357,6 +357,9 @@ var UniContentPage = class {
357
357
  */
358
358
  var UniDownloader = class {};
359
359
  //#endregion
360
+ //#region lib/model/plugin.ts
361
+ const DELTA_COMIC_PLUGIN_API_VERSION = 1;
362
+ //#endregion
360
363
  //#region lib/model/user.ts
361
364
  var UniUser = class {
362
365
  static userBase = shallowReactive(/* @__PURE__ */ new Map());
@@ -376,4 +379,4 @@ var UniUser = class {
376
379
  $$meta;
377
380
  };
378
381
  //#endregion
379
- export { SourcedKeyMap, SourcedValue, StreamQuery, Struct, UniComment, UniContentPage, UniDownloader, UniEp, UniImage, UniItem, UniResource, UniUser };
382
+ export { DELTA_COMIC_PLUGIN_API_VERSION, SourcedKeyMap, SourcedValue, StreamQuery, Struct, UniComment, UniContentPage, UniDownloader, UniEp, UniImage, UniItem, UniResource, UniUser };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-comic/model",
3
- "version": "3.0.0-next.8",
3
+ "version": "3.0.0-next.9",
4
4
  "description": "空阙虱楼",
5
5
  "homepage": "https://github.com/delta-comic/delta-comic",
6
6
  "license": "AGPL-3.0-only",
@@ -29,19 +29,19 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "es-toolkit": "^1.47.0",
33
- "@delta-comic/logger": "3.0.0-next.8"
32
+ "es-toolkit": "^1.50.0",
33
+ "@delta-comic/logger": "3.0.0-next.9"
34
34
  },
35
35
  "devDependencies": {
36
- "@typescript/native-preview": "7.0.0-dev.20260707.2",
37
- "vite-plus": "^0.2.4",
38
- "vitest": "4.1.10"
36
+ "typescript": "npm:typescript-native-bridge@6.0.3-bridge.8.tsgo.7.0.2",
37
+ "vite-plus": "^0.2.7",
38
+ "vitest": "5.0.0-beta.7"
39
39
  },
40
40
  "peerDependencies": {
41
- "vue": "^3.5.40"
41
+ "vue": "^3.6.0-rc.2"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "vp pack",
45
- "typecheck": "tsgo -p tsconfig.app.json --noEmit && tsgo -p tsconfig.node.json --noEmit"
45
+ "typecheck": "tsc -p tsconfig.app.json --noEmit && tsc -p tsconfig.node.json --noEmit"
46
46
  }
47
47
  }