@flamingo-stack/openframe-frontend-core 0.0.840 → 0.0.842

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.
Files changed (67) hide show
  1. package/dist/build/route-styles.cjs +3 -1
  2. package/dist/build/style-sources.cjs +15 -2
  3. package/dist/build/style-sources.d.ts +3 -0
  4. package/dist/{case-study-card-TK7ZCNLM.cjs → case-study-card-VN3JBNF5.cjs} +3 -3
  5. package/dist/{chunk-RSJYTQEA.cjs → chunk-23DVVS4I.cjs} +104 -104
  6. package/dist/{chunk-GMK4JGC2.cjs → chunk-2HRQU4ZL.cjs} +44 -44
  7. package/dist/{chunk-HXTZZE3R.cjs → chunk-3ONBCAD2.cjs} +59 -59
  8. package/dist/{chunk-DGY5KEPY.cjs → chunk-4ASUUB3A.cjs} +83 -83
  9. package/dist/{chunk-WCOSGDGA.cjs → chunk-4R4HAFXI.cjs} +2 -2
  10. package/dist/{chunk-INBFKUZA.cjs → chunk-5CPEMPNP.cjs} +15 -15
  11. package/dist/{chunk-CCRXBFNL.cjs → chunk-6HFTSVVC.cjs} +8 -8
  12. package/dist/{chunk-FHI4I3TQ.cjs → chunk-6M764K5Z.cjs} +12 -12
  13. package/dist/{chunk-275AQ6LC.cjs → chunk-7UZYI4GV.cjs} +4 -4
  14. package/dist/{chunk-SOCCHWDK.cjs → chunk-BHOVF4KP.cjs} +2 -2
  15. package/dist/{chunk-WVNUCKB7.cjs → chunk-CNMXP77I.cjs} +4 -4
  16. package/dist/{chunk-Q6WUHYOG.cjs → chunk-CQQRGM6D.cjs} +85 -85
  17. package/dist/{chunk-TD4CC4KV.cjs → chunk-EUEPGHY4.cjs} +6 -6
  18. package/dist/{chunk-DYDQLS2R.cjs → chunk-GQJXOX5S.cjs} +213 -213
  19. package/dist/{chunk-AT6D7BAZ.cjs → chunk-IVM35OAW.cjs} +3 -3
  20. package/dist/{chunk-JM2XA7VY.cjs → chunk-IVS23CAK.cjs} +15 -15
  21. package/dist/{chunk-ZAO5SYBJ.cjs → chunk-MWQOM2EI.cjs} +4 -4
  22. package/dist/{chunk-WI7EXAZT.cjs → chunk-NMLNZCK2.cjs} +2 -2
  23. package/dist/{chunk-APNONOHY.cjs → chunk-PZNWIJRZ.cjs} +13 -10
  24. package/dist/{chunk-MYAPG3FQ.cjs → chunk-QPJUQ5YU.cjs} +21 -21
  25. package/dist/{chunk-VBH2RCFM.cjs → chunk-RAFWT3WG.cjs} +78 -78
  26. package/dist/{chunk-JUEAZCD6.cjs → chunk-RSZZTB5T.cjs} +54 -54
  27. package/dist/{chunk-7WKRMJI6.cjs → chunk-SC36S7DJ.cjs} +2 -2
  28. package/dist/{chunk-UZPYYHF5.cjs → chunk-SOTTMZ6U.cjs} +19 -19
  29. package/dist/{chunk-E7M54JWW.cjs → chunk-SSSI2RBV.cjs} +14 -14
  30. package/dist/{chunk-Z35PL3UR.cjs → chunk-WOYARKPQ.cjs} +34 -34
  31. package/dist/{chunk-EV6BPF47.cjs → chunk-WPMJUYW3.cjs} +143 -143
  32. package/dist/{chunk-FRL2ZN4O.cjs → chunk-XCVH5BCZ.cjs} +6 -6
  33. package/dist/{chunk-IELPVUPR.cjs → chunk-YNKXXDOI.cjs} +23 -23
  34. package/dist/{chunk-GUKFMMDZ.cjs → chunk-ZOWAYKDN.cjs} +3 -3
  35. package/dist/{cloud-tenants-PV63RZ73.cjs → cloud-tenants-U6Y2UZVF.cjs} +11 -11
  36. package/dist/components/case-studies/index.cjs +26 -26
  37. package/dist/components/chat/index.cjs +8 -8
  38. package/dist/components/contact/index.cjs +12 -12
  39. package/dist/components/docs/index.cjs +15 -15
  40. package/dist/components/embeds/index.cjs +12 -12
  41. package/dist/components/faq/index.cjs +13 -13
  42. package/dist/components/features/index.cjs +11 -11
  43. package/dist/components/help-center-pages/index.cjs +105 -105
  44. package/dist/components/index.cjs +65 -65
  45. package/dist/components/meeting-scheduler/index.cjs +50 -50
  46. package/dist/components/navigation/index.cjs +14 -14
  47. package/dist/components/onboarding-guides/index.cjs +14 -14
  48. package/dist/components/product-demo/index.cjs +20 -20
  49. package/dist/components/related-content/index.cjs +7 -7
  50. package/dist/components/tickets/index.cjs +18 -18
  51. package/dist/components/ui/index.cjs +11 -11
  52. package/dist/{devices-VECG5JNC.cjs → devices-HB4GEMJH.cjs} +12 -12
  53. package/dist/{embeddable-chat-VRYAQQF6.cjs → embeddable-chat-C6DUH2JL.cjs} +78 -78
  54. package/dist/hooks/index.cjs +4 -4
  55. package/dist/index.cjs +15 -15
  56. package/dist/{knowledge-YJSDJIXT.cjs → knowledge-I53Z6DV7.cjs} +12 -12
  57. package/dist/{logs-42JG3NZ5.cjs → logs-SFLAZIQG.cjs} +18 -18
  58. package/dist/platform-domains.cjs +14 -10
  59. package/dist/platform-domains.d.ts +12 -7
  60. package/dist/platform-domains.d.ts.map +1 -1
  61. package/dist/platform-domains.js +14 -10
  62. package/dist/{policies-D4QNVJ26.cjs → policies-EIAGQO6T.cjs} +15 -15
  63. package/dist/{scripts-4VFYBXBE.cjs → scripts-SNJ4UVRF.cjs} +16 -16
  64. package/dist/{software-update-OSDZQ5CP.cjs → software-update-AZFRUC5N.cjs} +14 -14
  65. package/dist/utils/index.cjs +13 -10
  66. package/package.json +1 -1
  67. package/src/platform-domains.ts +28 -20
