@delta-comic/plugin 3.0.0-next.17 → 3.0.0-next.19

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.
@@ -843,6 +843,9 @@ declare class MarketplaceSourceResolver implements PluginSourceResolver {
843
843
  }>;
844
844
  }
845
845
  //#endregion
846
+ //#region lib/adapters/fileStore.d.ts
847
+ declare const getTauriPluginRoot: (plugin: string) => Promise<string>;
848
+ //#endregion
846
849
  //#region lib/adapters/i18n.d.ts
847
850
  interface PluginI18nAdapter {
848
851
  setLocaleMessage(locale: string, message: PluginLocaleMessage): void;
@@ -1121,5 +1124,5 @@ declare const _default: PluginConfigFactory<{
1121
1124
  };
1122
1125
  }>;
1123
1126
  //#endregion
1124
- export { type ActionPageItem, ActivationContext, ActivationPipeline, ActivationStepUpdate, type Auth, type AutoCompleteProvider, type Barcode, type CallbackResult, CapabilityDefinition, CapabilityModule, type Category, CompositePluginCandidateProvider, ConfigDescription, ConfigEnv, ConfigPointer, content_d_exports as Content, type ContentHooks, type ContentModel, Contribution, ContributionChannel, ContributionHub, ContributionRegistry, ContributionValue, index_d_exports as Core, DCPluginConfig, DELTA_COMIC_PLUGIN_API_VERSION, DEV_CSS_PATH, DEV_ENTRY_PATH, DEV_MANIFEST_PATH, DEV_SERVER_LOADER_ID, DEV_SERVER_SOURCE_PREFIX, DatabasePluginArchiveRepository, DecodedPluginPackage, type Definition, DevServerPluginModuleReader, DevServerSourceResolver, expose_d_exports as Expose, type ExposeModel, type Favourites, GitHubSourceResolver, GitHubSourceResolverOptions, type HotCategory, type HotLevelboard, type HotPageContent, type HotSearchProvider, type HotTopButton, HttpSourceResolver, type InitiativeItem, type InjectCode, InstalledPluginCandidateProvider, InternalPluginCandidateProvider, InternalPluginDefinition, InternalPluginPreferences, type ItemProvider, type LifecycleHooks, LoadNormalOptions, LoadedPluginModule, LocalFileSourceResolver, LocalInternalPluginPreferences, MarketplaceSourceResolver, type Method, MissingPluginDependency, type Model, Platform, PluginArchiveRepository, PluginAuthGateway, PluginCandidate, PluginCandidateProvider, PluginCapabilityServices, PluginCatalog, PluginCatalogIndex, PluginCatalogListing, PluginCatalogPage, PluginCatalogPageReference, PluginCatalogPagination, PluginCatalogRelease, PluginCatalogRepository, PluginCatalogResult, PluginCatalogSource, PluginConfigFactory, type PluginConfigHooks, type PluginConfigModel, PluginConfigRegistry, PluginDependencyPlan, PluginDisposer, type PluginExposeRegistry, PluginFileReplacement, PluginFileStore, PluginHostServices, type PluginI18nAdapter, PluginInstallCatalog, PluginInstallInput, PluginInstallOptions, PluginInstallProgress, PluginInstallReporter, PluginInstallService, PluginInstallServiceOptions, type PluginLifecycleCleanup, PluginLoadingInfo, PluginLocaleMessage, PluginLocaleMessages, PluginManagementCapabilities, type PluginManifest, PluginManifestError, PluginMessageRegistry, PluginModuleReader, PluginOrigin, PluginPackageCodec, PluginPreloadRecovery, PluginRuntime, PluginRuntimeFailure, PluginRuntimeOperation, PluginRuntimeOptions, PluginRuntimeReport, PluginScope, PluginSourceResolver, PluginStore, type Promotes, RegisteredPluginConfig, remote_d_exports as Remote, type RemoteHooks, type RemoteListProvider, type RemoteModel, RemoteSelection, type RemoteSource, ResolvedPluginSource, type ResolvedTestGroup, type ResolvedTestGroupBase, type ResolvedTestRemoteGroup, type ResolvedTestResourceGroup, type Search, type SearchAim, type SearchMethod, type Selection, type Share, type SharePopupConfig, type ShareToken, social_d_exports as Social, type SocialHooks, type SocialModel, special_d_exports as Special, type SpecialModel, type Step, StoredPluginModuleReader, type Subscribe, type SubscribeListProvider, type Tabbar, type TestFunction, type TestGroup, type TestGroupBase, type TestRemoteGroup, type TestResourceGroup, UnwrapConfigPointer, user_d_exports as User, type UserAction, type UserActionPage, type UserModel, ZipPackageCodec, configurePluginHost, createAuthCapability, createConfigCapability, createContentCapability, createDefaultCapabilities, createI18nCapability, createLifecycleCapability, createModelCapability, createRemoteCapability, createSpecialCapability, createUserCapability, defineCapability, defineContributionChannel, defineDeltaComicPlugin, defineInternalPlugin, devServerUrl, findPluginDependencyCycles, installPlugin, isPluginManifestCompatible, parseDevServerPort, parsePluginManifest, planPluginDependencies, pluginCatalog, pluginCatalogIdFromInstallInput, pluginCatalogInstallInput, pluginConfigStore, pluginContributions, pluginI18n, pluginInstaller, pluginModelChannels, pluginRemoteSelectionChannel, pluginRuntime, pluginStore, preparePluginHost, resolvePluginIconUrl, safePluginPath, setPluginEnabled, uninstallPlugin, updatePlugin, updatePluginByName, useConfig, usePluginStore };
1127
+ export { type ActionPageItem, ActivationContext, ActivationPipeline, ActivationStepUpdate, type Auth, type AutoCompleteProvider, type Barcode, type CallbackResult, CapabilityDefinition, CapabilityModule, type Category, CompositePluginCandidateProvider, ConfigDescription, ConfigEnv, ConfigPointer, content_d_exports as Content, type ContentHooks, type ContentModel, Contribution, ContributionChannel, ContributionHub, ContributionRegistry, ContributionValue, index_d_exports as Core, DCPluginConfig, DELTA_COMIC_PLUGIN_API_VERSION, DEV_CSS_PATH, DEV_ENTRY_PATH, DEV_MANIFEST_PATH, DEV_SERVER_LOADER_ID, DEV_SERVER_SOURCE_PREFIX, DatabasePluginArchiveRepository, DecodedPluginPackage, type Definition, DevServerPluginModuleReader, DevServerSourceResolver, expose_d_exports as Expose, type ExposeModel, type Favourites, GitHubSourceResolver, GitHubSourceResolverOptions, type HotCategory, type HotLevelboard, type HotPageContent, type HotSearchProvider, type HotTopButton, HttpSourceResolver, type InitiativeItem, type InjectCode, InstalledPluginCandidateProvider, InternalPluginCandidateProvider, InternalPluginDefinition, InternalPluginPreferences, type ItemProvider, type LifecycleHooks, LoadNormalOptions, LoadedPluginModule, LocalFileSourceResolver, LocalInternalPluginPreferences, MarketplaceSourceResolver, type Method, MissingPluginDependency, type Model, Platform, PluginArchiveRepository, PluginAuthGateway, PluginCandidate, PluginCandidateProvider, PluginCapabilityServices, PluginCatalog, PluginCatalogIndex, PluginCatalogListing, PluginCatalogPage, PluginCatalogPageReference, PluginCatalogPagination, PluginCatalogRelease, PluginCatalogRepository, PluginCatalogResult, PluginCatalogSource, PluginConfigFactory, type PluginConfigHooks, type PluginConfigModel, PluginConfigRegistry, PluginDependencyPlan, PluginDisposer, type PluginExposeRegistry, PluginFileReplacement, PluginFileStore, PluginHostServices, type PluginI18nAdapter, PluginInstallCatalog, PluginInstallInput, PluginInstallOptions, PluginInstallProgress, PluginInstallReporter, PluginInstallService, PluginInstallServiceOptions, type PluginLifecycleCleanup, PluginLoadingInfo, PluginLocaleMessage, PluginLocaleMessages, PluginManagementCapabilities, type PluginManifest, PluginManifestError, PluginMessageRegistry, PluginModuleReader, PluginOrigin, PluginPackageCodec, PluginPreloadRecovery, PluginRuntime, PluginRuntimeFailure, PluginRuntimeOperation, PluginRuntimeOptions, PluginRuntimeReport, PluginScope, PluginSourceResolver, PluginStore, type Promotes, RegisteredPluginConfig, remote_d_exports as Remote, type RemoteHooks, type RemoteListProvider, type RemoteModel, RemoteSelection, type RemoteSource, ResolvedPluginSource, type ResolvedTestGroup, type ResolvedTestGroupBase, type ResolvedTestRemoteGroup, type ResolvedTestResourceGroup, type Search, type SearchAim, type SearchMethod, type Selection, type Share, type SharePopupConfig, type ShareToken, social_d_exports as Social, type SocialHooks, type SocialModel, special_d_exports as Special, type SpecialModel, type Step, StoredPluginModuleReader, type Subscribe, type SubscribeListProvider, type Tabbar, type TestFunction, type TestGroup, type TestGroupBase, type TestRemoteGroup, type TestResourceGroup, UnwrapConfigPointer, user_d_exports as User, type UserAction, type UserActionPage, type UserModel, ZipPackageCodec, configurePluginHost, createAuthCapability, createConfigCapability, createContentCapability, createDefaultCapabilities, createI18nCapability, createLifecycleCapability, createModelCapability, createRemoteCapability, createSpecialCapability, createUserCapability, defineCapability, defineContributionChannel, defineDeltaComicPlugin, defineInternalPlugin, devServerUrl, findPluginDependencyCycles, getTauriPluginRoot, installPlugin, isPluginManifestCompatible, parseDevServerPort, parsePluginManifest, planPluginDependencies, pluginCatalog, pluginCatalogIdFromInstallInput, pluginCatalogInstallInput, pluginConfigStore, pluginContributions, pluginI18n, pluginInstaller, pluginModelChannels, pluginRemoteSelectionChannel, pluginRuntime, pluginStore, preparePluginHost, resolvePluginIconUrl, safePluginPath, setPluginEnabled, uninstallPlugin, updatePlugin, updatePluginByName, useConfig, usePluginStore };
1125
1128
  //# sourceMappingURL=index.d.mts.map
