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.
Files changed (213) hide show
  1. package/bin/{index.js → src/index.js} +0 -0
  2. package/package.json +3 -3
  3. package/template/docusaurus/package.json +1 -1
  4. package/template/electron-react/eslint.config.mjs +2 -1
  5. package/template/electron-react/package.json +97 -97
  6. package/template/electron-react/tsconfig.json +4 -11
  7. package/template/electron-vue/eslint.config.mjs +2 -1
  8. package/template/electron-vue/package.json +87 -87
  9. package/template/electron-vue/tsconfig.json +10 -8
  10. package/template/lib/workspace/eslint.config.mjs +2 -1
  11. package/template/lib/workspace/package.json +3 -3
  12. package/template/lib/workspace/packages/react/package.json +2 -2
  13. package/template/lib/workspace/packages/ts/package.json +3 -3
  14. package/template/web-app/react-rsbuild/eslint.config.js +2 -1
  15. package/template/web-app/react-rsbuild/package.json +79 -79
  16. package/template/web-app/react-rsbuild/rsbuild.config.ts +9 -11
  17. package/template/web-app/react-rsbuild/{domain → src}/components/app-context.tsx +1 -1
  18. package/template/web-app/{react-vite/domain → react-rsbuild/src}/components/app.tsx +2 -2
  19. package/template/web-app/react-rsbuild/{shared → src}/components/index.ts +1 -0
  20. package/template/web-app/{react-vite/shared → react-rsbuild/src}/hooks/useLazyRender.ts +1 -1
  21. package/template/web-app/{react-vite → react-rsbuild/src}/main.tsx +2 -2
  22. package/template/web-app/{react-vite → react-rsbuild/src}/pages/home/view.tsx +1 -1
  23. package/template/web-app/react-rsbuild/{pages → src/pages}/index.tsx +1 -1
  24. package/template/web-app/{react-vite/domain → react-rsbuild/src}/router/components/route-layout.tsx +2 -1
  25. package/template/web-app/react-rsbuild/{domain → src}/router/components/sub-route-outlet.tsx +2 -1
  26. package/template/web-app/react-rsbuild/{domain → src}/router/router.tsx +1 -1
  27. package/template/web-app/react-rsbuild/src/router/router.types.ts +3 -0
  28. package/template/web-app/react-rsbuild/tsconfig.json +5 -10
  29. package/template/web-app/react-vite/eslint.config.js +2 -1
  30. package/template/web-app/react-vite/index.html +2 -2
  31. package/template/web-app/react-vite/package.json +78 -78
  32. package/template/web-app/react-vite/scripts/createCodeSplitting.ts +30 -0
  33. package/template/web-app/react-vite/scripts/index.ts +1 -1
  34. package/template/web-app/react-vite/{domain → src}/components/app-context.tsx +1 -1
  35. package/template/web-app/{react-rsbuild/domain → react-vite/src}/components/app.tsx +3 -3
  36. package/template/web-app/react-vite/{shared → src}/components/index.ts +1 -0
  37. package/template/web-app/{react-rsbuild → react-vite/src}/main.tsx +2 -2
  38. package/template/web-app/react-vite/{pages → src/pages}/home/view.mock.ts +1 -1
  39. package/template/web-app/{react-rsbuild → react-vite/src}/pages/home/view.tsx +1 -1
  40. package/template/web-app/react-vite/{pages → src/pages}/index.tsx +1 -1
  41. package/template/web-app/{react-rsbuild/domain → react-vite/src}/router/components/route-layout.tsx +1 -1
  42. package/template/web-app/react-vite/{domain → src}/router/components/sub-route-outlet.tsx +1 -1
  43. package/template/web-app/react-vite/{domain → src}/router/router.tsx +1 -1
  44. package/template/web-app/react-vite/src/router/router.types.ts +3 -0
  45. package/template/web-app/react-vite/tsconfig.json +2 -8
  46. package/template/web-app/react-vite/tsconfig.node.json +2 -2
  47. package/template/web-app/react-vite/vite.config.ts +11 -9
  48. package/template/web-app/vue/eslint.config.js +2 -1
  49. package/template/web-app/vue/index.html +2 -2
  50. package/template/web-app/vue/package.json +72 -72
  51. package/template/web-app/vue/scripts/createCodeSplitting.ts +30 -0
  52. package/template/web-app/vue/scripts/index.ts +1 -1
  53. package/template/web-app/{vue-rsbuild/domain → vue/src}/components/app.vue +1 -1
  54. package/template/web-app/vue/src/main.css +1 -0
  55. package/template/web-app/vue/{main.ts → src/main.ts} +3 -3
  56. package/template/web-app/vue/{pages → src/pages}/home/view.mock.ts +1 -1
  57. package/template/web-app/vue/{pages → src/pages}/home/view.vue +1 -1
  58. package/template/web-app/vue/tsconfig.json +10 -7
  59. package/template/web-app/vue/tsconfig.node.json +2 -2
  60. package/template/web-app/vue/vite.config.ts +11 -6
  61. package/template/web-app/vue-rsbuild/eslint.config.js +1 -0
  62. package/template/web-app/vue-rsbuild/package.json +77 -77
  63. package/template/web-app/vue-rsbuild/rsbuild.config.ts +8 -11
  64. package/template/web-app/vue-rsbuild/scripts/index.ts +1 -1
  65. package/template/web-app/{vue/domain → vue-rsbuild/src}/components/app.vue +1 -1
  66. package/template/web-app/vue-rsbuild/{main.ts → src/main.ts} +3 -3
  67. package/template/web-app/vue-rsbuild/{pages → src/pages}/home/view.vue +1 -1
  68. package/template/web-app/vue-rsbuild/tsconfig.json +10 -8
  69. package/template/web-extension/.wxt/eslint-auto-imports.mjs +57 -56
  70. package/template/web-extension/.wxt/tsconfig.json +27 -27
  71. package/template/web-extension/.wxt/types/globals.d.ts +15 -15
  72. package/template/web-extension/.wxt/types/i18n.d.ts +81 -81
  73. package/template/web-extension/.wxt/types/imports-module.d.ts +20 -20
  74. package/template/web-extension/.wxt/types/imports.d.ts +51 -50
  75. package/template/web-extension/.wxt/types/paths.d.ts +17 -17
  76. package/template/web-extension/.wxt/wxt.d.ts +7 -7
  77. package/template/web-extension/entrypoints/content/domain/app/tools/insertApp.tsx +1 -3
  78. package/template/web-extension/entrypoints/content/index.tsx +0 -1
  79. package/template/web-extension/entrypoints/content/modules/common/common.tsx +7 -1
  80. package/template/web-extension/entrypoints/content/modules/common/view.styled.ts +10 -0
  81. package/template/web-extension/entrypoints/popup/main.tsx +0 -1
  82. package/template/web-extension/entrypoints/popup/popup.styled.ts +5 -0
  83. package/template/web-extension/entrypoints/popup/popup.tsx +3 -1
  84. package/template/web-extension/eslint.config.js +2 -1
  85. package/template/web-extension/package.json +85 -85
  86. package/template/web-extension/shared/components/app-context/view.tsx +8 -2
  87. package/template/web-extension/shared/styles/theme.ts +55 -0
  88. package/template/web-extension/tsconfig.json +0 -2
  89. package/template/web-extension/vite-env.d.ts +15 -6
  90. package/template/web-extension/wxt.config.ts +28 -10
  91. package/template/electron-react/tsconfig.node.json +0 -10
  92. package/template/electron-vue/tsconfig.node.json +0 -10
  93. package/template/web-app/react-rsbuild/domain/components/index.ts +0 -1
  94. package/template/web-app/react-rsbuild/domain/router/router.types.ts +0 -3
  95. package/template/web-app/react-rsbuild/tsconfig.node.json +0 -10
  96. package/template/web-app/react-vite/domain/components/index.ts +0 -1
  97. package/template/web-app/react-vite/domain/router/router.types.ts +0 -3
  98. package/template/web-app/react-vite/scripts/createChunks.ts +0 -27
  99. package/template/web-app/vue/scripts/createChunks.ts +0 -27
  100. package/template/web-app/vue/shared/constant/index.ts +0 -0
  101. package/template/web-app/vue/shared/tools/index.ts +0 -0
  102. package/template/web-app/vue-rsbuild/tsconfig.node.json +0 -10
  103. package/template/web-extension/shared/styles/theme.css +0 -4
  104. /package/bin/{createTemp.d.ts → src/createTemp.d.ts} +0 -0
  105. /package/bin/{createTemp.js → src/createTemp.js} +0 -0
  106. /package/bin/{index.d.ts → src/index.d.ts} +0 -0
  107. /package/bin/{utils → src/utils}/index.d.ts +0 -0
  108. /package/bin/{utils → src/utils}/index.js +0 -0
  109. /package/template/web-app/react-rsbuild/{shared → src}/assets/react.svg +0 -0
  110. /package/template/web-app/react-rsbuild/{shared → src}/components/componentInstance.tsx +0 -0
  111. /package/template/web-app/react-rsbuild/{shared → src}/constant/index.ts +0 -0
  112. /package/template/web-app/react-rsbuild/{shared → src}/hooks/defineRouter/defineRouter.types.ts +0 -0
  113. /package/template/web-app/react-rsbuild/{shared → src}/hooks/defineRouter/deineRouter.tsx +0 -0
  114. /package/template/web-app/react-rsbuild/{shared → src}/hooks/defineRouter/index.ts +0 -0
  115. /package/template/web-app/react-rsbuild/{shared → src}/hooks/index.ts +0 -0
  116. /package/template/web-app/react-rsbuild/{shared → src}/hooks/useDebounceFn.ts +0 -0
  117. /package/template/web-app/react-rsbuild/{shared → src}/hooks/useInterval.ts +0 -0
  118. /package/template/web-app/react-rsbuild/{shared → src}/hooks/useLowPriorityState.ts +0 -0
  119. /package/template/web-app/react-rsbuild/{shared → src}/hooks/useSyncState.ts +0 -0
  120. /package/template/web-app/react-rsbuild/{shared → src}/hooks/useVisible.ts +0 -0
  121. /package/template/web-app/react-rsbuild/{domain → src}/models/app.ts +0 -0
  122. /package/template/web-app/react-rsbuild/{domain → src}/models/index.ts +0 -0
  123. /package/template/web-app/react-rsbuild/{pages → src/pages}/home/index.ts +0 -0
  124. /package/template/web-app/react-rsbuild/{pages → src/pages}/home/view.module.css +0 -0
  125. /package/template/web-app/react-rsbuild/{pages → src/pages}/not-found.tsx +0 -0
  126. /package/template/web-app/react-rsbuild/{domain → src}/router/components/index.ts +0 -0
  127. /package/template/web-app/react-rsbuild/{domain → src}/router/home/ids.ts +0 -0
  128. /package/template/web-app/react-rsbuild/{domain → src}/router/home/index.ts +0 -0
  129. /package/template/web-app/react-rsbuild/{domain → src}/router/home/routes.tsx +0 -0
  130. /package/template/web-app/react-rsbuild/{domain → src}/router/ids.ts +0 -0
  131. /package/template/web-app/react-rsbuild/{domain → src}/router/index.ts +0 -0
  132. /package/template/web-app/react-rsbuild/{shared → src}/service/api.ts +0 -0
  133. /package/template/web-app/react-rsbuild/{shared → src}/service/home.ts +0 -0
  134. /package/template/web-app/react-rsbuild/{shared → src}/service/index.ts +0 -0
  135. /package/template/web-app/react-rsbuild/{shared → src}/service/request.ts +0 -0
  136. /package/template/web-app/react-rsbuild/{shared → src}/styles/theme.css +0 -0
  137. /package/template/web-app/react-rsbuild/{shared → src}/tools/index.ts +0 -0
  138. /package/template/web-app/react-vite/{shared/assets/react.svg → src/assets/favicon.svg} +0 -0
  139. /package/template/web-app/react-vite/{shared → src}/components/componentInstance.tsx +0 -0
  140. /package/template/web-app/react-vite/{shared → src}/constant/index.ts +0 -0
  141. /package/template/web-app/react-vite/{shared → src}/hooks/defineRouter/defineRouter.types.ts +0 -0
  142. /package/template/web-app/react-vite/{shared → src}/hooks/defineRouter/deineRouter.tsx +0 -0
  143. /package/template/web-app/react-vite/{shared → src}/hooks/defineRouter/index.ts +0 -0
  144. /package/template/web-app/react-vite/{shared → src}/hooks/index.ts +0 -0
  145. /package/template/web-app/react-vite/{shared → src}/hooks/useDebounceFn.ts +0 -0
  146. /package/template/web-app/react-vite/{shared → src}/hooks/useInterval.ts +0 -0
  147. /package/template/web-app/{react-rsbuild/shared → react-vite/src}/hooks/useLazyRender.ts +0 -0
  148. /package/template/web-app/react-vite/{shared → src}/hooks/useLowPriorityState.ts +0 -0
  149. /package/template/web-app/react-vite/{shared → src}/hooks/useSyncState.ts +0 -0
  150. /package/template/web-app/react-vite/{shared → src}/hooks/useVisible.ts +0 -0
  151. /package/template/web-app/react-vite/{mockUtils.ts → src/mockUtils.ts} +0 -0
  152. /package/template/web-app/react-vite/{domain → src}/models/app.ts +0 -0
  153. /package/template/web-app/react-vite/{domain → src}/models/index.ts +0 -0
  154. /package/template/web-app/react-vite/{pages → src/pages}/home/index.ts +0 -0
  155. /package/template/web-app/react-vite/{pages → src/pages}/home/view.module.css +0 -0
  156. /package/template/web-app/react-vite/{pages → src/pages}/not-found.tsx +0 -0
  157. /package/template/web-app/react-vite/{domain → src}/router/components/index.ts +0 -0
  158. /package/template/web-app/react-vite/{domain → src}/router/home/ids.ts +0 -0
  159. /package/template/web-app/react-vite/{domain → src}/router/home/index.ts +0 -0
  160. /package/template/web-app/react-vite/{domain → src}/router/home/routes.tsx +0 -0
  161. /package/template/web-app/react-vite/{domain → src}/router/ids.ts +0 -0
  162. /package/template/web-app/react-vite/{domain → src}/router/index.ts +0 -0
  163. /package/template/web-app/react-vite/{shared → src}/service/api.ts +0 -0
  164. /package/template/web-app/react-vite/{shared → src}/service/home.ts +0 -0
  165. /package/template/web-app/react-vite/{shared → src}/service/index.ts +0 -0
  166. /package/template/web-app/react-vite/{shared → src}/service/request.ts +0 -0
  167. /package/template/web-app/react-vite/{shared → src}/styles/theme.css +0 -0
  168. /package/template/web-app/react-vite/{shared → src}/tools/index.ts +0 -0
  169. /package/template/web-app/vue/{shared/assets/vue.svg → src/assets/favicon.svg} +0 -0
  170. /package/template/web-app/vue/{domain → src}/components/createComponentInstance.ts +0 -0
  171. /package/template/web-app/vue/{domain → src}/components/index.ts +0 -0
  172. /package/template/web-app/{vue-rsbuild/shared/tools → vue/src/constant}/index.ts +0 -0
  173. /package/template/web-app/vue/{shared → src}/hooks/index.ts +0 -0
  174. /package/template/web-app/vue/{shared → src}/hooks/useList.ts +0 -0
  175. /package/template/web-app/vue/{shared → src}/hooks/useVisible.ts +0 -0
  176. /package/template/web-app/vue/{mockUtils.ts → src/mockUtils.ts} +0 -0
  177. /package/template/web-app/vue/{pages → src/pages}/home/index.ts +0 -0
  178. /package/template/web-app/vue/{pages → src/pages}/index.ts +0 -0
  179. /package/template/web-app/vue/{pages → src/pages}/index.vue +0 -0
  180. /package/template/web-app/vue/{pages → src/pages}/not-found.vue +0 -0
  181. /package/template/web-app/vue/{domain → src}/router/home/index.ts +0 -0
  182. /package/template/web-app/vue/{domain → src}/router/home/names.ts +0 -0
  183. /package/template/web-app/vue/{domain → src}/router/home/routes.ts +0 -0
  184. /package/template/web-app/vue/{domain → src}/router/index.ts +0 -0
  185. /package/template/web-app/vue/{domain → src}/router/names.ts +0 -0
  186. /package/template/web-app/vue/{shared → src}/service/api.ts +0 -0
  187. /package/template/web-app/vue/{shared → src}/service/home.ts +0 -0
  188. /package/template/web-app/vue/{shared → src}/service/index.ts +0 -0
  189. /package/template/web-app/vue/{shared → src}/service/request.ts +0 -0
  190. /package/template/web-app/vue/{shared → src}/styles/theme.css +0 -0
  191. /package/template/web-app/vue/{shared/components → src/tools}/index.ts +0 -0
  192. /package/template/web-app/vue-rsbuild/{shared → src}/assets/vue.svg +0 -0
  193. /package/template/web-app/vue-rsbuild/{domain → src}/components/createComponentInstance.ts +0 -0
  194. /package/template/web-app/vue-rsbuild/{domain → src}/components/index.ts +0 -0
  195. /package/template/web-app/vue-rsbuild/{shared/components → src/constant}/index.ts +0 -0
  196. /package/template/web-app/vue-rsbuild/{shared → src}/hooks/index.ts +0 -0
  197. /package/template/web-app/vue-rsbuild/{shared → src}/hooks/useList.ts +0 -0
  198. /package/template/web-app/vue-rsbuild/{shared → src}/hooks/useVisible.ts +0 -0
  199. /package/template/web-app/vue-rsbuild/{pages → src/pages}/home/index.ts +0 -0
  200. /package/template/web-app/vue-rsbuild/{pages → src/pages}/index.ts +0 -0
  201. /package/template/web-app/vue-rsbuild/{pages → src/pages}/index.vue +0 -0
  202. /package/template/web-app/vue-rsbuild/{pages → src/pages}/not-found.vue +0 -0
  203. /package/template/web-app/vue-rsbuild/{domain → src}/router/home/index.ts +0 -0
  204. /package/template/web-app/vue-rsbuild/{domain → src}/router/home/names.ts +0 -0
  205. /package/template/web-app/vue-rsbuild/{domain → src}/router/home/routes.ts +0 -0
  206. /package/template/web-app/vue-rsbuild/{domain → src}/router/index.ts +0 -0
  207. /package/template/web-app/vue-rsbuild/{domain → src}/router/names.ts +0 -0
  208. /package/template/web-app/vue-rsbuild/{shared → src}/service/api.ts +0 -0
  209. /package/template/web-app/vue-rsbuild/{shared → src}/service/home.ts +0 -0
  210. /package/template/web-app/vue-rsbuild/{shared → src}/service/index.ts +0 -0
  211. /package/template/web-app/vue-rsbuild/{shared → src}/service/request.ts +0 -0
  212. /package/template/web-app/vue-rsbuild/{shared → src}/styles/theme.css +0 -0
  213. /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: './shared/assets/vue.svg'
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
- context: [env.PUBLIC_API_HOST],
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'
@@ -3,7 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup lang="ts">
6
- import { router, routerNames } from '@/domain/router'
6
+ import { router, routerNames } from '@/router'
7
7
 
