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.
- package/README.md +53 -25
- package/dist/930.js +44 -0
- package/dist/add-centralized-logger-script-background.js +220 -0
- package/dist/add-centralized-logger-script-content.js +172 -0
- package/dist/add-centralized-logger-script.js +332 -0
- package/dist/add-hmr-accept-code.js +5 -11
- package/dist/content-script-wrapper.js +166 -0
- package/dist/ensure-hmr-for-scripts.js +30 -11
- package/dist/minimum-chromium-file.js +6 -20
- package/dist/minimum-firefox-file.js +6 -12
- package/dist/module.js +12030 -9529
- package/dist/resolve-paths-loader.js +1391 -0
- package/dist/warn-no-default-export.js +121 -0
- package/package.json +21 -35
- package/dist/add-content-script-wrapper.js +0 -1789
- package/dist/build.d.ts +0 -2
- package/dist/cleanup.d.ts +0 -1
- package/dist/deprecated-shadow-root.js +0 -135
- package/dist/dev.d.ts +0 -2
- package/dist/develop-lib/config-types.d.ts +0 -86
- package/dist/develop-lib/extract-from-zip.d.ts +0 -1
- package/dist/develop-lib/find-nearest-package.d.ts +0 -2
- package/dist/develop-lib/generate-extension-types.d.ts +0 -1
- package/dist/develop-lib/generate-zip.d.ts +0 -2
- package/dist/develop-lib/get-extension-config.d.ts +0 -6
- package/dist/develop-lib/get-project-path.d.ts +0 -6
- package/dist/develop-lib/install-dependencies.d.ts +0 -2
- package/dist/develop-lib/messages.d.ts +0 -36
- package/dist/develop-lib/validate-user-dependencies.d.ts +0 -1
- package/dist/extensions/chrome-manager-extension/background.js +0 -84
- package/dist/extensions/chrome-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/chrome-manager-extension/images/logo.png +0 -0
- package/dist/extensions/chrome-manager-extension/manifest.json +0 -17
- package/dist/extensions/chrome-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/chrome-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/chrome-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/chrome-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/chrome-manager-extension/reload-service.js +0 -319
- package/dist/extensions/chromium-based-manager-extension/background.js +0 -84
- package/dist/extensions/chromium-based-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/chromium-based-manager-extension/images/logo.png +0 -0
- package/dist/extensions/chromium-based-manager-extension/manifest.json +0 -17
- package/dist/extensions/chromium-based-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/chromium-based-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/chromium-based-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/chromium-based-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/chromium-based-manager-extension/reload-service.js +0 -324
- package/dist/extensions/edge-manager-extension/background.js +0 -82
- package/dist/extensions/edge-manager-extension/define-initial-tab.js +0 -77
- package/dist/extensions/edge-manager-extension/images/logo.png +0 -0
- package/dist/extensions/edge-manager-extension/manifest.json +0 -17
- package/dist/extensions/edge-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/edge-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/edge-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/edge-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/edge-manager-extension/reload-service.js +0 -321
- package/dist/extensions/firefox-manager-extension/background.js +0 -85
- package/dist/extensions/firefox-manager-extension/define-initial-tab.js +0 -64
- package/dist/extensions/firefox-manager-extension/images/logo.png +0 -0
- package/dist/extensions/firefox-manager-extension/manifest.json +0 -15
- package/dist/extensions/firefox-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/firefox-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/firefox-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/firefox-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/firefox-manager-extension/reload-service.js +0 -178
- package/dist/extensions/gecko-based-manager-extension/background.js +0 -67
- package/dist/extensions/gecko-based-manager-extension/define-initial-tab.js +0 -69
- package/dist/extensions/gecko-based-manager-extension/images/logo.png +0 -0
- package/dist/extensions/gecko-based-manager-extension/manifest.json +0 -16
- package/dist/extensions/gecko-based-manager-extension/pages/sakura-dark.css +0 -268
- package/dist/extensions/gecko-based-manager-extension/pages/sakura.css +0 -267
- package/dist/extensions/gecko-based-manager-extension/pages/welcome.html +0 -46
- package/dist/extensions/gecko-based-manager-extension/pages/welcome.js +0 -34
- package/dist/extensions/gecko-based-manager-extension/reload-service.js +0 -171
- package/dist/inject-chromium-client-loader.js +0 -176
- package/dist/inject-firefox-client-loader.js +0 -169
- package/dist/minimum-content-file.js +0 -5
- package/dist/module.d.ts +0 -8
- package/dist/preview.d.ts +0 -2
- package/dist/rslib.config.d.ts +0 -3
- package/dist/start.d.ts +0 -2
- package/dist/types.d.ts +0 -11
- package/dist/vitest.config.d.mts +0 -2
- package/dist/webpack/dev-server.d.ts +0 -3
- package/dist/webpack/plugin-browsers/browsers-lib/add-progress-bar.d.ts +0 -1
- package/dist/webpack/plugin-browsers/browsers-lib/constants.d.ts +0 -5
- package/dist/webpack/plugin-browsers/browsers-lib/dynamic-extension-manager.d.ts +0 -35
- package/dist/webpack/plugin-browsers/browsers-lib/html-merge.d.ts +0 -1
- package/dist/webpack/plugin-browsers/browsers-lib/instance-manager.d.ts +0 -74
- package/dist/webpack/plugin-browsers/browsers-lib/messages.d.ts +0 -164
- package/dist/webpack/plugin-browsers/browsers-lib/rdp-wire.d.ts +0 -7
- package/dist/webpack/plugin-browsers/browsers-lib/shared-utils.d.ts +0 -16
- package/dist/webpack/plugin-browsers/browsers-types.d.ts +0 -131
- package/dist/webpack/plugin-browsers/index.d.ts +0 -41
- package/dist/webpack/plugin-browsers/run-chromium/browser-config.d.ts +0 -3
- package/dist/webpack/plugin-browsers/run-chromium/create-profile.d.ts +0 -10
- package/dist/webpack/plugin-browsers/run-chromium/index.d.ts +0 -28
- package/dist/webpack/plugin-browsers/run-chromium/master-preferences.d.ts +0 -161
- package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/cdp-client.d.ts +0 -29
- package/dist/webpack/plugin-browsers/run-chromium/setup-chrome-inspection/index.d.ts +0 -25
- package/dist/webpack/plugin-browsers/run-firefox/firefox/binary-detector.d.ts +0 -15
- package/dist/webpack/plugin-browsers/run-firefox/firefox/browser-config.d.ts +0 -7
- package/dist/webpack/plugin-browsers/run-firefox/firefox/create-profile.d.ts +0 -13
- package/dist/webpack/plugin-browsers/run-firefox/firefox/master-preferences.d.ts +0 -95
- package/dist/webpack/plugin-browsers/run-firefox/index.d.ts +0 -26
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/index.d.ts +0 -13
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/message-utils.d.ts +0 -2
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/messaging-client.d.ts +0 -42
- package/dist/webpack/plugin-browsers/run-firefox/remote-firefox/setup-firefox-inspection.d.ts +0 -31
- package/dist/webpack/plugin-compatibility/feature-browser-specific-fields.d.ts +0 -9
- package/dist/webpack/plugin-compatibility/feature-polyfill.d.ts +0 -12
- package/dist/webpack/plugin-compatibility/index.d.ts +0 -13
- package/dist/webpack/plugin-compilation/clean-dist.d.ts +0 -8
- package/dist/webpack/plugin-compilation/env.d.ts +0 -9
- package/dist/webpack/plugin-compilation/index.d.ts +0 -12
- package/dist/webpack/plugin-css/common-style-loaders.d.ts +0 -8
- package/dist/webpack/plugin-css/css-in-content-script-loader.d.ts +0 -11
- package/dist/webpack/plugin-css/css-in-html-loader.d.ts +0 -8
- package/dist/webpack/plugin-css/css-tools/less.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/postcss.d.ts +0 -3
- package/dist/webpack/plugin-css/css-tools/sass.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/stylelint.d.ts +0 -4
- package/dist/webpack/plugin-css/css-tools/tailwind.d.ts +0 -2
- package/dist/webpack/plugin-css/index.d.ts +0 -9
- package/dist/webpack/plugin-css/is-content-script.d.ts +0 -1
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/background.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/browser_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/chrome_url_overrides.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/devtools_page.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/options_ui.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/page_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sandbox.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/side_panel.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/html-fields/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/browser_action.theme_icons.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/icons.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/normalize.d.ts +0 -6
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/page_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/icons-fields/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/index.d.ts +0 -19
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/declarative_net_request.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/json-fields/storage.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/locales-fields/index.d.ts +0 -1
- package/dist/webpack/plugin-extension/data/manifest-fields/normalize.d.ts +0 -10
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/background.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/content_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/service_worker.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/scripts-fields/user_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/manifest-fields/web-resources-fields/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/data/special-folders/generate-entries.d.ts +0 -4
- package/dist/webpack/plugin-extension/data/special-folders/index.d.ts +0 -12
- package/dist/webpack/plugin-extension/feature-html/__spec__/html-lib/test-utils.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-html/html-lib/parse-html.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-html/html-lib/patch-html.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-html/html-lib/utils.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-html/index.d.ts +0 -37
- package/dist/webpack/plugin-extension/feature-html/steps/add-assets-to-compilation.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-html/steps/add-scripts-and-styles-to-compilation.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/add-to-file-dependencies.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/emit-html-file.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-html/steps/ensure-hmr-for-scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-html/steps/handle-common-errors.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-html/steps/minimum-script-file.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-html/steps/throw-if-recompile-is-needed.d.ts +0 -13
- package/dist/webpack/plugin-extension/feature-html/steps/update-html-file.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-icons/index.d.ts +0 -25
- package/dist/webpack/plugin-extension/feature-icons/steps/add-to-file-dependencies.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-icons/steps/emit-file.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-json/index.d.ts +0 -18
- package/dist/webpack/plugin-extension/feature-locales/get-locales.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-locales/index.d.ts +0 -13
- package/dist/webpack/plugin-extension/feature-manifest/index.d.ts +0 -23
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/chrome_url_overrides.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/commands.d.ts +0 -16
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_scripts.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/content_security_policy.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/devtools_page.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/icons.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/omnibox.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_page.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/options_ui.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/page_action.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/permissions.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sandbox.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/sidebar_action.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/storage.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/theme.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/user_scripts.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/common/web_accessible_resources.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/browser_action.d.ts +0 -12
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/chrome_settings_overrides.d.ts +0 -24
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/page_action.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/sidebar_action.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv2/theme_experiment.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/action.d.ts +0 -8
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/background.d.ts +0 -10
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/declarative_net_request.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/host_permissions.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/index.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/manifest-overrides/mv3/side_panel.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-manifest/steps/add-dependencies.d.ts +0 -6
- package/dist/webpack/plugin-extension/feature-manifest/steps/check-manifest-files.d.ts +0 -17
- package/dist/webpack/plugin-extension/feature-manifest/steps/emit-manifest.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-manifest/steps/throw-if-recompile.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-manifest/steps/update-manifest.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-scripts/index.d.ts +0 -27
- package/dist/webpack/plugin-extension/feature-scripts/scripts-lib/utils.d.ts +0 -3
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-content-script-wrapper.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-hmr-accept-code.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-for-main-world.d.ts +0 -11
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-public-path-runtime-module.d.ts +0 -4
- package/dist/webpack/plugin-extension/feature-scripts/steps/add-scripts.d.ts +0 -9
- package/dist/webpack/plugin-extension/feature-scripts/steps/deprecated-shadow-root.d.ts +0 -2
- package/dist/webpack/plugin-extension/feature-scripts/steps/javascript-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/minimum-content-file.d.ts +0 -0
- package/dist/webpack/plugin-extension/feature-scripts/steps/preact-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/react-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/svelte-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/typescript-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-scripts/steps/vue-content-script-wrapper.d.ts +0 -1
- package/dist/webpack/plugin-extension/feature-special-folders/copy-public-folder.d.ts +0 -14
- package/dist/webpack/plugin-extension/feature-special-folders/index.d.ts +0 -19
- package/dist/webpack/plugin-extension/feature-special-folders/warn-upon-folder-changes.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-web-resources/clean-matches.d.ts +0 -7
- package/dist/webpack/plugin-extension/feature-web-resources/index.d.ts +0 -18
- package/dist/webpack/plugin-extension/index.d.ts +0 -10
- package/dist/webpack/plugin-js-frameworks/index.d.ts +0 -13
- package/dist/webpack/plugin-js-frameworks/js-tools/babel.d.ts +0 -16
- package/dist/webpack/plugin-js-frameworks/js-tools/preact.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/react.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/svelte.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/js-tools/typescript.d.ts +0 -36
- package/dist/webpack/plugin-js-frameworks/js-tools/vue.d.ts +0 -3
- package/dist/webpack/plugin-js-frameworks/load-loader-options.d.ts +0 -1
- package/dist/webpack/plugin-reload/index.d.ts +0 -13
- package/dist/webpack/plugin-reload/reload-lib/messages.d.ts +0 -106
- package/dist/webpack/plugin-reload/reload-types.d.ts +0 -14
- package/dist/webpack/plugin-reload/start-server.d.ts +0 -4
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/index.d.ts +0 -14
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/broadcast-message.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/message-dispatcher.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/create-web-socket-server/web-socket-server/servers.d.ts +0 -2
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/index.d.ts +0 -3
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/inject-chromium-client-loader.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/minimum-chromium-file.d.ts +0 -0
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/index.d.ts +0 -3
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/inject-firefox-client-loader.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/minimum-firefox-file.d.ts +0 -0
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/index.d.ts +0 -9
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-background.d.ts +0 -15
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-csp.d.ts +0 -5
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-externally-connectable.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/apply-manifest-dev-defaults/patch-web-resources.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/generate-manager-extension.d.ts +0 -15
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/index.d.ts +0 -10
- package/dist/webpack/plugin-reload/steps/setup-reload-strategy/target-web-extension-plugin/index.d.ts +0 -13
- package/dist/webpack/plugin-static-assets/index.d.ts +0 -12
- package/dist/webpack/webpack-config.d.ts +0 -14
- package/dist/webpack/webpack-lib/auto-exit.d.ts +0 -1
- package/dist/webpack/webpack-lib/constants.d.ts +0 -4
- package/dist/webpack/webpack-lib/messages.d.ts +0 -121
- package/dist/webpack/webpack-lib/port-manager.d.ts +0 -27
- package/dist/webpack/webpack-lib/utils.d.ts +0 -23
- package/dist/webpack/webpack-types.d.ts +0 -49
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export declare function capitalize(browser: any): any;
|
|
2
|
-
export declare function sourceInspectorInitialized(): string;
|
|
3
|
-
export declare function sourceInspectorInitializationFailed(error: string): string;
|
|
4
|
-
export declare function sourceInspectorChromeDebuggingRequired(port: number): string;
|
|
5
|
-
export declare function sourceInspectorFirefoxDebuggingRequired(port: number): string;
|
|
6
|
-
export declare function sourceInspectorWaitingForFirefox(): string;
|
|
7
|
-
export declare function firefoxRemoteDebuggingReady(): string;
|
|
8
|
-
export declare function sourceInspectorFirefoxNotReadyYet(retries: number, maxRetries: number): string;
|
|
9
|
-
export declare function sourceInspectorWaitingForChrome(): string;
|
|
10
|
-
export declare function chromeRemoteDebuggingReady(): string;
|
|
11
|
-
export declare function sourceInspectorChromeNotReadyYet(retries: number, maxRetries: number): string;
|
|
12
|
-
export declare function sourceInspectorOpeningUrl(url: string): string;
|
|
13
|
-
export declare function sourceInspectorWaitingForPageLoad(): string;
|
|
14
|
-
export declare function sourceInspectorCreatingTarget(): string;
|
|
15
|
-
export declare function sourceInspectorFindingExistingTarget(): string;
|
|
16
|
-
export declare function sourceInspectorUsingExistingTarget(targetId: string): string;
|
|
17
|
-
export declare function sourceInspectorTargetCreated(targetId: string): string;
|
|
18
|
-
export declare function sourceInspectorAttachingToTarget(): string;
|
|
19
|
-
export declare function sourceInspectorAttachedToTarget(sessionId: string): string;
|
|
20
|
-
export declare function sourceInspectorExtractingHTML(): string;
|
|
21
|
-
export declare function sourceInspectorHTMLExtractionComplete(): string;
|
|
22
|
-
export declare function sourceInspectorInspectionFailed(error: string): string;
|
|
23
|
-
export declare function cdpClientExtensionReloaded(extensionId: string): string;
|
|
24
|
-
export declare function cdpClientExtensionReloadFailed(extensionId: string, error: string): string;
|
|
25
|
-
export declare function cdpClientExtensionUnloadFailed(extensionId: string, error: string): string;
|
|
26
|
-
export declare function cdpClientExtensionInfoFailed(extensionId: string, error: string): string;
|
|
27
|
-
export declare function cdpClientExtensionLoadFailed(path: string, error: string): string;
|
|
28
|
-
export declare function cdpClientConnected(host: string, port: number): string;
|
|
29
|
-
export declare function cdpClientConnectionError(error: string): string;
|
|
30
|
-
export declare function cdpClientBrowserConnectionEstablished(): string;
|
|
31
|
-
export declare function sourceInspectorStartingWatchMode(): string;
|
|
32
|
-
export declare function sourceInspectorWatchModeActive(): string;
|
|
33
|
-
export declare function sourceInspectorWatchModeStopped(): string;
|
|
34
|
-
export declare function sourceInspectorCDPConnectionMaintained(): string;
|
|
35
|
-
export declare function sourceInspectorNoActiveSession(): string;
|
|
36
|
-
export declare function sourceInspectorReExtractingHTML(): string;
|
|
37
|
-
export declare function sourceInspectorAttemptingReconnection(): string;
|
|
38
|
-
export declare function sourceInspectorCannotReconnect(): string;
|
|
39
|
-
export declare function sourceInspectorReconnectingToTarget(): string;
|
|
40
|
-
export declare function sourceInspectorReconnectedToTarget(sessionId: string): string;
|
|
41
|
-
export declare function sourceInspectorReconnectionFailed(error: string): string;
|
|
42
|
-
export declare function sourceInspectorEnsuringNavigation(): string;
|
|
43
|
-
export declare function sourceInspectorEnablingPageDomain(): string;
|
|
44
|
-
export declare function sourceInspectorWaitingForContentScripts(): string;
|
|
45
|
-
export declare function sourceInspectorWaitingForContentScriptReinjection(): string;
|
|
46
|
-
export declare function sourceInspectorFileChanged(): string;
|
|
47
|
-
export declare function sourceInspectorHTMLUpdateFailed(error: string): string;
|
|
48
|
-
export declare function sourceInspectorCleanupComplete(): string;
|
|
49
|
-
export declare function sourceInspectorCleanupError(error: string): string;
|
|
50
|
-
export declare function htmlEntrypointChangeRestarting(): string;
|
|
51
|
-
export declare function manifestEntrypointChangeRestarting(filePath: string): string;
|
|
52
|
-
export declare function sourceInspectorNotInitialized(): string;
|
|
53
|
-
export declare function sourceInspectorInvalidWebSocketServer(): string;
|
|
54
|
-
export declare function sourceInspectorUrlRequired(): string;
|
|
55
|
-
export declare function sourceInspectorWillInspect(url: string): string;
|
|
56
|
-
export declare function sourceInspectorSetupFailed(error: string): string;
|
|
57
|
-
export declare function sourceInspectorHTMLOutputHeader(): string;
|
|
58
|
-
export declare function sourceInspectorHTMLOutputTitle(title: string): string;
|
|
59
|
-
export declare function sourceInspectorHTMLOutputFooter(): string;
|
|
60
|
-
export declare function cdpClientFoundTargets(count: number): string;
|
|
61
|
-
export declare function cdpClientUsingTarget(title: string, url: string): string;
|
|
62
|
-
export declare function cdpClientTargetWebSocketUrlStored(): string;
|
|
63
|
-
export declare function cdpClientConnectionClosed(): string;
|
|
64
|
-
export declare function cdpClientMessageParseError(error: string): string;
|
|
65
|
-
export declare function cdpClientPageLoadEventFired(): string;
|
|
66
|
-
export declare function cdpClientLoadEventTimeout(): string;
|
|
67
|
-
export declare function cdpClientTestingEvaluation(): string;
|
|
68
|
-
export declare function cdpClientDocumentTitle(title: string): string;
|
|
69
|
-
export declare function cdpClientGettingMainHTML(): string;
|
|
70
|
-
export declare function cdpClientMainHTMLLength(length: number): string;
|
|
71
|
-
export declare function cdpClientFailedToGetMainHTML(): string;
|
|
72
|
-
export declare function cdpClientCheckingShadowDOM(): string;
|
|
73
|
-
export declare function cdpClientShadowDOMContentFound(found: boolean): string;
|
|
74
|
-
export declare function cdpClientShadowDOMContentLength(length: number): string;
|
|
75
|
-
export declare function cdpClientProcessingShadowDOM(): string;
|
|
76
|
-
export declare function cdpClientFinalHTMLWithShadowDOMLength(length: number): string;
|
|
77
|
-
export declare function cdpClientReturningMainHTML(): string;
|
|
78
|
-
export declare function webSocketServerInitialized(): string;
|
|
79
|
-
export declare function webSocketServerInitializationFailed(error: string): string;
|
|
80
|
-
export declare function webSocketServerPluginApplyFailed(error: string): string;
|
|
81
|
-
export declare function fileUpdated(relativePath: string, context: string): string;
|
|
82
|
-
export declare function webSocketServerNotReady(): string;
|
|
83
|
-
export declare function webSocketServerNotRunning(): string;
|
|
84
|
-
export declare function ignoringMessageFromWrongInstance(actualInstanceId: string, expectedInstanceId: string): string;
|
|
85
|
-
export declare function failedToUpdateInstanceWithExtensionId(error: string): string;
|
|
86
|
-
export declare function webSocketServerForInstanceClosed(instanceId: string): string;
|
|
87
|
-
export declare function webSocketError(error: any): string;
|
|
88
|
-
export declare function isFirstRun(browser: any): string;
|
|
89
|
-
export declare function certRequired(): string;
|
|
90
|
-
export declare function webSocketConnectionCloseError(error: unknown): string;
|
|
91
|
-
export declare function firefoxRdpClientFoundTargets(count: number): string;
|
|
92
|
-
export declare function firefoxRdpClientUsingTarget(title: string, url: string): string;
|
|
93
|
-
export declare function firefoxRdpClientConnected(host: string, port: number): string;
|
|
94
|
-
export declare function firefoxRdpClientConnectionError(error: string): string;
|
|
95
|
-
export declare function firefoxRdpClientConnectionClosed(): string;
|
|
96
|
-
export declare function firefoxRdpClientNoSuitableTargets(): string;
|
|
97
|
-
export declare function firefoxRdpClientPageLoadEventFired(): string;
|
|
98
|
-
export declare function firefoxRdpClientLoadEventTimeout(): string;
|
|
99
|
-
export declare function firefoxRdpClientTestingEvaluation(): string;
|
|
100
|
-
export declare function firefoxRdpClientDocumentTitle(title: string): string;
|
|
101
|
-
export declare function firefoxRdpClientFailedToGetMainHTML(): string;
|
|
102
|
-
export declare function firefoxRdpClientFinalHTMLLength(length: number): string;
|
|
103
|
-
export declare function emptyLine(): string;
|
|
104
|
-
export declare function runningInDevelopment(manifest: any, browser: any, message: {
|
|
105
|
-
data?: any;
|
|
106
|
-
}): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type DevOptions } from '../../develop-lib/config-types';
|
|
2
|
-
export interface PluginInterface extends PluginOptions {
|
|
3
|
-
manifestPath: string;
|
|
4
|
-
}
|
|
5
|
-
export interface PluginOptions {
|
|
6
|
-
browser?: DevOptions['browser'];
|
|
7
|
-
port?: string | number;
|
|
8
|
-
stats?: boolean;
|
|
9
|
-
autoReload?: boolean;
|
|
10
|
-
instanceId?: string;
|
|
11
|
-
source?: string;
|
|
12
|
-
watchSource?: boolean;
|
|
13
|
-
startingUrl?: string;
|
|
14
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { WebSocket } from 'ws';
|
|
2
|
-
import { Compiler } from '@rspack/core';
|
|
3
|
-
import { DevOptions } from '../../module';
|
|
4
|
-
export declare function startServer(compiler: Compiler, options: DevOptions): Promise<import("ws").Server<typeof WebSocket, typeof import("http").IncomingMessage>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { PluginInterface } from '../../reload-types';
|
|
3
|
-
export default class CreateWebSocketServer {
|
|
4
|
-
private readonly manifestPath;
|
|
5
|
-
private readonly port;
|
|
6
|
-
private readonly browser;
|
|
7
|
-
private readonly stats;
|
|
8
|
-
private readonly instanceId?;
|
|
9
|
-
private webSocketServer;
|
|
10
|
-
private isServerInitialized;
|
|
11
|
-
constructor(options: PluginInterface);
|
|
12
|
-
initializeServer(compiler: Compiler): Promise<void>;
|
|
13
|
-
apply(compiler: Compiler): void;
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type LoaderContext } from '@rspack/core';
|
|
2
|
-
interface InjectBackgroundClientContext extends LoaderContext<any> {
|
|
3
|
-
getOptions: () => {
|
|
4
|
-
manifestPath: string;
|
|
5
|
-
browser: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export default function (this: InjectBackgroundClientContext, source: string): string;
|
|
9
|
-
export {};
|
package/dist/webpack/plugin-reload/steps/setup-chromium-reload-client/minimum-chromium-file.d.ts
DELETED
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type LoaderContext } from '@rspack/core';
|
|
2
|
-
interface InjectFirefoxClientContext extends LoaderContext<any> {
|
|
3
|
-
getOptions: () => {
|
|
4
|
-
manifestPath: string;
|
|
5
|
-
browser: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export default function (this: InjectFirefoxClientContext, source: string): string;
|
|
9
|
-
export {};
|
package/dist/webpack/plugin-reload/steps/setup-firefox-reload-client/minimum-firefox-file.d.ts
DELETED
|
File without changes
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from '../../../reload-types';
|
|
3
|
-
export declare class ApplyManifestDevDefaults {
|
|
4
|
-
private readonly manifestPath?;
|
|
5
|
-
private readonly browser;
|
|
6
|
-
constructor(options: PluginInterface);
|
|
7
|
-
private generateManifestPatches;
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DevOptions } from '../../../../../module';
|
|
2
|
-
import { Manifest } from '../../../../webpack-types';
|
|
3
|
-
export default function patchBackground(manifest: Manifest, browser: DevOptions['browser']): {
|
|
4
|
-
background: {
|
|
5
|
-
scripts: string[];
|
|
6
|
-
};
|
|
7
|
-
} | {
|
|
8
|
-
background: {
|
|
9
|
-
scripts?: string[] | undefined;
|
|
10
|
-
page?: string | undefined;
|
|
11
|
-
persistent?: boolean | undefined;
|
|
12
|
-
service_worker: string;
|
|
13
|
-
type?: "module";
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Manifest } from '../../../../webpack-types';
|
|
2
|
-
export default function patchExternallyConnectable(manifest: Manifest): {
|
|
3
|
-
externally_connectable: {
|
|
4
|
-
ids: string[];
|
|
5
|
-
matches?: string[] | undefined;
|
|
6
|
-
accepts_tls_channel_id?: boolean | undefined;
|
|
7
|
-
};
|
|
8
|
-
} | {
|
|
9
|
-
externally_connectable?: undefined;
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Manifest } from '../../../../../types';
|
|
2
|
-
declare function patchWebResourcesV2(manifest: Manifest): string[];
|
|
3
|
-
declare function patchWebResourcesV3(manifest: Manifest): ((string & {
|
|
4
|
-
resources: string[];
|
|
5
|
-
matches: string[];
|
|
6
|
-
}) | {
|
|
7
|
-
resources: string[];
|
|
8
|
-
matches: string[];
|
|
9
|
-
})[];
|
|
10
|
-
export { patchWebResourcesV2, patchWebResourcesV3 };
|
package/dist/webpack/plugin-reload/steps/setup-reload-strategy/generate-manager-extension.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from '../../reload-types';
|
|
3
|
-
export declare class GenerateManagerExtension {
|
|
4
|
-
private readonly browser;
|
|
5
|
-
private readonly EXTENSION_SOURCE_DIR;
|
|
6
|
-
private readonly EXTENSION_OUTPUT_DIR;
|
|
7
|
-
private readonly EXTENSIONS_DIR;
|
|
8
|
-
private readonly port;
|
|
9
|
-
constructor(options: PluginInterface);
|
|
10
|
-
private copyRecursively;
|
|
11
|
-
private copyExtensionFiles;
|
|
12
|
-
private getPortForBrowser;
|
|
13
|
-
private updateReloadServicePort;
|
|
14
|
-
apply(compiler: Compiler): void;
|
|
15
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from '../../reload-types';
|
|
3
|
-
declare class SetupReloadStrategy {
|
|
4
|
-
private readonly manifestPath;
|
|
5
|
-
private readonly browser;
|
|
6
|
-
private readonly port;
|
|
7
|
-
constructor(options: PluginInterface);
|
|
8
|
-
apply(compiler: Compiler): void;
|
|
9
|
-
}
|
|
10
|
-
export default SetupReloadStrategy;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Compiler } from '@rspack/core';
|
|
2
|
-
import { type PluginInterface } from '../../../reload-types';
|
|
3
|
-
export declare class TargetWebExtensionPlugin {
|
|
4
|
-
private readonly manifestPath;
|
|
5
|
-
private readonly browser;
|
|
6
|
-
constructor(options: PluginInterface);
|
|
7
|
-
private handleBackground;
|
|
8
|
-
private ensureFileExists;
|
|
9
|
-
private addDefaultEntry;
|
|
10
|
-
private getEntryName;
|
|
11
|
-
private convertToWebpackCompiler;
|
|
12
|
-
apply(compiler: Compiler): void;
|
|
13
|
-
}
|
|
@@ -1,12 +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 StaticAssetsPlugin {
|
|
5
|
-
static readonly name: string;
|
|
6
|
-
readonly manifestPath: string;
|
|
7
|
-
readonly mode: DevOptions['mode'];
|
|
8
|
-
constructor(options: PluginInterface & {
|
|
9
|
-
mode: DevOptions['mode'];
|
|
10
|
-
});
|
|
11
|
-
apply(compiler: Compiler): Promise<void>;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type Configuration } from '@rspack/core';
|
|
2
|
-
import { DevOptions } from '../develop-lib/config-types';
|
|
3
|
-
import { type ProjectStructure } from '../develop-lib/get-project-path';
|
|
4
|
-
export default function webpackConfig(projectStructure: ProjectStructure, devOptions: DevOptions & {
|
|
5
|
-
preferences?: Record<string, unknown>;
|
|
6
|
-
browserFlags?: string[];
|
|
7
|
-
} & {
|
|
8
|
-
output: {
|
|
9
|
-
clean: boolean;
|
|
10
|
-
path: string;
|
|
11
|
-
};
|
|
12
|
-
} & {
|
|
13
|
-
instanceId?: string;
|
|
14
|
-
}): Configuration;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setupAutoExit(autoExitMsRaw: string | number | undefined, forceKillMsRaw: string | number | undefined, onCleanup: () => Promise<void>): () => void;
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { Stats } from '@rspack/core';
|
|
2
|
-
import { Manifest } from '../webpack-types';
|
|
3
|
-
import { DevOptions } from '../../develop-lib/config-types';
|
|
4
|
-
export declare function capitalize(browser: DevOptions['browser']): string;
|
|
5
|
-
export declare function boring(manifestName: string, duration: number, stats: Stats): string | undefined;
|
|
6
|
-
export declare function integrationNotInstalled(integration: string, packageManager: string): string;
|
|
7
|
-
export declare function envFileLoaded(): string;
|
|
8
|
-
export declare function isUsingIntegration(integration: any): string;
|
|
9
|
-
export declare function youAreAllSet(integration: string): string;
|
|
10
|
-
export declare function installingRootDependencies(integration: string): string;
|
|
11
|
-
export declare function integrationInstalledSuccessfully(integration: string): string;
|
|
12
|
-
export declare function failedToInstallIntegration(integration: string, error: unknown): string;
|
|
13
|
-
export declare function firefoxServiceWorkerError(): string;
|
|
14
|
-
export declare function insecurePolicy(): string;
|
|
15
|
-
export declare function noDefaultLocaleError(): string;
|
|
16
|
-
export declare function webAccessibleResourcesV2Type(browser: DevOptions['browser']): string;
|
|
17
|
-
export declare function webAccessibleResourcesV3Type(browser: DevOptions['browser']): string;
|
|
18
|
-
export declare function deprecatedMessage(browser: DevOptions['browser'], errorData: any): string;
|
|
19
|
-
export declare function invalidFieldType(errorData: any, browser: DevOptions['browser']): string;
|
|
20
|
-
export declare function missingRequiredMessage(browser: DevOptions['browser'], message: string | undefined): string;
|
|
21
|
-
export declare function handleMultipleAssetsError(manifestName: string, filename: string): string | undefined;
|
|
22
|
-
export declare function handleCantResolveError(manifestName: string, moduleName: string): string;
|
|
23
|
-
export declare function handleTopLevelAwaitError(manifestName: string): string;
|
|
24
|
-
export declare function fileNotFound(errorSourcePath: string | undefined, missingFilePath: string): string;
|
|
25
|
-
export declare function manifestFieldError(manifestName: string, manifestField: string, filePath: string): string;
|
|
26
|
-
export declare function entryNotFoundWarn(manifestField: string, filePath: string): string;
|
|
27
|
-
export declare function manifestInvalidError(error: NodeJS.ErrnoException): string;
|
|
28
|
-
export declare function serverRestartRequiredFromManifestError(fileAdded: string, fileRemoved: string): string;
|
|
29
|
-
export declare function resolverHtmlError(manifestName: string, filePath: string): string;
|
|
30
|
-
export declare function resolverJsError(manifestName: string, filePath: string): string;
|
|
31
|
-
export declare function resolverStaticError(manifestName: string, filePath: string): string;
|
|
32
|
-
export declare function serverRestartRequiredFromSpecialFolderError(addingOrRemoving: string, folder: string, typeOfAsset: string, pathRelative: string): string;
|
|
33
|
-
export declare function manifestNotFoundError(manifestName: string, manifestPath: string): string;
|
|
34
|
-
export declare function creatingTSConfig(): string;
|
|
35
|
-
export declare function serverIsRunning(useHttps: boolean, port: number): string;
|
|
36
|
-
export interface MessageData {
|
|
37
|
-
id: string;
|
|
38
|
-
manifest: Manifest;
|
|
39
|
-
management: chrome.management.ExtensionInfo;
|
|
40
|
-
}
|
|
41
|
-
export declare function isFirstRun(browser: DevOptions['browser']): string;
|
|
42
|
-
export declare function webSocketError(error: any): string;
|
|
43
|
-
export declare function backgroundIsRequired(backgroundChunkName: string, filePath: string): string;
|
|
44
|
-
export declare function serverRestartRequiredFromHtml(filePath: string): string;
|
|
45
|
-
export declare function javaScriptError(errorSourcePath: string, missingFilePath: string): string;
|
|
46
|
-
export declare function cssError(errorSourcePath: string, missingFilePath: string): string;
|
|
47
|
-
export declare function staticAssetError(errorSourcePath: string, missingFilePath: string): string;
|
|
48
|
-
export declare function certRequired(): string;
|
|
49
|
-
export declare function defaultPortInUse(port: number): string;
|
|
50
|
-
export declare function portInUse(requestedPort: number, newPort: number): string;
|
|
51
|
-
export declare function noExtensionIdError(): string;
|
|
52
|
-
export declare function deprecatedShadowRoot(): string;
|
|
53
|
-
export declare function isUsingCustomLoader(file: string): string;
|
|
54
|
-
export declare function webextensionPolyfillNotFound(): string;
|
|
55
|
-
export declare function registrySaved(registryPath: string): string;
|
|
56
|
-
export declare function registrySaveError(error: unknown): string;
|
|
57
|
-
export declare function smartPortAllocationExistingPorts(usedPorts: number[]): string;
|
|
58
|
-
export declare function smartPortAllocationExistingWebSocketPorts(usedWebSocketPorts: number[]): string;
|
|
59
|
-
export declare function smartPortAllocationUsingRequestedPort(port: number, webSocketPort: number): string;
|
|
60
|
-
export declare function smartPortAllocationRequestedPortUnavailable(port: number): string;
|
|
61
|
-
export declare function smartPortAllocationAllocatedPorts(port: number, webSocketPort: number): string;
|
|
62
|
-
export declare function instanceManagerCreateInstanceCalled(params: any): string;
|
|
63
|
-
export declare function instanceManagerRegistryAfterCreateInstance(registry: any): string;
|
|
64
|
-
export declare function extensionManagerInstanceInitialized(instanceId: string, webSocketPort: number): string;
|
|
65
|
-
export declare function extensionManagerCopyFilesWarning(error: unknown): string;
|
|
66
|
-
export declare function extensionManagerInstanceNotFoundWarning(instanceId: string): string;
|
|
67
|
-
export declare function extensionManagerCleanupWarning(error: unknown): string;
|
|
68
|
-
export declare function firefoxDetectedFlatpak(): string;
|
|
69
|
-
export declare function firefoxDetectedSnap(): string;
|
|
70
|
-
export declare function firefoxDetectedTraditional(firefoxPath: string): string;
|
|
71
|
-
export declare function firefoxDetectedCustom(firefoxPath: string): string;
|
|
72
|
-
export declare function firefoxUsingFlatpakWithSandbox(): string;
|
|
73
|
-
export declare function firefoxVersion(version: string): string;
|
|
74
|
-
export declare function webSocketServerNotRunning(): string;
|
|
75
|
-
export declare function webSocketConnectionCloseError(error: unknown): string;
|
|
76
|
-
export declare function portManagerErrorAllocatingPorts(error: unknown): string;
|
|
77
|
-
export declare function browserPluginFailedToLoad(browser: string, error: unknown): string;
|
|
78
|
-
export declare function sharedUtilsWarning(message: string): string;
|
|
79
|
-
export declare function extensionJsRunnerError(error: unknown): string;
|
|
80
|
-
export declare function extensionJsRunnerCleanupError(error: unknown): string;
|
|
81
|
-
export declare function extensionJsRunnerUncaughtException(error: unknown): string;
|
|
82
|
-
export declare function extensionJsRunnerUnhandledRejection(promise: Promise<any>, reason: unknown): string;
|
|
83
|
-
export declare function emptyLine(): string;
|
|
84
|
-
export declare function configLoadingError(configType: string, error: unknown): string;
|
|
85
|
-
export declare function autoExitModeEnabled(ms: number): string;
|
|
86
|
-
export declare function autoExitTriggered(ms: number): string;
|
|
87
|
-
export declare function autoExitForceKill(ms: number): string;
|
|
88
|
-
export declare function reloadClientForcingExtensionReload(timestamp: string): string;
|
|
89
|
-
export declare function reloadClientFailedToReloadExtension(error: unknown): string;
|
|
90
|
-
export declare function reloadClientBackgroundScriptLoaded(cacheBuster: string): string;
|
|
91
|
-
export declare function reloadClientBackgroundScriptStale(): string;
|
|
92
|
-
export declare function firefoxReloadClientReloadingExtension(changedFile: string): string;
|
|
93
|
-
export declare function firefoxReloadClientForcingExtensionReload(timestamp: string): string;
|
|
94
|
-
export declare function firefoxReloadClientFailedToReloadExtension(error: unknown): string;
|
|
95
|
-
export declare function firefoxReloadClientBackgroundScriptLoaded(cacheBuster: string): string;
|
|
96
|
-
export declare function firefoxReloadClientBackgroundScriptStale(): string;
|
|
97
|
-
export declare function enhancedProcessManagementStarting(browser: DevOptions['browser']): string;
|
|
98
|
-
export declare function enhancedProcessManagementCleanup(browser: DevOptions['browser']): string;
|
|
99
|
-
export declare function enhancedProcessManagementTerminating(browser: DevOptions['browser']): string;
|
|
100
|
-
export declare function enhancedProcessManagementForceKill(browser: DevOptions['browser']): string;
|
|
101
|
-
export declare function enhancedProcessManagementCleanupError(browser: DevOptions['browser'], error: unknown): string;
|
|
102
|
-
export declare function enhancedProcessManagementInstanceCleanup(browser: DevOptions['browser']): string;
|
|
103
|
-
export declare function enhancedProcessManagementInstanceCleanupComplete(browser: DevOptions['browser']): string;
|
|
104
|
-
export declare function enhancedProcessManagementSignalHandling(browser: DevOptions['browser']): string;
|
|
105
|
-
export declare function enhancedProcessManagementUncaughtException(browser: DevOptions['browser'], error: unknown): string;
|
|
106
|
-
export declare function enhancedProcessManagementUnhandledRejection(browser: DevOptions['browser'], reason: unknown): string;
|
|
107
|
-
export declare function instanceManagerHealthMonitoringStart(instanceId: string): string;
|
|
108
|
-
export declare function instanceManagerHealthMonitoringPassed(instanceId: string): string;
|
|
109
|
-
export declare function instanceManagerHealthMonitoringOrphaned(instanceId: string): string;
|
|
110
|
-
export declare function instanceManagerHealthMonitoringFailed(instanceId: string, error: unknown): string;
|
|
111
|
-
export declare function instanceManagerForceCleanupProject(projectPath: string): string;
|
|
112
|
-
export declare function instanceManagerForceCleanupFound(instanceCount: number): string;
|
|
113
|
-
export declare function instanceManagerForceCleanupInstance(instanceId: string): string;
|
|
114
|
-
export declare function instanceManagerForceCleanupTerminating(processId: number): string;
|
|
115
|
-
export declare function instanceManagerForceCleanupForceKilled(processId: number): string;
|
|
116
|
-
export declare function instanceManagerForceCleanupInstanceTerminated(instanceId: string): string;
|
|
117
|
-
export declare function instanceManagerForceCleanupError(instanceId: string, error: unknown): string;
|
|
118
|
-
export declare function instanceManagerForceCleanupComplete(): string;
|
|
119
|
-
export declare function instanceManagerProcessNoLongerRunning(instanceId: string, processId: number): string;
|
|
120
|
-
export declare function instanceManagerPortsNotInUse(instanceId: string, port: number, webSocketPort: number): string;
|
|
121
|
-
export declare function instanceManagerCleanedUpOrphanedInstance(instanceId: string): string;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { DevOptions } from '../../develop-lib/config-types';
|
|
2
|
-
import { InstanceManager, InstanceInfo } from '../plugin-browsers/browsers-lib/instance-manager';
|
|
3
|
-
export interface PortAllocation {
|
|
4
|
-
port: number;
|
|
5
|
-
webSocketPort: number;
|
|
6
|
-
instanceId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare class PortManager {
|
|
9
|
-
private readonly basePort;
|
|
10
|
-
private readonly instanceManager;
|
|
11
|
-
private currentInstance;
|
|
12
|
-
constructor(browser: DevOptions['browser'], projectPath: string, basePort?: number);
|
|
13
|
-
allocatePorts(browser: DevOptions['browser'], projectPath: string, requestedPort?: number): Promise<PortAllocation>;
|
|
14
|
-
getCurrentInstance(): InstanceInfo | null;
|
|
15
|
-
updateExtensionId(extensionId: string): Promise<void>;
|
|
16
|
-
terminateCurrentInstance(): Promise<void>;
|
|
17
|
-
getPortInfo(allocation: PortAllocation): string;
|
|
18
|
-
getInstanceManager(): InstanceManager;
|
|
19
|
-
isPortInUse(port: number): Promise<boolean>;
|
|
20
|
-
getRunningInstances(): Promise<InstanceInfo[]>;
|
|
21
|
-
getStats(): Promise<{
|
|
22
|
-
total: number;
|
|
23
|
-
running: number;
|
|
24
|
-
terminated: number;
|
|
25
|
-
error: number;
|
|
26
|
-
}>;
|
|
27
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type Compilation } from '@rspack/core';
|
|
2
|
-
import { type Manifest, type FilepathList } from '../webpack-types';
|
|
3
|
-
import { DevOptions } from '../../module';
|
|
4
|
-
export declare function getResolvedPath(context: string, filePath: string, basePath: string): string;
|
|
5
|
-
export declare function isFromFilepathList(filePath: string, filepathList?: FilepathList): boolean;
|
|
6
|
-
export declare function getFilename(feature: string, filePath: string, excludeList: FilepathList): string;
|
|
7
|
-
/**
|
|
8
|
-
* Change the path from win style to unix style
|
|
9
|
-
*/
|
|
10
|
-
export declare function unixify(filePath: string): string;
|
|
11
|
-
export declare function shouldExclude(filePath: string, ignorePatterns?: FilepathList): boolean;
|
|
12
|
-
export declare function getManifestContent(compilation: Compilation, manifestPath: string): Manifest;
|
|
13
|
-
export declare function getRelativePath(from: string, to: string): string;
|
|
14
|
-
export declare function isFromPnpx(): false | "pnpm";
|
|
15
|
-
export declare function isFromNpx(): false | "npm";
|
|
16
|
-
export declare function installOptionalDependencies(integration: string, dependencies: string[]): Promise<void>;
|
|
17
|
-
export declare function isUsingJSFramework(projectPath: string): boolean;
|
|
18
|
-
export declare function isFirstRun(outputPath: string, browser: DevOptions['browser']): boolean;
|
|
19
|
-
export declare function hasShownFirstRunMessage(projectPath: string, browser: DevOptions['browser']): boolean;
|
|
20
|
-
export declare function markFirstRunMessageShown(projectPath: string, browser: DevOptions['browser']): void;
|
|
21
|
-
export declare function shouldShowFirstRun(outputPath: string, browser: DevOptions['browser'], projectPath: string): boolean;
|
|
22
|
-
export declare function filterKeysForThisBrowser(manifest: Manifest, browser: DevOptions['browser']): any;
|
|
23
|
-
export declare function hasDependency(projectPath: string, dependency: string): boolean;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { type RspackPluginInstance, type LoaderContext as RspackLoaderContext } from '@rspack/core';
|
|
2
|
-
import { type DevOptions } from '../develop-lib/config-types';
|
|
3
|
-
export type ChromeManifest = Partial<chrome.runtime.ManifestV2> & Partial<chrome.runtime.ManifestV3> & {
|
|
4
|
-
browser_action?: {
|
|
5
|
-
theme_icons?: ThemeIcon[];
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export type Manifest = ChromeManifest;
|
|
9
|
-
export interface ThemeIcon {
|
|
10
|
-
light: string;
|
|
11
|
-
dark: string;
|
|
12
|
-
size?: number;
|
|
13
|
-
}
|
|
14
|
-
export type PluginInterface = {
|
|
15
|
-
manifestPath: string;
|
|
16
|
-
browser?: DevOptions['browser'];
|
|
17
|
-
includeList?: FilepathList;
|
|
18
|
-
excludeList?: FilepathList;
|
|
19
|
-
};
|
|
20
|
-
export interface LoaderInterface extends RspackLoaderContext<LoaderInterface> {
|
|
21
|
-
manifestPath: string;
|
|
22
|
-
includeList?: FilepathList;
|
|
23
|
-
excludeList?: FilepathList;
|
|
24
|
-
}
|
|
25
|
-
export type FilepathList = Record<string, string | string[] | undefined>;
|
|
26
|
-
export type ResourceType = 'script' | 'css' | 'html' | 'static' | 'staticSrc' | 'staticHref' | 'empty';
|
|
27
|
-
export type HtmlFilepathList = Record<string, {
|
|
28
|
-
html: string;
|
|
29
|
-
js: string[];
|
|
30
|
-
css: string[];
|
|
31
|
-
static: string[];
|
|
32
|
-
} | undefined>;
|
|
33
|
-
export interface LoaderContext {
|
|
34
|
-
resourcePath: string;
|
|
35
|
-
emitFile: (name: string, content: string) => void;
|
|
36
|
-
getOptions: () => {
|
|
37
|
-
test: string;
|
|
38
|
-
manifestPath: string;
|
|
39
|
-
browser?: DevOptions['browser'];
|
|
40
|
-
includeList?: FilepathList;
|
|
41
|
-
excludeList?: FilepathList;
|
|
42
|
-
mode: string;
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
export interface JsFramework {
|
|
46
|
-
plugins: RspackPluginInstance[] | undefined;
|
|
47
|
-
loaders: Record<string, any>[] | undefined;
|
|
48
|
-
alias: Record<string, string> | undefined;
|
|
49
|
-
}
|