@flamingo-stack/openframe-frontend-core 0.0.726 → 0.0.728

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 (101) hide show
  1. package/dist/{chunk-3UZET2G7.js → chunk-2F4DO7DS.js} +2 -2
  2. package/dist/{chunk-X2PG6XWF.cjs → chunk-32QAIKXR.cjs} +9 -9
  3. package/dist/{chunk-Q2G7NVFH.cjs → chunk-33QHEG7K.cjs} +289 -285
  4. package/dist/{chunk-VPABPC2M.cjs → chunk-4ICMFNCJ.cjs} +29 -56
  5. package/dist/{chunk-MZY6LBM5.cjs → chunk-5K3QUH7C.cjs} +3 -3
  6. package/dist/{chunk-AZKVHJA5.js → chunk-66XG5RFJ.js} +2 -2
  7. package/dist/{chunk-DXDLCYCM.cjs → chunk-7N6M77PI.cjs} +3 -3
  8. package/dist/{chunk-4ND65E2B.cjs → chunk-7VYBSCCL.cjs} +35 -35
  9. package/dist/{chunk-R3BOJNZI.cjs → chunk-APJCBQ7X.cjs} +16 -16
  10. package/dist/{chunk-RVSNXG6J.cjs → chunk-CELBOIKC.cjs} +488 -421
  11. package/dist/{chunk-MZ3TMXIX.cjs → chunk-CI7KWY6L.cjs} +3 -3
  12. package/dist/{chunk-COFT3YPA.js → chunk-EM3WCK2K.js} +5 -5
  13. package/dist/{chunk-YVWJ3TRY.js → chunk-GEUUDNCI.js} +5 -5
  14. package/dist/{chunk-SCTS3EMJ.js → chunk-GINCQZMM.js} +3 -3
  15. package/dist/{chunk-4VRHDFF2.js → chunk-HP4C2DFL.js} +1 -1
  16. package/dist/{chunk-NLWIBA55.js → chunk-HTQJSW3Y.js} +3 -3
  17. package/dist/{chunk-EHYAOIE4.cjs → chunk-OKEJY2GC.cjs} +8 -8
  18. package/dist/{chunk-RSE3MU4G.cjs → chunk-OYU7QNLQ.cjs} +11 -11
  19. package/dist/{chunk-NZYMMYWN.js → chunk-QL4RUHKU.js} +1 -1
  20. package/dist/{chunk-5SWQ2ZU5.cjs → chunk-RMXLHYEG.cjs} +26 -26
  21. package/dist/{chunk-MM66P4X4.js → chunk-SKEW5NMJ.js} +22 -49
  22. package/dist/{chunk-XEIDJ6SL.cjs → chunk-SSXQYS5K.cjs} +65 -65
  23. package/dist/{chunk-3XDVGHL4.js → chunk-TYMLEI2I.js} +2 -2
  24. package/dist/{chunk-SBPPM65Y.js → chunk-UF3NFAQK.js} +265 -198
  25. package/dist/{chunk-FMFCPX3R.cjs → chunk-UJZ5Y3RK.cjs} +33 -33
  26. package/dist/{chunk-C5KMQLJP.js → chunk-URYLQ4MC.js} +15 -11
  27. package/dist/{chunk-MQ3ZM7FJ.js → chunk-VGRQK7YS.js} +1 -1
  28. package/dist/{chunk-JYJBL7GD.js → chunk-XYSKJ7GA.js} +1 -1
  29. package/dist/{chunk-Z3VAFLYK.cjs → chunk-YREYU6DY.cjs} +9 -9
  30. package/dist/{chunk-VKR56R3U.js → chunk-ZDGK2TNJ.js} +3 -3
  31. package/dist/{cloud-tenants-5JTQ2ENQ.cjs → cloud-tenants-XP3L6PWO.cjs} +3 -3
  32. package/dist/{cloud-tenants-NH7VE7KE.js → cloud-tenants-XVVFCOK2.js} +2 -2
  33. package/dist/components/case-studies/index.cjs +14 -14
  34. package/dist/components/case-studies/index.js +3 -3
  35. package/dist/components/chat/assistant-ask-prompts.d.ts +34 -14
  36. package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
  37. package/dist/components/chat/hooks/index.d.ts +1 -1
  38. package/dist/components/chat/hooks/index.d.ts.map +1 -1
  39. package/dist/components/chat/hooks/use-ask-prompts.d.ts +34 -7
  40. package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
  41. package/dist/components/chat/index.cjs +2 -4
  42. package/dist/components/chat/index.js +3 -5
  43. package/dist/components/contact/index.cjs +4 -4
  44. package/dist/components/contact/index.js +3 -3
  45. package/dist/components/docs/index.cjs +7 -7
  46. package/dist/components/docs/index.js +6 -6
  47. package/dist/components/embeds/index.cjs +4 -4
  48. package/dist/components/embeds/index.js +3 -3
  49. package/dist/components/faq/faq-ask-card.d.ts +8 -11
  50. package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
  51. package/dist/components/faq/index.cjs +4 -4
  52. package/dist/components/faq/index.js +3 -3
  53. package/dist/components/features/auth/auth-benefits-panel.d.ts +3 -1
  54. package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
  55. package/dist/components/features/auth/auth-shell.d.ts +3 -1
  56. package/dist/components/features/auth/auth-shell.d.ts.map +1 -1
  57. package/dist/components/features/index.cjs +3 -3
  58. package/dist/components/features/index.js +2 -2
  59. package/dist/components/help-center-pages/index.cjs +71 -71
  60. package/dist/components/help-center-pages/index.js +13 -13
  61. package/dist/components/index.cjs +35 -37
  62. package/dist/components/index.js +14 -16
  63. package/dist/components/meeting-scheduler/index.cjs +19 -19
  64. package/dist/components/meeting-scheduler/index.js +2 -2
  65. package/dist/components/navigation/index.cjs +6 -6
  66. package/dist/components/navigation/index.js +5 -5
  67. package/dist/components/onboarding-guides/index.cjs +5 -5
  68. package/dist/components/onboarding-guides/index.js +4 -4
  69. package/dist/components/product-demo/index.cjs +6 -6
  70. package/dist/components/product-demo/index.js +6 -6
  71. package/dist/components/tickets/index.cjs +7 -7
  72. package/dist/components/tickets/index.js +6 -6
  73. package/dist/components/ui/index.cjs +3 -5
  74. package/dist/components/ui/index.js +4 -6
  75. package/dist/{devices-PV76NGQO.cjs → devices-MMHLY67A.cjs} +4 -4
  76. package/dist/{devices-OC7JEI6U.js → devices-S7PJJI66.js} +2 -2
  77. package/dist/index.cjs +7 -7
  78. package/dist/index.js +14 -14
  79. package/dist/{knowledge-5AYFIVKD.cjs → knowledge-LJNFAJNE.cjs} +4 -4
  80. package/dist/{knowledge-L7WQ7IEP.js → knowledge-WW3LOQKN.js} +2 -2
  81. package/dist/{logs-4F77RJXJ.cjs → logs-F4ZVNUKQ.cjs} +11 -11
  82. package/dist/{logs-MGFHGVIE.js → logs-I4DMHQDA.js} +2 -2
  83. package/dist/{policies-VCGM3C5Z.cjs → policies-KZXFXGD7.cjs} +7 -7
  84. package/dist/{policies-WRDZFNIB.js → policies-RX55V46V.js} +2 -2
  85. package/dist/{software-update-YD2MNL3K.cjs → software-update-4A242VDB.cjs} +6 -6
  86. package/dist/{software-update-WVG2GDZO.js → software-update-VI7FQYR4.js} +2 -2
  87. package/dist/utils/index.cjs +8 -6
  88. package/dist/utils/index.d.ts +1 -1
  89. package/dist/utils/index.d.ts.map +1 -1
  90. package/dist/utils/index.js +6 -5
  91. package/dist/utils/trial.d.ts +17 -9
  92. package/dist/utils/trial.d.ts.map +1 -1
  93. package/package.json +1 -1
  94. package/src/components/chat/assistant-ask-prompts.tsx +84 -39
  95. package/src/components/chat/hooks/index.ts +3 -2
  96. package/src/components/chat/hooks/use-ask-prompts.ts +140 -56
  97. package/src/components/faq/faq-ask-card.tsx +22 -67
  98. package/src/components/features/auth/auth-benefits-panel.tsx +15 -8
  99. package/src/components/features/auth/auth-shell.tsx +4 -2
  100. package/src/utils/index.ts +1 -1
  101. package/src/utils/trial.ts +16 -10
