@c1m-public/dash-site-kit 0.10.0 → 0.11.0
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/README.md +1 -1
- package/dist/models/bootstrap.d.ts +0 -2
- package/dist/next/normalize.js +2 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,8 +32,6 @@ export interface DashBootstrap {
|
|
|
32
32
|
title: string;
|
|
33
33
|
description?: string;
|
|
34
34
|
};
|
|
35
|
-
/** The server-decided public gate (`signals.gate`); null means the normal site. */
|
|
36
|
-
gate: DashGate | null;
|
|
37
35
|
/** The standard site-decision block; decide requests with `gateAction`. */
|
|
38
36
|
signals: SiteSignals;
|
|
39
37
|
}
|
package/dist/next/normalize.js
CHANGED
|
@@ -8,7 +8,7 @@ function text(value) {
|
|
|
8
8
|
export function normalizeDashBootstrap(init) {
|
|
9
9
|
const signals = normalizeSignals(init);
|
|
10
10
|
const name = text(init.tenant.display_name) ?? init.tenant.id;
|
|
11
|
-
const siteUrl = text(
|
|
11
|
+
const siteUrl = text(signals.site?.url)?.replace(/\/+$/, "") ?? null;
|
|
12
12
|
return {
|
|
13
13
|
id: init.tenant.id,
|
|
14
14
|
name,
|
|
@@ -26,12 +26,11 @@ export function normalizeDashBootstrap(init) {
|
|
|
26
26
|
locale: text(init.locale?.locale),
|
|
27
27
|
timezone: text(init.locale?.timezone),
|
|
28
28
|
},
|
|
29
|
-
site: { url: siteUrl, source: siteUrl ? (
|
|
29
|
+
site: { url: siteUrl, source: siteUrl ? (signals.site?.source ?? null) : null },
|
|
30
30
|
seo: {
|
|
31
31
|
title: text(init.seo?.title) ?? name,
|
|
32
32
|
description: text(init.seo?.description) ?? text(init.public_profile.headline) ?? text(init.public_profile.short_description),
|
|
33
33
|
},
|
|
34
|
-
gate: signals.gate,
|
|
35
34
|
signals,
|
|
36
35
|
};
|
|
37
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c1m-public/dash-site-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Shared transport, domain and UI layer for MML dash-scoped public sites",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"server-only": "0.0.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@c1m-public/channel-client": ">=0.
|
|
46
|
+
"@c1m-public/channel-client": ">=0.31.0 <1",
|
|
47
47
|
"next": "^16",
|
|
48
48
|
"react": "^19"
|
|
49
49
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-dom": "19.2.8",
|
|
57
57
|
"typescript": "5.9.3",
|
|
58
58
|
"vitest": "^4.1.4",
|
|
59
|
-
"@c1m-public/channel-client": "0.
|
|
59
|
+
"@c1m-public/channel-client": "0.31.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"next": {
|