adnbn 0.5.7 → 0.6.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/cli/builders/app/command.d.ts +3 -6
- package/dist/cli/builders/app/index.d.ts +2 -14
- package/dist/cli/builders/locale/FirefoxLocaleValidator.d.ts +4 -7
- package/dist/cli/builders/locale/LocaleBuilder.d.ts +3 -6
- package/dist/cli/builders/locale/LocaleBuilder.js +3 -1
- package/dist/cli/builders/locale/LocaleBuilder.js.map +1 -1
- package/dist/cli/builders/locale/LocaleStructureValidator.d.ts +8 -0
- package/dist/cli/builders/locale/LocaleStructureValidator.js +64 -0
- package/dist/cli/builders/locale/LocaleStructureValidator.js.map +1 -0
- package/dist/cli/builders/locale/LocaleValidator.d.ts +4 -7
- package/dist/cli/builders/locale/LocaleValidator.js +2 -0
- package/dist/cli/builders/locale/LocaleValidator.js.map +1 -1
- package/dist/cli/builders/locale/OperaLocaleValidator.d.ts +4 -7
- package/dist/cli/builders/locale/index.d.ts +10 -19
- package/dist/cli/builders/locale/index.js +2 -0
- package/dist/cli/builders/locale/index.js.map +1 -1
- package/dist/cli/builders/manifest/ManifestBase.d.ts +30 -18
- package/dist/cli/builders/manifest/ManifestBase.js +212 -70
- package/dist/cli/builders/manifest/ManifestBase.js.map +1 -1
- package/dist/cli/builders/manifest/ManifestV2.d.ts +5 -12
- package/dist/cli/builders/manifest/ManifestV2.js +8 -7
- package/dist/cli/builders/manifest/ManifestV2.js.map +1 -1
- package/dist/cli/builders/manifest/ManifestV3.d.ts +5 -12
- package/dist/cli/builders/manifest/ManifestV3.js +9 -6
- package/dist/cli/builders/manifest/ManifestV3.js.map +1 -1
- package/dist/cli/builders/manifest/index.d.ts +3 -14
- package/dist/cli/builders/manifest/utils.d.ts +10 -15
- package/dist/cli/builders/manifest/utils.js +14 -2
- package/dist/cli/builders/manifest/utils.js.map +1 -1
- package/dist/cli/bundler/index.d.ts +2 -16
- package/dist/cli/bundler/plugins/EntrypointPlugin.d.ts +10 -19
- package/dist/cli/bundler/plugins/EntrypointPlugin.js +1 -0
- package/dist/cli/bundler/plugins/EntrypointPlugin.js.map +1 -1
- package/dist/cli/bundler/plugins/GenerateJsonPlugin.d.ts +5 -7
- package/dist/cli/bundler/plugins/GenerateJsonPlugin.js +1 -0
- package/dist/cli/bundler/plugins/GenerateJsonPlugin.js.map +1 -1
- package/dist/cli/bundler/plugins/ManifestPlugin.d.ts +3 -11
- package/dist/cli/bundler/plugins/ManifestPlugin.js +1 -0
- package/dist/cli/bundler/plugins/ManifestPlugin.js.map +1 -1
- package/dist/cli/bundler/plugins/ReplacePlugin.d.ts +3 -5
- package/dist/cli/bundler/plugins/ReplacePlugin.js +1 -0
- package/dist/cli/bundler/plugins/ReplacePlugin.js.map +1 -1
- package/dist/cli/bundler/plugins/WatchPlugin.d.ts +3 -6
- package/dist/cli/bundler/plugins/WatchPlugin.js +1 -0
- package/dist/cli/bundler/plugins/WatchPlugin.js.map +1 -1
- package/dist/cli/bundler/plugins/index.d.ts +5 -14
- package/dist/cli/bundler/utils/index.d.ts +2 -3
- package/dist/cli/bundler/utils/optimization.d.ts +2 -5
- package/dist/cli/bundler/utils/output.d.ts +2 -5
- package/dist/cli/entrypoint/file/ExpressionFile.d.ts +4 -10
- package/dist/cli/entrypoint/file/OptionFile.d.ts +3 -9
- package/dist/cli/entrypoint/file/SourceFile.d.ts +7 -11
- package/dist/cli/entrypoint/file/SourceFile.js +1 -0
- package/dist/cli/entrypoint/file/SourceFile.js.map +1 -1
- package/dist/cli/entrypoint/file/index.d.ts +4 -8
- package/dist/cli/entrypoint/file/injectors/core.d.ts +2 -4
- package/dist/cli/entrypoint/file/injectors/index.d.ts +2 -4
- package/dist/cli/entrypoint/file/parsers/AbstractParser.d.ts +6 -12
- package/dist/cli/entrypoint/file/parsers/AbstractParser.js +1 -0
- package/dist/cli/entrypoint/file/parsers/AbstractParser.js.map +1 -1
- package/dist/cli/entrypoint/file/parsers/ClassParser.d.ts +9 -15
- package/dist/cli/entrypoint/file/parsers/ClassParser.js +3 -0
- package/dist/cli/entrypoint/file/parsers/ClassParser.js.map +1 -1
- package/dist/cli/entrypoint/file/parsers/FunctionParser.d.ts +9 -17
- package/dist/cli/entrypoint/file/parsers/FunctionParser.js +3 -0
- package/dist/cli/entrypoint/file/parsers/FunctionParser.js.map +1 -1
- package/dist/cli/entrypoint/file/parsers/JSDocParser.d.ts +2 -5
- package/dist/cli/entrypoint/file/parsers/NodeFinder.d.ts +4 -10
- package/dist/cli/entrypoint/file/parsers/NodeFinder.js +1 -0
- package/dist/cli/entrypoint/file/parsers/NodeFinder.js.map +1 -1
- package/dist/cli/entrypoint/file/parsers/ObjectParser.d.ts +7 -15
- package/dist/cli/entrypoint/file/parsers/ObjectParser.js +1 -0
- package/dist/cli/entrypoint/file/parsers/ObjectParser.js.map +1 -1
- package/dist/cli/entrypoint/file/parsers/SignatureBuilder.d.ts +4 -12
- package/dist/cli/entrypoint/file/parsers/SignatureBuilder.js +5 -4
- package/dist/cli/entrypoint/file/parsers/SignatureBuilder.js.map +1 -1
- package/dist/cli/entrypoint/file/parsers/TypeResolver.d.ts +5 -11
- package/dist/cli/entrypoint/file/parsers/TypeResolver.js +2 -0
- package/dist/cli/entrypoint/file/parsers/TypeResolver.js.map +1 -1
- package/dist/cli/entrypoint/file/parsers/helpers/memberFilters.d.ts +1 -3
- package/dist/cli/entrypoint/file/parsers/index.d.ts +7 -14
- package/dist/cli/entrypoint/file/parsers/types.d.ts +4 -6
- package/dist/cli/entrypoint/file/resolvers/ImportResolver.d.ts +2 -6
- package/dist/cli/entrypoint/file/resolvers/ImportResolver.js +1 -0
- package/dist/cli/entrypoint/file/resolvers/ImportResolver.js.map +1 -1
- package/dist/cli/entrypoint/file/resolvers/TsResolver.d.ts +2 -5
- package/dist/cli/entrypoint/file/resolvers/index.d.ts +2 -3
- package/dist/cli/entrypoint/file/types.d.ts +5 -7
- package/dist/cli/entrypoint/finder/AbstractAssetFinder.d.ts +3 -16
- package/dist/cli/entrypoint/finder/AbstractEntrypointFinder.d.ts +4 -17
- package/dist/cli/entrypoint/finder/AbstractEntrypointFinder.js +22 -17
- package/dist/cli/entrypoint/finder/AbstractEntrypointFinder.js.map +1 -1
- package/dist/cli/entrypoint/finder/AbstractFinder.d.ts +4 -15
- package/dist/cli/entrypoint/finder/AbstractFinder.js +7 -2
- package/dist/cli/entrypoint/finder/AbstractFinder.js.map +1 -1
- package/dist/cli/entrypoint/finder/AbstractOptionsFinder.d.ts +3 -16
- package/dist/cli/entrypoint/finder/AbstractPluginFinder.d.ts +3 -18
- package/dist/cli/entrypoint/finder/AbstractTransportFinder.d.ts +9 -26
- package/dist/cli/entrypoint/finder/AbstractViewFinder.d.ts +9 -24
- package/dist/cli/entrypoint/finder/AssetPluginFinder.d.ts +8 -19
- package/dist/cli/entrypoint/finder/AssetPluginFinder.js +2 -0
- package/dist/cli/entrypoint/finder/AssetPluginFinder.js.map +1 -1
- package/dist/cli/entrypoint/finder/BackgroundFinder.d.ts +5 -19
- package/dist/cli/entrypoint/finder/CommandFinder.d.ts +7 -22
- package/dist/cli/entrypoint/finder/ContentFinder.d.ts +5 -19
- package/dist/cli/entrypoint/finder/IconFinder.d.ts +12 -25
- package/dist/cli/entrypoint/finder/LocaleFinder.d.ts +14 -22
- package/dist/cli/entrypoint/finder/LocaleFinder.js +23 -9
- package/dist/cli/entrypoint/finder/LocaleFinder.js.map +1 -1
- package/dist/cli/entrypoint/finder/OffscreenFinder.d.ts +5 -26
- package/dist/cli/entrypoint/finder/OffscreenViewFinder.d.ts +8 -29
- package/dist/cli/entrypoint/finder/OffscreenViewFinder.js +1 -0
- package/dist/cli/entrypoint/finder/OffscreenViewFinder.js.map +1 -1
- package/dist/cli/entrypoint/finder/PageFinder.d.ts +5 -22
- package/dist/cli/entrypoint/finder/PluginFinder.d.ts +7 -19
- package/dist/cli/entrypoint/finder/PluginFinder.js +2 -0
- package/dist/cli/entrypoint/finder/PluginFinder.js.map +1 -1
- package/dist/cli/entrypoint/finder/PopupFinder.d.ts +5 -22
- package/dist/cli/entrypoint/finder/RelayFinder.d.ts +5 -25
- package/dist/cli/entrypoint/finder/ServiceFinder.d.ts +5 -25
- package/dist/cli/entrypoint/finder/SidebarFinder.d.ts +5 -22
- package/dist/cli/entrypoint/finder/index.d.ts +18 -43
- package/dist/cli/entrypoint/index.d.ts +4 -64
- package/dist/cli/entrypoint/name/InlineNameGenerator.d.ts +2 -12
- package/dist/cli/entrypoint/name/NameGenerator.d.ts +2 -11
- package/dist/cli/entrypoint/name/NameGenerator.js +1 -0
- package/dist/cli/entrypoint/name/NameGenerator.js.map +1 -1
- package/dist/cli/entrypoint/name/index.d.ts +2 -9
- package/dist/cli/entrypoint/parser/AbstractParser.d.ts +14 -29
- package/dist/cli/entrypoint/parser/AbstractParser.js +1 -0
- package/dist/cli/entrypoint/parser/AbstractParser.js.map +1 -1
- package/dist/cli/entrypoint/parser/BackgroundParser.d.ts +3 -23
- package/dist/cli/entrypoint/parser/CommandParser.d.ts +4 -24
- package/dist/cli/entrypoint/parser/CommandParser.js +20 -5
- package/dist/cli/entrypoint/parser/CommandParser.js.map +1 -1
- package/dist/cli/entrypoint/parser/ContentParser.d.ts +4 -23
- package/dist/cli/entrypoint/parser/OffscreenParser.d.ts +3 -28
- package/dist/cli/entrypoint/parser/PageParser.d.ts +3 -26
- package/dist/cli/entrypoint/parser/PopupParser.d.ts +3 -26
- package/dist/cli/entrypoint/parser/RelayParser.d.ts +4 -27
- package/dist/cli/entrypoint/parser/ServiceParser.d.ts +3 -27
- package/dist/cli/entrypoint/parser/SidebarParser.d.ts +3 -26
- package/dist/cli/entrypoint/parser/ViewParser.d.ts +60 -80
- package/dist/cli/entrypoint/parser/index.d.ts +9 -38
- package/dist/cli/entrypoint/utils/framework.d.ts +3 -12
- package/dist/cli/entrypoint/utils/index.d.ts +2 -10
- package/dist/cli/entrypoint/utils/resolve.d.ts +3 -5
- package/dist/cli/index.d.ts +1 -2
- package/dist/cli/plugins/asset.d.ts +2 -15
- package/dist/cli/plugins/background/Background.d.ts +4 -21
- package/dist/cli/plugins/background/BackgroundEntry.d.ts +7 -21
- package/dist/cli/plugins/background/BackgroundEntry.js +1 -0
- package/dist/cli/plugins/background/BackgroundEntry.js.map +1 -1
- package/dist/cli/plugins/background/BackgroundManifest.d.ts +5 -21
- package/dist/cli/plugins/background/Command.d.ts +6 -23
- package/dist/cli/plugins/background/Service.d.ts +5 -27
- package/dist/cli/plugins/background/ServiceDeclaration.d.ts +3 -17
- package/dist/cli/plugins/background/index.d.ts +2 -15
- package/dist/cli/plugins/bundler.d.ts +2 -15
- package/dist/cli/plugins/content/Content.d.ts +9 -24
- package/dist/cli/plugins/content/ContentDriver.d.ts +7 -22
- package/dist/cli/plugins/content/ContentDriver.js +1 -0
- package/dist/cli/plugins/content/ContentDriver.js.map +1 -1
- package/dist/cli/plugins/content/ContentManager.d.ts +8 -19
- package/dist/cli/plugins/content/ContentName.d.ts +5 -17
- package/dist/cli/plugins/content/ContentName.js +1 -0
- package/dist/cli/plugins/content/ContentName.js.map +1 -1
- package/dist/cli/plugins/content/Relay.d.ts +9 -30
- package/dist/cli/plugins/content/RelayDeclaration.d.ts +3 -17
- package/dist/cli/plugins/content/index.d.ts +2 -15
- package/dist/cli/plugins/content/types.d.ts +8 -16
- package/dist/cli/plugins/content/utils.d.ts +2 -11
- package/dist/cli/plugins/dotenv/index.d.ts +3 -16
- package/dist/cli/plugins/dotenv/utils.d.ts +4 -7
- package/dist/cli/plugins/html.d.ts +2 -15
- package/dist/cli/plugins/icon/Icon.d.ts +6 -22
- package/dist/cli/plugins/icon/declaration/IconDeclaration.d.ts +3 -16
- package/dist/cli/plugins/icon/declaration/index.d.ts +1 -13
- package/dist/cli/plugins/icon/index.d.ts +4 -21
- package/dist/cli/plugins/index.d.ts +22 -58
- package/dist/cli/plugins/index.js +32 -30
- package/dist/cli/plugins/index.js.map +1 -1
- package/dist/cli/plugins/locale/Locale.d.ts +3 -20
- package/dist/cli/plugins/locale/declaration/LocaleDeclaration.d.ts +4 -16
- package/dist/cli/plugins/locale/declaration/index.d.ts +1 -13
- package/dist/cli/plugins/locale/declaration/locale.d.ts +61 -11
- package/dist/cli/plugins/locale/index.d.ts +2 -15
- package/dist/cli/plugins/locale/index.js +44 -49
- package/dist/cli/plugins/locale/index.js.map +1 -1
- package/dist/cli/plugins/manifest.d.ts +2 -0
- package/dist/cli/plugins/manifest.js +27 -0
- package/dist/cli/plugins/manifest.js.map +1 -0
- package/dist/cli/plugins/meta/AbstractMeta.d.ts +2 -15
- package/dist/cli/plugins/meta/AbstractMeta.js +1 -0
- package/dist/cli/plugins/meta/AbstractMeta.js.map +1 -1
- package/dist/cli/plugins/meta/Author.d.ts +3 -16
- package/dist/cli/plugins/meta/Homepage.d.ts +3 -16
- package/dist/cli/plugins/meta/Incognito.d.ts +4 -16
- package/dist/cli/plugins/meta/SpecificSettings.d.ts +4 -16
- package/dist/cli/plugins/meta/index.d.ts +7 -20
- package/dist/cli/plugins/offscreen/Offscreen.d.ts +11 -35
- package/dist/cli/plugins/offscreen/OffscreenDeclaration.d.ts +3 -17
- package/dist/cli/plugins/offscreen/index.d.ts +2 -15
- package/dist/cli/plugins/optimization.d.ts +2 -15
- package/dist/cli/plugins/output.d.ts +2 -15
- package/dist/cli/plugins/page/Page.d.ts +8 -26
- package/dist/cli/plugins/page/declaration/PageDeclaration.d.ts +3 -16
- package/dist/cli/plugins/page/declaration/index.d.ts +1 -13
- package/dist/cli/plugins/page/index.d.ts +2 -15
- package/dist/cli/plugins/popup/Popup.d.ts +9 -27
- package/dist/cli/plugins/popup/declaration/PopupDeclaration.d.ts +3 -16
- package/dist/cli/plugins/popup/declaration/index.d.ts +1 -13
- package/dist/cli/plugins/popup/index.d.ts +2 -15
- package/dist/cli/plugins/public.d.ts +2 -15
- package/dist/cli/plugins/react.d.ts +2 -15
- package/dist/cli/plugins/sidebar/Sidebar.d.ts +9 -27
- package/dist/cli/plugins/sidebar/declaration/SidebarDeclaration.d.ts +3 -16
- package/dist/cli/plugins/sidebar/declaration/index.d.ts +1 -13
- package/dist/cli/plugins/sidebar/index.d.ts +2 -15
- package/dist/cli/plugins/style.d.ts +2 -15
- package/dist/cli/plugins/typescript/FileBuilder.d.ts +2 -15
- package/dist/cli/plugins/typescript/FileBuilder.js +1 -0
- package/dist/cli/plugins/typescript/FileBuilder.js.map +1 -1
- package/dist/cli/plugins/typescript/TypescriptConfig.d.ts +4 -17
- package/dist/cli/plugins/typescript/declaration/index.d.ts +2 -14
- package/dist/cli/plugins/typescript/declaration/transport/TransportDeclaration.d.ts +4 -17
- package/dist/cli/plugins/typescript/declaration/transport/TransportDeclaration.js +1 -0
- package/dist/cli/plugins/typescript/declaration/transport/TransportDeclaration.js.map +1 -1
- package/dist/cli/plugins/typescript/declaration/transport/index.d.ts +1 -13
- package/dist/cli/plugins/typescript/declaration/vendor/VendorDeclaration.d.ts +3 -16
- package/dist/cli/plugins/typescript/declaration/vendor/index.d.ts +1 -13
- package/dist/cli/plugins/typescript/index.d.ts +6 -20
- package/dist/cli/plugins/version/AbstractVersion.d.ts +2 -15
- package/dist/cli/plugins/version/AbstractVersion.js +2 -1
- package/dist/cli/plugins/version/AbstractVersion.js.map +1 -1
- package/dist/cli/plugins/version/AddonVersion.d.ts +3 -16
- package/dist/cli/plugins/version/BrowserMinimumVersion.d.ts +3 -16
- package/dist/cli/plugins/version/index.d.ts +5 -18
- package/dist/cli/plugins/view/View.d.ts +10 -24
- package/dist/cli/plugins/view/View.js +2 -0
- package/dist/cli/plugins/view/View.js.map +1 -1
- package/dist/cli/plugins/view/index.d.ts +3 -22
- package/dist/cli/resolvers/bundler.d.ts +4 -15
- package/dist/cli/resolvers/config.d.ts +2 -14
- package/dist/cli/resolvers/config.js +45 -6
- package/dist/cli/resolvers/config.js.map +1 -1
- package/dist/cli/resolvers/path.d.ts +11 -24
- package/dist/cli/resolvers/plugin.d.ts +3 -16
- package/dist/cli/utils/fs.d.ts +3 -5
- package/dist/cli/utils/path.d.ts +3 -5
- package/dist/cli/utils/string.d.ts +2 -4
- package/dist/cli/virtual/background.d.ts +1 -0
- package/dist/cli/virtual/command.d.ts +1 -0
- package/dist/cli/virtual/content.d.ts +1 -0
- package/dist/cli/virtual/index.d.ts +9 -0
- package/dist/cli/virtual/index.js +2 -2
- package/dist/cli/virtual/offscreen.background.d.ts +1 -0
- package/dist/cli/virtual/offscreen.d.ts +1 -0
- package/dist/cli/virtual/relay.d.ts +1 -0
- package/dist/cli/virtual/transport.d.ts +1 -0
- package/dist/cli/virtual/view.d.ts +1 -0
- package/dist/cli/virtual/virtual.d.ts +38 -38
- package/dist/entry/background/Builder.d.ts +3 -12
- package/dist/entry/background/Builder.js +1 -0
- package/dist/entry/background/Builder.js.map +1 -1
- package/dist/entry/background/index.d.ts +3 -12
- package/dist/entry/background/resolvers/definition.d.ts +3 -12
- package/dist/entry/background/resolvers/index.d.ts +1 -8
- package/dist/entry/command/Builder.d.ts +4 -12
- package/dist/entry/command/index.d.ts +3 -12
- package/dist/entry/command/resolvers/definition.d.ts +4 -13
- package/dist/entry/command/resolvers/index.d.ts +1 -8
- package/dist/entry/content/adapters/react/Builder.d.ts +3 -17
- package/dist/entry/content/adapters/react/Node.d.ts +6 -14
- package/dist/entry/content/adapters/react/Node.js +2 -0
- package/dist/entry/content/adapters/react/Node.js.map +1 -1
- package/dist/entry/content/adapters/react/index.d.ts +4 -18
- package/dist/entry/content/adapters/react/resolvers/index.d.ts +1 -8
- package/dist/entry/content/adapters/react/resolvers/render.d.ts +2 -11
- package/dist/entry/content/adapters/vanilla/Builder.d.ts +3 -17
- package/dist/entry/content/adapters/vanilla/Node.d.ts +2 -11
- package/dist/entry/content/adapters/vanilla/Node.js +2 -0
- package/dist/entry/content/adapters/vanilla/Node.js.map +1 -1
- package/dist/entry/content/adapters/vanilla/index.d.ts +4 -18
- package/dist/entry/content/core/AbstractMarker.d.ts +2 -11
- package/dist/entry/content/core/AbstractMarker.js +1 -0
- package/dist/entry/content/core/AbstractMarker.js.map +1 -1
- package/dist/entry/content/core/AttributeMarker.d.ts +3 -12
- package/dist/entry/content/core/Builder.d.ts +8 -17
- package/dist/entry/content/core/Context.d.ts +2 -11
- package/dist/entry/content/core/Context.js +1 -0
- package/dist/entry/content/core/Context.js.map +1 -1
- package/dist/entry/content/core/EventEmitter.d.ts +2 -11
- package/dist/entry/content/core/EventNode.d.ts +2 -11
- package/dist/entry/content/core/EventNode.js +2 -0
- package/dist/entry/content/core/EventNode.js.map +1 -1
- package/dist/entry/content/core/ManagedContext.d.ts +3 -12
- package/dist/entry/content/core/MarkerNode.d.ts +2 -11
- package/dist/entry/content/core/MarkerNode.js +2 -0
- package/dist/entry/content/core/MarkerNode.js.map +1 -1
- package/dist/entry/content/core/MountBuilder.d.ts +3 -16
- package/dist/entry/content/core/MountNode.d.ts +2 -11
- package/dist/entry/content/core/MountNode.js +2 -0
- package/dist/entry/content/core/MountNode.js.map +1 -1
- package/dist/entry/content/core/Node.d.ts +2 -11
- package/dist/entry/content/core/Node.js +2 -0
- package/dist/entry/content/core/Node.js.map +1 -1
- package/dist/entry/content/core/WeakMarker.d.ts +3 -12
- package/dist/entry/content/core/resolvers/anchor.d.ts +2 -11
- package/dist/entry/content/core/resolvers/container.d.ts +2 -11
- package/dist/entry/content/core/resolvers/definition.d.ts +3 -12
- package/dist/entry/content/core/resolvers/index.d.ts +6 -13
- package/dist/entry/content/core/resolvers/mount.d.ts +2 -11
- package/dist/entry/content/core/resolvers/render.d.ts +3 -12
- package/dist/entry/content/core/resolvers/watch.d.ts +4 -13
- package/dist/entry/content/index.d.ts +1 -8
- package/dist/entry/core/Builder.d.ts +2 -11
- package/dist/entry/offscreen/Builder.d.ts +8 -25
- package/dist/entry/offscreen/Builder.js +8 -1
- package/dist/entry/offscreen/Builder.js.map +1 -1
- package/dist/entry/offscreen/TransportBuilder.d.ts +6 -24
- package/dist/entry/offscreen/index.d.ts +4 -25
- package/dist/entry/relay/Builder.d.ts +7 -21
- package/dist/entry/relay/Builder.js +1 -0
- package/dist/entry/relay/Builder.js.map +1 -1
- package/dist/entry/relay/TransportBuilder.d.ts +6 -20
- package/dist/entry/relay/index.d.ts +4 -21
- package/dist/entry/service/Builder.d.ts +6 -20
- package/dist/entry/service/index.d.ts +2 -14
- package/dist/entry/transport/AbstractBuilder.d.ts +4 -14
- package/dist/entry/transport/index.d.ts +1 -14
- package/dist/entry/transport/resolvers/definition.d.ts +7 -20
- package/dist/entry/transport/resolvers/index.d.ts +1 -14
- package/dist/entry/view/adapters/react/Builder.d.ts +4 -16
- package/dist/entry/view/adapters/react/index.d.ts +4 -17
- package/dist/entry/view/adapters/react/resolvers/render.d.ts +2 -13
- package/dist/entry/view/adapters/vanilla/Builder.d.ts +3 -15
- package/dist/entry/view/adapters/vanilla/index.d.ts +4 -16
- package/dist/entry/view/core/Builder.d.ts +3 -14
- package/dist/entry/view/core/resolvers/container.d.ts +2 -13
- package/dist/entry/view/core/resolvers/definition.d.ts +3 -14
- package/dist/entry/view/core/resolvers/render.d.ts +3 -14
- package/dist/entry/view/index.d.ts +1 -10
- package/dist/index.d.ts +1 -43
- package/dist/locale/adapters/react/LocaleProvider.d.ts +4 -6
- package/dist/locale/adapters/react/LocaleProvider.js +5 -5
- package/dist/locale/adapters/react/LocaleProvider.js.map +1 -1
- package/dist/locale/adapters/react/context.d.ts +8 -13
- package/dist/locale/adapters/react/context.js +2 -5
- package/dist/locale/adapters/react/context.js.map +1 -1
- package/dist/locale/adapters/react/index.d.ts +2 -6
- package/dist/locale/helpers.d.ts +60 -36
- package/dist/locale/helpers.js +14 -14
- package/dist/locale/helpers.js.map +1 -1
- package/dist/locale/index.d.ts +3 -7
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/providers/AbstractLocale.d.ts +5 -8
- package/dist/locale/providers/AbstractLocale.js +9 -6
- package/dist/locale/providers/AbstractLocale.js.map +1 -1
- package/dist/locale/providers/CustomLocale.d.ts +5 -8
- package/dist/locale/providers/CustomLocale.js +3 -1
- package/dist/locale/providers/CustomLocale.js.map +1 -1
- package/dist/locale/providers/DynamicLocale.d.ts +7 -11
- package/dist/locale/providers/DynamicLocale.js +1 -1
- package/dist/locale/providers/DynamicLocale.js.map +1 -1
- package/dist/locale/providers/NativeLocale.d.ts +7 -10
- package/dist/locale/providers/NativeLocale.js.map +1 -1
- package/dist/locale/providers/index.d.ts +3 -6
- package/dist/locale/utils.d.ts +11 -14
- package/dist/main/app.d.ts +1 -1
- package/dist/main/app.js +3 -2
- package/dist/main/app.js.map +1 -1
- package/dist/main/background.d.ts +3 -12
- package/dist/main/browser.d.ts +1 -1
- package/dist/main/command.d.ts +4 -13
- package/dist/main/config.d.ts +3 -16
- package/dist/main/config.js.map +1 -1
- package/dist/main/content.d.ts +6 -18
- package/dist/main/env.d.ts +7 -15
- package/dist/main/icon.d.ts +6 -7
- package/dist/main/index.d.ts +17 -43
- package/dist/main/manifest.d.ts +1 -7
- package/dist/main/offscreen.d.ts +9 -22
- package/dist/main/offscreen.js +1 -1
- package/dist/main/offscreen.js.map +1 -1
- package/dist/main/page.d.ts +7 -19
- package/dist/main/plugin.d.ts +3 -16
- package/dist/main/popup.d.ts +8 -18
- package/dist/main/popup.js +2 -2
- package/dist/main/popup.js.map +1 -1
- package/dist/main/relay.d.ts +8 -21
- package/dist/main/service.d.ts +6 -15
- package/dist/main/sidebar.d.ts +8 -18
- package/dist/main/sidebar.js +2 -2
- package/dist/main/sidebar.js.map +1 -1
- package/dist/main/view.d.ts +1 -9
- package/dist/message/MessageManager.d.ts +2 -5
- package/dist/message/adapters/react/index.d.ts +1 -2
- package/dist/message/adapters/react/useMessageHandler.d.ts +2 -5
- package/dist/message/handlers/AbstractHandler.d.ts +2 -5
- package/dist/message/handlers/GeneralHandler.d.ts +3 -6
- package/dist/message/handlers/GeneralHandler.js +1 -0
- package/dist/message/handlers/GeneralHandler.js.map +1 -1
- package/dist/message/handlers/MapHandler.d.ts +3 -6
- package/dist/message/handlers/MapHandler.js +1 -0
- package/dist/message/handlers/MapHandler.js.map +1 -1
- package/dist/message/handlers/SingleHandler.d.ts +3 -6
- package/dist/message/handlers/SingleHandler.js +2 -0
- package/dist/message/handlers/SingleHandler.js.map +1 -1
- package/dist/message/handlers/index.d.ts +3 -5
- package/dist/message/index.d.ts +9 -13
- package/dist/message/providers/AbstractMessage.d.ts +2 -5
- package/dist/message/providers/Message.d.ts +4 -7
- package/dist/message/providers/index.d.ts +1 -4
- package/dist/offscreen/OffscreenBackground.d.ts +2 -9
- package/dist/offscreen/OffscreenBridge.d.ts +8 -9
- package/dist/offscreen/OffscreenBridge.js +55 -7
- package/dist/offscreen/OffscreenBridge.js.map +1 -1
- package/dist/offscreen/OffscreenManager.d.ts +4 -15
- package/dist/offscreen/OffscreenMessage.d.ts +2 -14
- package/dist/offscreen/index.d.ts +5 -26
- package/dist/offscreen/providers/Offscreen.d.ts +3 -14
- package/dist/offscreen/providers/ProxyOffscreen.d.ts +7 -18
- package/dist/offscreen/providers/ProxyOffscreen.js +44 -23
- package/dist/offscreen/providers/ProxyOffscreen.js.map +1 -1
- package/dist/offscreen/providers/RegisterOffscreen.d.ts +5 -18
- package/dist/offscreen/providers/RegisterOffscreen.js +1 -0
- package/dist/offscreen/providers/RegisterOffscreen.js.map +1 -1
- package/dist/offscreen/providers/index.d.ts +3 -17
- package/dist/offscreen/utils.d.ts +1 -3
- package/dist/relay/RelayManager.d.ts +6 -16
- package/dist/relay/RelayMessage.d.ts +2 -14
- package/dist/relay/RelayPermission.d.ts +4 -15
- package/dist/relay/index.d.ts +4 -22
- package/dist/relay/providers/ProxyRelay.d.ts +8 -19
- package/dist/relay/providers/ProxyRelay.js +2 -0
- package/dist/relay/providers/ProxyRelay.js.map +1 -1
- package/dist/relay/providers/RegisterRelay.d.ts +4 -16
- package/dist/relay/providers/RegisterRelay.js +2 -0
- package/dist/relay/providers/RegisterRelay.js.map +1 -1
- package/dist/relay/providers/Relay.d.ts +3 -14
- package/dist/relay/providers/index.d.ts +3 -18
- package/dist/relay/utils.d.ts +3 -5
- package/dist/service/ServiceManager.d.ts +4 -15
- package/dist/service/ServiceMessage.d.ts +2 -14
- package/dist/service/index.d.ts +4 -19
- package/dist/service/providers/ProxyService.d.ts +4 -15
- package/dist/service/providers/RegisterService.d.ts +3 -15
- package/dist/service/providers/RegisterService.js +1 -0
- package/dist/service/providers/RegisterService.js.map +1 -1
- package/dist/service/providers/Service.d.ts +3 -14
- package/dist/service/providers/index.d.ts +3 -15
- package/dist/transport/BaseTransport.d.ts +2 -13
- package/dist/transport/BaseTransport.js +1 -0
- package/dist/transport/BaseTransport.js.map +1 -1
- package/dist/transport/ProxyTransport.d.ts +4 -14
- package/dist/transport/RegisterTransport.d.ts +4 -16
- package/dist/transport/RegisterTransport.js +13 -20
- package/dist/transport/RegisterTransport.js.map +1 -1
- package/dist/transport/TransportManager.d.ts +2 -13
- package/dist/transport/TransportMessage.d.ts +3 -13
- package/dist/transport/index.d.ts +1 -9
- package/dist/types/app.d.ts +8 -6
- package/dist/types/app.js +7 -1
- package/dist/types/app.js.map +1 -1
- package/dist/types/background.d.ts +20 -7
- package/dist/types/browser.d.ts +6 -8
- package/dist/types/command.d.ts +27 -7
- package/dist/types/config.d.ts +673 -11
- package/dist/types/content.d.ts +195 -7
- package/dist/types/entrypoint.d.ts +106 -7
- package/dist/types/entrypoint.js.map +1 -1
- package/dist/types/env.d.ts +4 -6
- package/dist/types/framework.d.ts +1 -3
- package/dist/types/helpers.d.ts +6 -7
- package/dist/types/icon.d.ts +3 -5
- package/dist/types/locale.d.ts +35 -29
- package/dist/types/locale.js.map +1 -1
- package/dist/types/manifest.d.ts +163 -7
- package/dist/types/manifest.js.map +1 -1
- package/dist/types/message.d.ts +17 -19
- package/dist/types/message.js +1 -1
- package/dist/types/message.js.map +1 -1
- package/dist/types/offscreen.d.ts +13 -23
- package/dist/types/offscreen.js +2 -0
- package/dist/types/offscreen.js.map +1 -1
- package/dist/types/page.d.ts +5 -16
- package/dist/types/plugin.d.ts +101 -11
- package/dist/types/popup.d.ts +5 -16
- package/dist/types/relay.d.ts +13 -21
- package/dist/types/service.d.ts +9 -18
- package/dist/types/sidebar.d.ts +7 -17
- package/dist/types/transport.d.ts +22 -29
- package/dist/types/view.d.ts +18 -24
- package/package.json +9 -11
- package/dist/config-B38J9WIM.d.ts +0 -743
- package/dist/manifest-DKvERQ4d.d.ts +0 -503
|
@@ -1,38 +1,9 @@
|
|
|
1
|
-
export { default as BackgroundParser } from
|
|
2
|
-
export { default as CommandParser } from
|
|
3
|
-
export { default as ContentParser } from
|
|
4
|
-
export { default as PageParser } from
|
|
5
|
-
export { default as PopupParser } from
|
|
6
|
-
export { default as RelayParser } from
|
|
7
|
-
export { default as ServiceParser } from
|
|
8
|
-
export { default as SidebarParser } from
|
|
9
|
-
export { default as OffscreenParser } from
|
|
10
|
-
import './AbstractParser.js';
|
|
11
|
-
import 'zod';
|
|
12
|
-
import '../file/OptionFile.js';
|
|
13
|
-
import 'typescript';
|
|
14
|
-
import '../file/SourceFile.js';
|
|
15
|
-
import '../file/resolvers/ImportResolver.js';
|
|
16
|
-
import '../file/resolvers/TsResolver.js';
|
|
17
|
-
import '../file/types.js';
|
|
18
|
-
import '../../../types/app.js';
|
|
19
|
-
import '../../../types/browser.js';
|
|
20
|
-
import '../../../config-B38J9WIM.js';
|
|
21
|
-
import '@rspack/core';
|
|
22
|
-
import 'html-rspack-tags-plugin';
|
|
23
|
-
import '../../../manifest-DKvERQ4d.js';
|
|
24
|
-
import 'react';
|
|
25
|
-
import 'utility-types';
|
|
26
|
-
import '../../../types/helpers.js';
|
|
27
|
-
import '../../../types/locale.js';
|
|
28
|
-
import '../../../types/env.js';
|
|
29
|
-
import './ViewParser.js';
|
|
30
|
-
import '../../../types/view.js';
|
|
31
|
-
import '../../../types/page.js';
|
|
32
|
-
import '../../../types/popup.js';
|
|
33
|
-
import '../../../types/relay.js';
|
|
34
|
-
import '../../../types/transport.js';
|
|
35
|
-
import '../../../types/message.js';
|
|
36
|
-
import '../../../types/service.js';
|
|
37
|
-
import '../../../types/sidebar.js';
|
|
38
|
-
import '../../../types/offscreen.js';
|
|
1
|
+
export { default as BackgroundParser } from "./BackgroundParser.js";
|
|
2
|
+
export { default as CommandParser } from "./CommandParser.js";
|
|
3
|
+
export { default as ContentParser } from "./ContentParser.js";
|
|
4
|
+
export { default as PageParser } from "./PageParser.js";
|
|
5
|
+
export { default as PopupParser } from "./PopupParser.js";
|
|
6
|
+
export { default as RelayParser } from "./RelayParser.js";
|
|
7
|
+
export { default as ServiceParser } from "./ServiceParser.js";
|
|
8
|
+
export { default as SidebarParser } from "./SidebarParser.js";
|
|
9
|
+
export { default as OffscreenParser } from "./OffscreenParser.js";
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Framework } from
|
|
3
|
-
|
|
4
|
-
import 'utility-types';
|
|
5
|
-
import '../../../types/app.js';
|
|
6
|
-
import '../../../types/browser.js';
|
|
7
|
-
import '../../../types/helpers.js';
|
|
8
|
-
import '../../../types/locale.js';
|
|
9
|
-
|
|
10
|
-
declare const inferEntrypointFramework: (file: EntrypointFile) => Framework;
|
|
11
|
-
|
|
12
|
-
export { inferEntrypointFramework };
|
|
1
|
+
import { EntrypointFile } from "../../../types/entrypoint.js";
|
|
2
|
+
import { Framework } from "../../../types/framework.js";
|
|
3
|
+
export declare const inferEntrypointFramework: (file: EntrypointFile) => Framework;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
import '../../../manifest-DKvERQ4d.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'utility-types';
|
|
6
|
-
import '../../../types/app.js';
|
|
7
|
-
import '../../../types/browser.js';
|
|
8
|
-
import '../../../types/helpers.js';
|
|
9
|
-
import '../../../types/locale.js';
|
|
10
|
-
import '../../../types/framework.js';
|
|
1
|
+
export * from "./framework.js";
|
|
2
|
+
export * from "./resolve.js";
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
declare const hasEntrypointPath: (filename: string) => boolean;
|
|
2
|
-
declare const resolveEntrypointPath: (basepath: string) => string | undefined;
|
|
3
|
-
declare const resolveAssetsPath: (basepath: string) => string | undefined;
|
|
4
|
-
|
|
5
|
-
export { hasEntrypointPath, resolveAssetsPath, resolveEntrypointPath };
|
|
1
|
+
export declare const hasEntrypointPath: (filename: string) => boolean;
|
|
2
|
+
export declare const resolveEntrypointPath: (basepath: string) => string | undefined;
|
|
3
|
+
export declare const resolveAssetsPath: (basepath: string) => string | undefined;
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { }
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import 'html-rspack-tags-plugin';
|
|
4
|
-
import '../../types/app.js';
|
|
5
|
-
import '../../types/browser.js';
|
|
6
|
-
import '../../manifest-DKvERQ4d.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import 'utility-types';
|
|
9
|
-
import '../../types/helpers.js';
|
|
10
|
-
import '../../types/locale.js';
|
|
11
|
-
import '../../types/env.js';
|
|
12
|
-
|
|
13
|
-
declare const _default: PluginDefinition<[]>;
|
|
14
|
-
|
|
15
|
-
export { _default as default };
|
|
1
|
+
declare const _default: import("../../main/plugin.js").PluginDefinition<[]>;
|
|
2
|
+
export default _default;
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
import BackgroundEntry from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import '../../entrypoint/finder/AbstractEntrypointFinder.js';
|
|
6
|
-
import '../../entrypoint/finder/AbstractOptionsFinder.js';
|
|
7
|
-
import '../../entrypoint/finder/AbstractFinder.js';
|
|
8
|
-
import '../../../config-B38J9WIM.js';
|
|
9
|
-
import '@rspack/core';
|
|
10
|
-
import 'html-rspack-tags-plugin';
|
|
11
|
-
import '../../../types/app.js';
|
|
12
|
-
import '../../../types/browser.js';
|
|
13
|
-
import '../../../types/locale.js';
|
|
14
|
-
import '../../../types/helpers.js';
|
|
15
|
-
import '../../../types/env.js';
|
|
16
|
-
import 'react';
|
|
17
|
-
import 'utility-types';
|
|
18
|
-
|
|
19
|
-
declare class export_default extends export_default$1 {
|
|
1
|
+
import BackgroundEntry from "./BackgroundEntry.js";
|
|
2
|
+
import { BackgroundFinder } from "../../entrypoint/index.js";
|
|
3
|
+
import { BackgroundEntrypointOptions } from "../../../types/background.js";
|
|
4
|
+
export default class extends BackgroundFinder {
|
|
20
5
|
entry(): BackgroundEntry<BackgroundEntrypointOptions>;
|
|
21
6
|
}
|
|
22
|
-
|
|
23
|
-
export { export_default as default };
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '../../../types/helpers.js';
|
|
8
|
-
import '../../../types/locale.js';
|
|
9
|
-
import '../../entrypoint/finder/AbstractEntrypointFinder.js';
|
|
10
|
-
import '../../entrypoint/finder/AbstractOptionsFinder.js';
|
|
11
|
-
import '../../entrypoint/finder/AbstractFinder.js';
|
|
12
|
-
import '../../../config-B38J9WIM.js';
|
|
13
|
-
import '@rspack/core';
|
|
14
|
-
import 'html-rspack-tags-plugin';
|
|
15
|
-
import '../../../types/env.js';
|
|
16
|
-
|
|
17
|
-
declare class BackgroundEntry<O extends BackgroundEntrypointOptions> {
|
|
18
|
-
readonly finder: export_default<O>;
|
|
1
|
+
import { AbstractPluginFinder } from "../../entrypoint/index.js";
|
|
2
|
+
import { EntrypointEntries } from "../../../types/entrypoint.js";
|
|
3
|
+
import { BackgroundEntrypointOptions } from "../../../types/background.js";
|
|
4
|
+
import { ManifestHostPermissions, ManifestOptionalPermissions, ManifestPermissions } from "../../../types/manifest.js";
|
|
5
|
+
export default class BackgroundEntry<O extends BackgroundEntrypointOptions> {
|
|
6
|
+
readonly finder: AbstractPluginFinder<O>;
|
|
19
7
|
static readonly name: string;
|
|
20
|
-
constructor(finder:
|
|
8
|
+
constructor(finder: AbstractPluginFinder<O>);
|
|
21
9
|
entries(): Promise<EntrypointEntries>;
|
|
22
10
|
isPersistent(): Promise<boolean>;
|
|
23
11
|
getPermissions(): Promise<ManifestPermissions>;
|
|
@@ -25,5 +13,3 @@ declare class BackgroundEntry<O extends BackgroundEntrypointOptions> {
|
|
|
25
13
|
getHostPermissions(): Promise<ManifestHostPermissions>;
|
|
26
14
|
getOptionalHostPermissions(): Promise<ManifestHostPermissions>;
|
|
27
15
|
}
|
|
28
|
-
|
|
29
|
-
export { BackgroundEntry as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/cli/plugins/background/BackgroundEntry.ts"],"sourcesContent":["import {AbstractPluginFinder} from \"@cli/entrypoint/index.js\";\n\nimport {EntrypointEntries} from \"@typing/entrypoint\";\nimport {BackgroundEntrypointOptions, BackgroundEntryName} from \"@typing/background\";\nimport {ManifestHostPermissions, ManifestOptionalPermissions, ManifestPermissions} from \"@typing/manifest\";\n\nexport default class BackgroundEntry<O extends BackgroundEntrypointOptions> {\n public static readonly name: string = BackgroundEntryName;\n\n constructor(public readonly finder: AbstractPluginFinder<O>) {}\n\n public async entries(): Promise<EntrypointEntries> {\n const options = await this.finder.plugin().options();\n\n return new Map([[BackgroundEntry.name, new Set(options.keys())]]);\n }\n\n public async isPersistent(): Promise<boolean> {\n const options = await this.finder.plugin().options();\n\n return Array.from(options.values()).some(({persistent}) => persistent);\n }\n\n public async getPermissions(): Promise<ManifestPermissions> {\n const options = await this.finder.plugin().options();\n\n const permissions: ManifestPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.permissions && entry.permissions.length > 0) {\n entry.permissions.forEach(permission => permissions.add(permission));\n }\n }\n\n return permissions;\n }\n\n public async getOptionalPermissions(): Promise<ManifestOptionalPermissions> {\n const options = await this.finder.plugin().options();\n\n const optionalPermissions: ManifestOptionalPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.optionalPermissions && entry.optionalPermissions.length > 0) {\n entry.optionalPermissions.forEach(permission => optionalPermissions.add(permission));\n }\n }\n\n return optionalPermissions;\n }\n\n public async getHostPermissions(): Promise<ManifestHostPermissions> {\n const options = await this.finder.plugin().options();\n\n const hostPermissions: ManifestHostPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.hostPermissions && entry.hostPermissions.length > 0) {\n entry.hostPermissions.forEach(permission => hostPermissions.add(permission));\n }\n }\n\n return hostPermissions;\n }\n\n public async getOptionalHostPermissions(): Promise<ManifestHostPermissions> {\n const options = await this.finder.plugin().options();\n\n const optionalHostPermissions: ManifestHostPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.optionalHostPermissions && entry.optionalHostPermissions.length > 0) {\n entry.optionalHostPermissions.forEach(permission => optionalHostPermissions.add(permission));\n }\n }\n\n return optionalHostPermissions;\n }\n}\n"],"mappings":"AAGA,SAAqC,2BAA0B;AAG/D,MAAO,gBAAqE;AAAA,EAGxE,YAA4B,QAAiC;AAAjC;AAAA,EAAkC;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../../src/cli/plugins/background/BackgroundEntry.ts"],"sourcesContent":["import {AbstractPluginFinder} from \"@cli/entrypoint/index.js\";\n\nimport {EntrypointEntries} from \"@typing/entrypoint\";\nimport {BackgroundEntrypointOptions, BackgroundEntryName} from \"@typing/background\";\nimport {ManifestHostPermissions, ManifestOptionalPermissions, ManifestPermissions} from \"@typing/manifest\";\n\nexport default class BackgroundEntry<O extends BackgroundEntrypointOptions> {\n public static readonly name: string = BackgroundEntryName;\n\n constructor(public readonly finder: AbstractPluginFinder<O>) {}\n\n public async entries(): Promise<EntrypointEntries> {\n const options = await this.finder.plugin().options();\n\n return new Map([[BackgroundEntry.name, new Set(options.keys())]]);\n }\n\n public async isPersistent(): Promise<boolean> {\n const options = await this.finder.plugin().options();\n\n return Array.from(options.values()).some(({persistent}) => persistent);\n }\n\n public async getPermissions(): Promise<ManifestPermissions> {\n const options = await this.finder.plugin().options();\n\n const permissions: ManifestPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.permissions && entry.permissions.length > 0) {\n entry.permissions.forEach(permission => permissions.add(permission));\n }\n }\n\n return permissions;\n }\n\n public async getOptionalPermissions(): Promise<ManifestOptionalPermissions> {\n const options = await this.finder.plugin().options();\n\n const optionalPermissions: ManifestOptionalPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.optionalPermissions && entry.optionalPermissions.length > 0) {\n entry.optionalPermissions.forEach(permission => optionalPermissions.add(permission));\n }\n }\n\n return optionalPermissions;\n }\n\n public async getHostPermissions(): Promise<ManifestHostPermissions> {\n const options = await this.finder.plugin().options();\n\n const hostPermissions: ManifestHostPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.hostPermissions && entry.hostPermissions.length > 0) {\n entry.hostPermissions.forEach(permission => hostPermissions.add(permission));\n }\n }\n\n return hostPermissions;\n }\n\n public async getOptionalHostPermissions(): Promise<ManifestHostPermissions> {\n const options = await this.finder.plugin().options();\n\n const optionalHostPermissions: ManifestHostPermissions = new Set();\n\n for await (const entry of options.values()) {\n if (entry.optionalHostPermissions && entry.optionalHostPermissions.length > 0) {\n entry.optionalHostPermissions.forEach(permission => optionalHostPermissions.add(permission));\n }\n }\n\n return optionalHostPermissions;\n }\n}\n"],"mappings":"AAGA,SAAqC,2BAA0B;AAG/D,MAAO,gBAAqE;AAAA,EAGxE,YAA4B,QAAiC;AAAjC;AAAA,EAAkC;AAAA,EAAlC;AAAA,EAF5B,OAAuB,OAAe;AAAA,EAItC,MAAa,UAAsC;AAC/C,UAAM,UAAU,MAAM,KAAK,OAAO,OAAO,EAAE,QAAQ;AAEnD,WAAO,oBAAI,IAAI,CAAC,CAAC,gBAAgB,MAAM,IAAI,IAAI,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC;AAAA,EACpE;AAAA,EAEA,MAAa,eAAiC;AAC1C,UAAM,UAAU,MAAM,KAAK,OAAO,OAAO,EAAE,QAAQ;AAEnD,WAAO,MAAM,KAAK,QAAQ,OAAO,CAAC,EAAE,KAAK,CAAC,EAAC,WAAU,MAAM,UAAU;AAAA,EACzE;AAAA,EAEA,MAAa,iBAA+C;AACxD,UAAM,UAAU,MAAM,KAAK,OAAO,OAAO,EAAE,QAAQ;AAEnD,UAAM,cAAmC,oBAAI,IAAI;AAEjD,qBAAiB,SAAS,QAAQ,OAAO,GAAG;AACxC,UAAI,MAAM,eAAe,MAAM,YAAY,SAAS,GAAG;AACnD,cAAM,YAAY,QAAQ,gBAAc,YAAY,IAAI,UAAU,CAAC;AAAA,MACvE;AAAA,IACJ;AAEA,WAAO;AAAA,EACX;AAAA,EAEA,MAAa,yBAA+D;AACxE,UAAM,UAAU,MAAM,KAAK,OAAO,OAAO,EAAE,QAAQ;AAEnD,UAAM,sBAAmD,oBAAI,IAAI;AAEjE,qBAAiB,SAAS,QAAQ,OAAO,GAAG;AACxC,UAAI,MAAM,uBAAuB,MAAM,oBAAoB,SAAS,GAAG;AACnE,cAAM,oBAAoB,QAAQ,gBAAc,oBAAoB,IAAI,UAAU,CAAC;AAAA,MACvF;AAAA,IACJ;AAEA,WAAO;AAAA,EACX;AAAA,EAEA,MAAa,qBAAuD;AAChE,UAAM,UAAU,MAAM,KAAK,OAAO,OAAO,EAAE,QAAQ;AAEnD,UAAM,kBAA2C,oBAAI,IAAI;AAEzD,qBAAiB,SAAS,QAAQ,OAAO,GAAG;AACxC,UAAI,MAAM,mBAAmB,MAAM,gBAAgB,SAAS,GAAG;AAC3D,cAAM,gBAAgB,QAAQ,gBAAc,gBAAgB,IAAI,UAAU,CAAC;AAAA,MAC/E;AAAA,IACJ;AAEA,WAAO;AAAA,EACX;AAAA,EAEA,MAAa,6BAA+D;AACxE,UAAM,UAAU,MAAM,KAAK,OAAO,OAAO,EAAE,QAAQ;AAEnD,UAAM,0BAAmD,oBAAI,IAAI;AAEjE,qBAAiB,SAAS,QAAQ,OAAO,GAAG;AACxC,UAAI,MAAM,2BAA2B,MAAM,wBAAwB,SAAS,GAAG;AAC3E,cAAM,wBAAwB,QAAQ,gBAAc,wBAAwB,IAAI,UAAU,CAAC;AAAA,MAC/F;AAAA,IACJ;AAEA,WAAO;AAAA,EACX;AACJ;","names":[]}
|
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import '../../../types/browser.js';
|
|
7
|
-
import '../../../types/helpers.js';
|
|
8
|
-
import '../../../types/locale.js';
|
|
9
|
-
import '../../entrypoint/finder/AbstractPluginFinder.js';
|
|
10
|
-
import '../../entrypoint/finder/AbstractEntrypointFinder.js';
|
|
11
|
-
import '../../entrypoint/finder/AbstractOptionsFinder.js';
|
|
12
|
-
import '../../entrypoint/finder/AbstractFinder.js';
|
|
13
|
-
import '../../../config-B38J9WIM.js';
|
|
14
|
-
import '@rspack/core';
|
|
15
|
-
import 'html-rspack-tags-plugin';
|
|
16
|
-
import '../../../types/env.js';
|
|
17
|
-
|
|
18
|
-
declare class export_default{
|
|
19
|
-
protected entries: Set<BackgroundEntry<BackgroundOptions>>;
|
|
1
|
+
import BackgroundEntry from "./BackgroundEntry.js";
|
|
2
|
+
import { BackgroundEntrypointOptions } from "../../../types/background.js";
|
|
3
|
+
import { ManifestHostPermissions, ManifestOptionalPermissions, ManifestPermissions } from "../../../types/manifest.js";
|
|
4
|
+
export default class {
|
|
5
|
+
protected entries: Set<BackgroundEntry<import("../../../types/background.js").BackgroundOptions>>;
|
|
20
6
|
add(entry: BackgroundEntry<BackgroundEntrypointOptions>): this;
|
|
21
7
|
hasBackground(): Promise<boolean>;
|
|
22
8
|
isPersistent(): Promise<boolean>;
|
|
@@ -25,5 +11,3 @@ declare class export_default{
|
|
|
25
11
|
getHostPermissions(): Promise<ManifestHostPermissions>;
|
|
26
12
|
getOptionalHostPermissions(): Promise<ManifestHostPermissions>;
|
|
27
13
|
}
|
|
28
|
-
|
|
29
|
-
export { export_default as default };
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import BackgroundEntry from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import '../../entrypoint/finder/AbstractFinder.js';
|
|
8
|
-
import '../../../config-B38J9WIM.js';
|
|
9
|
-
import '@rspack/core';
|
|
10
|
-
import 'html-rspack-tags-plugin';
|
|
11
|
-
import '../../../types/app.js';
|
|
12
|
-
import '../../../types/browser.js';
|
|
13
|
-
import '../../../types/locale.js';
|
|
14
|
-
import '../../../types/helpers.js';
|
|
15
|
-
import '../../../types/env.js';
|
|
16
|
-
import 'react';
|
|
17
|
-
import 'utility-types';
|
|
18
|
-
import '../../entrypoint/name/InlineNameGenerator.js';
|
|
19
|
-
import '../../entrypoint/name/NameGenerator.js';
|
|
20
|
-
|
|
21
|
-
declare class Command extends export_default {
|
|
1
|
+
import BackgroundEntry from "./BackgroundEntry.js";
|
|
2
|
+
import { CommandFinder } from "../../entrypoint/index.js";
|
|
3
|
+
import { CommandConfig, CommandEntrypointOptions } from "../../../types/command.js";
|
|
4
|
+
import { ManifestCommands } from "../../../types/manifest.js";
|
|
5
|
+
import { EntrypointFile } from "../../../types/entrypoint.js";
|
|
6
|
+
export default class Command extends CommandFinder {
|
|
22
7
|
entry(): BackgroundEntry<CommandEntrypointOptions>;
|
|
23
8
|
get(file: EntrypointFile): CommandConfig | undefined;
|
|
24
9
|
/**
|
|
@@ -29,5 +14,3 @@ declare class Command extends export_default {
|
|
|
29
14
|
virtual(file: EntrypointFile): string;
|
|
30
15
|
manifest(): Promise<ManifestCommands | undefined>;
|
|
31
16
|
}
|
|
32
|
-
|
|
33
|
-
export { Command as default };
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import BackgroundEntry from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import '../../entrypoint/finder/AbstractOptionsFinder.js';
|
|
7
|
-
import '../../entrypoint/finder/AbstractFinder.js';
|
|
8
|
-
import '../../../config-B38J9WIM.js';
|
|
9
|
-
import '@rspack/core';
|
|
10
|
-
import 'html-rspack-tags-plugin';
|
|
11
|
-
import '../../../types/app.js';
|
|
12
|
-
import '../../../types/browser.js';
|
|
13
|
-
import '../../../types/locale.js';
|
|
14
|
-
import '../../../types/helpers.js';
|
|
15
|
-
import '../../../types/env.js';
|
|
16
|
-
import 'react';
|
|
17
|
-
import 'utility-types';
|
|
18
|
-
import '../../entrypoint/finder/AbstractTransportFinder.js';
|
|
19
|
-
import '../../entrypoint/name/InlineNameGenerator.js';
|
|
20
|
-
import '../../entrypoint/name/NameGenerator.js';
|
|
21
|
-
import '../../../types/transport.js';
|
|
22
|
-
import '../../../types/message.js';
|
|
23
|
-
import '../../../types/service.js';
|
|
24
|
-
|
|
25
|
-
declare class export_default extends export_default$1 {
|
|
1
|
+
import BackgroundEntry from "./BackgroundEntry.js";
|
|
2
|
+
import { ServiceFinder } from "../../entrypoint/index.js";
|
|
3
|
+
import { BackgroundEntrypointOptions } from "../../../types/background.js";
|
|
4
|
+
import { EntrypointFile } from "../../../types/entrypoint.js";
|
|
5
|
+
export default class extends ServiceFinder {
|
|
26
6
|
entry(): BackgroundEntry<BackgroundEntrypointOptions>;
|
|
27
7
|
/**
|
|
28
8
|
* Before creating the virtual module, it is necessary to run a command `await service.transport()`
|
|
@@ -31,5 +11,3 @@ declare class export_default extends export_default$1 {
|
|
|
31
11
|
*/
|
|
32
12
|
virtual(file: EntrypointFile): string;
|
|
33
13
|
}
|
|
34
|
-
|
|
35
|
-
export { export_default as default };
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import 'html-rspack-tags-plugin';
|
|
5
|
-
import '../../../types/app.js';
|
|
6
|
-
import '../../../types/browser.js';
|
|
7
|
-
import '../../../manifest-DKvERQ4d.js';
|
|
8
|
-
import 'react';
|
|
9
|
-
import 'utility-types';
|
|
10
|
-
import '../../../types/helpers.js';
|
|
11
|
-
import '../../../types/locale.js';
|
|
12
|
-
import '../../../types/env.js';
|
|
13
|
-
import '../typescript/FileBuilder.js';
|
|
14
|
-
|
|
15
|
-
declare class export_default extends export_default$1 {
|
|
1
|
+
import { TransportDeclaration } from "../typescript/index.js";
|
|
2
|
+
import { ReadonlyConfig } from "../../../types/config.js";
|
|
3
|
+
export default class extends TransportDeclaration {
|
|
16
4
|
constructor(config: ReadonlyConfig);
|
|
17
5
|
}
|
|
18
|
-
|
|
19
|
-
export { export_default as default };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import 'html-rspack-tags-plugin';
|
|
4
|
-
import '../../../types/app.js';
|
|
5
|
-
import '../../../types/browser.js';
|
|
6
|
-
import '../../../manifest-DKvERQ4d.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import 'utility-types';
|
|
9
|
-
import '../../../types/helpers.js';
|
|
10
|
-
import '../../../types/locale.js';
|
|
11
|
-
import '../../../types/env.js';
|
|
12
|
-
|
|
13
|
-
declare const _default: PluginDefinition<[]>;
|
|
14
|
-
|
|
15
|
-
export { _default as default };
|
|
1
|
+
declare const _default: import("../../../main/plugin.js").PluginDefinition<[]>;
|
|
2
|
+
export default _default;
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import 'html-rspack-tags-plugin';
|
|
4
|
-
import '../../types/app.js';
|
|
5
|
-
import '../../types/browser.js';
|
|
6
|
-
import '../../manifest-DKvERQ4d.js';
|
|
7
|
-
import 'react';
|
|
8
|
-
import 'utility-types';
|
|
9
|
-
import '../../types/helpers.js';
|
|
10
|
-
import '../../types/locale.js';
|
|
11
|
-
import '../../types/env.js';
|
|
12
|
-
|
|
13
|
-
declare const _default: PluginDefinition<[]>;
|
|
14
|
-
|
|
15
|
-
export { _default as default };
|
|
1
|
+
declare const _default: import("../../main/plugin.js").PluginDefinition<[]>;
|
|
2
|
+
export default _default;
|
|
@@ -1,28 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ContentProvider } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import '../../entrypoint/finder/AbstractFinder.js';
|
|
10
|
-
import '@rspack/core';
|
|
11
|
-
import 'html-rspack-tags-plugin';
|
|
12
|
-
import '../../../types/app.js';
|
|
13
|
-
import '../../../types/browser.js';
|
|
14
|
-
import '../../../types/locale.js';
|
|
15
|
-
import '../../../types/helpers.js';
|
|
16
|
-
import '../../../types/env.js';
|
|
17
|
-
import 'react';
|
|
18
|
-
import 'utility-types';
|
|
19
|
-
|
|
20
|
-
declare class export_default extends export_default$1 implements ContentProvider<ContentScriptEntrypointOptions> {
|
|
21
|
-
protected _driver?: export_default$2<ContentScriptEntrypointOptions>;
|
|
1
|
+
import ContentDriver from "./ContentDriver.js";
|
|
2
|
+
import { ContentProvider } from "./types.js";
|
|
3
|
+
import { ContentFinder } from "../../entrypoint/index.js";
|
|
4
|
+
import { ReadonlyConfig } from "../../../types/config.js";
|
|
5
|
+
import { ContentScriptEntrypointOptions } from "../../../types/content.js";
|
|
6
|
+
import { EntrypointFile } from "../../../types/entrypoint.js";
|
|
7
|
+
export default class extends ContentFinder implements ContentProvider<ContentScriptEntrypointOptions> {
|
|
8
|
+
protected _driver?: ContentDriver<ContentScriptEntrypointOptions>;
|
|
22
9
|
constructor(config: ReadonlyConfig);
|
|
23
|
-
driver():
|
|
10
|
+
driver(): ContentDriver<ContentScriptEntrypointOptions>;
|
|
24
11
|
virtual(file: EntrypointFile): string;
|
|
25
12
|
clear(): this;
|
|
26
13
|
}
|
|
27
|
-
|
|
28
|
-
export { export_default as default };
|
|
@@ -1,28 +1,13 @@
|
|
|
1
|
-
import { ContentDriver, ContentItems } from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import '../../../types/browser.js';
|
|
8
|
-
import '../../../types/helpers.js';
|
|
9
|
-
import '../../../types/locale.js';
|
|
10
|
-
import '../../entrypoint/finder/AbstractEntrypointFinder.js';
|
|
11
|
-
import '../../entrypoint/finder/AbstractOptionsFinder.js';
|
|
12
|
-
import '../../entrypoint/finder/AbstractFinder.js';
|
|
13
|
-
import '../../../config-B38J9WIM.js';
|
|
14
|
-
import '@rspack/core';
|
|
15
|
-
import 'html-rspack-tags-plugin';
|
|
16
|
-
import '../../../types/env.js';
|
|
17
|
-
|
|
18
|
-
declare class export_default<O extends ContentScriptEntrypointOptions> implements ContentDriver<O> {
|
|
19
|
-
protected readonly finder: export_default$1<O>;
|
|
1
|
+
import { ContentDriver, ContentItems } from "./types.js";
|
|
2
|
+
import { AbstractPluginFinder } from "../../entrypoint/index.js";
|
|
3
|
+
import { ContentScriptEntrypointOptions } from "../../../types/content.js";
|
|
4
|
+
import { EntrypointNameGenerator } from "../../../types/entrypoint.js";
|
|
5
|
+
export default class<O extends ContentScriptEntrypointOptions> implements ContentDriver<O> {
|
|
6
|
+
protected readonly finder: AbstractPluginFinder<O>;
|
|
20
7
|
protected _items?: ContentItems<O>;
|
|
21
8
|
protected readonly itemNames: EntrypointNameGenerator;
|
|
22
|
-
constructor(finder:
|
|
9
|
+
constructor(finder: AbstractPluginFinder<O>);
|
|
23
10
|
protected getItems(): Promise<ContentItems<O>>;
|
|
24
11
|
items(): Promise<ContentItems<O>>;
|
|
25
12
|
clear(): this;
|
|
26
13
|
}
|
|
27
|
-
|
|
28
|
-
export { export_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/cli/plugins/content/ContentDriver.ts"],"sourcesContent":["import {ContentDriver, ContentItems} from \"./types\";\n\nimport {AbstractPluginFinder, InlineNameGenerator} from \"@cli/entrypoint/index.js\";\n\nimport {ContentScriptEntrypointOptions} from \"@typing/content\";\nimport {EntrypointNameGenerator} from \"@typing/entrypoint\";\n\nexport default class<O extends ContentScriptEntrypointOptions> implements ContentDriver<O> {\n protected _items?: ContentItems<O>;\n\n protected readonly itemNames: EntrypointNameGenerator;\n\n constructor(protected readonly finder: AbstractPluginFinder<O>) {\n this.itemNames = new InlineNameGenerator(this.finder.type());\n }\n\n protected async getItems(): Promise<ContentItems<O>> {\n const items: ContentItems<O> = new Map();\n\n const files = await this.finder.plugin().options();\n\n for (const [file, options] of files) {\n items.set(this.itemNames.file(file), {file, options});\n }\n\n return items;\n }\n\n public async items(): Promise<ContentItems<O>> {\n return (this._items ??= await this.getItems());\n }\n\n public clear(): this {\n this._items = undefined;\n\n this.itemNames.reset();\n\n return this;\n }\n}\n"],"mappings":"AAEA,SAA8B,2BAA0B;AAKxD,MAAO,sBAAoF;AAAA,EAKvF,YAA+B,QAAiC;AAAjC;AAC3B,SAAK,YAAY,IAAI,oBAAoB,KAAK,OAAO,KAAK,CAAC;AAAA,EAC/D;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../../src/cli/plugins/content/ContentDriver.ts"],"sourcesContent":["import {ContentDriver, ContentItems} from \"./types\";\n\nimport {AbstractPluginFinder, InlineNameGenerator} from \"@cli/entrypoint/index.js\";\n\nimport {ContentScriptEntrypointOptions} from \"@typing/content\";\nimport {EntrypointNameGenerator} from \"@typing/entrypoint\";\n\nexport default class<O extends ContentScriptEntrypointOptions> implements ContentDriver<O> {\n protected _items?: ContentItems<O>;\n\n protected readonly itemNames: EntrypointNameGenerator;\n\n constructor(protected readonly finder: AbstractPluginFinder<O>) {\n this.itemNames = new InlineNameGenerator(this.finder.type());\n }\n\n protected async getItems(): Promise<ContentItems<O>> {\n const items: ContentItems<O> = new Map();\n\n const files = await this.finder.plugin().options();\n\n for (const [file, options] of files) {\n items.set(this.itemNames.file(file), {file, options});\n }\n\n return items;\n }\n\n public async items(): Promise<ContentItems<O>> {\n return (this._items ??= await this.getItems());\n }\n\n public clear(): this {\n this._items = undefined;\n\n this.itemNames.reset();\n\n return this;\n }\n}\n"],"mappings":"AAEA,SAA8B,2BAA0B;AAKxD,MAAO,sBAAoF;AAAA,EAKvF,YAA+B,QAAiC;AAAjC;AAC3B,SAAK,YAAY,IAAI,oBAAoB,KAAK,OAAO,KAAK,CAAC;AAAA,EAC/D;AAAA,EAF+B;AAAA,EAJrB;AAAA,EAES;AAAA,EAMnB,MAAgB,WAAqC;AACjD,UAAM,QAAyB,oBAAI,IAAI;AAEvC,UAAM,QAAQ,MAAM,KAAK,OAAO,OAAO,EAAE,QAAQ;AAEjD,eAAW,CAAC,MAAM,OAAO,KAAK,OAAO;AACjC,YAAM,IAAI,KAAK,UAAU,KAAK,IAAI,GAAG,EAAC,MAAM,QAAO,CAAC;AAAA,IACxD;AAEA,WAAO;AAAA,EACX;AAAA,EAEA,MAAa,QAAkC;AAC3C,WAAQ,KAAK,WAAL,KAAK,SAAW,MAAM,KAAK,SAAS;AAAA,EAChD;AAAA,EAEO,QAAc;AACjB,SAAK,SAAS;AAEd,SAAK,UAAU,MAAM;AAErB,WAAO;AAAA,EACX;AACJ;","names":[]}
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import '../../../types/helpers.js';
|
|
10
|
-
import '../../../types/locale.js';
|
|
11
|
-
import '../../entrypoint/name/NameGenerator.js';
|
|
12
|
-
import '@rspack/core';
|
|
13
|
-
import 'html-rspack-tags-plugin';
|
|
14
|
-
import '../../../types/env.js';
|
|
15
|
-
|
|
16
|
-
declare class export_default{
|
|
17
|
-
protected readonly providers: Set<ContentProvider<Partial<ContentScriptOptions>>>;
|
|
1
|
+
import ContentName from "./ContentName.js";
|
|
2
|
+
import { ContentGroupItems, ContentProvider } from "./types.js";
|
|
3
|
+
import { ReadonlyConfig } from "../../../types/config.js";
|
|
4
|
+
import { ContentScriptEntrypointOptions } from "../../../types/content.js";
|
|
5
|
+
import { EntrypointEntries, EntrypointFile } from "../../../types/entrypoint.js";
|
|
6
|
+
import { ManifestContentScripts, ManifestHostPermissions } from "../../../types/manifest.js";
|
|
7
|
+
export default class {
|
|
8
|
+
protected readonly providers: Set<ContentProvider<Partial<import("../../../types/content.js").ContentScriptOptions>>>;
|
|
18
9
|
protected readonly names: ContentName;
|
|
19
10
|
protected _group?: ContentGroupItems<ContentScriptEntrypointOptions>;
|
|
20
11
|
protected _permissions?: [ManifestHostPermissions, ManifestHostPermissions];
|
|
@@ -33,5 +24,3 @@ declare class export_default{
|
|
|
33
24
|
likely(name?: string): boolean;
|
|
34
25
|
clear(): this;
|
|
35
26
|
}
|
|
36
|
-
|
|
37
|
-
export { export_default as default };
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import { ContentNameGenerator } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import 'utility-types';
|
|
7
|
-
import '../../../types/app.js';
|
|
8
|
-
import '../../../types/browser.js';
|
|
9
|
-
import '../../../types/helpers.js';
|
|
10
|
-
import '../../../types/locale.js';
|
|
11
|
-
import '@rspack/core';
|
|
12
|
-
import 'html-rspack-tags-plugin';
|
|
13
|
-
import '../../../types/env.js';
|
|
14
|
-
|
|
15
|
-
declare class ContentName extends export_default implements ContentNameGenerator<ContentScriptEntrypointOptions> {
|
|
1
|
+
import { ContentNameGenerator } from "./types.js";
|
|
2
|
+
import { NameGenerator } from "../../entrypoint/index.js";
|
|
3
|
+
import { ReadonlyConfig } from "../../../types/config.js";
|
|
4
|
+
import { ContentScriptEntrypointOptions } from "../../../types/content.js";
|
|
5
|
+
export default class ContentName extends NameGenerator implements ContentNameGenerator<ContentScriptEntrypointOptions> {
|
|
16
6
|
protected readonly config: ReadonlyConfig;
|
|
17
7
|
protected readonly _names: Map<string, string>;
|
|
18
8
|
constructor(config: ReadonlyConfig);
|
|
19
9
|
getChunkName(): string;
|
|
20
10
|
create(name: string, options: ContentScriptEntrypointOptions): string;
|
|
21
11
|
}
|
|
22
|
-
|
|
23
|
-
export { ContentName as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/cli/plugins/content/ContentName.ts"],"sourcesContent":["import stringify from \"json-stringify-deterministic\";\n\nimport {getContentScriptConfigFromOptions} from \"./utils\";\nimport {ContentNameGenerator} from \"./types\";\n\nimport {NameGenerator} from \"@cli/entrypoint/index.js\";\n\nimport {ReadonlyConfig} from \"@typing/config\";\nimport {EntrypointType} from \"@typing/entrypoint\";\nimport {ContentScriptEntrypointOptions} from \"@typing/content\";\n\nexport default class ContentName extends NameGenerator implements ContentNameGenerator<ContentScriptEntrypointOptions> {\n protected readonly _names = new Map<string, string>();\n\n constructor(protected readonly config: ReadonlyConfig) {\n super(EntrypointType.ContentScript);\n\n this.reserve(this.getChunkName());\n }\n\n public getChunkName(): string {\n return \"common.\" + this.entrypoint;\n }\n\n public create(name: string, options: ContentScriptEntrypointOptions): string {\n const entry = this.name(name);\n\n if (!this.config.concatContentScripts) {\n return entry;\n }\n\n const key = stringify(getContentScriptConfigFromOptions(options));\n\n const existingEntry = this._names.get(key);\n\n if (existingEntry) {\n return existingEntry;\n }\n\n this._names.set(key, entry);\n\n return entry;\n }\n}\n"],"mappings":"AAAA,OAAO,eAAe;AAEtB,SAAQ,yCAAwC;AAGhD,SAAQ,qBAAoB;AAG5B,SAAQ,sBAAqB;AAG7B,MAAO,oBAAkC,cAA8E;AAAA,EAGnH,YAA+B,QAAwB;AACnD,UAAM,eAAe,aAAa;AADP;AAG3B,SAAK,QAAQ,KAAK,aAAa,CAAC;AAAA,EACpC;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../../../src/cli/plugins/content/ContentName.ts"],"sourcesContent":["import stringify from \"json-stringify-deterministic\";\n\nimport {getContentScriptConfigFromOptions} from \"./utils\";\nimport {ContentNameGenerator} from \"./types\";\n\nimport {NameGenerator} from \"@cli/entrypoint/index.js\";\n\nimport {ReadonlyConfig} from \"@typing/config\";\nimport {EntrypointType} from \"@typing/entrypoint\";\nimport {ContentScriptEntrypointOptions} from \"@typing/content\";\n\nexport default class ContentName extends NameGenerator implements ContentNameGenerator<ContentScriptEntrypointOptions> {\n protected readonly _names = new Map<string, string>();\n\n constructor(protected readonly config: ReadonlyConfig) {\n super(EntrypointType.ContentScript);\n\n this.reserve(this.getChunkName());\n }\n\n public getChunkName(): string {\n return \"common.\" + this.entrypoint;\n }\n\n public create(name: string, options: ContentScriptEntrypointOptions): string {\n const entry = this.name(name);\n\n if (!this.config.concatContentScripts) {\n return entry;\n }\n\n const key = stringify(getContentScriptConfigFromOptions(options));\n\n const existingEntry = this._names.get(key);\n\n if (existingEntry) {\n return existingEntry;\n }\n\n this._names.set(key, entry);\n\n return entry;\n }\n}\n"],"mappings":"AAAA,OAAO,eAAe;AAEtB,SAAQ,yCAAwC;AAGhD,SAAQ,qBAAoB;AAG5B,SAAQ,sBAAqB;AAG7B,MAAO,oBAAkC,cAA8E;AAAA,EAGnH,YAA+B,QAAwB;AACnD,UAAM,eAAe,aAAa;AADP;AAG3B,SAAK,QAAQ,KAAK,aAAa,CAAC;AAAA,EACpC;AAAA,EAJ+B;AAAA,EAFZ,SAAS,oBAAI,IAAoB;AAAA,EAQ7C,eAAuB;AAC1B,WAAO,YAAY,KAAK;AAAA,EAC5B;AAAA,EAEO,OAAO,MAAc,SAAiD;AACzE,UAAM,QAAQ,KAAK,KAAK,IAAI;AAE5B,QAAI,CAAC,KAAK,OAAO,sBAAsB;AACnC,aAAO;AAAA,IACX;AAEA,UAAM,MAAM,UAAU,kCAAkC,OAAO,CAAC;AAEhE,UAAM,gBAAgB,KAAK,OAAO,IAAI,GAAG;AAEzC,QAAI,eAAe;AACf,aAAO;AAAA,IACX;AAEA,SAAK,OAAO,IAAI,KAAK,KAAK;AAE1B,WAAO;AAAA,EACX;AACJ;","names":[]}
|