@@ -1,19 +1,25 @@
1
1
  /**
2
- * The free trial's facts and the words every surface says them with: the
3
- * sign-up panel here, and the host site's trial buttons, trust rows and pricing
4
- * copy. Stated once, so a trial that changes length changes everywhere.
2
+ * The words every surface states the free trial with: the sign-up panel here,
3
+ * and the host site's trial buttons, trust rows and pricing copy.
4
+ *
5
+ * The trial's LENGTH is not stated here. It is the billing plan's, so a host
6
+ * passes the number it read from its server (`trialLabels(days)`); with no
7
+ * number the length is left out, never guessed.
5
8
  *
6
9
  * Server-safe (no React, no DOM).
7
10
  */
8
11
 
9
- /** How long the free trial runs, in days. */
10
- export const TRIAL_DAYS = 14;
11
-
12
- /** The reassurance labels shown beside a trial button. */
13
- export const TRIAL_LABELS = {
14
- /** "14 day free trial" */
15
- length: `${TRIAL_DAYS} day free trial`,
12
+ /** The reassurance labels that hold whatever the trial's length is. */
13
+ export const TRIAL_TERMS = {
16
14
  noCard: 'No card required',
17
15
  cancel: 'Cancel Anytime',
18
16
  noContract: 'No Contract',
19
17
  } as const;
18
+
19
+ /** "30 day free trial", from the length the billing plan states. A string is a template slot (`{trialDays}`). */
20
+ export const trialLengthLabel = (days: number | string): string => `${days} day free trial`;
21
+
22
+ /** The labels shown beside a trial button. `length` is null while the plan's length is not known. */
23
+ export function trialLabels(days: number | string | null | undefined) {
24
+ return { ...TRIAL_TERMS, length: days === null || days === undefined || days === '' ? null : trialLengthLabel(days) };
25
+ }