includio-cms 0.6.2 → 0.7.1

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 (78) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/ROADMAP.md +18 -2
  3. package/dist/admin/api/accept-invite.js +2 -2
  4. package/dist/admin/auth-client.d.ts +2122 -2122
  5. package/dist/admin/client/admin/admin-layout.svelte +5 -1
  6. package/dist/admin/client/admin/admin-layout.svelte.d.ts +2 -0
  7. package/dist/admin/client/index.d.ts +1 -0
  8. package/dist/admin/client/index.js +1 -0
  9. package/dist/admin/components/fields/blocks-field.svelte +3 -3
  10. package/dist/admin/components/fields/field-renderer.svelte +9 -0
  11. package/dist/admin/components/fields/image-field.svelte +2 -2
  12. package/dist/admin/components/fields/media-field.svelte +4 -4
  13. package/dist/admin/components/media/file/file-miniature.svelte +6 -6
  14. package/dist/admin/helpers/build-custom-fields-map.d.ts +7 -0
  15. package/dist/admin/helpers/build-custom-fields-map.js +13 -0
  16. package/dist/admin/helpers/index.d.ts +7 -0
  17. package/dist/admin/helpers/index.js +7 -0
  18. package/dist/admin/helpers/use-field.d.ts +26 -0
  19. package/dist/admin/helpers/use-field.js +9 -0
  20. package/dist/admin/state/custom-fields.svelte.d.ts +3 -0
  21. package/dist/admin/state/custom-fields.svelte.js +10 -0
  22. package/dist/admin/styles/admin.css +1 -1
  23. package/dist/admin/ui/index.d.ts +12 -0
  24. package/dist/admin/ui/index.js +14 -0
  25. package/dist/components/ui/accordion/accordion.svelte.d.ts +1 -1
  26. package/dist/components/ui/calendar/calendar.svelte.d.ts +1 -1
  27. package/dist/components/ui/command/command-dialog.svelte.d.ts +1 -1
  28. package/dist/components/ui/command/command-input.svelte.d.ts +1 -1
  29. package/dist/components/ui/command/command.svelte.d.ts +1 -1
  30. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +1 -1
  31. package/dist/components/ui/input/input.svelte +2 -2
  32. package/dist/components/ui/input/input.svelte.d.ts +1 -1
  33. package/dist/components/ui/input-group/input-group-input.svelte.d.ts +2 -2
  34. package/dist/components/ui/input-group/input-group-textarea.svelte.d.ts +1 -1
  35. package/dist/components/ui/input-group/input-group.svelte +1 -1
  36. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +1 -1
  37. package/dist/components/ui/select/select-trigger.svelte +1 -1
  38. package/dist/components/ui/sidebar/sidebar-input.svelte.d.ts +2 -2
  39. package/dist/components/ui/tabs/tabs.svelte.d.ts +1 -1
  40. package/dist/components/ui/textarea/textarea.svelte +1 -1
  41. package/dist/components/ui/textarea/textarea.svelte.d.ts +1 -1
  42. package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +1 -1
  43. package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +1 -1
  44. package/dist/core/cms.d.ts +7 -4
  45. package/dist/core/cms.js +52 -2
  46. package/dist/core/fields/fieldSchemaToTs.d.ts +11 -0
  47. package/dist/core/fields/fieldSchemaToTs.js +30 -0
  48. package/dist/core/index.d.ts +1 -0
  49. package/dist/core/index.js +1 -0
  50. package/dist/core/server/fields/populateEntry.js +50 -0
  51. package/dist/core/server/fields/resolveRichtextLinks.js +3 -2
  52. package/dist/core/server/fields/resolveUrlFields.js +2 -2
  53. package/dist/core/server/fields/slugResolver.d.ts +5 -0
  54. package/dist/core/server/fields/slugResolver.js +16 -0
  55. package/dist/core/server/fields/utils/resolveMedia.d.ts +12 -0
  56. package/dist/core/server/fields/utils/resolveMedia.js +23 -0
  57. package/dist/core/server/generator/fields.d.ts +2 -0
  58. package/dist/core/server/generator/fields.js +8 -0
  59. package/dist/core/server/generator/generator.js +9 -1
  60. package/dist/db-postgres/index.d.ts +6 -1
  61. package/dist/db-postgres/index.js +1 -0
  62. package/dist/server/auth.d.ts +1 -1358
  63. package/dist/server/auth.js +3 -23
  64. package/dist/sveltekit/index.d.ts +1 -0
  65. package/dist/sveltekit/index.js +1 -0
  66. package/dist/sveltekit/server/handle.js +21 -2
  67. package/dist/types/cms.d.ts +8 -3
  68. package/dist/types/config.d.ts +1 -0
  69. package/dist/types/fields.d.ts +9 -2
  70. package/dist/types/index.d.ts +2 -1
  71. package/dist/types/index.js +1 -0
  72. package/dist/types/plugins.d.ts +19 -1
  73. package/dist/updates/0.7.0/index.d.ts +2 -0
  74. package/dist/updates/0.7.0/index.js +16 -0
  75. package/dist/updates/0.7.1/index.d.ts +2 -0
  76. package/dist/updates/0.7.1/index.js +16 -0
  77. package/dist/updates/index.js +3 -1
  78. package/package.json +14 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,34 @@