@@ -80150,16 +80150,7 @@ function getPlatformByHostname(hostname) {
80150
80150
  function isPreviewHost(hostname) {
80151
80151
  return hostname.endsWith(".vercel.app");
80152
80152
  }
80153
- function getAllPlatformBaseDomains() {
80154
- if (typeof window === "undefined") return [];
80155
- const hostname = window.location.hostname;
80156
- if (hostname === "localhost" || hostname === "127.0.0.1" || hostname.startsWith("127.")) {
80157
- return [];
80158
- }
80159
- const previewEnv = process.env.VERCEL_ENV === "preview" || process.env.NEXT_PUBLIC_VERCEL_ENV === "preview" || isPreviewHost(hostname);
80160
- if (previewEnv) {
80161
- return [".vercel.app", "vercel.app"];
80162
- }
80153
+ function getPlatformBaseDomains() {
80163
80154
  const baseDomains = /* @__PURE__ */ new Set();
80164
80155
  for (const entry of PLATFORM_DOMAINS) {
80165
80156
  if (entry.pseudo) continue;
@@ -80173,6 +80164,18 @@ function getAllPlatformBaseDomains() {
80173
80164
  }
80174
80165
  return Array.from(baseDomains);
80175
80166
  }
80167
+ function getAllPlatformBaseDomains() {
80168
+ if (typeof window === "undefined") return [];
80169
+ const hostname = window.location.hostname;
80170
+ if (hostname === "localhost" || hostname === "127.0.0.1" || hostname.startsWith("127.")) {
80171
+ return [];
80172
+ }
80173
+ const previewEnv = process.env.VERCEL_ENV === "preview" || process.env.NEXT_PUBLIC_VERCEL_ENV === "preview" || isPreviewHost(hostname);
80174
+ if (previewEnv) {
80175
+ return [".vercel.app", "vercel.app"];
80176
+ }
80177
+ return getPlatformBaseDomains();
80178
+ }
80176
80179
  var _orderIdx = (k) => PLATFORM_DOMAINS.findIndex((e) => e.key === k);
80177
80180
  if (_orderIdx("flamingo") > _orderIdx("universal") || getPlatformByHostname("flamingo.cx") !== "flamingo" || getPlatformByHostname("hub.openframe.ai") !== "openframe") {
80178
80181
  console.error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.840",
3
+ "version": "0.0.842",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -309,18 +309,37 @@ export function isPreviewHost(hostname: string): boolean {
309
309
  }
310
310
 
311
311
  /**
312
- * ALL unique cookie base domains (the cross-subdomain SSO mechanism).
312
+ * The registrable base of every site in the registry, each as `.base` and bare `base`: for each non-pseudo platform,
313
+ * the base of its resolved host. It reads the registry only, so it answers the same on a server and in a browser;
314
+ * a server's cookie rule reads it directly.
315
+ *
316
+ * Because `getPlatformProductionUrl` always yields a host (override OR default),
317
+ * `.flamingo.so` / `.flamingo.run` / `.openmsp.ai` / `.tmcg.miami` / `.openframe.ai`
318
+ * are ALWAYS present → cross-hub SSO is byte-identical to today.
319
+ */
320
+ export function getPlatformBaseDomains(): string[] {
321
+ const baseDomains = new Set<string>();
322
+ for (const entry of PLATFORM_DOMAINS) {
323
+ if (entry.pseudo) continue;
324
+ const host = hostOf(getPlatformProductionUrl(entry.key));
325
+ if (!host) continue;
326
+ const base = toRegistrableBaseDomain(host);
327
+ if (base) {
328
+ baseDomains.add(`.${base}`);
329
+ baseDomains.add(base);
330
+ }
331
+ }
332
+ return Array.from(baseDomains);
333
+ }
334
+
335
+ /**
336
+ * ALL unique cookie base domains for the PAGE this runs on (the cross-subdomain SSO mechanism).
313
337
  *
314
338
  * NON-PURE (the sole such export): reads `typeof window` + `process.env` to
315
339
  * preserve byte-identical cookie behavior. Keeps the original three branches:
316
340
  * 1. localhost / private IP → [] (host-only cookies)
317
341
  * 2. Vercel preview (env OR host) → ['.vercel.app','vercel.app']
318
- * 3. production → for each non-pseudo platform, registrable base of its resolved
319
- * host, emitted as both `.base` and bare `base`.
320
- *
321
- * Because `getPlatformProductionUrl` always yields a host (override OR default),
322
- * `.flamingo.so` / `.flamingo.run` / `.openmsp.ai` / `.tmcg.miami` / `.openframe.ai`
323
- * are ALWAYS present → cross-hub SSO is byte-identical to today.
342
+ * 3. production → `getPlatformBaseDomains`.
324
343
  */
325
344
  export function getAllPlatformBaseDomains(): string[] {
326
345
  if (typeof window === 'undefined') return [];
@@ -339,19 +358,8 @@ export function getAllPlatformBaseDomains(): string[] {
339
358
  return ['.vercel.app', 'vercel.app'];
340
359
  }
341
360
 
342
- // Case 3: production — registrable base of every non-pseudo platform's resolved host
343
- const baseDomains = new Set<string>();
344
- for (const entry of PLATFORM_DOMAINS) {
345
- if (entry.pseudo) continue;
346
- const host = hostOf(getPlatformProductionUrl(entry.key));
347
- if (!host) continue;
348
- const base = toRegistrableBaseDomain(host);
349
- if (base) {
350
- baseDomains.add(`.${base}`);
351
- baseDomains.add(base);
352
- }
353
- }
354
- return Array.from(baseDomains);
361
+ // Case 3: production
362
+ return getPlatformBaseDomains();
355
363
  }
356
364
 
357
365
  // ── Cookie-domain guard + match (single owner; shared by the client cookie-domain.ts +