extension-develop 2.0.0-rc.9 → 2.0.1

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 (606) hide show
  1. package/README.md +204 -0
  2. package/dist/add-content-script-wrapper.js +1777 -0
  3. package/dist/add-hmr-accept-code.js +95 -3
  4. package/dist/build.d.ts +2 -0
  5. package/dist/cleanup.d.ts +1 -0
  6. package/dist/deprecated-shadow-root.js +115 -14
  7. package/dist/dev.d.ts +2 -0
  8. package/dist/develop-lib/config-types.d.ts +85 -0
  9. package/dist/develop-lib/extract-from-zip.d.ts +1 -0
  10. package/dist/develop-lib/find-nearest-package.d.ts +2 -0
  11. package/dist/develop-lib/generate-extension-types.d.ts +1 -0
  12. package/dist/develop-lib/generate-zip.d.ts +2 -0
  13. package/dist/develop-lib/get-extension-config.d.ts +6 -0
  14. package/dist/develop-lib/get-project-path.d.ts +6 -0
  15. package/dist/develop-lib/install-dependencies.d.ts +2 -0
  16. package/dist/develop-lib/messages.d.ts +35 -0
  17. package/dist/develop-lib/validate-user-dependencies.d.ts +1 -0
  18. package/dist/ensure-hmr-for-scripts.js +74 -3
  19. package/dist/extensions/chrome-manager-extension/background.js +1 -1
  20. package/dist/extensions/chrome-manager-extension/images/logo.png +0 -0
  21. package/dist/extensions/chrome-manager-extension/manifest.json +3 -3
  22. package/dist/extensions/chrome-manager-extension/pages/welcome.html +3 -6
  23. package/dist/extensions/chrome-manager-extension/reload-service.js +214 -62
  24. package/dist/extensions/chromium-based-manager-extension/background.js +1 -1
  25. package/dist/extensions/chromium-based-manager-extension/images/logo.png +0 -0
  26. package/dist/extensions/chromium-based-manager-extension/manifest.json +3 -3
  27. package/dist/extensions/chromium-based-manager-extension/pages/welcome.html +3 -6
  28. package/dist/extensions/chromium-based-manager-extension/reload-service.js +185 -28
  29. package/dist/extensions/edge-manager-extension/background.js +1 -1
  30. package/dist/extensions/edge-manager-extension/images/logo.png +0 -0
  31. package/dist/extensions/edge-manager-extension/manifest.json +3 -3
  32. package/dist/extensions/edge-manager-extension/pages/welcome.html +3 -6
  33. package/dist/extensions/edge-manager-extension/reload-service.js +223 -69
  34. package/dist/extensions/firefox-manager-extension/background.js +40 -12
  35. package/dist/extensions/firefox-manager-extension/define-initial-tab.js +10 -12
  36. package/dist/extensions/firefox-manager-extension/images/logo.png +0 -0
  37. package/dist/extensions/firefox-manager-extension/manifest.json +4 -5
  38. package/dist/extensions/firefox-manager-extension/pages/welcome.html +3 -6
  39. package/dist/extensions/firefox-manager-extension/reload-service.js +113 -75
  40. package/dist/extensions/gecko-based-manager-extension/background.js +1 -1
  41. package/dist/extensions/gecko-based-manager-extension/define-initial-tab.js +7 -4
  42. package/dist/extensions/gecko-based-manager-extension/images/logo.png +0 -0
  43. package/dist/extensions/gecko-based-manager-extension/manifest.json +3 -3
  44. package/dist/extensions/gecko-based-manager-extension/pages/welcome.html +3 -6
  45. package/dist/extensions/gecko-based-manager-extension/reload-service.js +54 -26
  46. package/dist/inject-chromium-client-loader.js +144 -22
  47. package/dist/inject-firefox-client-loader.js +164 -47
  48. package/dist/minimum-chromium-file.js +25 -0
  49. package/dist/minimum-content-file.js +5 -0
  50. package/dist/minimum-firefox-file.js +17 -0
  51. package/dist/minimum-script-file.js +5 -0
  52. package/dist/module.d.ts +8 -95
  53. package/dist/module.js +10543 -128
  54. package/dist/preview.d.ts +2 -0
  55. package/dist/rslib.config.d.ts +3 -0
  56. package/dist/start.d.ts +2 -0
  57. package/dist/types.d.ts +11 -0
  58. package/dist/vitest.config.d.mts +2 -0
  59. package/dist/webpack/dev-server.d.ts +3 -0
  60. package/dist/webpack/plugin-browsers/browsers-lib/add-progress-bar.d.ts +1 -0
  61. package/dist/webpack/plugin-browsers/browsers-lib/constants.d.ts +5 -0
  62. package/dist/webpack/plugin-browsers/browsers-lib/dynamic-extension-manager.d.ts +35 -0
  63. package/dist/webpack/plugin-browsers/browsers-lib/html-merge.d.ts +1 -0
  64. package/dist/webpack/plugin-browsers/browsers-lib/instance-manager.d.ts +71 -0
  65. package/dist/webpack/plugin-browsers/browsers-lib/messages.d.ts +161 -0
  66. package/dist/webpack/plugin-browsers/browsers-lib/rdp-wire.d.ts +7 -0
  67. package/dist/webpack/plugin-browsers/browsers-lib/shared-utils.d.ts +16 -0
  68. package/dist/webpack/plugin-browsers/browsers-types.d.ts +131 -0
  69. package/dist/webpack/plugin-browsers/index.d.ts +41 -0
  70. package/dist/webpack/plugin-browsers/run-chromium/browser-config.d.ts +3 -0
  71. package/dist/webpack/plugin-browsers/run-chromium/create-profile.d.ts +10 -0
  72. package/dist/webpack/plugin-browsers/run-chromium/index.d.ts +28 -0
  73. package/dist/webpack/plugin-browsers/run-chromium/master-preferences.d.ts +161 -0
  74. package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/cdp-client.d.ts +29 -0
  75. package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/index.d.ts +25 -0
  76. package/dist/webpack/plugin-browsers/run-firefox/firefox/binary-detector.d.ts +15 -0
  77. package/dist/webpack/plugin-browsers/run-firefox/firefox/browser-config.d.ts +7 -0
  78. package/dist/webpack/plugin-browsers/run-firefox/firefox/create-profile.d.ts +13 -0
  79. package/dist/webpack/plugin-browsers/run-firefox/firefox/master-preferences.d.ts +95 -0
  80. package/dist/webpack/plugin-browsers/run-firefox/index.d.ts +26 -0
  81. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/index.d.ts +13 -0
  82. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/message-utils.d.ts +2 -0
  83. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/messaging-client.d.ts +42 -0
  84. package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/setup-firefox-inspection.d.ts +31 -0
  85. package/dist/webpack/plugin-compatibility/feature-browser-specific-fields.d.ts +9 -0
  86. package/dist/webpack/plugin-compatibility/feature-polyfill.d.ts +12 -0
  87. package/dist/webpack/plugin-compatibility/index.d.ts +13 -0
  88. package/dist/webpack/plugin-compilation/clean-dist.d.ts +8 -0
  89. package/dist/webpack/plugin-compilation/env.d.ts +9 -0
  90. package/dist/webpack/plugin-compilation/index.d.ts +12 -0
  91. package/dist/webpack/plugin-css/common-style-loaders.d.ts +8 -0
  92. package/dist/webpack/plugin-css/css-in-content-script-loader.d.ts +11 -0
  93. package/dist/webpack/plugin-css/css-in-html-loader.d.ts +8 -0
  94. package/dist/webpack/plugin-css/css-tools/less.d.ts +4 -0
  95. package/dist/webpack/plugin-css/css-tools/postcss.d.ts +3 -0
  96. package/dist/webpack/plugin-css/css-tools/sass.d.ts +4 -0
  97. package/dist/webpack/plugin-css/css-tools/stylelint.d.ts +4 -0
  98. package/dist/webpack/plugin-css/css-tools/tailwind.d.ts +2 -0
  99. package/dist/webpack/plugin-css/index.d.ts +9 -0
  100. package/dist/webpack/plugin-css/is-content-script.d.ts +1 -0
  101. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/action.d.ts +2 -0
  102. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/background.d.ts +2 -0
  103. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/browser_action.d.ts +2 -0
  104. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/chrome_url_overrides.d.ts +2 -0
  105. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/devtools_page.d.ts +2 -0
  106. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/index.d.ts +2 -0
  107. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/options_ui.d.ts +2 -0
  108. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/page_action.d.ts +2 -0
  109. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sandbox.d.ts +2 -0
  110. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/side_panel.d.ts +2 -0
  111. package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sidebar_action.d.ts +2 -0
  112. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/action.d.ts +2 -0
  113. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.d.ts +2 -0
  114. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.theme_icons.d.ts +2 -0
  115. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/icons.d.ts +2 -0
  116. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/index.d.ts +2 -0
  117. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/normalize.d.ts +6 -0
  118. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/page_action.d.ts +2 -0
  119. package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/sidebar_action.d.ts +2 -0
  120. package/dist/webpack/plugin-extension/data/manifest-fields/index.d.ts +19 -0
  121. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/declarative_net_request.d.ts +2 -0
  122. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/index.d.ts +2 -0
  123. package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/storage.d.ts +2 -0
  124. package/dist/webpack/plugin-extension/data/manifest-fields/locales-fields/index.d.ts +1 -0
  125. package/dist/webpack/plugin-extension/data/manifest-fields/normalize.d.ts +10 -0
  126. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/background.d.ts +2 -0
  127. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/content_scripts.d.ts +2 -0
  128. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/index.d.ts +2 -0
  129. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/service_worker.d.ts +2 -0
  130. package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/user_scripts.d.ts +2 -0
  131. package/dist/webpack/plugin-extension/data/manifest-fields/web-resources-fields/index.d.ts +2 -0
  132. package/dist/webpack/plugin-extension/data/special-folders/generate-entries.d.ts +4 -0
  133. package/dist/webpack/plugin-extension/data/special-folders/index.d.ts +12 -0
  134. package/dist/webpack/plugin-extension/feature-html/__spec__/html-lib/test-utils.d.ts +18 -0
  135. package/dist/webpack/plugin-extension/feature-html/html-lib/parse-html.d.ts +8 -0
  136. package/dist/webpack/plugin-extension/feature-html/html-lib/patch-html.d.ts +8 -0
  137. package/dist/webpack/plugin-extension/feature-html/html-lib/utils.d.ts +18 -0
  138. package/dist/webpack/plugin-extension/feature-html/index.d.ts +37 -0
  139. package/dist/webpack/plugin-extension/feature-html/steps/add-assets-to-compilation.d.ts +11 -0
  140. package/dist/webpack/plugin-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +10 -0
  141. package/dist/webpack/plugin-extension/feature-html/steps/add-to-file-dependencies.d.ts +10 -0
  142. package/dist/webpack/plugin-extension/feature-html/steps/emit-html-file.d.ts +9 -0
  143. package/dist/webpack/plugin-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +2 -0
  144. package/dist/webpack/plugin-extension/feature-html/steps/handle-common-errors.d.ts +10 -0
  145. package/dist/webpack/plugin-extension/feature-html/steps/minimum-script-file.d.ts +1 -0
  146. package/dist/webpack/plugin-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +13 -0
  147. package/dist/webpack/plugin-extension/feature-html/steps/update-html-file.d.ts +10 -0
  148. package/dist/webpack/plugin-extension/feature-icons/index.d.ts +25 -0
  149. package/dist/webpack/plugin-extension/feature-icons/steps/add-to-file-dependencies.d.ts +9 -0
  150. package/dist/webpack/plugin-extension/feature-icons/steps/emit-file.d.ts +9 -0
  151. package/dist/webpack/plugin-extension/feature-json/index.d.ts +18 -0
  152. package/dist/webpack/plugin-extension/feature-locales/get-locales.d.ts +1 -0
  153. package/dist/webpack/plugin-extension/feature-locales/index.d.ts +13 -0
  154. package/dist/webpack/plugin-extension/feature-manifest/index.d.ts +23 -0
  155. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/background.d.ts +10 -0
  156. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +8 -0
  157. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/commands.d.ts +16 -0
  158. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +7 -0
  159. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +4 -0
  160. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +4 -0
  161. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/icons.d.ts +6 -0
  162. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/index.d.ts +2 -0
  163. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +2 -0
  164. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +4 -0
  165. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +8 -0
  166. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +8 -0
  167. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +4 -0
  168. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +7 -0
  169. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +2 -0
  170. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/storage.d.ts +6 -0
  171. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/theme.d.ts +2 -0
  172. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +2 -0
  173. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +9 -0
  174. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/index.d.ts +2 -0
  175. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +10 -0
  176. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +12 -0
  177. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +24 -0
  178. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +2 -0
  179. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/page_action.d.ts +1 -0
  180. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/sidebar_action.d.ts +1 -0
  181. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +2 -0
  182. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +8 -0
  183. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +10 -0
  184. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +2 -0
  185. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +2 -0
  186. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +2 -0
  187. package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +2 -0
  188. package/dist/webpack/plugin-extension/feature-manifest/steps/add-dependencies.d.ts +6 -0
  189. package/dist/webpack/plugin-extension/feature-manifest/steps/check-manifest-files.d.ts +17 -0
  190. package/dist/webpack/plugin-extension/feature-manifest/steps/emit-manifest.d.ts +7 -0
  191. package/dist/webpack/plugin-extension/feature-manifest/steps/throw-if-recompile.d.ts +11 -0
  192. package/dist/webpack/plugin-extension/feature-manifest/steps/update-manifest.d.ts +9 -0
  193. package/dist/webpack/plugin-extension/feature-scripts/index.d.ts +27 -0
  194. package/dist/webpack/plugin-extension/feature-scripts/scripts-lib/utils.d.ts +3 -0
  195. package/dist/webpack/plugin-extension/feature-scripts/steps/add-content-script-wrapper.d.ts +2 -0
  196. package/dist/webpack/plugin-extension/feature-scripts/steps/add-hmr-accept-code.d.ts +2 -0
  197. package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-for-main-world.d.ts +11 -0
  198. package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +4 -0
  199. package/dist/webpack/plugin-extension/feature-scripts/steps/add-scripts.d.ts +9 -0
  200. package/dist/webpack/plugin-extension/feature-scripts/steps/deprecated-shadow-root.d.ts +2 -0
  201. package/dist/webpack/plugin-extension/feature-scripts/steps/javascript-content-script-wrapper.d.ts +1 -0
  202. package/dist/webpack/plugin-extension/feature-scripts/steps/preact-content-script-wrapper.d.ts +1 -0
  203. package/dist/webpack/plugin-extension/feature-scripts/steps/react-content-script-wrapper.d.ts +1 -0
  204. package/dist/webpack/plugin-extension/feature-scripts/steps/svelte-content-script-wrapper.d.ts +1 -0
  205. package/dist/webpack/plugin-extension/feature-scripts/steps/typescript-content-script-wrapper.d.ts +1 -0
  206. package/dist/webpack/plugin-extension/feature-scripts/steps/vue-content-script-wrapper.d.ts +1 -0
  207. package/dist/webpack/plugin-extension/feature-special-folders/copy-public-folder.d.ts +14 -0
  208. package/dist/webpack/plugin-extension/feature-special-folders/index.d.ts +19 -0
  209. package/dist/webpack/plugin-extension/feature-special-folders/warn-upon-folder-changes.d.ts +7 -0
  210. package/dist/webpack/plugin-extension/feature-web-resources/clean-matches.d.ts +7 -0
  211. package/dist/webpack/plugin-extension/feature-web-resources/index.d.ts +18 -0
  212. package/dist/webpack/plugin-extension/index.d.ts +10 -0
  213. package/dist/webpack/plugin-js-frameworks/index.d.ts +13 -0
  214. package/dist/webpack/plugin-js-frameworks/js-tools/babel.d.ts +16 -0
  215. package/dist/webpack/plugin-js-frameworks/js-tools/preact.d.ts +3 -0
  216. package/dist/webpack/plugin-js-frameworks/js-tools/react.d.ts +3 -0
  217. package/dist/webpack/plugin-js-frameworks/js-tools/svelte.d.ts +3 -0
  218. package/dist/webpack/plugin-js-frameworks/js-tools/typescript.d.ts +36 -0
  219. package/dist/webpack/plugin-js-frameworks/js-tools/vue.d.ts +3 -0
  220. package/dist/webpack/plugin-js-frameworks/load-loader-options.d.ts +1 -0
  221. package/dist/webpack/plugin-reload/index.d.ts +13 -0
  222. package/dist/webpack/plugin-reload/reload-lib/messages.d.ts +106 -0
  223. package/dist/webpack/plugin-reload/reload-types.d.ts +14 -0
  224. package/dist/webpack/plugin-reload/start-server.d.ts +4 -0
  225. package/dist/webpack/plugin-reload/steps/create-web-socket-server/index.d.ts +14 -0
  226. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/broadcast-message.d.ts +2 -0
  227. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/message-dispatcher.d.ts +2 -0
  228. package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/servers.d.ts +2 -0
  229. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/index.d.ts +3 -0
  230. package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/inject-chromium-client-loader.d.ts +9 -0
  231. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/index.d.ts +3 -0
  232. package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/inject-firefox-client-loader.d.ts +9 -0
  233. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/index.d.ts +9 -0
  234. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-background.d.ts +15 -0
  235. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-csp.d.ts +5 -0
  236. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-externally-connectable.d.ts +10 -0
  237. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-web-resources.d.ts +10 -0
  238. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/generate-manager-extension.d.ts +15 -0
  239. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/index.d.ts +10 -0
  240. package/dist/webpack/plugin-reload/steps/setup-reload-strategy/target-web-extension-plugin/index.d.ts +13 -0
  241. package/dist/webpack/plugin-static-assets/index.d.ts +12 -0
  242. package/dist/webpack/webpack-config.d.ts +14 -0
  243. package/dist/webpack/webpack-lib/auto-exit.d.ts +1 -0
  244. package/dist/webpack/webpack-lib/constants.d.ts +4 -0
  245. package/dist/webpack/webpack-lib/messages.d.ts +121 -0
  246. package/dist/webpack/webpack-lib/port-manager.d.ts +27 -0
  247. package/dist/webpack/webpack-lib/utils.d.ts +20 -0
  248. package/dist/webpack/webpack-types.d.ts +49 -0
  249. package/package.json +64 -27
  250. package/dist/depreacated-shadow-root.js +0 -34
  251. package/dist/inject-content-css-during-dev.js +0 -10
  252. package/dist/minimum-chromium-file.mjs +0 -1
  253. package/dist/minimum-content-file.mjs +0 -1
  254. package/dist/minimum-firefox-file.mjs +0 -1
  255. package/dist/resolver-loader.js +0 -1
  256. package/dist/resolver-module.mjs +0 -1
  257. package/dist/run-chrome-profile/ChromeFeatureState +0 -1
  258. package/dist/run-chrome-profile/Default/Affiliation Database +0 -0
  259. package/dist/run-chrome-profile/Default/AutofillStrikeDatabase/LOG +0 -0
  260. package/dist/run-chrome-profile/Default/AutofillStrikeDatabase/LOG.old +0 -0
  261. package/dist/run-chrome-profile/Default/BrowsingTopicsSiteData +0 -0
  262. package/dist/run-chrome-profile/Default/BrowsingTopicsSiteData-journal +0 -0
  263. package/dist/run-chrome-profile/Default/BrowsingTopicsState +0 -12
  264. package/dist/run-chrome-profile/Default/BudgetDatabase/LOCK +0 -0
  265. package/dist/run-chrome-profile/Default/BudgetDatabase/LOG +0 -0
  266. package/dist/run-chrome-profile/Default/BudgetDatabase/LOG.old +0 -0
  267. package/dist/run-chrome-profile/Default/Cache/Cache_Data/025191c01cb9560a_0 +0 -0
  268. package/dist/run-chrome-profile/Default/Cache/Cache_Data/05b7af632a0788c4_0 +0 -0
  269. package/dist/run-chrome-profile/Default/Cache/Cache_Data/06d18b346a40f753_0 +0 -0
  270. package/dist/run-chrome-profile/Default/Cache/Cache_Data/09442a94267e5d1b_0 +0 -0
  271. package/dist/run-chrome-profile/Default/Cache/Cache_Data/0a659b2fa80f7d18_0 +0 -0
  272. package/dist/run-chrome-profile/Default/Cache/Cache_Data/0c5ece120a4aa9c4_0 +0 -0
  273. package/dist/run-chrome-profile/Default/Cache/Cache_Data/0df08bba9fc5fdac_0 +0 -0
  274. package/dist/run-chrome-profile/Default/Cache/Cache_Data/15145040f7f12f31_0 +0 -0
  275. package/dist/run-chrome-profile/Default/Cache/Cache_Data/18cae013af62500a_0 +0 -0
  276. package/dist/run-chrome-profile/Default/Cache/Cache_Data/1e88f258e3680439_0 +0 -0
  277. package/dist/run-chrome-profile/Default/Cache/Cache_Data/207a53d3f4a4c4bc_0 +0 -0
  278. package/dist/run-chrome-profile/Default/Cache/Cache_Data/22b58fcf518f5674_0 +0 -0
  279. package/dist/run-chrome-profile/Default/Cache/Cache_Data/24111eb856fec6e6_0 +0 -0
  280. package/dist/run-chrome-profile/Default/Cache/Cache_Data/257b9ada9582cd59_0 +0 -0
  281. package/dist/run-chrome-profile/Default/Cache/Cache_Data/275fd93a285332c0_0 +0 -0
  282. package/dist/run-chrome-profile/Default/Cache/Cache_Data/27be01069ada1058_0 +0 -0
  283. package/dist/run-chrome-profile/Default/Cache/Cache_Data/2bd215b1cc3c8643_0 +0 -0
  284. package/dist/run-chrome-profile/Default/Cache/Cache_Data/2d6ffdfbd670a4e8_0 +0 -0
  285. package/dist/run-chrome-profile/Default/Cache/Cache_Data/30a7fd0752f0c20d_0 +0 -0
  286. package/dist/run-chrome-profile/Default/Cache/Cache_Data/3164cf42e96b9664_0 +0 -0
  287. package/dist/run-chrome-profile/Default/Cache/Cache_Data/31907c8cd5dbb0d7_0 +0 -0
  288. package/dist/run-chrome-profile/Default/Cache/Cache_Data/378470234e1889fb_0 +0 -0
  289. package/dist/run-chrome-profile/Default/Cache/Cache_Data/39b962857089ba5e_0 +0 -0
  290. package/dist/run-chrome-profile/Default/Cache/Cache_Data/3fb3b062de8f8809_0 +0 -0
  291. package/dist/run-chrome-profile/Default/Cache/Cache_Data/4496d0a64b8e2ff1_0 +0 -0
  292. package/dist/run-chrome-profile/Default/Cache/Cache_Data/459aacad64df1a20_0 +0 -0
  293. package/dist/run-chrome-profile/Default/Cache/Cache_Data/492ed577e4693e3f_0 +0 -0
  294. package/dist/run-chrome-profile/Default/Cache/Cache_Data/4cb485a7a714929a_0 +0 -0
  295. package/dist/run-chrome-profile/Default/Cache/Cache_Data/4ff29ec24ac18d79_0 +0 -0
  296. package/dist/run-chrome-profile/Default/Cache/Cache_Data/544232310d1a0a06_0 +0 -0
  297. package/dist/run-chrome-profile/Default/Cache/Cache_Data/55ed72b0b4c0b90e_0 +0 -0
  298. package/dist/run-chrome-profile/Default/Cache/Cache_Data/57c911b58ffc1b31_0 +0 -0
  299. package/dist/run-chrome-profile/Default/Cache/Cache_Data/5f883d2c96d94f47_0 +0 -0
  300. package/dist/run-chrome-profile/Default/Cache/Cache_Data/668471e493562a86_0 +0 -0
  301. package/dist/run-chrome-profile/Default/Cache/Cache_Data/686b16113c27b51c_0 +0 -0
  302. package/dist/run-chrome-profile/Default/Cache/Cache_Data/6995a7c799490d3d_0 +0 -0
  303. package/dist/run-chrome-profile/Default/Cache/Cache_Data/6f7f729885fc6405_0 +0 -0
  304. package/dist/run-chrome-profile/Default/Cache/Cache_Data/70f5010b6251d3d7_0 +0 -0
  305. package/dist/run-chrome-profile/Default/Cache/Cache_Data/78ed79bc5487503a_0 +0 -0
  306. package/dist/run-chrome-profile/Default/Cache/Cache_Data/84e415bdea6bf983_0 +0 -0
  307. package/dist/run-chrome-profile/Default/Cache/Cache_Data/9046ef8fa437e5d7_0 +0 -0
  308. package/dist/run-chrome-profile/Default/Cache/Cache_Data/93d81321f8c35eab_0 +0 -0
  309. package/dist/run-chrome-profile/Default/Cache/Cache_Data/94a5260219485fdf_0 +0 -0
  310. package/dist/run-chrome-profile/Default/Cache/Cache_Data/961c7a9dcf1d5fe3_0 +0 -0
  311. package/dist/run-chrome-profile/Default/Cache/Cache_Data/963f816968a47709_0 +0 -0
  312. package/dist/run-chrome-profile/Default/Cache/Cache_Data/97eb05d149fa8180_0 +0 -0
  313. package/dist/run-chrome-profile/Default/Cache/Cache_Data/a54fc271588d9d41_0 +0 -0
  314. package/dist/run-chrome-profile/Default/Cache/Cache_Data/a7ec2678f15b2b6d_0 +0 -0
  315. package/dist/run-chrome-profile/Default/Cache/Cache_Data/b3095246000ea960_0 +0 -0
  316. package/dist/run-chrome-profile/Default/Cache/Cache_Data/ba3f88b58ae6c933_0 +0 -0
  317. package/dist/run-chrome-profile/Default/Cache/Cache_Data/bbde820c1fee5c3c_0 +0 -0
  318. package/dist/run-chrome-profile/Default/Cache/Cache_Data/bf5945304ded8ca6_0 +0 -0
  319. package/dist/run-chrome-profile/Default/Cache/Cache_Data/c894826beba9fc11_0 +0 -0
  320. package/dist/run-chrome-profile/Default/Cache/Cache_Data/caca5541d401cf41_0 +0 -0
  321. package/dist/run-chrome-profile/Default/Cache/Cache_Data/d3c2a489bef951de_0 +0 -0
  322. package/dist/run-chrome-profile/Default/Cache/Cache_Data/d9a190d1d7d66bdd_0 +0 -0
  323. package/dist/run-chrome-profile/Default/Cache/Cache_Data/d9d9fe0a0f8883f0_0 +0 -0
  324. package/dist/run-chrome-profile/Default/Cache/Cache_Data/da5600d748a3d40d_0 +0 -0
  325. package/dist/run-chrome-profile/Default/Cache/Cache_Data/e2fbeb70759b0860_0 +0 -0
  326. package/dist/run-chrome-profile/Default/Cache/Cache_Data/e32ff760e1b4ec46_0 +0 -0
  327. package/dist/run-chrome-profile/Default/Cache/Cache_Data/e5c658ea95c0a29a_0 +0 -0
  328. package/dist/run-chrome-profile/Default/Cache/Cache_Data/e85ac8952d7783d7_0 +0 -0
  329. package/dist/run-chrome-profile/Default/Cache/Cache_Data/ea75bd91e54a494a_0 +0 -0
  330. package/dist/run-chrome-profile/Default/Cache/Cache_Data/ebadaa36379fd994_0 +0 -0
  331. package/dist/run-chrome-profile/Default/Cache/Cache_Data/f3a443b4d8db944d_0 +0 -0
  332. package/dist/run-chrome-profile/Default/Cache/Cache_Data/f3a70b90dcd40113_0 +0 -0
  333. package/dist/run-chrome-profile/Default/Cache/Cache_Data/f4f5420fc5a9003d_0 +0 -0
  334. package/dist/run-chrome-profile/Default/Cache/Cache_Data/f9e143e57946c84b_0 +0 -0
  335. package/dist/run-chrome-profile/Default/Cache/Cache_Data/index +0 -0
  336. package/dist/run-chrome-profile/Default/Cache/Cache_Data/index-dir/the-real-index +0 -0
  337. package/dist/run-chrome-profile/Default/ClientCertificates/LOCK +0 -0
  338. package/dist/run-chrome-profile/Default/ClientCertificates/LOG +0 -0
  339. package/dist/run-chrome-profile/Default/ClientCertificates/LOG.old +0 -0
  340. package/dist/run-chrome-profile/Default/Code Cache/js/0861135386d2c738_0 +0 -0
  341. package/dist/run-chrome-profile/Default/Code Cache/js/19f6466fb9b618ce_0 +0 -0
  342. package/dist/run-chrome-profile/Default/Code Cache/js/1b5a04a8f66ab70c_0 +0 -0
  343. package/dist/run-chrome-profile/Default/Code Cache/js/20a1d4f1d64a6e4a_0 +0 -0
  344. package/dist/run-chrome-profile/Default/Code Cache/js/218fe828c74bdb99_0 +0 -0
  345. package/dist/run-chrome-profile/Default/Code Cache/js/3d7a6b9ba7b8e97d_0 +0 -0
  346. package/dist/run-chrome-profile/Default/Code Cache/js/476e356260f818d6_0 +0 -0
  347. package/dist/run-chrome-profile/Default/Code Cache/js/4ade40caa2a85163_0 +0 -0
  348. package/dist/run-chrome-profile/Default/Code Cache/js/56560d269952a184_0 +0 -0
  349. package/dist/run-chrome-profile/Default/Code Cache/js/64849f954a94216e_0 +0 -0
  350. package/dist/run-chrome-profile/Default/Code Cache/js/6580147029871082_0 +0 -0
  351. package/dist/run-chrome-profile/Default/Code Cache/js/6aec1e7616284cdd_0 +0 -0
  352. package/dist/run-chrome-profile/Default/Code Cache/js/7d53e29663da0b76_0 +0 -0
  353. package/dist/run-chrome-profile/Default/Code Cache/js/838d85c38184d753_0 +0 -0
  354. package/dist/run-chrome-profile/Default/Code Cache/js/95a62562b95ac9f9_0 +0 -0
  355. package/dist/run-chrome-profile/Default/Code Cache/js/9b6ef7d7a65e720d_0 +0 -0
  356. package/dist/run-chrome-profile/Default/Code Cache/js/a096196665df2f44_0 +0 -0
  357. package/dist/run-chrome-profile/Default/Code Cache/js/a572b6bb234d4a65_0 +0 -0
  358. package/dist/run-chrome-profile/Default/Code Cache/js/a8bfd7ab3bf7adbd_0 +0 -0
  359. package/dist/run-chrome-profile/Default/Code Cache/js/b5d00710776b3b78_0 +0 -0
  360. package/dist/run-chrome-profile/Default/Code Cache/js/ba446f34fd660131_0 +0 -0
  361. package/dist/run-chrome-profile/Default/Code Cache/js/bd25d8bae4a347fb_0 +0 -0
  362. package/dist/run-chrome-profile/Default/Code Cache/js/d833cd33af1db7c6_0 +0 -0
  363. package/dist/run-chrome-profile/Default/Code Cache/js/d876d0d7d35cd53f_0 +0 -0
  364. package/dist/run-chrome-profile/Default/Code Cache/js/d91fc36c8dfd76dc_0 +0 -0
  365. package/dist/run-chrome-profile/Default/Code Cache/js/e1435a1865ecedae_0 +0 -0
  366. package/dist/run-chrome-profile/Default/Code Cache/js/index +0 -0
  367. package/dist/run-chrome-profile/Default/Code Cache/js/index-dir/the-real-index +0 -0
  368. package/dist/run-chrome-profile/Default/Code Cache/wasm/index +0 -0
  369. package/dist/run-chrome-profile/Default/Code Cache/wasm/index-dir/the-real-index +0 -0
  370. package/dist/run-chrome-profile/Default/Cookies +0 -0
  371. package/dist/run-chrome-profile/Default/Cookies-journal +0 -0
  372. package/dist/run-chrome-profile/Default/DIPS +0 -0
  373. package/dist/run-chrome-profile/Default/DawnGraphiteCache/data_0 +0 -0
  374. package/dist/run-chrome-profile/Default/DawnGraphiteCache/data_1 +0 -0
  375. package/dist/run-chrome-profile/Default/DawnGraphiteCache/data_2 +0 -0
  376. package/dist/run-chrome-profile/Default/DawnGraphiteCache/data_3 +0 -0
  377. package/dist/run-chrome-profile/Default/DawnGraphiteCache/index +0 -0
  378. package/dist/run-chrome-profile/Default/DawnWebGPUCache/data_0 +0 -0
  379. package/dist/run-chrome-profile/Default/DawnWebGPUCache/data_1 +0 -0
  380. package/dist/run-chrome-profile/Default/DawnWebGPUCache/data_2 +0 -0
  381. package/dist/run-chrome-profile/Default/DawnWebGPUCache/data_3 +0 -0
  382. package/dist/run-chrome-profile/Default/DawnWebGPUCache/index +0 -0
  383. package/dist/run-chrome-profile/Default/Download Service/EntryDB/LOCK +0 -0
  384. package/dist/run-chrome-profile/Default/Download Service/EntryDB/LOG +0 -0
  385. package/dist/run-chrome-profile/Default/Download Service/EntryDB/LOG.old +0 -0
  386. package/dist/run-chrome-profile/Default/Extension Rules/000003.log +0 -0
  387. package/dist/run-chrome-profile/Default/Extension Rules/CURRENT +0 -1
  388. package/dist/run-chrome-profile/Default/Extension Rules/LOCK +0 -0
  389. package/dist/run-chrome-profile/Default/Extension Rules/LOG +0 -3
  390. package/dist/run-chrome-profile/Default/Extension Rules/LOG.old +0 -3
  391. package/dist/run-chrome-profile/Default/Extension Rules/MANIFEST-000001 +0 -0
  392. package/dist/run-chrome-profile/Default/Extension Scripts/000003.log +0 -0
  393. package/dist/run-chrome-profile/Default/Extension Scripts/CURRENT +0 -1
  394. package/dist/run-chrome-profile/Default/Extension Scripts/LOCK +0 -0
  395. package/dist/run-chrome-profile/Default/Extension Scripts/LOG +0 -3
  396. package/dist/run-chrome-profile/Default/Extension Scripts/LOG.old +0 -3
  397. package/dist/run-chrome-profile/Default/Extension Scripts/MANIFEST-000001 +0 -0
  398. package/dist/run-chrome-profile/Default/Extension State/000003.log +0 -0
  399. package/dist/run-chrome-profile/Default/Extension State/CURRENT +0 -1
  400. package/dist/run-chrome-profile/Default/Extension State/LOCK +0 -0
  401. package/dist/run-chrome-profile/Default/Extension State/LOG +0 -3
  402. package/dist/run-chrome-profile/Default/Extension State/LOG.old +0 -3
  403. package/dist/run-chrome-profile/Default/Extension State/MANIFEST-000001 +0 -0
  404. package/dist/run-chrome-profile/Default/Favicons +0 -0
  405. package/dist/run-chrome-profile/Default/Favicons-journal +0 -0
  406. package/dist/run-chrome-profile/Default/Feature Engagement Tracker/AvailabilityDB/LOCK +0 -0
  407. package/dist/run-chrome-profile/Default/Feature Engagement Tracker/AvailabilityDB/LOG +0 -0
  408. package/dist/run-chrome-profile/Default/Feature Engagement Tracker/AvailabilityDB/LOG.old +0 -0
  409. package/dist/run-chrome-profile/Default/Feature Engagement Tracker/EventDB/LOCK +0 -0
  410. package/dist/run-chrome-profile/Default/Feature Engagement Tracker/EventDB/LOG +0 -0
  411. package/dist/run-chrome-profile/Default/Feature Engagement Tracker/EventDB/LOG.old +0 -0
  412. package/dist/run-chrome-profile/Default/GPUCache/data_0 +0 -0
  413. package/dist/run-chrome-profile/Default/GPUCache/data_1 +0 -0
  414. package/dist/run-chrome-profile/Default/GPUCache/data_2 +0 -0
  415. package/dist/run-chrome-profile/Default/GPUCache/data_3 +0 -0
  416. package/dist/run-chrome-profile/Default/GPUCache/index +0 -0
  417. package/dist/run-chrome-profile/Default/History +0 -0
  418. package/dist/run-chrome-profile/Default/History-journal +0 -0
  419. package/dist/run-chrome-profile/Default/LOCK +0 -0
  420. package/dist/run-chrome-profile/Default/LOG +0 -0
  421. package/dist/run-chrome-profile/Default/LOG.old +0 -0
  422. package/dist/run-chrome-profile/Default/Local Extension Settings/pbpgonifamlpcahjkkkfelffkegofkgg/000003.log +0 -0
  423. package/dist/run-chrome-profile/Default/Local Extension Settings/pbpgonifamlpcahjkkkfelffkegofkgg/CURRENT +0 -1
  424. package/dist/run-chrome-profile/Default/Local Extension Settings/pbpgonifamlpcahjkkkfelffkegofkgg/LOCK +0 -0
  425. package/dist/run-chrome-profile/Default/Local Extension Settings/pbpgonifamlpcahjkkkfelffkegofkgg/LOG +0 -3
  426. package/dist/run-chrome-profile/Default/Local Extension Settings/pbpgonifamlpcahjkkkfelffkegofkgg/LOG.old +0 -3
  427. package/dist/run-chrome-profile/Default/Local Extension Settings/pbpgonifamlpcahjkkkfelffkegofkgg/MANIFEST-000001 +0 -0
  428. package/dist/run-chrome-profile/Default/Local Storage/leveldb/000003.log +0 -0
  429. package/dist/run-chrome-profile/Default/Local Storage/leveldb/CURRENT +0 -1
  430. package/dist/run-chrome-profile/Default/Local Storage/leveldb/LOCK +0 -0
  431. package/dist/run-chrome-profile/Default/Local Storage/leveldb/LOG +0 -3
  432. package/dist/run-chrome-profile/Default/Local Storage/leveldb/LOG.old +0 -3
  433. package/dist/run-chrome-profile/Default/Local Storage/leveldb/MANIFEST-000001 +0 -0
  434. package/dist/run-chrome-profile/Default/Login Data +0 -0
  435. package/dist/run-chrome-profile/Default/Login Data For Account +0 -0
  436. package/dist/run-chrome-profile/Default/Login Data For Account-journal +0 -0
  437. package/dist/run-chrome-profile/Default/Login Data-journal +0 -0
  438. package/dist/run-chrome-profile/Default/Network Action Predictor +0 -0
  439. package/dist/run-chrome-profile/Default/Network Action Predictor-journal +0 -0
  440. package/dist/run-chrome-profile/Default/Network Persistent State +0 -1
  441. package/dist/run-chrome-profile/Default/PersistentOriginTrials/LOCK +0 -0
  442. package/dist/run-chrome-profile/Default/PersistentOriginTrials/LOG +0 -0
  443. package/dist/run-chrome-profile/Default/PersistentOriginTrials/LOG.old +0 -0
  444. package/dist/run-chrome-profile/Default/Platform Notifications/000003.log +0 -0
  445. package/dist/run-chrome-profile/Default/Platform Notifications/CURRENT +0 -1
  446. package/dist/run-chrome-profile/Default/Platform Notifications/LOCK +0 -0
  447. package/dist/run-chrome-profile/Default/Platform Notifications/LOG +0 -3
  448. package/dist/run-chrome-profile/Default/Platform Notifications/LOG.old +0 -3
  449. package/dist/run-chrome-profile/Default/Platform Notifications/MANIFEST-000001 +0 -0
  450. package/dist/run-chrome-profile/Default/Preferences +0 -1
  451. package/dist/run-chrome-profile/Default/PreferredApps +0 -1
  452. package/dist/run-chrome-profile/Default/README +0 -1
  453. package/dist/run-chrome-profile/Default/Reporting and NEL +0 -0
  454. package/dist/run-chrome-profile/Default/Reporting and NEL-journal +0 -0
  455. package/dist/run-chrome-profile/Default/Safe Browsing Cookies +0 -0
  456. package/dist/run-chrome-profile/Default/Safe Browsing Cookies-journal +0 -0
  457. package/dist/run-chrome-profile/Default/Secure Preferences +0 -1
  458. package/dist/run-chrome-profile/Default/Segmentation Platform/SegmentInfoDB/LOCK +0 -0
  459. package/dist/run-chrome-profile/Default/Segmentation Platform/SegmentInfoDB/LOG +0 -0
  460. package/dist/run-chrome-profile/Default/Segmentation Platform/SegmentInfoDB/LOG.old +0 -0
  461. package/dist/run-chrome-profile/Default/Segmentation Platform/SignalDB/LOCK +0 -0
  462. package/dist/run-chrome-profile/Default/Segmentation Platform/SignalDB/LOG +0 -0
  463. package/dist/run-chrome-profile/Default/Segmentation Platform/SignalDB/LOG.old +0 -0
  464. package/dist/run-chrome-profile/Default/Segmentation Platform/SignalStorageConfigDB/LOCK +0 -0
  465. package/dist/run-chrome-profile/Default/Segmentation Platform/SignalStorageConfigDB/LOG +0 -0
  466. package/dist/run-chrome-profile/Default/Segmentation Platform/SignalStorageConfigDB/LOG.old +0 -0
  467. package/dist/run-chrome-profile/Default/Service Worker/Database/000003.log +0 -0
  468. package/dist/run-chrome-profile/Default/Service Worker/Database/CURRENT +0 -1
  469. package/dist/run-chrome-profile/Default/Service Worker/Database/LOCK +0 -0
  470. package/dist/run-chrome-profile/Default/Service Worker/Database/LOG +0 -3
  471. package/dist/run-chrome-profile/Default/Service Worker/Database/LOG.old +0 -3
  472. package/dist/run-chrome-profile/Default/Service Worker/Database/MANIFEST-000001 +0 -0
  473. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/013888a1cda32b90_0 +0 -0
  474. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/013888a1cda32b90_1 +0 -0
  475. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/4cb013792b196a35_0 +0 -0
  476. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/7b4fd8111178d5b1_0 +0 -0
  477. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/7b4fd8111178d5b1_1 +0 -0
  478. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/ba23d8ecda68de77_0 +0 -0
  479. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/d0757ff92c7cde0a_0 +0 -0
  480. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/d0757ff92c7cde0a_1 +0 -0
  481. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/f1cdccba37924bda_0 +0 -0
  482. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/index +0 -0
  483. package/dist/run-chrome-profile/Default/Service Worker/ScriptCache/index-dir/the-real-index +0 -0
  484. package/dist/run-chrome-profile/Default/Session Storage/000003.log +0 -0
  485. package/dist/run-chrome-profile/Default/Session Storage/CURRENT +0 -1
  486. package/dist/run-chrome-profile/Default/Session Storage/LOCK +0 -0
  487. package/dist/run-chrome-profile/Default/Session Storage/LOG +0 -3
  488. package/dist/run-chrome-profile/Default/Session Storage/LOG.old +0 -3
  489. package/dist/run-chrome-profile/Default/Session Storage/MANIFEST-000001 +0 -0
  490. package/dist/run-chrome-profile/Default/Sessions/Session_13388296523755223 +0 -0
  491. package/dist/run-chrome-profile/Default/Sessions/Session_13388296533026691 +0 -0
  492. package/dist/run-chrome-profile/Default/Sessions/Tabs_13388296523963369 +0 -0
  493. package/dist/run-chrome-profile/Default/Sessions/Tabs_13388296533217699 +0 -0
  494. package/dist/run-chrome-profile/Default/Shared Dictionary/cache/index +0 -0
  495. package/dist/run-chrome-profile/Default/Shared Dictionary/cache/index-dir/the-real-index +0 -0
  496. package/dist/run-chrome-profile/Default/Shared Dictionary/db +0 -0
  497. package/dist/run-chrome-profile/Default/Shared Dictionary/db-journal +0 -0
  498. package/dist/run-chrome-profile/Default/SharedStorage +0 -0
  499. package/dist/run-chrome-profile/Default/Shortcuts +0 -0
  500. package/dist/run-chrome-profile/Default/Shortcuts-journal +0 -0
  501. package/dist/run-chrome-profile/Default/Site Characteristics Database/000003.log +0 -0
  502. package/dist/run-chrome-profile/Default/Site Characteristics Database/CURRENT +0 -1
  503. package/dist/run-chrome-profile/Default/Site Characteristics Database/LOCK +0 -0
  504. package/dist/run-chrome-profile/Default/Site Characteristics Database/LOG +0 -3
  505. package/dist/run-chrome-profile/Default/Site Characteristics Database/LOG.old +0 -3
  506. package/dist/run-chrome-profile/Default/Site Characteristics Database/MANIFEST-000001 +0 -0
  507. package/dist/run-chrome-profile/Default/Sync Data/LevelDB/000003.log +0 -0
  508. package/dist/run-chrome-profile/Default/Sync Data/LevelDB/CURRENT +0 -1
  509. package/dist/run-chrome-profile/Default/Sync Data/LevelDB/LOCK +0 -0
  510. package/dist/run-chrome-profile/Default/Sync Data/LevelDB/LOG +0 -3
  511. package/dist/run-chrome-profile/Default/Sync Data/LevelDB/LOG.old +0 -3
  512. package/dist/run-chrome-profile/Default/Sync Data/LevelDB/MANIFEST-000001 +0 -0
  513. package/dist/run-chrome-profile/Default/Top Sites +0 -0
  514. package/dist/run-chrome-profile/Default/Top Sites-journal +0 -0
  515. package/dist/run-chrome-profile/Default/TransportSecurity +0 -1
  516. package/dist/run-chrome-profile/Default/Trust Tokens +0 -0
  517. package/dist/run-chrome-profile/Default/Trust Tokens-journal +0 -0
  518. package/dist/run-chrome-profile/Default/Visited Links +0 -0
  519. package/dist/run-chrome-profile/Default/Web Data +0 -0
  520. package/dist/run-chrome-profile/Default/Web Data-journal +0 -0
  521. package/dist/run-chrome-profile/Default/WebStorage/QuotaManager +0 -0
  522. package/dist/run-chrome-profile/Default/WebStorage/QuotaManager-journal +0 -0
  523. package/dist/run-chrome-profile/Default/chrome_cart_db/LOCK +0 -0
  524. package/dist/run-chrome-profile/Default/chrome_cart_db/LOG +0 -0
  525. package/dist/run-chrome-profile/Default/chrome_cart_db/LOG.old +0 -0
  526. package/dist/run-chrome-profile/Default/commerce_subscription_db/LOCK +0 -0
  527. package/dist/run-chrome-profile/Default/commerce_subscription_db/LOG +0 -0
  528. package/dist/run-chrome-profile/Default/commerce_subscription_db/LOG.old +0 -0
  529. package/dist/run-chrome-profile/Default/discounts_db/LOCK +0 -0
  530. package/dist/run-chrome-profile/Default/discounts_db/LOG +0 -0
  531. package/dist/run-chrome-profile/Default/discounts_db/LOG.old +0 -0
  532. package/dist/run-chrome-profile/Default/heavy_ad_intervention_opt_out.db +0 -0
  533. package/dist/run-chrome-profile/Default/heavy_ad_intervention_opt_out.db-journal +0 -0
  534. package/dist/run-chrome-profile/Default/optimization_guide_hint_cache_store/LOCK +0 -0
  535. package/dist/run-chrome-profile/Default/optimization_guide_hint_cache_store/LOG +0 -0
  536. package/dist/run-chrome-profile/Default/optimization_guide_hint_cache_store/LOG.old +0 -0
  537. package/dist/run-chrome-profile/Default/parcel_tracking_db/LOCK +0 -0
  538. package/dist/run-chrome-profile/Default/parcel_tracking_db/LOG +0 -0
  539. package/dist/run-chrome-profile/Default/parcel_tracking_db/LOG.old +0 -0
  540. package/dist/run-chrome-profile/Default/passkey_enclave_state +0 -1
  541. package/dist/run-chrome-profile/Default/shared_proto_db/000003.log +0 -0
  542. package/dist/run-chrome-profile/Default/shared_proto_db/CURRENT +0 -1
  543. package/dist/run-chrome-profile/Default/shared_proto_db/LOCK +0 -0
  544. package/dist/run-chrome-profile/Default/shared_proto_db/LOG +0 -3
  545. package/dist/run-chrome-profile/Default/shared_proto_db/LOG.old +0 -3
  546. package/dist/run-chrome-profile/Default/shared_proto_db/MANIFEST-000001 +0 -0
  547. package/dist/run-chrome-profile/Default/shared_proto_db/metadata/000003.log +0 -0
  548. package/dist/run-chrome-profile/Default/shared_proto_db/metadata/CURRENT +0 -1
  549. package/dist/run-chrome-profile/Default/shared_proto_db/metadata/LOCK +0 -0
  550. package/dist/run-chrome-profile/Default/shared_proto_db/metadata/LOG +0 -3
  551. package/dist/run-chrome-profile/Default/shared_proto_db/metadata/LOG.old +0 -3
  552. package/dist/run-chrome-profile/Default/shared_proto_db/metadata/MANIFEST-000001 +0 -0
  553. package/dist/run-chrome-profile/Default/trusted_vault.pb +0 -2
  554. package/dist/run-chrome-profile/GrShaderCache/data_0 +0 -0
  555. package/dist/run-chrome-profile/GrShaderCache/data_1 +0 -0
  556. package/dist/run-chrome-profile/GrShaderCache/data_2 +0 -0
  557. package/dist/run-chrome-profile/GrShaderCache/data_3 +0 -0
  558. package/dist/run-chrome-profile/GrShaderCache/index +0 -0
  559. package/dist/run-chrome-profile/GraphiteDawnCache/data_0 +0 -0
  560. package/dist/run-chrome-profile/GraphiteDawnCache/data_1 +0 -0
  561. package/dist/run-chrome-profile/GraphiteDawnCache/data_2 +0 -0
  562. package/dist/run-chrome-profile/GraphiteDawnCache/data_3 +0 -0
  563. package/dist/run-chrome-profile/GraphiteDawnCache/f_000001 +0 -0
  564. package/dist/run-chrome-profile/GraphiteDawnCache/f_000002 +0 -0
  565. package/dist/run-chrome-profile/GraphiteDawnCache/f_000003 +0 -0
  566. package/dist/run-chrome-profile/GraphiteDawnCache/f_000004 +0 -0
  567. package/dist/run-chrome-profile/GraphiteDawnCache/index +0 -0
  568. package/dist/run-chrome-profile/Last Version +0 -1
  569. package/dist/run-chrome-profile/Local State +0 -1
  570. package/dist/run-chrome-profile/ShaderCache/data_0 +0 -0
  571. package/dist/run-chrome-profile/ShaderCache/data_1 +0 -0
  572. package/dist/run-chrome-profile/ShaderCache/data_2 +0 -0
  573. package/dist/run-chrome-profile/ShaderCache/data_3 +0 -0
  574. package/dist/run-chrome-profile/ShaderCache/index +0 -0
  575. package/dist/run-chrome-profile/Variations +0 -1
  576. package/dist/run-chrome-profile/first_party_sets.db +0 -0
  577. package/dist/run-chrome-profile/first_party_sets.db-journal +0 -0
  578. package/dist/run-chrome-profile/optimization_guide_model_store/13/E6DC4029A1E4B4C1/3CF18F0F16C8CE09/model-info.pb +0 -1
  579. package/dist/run-chrome-profile/optimization_guide_model_store/13/E6DC4029A1E4B4C1/3CF18F0F16C8CE09/model.tflite +0 -0
  580. package/dist/run-chrome-profile/optimization_guide_model_store/15/E6DC4029A1E4B4C1/D5BCEC4E5AAF74EA/VERSION.txt +0 -4
  581. package/dist/run-chrome-profile/optimization_guide_model_store/15/E6DC4029A1E4B4C1/D5BCEC4E5AAF74EA/model-info.pb +0 -0
  582. package/dist/run-chrome-profile/optimization_guide_model_store/15/E6DC4029A1E4B4C1/D5BCEC4E5AAF74EA/model.tflite +0 -0
  583. package/dist/run-chrome-profile/optimization_guide_model_store/15/E6DC4029A1E4B4C1/D5BCEC4E5AAF74EA/override_list.pb.gz +0 -0
  584. package/dist/run-chrome-profile/optimization_guide_model_store/2/E6DC4029A1E4B4C1/52963069BD02697B/model-info.pb +0 -1
  585. package/dist/run-chrome-profile/optimization_guide_model_store/2/E6DC4029A1E4B4C1/52963069BD02697B/model.tflite +0 -0
  586. package/dist/run-chrome-profile/optimization_guide_model_store/20/E6DC4029A1E4B4C1/AEDAEAFE1BA40A26/model-info.pb +0 -0
  587. package/dist/run-chrome-profile/optimization_guide_model_store/20/E6DC4029A1E4B4C1/AEDAEAFE1BA40A26/model.tflite +0 -0
  588. package/dist/run-chrome-profile/optimization_guide_model_store/24/E6DC4029A1E4B4C1/7C893FFC02F661B8/enus_denylist_encoded_241007.txt +0 -580
  589. package/dist/run-chrome-profile/optimization_guide_model_store/24/E6DC4029A1E4B4C1/7C893FFC02F661B8/model-info.pb +0 -5
  590. package/dist/run-chrome-profile/optimization_guide_model_store/24/E6DC4029A1E4B4C1/7C893FFC02F661B8/model.tflite +0 -0
  591. package/dist/run-chrome-profile/optimization_guide_model_store/24/E6DC4029A1E4B4C1/7C893FFC02F661B8/vocab_en-us.txt +0 -303
  592. package/dist/run-chrome-profile/optimization_guide_model_store/25/E6DC4029A1E4B4C1/F87CF299C0E14D75/model-info.pb +0 -0
  593. package/dist/run-chrome-profile/optimization_guide_model_store/25/E6DC4029A1E4B4C1/F87CF299C0E14D75/model.tflite +0 -0
  594. package/dist/run-chrome-profile/optimization_guide_model_store/25/E6DC4029A1E4B4C1/F87CF299C0E14D75/visual_model_desktop.tflite +0 -0
  595. package/dist/run-chrome-profile/optimization_guide_model_store/26/E6DC4029A1E4B4C1/92C138FC1F6BC7A5/model-info.pb +0 -0
  596. package/dist/run-chrome-profile/optimization_guide_model_store/26/E6DC4029A1E4B4C1/92C138FC1F6BC7A5/model.tflite +0 -0
  597. package/dist/run-chrome-profile/optimization_guide_model_store/45/E6DC4029A1E4B4C1/99FA23F9C3B6B1E9/model-info.pb +0 -0
  598. package/dist/run-chrome-profile/optimization_guide_model_store/45/E6DC4029A1E4B4C1/99FA23F9C3B6B1E9/model.tflite +0 -0
  599. package/dist/run-chrome-profile/optimization_guide_model_store/9/E6DC4029A1E4B4C1/201FE93993560CC9/model-info.pb +0 -0
  600. package/dist/run-chrome-profile/optimization_guide_model_store/9/E6DC4029A1E4B4C1/201FE93993560CC9/model.tflite +0 -0
  601. package/dist/run-chrome-profile/segmentation_platform/ukm_db +0 -0
  602. package/dist/run-chrome-profile/segmentation_platform/ukm_db-wal +0 -0
  603. package/dist/tailwind.config.js +0 -25
  604. /package/dist/{minimum-script-file.mjs → webpack/plugin-extension/feature-scripts/steps/minimum-content-file.d.ts} +0 -0
  605. /package/dist/{run-chrome-profile/Default/Affiliation Database-journal → webpack/plugin-reload/steps/setup-chromium-reload-client/minimum-chromium-file.d.ts} +0 -0
  606. /package/dist/{run-chrome-profile/Default/AutofillStrikeDatabase/LOCK → webpack/plugin-reload/steps/setup-firefox-reload-client/minimum-firefox-file.d.ts} +0 -0
