extension-develop 4.0.11 → 4.0.12

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.
Files changed (274) hide show
  1. package/dist/0~dev-server.mjs +1 -1
  2. package/dist/0~rspack-config.mjs +107 -3154
  3. package/dist/101.mjs +32 -4
  4. package/dist/266.mjs +1 -4
  5. package/dist/839.mjs +3156 -59
  6. package/dist/bridge-entry.d.ts +5 -0
  7. package/dist/command-build.d.ts +3 -0
  8. package/dist/command-dev.d.ts +5 -0
  9. package/dist/command-preview.d.ts +30 -0
  10. package/dist/dev-server/auto-exit.d.ts +1 -0
  11. package/dist/dev-server/cleanup.d.ts +11 -0
  12. package/dist/dev-server/compiler-hooks.d.ts +9 -0
  13. package/dist/dev-server/connectable-host.d.ts +2 -0
  14. package/dist/dev-server/control-bridge/actions-file.d.ts +38 -0
  15. package/dist/dev-server/control-bridge/broker.d.ts +122 -0
  16. package/dist/dev-server/control-bridge/consumer-client.d.ts +43 -0
  17. package/dist/dev-server/control-bridge/contracts.d.ts +164 -0
  18. package/dist/dev-server/control-bridge/control-port-store.d.ts +25 -0
  19. package/dist/dev-server/control-bridge/controller-client.d.ts +30 -0
  20. package/dist/dev-server/control-bridge/logs-file.d.ts +30 -0
  21. package/dist/dev-server/control-bridge/producer-runtime.d.ts +30 -0
  22. package/dist/dev-server/control-bridge/ring-buffer.d.ts +21 -0
  23. package/dist/dev-server/control-bridge/session-token.d.ts +18 -0
  24. package/dist/dev-server/control-bridge/ws-control-server.d.ts +13 -0
  25. package/dist/dev-server/frameworks.d.ts +2 -0
  26. package/dist/dev-server/index.d.ts +3 -0
  27. package/dist/dev-server/messages.d.ts +17 -0
  28. package/dist/dev-server/port-manager.d.ts +17 -0
  29. package/dist/extension-js-devtools/extension-js/chrome/events.ndjson +2 -6
  30. package/dist/extension-js-devtools/extension-js/chrome/ready.json +9 -6
  31. package/dist/extension-js-devtools/extension-js/chromium/events.ndjson +2 -6
  32. package/dist/extension-js-devtools/extension-js/chromium/ready.json +9 -6
  33. package/dist/extension-js-devtools/extension-js/edge/events.ndjson +2 -6
  34. package/dist/extension-js-devtools/extension-js/edge/ready.json +9 -6
  35. package/dist/extension-js-devtools/extension-js/firefox/events.ndjson +2 -6
  36. package/dist/extension-js-devtools/extension-js/firefox/ready.json +9 -6
  37. package/dist/extension-js-theme/extension-js/chrome/events.ndjson +2 -6
  38. package/dist/extension-js-theme/extension-js/chrome/ready.json +9 -6
  39. package/dist/extension-js-theme/extension-js/chromium/events.ndjson +2 -6
  40. package/dist/extension-js-theme/extension-js/chromium/ready.json +9 -6
  41. package/dist/extension-js-theme/extension-js/edge/events.ndjson +2 -6
  42. package/dist/extension-js-theme/extension-js/edge/ready.json +9 -6
  43. package/dist/extension-js-theme/extension-js/firefox/events.ndjson +2 -8
  44. package/dist/extension-js-theme/extension-js/firefox/ready.json +9 -6
  45. package/dist/lib/branding.d.ts +7 -0
  46. package/dist/lib/build-summary.d.ts +9 -0
  47. package/dist/lib/config-loader.d.ts +38 -0
  48. package/dist/lib/constants.d.ts +11 -0
  49. package/dist/lib/dark-mode.d.ts +9 -0
  50. package/dist/lib/dev-server-client-import.d.ts +4 -0
  51. package/dist/lib/develop-context.d.ts +3 -0
  52. package/dist/lib/ensure-develop-artifacts.d.ts +10 -0
  53. package/dist/lib/extensions-to-load.d.ts +1 -0
  54. package/dist/lib/generate-extension-types.d.ts +1 -0
  55. package/dist/lib/has-dependency.d.ts +6 -0
  56. package/dist/lib/manifest-utils.d.ts +2 -0
  57. package/dist/lib/messages.d.ts +55 -0
  58. package/dist/lib/optional-dependency-types.d.ts +14 -0
  59. package/dist/lib/optional-deps-contracts.d.ts +13 -0
  60. package/dist/lib/optional-deps-resolver.d.ts +41 -0
  61. package/dist/lib/package-json.d.ts +3 -0
  62. package/dist/lib/package-manager.d.ts +61 -0
  63. package/dist/lib/parse-json-safe.d.ts +13 -0
  64. package/dist/lib/paths.d.ts +19 -0
  65. package/dist/lib/project-manifest.d.ts +60 -0
  66. package/dist/lib/project.d.ts +7 -0
  67. package/dist/lib/resource-path.d.ts +4 -0
  68. package/dist/lib/rust-min-stack.d.ts +2 -0
  69. package/dist/lib/sanitize.d.ts +1 -0
  70. package/dist/lib/session-paths.d.ts +39 -0
  71. package/dist/lib/stats-handler.d.ts +1 -0
  72. package/dist/lib/transpile-packages.d.ts +7 -0
  73. package/dist/lib/validate-user-dependencies.d.ts +1 -0
  74. package/dist/lib/zip.d.ts +2 -0
  75. package/dist/module.d.ts +8 -0
  76. package/dist/plugin-browsers/index.d.ts +108 -0
  77. package/dist/plugin-browsers/safari-dev-plugin.d.ts +19 -0
  78. package/dist/plugin-compatibility/compatibility-lib/messages.d.ts +5 -0
  79. package/dist/plugin-compatibility/feature-polyfill.d.ts +11 -0
  80. package/dist/plugin-compatibility/index.d.ts +12 -0
  81. package/dist/plugin-compilation/boring.d.ts +11 -0
  82. package/dist/plugin-compilation/clean-dist.d.ts +8 -0
  83. package/dist/plugin-compilation/compilation-lib/messages.d.ts +11 -0
  84. package/dist/plugin-compilation/compilation-lib/shared-state.d.ts +7 -0
  85. package/dist/plugin-compilation/env.d.ts +17 -0
  86. package/dist/plugin-compilation/index.d.ts +22 -0
  87. package/dist/plugin-compilation/zip.d.ts +18 -0
  88. package/dist/plugin-css/common-style-loaders.d.ts +8 -0
  89. package/dist/plugin-css/css-in-content-script-loader.d.ts +4 -0
  90. package/dist/plugin-css/css-in-html-loader.d.ts +4 -0
  91. package/dist/plugin-css/css-lib/build-css-rules.d.ts +12 -0
  92. package/dist/plugin-css/css-lib/inject-css-link.d.ts +16 -0
  93. package/dist/plugin-css/css-lib/is-content-script.d.ts +1 -0
  94. package/dist/plugin-css/css-lib/messages.d.ts +9 -0
  95. package/dist/plugin-css/css-lib/resolve-css-asset.d.ts +21 -0
  96. package/dist/plugin-css/css-parse-guard-loader.d.ts +8 -0
  97. package/dist/plugin-css/css-tools/less.d.ts +7 -0
  98. package/dist/plugin-css/css-tools/postcss.d.ts +4 -0
  99. package/dist/plugin-css/css-tools/sass.d.ts +10 -0
  100. package/dist/plugin-css/css-tools/tailwind.d.ts +2 -0
  101. package/dist/plugin-css/index.d.ts +26 -0
  102. package/dist/plugin-css/preprocessor-passthrough-loader.d.ts +6 -0
  103. package/dist/plugin-js-frameworks/frameworks-lib/integrations.d.ts +4 -0
  104. package/dist/plugin-js-frameworks/index.d.ts +18 -0
  105. package/dist/plugin-js-frameworks/js-frameworks-lib/load-loader-options.d.ts +2 -0
  106. package/dist/plugin-js-frameworks/js-frameworks-lib/messages.d.ts +10 -0
  107. package/dist/plugin-js-frameworks/js-tools/preact.d.ts +3 -0
  108. package/dist/plugin-js-frameworks/js-tools/react.d.ts +8 -0
  109. package/dist/plugin-js-frameworks/js-tools/svelte.d.ts +4 -0
  110. package/dist/plugin-js-frameworks/js-tools/typescript.d.ts +37 -0
  111. package/dist/plugin-js-frameworks/js-tools/vue.d.ts +3 -0
  112. package/dist/plugin-perf-budgets/categorize.d.ts +3 -0
  113. package/dist/plugin-perf-budgets/index.d.ts +34 -0
  114. package/dist/plugin-perf-budgets/messages.d.ts +8 -0
  115. package/dist/plugin-playwright/index.d.ts +89 -0
  116. package/dist/plugin-reload/classify-reload.d.ts +86 -0
  117. package/dist/plugin-reload/index.d.ts +29 -0
  118. package/dist/plugin-reload/messages.d.ts +1 -0
  119. package/dist/plugin-reload/reload-dispatch.d.ts +46 -0
  120. package/dist/plugin-reload/reload-lib/minimum-files/minimum-background-file-chromium.d.ts +0 -0
  121. package/dist/plugin-reload/reload-lib/minimum-files/minimum-background-file-firefox.d.ts +0 -0
  122. package/dist/plugin-reload/reload-lib/scripts-replay-shim.d.ts +19 -0
  123. package/dist/plugin-reload/steps/inject-bridge-producer.d.ts +14 -0
  124. package/dist/plugin-reload/steps/inject-bridge-relay.d.ts +4 -0
  125. package/dist/plugin-reload/steps/inject-scripts-replay-shim.d.ts +10 -0
  126. package/dist/plugin-reload/steps/prune-stale-hot-updates.d.ts +20 -0
  127. package/dist/plugin-reload/steps/remove-content-script-dev-server-runtime.d.ts +2 -0
  128. package/dist/plugin-reload/steps/setup-reload-strategy/index.d.ts +9 -0
  129. package/dist/plugin-reload/steps/setup-reload-strategy/setup-background-entry.d.ts +13 -0
  130. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/index.d.ts +2 -0
  131. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/ChunkLoader.d.ts +9 -0
  132. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/HMRDevServer.d.ts +3 -0
  133. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/InitialChunkFile.d.ts +5 -0
  134. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/NoDangerNamePlugin.d.ts +3 -0
  135. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/AutoPublicPath.d.ts +2 -0
  136. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/BaseUri.d.ts +2 -0
  137. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/BrowserRuntime.d.ts +8 -0
  138. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/ChunkLoaderFallback.d.ts +1 -0
  139. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/EagerlyLoadChunks.d.ts +1 -0
  140. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/LoadScript.d.ts +4 -0
  141. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/RuntimeModules/PublicPath.d.ts +2 -0
  142. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/ServiceWorkerPlugin.d.ts +6 -0
  143. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/helper.d.ts +12 -0
  144. package/dist/plugin-reload/steps/setup-reload-strategy/webpack-target-webextension-fork/lib/webpack5/index.d.ts +5 -0
  145. package/dist/plugin-reload/steps/strip-content-script-dev-server-runtime.d.ts +4 -0
  146. package/dist/plugin-special-folders/check-manifest-in-public.d.ts +2 -0
  147. package/dist/plugin-special-folders/emit-root-absolute-refs.d.ts +2 -0
  148. package/dist/plugin-special-folders/folder-extensions/resolve-config.d.ts +6 -0
  149. package/dist/plugin-special-folders/folder-extensions/resolve-dirs.d.ts +5 -0
  150. package/dist/plugin-special-folders/folder-extensions/types.d.ts +17 -0
  151. package/dist/plugin-special-folders/folder-extensions/utils.d.ts +9 -0
  152. package/dist/plugin-special-folders/get-data.d.ts +12 -0
  153. package/dist/plugin-special-folders/index.d.ts +20 -0
  154. package/dist/plugin-special-folders/messages.d.ts +3 -0
  155. package/dist/plugin-special-folders/warn-upon-folder-changes.d.ts +13 -0
  156. package/dist/plugin-static-assets/index.d.ts +10 -0
  157. package/dist/plugin-static-assets/static-assets-lib/messages.d.ts +8 -0
  158. package/dist/plugin-wasm/index.d.ts +15 -0
  159. package/dist/plugin-web-extension/feature-html/html-lib/assets.d.ts +2 -0
  160. package/dist/plugin-web-extension/feature-html/html-lib/inject.d.ts +4 -0
  161. package/dist/plugin-web-extension/feature-html/html-lib/messages.d.ts +24 -0
  162. package/dist/plugin-web-extension/feature-html/html-lib/parse-html.d.ts +8 -0
  163. package/dist/plugin-web-extension/feature-html/html-lib/patch-html.d.ts +8 -0
  164. package/dist/plugin-web-extension/feature-html/html-lib/utils.d.ts +46 -0
  165. package/dist/plugin-web-extension/feature-html/index.d.ts +36 -0
  166. package/dist/plugin-web-extension/feature-html/steps/add-assets-to-compilation.d.ts +9 -0
  167. package/dist/plugin-web-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +9 -0
  168. package/dist/plugin-web-extension/feature-html/steps/add-to-file-dependencies.d.ts +9 -0
  169. package/dist/plugin-web-extension/feature-html/steps/emit-html-file.d.ts +9 -0
  170. package/dist/plugin-web-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +2 -0
  171. package/dist/plugin-web-extension/feature-html/steps/handle-common-errors.d.ts +9 -0
  172. package/dist/plugin-web-extension/feature-html/steps/minimum-script-file.d.ts +1 -0
  173. package/dist/plugin-web-extension/feature-html/steps/preact-refresh-shim.d.ts +1 -0
  174. package/dist/plugin-web-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +12 -0
  175. package/dist/plugin-web-extension/feature-html/steps/update-html-file.d.ts +9 -0
  176. package/dist/plugin-web-extension/feature-icons/index.d.ts +22 -0
  177. package/dist/plugin-web-extension/feature-icons/messages.d.ts +12 -0
  178. package/dist/plugin-web-extension/feature-icons/normalize-keys.d.ts +3 -0
  179. package/dist/plugin-web-extension/feature-icons/steps/add-to-file-dependencies.d.ts +8 -0
  180. package/dist/plugin-web-extension/feature-icons/steps/emit-file.d.ts +8 -0
  181. package/dist/plugin-web-extension/feature-json/index.d.ts +18 -0
  182. package/dist/plugin-web-extension/feature-json/json-validation.d.ts +3 -0
  183. package/dist/plugin-web-extension/feature-json/messages.d.ts +17 -0
  184. package/dist/plugin-web-extension/feature-json/process-assets.d.ts +2 -0
  185. package/dist/plugin-web-extension/feature-json/track-dependencies.d.ts +2 -0
  186. package/dist/plugin-web-extension/feature-locales/compilation-error.d.ts +2 -0
  187. package/dist/plugin-web-extension/feature-locales/get-locales.d.ts +2 -0
  188. package/dist/plugin-web-extension/feature-locales/index.d.ts +12 -0
  189. package/dist/plugin-web-extension/feature-locales/messages.d.ts +13 -0
  190. package/dist/plugin-web-extension/feature-locales/process-assets.d.ts +2 -0
  191. package/dist/plugin-web-extension/feature-locales/track-dependencies.d.ts +2 -0
  192. package/dist/plugin-web-extension/feature-locales/validation.d.ts +2 -0
  193. package/dist/plugin-web-extension/feature-manifest/index.d.ts +21 -0
  194. package/dist/plugin-web-extension/feature-manifest/manifest-lib/manifest.d.ts +10 -0
  195. package/dist/plugin-web-extension/feature-manifest/manifest-lib/sanitize-fatal-shapes.d.ts +45 -0
  196. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/background.d.ts +6 -0
  197. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +8 -0
  198. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/commands.d.ts +16 -0
  199. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +4 -0
  200. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +4 -0
  201. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +4 -0
  202. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/icons.d.ts +6 -0
  203. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/index.d.ts +2 -0
  204. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +9 -0
  205. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +4 -0
  206. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +8 -0
  207. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +8 -0
  208. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +4 -0
  209. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +7 -0
  210. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +2 -0
  211. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/storage.d.ts +6 -0
  212. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/theme.d.ts +2 -0
  213. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +2 -0
  214. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +4 -0
  215. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/index.d.ts +2 -0
  216. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +6 -0
  217. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +12 -0
  218. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +24 -0
  219. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +2 -0
  220. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +7 -0
  221. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +8 -0
  222. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +6 -0
  223. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +2 -0
  224. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +4 -0
  225. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +2 -0
  226. package/dist/plugin-web-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +2 -0
  227. package/dist/plugin-web-extension/feature-manifest/messages.d.ts +9 -0
  228. package/dist/plugin-web-extension/feature-manifest/normalize-manifest-path.d.ts +3 -0
  229. package/dist/plugin-web-extension/feature-manifest/steps/add-dependencies.d.ts +6 -0
  230. package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-background.d.ts +10 -0
  231. package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-csp.d.ts +5 -0
  232. package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-externally-connectable.d.ts +10 -0
  233. package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults-lib/patch-web-resources.d.ts +19 -0
  234. package/dist/plugin-web-extension/feature-manifest/steps/apply-dev-defaults.d.ts +12 -0
  235. package/dist/plugin-web-extension/feature-manifest/steps/emit-manifest.d.ts +7 -0
  236. package/dist/plugin-web-extension/feature-manifest/steps/legacy-warnings.d.ts +5 -0
  237. package/dist/plugin-web-extension/feature-manifest/steps/patch-chromium-background.d.ts +15 -0
  238. package/dist/plugin-web-extension/feature-manifest/steps/patch-dev-content-script-manifest-paths.d.ts +11 -0
  239. package/dist/plugin-web-extension/feature-manifest/steps/patch-gecko-background.d.ts +15 -0
  240. package/dist/plugin-web-extension/feature-manifest/steps/patch-war.d.ts +15 -0
  241. package/dist/plugin-web-extension/feature-manifest/steps/persist-manifest.d.ts +4 -0
  242. package/dist/plugin-web-extension/feature-manifest/steps/update-manifest.d.ts +9 -0
  243. package/dist/plugin-web-extension/feature-scripts/contracts.d.ts +12 -0
  244. package/dist/plugin-web-extension/feature-scripts/index.d.ts +19 -0
  245. package/dist/plugin-web-extension/feature-scripts/messages.d.ts +7 -0
  246. package/dist/plugin-web-extension/feature-scripts/scripts-lib/utils.d.ts +2 -0
  247. package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/classic-concat-loader.d.ts +8 -0
  248. package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/content-script-wrapper.d.ts +13 -0
  249. package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/get-bridge-scripts.d.ts +6 -0
  250. package/dist/plugin-web-extension/feature-scripts/steps/add-content-script-wrapper/index.d.ts +11 -0
  251. package/dist/plugin-web-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +4 -0
  252. package/dist/plugin-web-extension/feature-scripts/steps/add-scripts.d.ts +9 -0
  253. package/dist/plugin-web-extension/feature-scripts/steps/keep-geturl-imports-native.d.ts +15 -0
  254. package/dist/plugin-web-extension/feature-scripts/steps/native-geturl-import-loader.d.ts +3 -0
  255. package/dist/plugin-web-extension/feature-scripts/steps/trace-runtime-loaded-files.d.ts +41 -0
  256. package/dist/plugin-web-extension/feature-scripts/steps/validate-content-script-syntax.d.ts +18 -0
  257. package/dist/plugin-web-extension/feature-web-resources/collect-entry-imports.d.ts +3 -0
  258. package/dist/plugin-web-extension/feature-web-resources/index.d.ts +19 -0
  259. package/dist/plugin-web-extension/feature-web-resources/steps/collect-content-entry-imports.d.ts +10 -0
  260. package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/clean-matches.d.ts +7 -0
  261. package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/generate-manifest.d.ts +11 -0
  262. package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/messages.d.ts +10 -0
  263. package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/resolve-war.d.ts +9 -0
  264. package/dist/plugin-web-extension/feature-web-resources/web-resources-lib/shared.d.ts +4 -0
  265. package/dist/plugin-web-extension/index.d.ts +9 -0
  266. package/dist/plugin-web-extension/shared/classic-concat.d.ts +18 -0
  267. package/dist/plugin-web-extension/shared/compilation-issues.d.ts +6 -0
  268. package/dist/plugin-web-extension/shared/manifest-fields-change-detector.d.ts +12 -0
  269. package/dist/plugin-web-extension/shared/paths.d.ts +26 -0
  270. package/dist/preview-entry.d.ts +3 -0
  271. package/dist/rslib.config.d.ts +3 -0
  272. package/dist/rspack-config.d.ts +4 -0
  273. package/dist/types.d.ts +406 -0
  274. package/package.json +3 -3
