extension-develop 2.1.3 → 3.0.0-next.7

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 (276) hide show
  1. package/README.md +53 -25
  2. package/dist/930.js +44 -0
  3. package/dist/add-centralized-logger-script-background.js +220 -0
  4. package/dist/add-centralized-logger-script-content.js +172 -0
  5. package/dist/add-centralized-logger-script.js +332 -0
  6. package/dist/add-hmr-accept-code.js +5 -11
  7. package/dist/content-script-wrapper.js +166 -0
  8. package/dist/ensure-hmr-for-scripts.js +30 -11
  9. package/dist/minimum-chromium-file.js +6 -20
  10. package/dist/minimum-firefox-file.js +6 -12
  11. package/dist/module.js +12030 -9529
  12. package/dist/resolve-paths-loader.js +1391 -0
  13. package/dist/warn-no-default-export.js +121 -0
  14. package/package.json +21 -35
  15. package/dist/add-content-script-wrapper.js +0 -1789
  16. package/dist/build.d.ts +0 -2
  17. package/dist/cleanup.d.ts +0 -1
  18. package/dist/deprecated-shadow-root.js +0 -135
  19. package/dist/dev.d.ts +0 -2
  20. package/dist/develop-lib/config-types.d.ts +0 -86
  21. package/dist/develop-lib/extract-from-zip.d.ts +0 -1
  22. package/dist/develop-lib/find-nearest-package.d.ts +0 -2
  23. package/dist/develop-lib/generate-extension-types.d.ts +0 -1
  24. package/dist/develop-lib/generate-zip.d.ts +0 -2
  25. package/dist/develop-lib/get-extension-config.d.ts +0 -6
  26. package/dist/develop-lib/get-project-path.d.ts +0 -6
  27. package/dist/develop-lib/install-dependencies.d.ts +0 -2
  28. package/dist/develop-lib/messages.d.ts +0 -36
  29. package/dist/develop-lib/validate-user-dependencies.d.ts +0 -1
  30. package/dist/extensions/chrome-manager-extension/background.js +0 -84
  31. package/dist/extensions/chrome-manager-extension/define-initial-tab.js +0 -77
  32. package/dist/extensions/chrome-manager-extension/images/logo.png +0 -0
  33. package/dist/extensions/chrome-manager-extension/manifest.json +0 -17
  34. package/dist/extensions/chrome-manager-extension/pages/sakura-dark.css +0 -268
  35. package/dist/extensions/chrome-manager-extension/pages/sakura.css +0 -267
  36. package/dist/extensions/chrome-manager-extension/pages/welcome.html +0 -46
  37. package/dist/extensions/chrome-manager-extension/pages/welcome.js +0 -34
  38. package/dist/extensions/chrome-manager-extension/reload-service.js +0 -319
  39. package/dist/extensions/chromium-based-manager-extension/background.js +0 -84
  40. package/dist/extensions/chromium-based-manager-extension/define-initial-tab.js +0 -77
  41. package/dist/extensions/chromium-based-manager-extension/images/logo.png +0 -0
  42. package/dist/extensions/chromium-based-manager-extension/manifest.json +0 -17
  43. package/dist/extensions/chromium-based-manager-extension/pages/sakura-dark.css +0 -268
  44. package/dist/extensions/chromium-based-manager-extension/pages/sakura.css +0 -267
  45. package/dist/extensions/chromium-based-manager-extension/pages/welcome.html +0 -46
  46. package/dist/extensions/chromium-based-manager-extension/pages/welcome.js +0 -34
  47. package/dist/extensions/chromium-based-manager-extension/reload-service.js +0 -324
  48. package/dist/extensions/edge-manager-extension/background.js +0 -82
  49. package/dist/extensions/edge-manager-extension/define-initial-tab.js +0 -77
  50. package/dist/extensions/edge-manager-extension/images/logo.png +0 -0
  51. package/dist/extensions/edge-manager-extension/manifest.json +0 -17
  52. package/dist/extensions/edge-manager-extension/pages/sakura-dark.css +0 -268
  53. package/dist/extensions/edge-manager-extension/pages/sakura.css +0 -267
  54. package/dist/extensions/edge-manager-extension/pages/welcome.html +0 -46
  55. package/dist/extensions/edge-manager-extension/pages/welcome.js +0 -34
  56. package/dist/extensions/edge-manager-extension/reload-service.js +0 -321
  57. package/dist/extensions/firefox-manager-extension/background.js +0 -85
  58. package/dist/extensions/firefox-manager-extension/define-initial-tab.js +0 -64
  59. package/dist/extensions/firefox-manager-extension/images/logo.png +0 -0
  60. package/dist/extensions/firefox-manager-extension/manifest.json +0 -15
  61. package/dist/extensions/firefox-manager-extension/pages/sakura-dark.css +0 -268
  62. package/dist/extensions/firefox-manager-extension/pages/sakura.css +0 -267
  63. package/dist/extensions/firefox-manager-extension/pages/welcome.html +0 -46
  64. package/dist/extensions/firefox-manager-extension/pages/welcome.js +0 -34
  65. package/dist/extensions/firefox-manager-extension/reload-service.js +0 -178
  66. package/dist/extensions/gecko-based-manager-extension/background.js +0 -67
  67. package/dist/extensions/gecko-based-manager-extension/define-initial-tab.js +0 -69
  68. package/dist/extensions/gecko-based-manager-extension/images/logo.png +0 -0
  69. package/dist/extensions/gecko-based-manager-extension/manifest.json +0 -16
  70. package/dist/extensions/gecko-based-manager-extension/pages/sakura-dark.css +0 -268
  71. package/dist/extensions/gecko-based-manager-extension/pages/sakura.css +0 -267
  72. package/dist/extensions/gecko-based-manager-extension/pages/welcome.html +0 -46
  73. package/dist/extensions/gecko-based-manager-extension/pages/welcome.js +0 -34
  74. package/dist/extensions/gecko-based-manager-extension/reload-service.js +0 -171
  75. package/dist/inject-chromium-client-loader.js +0 -176
  76. package/dist/inject-firefox-client-loader.js +0 -169
  77. package/dist/minimum-content-file.js +0 -5
  78. package/dist/module.d.ts +0 -8
  79. package/dist/preview.d.ts +0 -2
  80. package/dist/rslib.config.d.ts +0 -3
  81. package/dist/start.d.ts +0 -2
  82. package/dist/types.d.ts +0 -11
  83. package/dist/vitest.config.d.mts +0 -2
  84. package/dist/webpack/dev-server.d.ts +0 -3
  85. package/dist/webpack/plugin-browsers/browsers-lib/add-progress-bar.d.ts +0 -1
  86. package/dist/webpack/plugin-browsers/browsers-lib/constants.d.ts +0 -5
  87. package/dist/webpack/plugin-browsers/browsers-lib/dynamic-extension-manager.d.ts +0 -35
  88. package/dist/webpack/plugin-browsers/browsers-lib/html-merge.d.ts +0 -1
  89. package/dist/webpack/plugin-browsers/browsers-lib/instance-manager.d.ts +0 -74
  90. package/dist/webpack/plugin-browsers/browsers-lib/messages.d.ts +0 -164
  91. package/dist/webpack/plugin-browsers/browsers-lib/rdp-wire.d.ts +0 -7
  92. package/dist/webpack/plugin-browsers/browsers-lib/shared-utils.d.ts +0 -16
  93. package/dist/webpack/plugin-browsers/browsers-types.d.ts +0 -131
  94. package/dist/webpack/plugin-browsers/index.d.ts +0 -41
  95. package/dist/webpack/plugin-browsers/run-chromium/browser-config.d.ts +0 -3
  96. package/dist/webpack/plugin-browsers/run-chromium/create-profile.d.ts +0 -10
  97. package/dist/webpack/plugin-browsers/run-chromium/index.d.ts +0 -28
  98. package/dist/webpack/plugin-browsers/run-chromium/master-preferences.d.ts +0 -161
  99. package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/cdp-client.d.ts +0 -29
  100. package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/index.d.ts +0 -25
  101. package/dist/webpack/plugin-browsers/run-firefox/firefox/binary-detector.d.ts +0 -15
  102. package/dist/webpack/plugin-browsers/run-firefox/firefox/browser-config.d.ts +0 -7
  103. package/dist/webpack/plugin-browsers/run-firefox/firefox/create-profile.d.ts +0 -13
  104. package/dist/webpack/plugin-browsers/run-firefox/firefox/master-preferences.d.ts +0 -95
  105. package/dist/webpack/plugin-browsers/run-firefox/index.d.ts +0 -26
  106. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/index.d.ts +0 -13
  107. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/message-utils.d.ts +0 -2
  108. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/messaging-client.d.ts +0 -42
  109. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/setup-firefox-inspection.d.ts +0 -31
  110. package/dist/webpack/plugin-compatibility/feature-browser-specific-fields.d.ts +0 -9
  111. package/dist/webpack/plugin-compatibility/feature-polyfill.d.ts +0 -12
  112. package/dist/webpack/plugin-compatibility/index.d.ts +0 -13
  113. package/dist/webpack/plugin-compilation/clean-dist.d.ts +0 -8
  114. package/dist/webpack/plugin-compilation/env.d.ts +0 -9
  115. package/dist/webpack/plugin-compilation/index.d.ts +0 -12
  116. package/dist/webpack/plugin-css/common-style-loaders.d.ts +0 -8
  117. package/dist/webpack/plugin-css/css-in-content-script-loader.d.ts +0 -11
  118. package/dist/webpack/plugin-css/css-in-html-loader.d.ts +0 -8
  119. package/dist/webpack/plugin-css/css-tools/less.d.ts +0 -4
  120. package/dist/webpack/plugin-css/css-tools/postcss.d.ts +0 -3
  121. package/dist/webpack/plugin-css/css-tools/sass.d.ts +0 -4
  122. package/dist/webpack/plugin-css/css-tools/stylelint.d.ts +0 -4
  123. package/dist/webpack/plugin-css/css-tools/tailwind.d.ts +0 -2
  124. package/dist/webpack/plugin-css/index.d.ts +0 -9
  125. package/dist/webpack/plugin-css/is-content-script.d.ts +0 -1
  126. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/action.d.ts +0 -2
  127. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/background.d.ts +0 -2
  128. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/browser_action.d.ts +0 -2
  129. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/chrome_url_overrides.d.ts +0 -2
  130. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/devtools_page.d.ts +0 -2
  131. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/index.d.ts +0 -2
  132. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/options_ui.d.ts +0 -2
  133. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/page_action.d.ts +0 -2
  134. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sandbox.d.ts +0 -2
  135. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/side_panel.d.ts +0 -2
  136. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sidebar_action.d.ts +0 -2
  137. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/action.d.ts +0 -2
  138. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.d.ts +0 -2
  139. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.theme_icons.d.ts +0 -2
  140. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/icons.d.ts +0 -2
  141. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/index.d.ts +0 -2
  142. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/normalize.d.ts +0 -6
  143. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/page_action.d.ts +0 -2
  144. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/sidebar_action.d.ts +0 -2
  145. package/dist/webpack/plugin-extension/data/manifest-fields/index.d.ts +0 -19
  146. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/declarative_net_request.d.ts +0 -2
  147. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/index.d.ts +0 -2
  148. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/storage.d.ts +0 -2
  149. package/dist/webpack/plugin-extension/data/manifest-fields/locales-fields/index.d.ts +0 -1
  150. package/dist/webpack/plugin-extension/data/manifest-fields/normalize.d.ts +0 -10
  151. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/background.d.ts +0 -2
  152. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/content_scripts.d.ts +0 -2
  153. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/index.d.ts +0 -2
  154. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/service_worker.d.ts +0 -2
  155. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/user_scripts.d.ts +0 -2
  156. package/dist/webpack/plugin-extension/data/manifest-fields/web-resources-fields/index.d.ts +0 -2
  157. package/dist/webpack/plugin-extension/data/special-folders/generate-entries.d.ts +0 -4
  158. package/dist/webpack/plugin-extension/data/special-folders/index.d.ts +0 -12
  159. package/dist/webpack/plugin-extension/feature-html/__spec__/html-lib/test-utils.d.ts +0 -18
  160. package/dist/webpack/plugin-extension/feature-html/html-lib/parse-html.d.ts +0 -8
  161. package/dist/webpack/plugin-extension/feature-html/html-lib/patch-html.d.ts +0 -8
  162. package/dist/webpack/plugin-extension/feature-html/html-lib/utils.d.ts +0 -18
  163. package/dist/webpack/plugin-extension/feature-html/index.d.ts +0 -37
  164. package/dist/webpack/plugin-extension/feature-html/steps/add-assets-to-compilation.d.ts +0 -11
  165. package/dist/webpack/plugin-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +0 -10
  166. package/dist/webpack/plugin-extension/feature-html/steps/add-to-file-dependencies.d.ts +0 -10
  167. package/dist/webpack/plugin-extension/feature-html/steps/emit-html-file.d.ts +0 -9
  168. package/dist/webpack/plugin-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +0 -2
  169. package/dist/webpack/plugin-extension/feature-html/steps/handle-common-errors.d.ts +0 -10
  170. package/dist/webpack/plugin-extension/feature-html/steps/minimum-script-file.d.ts +0 -1
  171. package/dist/webpack/plugin-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +0 -13
  172. package/dist/webpack/plugin-extension/feature-html/steps/update-html-file.d.ts +0 -10
  173. package/dist/webpack/plugin-extension/feature-icons/index.d.ts +0 -25
  174. package/dist/webpack/plugin-extension/feature-icons/steps/add-to-file-dependencies.d.ts +0 -9
  175. package/dist/webpack/plugin-extension/feature-icons/steps/emit-file.d.ts +0 -9
  176. package/dist/webpack/plugin-extension/feature-json/index.d.ts +0 -18
  177. package/dist/webpack/plugin-extension/feature-locales/get-locales.d.ts +0 -1
  178. package/dist/webpack/plugin-extension/feature-locales/index.d.ts +0 -13
  179. package/dist/webpack/plugin-extension/feature-manifest/index.d.ts +0 -23
  180. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/background.d.ts +0 -10
  181. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +0 -8
  182. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/commands.d.ts +0 -16
  183. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +0 -7
  184. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +0 -4
  185. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +0 -4
  186. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/icons.d.ts +0 -6
  187. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/index.d.ts +0 -2
  188. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +0 -2
  189. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +0 -4
  190. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +0 -8
  191. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +0 -8
  192. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +0 -4
  193. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +0 -7
  194. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +0 -2
  195. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/storage.d.ts +0 -6
  196. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/theme.d.ts +0 -2
  197. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +0 -2
  198. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +0 -9
  199. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/index.d.ts +0 -2
  200. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +0 -10
  201. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +0 -12
  202. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +0 -24
  203. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +0 -2
  204. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/page_action.d.ts +0 -1
  205. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/sidebar_action.d.ts +0 -1
  206. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +0 -2
  207. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +0 -8
  208. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +0 -10
  209. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +0 -2
  210. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +0 -2
  211. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +0 -2
  212. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +0 -2
  213. package/dist/webpack/plugin-extension/feature-manifest/steps/add-dependencies.d.ts +0 -6
  214. package/dist/webpack/plugin-extension/feature-manifest/steps/check-manifest-files.d.ts +0 -17
  215. package/dist/webpack/plugin-extension/feature-manifest/steps/emit-manifest.d.ts +0 -7
  216. package/dist/webpack/plugin-extension/feature-manifest/steps/throw-if-recompile.d.ts +0 -11
  217. package/dist/webpack/plugin-extension/feature-manifest/steps/update-manifest.d.ts +0 -9
  218. package/dist/webpack/plugin-extension/feature-scripts/index.d.ts +0 -27
  219. package/dist/webpack/plugin-extension/feature-scripts/scripts-lib/utils.d.ts +0 -3
  220. package/dist/webpack/plugin-extension/feature-scripts/steps/add-content-script-wrapper.d.ts +0 -2
  221. package/dist/webpack/plugin-extension/feature-scripts/steps/add-hmr-accept-code.d.ts +0 -2
  222. package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-for-main-world.d.ts +0 -11
  223. package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +0 -4
  224. package/dist/webpack/plugin-extension/feature-scripts/steps/add-scripts.d.ts +0 -9
  225. package/dist/webpack/plugin-extension/feature-scripts/steps/deprecated-shadow-root.d.ts +0 -2
  226. package/dist/webpack/plugin-extension/feature-scripts/steps/javascript-content-script-wrapper.d.ts +0 -1
  227. package/dist/webpack/plugin-extension/feature-scripts/steps/minimum-content-file.d.ts +0 -0
  228. package/dist/webpack/plugin-extension/feature-scripts/steps/preact-content-script-wrapper.d.ts +0 -1
  229. package/dist/webpack/plugin-extension/feature-scripts/steps/react-content-script-wrapper.d.ts +0 -1
  230. package/dist/webpack/plugin-extension/feature-scripts/steps/svelte-content-script-wrapper.d.ts +0 -1
  231. package/dist/webpack/plugin-extension/feature-scripts/steps/typescript-content-script-wrapper.d.ts +0 -1
  232. package/dist/webpack/plugin-extension/feature-scripts/steps/vue-content-script-wrapper.d.ts +0 -1
  233. package/dist/webpack/plugin-extension/feature-special-folders/copy-public-folder.d.ts +0 -14
  234. package/dist/webpack/plugin-extension/feature-special-folders/index.d.ts +0 -19
  235. package/dist/webpack/plugin-extension/feature-special-folders/warn-upon-folder-changes.d.ts +0 -7
  236. package/dist/webpack/plugin-extension/feature-web-resources/clean-matches.d.ts +0 -7
  237. package/dist/webpack/plugin-extension/feature-web-resources/index.d.ts +0 -18
  238. package/dist/webpack/plugin-extension/index.d.ts +0 -10
  239. package/dist/webpack/plugin-js-frameworks/index.d.ts +0 -13
  240. package/dist/webpack/plugin-js-frameworks/js-tools/babel.d.ts +0 -16
  241. package/dist/webpack/plugin-js-frameworks/js-tools/preact.d.ts +0 -3
  242. package/dist/webpack/plugin-js-frameworks/js-tools/react.d.ts +0 -3
  243. package/dist/webpack/plugin-js-frameworks/js-tools/svelte.d.ts +0 -3
  244. package/dist/webpack/plugin-js-frameworks/js-tools/typescript.d.ts +0 -36
  245. package/dist/webpack/plugin-js-frameworks/js-tools/vue.d.ts +0 -3
  246. package/dist/webpack/plugin-js-frameworks/load-loader-options.d.ts +0 -1
  247. package/dist/webpack/plugin-reload/index.d.ts +0 -13
  248. package/dist/webpack/plugin-reload/reload-lib/messages.d.ts +0 -106
  249. package/dist/webpack/plugin-reload/reload-types.d.ts +0 -14
  250. package/dist/webpack/plugin-reload/start-server.d.ts +0 -4
  251. package/dist/webpack/plugin-reload/steps/create-web-socket-server/index.d.ts +0 -14
  252. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/broadcast-message.d.ts +0 -2
  253. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/message-dispatcher.d.ts +0 -2
  254. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/servers.d.ts +0 -2
  255. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/index.d.ts +0 -3
  256. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/inject-chromium-client-loader.d.ts +0 -9
  257. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/minimum-chromium-file.d.ts +0 -0
  258. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/index.d.ts +0 -3
  259. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/inject-firefox-client-loader.d.ts +0 -9
  260. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/minimum-firefox-file.d.ts +0 -0
  261. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/index.d.ts +0 -9
  262. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-background.d.ts +0 -15
  263. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-csp.d.ts +0 -5
  264. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-externally-connectable.d.ts +0 -10
  265. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-web-resources.d.ts +0 -10
  266. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/generate-manager-extension.d.ts +0 -15
  267. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/index.d.ts +0 -10
  268. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/target-web-extension-plugin/index.d.ts +0 -13
  269. package/dist/webpack/plugin-static-assets/index.d.ts +0 -12
  270. package/dist/webpack/webpack-config.d.ts +0 -14
  271. package/dist/webpack/webpack-lib/auto-exit.d.ts +0 -1
  272. package/dist/webpack/webpack-lib/constants.d.ts +0 -4
  273. package/dist/webpack/webpack-lib/messages.d.ts +0 -121
  274. package/dist/webpack/webpack-lib/port-manager.d.ts +0 -27
  275. package/dist/webpack/webpack-lib/utils.d.ts +0 -23
  276. package/dist/webpack/webpack-types.d.ts +0 -49
