@kunver/new 2.11.0 → 2.13.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 (181) hide show
  1. package/dist/templates/wxt-svelte/agents.md +63 -0
  2. package/dist/templates/wxt-svelte/package.json +10 -11
  3. package/dist/templates/wxt-svelte/src/entrypoints/options/App.svelte +7 -0
  4. package/dist/templates/wxt-svelte/src/entrypoints/options/index.html +13 -0
  5. package/dist/templates/wxt-svelte/src/entrypoints/options/main.ts +9 -0
  6. package/dist/templates/wxt-svelte/wxt.config.ts +1 -0
  7. package/package.json +1 -1
  8. package/dist/templates/wxt-solid/.prettierrc.json +0 -11
  9. package/dist/templates/wxt-svelte/.wxt/tsconfig.json +0 -28
  10. package/dist/templates/wxt-svelte/.wxt/types/globals.d.ts +0 -15
  11. package/dist/templates/wxt-svelte/.wxt/types/i18n.d.ts +0 -81
  12. package/dist/templates/wxt-svelte/.wxt/types/imports-module.d.ts +0 -21
  13. package/dist/templates/wxt-svelte/.wxt/types/imports.d.ts +0 -60
  14. package/dist/templates/wxt-svelte/.wxt/types/paths.d.ts +0 -21
  15. package/dist/templates/wxt-svelte/.wxt/wxt.d.ts +0 -8
  16. package/dist/templates/wxt-svelte/node_modules/.bin/acorn.bunx +0 -0
  17. package/dist/templates/wxt-svelte/node_modules/.bin/acorn.exe +0 -0
  18. package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.bunx +0 -0
  19. package/dist/templates/wxt-svelte/node_modules/.bin/adbkit.exe +0 -0
  20. package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.bunx +0 -0
  21. package/dist/templates/wxt-svelte/node_modules/.bin/esbuild.exe +0 -0
  22. package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.bunx +0 -0
  23. package/dist/templates/wxt-svelte/node_modules/.bin/firefox-profile.exe +0 -0
  24. package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.bunx +0 -0
  25. package/dist/templates/wxt-svelte/node_modules/.bin/fx-runner.exe +0 -0
  26. package/dist/templates/wxt-svelte/node_modules/.bin/giget.bunx +0 -0
  27. package/dist/templates/wxt-svelte/node_modules/.bin/giget.exe +0 -0
  28. package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.bunx +0 -0
  29. package/dist/templates/wxt-svelte/node_modules/.bin/is-docker.exe +0 -0
  30. package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.bunx +0 -0
  31. package/dist/templates/wxt-svelte/node_modules/.bin/is-in-ci.exe +0 -0
  32. package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.bunx +0 -0
  33. package/dist/templates/wxt-svelte/node_modules/.bin/is-inside-container.exe +0 -0
  34. package/dist/templates/wxt-svelte/node_modules/.bin/jiti.bunx +0 -0
  35. package/dist/templates/wxt-svelte/node_modules/.bin/jiti.exe +0 -0
  36. package/dist/templates/wxt-svelte/node_modules/.bin/json5.bunx +0 -0
  37. package/dist/templates/wxt-svelte/node_modules/.bin/json5.exe +0 -0
  38. package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.bunx +0 -0
  39. package/dist/templates/wxt-svelte/node_modules/.bin/nanoid.exe +0 -0
  40. package/dist/templates/wxt-svelte/node_modules/.bin/nypm.bunx +0 -0
  41. package/dist/templates/wxt-svelte/node_modules/.bin/nypm.exe +0 -0
  42. package/dist/templates/wxt-svelte/node_modules/.bin/parser.bunx +0 -0
  43. package/dist/templates/wxt-svelte/node_modules/.bin/parser.exe +0 -0
  44. package/dist/templates/wxt-svelte/node_modules/.bin/pino.bunx +0 -0
  45. package/dist/templates/wxt-svelte/node_modules/.bin/pino.exe +0 -0
  46. package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.bunx +0 -0
  47. package/dist/templates/wxt-svelte/node_modules/.bin/print-chrome-path.exe +0 -0
  48. package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.bunx +0 -0
  49. package/dist/templates/wxt-svelte/node_modules/.bin/publish-extension.exe +0 -0
  50. package/dist/templates/wxt-svelte/node_modules/.bin/rc.bunx +0 -0
  51. package/dist/templates/wxt-svelte/node_modules/.bin/rc.exe +0 -0
  52. package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.bunx +0 -0
  53. package/dist/templates/wxt-svelte/node_modules/.bin/rollup-plugin-visualizer.exe +0 -0
  54. package/dist/templates/wxt-svelte/node_modules/.bin/rollup.bunx +0 -0
  55. package/dist/templates/wxt-svelte/node_modules/.bin/rollup.exe +0 -0
  56. package/dist/templates/wxt-svelte/node_modules/.bin/semver.bunx +0 -0
  57. package/dist/templates/wxt-svelte/node_modules/.bin/semver.exe +0 -0
  58. package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.bunx +0 -0
  59. package/dist/templates/wxt-svelte/node_modules/.bin/svelte-check.exe +0 -0
  60. package/dist/templates/wxt-svelte/node_modules/.bin/tsc.bunx +0 -0
  61. package/dist/templates/wxt-svelte/node_modules/.bin/tsc.exe +0 -0
  62. package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.bunx +0 -0
  63. package/dist/templates/wxt-svelte/node_modules/.bin/tsserver.exe +0 -0
  64. package/dist/templates/wxt-svelte/node_modules/.bin/uuid.bunx +0 -0
  65. package/dist/templates/wxt-svelte/node_modules/.bin/uuid.exe +0 -0
  66. package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.bunx +0 -0
  67. package/dist/templates/wxt-svelte/node_modules/.bin/vite-node.exe +0 -0
  68. package/dist/templates/wxt-svelte/node_modules/.bin/vite.bunx +0 -0
  69. package/dist/templates/wxt-svelte/node_modules/.bin/vite.exe +0 -0
  70. package/dist/templates/wxt-svelte/node_modules/.bin/which.bunx +0 -0
  71. package/dist/templates/wxt-svelte/node_modules/.bin/which.exe +0 -0
  72. package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.bunx +0 -0
  73. package/dist/templates/wxt-svelte/node_modules/.bin/wxt-publish-extension.exe +0 -0
  74. package/dist/templates/wxt-svelte/node_modules/.bin/wxt.bunx +0 -0
  75. package/dist/templates/wxt-svelte/node_modules/.bin/wxt.exe +0 -0
  76. package/dist/templates/wxt-svelte/node_modules/.cache/jiti/wxt-svelte-wxt.config.8de5262d.mjs +0 -14
  77. package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts +0 -32
  78. package/dist/templates/wxt-svelte/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts +0 -290
  79. package/dist/templates/wxt-svelte/node_modules/.vite/_svelte_metadata.json +0 -1
  80. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit/.github/dependabot.yml +0 -46
  81. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.github/dependabot.yml +0 -23
  82. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/publish.yml +0 -19
  83. package/dist/templates/wxt-svelte/node_modules/@devicefarmer/adbkit-monkey/.semaphore/semaphore.yml +0 -24
  84. package/dist/templates/wxt-svelte/node_modules/atomic-sleep/.travis.yml +0 -11
  85. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/3e844113-839b-4b48-a102-297deb37538a.json +0 -1
  86. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +0 -1
  87. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +0 -1
  88. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/ceeeef50-6926-41c0-91b2-771446718957.json +0 -1
  89. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +0 -1
  90. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/3e844113-839b-4b48-a102-297deb37538a.json +0 -1
  91. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/a2b562cc-4021-472c-b0e7-61b08d0856cc.json +0 -1
  92. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/af7432be-6f17-4c42-94eb-ac00c46b95fc.json +0 -1
  93. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/ceeeef50-6926-41c0-91b2-771446718957.json +0 -1
  94. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/e69c4534-8d9f-4c8d-98f1-55020da1bd75.json +0 -1
  95. package/dist/templates/wxt-svelte/node_modules/atomically/.nyc_output/processinfo/index.json +0 -1
  96. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/1139a7eb-c451-490b-a796-93ec17c301b4.json +0 -244
  97. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/2f325add-3ccd-4eb0-9a8e-03fcae4dda09.json +0 -245
  98. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/727ff5b3-573d-4552-853f-883cb2c42a43.json +0 -245
  99. package/dist/templates/wxt-svelte/node_modules/atomically/.tap/processinfo/cbbc81f4-251f-4e57-969f-e5e3622d90cd.json +0 -245
  100. package/dist/templates/wxt-svelte/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  101. package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.clang-format +0 -6
  102. package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/ci.yml +0 -56
  103. package/dist/templates/wxt-svelte/node_modules/chrome-launcher/.github/workflows/lh-smoke.yml +0 -48
  104. package/dist/templates/wxt-svelte/node_modules/concat-map/.travis.yml +0 -4
  105. package/dist/templates/wxt-svelte/node_modules/deepmerge/.editorconfig +0 -7
  106. package/dist/templates/wxt-svelte/node_modules/deepmerge/.eslintcache +0 -1
  107. package/dist/templates/wxt-svelte/node_modules/entities/src/generated/.eslintrc.json +0 -10
  108. package/dist/templates/wxt-svelte/node_modules/fast-redact/.github/workflows/ci.yml +0 -37
  109. package/dist/templates/wxt-svelte/node_modules/fastq/.github/dependabot.yml +0 -11
  110. package/dist/templates/wxt-svelte/node_modules/fastq/.github/workflows/ci.yml +0 -75
  111. package/dist/templates/wxt-svelte/node_modules/firefox-profile/.github/workflows/ci.yml +0 -22
  112. package/dist/templates/wxt-svelte/node_modules/firefox-profile/.prettierrc +0 -6
  113. package/dist/templates/wxt-svelte/node_modules/fx-runner/.circleci/config.yml +0 -152
  114. package/dist/templates/wxt-svelte/node_modules/fx-runner/.github/dependabot.yml +0 -7
  115. package/dist/templates/wxt-svelte/node_modules/glob-to-regexp/.travis.yml +0 -4
  116. package/dist/templates/wxt-svelte/node_modules/graceful-readlink/.travis.yml +0 -5
  117. package/dist/templates/wxt-svelte/node_modules/is-arrayish/.editorconfig +0 -18
  118. package/dist/templates/wxt-svelte/node_modules/is-arrayish/.istanbul.yml +0 -4
  119. package/dist/templates/wxt-svelte/node_modules/is-arrayish/.travis.yml +0 -17
  120. package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.bunx +0 -0
  121. package/dist/templates/wxt-svelte/node_modules/is-inside-container/node_modules/.bin/is-docker.exe +0 -0
  122. package/dist/templates/wxt-svelte/node_modules/isarray/.travis.yml +0 -4
  123. package/dist/templates/wxt-svelte/node_modules/jszip/.codeclimate.yml +0 -16
  124. package/dist/templates/wxt-svelte/node_modules/jszip/.editorconfig +0 -8
  125. package/dist/templates/wxt-svelte/node_modules/jszip/.eslintrc.js +0 -43
  126. package/dist/templates/wxt-svelte/node_modules/jszip/.github/workflows/pr.yaml +0 -58
  127. package/dist/templates/wxt-svelte/node_modules/jszip/.jekyll-metadata +0 -0
  128. package/dist/templates/wxt-svelte/node_modules/jszip/.travis.yml +0 -17
  129. package/dist/templates/wxt-svelte/node_modules/linkedom/.github/workflows/node.js.yml +0 -31
  130. package/dist/templates/wxt-svelte/node_modules/minimist/.eslintrc +0 -29
  131. package/dist/templates/wxt-svelte/node_modules/minimist/.github/FUNDING.yml +0 -12
  132. package/dist/templates/wxt-svelte/node_modules/minimist/.nycrc +0 -14
  133. package/dist/templates/wxt-svelte/node_modules/node-notifier/.github/workflows/test.yml +0 -23
  134. package/dist/templates/wxt-svelte/node_modules/node-notifier/.prettierrc +0 -5
  135. package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.bunx +0 -0
  136. package/dist/templates/wxt-svelte/node_modules/node-notifier/node_modules/.bin/node-which.exe +0 -0
  137. package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/dependabot.yml +0 -12
  138. package/dist/templates/wxt-svelte/node_modules/on-exit-leak-free/.github/workflows/ci.yml +0 -46
  139. package/dist/templates/wxt-svelte/node_modules/os-shim/.editorconfig +0 -9
  140. package/dist/templates/wxt-svelte/node_modules/os-shim/.travis.yml +0 -8
  141. package/dist/templates/wxt-svelte/node_modules/pino/.eslintignore +0 -2
  142. package/dist/templates/wxt-svelte/node_modules/pino/.eslintrc +0 -8
  143. package/dist/templates/wxt-svelte/node_modules/pino/.github/dependabot.yml +0 -13
  144. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/bench.yml +0 -61
  145. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/ci.yml +0 -88
  146. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/lock-threads.yml +0 -30
  147. package/dist/templates/wxt-svelte/node_modules/pino/.github/workflows/target-main.yml +0 -23
  148. package/dist/templates/wxt-svelte/node_modules/pino/.nojekyll +0 -0
  149. package/dist/templates/wxt-svelte/node_modules/pino/.prettierignore +0 -1
  150. package/dist/templates/wxt-svelte/node_modules/pino/.taprc.yaml +0 -8
  151. package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/dependabot.yml +0 -13
  152. package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.github/workflows/ci.yml +0 -97
  153. package/dist/templates/wxt-svelte/node_modules/pino-abstract-transport/.husky/pre-commit +0 -4
  154. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.editorconfig +0 -13
  155. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.eslintignore +0 -2
  156. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/dependabot.yml +0 -13
  157. package/dist/templates/wxt-svelte/node_modules/pino-std-serializers/.github/workflows/ci.yml +0 -81
  158. package/dist/templates/wxt-svelte/node_modules/process-warning/.gitattributes +0 -2
  159. package/dist/templates/wxt-svelte/node_modules/process-warning/.github/dependabot.yml +0 -13
  160. package/dist/templates/wxt-svelte/node_modules/process-warning/.github/workflows/ci.yml +0 -22
  161. package/dist/templates/wxt-svelte/node_modules/quick-format-unescaped/.github/workflows/ci.yml +0 -21
  162. package/dist/templates/wxt-svelte/node_modules/readable-stream/.travis.yml +0 -34
  163. package/dist/templates/wxt-svelte/node_modules/require-directory/.jshintrc +0 -67
  164. package/dist/templates/wxt-svelte/node_modules/require-directory/.travis.yml +0 -3
  165. package/dist/templates/wxt-svelte/node_modules/reusify/.github/dependabot.yml +0 -7
  166. package/dist/templates/wxt-svelte/node_modules/reusify/.github/workflows/ci.yml +0 -96
  167. package/dist/templates/wxt-svelte/node_modules/rfdc/.github/workflows/ci.yml +0 -21
  168. package/dist/templates/wxt-svelte/node_modules/shell-quote/.github/workflows/nodejs.yml +0 -35
  169. package/dist/templates/wxt-svelte/node_modules/sonic-boom/.eslintignore +0 -2
  170. package/dist/templates/wxt-svelte/node_modules/sonic-boom/.taprc +0 -3
  171. package/dist/templates/wxt-svelte/node_modules/spawn-sync/.travis.yml +0 -8
  172. package/dist/templates/wxt-svelte/node_modules/split/.travis.yml +0 -3
  173. package/dist/templates/wxt-svelte/node_modules/string_decoder/.travis.yml +0 -50
  174. package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/dependabot.yml +0 -13
  175. package/dist/templates/wxt-svelte/node_modules/thread-stream/.github/workflows/ci.yml +0 -94
  176. package/dist/templates/wxt-svelte/node_modules/thread-stream/.husky/pre-commit +0 -4
  177. package/dist/templates/wxt-svelte/node_modules/thread-stream/.taprc +0 -4
  178. package/dist/templates/wxt-svelte/node_modules/through/.travis.yml +0 -5
  179. package/dist/templates/wxt-svelte/node_modules/typedarray/.travis.yml +0 -4
  180. package/dist/templates/wxt-svelte/node_modules/which/.travis.yml +0 -6
  181. package/dist/templates/wxt-svelte/node_modules/zip-dir/.travis.yml +0 -3