@@ -1,50 +1,167 @@
1
- "use strict";var M=Object.create;var u=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var O=(e,n)=>{for(var r in n)u(e,r,{get:n[r],enumerable:!0})},g=(e,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of T(n))!S.call(e,s)&&s!==r&&u(e,s,{get:()=>n[s],enumerable:!(a=j(n,s))||a.enumerable});return e};var c=(e,n,r)=>(r=e!=null?M(N(e)):{},g(n||!e||!e.__esModule?u(r,"default",{value:e,enumerable:!0}):r,e)),_=e=>g(u({},"__esModule",{value:!0}),e);var B={};O(B,{default:()=>H});module.exports=_(B);var f=c(require("path")),b=require("loader-utils"),v=require("schema-utils");var P=c(require("path")),U=c(require("fs")),A=require("child_process"),L=require("package-manager-detector");var I=c(require("path")),t=require("@colors/colors/safe");var h=c(require("path")),k=h.default.join(process.cwd(),"node_modules/extension-develop/dist/certs"),p=["chrome","edge"],D=["firefox"],J=[...p,...D];var R=require("console");function C(e,n){return n==="error"?`${(0,t.bold)((0,t.red)("ERROR"))} in ${e} ${(0,t.red)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")}`:n==="warn"?`${e} ${(0,t.brightYellow)("\u2716\uFE0E\u2716\uFE0E\u2716\uFE0E")}`:`${n==="info"?(0,t.cyan)("\u25BA\u25BA\u25BA"):(0,t.brightGreen)("\u25BA\u25BA\u25BA")} ${(0,t.cyan)(e)}`}function $(){return`${C("Firefox runner","error")} No Service Worker Support
2
-
3
- Firefox does not support the ${(0,t.brightYellow)("background.service_worker")} field yet.
4
- Update your manifest.json file to use ${(0,t.brightYellow)("background.scripts")} instead.
5
- If you really need to keep the ${(0,t.brightYellow)("service_worker")} field, prefix it with
6
- ${(0,t.brightYellow)("chromium:")} so it can target only Chromium-based browsers.
7
-
8
- Mozilla bug: ${(0,t.underline)("https://bugzilla.mozilla.org/show_bug.cgi?id=1573659")}.`}function y(e,n){return JSON.parse(JSON.stringify(e),function(s,l){let o=s.indexOf(":");if(o===-1)return l;let i=s.substring(0,o);(i===n||i==="chromium"&&p.includes(n)||i==="chromium"&&n.includes("chromium")||i==="gecko"&&n.includes("gecko"))&&(this[s.substring(o+1)]=l)})}var W={type:"object",properties:{test:{type:"string"},manifestPath:{type:"string"}}};function H(e){let n=this.getOptions(),r=n.manifestPath,a=n.browser,s=f.default.dirname(r),l=require(r),o=y(l,a);(0,v.validate)(W,n,{name:"reload:inject-background-client",baseDataPath:"options"});let i=(0,b.urlToRequest)(this.resourcePath),w=`
9
- ;browser.runtime.onMessageExternal.addListener(async (request, _sender) => {
10
- const managementInfo = await browser.management.getSelf()
11
-
12
- // Ping-pong between the user extension background page(this)
13
- // and the middleware socket client (reloadService.ts),
14
- // which will then send a message to the server
15
- // (startServer.ts) so it can display the extension info.
16
- if (request.initialLoadData) {
17
- return {
18
- id: browser.runtime.id,
19
- manifest: browser.runtime.getManifest(),
20
- management: managementInfo
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ default: ()=>inject_firefox_client_loader
28
+ });
29
+ const external_path_namespaceObject = require("path");
30
+ const external_fs_namespaceObject = require("fs");
31
+ const external_loader_utils_namespaceObject = require("loader-utils");
32
+ const external_schema_utils_namespaceObject = require("schema-utils");
33
+ require("child_process");
34
+ require("package-manager-detector");
35
+ require("pintor");
36
+ external_path_namespaceObject.join(process.cwd(), 'node_modules/extension-develop/dist/certs');
37
+ const CHROMIUM_BASED_BROWSERS = [
38
+ 'chrome',
39
+ 'edge'
40
+ ];
41
+ const GECKO_BASED_BROWSERS = [
42
+ 'firefox'
43
+ ];
44
+ [
45
+ ...CHROMIUM_BASED_BROWSERS,
46
+ ...GECKO_BASED_BROWSERS
47
+ ];
48
+ function filterKeysForThisBrowser(manifest, browser) {
49
+ const patchedManifest = JSON.parse(JSON.stringify(manifest), function(key, value) {
50
+ const indexOfColon = key.indexOf(':');
51
+ if (-1 === indexOfColon) return value;
52
+ const prefix = key.substring(0, indexOfColon);
53
+ if (prefix === browser || 'chromium' === prefix && CHROMIUM_BASED_BROWSERS.includes(browser) || 'chromium' === prefix && browser.includes('chromium') || 'gecko' === prefix && browser.includes('gecko')) this[key.substring(indexOfColon + 1)] = value;
54
+ });
55
+ return patchedManifest;
56
+ }
57
+ const schema = {
58
+ type: 'object',
59
+ properties: {
60
+ test: {
61
+ type: 'string'
62
+ },
63
+ manifestPath: {
64
+ type: 'string'
65
+ }
21
66
  }
22
- }
23
-
24
- // Reload the extension runtime if the manifest or
25
- // service worker changes.
26
- if (
27
- request.changedFile === 'manifest.json' ||
28
- request.changedFile === 'service_worker' ||
29
- request.changedFile === '_locales'
30
- ) {
31
- setTimeout(() => {
32
- browser.runtime.reload()
33
- }, 750)
34
- }
35
-
36
- // Reload all tabs if the contextMenus code changes.
37
- if (request.changedFile === "contextMenus") {
38
- browser.tabs.query({}, (tabs) => {
39
- if (!tabs) return;
40
- tabs.forEach((tab) => browser.tabs.reload(tab.id));
67
+ };
68
+ function inject_firefox_client_loader(source) {
69
+ const options = this.getOptions();
70
+ const manifestPath = options.manifestPath;
71
+ const browser = options.browser;
72
+ const projectPath = external_path_namespaceObject.dirname(manifestPath);
73
+ const manifest = JSON.parse(external_fs_namespaceObject.readFileSync(manifestPath, 'utf-8'));
74
+ const patchedManifest = filterKeysForThisBrowser(manifest, browser);
75
+ (0, external_schema_utils_namespaceObject.validate)(schema, options, {
76
+ name: 'reload:inject-firefox-client',
77
+ baseDataPath: 'options'
41
78
  });
42
- }
43
-
44
- // Reload all tabs if the declarative_net_request code changes.
45
- if (request.changedFile === 'declarative_net_request') {
46
- browser.runtime.reload()
47
- }
79
+ const url = (0, external_loader_utils_namespaceObject.urlToRequest)(this.resourcePath);
80
+ const firefoxReloadCode = `
81
+ // Firefox-specific reload handler
82
+ ;browser.runtime.onMessageExternal.addListener(
83
+ async (request, _sender, sendResponse) => {
84
+ const managementInfo = await new Promise((resolve) => {
85
+ browser.management.getSelf().then(resolve);
86
+ });
87
+
88
+ // Handle initial load data
89
+ if (request.initialLoadData) {
90
+ sendResponse({
91
+ id: browser.runtime.id,
92
+ manifest: browser.runtime.getManifest(),
93
+ management: managementInfo,
94
+ })
95
+ return true
96
+ }
97
+
98
+ // Enhanced reload logic for critical files in Firefox
99
+ if (
100
+ request.changedFile === 'manifest.json' ||
101
+ request.changedFile === 'service_worker' ||
102
+ request.changedFile === '_locales'
103
+ ) {
104
+ console.log('Firefox: Reloading extension due to critical file change:', request.changedFile);
105
+
106
+ try {
107
+ // Firefox-specific cache clearing
108
+ if (browser.storage && browser.storage.local) {
109
+ await browser.storage.local.clear();
110
+ }
111
+
112
+ const timestamp = Date.now();
113
+ console.log('Firefox: Forcing extension reload at:', timestamp);
114
+
115
+ sendResponse({reloaded: true, timestamp: timestamp})
116
+ browser.runtime.reload()
117
+ } catch (error) {
118
+ console.error('Firefox: Failed to reload extension:', error);
119
+ sendResponse({error: error.message})
120
+ }
121
+ }
48
122
 
49
- return {reloaded: true}
50
- });`,d=o.background;if(o.service_worker)return console.log($()),e;if(d){let m=d?.scripts;if(m)for(let E of[m[0]]){let F=f.default.resolve(s,E);if(i.includes(F))return`${w}${e}`}}return e}
123
+ return true
124
+ }
125
+ );
126
+
127
+ // Firefox-specific cache-busting mechanism
128
+ ;(function() {
129
+ const cacheBuster = Date.now();
130
+ console.log('Firefox background script loaded with cache buster:', cacheBuster);
131
+
132
+ // Force reload if this script is older than 1 second (optimized for faster manifest reloads)
133
+ const scriptAge = Date.now() - cacheBuster;
134
+ if (scriptAge > 1000) {
135
+ console.log('Firefox background script is stale, forcing reload');
136
+ browser.runtime.reload();
137
+ }
138
+ })();
139
+ `;
140
+ let manifestBg = patchedManifest.background;
141
+ if (manifestBg) {
142
+ const backgroundScripts = null == manifestBg ? void 0 : manifestBg.scripts;
143
+ if (backgroundScripts) {
144
+ if (2 === patchedManifest.manifest_version) for (const bgScript of [
145
+ backgroundScripts[0]
146
+ ]){
147
+ const absoluteUrl = external_path_namespaceObject.resolve(projectPath, bgScript);
148
+ if (url.includes(absoluteUrl)) return `${firefoxReloadCode}${source}`;
149
+ }
150
+ }
151
+ const serviceWorker = null == manifestBg ? void 0 : manifestBg.service_worker;
152
+ if (serviceWorker) {
153
+ if (3 === patchedManifest.manifest_version) {
154
+ const absoluteUrl = external_path_namespaceObject.resolve(projectPath, serviceWorker);
155
+ if (url.includes(absoluteUrl)) return `${firefoxReloadCode}${source}`;
156
+ }
157
+ }
158
+ }
159
+ return source;
160
+ }
161
+ exports["default"] = __webpack_exports__["default"];
162
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
163
+ "default"
164
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
165
+ Object.defineProperty(exports, '__esModule', {
166
+ value: true
167
+ });
@@ -0,0 +1,25 @@
1
+ var __webpack_exports__ = {};
2
+ chrome.runtime.onMessageExternal.addListener(async (request, _sender, sendResponse)=>{
3
+ const managementInfo = await new Promise((resolve)=>{
4
+ chrome.management.getSelf(resolve);
5
+ });
6
+ if (request.initialLoadData) {
7
+ sendResponse({
8
+ id: chrome.runtime.id,
9
+ manifest: chrome.runtime.getManifest(),
10
+ management: managementInfo
11
+ });
12
+ return true;
13
+ }
14
+ if ('declarative_net_request' === request.changedFile || 'manifest.json' === request.changedFile || 'service_worker' === request.changedFile || '_locales' === request.changedFile) {
15
+ sendResponse({
16
+ reloaded: true
17
+ });
18
+ chrome.runtime.reload();
19
+ }
20
+ return true;
21
+ });
22
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
23
+ Object.defineProperty(exports, '__esModule', {
24
+ value: true
25
+ });
@@ -0,0 +1,5 @@
1
+ var __webpack_exports__ = {};
2
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ });
@@ -0,0 +1,17 @@
1
+ var __webpack_exports__ = {};
2
+ browser.runtime.onMessageExternal.addListener(async (request, _sender)=>{
3
+ const managementInfo = await browser.management.getSelf();
4
+ if (request.initialLoadData) return {
5
+ id: browser.runtime.id,
6
+ manifest: browser.runtime.getManifest(),
7
+ management: managementInfo
8
+ };
9
+ if ('declarative_net_request' === request.changedFile || 'manifest.json' === request.changedFile || 'service_worker' === request.changedFile || '_locales' === request.changedFile) browser.runtime.reload();
10
+ return {
11
+ reloaded: true
12
+ };
13
+ });
14
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
15
+ Object.defineProperty(exports, '__esModule', {
16
+ value: true
17
+ });
@@ -0,0 +1,5 @@
1
+ var __webpack_exports__ = {};
2
+ for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ });
package/dist/module.d.ts CHANGED
@@ -1,95 +1,8 @@
1
- import { Configuration } from '@rspack/core';
2
-
3
- type BrowserType = 'chrome' | 'edge' | 'firefox' | 'chromium-based' | 'gecko-based';
4
- interface BrowserOptionsBase {
5
- open?: boolean;
6
- profile?: string;
7
- startingUrl?: string;
8
- browser: BrowserType;
9
- }
10
- interface ChromiumOptions extends BrowserOptionsBase {
11
- browser: 'chromium-based';
12
- chromiumBinary?: string;
13
- }
14
- interface GeckoOptions extends BrowserOptionsBase {
15
- browser: 'gecko-based';
16
- geckoBinary?: string;
17
- }
18
- interface DevOptions extends BrowserOptionsBase {
19
- mode: 'development' | 'production' | 'none';
20
- polyfill?: boolean;
21
- chromiumBinary?: ChromiumOptions['chromiumBinary'];
22
- geckoBinary?: GeckoOptions['geckoBinary'];
23
- }
24
- interface BuildOptions {
25
- browser: BrowserOptionsBase['browser'];
26
- zipFilename?: string;
27
- zip?: boolean;
28
- zipSource?: boolean;
29
- polyfill?: boolean;
30
- silent?: boolean;
31
- }
32
- interface PreviewOptions extends BrowserOptionsBase {
33
- mode: 'production';
34
- chromiumBinary?: ChromiumOptions['chromiumBinary'];
35
- geckoBinary?: GeckoOptions['geckoBinary'];
36
- }
37
- interface StartOptions extends BrowserOptionsBase {
38
- mode: 'production';
39
- polyfill?: boolean;
40
- chromiumBinary?: ChromiumOptions['chromiumBinary'];
41
- geckoBinary?: GeckoOptions['geckoBinary'];
42
- }
43
- interface BrowserConfig extends BrowserOptionsBase {
44
- browserFlags?: string[];
45
- preferences?: Record<string, unknown>;
46
- chromiumBinary?: ChromiumOptions['chromiumBinary'];
47
- geckoBinary?: GeckoOptions['geckoBinary'];
48
- }
49
- interface FileConfig {
50
- browser?: {
51
- chrome?: BrowserConfig;
52
- firefox?: BrowserConfig;
53
- edge?: BrowserConfig;
54
- 'chromium-based'?: BrowserConfig;
55
- 'gecko-based'?: BrowserConfig;
56
- };
57
- commands?: {
58
- dev?: Pick<DevOptions, 'browser' | 'profile' | 'chromiumBinary' | 'geckoBinary' | 'open' | 'polyfill'> & {
59
- browserFlags?: string[];
60
- preferences?: Record<string, unknown>;
61
- };
62
- start?: Pick<StartOptions, 'browser' | 'profile' | 'chromiumBinary' | 'geckoBinary' | 'polyfill'> & {
63
- browserFlags?: string[];
64
- preferences?: Record<string, unknown>;
65
- };
66
- preview?: Pick<PreviewOptions, 'browser' | 'profile' | 'chromiumBinary' | 'geckoBinary'> & {
67
- browserFlags?: string[];
68
- preferences?: Record<string, unknown>;
69
- };
70
- build?: Pick<BuildOptions, 'browser' | 'zipFilename' | 'zip' | 'zipSource' | 'polyfill'>;
71
- };
72
- config?: (config: Configuration) => Configuration;
73
- }
74
-
75
- declare function extensionBuild(pathOrRemoteUrl: string | undefined, buildOptions?: BuildOptions): Promise<void>;
76
-
77
- declare function extensionDev(pathOrRemoteUrl: string | undefined, devOptions: DevOptions): Promise<void>;
78
-
79
- declare function extensionPreview(pathOrRemoteUrl: string | undefined, previewOptions: PreviewOptions): Promise<void>;
80
-
81
- declare function extensionStart(pathOrRemoteUrl: string | undefined, startOptions: StartOptions): Promise<void>;
82
-
83
- type ChromeManifest = Partial<chrome.runtime.ManifestV2> & Partial<chrome.runtime.ManifestV3> & {
84
- browser_action?: {
85
- theme_icons?: ThemeIcon[];
86
- };
87
- };
88
- type Manifest = ChromeManifest;
89
- interface ThemeIcon {
90
- light: string;
91
- dark: string;
92
- size?: number;
93
- }
94
-
95
- export { type BuildOptions, type DevOptions, type FileConfig, type Manifest, type PreviewOptions, type StartOptions, extensionBuild, extensionDev, extensionPreview, extensionStart };
1
+ import { extensionBuild } from './build';
2
+ import { extensionDev } from './dev';
3
+ import { extensionPreview } from './preview';
4
+ import { extensionStart } from './start';
5
+ import { cleanupCommand } from './cleanup';
6
+ import { type FileConfig, type BuildOptions, type DevOptions, type PreviewOptions, type StartOptions } from './develop-lib/config-types';
7
+ import { type Manifest } from './webpack/webpack-types';
8
+ export { extensionBuild, BuildOptions, extensionDev, DevOptions, extensionStart, StartOptions, extensionPreview, PreviewOptions, cleanupCommand, FileConfig, Manifest };