extension-create 2.0.0-alpha.23 → 2.0.0-alpha.26

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 (364) hide show
  1. package/dist/module.js +3 -3
  2. package/dist/test-template-action/README.md +35 -0
  3. package/dist/test-template-action/action/index.html +40 -0
  4. package/dist/test-template-action/action/scripts.js +11 -0
  5. package/dist/test-template-action/action/styles.css +23 -0
  6. package/dist/test-template-action/images/extension_128.png +0 -0
  7. package/dist/test-template-action/images/extension_16.png +0 -0
  8. package/dist/test-template-action/images/extension_48.png +0 -0
  9. package/dist/test-template-action/manifest.json +21 -0
  10. package/dist/test-template-action/package.json +21 -0
  11. package/dist/test-template-action-chatgpt/.env.example +1 -0
  12. package/dist/test-template-action-chatgpt/README.md +35 -0
  13. package/dist/test-template-action-chatgpt/action/ActionApp.tsx +118 -0
  14. package/dist/test-template-action-chatgpt/action/index.html +13 -0
  15. package/dist/test-template-action-chatgpt/action/scripts.tsx +12 -0
  16. package/dist/test-template-action-chatgpt/action/styles.css +8 -0
  17. package/dist/test-template-action-chatgpt/images/chatgpt.png +0 -0
  18. package/dist/test-template-action-chatgpt/images/extension.png +0 -0
  19. package/dist/test-template-action-chatgpt/images/extension_128.png +0 -0
  20. package/dist/test-template-action-chatgpt/images/extension_16.png +0 -0
  21. package/dist/test-template-action-chatgpt/images/extension_48.png +0 -0
  22. package/dist/test-template-action-chatgpt/manifest.json +21 -0
  23. package/dist/test-template-action-chatgpt/package.json +30 -0
  24. package/dist/test-template-action-chatgpt/postcss.config.js +6 -0
  25. package/dist/test-template-action-chatgpt/tailwind.config.js +8 -0
  26. package/dist/test-template-action-chatgpt/tsconfig.json +22 -0
  27. package/dist/test-template-config-babel/README.md +35 -0
  28. package/dist/test-template-config-babel/babel.config.json +4 -0
  29. package/dist/test-template-config-babel/extension.config.js +17 -0
  30. package/dist/test-template-config-babel/images/babel.png +0 -0
  31. package/dist/test-template-config-babel/images/extension_128.png +0 -0
  32. package/dist/test-template-config-babel/images/extension_16.png +0 -0
  33. package/dist/test-template-config-babel/images/extension_48.png +0 -0
  34. package/dist/test-template-config-babel/manifest.json +15 -0
  35. package/dist/test-template-config-babel/newtab/index.html +40 -0
  36. package/dist/test-template-config-babel/newtab/scripts.js +11 -0
  37. package/dist/test-template-config-babel/newtab/styles.css +22 -0
  38. package/dist/test-template-config-babel/package.json +24 -0
  39. package/dist/test-template-config-stylelint/.stylelintrc.json +3 -0
  40. package/dist/test-template-config-stylelint/README.md +35 -0
  41. package/dist/test-template-config-stylelint/images/extension_128.png +0 -0
  42. package/dist/test-template-config-stylelint/images/extension_16.png +0 -0
  43. package/dist/test-template-config-stylelint/images/extension_48.png +0 -0
  44. package/dist/test-template-config-stylelint/images/stylelint.svg +1 -0
  45. package/dist/test-template-config-stylelint/manifest.json +15 -0
  46. package/dist/test-template-config-stylelint/newtab/index.html +40 -0
  47. package/dist/test-template-config-stylelint/newtab/scripts.js +11 -0
  48. package/dist/test-template-config-stylelint/newtab/styles.scss +20 -0
  49. package/dist/test-template-config-stylelint/package.json +24 -0
  50. package/dist/test-template-content/README.md +35 -0
  51. package/dist/test-template-content/background.js +21 -0
  52. package/dist/test-template-content/content/scripts.js +32 -0
  53. package/dist/test-template-content/content/styles.css +54 -0
  54. package/dist/test-template-content/images/extension_128.png +0 -0
  55. package/dist/test-template-content/images/extension_16.png +0 -0
  56. package/dist/test-template-content/images/extension_48.png +0 -0
  57. package/dist/test-template-content/manifest.json +35 -0
  58. package/dist/test-template-content/package.json +20 -0
  59. package/dist/test-template-content-css-module/README.md +35 -0
  60. package/dist/test-template-content-css-module/background.js +21 -0
  61. package/dist/test-template-content-css-module/content/Logo.module.css +11 -0
  62. package/dist/test-template-content-css-module/content/scripts.js +33 -0
  63. package/dist/test-template-content-css-module/content/styles.css +40 -0
  64. package/dist/test-template-content-css-module/images/extension_128.png +0 -0
  65. package/dist/test-template-content-css-module/images/extension_16.png +0 -0
  66. package/dist/test-template-content-css-module/images/extension_48.png +0 -0
  67. package/dist/test-template-content-css-module/manifest.json +35 -0
  68. package/dist/test-template-content-css-module/package.json +20 -0
  69. package/dist/test-template-content-extension-config/README.md +35 -0
  70. package/dist/test-template-content-extension-config/background.ts +1 -0
  71. package/dist/test-template-content-extension-config/content/ContentApp.tsx +82 -0
  72. package/dist/test-template-content-extension-config/content/scripts.tsx +17 -0
  73. package/dist/test-template-content-extension-config/content/styles.css +10 -0
  74. package/dist/test-template-content-extension-config/extension.config.js +22 -0
  75. package/dist/test-template-content-extension-config/images/chromeWindow.png +0 -0
  76. package/dist/test-template-content-extension-config/images/extension_128.png +0 -0
  77. package/dist/test-template-content-extension-config/images/extension_16.png +0 -0
  78. package/dist/test-template-content-extension-config/images/extension_48.png +0 -0
  79. package/dist/test-template-content-extension-config/images/logo.svg +9 -0
  80. package/dist/test-template-content-extension-config/images/tailwind.png +0 -0
  81. package/dist/test-template-content-extension-config/images/tailwind_bg.png +0 -0
  82. package/dist/test-template-content-extension-config/images/typescript.png +0 -0
  83. package/dist/test-template-content-extension-config/manifest.json +28 -0
  84. package/dist/test-template-content-extension-config/package.json +44 -0
  85. package/dist/test-template-content-extension-config/postcss.config.js +6 -0
  86. package/dist/test-template-content-extension-config/tailwind.config.js +8 -0
  87. package/dist/test-template-content-extension-config/tsconfig.json +22 -0
  88. package/dist/test-template-content-less/README.md +35 -0
  89. package/dist/test-template-content-less/background.js +21 -0
  90. package/dist/test-template-content-less/content/scripts.js +32 -0
  91. package/dist/test-template-content-less/content/styles.less +51 -0
  92. package/dist/test-template-content-less/images/extension_128.png +0 -0
  93. package/dist/test-template-content-less/images/extension_16.png +0 -0
  94. package/dist/test-template-content-less/images/extension_48.png +0 -0
  95. package/dist/test-template-content-less/manifest.json +35 -0
  96. package/dist/test-template-content-less/package.json +21 -0
  97. package/dist/test-template-content-main-world/README.md +35 -0
  98. package/dist/test-template-content-main-world/background.js +1 -0
  99. package/dist/test-template-content-main-world/content/scripts.js +20 -0
  100. package/dist/test-template-content-main-world/content/styles.css +46 -0
  101. package/dist/test-template-content-main-world/extension.config.js +8 -0
  102. package/dist/test-template-content-main-world/images/extension_128.png +0 -0
  103. package/dist/test-template-content-main-world/images/extension_16.png +0 -0
  104. package/dist/test-template-content-main-world/images/extension_48.png +0 -0
  105. package/dist/test-template-content-main-world/manifest.json +37 -0
  106. package/dist/test-template-content-main-world/package.json +20 -0
  107. package/dist/test-template-content-preact/README.md +35 -0
  108. package/dist/test-template-content-preact/background.ts +1 -0
  109. package/dist/test-template-content-preact/content/ContentApp.tsx +92 -0
  110. package/dist/test-template-content-preact/content/scripts.tsx +14 -0
  111. package/dist/test-template-content-preact/content/styles.css +10 -0
  112. package/dist/test-template-content-preact/images/chromeWindow.png +0 -0
  113. package/dist/test-template-content-preact/images/extension_128.png +0 -0
  114. package/dist/test-template-content-preact/images/extension_16.png +0 -0
  115. package/dist/test-template-content-preact/images/extension_48.png +0 -0
  116. package/dist/test-template-content-preact/images/preact.png +0 -0
  117. package/dist/test-template-content-preact/images/tailwind.png +0 -0
  118. package/dist/test-template-content-preact/images/tailwind_bg.png +0 -0
  119. package/dist/test-template-content-preact/images/typescript.png +0 -0
  120. package/dist/test-template-content-preact/manifest.json +31 -0
  121. package/dist/test-template-content-preact/package.json +29 -0
  122. package/dist/test-template-content-preact/postcss.config.js +6 -0
  123. package/dist/test-template-content-preact/tailwind.config.js +8 -0
  124. package/dist/test-template-content-preact/tsconfig.json +27 -0
  125. package/dist/test-template-content-react/README.md +35 -0
  126. package/dist/test-template-content-react/background.ts +1 -0
  127. package/dist/test-template-content-react/content/ContentApp.tsx +86 -0
  128. package/dist/test-template-content-react/content/scripts.tsx +17 -0
  129. package/dist/test-template-content-react/content/styles.css +10 -0
  130. package/dist/test-template-content-react/images/chromeWindow.png +0 -0
  131. package/dist/test-template-content-react/images/extension_128.png +0 -0
  132. package/dist/test-template-content-react/images/extension_16.png +0 -0
  133. package/dist/test-template-content-react/images/extension_48.png +0 -0
  134. package/dist/test-template-content-react/images/react.png +0 -0
  135. package/dist/test-template-content-react/images/tailwind.png +0 -0
  136. package/dist/test-template-content-react/images/tailwind_bg.png +0 -0
  137. package/dist/test-template-content-react/images/typescript.png +0 -0
  138. package/dist/test-template-content-react/manifest.json +28 -0
  139. package/dist/test-template-content-react/package.json +28 -0
  140. package/dist/test-template-content-react/postcss.config.js +6 -0
  141. package/dist/test-template-content-react/tailwind.config.js +8 -0
  142. package/dist/test-template-content-react/tsconfig.json +22 -0
  143. package/dist/test-template-content-sass/README.md +35 -0
  144. package/dist/test-template-content-sass/background.js +21 -0
  145. package/dist/test-template-content-sass/content/scripts.js +32 -0
  146. package/dist/test-template-content-sass/content/styles.scss +51 -0
  147. package/dist/test-template-content-sass/images/extension_128.png +0 -0
  148. package/dist/test-template-content-sass/images/extension_16.png +0 -0
  149. package/dist/test-template-content-sass/images/extension_48.png +0 -0
  150. package/dist/test-template-content-sass/manifest.json +35 -0
  151. package/dist/test-template-content-sass/package.json +21 -0
  152. package/dist/test-template-content-sass-module/README.md +35 -0
  153. package/dist/test-template-content-sass-module/background.js +21 -0
  154. package/dist/test-template-content-sass-module/content/Logo.module.scss +18 -0
  155. package/dist/test-template-content-sass-module/content/scripts.js +33 -0
  156. package/dist/test-template-content-sass-module/content/styles.scss +40 -0
  157. package/dist/test-template-content-sass-module/images/extension_128.png +0 -0
  158. package/dist/test-template-content-sass-module/images/extension_16.png +0 -0
  159. package/dist/test-template-content-sass-module/images/extension_48.png +0 -0
  160. package/dist/test-template-content-sass-module/manifest.json +35 -0
  161. package/dist/test-template-content-sass-module/package.json +21 -0
  162. package/dist/test-template-content-tailwind/README.md +35 -0
  163. package/dist/test-template-content-tailwind/background.js +21 -0
  164. package/dist/test-template-content-tailwind/content/content.js +45 -0
  165. package/dist/test-template-content-tailwind/content/scripts.js +6 -0
  166. package/dist/test-template-content-tailwind/content/styles.css +10 -0
  167. package/dist/test-template-content-tailwind/images/chromeWindow.png +0 -0
  168. package/dist/test-template-content-tailwind/images/extension_128.png +0 -0
  169. package/dist/test-template-content-tailwind/images/extension_16.png +0 -0
  170. package/dist/test-template-content-tailwind/images/extension_48.png +0 -0
  171. package/dist/test-template-content-tailwind/images/react.png +0 -0
  172. package/dist/test-template-content-tailwind/images/tailwind.png +0 -0
  173. package/dist/test-template-content-tailwind/images/tailwind_bg.png +0 -0
  174. package/dist/test-template-content-tailwind/manifest.json +35 -0
  175. package/dist/test-template-content-tailwind/package.json +23 -0
  176. package/dist/test-template-content-tailwind/postcss.config.js +6 -0
  177. package/dist/test-template-content-tailwind/tailwind.config.js +8 -0
  178. package/dist/test-template-content-typescript/README.md +35 -0
  179. package/dist/test-template-content-typescript/background.ts +26 -0
  180. package/dist/test-template-content-typescript/content/scripts.ts +33 -0
  181. package/dist/test-template-content-typescript/content/styles.css +51 -0
  182. package/dist/test-template-content-typescript/images/extension_128.png +0 -0
  183. package/dist/test-template-content-typescript/images/extension_16.png +0 -0
  184. package/dist/test-template-content-typescript/images/extension_48.png +0 -0
  185. package/dist/test-template-content-typescript/images/typescript.png +0 -0
  186. package/dist/test-template-content-typescript/manifest.json +35 -0
  187. package/dist/test-template-content-typescript/package.json +21 -0
  188. package/dist/test-template-content-typescript/tsconfig.json +22 -0
  189. package/dist/test-template-content-vue/README.md +35 -0
  190. package/dist/test-template-content-vue/background.ts +1 -0
  191. package/dist/test-template-content-vue/content/ContentApp.vue +90 -0
  192. package/dist/test-template-content-vue/content/scripts.ts +13 -0
  193. package/dist/test-template-content-vue/content/shims-vue.d.ts +6 -0
  194. package/dist/test-template-content-vue/content/styles.css +10 -0
  195. package/dist/test-template-content-vue/images/chromeWindow.png +0 -0
  196. package/dist/test-template-content-vue/images/extension_128.png +0 -0
  197. package/dist/test-template-content-vue/images/extension_16.png +0 -0
  198. package/dist/test-template-content-vue/images/extension_48.png +0 -0
  199. package/dist/test-template-content-vue/images/tailwind.png +0 -0
  200. package/dist/test-template-content-vue/images/tailwind_bg.png +0 -0
  201. package/dist/test-template-content-vue/images/typescript.png +0 -0
  202. package/dist/test-template-content-vue/images/vue.svg +8 -0
  203. package/dist/test-template-content-vue/manifest.json +31 -0
  204. package/dist/test-template-content-vue/package.json +25 -0
  205. package/dist/test-template-content-vue/postcss.config.js +6 -0
  206. package/dist/test-template-content-vue/tailwind.config.js +8 -0
  207. package/dist/test-template-content-vue/tsconfig.json +22 -0
  208. package/dist/test-template-declarative_net_request/README.md +35 -0
  209. package/dist/test-template-declarative_net_request/images/extension_128.png +0 -0
  210. package/dist/test-template-declarative_net_request/images/extension_16.png +0 -0
  211. package/dist/test-template-declarative_net_request/images/extension_48.png +0 -0
  212. package/dist/test-template-declarative_net_request/manifest.json +34 -0
  213. package/dist/test-template-declarative_net_request/package.json +21 -0
  214. package/dist/test-template-declarative_net_request/public/public_ruleset.json +72 -0
  215. package/dist/test-template-declarative_net_request/rules_1.json +72 -0
  216. package/dist/test-template-init/README.md +35 -0
  217. package/dist/test-template-init/manifest.json +7 -0
  218. package/dist/test-template-init/package.json +32 -0
  219. package/dist/test-template-locales/README.md +35 -0
  220. package/dist/test-template-locales/_locales/en/messages.json +10 -0
  221. package/dist/test-template-locales/_locales/pt_BR/messages.json +10 -0
  222. package/dist/test-template-locales/action/index.html +40 -0
  223. package/dist/test-template-locales/action/scripts.js +3 -0
  224. package/dist/test-template-locales/action/styles.css +23 -0
  225. package/dist/test-template-locales/images/extension_128.png +0 -0
  226. package/dist/test-template-locales/images/extension_16.png +0 -0
  227. package/dist/test-template-locales/images/extension_48.png +0 -0
  228. package/dist/test-template-locales/manifest.json +19 -0
  229. package/dist/test-template-locales/package.json +21 -0
  230. package/dist/test-template-new-less/README.md +35 -0
  231. package/dist/test-template-new-less/images/extension_128.png +0 -0
  232. package/dist/test-template-new-less/images/extension_16.png +0 -0
  233. package/dist/test-template-new-less/images/extension_48.png +0 -0
  234. package/dist/test-template-new-less/manifest.json +15 -0
  235. package/dist/test-template-new-less/newtab/index.html +40 -0
  236. package/dist/test-template-new-less/newtab/scripts.js +11 -0
  237. package/dist/test-template-new-less/newtab/styles.less +19 -0
  238. package/dist/test-template-new-less/package.json +21 -0
  239. package/dist/test-template-new-preact/README.md +35 -0
  240. package/dist/test-template-new-preact/images/extension_128.png +0 -0
  241. package/dist/test-template-new-preact/images/extension_16.png +0 -0
  242. package/dist/test-template-new-preact/images/extension_48.png +0 -0
  243. package/dist/test-template-new-preact/images/preact.png +0 -0
  244. package/dist/test-template-new-preact/manifest.json +15 -0
  245. package/dist/test-template-new-preact/newtab/NewTabApp.tsx +27 -0
  246. package/dist/test-template-new-preact/newtab/index.html +13 -0
  247. package/dist/test-template-new-preact/newtab/scripts.tsx +5 -0
  248. package/dist/test-template-new-preact/newtab/styles.css +32 -0
  249. package/dist/test-template-new-preact/package.json +29 -0
  250. package/dist/test-template-new-preact/tsconfig.json +22 -0
  251. package/dist/test-template-new-react/README.md +35 -0
  252. package/dist/test-template-new-react/images/extension_128.png +0 -0
  253. package/dist/test-template-new-react/images/extension_16.png +0 -0
  254. package/dist/test-template-new-react/images/extension_48.png +0 -0
  255. package/dist/test-template-new-react/images/react.png +0 -0
  256. package/dist/test-template-new-react/manifest.json +15 -0
  257. package/dist/test-template-new-react/newtab/NewTabApp.tsx +27 -0
  258. package/dist/test-template-new-react/newtab/index.html +13 -0
  259. package/dist/test-template-new-react/newtab/scripts.tsx +12 -0
  260. package/dist/test-template-new-react/newtab/styles.css +23 -0
  261. package/dist/test-template-new-react/package.json +28 -0
  262. package/dist/test-template-new-react/tsconfig.json +22 -0
  263. package/dist/test-template-new-sass/README.md +35 -0
  264. package/dist/test-template-new-sass/images/extension_128.png +0 -0
  265. package/dist/test-template-new-sass/images/extension_16.png +0 -0
  266. package/dist/test-template-new-sass/images/extension_48.png +0 -0
  267. package/dist/test-template-new-sass/manifest.json +15 -0
  268. package/dist/test-template-new-sass/newtab/index.html +40 -0
  269. package/dist/test-template-new-sass/newtab/scripts.js +11 -0
  270. package/dist/test-template-new-sass/newtab/styles.scss +19 -0
  271. package/dist/test-template-new-sass/package.json +22 -0
  272. package/dist/test-template-new-tailwind/README.md +35 -0
  273. package/dist/test-template-new-tailwind/images/chromeWindow.png +0 -0
  274. package/dist/test-template-new-tailwind/images/extension_128.png +0 -0
  275. package/dist/test-template-new-tailwind/images/extension_16.png +0 -0
  276. package/dist/test-template-new-tailwind/images/extension_48.png +0 -0
  277. package/dist/test-template-new-tailwind/images/react.png +0 -0
  278. package/dist/test-template-new-tailwind/images/tailwind.png +0 -0
  279. package/dist/test-template-new-tailwind/images/tailwind_bg.png +0 -0
  280. package/dist/test-template-new-tailwind/manifest.json +15 -0
  281. package/dist/test-template-new-tailwind/newtab/NewTabApp.tsx +67 -0
  282. package/dist/test-template-new-tailwind/newtab/index.html +13 -0
  283. package/dist/test-template-new-tailwind/newtab/scripts.tsx +12 -0
  284. package/dist/test-template-new-tailwind/newtab/styles.css +3 -0
  285. package/dist/test-template-new-tailwind/package.json +28 -0
  286. package/dist/test-template-new-tailwind/postcss.config.js +6 -0
  287. package/dist/test-template-new-tailwind/tailwind.config.js +8 -0
  288. package/dist/test-template-new-tailwind/tsconfig.json +22 -0
  289. package/dist/test-template-new-typescript/README.md +35 -0
  290. package/dist/test-template-new-typescript/images/extension_128.png +0 -0
  291. package/dist/test-template-new-typescript/images/extension_16.png +0 -0
  292. package/dist/test-template-new-typescript/images/extension_48.png +0 -0
  293. package/dist/test-template-new-typescript/images/typescript.png +0 -0
  294. package/dist/test-template-new-typescript/manifest.json +15 -0
  295. package/dist/test-template-new-typescript/newtab/index.html +25 -0
  296. package/dist/test-template-new-typescript/newtab/scripts.ts +10 -0
  297. package/dist/test-template-new-typescript/newtab/styles.css +18 -0
  298. package/dist/test-template-new-typescript/package.json +22 -0
  299. package/dist/test-template-new-typescript/tsconfig.json +22 -0
  300. package/dist/test-template-new-vue/README.md +35 -0
  301. package/dist/test-template-new-vue/images/extension_128.png +0 -0
  302. package/dist/test-template-new-vue/images/extension_16.png +0 -0
  303. package/dist/test-template-new-vue/images/extension_48.png +0 -0
  304. package/dist/test-template-new-vue/images/vue.svg +8 -0
  305. package/dist/test-template-new-vue/manifest.json +15 -0
  306. package/dist/test-template-new-vue/newtab/NewTabApp.vue +30 -0
  307. package/dist/test-template-new-vue/newtab/index.html +13 -0
  308. package/dist/test-template-new-vue/newtab/scripts.ts +7 -0
  309. package/dist/test-template-new-vue/newtab/styles.css +36 -0
  310. package/dist/test-template-new-vue/package.json +25 -0
  311. package/dist/test-template-new-vue/tsconfig.json +22 -0
  312. package/dist/test-template-sidebar/README.md +35 -0
  313. package/dist/test-template-sidebar/images/extension_128.png +0 -0
  314. package/dist/test-template-sidebar/images/extension_16.png +0 -0
  315. package/dist/test-template-sidebar/images/extension_48.png +0 -0
  316. package/dist/test-template-sidebar/manifest.json +37 -0
  317. package/dist/test-template-sidebar/package.json +21 -0
  318. package/dist/test-template-sidebar/puzzle.png +0 -0
  319. package/dist/test-template-sidebar/sidebar/index.html +39 -0
  320. package/dist/test-template-sidebar/sidebar/scripts.js +11 -0
  321. package/dist/test-template-sidebar/sidebar/styles.css +27 -0
  322. package/dist/test-template-sidebar/test_16.png +0 -0
  323. package/dist/test-template-sidebar/test_32.png +0 -0
  324. package/dist/test-template-sidebar/test_48.png +0 -0
  325. package/dist/test-template-sidebar/test_64.png +0 -0
  326. package/dist/test-template-special-folders-pages/README.md +35 -0
  327. package/dist/test-template-special-folders-pages/background.js +5 -0
  328. package/dist/test-template-special-folders-pages/images/extension_128.png +0 -0
  329. package/dist/test-template-special-folders-pages/images/extension_16.png +0 -0
  330. package/dist/test-template-special-folders-pages/images/extension_48.png +0 -0
  331. package/dist/test-template-special-folders-pages/images/notpublic-file.png +0 -0
  332. package/dist/test-template-special-folders-pages/manifest.json +26 -0
  333. package/dist/test-template-special-folders-pages/package.json +21 -0
  334. package/dist/test-template-special-folders-pages/pages/custom.html +8 -0
  335. package/dist/test-template-special-folders-pages/pages/main.css +18 -0
  336. package/dist/test-template-special-folders-pages/pages/main.html +16 -0
  337. package/dist/test-template-special-folders-pages/pages/main.js +1 -0
  338. package/dist/test-template-special-folders-pages/public/css/file.css +3 -0
  339. package/dist/test-template-special-folders-pages/public/html/file.html +8 -0
  340. package/dist/test-template-special-folders-pages/public/img/icon.png +0 -0
  341. package/dist/test-template-special-folders-pages/public/js/file.js +0 -0
  342. package/dist/test-template-special-folders-pages/sandbox/index.html +24 -0
  343. package/dist/test-template-special-folders-pages/sandbox/scripts.js +0 -0
  344. package/dist/test-template-special-folders-pages/sandbox/styles.css +1 -0
  345. package/dist/test-template-special-folders-scripts/README.md +35 -0
  346. package/dist/test-template-special-folders-scripts/background.js +24 -0
  347. package/dist/test-template-special-folders-scripts/images/extension_128.png +0 -0
  348. package/dist/test-template-special-folders-scripts/images/extension_16.png +0 -0
  349. package/dist/test-template-special-folders-scripts/images/extension_48.png +0 -0
  350. package/dist/test-template-special-folders-scripts/manifest.json +27 -0
  351. package/dist/test-template-special-folders-scripts/package.json +21 -0
  352. package/dist/test-template-special-folders-scripts/pages/index.css +5 -0
  353. package/dist/test-template-special-folders-scripts/pages/index.html +3 -0
  354. package/dist/test-template-special-folders-scripts/pages/index.js +1 -0
  355. package/dist/test-template-special-folders-scripts/public/extension.png +0 -0
  356. package/dist/test-template-special-folders-scripts/scripts/content-script.js +3 -0
  357. package/dist/test-template-storage/README.md +35 -0
  358. package/dist/test-template-storage/images/extension_128.png +0 -0
  359. package/dist/test-template-storage/images/extension_16.png +0 -0
  360. package/dist/test-template-storage/images/extension_48.png +0 -0
  361. package/dist/test-template-storage/manifest.json +15 -0
  362. package/dist/test-template-storage/package.json +21 -0
  363. package/dist/test-template-storage/schema.json +44 -0
  364. package/package.json +3 -3