@@ -1,8 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function optionsUi(manifest: Manifest, excludeList: FilepathList): {
3
- options_ui: {
4
- page?: string | undefined;
5
- chrome_style?: boolean | undefined;
6
- open_in_tab?: boolean | undefined;
7
- };
8
- } | undefined;
@@ -1,8 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function pageAction(manifest: Manifest, excludeList: FilepathList): {
3
- page_action: {
4
- default_icon?: string | chrome.runtime.ManifestIcons | undefined;
5
- default_popup?: string | undefined;
6
- default_title?: string | undefined;
7
- };
8
- } | undefined;
@@ -1,4 +0,0 @@
1
- import { type Manifest } from '../../../../webpack-types';
2
- export declare function permissions(manifest: Manifest): {
3
- permissions: string[] & chrome.runtime.ManifestPermissions[];
4
- } | undefined;
@@ -1,7 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function sandbox(manifest: Manifest, excludeList: FilepathList): {
3
- sandbox: {
4
- pages: string[];
5
- content_security_policy?: string | undefined;
6
- };
7
- } | undefined;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function sidebarAction(manifest: Manifest, excludeList: FilepathList): any;
@@ -1,6 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function storage(manifest: Manifest, excludeList: FilepathList): {
3
- storage: {
4
- managed_schema?: string | undefined;
5
- };
6
- } | undefined;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function theme(manifest: Manifest, excludeList: FilepathList): any;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function userScripts(manifest: Manifest, excludeList: FilepathList): any;
@@ -1,9 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function webAccessibleResources(manifest: Manifest, excludeList: FilepathList): 0 | {
3
- web_accessible_resources: string[] | {
4
- resources: string[];
5
- matches?: string[];
6
- extension_ids?: string[];
7
- use_dynamic_url?: boolean;
8
- }[];
9
- } | undefined;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../webpack-types';
2
- export declare function getManifestOverrides(manifestPath: string, manifest: Manifest, excludeList: FilepathList): string;
@@ -1,10 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function background(manifest: Manifest, excludeList: FilepathList): {
3
- background: {
4
- scripts: string[];
5
- page?: string | undefined;
6
- persistent?: boolean | undefined;
7
- service_worker: string;
8
- type?: "module";
9
- };
10
- } | undefined;
@@ -1,12 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function browserAction(manifest: Manifest, excludeList: FilepathList): {
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;
@@ -1,24 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function chromeSettingsOverrides(manifest: Manifest, excludeList: FilepathList): {
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;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function manifestV2(manifest: Manifest, excludeList: FilepathList): any;
@@ -1 +0,0 @@
1
- export { pageAction } from '../common/page_action';
@@ -1 +0,0 @@
1
- export { sidebarAction } from '../common/sidebar_action';
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function themeExperiment(manifest: Manifest, excludeList: FilepathList): any;
@@ -1,8 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function action(manifest: Manifest, excludeList: FilepathList): {
3
- action: {
4
- default_icon?: string | chrome.runtime.ManifestIcons | undefined;
5
- default_popup?: string | undefined;
6
- default_title?: string | undefined;
7
- };
8
- } | undefined;
@@ -1,10 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function backgroundServiceWorker(manifest: Manifest, excludeList: FilepathList): "" | {
3
- background: {
4
- service_worker: string;
5
- scripts?: string[] | undefined;
6
- page?: string | undefined;
7
- persistent?: boolean | undefined;
8
- type?: "module";
9
- };
10
- } | undefined;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function declarativeNetRequest(manifest: Manifest, excludeList: FilepathList): any;
@@ -1,2 +0,0 @@
1
- import { type Manifest } from '../../../../webpack-types';
2
- export declare function hostPermissions(manifest: Manifest): any;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function manifestV3(manifest: Manifest, excludeList: FilepathList): any;
@@ -1,2 +0,0 @@
1
- import { type Manifest, type FilepathList } from '../../../../webpack-types';
2
- export declare function sidePanel(manifest: Manifest, excludeList: FilepathList): any;
@@ -1,6 +0,0 @@
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
- }
@@ -1,17 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { PluginInterface, FilepathList } from '../../../webpack-types';
3
- export declare class CheckManifestFiles {
4
- readonly manifestPath: string;
5
- readonly includeList?: FilepathList;
6
- readonly excludeList?: FilepathList;
7
- constructor(options: PluginInterface);
8
- extractPaths(value: string | string[] | {
9
- light: string;
10
- dark: string;
11
- } | {
12
- light: string;
13
- dark: string;
14
- }[]): any[];
15
- private handleErrors;
16
- apply(compiler: Compiler): void;
17
- }
@@ -1,7 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { type PluginInterface } from '../../../webpack-types';
3
- export declare class EmitManifest {
4
- readonly manifestPath: string;
5
- constructor(options: PluginInterface);
6
- apply(compiler: Compiler): void;
7
- }
@@ -1,11 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { DevOptions } from '../../../../develop-lib/config-types';
3
- import { PluginInterface, FilepathList } from '../../../webpack-types';
4
- export declare class ThrowIfRecompileIsNeeded {
5
- readonly manifestPath: string;
6
- readonly browser: DevOptions['browser'];
7
- readonly includeList?: FilepathList;
8
- constructor(options: PluginInterface);
9
- private flattenAndSort;
10
- apply(compiler: Compiler): void;
11
- }
@@ -1,9 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { FilepathList, PluginInterface } from '../../../webpack-types';
3
- export declare class UpdateManifest {
4
- readonly manifestPath: string;
5
- readonly excludeList?: FilepathList;
6
- constructor(options: PluginInterface);
7
- private applyDevOverrides;
8
- apply(compiler: Compiler): void;
9
- }
@@ -1,27 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- import { type FilepathList, type PluginInterface } from '../../webpack-types';
3
- import { type DevOptions } from '../../../module';
4
- /**
5
- * ScriptsPlugin is responsible for handiling all possible JavaScript
6
- * (and CSS, for content_scripts) fields in manifest.json. It also
7
- * supports extra scripts defined via this.include option. These
8
- * extra scripts are added to the compilation and are also HMR
9
- * enabled. They are useful for adding extra scripts to the
10
- * extension runtime, like content_scripts via `scripting`, for example.
11
- *
12
- * Features supported:
13
- * - content_scripts.js - HMR enabled
14
- * - content_scripts.css - HMR enabled
15
- * - background.scripts - HMR enabled
16
- * - service_worker - Reloaded by chrome.runtime.reload()
17
- * - user_scripts.api_scripts - HMR enabled
18
- * - scripts via this.include - HMR enabled
19
- */
20
- export declare class ScriptsPlugin {
21
- readonly manifestPath: string;
22
- readonly includeList?: FilepathList;
23
- readonly excludeList?: FilepathList;
24
- readonly browser?: DevOptions['browser'];
25
- constructor(options: PluginInterface);
26
- apply(compiler: Compiler): void;
27
- }
@@ -1,3 +0,0 @@
1
- import { FilepathList } from '../../../webpack-types';
2
- export declare function getScriptEntries(scriptPath: string | string[] | undefined, excludeList: FilepathList): string[];
3
- export declare function getCssEntries(scriptPath: string | string[] | undefined, excludeList: FilepathList): string[];
@@ -1,2 +0,0 @@
1
- import { type LoaderContext } from '../../../webpack-types';
2
- export default function (this: LoaderContext, source: string): string;
@@ -1,2 +0,0 @@
1
- import { type LoaderContext } from '../../../webpack-types';
2
- export default function (this: LoaderContext, source: string): string;
@@ -1,11 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { type FilepathList, type PluginInterface } from '../../../webpack-types';
3
- import { DevOptions } from '../../../../develop-lib/config-types';
4
- export declare class AddPublicPathForMainWorld {
5
- readonly manifestPath: string;
6
- readonly browser: DevOptions['browser'];
7
- readonly includeList: FilepathList;
8
- readonly excludeList: FilepathList;
9
- constructor(options: PluginInterface);
10
- apply(_compiler: Compiler): void;
11
- }
@@ -1,4 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- export declare class AddPublicPathRuntimeModule {
3
- apply(compiler: Compiler): void;
4
- }
@@ -1,9 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- import { type FilepathList, type PluginInterface } from '../../../webpack-types';
3
- export declare class AddScripts {
4
- readonly manifestPath: string;
5
- readonly includeList: FilepathList;
6
- readonly excludeList: FilepathList;
7
- constructor(options: PluginInterface);
8
- apply(compiler: Compiler): void;
9
- }
@@ -1,2 +0,0 @@
1
- import { type LoaderContext } from '../../../webpack-types';
2
- export default function (this: LoaderContext, source: string): string;
@@ -1 +0,0 @@
1
- export declare function generateJavaScriptWrapperCode(source: string, resourcePath: string): string;
@@ -1 +0,0 @@
1
- export declare function generatePreactWrapperCode(source: string, resourcePath: string): string;
@@ -1 +0,0 @@
1
- export declare function generateReactWrapperCode(source: string, resourcePath: string): string;
@@ -1 +0,0 @@
1
- export declare function generateSvelteWrapperCode(source: string, resourcePath: string): string;
@@ -1 +0,0 @@
1
- export declare function generateTypeScriptWrapperCode(source: string, resourcePath: string): string;
@@ -1 +0,0 @@
1
- export declare function generateVueWrapperCode(source: string, resourcePath: string): string;
@@ -1,14 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- interface CopyPublicFolderOptions {
3
- manifestPath: string;
4
- }
5
- export declare class CopyPublicFolder {
6
- private readonly options;
7
- constructor(options: CopyPublicFolderOptions);
8
- private getPublicFolderPath;
9
- private ensureDirectoryExistence;
10
- private copyFile;
11
- private copyFolder;
12
- apply(compiler: Compiler): void;
13
- }
14
- export {};
@@ -1,19 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- interface SpecialFoldersPluginOptions {
3
- manifestPath: string;
4
- }
5
- /**
6
- * SpecialFoldersPlugin is responsible for handling the
7
- * three types of special folders in the extension:
8
- *
9
- * - /pages - HTML pages not included in the manifest
10
- * - /scripts - Script files not included in the manifest
11
- * - /public - Static files not included in the manifest
12
- */
13
- export declare class SpecialFoldersPlugin {
14
- static readonly name: string;
15
- private readonly options;
16
- constructor(options: SpecialFoldersPluginOptions);
17
- apply(compiler: Compiler): void;
18
- }
19
- export {};
@@ -1,7 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- export declare class WarnUponFolderChanges {
3
- private readonly manifestPath;
4
- constructor(manifestPath: string);
5
- private throwCompilationError;
6
- apply(compiler: Compiler): void;
7
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * From the docs at https://developer.chrome.com/docs/extensions/reference/manifest/web-accessible-resources#manifest_declaration
3
- * > Google Chrome emits an "Invalid match pattern" error if the pattern has a path other than '/*'.
4
- *
5
- * We need to ensure that paths are cleaned up from the matches to avoid this error.
6
- */
7
- export declare function cleanMatches(matches: string[]): string[];
@@ -1,18 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { type FilepathList, type PluginInterface } from '../../webpack-types';
3
- /**
4
- * ResourcesPlugin is responsible for adding resources required
5
- * by the user and the content_scripts to the manifest.json file.
6
- *
7
- * Feature supported:
8
- *
9
- * - web_accessible_resources paths in the manifest.json file.
10
- * - Assets imported from content_scripts files.
11
- */
12
- export declare class WebResourcesPlugin {
13
- readonly manifestPath: string;
14
- readonly includeList?: FilepathList;
15
- constructor(options: PluginInterface);
16
- private generateManifestPatches;
17
- apply(compiler: Compiler): void;
18
- }
@@ -1,10 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { PluginInterface } from '../webpack-types';
3
- import { DevOptions } from '../../develop-lib/config-types';
4
- export declare class ExtensionPlugin {
5
- static readonly name: string;
6
- readonly manifestPath: string;
7
- readonly browser: DevOptions['browser'];
8
- constructor(options: PluginInterface);
9
- apply(compiler: Compiler): void;
10
- }
@@ -1,13 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- import { PluginInterface } from '../webpack-types';
3
- import { type DevOptions } from '../../develop-lib/config-types';
4
- export declare class JsFrameworksPlugin {
5
- static readonly name: string;
6
- readonly manifestPath: string;
7
- readonly mode: DevOptions['mode'];
8
- constructor(options: PluginInterface & {
9
- mode: DevOptions['mode'];
10
- });
11
- private configureOptions;
12
- apply(compiler: Compiler): Promise<void>;
13
- }
@@ -1,16 +0,0 @@
1
- import { Compiler } from '@rspack/core';
2
- import { DevOptions } from '../../../develop-lib/config-types';
3
- import { JsFramework } from '../../webpack-types';
4
- export declare function isUsingBabel(projectPath: string): boolean;
5
- export declare function getBabelConfigFile(projectPath: string): string | undefined;
6
- export declare function babelConfig(projectPath: string, opts: {
7
- mode: DevOptions['mode'];
8
- typescript: boolean;
9
- }): {
10
- cacheDirectory: boolean;
11
- cacheCompression: boolean;
12
- babelrc: boolean;
13
- configFile: string | undefined;
14
- compact: boolean;
15
- };
16
- export declare function maybeUseBabel(_compiler: Compiler, projectPath: string): Promise<JsFramework | undefined>;
@@ -1,3 +0,0 @@
1
- import { JsFramework } from '../../webpack-types';
2
- export declare function isUsingPreact(projectPath: string): boolean;
3
- export declare function maybeUsePreact(projectPath: string): Promise<JsFramework | undefined>;
@@ -1,3 +0,0 @@
1
- import { JsFramework } from '../../webpack-types';
2
- export declare function isUsingReact(projectPath: string): boolean;
3
- export declare function maybeUseReact(projectPath: string): Promise<JsFramework | undefined>;
@@ -1,3 +0,0 @@
1
- import { JsFramework } from '../../webpack-types';
2
- export declare function isUsingSvelte(projectPath: string): boolean;
3
- export declare function maybeUseSvelte(projectPath: string, mode: 'development' | 'production'): Promise<JsFramework | undefined>;
@@ -1,36 +0,0 @@
1
- import { type DevOptions } from '../../../develop-lib/config-types';
2
- export declare function isUsingTypeScript(projectPath: string): boolean;
3
- export declare function defaultTypeScriptConfig(projectPath: string, _opts?: any): {
4
- compilerOptions: {
5
- allowJs: boolean;
6
- allowSyntheticDefaultImports: boolean;
7
- esModuleInterop: boolean;
8
- forceConsistentCasingInFileNames: boolean;
9
- jsx: string;
10
- lib: string[];
11
- moduleResolution: string;
12
- module: string;
13
- resolveJsonModule: boolean;
14
- strict: boolean;
15
- target: string;
16
- isolatedModules: boolean;
17
- skipLibCheck: boolean;
18
- };
19
- exclude: string[];
20
- };
21
- export declare function getUserTypeScriptConfigFile(projectPath: string): string | undefined;
22
- export declare function getTypeScriptConfigOverrides(opts: {
23
- mode: DevOptions['mode'];
24
- }): {
25
- compilerOptions: {
26
- sourceMap: boolean;
27
- skipLibCheck: boolean;
28
- inlineSourceMap: boolean;
29
- declarationMap: boolean;
30
- noEmit: boolean;
31
- incremental: boolean;
32
- tsBuildInfoFile: string;
33
- };
34
- exclude: string[];
35
- };
36
- export declare function maybeUseTypeScript(projectPath: string): Promise<boolean>;
@@ -1,3 +0,0 @@
1
- import { JsFramework } from '../../webpack-types';
2
- export declare function isUsingVue(projectPath: string): boolean;
3
- export declare function maybeUseVue(projectPath: string): Promise<JsFramework | undefined>;
@@ -1 +0,0 @@
1
- export declare function loadLoaderOptions(projectPath: string, framework: 'vue' | 'svelte'): Promise<any>;
@@ -1,13 +0,0 @@
1
- import { type Compiler } from '@rspack/core';
2
- import { type PluginInterface } from './reload-types';
3
- export declare class ReloadPlugin {
4
- static readonly name: string;
5
- private readonly manifestPath;
6
- private readonly browser;
7
- private readonly port?;
8
- private readonly stats?;
9
- private readonly autoReload?;
10
- private readonly instanceId?;
11
- constructor(options: PluginInterface);
12
- apply(compiler: Compiler): void;
13
- }