@@ -0,0 +1,63 @@
1
+ - This is a Web Extension Project
2
+ - Goal : Create timestamps and chapters for youtube video using AI
3
+
4
+ - This project uses wxt framework for development. wxt is a extension development framework.
5
+ - website to framework is : https://wxt.dev/
6
+ - you can find docs on these websites :
7
+
8
+ 1. https://wxt.dev//knowledge/docs.txt
9
+ 2. https://wxt.dev//knowledge/api-reference.txt
10
+
11
+ - use browser super global whenever you want to use chrome global. wxt uses browser global for development
12
+ for example:
13
+ browser.runtime.getURL() instead of chrome.runtime.getURL()
14
+
15
+ ## Manifest :
16
+
17
+ In WXT, there is no manifest.json file in your source code. Instead, WXT generates the manifest from multiple sources:
18
+
19
+ Global options defined in wxt.config.ts file
20
+ Entrypoint-specific options defined in your entrypoints
21
+ WXT Modules added to your project can modify your manifest
22
+ Hooks defined in your project can modify your manifest
23
+ Your extension's manifest.json will be output to .output/{target}/manifest.json when running wxt build.
24
+
25
+ - this extension should work on youtube/watch\* urls
26
+ - this project uses svelte 5 for frontend.
27
+ - this extension aims manifest v3
28
+ - this project uses tailwindcss v4 for styling.
29
+ - this project uses typescript for development.
30
+ - this project uses prettier for code formatting.
31
+ - this project uses vite.
32
+ - this project uses bun package manager, not npm.
33
+ - when using svelte, use modern latest svelte 5 runes syntax.
34
+ - I should have a .prettierrc.json file in the root directory. please also follow rules on that.
35
+
36
+ - entrypoints are in src/entrypoints directory
37
+
38
+ ## Storage
39
+
40
+ - When we need storage we should use WXT Storage, you should import it from "#imports".
41
+ - Please check project if I already defined a store
42
+ - use "local:" prefix when storing data locally
43
+
44
+ ```ts
45
+ // utils/storage.ts
46
+ import { storage } from "#imports"
47
+ const showChangelogOnUpdate = storage.defineItem<boolean>("local:showChangelogOnUpdate", {
48
+ fallback: true,
49
+ })
50
+ ```
51
+
52
+ ## i18n usage
53
+
54
+ - when needed, use @wxt-dev/i18n, and import from "#i18n"
55
+ - translations will be in <srcDir>/locales/ directory, and will be yml files.
56
+
57
+ - usage example
58
+
59
+ ```ts
60
+ import { i18n } from "#i18n"
61
+
62
+ i18n.t("helloWorld") // "Hello world!"
63
+ ```
@@ -9,25 +9,24 @@
9
9
  "dev:firefox": "wxt -b firefox",
