studiocms 0.1.0-beta.27 → 0.1.0-beta.28

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 (597) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/config.d.ts +1 -1
  3. package/dist/consts.d.ts +7 -14
  4. package/dist/consts.js +24 -16
  5. package/dist/db/config.d.ts +128 -112
  6. package/dist/db/config.js +36 -31
  7. package/dist/{components → frontend/components}/auth/OAuthButtonStack.astro +1 -1
  8. package/dist/{components → frontend/components}/dashboard/DashboardGrid.astro +1 -1
  9. package/{src → dist/frontend}/components/dashboard/DashboardGridItem.astro +14 -4
  10. package/dist/{components → frontend/components}/dashboard/DashboardPageHeader.astro +7 -90
  11. package/dist/{components → frontend/components}/dashboard/DoubleSidebar.astro +2 -4
  12. package/dist/{components → frontend/components}/dashboard/Footer.astro +1 -1
  13. package/{src → dist/frontend}/components/dashboard/LoginChecker.astro +1 -1
  14. package/dist/{components → frontend/components}/dashboard/MainSidebarContent.astro +41 -27
  15. package/dist/frontend/components/dashboard/SidebarModals.astro +13 -0
  16. package/dist/{components → frontend/components}/dashboard/SingleSidebar.astro +3 -5
  17. package/{src → dist/frontend}/components/dashboard/configuration/ConfigForm.astro +48 -8
  18. package/dist/{components → frontend/components}/dashboard/configuration/LoginPreview.astro +6 -20
  19. package/dist/frontend/components/dashboard/content-mgmt/CreatePage.astro +522 -0
  20. package/dist/frontend/components/dashboard/content-mgmt/EditPage.astro +741 -0
  21. package/dist/{components → frontend/components}/dashboard/content-mgmt/InnerSidebarElement.astro +7 -1
  22. package/dist/{components → frontend/components}/dashboard/content-mgmt/runtime.d.ts +1 -1
  23. package/dist/{components → frontend/components}/dashboard/content-mgmt/runtime.js +2 -2
  24. package/dist/{components → frontend/components}/dashboard/content-mgmt/shared.js +2 -2
  25. package/{src → dist/frontend}/components/dashboard/profile/Notifications.astro +72 -23
  26. package/{src → dist/frontend}/components/dashboard/profile/SocialSignin.astro +1 -1
  27. package/dist/frontend/components/dashboard/sidebar/UserAccount.astro +61 -0
  28. package/dist/frontend/components/dashboard/sidebar/VersionCheck.astro +152 -0
  29. package/{src → dist/frontend}/components/dashboard/sidebar-modals/VersionModal.astro +62 -53
  30. package/dist/{components → frontend/components}/dashboard/sidebarConfig.js +1 -1
  31. package/dist/frontend/components/dashboard/smtp-config/TemplateEditor.astro +107 -0
  32. package/{src → dist/frontend}/components/dashboard/user-mgmt/InnerSidebarElement.astro +8 -1
  33. package/dist/{components → frontend/components}/dashboard/user-mgmt/RankCheck.astro +1 -1
  34. package/dist/{components → frontend/components}/dashboard/user-mgmt/SocialSignin.astro +1 -1
  35. package/dist/{components → frontend/components}/dashboard/user-mgmt/UserListItem.astro +31 -3
  36. package/dist/frontend/components/shared/SSRUser.astro +267 -0
  37. package/{src → dist/frontend}/components/shared/head/Favicons.astro +1 -1
  38. package/dist/{components → frontend/components}/shared/head/TitleTags.astro +1 -1
  39. package/dist/{components/auth → frontend/components/shared}/oAuthButtonProviders.d.ts +9 -0
  40. package/dist/{fonts/onest-font.css → frontend/fonts/css/onest-variable.css} +1 -1
  41. package/dist/{fonts/syntax-font.css → frontend/fonts/css/syntax.css} +1 -1
  42. package/dist/{layouts → frontend/layouts}/DashboardLayout.astro +17 -7
  43. package/dist/{middleware → frontend/middleware}/index.js +4 -3
  44. package/dist/{middleware → frontend/middleware}/utils.d.ts +3 -3
  45. package/dist/{middleware → frontend/middleware}/utils.js +2 -2
  46. package/dist/{routes/error-pages → frontend/pages}/404.astro +2 -2
  47. package/dist/{routes/dashboard → frontend/pages/[dashboard]}/[...pluginPage].astro +1 -1
  48. package/{src/routes/dashboard → dist/frontend/pages/[dashboard]}/content-management/diff.astro +6 -2
  49. package/dist/{routes/auth → frontend/pages/[dashboard]}/login.astro +2 -2
  50. package/dist/frontend/pages/[dashboard]/logout.astro +153 -0
  51. package/{src/routes/dashboard → dist/frontend/pages/[dashboard]}/profile.astro +1 -4
  52. package/{src/routes/auth → dist/frontend/pages/[dashboard]}/signup.astro +2 -2
  53. package/dist/frontend/pages/[dashboard]/smtp-configuration.astro +753 -0
  54. package/{src/routes/dashboard → dist/frontend/pages/[dashboard]}/user-management/edit.astro +50 -42
  55. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/_effects/index.d.ts +1 -1
  56. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/_effects/index.js +1 -1
  57. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/callback.js +1 -1
  58. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/index.js +1 -1
  59. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/forgot-password.js +9 -4
  60. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/login.js +1 -1
  61. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/logout.js +4 -6
  62. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/register.js +1 -1
  63. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/shared.d.ts +1 -1
  64. package/dist/{routes/api → frontend/pages/studiocms_api}/auth/shared.js +1 -1
  65. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/api-tokens.js +1 -1
  66. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/config.js +1 -1
  67. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/diff.js +1 -1
  68. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/folder.js +1 -1
  69. package/dist/frontend/pages/studiocms_api/dashboard/content/page.d.ts +1 -0
  70. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/page.js +20 -79
  71. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/create-reset-link.js +1 -1
  72. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user-invite.js +9 -4
  73. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user.js +2 -2
  74. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/email-notification-settings-site.js +1 -1
  75. package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/check-email.js +1 -1
  76. package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/config.d.ts +1 -1
  77. package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/config.js +1 -1
  78. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/partials/Editor.astro +1 -5
  79. package/{src/routes/api → dist/frontend/pages/studiocms_api}/dashboard/partials/LiveRender.astro +2 -2
  80. package/{src/routes/api → dist/frontend/pages/studiocms_api}/dashboard/partials/UserListItems.astro +2 -1
  81. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/plugins/[plugin].js +1 -1
  82. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/profile.js +1 -1
  83. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/resend-verify-email.js +1 -1
  84. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/reset-password.js +1 -1
  85. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/search-list.js +1 -1
  86. package/dist/frontend/pages/studiocms_api/dashboard/templates.js +64 -0
  87. package/dist/frontend/pages/studiocms_api/dashboard/update-user-notifications.d.ts +1 -0
  88. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/update-user-notifications.js +1 -1
  89. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/users.js +2 -2
  90. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-email.js +1 -1
  91. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-session.d.ts +1 -1
  92. package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-session.js +3 -3
  93. package/{src/routes/api → dist/frontend/pages/studiocms_api/renderer}/render.astro +2 -2
  94. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/utils/auth-token.d.ts +2 -2
  95. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/utils/auth-token.js +1 -1
  96. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/[id].d.ts +1 -1
  97. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/[id].js +1 -1
  98. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/index.d.ts +1 -1
  99. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/index.js +1 -1
  100. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/[diffid].js +1 -1
  101. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/index.js +1 -1
  102. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/index.js +1 -1
  103. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/index.js +1 -1
  104. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/[id].js +1 -1
  105. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/index.js +1 -1
  106. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/[id].js +1 -1
  107. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/index.js +1 -1
  108. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/settings/index.js +1 -1
  109. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/[id].d.ts +1 -1
  110. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/[id].js +1 -1
  111. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/index.d.ts +1 -1
  112. package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/index.js +1 -1
  113. package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/fallback-list-pages.json.js +1 -1
  114. package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/full-changelog.json.js +1 -1
  115. package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/list-pages.js +1 -1
  116. package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/update-latest-version-cache.js +1 -1
  117. package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/utils/changelog.d.ts +1 -1
  118. package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/utils/changelog.js +7 -1
  119. package/dist/frontend/routes.d.ts +79 -0
  120. package/dist/frontend/routes.js +364 -0
  121. package/dist/frontend/scripts/dateTimeListener.d.ts +21 -0
  122. package/dist/frontend/scripts/dateWithTimeAndZone.d.ts +35 -0
  123. package/dist/frontend/scripts/formdata-utils.d.ts +142 -0
  124. package/dist/frontend/scripts/formdata-utils.js +53 -0
  125. package/dist/frontend/scripts/timeAgo.d.ts +41 -0
  126. package/{src/routes/firstTimeSetupRoutes → dist/frontend/setup-pages}/1-start.astro +3 -3
  127. package/dist/{routes/firstTimeSetupRoutes → frontend/setup-pages}/2-next.astro +3 -3
  128. package/dist/{routes/firstTimeSetupRoutes → frontend/setup-pages}/3-done.astro +6 -6
  129. package/dist/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-1.js +1 -1
  130. package/dist/frontend/setup-pages/studiocms_api/dashboard/step-2.d.ts +1 -0
  131. package/dist/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-2.js +2 -2
  132. package/dist/{styles → frontend/styles}/auth-layout.css +1 -1
  133. package/dist/{styles → frontend/styles}/code-component.css +1 -1
  134. package/dist/{styles → frontend/styles}/dashboard-base.css +4 -12
  135. package/dist/{styles → frontend/styles}/dashboard-diff.css +1 -1
  136. package/dist/frontend/types.d.ts +47 -0
  137. package/dist/frontend/utils.d.ts +65 -0
  138. package/dist/frontend/utils.js +130 -0
  139. package/dist/{components/default-grid-items → handlers/plugin-components}/Recently-created-pages.astro +9 -4
  140. package/{src/components/default-grid-items → dist/handlers/plugin-components}/Recently-signed-up.astro +8 -7
  141. package/{src/components/default-grid-items → dist/handlers/plugin-components}/Recently-updated-pages.astro +9 -4
  142. package/dist/{components/default-grid-items → handlers/plugin-components}/Totals.astro +8 -3
  143. package/dist/handlers/plugin-i18n/de.d.ts +22 -0
  144. package/dist/handlers/plugin-i18n/de.js +25 -0
  145. package/dist/handlers/plugin-i18n/en.d.ts +22 -0
  146. package/dist/handlers/plugin-i18n/en.js +25 -0
  147. package/dist/handlers/plugin-i18n/es.d.ts +22 -0
  148. package/dist/handlers/plugin-i18n/es.js +25 -0
  149. package/dist/handlers/plugin-i18n/fr.d.ts +22 -0
  150. package/dist/handlers/plugin-i18n/fr.js +25 -0
  151. package/dist/handlers/plugin-i18n/nl.d.ts +22 -0
  152. package/dist/handlers/plugin-i18n/nl.js +25 -0
  153. package/dist/handlers/plugin-i18n/no.d.ts +22 -0
  154. package/dist/handlers/plugin-i18n/no.js +25 -0
  155. package/dist/handlers/plugin-i18n/zh.d.ts +22 -0
  156. package/dist/handlers/plugin-i18n/zh.js +25 -0
  157. package/dist/handlers/pluginHandler.d.ts +5 -3
  158. package/dist/handlers/pluginHandler.js +158 -62
  159. package/dist/handlers/routeHandler.d.ts +23 -61
  160. package/dist/handlers/routeHandler.js +13 -387
  161. package/dist/index.d.ts +1 -1
  162. package/dist/index.js +30 -12
  163. package/dist/integrations/webVitals/checkForWebVitalsPlugin.js +9 -8
  164. package/dist/integrations/webVitals/i18n/de.d.ts +24 -0
  165. package/dist/integrations/webVitals/i18n/de.js +27 -0
  166. package/dist/integrations/webVitals/i18n/en.d.ts +24 -0
  167. package/dist/integrations/webVitals/i18n/en.js +27 -0
  168. package/dist/integrations/webVitals/i18n/es.d.ts +24 -0
  169. package/dist/integrations/webVitals/i18n/es.js +27 -0
  170. package/dist/integrations/webVitals/i18n/fr.d.ts +24 -0
  171. package/dist/integrations/webVitals/i18n/fr.js +27 -0
  172. package/dist/integrations/webVitals/i18n/nl.d.ts +24 -0
  173. package/dist/integrations/webVitals/i18n/nl.js +27 -0
  174. package/dist/integrations/webVitals/i18n/no.d.ts +24 -0
  175. package/dist/integrations/webVitals/i18n/no.js +27 -0
  176. package/dist/integrations/webVitals/i18n/zh.d.ts +24 -0
  177. package/dist/integrations/webVitals/i18n/zh.js +27 -0
  178. package/dist/plugins.d.ts +28 -0
  179. package/dist/plugins.js +1 -0
  180. package/dist/schemas/config/index.d.ts +2 -2
  181. package/dist/schemas/plugins/i18n.d.ts +59 -0
  182. package/dist/schemas/plugins/i18n.js +7 -0
  183. package/dist/schemas/plugins/index.d.ts +371 -8
  184. package/dist/schemas/plugins/index.js +76 -1
  185. package/dist/schemas/plugins/shared.d.ts +34 -7
  186. package/dist/schemas/plugins/shared.js +34 -7
  187. package/dist/types.d.ts +79 -3
  188. package/dist/utils/lang-helper.d.ts +37 -0
  189. package/dist/utils/lang-helper.js +60 -0
  190. package/dist/virtual.d.ts +51 -4
  191. package/dist/virtuals/auth/getLabelForPermissionLevel.d.ts +4 -1
  192. package/dist/virtuals/auth/verify-email.js +8 -3
  193. package/dist/virtuals/components/Renderer.astro +34 -8
  194. package/dist/virtuals/components/renderFn.d.ts +33 -0
  195. package/dist/virtuals/components/renderFn.js +36 -0
  196. package/dist/virtuals/i18n/LanguageSelector.astro +53 -102
  197. package/dist/virtuals/i18n/client.d.ts +90 -0
  198. package/dist/virtuals/i18n/client.js +26 -1
  199. package/dist/virtuals/i18n/config.d.ts +92 -15
  200. package/dist/virtuals/i18n/config.js +10 -9
  201. package/dist/virtuals/i18n/overrides.d.ts +6 -0
  202. package/dist/virtuals/i18n/overrides.js +7 -0
  203. package/dist/virtuals/i18n/plugin.d.ts +37 -0
  204. package/dist/virtuals/i18n/plugin.js +69 -0
  205. package/dist/virtuals/i18n/server.d.ts +4 -0
  206. package/dist/virtuals/i18n/server.js +2 -1
  207. package/dist/virtuals/i18n/translations/de.json +83 -5
  208. package/dist/virtuals/i18n/translations/en.json +83 -5
  209. package/dist/virtuals/i18n/translations/es.json +83 -5
  210. package/dist/virtuals/i18n/translations/fr.json +83 -5
  211. package/dist/virtuals/i18n/translations/hi.json +4 -1
  212. package/dist/virtuals/i18n/translations/nl.json +374 -0
  213. package/dist/virtuals/i18n/translations/no.json +374 -0
  214. package/dist/virtuals/i18n/translations/zh.json +83 -5
  215. package/dist/virtuals/i18n/v-files.d.ts +19 -1
  216. package/dist/virtuals/i18n/v-files.js +8 -1
  217. package/dist/virtuals/lib/routeMap.d.ts +1 -0
  218. package/dist/virtuals/lib/routeMap.js +2 -1
  219. package/dist/virtuals/mailer/template.d.ts +1 -0
  220. package/dist/virtuals/notifier/index.d.ts +2 -0
  221. package/dist/virtuals/notifier/index.js +12 -6
  222. package/dist/virtuals/scripts/template-editor.d.ts +36 -0
  223. package/dist/virtuals/scripts/template-editor.js +247 -0
  224. package/dist/virtuals/scripts/user-quick-tools.d.ts +2 -0
  225. package/dist/virtuals/scripts/user-quick-tools.js +41 -4
  226. package/dist/virtuals/sdk/consts.d.ts +1 -0
  227. package/dist/virtuals/sdk/consts.js +2 -0
  228. package/dist/virtuals/sdk/modules/auth.d.ts +7 -7
  229. package/dist/virtuals/sdk/modules/config-types.d.ts +6 -0
  230. package/dist/virtuals/sdk/modules/config.d.ts +7 -2
  231. package/dist/virtuals/sdk/modules/config.js +27 -3
  232. package/dist/virtuals/sdk/modules/get.d.ts +3 -2
  233. package/dist/virtuals/sdk/modules/init.d.ts +1 -1
  234. package/dist/virtuals/sdk/modules/middlewares.d.ts +1 -1
  235. package/dist/virtuals/sdk/modules/middlewares.js +26 -7
  236. package/dist/virtuals/template-engine/default-templates.d.ts +33 -0
  237. package/dist/virtuals/template-engine/default-templates.js +218 -0
  238. package/dist/virtuals/template-engine/index.d.ts +63 -0
  239. package/dist/virtuals/template-engine/index.js +61 -0
  240. package/package.json +25 -22
  241. package/src/consts.ts +41 -27
  242. package/src/db/config.ts +68 -55
  243. package/src/{components → frontend/components}/auth/OAuthButtonStack.astro +1 -1
  244. package/src/{components → frontend/components}/dashboard/DashboardGrid.astro +1 -1
  245. package/{dist → src/frontend}/components/dashboard/DashboardGridItem.astro +14 -4
  246. package/src/{components → frontend/components}/dashboard/DashboardPageHeader.astro +7 -90
  247. package/src/{components → frontend/components}/dashboard/DoubleSidebar.astro +2 -4
  248. package/src/{components → frontend/components}/dashboard/Footer.astro +1 -1
  249. package/{dist → src/frontend}/components/dashboard/LoginChecker.astro +1 -1
  250. package/src/{components → frontend/components}/dashboard/MainSidebarContent.astro +41 -27
  251. package/src/frontend/components/dashboard/SidebarModals.astro +13 -0
  252. package/src/{components → frontend/components}/dashboard/SingleSidebar.astro +3 -5
  253. package/{dist → src/frontend}/components/dashboard/configuration/ConfigForm.astro +48 -8
  254. package/src/{components → frontend/components}/dashboard/configuration/LoginPreview.astro +6 -20
  255. package/src/frontend/components/dashboard/content-mgmt/CreatePage.astro +522 -0
  256. package/src/frontend/components/dashboard/content-mgmt/EditPage.astro +741 -0
  257. package/src/{components → frontend/components}/dashboard/content-mgmt/InnerSidebarElement.astro +7 -1
  258. package/src/{components → frontend/components}/dashboard/content-mgmt/runtime.ts +2 -2
  259. package/src/{components → frontend/components}/dashboard/content-mgmt/shared.ts +2 -2
  260. package/{dist → src/frontend}/components/dashboard/profile/Notifications.astro +72 -23
  261. package/{dist → src/frontend}/components/dashboard/profile/SocialSignin.astro +1 -1
  262. package/src/frontend/components/dashboard/sidebar/UserAccount.astro +61 -0
  263. package/src/frontend/components/dashboard/sidebar/VersionCheck.astro +152 -0
  264. package/{dist → src/frontend}/components/dashboard/sidebar-modals/VersionModal.astro +62 -53
  265. package/src/{components → frontend/components}/dashboard/sidebarConfig.ts +1 -1
  266. package/src/frontend/components/dashboard/smtp-config/TemplateEditor.astro +107 -0
  267. package/{dist → src/frontend}/components/dashboard/user-mgmt/InnerSidebarElement.astro +8 -1
  268. package/src/{components → frontend/components}/dashboard/user-mgmt/RankCheck.astro +1 -1
  269. package/src/{components → frontend/components}/dashboard/user-mgmt/SocialSignin.astro +1 -1
  270. package/src/{components → frontend/components}/dashboard/user-mgmt/UserListItem.astro +31 -3
  271. package/src/frontend/components/shared/SSRUser.astro +267 -0
  272. package/{dist → src/frontend}/components/shared/head/Favicons.astro +1 -1
  273. package/src/{components → frontend/components}/shared/head/TitleTags.astro +1 -1
  274. package/src/{components/auth → frontend/components/shared}/oAuthButtonProviders.ts +9 -0
  275. package/src/{fonts/onest-font.css → frontend/fonts/css/onest-variable.css} +1 -1
  276. package/src/{fonts/syntax-font.css → frontend/fonts/css/syntax.css} +1 -1
  277. package/src/{layouts → frontend/layouts}/DashboardLayout.astro +17 -7
  278. package/src/{middleware → frontend/middleware}/index.ts +5 -3
  279. package/src/{middleware → frontend/middleware}/utils.ts +4 -4
  280. package/src/{routes/error-pages → frontend/pages}/404.astro +2 -2
  281. package/src/{routes/dashboard → frontend/pages/[dashboard]}/[...pluginPage].astro +1 -1
  282. package/{dist/routes/dashboard → src/frontend/pages/[dashboard]}/content-management/diff.astro +6 -2
  283. package/src/{routes/auth → frontend/pages/[dashboard]}/login.astro +2 -2
  284. package/src/frontend/pages/[dashboard]/logout.astro +153 -0
  285. package/{dist/routes/dashboard → src/frontend/pages/[dashboard]}/profile.astro +1 -4
  286. package/{dist/routes/auth → src/frontend/pages/[dashboard]}/signup.astro +2 -2
  287. package/src/frontend/pages/[dashboard]/smtp-configuration.astro +753 -0
  288. package/{dist/routes/dashboard → src/frontend/pages/[dashboard]}/user-management/edit.astro +50 -42
  289. package/src/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/_effects/index.ts +1 -1
  290. package/src/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/callback.ts +1 -1
  291. package/src/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/index.ts +1 -1
  292. package/src/{routes/api → frontend/pages/studiocms_api}/auth/forgot-password.ts +10 -4
  293. package/src/{routes/api → frontend/pages/studiocms_api}/auth/login.ts +1 -1
  294. package/src/{routes/api → frontend/pages/studiocms_api}/auth/logout.ts +4 -10
  295. package/src/{routes/api → frontend/pages/studiocms_api}/auth/register.ts +1 -1
  296. package/src/{routes/api → frontend/pages/studiocms_api}/auth/shared.ts +1 -1
  297. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/api-tokens.ts +1 -1
  298. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/config.ts +2 -2
  299. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/content/diff.ts +1 -1
  300. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/content/folder.ts +1 -1
  301. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/content/page.ts +34 -116
  302. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/create-reset-link.ts +1 -1
  303. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user-invite.ts +10 -4
  304. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/create-user.ts +2 -2
  305. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/email-notification-settings-site.ts +2 -2
  306. package/src/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/check-email.ts +1 -1
  307. package/src/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/config.ts +1 -1
  308. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/partials/Editor.astro +1 -5
  309. package/{dist/routes/api → src/frontend/pages/studiocms_api}/dashboard/partials/LiveRender.astro +2 -2
  310. package/{dist/routes/api → src/frontend/pages/studiocms_api}/dashboard/partials/UserListItems.astro +2 -1
  311. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/plugins/[plugin].ts +1 -1
  312. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/profile.ts +1 -1
  313. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/resend-verify-email.ts +1 -1
  314. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/reset-password.ts +1 -1
  315. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/search-list.ts +1 -1
  316. package/src/frontend/pages/studiocms_api/dashboard/templates.ts +74 -0
  317. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/update-user-notifications.ts +1 -1
  318. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/users.ts +2 -2
  319. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-email.ts +1 -1
  320. package/src/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-session.ts +3 -3
  321. package/{dist/routes/api → src/frontend/pages/studiocms_api/renderer}/render.astro +2 -2
  322. package/src/{routes/api → frontend/pages/studiocms_api}/rest/utils/auth-token.ts +1 -1
  323. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/[id].ts +1 -1
  324. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/folders/index.ts +1 -1
  325. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/[diffid].ts +1 -1
  326. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/index.ts +1 -1
  327. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/index.ts +1 -1
  328. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/index.ts +1 -1
  329. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/[id].ts +1 -1
  330. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/index.ts +1 -1
  331. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/[id].ts +1 -1
  332. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/index.ts +1 -1
  333. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/settings/index.ts +1 -1
  334. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/[id].ts +1 -1
  335. package/src/{routes/api → frontend/pages/studiocms_api}/rest/v1/users/index.ts +1 -1
  336. package/src/{routes/api → frontend/pages/studiocms_api}/sdk/fallback-list-pages.json.ts +1 -1
  337. package/src/{routes/api → frontend/pages/studiocms_api}/sdk/full-changelog.json.ts +1 -1
  338. package/src/{routes/api → frontend/pages/studiocms_api}/sdk/list-pages.ts +1 -1
  339. package/src/{routes/api → frontend/pages/studiocms_api}/sdk/update-latest-version-cache.ts +1 -1
  340. package/src/{routes/api → frontend/pages/studiocms_api}/sdk/utils/changelog.ts +7 -1
  341. package/src/frontend/routes.ts +481 -0
  342. package/src/frontend/scripts/dateTimeListener.ts +28 -0
  343. package/src/frontend/scripts/dateWithTimeAndZone.ts +45 -0
  344. package/src/frontend/scripts/formdata-utils.ts +116 -0
  345. package/src/frontend/scripts/timeAgo.ts +66 -0
  346. package/{dist/routes/firstTimeSetupRoutes → src/frontend/setup-pages}/1-start.astro +3 -3
  347. package/src/{routes/firstTimeSetupRoutes → frontend/setup-pages}/2-next.astro +3 -3
  348. package/src/{routes/firstTimeSetupRoutes → frontend/setup-pages}/3-done.astro +6 -6
  349. package/src/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-1.ts +1 -1
  350. package/src/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-2.ts +2 -2
  351. package/src/{styles → frontend/styles}/auth-layout.css +1 -2
  352. package/src/{styles → frontend/styles}/code-component.css +1 -1
  353. package/src/{styles → frontend/styles}/dashboard-base.css +4 -14
  354. package/src/{styles → frontend/styles}/dashboard-diff.css +1 -1
  355. package/src/frontend/types.ts +50 -0
  356. package/src/frontend/utils.ts +166 -0
  357. package/src/{components/default-grid-items → handlers/plugin-components}/Recently-created-pages.astro +9 -4
  358. package/{dist/components/default-grid-items → src/handlers/plugin-components}/Recently-signed-up.astro +8 -7
  359. package/{dist/components/default-grid-items → src/handlers/plugin-components}/Recently-updated-pages.astro +9 -4
  360. package/src/{components/default-grid-items → handlers/plugin-components}/Totals.astro +8 -3
  361. package/src/handlers/plugin-i18n/de.ts +22 -0
  362. package/src/handlers/plugin-i18n/en.ts +23 -0
  363. package/src/handlers/plugin-i18n/es.ts +22 -0
  364. package/src/handlers/plugin-i18n/fr.ts +22 -0
  365. package/src/handlers/plugin-i18n/nl.ts +22 -0
  366. package/src/handlers/plugin-i18n/no.ts +22 -0
  367. package/src/handlers/plugin-i18n/zh.ts +22 -0
  368. package/src/handlers/pluginHandler.ts +252 -109
  369. package/src/handlers/routeHandler.ts +39 -488
  370. package/src/index.ts +28 -11
  371. package/src/integrations/webVitals/checkForWebVitalsPlugin.ts +11 -8
  372. package/src/integrations/webVitals/i18n/de.ts +24 -0
  373. package/src/integrations/webVitals/i18n/en.ts +25 -0
  374. package/src/integrations/webVitals/i18n/es.ts +24 -0
  375. package/src/integrations/webVitals/i18n/fr.ts +24 -0
  376. package/src/integrations/webVitals/i18n/nl.ts +24 -0
  377. package/src/integrations/webVitals/i18n/no.ts +24 -0
  378. package/src/integrations/webVitals/i18n/zh.ts +24 -0
  379. package/src/integrations/webVitals/webVitalsRouteSummary.ts +0 -1
  380. package/src/plugins.ts +39 -0
  381. package/src/schemas/plugins/i18n.ts +67 -0
  382. package/src/schemas/plugins/index.ts +116 -0
  383. package/src/schemas/plugins/shared.ts +34 -11
  384. package/src/test-utils.ts +2 -0
  385. package/src/types.ts +97 -1
  386. package/src/utils/lang-helper.ts +78 -0
  387. package/src/virtual.d.ts +51 -4
  388. package/src/virtuals/auth/getLabelForPermissionLevel.ts +3 -0
  389. package/src/virtuals/auth/verify-email.ts +9 -3
  390. package/src/virtuals/components/Renderer.astro +34 -8
  391. package/src/virtuals/components/renderFn.ts +101 -0
  392. package/src/virtuals/i18n/LanguageSelector.astro +53 -102
  393. package/src/virtuals/i18n/client.ts +29 -0
  394. package/src/virtuals/i18n/config.ts +31 -24
  395. package/src/virtuals/i18n/overrides.ts +10 -0
  396. package/src/virtuals/i18n/plugin.ts +105 -0
  397. package/src/virtuals/i18n/server.ts +18 -6
  398. package/src/virtuals/i18n/translations/de.json +83 -5
  399. package/src/virtuals/i18n/translations/en.json +83 -5
  400. package/src/virtuals/i18n/translations/es.json +83 -5
  401. package/src/virtuals/i18n/translations/fr.json +83 -5
  402. package/src/virtuals/i18n/translations/hi.json +4 -1
  403. package/src/virtuals/i18n/translations/nl.json +374 -0
  404. package/src/virtuals/i18n/translations/no.json +374 -0
  405. package/src/virtuals/i18n/translations/zh.json +83 -5
  406. package/src/virtuals/i18n/v-files.ts +32 -1
  407. package/src/virtuals/lib/routeMap.ts +2 -0
  408. package/src/virtuals/mailer/template.ts +1 -0
  409. package/src/virtuals/notifier/index.ts +16 -6
  410. package/src/virtuals/scripts/template-editor.ts +393 -0
  411. package/src/virtuals/scripts/user-quick-tools.ts +53 -4
  412. package/src/virtuals/sdk/consts.ts +2 -0
  413. package/src/virtuals/sdk/modules/config-types.ts +7 -0
  414. package/src/virtuals/sdk/modules/config.ts +33 -2
  415. package/src/virtuals/sdk/modules/middlewares.ts +31 -7
  416. package/src/virtuals/template-engine/default-templates.ts +215 -0
  417. package/src/virtuals/template-engine/index.ts +95 -0
  418. package/ui.d.ts +13 -5
  419. package/dist/components/dashboard/SidebarModals.astro +0 -13
  420. package/dist/components/dashboard/component-scripts/dateTimeListener.d.ts +0 -1
  421. package/dist/components/dashboard/component-scripts/dateWithTimeAndZone.d.ts +0 -2
  422. package/dist/components/dashboard/component-scripts/timeAgo.d.ts +0 -1
  423. package/dist/components/dashboard/content-mgmt/CreatePage.astro +0 -345
  424. package/dist/components/dashboard/content-mgmt/EditPage.astro +0 -383
  425. package/dist/components/dashboard/profile/oAuthButtonProviders.d.ts +0 -1
  426. package/dist/components/dashboard/profile/oAuthButtonProviders.js +0 -1
  427. package/dist/components/dashboard/shared.d.ts +0 -2
  428. package/dist/components/dashboard/sidebar/UserAccount.astro +0 -26
  429. package/dist/components/dashboard/sidebar/VersionCheck.astro +0 -131
  430. package/dist/components/shared/SSRUser.astro +0 -202
  431. package/dist/routes/api/auth/logout.d.ts +0 -6
  432. package/dist/routes/api/dashboard/content/page.d.ts +0 -2
  433. package/dist/routes/auth/logout.astro +0 -27
  434. package/dist/routes/dashboard/smtp-configuration.astro +0 -549
  435. package/src/components/dashboard/SidebarModals.astro +0 -13
  436. package/src/components/dashboard/component-scripts/dateTimeListener.ts +0 -8
  437. package/src/components/dashboard/component-scripts/dateWithTimeAndZone.ts +0 -12
  438. package/src/components/dashboard/component-scripts/timeAgo.ts +0 -26
  439. package/src/components/dashboard/content-mgmt/CreatePage.astro +0 -345
  440. package/src/components/dashboard/content-mgmt/EditPage.astro +0 -383
  441. package/src/components/dashboard/profile/oAuthButtonProviders.ts +0 -1
  442. package/src/components/dashboard/shared.ts +0 -3
  443. package/src/components/dashboard/sidebar/UserAccount.astro +0 -26
  444. package/src/components/dashboard/sidebar/VersionCheck.astro +0 -131
  445. package/src/components/shared/SSRUser.astro +0 -202
  446. package/src/routes/auth/logout.astro +0 -27
  447. package/src/routes/dashboard/smtp-configuration.astro +0 -549
  448. /package/dist/{components → frontend/components}/auth/FallbackCanvas.astro +0 -0
  449. /package/dist/{components → frontend/components}/auth/OAuthButton.astro +0 -0
  450. /package/dist/{components → frontend/components}/auth/StaticAuthCheck.astro +0 -0
  451. /package/dist/{components → frontend/components}/auth/StudioCMSLogoSVG.astro +0 -0
  452. /package/dist/{components → frontend/components}/auth/ThreeCanvasLoader.astro +0 -0
  453. /package/dist/{components → frontend/components}/dashboard/BaseHead.astro +0 -0
  454. /package/dist/{components → frontend/components}/dashboard/PageHeader.astro +0 -0
  455. /package/dist/{components → frontend/components}/dashboard/SidebarLink.astro +0 -0
  456. /package/dist/{components → frontend/components}/dashboard/SidebarPluginLink.astro +0 -0
  457. /package/dist/{components → frontend/components}/dashboard/StudioCMSLogo.astro +0 -0
  458. /package/dist/{components → frontend/components}/dashboard/UserName.astro +0 -0
  459. /package/dist/{components → frontend/components}/dashboard/content-mgmt/CreateFolder.astro +0 -0
  460. /package/dist/{components → frontend/components}/dashboard/content-mgmt/EditFolder.astro +0 -0
  461. /package/dist/{components → frontend/components}/dashboard/content-mgmt/PageEditorSwapper.astro +0 -0
  462. /package/dist/{components → frontend/components}/dashboard/content-mgmt/PageHeader.astro +0 -0
  463. /package/dist/{components → frontend/components}/dashboard/content-mgmt/PageList.astro +0 -0
  464. /package/dist/{components → frontend/components}/dashboard/content-mgmt/PageTypeHandler.astro +0 -0
  465. /package/dist/{components → frontend/components}/dashboard/content-mgmt/PluginFields.astro +0 -0
  466. /package/dist/{components → frontend/components}/dashboard/content-mgmt/TreeRenderer.astro +0 -0
  467. /package/dist/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -0
  468. /package/dist/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarLink.astro +0 -0
  469. /package/dist/{components → frontend/components}/dashboard/content-mgmt/shared.d.ts +0 -0
  470. /package/dist/{components → frontend/components}/dashboard/plugins/SettingsRenderer.astro +0 -0
  471. /package/dist/{components → frontend/components}/dashboard/profile/APITokens.astro +0 -0
  472. /package/dist/{components → frontend/components}/dashboard/profile/BasicInfo.astro +0 -0
  473. /package/dist/{components → frontend/components}/dashboard/profile/UpdatePassword.astro +0 -0
  474. /package/dist/{components → frontend/components}/dashboard/sidebar/VersionCheckChangelog.astro +0 -0
  475. /package/dist/{components → frontend/components}/dashboard/sidebar-modals/UserManagementModals.astro +0 -0
  476. /package/dist/{components → frontend/components}/dashboard/sidebarConfig.d.ts +0 -0
  477. /package/dist/{components → frontend/components}/first-time-setup/PageHeader.astro +0 -0
  478. /package/dist/{components → frontend/components}/shared/Code.astro +0 -0
  479. /package/dist/{components → frontend/components}/shared/ThemeManager.astro +0 -0
  480. /package/dist/{components → frontend/components}/shared/head/Global.astro +0 -0
  481. /package/dist/{components/auth → frontend/components/shared}/oAuthButtonProviders.js +0 -0
  482. /package/dist/{fonts/OnestFont.woff2 → frontend/fonts/woff2/onest-variable.woff2} +0 -0
  483. /package/dist/{fonts/SyntaxFont.woff2 → frontend/fonts/woff2/syntax.woff2} +0 -0
  484. /package/dist/{layouts → frontend/layouts}/AuthLayout.astro +0 -0
  485. /package/dist/{layouts → frontend/layouts}/FirstTimeSetupLayout.astro +0 -0
  486. /package/dist/{middleware → frontend/middleware}/index.d.ts +0 -0
  487. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/configuration.astro +0 -0
  488. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createfolder.astro +0 -0
  489. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createpage.astro +0 -0
  490. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editfolder.astro +0 -0
  491. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editpage.astro +0 -0
  492. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/content-management/index.astro +0 -0
  493. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/index.astro +0 -0
  494. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/password-reset.astro +0 -0
  495. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/plugins/[plugin].astro +0 -0
  496. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/unverified-email.astro +0 -0
  497. /package/dist/{routes/dashboard → frontend/pages/[dashboard]}/user-management/index.astro +0 -0
  498. /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/callback.d.ts +0 -0
  499. /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/[provider]/index.d.ts +0 -0
  500. /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/forgot-password.d.ts +0 -0
  501. /package/dist/{routes/api → frontend/pages/studiocms_api}/auth/login.d.ts +0 -0
  502. /package/dist/{routes/api/auth/register.d.ts → frontend/pages/studiocms_api/auth/logout.d.ts} +0 -0
  503. /package/dist/{routes/api/dashboard/config.d.ts → frontend/pages/studiocms_api/auth/register.d.ts} +0 -0
  504. /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/api-tokens.d.ts +0 -0
  505. /package/dist/{routes/api/dashboard/content/diff.d.ts → frontend/pages/studiocms_api/dashboard/config.d.ts} +0 -0
  506. /package/dist/{routes/api/dashboard/create-reset-link.d.ts → frontend/pages/studiocms_api/dashboard/content/diff.d.ts} +0 -0
  507. /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/content/folder.d.ts +0 -0
  508. /package/dist/{routes/api/dashboard/create-user-invite.d.ts → frontend/pages/studiocms_api/dashboard/create-reset-link.d.ts} +0 -0
  509. /package/dist/{routes/api/dashboard/create-user.d.ts → frontend/pages/studiocms_api/dashboard/create-user-invite.d.ts} +0 -0
  510. /package/dist/{routes/api/dashboard/email-notification-settings-site.d.ts → frontend/pages/studiocms_api/dashboard/create-user.d.ts} +0 -0
  511. /package/dist/{routes/api/dashboard/plugins/[plugin].d.ts → frontend/pages/studiocms_api/dashboard/email-notification-settings-site.d.ts} +0 -0
  512. /package/dist/{routes/api → frontend/pages/studiocms_api/dashboard}/mailer/check-email.d.ts +0 -0
  513. /package/dist/{routes/api/dashboard/profile.d.ts → frontend/pages/studiocms_api/dashboard/plugins/[plugin].d.ts} +0 -0
  514. /package/dist/{routes/api/dashboard/resend-verify-email.d.ts → frontend/pages/studiocms_api/dashboard/profile.d.ts} +0 -0
  515. /package/dist/{routes/api/dashboard/reset-password.d.ts → frontend/pages/studiocms_api/dashboard/resend-verify-email.d.ts} +0 -0
  516. /package/dist/{routes/api/dashboard/update-user-notifications.d.ts → frontend/pages/studiocms_api/dashboard/reset-password.d.ts} +0 -0
  517. /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/search-list.d.ts +0 -0
  518. /package/dist/{routes/firstTimeSetupRoutes/api/step-2.d.ts → frontend/pages/studiocms_api/dashboard/templates.d.ts} +0 -0
  519. /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/users.d.ts +0 -0
  520. /package/dist/{routes/api → frontend/pages/studiocms_api}/dashboard/verify-email.d.ts +0 -0
  521. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/[diffid].d.ts +0 -0
  522. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/history/index.d.ts +0 -0
  523. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/[id]/index.d.ts +0 -0
  524. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/pages/index.d.ts +0 -0
  525. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/[id].d.ts +0 -0
  526. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/folders/index.d.ts +0 -0
  527. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/[id].d.ts +0 -0
  528. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/public/pages/index.d.ts +0 -0
  529. /package/dist/{routes/api → frontend/pages/studiocms_api}/rest/v1/settings/index.d.ts +0 -0
  530. /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/fallback-list-pages.json.d.ts +0 -0
  531. /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/full-changelog.json.d.ts +0 -0
  532. /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/list-pages.d.ts +0 -0
  533. /package/dist/{routes/api → frontend/pages/studiocms_api}/sdk/update-latest-version-cache.d.ts +0 -0
  534. /package/dist/{components/auth/component-scripts → frontend/scripts/auth}/formListener.d.ts +0 -0
  535. /package/dist/{components/auth/component-scripts → frontend/scripts/auth}/formListener.js +0 -0
  536. /package/dist/{components/dashboard/component-scripts → frontend/scripts}/dateTimeListener.js +0 -0
  537. /package/dist/{components/dashboard/component-scripts → frontend/scripts}/dateWithTimeAndZone.js +0 -0
  538. /package/dist/{components/dashboard/component-scripts → frontend/scripts}/timeAgo.js +0 -0
  539. /package/dist/{routes/firstTimeSetupRoutes → frontend/setup-pages}/index.astro +0 -0
  540. /package/dist/{routes/firstTimeSetupRoutes/api → frontend/setup-pages/studiocms_api/dashboard}/step-1.d.ts +0 -0
  541. /package/dist/{styles → frontend/styles}/404.css +0 -0
  542. /package/dist/{components/dashboard/shared.js → frontend/types.js} +0 -0
  543. /package/dist/{components/default-grid-items → handlers/plugin-components}/utils.d.ts +0 -0
  544. /package/dist/{components/default-grid-items → handlers/plugin-components}/utils.js +0 -0
  545. /package/src/{components → frontend/components}/auth/FallbackCanvas.astro +0 -0
  546. /package/src/{components → frontend/components}/auth/OAuthButton.astro +0 -0
  547. /package/src/{components → frontend/components}/auth/StaticAuthCheck.astro +0 -0
  548. /package/src/{components → frontend/components}/auth/StudioCMSLogoSVG.astro +0 -0
  549. /package/src/{components → frontend/components}/auth/ThreeCanvasLoader.astro +0 -0
  550. /package/src/{components → frontend/components}/dashboard/BaseHead.astro +0 -0
  551. /package/src/{components → frontend/components}/dashboard/PageHeader.astro +0 -0
  552. /package/src/{components → frontend/components}/dashboard/SidebarLink.astro +0 -0
  553. /package/src/{components → frontend/components}/dashboard/SidebarPluginLink.astro +0 -0
  554. /package/src/{components → frontend/components}/dashboard/StudioCMSLogo.astro +0 -0
  555. /package/src/{components → frontend/components}/dashboard/UserName.astro +0 -0
  556. /package/src/{components → frontend/components}/dashboard/content-mgmt/CreateFolder.astro +0 -0
  557. /package/src/{components → frontend/components}/dashboard/content-mgmt/EditFolder.astro +0 -0
  558. /package/src/{components → frontend/components}/dashboard/content-mgmt/PageEditorSwapper.astro +0 -0
  559. /package/src/{components → frontend/components}/dashboard/content-mgmt/PageHeader.astro +0 -0
  560. /package/src/{components → frontend/components}/dashboard/content-mgmt/PageList.astro +0 -0
  561. /package/src/{components → frontend/components}/dashboard/content-mgmt/PageTypeHandler.astro +0 -0
  562. /package/src/{components → frontend/components}/dashboard/content-mgmt/PluginFields.astro +0 -0
  563. /package/src/{components → frontend/components}/dashboard/content-mgmt/TreeRenderer.astro +0 -0
  564. /package/src/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarFolder.astro +0 -0
  565. /package/src/{components → frontend/components}/dashboard/content-mgmt/TreeSidebarLink.astro +0 -0
  566. /package/src/{components → frontend/components}/dashboard/plugins/SettingsRenderer.astro +0 -0
  567. /package/src/{components → frontend/components}/dashboard/profile/APITokens.astro +0 -0
  568. /package/src/{components → frontend/components}/dashboard/profile/BasicInfo.astro +0 -0
  569. /package/src/{components → frontend/components}/dashboard/profile/UpdatePassword.astro +0 -0
  570. /package/src/{components → frontend/components}/dashboard/sidebar/VersionCheckChangelog.astro +0 -0
  571. /package/src/{components → frontend/components}/dashboard/sidebar-modals/UserManagementModals.astro +0 -0
  572. /package/src/{components → frontend/components}/first-time-setup/PageHeader.astro +0 -0
  573. /package/src/{components → frontend/components}/first-time-setup/snippets/opt1-astro.config.diff +0 -0
  574. /package/src/{components → frontend/components}/first-time-setup/snippets/opt2-astro.config.diff +0 -0
  575. /package/src/{components → frontend/components}/first-time-setup/snippets/opt2-studiocms.config.diff +0 -0
  576. /package/src/{components → frontend/components}/shared/Code.astro +0 -0
  577. /package/src/{components → frontend/components}/shared/ThemeManager.astro +0 -0
  578. /package/src/{components → frontend/components}/shared/head/Global.astro +0 -0
  579. /package/src/{fonts/OnestFont.woff2 → frontend/fonts/woff2/onest-variable.woff2} +0 -0
  580. /package/src/{fonts/SyntaxFont.woff2 → frontend/fonts/woff2/syntax.woff2} +0 -0
  581. /package/src/{layouts → frontend/layouts}/AuthLayout.astro +0 -0
  582. /package/src/{layouts → frontend/layouts}/FirstTimeSetupLayout.astro +0 -0
  583. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/configuration.astro +0 -0
  584. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createfolder.astro +0 -0
  585. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/createpage.astro +0 -0
  586. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editfolder.astro +0 -0
  587. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/editpage.astro +0 -0
  588. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/content-management/index.astro +0 -0
  589. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/index.astro +0 -0
  590. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/password-reset.astro +0 -0
  591. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/plugins/[plugin].astro +0 -0
  592. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/unverified-email.astro +0 -0
  593. /package/src/{routes/dashboard → frontend/pages/[dashboard]}/user-management/index.astro +0 -0
  594. /package/src/{components/auth/component-scripts → frontend/scripts/auth}/formListener.ts +0 -0
  595. /package/src/{routes/firstTimeSetupRoutes → frontend/setup-pages}/index.astro +0 -0
  596. /package/src/{styles → frontend/styles}/404.css +0 -0
  597. /package/src/{components/default-grid-items → handlers/plugin-components}/utils.ts +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,76 @@