@@ -0,0 +1,33 @@
1
+ import extensionJsLogo from '../images/extension_128.png'
2
+ import './styles.css'
3
+
4
+ console.log('hello from content_scripts')
5
+
6
+ document.body.innerHTML += `
7
+ <div class="content_script-box">
8
+ <img class="content_script-logo" src=${extensionJsLogo} />
9
+ <h1 class="content_script-title">
10
+ Change the background-color ⬇
11
+ </h1>
12
+ <input type="color" class="content_script-colorPicker" id="colorPicker">
13
+ <p class="content_script-description">
14
+ Learn more about creating cross-browser extensions at <a
15
+ className="underline hover:no-underline"
16
+ href="https://extension.js.org"
17
+ target="_blank"
18
+ >
19
+ https://extension.js.org
20
+ </a>
21
+ </p>
22
+ </div>
23
+ `
24
+
25
+ document.getElementById('colorPicker')?.addEventListener('input', (event) => {
26
+ chrome.runtime
27
+ .sendMessage({
28
+ action: 'changeBackgroundColor',
29
+ // @ts-expect-error
30
+ color: event.target?.value
31
+ })
32
+ .catch(console.error)
33
+ })
@@ -0,0 +1,51 @@
1
+ .content_script-box {
2
+ background: white;
3
+ position: fixed;
4
+ right: 0;
5
+ bottom: 0;
6
+ z-index: 9;
7
+ width: 315px;
8
+ height: 345px;
9
+ margin: 1em;
10
+ padding: 1em;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ flex-direction: column;
15
+ gap: 1em;
16
+ box-shadow: 0px 0px 4px 1px #ccc;
17
+ }
18
+
19
+ .content_script-logo {
20
+ width: 90px;
21
+ align-self: flex-start;
22
+ filter: grayscale(1);
23
+ transition: filter 2s;
24
+ }
25
+
26
+ .content_script-logo:hover {
27
+ filter: grayscale(0);
28
+ }
29
+
30
+ .content_script-title {
31
+ font-size: 1.85em;
32
+ color: #333;
33
+ line-height: 1.1;
34
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
35
+ 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
36
+ font-weight: 700;
37
+ overflow-wrap: break-word;
38
+ word-wrap: break-word;
39
+ -ms-word-break: break-all;
40
+ word-break: break-word;
41
+ }
42
+
43
+ .content_script-description {
44
+ color: #999;
45
+ }
46
+
47
+ .content_script-colorPicker {
48
+ display: block;
49
+ width: 100%;
50
+ height: 50px;
51
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "manifest_version": 3,
3
+ "version": "0.0.1",
4
+ "name": "test-template-content-typescript",
5
+ "description": "An Extension.js example.",
6
+ "icons": {
7
+ "16": "images/extension_16.png",
8
+ "48": "images/extension_48.png",
9
+ "128": "images/extension_128.png"
10
+ },
11
+ "permissions": [
12
+ "activeTab",
13
+ "scripting"
14
+ ],
15
+ "host_permissions": [
16
+ "<all_urls>"
17
+ ],
18
+ "background": {
19
+ "chromium:service_worker": "background.ts",
20
+ "firefox:scripts": [
21
+ "background.ts"
22
+ ]
23
+ },
24
+ "content_scripts": [
25
+ {
26
+ "matches": [
27
+ "<all_urls>"
28
+ ],
29
+ "js": [
30
+ "content/scripts.ts"
31
+ ]
32
+ }
33
+ ],
34
+ "author": "Your Name"
35
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "private": true,
3
+ "name": "test-template-content-typescript",
4
+ "description": "An Extension.js example.",
5
+ "version": "0.0.1",
6
+ "author": {
7
+ "name": "Your Name",
8
+ "email": "your@email.com",
9
+ "url": "https://yourwebsite.com"
10
+ },
11
+ "devDependencies": {
12
+ "typescript": "5.3.3",
13
+ "extension": "latest"
14
+ },
15
+ "scripts": {
16
+ "dev": "extension dev",
17
+ "start": "extension start",
18
+ "build": "extension build"
19
+ },
20
+ "dependencies": {}
21
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowJs": true,
4
+ "allowSyntheticDefaultImports": true,
5
+ "esModuleInterop": true,
6
+ "forceConsistentCasingInFileNames": true,
7
+ "isolatedModules": true,
8
+ "jsx": "react-jsx",
9
+ "lib": ["dom", "dom.iterable", "esnext"],
10
+ "moduleResolution": "node",
11
+ "module": "esnext",
12
+ "noEmit": true,
13
+ "resolveJsonModule": true,
14
+ "strict": true,
15
+ "target": "esnext",
16
+ "verbatimModuleSyntax": true,
17
+ "useDefineForClassFields": true,
18
+ "skipLibCheck": true
19
+ },
20
+ "include": ["./"],
21
+ "exclude": ["node_modules", "dist"]
22
+ }
@@ -0,0 +1,35 @@
1
+ # test-template-content-vue
2
+
3
+ > An Extension.js example.
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run the following scripts:
8
+
9
+ ### pnpm dev
10
+
11
+ **Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
12
+
13
+ ```bash
14
+ pnpm dev
15
+ ```
16
+
17
+ ### pnpm start
18
+
19
+ **Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
20
+
21
+ ```bash
22
+ pnpm start
23
+ ```
24
+
25
+ ### pnpm build
26
+
27
+ **Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
28
+
29
+ ```bash
30
+ pnpm build
31
+ ```
32
+
33
+ ## Learn More
34
+
35
+ To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
@@ -0,0 +1 @@
1
+ console.log('Hello from the background script!')
@@ -0,0 +1,90 @@
1
+ <script lang="ts" setup>
2
+ import {ref} from 'vue'
3
+
4
+ const isdialogOpen = ref(true)
5
+ const setIsDialogOpen = (value: boolean) => (isdialogOpen.value = value)
6
+ </script>
7
+ <template>
8
+ <div v-if="isdialogOpen">
9
+ <div className="mx-auto max-w-7xl md:px-0 lg:p-6">
10
+ <div
11
+ className="relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl lg:rounded-3xl md:pt-24 md:h-full sm:h-[100vh] lg:flex lg:gap-x-20 lg:px-24 lg:pt-0"
12
+ >
13
+ <div
14
+ className="absolute z-20 top-0 inset-x-0 flex justify-center overflow-hidden pointer-events-none"
15
+ >
16
+ <div className="w-[108rem] flex-none flex justify-end">
17
+ <picture>
18
+ <img
19
+ src="../images/tailwind_bg.png"
20
+ alt=""
21
+ className="w-[90rem] flex-none max-w-none hidden dark:block"
22
+ decoding="async"
23
+ />
24
+ </picture>
25
+ </div>
26
+ </div>
27
+ <div
28
+ className="mx-auto max-w-md text-center lg:py-12 lg:mx-0 lg:flex-auto lg:text-left"
29
+ >
30
+ <div
31
+ className="flex items-center justify-center space-x-4 my-4 mx-auto"
32
+ >
33
+ <img
34
+ alt="Vue logo"
35
+ src="../images/vue.svg"
36
+ className="relative inline-block w-12"
37
+ />
38
+ <div className="text-3xl text-white">+</div>
39
+ <img
40
+ alt="TypeScript logo"
41
+ src="../images/typescript.png"
42
+ className="relative inline-block w-12"
43
+ />
44
+ <div className="text-3xl text-white">+</div>
45
+ <img
46
+ alt="Tailwind logo"
47
+ src="../images/tailwind.png"
48
+ className="relative inline-block w-12"
49
+ />
50
+ </div>
51
+ <h2
52
+ className="text-3xl font-bold tracking-tight text-white sm:text-4xl"
53
+ >
54
+ This is a content script running Vue, TypeScript, and Tailwind.css.
55
+ </h2>
56
+ <p className="mt-6 text-lg leading-8 text-gray-300">
57
+ Learn more about creating cross-browser extensions by
58
+ <button
59
+ @click="setIsDialogOpen(false)"
60
+ className="underline hover:no-underline
61
+ "
62
+ >
63
+ closing this hint
64
+ </button>
65
+ .
66
+ </p>
67
+ </div>
68
+ <div className="relative mt-16 h-80 lg:mt-8">
69
+ <img
70
+ className="absolute left-0 top-0 w-[57rem] max-w-none rounded-md bg-white/5 ring-1 ring-white/10"
71
+ src="../images/chromeWindow.png"
72
+ alt="Chrome window screenshot"
73
+ width="1824"
74
+ height="1080"
75
+ />
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ <div v-else>
81
+ <div className="mx-auto p-6">
82
+ <button
83
+ @click="setIsDialogOpen(true)"
84
+ className="bg-white rounded-md p-3 text-sm font-semibold text-gray-900 shadow-sm hover:bg-gray-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white"
85
+ >
86
+ 🧩 Open content script hint <span aria-hidden="true">+</span>
87
+ </button>
88
+ </div>
89
+ </div>
90
+ </template>
@@ -0,0 +1,13 @@
1
+ import {createApp} from 'vue'
2
+ import ContentApp from './ContentApp.vue'
3
+ import './styles.css'
4
+
5
+ function initial() {
6
+ const rootDiv = document.createElement('div')
7
+ rootDiv.id = 'extension-root'
8
+ document.body.appendChild(rootDiv)
9
+
10
+ createApp(ContentApp).mount(rootDiv)
11
+ }
12
+
13
+ setTimeout(initial, 1000)
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ declare module '*.vue' {
3
+ import type {DefineComponent} from 'vue'
4
+ const component: DefineComponent<{}, {}, any>
5
+ export default component
6
+ }
@@ -0,0 +1,10 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ #extension-root {
6
+ position: fixed;
7
+ bottom: 0;
8
+ right: 0;
9
+ z-index: 99999;
10
+ }
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128">
2
+ <style>
3
+ .st0 { fill: #42B883; }
4
+ .st1 { fill: #35495E; }
5
+ </style>
6
+ <path class="st0" d="M78.8,10L64,35.4L49.2,10H0l64,110l64-110C128,10,78.8,10,78.8,10z" />
7
+ <path class="st1" d="M78.8,10L64,35.4L49.2,10H25.6L64,76l38.4-66H78.8z" />
8
+ </svg>
@@ -0,0 +1,31 @@
1
+ {
2
+ "manifest_version": 3,
3
+ "version": "0.0.1",
4
+ "name": "test-template-content-vue",
5
+ "description": "An Extension.js example.",
6
+ "icons": {
7
+ "16": "images/extension_16.png",
8
+ "48": "images/extension_48.png",
9
+ "128": "images/extension_128.png"
10
+ },
11
+ "background": {
12
+ "chromium:service_worker": "background.ts",
13
+ "firefox:scripts": [
14
+ "background.ts"
15
+ ]
16
+ },
17
+ "content_scripts": [
18
+ {
19
+ "matches": [
20
+ "https://extension.js.org/*"
21
+ ],
22
+ "js": [
23
+ "./content/scripts.ts"
24
+ ],
25
+ "css": [
26
+ "./content/styles.css"
27
+ ]
28
+ }
29
+ ],
30
+ "author": "Your Name"
31
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "private": true,
3
+ "name": "test-template-content-vue",
4
+ "description": "An Extension.js example.",
5
+ "version": "0.0.1",
6
+ "author": {
7
+ "name": "Your Name",
8
+ "email": "your@email.com",
9
+ "url": "https://yourwebsite.com"
10
+ },
11
+ "license": "MIT",
12
+ "dependencies": {
13
+ "vue": "^3.4.27",
14
+ "tailwindcss": "^3.4.1"
15
+ },
16
+ "devDependencies": {
17
+ "typescript": "5.3.3",
18
+ "extension": "latest"
19
+ },
20
+ "scripts": {
21
+ "dev": "extension dev",
22
+ "start": "extension start",
23
+ "build": "extension build"
24
+ }
25
+ }
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {}
5
+ }
6
+ }
@@ -0,0 +1,8 @@
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: ['**/*.vue'],
4
+ theme: {
5
+ extend: {}
6
+ },
7
+ plugins: []
8
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowJs": true,
4
+ "allowSyntheticDefaultImports": true,
5
+ "esModuleInterop": true,
6
+ "forceConsistentCasingInFileNames": true,
7
+ "isolatedModules": true,
8
+ "jsx": "react-jsx",
9
+ "lib": ["dom", "dom.iterable", "esnext"],
10
+ "moduleResolution": "node",
11
+ "module": "esnext",
12
+ "noEmit": true,
13
+ "resolveJsonModule": true,
14
+ "strict": true,
15
+ "target": "esnext",
16
+ "verbatimModuleSyntax": true,
17
+ "useDefineForClassFields": true,
18
+ "skipLibCheck": true
19
+ },
20
+ "include": ["./"],
21
+ "exclude": ["node_modules", "dist"]
22
+ }
@@ -0,0 +1,35 @@
1
+ # test-template-declarative_net_request
2
+
3
+ > An Extension.js example.
4
+
5
+ ## Available Scripts
6
+
7
+ In the project directory, you can run the following scripts:
8
+
9
+ ### pnpm dev
10
+
11
+ **Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
12
+
13
+ ```bash
14
+ pnpm dev
15
+ ```
16
+
17
+ ### pnpm start
18
+
19
+ **Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
20
+
21
+ ```bash
22
+ pnpm start
23
+ ```
24
+
25
+ ### pnpm build
26
+
27
+ **Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
28
+
29
+ ```bash
30
+ pnpm build
31
+ ```
32
+
33
+ ## Learn More
34
+
35
+ To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "test-template-declarative_net_request",
3
+ "version": "0.0.1",
4
+ "manifest_version": 3,
5
+ "description": "An Extension.js example.",
6
+ "icons": {
7
+ "16": "images/extension_16.png",
8
+ "48": "images/extension_48.png",
9
+ "128": "images/extension_128.png"
10
+ },
11
+ "declarative_net_request": {
12
+ "rule_resources": [
13
+ {
14
+ "id": "ruleset_1",
15
+ "enabled": true,
16
+ "path": "rules_1.json"
17
+ },
18
+ {
19
+ "id": "public_rule_1",
20
+ "enabled": true,
21
+ "path": "public/public_ruleset.json"
22
+ }
23
+ ]
24
+ },
25
+ "permissions": [
26
+ "declarativeNetRequest",
27
+ "declarativeNetRequestFeedback",
28
+ "declarativeNetRequestWithHostAccess"
29
+ ],
30
+ "host_permissions": [
31
+ "https://developer.chrome.com/"
32
+ ],
33
+ "author": "Your Name"
34
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "private": true,
3
+ "name": "test-template-declarative_net_request",
4
+ "description": "An Extension.js example.",
5
+ "version": "0.0.1",
6
+ "author": {
7
+ "name": "Your Name",
8
+ "email": "your@email.com",
9
+ "url": "https://yourwebsite.com"
10
+ },
11
+ "license": "MIT",
12
+ "scripts": {
13
+ "dev": "extension dev",
14
+ "start": "extension start",
15
+ "build": "extension build"
16
+ },
17
+ "dependencies": {},
18
+ "devDependencies": {
19
+ "extension": "latest"
20
+ }
21
+ }
@@ -0,0 +1,72 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "priority": 1,
5
+ "action": {
6
+ "type": "redirect",
7
+ "redirect": {
8
+ "url": "https://developer.chrome.com/docs/extensions/mv3/intro/"
9
+ }
10
+ },
11
+ "condition": {
12
+ "urlFilter": "https://developer.chrome.com/docs/extensions/mv2/",
13
+ "resourceTypes": ["main_frame"]
14
+ }
15
+ },
16
+ {
17
+ "id": 2,
18
+ "priority": 1,
19
+ "action": {
20
+ "type": "redirect",
21
+ "redirect": {
22
+ "url": "https://developer.chrome.com/docs/extensions/reference/action/"
23
+ }
24
+ },
25
+ "condition": {
26
+ "urlFilter": "https://developer.chrome.com/docs/extensions/reference/browserAction/",
27
+ "resourceTypes": ["main_frame"]
28
+ }
29
+ },
30
+ {
31
+ "id": 3,
32
+ "priority": 1,
33
+ "action": {
34
+ "type": "redirect",
35
+ "redirect": {
36
+ "url": "https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/"
37
+ }
38
+ },
39
+ "condition": {
40
+ "urlFilter": "https://developer.chrome.com/docs/extensions/reference/declarativeWebRequest/",
41
+ "resourceTypes": ["main_frame"]
42
+ }
43
+ },
44
+ {
45
+ "id": 4,
46
+ "priority": 1,
47
+ "action": {
48
+ "type": "redirect",
49
+ "redirect": {
50
+ "url": "https://developer.chrome.com/docs/extensions/reference/action/"
51
+ }
52
+ },
53
+ "condition": {
54
+ "urlFilter": "https://developer.chrome.com/docs/extensions/reference/pageAction/",
55
+ "resourceTypes": ["main_frame"]
56
+ }
57
+ },
58
+ {
59
+ "id": 5,
60
+ "priority": 1,
61
+ "action": {
62
+ "type": "redirect",
63
+ "redirect": {
64
+ "url": "https://developer.chrome.com/docs/extensions/reference/declarativeNetRequest/"
65
+ }
66
+ },
67
+ "condition": {
68
+ "urlFilter": "https://developer.chrome.com/docs/extensions/reference/webRequest/",
69
+ "resourceTypes": ["main_frame"]
70
+ }
71
+ }
72
+ ]