@@ -585,13 +585,6 @@ const parsePluginManifest = (value) => {
585
585
  }
586
586
  };
587
587
  if (manifest.icon !== void 0) result.icon = pluginIcon(manifest.icon);
588
- if (manifest.entry !== void 0) {
589
- const entry = record$1(manifest.entry, "manifest.entry");
590
- result.entry = {
591
- jsPath: safePluginPath(entry.jsPath, "manifest.entry.jsPath"),
592
- ...entry.cssPath === void 0 ? {} : { cssPath: safePluginPath(entry.cssPath, "manifest.entry.cssPath") }
593
- };
594
- }
595
588
  if (manifest.integrity !== void 0) {
596
589
  const integrity = record$1(manifest.integrity, "manifest.integrity");
597
590
  if (integrity.algorithm !== "blake3" && integrity.algorithm !== "sha256") throw new PluginManifestError("manifest.integrity.algorithm is unsupported");
@@ -1175,7 +1168,7 @@ var StoredPluginModuleReader = class {
1175
1168
  }
1176
1169
  async read(archive, signal) {
1177
1170
  const plugin = archive.pluginName;
1178
- const url = await this.files.createModuleUrl(plugin, "index.mjs");
1171
+ const url = await this.files.createModuleUrl(plugin, "index.js");
1179
1172
  if (signal.aborted) {
1180
1173
  this.files.release(plugin);
1181
1174
  throw signal.reason;
@@ -1488,7 +1481,7 @@ var DevServerSourceResolver = class {
1488
1481
  const manifestText = await fetchDevText(devServerUrl(port, DEV_MANIFEST_PATH), signal);
1489
1482
  const manifest = parsePluginManifest(JSON.parse(manifestText ?? ""));
1490
1483
  await fetchDevText(devServerUrl(port, DEV_ENTRY_PATH), signal);
1491
- if (manifest.entry?.cssPath !== void 0) await fetchDevText(devServerUrl(port, DEV_CSS_PATH), signal, true);
1484
+ await fetchDevText(devServerUrl(port, DEV_CSS_PATH), signal, true);
1492
1485
  return {
1493
1486
  installInput: input,
1494
1487
  package: {
@@ -1570,6 +1563,10 @@ var MarketplaceSourceResolver = class {
1570
1563
  };
1571
1564
  //#endregion
1572
1565
  //#region lib/adapters/fileStore.ts
1566
+ const getTauriPluginRoot = async (plugin) => {
1567
+ const { appLocalDataDir, join } = await import("@tauri-apps/api/path");
1568
+ return await join(await appLocalDataDir(), "plugin", plugin);
1569
+ };
1573
1570
  const mimeType = (path) => ({
1574
1571
  avif: "image/avif",
1575
1572
  gif: "image/gif",
@@ -1666,8 +1663,7 @@ var IndexedDbPluginFileBackend = class {
1666
1663
  };
1667
1664
  var TauriPluginFileBackend = class {
1668
1665
  async #root(plugin) {
1669
- const { appLocalDataDir, join } = await import("@tauri-apps/api/path");
1670
- return await join(await appLocalDataDir(), "plugin", plugin);
1666
+ return await getTauriPluginRoot(plugin);
1671
1667
  }
1672
1668
  async read(plugin, path) {
1673
1669
  const [{ join }, fs] = await Promise.all([import("@tauri-apps/api/path"), import("@tauri-apps/plugin-fs")]);
@@ -1847,7 +1843,7 @@ var PluginI18nRegistry = class {
1847
1843
  const pluginI18n = new PluginI18nRegistry();
1848
1844
  //#endregion
1849
1845
  //#region package.json
1850
- var version = "3.0.0-next.17";
1846
+ var version = "3.0.0-next.19";
1851
1847
  //#endregion
1852
1848
  //#region lib/core/env.ts
1853
1849
  const pluginName = "core";
@@ -2810,6 +2806,6 @@ const resolvePluginIconUrl = async (plugin, icon) => {
2810
2806
  };
2811
2807
  const usePluginStore = () => pluginStore;
2812
2808
  //#endregion
2813
- export { ActivationPipeline, CompositePluginCandidateProvider, ConfigPointer, content_exports as Content, ContributionHub, ContributionRegistry, core_exports as Core, DELTA_COMIC_PLUGIN_API_VERSION, DEV_CSS_PATH, DEV_ENTRY_PATH, DEV_MANIFEST_PATH, DEV_SERVER_LOADER_ID, DEV_SERVER_SOURCE_PREFIX, DatabasePluginArchiveRepository, DevServerPluginModuleReader, DevServerSourceResolver, expose_exports as Expose, GitHubSourceResolver, HttpSourceResolver, InstalledPluginCandidateProvider, InternalPluginCandidateProvider, LocalFileSourceResolver, LocalInternalPluginPreferences, MarketplaceSourceResolver, PluginInstallService, PluginManifestError, PluginRuntime, PluginScope, PluginStore, remote_exports as Remote, social_exports as Social, special_exports as Special, StoredPluginModuleReader, user_exports as User, ZipPackageCodec, configurePluginHost, createAuthCapability, createConfigCapability, createContentCapability, createDefaultCapabilities, createI18nCapability, createLifecycleCapability, createModelCapability, createRemoteCapability, createSpecialCapability, createUserCapability, defineCapability, defineContributionChannel, defineDeltaComicPlugin, defineInternalPlugin, devServerUrl, findPluginDependencyCycles, installPlugin, isPluginManifestCompatible, parseDevServerPort, parsePluginManifest, planPluginDependencies, pluginCatalog, pluginCatalogIdFromInstallInput, pluginCatalogInstallInput, pluginConfigStore, pluginContributions, pluginI18n, pluginInstaller, pluginModelChannels, pluginRemoteSelectionChannel, pluginRuntime, pluginStore, preparePluginHost, resolvePluginIconUrl, safePluginPath, setPluginEnabled, uninstallPlugin, updatePlugin, updatePluginByName, useConfig, usePluginStore };
2809
+ export { ActivationPipeline, CompositePluginCandidateProvider, ConfigPointer, content_exports as Content, ContributionHub, ContributionRegistry, core_exports as Core, DELTA_COMIC_PLUGIN_API_VERSION, DEV_CSS_PATH, DEV_ENTRY_PATH, DEV_MANIFEST_PATH, DEV_SERVER_LOADER_ID, DEV_SERVER_SOURCE_PREFIX, DatabasePluginArchiveRepository, DevServerPluginModuleReader, DevServerSourceResolver, expose_exports as Expose, GitHubSourceResolver, HttpSourceResolver, InstalledPluginCandidateProvider, InternalPluginCandidateProvider, LocalFileSourceResolver, LocalInternalPluginPreferences, MarketplaceSourceResolver, PluginInstallService, PluginManifestError, PluginRuntime, PluginScope, PluginStore, remote_exports as Remote, social_exports as Social, special_exports as Special, StoredPluginModuleReader, user_exports as User, ZipPackageCodec, configurePluginHost, createAuthCapability, createConfigCapability, createContentCapability, createDefaultCapabilities, createI18nCapability, createLifecycleCapability, createModelCapability, createRemoteCapability, createSpecialCapability, createUserCapability, defineCapability, defineContributionChannel, defineDeltaComicPlugin, defineInternalPlugin, devServerUrl, findPluginDependencyCycles, getTauriPluginRoot, installPlugin, isPluginManifestCompatible, parseDevServerPort, parsePluginManifest, planPluginDependencies, pluginCatalog, pluginCatalogIdFromInstallInput, pluginCatalogInstallInput, pluginConfigStore, pluginContributions, pluginI18n, pluginInstaller, pluginModelChannels, pluginRemoteSelectionChannel, pluginRuntime, pluginStore, preparePluginHost, resolvePluginIconUrl, safePluginPath, setPluginEnabled, uninstallPlugin, updatePlugin, updatePluginByName, useConfig, usePluginStore };
2814
2810
 
2815
2811
  //# sourceMappingURL=index.mjs.map