8
8
  router.beforeEach(async to => {
9
9
  if (!Object.values(routerNames).includes(to.name as string)) {
@@ -1,7 +1,7 @@
1
1
  import { createApp } from 'vue'
2
2
  import { createPinia } from 'pinia'
3
- import { router } from '@/domain/router'
4
- import { App } from '@/domain/components'
5
- import './shared/styles/theme.css'
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,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { fetchHomeData } from '@/shared/service'
2
+ import { fetchHomeData } from '@/service'
3
3
 
4
4
  const data = fetchHomeData()
5
5
  console.log('data', data)
@@ -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
- "injectScript": true,
45
- "storage": true,
46
- "useAppConfig": true
47
- }
48
-
49
- export default {
50
- name: "wxt/auto-imports",
51
- languageOptions: {
52
- globals,
53
- /** @type {import('eslint').Linter.SourceType} */
54
- sourceType: "module",
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 injectScript: typeof import('wxt/utils/inject-script').injectScript
18
- const storage: typeof import('wxt/utils/storage').storage
19
- const useAppConfig: typeof import('wxt/utils/app-config').useAppConfig
20
- }
21
- // for type re-export
22
- declare global {
23
- // @ts-ignore
24
- export type { Browser } from 'wxt/browser'
25
- import('wxt/browser')
26
- // @ts-ignore
27
- export type { StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage'
28
- import('wxt/utils/storage')
29
- // @ts-ignore
30
- export type { WxtWindowEventMap } from 'wxt/utils/content-script-context'
31
- import('wxt/utils/content-script-context')
32
- // @ts-ignore
33
- export type { IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe'
34
- import('wxt/utils/content-script-ui/iframe')
35
- // @ts-ignore
36
- export type { IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated'
37
- import('wxt/utils/content-script-ui/integrated')
38
- // @ts-ignore
39
- export type { ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root'
40
- import('wxt/utils/content-script-ui/shadow-root')
41
- // @ts-ignore
42
- export type { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types'
43
- import('wxt/utils/content-script-ui/types')
44
- // @ts-ignore
45
- export type { WxtAppConfig } from 'wxt/utils/define-app-config'
46
- import('wxt/utils/define-app-config')
47
- // @ts-ignore
48
- export type { ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script'
49
- import('wxt/utils/inject-script')
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
+ }