create-packer 1.47.2 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/{index.js → src/index.js} +0 -0
- package/package.json +3 -3
- package/template/docusaurus/package.json +1 -1
- package/template/electron-react/eslint.config.mjs +2 -1
- package/template/electron-react/package.json +97 -97
- package/template/electron-react/tsconfig.json +4 -11
- package/template/electron-vue/eslint.config.mjs +2 -1
- package/template/electron-vue/package.json +87 -87
- package/template/electron-vue/tsconfig.json +10 -8
- package/template/lib/workspace/eslint.config.mjs +2 -1
- package/template/lib/workspace/package.json +3 -3
- package/template/lib/workspace/packages/react/package.json +2 -2
- package/template/lib/workspace/packages/ts/package.json +3 -3
- package/template/web-app/react-rsbuild/eslint.config.js +2 -1
- package/template/web-app/react-rsbuild/package.json +79 -79
- package/template/web-app/react-rsbuild/rsbuild.config.ts +9 -11
- package/template/web-app/react-rsbuild/{domain → src}/components/app-context.tsx +1 -1
- package/template/web-app/{react-vite/domain → react-rsbuild/src}/components/app.tsx +2 -2
- package/template/web-app/react-rsbuild/{shared → src}/components/index.ts +1 -0
- package/template/web-app/{react-vite/shared → react-rsbuild/src}/hooks/useLazyRender.ts +1 -1
- package/template/web-app/{react-vite → react-rsbuild/src}/main.tsx +2 -2
- package/template/web-app/{react-vite → react-rsbuild/src}/pages/home/view.tsx +1 -1
- package/template/web-app/react-rsbuild/{pages → src/pages}/index.tsx +1 -1
- package/template/web-app/{react-vite/domain → react-rsbuild/src}/router/components/route-layout.tsx +2 -1
- package/template/web-app/react-rsbuild/{domain → src}/router/components/sub-route-outlet.tsx +2 -1
- package/template/web-app/react-rsbuild/{domain → src}/router/router.tsx +1 -1
- package/template/web-app/react-rsbuild/src/router/router.types.ts +3 -0
- package/template/web-app/react-rsbuild/tsconfig.json +5 -10
- package/template/web-app/react-vite/eslint.config.js +2 -1
- package/template/web-app/react-vite/index.html +2 -2
- package/template/web-app/react-vite/package.json +78 -78
- package/template/web-app/react-vite/scripts/createCodeSplitting.ts +30 -0
- package/template/web-app/react-vite/scripts/index.ts +1 -1
- package/template/web-app/react-vite/{domain → src}/components/app-context.tsx +1 -1
- package/template/web-app/{react-rsbuild/domain → react-vite/src}/components/app.tsx +3 -3
- package/template/web-app/react-vite/{shared → src}/components/index.ts +1 -0
- package/template/web-app/{react-rsbuild → react-vite/src}/main.tsx +2 -2
- package/template/web-app/react-vite/{pages → src/pages}/home/view.mock.ts +1 -1
- package/template/web-app/{react-rsbuild → react-vite/src}/pages/home/view.tsx +1 -1
- package/template/web-app/react-vite/{pages → src/pages}/index.tsx +1 -1
- package/template/web-app/{react-rsbuild/domain → react-vite/src}/router/components/route-layout.tsx +1 -1
- package/template/web-app/react-vite/{domain → src}/router/components/sub-route-outlet.tsx +1 -1
- package/template/web-app/react-vite/{domain → src}/router/router.tsx +1 -1
- package/template/web-app/react-vite/src/router/router.types.ts +3 -0
- package/template/web-app/react-vite/tsconfig.json +2 -8
- package/template/web-app/react-vite/tsconfig.node.json +2 -2
- package/template/web-app/react-vite/vite.config.ts +11 -9
- package/template/web-app/vue/eslint.config.js +2 -1
- package/template/web-app/vue/index.html +2 -2
- package/template/web-app/vue/package.json +72 -72
- package/template/web-app/vue/scripts/createCodeSplitting.ts +30 -0
- package/template/web-app/vue/scripts/index.ts +1 -1
- package/template/web-app/{vue-rsbuild/domain → vue/src}/components/app.vue +1 -1
- package/template/web-app/vue/src/main.css +1 -0
- package/template/web-app/vue/{main.ts → src/main.ts} +3 -3
- package/template/web-app/vue/{pages → src/pages}/home/view.mock.ts +1 -1
- package/template/web-app/vue/{pages → src/pages}/home/view.vue +1 -1
- package/template/web-app/vue/tsconfig.json +10 -7
- package/template/web-app/vue/tsconfig.node.json +2 -2
- package/template/web-app/vue/vite.config.ts +11 -6
- package/template/web-app/vue-rsbuild/eslint.config.js +1 -0
- package/template/web-app/vue-rsbuild/package.json +77 -77
- package/template/web-app/vue-rsbuild/rsbuild.config.ts +8 -11
- package/template/web-app/vue-rsbuild/scripts/index.ts +1 -1
- package/template/web-app/{vue/domain → vue-rsbuild/src}/components/app.vue +1 -1
- package/template/web-app/vue-rsbuild/{main.ts → src/main.ts} +3 -3
- package/template/web-app/vue-rsbuild/{pages → src/pages}/home/view.vue +1 -1
- package/template/web-app/vue-rsbuild/tsconfig.json +10 -8
- package/template/web-extension/.wxt/eslint-auto-imports.mjs +57 -56
- package/template/web-extension/.wxt/tsconfig.json +27 -27
- package/template/web-extension/.wxt/types/globals.d.ts +15 -15
- package/template/web-extension/.wxt/types/i18n.d.ts +81 -81
- package/template/web-extension/.wxt/types/imports-module.d.ts +20 -20
- package/template/web-extension/.wxt/types/imports.d.ts +51 -50
- package/template/web-extension/.wxt/types/paths.d.ts +17 -17
- package/template/web-extension/.wxt/wxt.d.ts +7 -7
- package/template/web-extension/entrypoints/content/domain/app/tools/insertApp.tsx +1 -3
- package/template/web-extension/entrypoints/content/index.tsx +0 -1
- package/template/web-extension/entrypoints/content/modules/common/common.tsx +7 -1
- package/template/web-extension/entrypoints/content/modules/common/view.styled.ts +10 -0
- package/template/web-extension/entrypoints/popup/main.tsx +0 -1
- package/template/web-extension/entrypoints/popup/popup.styled.ts +5 -0
- package/template/web-extension/entrypoints/popup/popup.tsx +3 -1
- package/template/web-extension/eslint.config.js +2 -1
- package/template/web-extension/package.json +85 -85
- package/template/web-extension/shared/components/app-context/view.tsx +8 -2
- package/template/web-extension/shared/styles/theme.ts +55 -0
- package/template/web-extension/tsconfig.json +0 -2
- package/template/web-extension/vite-env.d.ts +15 -6
- package/template/web-extension/wxt.config.ts +28 -10
- package/template/electron-react/tsconfig.node.json +0 -10
- package/template/electron-vue/tsconfig.node.json +0 -10
- package/template/web-app/react-rsbuild/domain/components/index.ts +0 -1
- package/template/web-app/react-rsbuild/domain/router/router.types.ts +0 -3
- package/template/web-app/react-rsbuild/tsconfig.node.json +0 -10
- package/template/web-app/react-vite/domain/components/index.ts +0 -1
- package/template/web-app/react-vite/domain/router/router.types.ts +0 -3
- package/template/web-app/react-vite/scripts/createChunks.ts +0 -27
- package/template/web-app/vue/scripts/createChunks.ts +0 -27
- package/template/web-app/vue/shared/constant/index.ts +0 -0
- package/template/web-app/vue/shared/tools/index.ts +0 -0
- package/template/web-app/vue-rsbuild/tsconfig.node.json +0 -10
- package/template/web-extension/shared/styles/theme.css +0 -4
- /package/bin/{createTemp.d.ts → src/createTemp.d.ts} +0 -0
- /package/bin/{createTemp.js → src/createTemp.js} +0 -0
- /package/bin/{index.d.ts → src/index.d.ts} +0 -0
- /package/bin/{utils → src/utils}/index.d.ts +0 -0
- /package/bin/{utils → src/utils}/index.js +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/assets/react.svg +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/components/componentInstance.tsx +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/constant/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/defineRouter/defineRouter.types.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/defineRouter/deineRouter.tsx +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/defineRouter/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/useDebounceFn.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/useInterval.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/useLowPriorityState.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/useSyncState.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/hooks/useVisible.ts +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/models/app.ts +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/models/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{pages → src/pages}/home/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{pages → src/pages}/home/view.module.css +0 -0
- /package/template/web-app/react-rsbuild/{pages → src/pages}/not-found.tsx +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/router/components/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/router/home/ids.ts +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/router/home/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/router/home/routes.tsx +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/router/ids.ts +0 -0
- /package/template/web-app/react-rsbuild/{domain → src}/router/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/service/api.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/service/home.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/service/index.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/service/request.ts +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/styles/theme.css +0 -0
- /package/template/web-app/react-rsbuild/{shared → src}/tools/index.ts +0 -0
- /package/template/web-app/react-vite/{shared/assets/react.svg → src/assets/favicon.svg} +0 -0
- /package/template/web-app/react-vite/{shared → src}/components/componentInstance.tsx +0 -0
- /package/template/web-app/react-vite/{shared → src}/constant/index.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/defineRouter/defineRouter.types.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/defineRouter/deineRouter.tsx +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/defineRouter/index.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/index.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/useDebounceFn.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/useInterval.ts +0 -0
- /package/template/web-app/{react-rsbuild/shared → react-vite/src}/hooks/useLazyRender.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/useLowPriorityState.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/useSyncState.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/hooks/useVisible.ts +0 -0
- /package/template/web-app/react-vite/{mockUtils.ts → src/mockUtils.ts} +0 -0
- /package/template/web-app/react-vite/{domain → src}/models/app.ts +0 -0
- /package/template/web-app/react-vite/{domain → src}/models/index.ts +0 -0
- /package/template/web-app/react-vite/{pages → src/pages}/home/index.ts +0 -0
- /package/template/web-app/react-vite/{pages → src/pages}/home/view.module.css +0 -0
- /package/template/web-app/react-vite/{pages → src/pages}/not-found.tsx +0 -0
- /package/template/web-app/react-vite/{domain → src}/router/components/index.ts +0 -0
- /package/template/web-app/react-vite/{domain → src}/router/home/ids.ts +0 -0
- /package/template/web-app/react-vite/{domain → src}/router/home/index.ts +0 -0
- /package/template/web-app/react-vite/{domain → src}/router/home/routes.tsx +0 -0
- /package/template/web-app/react-vite/{domain → src}/router/ids.ts +0 -0
- /package/template/web-app/react-vite/{domain → src}/router/index.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/service/api.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/service/home.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/service/index.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/service/request.ts +0 -0
- /package/template/web-app/react-vite/{shared → src}/styles/theme.css +0 -0
- /package/template/web-app/react-vite/{shared → src}/tools/index.ts +0 -0
- /package/template/web-app/vue/{shared/assets/vue.svg → src/assets/favicon.svg} +0 -0
- /package/template/web-app/vue/{domain → src}/components/createComponentInstance.ts +0 -0
- /package/template/web-app/vue/{domain → src}/components/index.ts +0 -0
- /package/template/web-app/{vue-rsbuild/shared/tools → vue/src/constant}/index.ts +0 -0
- /package/template/web-app/vue/{shared → src}/hooks/index.ts +0 -0
- /package/template/web-app/vue/{shared → src}/hooks/useList.ts +0 -0
- /package/template/web-app/vue/{shared → src}/hooks/useVisible.ts +0 -0
- /package/template/web-app/vue/{mockUtils.ts → src/mockUtils.ts} +0 -0
- /package/template/web-app/vue/{pages → src/pages}/home/index.ts +0 -0
- /package/template/web-app/vue/{pages → src/pages}/index.ts +0 -0
- /package/template/web-app/vue/{pages → src/pages}/index.vue +0 -0
- /package/template/web-app/vue/{pages → src/pages}/not-found.vue +0 -0
- /package/template/web-app/vue/{domain → src}/router/home/index.ts +0 -0
- /package/template/web-app/vue/{domain → src}/router/home/names.ts +0 -0
- /package/template/web-app/vue/{domain → src}/router/home/routes.ts +0 -0
- /package/template/web-app/vue/{domain → src}/router/index.ts +0 -0
- /package/template/web-app/vue/{domain → src}/router/names.ts +0 -0
- /package/template/web-app/vue/{shared → src}/service/api.ts +0 -0
- /package/template/web-app/vue/{shared → src}/service/home.ts +0 -0
- /package/template/web-app/vue/{shared → src}/service/index.ts +0 -0
- /package/template/web-app/vue/{shared → src}/service/request.ts +0 -0
- /package/template/web-app/vue/{shared → src}/styles/theme.css +0 -0
- /package/template/web-app/vue/{shared/components → src/tools}/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/assets/vue.svg +0 -0
- /package/template/web-app/vue-rsbuild/{domain → src}/components/createComponentInstance.ts +0 -0
- /package/template/web-app/vue-rsbuild/{domain → src}/components/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared/components → src/constant}/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/hooks/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/hooks/useList.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/hooks/useVisible.ts +0 -0
- /package/template/web-app/vue-rsbuild/{pages → src/pages}/home/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{pages → src/pages}/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{pages → src/pages}/index.vue +0 -0
- /package/template/web-app/vue-rsbuild/{pages → src/pages}/not-found.vue +0 -0
- /package/template/web-app/vue-rsbuild/{domain → src}/router/home/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{domain → src}/router/home/names.ts +0 -0
- /package/template/web-app/vue-rsbuild/{domain → src}/router/home/routes.ts +0 -0
- /package/template/web-app/vue-rsbuild/{domain → src}/router/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{domain → src}/router/names.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/service/api.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/service/home.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/service/index.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/service/request.ts +0 -0
- /package/template/web-app/vue-rsbuild/{shared → src}/styles/theme.css +0 -0
- /package/template/web-app/vue-rsbuild/{shared/constant → src/tools}/index.ts +0 -0
|
@@ -4,7 +4,7 @@ import { pluginEslint } from '@rsbuild/plugin-eslint'
|
|
|
4
4
|
import StylelintWebpackPlugin from 'stylelint-webpack-plugin'
|
|
5
5
|
import { pluginTypeCheck } from '@rsbuild/plugin-type-check'
|
|
6
6
|
import { RsdoctorRspackPlugin } from '@rsdoctor/rspack-plugin'
|
|
7
|
-
import { createChunks } from './scripts'
|
|
7
|
+
import { createChunks } from './scripts/index.js'
|
|
8
8
|
|
|
9
9
|
export default defineConfig(({ envMode, command }) => {
|
|
10
10
|
const { parsed: env } = loadEnv()
|
|
@@ -12,11 +12,11 @@ export default defineConfig(({ envMode, command }) => {
|
|
|
12
12
|
html: {
|
|
13
13
|
template: './index.html',
|
|
14
14
|
title: 'Rsbuild + Vue + TS',
|
|
15
|
-
favicon: './
|
|
15
|
+
favicon: './src/assets/vue.svg'
|
|
16
16
|
},
|
|
17
17
|
source: {
|
|
18
18
|
entry: {
|
|
19
|
-
index: './main.ts'
|
|
19
|
+
index: './src/main.ts'
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
resolve: {
|
|
@@ -53,22 +53,19 @@ export default defineConfig(({ envMode, command }) => {
|
|
|
53
53
|
],
|
|
54
54
|
performance: {
|
|
55
55
|
removeConsole: command === 'build' ? ['log'] : false,
|
|
56
|
-
chunkSplit: {
|
|
57
|
-
strategy: 'custom',
|
|
58
|
-
splitChunks: {
|
|
59
|
-
minChunks: 1,
|
|
60
|
-
cacheGroups: createChunks([{ libs: ['vue', 'vue-router'], name: 'vue' }])
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
56
|
bundleAnalyze: envMode === 'analyse' ? { openAnalyzer: true } : void 0
|
|
64
57
|
},
|
|
58
|
+
splitChunks: {
|
|
59
|
+
minChunks: 1,
|
|
60
|
+
cacheGroups: createChunks([{ libs: ['vue', 'vue-router'], name: 'vue' }])
|
|
61
|
+
},
|
|
65
62
|
server: {
|
|
66
63
|
base: env.PUBLIC_BASE_URL,
|
|
67
64
|
host: '0.0.0.0',
|
|
68
65
|
compress: false,
|
|
69
66
|
proxy: [
|
|
70
67
|
{
|
|
71
|
-
|
|
68
|
+
pathFilter: [env.PUBLIC_API_HOST],
|
|
72
69
|
target: 'http://127.0.0.1:3000'
|
|
73
70
|
}
|
|
74
71
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './createChunks'
|
|
1
|
+
export * from './createChunks.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createApp } from 'vue'
|
|
2
2
|
import { createPinia } from 'pinia'
|
|
3
|
-
import { router } from '@/
|
|
4
|
-
import { App } from '@/
|
|
5
|
-
import './
|
|
3
|
+
import { router } from '@/router'
|
|
4
|
+
import { App } from '@/components'
|
|
5
|
+
import './styles/theme.css'
|
|
6
6
|
|
|
7
7
|
createApp(App).use(createPinia()).use(router).mount('#app')
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
3
|
"target": "ESNext",
|
|
5
4
|
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
6
|
+
"allowJs": false,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"allowSyntheticDefaultImports": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"forceConsistentCasingInFileNames": true,
|
|
11
|
+
"strictPropertyInitialization": false,
|
|
12
|
+
"strictNullChecks": true,
|
|
6
13
|
"module": "ESNext",
|
|
7
14
|
"moduleResolution": "bundler",
|
|
8
|
-
"strict": true,
|
|
9
15
|
"jsx": "preserve",
|
|
10
16
|
"jsxImportSource": "vue",
|
|
11
17
|
"sourceMap": true,
|
|
12
18
|
"resolveJsonModule": true,
|
|
13
19
|
"isolatedModules": true,
|
|
14
|
-
"strictPropertyInitialization": false,
|
|
15
20
|
"esModuleInterop": true,
|
|
16
|
-
"lib": ["ESNext", "DOM"],
|
|
17
|
-
"skipLibCheck": true,
|
|
18
21
|
"paths": {
|
|
19
|
-
"@/*": ["
|
|
22
|
+
"@/*": ["./src/*"]
|
|
20
23
|
}
|
|
21
24
|
},
|
|
22
25
|
"include": ["**/*.tsx", "**/*.ts", "**/*.vue"],
|
|
23
|
-
"exclude": ["scripts", "rsbuild.config.ts"]
|
|
24
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
26
|
+
"exclude": ["scripts", "rsbuild.config.ts"]
|
|
25
27
|
}
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
const globals = {
|
|
2
|
-
"AutoMount": true,
|
|
3
|
-
"AutoMountOptions": true,
|
|
4
|
-
"Browser": true,
|
|
5
|
-
"ContentScriptAnchoredOptions": true,
|
|
6
|
-
"ContentScriptAppendMode": true,
|
|
7
|
-
"ContentScriptContext": true,
|
|
8
|
-
"ContentScriptInlinePositioningOptions": true,
|
|
9
|
-
"ContentScriptModalPositioningOptions": true,
|
|
10
|
-
"ContentScriptOverlayAlignment": true,
|
|
11
|
-
"ContentScriptOverlayPositioningOptions": true,
|
|
12
|
-
"ContentScriptPositioningOptions": true,
|
|
13
|
-
"ContentScriptUi": true,
|
|
14
|
-
"ContentScriptUiOptions": true,
|
|
15
|
-
"IframeContentScriptUi": true,
|
|
16
|
-
"IframeContentScriptUiOptions": true,
|
|
17
|
-
"InjectScriptOptions": true,
|
|
18
|
-
"IntegratedContentScriptUi": true,
|
|
19
|
-
"IntegratedContentScriptUiOptions": true,
|
|
20
|
-
"InvalidMatchPattern": true,
|
|
21
|
-
"MatchPattern": true,
|
|
22
|
-
"MigrationError": true,
|
|
23
|
-
"ScriptPublicPath": true,
|
|
24
|
-
"ShadowRootContentScriptUi": true,
|
|
25
|
-
"ShadowRootContentScriptUiOptions": true,
|
|
26
|
-
"StopAutoMount": true,
|
|
27
|
-
"StorageArea": true,
|
|
28
|
-
"StorageAreaChanges": true,
|
|
29
|
-
"StorageItemKey": true,
|
|
30
|
-
"WxtAppConfig": true,
|
|
31
|
-
"WxtStorage": true,
|
|
32
|
-
"WxtStorageItem": true,
|
|
33
|
-
"WxtWindowEventMap": true,
|
|
34
|
-
"browser": true,
|
|
35
|
-
"createIframeUi": true,
|
|
36
|
-
"createIntegratedUi": true,
|
|
37
|
-
"createShadowRootUi": true,
|
|
38
|
-
"defineAppConfig": true,
|
|
39
|
-
"defineBackground": true,
|
|
40
|
-
"defineContentScript": true,
|
|
41
|
-
"defineUnlistedScript": true,
|
|
42
|
-
"defineWxtPlugin": true,
|
|
43
|
-
"fakeBrowser": true,
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
1
|
+
const globals = {
|
|
2
|
+
"AutoMount": true,
|
|
3
|
+
"AutoMountOptions": true,
|
|
4
|
+
"Browser": true,
|
|
5
|
+
"ContentScriptAnchoredOptions": true,
|
|
6
|
+
"ContentScriptAppendMode": true,
|
|
7
|
+
"ContentScriptContext": true,
|
|
8
|
+
"ContentScriptInlinePositioningOptions": true,
|
|
9
|
+
"ContentScriptModalPositioningOptions": true,
|
|
10
|
+
"ContentScriptOverlayAlignment": true,
|
|
11
|
+
"ContentScriptOverlayPositioningOptions": true,
|
|
12
|
+
"ContentScriptPositioningOptions": true,
|
|
13
|
+
"ContentScriptUi": true,
|
|
14
|
+
"ContentScriptUiOptions": true,
|
|
15
|
+
"IframeContentScriptUi": true,
|
|
16
|
+
"IframeContentScriptUiOptions": true,
|
|
17
|
+
"InjectScriptOptions": true,
|
|
18
|
+
"IntegratedContentScriptUi": true,
|
|
19
|
+
"IntegratedContentScriptUiOptions": true,
|
|
20
|
+
"InvalidMatchPattern": true,
|
|
21
|
+
"MatchPattern": true,
|
|
22
|
+
"MigrationError": true,
|
|
23
|
+
"ScriptPublicPath": true,
|
|
24
|
+
"ShadowRootContentScriptUi": true,
|
|
25
|
+
"ShadowRootContentScriptUiOptions": true,
|
|
26
|
+
"StopAutoMount": true,
|
|
27
|
+
"StorageArea": true,
|
|
28
|
+
"StorageAreaChanges": true,
|
|
29
|
+
"StorageItemKey": true,
|
|
30
|
+
"WxtAppConfig": true,
|
|
31
|
+
"WxtStorage": true,
|
|
32
|
+
"WxtStorageItem": true,
|
|
33
|
+
"WxtWindowEventMap": true,
|
|
34
|
+
"browser": true,
|
|
35
|
+
"createIframeUi": true,
|
|
36
|
+
"createIntegratedUi": true,
|
|
37
|
+
"createShadowRootUi": true,
|
|
38
|
+
"defineAppConfig": true,
|
|
39
|
+
"defineBackground": true,
|
|
40
|
+
"defineContentScript": true,
|
|
41
|
+
"defineUnlistedScript": true,
|
|
42
|
+
"defineWxtPlugin": true,
|
|
43
|
+
"fakeBrowser": true,
|
|
44
|
+
"getAppConfig": true,
|
|
45
|
+
"injectScript": true,
|
|
46
|
+
"storage": true,
|
|
47
|
+
"useAppConfig": true
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
name: "wxt/auto-imports",
|
|
52
|
+
languageOptions: {
|
|
53
|
+
globals,
|
|
54
|
+
/** @type {import('eslint').Linter.SourceType} */
|
|
55
|
+
sourceType: "module",
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "Bundler",
|
|
6
|
-
"noEmit": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"resolveJsonModule": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"skipLibCheck": true,
|
|
12
|
-
"paths": {
|
|
13
|
-
"@": [".."],
|
|
14
|
-
"@/*": ["../*"],
|
|
15
|
-
"~": [".."],
|
|
16
|
-
"~/*": ["../*"],
|
|
17
|
-
"@@": [".."],
|
|
18
|
-
"@@/*": ["../*"],
|
|
19
|
-
"~~": [".."],
|
|
20
|
-
"~~/*": ["../*"]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"include": [
|
|
24
|
-
"../**/*",
|
|
25
|
-
"./wxt.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"exclude": ["../dist"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Bundler",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"forceConsistentCasingInFileNames": true,
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"paths": {
|
|
13
|
+
"@": [".."],
|
|
14
|
+
"@/*": ["../*"],
|
|
15
|
+
"~": [".."],
|
|
16
|
+
"~/*": ["../*"],
|
|
17
|
+
"@@": [".."],
|
|
18
|
+
"@@/*": ["../*"],
|
|
19
|
+
"~~": [".."],
|
|
20
|
+
"~~/*": ["../*"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"include": [
|
|
24
|
+
"../**/*",
|
|
25
|
+
"./wxt.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"exclude": ["../dist"]
|
|
28
28
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
// Generated by wxt
|
|
2
|
-
interface ImportMetaEnv {
|
|
3
|
-
readonly MANIFEST_VERSION: 2 | 3;
|
|
4
|
-
readonly BROWSER: string;
|
|
5
|
-
readonly CHROME: boolean;
|
|
6
|
-
readonly FIREFOX: boolean;
|
|
7
|
-
readonly SAFARI: boolean;
|
|
8
|
-
readonly EDGE: boolean;
|
|
9
|
-
readonly OPERA: boolean;
|
|
10
|
-
readonly COMMAND: "build" | "serve";
|
|
11
|
-
readonly ENTRYPOINT: string;
|
|
12
|
-
}
|
|
13
|
-
interface ImportMeta {
|
|
14
|
-
readonly env: ImportMetaEnv
|
|
15
|
-
}
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
interface ImportMetaEnv {
|
|
3
|
+
readonly MANIFEST_VERSION: 2 | 3;
|
|
4
|
+
readonly BROWSER: string;
|
|
5
|
+
readonly CHROME: boolean;
|
|
6
|
+
readonly FIREFOX: boolean;
|
|
7
|
+
readonly SAFARI: boolean;
|
|
8
|
+
readonly EDGE: boolean;
|
|
9
|
+
readonly OPERA: boolean;
|
|
10
|
+
readonly COMMAND: "build" | "serve";
|
|
11
|
+
readonly ENTRYPOINT: string;
|
|
12
|
+
}
|
|
13
|
+
interface ImportMeta {
|
|
14
|
+
readonly env: ImportMetaEnv
|
|
15
|
+
}
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
// Generated by wxt
|
|
2
|
-
import "wxt/browser";
|
|
3
|
-
|
|
4
|
-
declare module "wxt/browser" {
|
|
5
|
-
/**
|
|
6
|
-
* See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
|
|
7
|
-
*/
|
|
8
|
-
interface GetMessageOptions {
|
|
9
|
-
/**
|
|
10
|
-
* See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
|
|
11
|
-
*/
|
|
12
|
-
escapeLt?: boolean
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface WxtI18n extends I18n.Static {
|
|
16
|
-
/**
|
|
17
|
-
* The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even unlocalized extensions can use this message.
|
|
18
|
-
* Note: You can't use this message in a manifest file.
|
|
19
|
-
*
|
|
20
|
-
* "<browser.runtime.id>"
|
|
21
|
-
*/
|
|
22
|
-
getMessage(
|
|
23
|
-
messageName: "@@extension_id",
|
|
24
|
-
substitutions?: string | string[],
|
|
25
|
-
options?: GetMessageOptions,
|
|
26
|
-
): string;
|
|
27
|
-
/**
|
|
28
|
-
* "<browser.i18n.getUiLocale()>"
|
|
29
|
-
*/
|
|
30
|
-
getMessage(
|
|
31
|
-
messageName: "@@ui_locale",
|
|
32
|
-
substitutions?: string | string[],
|
|
33
|
-
options?: GetMessageOptions,
|
|
34
|
-
): string;
|
|
35
|
-
/**
|
|
36
|
-
* The text direction for the current locale, either "ltr" for left-to-right languages such as English or "rtl" for right-to-left languages such as Japanese.
|
|
37
|
-
*
|
|
38
|
-
* "<ltr|rtl>"
|
|
39
|
-
*/
|
|
40
|
-
getMessage(
|
|
41
|
-
messageName: "@@bidi_dir",
|
|
42
|
-
substitutions?: string | string[],
|
|
43
|
-
options?: GetMessageOptions,
|
|
44
|
-
): string;
|
|
45
|
-
/**
|
|
46
|
-
* If the @@bidi_dir is "ltr", then this is "rtl"; otherwise, it's "ltr".
|
|
47
|
-
*
|
|
48
|
-
* "<rtl|ltr>"
|
|
49
|
-
*/
|
|
50
|
-
getMessage(
|
|
51
|
-
messageName: "@@bidi_reversed_dir",
|
|
52
|
-
substitutions?: string | string[],
|
|
53
|
-
options?: GetMessageOptions,
|
|
54
|
-
): string;
|
|
55
|
-
/**
|
|
56
|
-
* If the @@bidi_dir is "ltr", then this is "left"; otherwise, it's "right".
|
|
57
|
-
*
|
|
58
|
-
* "<left|right>"
|
|
59
|
-
*/
|
|
60
|
-
getMessage(
|
|
61
|
-
messageName: "@@bidi_start_edge",
|
|
62
|
-
substitutions?: string | string[],
|
|
63
|
-
options?: GetMessageOptions,
|
|
64
|
-
): string;
|
|
65
|
-
/**
|
|
66
|
-
* If the @@bidi_dir is "ltr", then this is "right"; otherwise, it's "left".
|
|
67
|
-
*
|
|
68
|
-
* "<right|left>"
|
|
69
|
-
*/
|
|
70
|
-
getMessage(
|
|
71
|
-
messageName: "@@bidi_end_edge",
|
|
72
|
-
substitutions?: string | string[],
|
|
73
|
-
options?: GetMessageOptions,
|
|
74
|
-
): string;
|
|
75
|
-
getMessage(
|
|
76
|
-
messageName: "@@extension_id" | "@@ui_locale" | "@@bidi_dir" | "@@bidi_reversed_dir" | "@@bidi_start_edge" | "@@bidi_end_edge",
|
|
77
|
-
substitutions?: string | string[],
|
|
78
|
-
options?: GetMessageOptions,
|
|
79
|
-
): string;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
import "wxt/browser";
|
|
3
|
+
|
|
4
|
+
declare module "wxt/browser" {
|
|
5
|
+
/**
|
|
6
|
+
* See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
|
|
7
|
+
*/
|
|
8
|
+
interface GetMessageOptions {
|
|
9
|
+
/**
|
|
10
|
+
* See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
|
|
11
|
+
*/
|
|
12
|
+
escapeLt?: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface WxtI18n extends I18n.Static {
|
|
16
|
+
/**
|
|
17
|
+
* The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even unlocalized extensions can use this message.
|
|
18
|
+
* Note: You can't use this message in a manifest file.
|
|
19
|
+
*
|
|
20
|
+
* "<browser.runtime.id>"
|
|
21
|
+
*/
|
|
22
|
+
getMessage(
|
|
23
|
+
messageName: "@@extension_id",
|
|
24
|
+
substitutions?: string | string[],
|
|
25
|
+
options?: GetMessageOptions,
|
|
26
|
+
): string;
|
|
27
|
+
/**
|
|
28
|
+
* "<browser.i18n.getUiLocale()>"
|
|
29
|
+
*/
|
|
30
|
+
getMessage(
|
|
31
|
+
messageName: "@@ui_locale",
|
|
32
|
+
substitutions?: string | string[],
|
|
33
|
+
options?: GetMessageOptions,
|
|
34
|
+
): string;
|
|
35
|
+
/**
|
|
36
|
+
* The text direction for the current locale, either "ltr" for left-to-right languages such as English or "rtl" for right-to-left languages such as Japanese.
|
|
37
|
+
*
|
|
38
|
+
* "<ltr|rtl>"
|
|
39
|
+
*/
|
|
40
|
+
getMessage(
|
|
41
|
+
messageName: "@@bidi_dir",
|
|
42
|
+
substitutions?: string | string[],
|
|
43
|
+
options?: GetMessageOptions,
|
|
44
|
+
): string;
|
|
45
|
+
/**
|
|
46
|
+
* If the @@bidi_dir is "ltr", then this is "rtl"; otherwise, it's "ltr".
|
|
47
|
+
*
|
|
48
|
+
* "<rtl|ltr>"
|
|
49
|
+
*/
|
|
50
|
+
getMessage(
|
|
51
|
+
messageName: "@@bidi_reversed_dir",
|
|
52
|
+
substitutions?: string | string[],
|
|
53
|
+
options?: GetMessageOptions,
|
|
54
|
+
): string;
|
|
55
|
+
/**
|
|
56
|
+
* If the @@bidi_dir is "ltr", then this is "left"; otherwise, it's "right".
|
|
57
|
+
*
|
|
58
|
+
* "<left|right>"
|
|
59
|
+
*/
|
|
60
|
+
getMessage(
|
|
61
|
+
messageName: "@@bidi_start_edge",
|
|
62
|
+
substitutions?: string | string[],
|
|
63
|
+
options?: GetMessageOptions,
|
|
64
|
+
): string;
|
|
65
|
+
/**
|
|
66
|
+
* If the @@bidi_dir is "ltr", then this is "right"; otherwise, it's "left".
|
|
67
|
+
*
|
|
68
|
+
* "<right|left>"
|
|
69
|
+
*/
|
|
70
|
+
getMessage(
|
|
71
|
+
messageName: "@@bidi_end_edge",
|
|
72
|
+
substitutions?: string | string[],
|
|
73
|
+
options?: GetMessageOptions,
|
|
74
|
+
): string;
|
|
75
|
+
getMessage(
|
|
76
|
+
messageName: "@@extension_id" | "@@ui_locale" | "@@bidi_dir" | "@@bidi_reversed_dir" | "@@bidi_start_edge" | "@@bidi_end_edge",
|
|
77
|
+
substitutions?: string | string[],
|
|
78
|
+
options?: GetMessageOptions,
|
|
79
|
+
): string;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
// Generated by wxt
|
|
2
|
-
// Types for the #import virtual module
|
|
3
|
-
declare module '#imports' {
|
|
4
|
-
export { browser, Browser } from 'wxt/browser';
|
|
5
|
-
export { storage, StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage';
|
|
6
|
-
export { useAppConfig } from 'wxt/utils/app-config';
|
|
7
|
-
export { ContentScriptContext, WxtWindowEventMap } from 'wxt/utils/content-script-context';
|
|
8
|
-
export { createIframeUi, IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe';
|
|
9
|
-
export { createIntegratedUi, IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated';
|
|
10
|
-
export { createShadowRootUi, ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root';
|
|
11
|
-
export { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types';
|
|
12
|
-
export { defineAppConfig, WxtAppConfig } from 'wxt/utils/define-app-config';
|
|
13
|
-
export { defineBackground } from 'wxt/utils/define-background';
|
|
14
|
-
export { defineContentScript } from 'wxt/utils/define-content-script';
|
|
15
|
-
export { defineUnlistedScript } from 'wxt/utils/define-unlisted-script';
|
|
16
|
-
export { defineWxtPlugin } from 'wxt/utils/define-wxt-plugin';
|
|
17
|
-
export { injectScript, ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script';
|
|
18
|
-
export { InvalidMatchPattern, MatchPattern } from 'wxt/utils/match-patterns';
|
|
19
|
-
export { fakeBrowser } from 'wxt/testing';
|
|
20
|
-
}
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
// Types for the #import virtual module
|
|
3
|
+
declare module '#imports' {
|
|
4
|
+
export { browser, Browser } from 'wxt/browser';
|
|
5
|
+
export { storage, StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage';
|
|
6
|
+
export { getAppConfig, useAppConfig } from 'wxt/utils/app-config';
|
|
7
|
+
export { ContentScriptContext, WxtWindowEventMap } from 'wxt/utils/content-script-context';
|
|
8
|
+
export { createIframeUi, IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe';
|
|
9
|
+
export { createIntegratedUi, IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated';
|
|
10
|
+
export { createShadowRootUi, ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root';
|
|
11
|
+
export { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types';
|
|
12
|
+
export { defineAppConfig, WxtAppConfig } from 'wxt/utils/define-app-config';
|
|
13
|
+
export { defineBackground } from 'wxt/utils/define-background';
|
|
14
|
+
export { defineContentScript } from 'wxt/utils/define-content-script';
|
|
15
|
+
export { defineUnlistedScript } from 'wxt/utils/define-unlisted-script';
|
|
16
|
+
export { defineWxtPlugin } from 'wxt/utils/define-wxt-plugin';
|
|
17
|
+
export { injectScript, ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script';
|
|
18
|
+
export { InvalidMatchPattern, MatchPattern } from 'wxt/utils/match-patterns';
|
|
19
|
+
export { fakeBrowser } from 'wxt/testing';
|
|
20
|
+
}
|
|
@@ -1,50 +1,51 @@
|
|
|
1
|
-
// Generated by wxt
|
|
2
|
-
export {}
|
|
3
|
-
declare global {
|
|
4
|
-
const ContentScriptContext: typeof import('wxt/utils/content-script-context').ContentScriptContext
|
|
5
|
-
const InvalidMatchPattern: typeof import('wxt/utils/match-patterns').InvalidMatchPattern
|
|
6
|
-
const MatchPattern: typeof import('wxt/utils/match-patterns').MatchPattern
|
|
7
|
-
const browser: typeof import('wxt/browser').browser
|
|
8
|
-
const createIframeUi: typeof import('wxt/utils/content-script-ui/iframe').createIframeUi
|
|
9
|
-
const createIntegratedUi: typeof import('wxt/utils/content-script-ui/integrated').createIntegratedUi
|
|
10
|
-
const createShadowRootUi: typeof import('wxt/utils/content-script-ui/shadow-root').createShadowRootUi
|
|
11
|
-
const defineAppConfig: typeof import('wxt/utils/define-app-config').defineAppConfig
|
|
12
|
-
const defineBackground: typeof import('wxt/utils/define-background').defineBackground
|
|
13
|
-
const defineContentScript: typeof import('wxt/utils/define-content-script').defineContentScript
|
|
14
|
-
const defineUnlistedScript: typeof import('wxt/utils/define-unlisted-script').defineUnlistedScript
|
|
15
|
-
const defineWxtPlugin: typeof import('wxt/utils/define-wxt-plugin').defineWxtPlugin
|
|
16
|
-
const fakeBrowser: typeof import('wxt/testing').fakeBrowser
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
// Generated by wxt
|
|
2
|
+
export {}
|
|
3
|
+
declare global {
|
|
4
|
+
const ContentScriptContext: typeof import('wxt/utils/content-script-context').ContentScriptContext
|
|
5
|
+
const InvalidMatchPattern: typeof import('wxt/utils/match-patterns').InvalidMatchPattern
|
|
6
|
+
const MatchPattern: typeof import('wxt/utils/match-patterns').MatchPattern
|
|
7
|
+
const browser: typeof import('wxt/browser').browser
|
|
8
|
+
const createIframeUi: typeof import('wxt/utils/content-script-ui/iframe').createIframeUi
|
|
9
|
+
const createIntegratedUi: typeof import('wxt/utils/content-script-ui/integrated').createIntegratedUi
|
|
10
|
+
const createShadowRootUi: typeof import('wxt/utils/content-script-ui/shadow-root').createShadowRootUi
|
|
11
|
+
const defineAppConfig: typeof import('wxt/utils/define-app-config').defineAppConfig
|
|
12
|
+
const defineBackground: typeof import('wxt/utils/define-background').defineBackground
|
|
13
|
+
const defineContentScript: typeof import('wxt/utils/define-content-script').defineContentScript
|
|
14
|
+
const defineUnlistedScript: typeof import('wxt/utils/define-unlisted-script').defineUnlistedScript
|
|
15
|
+
const defineWxtPlugin: typeof import('wxt/utils/define-wxt-plugin').defineWxtPlugin
|
|
16
|
+
const fakeBrowser: typeof import('wxt/testing').fakeBrowser
|
|
17
|
+
const getAppConfig: typeof import('wxt/utils/app-config').getAppConfig
|
|
18
|
+
const injectScript: typeof import('wxt/utils/inject-script').injectScript
|
|
19
|
+
const storage: typeof import('wxt/utils/storage').storage
|
|
20
|
+
const useAppConfig: typeof import('wxt/utils/app-config').useAppConfig
|
|
21
|
+
}
|
|
22
|
+
// for type re-export
|
|
23
|
+
declare global {
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
export type { Browser } from 'wxt/browser'
|
|
26
|
+
import('wxt/browser')
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
export type { StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage'
|
|
29
|
+
import('wxt/utils/storage')
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
export type { WxtWindowEventMap } from 'wxt/utils/content-script-context'
|
|
32
|
+
import('wxt/utils/content-script-context')
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export type { IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe'
|
|
35
|
+
import('wxt/utils/content-script-ui/iframe')
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
export type { IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated'
|
|
38
|
+
import('wxt/utils/content-script-ui/integrated')
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
export type { ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root'
|
|
41
|
+
import('wxt/utils/content-script-ui/shadow-root')
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
export type { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types'
|
|
44
|
+
import('wxt/utils/content-script-ui/types')
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
export type { WxtAppConfig } from 'wxt/utils/define-app-config'
|
|
47
|
+
import('wxt/utils/define-app-config')
|
|
48
|
+
// @ts-ignore
|
|
49
|
+
export type { ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script'
|
|
50
|
+
import('wxt/utils/inject-script')
|
|
51
|
+
}
|