@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.
- package/dist/{chunk-3UZET2G7.js → chunk-2F4DO7DS.js} +2 -2
- package/dist/{chunk-X2PG6XWF.cjs → chunk-32QAIKXR.cjs} +9 -9
- package/dist/{chunk-Q2G7NVFH.cjs → chunk-33QHEG7K.cjs} +289 -285
- package/dist/{chunk-VPABPC2M.cjs → chunk-4ICMFNCJ.cjs} +29 -56
- package/dist/{chunk-MZY6LBM5.cjs → chunk-5K3QUH7C.cjs} +3 -3
- package/dist/{chunk-AZKVHJA5.js → chunk-66XG5RFJ.js} +2 -2
- package/dist/{chunk-DXDLCYCM.cjs → chunk-7N6M77PI.cjs} +3 -3
- package/dist/{chunk-4ND65E2B.cjs → chunk-7VYBSCCL.cjs} +35 -35
- package/dist/{chunk-R3BOJNZI.cjs → chunk-APJCBQ7X.cjs} +16 -16
- package/dist/{chunk-RVSNXG6J.cjs → chunk-CELBOIKC.cjs} +488 -421
- package/dist/{chunk-MZ3TMXIX.cjs → chunk-CI7KWY6L.cjs} +3 -3
- package/dist/{chunk-COFT3YPA.js → chunk-EM3WCK2K.js} +5 -5
- package/dist/{chunk-YVWJ3TRY.js → chunk-GEUUDNCI.js} +5 -5
- package/dist/{chunk-SCTS3EMJ.js → chunk-GINCQZMM.js} +3 -3
- package/dist/{chunk-4VRHDFF2.js → chunk-HP4C2DFL.js} +1 -1
- package/dist/{chunk-NLWIBA55.js → chunk-HTQJSW3Y.js} +3 -3
- package/dist/{chunk-EHYAOIE4.cjs → chunk-OKEJY2GC.cjs} +8 -8
- package/dist/{chunk-RSE3MU4G.cjs → chunk-OYU7QNLQ.cjs} +11 -11
- package/dist/{chunk-NZYMMYWN.js → chunk-QL4RUHKU.js} +1 -1
- package/dist/{chunk-5SWQ2ZU5.cjs → chunk-RMXLHYEG.cjs} +26 -26
- package/dist/{chunk-MM66P4X4.js → chunk-SKEW5NMJ.js} +22 -49
- package/dist/{chunk-XEIDJ6SL.cjs → chunk-SSXQYS5K.cjs} +65 -65
- package/dist/{chunk-3XDVGHL4.js → chunk-TYMLEI2I.js} +2 -2
- package/dist/{chunk-SBPPM65Y.js → chunk-UF3NFAQK.js} +265 -198
- package/dist/{chunk-FMFCPX3R.cjs → chunk-UJZ5Y3RK.cjs} +33 -33
- package/dist/{chunk-C5KMQLJP.js → chunk-URYLQ4MC.js} +15 -11
- package/dist/{chunk-MQ3ZM7FJ.js → chunk-VGRQK7YS.js} +1 -1
- package/dist/{chunk-JYJBL7GD.js → chunk-XYSKJ7GA.js} +1 -1
- package/dist/{chunk-Z3VAFLYK.cjs → chunk-YREYU6DY.cjs} +9 -9
- package/dist/{chunk-VKR56R3U.js → chunk-ZDGK2TNJ.js} +3 -3
- package/dist/{cloud-tenants-5JTQ2ENQ.cjs → cloud-tenants-XP3L6PWO.cjs} +3 -3
- package/dist/{cloud-tenants-NH7VE7KE.js → cloud-tenants-XVVFCOK2.js} +2 -2
- package/dist/components/case-studies/index.cjs +14 -14
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/assistant-ask-prompts.d.ts +34 -14
- package/dist/components/chat/assistant-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/hooks/index.d.ts +1 -1
- package/dist/components/chat/hooks/index.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-ask-prompts.d.ts +34 -7
- package/dist/components/chat/hooks/use-ask-prompts.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +2 -4
- package/dist/components/chat/index.js +3 -5
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +7 -7
- package/dist/components/docs/index.js +6 -6
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/faq-ask-card.d.ts +8 -11
- package/dist/components/faq/faq-ask-card.d.ts.map +1 -1
- package/dist/components/faq/index.cjs +4 -4
- package/dist/components/faq/index.js +3 -3
- package/dist/components/features/auth/auth-benefits-panel.d.ts +3 -1
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/auth/auth-shell.d.ts +3 -1
- package/dist/components/features/auth/auth-shell.d.ts.map +1 -1
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/help-center-pages/index.cjs +71 -71
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +35 -37
- package/dist/components/index.js +14 -16
- package/dist/components/meeting-scheduler/index.cjs +19 -19
- package/dist/components/meeting-scheduler/index.js +2 -2
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/product-demo/index.cjs +6 -6
- package/dist/components/product-demo/index.js +6 -6
- package/dist/components/tickets/index.cjs +7 -7
- package/dist/components/tickets/index.js +6 -6
- package/dist/components/ui/index.cjs +3 -5
- package/dist/components/ui/index.js +4 -6
- package/dist/{devices-PV76NGQO.cjs → devices-MMHLY67A.cjs} +4 -4
- package/dist/{devices-OC7JEI6U.js → devices-S7PJJI66.js} +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{knowledge-5AYFIVKD.cjs → knowledge-LJNFAJNE.cjs} +4 -4
- package/dist/{knowledge-L7WQ7IEP.js → knowledge-WW3LOQKN.js} +2 -2
- package/dist/{logs-4F77RJXJ.cjs → logs-F4ZVNUKQ.cjs} +11 -11
- package/dist/{logs-MGFHGVIE.js → logs-I4DMHQDA.js} +2 -2
- package/dist/{policies-VCGM3C5Z.cjs → policies-KZXFXGD7.cjs} +7 -7
- package/dist/{policies-WRDZFNIB.js → policies-RX55V46V.js} +2 -2
- package/dist/{software-update-YD2MNL3K.cjs → software-update-4A242VDB.cjs} +6 -6
- package/dist/{software-update-WVG2GDZO.js → software-update-VI7FQYR4.js} +2 -2
- package/dist/utils/index.cjs +8 -6
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +6 -5
- package/dist/utils/trial.d.ts +17 -9
- package/dist/utils/trial.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/chat/assistant-ask-prompts.tsx +84 -39
- package/src/components/chat/hooks/index.ts +3 -2
- package/src/components/chat/hooks/use-ask-prompts.ts +140 -56
- package/src/components/faq/faq-ask-card.tsx +22 -67
- package/src/components/features/auth/auth-benefits-panel.tsx +15 -8
- package/src/components/features/auth/auth-shell.tsx +4 -2
- package/src/utils/index.ts +1 -1
- package/src/utils/trial.ts +16 -10
package/src/utils/trial.ts
CHANGED
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
3
|
-
*
|
|
4
|
-
*
|
|
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
|
-
/**
|
|
10
|
-
export const
|
|
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
|
+
}
|