@c1m-public/dash-site-kit 0.5.0 → 0.6.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.
@@ -45,10 +45,8 @@ let visitorChannelClient = null;
45
45
  * The `no-store` client for VISITOR-SCOPED calls. Anything whose answer
46
46
  * depends on who is asking — geo detection (which picks the pricing region
47
47
  * and therefore the displayed currency), lead capture — is kept off the
48
- * shared 60s revalidation window above. Since channel-client 0.23.0 the
49
- * adapter itself forces no-store for any visitor-signed read (and for the
50
- * attestation ping), so this client is belt-and-braces rather than the only
51
- * guard; it stays because the intent is clearer at the call site.
48
+ * shared 60s revalidation window above. The adapter also forces no-store for
49
+ * visitor-signed reads; this client keeps the intent clear at the call site.
52
50
  */
53
51
  function getVisitorScopedChannelClient() {
54
52
  if (visitorChannelClient)
@@ -8,13 +8,8 @@ import type { DashProfile } from "../models/profile.js";
8
8
  /**
9
9
  * A credential-free local preview. When `enabled()` is true the layer answers
10
10
  * from these fixtures and never touches the channel, so `npm run dev` works
11
- * without a token.
12
- *
13
- * This is the seam that used to force every site to hand-write its own
14
- * lib/{bootstrap,directory,profile}/index.ts. Those files were the single
15
- * largest source of drift between sites that were otherwise identical, because
16
- * the preview branch had to be re-threaded through each composed loader by
17
- * hand. Declaring it once, here, is the point.
11
+ * without a token. Declared once here so the preview branch is not
12
+ * re-threaded through each composed loader by hand.
18
13
  */
19
14
  export interface DashPreview {
20
15
  enabled(): boolean;
@@ -52,7 +52,7 @@ export function normalizeDashProfile(fallbackName, response) {
52
52
  };
53
53
  });
54
54
  return {
55
- name: text(profile.display_name) ?? text(fallbackName) ?? profile.tenant_id,
55
+ name: text(profile.display_name) ?? text(fallbackName) ?? profile.dash_id,
56
56
  headline: text(profile.headline),
57
57
  shortDescription: text(profile.short_description),
58
58
  about: text(profile.about),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/dash-site-kit",
3
- "version": "0.5.0",
3
+ "version": "0.6.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.19.0 <1",
46
+ "@c1m-public/channel-client": ">=0.23.0 <1",
47
47
  "next": "^16",
48
48
  "react": "^19"
49
49
  },
@@ -54,7 +54,7 @@
54
54
  "typescript": "5.9.3",
55
55
  "vitest": "^4.1.4",
56
56
  "@types/node": "^22",
57
- "@c1m-public/channel-client": "0.23.0"
57
+ "@c1m-public/channel-client": "0.25.0"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "next": {