@bygghammar/cms-platform 0.34.0 → 0.34.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.34.1
4
+
5
+ - `saveContentSectionCore` accepts an optional `data` payload, matching hosts
6
+ whose validator makes the record body optional.
7
+
3
8
  ## 0.34.0
4
9
 
5
10
  - Added `server/content-sections-core` — public reads and staff-only upserts of
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bygghammar/cms-platform",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "Shared CMS platform: blocks, block types, i18n core, UI primitives and design-token contract used by every Bygghammar/Voyara site.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -49,7 +49,7 @@ export async function isStaffCore(context: PlatformAuthContext): Promise<boolean
49
49
  */
50
50
  export async function saveContentSectionCore(
51
51
  context: PlatformAuthContext & { supabase: ContentClient },
52
- input: { key: string; data: unknown },
52
+ input: { key: string; data?: unknown },
53
53
  ): Promise<{ ok: true; key: string }> {
54
54
  await assertStaff(context);
55
55