@bygghammar/cms-platform 0.23.0 → 0.23.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bygghammar/cms-platform",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.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,
|
|
@@ -67,6 +67,9 @@ export const EMPTY_COMPANY: SiteCompany = {
|
|
|
67
67
|
/** Brand design tokens. Values are CSS colors written into the theme contract. */
|
|
68
68
|
export type SiteBrandTokens = Record<string, string>;
|
|
69
69
|
|
|
70
|
+
/** Serializable per-site extras. Kept primitive so the config can cross RPC. */
|
|
71
|
+
export type SiteExtra = Record<string, string | number | boolean | null>;
|
|
72
|
+
|
|
70
73
|
export type SiteConfigInput = {
|
|
71
74
|
/** Machine key, e.g. "voyara". Lowercase, no spaces. */
|
|
72
75
|
key: string;
|
|
@@ -86,7 +89,7 @@ export type SiteConfigInput = {
|
|
|
86
89
|
brand?: SiteBrandTokens;
|
|
87
90
|
features?: Partial<SiteFeatureFlags>;
|
|
88
91
|
/** Optional free-form per-site extras shared code never reads. */
|
|
89
|
-
extra?:
|
|
92
|
+
extra?: SiteExtra;
|
|
90
93
|
};
|
|
91
94
|
|
|
92
95
|
export type SiteConfig = {
|
|
@@ -100,7 +103,7 @@ export type SiteConfig = {
|
|
|
100
103
|
company: SiteCompany;
|
|
101
104
|
brand: SiteBrandTokens;
|
|
102
105
|
features: SiteFeatureFlags;
|
|
103
|
-
extra:
|
|
106
|
+
extra: SiteExtra;
|
|
104
107
|
};
|
|
105
108
|
|
|
106
109
|
function fail(message: string): never {
|