10
10
  "build": "wxt build",
11
11
  "build:firefox": "wxt build -b firefox",
12
- "resize":"bunx @kunver/resize",
12
+ "resize": "bunx @kunver/resize",
13
13
  "zip": "wxt zip",
14
- "zip:all": "concurrently \"bunx wxt zip -b firefox\" \"bunx wxt zip -b chrome\" \"bunx wxt zip -b edge\"",
14
+ "zip:all": "bun --parallel zip zip:firefox",
15
15
  "zip:firefox": "wxt zip -b firefox",
16
16
  "check": "svelte-check --tsconfig ./tsconfig.json",
17
17
  "postinstall": "wxt prepare",
18
18
  "manager": "bun manager.cjs bun"
19
19
  },
20
20
  "devDependencies": {
21
- "@tailwindcss/vite": "^4.1.12",
22
- "@tsconfig/svelte": "^5.0.5",
23
- "@wxt-dev/module-svelte": "^2.0.3",
24
- "concurrently": "^9.2.1",
25
- "svelte": "^5.38.6",
26
- "svelte-check": "^4.3.1",
27
- "tailwindcss": "^4.1.12",
21
+ "@tailwindcss/vite": "^4.1.18",
22
+ "@tsconfig/svelte": "^5.0.8",
23
+ "@wxt-dev/module-svelte": "^2.0.4",
24
+ "svelte": "^5.51.3",
25
+ "svelte-check": "^4.4.0",
26
+ "tailwindcss": "^4.1.18",
28
27
  "tslib": "^2.8.1",
29
- "typescript": "^5.9.2",
30
- "wxt": "^0.20.8"
28
+ "typescript": "^5.9.3",
29
+ "wxt": "^0.20.17"
31
30
  },