1
1
  # studiocms
2
2
 
3
+ ## 0.1.0-beta.28
4
+
5
+ ### Patch Changes
6
+
7
+ - [#920](https://github.com/withstudiocms/studiocms/pull/920) [`5550673`](https://github.com/withstudiocms/studiocms/commit/55506739e3f96b690ad7999dbc1f9261ac63e644) Thanks [@ad1tyayadav](https://github.com/ad1tyayadav)! - Deprecates and hides the "Hide Index Page" setting from dashboard. Users who previously relied on this setting should migrate to another method.
8
+
9
+ - [#917](https://github.com/withstudiocms/studiocms/pull/917) [`7ef34d7`](https://github.com/withstudiocms/studiocms/commit/7ef34d7e553bb966e86bfddb4d63c622aad2dc83) Thanks [@Ananya44444](https://github.com/Ananya44444)! - Replaces custom CSS search icon with Input component icon prop and removes unused CSS.
10
+
11
+ - [#875](https://github.com/withstudiocms/studiocms/pull/875) [`74f9bf8`](https://github.com/withstudiocms/studiocms/commit/74f9bf8cb039d09e9e4589772734eb3a3012178c) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates to `@studiocms/ui@1.0.0-beta.2`
12
+
13
+ - [#862](https://github.com/withstudiocms/studiocms/pull/862) [`dc8ca3a`](https://github.com/withstudiocms/studiocms/commit/dc8ca3abfb92944b78d342414e63c3dabe7e77e6) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @iconify-json/simple-icons to ^1.2.53
14
+
15
+ - [#887](https://github.com/withstudiocms/studiocms/pull/887) [`cd03b94`](https://github.com/withstudiocms/studiocms/commit/cd03b945e27a459881474443b762e2ec3f427884) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency dotenv to ^17.2.3
16
+
17
+ - [#928](https://github.com/withstudiocms/studiocms/pull/928) [`a33c6df`](https://github.com/withstudiocms/studiocms/commit/a33c6df2e595f6867e0bdc82554017e003a01aed) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
18
+
19
+ - [#957](https://github.com/withstudiocms/studiocms/pull/957) [`df658d7`](https://github.com/withstudiocms/studiocms/commit/df658d7a91230426ec59480dbefbeb2b8e7c550b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update studiocms dependencies
20
+
21
+ - [#905](https://github.com/withstudiocms/studiocms/pull/905) [`a53c830`](https://github.com/withstudiocms/studiocms/commit/a53c83017b02d589607874405b2c040474203716) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Introduces a new email template editor and preview feature
22
+
23
+ - [#950](https://github.com/withstudiocms/studiocms/pull/950) [`0954e8f`](https://github.com/withstudiocms/studiocms/commit/0954e8f60d539e7ab13c00b8e904851ccdc2d9e0) Thanks [@mvdve](https://github.com/mvdve)! - Fixes the form validation parsing of boolean select fields values by transforming the string values to boolean for content management pages.
24
+
25
+ - [#898](https://github.com/withstudiocms/studiocms/pull/898) [`c57463b`](https://github.com/withstudiocms/studiocms/commit/c57463bb5846a75fda0dfad8da3590145eb442a4) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Update `@studiocms/ui` to 1.0.0-beta.3 and cleanup now unneeded styles
26
+
27
+ - [#891](https://github.com/withstudiocms/studiocms/pull/891) [`437e45c`](https://github.com/withstudiocms/studiocms/commit/437e45c99e5e740b72a32836b6df48e7c461ef57) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates feedback button to point to GitHub (temporary measure until astro-feedback integration)
28
+
29
+ - [#909](https://github.com/withstudiocms/studiocms/pull/909) [`74b0b36`](https://github.com/withstudiocms/studiocms/commit/74b0b365090433a0c4185d4d32c9e91f5af50087) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #909)
30
+
31
+ - [#892](https://github.com/withstudiocms/studiocms/pull/892) [`07501ff`](https://github.com/withstudiocms/studiocms/commit/07501fff35c6777f7d08b9857eff3d827ed12e8b) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Fixes missing translation
32
+
33
+ - [#946](https://github.com/withstudiocms/studiocms/pull/946) [`1717b71`](https://github.com/withstudiocms/studiocms/commit/1717b7194e3dd42b75fc51952860a3bd3e2f5f3f) Thanks [@mvdve](https://github.com/mvdve)! - Fixes zod error parsing for first-time setup api route responses.
34
+
35
+ - [#876](https://github.com/withstudiocms/studiocms/pull/876) [`9a5a360`](https://github.com/withstudiocms/studiocms/commit/9a5a360e68183693465d29ea5b6ca701ac54cc69) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Enables i18n support for StudioCMS dashboard.
36
+
37
+ - [#871](https://github.com/withstudiocms/studiocms/pull/871) [`872ba2e`](https://github.com/withstudiocms/studiocms/commit/872ba2e286248a79fa46df1c3f5ca354e36e0494) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Updates quick user tools, Logout page, and buttons to utilize POST requests.
38
+
39
+ - [#889](https://github.com/withstudiocms/studiocms/pull/889) [`e63f679`](https://github.com/withstudiocms/studiocms/commit/e63f679a89ddd50a363d5bbe1b9b0ea403b1292b) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements a better API route type `PluginAPIRoute` from the `studiocms/plugins` export for plugin onCreate, onEdit, and onDelete API handlers.
40
+
41
+ - [#882](https://github.com/withstudiocms/studiocms/pull/882) [`3b96046`](https://github.com/withstudiocms/studiocms/commit/3b96046aa0fe1eaeb9e472be6ceae1e24dfb78bc) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Optimizes middleware cache
42
+
43
+ - [#940](https://github.com/withstudiocms/studiocms/pull/940) [`f0ea2fb`](https://github.com/withstudiocms/studiocms/commit/f0ea2fb22f8f137190ad24cf6a9bdf219fb1285e) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #940)
44
+
45
+ - [#936](https://github.com/withstudiocms/studiocms/pull/936) [`a552fc6`](https://github.com/withstudiocms/studiocms/commit/a552fc658d7739bda594fb063075ae85c456709d) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Implements new rendering system, allowing plugins to augment the rendering pipeline with prefix, suffix, or simple component augmentation.
46
+
47
+ - [#866](https://github.com/withstudiocms/studiocms/pull/866) [`64b1515`](https://github.com/withstudiocms/studiocms/commit/64b15158ecc93177fac222f9cabe38b5387d5df5) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Deprecates the legacy StudioCMSSiteConfig, StudioCMSMailerConfig, and StudioCMSNotificationSettings tables to be fully removed in a future release.
48
+
49
+ Note: Users will need to run `astro db push --remote` to ensure their DB schemas are up-to-date.
50
+
51
+ - [#902](https://github.com/withstudiocms/studiocms/pull/902) [`a64cf64`](https://github.com/withstudiocms/studiocms/commit/a64cf64975778d7f0f127aa8bd9f56f777aaed91) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Reorganizes create and edit content pages, as well as SMTP config page.
52
+
53
+ - [#953](https://github.com/withstudiocms/studiocms/pull/953) [`000ea26`](https://github.com/withstudiocms/studiocms/commit/000ea26f1f9e302df6701d354a32f5b8b1c6c9d0) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Refactors internal file structure of Astro frontend pages and api endpoints to simplify long-term maintenance
54
+
55
+ - [#929](https://github.com/withstudiocms/studiocms/pull/929) [`8840b69`](https://github.com/withstudiocms/studiocms/commit/8840b69300cf5aab9e47c4bd65f5fec67a346f3d) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #929)
56
+
57
+ - [#868](https://github.com/withstudiocms/studiocms/pull/868) [`503a25a`](https://github.com/withstudiocms/studiocms/commit/503a25a5da1c07afeb3d965b73ea5bb99a673ba4) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - Improve page creation and edit data processing
58
+
59
+ - [#961](https://github.com/withstudiocms/studiocms/pull/961) [`a57c724`](https://github.com/withstudiocms/studiocms/commit/a57c724fac0553fd6eb88c6a1bf850450520c369) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #961)
60
+
61
+ - [#962](https://github.com/withstudiocms/studiocms/pull/962) [`6516cfa`](https://github.com/withstudiocms/studiocms/commit/6516cfa01ea0d5b35442e8cd455a86cc4b4ce260) Thanks [@Adammatthiesen](https://github.com/Adammatthiesen)! - cleans up internal code
62
+
63
+ - [#938](https://github.com/withstudiocms/studiocms/pull/938) [`9dce1e7`](https://github.com/withstudiocms/studiocms/commit/9dce1e7aa656cfd0e51587afe74e2009726759f4) Thanks [@ad1tyayadav](https://github.com/ad1tyayadav)! - Move avatar loading to client-side to eliminate render blocking
64
+
65
+ - [#874](https://github.com/withstudiocms/studiocms/pull/874) [`0326476`](https://github.com/withstudiocms/studiocms/commit/03264767111f8b4dbdef18eafe25fa2f28c3ceb5) Thanks [@apollo-git-bot](https://github.com/apps/apollo-git-bot)! - Translation Updated (PR: #874)
66
+
67
+ - Updated dependencies [[`d3123fe`](https://github.com/withstudiocms/studiocms/commit/d3123febbb0acdfb8d79629e9c2b101dff8a2bc7), [`1d26adb`](https://github.com/withstudiocms/studiocms/commit/1d26adbce761f8856d4282d7d1b81d9570df32ac), [`58e8d06`](https://github.com/withstudiocms/studiocms/commit/58e8d0629ce039be239f17ef616256f53570901f), [`0407845`](https://github.com/withstudiocms/studiocms/commit/04078451befeda774e9b14a148464e895a269ca6), [`0f924e7`](https://github.com/withstudiocms/studiocms/commit/0f924e7a27f0e7480afe4f58061451499a5f6913), [`1306785`](https://github.com/withstudiocms/studiocms/commit/130678577bcd6a05403c208ca4f46f06e48b9ca4)]:
68
+ - @withstudiocms/effect@0.1.0-beta.4
69
+ - @withstudiocms/component-registry@0.1.0-beta.4
70
+ - @withstudiocms/template-lang@0.1.0-beta.1
71
+ - @withstudiocms/internal_helpers@0.1.0-beta.3
72
+ - @withstudiocms/auth-kit@0.1.0-beta.3
73
+
3
74
  ## 0.1.0-beta.27
4
75
 
5
76
  ### Patch Changes
package/dist/config.d.ts CHANGED
@@ -27,7 +27,7 @@ export type { StudioCMSOptions } from './schemas/index.js';
27
27
  */
28
28
  export declare function defineStudioCMSConfig(config: StudioCMSOptions): {
29
29
  plugins?: import("./plugins.js").StudioCMSPlugin[] | undefined;
30
- logLevel?: "All" | "Fatal" | "Error" | "Warning" | "Info" | "Debug" | "Trace" | "None" | undefined;
30
+ logLevel?: "Error" | "All" | "Fatal" | "Warning" | "Info" | "Debug" | "Trace" | "None" | undefined;
31
31
  dbStartPage?: boolean | undefined;
32
32
  verbose?: boolean | undefined;
33
33
  componentRegistry?: Record<string, string> | undefined;
package/dist/consts.d.ts CHANGED
@@ -18,6 +18,7 @@ export declare const Next_MailerConfigId: string;
18
18
  */
19
19
  export declare const CMSNotificationSettingsId: string;
20
20
  export declare const Next_NotificationSettingsId: string;
21
+ export declare const TemplateConfigId: string;
21
22
  /**
22
23
  * The default lifetime for cached items.
23
24
  * This value is used to determine how long an item should remain in the cache before it is considered expired.
@@ -39,6 +40,8 @@ export declare const currentRESTAPIVersions: readonly ["v1"];
39
40
  export type CurrentRESTAPIVersions = (typeof currentRESTAPIVersions)[number];
40
41
  /**
41
42
  * REST API Directory
43
+ *
44
+ * @deprecated use new src/frontend/routes resolver functions instead
42
45
  */
43
46
  export declare const routesDir: {
44
47
  fts: (file: string) => string;
@@ -175,19 +178,6 @@ export declare const FAVICON_ASSETS: {
175
178
  };
176
179
  };
177
180
  type UiOptions = Parameters<typeof uiIntegration>[0];
178
- /**
179
- * UI options configuration for StudioCMS.
180
- *
181
- * @remarks
182
- * This constant defines the default UI options used throughout StudioCMS.
183
- * It includes settings for CSS injection and icon sets.
184
- *
185
- * @property noInjectCSS - If true, StudioCMS UI will not inject its default CSS into all routes.
186
- * @property icons - An object containing icon sets used in the UI.
187
- * - `flatcoloricons`: Contains selected icons from the Flat Color Icons set (e.g., 'google').
188
- * - `simpleicons`: Contains selected icons from the Simple Icons set (e.g., 'github', 'discord', 'auth0').
189
- */
190
- export declare const STUDIOCMS_UI_OPTS: UiOptions;
191
181
  /**
192
182
  * Merges user-provided UI options with default StudioCMS UI options.
193
183
  *
@@ -198,7 +188,10 @@ export declare const STUDIOCMS_UI_OPTS: UiOptions;
198
188
  * - If a user option is provided, it takes precedence over the default.
199
189
  * - The `icons` property is deeply merged, combining default and user-provided icons.
200
190
  */
201
- export declare function getUiOpts(userOpts?: Partial<UiOptions>): UiOptions;
191
+ export declare function getUiOpts(currentFlags: Array<{
192
+ key: string;
193
+ flag: `lang-${string}`;
194
+ }>, userOpts?: Partial<UiOptions>): UiOptions;
202
195
  export declare const LinkNewOAuthCookieName = "link-new-o-auth";
203
196
  export declare const AuthSessionCookieName = "auth_session";
204
197
  export declare const ValidRanks: ReadonlySet<AvailablePermissionRanks>;
package/dist/consts.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { icons as circleFlags } from "@iconify-json/circle-flags";
1
2
  import { icons as flatColorIcons } from "@iconify-json/flat-color-icons";
2
3
  import { icons as simpleIcons } from "@iconify-json/simple-icons";
3
4
  import {
@@ -12,6 +13,7 @@ const CMSMailerConfigId = "1";
12
13
  const Next_MailerConfigId = "SCMS_MAILER_CONFIG_1";
13
14
  const CMSNotificationSettingsId = "1";
14
15
  const Next_NotificationSettingsId = "SCMS_NOTIFICATION_SETTINGS_1";
16
+ const TemplateConfigId = "SCMS_EMAIL_TEMPLATES_1";
15
17
  const defaultCacheLifeTime = "5m";
16
18
  const OneDay = 1e3 * 60 * 60 * 24;
17
19
  const versionCacheLifetime = OneDay * 7;
@@ -122,21 +124,27 @@ const FAVICON_ASSETS = {
122
124
  dark: `${STUDIOCMS_CDN_URL}/favicon-dark.png`
123
125
  }
124
126
  };
125
- const STUDIOCMS_UI_OPTS = {
126
- noInjectCSS: true,
127
- icons: {
128
- flatcoloricons: stripIconify({
129
- src: flatColorIcons,
130
- icons: ["google"]
131
- }),
132
- simpleicons: stripIconify({
133
- src: simpleIcons,
134
- icons: ["github", "discord", "auth0"]
135
- })
136
- }
137
- };
138
- function getUiOpts(userOpts) {
139
- const base = { ...STUDIOCMS_UI_OPTS };
127
+ function getDefaultUiOpts(currentFlags) {
128
+ return {
129
+ noInjectCSS: true,
130
+ icons: {
131
+ flatcoloricons: stripIconify({
132
+ src: flatColorIcons,
133
+ icons: ["google"]
134
+ }),
135
+ simpleicons: stripIconify({
136
+ src: simpleIcons,
137
+ icons: ["github", "discord", "auth0"]
138
+ }),
139
+ "lang-flags": stripIconify({
140
+ src: circleFlags,
141
+ icons: currentFlags.map(({ flag }) => flag)
142
+ })
143
+ }
144
+ };
145
+ }
146
+ function getUiOpts(currentFlags, userOpts) {
147
+ const base = { ...getDefaultUiOpts(currentFlags) };
140
148
  const merged = {
141
149
  ...base,
142
150
  ...userOpts,
@@ -164,9 +172,9 @@ export {
164
172
  STUDIOCMS_CDN_URL,
165
173
  STUDIOCMS_EDITOR_CSRF_COOKIE_NAME,
166
174
  STUDIOCMS_THEME_COLOR,
167
- STUDIOCMS_UI_OPTS,
168
175
  StudioCMSDefaultRobotsConfig,
169
176
  StudioCMSMarkdownDefaults,
177
+ TemplateConfigId,
170
178
  ValidRanks,
171
179
  authAPIRoute,
172
180
  currentRESTAPIVersions,
@@ -661,6 +661,13 @@ export declare const tsPageData: import("@astrojs/db/runtime").Table<"StudioCMSP
661
661
  optional: true;
662
662
  };
663
663
  };
664
+ augments: {
665
+ type: "json";
666
+ schema: {
667
+ default: never[];
668
+ optional: true;
669
+ };
670
+ };
664
671
  }>;
665
672
  export declare const tsDiffTracking: import("@astrojs/db/runtime").Table<"StudioCMSDiffTracking", {
666
673
  id: {
@@ -1042,6 +1049,121 @@ export declare const tsPageContent: import("@astrojs/db/runtime").Table<"StudioC
1042
1049
  };
1043
1050
  };
1044
1051
  }>;
1052
+ export declare const tsEmailVerificationTokens: import("@astrojs/db/runtime").Table<"StudioCMSEmailVerificationTokens", {
1053
+ id: {
1054
+ type: "text";
1055
+ schema: {
1056
+ readonly primaryKey: true;
1057
+ };
1058
+ };
1059
+ userId: {
1060
+ type: "text";
1061
+ schema: {
1062
+ readonly references: () => {
1063
+ type: "text";
1064
+ schema: {
1065
+ readonly primaryKey: true;
1066
+ };
1067
+ };
1068
+ };
1069
+ };
1070
+ token: {
1071
+ type: "text";
1072
+ schema: ({
1073
+ name?: string | undefined;
1074
+ label?: string | undefined;
1075
+ unique?: boolean | undefined;
1076
+ deprecated?: boolean | undefined;
1077
+ collection?: string | undefined;
1078
+ default?: string | import("drizzle-orm").SQL<any> | undefined;
1079
+ multiline?: boolean | undefined;
1080
+ enum?: [string, ...string[]] | undefined;
1081
+ } & ({
1082
+ optional?: boolean | undefined;
1083
+ primaryKey?: false | undefined;
1084
+ } | {
1085
+ primaryKey: true;
1086
+ optional?: false | undefined;
1087
+ })) & {
1088
+ references?: () => {
1089
+ type: "text";
1090
+ schema: ({
1091
+ name?: string | undefined;
1092
+ label?: string | undefined;
1093
+ unique?: boolean | undefined;
1094
+ deprecated?: boolean | undefined;
1095
+ collection?: string | undefined;
1096
+ default?: string | import("drizzle-orm").SQL<any> | undefined;
1097
+ multiline?: boolean | undefined;
1098
+ enum?: [string, ...string[]] | undefined;
1099
+ } & ({
1100
+ optional?: boolean | undefined;
1101
+ primaryKey?: false | undefined;
1102
+ } | {
1103
+ primaryKey: true;
1104
+ optional?: false | undefined;
1105
+ })) & {
1106
+ references?: () => /*elided*/ any;
1107
+ };
1108
+ };
1109
+ };
1110
+ };
1111
+ expiresAt: {
1112
+ type: "date";
1113
+ schema: {
1114
+ name?: string | undefined;
1115
+ label?: string | undefined;
1116
+ optional?: boolean | undefined;
1117
+ unique?: boolean | undefined;
1118
+ deprecated?: boolean | undefined;
1119
+ collection?: string | undefined;
1120
+ default?: Date | import("drizzle-orm").SQL<any> | undefined;
1121
+ };
1122
+ };
1123
+ }>;
1124
+ export declare const tsPluginData: import("@astrojs/db/runtime").Table<"StudioCMSPluginData", {
1125
+ id: {
1126
+ type: "text";
1127
+ schema: {
1128
+ readonly primaryKey: true;
1129
+ };
1130
+ };
1131
+ data: {
1132
+ type: "json";
1133
+ schema: {
1134
+ name?: string | undefined;
1135
+ label?: string | undefined;
1136
+ optional?: boolean | undefined;
1137
+ unique?: boolean | undefined;
1138
+ deprecated?: boolean | undefined;
1139
+ collection?: string | undefined;
1140
+ default?: unknown;
1141
+ };
1142
+ };
1143
+ }>;
1144
+ export declare const tsDynamicConfigSettings: import("@astrojs/db/runtime").Table<"StudioCMSDynamicConfigSettings", {
1145
+ id: {
1146
+ type: "text";
1147
+ schema: {
1148
+ readonly primaryKey: true;
1149
+ };
1150
+ };
1151
+ data: {
1152
+ type: "json";
1153
+ schema: {
1154
+ name?: string | undefined;
1155
+ label?: string | undefined;
1156
+ optional?: boolean | undefined;
1157
+ unique?: boolean | undefined;
1158
+ deprecated?: boolean | undefined;
1159
+ collection?: string | undefined;
1160
+ default?: unknown;
1161
+ };
1162
+ };
1163
+ }>;
1164
+ /**
1165
+ * @deprecated
1166
+ */
1045
1167
  export declare const tsSiteConfig: import("@astrojs/db/runtime").Table<"StudioCMSSiteConfig", {
1046
1168
  id: {
1047
1169
  type: "number";
@@ -1186,6 +1308,9 @@ export declare const tsSiteConfig: import("@astrojs/db/runtime").Table<"StudioCM
1186
1308
  };
1187
1309
  };
1188
1310
  }>;
1311
+ /**
1312
+ * @deprecated
1313
+ */
1189
1314
  export declare const tsMailerConfig: import("@astrojs/db/runtime").Table<"StudioCMSMailerConfig", {
1190
1315
  id: {
1191
1316
  type: "text";
@@ -1357,6 +1482,9 @@ export declare const tsMailerConfig: import("@astrojs/db/runtime").Table<"Studio
1357
1482
  };
1358
1483
  };
1359
1484
  }>;
1485
+ /**
1486
+ * @deprecated
1487
+ */
1360
1488
  export declare const tsNotificationSettings: import("@astrojs/db/runtime").Table<"StudioCMSNotificationSettings", {
1361
1489
  id: {
1362
1490
  type: "text";
@@ -1389,115 +1517,3 @@ export declare const tsNotificationSettings: import("@astrojs/db/runtime").Table
1389
1517
  };
1390
1518
  };
1391
1519
  }>;
1392
- export declare const tsEmailVerificationTokens: import("@astrojs/db/runtime").Table<"StudioCMSEmailVerificationTokens", {
1393
- id: {
1394
- type: "text";
1395
- schema: {
1396
- readonly primaryKey: true;
1397
- };
1398
- };
1399
- userId: {
1400
- type: "text";
1401
- schema: {
1402
- readonly references: () => {
1403
- type: "text";
1404
- schema: {
1405
- readonly primaryKey: true;
1406
- };
1407
- };
1408
- };
1409
- };
1410
- token: {
1411
- type: "text";
1412
- schema: ({
1413
- name?: string | undefined;
1414
- label?: string | undefined;
1415
- unique?: boolean | undefined;
1416
- deprecated?: boolean | undefined;
1417
- collection?: string | undefined;
1418
- default?: string | import("drizzle-orm").SQL<any> | undefined;
1419
- multiline?: boolean | undefined;
1420
- enum?: [string, ...string[]] | undefined;
1421
- } & ({
1422
- optional?: boolean | undefined;
1423
- primaryKey?: false | undefined;
1424
- } | {
1425
- primaryKey: true;
1426
- optional?: false | undefined;
1427
- })) & {
1428
- references?: () => {
1429
- type: "text";
1430
- schema: ({
1431
- name?: string | undefined;
1432
- label?: string | undefined;
1433
- unique?: boolean | undefined;
1434
- deprecated?: boolean | undefined;
1435
- collection?: string | undefined;
1436
- default?: string | import("drizzle-orm").SQL<any> | undefined;
1437
- multiline?: boolean | undefined;
1438
- enum?: [string, ...string[]] | undefined;
1439
- } & ({
1440
- optional?: boolean | undefined;
1441
- primaryKey?: false | undefined;
1442
- } | {
1443
- primaryKey: true;
1444
- optional?: false | undefined;
1445
- })) & {
1446
- references?: () => /*elided*/ any;
1447
- };
1448
- };
1449
- };
1450
- };
1451
- expiresAt: {
1452
- type: "date";
1453
- schema: {
1454
- name?: string | undefined;
1455
- label?: string | undefined;
1456
- optional?: boolean | undefined;
1457
- unique?: boolean | undefined;
1458
- deprecated?: boolean | undefined;
1459
- collection?: string | undefined;
1460
- default?: Date | import("drizzle-orm").SQL<any> | undefined;
1461
- };
1462
- };
1463
- }>;
1464
- export declare const tsPluginData: import("@astrojs/db/runtime").Table<"StudioCMSPluginData", {
1465
- id: {
1466
- type: "text";
1467
- schema: {
1468
- readonly primaryKey: true;
1469
- };
1470
- };
1471
- data: {
1472
- type: "json";
1473
- schema: {
1474
- name?: string | undefined;
1475
- label?: string | undefined;
1476
- optional?: boolean | undefined;
1477
- unique?: boolean | undefined;
1478
- deprecated?: boolean | undefined;
1479
- collection?: string | undefined;
1480
- default?: unknown;
1481
- };
1482
- };
1483
- }>;
1484
- export declare const tsDynamicConfigSettings: import("@astrojs/db/runtime").Table<"StudioCMSDynamicConfigSettings", {
1485
- id: {
1486
- type: "text";
1487
- schema: {
1488
- readonly primaryKey: true;
1489
- };
1490
- };
1491
- data: {
1492
- type: "json";
1493
- schema: {
1494
- name?: string | undefined;
1495
- label?: string | undefined;
1496
- optional?: boolean | undefined;
1497
- unique?: boolean | undefined;
1498
- deprecated?: boolean | undefined;
1499
- collection?: string | undefined;
1500
- default?: unknown;
1501
- };
1502
- };
1503
- }>;
package/dist/db/config.js CHANGED
@@ -83,7 +83,8 @@ const StudioCMSPageData = defineTable({
83
83
  showAuthor: column.boolean({ default: false, optional: true }),
84
84
  showContributors: column.boolean({ default: false, optional: true }),
85
85
  parentFolder: column.text({ optional: true }),
86
- draft: column.boolean({ optional: true })
86
+ draft: column.boolean({ optional: true }),
87
+ augments: column.json({ default: [], optional: true })
87
88
  }
88
89
  });
89
90
  const StudioCMSDiffTracking = defineTable({
@@ -124,7 +125,28 @@ const StudioCMSPageContent = defineTable({
124
125
  content: column.text({ multiline: true, optional: true })
125
126
  }
126
127
  });
128
+ const StudioCMSEmailVerificationTokens = defineTable({
129
+ columns: {
130
+ id: column.text({ primaryKey: true }),
131
+ userId: column.text({ references: () => StudioCMSUsers.columns.id }),
132
+ token: column.text(),
133
+ expiresAt: column.date()
134
+ }
135
+ });
136
+ const StudioCMSPluginData = defineTable({
137
+ columns: {
138
+ id: column.text({ primaryKey: true }),
139
+ data: column.json()
140
+ }
141
+ });
142
+ const StudioCMSDynamicConfigSettings = defineTable({
143
+ columns: {
144
+ id: column.text({ primaryKey: true }),
145
+ data: column.json()
146
+ }
147
+ });
127
148
  const StudioCMSSiteConfig = defineTable({
149
+ deprecated: true,
128
150
  columns: {
129
151
  id: column.number({ primaryKey: true }),
130
152
  title: column.text(),
@@ -141,6 +163,7 @@ const StudioCMSSiteConfig = defineTable({
141
163
  }
142
164
  });
143
165
  const StudioCMSMailerConfig = defineTable({
166
+ deprecated: true,
144
167
  columns: {
145
168
  id: column.text({ primaryKey: true }),
146
169
  host: column.text(),
@@ -155,6 +178,7 @@ const StudioCMSMailerConfig = defineTable({
155
178
  }
156
179
  });
157
180
  const StudioCMSNotificationSettings = defineTable({
181
+ deprecated: true,
158
182
  columns: {
159
183
  id: column.text({ primaryKey: true }),
160
184
  emailVerification: column.boolean({ default: false }),
@@ -163,26 +187,6 @@ const StudioCMSNotificationSettings = defineTable({
163
187
  oAuthBypassVerification: column.boolean({ default: false })
164
188
  }
165
189
  });
166
- const StudioCMSEmailVerificationTokens = defineTable({
167
- columns: {
168
- id: column.text({ primaryKey: true }),
169
- userId: column.text({ references: () => StudioCMSUsers.columns.id }),
170
- token: column.text(),
171
- expiresAt: column.date()
172
- }
173
- });
174
- const StudioCMSPluginData = defineTable({
175
- columns: {
176
- id: column.text({ primaryKey: true }),
177
- data: column.json()
178
- }
179
- });
180
- const StudioCMSDynamicConfigSettings = defineTable({
181
- columns: {
182
- id: column.text({ primaryKey: true }),
183
- data: column.json()
184
- }
185
- });
186
190
  var config_default = defineDb({
187
191
  tables: {
188
192
  StudioCMSPageContent,
@@ -191,18 +195,19 @@ var config_default = defineDb({
191
195
  StudioCMSPageDataTags,
192
196
  StudioCMSPermissions,
193
197
  StudioCMSSessionTable,
194
- StudioCMSSiteConfig,
195
198
  StudioCMSUsers,
196
199
  StudioCMSOAuthAccounts,
197
200
  StudioCMSDiffTracking,
198
201
  StudioCMSPageFolderStructure,
199
202
  StudioCMSUserResetTokens,
200
203
  StudioCMSAPIKeys,
201
- StudioCMSMailerConfig,
202
- StudioCMSNotificationSettings,
203
204
  StudioCMSEmailVerificationTokens,
204
205
  StudioCMSPluginData,
205
- StudioCMSDynamicConfigSettings
206
+ StudioCMSDynamicConfigSettings,
207
+ // Deprecated Tables
208
+ StudioCMSSiteConfig,
209
+ StudioCMSMailerConfig,
210
+ StudioCMSNotificationSettings
206
211
  }
207
212
  });
208
213
  const tsUsers = asDrizzleTable("StudioCMSUsers", StudioCMSUsers);
@@ -226,12 +231,6 @@ const tsPageDataCategories = asDrizzleTable(
226
231
  StudioCMSPageDataCategories
227
232
  );
228
233
  const tsPageContent = asDrizzleTable("StudioCMSPageContent", StudioCMSPageContent);
229
- const tsSiteConfig = asDrizzleTable("StudioCMSSiteConfig", StudioCMSSiteConfig);
230
- const tsMailerConfig = asDrizzleTable("StudioCMSMailerConfig", StudioCMSMailerConfig);
231
- const tsNotificationSettings = asDrizzleTable(
232
- "StudioCMSNotificationSettings",
233
- StudioCMSNotificationSettings
234
- );
235
234
  const tsEmailVerificationTokens = asDrizzleTable(
236
235
  "StudioCMSEmailVerificationTokens",
237
236
  StudioCMSEmailVerificationTokens
@@ -241,6 +240,12 @@ const tsDynamicConfigSettings = asDrizzleTable(
241
240
  "StudioCMSDynamicConfigSettings",
242
241
  StudioCMSDynamicConfigSettings
243
242
  );
243
+ const tsSiteConfig = asDrizzleTable("StudioCMSSiteConfig", StudioCMSSiteConfig);
244
+ const tsMailerConfig = asDrizzleTable("StudioCMSMailerConfig", StudioCMSMailerConfig);
245
+ const tsNotificationSettings = asDrizzleTable(
246
+ "StudioCMSNotificationSettings",
247
+ StudioCMSNotificationSettings
248
+ );
244
249
  export {
245
250
  config_default as default,
246
251
  tsAPIKeys,
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  import { useTranslations } from 'studiocms:i18n';
3
3
  import { Divider } from 'studiocms:ui/components/divider';
4
+ import { providerData, showOAuth } from '../shared/oAuthButtonProviders.js';
4
5
  import OAuthButton from './OAuthButton.astro';
5
- import { providerData, showOAuth } from './oAuthButtonProviders.js';
6
6
 
7
7
  const lang = Astro.locals.StudioCMS.defaultLang;
8
8
  const t = useTranslations(lang, '@studiocms/auth:oauth-stack');
@@ -5,7 +5,7 @@ import dashboardGridItems from 'studiocms:components/dashboard-grid-items';
5
5
  import type { UiLanguageKeys } from 'studiocms:i18n';
6
6
  import type { SiteConfigCacheObject } from 'studiocms:sdk/types';
7
7
  import { Center } from 'studiocms:ui/components/center';
8
- import { Effect } from '../../effect.js';
8
+ import { Effect } from '../../../effect.js';
9
9
  import DashboardGridItem from './DashboardGridItem.astro';
10
10
 
11
11
  interface Props {
@@ -1,9 +1,10 @@
1
1
  ---
2
+ import { convertUnderscoresToHyphens } from 'studiocms:component-registry/runtime';
2
3
  import type { UiLanguageKeys } from 'studiocms:i18n';
3
4
  import { Card } from 'studiocms:ui/components/card';
4
5
  import { Icon } from 'studiocms:ui/components/icon';
5
- import { createComponentProxy, transformHTML } from '../../runtime/index.js';
6
- import type { GridItem } from './shared.js';
6
+ import { createComponentProxy, transformHTML } from '../../../runtime/index.js';
7
+ import type { GridItemUsable as GridItem } from '../../../schemas/plugins/shared.js';
7
8
 
8
9
  export interface Props extends GridItem {
9
10
  lang: UiLanguageKeys;
@@ -19,6 +20,15 @@ let html: string | undefined;
19
20
  if (body?.html) {
20
21
  html = await transformHTML(body.html, components, body.sanitizeOpts);
21
22
  }
23
+
24
+ const [pluginId, componentSafeId] = name.split('/');
25
+
26
+ const componentId = convertUnderscoresToHyphens(componentSafeId);
27
+
28
+ const genericTranslationProps = {
29
+ plugin: pluginId,
30
+ component: componentId,
31
+ };
22
32
  ---
23
33
  <Card
24
34
  fullWidth
@@ -30,9 +40,9 @@ if (body?.html) {
30
40
  <div slot="header">
31
41
  <span class="grid-item-title">
32
42
  {header.icon && <Icon name={header.icon} width={24} height={24}/>}
33
- <span>{header.title}</span>
43
+ <span><p-translations {...genericTranslationProps} key="title">{header.title}</p-translations></span>
34
44
  </span>
35
45
  </div>
36
46
  )}
37
47
  { html && <Fragment set:html={html} /> }
38
- </Card>
48
+ </Card>