@@ -0,0 +1,9 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { type FilepathList, type PluginInterface } from '../../../types';
3
+ export declare class EmitHtmlFile {
4
+ readonly manifestPath: string;
5
+ readonly includeList?: FilepathList;
6
+ readonly browser?: PluginInterface['browser'];
7
+ constructor(options: PluginInterface);
8
+ apply(compiler: Compiler): void;
9
+ }
@@ -0,0 +1,2 @@
1
+ import type { LoaderInterface } from '../../../types';
2
+ export default function ensureHMRForScripts(this: LoaderInterface, source: string): string | undefined;
@@ -0,0 +1,9 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { type FilepathList, type PluginInterface } from '../../../types';
3
+ export declare class HandleCommonErrors {
4
+ readonly manifestPath: string;
5
+ readonly includeList?: FilepathList;
6
+ readonly browser?: string;
7
+ constructor(options: PluginInterface);
8
+ apply(compiler: Compiler): void;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { type FilepathList, type PluginInterface } from '../../../types';
3
+ export declare class ThrowIfRecompileIsNeeded {
4
+ readonly manifestPath: string;
5
+ readonly includeList?: FilepathList;
6
+ readonly browser?: string;
7
+ private initialHtmlAssets;
8
+ constructor(options: PluginInterface);
9
+ private hasEntriesChanged;
10
+ private storeInitialHtmlAssets;
11
+ apply(compiler: Compiler): void;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { type FilepathList, type PluginInterface } from '../../../types';
3
+ export declare class UpdateHtmlFile {
4
+ readonly manifestPath: string;
5
+ readonly includeList?: FilepathList;
6
+ readonly browser?: string;
7
+ constructor(options: PluginInterface);
8
+ apply(compiler: Compiler): void;
9
+ }
@@ -0,0 +1,22 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import type { ThemeIcon, FilepathList, PluginInterface } from '../../types';
3
+ /**
4
+ * IconsPlugin is responsible for handling the icon files defined
5
+ * in the manifest.json. It emits the icon files to the output
6
+ * directory and adds them to the file dependencies of the compilation.
7
+ *
8
+ * Features supported:
9
+ * action.default_icon
10
+ * browser_action.default_icon
11
+ * icons
12
+ * page_action.default_icon
13
+ * sidebar_action.default_icon
14
+ */
15
+ export declare class IconsPlugin {
16
+ readonly manifestPath: string;
17
+ readonly includeList?: FilepathList | {
18
+ [x: string]: ThemeIcon;
19
+ };
20
+ constructor(options: PluginInterface);
21
+ apply(compiler: Compiler): void;
22
+ }
@@ -0,0 +1,12 @@
1
+ export declare function iconsMissingFile(manifestField: string, filePath: string, opts?: {
2
+ publicRootHint?: boolean;
3
+ }): string;
4
+ export declare function manifestIconsEntrypointChange(manifestField?: string, pathAfter?: string, pathBefore?: string): string;
5
+ export declare function iconsEmitSummary(feature: string, stats: {
6
+ entries: number;
7
+ underPublic: number;
8
+ emitted: number;
9
+ missing: number;
10
+ }): string;
11
+ export declare function iconsDepsTracked(addedCount: number): string;
12
+ export declare function iconsNormalizationSummary(beforeKeys: string[], afterKeys: string[], changedCount: number): string;
@@ -0,0 +1,3 @@
1
+ import type { FilepathList } from '../../types';
2
+ export declare function iconValuesToStrings(response: unknown): string[];
3
+ export declare function normalizeIconIncludeKeys(icons?: Record<string, unknown>): FilepathList;
@@ -0,0 +1,8 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ import { type FilepathList, type PluginInterface } from '../../../types';
3
+ export declare class AddToFileDependencies {
4
+ readonly manifestPath: string;
5
+ readonly includeList?: FilepathList;
6
+ constructor(options: PluginInterface);
7
+ apply(compiler: Compiler): void;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import { type FilepathList, type PluginInterface } from '../../../types';
3
+ export declare class EmitFile {
4
+ readonly manifestPath: string;
5
+ readonly includeList?: FilepathList;
6
+ constructor(options: PluginInterface);
7
+ apply(compiler: Compiler): void;
8
+ }
@@ -0,0 +1,18 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import type { FilepathList, PluginInterface, DevOptions } from '../../types';
3
+ /**
4
+ * JsonPlugin is responsible for handling the JSON files defined
5
+ * in the manifest.json. It emits the JSON files to the output
6
+ * directory and adds them to the file dependencies of the compilation.
7
+ *
8
+ * Features supported:
9
+ * - declarative_net_request.ruleset
10
+ * - storage.managed_schema
11
+ */
12
+ export declare class JsonPlugin {
13
+ readonly manifestPath: string;
14
+ readonly includeList?: FilepathList;
15
+ readonly browser?: DevOptions['browser'] | 'chrome';
16
+ constructor(options: PluginInterface);
17
+ apply(compiler: Compiler): void;
18
+ }
@@ -0,0 +1,3 @@
1
+ import { Compilation } from '@rspack/core';
2
+ export declare function isCriticalJsonFeature(feature: string): boolean;
3
+ export declare function validateJsonAsset(compilation: Compilation, feature: string, filePath: string, buf: Buffer): boolean;
@@ -0,0 +1,17 @@
1
+ export declare function entryNotFoundMessageOnly(manifestField: string, absPath?: string): string;
2
+ export declare function jsonMissingFile(manifestField: string, filePath: string, opts?: {
3
+ publicRootHint?: boolean;
4
+ }): string;
5
+ export declare function invalidJsonSyntax(manifestField: string, file: string, cause: string): string;
6
+ export declare function invalidRulesetStructure(manifestField: string, file: string): string;
7
+ export declare function invalidManagedSchemaStructure(manifestField: string, file: string): string;
8
+ export declare function jsonEmitSummary(feature: string, stats: {
9
+ entries: number;
10
+ underPublic: number;
11
+ emitted: number;
12
+ missing: number;
13
+ validatedOk: number;
14
+ invalid: number;
15
+ }): string;
16
+ export declare function jsonDepsTracked(addedCount: number): string;
17
+ export declare function jsonIncludeSummary(totalFeatures: number, criticalCount: number): string;
@@ -0,0 +1,2 @@
1
+ import { Compilation } from '@rspack/core';
2
+ export declare function processJsonAssets(compilation: Compilation, manifestPath: string, includeList: Record<string, string | string[] | undefined>): void;
@@ -0,0 +1,2 @@
1
+ import { Compilation } from '@rspack/core';
2
+ export declare function trackJsonDependencies(compilation: Compilation, manifestPath: string, includeList: Record<string, string | string[] | undefined>): void;
@@ -0,0 +1,2 @@
1
+ import { Compiler, Compilation } from '@rspack/core';
2
+ export declare function pushCompilationError(compiler: Compiler, compilation: Compilation, name: string, message: string, file?: string): void;
@@ -0,0 +1,2 @@
1
+ export declare function resolveLocalesFolder(manifestPath: string, projectRoot?: string): string | undefined;
2
+ export declare function getLocales(manifestPath: string, projectRoot?: string): string[] | undefined;
@@ -0,0 +1,12 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import { type FilepathList, type PluginInterface } from '../../types';
3
+ /**
4
+ * LocalesPlugin is responsible for emitting the locales files
5
+ * to the output directory.
6
+ */
7
+ export declare class LocalesPlugin {
8
+ readonly manifestPath: string;
9
+ readonly includeList?: FilepathList;
10
+ constructor(options: PluginInterface);
11
+ apply(compiler: Compiler): void;
12
+ }
@@ -0,0 +1,13 @@
1
+ export declare function manifestNotFoundMessageOnly(absPath: string): string;
2
+ export declare function entryNotFoundMessageOnly(manifestField: string, absPath?: string): string;
3
+ export declare function defaultLocaleSpecifiedButLocalesMissing(): string;
4
+ export declare function defaultLocaleFolderMissing(defaultLocale: string): string;
5
+ export declare function defaultLocaleMessagesMissing(defaultLocale: string): string;
6
+ export declare function localesPresentButNoDefaultLocale(): string;
7
+ export declare function invalidMessagesJson(absPath: string): string;
8
+ export declare function missingManifestMessageKey(key: string, defaultLocale?: string): string;
9
+ export declare function localesIncludeSummary(hasManifest: boolean, hasLocalesRoot: boolean, defaultLocale?: string): string;
10
+ export declare function localesEmitSummary(emitted: number, missing: number, discovered: number): string;
11
+ export declare function localesDepsTracked(addedCount: number): string;
12
+ export declare function localesValidationDetected(issue: string): string;
13
+ export declare function localesMustBeAtProjectRoot(foundAt: string, expectedAt: string): string;
@@ -0,0 +1,2 @@
1
+ import { Compiler, Compilation } from '@rspack/core';
2
+ export declare function processLocaleAssets(compiler: Compiler, compilation: Compilation, manifestPath: string): void;
@@ -0,0 +1,2 @@
1
+ import { Compilation } from '@rspack/core';
2
+ export declare function trackLocaleDependencies(compilation: Compilation, manifestPath: string, projectRoot?: string): void;
@@ -0,0 +1,2 @@
1
+ import { Compiler, Compilation } from '@rspack/core';
2
+ export declare function validateLocales(compiler: Compiler, compilation: Compilation, manifestPath: string): boolean;
@@ -0,0 +1,21 @@
1
+ import { Compiler } from '@rspack/core';
2
+ import type { FilepathList, PluginInterface, DevOptions } from '../../types';
3
+ /**
4
+ * ManifestPlugin is responsible for handling the manifest.json file.
5
+ * It ensures that the files defined in the manifest have valid paths,
6
+ * throwing errors if they don't. It also ensures the manifest is emitted
7
+ * to the assets bundle, so other plugins can modify it, and stored
8
+ * as file dependency so webpack can watch and trigger changes.
9
+ *
10
+ * The plugin also has a guard against recompiling entrypoints
11
+ * at runtime, throwing an error if any of those files change.
12
+ */
13
+ export declare class ManifestPlugin {
14
+ readonly manifestPath: string;
15
+ readonly browser: DevOptions['browser'];
16
+ readonly includeList?: FilepathList;
17
+ constructor(options: PluginInterface & {
18
+ browser: DevOptions['browser'];
19
+ });
20
+ apply(compiler: Compiler): void;
21
+ }
@@ -0,0 +1,10 @@
1
+ import { type Compilation } from '@rspack/core';
2
+ import type { Manifest, DevOptions } from '../../../types';
3
+ import { filterKeysForThisBrowser } from '../../../lib/manifest-utils';
4
+ export declare function setOriginalManifestContent(compilation: Compilation, source: string): void;
5
+ export declare function getOriginalManifestContent(compilation: Compilation): string | undefined;
6
+ export declare function setCurrentManifestContent(compilation: Compilation, source: string): void;
7
+ export declare function getCurrentManifestContent(compilation: Compilation): string | undefined;
8
+ export declare function getManifestContent(compilation: Compilation, manifestPath: string): Manifest;
9
+ export { filterKeysForThisBrowser };
10
+ export declare function buildCanonicalManifest(manifestPath: string, manifest: Manifest, browser: DevOptions['browser']): Manifest;
@@ -0,0 +1,45 @@
1
+ import { type Manifest } from '../../../types';
2
+ export interface FatalShapeFix {
3
+ field: string;
4
+ detail: string;
5
+ }
6
+ /**
7
+ * Repair author-manifest shapes that make Chrome refuse to load the whole
8
+ * extension. Loading via --load-extension surfaces the refusal as a native
9
+ * modal dialog (no CDP, no console), so a dev session just wedges — the
10
+ * browser never binds its debug endpoint. Both shapes below were found in
11
+ * the wild and are unambiguous to fix:
12
+ *
13
+ * - `"name"` missing, empty, or not a string — Chrome refuses with
14
+ * "Required value 'name' is missing or invalid" (verified live on Chrome
15
+ * 150 via CDP loadUnpacked for all three shapes). Coerce scalars,
16
+ * fall back to "Unnamed Extension".
17
+ * - `"version"` missing entirely — Chrome refuses with "Required value
18
+ * 'version' is missing or invalid" (wild: Ananyakk71/javscript). Inject
19
+ * "0.0.0" so the session can attach.
20
+ * - `"version": 1.0` — JSON authors write a number; Chrome requires a string
21
+ * of 1-4 dot-separated integers. String() preserves the intent.
22
+ * - `"version": "x.y.z"` (any string that is not 1-4 dot-separated integers
23
+ * 0-65535) — a placeholder the author never filled in; Chrome refuses the
24
+ * whole extension over it. Salvage the numeric parts when there are any,
25
+ * fall back to "0.0.0" otherwise.
26
+ * - `"default_icon": ""` (in action/browser_action/page_action) — an empty
27
+ * icon path rejects the extension. Empty means "no icon": drop the key.
28
+ * - An icon path (`icons`, `*_action.default_icon`) whose file exists but is
29
+ * 0 bytes (wild: Speak2Type ships an empty icon-128.png) — Chrome cannot
30
+ * decode it and refuses the whole extension with "Could not load icon".
31
+ * Requires `manifestDir` to resolve the paths; drop the entry.
32
+ * - `'unsafe-inline'` in `content_security_policy.extension_pages`
33
+ * script-src — Chrome refuses the whole extension with "Insecure CSP
34
+ * value" (wild: zenwerk/tonikakuyare). MV3 never honors it, so stripping
35
+ * it changes nothing but the refusal.
36
+ * - A named (non-`_execute_*`) command whose `description` is missing,
37
+ * empty, or not a string — Chrome refuses the whole extension with
38
+ * "Invalid value for 'commands[N].description'" (seen live loading a
39
+ * built extension). Fall back to the command name so the shortcut stays
40
+ * registered and the session can attach.
41
+ */
42
+ export declare function sanitizeFatalManifestShapes(manifest: Manifest, manifestDir?: string): {
43
+ manifest: Manifest;
44
+ fixes: FatalShapeFix[];
45
+ };
@@ -0,0 +1,6 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function backgroundPage(manifest: Manifest): "" | {
3
+ background: {
4
+ page: string;
5
+ };
6
+ } | undefined;
@@ -0,0 +1,8 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function chromeUrlOverrides(manifest: Manifest, manifestPath?: string): {
3
+ chrome_url_overrides: {
4
+ newtab?: string | undefined;
5
+ history?: string | undefined;
6
+ bookmarks?: string | undefined;
7
+ };
8
+ } | undefined;
@@ -0,0 +1,16 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function commands(manifest: Manifest): {
3
+ commands: {
4
+ [name: string]: {
5
+ suggested_key?: {
6
+ default?: string | undefined;
7
+ windows?: string | undefined;
8
+ mac?: string | undefined;
9
+ chromeos?: string | undefined;
10
+ linux?: string | undefined;
11
+ } | undefined;
12
+ description?: string | undefined;
13
+ global?: boolean | undefined;
14
+ };
15
+ };
16
+ } | undefined;
@@ -0,0 +1,4 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function contentScripts(manifest: Manifest, manifestPath?: string): {
3
+ content_scripts: any[];
4
+ } | undefined;
@@ -0,0 +1,4 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function contentSecurityPolicy(manifest: Manifest): {
3
+ content_security_policy: unknown;
4
+ } | undefined;
@@ -0,0 +1,4 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function devtoolsPage(manifest: Manifest, manifestPath?: string): "" | {
3
+ devtools_page: string;
4
+ } | undefined;
@@ -0,0 +1,6 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function icons(manifest: Manifest): {
3
+ icons: {
4
+ [k: string]: string;
5
+ };
6
+ } | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function manifestCommon(manifest: Manifest, manifestPath?: string): any;
@@ -0,0 +1,9 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function omnibox(manifest: Manifest): {
3
+ omnibox: {
4
+ default_icon?: string | {
5
+ [k: string]: string;
6
+ } | undefined;
7
+ keyword: string;
8
+ };
9
+ } | undefined;
@@ -0,0 +1,4 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function optionsPage(manifest: Manifest, manifestPath?: string): "" | {
3
+ options_page: string;
4
+ } | undefined;
@@ -0,0 +1,8 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function optionsUi(manifest: Manifest, manifestPath?: string): {
3
+ options_ui: {
4
+ page?: string | undefined;
5
+ chrome_style?: boolean | undefined;
6
+ open_in_tab?: boolean | undefined;
7
+ };
8
+ } | undefined;
@@ -0,0 +1,8 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function pageAction(manifest: Manifest): {
3
+ page_action: {
4
+ default_icon?: string | chrome.runtime.ManifestIcons | undefined;
5
+ default_popup?: string | undefined;
6
+ default_title?: string | undefined;
7
+ };
8
+ } | undefined;
@@ -0,0 +1,4 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function permissions(manifest: Manifest): {
3
+ permissions: string[] & chrome.runtime.ManifestPermission[];
4
+ } | undefined;
@@ -0,0 +1,7 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function sandbox(manifest: Manifest): {
3
+ sandbox: {
4
+ pages: string[];
5
+ content_security_policy?: string | undefined;
6
+ };
7
+ } | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function sidebarAction(manifest: Manifest): any;
@@ -0,0 +1,6 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function storage(manifest: Manifest): {
3
+ storage: {
4
+ managed_schema?: string | undefined;
5
+ };
6
+ } | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function theme(manifest: Manifest): any;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function userScripts(manifest: Manifest): any;
@@ -0,0 +1,4 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function webAccessibleResources(manifest: Manifest): {
3
+ web_accessible_resources: Manifest["web_accessible_resources"];
4
+ } | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../types';
2
+ export declare function getManifestOverrides(manifestPath: string, manifest: Manifest): string;
@@ -0,0 +1,6 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function background(manifest: Manifest): {
3
+ background: {
4
+ scripts: string[];
5
+ };
6
+ } | undefined;
@@ -0,0 +1,12 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function browserAction(manifest: Manifest): {
3
+ browser_action: {
4
+ theme_icons?: {
5
+ dark: string;
6
+ light: string;
7
+ }[] | undefined;
8
+ default_icon?: string | chrome.runtime.ManifestIcons | undefined;
9
+ default_popup?: string | undefined;
10
+ default_title?: string | undefined;
11
+ };
12
+ } | undefined;
@@ -0,0 +1,24 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function chromeSettingsOverrides(manifest: Manifest): {
3
+ chrome_settings_overrides: {
4
+ startup_pages?: string[] | undefined;
5
+ search_provider?: {
6
+ favicon_url?: string | undefined;
7
+ name?: string | undefined;
8
+ keyword?: string | undefined;
9
+ search_url: string;
10
+ encoding?: string | undefined;
11
+ suggest_url?: string | undefined;
12
+ instant_url?: string | undefined;
13
+ image_url?: string | undefined;
14
+ search_url_post_params?: string | undefined;
15
+ suggest_url_post_params?: string | undefined;
16
+ instant_url_post_params?: string | undefined;
17
+ image_url_post_params?: string | undefined;
18
+ alternate_urls?: string[] | undefined;
19
+ prepopulated_id?: number | undefined;
20
+ is_default?: boolean | undefined;
21
+ } | undefined;
22
+ homepage?: string | undefined;
23
+ };
24
+ } | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function manifestV2(manifest: Manifest): any;
@@ -0,0 +1,7 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function themeExperiment(manifest: Manifest): {
3
+ theme_experiment: {
4
+ stylesheets?: string[];
5
+ stylesheet?: string;
6
+ };
7
+ } | undefined;
@@ -0,0 +1,8 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function action(manifest: Manifest): {
3
+ action: {
4
+ default_icon?: string | chrome.runtime.ManifestIcons | undefined;
5
+ default_popup?: string | undefined;
6
+ default_title?: string | undefined;
7
+ };
8
+ } | undefined;
@@ -0,0 +1,6 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function backgroundServiceWorker(manifest: Manifest): "" | {
3
+ background: {
4
+ service_worker: string;
5
+ };
6
+ } | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function declarativeNetRequest(manifest: Manifest): any;
@@ -0,0 +1,4 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function hostPermissions(manifest: Manifest): {
3
+ host_permissions: string[];
4
+ } | undefined;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function manifestV3(manifest: Manifest): any;
@@ -0,0 +1,2 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function sidePanel(manifest: Manifest): any;
@@ -0,0 +1,9 @@
1
+ export declare function serverRestartRequiredFromManifestError(fileAdded: string, fileRemoved: string): string;
2
+ export declare function legacyManifestPathWarning(legacyPath: string): string;
3
+ export declare function fatalManifestShapeFixed(field: string, detail: string): string;
4
+ export declare function manifestInvalidError(error: NodeJS.ErrnoException): string;
5
+ export declare function manifestIncludeSummary(browser: string, manifestPath: string): string;
6
+ export declare function manifestEmitSuccess(): string;
7
+ export declare function manifestOverridesSummary(overrideKeys: number, devCssStubsAdded: number): string;
8
+ export declare function manifestDepsTracked(addedCount: number): string;
9
+ export declare function manifestLegacyWarningsSummary(count: number): string;
@@ -0,0 +1,3 @@
1
+ export declare function normalizeManifestOutputPath(originalPath: string): string;
2
+ export declare function manifestPageOutputTarget(raw: string, compiledTarget: string, manifestPath?: string): string;
3
+ export declare function iconOutputPath(raw: string): string;
@@ -0,0 +1,6 @@
1
+ import { type Compiler } from '@rspack/core';
2
+ export declare class AddDependencies {
3
+ private readonly dependencyList;
4
+ constructor(dependencyList: string[]);
5
+ apply(compiler: Compiler): void;
6
+ }
@@ -0,0 +1,10 @@
1
+ import type { Manifest, DevOptions } from '../../../../types';
2
+ export default function patchBackground(manifest: Manifest, browser: DevOptions['browser']): {
3
+ background: {
4
+ scripts?: string[] | undefined;
5
+ page?: string | undefined;
6
+ persistent?: boolean | undefined;
7
+ service_worker?: string | undefined;
8
+ type?: "module";
9
+ };
10
+ };
@@ -0,0 +1,5 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export declare function patchV2CSP(manifest: Manifest): string;
3
+ export declare function patchV3CSP(manifest: Manifest): {
4
+ extension_pages: string;
5
+ };
@@ -0,0 +1,10 @@
1
+ import { type Manifest } from '../../../../types';
2
+ export default function patchExternallyConnectable(manifest: Manifest): {
3
+ externally_connectable: {
4
+ ids: string[];
5
+ matches?: string[] | undefined;
6
+ accepts_tls_channel_id?: boolean | undefined;
7
+ };
8
+ } | {
9
+ externally_connectable?: undefined;
10
+ };