@dub/utils 0.1.48 → 0.1.49
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-3SJKMNIJ.mjs +1 -0
- package/dist/chunk-4433QRCV.mjs +1 -0
- package/dist/chunk-5L2GMUO2.mjs +1 -0
- package/dist/chunk-5WC6ZMEN.mjs +1 -0
- package/dist/chunk-A4UUQPZU.mjs +1 -0
- package/dist/chunk-MJT4YMEY.mjs +1 -0
- package/dist/chunk-OMKTUGZY.mjs +1 -0
- package/dist/chunk-OP7TRE7R.mjs +1 -0
- package/dist/chunk-RW2M3SUO.mjs +1 -0
- package/dist/chunk-TEUZHPA7.mjs +1 -0
- package/dist/chunk-VELJO2JL.mjs +1 -0
- package/dist/chunk-VQWWAPDH.mjs +1 -0
- package/dist/constants/index.d.ts +3 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/pricing/pricing-plan-main-features.d.ts +53 -0
- package/dist/constants/pricing/pricing-plan-main-features.mjs +1 -0
- package/dist/constants/pricing/pricing-plan-taglines.d.ts +15 -0
- package/dist/constants/pricing/pricing-plan-taglines.mjs +1 -0
- package/dist/functions/datetime/format-period.mjs +1 -1
- package/dist/functions/datetime/index.mjs +1 -1
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +1 -1
- package/dist/pricing-features-868d1d7a.d.ts +159 -0
- package/dist/pricing-features-a81a9a3a.d.ts +173 -0
- package/dist/pricing-features-ea86e462.d.ts +172 -0
- package/dist/pricing-plan-compare-features-cb92e833.d.ts +109 -0
- package/dist/pricing-plan-taglines-4ef27f6d.d.ts +173 -0
- package/dist/pricing-plan-taglines-c5a50414.d.ts +173 -0
- package/dist/pricing-plan-taglines-e6a711b7.d.ts +173 -0
- package/dist/pricing-plan-taglines-ff8f644a.d.ts +173 -0
- package/dist/pricing-plans-3983dca2.d.ts +172 -0
- package/dist/pricing-plans-e87356d8.d.ts +159 -0
- package/package.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type PlanFeature = {
|
|
4
|
+
id?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
tooltip?: {
|
|
7
|
+
title: string;
|
|
8
|
+
cta: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type PlanDetails = {
|
|
13
|
+
name: string;
|
|
14
|
+
price: {
|
|
15
|
+
monthly: number | null;
|
|
16
|
+
yearly: number | null;
|
|
17
|
+
ids?: string[];
|
|
18
|
+
};
|
|
19
|
+
limits: {
|
|
20
|
+
links: number;
|
|
21
|
+
clicks: number;
|
|
22
|
+
payouts: number;
|
|
23
|
+
domains: number;
|
|
24
|
+
tags: number;
|
|
25
|
+
folders: number;
|
|
26
|
+
groups: number;
|
|
27
|
+
networkInvites: number;
|
|
28
|
+
users: number;
|
|
29
|
+
ai: number;
|
|
30
|
+
api: number;
|
|
31
|
+
analyticsApi: number;
|
|
32
|
+
retention: string;
|
|
33
|
+
};
|
|
34
|
+
tiers?: {
|
|
35
|
+
[key: number]: {
|
|
36
|
+
price: {
|
|
37
|
+
monthly: number | null;
|
|
38
|
+
yearly: number | null;
|
|
39
|
+
ids: string[];
|
|
40
|
+
};
|
|
41
|
+
limits: {
|
|
42
|
+
links: number;
|
|
43
|
+
clicks: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
featureTitle?: string;
|
|
48
|
+
features?: PlanFeature[];
|
|
49
|
+
};
|
|
50
|
+
declare const NEW_BUSINESS_PRICE_IDS: string[];
|
|
51
|
+
declare const PLANS: PlanDetails[];
|
|
52
|
+
declare const FREE_PLAN: PlanDetails;
|
|
53
|
+
declare const PRO_PLAN: PlanDetails;
|
|
54
|
+
declare const BUSINESS_PLAN: PlanDetails;
|
|
55
|
+
declare const ADVANCED_PLAN: PlanDetails;
|
|
56
|
+
declare const ENTERPRISE_PLAN: PlanDetails;
|
|
57
|
+
declare const SELF_SERVE_PAID_PLANS: PlanDetails[];
|
|
58
|
+
declare const FREE_WORKSPACES_LIMIT = 2;
|
|
59
|
+
declare const getPlanAndTierFromPriceId: ({ priceId, }: {
|
|
60
|
+
priceId: string;
|
|
61
|
+
}) => {
|
|
62
|
+
plan: PlanDetails | null;
|
|
63
|
+
planTier: number;
|
|
64
|
+
};
|
|
65
|
+
declare const getPlanDetails: ({ plan, planTier, }: {
|
|
66
|
+
plan: string;
|
|
67
|
+
planTier?: number | undefined;
|
|
68
|
+
}) => PlanDetails;
|
|
69
|
+
declare const getNextPlan: (plan?: string | null) => PlanDetails;
|
|
70
|
+
declare const isDowngradePlan: ({ currentPlan, newPlan, currentTier, newTier, }: {
|
|
71
|
+
currentPlan: string;
|
|
72
|
+
newPlan: string;
|
|
73
|
+
currentTier?: number | undefined;
|
|
74
|
+
newTier?: number | undefined;
|
|
75
|
+
}) => boolean;
|
|
76
|
+
declare const getSuggestedPlan: ({ events, links, suggestFree, }: {
|
|
77
|
+
events?: number | undefined;
|
|
78
|
+
links?: number | undefined;
|
|
79
|
+
suggestFree?: boolean | undefined;
|
|
80
|
+
}) => {
|
|
81
|
+
plan: PlanDetails;
|
|
82
|
+
planTier: number;
|
|
83
|
+
};
|
|
84
|
+
declare const isLegacyBusinessPlan: ({ plan, payoutsLimit, }: {
|
|
85
|
+
plan?: string | undefined;
|
|
86
|
+
payoutsLimit?: number | undefined;
|
|
87
|
+
}) => boolean;
|
|
88
|
+
|
|
89
|
+
declare const PRICING_PLAN_COMPARE_FEATURES: {
|
|
90
|
+
category: string;
|
|
91
|
+
href: string;
|
|
92
|
+
features: {
|
|
93
|
+
text: string | ((d: {
|
|
94
|
+
id: string;
|
|
95
|
+
plan: (typeof PLANS)[number];
|
|
96
|
+
}) => ReactNode);
|
|
97
|
+
href?: string;
|
|
98
|
+
check?: boolean | {
|
|
99
|
+
default?: boolean;
|
|
100
|
+
free?: boolean;
|
|
101
|
+
pro?: boolean;
|
|
102
|
+
business?: boolean;
|
|
103
|
+
advanced?: boolean;
|
|
104
|
+
enterprise?: boolean;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
}[];
|
|
108
|
+
|
|
109
|
+
type HeroFeature = {
|
|
110
|
+
id?: string;
|
|
111
|
+
text: string;
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
tooltip?: ReactNode | {
|
|
114
|
+
title: string;
|
|
115
|
+
cta: string;
|
|
116
|
+
href: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
declare const PRICING_PLAN_MAIN_FEATURES: {
|
|
120
|
+
links: {
|
|
121
|
+
Pro: {
|
|
122
|
+
features: HeroFeature[];
|
|
123
|
+
}[];
|
|
124
|
+
Business: {
|
|
125
|
+
features: HeroFeature[];
|
|
126
|
+
}[];
|
|
127
|
+
Advanced: {
|
|
128
|
+
features: HeroFeature[];
|
|
129
|
+
}[];
|
|
130
|
+
Enterprise: {
|
|
131
|
+
features: HeroFeature[];
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
partners: {
|
|
135
|
+
Business: {
|
|
136
|
+
features: HeroFeature[];
|
|
137
|
+
}[];
|
|
138
|
+
Advanced: {
|
|
139
|
+
features: (HeroFeature | {
|
|
140
|
+
id: string;
|
|
141
|
+
text: string;
|
|
142
|
+
tooltip: {
|
|
143
|
+
title: string;
|
|
144
|
+
};
|
|
145
|
+
})[];
|
|
146
|
+
}[];
|
|
147
|
+
Enterprise: {
|
|
148
|
+
features: (HeroFeature | {
|
|
149
|
+
id: string;
|
|
150
|
+
text: string;
|
|
151
|
+
tooltip: {
|
|
152
|
+
title: string;
|
|
153
|
+
};
|
|
154
|
+
})[];
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare const PRICING_PLAN_TAGLINES: {
|
|
160
|
+
links: {
|
|
161
|
+
Pro: string;
|
|
162
|
+
Business: string;
|
|
163
|
+
Advanced: string;
|
|
164
|
+
Enterprise: string;
|
|
165
|
+
};
|
|
166
|
+
partners: {
|
|
167
|
+
Business: string;
|
|
168
|
+
Advanced: string;
|
|
169
|
+
Enterprise: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export { ADVANCED_PLAN as A, BUSINESS_PLAN as B, ENTERPRISE_PLAN as E, FREE_PLAN as F, NEW_BUSINESS_PRICE_IDS as N, PlanFeature as P, SELF_SERVE_PAID_PLANS as S, PlanDetails as a, PLANS as b, PRO_PLAN as c, FREE_WORKSPACES_LIMIT as d, getPlanDetails as e, getNextPlan as f, getPlanAndTierFromPriceId as g, getSuggestedPlan as h, isDowngradePlan as i, isLegacyBusinessPlan as j, PRICING_PLAN_COMPARE_FEATURES as k, PRICING_PLAN_MAIN_FEATURES as l, PRICING_PLAN_TAGLINES as m };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type PlanFeature = {
|
|
4
|
+
id?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
tooltip?: {
|
|
7
|
+
title: string;
|
|
8
|
+
cta: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type PlanDetails = {
|
|
13
|
+
name: string;
|
|
14
|
+
price: {
|
|
15
|
+
monthly: number | null;
|
|
16
|
+
yearly: number | null;
|
|
17
|
+
ids?: string[];
|
|
18
|
+
};
|
|
19
|
+
limits: {
|
|
20
|
+
links: number;
|
|
21
|
+
clicks: number;
|
|
22
|
+
payouts: number;
|
|
23
|
+
domains: number;
|
|
24
|
+
tags: number;
|
|
25
|
+
folders: number;
|
|
26
|
+
groups: number;
|
|
27
|
+
networkInvites: number;
|
|
28
|
+
users: number;
|
|
29
|
+
ai: number;
|
|
30
|
+
api: number;
|
|
31
|
+
analyticsApi: number;
|
|
32
|
+
retention: string;
|
|
33
|
+
};
|
|
34
|
+
tiers?: {
|
|
35
|
+
[key: number]: {
|
|
36
|
+
price: {
|
|
37
|
+
monthly: number | null;
|
|
38
|
+
yearly: number | null;
|
|
39
|
+
ids: string[];
|
|
40
|
+
};
|
|
41
|
+
limits: {
|
|
42
|
+
links: number;
|
|
43
|
+
clicks: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
featureTitle?: string;
|
|
48
|
+
features?: PlanFeature[];
|
|
49
|
+
};
|
|
50
|
+
declare const NEW_BUSINESS_PRICE_IDS: string[];
|
|
51
|
+
declare const PLANS: PlanDetails[];
|
|
52
|
+
declare const FREE_PLAN: PlanDetails;
|
|
53
|
+
declare const PRO_PLAN: PlanDetails;
|
|
54
|
+
declare const BUSINESS_PLAN: PlanDetails;
|
|
55
|
+
declare const ADVANCED_PLAN: PlanDetails;
|
|
56
|
+
declare const ENTERPRISE_PLAN: PlanDetails;
|
|
57
|
+
declare const SELF_SERVE_PAID_PLANS: PlanDetails[];
|
|
58
|
+
declare const FREE_WORKSPACES_LIMIT = 2;
|
|
59
|
+
declare const getPlanAndTierFromPriceId: ({ priceId, }: {
|
|
60
|
+
priceId: string;
|
|
61
|
+
}) => {
|
|
62
|
+
plan: PlanDetails | null;
|
|
63
|
+
planTier: number;
|
|
64
|
+
};
|
|
65
|
+
declare const getPlanDetails: ({ plan, planTier, }: {
|
|
66
|
+
plan: string;
|
|
67
|
+
planTier?: number | undefined;
|
|
68
|
+
}) => PlanDetails;
|
|
69
|
+
declare const getNextPlan: (plan?: string | null) => PlanDetails;
|
|
70
|
+
declare const isDowngradePlan: ({ currentPlan, newPlan, currentTier, newTier, }: {
|
|
71
|
+
currentPlan: string;
|
|
72
|
+
newPlan: string;
|
|
73
|
+
currentTier?: number | undefined;
|
|
74
|
+
newTier?: number | undefined;
|
|
75
|
+
}) => boolean;
|
|
76
|
+
declare const getSuggestedPlan: ({ events, links, suggestFree, }: {
|
|
77
|
+
events?: number | undefined;
|
|
78
|
+
links?: number | undefined;
|
|
79
|
+
suggestFree?: boolean | undefined;
|
|
80
|
+
}) => {
|
|
81
|
+
plan: PlanDetails;
|
|
82
|
+
planTier: number;
|
|
83
|
+
};
|
|
84
|
+
declare const isLegacyBusinessPlan: ({ plan, payoutsLimit, }: {
|
|
85
|
+
plan?: string | undefined;
|
|
86
|
+
payoutsLimit?: number | undefined;
|
|
87
|
+
}) => boolean;
|
|
88
|
+
|
|
89
|
+
declare const PRICING_PLAN_COMPARE_FEATURES: {
|
|
90
|
+
category: string;
|
|
91
|
+
href: string;
|
|
92
|
+
features: {
|
|
93
|
+
text: string | ((d: {
|
|
94
|
+
id: string;
|
|
95
|
+
plan: (typeof PLANS)[number];
|
|
96
|
+
}) => ReactNode);
|
|
97
|
+
href?: string;
|
|
98
|
+
check?: boolean | {
|
|
99
|
+
default?: boolean;
|
|
100
|
+
free?: boolean;
|
|
101
|
+
pro?: boolean;
|
|
102
|
+
business?: boolean;
|
|
103
|
+
advanced?: boolean;
|
|
104
|
+
enterprise?: boolean;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
}[];
|
|
108
|
+
|
|
109
|
+
type HeroFeature = {
|
|
110
|
+
id?: string;
|
|
111
|
+
text: string;
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
tooltip?: ReactNode | {
|
|
114
|
+
title: string;
|
|
115
|
+
cta: string;
|
|
116
|
+
href: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
declare const PRICING_PLAN_MAIN_FEATURES: {
|
|
120
|
+
links: {
|
|
121
|
+
Pro: {
|
|
122
|
+
features: HeroFeature[];
|
|
123
|
+
}[];
|
|
124
|
+
Business: {
|
|
125
|
+
features: HeroFeature[];
|
|
126
|
+
}[];
|
|
127
|
+
Advanced: {
|
|
128
|
+
features: HeroFeature[];
|
|
129
|
+
}[];
|
|
130
|
+
Enterprise: {
|
|
131
|
+
features: HeroFeature[];
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
partners: {
|
|
135
|
+
Business: {
|
|
136
|
+
features: HeroFeature[];
|
|
137
|
+
}[];
|
|
138
|
+
Advanced: {
|
|
139
|
+
features: (HeroFeature | {
|
|
140
|
+
id: string;
|
|
141
|
+
text: string;
|
|
142
|
+
tooltip: {
|
|
143
|
+
title: string;
|
|
144
|
+
};
|
|
145
|
+
})[];
|
|
146
|
+
}[];
|
|
147
|
+
Enterprise: {
|
|
148
|
+
features: (HeroFeature | {
|
|
149
|
+
id: string;
|
|
150
|
+
text: string;
|
|
151
|
+
tooltip: {
|
|
152
|
+
title: string;
|
|
153
|
+
};
|
|
154
|
+
})[];
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare const PRICING_PLAN_TAGLINES: {
|
|
160
|
+
links: {
|
|
161
|
+
Pro: string;
|
|
162
|
+
Business: string;
|
|
163
|
+
Advanced: string;
|
|
164
|
+
Enterprise: string;
|
|
165
|
+
};
|
|
166
|
+
partners: {
|
|
167
|
+
Business: string;
|
|
168
|
+
Advanced: string;
|
|
169
|
+
Enterprise: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export { ADVANCED_PLAN as A, BUSINESS_PLAN as B, ENTERPRISE_PLAN as E, FREE_PLAN as F, NEW_BUSINESS_PRICE_IDS as N, PlanFeature as P, SELF_SERVE_PAID_PLANS as S, PlanDetails as a, PLANS as b, PRO_PLAN as c, FREE_WORKSPACES_LIMIT as d, getPlanDetails as e, getNextPlan as f, getPlanAndTierFromPriceId as g, getSuggestedPlan as h, isDowngradePlan as i, isLegacyBusinessPlan as j, PRICING_PLAN_COMPARE_FEATURES as k, PRICING_PLAN_MAIN_FEATURES as l, PRICING_PLAN_TAGLINES as m };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type PlanFeature = {
|
|
4
|
+
id?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
tooltip?: {
|
|
7
|
+
title: string;
|
|
8
|
+
cta: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type PlanDetails = {
|
|
13
|
+
name: string;
|
|
14
|
+
price: {
|
|
15
|
+
monthly: number | null;
|
|
16
|
+
yearly: number | null;
|
|
17
|
+
ids?: string[];
|
|
18
|
+
};
|
|
19
|
+
limits: {
|
|
20
|
+
links: number;
|
|
21
|
+
clicks: number;
|
|
22
|
+
payouts: number;
|
|
23
|
+
domains: number;
|
|
24
|
+
tags: number;
|
|
25
|
+
folders: number;
|
|
26
|
+
groups: number;
|
|
27
|
+
networkInvites: number;
|
|
28
|
+
users: number;
|
|
29
|
+
ai: number;
|
|
30
|
+
api: number;
|
|
31
|
+
analyticsApi: number;
|
|
32
|
+
retention: string;
|
|
33
|
+
};
|
|
34
|
+
tiers?: {
|
|
35
|
+
[key: number]: {
|
|
36
|
+
price: {
|
|
37
|
+
monthly: number | null;
|
|
38
|
+
yearly: number | null;
|
|
39
|
+
ids: string[];
|
|
40
|
+
};
|
|
41
|
+
limits: {
|
|
42
|
+
links: number;
|
|
43
|
+
clicks: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
featureTitle?: string;
|
|
48
|
+
features?: PlanFeature[];
|
|
49
|
+
};
|
|
50
|
+
declare const NEW_BUSINESS_PRICE_IDS: string[];
|
|
51
|
+
declare const PLANS: PlanDetails[];
|
|
52
|
+
declare const FREE_PLAN: PlanDetails;
|
|
53
|
+
declare const PRO_PLAN: PlanDetails;
|
|
54
|
+
declare const BUSINESS_PLAN: PlanDetails;
|
|
55
|
+
declare const ADVANCED_PLAN: PlanDetails;
|
|
56
|
+
declare const ENTERPRISE_PLAN: PlanDetails;
|
|
57
|
+
declare const SELF_SERVE_PAID_PLANS: PlanDetails[];
|
|
58
|
+
declare const FREE_WORKSPACES_LIMIT = 2;
|
|
59
|
+
declare const getPlanAndTierFromPriceId: ({ priceId, }: {
|
|
60
|
+
priceId: string;
|
|
61
|
+
}) => {
|
|
62
|
+
plan: PlanDetails | null;
|
|
63
|
+
planTier: number;
|
|
64
|
+
};
|
|
65
|
+
declare const getPlanDetails: ({ plan, planTier, }: {
|
|
66
|
+
plan: string;
|
|
67
|
+
planTier?: number | undefined;
|
|
68
|
+
}) => PlanDetails;
|
|
69
|
+
declare const getNextPlan: (plan?: string | null) => PlanDetails;
|
|
70
|
+
declare const isDowngradePlan: ({ currentPlan, newPlan, currentTier, newTier, }: {
|
|
71
|
+
currentPlan: string;
|
|
72
|
+
newPlan: string;
|
|
73
|
+
currentTier?: number | undefined;
|
|
74
|
+
newTier?: number | undefined;
|
|
75
|
+
}) => boolean;
|
|
76
|
+
declare const getSuggestedPlan: ({ events, links, suggestFree, }: {
|
|
77
|
+
events?: number | undefined;
|
|
78
|
+
links?: number | undefined;
|
|
79
|
+
suggestFree?: boolean | undefined;
|
|
80
|
+
}) => {
|
|
81
|
+
plan: PlanDetails;
|
|
82
|
+
planTier: number;
|
|
83
|
+
};
|
|
84
|
+
declare const isLegacyBusinessPlan: ({ plan, payoutsLimit, }: {
|
|
85
|
+
plan?: string | undefined;
|
|
86
|
+
payoutsLimit?: number | undefined;
|
|
87
|
+
}) => boolean;
|
|
88
|
+
|
|
89
|
+
declare const PRICING_PLAN_COMPARE_FEATURES: {
|
|
90
|
+
category: string;
|
|
91
|
+
href: string;
|
|
92
|
+
features: {
|
|
93
|
+
text: string | ((d: {
|
|
94
|
+
id: string;
|
|
95
|
+
plan: (typeof PLANS)[number];
|
|
96
|
+
}) => ReactNode);
|
|
97
|
+
href?: string;
|
|
98
|
+
check?: boolean | {
|
|
99
|
+
default?: boolean;
|
|
100
|
+
free?: boolean;
|
|
101
|
+
pro?: boolean;
|
|
102
|
+
business?: boolean;
|
|
103
|
+
advanced?: boolean;
|
|
104
|
+
enterprise?: boolean;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
}[];
|
|
108
|
+
|
|
109
|
+
type HeroFeature = {
|
|
110
|
+
id?: string;
|
|
111
|
+
text: string;
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
tooltip?: ReactNode | {
|
|
114
|
+
title: string;
|
|
115
|
+
cta: string;
|
|
116
|
+
href: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
declare const PRICING_PLAN_MAIN_FEATURES: {
|
|
120
|
+
links: {
|
|
121
|
+
Pro: {
|
|
122
|
+
features: HeroFeature[];
|
|
123
|
+
}[];
|
|
124
|
+
Business: {
|
|
125
|
+
features: HeroFeature[];
|
|
126
|
+
}[];
|
|
127
|
+
Advanced: {
|
|
128
|
+
features: HeroFeature[];
|
|
129
|
+
}[];
|
|
130
|
+
Enterprise: {
|
|
131
|
+
features: HeroFeature[];
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
partners: {
|
|
135
|
+
Business: {
|
|
136
|
+
features: HeroFeature[];
|
|
137
|
+
}[];
|
|
138
|
+
Advanced: {
|
|
139
|
+
features: (HeroFeature | {
|
|
140
|
+
id: string;
|
|
141
|
+
text: string;
|
|
142
|
+
tooltip: {
|
|
143
|
+
title: string;
|
|
144
|
+
};
|
|
145
|
+
})[];
|
|
146
|
+
}[];
|
|
147
|
+
Enterprise: {
|
|
148
|
+
features: (HeroFeature | {
|
|
149
|
+
id: string;
|
|
150
|
+
text: string;
|
|
151
|
+
tooltip: {
|
|
152
|
+
title: string;
|
|
153
|
+
};
|
|
154
|
+
})[];
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare const PRICING_PLAN_TAGLINES: {
|
|
160
|
+
links: {
|
|
161
|
+
Pro: string;
|
|
162
|
+
Business: string;
|
|
163
|
+
Advanced: string;
|
|
164
|
+
Enterprise: string;
|
|
165
|
+
};
|
|
166
|
+
partners: {
|
|
167
|
+
Business: string;
|
|
168
|
+
Advanced: string;
|
|
169
|
+
Enterprise: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export { ADVANCED_PLAN as A, BUSINESS_PLAN as B, ENTERPRISE_PLAN as E, FREE_PLAN as F, NEW_BUSINESS_PRICE_IDS as N, PlanFeature as P, SELF_SERVE_PAID_PLANS as S, PlanDetails as a, PLANS as b, PRO_PLAN as c, FREE_WORKSPACES_LIMIT as d, getPlanDetails as e, getNextPlan as f, getPlanAndTierFromPriceId as g, getSuggestedPlan as h, isDowngradePlan as i, isLegacyBusinessPlan as j, PRICING_PLAN_COMPARE_FEATURES as k, PRICING_PLAN_MAIN_FEATURES as l, PRICING_PLAN_TAGLINES as m };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type PlanFeature = {
|
|
4
|
+
id?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
tooltip?: {
|
|
7
|
+
title: string;
|
|
8
|
+
cta: string;
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
type PlanDetails = {
|
|
13
|
+
name: string;
|
|
14
|
+
price: {
|
|
15
|
+
monthly: number | null;
|
|
16
|
+
yearly: number | null;
|
|
17
|
+
ids?: string[];
|
|
18
|
+
};
|
|
19
|
+
limits: {
|
|
20
|
+
links: number;
|
|
21
|
+
clicks: number;
|
|
22
|
+
payouts: number;
|
|
23
|
+
domains: number;
|
|
24
|
+
tags: number;
|
|
25
|
+
folders: number;
|
|
26
|
+
groups: number;
|
|
27
|
+
networkInvites: number;
|
|
28
|
+
users: number;
|
|
29
|
+
ai: number;
|
|
30
|
+
api: number;
|
|
31
|
+
analyticsApi: number;
|
|
32
|
+
retention: string;
|
|
33
|
+
};
|
|
34
|
+
tiers?: {
|
|
35
|
+
[key: number]: {
|
|
36
|
+
price: {
|
|
37
|
+
monthly: number | null;
|
|
38
|
+
yearly: number | null;
|
|
39
|
+
ids: string[];
|
|
40
|
+
};
|
|
41
|
+
limits: {
|
|
42
|
+
links: number;
|
|
43
|
+
clicks: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
featureTitle?: string;
|
|
48
|
+
features?: PlanFeature[];
|
|
49
|
+
};
|
|
50
|
+
declare const NEW_BUSINESS_PRICE_IDS: string[];
|
|
51
|
+
declare const PLANS: PlanDetails[];
|
|
52
|
+
declare const FREE_PLAN: PlanDetails;
|
|
53
|
+
declare const PRO_PLAN: PlanDetails;
|
|
54
|
+
declare const BUSINESS_PLAN: PlanDetails;
|
|
55
|
+
declare const ADVANCED_PLAN: PlanDetails;
|
|
56
|
+
declare const ENTERPRISE_PLAN: PlanDetails;
|
|
57
|
+
declare const SELF_SERVE_PAID_PLANS: PlanDetails[];
|
|
58
|
+
declare const FREE_WORKSPACES_LIMIT = 2;
|
|
59
|
+
declare const getPlanAndTierFromPriceId: ({ priceId, }: {
|
|
60
|
+
priceId: string;
|
|
61
|
+
}) => {
|
|
62
|
+
plan: PlanDetails | null;
|
|
63
|
+
planTier: number;
|
|
64
|
+
};
|
|
65
|
+
declare const getPlanDetails: ({ plan, planTier, }: {
|
|
66
|
+
plan: string;
|
|
67
|
+
planTier?: number | undefined;
|
|
68
|
+
}) => PlanDetails;
|
|
69
|
+
declare const getNextPlan: (plan?: string | null) => PlanDetails;
|
|
70
|
+
declare const isDowngradePlan: ({ currentPlan, newPlan, currentTier, newTier, }: {
|
|
71
|
+
currentPlan: string;
|
|
72
|
+
newPlan: string;
|
|
73
|
+
currentTier?: number | undefined;
|
|
74
|
+
newTier?: number | undefined;
|
|
75
|
+
}) => boolean;
|
|
76
|
+
declare const getSuggestedPlan: ({ events, links, suggestFree, }: {
|
|
77
|
+
events?: number | undefined;
|
|
78
|
+
links?: number | undefined;
|
|
79
|
+
suggestFree?: boolean | undefined;
|
|
80
|
+
}) => {
|
|
81
|
+
plan: PlanDetails;
|
|
82
|
+
planTier: number;
|
|
83
|
+
};
|
|
84
|
+
declare const isLegacyBusinessPlan: ({ plan, payoutsLimit, }: {
|
|
85
|
+
plan?: string | undefined;
|
|
86
|
+
payoutsLimit?: number | undefined;
|
|
87
|
+
}) => boolean;
|
|
88
|
+
|
|
89
|
+
declare const PRICING_PLAN_COMPARE_FEATURES: {
|
|
90
|
+
category: string;
|
|
91
|
+
href: string;
|
|
92
|
+
features: {
|
|
93
|
+
text: string | ((d: {
|
|
94
|
+
id: string;
|
|
95
|
+
plan: (typeof PLANS)[number];
|
|
96
|
+
}) => ReactNode);
|
|
97
|
+
href?: string;
|
|
98
|
+
check?: boolean | {
|
|
99
|
+
default?: boolean;
|
|
100
|
+
free?: boolean;
|
|
101
|
+
pro?: boolean;
|
|
102
|
+
business?: boolean;
|
|
103
|
+
advanced?: boolean;
|
|
104
|
+
enterprise?: boolean;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
}[];
|
|
108
|
+
|
|
109
|
+
type HeroFeature = {
|
|
110
|
+
id?: string;
|
|
111
|
+
text: string;
|
|
112
|
+
disabled?: boolean;
|
|
113
|
+
tooltip?: ReactNode | {
|
|
114
|
+
title: string;
|
|
115
|
+
cta: string;
|
|
116
|
+
href: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
declare const PRICING_PLAN_MAIN_FEATURES: {
|
|
120
|
+
links: {
|
|
121
|
+
Pro: {
|
|
122
|
+
features: HeroFeature[];
|
|
123
|
+
}[];
|
|
124
|
+
Business: {
|
|
125
|
+
features: HeroFeature[];
|
|
126
|
+
}[];
|
|
127
|
+
Advanced: {
|
|
128
|
+
features: HeroFeature[];
|
|
129
|
+
}[];
|
|
130
|
+
Enterprise: {
|
|
131
|
+
features: HeroFeature[];
|
|
132
|
+
}[];
|
|
133
|
+
};
|
|
134
|
+
partners: {
|
|
135
|
+
Business: {
|
|
136
|
+
features: HeroFeature[];
|
|
137
|
+
}[];
|
|
138
|
+
Advanced: {
|
|
139
|
+
features: (HeroFeature | {
|
|
140
|
+
id: string;
|
|
141
|
+
text: string;
|
|
142
|
+
tooltip: {
|
|
143
|
+
title: string;
|
|
144
|
+
};
|
|
145
|
+
})[];
|
|
146
|
+
}[];
|
|
147
|
+
Enterprise: {
|
|
148
|
+
features: (HeroFeature | {
|
|
149
|
+
id: string;
|
|
150
|
+
text: string;
|
|
151
|
+
tooltip: {
|
|
152
|
+
title: string;
|
|
153
|
+
};
|
|
154
|
+
})[];
|
|
155
|
+
}[];
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare const PRICING_PLAN_TAGLINES: {
|
|
160
|
+
links: {
|
|
161
|
+
Pro: string;
|
|
162
|
+
Business: string;
|
|
163
|
+
Advanced: string;
|
|
164
|
+
Enterprise: string;
|
|
165
|
+
};
|
|
166
|
+
partners: {
|
|
167
|
+
Business: string;
|
|
168
|
+
Advanced: string;
|
|
169
|
+
Enterprise: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export { ADVANCED_PLAN as A, BUSINESS_PLAN as B, ENTERPRISE_PLAN as E, FREE_PLAN as F, NEW_BUSINESS_PRICE_IDS as N, PRICING_PLAN_COMPARE_FEATURES as P, SELF_SERVE_PAID_PLANS as S, PRICING_PLAN_MAIN_FEATURES as a, PRICING_PLAN_TAGLINES as b, PlanFeature as c, PlanDetails as d, PLANS as e, PRO_PLAN as f, FREE_WORKSPACES_LIMIT as g, getPlanAndTierFromPriceId as h, getPlanDetails as i, getNextPlan as j, isDowngradePlan as k, getSuggestedPlan as l, isLegacyBusinessPlan as m };
|