32
31
  "trustedDependencies": [
33
32
  "@tailwindcss/oxide",
@@ -0,0 +1,7 @@
1
+ <script lang="ts">
2
+ let pageName = $state("options")
3
+ </script>
4
+
5
+ <main class="min-h-screen bg-gray-900 text-white p-8">
6
+ <p> {pageName} </p>
7
+ </main>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <meta name="manifest.open_in_tab" content="true" />
7
+ <title>Options</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="./main.ts"></script>
12
+ </body>
13
+ </html>
@@ -0,0 +1,9 @@
1
+ import { mount } from "svelte"
2
+ import App from "./App.svelte"
3
+ import "~/assets/tailwind.css"
4
+
5
+ const app = mount(App, {
6
+ target: document.getElementById("app")!,
7
+ })
8
+
9
+ export default app
@@ -7,6 +7,7 @@ export default defineConfig({
7
7
  manifest: {
8
8
  name: "wxt-svelte-starter",
9
9
  description: "manifest.json description",
10
+ //permission: ["storage"],
10
11
  },
11
12
  modules: ["@wxt-dev/module-svelte"],
12
13
  vite: () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kunver/new",
3
- "version": "2.11.0",
3
+ "version": "2.13.0",
4
4
  "description": "Opiniated project starter",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,11 +0,0 @@
1
- {
2
- "semi": false,
3
- "trailingComma": "all",
4
- "singleQuote": false,
5
- "printWidth": 120,
6
- "tabWidth": 2,
7
- "useTabs": false,
8
- "jsxSingleQuote": false,
9
- "jsxBracketSameLine": false,
10
- "arrowParens": "avoid"
11
- }
@@ -1,28 +0,0 @@
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
- "@": ["../src"],
14
- "@/*": ["../src/*"],
15
- "~": ["../src"],
16
- "~/*": ["../src/*"],
17
- "@@": [".."],
18
- "@@/*": ["../*"],
19
- "~~": [".."],
20
- "~~/*": ["../*"]
21
- }
22
- },
23
- "include": [
24
- "../**/*",
25
- "./wxt.d.ts"
26
- ],
27
- "exclude": ["../.output"]
28
- }
@@ -1,15 +0,0 @@
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 +0,0 @@
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,21 +0,0 @@
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 { onMount, beforeUpdate, afterUpdate, onDestroy, tick, setContext, getContext, hasContext, getAllContexts, createEventDispatcher } from 'svelte';
20
- export { fakeBrowser } from 'wxt/testing';
21
- }
@@ -1,60 +0,0 @@
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 afterUpdate: typeof import('svelte').afterUpdate
8
- const beforeUpdate: typeof import('svelte').beforeUpdate
9
- const browser: typeof import('wxt/browser').browser
10
- const createEventDispatcher: typeof import('svelte').createEventDispatcher
11
- const createIframeUi: typeof import('wxt/utils/content-script-ui/iframe').createIframeUi
12
- const createIntegratedUi: typeof import('wxt/utils/content-script-ui/integrated').createIntegratedUi
13
- const createShadowRootUi: typeof import('wxt/utils/content-script-ui/shadow-root').createShadowRootUi
14
- const defineAppConfig: typeof import('wxt/utils/define-app-config').defineAppConfig
15
- const defineBackground: typeof import('wxt/utils/define-background').defineBackground
16
- const defineContentScript: typeof import('wxt/utils/define-content-script').defineContentScript
17
- const defineUnlistedScript: typeof import('wxt/utils/define-unlisted-script').defineUnlistedScript
18
- const defineWxtPlugin: typeof import('wxt/utils/define-wxt-plugin').defineWxtPlugin
19
- const fakeBrowser: typeof import('wxt/testing').fakeBrowser
20
- const getAllContexts: typeof import('svelte').getAllContexts
21
- const getContext: typeof import('svelte').getContext
22
- const hasContext: typeof import('svelte').hasContext
23
- const injectScript: typeof import('wxt/utils/inject-script').injectScript
24
- const onDestroy: typeof import('svelte').onDestroy
25
- const onMount: typeof import('svelte').onMount
26
- const setContext: typeof import('svelte').setContext
27
- const storage: typeof import('wxt/utils/storage').storage
28
- const tick: typeof import('svelte').tick
29
- const useAppConfig: typeof import('wxt/utils/app-config').useAppConfig
30
- }
31
- // for type re-export
32
- declare global {
33
- // @ts-ignore
34
- export type { Browser } from 'wxt/browser'
35
- import('wxt/browser')
36
- // @ts-ignore
37
- export type { StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage'
38
- import('wxt/utils/storage')
39
- // @ts-ignore
40
- export type { WxtWindowEventMap } from 'wxt/utils/content-script-context'
41
- import('wxt/utils/content-script-context')
42
- // @ts-ignore
43
- export type { IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe'
44
- import('wxt/utils/content-script-ui/iframe')
45
- // @ts-ignore
46
- export type { IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated'
47
- import('wxt/utils/content-script-ui/integrated')
48
- // @ts-ignore
49
- export type { ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root'
50
- import('wxt/utils/content-script-ui/shadow-root')
51
- // @ts-ignore
52
- export type { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types'
53
- import('wxt/utils/content-script-ui/types')
54
- // @ts-ignore
55
- export type { WxtAppConfig } from 'wxt/utils/define-app-config'
56
- import('wxt/utils/define-app-config')
57
- // @ts-ignore
58
- export type { ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script'
59
- import('wxt/utils/inject-script')
60
- }
@@ -1,21 +0,0 @@
1
- // Generated by wxt
2
- import "wxt/browser";
3
-
4
- declare module "wxt/browser" {
5
- export type PublicPath =
6
- | ""
7
- | "/"
8
- | "/background.js"
9
- | "/content-scripts/content.js"
10
- | "/icon/128.png"
11
- | "/icon/16.png"
12
- | "/icon/32.png"
13
- | "/icon/48.png"
14
- | "/icon/96.png"
15
- | "/popup.html"
16
- type HtmlPublicPath = Extract<PublicPath, `${string}.html`>
17
- export interface WxtRuntime {
18
- getURL(path: PublicPath): string;
19
- getURL(path: `${HtmlPublicPath}${string}`): string;
20
- }
21
- }
@@ -1,8 +0,0 @@
1
- // Generated by wxt
2
- /// <reference types="wxt/vite-builder-env" />
3
- /// <reference types="@wxt-dev/module-svelte" />
4
- /// <reference path="./types/paths.d.ts" />
5
- /// <reference path="./types/i18n.d.ts" />
6
- /// <reference path="./types/globals.d.ts" />
7
- /// <reference path="./types/imports-module.d.ts" />
8
- /// <reference path="./types/imports.d.ts" />
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var _wxt = await jitiImport("wxt");
2
- var _vite = _interopRequireDefault(await jitiImport("@tailwindcss/vite"));function _interopRequireDefault(e) {return e && e.__esModule ? e : { default: e };}
3
-
4
- // See https://wxt.dev/api/config.html
5
- var _default = exports.default = (0, _wxt.defineConfig)({
6
- srcDir: "src",
7
- modules: ["@wxt-dev/module-svelte"],
8
- vite: () => ({
9
- plugins: [(0, _vite.default)()]
10
- }),
11
- webExt: {
12
- disabled: true
13
- }
14
- }); /* v9-c6b3ab6041143bb7 */
@@ -1,32 +0,0 @@
1
- declare namespace svelteNative.JSX {
2
-
3
- // Every namespace eligible for use needs to implement the following two functions
4
- function mapElementTag(
5
- tag: string
6
- ): any;
7
-
8
- function createElement<Elements extends IntrinsicElements, Key extends keyof Elements>(
9
- element: Key | undefined | null, attrs: Elements[Key]
10
- ): any;
11
- function createElement<Elements extends IntrinsicElements, Key extends keyof Elements, T>(
12
- element: Key | undefined | null, attrEnhancers: T, attrs: Elements[Key] & T
13
- ): any;
14
-
15
-
16
- /* svelte specific */
17
- interface ElementClass {
18
- $$prop_def: any;
19
- }
20
-
21
- interface ElementAttributesProperty {
22
- $$prop_def: any; // specify the property name to use
23
- }
24
-
25
- // Add empty IntrinsicAttributes to prevent fallback to the one in the JSX namespace
26
- interface IntrinsicAttributes {
27
- }
28
-
29
- interface IntrinsicElements {
30
- [name: string]: { [name: string]: any };
31
- }
32
- }