Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions apps/website/content/docs/telemetry/api/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,25 @@
},
"examples": []
},
{
"name": "isPersonalEmailDomain",
"kind": "function",
"description": "",
"signature": "isPersonalEmailDomain(domain: string | null | undefined): boolean",
"params": [
{
"name": "domain",
"type": "string | null | undefined",
"description": "",
"optional": false
}
],
"returns": {
"type": "boolean",
"description": ""
},
"examples": []
},
{
"name": "normalizePostHogHost",
"kind": "function",
Expand Down
11 changes: 11 additions & 0 deletions libs/chat/src/lib/styles/chat-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,15 @@ export function ensureChatRootStyles(): void {
// Auto-inject on module evaluation. Every chat component imports
// `CHAT_HOST_TOKENS` from this file, so the first chat component to load
// triggers this once. Safe to evaluate eagerly: idempotent + SSR-guarded.
//
// Note: this side-effect call is the "fast path" — it normally fires
// during the first chat-component import on the client. But production
// bundlers with aggressive tree-shaking can drop it if they treat the
// published artifact as side-effect-free (the published `sideEffects`
// field doesn't match the bundled fesm filename, and TS-path consumers
// route through the source where it does match). The top-level chat
// compositions (`ChatComponent`, `ChatPopupComponent`,
// `ChatSidebarComponent`, `ChatDebugComponent`) also call this from
// their constructors so the injection is guaranteed even when the
// module-eval call gets stripped. Both paths are idempotent.
ensureChatRootStyles();
Loading