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,743 +0,0 @@
|
|
|
1
|
-
import { Configuration, Filename } from '@rspack/core';
|
|
2
|
-
import { Options } from 'html-rspack-tags-plugin';
|
|
3
|
-
import { Command, Mode } from './types/app.js';
|
|
4
|
-
import { Browser, BrowserSpecific } from './types/browser.js';
|
|
5
|
-
import { Z as EntrypointFile, T as ManifestBuilder, a8 as ManifestIncognitoValue, V as ManifestVersion } from './manifest-DKvERQ4d.js';
|
|
6
|
-
import { Language } from './types/locale.js';
|
|
7
|
-
import { Awaiter } from './types/helpers.js';
|
|
8
|
-
import { EnvFilterVariant, EnvFilterOptions } from './types/env.js';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The result of executing the `entrypoint` function in a plugin.
|
|
12
|
-
*
|
|
13
|
-
* Can be one of the following values:
|
|
14
|
-
*
|
|
15
|
-
* - `true` — the entrypoint is considered active, and the file path is automatically
|
|
16
|
-
* inferred based on the key name of the entrypoint. For example, if the key is `background`,
|
|
17
|
-
* the file named `background` will be used by default.
|
|
18
|
-
*
|
|
19
|
-
* - `string` — a path to a single **file**
|
|
20
|
-
*
|
|
21
|
-
* - `string[]` — an array of paths to **files**
|
|
22
|
-
*
|
|
23
|
-
* - `EntrypointFile` — an object describing a single entrypoint file.
|
|
24
|
-
*
|
|
25
|
-
* - `EntrypointFile[]` — an array of `EntrypointFile` objects.
|
|
26
|
-
*
|
|
27
|
-
* - `Set<EntrypointFile>` — a unique set of `EntrypointFile` objects.
|
|
28
|
-
*/
|
|
29
|
-
type PluginEntrypointResult = true | string | string[] | EntrypointFile | EntrypointFile[] | Set<EntrypointFile>;
|
|
30
|
-
interface PluginConfigOptions {
|
|
31
|
-
config: ReadonlyConfig;
|
|
32
|
-
}
|
|
33
|
-
interface PluginManifestOptions extends PluginConfigOptions {
|
|
34
|
-
manifest: ManifestBuilder;
|
|
35
|
-
}
|
|
36
|
-
interface PluginBundlerOptions extends PluginConfigOptions {
|
|
37
|
-
rspack: Configuration;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The result of executing the `locales` function in a plugin.
|
|
41
|
-
*
|
|
42
|
-
* Can be one of the following values:
|
|
43
|
-
*
|
|
44
|
-
* - `true` — the system will look for a directory named `locales` and treat all files inside
|
|
45
|
-
* it as localization files.
|
|
46
|
-
*
|
|
47
|
-
* - `string` — a path to a specific **directory**, and all files inside will be treated as localization files.
|
|
48
|
-
*
|
|
49
|
-
* - `string[]` — an array of paths to **files** will be treated as localization files.
|
|
50
|
-
*
|
|
51
|
-
* - `Set<string>` — a unique set of localization files.
|
|
52
|
-
*/
|
|
53
|
-
type PluginLocaleResult = PluginEntrypointResult;
|
|
54
|
-
/**
|
|
55
|
-
* The result of executing the `icons` function in a plugin.
|
|
56
|
-
*
|
|
57
|
-
* Can be one of the following values:
|
|
58
|
-
*
|
|
59
|
-
* - `true` — the system will look for a directory named `icons` and treat all files inside
|
|
60
|
-
* it as image files.
|
|
61
|
-
*
|
|
62
|
-
* - `string` — a path to a specific **directory**, and all files inside will be treated as image files.
|
|
63
|
-
*
|
|
64
|
-
* - `string[]` — an array of paths to **files** will be treated as image files.
|
|
65
|
-
*
|
|
66
|
-
* - `Set<string>` — a unique set of image files.
|
|
67
|
-
*/
|
|
68
|
-
type PluginIconResult = PluginEntrypointResult;
|
|
69
|
-
interface PluginName {
|
|
70
|
-
name: string;
|
|
71
|
-
}
|
|
72
|
-
interface Plugin extends PluginName {
|
|
73
|
-
background?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
74
|
-
bundler?: PluginHandler<PluginBundlerOptions, Configuration>;
|
|
75
|
-
command?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
76
|
-
content?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
77
|
-
page?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
78
|
-
popup?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
79
|
-
relay?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
80
|
-
service?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
81
|
-
sidebar?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
82
|
-
offscreen?: PluginHandler<PluginConfigOptions, PluginEntrypointResult>;
|
|
83
|
-
locale?: PluginHandler<PluginConfigOptions, PluginLocaleResult>;
|
|
84
|
-
icon?: PluginHandler<PluginConfigOptions, PluginIconResult>;
|
|
85
|
-
manifest?: PluginHandlerCallback<PluginManifestOptions>;
|
|
86
|
-
startup?: PluginHandlerCallback<PluginConfigOptions>;
|
|
87
|
-
}
|
|
88
|
-
type PluginHandler<O, T = void> = T | PluginHandlerCallback<O, T>;
|
|
89
|
-
type PluginHandlerCallback<O, T = void> = {
|
|
90
|
-
(options: O): Awaiter<T>;
|
|
91
|
-
};
|
|
92
|
-
type PluginHandlerKeys = keyof Omit<Plugin, "name">;
|
|
93
|
-
type PluginEntrypointKeys = keyof Pick<Plugin, "background" | "command" | "content" | "page" | "popup" | "relay" | "service" | "sidebar" | "offscreen">;
|
|
94
|
-
type PluginAssetKeys = keyof Pick<Plugin, "icon" | "locale">;
|
|
95
|
-
type PluginHandlerType<T extends Plugin[PluginHandlerKeys]> = T extends PluginHandlerCallback<infer O, infer R> ? {
|
|
96
|
-
options: O;
|
|
97
|
-
result: R;
|
|
98
|
-
} : never;
|
|
99
|
-
type PluginHandlerOptions<K extends PluginHandlerKeys> = PluginHandlerType<Plugin[K]>["options"];
|
|
100
|
-
type PluginHandlerResult<K extends PluginHandlerKeys> = NonNullable<PluginHandlerType<Plugin[K]>["result"]>;
|
|
101
|
-
interface PluginNameHandlerResult<K extends PluginHandlerKeys> extends PluginName {
|
|
102
|
-
result: PluginHandlerResult<K>;
|
|
103
|
-
}
|
|
104
|
-
type PluginDefinition<T extends any[] = []> = (...args: T) => Plugin;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Configuration options for building a browser extension. This interface defines
|
|
108
|
-
* all the properties required to customize the build process, extension metadata,
|
|
109
|
-
* file structure, and other build-related settings.
|
|
110
|
-
*/
|
|
111
|
-
interface Config {
|
|
112
|
-
/**
|
|
113
|
-
* Enables debug mode during extension building.
|
|
114
|
-
* In debug mode, additional information about the build process is displayed.
|
|
115
|
-
*/
|
|
116
|
-
debug: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Defines the command to be executed.
|
|
119
|
-
* For example, `build`, `watch`, etc.
|
|
120
|
-
*/
|
|
121
|
-
command: Command;
|
|
122
|
-
/**
|
|
123
|
-
* Build mode for the extension (e.g., `production`, `development`).
|
|
124
|
-
* Affects optimization and other build parameters.
|
|
125
|
-
*/
|
|
126
|
-
mode: Mode;
|
|
127
|
-
/**
|
|
128
|
-
* Browser for which the extension is being built.
|
|
129
|
-
* Determines specific settings and compatibility.
|
|
130
|
-
*/
|
|
131
|
-
browser: Browser;
|
|
132
|
-
/**
|
|
133
|
-
* Name of the application (extension) that will be built.
|
|
134
|
-
* Used to identify a specific extension in a multi-project structure.
|
|
135
|
-
* @example "my-app"
|
|
136
|
-
*/
|
|
137
|
-
app: string;
|
|
138
|
-
/**
|
|
139
|
-
* Extension name for manifest.name.
|
|
140
|
-
*
|
|
141
|
-
* Can be either:
|
|
142
|
-
* - a plain string — inserted into the manifest as-is;
|
|
143
|
-
* - a localization key (for example, "@app.name") — converted to a reference to a localized message
|
|
144
|
-
* and must exist in your locale files.
|
|
145
|
-
*
|
|
146
|
-
* @example "@app.name"
|
|
147
|
-
* @example "Awesome App"
|
|
148
|
-
*/
|
|
149
|
-
name: undefined | string;
|
|
150
|
-
/**
|
|
151
|
-
* Short extension name for manifest.short_name.
|
|
152
|
-
*
|
|
153
|
-
* Can be either:
|
|
154
|
-
* - a plain string — inserted into the manifest as-is;
|
|
155
|
-
* - a localization key (for example, "@app.short_name") — converted to a reference to a localized message
|
|
156
|
-
* and must exist in your locale files.
|
|
157
|
-
*
|
|
158
|
-
* Note: some browsers do not support localization in the short_name field (e.g., Opera, Edge).
|
|
159
|
-
* In that case, when a localization key is provided, it will be resolved to the actual string for the selected language.
|
|
160
|
-
*
|
|
161
|
-
* @example "@app.short_name"
|
|
162
|
-
* @example "Awesome"
|
|
163
|
-
*/
|
|
164
|
-
shortName: undefined | string;
|
|
165
|
-
/**
|
|
166
|
-
* Extension description for manifest.description.
|
|
167
|
-
*
|
|
168
|
-
* Can be either:
|
|
169
|
-
* - a plain string — inserted into the manifest as-is;
|
|
170
|
-
* - a localization key (for example, "@app.description") — converted to a reference to a localized message
|
|
171
|
-
* and must exist in your locale files.
|
|
172
|
-
*
|
|
173
|
-
* @example "@app.description"
|
|
174
|
-
* @example "My awesome app description"
|
|
175
|
-
*/
|
|
176
|
-
description: undefined | string;
|
|
177
|
-
/**
|
|
178
|
-
* Author for manifest.author.
|
|
179
|
-
*
|
|
180
|
-
* Can be either:
|
|
181
|
-
* - a plain string — inserted into the manifest as-is;
|
|
182
|
-
* - a function returning a string or undefined — allows computing the value at build time.
|
|
183
|
-
*
|
|
184
|
-
* If the value is undefined (or the function returns undefined), the field will be omitted.
|
|
185
|
-
*
|
|
186
|
-
* @example "ACME Corp."
|
|
187
|
-
* @example () => getEnv('AUTHOR') || "Addon Bone"
|
|
188
|
-
*/
|
|
189
|
-
author: undefined | string | (() => string | undefined);
|
|
190
|
-
/**
|
|
191
|
-
* The version of the extension.
|
|
192
|
-
* Can be either:
|
|
193
|
-
* - a valid version (e.g., "1.0.0"), or a key referencing a value from an .env file.
|
|
194
|
-
* - a function that returns the version or key dynamically.
|
|
195
|
-
*
|
|
196
|
-
* @default "VERSION"
|
|
197
|
-
*/
|
|
198
|
-
version: string | (() => string | undefined);
|
|
199
|
-
/**
|
|
200
|
-
* The minimum supported version of browser.
|
|
201
|
-
* Used to populate fields in the manifest:
|
|
202
|
-
* - `minimum_chrome_version`
|
|
203
|
-
* - `browser_specific_settings.gecko.strict_min_version` for Firefox
|
|
204
|
-
*
|
|
205
|
-
* Can be either:
|
|
206
|
-
* - a valid version, or a key referencing a value from an .env file.
|
|
207
|
-
* - a function that returns the version or key dynamically.
|
|
208
|
-
*
|
|
209
|
-
* @default "MINIMUM_VERSION"
|
|
210
|
-
*/
|
|
211
|
-
minimumVersion: string | number | (() => string | number | undefined);
|
|
212
|
-
/**
|
|
213
|
-
* The URL for the extension's homepage
|
|
214
|
-
* Can be either:
|
|
215
|
-
* - a valid url or a key referencing a value from an .env file.
|
|
216
|
-
* - a function that returns the url or key dynamically.
|
|
217
|
-
*
|
|
218
|
-
* @default HOMEPAGE
|
|
219
|
-
*/
|
|
220
|
-
homepage: string | (() => string | undefined);
|
|
221
|
-
/**
|
|
222
|
-
* Name of the icon group to use in the manifest as the primary extension icon (manifest.icons).
|
|
223
|
-
*
|
|
224
|
-
* An icon group is a named set of icons by sizes (e.g., 16, 32, 48, 128, ...).
|
|
225
|
-
* The value must match one of the available icon groups.
|
|
226
|
-
*
|
|
227
|
-
* @default: "default"
|
|
228
|
-
*
|
|
229
|
-
* Examples:
|
|
230
|
-
* - "default"
|
|
231
|
-
* - "active"
|
|
232
|
-
* - "disable"
|
|
233
|
-
*/
|
|
234
|
-
icon: string;
|
|
235
|
-
/**
|
|
236
|
-
* Browser-specific settings (populate manifest.browser_specific_settings).
|
|
237
|
-
*
|
|
238
|
-
* Two forms are supported:
|
|
239
|
-
* - object — fixed values for browsers (e.g., gecko, safari);
|
|
240
|
-
* - function — lazy evaluation at build time; if it returns undefined, the field is omitted.
|
|
241
|
-
*
|
|
242
|
-
* Examples:
|
|
243
|
-
* - { gecko: { id: "addon@example.com", strictMinVersion: "109.0" } }
|
|
244
|
-
* - () => ({ gecko: { id: "addon@example.com" } })
|
|
245
|
-
*/
|
|
246
|
-
specific?: BrowserSpecific | (() => BrowserSpecific | undefined);
|
|
247
|
-
/**
|
|
248
|
-
* Used to specify how this extension will behave in incognito mode
|
|
249
|
-
*
|
|
250
|
-
* @default "not_allowed"
|
|
251
|
-
*/
|
|
252
|
-
incognito?: ManifestIncognitoValue | (() => ManifestIncognitoValue | undefined);
|
|
253
|
-
/**
|
|
254
|
-
* Extension manifest version (e.g., v2 or v3).
|
|
255
|
-
* Defines the manifest structure and available APIs.
|
|
256
|
-
*/
|
|
257
|
-
manifestVersion: ManifestVersion;
|
|
258
|
-
/**
|
|
259
|
-
* Default locale for the extension.
|
|
260
|
-
* @example "en"
|
|
261
|
-
*/
|
|
262
|
-
lang?: string | Language;
|
|
263
|
-
/**
|
|
264
|
-
* Path to the directory with source files for building.
|
|
265
|
-
* This is the base directory relative to which other paths are defined.
|
|
266
|
-
* @example "addon"
|
|
267
|
-
*/
|
|
268
|
-
rootDir: string;
|
|
269
|
-
/**
|
|
270
|
-
* Directory where the built extensions will be placed.
|
|
271
|
-
* Final extension files will be located here.
|
|
272
|
-
* @example "./dist"
|
|
273
|
-
* @path Output path: `{{inputDir}}/{{outputDir}}`
|
|
274
|
-
*
|
|
275
|
-
* @default "dist"
|
|
276
|
-
*/
|
|
277
|
-
outDir: string;
|
|
278
|
-
/**
|
|
279
|
-
* Directory where the application and shared directory are located.
|
|
280
|
-
* Main directory with source code.
|
|
281
|
-
* @example "src"
|
|
282
|
-
* @path Full path: `{{inputDir}}/{{srcDir}}`
|
|
283
|
-
*
|
|
284
|
-
* @default "src"
|
|
285
|
-
*/
|
|
286
|
-
srcDir: string;
|
|
287
|
-
/**
|
|
288
|
-
* Directory with common modules, content scripts, and background scripts.
|
|
289
|
-
* Contains code used by multiple extensions.
|
|
290
|
-
* @example "shared"
|
|
291
|
-
* @path Full path: `{{inputDir}}/{{srcDir}}//{{sharedDir}}`
|
|
292
|
-
*
|
|
293
|
-
* @default "shared"
|
|
294
|
-
*/
|
|
295
|
-
sharedDir: string;
|
|
296
|
-
/**
|
|
297
|
-
* Directory where all app extensions are located.
|
|
298
|
-
* These extensions can use code from the Shared directory.
|
|
299
|
-
* @example "apps"
|
|
300
|
-
* @path Full path: `{{inputDir}}/{{srcDir}}/{{appsDir}}`
|
|
301
|
-
*
|
|
302
|
-
* @default "apps"
|
|
303
|
-
*/
|
|
304
|
-
appsDir: string;
|
|
305
|
-
/**
|
|
306
|
-
* Directory inside a specific extension application.
|
|
307
|
-
* May contain additional structure, such as a src folder.
|
|
308
|
-
* @example "src"
|
|
309
|
-
* @path Full path: `{{inputDir}}/{{appsDir}}/{{appDir}}/{{appSrcDir}}`
|
|
310
|
-
*
|
|
311
|
-
* @default "."
|
|
312
|
-
*/
|
|
313
|
-
appSrcDir: string;
|
|
314
|
-
/**
|
|
315
|
-
* Directory for icons and logos. Can be located in the Shared directory,
|
|
316
|
-
* in the project root, or in a folder for a specific App.
|
|
317
|
-
*
|
|
318
|
-
* @example "icons"
|
|
319
|
-
*
|
|
320
|
-
* @path Full paths can be:
|
|
321
|
-
*
|
|
322
|
-
* - `{{inputDir}}/{{srcDir}}/{{icon.sourceDir}}`
|
|
323
|
-
* - `{{inputDir}}/{{sharedDir}}/{{icon.sourceDir}}`
|
|
324
|
-
* - `{{inputDir}}/{{appsDir}}/{{appDir}}/{{icon.sourceDir}}`
|
|
325
|
-
*/
|
|
326
|
-
iconSrcDir: string;
|
|
327
|
-
/**
|
|
328
|
-
* Directory for image files in outputDir.
|
|
329
|
-
*
|
|
330
|
-
* @example "icons"
|
|
331
|
-
* @path Full path: `{{inputDir}}/{{outputDir}}/{{appDir}}/{{icon.outputDir}}`
|
|
332
|
-
*/
|
|
333
|
-
iconOutDir: string;
|
|
334
|
-
/**
|
|
335
|
-
* Directory for output JavaScript files in outputDir.
|
|
336
|
-
* All compiled JS files will be placed here.
|
|
337
|
-
* @example "js"
|
|
338
|
-
* @path Full path: `{{inputDir}}//{{outputDir}}/{{appDir}}/{{jsDir}}`
|
|
339
|
-
*
|
|
340
|
-
* @default "js"
|
|
341
|
-
*/
|
|
342
|
-
jsDir: string;
|
|
343
|
-
/**
|
|
344
|
-
* Directory for output CSS files in outputDir.
|
|
345
|
-
* All compiled styles will be placed here.
|
|
346
|
-
* @example "css"
|
|
347
|
-
* @path Full path: `{{inputDir}}/{{outputDir}}/{{appDir}}/{{cssDir}}`
|
|
348
|
-
*
|
|
349
|
-
* @default "css"
|
|
350
|
-
*/
|
|
351
|
-
cssDir: string;
|
|
352
|
-
/**
|
|
353
|
-
* Directory for assets (images, fonts, etc.) in outputDir.
|
|
354
|
-
* @example "assets"
|
|
355
|
-
* @path Full path: `{{inputDir}}/{{outputDir}}/{{appDir}}/{{assetsDir}}`
|
|
356
|
-
*
|
|
357
|
-
* @default "assets"
|
|
358
|
-
*/
|
|
359
|
-
assetsDir: string;
|
|
360
|
-
/**
|
|
361
|
-
* Directory for HTML files in outputDir.
|
|
362
|
-
* @example "view"
|
|
363
|
-
* @path Full path: `{{inputDir}}/{{outputDir}}/{{appDir}}/{{htmlDir}}`
|
|
364
|
-
*
|
|
365
|
-
* @default "."
|
|
366
|
-
*/
|
|
367
|
-
htmlDir: string;
|
|
368
|
-
/**
|
|
369
|
-
* Directory for localizations. Can be located in the Shared directory,
|
|
370
|
-
* in the project root, or in a folder for a specific App.
|
|
371
|
-
*
|
|
372
|
-
* @example "locales"
|
|
373
|
-
*
|
|
374
|
-
* @path Full paths can be:
|
|
375
|
-
*
|
|
376
|
-
* - `{{inputDir}}/{{srcDir}}/{{localeDir}}`
|
|
377
|
-
* - `{{inputDir}}/{{sharedDir}}/{{localeDir}}`
|
|
378
|
-
* - `{{inputDir}}/{{appsDir}}/{{appDir}}/{{localeDir}}`
|
|
379
|
-
*/
|
|
380
|
-
localeDir: string;
|
|
381
|
-
/**
|
|
382
|
-
* Represents an HTML configuration, which can either be a single HtmlOptions object,
|
|
383
|
-
* an array of HtmlOptions objects, or a function returning one of these formats.
|
|
384
|
-
*
|
|
385
|
-
* - HtmlOptions: A single HTML configuration object.
|
|
386
|
-
* - HtmlOptions[]: An array containing multiple HTML configuration objects.
|
|
387
|
-
* - { (): HtmlOptions | HtmlOptions[] }: A function that dynamically generates and
|
|
388
|
-
* returns either an HtmlOptions object or an array of HtmlOptions objects.
|
|
389
|
-
*/
|
|
390
|
-
html: Options | Options[] | (() => Options | Options[]);
|
|
391
|
-
/**
|
|
392
|
-
* Rspack bundler configuration.
|
|
393
|
-
*
|
|
394
|
-
* Accepts:
|
|
395
|
-
* - a Rspack configuration object;
|
|
396
|
-
* - a function that receives the current (system-prepared) Rspack configuration
|
|
397
|
-
* and returns an object with changes.
|
|
398
|
-
*
|
|
399
|
-
* How it works:
|
|
400
|
-
* - Any object you provide (either returned from the function or passed directly) will be
|
|
401
|
-
* recursively merged with the base configuration by the build system.
|
|
402
|
-
* - Do NOT perform manual merging inside the function — simply return a patch object with the
|
|
403
|
-
* fields you want to adjust, or return an empty object if no changes are needed.
|
|
404
|
-
* - The function parameter is mainly for inspecting the current config to decide whether
|
|
405
|
-
* additional adjustments are necessary.
|
|
406
|
-
*/
|
|
407
|
-
bundler: Configuration | ((rspack: Configuration) => Awaiter<Configuration>);
|
|
408
|
-
/**
|
|
409
|
-
* Environment variables inclusion settings.
|
|
410
|
-
*
|
|
411
|
-
* Supports three forms:
|
|
412
|
-
* - string: treated as a prefix filter. Only variables whose names start with this prefix are included.
|
|
413
|
-
* Equivalent to: { filter: "<PREFIX>" }.
|
|
414
|
-
* - function: a predicate that receives a variable name and returns true to include it.
|
|
415
|
-
* Equivalent to: { filter: (name) => boolean }.
|
|
416
|
-
* - object: advanced settings.
|
|
417
|
-
* - filter?: string | ((name: string) => boolean) — a prefix or predicate to select variables.
|
|
418
|
-
* - crypt?: boolean — if true, values will be obfuscated with a simple reversible scheme
|
|
419
|
-
* (for convenience only; not secure).
|
|
420
|
-
*
|
|
421
|
-
* Notes:
|
|
422
|
-
* - If no filter is provided (e.g., empty string or a function that always returns false), no variables are included.
|
|
423
|
-
* - Obfuscation is intended to reduce casual inspection only and should not be considered encryption.
|
|
424
|
-
*
|
|
425
|
-
* Examples:
|
|
426
|
-
* - `"APP_"` - include all variables starting with `APP_`
|
|
427
|
-
* - `(name) => name === "FEATURE_FLAG"` - include a single variable via predicate
|
|
428
|
-
* - `{ filter: "PUBLIC_", crypt: true }` - include by prefix and obfuscate values
|
|
429
|
-
*/
|
|
430
|
-
env: EnvFilterVariant | Partial<EnvFilterOptions>;
|
|
431
|
-
/**
|
|
432
|
-
* Array of plugins used when building the extension.
|
|
433
|
-
* Allows extending the builder's functionality.
|
|
434
|
-
*/
|
|
435
|
-
plugins: Plugin[];
|
|
436
|
-
/**
|
|
437
|
-
* Flag to enable dependency analyzer.
|
|
438
|
-
* When activated, open RSDoctor during the build, which shows
|
|
439
|
-
* project dependencies and their sizes.
|
|
440
|
-
*
|
|
441
|
-
* @default false
|
|
442
|
-
*/
|
|
443
|
-
analyze: boolean;
|
|
444
|
-
/**
|
|
445
|
-
* Path to the builder configuration file.
|
|
446
|
-
* @example "./adnbn.config.ts"
|
|
447
|
-
*/
|
|
448
|
-
configFile: string;
|
|
449
|
-
/**
|
|
450
|
-
* Flag indicating whether to merge background scripts from App and Shared directories.
|
|
451
|
-
* When `true`, background scripts from both directories will be combined into a single file.
|
|
452
|
-
*
|
|
453
|
-
* @default false
|
|
454
|
-
*/
|
|
455
|
-
mergeBackground: boolean;
|
|
456
|
-
/**
|
|
457
|
-
* Flag indicating whether to merge commands from App and Shared directories.
|
|
458
|
-
* When `true`, commands from both directories will be combined.
|
|
459
|
-
*
|
|
460
|
-
* @default false
|
|
461
|
-
*/
|
|
462
|
-
mergeCommands: boolean;
|
|
463
|
-
/**
|
|
464
|
-
* Flag indicating whether to merge content scripts from App and Shared directories.
|
|
465
|
-
* When `true`, content scripts from both directories will be combined.
|
|
466
|
-
*
|
|
467
|
-
* @default false
|
|
468
|
-
*/
|
|
469
|
-
mergeContentScripts: boolean;
|
|
470
|
-
/**
|
|
471
|
-
* Flag indicating whether to combine content scripts with identical options into one chunk.
|
|
472
|
-
* When `true`, content scripts with identical settings will be compiled into a single file.
|
|
473
|
-
*
|
|
474
|
-
* @default true
|
|
475
|
-
*/
|
|
476
|
-
concatContentScripts: boolean;
|
|
477
|
-
/**
|
|
478
|
-
* Flag indicating whether to merge styles from App and Shared directories.
|
|
479
|
-
* When `true`, styles from both directories will be combined.
|
|
480
|
-
*
|
|
481
|
-
* @default true
|
|
482
|
-
*/
|
|
483
|
-
mergeStyles: boolean;
|
|
484
|
-
/**
|
|
485
|
-
* Flag indicating whether to merge icon files from App and Shared directories.
|
|
486
|
-
* When `true`, icon files from both directories will be combined.
|
|
487
|
-
*
|
|
488
|
-
* @default false
|
|
489
|
-
*/
|
|
490
|
-
mergeIcons: boolean;
|
|
491
|
-
/**
|
|
492
|
-
* Flag indicating whether to merge localizations from App and Shared directories.
|
|
493
|
-
* When `true`, localization files from both directories will be combined.
|
|
494
|
-
*
|
|
495
|
-
* @default true
|
|
496
|
-
*/
|
|
497
|
-
mergeLocales: boolean;
|
|
498
|
-
/**
|
|
499
|
-
* Flag indicating whether to merge page files from App and Shared directories.
|
|
500
|
-
* When `true`, page files from both directories will be combined.
|
|
501
|
-
*
|
|
502
|
-
* @default false
|
|
503
|
-
*/
|
|
504
|
-
mergePages: boolean;
|
|
505
|
-
/**
|
|
506
|
-
* Flag indicating whether to merge popup files from App and Shared directories.
|
|
507
|
-
* When `true`, popup files from both directories will be combined.
|
|
508
|
-
* This is useful for sharing popup components across different parts of the application.
|
|
509
|
-
*
|
|
510
|
-
* @default false
|
|
511
|
-
*/
|
|
512
|
-
mergePopup: boolean;
|
|
513
|
-
/**
|
|
514
|
-
* Flag indicating whether multiple popup files are supported in the extension.
|
|
515
|
-
* When `true`, the build process will handle and include multiple popup files in the extension.
|
|
516
|
-
* This allows the extension to have different popup interfaces for different contexts or states.
|
|
517
|
-
*
|
|
518
|
-
* @default false
|
|
519
|
-
*/
|
|
520
|
-
multiplePopup: boolean;
|
|
521
|
-
/**
|
|
522
|
-
* Flag indicating whether to merge sidebar files from App and Shared directories.
|
|
523
|
-
* When `true`, sidebar files from both directories will be combined.
|
|
524
|
-
* This is useful for sharing sidebar components across different parts of the application.
|
|
525
|
-
*
|
|
526
|
-
* @default false
|
|
527
|
-
*/
|
|
528
|
-
mergeSidebar: boolean;
|
|
529
|
-
/**
|
|
530
|
-
* Flag indicating whether multiple sidebar files are supported in the extension.
|
|
531
|
-
* When `true`, the build process will handle and include multiple sidebar files in the extension.
|
|
532
|
-
* This allows the extension to have different sidebar interfaces for different contexts or states.
|
|
533
|
-
*
|
|
534
|
-
* @default false
|
|
535
|
-
*/
|
|
536
|
-
multipleSidebar: boolean;
|
|
537
|
-
/**
|
|
538
|
-
* Flag indicating whether to merge relay files from App and Shared directories.
|
|
539
|
-
* When `true`, relay files from both directories will be combined.
|
|
540
|
-
*
|
|
541
|
-
* @default false
|
|
542
|
-
*/
|
|
543
|
-
mergeRelay: boolean;
|
|
544
|
-
/**
|
|
545
|
-
* Flag indicating whether to merge service files from App and Shared directories.
|
|
546
|
-
* When `true`, service files from both directories will be combined.
|
|
547
|
-
*
|
|
548
|
-
* @default false
|
|
549
|
-
*/
|
|
550
|
-
mergeService: boolean;
|
|
551
|
-
/**
|
|
552
|
-
* Flag indicating whether to merge offscreen files from App and Shared directories.
|
|
553
|
-
* When `true`, offscreen files from both directories will be combined.
|
|
554
|
-
*
|
|
555
|
-
* @default false
|
|
556
|
-
*/
|
|
557
|
-
mergeOffscreen: boolean;
|
|
558
|
-
/**
|
|
559
|
-
* Path to the directory containing public assets to be copied into the build output.
|
|
560
|
-
* Must be relative to the project root and cannot be "." (the project root itself).
|
|
561
|
-
*
|
|
562
|
-
* @default "public"
|
|
563
|
-
*/
|
|
564
|
-
publicDir: string;
|
|
565
|
-
/**
|
|
566
|
-
* If true, merges the contents of the public directory with corresponding
|
|
567
|
-
* directories from Shared and Apps modules during the copy process.
|
|
568
|
-
*
|
|
569
|
-
* @default true
|
|
570
|
-
*/
|
|
571
|
-
mergePublic: boolean;
|
|
572
|
-
/**
|
|
573
|
-
* Flag indicating whether to create separate chunks for common code.
|
|
574
|
-
* When `true`, common code will be extracted into separate chunks for build size optimization
|
|
575
|
-
* and improved caching. This allows the browser to load common modules once
|
|
576
|
-
* and reuse them across different parts of the extension.
|
|
577
|
-
*
|
|
578
|
-
* When a function is provided, it receives a Set of entry point names that share common code
|
|
579
|
-
* and should return a string representing the chunk name, or undefined to skip chunk creation.
|
|
580
|
-
* The function allows dynamic naming of common chunks based on the entries that use them.
|
|
581
|
-
*
|
|
582
|
-
* @example
|
|
583
|
-
* // Boolean usage:
|
|
584
|
-
* true // Creates common chunks with auto-generated names
|
|
585
|
-
* false // Disables common chunk creation
|
|
586
|
-
*
|
|
587
|
-
* @example
|
|
588
|
-
* // Function usage:
|
|
589
|
-
* (names) => {
|
|
590
|
-
* const entryList = Array.from(names).toSorted().join("-");
|
|
591
|
-
*
|
|
592
|
-
* return `${entryList}.common`;
|
|
593
|
-
* }
|
|
594
|
-
*
|
|
595
|
-
* @default true
|
|
596
|
-
*/
|
|
597
|
-
commonChunks: boolean | ((names: Set<string>) => string | undefined);
|
|
598
|
-
/**
|
|
599
|
-
* Build artifact name.
|
|
600
|
-
*
|
|
601
|
-
* Used as:
|
|
602
|
-
* - the directory name where the built extension will be placed;
|
|
603
|
-
* - the base name of the packaged archive.
|
|
604
|
-
*
|
|
605
|
-
* Supports placeholders that are substituted and then normalized:
|
|
606
|
-
* - `[app]` / `[name]` — application name in kebab-case;
|
|
607
|
-
* - `[mode]` — current build mode (e.g., development, production);
|
|
608
|
-
* - `[browser]` — target browser;
|
|
609
|
-
* - `[mv]` — manifest version in mvN format (e.g., mv3).
|
|
610
|
-
*
|
|
611
|
-
* Notes:
|
|
612
|
-
* - the final name is automatically converted to kebab-case;
|
|
613
|
-
* - sequences like "mv-<number>" are normalized to "mv<number>" (e.g., "mv-3" → "mv3");
|
|
614
|
-
* - it is recommended to specify only a name (no paths or extensions).
|
|
615
|
-
*
|
|
616
|
-
* Examples:
|
|
617
|
-
* - `[app]` → `my-app`
|
|
618
|
-
* - `[app]-[browser]-[mv]` → `my-app-chrome-mv3`
|
|
619
|
-
* - `bundle-[name]-[mode]` → `bundle-my-app-production`
|
|
620
|
-
*/
|
|
621
|
-
artifactName: string;
|
|
622
|
-
/**
|
|
623
|
-
* Template for generating asset output file names.
|
|
624
|
-
*
|
|
625
|
-
* This property defines how asset files (images, fonts, etc.) will be named in the build output.
|
|
626
|
-
* It uses Rspack's Filename type, which can be either a string template or a function
|
|
627
|
-
* that returns a filename string.
|
|
628
|
-
*
|
|
629
|
-
* Supported placeholders in string templates:
|
|
630
|
-
* - `[app]` - Extension name (kebab case)
|
|
631
|
-
* - `[name]` - The original asset file name without extension
|
|
632
|
-
* - `[ext]` - The original asset file extension (including the dot)
|
|
633
|
-
* - `[hash]` - A hash of the asset content
|
|
634
|
-
* - `[contenthash]` - A hash of the content only
|
|
635
|
-
*
|
|
636
|
-
* When used as a function, it receives pathData and assetInfo parameters
|
|
637
|
-
* and should return the final filename string.
|
|
638
|
-
*
|
|
639
|
-
* @example
|
|
640
|
-
* // String template examples:
|
|
641
|
-
* "[name].[hash][ext]"
|
|
642
|
-
* "[app]-[name].[contenthash:8][ext]"
|
|
643
|
-
* "images/[name].[hash][ext]"
|
|
644
|
-
*
|
|
645
|
-
* @example
|
|
646
|
-
* // Function example:
|
|
647
|
-
* (pathData, assetInfo) => {
|
|
648
|
-
* const info = pathData.module.resourceResolveData;
|
|
649
|
-
* return `${info.descriptionFileData.name}.${pathData.contentHash}${info.relativePath}`;
|
|
650
|
-
* }
|
|
651
|
-
*
|
|
652
|
-
* @see {@link https://rspack.dev/config/output#outputassetmodulefilename} Rspack asset module filename documentation
|
|
653
|
-
*/
|
|
654
|
-
assetsFilename: Filename;
|
|
655
|
-
/**
|
|
656
|
-
* Template for generating JavaScript output file names.
|
|
657
|
-
*
|
|
658
|
-
* This property defines how JavaScript files will be named in the build output.
|
|
659
|
-
* It uses Rspack's Filename type, which can be either a string template or a function
|
|
660
|
-
* that returns a filename string.
|
|
661
|
-
*
|
|
662
|
-
* Supported placeholders in string templates:
|
|
663
|
-
* - `[app]` - Extension name (kebab case)
|
|
664
|
-
* - `[name]` - The name of the entry or chunk
|
|
665
|
-
* - `[hash]` - A hash of the module identifier and content
|
|
666
|
-
* - `[chunkhash]` - A hash of the chunk content
|
|
667
|
-
* - `[contenthash]` - A hash of the content only
|
|
668
|
-
*
|
|
669
|
-
* When used as a function, it receives pathData and assetInfo parameters
|
|
670
|
-
* and should return the final filename string.
|
|
671
|
-
*
|
|
672
|
-
* @example
|
|
673
|
-
* // String template examples:
|
|
674
|
-
* "[name].[contenthash].js"
|
|
675
|
-
* "[app]-[name].[hash:8].js"
|
|
676
|
-
*
|
|
677
|
-
* @example
|
|
678
|
-
* // Function example:
|
|
679
|
-
* (pathData, assetInfo) => {
|
|
680
|
-
* return `${pathData.chunk.name}.${pathData.chunk.hash}.js`;
|
|
681
|
-
* }
|
|
682
|
-
*
|
|
683
|
-
* @see {@link https://rspack.dev/config/output#outputfilename} Rspack filename documentation
|
|
684
|
-
*/
|
|
685
|
-
jsFilename: Filename;
|
|
686
|
-
/**
|
|
687
|
-
* Template for generating CSS output file names.
|
|
688
|
-
*
|
|
689
|
-
* This property defines how CSS files will be named in the build output.
|
|
690
|
-
* It uses Rspack's Filename type, which can be either a string template or a function
|
|
691
|
-
* that returns a filename string.
|
|
692
|
-
*
|
|
693
|
-
* Supported placeholders in string templates:
|
|
694
|
-
* - `[app]` - Extension name (kebab case)
|
|
695
|
-
* - `[name]` - The name of the entry or chunk
|
|
696
|
-
* - `[hash]` - A hash of the module identifier and content
|
|
697
|
-
* - `[chunkhash]` - A hash of the chunk content
|
|
698
|
-
* - `[contenthash]` - A hash of the content only
|
|
699
|
-
*
|
|
700
|
-
* When used as a function, it receives pathData and assetInfo parameters
|
|
701
|
-
* and should return the final filename string.
|
|
702
|
-
*
|
|
703
|
-
* @example
|
|
704
|
-
* // String template examples:
|
|
705
|
-
* "[name].[contenthash].css"
|
|
706
|
-
* "[app]-[name].[hash:8].css"
|
|
707
|
-
*
|
|
708
|
-
* @example
|
|
709
|
-
* // Function example:
|
|
710
|
-
* (pathData, assetInfo) => {
|
|
711
|
-
* return `${pathData.chunk.name}.${pathData.chunk.hash}.css`;
|
|
712
|
-
* }
|
|
713
|
-
*
|
|
714
|
-
* @see {@link https://rspack.dev/config/output#outputfilename} Rspack filename documentation
|
|
715
|
-
*/
|
|
716
|
-
cssFilename: Filename;
|
|
717
|
-
/**
|
|
718
|
-
* Template for generating scoped CSS class names.
|
|
719
|
-
*
|
|
720
|
-
* Supported placeholders:
|
|
721
|
-
* - `[app]` – extension name (kebab case)
|
|
722
|
-
* - `[name]` – file basename without extension
|
|
723
|
-
* - `[local]` – original class name from your CSS
|
|
724
|
-
* - `[path]` – path to the resource, relative to the build context
|
|
725
|
-
* - `[folder]` – name of the folder containing the resource
|
|
726
|
-
* - `[file]` – combination of `[path]` and `[name]`
|
|
727
|
-
* - `[ext]` – file extension (including the dot)
|
|
728
|
-
* - `[hash]` – hash based on resourcePath + exportName, uniq for app.
|
|
729
|
-
*
|
|
730
|
-
*
|
|
731
|
-
* Note: all characters illegal in filenames (except inside `[local]`) are replaced with “-”
|
|
732
|
-
*
|
|
733
|
-
* @type {string}
|
|
734
|
-
*/
|
|
735
|
-
cssIdentName: string;
|
|
736
|
-
}
|
|
737
|
-
type OptionalConfig = Partial<Config>;
|
|
738
|
-
type UserConfig = Omit<OptionalConfig, "configFile" | "command">;
|
|
739
|
-
type ReadonlyConfig = Readonly<Config>;
|
|
740
|
-
type UserConfigCallback = (config: ReadonlyConfig) => UserConfig;
|
|
741
|
-
type ConfigDefinition = UserConfigCallback | UserConfig;
|
|
742
|
-
|
|
743
|
-
export type { Config as C, OptionalConfig as O, Plugin as P, ReadonlyConfig as R, UserConfig as U, ConfigDefinition as a, PluginDefinition as b, PluginHandlerKeys as c, PluginAssetKeys as d, PluginHandlerOptions as e, PluginNameHandlerResult as f, PluginHandler as g, PluginBundlerOptions as h, PluginConfigOptions as i, PluginEntrypointKeys as j, PluginEntrypointResult as k, PluginHandlerCallback as l, PluginHandlerResult as m, PluginHandlerType as n, PluginIconResult as o, PluginLocaleResult as p, PluginManifestOptions as q, UserConfigCallback as r };
|