3
3
  All notable changes to includio-cms are documented here.
4
4
  Generated from `src/lib/updates/` — do not edit manually.
5
5
 
6
+ ## 0.7.1 — 2026-03-13
7
+
8
+ Custom fields plugin system, pathTemplate, admin public API
9
+
10
+ ### Added
11
+ - Custom fields plugin system — type definition, zod/TS codegen, field renderer, populate resolver
12
+ - pathTemplate support — configurable URL paths for collections/singles
13
+ - Admin public exports: admin/helpers (useField, contexts) & admin/ui (shadcn primitives, MediaSelector)
14
+ - resolveMediaWithStyles utility — resolve media files with image styles
15
+
16
+ ### Fixed
17
+ - Schema serialization type cast fix (stricter TS)
18
+ - Core svelte export condition added to package.json
19
+
20
+ ## 0.7.0 — 2026-03-11
21
+
22
+ Auth core refactor & design system alignment
23
+
24
+ ### Fixed
25
+ - Auth moved into CMS core — lazy betterAuth init from config, simplified AuthConfig interface
26
+ - Media checkered bg & overlay gradient aligned with design system palette
27
+ - Form inputs use consistent bg-card background
28
+ - Blocks field accordion: rounded borders, card background
29
+ - Media file miniature: reset img/svg margins
30
+
31
+ ### Breaking
32
+ - Auth config: AuthAdapter replaced with AuthConfig (secret + baseURL), auth init moved to CMS class
33
+
6
34
  ## 0.6.2 — 2026-03-11
7
35
 
8
36
  Admin hydration fix
package/ROADMAP.md CHANGED
@@ -147,14 +147,30 @@
147
147
  - [ ] `[feature]` `[P1]` Media gallery virtualization/pagination <!-- files: src/lib/admin/components/media/files-list.svelte -->
148
148
  - [ ] `[feature]` `[P2]` Image styles UI — preview generated variants in editor
149
149
 
150
- ## 0.7.0 — SEO module
150
+ ## 0.7.0 — Auth core refactor & design fixes
151
+
152
+ - [x] `[breaking]` `[P0]` Auth moved into CMS core — lazy betterAuth init from config, AuthAdapter → AuthConfig <!-- files: src/lib/core/cms.ts, src/lib/types/cms.ts, src/lib/sveltekit/server/handle.ts -->
153
+ - [x] `[fix]` `[P1]` Media checkered bg & overlay gradient aligned with design system palette <!-- files: src/lib/admin/styles/admin.css -->
154
+ - [x] `[fix]` `[P1]` Form inputs (input, textarea, select, input-group) use consistent bg-card background
155
+ - [x] `[fix]` `[P2]` Blocks field accordion: rounded borders, card background
156
+ - [x] `[fix]` `[P2]` Media file miniature: reset img/svg margins
157
+
158
+ ## 0.7.1 — Custom fields & admin DX
159
+
160
+ - [x] `[feature]` `[P0]` Custom fields plugin system — type, zod/TS codegen, field renderer, populate resolver
161
+ - [x] `[feature]` `[P1]` pathTemplate — configurable URL paths for collections/singles
162
+ - [x] `[feature]` `[P1]` Admin public exports: admin/helpers & admin/ui for plugin authors
163
+ - [x] `[feature]` `[P2]` resolveMediaWithStyles utility & core svelte export
164
+ - [x] `[fix]` `[P1]` Schema serialization type cast (stricter TS compatibility)
165
+
166
+ ## 0.8.0 — SEO module
151
167
 
152
168
  - [ ] `[feature]` `[P1]` SERP preview + character limits for title/description <!-- files: src/lib/admin/components/fields/seo-field.svelte -->
153
169
  - [ ] `[feature]` `[P1]` Global SEO settings
154
170
  - [ ] `[feature]` `[P1]` Dedicated frontend SEO components <!-- files: src/lib/sveltekit/components/seo.svelte -->
155
171
  - [ ] `[feature]` `[P2]` Sitemap generation
156
172
 
157
- ## 0.8.0 — WCAG/ATAG compliance
173
+ ## 0.9.0 — WCAG/ATAG compliance
158
174
 
159
175
  - [ ] `[chore]` `[P0]` Full WCAG/ATAG audit
160
176
  - [ ] `[feature]` `[P0]` Accessibility rework based on audit findings
@@ -1,5 +1,5 @@
1
1
  import { getInvitationByToken, markInvitationUsed } from '../remote/invite.js';
2
- import { auth } from '../../server/auth.js';
2
+ import { getAuth } from '../../server/auth.js';
3
3
  import { json } from '@sveltejs/kit';
4
4
  export const POST = async ({ request }) => {
5
5
  const { token, name, password } = await request.json();
@@ -10,7 +10,7 @@ export const POST = async ({ request }) => {
10
10
  if (!inv) {
11
11
  return json({ error: 'Invalid or expired invitation' }, { status: 400 });
12
12
  }
13
- const response = await auth.api.createUser({
13
+ const response = await getAuth().api.createUser({
14
14
  body: {
15
15
  email: inv.email,
16
16
  password,