studiocms 0.1.0-beta.30 → 0.1.0-beta.31

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 (912) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +17 -9
  3. package/dist/cli/add/index.d.ts +3 -3
  4. package/dist/cli/add/index.js +9 -16
  5. package/dist/cli/add/npm-utils.d.ts +6 -6
  6. package/dist/cli/add/tryToInstallPlugins.d.ts +1 -1
  7. package/dist/cli/add/tryToInstallPlugins.js +4 -1
  8. package/dist/cli/add/updateStudioCMSConfig.d.ts +1 -1
  9. package/dist/cli/add/validatePlugins.d.ts +1 -1
  10. package/dist/cli/crypto/genJWT/index.d.ts +1 -2
  11. package/dist/cli/crypto/genJWT/index.js +1 -6
  12. package/dist/cli/crypto/index.d.ts +1 -1
  13. package/dist/cli/debug/index.d.ts +4 -0
  14. package/dist/cli/debug/index.js +94 -0
  15. package/dist/cli/getTurso/index.d.ts +3 -1
  16. package/dist/cli/getTurso/index.js +19 -6
  17. package/dist/cli/index.js +11 -1
  18. package/dist/cli/init/index.d.ts +1 -2
  19. package/dist/cli/init/index.js +1 -6
  20. package/dist/cli/init/steps/env.js +258 -219
  21. package/dist/cli/init/steps/next.d.ts +1 -1
  22. package/dist/cli/init/steps/next.js +8 -1
  23. package/dist/cli/migrator/index.d.ts +10 -0
  24. package/dist/cli/migrator/index.js +213 -0
  25. package/dist/cli/users/index.d.ts +1 -6
  26. package/dist/cli/users/index.js +27 -62
  27. package/dist/cli/users/steps/createUsers.d.ts +11 -0
  28. package/dist/cli/users/steps/{libsql/createUsers.js → createUsers.js} +41 -23
  29. package/dist/cli/users/steps/modifyUsers.d.ts +7 -0
  30. package/dist/cli/users/steps/{libsql/modifyUsers.js → modifyUsers.js} +68 -36
  31. package/dist/cli/users/steps/next.d.ts +1 -1
  32. package/dist/cli/utils/checkRequiredEnvVars.d.ts +0 -4
  33. package/dist/cli/utils/checkRequiredEnvVars.js +1 -18
  34. package/dist/cli/utils/context.d.ts +1 -1
  35. package/dist/cli/utils/debugOpt.d.ts +5 -0
  36. package/dist/cli/utils/debugOpt.js +9 -0
  37. package/dist/cli/utils/getCliDbClient.d.ts +119 -0
  38. package/dist/cli/utils/getCliDbClient.js +16 -0
  39. package/dist/cli/utils/intro.d.ts +1 -1
  40. package/dist/cli/utils/loadConfig.d.ts +71 -0
  41. package/dist/cli/utils/loadConfig.js +17 -0
  42. package/dist/cli/utils/studiocmsEnv.d.ts +36 -9
  43. package/dist/cli/utils/studiocmsEnv.js +60 -28
  44. package/dist/config.d.ts +1 -53
  45. package/dist/consts.d.ts +5 -0
  46. package/dist/consts.js +15 -2
  47. package/dist/db/index.d.ts +158 -0
  48. package/dist/db/index.js +67 -0
  49. package/dist/db/plugins.d.ts +124 -0
  50. package/dist/db/plugins.js +30 -0
  51. package/dist/effect.d.ts +0 -1
  52. package/dist/effect.js +0 -1
  53. package/dist/global.d.ts +1 -4
  54. package/dist/handlers/astroConfigCheck.d.ts +1 -2
  55. package/dist/handlers/astroConfigCheck.js +0 -6
  56. package/dist/handlers/changelog.d.ts +3 -0
  57. package/dist/{frontend → handlers/frontend}/routes.d.ts +1 -1
  58. package/dist/handlers/frontend/routes.js +381 -0
  59. package/dist/{frontend → handlers/frontend}/utils.d.ts +2 -1
  60. package/dist/{frontend → handlers/frontend}/utils.js +12 -1
  61. package/dist/handlers/plugin-components/Recently-created-pages.astro +1 -1
  62. package/dist/handlers/plugin-components/Recently-signed-up.astro +1 -1
  63. package/dist/handlers/plugin-components/Recently-updated-pages.astro +1 -1
  64. package/dist/handlers/plugin-components/Totals.astro +2 -2
  65. package/dist/handlers/plugin-i18n/zh.d.ts +11 -11
  66. package/dist/handlers/plugin-i18n/zh.js +11 -11
  67. package/dist/handlers/pluginHandler.d.ts +7 -5
  68. package/dist/handlers/pluginHandler.js +223 -161
  69. package/dist/handlers/routeHandler.d.ts +1 -1
  70. package/dist/handlers/routeHandler.js +1 -1
  71. package/dist/handlers/setupDbStudio.d.ts +1 -0
  72. package/dist/handlers/setupDbStudio.js +20 -0
  73. package/dist/index.d.ts +8 -56
  74. package/dist/index.js +302 -300
  75. package/dist/integrations/dynamic-sitemap/index.js +3 -2
  76. package/dist/integrations/node-namespace.js +9 -9
  77. package/dist/integrations/plugins.d.ts +0 -1
  78. package/dist/integrations/plugins.js +0 -1
  79. package/{src/integrations/webVitals/consts.ts → dist/plugins/analytics/assets/consts.d.ts} +14 -47
  80. package/dist/plugins/analytics/assets/consts.js +22 -0
  81. package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/shared.d.ts +7 -0
  82. package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildDataObject.d.ts +7 -0
  83. package/dist/plugins/analytics/assets/utils/checkDate.d.ts +11 -0
  84. package/dist/plugins/analytics/assets/webVital.d.ts +30 -0
  85. package/dist/plugins/analytics/assets/webVital.js +53 -0
  86. package/dist/plugins/analytics/client-script.d.ts +1 -0
  87. package/dist/plugins/analytics/client-script.js +28 -0
  88. package/dist/plugins/analytics/consts.d.ts +4 -0
  89. package/dist/plugins/analytics/consts.js +4 -0
  90. package/dist/plugins/analytics/db-client.d.ts +128 -0
  91. package/dist/plugins/analytics/db-client.js +8 -0
  92. package/dist/plugins/analytics/i18n/zh.d.ts +24 -0
  93. package/dist/plugins/analytics/i18n/zh.js +27 -0
  94. package/dist/plugins/analytics/index.d.ts +11 -0
  95. package/dist/plugins/analytics/index.js +95 -0
  96. package/dist/plugins/analytics/schemas.d.ts +65 -0
  97. package/dist/plugins/analytics/schemas.js +20 -0
  98. package/dist/plugins/analytics/table.d.ts +51 -0
  99. package/dist/plugins/analytics/table.js +31 -0
  100. package/dist/plugins.d.ts +2 -2
  101. package/dist/schemas/config/auth.d.ts +22 -57
  102. package/dist/schemas/config/auth.js +7 -28
  103. package/dist/schemas/config/dashboard.d.ts +37 -7
  104. package/dist/schemas/config/dashboard.js +4 -31
  105. package/dist/schemas/config/db.d.ts +19 -0
  106. package/dist/schemas/config/db.js +7 -0
  107. package/dist/schemas/config/developer.d.ts +11 -5
  108. package/dist/schemas/config/developer.js +0 -16
  109. package/dist/schemas/config/index.d.ts +214 -92
  110. package/dist/schemas/config/index.js +19 -65
  111. package/dist/schemas/config/sdk.d.ts +32 -17
  112. package/dist/schemas/config/sdk.js +0 -5
  113. package/dist/schemas/plugins/index.d.ts +2494 -1735
  114. package/dist/schemas/plugins/index.js +35 -17
  115. package/dist/schemas/plugins/shared.d.ts +28 -28
  116. package/dist/test-utils.d.ts +45 -9
  117. package/dist/test-utils.js +119 -13
  118. package/dist/theme.d.ts +2 -0
  119. package/dist/toolbar/db-viewer/config.d.ts +20 -0
  120. package/dist/toolbar/db-viewer/config.js +25 -0
  121. package/dist/toolbar/db-viewer/db-shared-types.d.ts +11 -0
  122. package/dist/toolbar/db-viewer/index.d.ts +2 -0
  123. package/dist/toolbar/db-viewer/index.js +39 -0
  124. package/dist/toolbar/db-viewer/studio/connection.d.ts +5 -0
  125. package/dist/toolbar/db-viewer/studio/connection.js +32 -0
  126. package/dist/toolbar/db-viewer/studio/drivers/base.d.ts +25 -0
  127. package/dist/toolbar/db-viewer/studio/drivers/base.js +5 -0
  128. package/dist/toolbar/db-viewer/studio/drivers/mysql.d.ts +22 -0
  129. package/dist/toolbar/db-viewer/studio/drivers/mysql.js +211 -0
  130. package/dist/toolbar/db-viewer/studio/drivers/postgres.d.ts +13 -0
  131. package/dist/toolbar/db-viewer/studio/drivers/postgres.js +62 -0
  132. package/dist/toolbar/db-viewer/studio/drivers/sqlite.d.ts +19 -0
  133. package/dist/toolbar/db-viewer/studio/drivers/sqlite.js +107 -0
  134. package/dist/toolbar/db-viewer/studio/index.d.ts +11 -0
  135. package/dist/toolbar/db-viewer/studio/index.js +84 -0
  136. package/dist/toolbar/db-viewer/studio/type.d.ts +32 -0
  137. package/dist/toolbar/db-viewer/viewer.d.ts +10 -0
  138. package/dist/toolbar/db-viewer/viewer.js +79 -0
  139. package/dist/toolbar/utils/app-utils.d.ts +22 -0
  140. package/dist/toolbar/utils/app-utils.js +40 -0
  141. package/dist/types.d.ts +9 -1
  142. package/dist/utils/effects/smtp.d.ts +3 -7
  143. package/dist/utils/effects/smtp.js +4 -7
  144. package/dist/virtual.d.ts +118 -115
  145. package/dist/virtuals/auth/core.d.ts +4 -40
  146. package/dist/virtuals/auth/core.js +4 -4
  147. package/dist/virtuals/auth/types.d.ts +2 -2
  148. package/dist/virtuals/auth/verify-email.d.ts +17 -17
  149. package/dist/virtuals/auth/verify-email.js +1 -1
  150. package/dist/virtuals/i18n/client.d.ts +11 -0
  151. package/dist/virtuals/i18n/config.d.ts +11 -0
  152. package/dist/virtuals/i18n/config.js +2 -1
  153. package/dist/virtuals/i18n/translations/en.json +12 -1
  154. package/dist/virtuals/i18n/translations/zh.json +72 -72
  155. package/dist/virtuals/i18n/v-files.d.ts +5 -0
  156. package/dist/virtuals/i18n/v-files.js +1 -0
  157. package/dist/virtuals/lib/headDefaults.d.ts +1 -1
  158. package/dist/virtuals/lib/routeMap.d.ts +7 -0
  159. package/dist/virtuals/lib/routeMap.js +8 -1
  160. package/dist/virtuals/mailer/index.d.ts +10 -10
  161. package/dist/virtuals/notifier/index.d.ts +6 -6
  162. package/dist/virtuals/plugins/frontend-navigation.js +1 -2
  163. package/dist/virtuals/scripts/user-quick-tools.d.ts +1 -0
  164. package/dist/virtuals/scripts/user-quick-tools.js +4 -1
  165. package/dist/virtuals/sdk/index.d.ts +156 -71
  166. package/dist/virtuals/sdk/index.js +38 -11
  167. package/dist/virtuals/sdk/types.d.ts +4 -0
  168. package/dist/virtuals/sdk/types.js +1 -0
  169. package/dist/virtuals/stubs/config.stub.js +1 -0
  170. package/dist/virtuals/template-engine/index.d.ts +1 -1
  171. package/dist/virtuals/utils.js +2 -2
  172. package/frontend/components/Ambients.astro +14 -0
  173. package/{dist/frontend → frontend}/components/dashboard/DashboardGrid.astro +3 -3
  174. package/{src/frontend → frontend}/components/dashboard/DashboardGridItem.astro +2 -2
  175. package/{src/frontend → frontend}/components/dashboard/DashboardPageHeader.astro +1 -1
  176. package/{src/frontend → frontend}/components/dashboard/Footer.astro +1 -1
  177. package/{dist/frontend → frontend}/components/dashboard/LoginChecker.astro +1 -1
  178. package/{src/frontend → frontend}/components/dashboard/configuration/ConfigForm.astro +2 -2
  179. package/{dist/frontend → frontend}/components/dashboard/content-mgmt/CreateFolder.astro +8 -1
  180. package/{src/frontend → frontend}/components/dashboard/content-mgmt/CreatePage.astro +12 -8
  181. package/{src/frontend → frontend}/components/dashboard/content-mgmt/EditFolder.astro +10 -3
  182. package/{dist/frontend → frontend}/components/dashboard/content-mgmt/EditPage.astro +23 -17
  183. package/{src/frontend → frontend}/components/dashboard/content-mgmt/InnerSidebarElement.astro +2 -2
  184. package/{src/frontend → frontend}/components/dashboard/content-mgmt/PageHeader.astro +4 -4
  185. package/{dist/frontend → frontend}/components/dashboard/content-mgmt/PageList.astro +3 -3
  186. package/frontend/components/dashboard/content-mgmt/PluginFields.astro +7 -0
  187. package/{src/frontend → frontend}/components/dashboard/content-mgmt/runtime.ts +2 -2
  188. package/{src/frontend → frontend}/components/dashboard/content-mgmt/shared.ts +0 -9
  189. package/frontend/components/dashboard/plugins/SettingsRenderer.astro +7 -0
  190. package/{dist/frontend → frontend}/components/dashboard/profile/Notifications.astro +3 -3
  191. package/{src/frontend → frontend}/components/dashboard/sidebar/VersionCheck.astro +2 -2
  192. package/{src/frontend → frontend}/components/dashboard/sidebar-modals/VersionModal.astro +2 -2
  193. package/{src/frontend → frontend}/components/dashboard/sidebarConfig.ts +6 -2
  194. package/{src/virtuals/scripts/template-editor.ts → frontend/components/dashboard/smtp-config/TemplateEditor.astro} +112 -9
  195. package/{src/frontend → frontend}/components/dashboard/user-mgmt/InnerSidebarElement.astro +2 -2
  196. package/{dist/frontend → frontend}/components/dashboard/user-mgmt/RankCheck.astro +1 -1
  197. package/{dist/frontend → frontend}/components/dashboard/user-mgmt/UserListItem.astro +2 -2
  198. package/frontend/components/shared/BaseBody.astro +7 -0
  199. package/frontend/components/shared/BaseHead.astro +35 -0
  200. package/{dist/frontend/components/dashboard/plugins/SettingsRenderer.astro → frontend/components/shared/DynamicSettingsRenderer.astro} +1 -1
  201. package/{src/frontend → frontend}/components/shared/SSRUser.astro +7 -31
  202. package/frontend/env.d.ts +3 -0
  203. package/{dist/frontend → frontend}/layouts/AuthLayout.astro +6 -25
  204. package/frontend/layouts/BaseLayout.astro +24 -0
  205. package/{dist/frontend → frontend}/layouts/DashboardLayout.astro +50 -47
  206. package/frontend/layouts/FirstTimeSetupLayout.astro +29 -0
  207. package/frontend/middleware/error-handler.ts +72 -0
  208. package/{src/frontend → frontend}/middleware/index.ts +4 -6
  209. package/frontend/middleware/templates/errors.ts +237 -0
  210. package/{src/frontend → frontend}/middleware/utils.ts +6 -8
  211. package/{src/frontend → frontend}/pages/404.astro +1 -0
  212. package/{src/frontend → frontend}/pages/[dashboard]/[...pluginPage].astro +1 -1
  213. package/{dist/frontend → frontend}/pages/[dashboard]/content-management/diff.astro +4 -6
  214. package/{src/frontend → frontend}/pages/[dashboard]/smtp-configuration.astro +8 -5
  215. package/frontend/pages/[dashboard]/system-management.astro +353 -0
  216. package/{src/frontend → frontend}/pages/[dashboard]/unverified-email.astro +1 -0
  217. package/{dist/frontend → frontend}/pages/[dashboard]/user-management/edit.astro +3 -3
  218. package/{src/frontend → frontend}/pages/studiocms_api/auth/[provider]/_effects/index.ts +1 -1
  219. package/{src/frontend → frontend}/pages/studiocms_api/auth/[provider]/callback.ts +1 -1
  220. package/{src/frontend → frontend}/pages/studiocms_api/auth/[provider]/index.ts +1 -1
  221. package/{src/frontend → frontend}/pages/studiocms_api/auth/forgot-password.ts +1 -1
  222. package/{src/frontend → frontend}/pages/studiocms_api/auth/login.ts +1 -1
  223. package/{src/frontend → frontend}/pages/studiocms_api/auth/logout.ts +2 -2
  224. package/{src/frontend → frontend}/pages/studiocms_api/auth/register.ts +1 -1
  225. package/{src/frontend → frontend}/pages/studiocms_api/auth/shared.ts +4 -4
  226. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/api-tokens.ts +2 -2
  227. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/config.ts +2 -2
  228. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/content/diff.ts +2 -2
  229. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/content/folder.ts +63 -1
  230. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/content/page.ts +78 -41
  231. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/create-reset-link.ts +1 -1
  232. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/create-user-invite.ts +10 -4
  233. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/create-user.ts +4 -4
  234. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/email-notification-settings-site.ts +2 -5
  235. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/mailer/check-email.ts +1 -1
  236. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/mailer/config.ts +1 -1
  237. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/partials/LiveRender.astro +2 -2
  238. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/plugins/[plugin].ts +1 -1
  239. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/profile.ts +39 -16
  240. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/resend-verify-email.ts +1 -1
  241. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/reset-password.ts +13 -3
  242. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/search-list.ts +3 -3
  243. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/templates.ts +1 -1
  244. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/update-user-notifications.ts +17 -3
  245. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/users.ts +17 -4
  246. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/verify-email.ts +16 -3
  247. package/{src/frontend → frontend}/pages/studiocms_api/dashboard/verify-session.ts +5 -5
  248. package/frontend/pages/studiocms_api/db-studio/query.ts +121 -0
  249. package/{src/frontend → frontend}/pages/studiocms_api/renderer/render.astro +2 -2
  250. package/{src/frontend → frontend}/pages/studiocms_api/rest/utils/auth-token.ts +1 -1
  251. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/folders/[id].ts +62 -1
  252. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/folders/index.ts +3 -8
  253. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/[id]/history/[diffid].ts +1 -1
  254. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/[id]/history/index.ts +1 -1
  255. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/[id]/index.ts +33 -15
  256. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/pages/index.ts +18 -12
  257. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/folders/[id].ts +1 -1
  258. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/folders/index.ts +3 -8
  259. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/pages/[id].ts +2 -2
  260. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/public/pages/index.ts +5 -7
  261. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/settings/index.ts +1 -1
  262. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/users/[id].ts +1 -1
  263. package/{src/frontend → frontend}/pages/studiocms_api/rest/v1/users/index.ts +3 -3
  264. package/{src/frontend → frontend}/pages/studiocms_api/sdk/fallback-list-pages.json.ts +9 -9
  265. package/{src/frontend → frontend}/pages/studiocms_api/sdk/full-changelog.json.ts +12 -13
  266. package/{src/frontend → frontend}/pages/studiocms_api/sdk/list-pages.ts +9 -10
  267. package/{src/frontend → frontend}/pages/studiocms_api/sdk/update-latest-version-cache.ts +5 -8
  268. package/{src/frontend → frontend}/pages/studiocms_api/sdk/utils/changelog.ts +1 -7
  269. package/{dist/frontend → frontend}/setup-pages/1-start.astro +3 -2
  270. package/{dist/frontend → frontend}/setup-pages/2-next.astro +3 -2
  271. package/{dist/frontend → frontend}/setup-pages/3-done.astro +3 -2
  272. package/frontend/setup-pages/shared.ts +10 -0
  273. package/{src/frontend → frontend}/setup-pages/studiocms_api/dashboard/step-1.ts +1 -1
  274. package/{src/frontend → frontend}/setup-pages/studiocms_api/dashboard/step-2.ts +2 -2
  275. package/frontend/web-vitals/endpoint.ts +39 -0
  276. package/frontend/web-vitals/middleware.ts +67 -0
  277. package/package.json +98 -43
  278. package/dist/cli/users/steps/libsql/createUsers.d.ts +0 -2
  279. package/dist/cli/users/steps/libsql/modifyUsers.d.ts +0 -7
  280. package/dist/cli/utils/useLibSQLDb.d.ts +0 -276
  281. package/dist/cli/utils/useLibSQLDb.js +0 -45
  282. package/dist/db/config.d.ts +0 -1519
  283. package/dist/db/config.js +0 -269
  284. package/dist/frontend/components/dashboard/BaseHead.astro +0 -25
  285. package/dist/frontend/components/dashboard/DashboardGridItem.astro +0 -48
  286. package/dist/frontend/components/dashboard/DashboardPageHeader.astro +0 -88
  287. package/dist/frontend/components/dashboard/Footer.astro +0 -12
  288. package/dist/frontend/components/dashboard/configuration/ConfigForm.astro +0 -275
  289. package/dist/frontend/components/dashboard/content-mgmt/CreatePage.astro +0 -522
  290. package/dist/frontend/components/dashboard/content-mgmt/EditFolder.astro +0 -144
  291. package/dist/frontend/components/dashboard/content-mgmt/InnerSidebarElement.astro +0 -312
  292. package/dist/frontend/components/dashboard/content-mgmt/PageHeader.astro +0 -462
  293. package/dist/frontend/components/dashboard/content-mgmt/PluginFields.astro +0 -33
  294. package/dist/frontend/components/dashboard/content-mgmt/runtime.d.ts +0 -10
  295. package/dist/frontend/components/dashboard/content-mgmt/runtime.js +0 -32
  296. package/dist/frontend/components/dashboard/content-mgmt/shared.d.ts +0 -26
  297. package/dist/frontend/components/dashboard/content-mgmt/shared.js +0 -29
  298. package/dist/frontend/components/dashboard/sidebar/VersionCheck.astro +0 -152
  299. package/dist/frontend/components/dashboard/sidebar-modals/VersionModal.astro +0 -298
  300. package/dist/frontend/components/dashboard/sidebarConfig.d.ts +0 -32
  301. package/dist/frontend/components/dashboard/sidebarConfig.js +0 -93
  302. package/dist/frontend/components/dashboard/smtp-config/TemplateEditor.astro +0 -107
  303. package/dist/frontend/components/dashboard/user-mgmt/InnerSidebarElement.astro +0 -359
  304. package/dist/frontend/components/shared/SSRUser.astro +0 -267
  305. package/dist/frontend/components/shared/head/Favicons.astro +0 -6
  306. package/dist/frontend/components/shared/head/Global.astro +0 -4
  307. package/dist/frontend/components/shared/head/TitleTags.astro +0 -14
  308. package/dist/frontend/components/shared/oAuthButtonProviders.d.ts +0 -17
  309. package/dist/frontend/components/shared/oAuthButtonProviders.js +0 -15
  310. package/dist/frontend/fonts/css/onest-variable.css +0 -43
  311. package/dist/frontend/fonts/css/syntax.css +0 -33
  312. package/dist/frontend/layouts/FirstTimeSetupLayout.astro +0 -53
  313. package/dist/frontend/middleware/index.d.ts +0 -10
  314. package/dist/frontend/middleware/index.js +0 -134
  315. package/dist/frontend/middleware/utils.d.ts +0 -82
  316. package/dist/frontend/middleware/utils.js +0 -105
  317. package/dist/frontend/pages/404.astro +0 -72
  318. package/dist/frontend/pages/[dashboard]/[...pluginPage].astro +0 -92
  319. package/dist/frontend/pages/[dashboard]/smtp-configuration.astro +0 -753
  320. package/dist/frontend/pages/[dashboard]/unverified-email.astro +0 -124
  321. package/dist/frontend/pages/studiocms_api/auth/[provider]/_effects/index.d.ts +0 -23
  322. package/dist/frontend/pages/studiocms_api/auth/[provider]/_effects/index.js +0 -45
  323. package/dist/frontend/pages/studiocms_api/auth/[provider]/callback.d.ts +0 -1
  324. package/dist/frontend/pages/studiocms_api/auth/[provider]/callback.js +0 -36
  325. package/dist/frontend/pages/studiocms_api/auth/[provider]/index.d.ts +0 -1
  326. package/dist/frontend/pages/studiocms_api/auth/[provider]/index.js +0 -36
  327. package/dist/frontend/pages/studiocms_api/auth/forgot-password.d.ts +0 -1
  328. package/dist/frontend/pages/studiocms_api/auth/forgot-password.js +0 -112
  329. package/dist/frontend/pages/studiocms_api/auth/login.d.ts +0 -1
  330. package/dist/frontend/pages/studiocms_api/auth/login.js +0 -73
  331. package/dist/frontend/pages/studiocms_api/auth/logout.d.ts +0 -1
  332. package/dist/frontend/pages/studiocms_api/auth/logout.js +0 -46
  333. package/dist/frontend/pages/studiocms_api/auth/register.d.ts +0 -1
  334. package/dist/frontend/pages/studiocms_api/auth/register.js +0 -84
  335. package/dist/frontend/pages/studiocms_api/auth/shared.d.ts +0 -30
  336. package/dist/frontend/pages/studiocms_api/auth/shared.js +0 -52
  337. package/dist/frontend/pages/studiocms_api/dashboard/api-tokens.d.ts +0 -1
  338. package/dist/frontend/pages/studiocms_api/dashboard/api-tokens.js +0 -82
  339. package/dist/frontend/pages/studiocms_api/dashboard/config.d.ts +0 -1
  340. package/dist/frontend/pages/studiocms_api/dashboard/config.js +0 -60
  341. package/dist/frontend/pages/studiocms_api/dashboard/content/diff.d.ts +0 -1
  342. package/dist/frontend/pages/studiocms_api/dashboard/content/diff.js +0 -60
  343. package/dist/frontend/pages/studiocms_api/dashboard/content/folder.d.ts +0 -1
  344. package/dist/frontend/pages/studiocms_api/dashboard/content/folder.js +0 -118
  345. package/dist/frontend/pages/studiocms_api/dashboard/content/page.d.ts +0 -1
  346. package/dist/frontend/pages/studiocms_api/dashboard/content/page.js +0 -219
  347. package/dist/frontend/pages/studiocms_api/dashboard/create-reset-link.d.ts +0 -1
  348. package/dist/frontend/pages/studiocms_api/dashboard/create-reset-link.js +0 -64
  349. package/dist/frontend/pages/studiocms_api/dashboard/create-user-invite.d.ts +0 -1
  350. package/dist/frontend/pages/studiocms_api/dashboard/create-user-invite.js +0 -162
  351. package/dist/frontend/pages/studiocms_api/dashboard/create-user.d.ts +0 -1
  352. package/dist/frontend/pages/studiocms_api/dashboard/create-user.js +0 -144
  353. package/dist/frontend/pages/studiocms_api/dashboard/email-notification-settings-site.d.ts +0 -1
  354. package/dist/frontend/pages/studiocms_api/dashboard/email-notification-settings-site.js +0 -56
  355. package/dist/frontend/pages/studiocms_api/dashboard/mailer/check-email.d.ts +0 -1
  356. package/dist/frontend/pages/studiocms_api/dashboard/mailer/check-email.js +0 -64
  357. package/dist/frontend/pages/studiocms_api/dashboard/mailer/config.d.ts +0 -44
  358. package/dist/frontend/pages/studiocms_api/dashboard/mailer/config.js +0 -106
  359. package/dist/frontend/pages/studiocms_api/dashboard/partials/LiveRender.astro +0 -39
  360. package/dist/frontend/pages/studiocms_api/dashboard/plugins/[plugin].d.ts +0 -1
  361. package/dist/frontend/pages/studiocms_api/dashboard/plugins/[plugin].js +0 -67
  362. package/dist/frontend/pages/studiocms_api/dashboard/profile.d.ts +0 -1
  363. package/dist/frontend/pages/studiocms_api/dashboard/profile.js +0 -153
  364. package/dist/frontend/pages/studiocms_api/dashboard/resend-verify-email.d.ts +0 -1
  365. package/dist/frontend/pages/studiocms_api/dashboard/resend-verify-email.js +0 -65
  366. package/dist/frontend/pages/studiocms_api/dashboard/reset-password.d.ts +0 -1
  367. package/dist/frontend/pages/studiocms_api/dashboard/reset-password.js +0 -88
  368. package/dist/frontend/pages/studiocms_api/dashboard/search-list.d.ts +0 -1
  369. package/dist/frontend/pages/studiocms_api/dashboard/search-list.js +0 -52
  370. package/dist/frontend/pages/studiocms_api/dashboard/templates.d.ts +0 -1
  371. package/dist/frontend/pages/studiocms_api/dashboard/templates.js +0 -64
  372. package/dist/frontend/pages/studiocms_api/dashboard/update-user-notifications.d.ts +0 -1
  373. package/dist/frontend/pages/studiocms_api/dashboard/update-user-notifications.js +0 -57
  374. package/dist/frontend/pages/studiocms_api/dashboard/users.d.ts +0 -1
  375. package/dist/frontend/pages/studiocms_api/dashboard/users.js +0 -163
  376. package/dist/frontend/pages/studiocms_api/dashboard/verify-email.d.ts +0 -1
  377. package/dist/frontend/pages/studiocms_api/dashboard/verify-email.js +0 -62
  378. package/dist/frontend/pages/studiocms_api/dashboard/verify-session.d.ts +0 -20
  379. package/dist/frontend/pages/studiocms_api/dashboard/verify-session.js +0 -115
  380. package/dist/frontend/pages/studiocms_api/renderer/render.astro +0 -27
  381. package/dist/frontend/pages/studiocms_api/rest/utils/auth-token.d.ts +0 -17
  382. package/dist/frontend/pages/studiocms_api/rest/utils/auth-token.js +0 -29
  383. package/dist/frontend/pages/studiocms_api/rest/v1/folders/[id].d.ts +0 -16
  384. package/dist/frontend/pages/studiocms_api/rest/v1/folders/[id].js +0 -124
  385. package/dist/frontend/pages/studiocms_api/rest/v1/folders/index.d.ts +0 -16
  386. package/dist/frontend/pages/studiocms_api/rest/v1/folders/index.js +0 -100
  387. package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/[diffid].d.ts +0 -1
  388. package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/[diffid].js +0 -55
  389. package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/index.d.ts +0 -1
  390. package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/history/index.js +0 -53
  391. package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/index.d.ts +0 -1
  392. package/dist/frontend/pages/studiocms_api/rest/v1/pages/[id]/index.js +0 -172
  393. package/dist/frontend/pages/studiocms_api/rest/v1/pages/index.d.ts +0 -1
  394. package/dist/frontend/pages/studiocms_api/rest/v1/pages/index.js +0 -125
  395. package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/[id].d.ts +0 -1
  396. package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/[id].js +0 -40
  397. package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/index.d.ts +0 -1
  398. package/dist/frontend/pages/studiocms_api/rest/v1/public/folders/index.js +0 -50
  399. package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/[id].d.ts +0 -1
  400. package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/[id].js +0 -46
  401. package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/index.d.ts +0 -1
  402. package/dist/frontend/pages/studiocms_api/rest/v1/public/pages/index.js +0 -55
  403. package/dist/frontend/pages/studiocms_api/rest/v1/settings/index.d.ts +0 -1
  404. package/dist/frontend/pages/studiocms_api/rest/v1/settings/index.js +0 -71
  405. package/dist/frontend/pages/studiocms_api/rest/v1/users/[id].d.ts +0 -12
  406. package/dist/frontend/pages/studiocms_api/rest/v1/users/[id].js +0 -286
  407. package/dist/frontend/pages/studiocms_api/rest/v1/users/index.d.ts +0 -28
  408. package/dist/frontend/pages/studiocms_api/rest/v1/users/index.js +0 -184
  409. package/dist/frontend/pages/studiocms_api/sdk/fallback-list-pages.json.d.ts +0 -1
  410. package/dist/frontend/pages/studiocms_api/sdk/fallback-list-pages.json.js +0 -33
  411. package/dist/frontend/pages/studiocms_api/sdk/full-changelog.json.d.ts +0 -1
  412. package/dist/frontend/pages/studiocms_api/sdk/full-changelog.json.js +0 -34
  413. package/dist/frontend/pages/studiocms_api/sdk/list-pages.d.ts +0 -1
  414. package/dist/frontend/pages/studiocms_api/sdk/list-pages.js +0 -43
  415. package/dist/frontend/pages/studiocms_api/sdk/update-latest-version-cache.d.ts +0 -1
  416. package/dist/frontend/pages/studiocms_api/sdk/update-latest-version-cache.js +0 -38
  417. package/dist/frontend/pages/studiocms_api/sdk/utils/changelog.d.ts +0 -14
  418. package/dist/frontend/pages/studiocms_api/sdk/utils/changelog.js +0 -96
  419. package/dist/frontend/routes.js +0 -364
  420. package/dist/frontend/scripts/auth/formListener.d.ts +0 -20
  421. package/dist/frontend/scripts/auth/formListener.js +0 -50
  422. package/dist/frontend/scripts/dateTimeListener.d.ts +0 -21
  423. package/dist/frontend/scripts/dateTimeListener.js +0 -9
  424. package/dist/frontend/scripts/dateWithTimeAndZone.d.ts +0 -35
  425. package/dist/frontend/scripts/dateWithTimeAndZone.js +0 -15
  426. package/dist/frontend/scripts/formdata-utils.d.ts +0 -142
  427. package/dist/frontend/scripts/formdata-utils.js +0 -53
  428. package/dist/frontend/scripts/timeAgo.d.ts +0 -41
  429. package/dist/frontend/scripts/timeAgo.js +0 -21
  430. package/dist/frontend/setup-pages/studiocms_api/dashboard/step-1.d.ts +0 -1
  431. package/dist/frontend/setup-pages/studiocms_api/dashboard/step-1.js +0 -113
  432. package/dist/frontend/setup-pages/studiocms_api/dashboard/step-2.d.ts +0 -1
  433. package/dist/frontend/setup-pages/studiocms_api/dashboard/step-2.js +0 -106
  434. package/dist/frontend/styles/404.css +0 -47
  435. package/dist/frontend/styles/auth-layout.css +0 -137
  436. package/dist/frontend/styles/code-component.css +0 -56
  437. package/dist/frontend/styles/dashboard-base.css +0 -454
  438. package/dist/frontend/styles/dashboard-diff.css +0 -377
  439. package/dist/integrations/webVitals/checkForWebVitalsPlugin.d.ts +0 -18
  440. package/dist/integrations/webVitals/checkForWebVitalsPlugin.js +0 -91
  441. package/dist/integrations/webVitals/consts.d.ts +0 -248
  442. package/dist/integrations/webVitals/consts.js +0 -40
  443. package/dist/integrations/webVitals/i18n/zh.d.ts +0 -24
  444. package/dist/integrations/webVitals/i18n/zh.js +0 -27
  445. package/dist/integrations/webVitals/utils/checkDate.d.ts +0 -5
  446. package/dist/integrations/webVitals/webVital.d.ts +0 -20
  447. package/dist/integrations/webVitals/webVital.js +0 -40
  448. package/dist/utils/effects/index.d.ts +0 -1
  449. package/dist/utils/effects/index.js +0 -6
  450. package/dist/utils/effects/logger.d.ts +0 -65
  451. package/dist/utils/effects/logger.js +0 -124
  452. package/dist/virtuals/mailer/template.d.ts +0 -23
  453. package/dist/virtuals/mailer/template.js +0 -14
  454. package/dist/virtuals/mailer/templates/index.d.ts +0 -4
  455. package/dist/virtuals/mailer/templates/index.js +0 -10
  456. package/dist/virtuals/mailer/templates/notification.d.ts +0 -5
  457. package/dist/virtuals/mailer/templates/notification.js +0 -39
  458. package/dist/virtuals/mailer/templates/password-reset.d.ts +0 -2
  459. package/dist/virtuals/mailer/templates/password-reset.js +0 -56
  460. package/dist/virtuals/mailer/templates/user-invite.d.ts +0 -5
  461. package/dist/virtuals/mailer/templates/user-invite.js +0 -53
  462. package/dist/virtuals/mailer/templates/verify-email.d.ts +0 -2
  463. package/dist/virtuals/mailer/templates/verify-email.js +0 -53
  464. package/dist/virtuals/scripts/template-editor.d.ts +0 -32
  465. package/dist/virtuals/scripts/template-editor.js +0 -244
  466. package/dist/virtuals/sdk/consts.d.ts +0 -45
  467. package/dist/virtuals/sdk/consts.js +0 -18
  468. package/dist/virtuals/sdk/effect/collectors.d.ts +0 -77
  469. package/dist/virtuals/sdk/effect/collectors.js +0 -147
  470. package/dist/virtuals/sdk/effect/db.d.ts +0 -29
  471. package/dist/virtuals/sdk/effect/db.js +0 -20
  472. package/dist/virtuals/sdk/effect/foldertree.d.ts +0 -43
  473. package/dist/virtuals/sdk/effect/foldertree.js +0 -200
  474. package/dist/virtuals/sdk/effect/generators.d.ts +0 -27
  475. package/dist/virtuals/sdk/effect/generators.js +0 -72
  476. package/dist/virtuals/sdk/effect/getVersionFromNPM.d.ts +0 -45
  477. package/dist/virtuals/sdk/effect/getVersionFromNPM.js +0 -24
  478. package/dist/virtuals/sdk/effect/index.d.ts +0 -7
  479. package/dist/virtuals/sdk/effect/index.js +0 -16
  480. package/dist/virtuals/sdk/effect/lib/jwt-generator.d.ts +0 -60
  481. package/dist/virtuals/sdk/effect/lib/jwt-generator.js +0 -62
  482. package/dist/virtuals/sdk/effect/parsers.d.ts +0 -31
  483. package/dist/virtuals/sdk/effect/parsers.js +0 -63
  484. package/dist/virtuals/sdk/effect/pluginUtils.d.ts +0 -89
  485. package/dist/virtuals/sdk/effect/pluginUtils.js +0 -80
  486. package/dist/virtuals/sdk/effect/users.d.ts +0 -40
  487. package/dist/virtuals/sdk/effect/users.js +0 -82
  488. package/dist/virtuals/sdk/errors.d.ts +0 -36
  489. package/dist/virtuals/sdk/errors.js +0 -17
  490. package/dist/virtuals/sdk/modules/auth.d.ts +0 -325
  491. package/dist/virtuals/sdk/modules/auth.js +0 -433
  492. package/dist/virtuals/sdk/modules/clear.d.ts +0 -87
  493. package/dist/virtuals/sdk/modules/clear.js +0 -136
  494. package/dist/virtuals/sdk/modules/config-types.d.ts +0 -147
  495. package/dist/virtuals/sdk/modules/config.d.ts +0 -127
  496. package/dist/virtuals/sdk/modules/config.js +0 -228
  497. package/dist/virtuals/sdk/modules/delete.d.ts +0 -130
  498. package/dist/virtuals/sdk/modules/delete.js +0 -245
  499. package/dist/virtuals/sdk/modules/diffTracking.d.ts +0 -157
  500. package/dist/virtuals/sdk/modules/diffTracking.js +0 -389
  501. package/dist/virtuals/sdk/modules/get.d.ts +0 -358
  502. package/dist/virtuals/sdk/modules/get.js +0 -836
  503. package/dist/virtuals/sdk/modules/init.d.ts +0 -61
  504. package/dist/virtuals/sdk/modules/init.js +0 -55
  505. package/dist/virtuals/sdk/modules/middlewares.d.ts +0 -33
  506. package/dist/virtuals/sdk/modules/middlewares.js +0 -83
  507. package/dist/virtuals/sdk/modules/notificationSettings.d.ts +0 -52
  508. package/dist/virtuals/sdk/modules/notificationSettings.js +0 -51
  509. package/dist/virtuals/sdk/modules/plugins.d.ts +0 -94
  510. package/dist/virtuals/sdk/modules/plugins.js +0 -344
  511. package/dist/virtuals/sdk/modules/post.d.ts +0 -209
  512. package/dist/virtuals/sdk/modules/post.js +0 -420
  513. package/dist/virtuals/sdk/modules/resetTokenBucket.d.ts +0 -64
  514. package/dist/virtuals/sdk/modules/resetTokenBucket.js +0 -91
  515. package/dist/virtuals/sdk/modules/rest_api.d.ts +0 -84
  516. package/dist/virtuals/sdk/modules/rest_api.js +0 -98
  517. package/dist/virtuals/sdk/modules/update.d.ts +0 -182
  518. package/dist/virtuals/sdk/modules/update.js +0 -306
  519. package/dist/virtuals/sdk/sdkCore.d.ts +0 -131
  520. package/dist/virtuals/sdk/sdkCore.js +0 -191
  521. package/dist/virtuals/sdk/tables.d.ts +0 -2
  522. package/dist/virtuals/sdk/tables.js +0 -5
  523. package/dist/virtuals/sdk/types/index.d.ts +0 -410
  524. package/dist/virtuals/sdk/types/tableDefs.d.ts +0 -76
  525. package/dist/virtuals/sdk/types/tableDefs.js +0 -0
  526. package/dist/virtuals/sdk/types/tsAlias.d.ts +0 -200
  527. package/dist/virtuals/sdk/types/tsAlias.js +0 -0
  528. package/dist/virtuals/sdk/utils.d.ts +0 -150
  529. package/dist/virtuals/sdk/utils.js +0 -90
  530. package/src/cli/add/index.ts +0 -294
  531. package/src/cli/add/npm-utils.ts +0 -166
  532. package/src/cli/add/tryToInstallPlugins.ts +0 -113
  533. package/src/cli/add/updateStudioCMSConfig.ts +0 -103
  534. package/src/cli/add/validatePlugins.ts +0 -104
  535. package/src/cli/crypto/genJWT/index.ts +0 -164
  536. package/src/cli/crypto/index.ts +0 -7
  537. package/src/cli/getTurso/index.ts +0 -12
  538. package/src/cli/index.ts +0 -35
  539. package/src/cli/init/index.ts +0 -104
  540. package/src/cli/init/steps/env.ts +0 -518
  541. package/src/cli/init/steps/next.ts +0 -51
  542. package/src/cli/users/index.ts +0 -157
  543. package/src/cli/users/steps/libsql/createUsers.ts +0 -169
  544. package/src/cli/users/steps/libsql/modifyUsers.ts +0 -229
  545. package/src/cli/users/steps/next.ts +0 -18
  546. package/src/cli/utils/checkRequiredEnvVars.ts +0 -58
  547. package/src/cli/utils/context.ts +0 -69
  548. package/src/cli/utils/dateAdd.ts +0 -63
  549. package/src/cli/utils/effectBoxen.ts +0 -49
  550. package/src/cli/utils/intro.ts +0 -43
  551. package/src/cli/utils/logger.ts +0 -43
  552. package/src/cli/utils/seasonal.ts +0 -92
  553. package/src/cli/utils/studiocmsEnv.ts +0 -107
  554. package/src/cli/utils/types.ts +0 -53
  555. package/src/cli/utils/useLibSQLDb.ts +0 -63
  556. package/src/cli/utils/user-utils.ts +0 -50
  557. package/src/config.ts +0 -32
  558. package/src/consts.ts +0 -373
  559. package/src/db/config.ts +0 -321
  560. package/src/effect.ts +0 -9
  561. package/src/errors.ts +0 -21
  562. package/src/frontend/components/auth/FallbackCanvas.astro +0 -124
  563. package/src/frontend/components/auth/OAuthButton.astro +0 -21
  564. package/src/frontend/components/auth/OAuthButtonStack.astro +0 -36
  565. package/src/frontend/components/auth/StaticAuthCheck.astro +0 -25
  566. package/src/frontend/components/auth/StudioCMSLogoSVG.astro +0 -13
  567. package/src/frontend/components/auth/ThreeCanvasLoader.astro +0 -15
  568. package/src/frontend/components/dashboard/BaseHead.astro +0 -25
  569. package/src/frontend/components/dashboard/DashboardGrid.astro +0 -57
  570. package/src/frontend/components/dashboard/DoubleSidebar.astro +0 -33
  571. package/src/frontend/components/dashboard/LoginChecker.astro +0 -68
  572. package/src/frontend/components/dashboard/MainSidebarContent.astro +0 -342
  573. package/src/frontend/components/dashboard/PageHeader.astro +0 -53
  574. package/src/frontend/components/dashboard/SidebarLink.astro +0 -177
  575. package/src/frontend/components/dashboard/SidebarModals.astro +0 -13
  576. package/src/frontend/components/dashboard/SidebarPluginLink.astro +0 -43
  577. package/src/frontend/components/dashboard/SingleSidebar.astro +0 -30
  578. package/src/frontend/components/dashboard/StudioCMSLogo.astro +0 -12
  579. package/src/frontend/components/dashboard/UserName.astro +0 -10
  580. package/src/frontend/components/dashboard/configuration/LoginPreview.astro +0 -261
  581. package/src/frontend/components/dashboard/content-mgmt/CreateFolder.astro +0 -122
  582. package/src/frontend/components/dashboard/content-mgmt/EditPage.astro +0 -741
  583. package/src/frontend/components/dashboard/content-mgmt/PageEditorSwapper.astro +0 -107
  584. package/src/frontend/components/dashboard/content-mgmt/PageList.astro +0 -19
  585. package/src/frontend/components/dashboard/content-mgmt/PageTypeHandler.astro +0 -107
  586. package/src/frontend/components/dashboard/content-mgmt/PluginFields.astro +0 -33
  587. package/src/frontend/components/dashboard/content-mgmt/TreeRenderer.astro +0 -73
  588. package/src/frontend/components/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -145
  589. package/src/frontend/components/dashboard/content-mgmt/TreeSidebarLink.astro +0 -143
  590. package/src/frontend/components/dashboard/plugins/SettingsRenderer.astro +0 -33
  591. package/src/frontend/components/dashboard/profile/APITokens.astro +0 -311
  592. package/src/frontend/components/dashboard/profile/BasicInfo.astro +0 -191
  593. package/src/frontend/components/dashboard/profile/Notifications.astro +0 -241
  594. package/src/frontend/components/dashboard/profile/SocialSignin.astro +0 -190
  595. package/src/frontend/components/dashboard/profile/UpdatePassword.astro +0 -172
  596. package/src/frontend/components/dashboard/sidebar/UserAccount.astro +0 -61
  597. package/src/frontend/components/dashboard/sidebar/VersionCheckChangelog.astro +0 -130
  598. package/src/frontend/components/dashboard/sidebar-modals/UserManagementModals.astro +0 -108
  599. package/src/frontend/components/dashboard/smtp-config/TemplateEditor.astro +0 -107
  600. package/src/frontend/components/dashboard/user-mgmt/RankCheck.astro +0 -57
  601. package/src/frontend/components/dashboard/user-mgmt/SocialSignin.astro +0 -108
  602. package/src/frontend/components/dashboard/user-mgmt/UserListItem.astro +0 -143
  603. package/src/frontend/components/first-time-setup/PageHeader.astro +0 -61
  604. package/src/frontend/components/shared/Code.astro +0 -76
  605. package/src/frontend/components/shared/ThemeManager.astro +0 -53
  606. package/src/frontend/components/shared/head/Favicons.astro +0 -6
  607. package/src/frontend/components/shared/head/Global.astro +0 -4
  608. package/src/frontend/components/shared/head/TitleTags.astro +0 -14
  609. package/src/frontend/fonts/woff2/onest-variable.woff2 +0 -0
  610. package/src/frontend/fonts/woff2/syntax.woff2 +0 -0
  611. package/src/frontend/layouts/AuthLayout.astro +0 -63
  612. package/src/frontend/layouts/DashboardLayout.astro +0 -93
  613. package/src/frontend/layouts/FirstTimeSetupLayout.astro +0 -53
  614. package/src/frontend/pages/[dashboard]/configuration.astro +0 -67
  615. package/src/frontend/pages/[dashboard]/content-management/createfolder.astro +0 -98
  616. package/src/frontend/pages/[dashboard]/content-management/createpage.astro +0 -98
  617. package/src/frontend/pages/[dashboard]/content-management/diff.astro +0 -367
  618. package/src/frontend/pages/[dashboard]/content-management/editfolder.astro +0 -82
  619. package/src/frontend/pages/[dashboard]/content-management/editpage.astro +0 -83
  620. package/src/frontend/pages/[dashboard]/content-management/index.astro +0 -106
  621. package/src/frontend/pages/[dashboard]/index.astro +0 -61
  622. package/src/frontend/pages/[dashboard]/login.astro +0 -269
  623. package/src/frontend/pages/[dashboard]/logout.astro +0 -153
  624. package/src/frontend/pages/[dashboard]/password-reset.astro +0 -245
  625. package/src/frontend/pages/[dashboard]/plugins/[plugin].astro +0 -109
  626. package/src/frontend/pages/[dashboard]/profile.astro +0 -89
  627. package/src/frontend/pages/[dashboard]/signup.astro +0 -123
  628. package/src/frontend/pages/[dashboard]/user-management/edit.astro +0 -692
  629. package/src/frontend/pages/[dashboard]/user-management/index.astro +0 -108
  630. package/src/frontend/pages/studiocms_api/dashboard/partials/Editor.astro +0 -74
  631. package/src/frontend/pages/studiocms_api/dashboard/partials/UserListItems.astro +0 -43
  632. package/src/frontend/routes.ts +0 -481
  633. package/src/frontend/setup-pages/1-start.astro +0 -164
  634. package/src/frontend/setup-pages/2-next.astro +0 -225
  635. package/src/frontend/setup-pages/3-done.astro +0 -92
  636. package/src/frontend/setup-pages/index.astro +0 -6
  637. package/src/frontend/types.ts +0 -50
  638. package/src/frontend/utils.ts +0 -166
  639. package/src/global.d.ts +0 -11
  640. package/src/handlers/astroConfigCheck.ts +0 -41
  641. package/src/handlers/changelog.ts +0 -67
  642. package/src/handlers/index.ts +0 -4
  643. package/src/handlers/plugin-components/Recently-created-pages.astro +0 -103
  644. package/src/handlers/plugin-components/Recently-signed-up.astro +0 -71
  645. package/src/handlers/plugin-components/Recently-updated-pages.astro +0 -107
  646. package/src/handlers/plugin-components/Totals.astro +0 -114
  647. package/src/handlers/plugin-components/utils.ts +0 -48
  648. package/src/handlers/plugin-i18n/de.ts +0 -22
  649. package/src/handlers/plugin-i18n/en.ts +0 -23
  650. package/src/handlers/plugin-i18n/es.ts +0 -22
  651. package/src/handlers/plugin-i18n/fr.ts +0 -22
  652. package/src/handlers/plugin-i18n/nl.ts +0 -22
  653. package/src/handlers/plugin-i18n/no.ts +0 -22
  654. package/src/handlers/plugin-i18n/zh.ts +0 -22
  655. package/src/handlers/pluginHandler.ts +0 -1216
  656. package/src/handlers/routeHandler.ts +0 -52
  657. package/src/index.ts +0 -485
  658. package/src/integrations/dynamic-sitemap/index.ts +0 -102
  659. package/src/integrations/dynamic-sitemap/sitemap-index.xml.ts +0 -45
  660. package/src/integrations/node-namespace.ts +0 -48
  661. package/src/integrations/plugins.ts +0 -6
  662. package/src/integrations/robots/core.ts +0 -306
  663. package/src/integrations/robots/index.ts +0 -48
  664. package/src/integrations/robots/schema.ts +0 -266
  665. package/src/integrations/robots/utils.ts +0 -28
  666. package/src/integrations/webVitals/checkForWebVitalsPlugin.ts +0 -130
  667. package/src/integrations/webVitals/dashboard-grid-items/CoreVitals.astro +0 -66
  668. package/src/integrations/webVitals/dashboard-grid-items/MetricCard.astro +0 -25
  669. package/src/integrations/webVitals/dashboard-grid-items/SummaryCard.astro +0 -56
  670. package/src/integrations/webVitals/dashboard-grid-items/metric.css +0 -131
  671. package/src/integrations/webVitals/dashboard-grid-items/shared.ts +0 -40
  672. package/src/integrations/webVitals/i18n/de.ts +0 -24
  673. package/src/integrations/webVitals/i18n/en.ts +0 -25
  674. package/src/integrations/webVitals/i18n/es.ts +0 -24
  675. package/src/integrations/webVitals/i18n/fr.ts +0 -24
  676. package/src/integrations/webVitals/i18n/nl.ts +0 -24
  677. package/src/integrations/webVitals/i18n/no.ts +0 -24
  678. package/src/integrations/webVitals/i18n/zh.ts +0 -24
  679. package/src/integrations/webVitals/pages/analytics/body.astro +0 -187
  680. package/src/integrations/webVitals/pages/analytics/header.astro +0 -42
  681. package/src/integrations/webVitals/schemas.ts +0 -120
  682. package/src/integrations/webVitals/types.ts +0 -171
  683. package/src/integrations/webVitals/utils/buildDataObject.ts +0 -43
  684. package/src/integrations/webVitals/utils/buildPageRouteDataObject.ts +0 -84
  685. package/src/integrations/webVitals/utils/buildPerPageDataObject.ts +0 -258
  686. package/src/integrations/webVitals/utils/checkDate.ts +0 -16
  687. package/src/integrations/webVitals/utils/webVitalsUtils.ts +0 -328
  688. package/src/integrations/webVitals/webVital.ts +0 -92
  689. package/src/integrations/webVitals/webVitalsRouteSummary.ts +0 -112
  690. package/src/integrations/webVitals/webVitalsSummary.ts +0 -89
  691. package/src/oAuthUtils.ts +0 -44
  692. package/src/plugins.ts +0 -54
  693. package/src/runtime/index.ts +0 -2
  694. package/src/schemas/config/auth.ts +0 -49
  695. package/src/schemas/config/dashboard.ts +0 -42
  696. package/src/schemas/config/developer.ts +0 -27
  697. package/src/schemas/config/index.ts +0 -137
  698. package/src/schemas/config/sdk.ts +0 -178
  699. package/src/schemas/index.ts +0 -4
  700. package/src/schemas/plugins/i18n.ts +0 -67
  701. package/src/schemas/plugins/index.ts +0 -487
  702. package/src/schemas/plugins/shared.ts +0 -759
  703. package/src/test-utils.ts +0 -231
  704. package/src/theme.d.ts +0 -9
  705. package/src/types.ts +0 -166
  706. package/src/utils/effects/index.ts +0 -1
  707. package/src/utils/effects/logger.ts +0 -269
  708. package/src/utils/effects/smtp.ts +0 -161
  709. package/src/utils/lang-helper.ts +0 -78
  710. package/src/utils/safeString.ts +0 -5
  711. package/src/utils/stripIconify.ts +0 -20
  712. package/src/utils/tinyMDParser.ts +0 -14
  713. package/src/virtual.d.ts +0 -663
  714. package/src/virtuals/auth/core.ts +0 -82
  715. package/src/virtuals/auth/getLabelForPermissionLevel.ts +0 -21
  716. package/src/virtuals/auth/index.ts +0 -161
  717. package/src/virtuals/auth/scripts/three.ts +0 -647
  718. package/src/virtuals/auth/scripts/utils/fitModelToViewport.ts +0 -50
  719. package/src/virtuals/auth/types.ts +0 -91
  720. package/src/virtuals/auth/validImages/index.ts +0 -52
  721. package/src/virtuals/auth/validImages/studiocms-blobs-dark.webp +0 -0
  722. package/src/virtuals/auth/validImages/studiocms-blobs-light.webp +0 -0
  723. package/src/virtuals/auth/validImages/studiocms-blocks-dark.webp +0 -0
  724. package/src/virtuals/auth/validImages/studiocms-blocks-light.webp +0 -0
  725. package/src/virtuals/auth/validImages/studiocms-curves-dark.webp +0 -0
  726. package/src/virtuals/auth/validImages/studiocms-curves-light.webp +0 -0
  727. package/src/virtuals/auth/verify-email.ts +0 -316
  728. package/src/virtuals/components/CustomImage.astro +0 -72
  729. package/src/virtuals/components/FormattedDate.astro +0 -19
  730. package/src/virtuals/components/Generator.astro +0 -5
  731. package/src/virtuals/components/Renderer.astro +0 -62
  732. package/src/virtuals/components/renderFn.ts +0 -101
  733. package/src/virtuals/i18n/LanguageSelector.astro +0 -65
  734. package/src/virtuals/i18n/client.ts +0 -283
  735. package/src/virtuals/i18n/config.ts +0 -177
  736. package/src/virtuals/i18n/overrides.ts +0 -10
  737. package/src/virtuals/i18n/plugin.ts +0 -105
  738. package/src/virtuals/i18n/server.ts +0 -197
  739. package/src/virtuals/i18n/translations/de.json +0 -374
  740. package/src/virtuals/i18n/translations/en.json +0 -374
  741. package/src/virtuals/i18n/translations/es.json +0 -374
  742. package/src/virtuals/i18n/translations/fr.json +0 -374
  743. package/src/virtuals/i18n/translations/hi.json +0 -299
  744. package/src/virtuals/i18n/translations/nl.json +0 -374
  745. package/src/virtuals/i18n/translations/no.json +0 -374
  746. package/src/virtuals/i18n/translations/zh.json +0 -374
  747. package/src/virtuals/i18n/v-files.ts +0 -153
  748. package/src/virtuals/lib/head.ts +0 -4
  749. package/src/virtuals/lib/headDefaults.ts +0 -138
  750. package/src/virtuals/lib/makeAPIRoute.ts +0 -54
  751. package/src/virtuals/lib/makePublicRoute.ts +0 -9
  752. package/src/virtuals/lib/pathGenerators.ts +0 -1
  753. package/src/virtuals/lib/routeMap.ts +0 -372
  754. package/src/virtuals/lib/urlGen.ts +0 -18
  755. package/src/virtuals/mailer/index.ts +0 -215
  756. package/src/virtuals/mailer/template.ts +0 -23
  757. package/src/virtuals/mailer/templates/index.ts +0 -4
  758. package/src/virtuals/mailer/templates/notification.ts +0 -37
  759. package/src/virtuals/mailer/templates/password-reset.ts +0 -54
  760. package/src/virtuals/mailer/templates/user-invite.ts +0 -51
  761. package/src/virtuals/mailer/templates/verify-email.ts +0 -51
  762. package/src/virtuals/notifier/client.ts +0 -23
  763. package/src/virtuals/notifier/index.ts +0 -341
  764. package/src/virtuals/plugins/dashboard-pages.ts +0 -14
  765. package/src/virtuals/plugins/frontend-navigation.ts +0 -73
  766. package/src/virtuals/plugins/index.ts +0 -2
  767. package/src/virtuals/scripts/user-quick-tools.ts +0 -874
  768. package/src/virtuals/sdk/consts.ts +0 -52
  769. package/src/virtuals/sdk/effect/collectors.ts +0 -293
  770. package/src/virtuals/sdk/effect/db.ts +0 -40
  771. package/src/virtuals/sdk/effect/foldertree.ts +0 -336
  772. package/src/virtuals/sdk/effect/generators.ts +0 -118
  773. package/src/virtuals/sdk/effect/getVersionFromNPM.ts +0 -61
  774. package/src/virtuals/sdk/effect/index.ts +0 -7
  775. package/src/virtuals/sdk/effect/lib/jwt-generator.ts +0 -141
  776. package/src/virtuals/sdk/effect/parsers.ts +0 -113
  777. package/src/virtuals/sdk/effect/pluginUtils.ts +0 -192
  778. package/src/virtuals/sdk/effect/users.ts +0 -168
  779. package/src/virtuals/sdk/errors.ts +0 -40
  780. package/src/virtuals/sdk/index.ts +0 -49
  781. package/src/virtuals/sdk/modules/auth.ts +0 -542
  782. package/src/virtuals/sdk/modules/clear.ts +0 -179
  783. package/src/virtuals/sdk/modules/config-types.ts +0 -164
  784. package/src/virtuals/sdk/modules/config.ts +0 -499
  785. package/src/virtuals/sdk/modules/delete.ts +0 -280
  786. package/src/virtuals/sdk/modules/diffTracking.ts +0 -555
  787. package/src/virtuals/sdk/modules/get.ts +0 -1246
  788. package/src/virtuals/sdk/modules/init.ts +0 -77
  789. package/src/virtuals/sdk/modules/middlewares.ts +0 -127
  790. package/src/virtuals/sdk/modules/notificationSettings.ts +0 -81
  791. package/src/virtuals/sdk/modules/plugins.ts +0 -762
  792. package/src/virtuals/sdk/modules/post.ts +0 -532
  793. package/src/virtuals/sdk/modules/resetTokenBucket.ts +0 -143
  794. package/src/virtuals/sdk/modules/rest_api.ts +0 -142
  795. package/src/virtuals/sdk/modules/update.ts +0 -415
  796. package/src/virtuals/sdk/sdkCore.ts +0 -318
  797. package/src/virtuals/sdk/tables.ts +0 -4
  798. package/src/virtuals/sdk/types/index.ts +0 -471
  799. package/src/virtuals/sdk/types/tableDefs.ts +0 -108
  800. package/src/virtuals/sdk/types/tsAlias.ts +0 -248
  801. package/src/virtuals/sdk/utils.ts +0 -240
  802. package/src/virtuals/stubs/config.stub.js +0 -9
  803. package/src/virtuals/stubs/logger.stub.js +0 -30
  804. package/src/virtuals/template-engine/default-templates.ts +0 -215
  805. package/src/virtuals/template-engine/index.ts +0 -95
  806. package/src/virtuals/utils.ts +0 -134
  807. /package/dist/{frontend → handlers/frontend}/types.d.ts +0 -0
  808. /package/dist/{frontend → handlers/frontend}/types.js +0 -0
  809. /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/CoreVitals.astro +0 -0
  810. /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/MetricCard.astro +0 -0
  811. /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/SummaryCard.astro +0 -0
  812. /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/metric.css +0 -0
  813. /package/dist/{integrations/webVitals → plugins/analytics/assets}/dashboard-grid-items/shared.js +0 -0
  814. /package/dist/{integrations/webVitals → plugins/analytics/assets}/pages/analytics/body.astro +0 -0
  815. /package/dist/{integrations/webVitals → plugins/analytics/assets}/pages/analytics/header.astro +0 -0
  816. /package/dist/{integrations/webVitals → plugins/analytics/assets}/schemas.d.ts +0 -0
  817. /package/dist/{integrations/webVitals → plugins/analytics/assets}/schemas.js +0 -0
  818. /package/dist/{integrations/webVitals → plugins/analytics/assets}/types.d.ts +0 -0
  819. /package/dist/{integrations/webVitals → plugins/analytics/assets}/types.js +0 -0
  820. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildDataObject.js +0 -0
  821. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPageRouteDataObject.d.ts +0 -0
  822. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPageRouteDataObject.js +0 -0
  823. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPerPageDataObject.d.ts +0 -0
  824. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/buildPerPageDataObject.js +0 -0
  825. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/checkDate.js +0 -0
  826. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/webVitalsUtils.d.ts +0 -0
  827. /package/dist/{integrations/webVitals → plugins/analytics/assets}/utils/webVitalsUtils.js +0 -0
  828. /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsRouteSummary.d.ts +0 -0
  829. /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsRouteSummary.js +0 -0
  830. /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsSummary.d.ts +0 -0
  831. /package/dist/{integrations/webVitals → plugins/analytics/assets}/webVitalsSummary.js +0 -0
  832. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/de.d.ts +0 -0
  833. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/de.js +0 -0
  834. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/en.d.ts +0 -0
  835. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/en.js +0 -0
  836. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/es.d.ts +0 -0
  837. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/es.js +0 -0
  838. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/fr.d.ts +0 -0
  839. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/fr.js +0 -0
  840. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/nl.d.ts +0 -0
  841. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/nl.js +0 -0
  842. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/no.d.ts +0 -0
  843. /package/dist/{integrations/webVitals → plugins/analytics}/i18n/no.js +0 -0
  844. /package/dist/{virtuals/sdk/modules/config-types.js → toolbar/db-viewer/db-shared-types.js} +0 -0
  845. /package/dist/{virtuals/sdk/types/index.js → toolbar/db-viewer/studio/type.js} +0 -0
  846. /package/{dist/frontend → frontend}/components/auth/FallbackCanvas.astro +0 -0
  847. /package/{dist/frontend → frontend}/components/auth/OAuthButton.astro +0 -0
  848. /package/{dist/frontend → frontend}/components/auth/OAuthButtonStack.astro +0 -0
  849. /package/{dist/frontend → frontend}/components/auth/StaticAuthCheck.astro +0 -0
  850. /package/{dist/frontend → frontend}/components/auth/StudioCMSLogoSVG.astro +0 -0
  851. /package/{dist/frontend → frontend}/components/auth/ThreeCanvasLoader.astro +0 -0
  852. /package/{dist/frontend → frontend}/components/dashboard/DoubleSidebar.astro +0 -0
  853. /package/{dist/frontend → frontend}/components/dashboard/MainSidebarContent.astro +0 -0
  854. /package/{dist/frontend → frontend}/components/dashboard/PageHeader.astro +0 -0
  855. /package/{dist/frontend → frontend}/components/dashboard/SidebarLink.astro +0 -0
  856. /package/{dist/frontend → frontend}/components/dashboard/SidebarModals.astro +0 -0
  857. /package/{dist/frontend → frontend}/components/dashboard/SidebarPluginLink.astro +0 -0
  858. /package/{dist/frontend → frontend}/components/dashboard/SingleSidebar.astro +0 -0
  859. /package/{dist/frontend → frontend}/components/dashboard/StudioCMSLogo.astro +0 -0
  860. /package/{dist/frontend → frontend}/components/dashboard/UserName.astro +0 -0
  861. /package/{dist/frontend → frontend}/components/dashboard/configuration/LoginPreview.astro +0 -0
  862. /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/PageEditorSwapper.astro +0 -0
  863. /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/PageTypeHandler.astro +0 -0
  864. /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/TreeRenderer.astro +0 -0
  865. /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -0
  866. /package/{dist/frontend → frontend}/components/dashboard/content-mgmt/TreeSidebarLink.astro +0 -0
  867. /package/{dist/frontend → frontend}/components/dashboard/profile/APITokens.astro +0 -0
  868. /package/{dist/frontend → frontend}/components/dashboard/profile/BasicInfo.astro +0 -0
  869. /package/{dist/frontend → frontend}/components/dashboard/profile/SocialSignin.astro +0 -0
  870. /package/{dist/frontend → frontend}/components/dashboard/profile/UpdatePassword.astro +0 -0
  871. /package/{dist/frontend → frontend}/components/dashboard/sidebar/UserAccount.astro +0 -0
  872. /package/{dist/frontend → frontend}/components/dashboard/sidebar/VersionCheckChangelog.astro +0 -0
  873. /package/{dist/frontend → frontend}/components/dashboard/sidebar-modals/UserManagementModals.astro +0 -0
  874. /package/{dist/frontend → frontend}/components/dashboard/user-mgmt/SocialSignin.astro +0 -0
  875. /package/{dist/frontend → frontend}/components/first-time-setup/PageHeader.astro +0 -0
  876. /package/{src/frontend → frontend}/components/first-time-setup/snippets/opt1-astro.config.diff +0 -0
  877. /package/{src/frontend → frontend}/components/first-time-setup/snippets/opt2-astro.config.diff +0 -0
  878. /package/{src/frontend → frontend}/components/first-time-setup/snippets/opt2-studiocms.config.diff +0 -0
  879. /package/{dist/frontend → frontend}/components/shared/Code.astro +0 -0
  880. /package/{dist/frontend → frontend}/components/shared/ThemeManager.astro +0 -0
  881. /package/{src/frontend → frontend}/components/shared/oAuthButtonProviders.ts +0 -0
  882. /package/{src/frontend → frontend}/fonts/css/onest-variable.css +0 -0
  883. /package/{src/frontend → frontend}/fonts/css/syntax.css +0 -0
  884. /package/{dist/frontend → frontend}/fonts/woff2/onest-variable.woff2 +0 -0
  885. /package/{dist/frontend → frontend}/fonts/woff2/syntax.woff2 +0 -0
  886. /package/{dist/frontend → frontend}/pages/[dashboard]/configuration.astro +0 -0
  887. /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/createfolder.astro +0 -0
  888. /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/createpage.astro +0 -0
  889. /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/editfolder.astro +0 -0
  890. /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/editpage.astro +0 -0
  891. /package/{dist/frontend → frontend}/pages/[dashboard]/content-management/index.astro +0 -0
  892. /package/{dist/frontend → frontend}/pages/[dashboard]/index.astro +0 -0
  893. /package/{dist/frontend → frontend}/pages/[dashboard]/login.astro +0 -0
  894. /package/{dist/frontend → frontend}/pages/[dashboard]/logout.astro +0 -0
  895. /package/{dist/frontend → frontend}/pages/[dashboard]/password-reset.astro +0 -0
  896. /package/{dist/frontend → frontend}/pages/[dashboard]/plugins/[plugin].astro +0 -0
  897. /package/{dist/frontend → frontend}/pages/[dashboard]/profile.astro +0 -0
  898. /package/{dist/frontend → frontend}/pages/[dashboard]/signup.astro +0 -0
  899. /package/{dist/frontend → frontend}/pages/[dashboard]/user-management/index.astro +0 -0
  900. /package/{dist/frontend → frontend}/pages/studiocms_api/dashboard/partials/Editor.astro +0 -0
  901. /package/{dist/frontend → frontend}/pages/studiocms_api/dashboard/partials/UserListItems.astro +0 -0
  902. /package/{src/frontend → frontend}/scripts/auth/formListener.ts +0 -0
  903. /package/{src/frontend → frontend}/scripts/dateTimeListener.ts +0 -0
  904. /package/{src/frontend → frontend}/scripts/dateWithTimeAndZone.ts +0 -0
  905. /package/{src/frontend → frontend}/scripts/formdata-utils.ts +0 -0
  906. /package/{src/frontend → frontend}/scripts/timeAgo.ts +0 -0
  907. /package/{dist/frontend → frontend}/setup-pages/index.astro +0 -0
  908. /package/{src/frontend → frontend}/styles/404.css +0 -0
  909. /package/{src/frontend → frontend}/styles/auth-layout.css +0 -0
  910. /package/{src/frontend → frontend}/styles/code-component.css +0 -0
  911. /package/{src/frontend → frontend}/styles/dashboard-base.css +0 -0
  912. /package/{src/frontend → frontend}/styles/dashboard-diff.css +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # studiocms
