@c1m-public/dash-site-kit 0.14.0 → 0.14.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/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export { selectDirectoryRegion, validateDirectoryKey, validateRegionFilter, } fr
32
32
  export { LEAD_LIMITS, validateLeadForm } from "./validation/leads.js";
33
33
  export type { LeadField, LeadValidationResult, ValidatedLead } from "./validation/leads.js";
34
34
  export { formatMoney } from "./format.js";
35
- export { SIGN_IN_HINT_COOKIE, hasSignInHint } from "./sign-in-hint.js";
35
+ export { SIGN_IN_HINT_COOKIE, hasSignInHint } from "@c1m-public/platform-auth";
36
36
  export * from "./url-policy.js";
37
37
  export * from "./image-policy.js";
38
38
  export { canonicalUrl, createSiteConfig, safeLocale, } from "./site-config.js";
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export { FIRST_TOUCH_COOKIE, FIRST_TOUCH_MAX_AGE_SECONDS, decodeFirstTouch, enco
4
4
  export { selectDirectoryRegion, validateDirectoryKey, validateRegionFilter, } from "./validation/directory.js";
5
5
  export { LEAD_LIMITS, validateLeadForm } from "./validation/leads.js";
6
6
  export { formatMoney } from "./format.js";
7
- export { SIGN_IN_HINT_COOKIE, hasSignInHint } from "./sign-in-hint.js";
7
+ export { SIGN_IN_HINT_COOKIE, hasSignInHint } from "@c1m-public/platform-auth";
8
8
  export * from "./url-policy.js";
9
9
  export * from "./image-policy.js";
10
10
  export { canonicalUrl, createSiteConfig, safeLocale, } from "./site-config.js";
@@ -2,7 +2,7 @@
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import Link from "next/link";
4
4
  import { useEffect, useState } from "react";
5
- import { hasSignInHint } from "../sign-in-hint.js";
5
+ import { hasSignInHint } from "@c1m-public/platform-auth";
6
6
  /**
7
7
  * A link to the Dash's admin host whose label follows the sign-in hint. It
8
8
  * renders the signed-out label on the server and swaps after hydration, so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c1m-public/dash-site-kit",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Shared transport, domain and UI layer for MML dash-scoped public sites",
@@ -44,6 +44,7 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@c1m-public/channel-client": ">=0.31.0 <1",
47
+ "@c1m-public/platform-auth": ">=0.22.0 <1",
47
48
  "next": "^16",
48
49
  "react": "^19"
49
50
  },
@@ -56,7 +57,8 @@
56
57
  "react-dom": "19.2.8",
57
58
  "typescript": "5.9.3",
58
59
  "vitest": "^4.1.4",
59
- "@c1m-public/channel-client": "0.32.0"
60
+ "@c1m-public/channel-client": "0.33.0",
61
+ "@c1m-public/platform-auth": "0.22.0"
60
62
  },
61
63
  "peerDependenciesMeta": {
62
64
  "next": {
@@ -1,8 +0,0 @@
1
- /**
2
- * Set by the Dash's admin host on the Dash's own domain while someone is
3
- * signed in there. A display hint only ("Open your workspace" instead of
4
- * "Sign in"): it carries no identity and must never gate access.
5
- */
6
- export declare const SIGN_IN_HINT_COOKIE = "c1m_signed_in";
7
- /** Reads the hint from a `Cookie` header or `document.cookie` string. */
8
- export declare function hasSignInHint(cookieHeader: string | null | undefined): boolean;
@@ -1,14 +0,0 @@
1
- /**
2
- * Set by the Dash's admin host on the Dash's own domain while someone is
3
- * signed in there. A display hint only ("Open your workspace" instead of
4
- * "Sign in"): it carries no identity and must never gate access.
5
- */
6
- export const SIGN_IN_HINT_COOKIE = "c1m_signed_in";
7
- /** Reads the hint from a `Cookie` header or `document.cookie` string. */
8
- export function hasSignInHint(cookieHeader) {
9
- if (!cookieHeader)
10
- return false;
11
- return cookieHeader
12
- .split(";")
13
- .some((pair) => pair.trim() === `${SIGN_IN_HINT_COOKIE}=1`);
14
- }