2
2
 
3
+ ## 0.1.0-beta.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1022](https://github.com/withstudiocms/studiocms/pull/1022) [`746c717`](https://github.com/withstudiocms/studiocms/commit/746c717fed390e0e9aaea7f3db147afcee42820f) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements the ability to set default language from StudioCMS config file
8
+
9
+ - [#1052](https://github.com/withstudiocms/studiocms/pull/1052) [`b81924e`](https://github.com/withstudiocms/studiocms/commit/b81924ebc2e6656eaf8117988a33819196b04aed) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements System Management dashboard page, and new built-in database viewer utility
10
+
11
+ - [#1046](https://github.com/withstudiocms/studiocms/pull/1046) [`39cf90d`](https://github.com/withstudiocms/studiocms/commit/39cf90dc8acdaff624f4a170e82bd97f7dd5703a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates usage of createResolver to use createPathResolver from @withstudiocms/internal_helpers package
12
+
13
+ - [#1047](https://github.com/withstudiocms/studiocms/pull/1047) [`9a8bfed`](https://github.com/withstudiocms/studiocms/commit/9a8bfeda461dbc7e3188222db3adeffca1c29f6a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors code structure to move all code that does not need to be built into it's own frontend folder, allowing us to no longer ship both SRC and DIST, instead having DIST and FRONTEND folders instead. Frontend folder being specific to serving and handling Astro pages and endpoints
14
+
15
+ - [#1018](https://github.com/withstudiocms/studiocms/pull/1018) [`cb027b2`](https://github.com/withstudiocms/studiocms/commit/cb027b20d2620410ecde80b06a66f57b964fb4b1) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency nanostores to ^1.1.0
16
+
17
+ - [#1040](https://github.com/withstudiocms/studiocms/pull/1040) [`86d2825`](https://github.com/withstudiocms/studiocms/commit/86d2825f8f077eed158ddd3e9d25e02ff0794804) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
18
+
19
+ - [#1063](https://github.com/withstudiocms/studiocms/pull/1063) [`52758e0`](https://github.com/withstudiocms/studiocms/commit/52758e0fc518dcb10d2416b9cec7cc1287e71408) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
20
+
21
+ - [#998](https://github.com/withstudiocms/studiocms/pull/998) [`25d5f6e`](https://github.com/withstudiocms/studiocms/commit/25d5f6ef79c39f4d69418b1dd0cae87f8d646dd1) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
22
+
23
+ - [#1030](https://github.com/withstudiocms/studiocms/pull/1030) [`66480a1`](https://github.com/withstudiocms/studiocms/commit/66480a19943ca42b8471c76984321a9f6bd13d94) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Introduces new plugin helpers for DB interactions
24
+
25
+ - [#1023](https://github.com/withstudiocms/studiocms/pull/1023) [`43483c4`](https://github.com/withstudiocms/studiocms/commit/43483c455a648f804b4c6f418878830c396bc6f5) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements dynamic components/scripts for the StudioCMS dashboard injectable through plugins
26
+
27
+ - [#1048](https://github.com/withstudiocms/studiocms/pull/1048) [`27fd297`](https://github.com/withstudiocms/studiocms/commit/27fd2975d8390728dc8af582ddff1a7691c9a3d2) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors StudioCMS config processing and loading to simplify how and where configs can load. StudioCMS now no longer supports in-line config, you MUST use a `studiocms.config.*` file.
28
+
29
+ - [#1053](https://github.com/withstudiocms/studiocms/pull/1053) [`5f406bc`](https://github.com/withstudiocms/studiocms/commit/5f406bc8cb4324e75dfc8b5b3140b6a73a1cbf08) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements new internal helpers for handling debug info
30
+
31
+ - [#1045](https://github.com/withstudiocms/studiocms/pull/1045) [`2e2886d`](https://github.com/withstudiocms/studiocms/commit/2e2886d59646660e04dc9d0d4d2d1c08c607f733) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Adds new middleware to handle and display errors to prevent dead pages
32
+
33
+ - [#1033](https://github.com/withstudiocms/studiocms/pull/1033) [`262442b`](https://github.com/withstudiocms/studiocms/commit/262442bab6538b91b9959449b4aa473d70e0126a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - fixes broken type
34
+
35
+ - [#1044](https://github.com/withstudiocms/studiocms/pull/1044) [`72e1359`](https://github.com/withstudiocms/studiocms/commit/72e1359d9081f33f6a3d73e1f44774cdf9be0afd) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleans up CLI utilities and refactors initCMD env step to work with new kysely based SDK
36
+
37
+ - [#1054](https://github.com/withstudiocms/studiocms/pull/1054) [`c7c9b91`](https://github.com/withstudiocms/studiocms/commit/c7c9b918b426d253c4e33b5e8c7ead9c650339da) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Integrates option Analytics plugin into StudioCMS to replace previous web vitals astrodb integration
38
+
39
+ - [#1031](https://github.com/withstudiocms/studiocms/pull/1031) [`1359631`](https://github.com/withstudiocms/studiocms/commit/13596311bfbb6e64ff862dc2d1b902eb6a9199e9) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Modifies types and schemas to allow proper JSDoc comments to be present
40
+
41
+ - [#1029](https://github.com/withstudiocms/studiocms/pull/1029) [`da369c7`](https://github.com/withstudiocms/studiocms/commit/da369c7bd8f40670cb56821d74686c79840f06e4) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Integrates new Kysely based SDK into StudioCMS
42
+
43
+ - [#1021](https://github.com/withstudiocms/studiocms/pull/1021) [`015a509`](https://github.com/withstudiocms/studiocms/commit/015a5095279680384143db8422ae0032ee8360b2) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements testers for plugin renderers as well as augments
44
+
45
+ - [#1036](https://github.com/withstudiocms/studiocms/pull/1036) [`ddae77d`](https://github.com/withstudiocms/studiocms/commit/ddae77dbb22376803c4c166323dff161fe30d030) Thanks [@renovate](https://github.com/apps/renovate)! - lint
46
+
47
+ - [#1026](https://github.com/withstudiocms/studiocms/pull/1026) [`85727e5`](https://github.com/withstudiocms/studiocms/commit/85727e51a1c90a8f82ce8ca6f1ff6fabc9f3f090) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors and unifies base page layout for all layouts for StudioCMS dashboard/auth/first-time setup pages
48
+
49
+ - [#1069](https://github.com/withstudiocms/studiocms/pull/1069) [`a5ba52e`](https://github.com/withstudiocms/studiocms/commit/a5ba52e9c06e6aa7318d40561c6e3a919d6b1988) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Move template editor logic into component instead of built script
50
+
51
+ - [#1028](https://github.com/withstudiocms/studiocms/pull/1028) [`dd259eb`](https://github.com/withstudiocms/studiocms/commit/dd259eb714fde4f1708cb9ad1f3dcb8b3f6b7661) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Allows disabling generator head tags in the dashboard via the `security.hideGeneratorTags` option in the dashboard config
52
+
53
+ - [#1010](https://github.com/withstudiocms/studiocms/pull/1010) [`a416585`](https://github.com/withstudiocms/studiocms/commit/a4165851f3ae44c43aa21c270ecfe9ea1dfa5f59) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors plugin hooks
54
+
55
+ - [#1050](https://github.com/withstudiocms/studiocms/pull/1050) [`c24b655`](https://github.com/withstudiocms/studiocms/commit/c24b655e74a53fbf0b7a5a47f9d65270f0c3defc) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Cleans up unused mailer template code from before the new template engine system was implemented
56
+
57
+ - [#1049](https://github.com/withstudiocms/studiocms/pull/1049) [`962d5ae`](https://github.com/withstudiocms/studiocms/commit/962d5aebb1c4e44d2fc4fe4d652300776ebaed35) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors and cleans up Folder structure system to ensure urlRoute property on CombinedPageData return resolves correctly
58
+
59
+ - [#1024](https://github.com/withstudiocms/studiocms/pull/1024) [`5756c15`](https://github.com/withstudiocms/studiocms/commit/5756c156d9adb4036029f930308606338fb39b6a) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements migrator CLI
60
+
61
+ - [#1025](https://github.com/withstudiocms/studiocms/pull/1025) [`455a82a`](https://github.com/withstudiocms/studiocms/commit/455a82aff8f6430df3a40b2edbcf6f05bb4d4c9d) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Update ghost image url and cleanup lint/type weirdness
62
+
63
+ - [#1067](https://github.com/withstudiocms/studiocms/pull/1067) [`747e0e2`](https://github.com/withstudiocms/studiocms/commit/747e0e2b9e3a1b9de3933ab0c153f44ece66d454) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Adds `studiocms debug` command for displaying debug information similar to `astro debug`
64
+
65
+ - [#1001](https://github.com/withstudiocms/studiocms/pull/1001) [`a0f45c5`](https://github.com/withstudiocms/studiocms/commit/a0f45c5d9c034cf63d0d36a1c4c1eef598533bb6) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #1001)
66
+
67
+ - Updated dependencies [[`262442b`](https://github.com/withstudiocms/studiocms/commit/262442bab6538b91b9959449b4aa473d70e0126a), [`ee90810`](https://github.com/withstudiocms/studiocms/commit/ee9081053f808d4366a9c95e13539a5198b27bb5), [`a5b84c5`](https://github.com/withstudiocms/studiocms/commit/a5b84c52383bf299aa70c04b064850c7883b59b1), [`66480a1`](https://github.com/withstudiocms/studiocms/commit/66480a19943ca42b8471c76984321a9f6bd13d94), [`944e965`](https://github.com/withstudiocms/studiocms/commit/944e965e535f988ef2b9666d26739f65083bbc2d), [`27fd297`](https://github.com/withstudiocms/studiocms/commit/27fd2975d8390728dc8af582ddff1a7691c9a3d2), [`5f406bc`](https://github.com/withstudiocms/studiocms/commit/5f406bc8cb4324e75dfc8b5b3140b6a73a1cbf08), [`9a8bfed`](https://github.com/withstudiocms/studiocms/commit/9a8bfeda461dbc7e3188222db3adeffca1c29f6a), [`ba79740`](https://github.com/withstudiocms/studiocms/commit/ba797403563b8fbd381e0fc28f4ccba0ec6432a6), [`3c54788`](https://github.com/withstudiocms/studiocms/commit/3c54788df0bd548f1e3489b7c7334279ee85d5cb), [`747e0e2`](https://github.com/withstudiocms/studiocms/commit/747e0e2b9e3a1b9de3933ab0c153f44ece66d454), [`5cfd64b`](https://github.com/withstudiocms/studiocms/commit/5cfd64b743e6d716cffa05dffda6fb94d11e8251), [`1e1e6a1`](https://github.com/withstudiocms/studiocms/commit/1e1e6a1038de31bfe73070b4feb7163a3e7385a0), [`da369c7`](https://github.com/withstudiocms/studiocms/commit/da369c7bd8f40670cb56821d74686c79840f06e4), [`3fbc758`](https://github.com/withstudiocms/studiocms/commit/3fbc75812bbf4f27d8bb27a3c35c78d87616a2b6), [`ddae77d`](https://github.com/withstudiocms/studiocms/commit/ddae77dbb22376803c4c166323dff161fe30d030), [`c7c9b91`](https://github.com/withstudiocms/studiocms/commit/c7c9b918b426d253c4e33b5e8c7ead9c650339da), [`d857f5c`](https://github.com/withstudiocms/studiocms/commit/d857f5c7e76336f41541aeb0aae73f07f73d875c), [`5756c15`](https://github.com/withstudiocms/studiocms/commit/5756c156d9adb4036029f930308606338fb39b6a), [`39cf90d`](https://github.com/withstudiocms/studiocms/commit/39cf90dc8acdaff624f4a170e82bd97f7dd5703a), [`97c7847`](https://github.com/withstudiocms/studiocms/commit/97c7847c0cdd41998e0a6d8c61ab6f3c4ac4474e), [`675b7d5`](https://github.com/withstudiocms/studiocms/commit/675b7d5bbb2c40e6a204d3c7227812923e37289f), [`962d5ae`](https://github.com/withstudiocms/studiocms/commit/962d5aebb1c4e44d2fc4fe4d652300776ebaed35), [`8da7850`](https://github.com/withstudiocms/studiocms/commit/8da7850d4cf4a2a7d1634081f92d5728ca5f0d9e)]:
68
+ - @withstudiocms/kysely@0.1.0-beta.1
69
+ - @withstudiocms/effect@0.1.0-beta.7
70
+ - @withstudiocms/sdk@0.1.0-beta.1
71
+ - @withstudiocms/config-utils@0.1.0-beta.5
72
+ - @withstudiocms/internal_helpers@0.1.0-beta.4
73
+ - @withstudiocms/component-registry@0.1.0-beta.7
74
+ - @withstudiocms/auth-kit@0.1.0-beta.6
75
+
3
76
  ## 0.1.0-beta.30
4
77
 
5
78
  ### Patch Changes
package/README.md CHANGED
@@ -1,17 +1,18 @@
1
- # StudioCMS: A Community-Driven Astro native CMS for Astro DB
1
+ # StudioCMS: A Community-Driven Astro native CMS
2
2
 
3
- StudioCMS is a dedicated Astro native content management system (CMS) built on top of [Astro DB](https://docs.astro.build/en/guides/astro-db/). This project was developed by [Adam](https://github.com/Adammatthiesen), [Dreyfus](https://github.com/dreyfus92), and [Jumper](https://github.com/jdtjenkins), three passionate members of the Astro community.
3
+ [![NPM Version](https://img.shields.io/npm/v/studiocms)](https://npm.im/studiocms)
4
+ [![codecov](https://codecov.io/github/withstudiocms/studiocms/graph/badge.svg?token=RN8LT1O5E2&component=studiocms)](https://codecov.io/github/withstudiocms/studiocms)
5
+ [![Crowdin](https://badges.crowdin.net/studiocms/localized.svg)](https://crowdin.com/project/studiocms)
6
+ [![pkg.pr.new](https://img.shields.io/badge/Continuous%20Releases-pkg.pr.new-8A2BE2?logo=pkgsrc&logoColor=FFF)](https://pkg.pr.new/~/withstudiocms/studiocms)
7
+ [![Built with Astro](https://astro.badg.es/v2/built-with-astro/tiny.svg)](https://astro.build)
8
+
9
+ StudioCMS is a dedicated [SSR (Server-side-rendered)](https://docs.astro.build/en/guides/on-demand-rendering/) Astro native CMS, build from the ground up for the Astro community and by Astro community members. StudioCMS is designed to be a flexible CMS that can be used headless using our RESTAPI or as a fully integrated CMS using plugins and a custom frontend.
4
10
 
5
11
  > [!IMPORTANT]
6
12
  > This project is still in early development and it is not yet ready for production use. If you encounter any issues or have ideas for new features, please let us know by [opening an issue](https://github.com/withstudiocms/studiocms/issues/new/choose) on our GitHub repository.
7
13
  >
8
14
  > During our `0.1.0-beta.x` phase, breaking changes may ship in patch releases.
9
15
 
10
- ## Sponsor
11
-
12
- <a href="https://tur.so/studiocms" rel="sponsored" target="_blank"><img src="https://turso.tech/logokit/turso-logo-illustrated.svg" width="400px" alt="Turso logo" /></a>
13
- <a href="https://www.skip2.net/?utm_source=studiocms" rel="sponsored" target="_blank"><img src="https://www.skip2.net/images/logo.svg" width="400px" alt="Skip2 logo" /></a>
14
-
15
16
  ## Get Started
16
17
 
17
18
  Follow the documentation to [get started with StudioCMS](https://docs.studiocms.dev/start-here/getting-started).
@@ -26,9 +27,16 @@ By fostering a sense of shared ownership and investment, we aim to create a CMS
26
27
 
27
28
  So don't be a stranger - come join us on this journey and help us realize the full potential of StudioCMS!
28
29
 
29
- ## Get Involved
30
+ ## Chat with Us
30
31
 
31
- As members of [withstudiocms](https://github.com/withstudiocms) we are a free and open-source project, and we welcome contributions from the Astro community. If you're interested in getting involved, please visit our [GitHub repository](https://github.com/withstudiocms/studiocms) and join our [Discord server](https://chat.studiocms.dev/). Together, let's build an even stronger and more vibrant Astro ecosystem.
32
+ We have an active community of developers on the StudioCMS [Discord Server](https://chat.studiocms.dev/). Feel free to join and connect with other contributors, ask questions, or discuss ideas related to this project or other StudioCMS projects.
33
+
34
+ Looking to get involved with the StudioCMS project? Please visit our [GitHub repository](https://github.com/withstudiocms/studiocms) and join our [Discord server](https://chat.studiocms.dev/). Together, let's build an even stronger and more vibrant Astro ecosystem.
35
+
36
+ ## Sponsors
37
+
38
+ <a href="https://tur.so/studiocms" rel="sponsored" target="_blank"><img src="https://turso.tech/logokit/turso-logo-illustrated.svg" width="400px" alt="Turso logo" /></a>
39
+ <a href="https://www.skip2.net/?utm_source=studiocms" rel="sponsored" target="_blank"><img src="https://www.skip2.net/images/logo.svg" width="400px" alt="Skip2 logo" /></a>
32
40
 
33
41
  ## Licensing
34
42
 
@@ -17,10 +17,10 @@ export declare const STUBS: {
17
17
  STUDIOCMS_CONFIG: string;
18
18
  };
19
19
  export declare const toIdent: (name: string) => string;
20
- export declare const createPrettyError: (err: Error) => Effect.Effect<Error, never, never>;
21
- export declare const resolveConfigPath: (root: URL) => Effect.Effect<URL | undefined, import("effect/Cause").UnknownException, never>;
20
+ export declare const createPrettyError: (err: Error) => Error;
21
+ export declare const resolveConfigPath: (root: URL) => Effect.Effect<URL | undefined, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
22
22
  export declare function appendForwardSlash(path: string): string;
23
23
  export declare const plugin: Cli.Args.Args<string[]>;
24
- export declare const addPlugin: Cli.Command.Command<"add", never, Error | Effect.Effect<Error, never, never>, {
24
+ export declare const addPlugin: Cli.Command.Command<"add", never, Error | import("effect/ConfigError").ConfigError, {
25
25
  readonly plugin: string[];
26
26
  }>;
@@ -5,6 +5,7 @@ import { exists, pathToFileURL, resolveRoot } from "@withstudiocms/cli-kit/utils
5
5
  import { intro, note, outro } from "@withstudiocms/effect/clack";
6
6
  import { builders, loadFile } from "magicast";
7
7
  import { getDefaultExportOptions } from "magicast/helpers";
8
+ import { configPaths } from "../../consts.js";
8
9
  import { Cli, Console, Effect, genLogger, Layer } from "../../effect.js";
9
10
  import { CliContext, genContext } from "../utils/context.js";
10
11
  import { logger } from "../utils/logger.js";
@@ -43,22 +44,14 @@ const toIdent = (name) => {
43
44
  const ident = name.trim().replace(/[-_./]?studiocms?[-_.]?/g, "").replace(/\.js/, "").replace(/[.\-_/]+([a-zA-Z])/g, (_, w) => w.toUpperCase()).replace(/^[^a-zA-Z$_]+/, "").replace(/@.*$/, "");
44
45
  return `${ident[0].toLowerCase()}${ident.slice(1)}`;
45
46
  };
46
- const createPrettyError = (err) => Effect.sync(() => {
47
- err.message = `StudioCMS could not update your studiocms.config.mjs file safely.
48
- Reason: ${err.message}
49
-
50
- You will need to add these plugins(s) manually.
51
- Documentation: https://docs.studiocms.dev`;
52
- return err;
53
- });
54
- const configPaths = Object.freeze([
55
- "./studiocms.config.js",
56
- "./studiocms.config.mjs",
57
- "./studiocms.config.cjs",
58
- "./studiocms.config.ts",
59
- "./studiocms.config.mts",
60
- "./studiocms.config.cts"
61
- ]);
47
+ const createPrettyError = (err) => new Error(
48
+ `StudioCMS could not update your studiocms.config.mjs file safely.
49
+ Reason: ${err.message}
50
+
51
+ You will need to add these plugin(s) manually.
52
+ Documentation: https://docs.studiocms.dev`,
53
+ { cause: err }
54
+ );
62
55
  const resolveConfigPath = (root) => genLogger("studiocms/cli/add.resolveConfigPath")(function* () {
63
56
  for (const path of configPaths) {
64
57
  const url = yield* Effect.try(() => new URL(path, root));
@@ -1,15 +1,15 @@
1
1
  import { Effect } from '../../effect.js';
2
2
  import type { PluginInfo } from './index.js';
3
- export declare const getRegistry: Effect.Effect<string, import("effect/Cause").UnknownException, never>;
4
- export declare const fetchPackageVersions: (packageName: string) => Effect.Effect<Error | string[], import("effect/Cause").UnknownException, never>;
3
+ export declare const getRegistry: Effect.Effect<string, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
4
+ export declare const fetchPackageVersions: (packageName: string) => Effect.Effect<Error | string[], import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
5
5
  /**
6
6
  * Resolves package with a given range to a STABLE version
7
7
  * peerDependencies might specify a compatible prerelease,
8
8
  * but `studiocms add` should only ever install stable releases
9
9
  */
10
- export declare const resolveRangeToInstallSpecifier: (name: string, range: string) => Effect.Effect<string, import("effect/Cause").UnknownException, never>;
11
- export declare const convertPluginsToInstallSpecifiers: (plugins: PluginInfo[]) => Effect.Effect<string[], import("effect/Cause").UnknownException, never>;
12
- export declare const fetchPackageJson: (scope: string | undefined, name: string, tag: string) => Effect.Effect<any, import("effect/Cause").UnknownException, never>;
10
+ export declare const resolveRangeToInstallSpecifier: (name: string, range: string) => Effect.Effect<string, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
11
+ export declare const convertPluginsToInstallSpecifiers: (plugins: PluginInfo[]) => Effect.Effect<string[], import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
12
+ export declare const fetchPackageJson: (scope: string | undefined, name: string, tag: string) => Effect.Effect<any, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
13
13
  export declare const parseNpmName: (spec: string) => Effect.Effect<{
14
14
  scope: string | undefined;
15
15
  name: string;
@@ -19,4 +19,4 @@ export declare const parsePluginName: (spec: string) => Effect.Effect<{
19
19
  scope: string | undefined;
20
20
  name: string;
21
21
  tag: string;
22
- } | undefined, import("effect/Cause").UnknownException, never>;
22
+ } | undefined, import("effect/Cause").UnknownException | import("effect/ConfigError").ConfigError, never>;
@@ -3,7 +3,7 @@ import { CliContext } from '../utils/context.js';
3
3
  import { type PluginInfo, UpdateResult } from './index.js';
4
4
  declare const TryToInstallPlugins_base: Effect.Service.Class<TryToInstallPlugins, "TryToInstallPlugins", {
5
5
  readonly effect: Effect.Effect<{
6
- run: (plugins: PluginInfo[]) => Effect.Effect<UpdateResult, Error, CliContext>;
6
+ run: (plugins: PluginInfo[]) => Effect.Effect<UpdateResult, Error | import("effect/ConfigError").ConfigError, CliContext>;
7
7
  }, never, never>;
8
8
  }>;
9
9
  export declare class TryToInstallPlugins extends TryToInstallPlugins_base {
@@ -65,7 +65,10 @@ ${message}`
65
65
  });
66
66
  return UpdateResult.updated;
67
67
  },
68
- catch: (err) => err
68
+ catch: (err) => new Error(
69
+ `Failed to install dependencies: ${err instanceof Error ? err.message : String(err)}`,
70
+ { cause: err }
71
+ )
69
72
  }).pipe(Effect.catchAll((err) => Effect.succeed(err)));
70
73
  if (response === UpdateResult.updated) {
71
74
  yield* spin.stop("Dependencies installed!");
@@ -4,7 +4,7 @@ import { CliContext } from '../utils/context.js';
4
4
  import { UpdateResult } from './index.js';
5
5
  declare const UpdateStudioCMSConfig_base: Effect.Service.Class<UpdateStudioCMSConfig, "UpdateStudioCMSConfig", {
6
6
  readonly effect: Effect.Effect<{
7
- run: (configURL: URL, mod: ProxifiedModule<any>) => Effect.Effect<UpdateResult.none | UpdateResult.updated | UpdateResult.cancelled, Error, CliContext>;
7
+ run: (configURL: URL, mod: ProxifiedModule<any>) => Effect.Effect<UpdateResult.none | UpdateResult.updated | UpdateResult.cancelled, Error | import("effect/ConfigError").ConfigError, CliContext>;
8
8
  }, never, never>;
9
9
  }>;
10
10
  export declare class UpdateStudioCMSConfig extends UpdateStudioCMSConfig_base {
@@ -3,7 +3,7 @@ import { CliContext } from '../utils/context.js';
3
3
  import { type PluginInfo } from './index.js';
4
4
  declare const ValidatePlugins_base: Effect.Service.Class<ValidatePlugins, "ValidatePlugins", {
5
5
  readonly effect: Effect.Effect<{
6
- run: (names: string[]) => Effect.Effect<PluginInfo[], Error, CliContext>;
6
+ run: (names: string[]) => Effect.Effect<PluginInfo[], Error | import("effect/ConfigError").ConfigError, CliContext>;
7
7
  }, never, never>;
8
8
  }>;
9
9
  export declare class ValidatePlugins extends ValidatePlugins_base {
@@ -5,8 +5,7 @@ import { Cli } from '../../../effect.js';
5
5
  export declare const OneYear = 31556926;
6
6
  export declare const keyFile: Cli.Args.Args<string>;
7
7
  export declare const expire: Cli.Options.Options<31556926 | import("effect/Option").Option<number>>;
8
- export declare const debug: Cli.Options.Options<false | import("effect/Option").Option<boolean>>;
9
- export declare const genJWT: Cli.Command.Command<"gen-jwt", never, RangeError, {
8
+ export declare const genJWT: Cli.Command.Command<"gen-jwt", never, import("effect/ConfigError").ConfigError | RangeError, {
10
9
  readonly keyFile: string;
11
10
  readonly expire: 31556926 | import("effect/Option").Option<number>;
12
11
  readonly debug: false | import("effect/Option").Option<boolean>;
@@ -11,6 +11,7 @@ import { importPKCS8 } from "jose/key/import";
11
11
  import { Cli, Effect, genLogger } from "../../../effect.js";
12
12
  import { genContext } from "../../utils/context.js";
13
13
  import { dateAdd } from "../../utils/dateAdd.js";
14
+ import { debug } from "../../utils/debugOpt.js";
14
15
  import { logger } from "../../utils/logger.js";
15
16
  const OneYear = 31556926;
16
17
  const keyFile = Cli.Args.text({ name: "keyfile" }).pipe(
@@ -24,11 +25,6 @@ const expire = Cli.Options.integer("exp").pipe(
24
25
  Cli.Options.withDefault(OneYear),
25
26
  Cli.Options.withDescription("Expiry date in seconds (>=0) from issued at (iat) time")
26
27
  );
27
- const debug = Cli.Options.boolean("debug").pipe(
28
- Cli.Options.optional,
29
- Cli.Options.withDefault(false),
30
- Cli.Options.withDescription("Enable debug mode")
31
- );
32
28
  const convertJwtToBase64Url = (jwtToken) => Effect.try(() => Buffer.from(jwtToken).toString("base64url"));
33
29
  const genJWT = Cli.Command.make(
34
30
  "gen-jwt",
@@ -117,7 +113,6 @@ const genJWT = Cli.Command.make(
117
113
  ).pipe(Cli.Command.withDescription("Generate a JWT token from a keyfile"));
118
114
  export {
119
115
  OneYear,
120
- debug,
121
116
  expire,
122
117
  genJWT,
123
118
  keyFile
@@ -1,5 +1,5 @@
1
1
  import { Cli } from '../../effect.js';
2
- export declare const cryptoCMD: Cli.Command.Command<"crypto", never, RangeError, {
2
+ export declare const cryptoCMD: Cli.Command.Command<"crypto", never, import("effect/ConfigError").ConfigError | RangeError, {
3
3
  readonly subcommand: import("effect/Option").Option<{
4
4
  readonly keyFile: string;
5
5
  readonly expire: 31556926 | import("effect/Option").Option<number>;
@@ -0,0 +1,4 @@
1
+ import { Cli } from '@withstudiocms/effect';
2
+ export declare const debugCMD: Cli.Command.Command<"debug", never, Error, {
3
+ readonly debug: false | import("effect/Option").Option<boolean>;
4
+ }>;
@@ -0,0 +1,94 @@
1
+ import { pathToFileURL } from "node:url";
2
+ import { StudioCMSColorwayBg } from "@withstudiocms/cli-kit/colors";
3
+ import { label } from "@withstudiocms/cli-kit/messages";
4
+ import { loadConfigFile } from "@withstudiocms/config-utils";
5
+ import { Cli, Effect } from "@withstudiocms/effect";
6
+ import { intro, log, outro } from "@withstudiocms/effect/clack";
7
+ import { DebugInfoProvider } from "@withstudiocms/internal_helpers/debug-info-provider";
8
+ import chalk from "chalk";
9
+ import { debug } from "../utils/debugOpt.js";
10
+ const astroConfigPaths = [
11
+ "astro.config.mjs",
12
+ "astro.config.js",
13
+ "astro.config.ts",
14
+ "astro.config.cts",
15
+ "astro.config.mts",
16
+ "astro.config.cjs"
17
+ ];
18
+ const studiocmsConfigPaths = [
19
+ "studiocms.config.mjs",
20
+ "studiocms.config.js",
21
+ "studiocms.config.ts",
22
+ "studiocms.config.cts",
23
+ "studiocms.config.mts",
24
+ "studiocms.config.cjs"
25
+ ];
26
+ const loadConfig = (key) => Effect.tryPromise({
27
+ try: async () => {
28
+ const cwd = process.cwd();
29
+ const rootURL = pathToFileURL(`${cwd}/`);
30
+ const configPaths = key === "astro" ? astroConfigPaths : studiocmsConfigPaths;
31
+ return await loadConfigFile(
32
+ rootURL,
33
+ configPaths,
34
+ key
35
+ );
36
+ },
37
+ catch: (error) => {
38
+ throw new Error(`Failed to load config: ${error.message}`);
39
+ }
40
+ });
41
+ const debugCMD = Cli.Command.make(
42
+ "debug",
43
+ { debug },
44
+ ({ debug: _debug }) => Effect.gen(function* () {
45
+ let debug2;
46
+ if (typeof _debug !== "boolean") {
47
+ debug2 = yield* _debug;
48
+ } else {
49
+ debug2 = _debug;
50
+ }
51
+ if (debug2) {
52
+ yield* Effect.log("Getting debug info for StudioCMS...");
53
+ }
54
+ const [AstroConfig, StudioCMSConfig] = yield* Effect.all([
55
+ loadConfig("astro"),
56
+ loadConfig("studiocms")
57
+ ]);
58
+ const adapterName = AstroConfig?.adapter?.name ?? "No adapter configured";
59
+ const databaseDialect = StudioCMSConfig?.db?.dialect ?? "libsql";
60
+ const installedPlugins = StudioCMSConfig?.plugins?.map(({ identifier, name }) => ({ identifier, name })) ?? [];
61
+ if (debug2) {
62
+ yield* Effect.log(
63
+ `Astro Adapter Name: ${adapterName}`,
64
+ `Database Dialect: ${databaseDialect}`,
65
+ `Installed Plugins: ${installedPlugins.length}`
66
+ );
67
+ }
68
+ const infoProvider = yield* Effect.try({
69
+ try: () => new DebugInfoProvider({
70
+ adapterName,
71
+ databaseDialect,
72
+ installedPlugins
73
+ }),
74
+ catch: (error) => new Error(`Failed to create DebugInfoProvider: ${error.message}`)
75
+ });
76
+ const debugInfo = yield* Effect.tryPromise({
77
+ try: () => infoProvider.getDebugInfoString(4, { styled: true }),
78
+ catch: (error) => new Error(`Failed to gather debug info: ${error.message}`)
79
+ });
80
+ if (debug2) {
81
+ yield* Effect.log("Debug info gathered successfully.");
82
+ }
83
+ console.log("");
84
+ yield* intro(`${label("StudioCMS Debug Information", StudioCMSColorwayBg, chalk.black)}`);
85
+ yield* log.info(debugInfo);
86
+ yield* outro();
87
+ if (debug2) {
88
+ yield* Effect.log("Debug command completed.");
89
+ }
90
+ })
91
+ ).pipe(Cli.Command.withDescription("Debug info for StudioCMS"));
92
+ export {
93
+ debugCMD
94
+ };
@@ -1,2 +1,4 @@
1
1
  import { Cli } from '../../effect.js';
2
- export declare const getTurso: Cli.Command.Command<"get-turso", never, void, {}>;
2
+ export declare const getTurso: Cli.Command.Command<"get-turso", never, Error, {
3
+ readonly shell: import("effect/Option").Option<string>;
4
+ }>;
@@ -1,13 +1,26 @@
1
1
  import { runInteractiveCommand } from "@withstudiocms/cli-kit/utils";
2
2
  import { Cli, Effect } from "../../effect.js";
3
+ const shell = Cli.Args.text({ name: "shell" }).pipe(
4
+ Cli.Args.optional,
5
+ Cli.Args.withDescription(
6
+ "The shell to use for executing the install command (e.g., bash, zsh) (default: bash)"
7
+ )
8
+ );
3
9
  const getTurso = Cli.Command.make(
4
10
  "get-turso",
5
- {},
6
- () => Effect.tryPromise({
7
- try: () => runInteractiveCommand("curl -sSfL https://get.tur.so/install.sh | bash").then(
8
- () => console.log("Turso CLI install command completed.")
9
- ),
10
- catch: (error) => console.error(`Failed to run Turso install: ${error.message}`)
11
+ { shell },
12
+ ({ shell: rawShell }) => Effect.gen(function* () {
13
+ let shell2;
14
+ if (typeof rawShell !== "string" && rawShell !== void 0) {
15
+ shell2 = yield* rawShell;
16
+ }
17
+ const command = `curl -sSfL https://get.tur.so/install.sh | ${shell2 ? shell2 : "bash"}`;
18
+ return yield* Effect.tryPromise({
19
+ try: () => runInteractiveCommand(command).then(
20
+ () => console.log("Turso CLI install command completed.")
21
+ ),
22
+ catch: (error) => new Error(`Failed to install Turso CLI: ${String(error)}`)
23
+ });
11
24
  })
12
25
  ).pipe(Cli.Command.withDescription("Install the Turso CLI"));
13
26
  export {
package/dist/cli/index.js CHANGED
@@ -3,14 +3,24 @@ import dotenv from "dotenv";
3
3
  import { Cli, Effect, Layer, PlatformNode } from "../effect.js";
4
4
  import { addPlugin } from "./add/index.js";
5
5
  import { cryptoCMD } from "./crypto/index.js";
6
+ import { debugCMD } from "./debug/index.js";
6
7
  import { getTurso } from "./getTurso/index.js";
7
8
  import { initCMD } from "./init/index.js";
9
+ import { migratorCMD } from "./migrator/index.js";
8
10
  import { usersCMD } from "./users/index.js";
9
11
  dotenv.config({ quiet: true });
10
12
  const pkgJson = readJson(new URL("../../package.json", import.meta.url));
11
13
  const command = Cli.Command.make("studiocms").pipe(
12
14
  Cli.Command.withDescription("StudioCMS CLI Utility Toolkit"),
13
- Cli.Command.withSubcommands([addPlugin, cryptoCMD, getTurso, initCMD, usersCMD])
15
+ Cli.Command.withSubcommands([
16
+ addPlugin,
17
+ cryptoCMD,
18
+ debugCMD,
19
+ getTurso,
20
+ initCMD,
21
+ migratorCMD,
22
+ usersCMD
23
+ ])
14
24
  );
15
25
  const cli = Cli.Command.run(command, {
16
26
  name: "StudioCMS CLI Utility Toolkit",
@@ -1,7 +1,6 @@
1
1
  import { Cli } from '../../effect.js';
2
- export declare const debug: Cli.Options.Options<false | import("effect/Option").Option<boolean>>;
3
2
  export declare const dryRun: Cli.Options.Options<import("effect/Option").Option<boolean>>;
4
- export declare const initCMD: Cli.Command.Command<"init", never, Error, {
3
+ export declare const initCMD: Cli.Command.Command<"init", never, Error | import("effect/ConfigError").ConfigError, {
5
4
  readonly debug: false | import("effect/Option").Option<boolean>;
6
5
  readonly dryRun: import("effect/Option").Option<boolean>;
7
6
  }>;
@@ -3,16 +3,12 @@ import { label } from "@withstudiocms/cli-kit/messages";
3
3
  import { intro, log, multiselect, tasks } from "@withstudiocms/effect/clack";
4
4
  import { Cli, Effect, genLogger } from "../../effect.js";
5
5
  import { CliContext, genContext, parseDebug } from "../utils/context.js";
6
+ import { debug } from "../utils/debugOpt.js";
6
7
  import { intro as SCMS_Intro } from "../utils/intro.js";
7
8
  import { buildDebugLogger } from "../utils/logger.js";
8
9
  import { appendOptionsToSteps } from "../utils/types.js";
9
10
  import { env } from "./steps/env.js";
10
11
  import { next } from "./steps/next.js";
11
- const debug = Cli.Options.boolean("debug").pipe(
12
- Cli.Options.optional,
13
- Cli.Options.withDefault(false),
14
- Cli.Options.withDescription("Enable debug mode")
15
- );
16
12
  const dryRun = Cli.Options.boolean("dry-run").pipe(
17
13
  Cli.Options.optional,
18
14
  Cli.Options.withAlias("d"),
@@ -78,7 +74,6 @@ const initCMD = Cli.Command.make(
78
74
  })
79
75
  ).pipe(Cli.Command.withDescription("Initialize the StudioCMS project after new installation."));
80
76
  export {
81
- debug,
82
77
  dryRun,
83
78
  initCMD
84
79
  };