@dub/utils 0.0.27 → 0.0.28
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-2DN4J7N7.mjs +1 -0
- package/dist/chunk-2J47GIUG.mjs +1 -0
- package/dist/chunk-2OJAP233.mjs +1 -0
- package/dist/chunk-34MPJURK.mjs +1 -0
- package/dist/chunk-3B5DP3T4.mjs +1 -0
- package/dist/chunk-3BUV2ANI.mjs +1 -0
- package/dist/chunk-3PRW7SAO.mjs +1 -0
- package/dist/chunk-4BN7BHOL.mjs +1 -0
- package/dist/chunk-5PD4TPH7.mjs +1 -0
- package/dist/chunk-5SU2MWLU.mjs +0 -0
- package/dist/chunk-6N3NW2JB.mjs +1 -0
- package/dist/chunk-6TFUDH7S.mjs +1 -0
- package/dist/chunk-6XPTKHZD.mjs +1 -0
- package/dist/chunk-7CR3I247.mjs +1 -0
- package/dist/chunk-7OQSL4CI.mjs +2 -0
- package/dist/chunk-AI2STCLX.mjs +1 -0
- package/dist/chunk-BE3FE22D.mjs +1 -0
- package/dist/chunk-BMMTE4CL.mjs +1 -0
- package/dist/chunk-BQ3MQSVS.mjs +1 -0
- package/dist/chunk-C7CFYTBV.mjs +1 -0
- package/dist/chunk-DHOWTHOI.mjs +3 -0
- package/dist/chunk-EMO4MGOU.mjs +1 -0
- package/dist/chunk-F6C3QYRM.mjs +1 -0
- package/dist/chunk-FCP5HRN4.mjs +1 -0
- package/dist/chunk-FLUV3ASQ.mjs +1 -0
- package/dist/chunk-GQLUSHIW.mjs +1 -0
- package/dist/chunk-GTQBILTE.mjs +1 -0
- package/dist/chunk-HX6TVXHR.mjs +1 -0
- package/dist/chunk-I5Y5DKPK.mjs +1 -0
- package/dist/chunk-IGSNFZ4Y.mjs +1 -0
- package/dist/chunk-J6V4PKNC.mjs +1 -0
- package/dist/chunk-KL7VCF4Y.mjs +1 -0
- package/dist/chunk-L2SFRDQT.mjs +1 -0
- package/dist/chunk-L7JSRS6V.mjs +1 -0
- package/dist/chunk-LXJVNY3R.mjs +1 -0
- package/dist/chunk-MPU6JRPV.mjs +1 -0
- package/dist/chunk-MT3GLHZG.mjs +1 -0
- package/dist/chunk-NEIHTFSW.mjs +1 -0
- package/dist/chunk-OANHZJ6X.mjs +1 -0
- package/dist/chunk-OSU5S2YT.mjs +3 -0
- package/dist/chunk-PEPVOMPB.mjs +1 -0
- package/dist/chunk-QQFYILG6.mjs +1 -0
- package/dist/chunk-QYPFWXDY.mjs +1 -0
- package/dist/chunk-SKVYWWBC.mjs +3 -0
- package/dist/chunk-SPSUTBZ7.mjs +0 -0
- package/dist/chunk-TXEDXHC5.mjs +1 -0
- package/dist/chunk-UBCCNLBS.mjs +1 -0
- package/dist/chunk-UUWTKITJ.mjs +1 -0
- package/dist/chunk-VZYPOBKB.mjs +1 -0
- package/dist/chunk-W5LUKKPM.mjs +1 -0
- package/dist/chunk-WCUHRXGZ.mjs +1 -0
- package/dist/chunk-XWSEDYR7.mjs +1 -0
- package/dist/chunk-YUMUNL66.mjs +1 -0
- package/dist/chunk-YXHGPHL2.mjs +1 -0
- package/dist/chunk-YY4NGU5S.mjs +1 -0
- package/dist/chunk-ZBBENF7Y.mjs +1 -0
- package/dist/chunk-ZECUYKGD.mjs +1 -0
- package/dist/chunk-ZJKRLIJQ.mjs +1 -0
- package/dist/constants/cctlds.d.ts +1 -1
- package/dist/constants/cctlds.mjs +1 -1
- package/dist/constants/countries.d.ts +1 -1
- package/dist/constants/countries.mjs +1 -1
- package/dist/constants/index.d.ts +119 -6
- package/dist/constants/index.mjs +1 -1
- package/dist/functions/capitalize.d.ts +3 -0
- package/dist/functions/capitalize.mjs +1 -0
- package/dist/functions/chunk.d.ts +3 -0
- package/dist/functions/chunk.mjs +1 -0
- package/dist/functions/cn.d.ts +5 -0
- package/dist/functions/cn.mjs +1 -0
- package/dist/functions/construct-metadata.d.ts +11 -0
- package/dist/functions/construct-metadata.mjs +1 -0
- package/dist/functions/datetime.d.ts +11 -0
- package/dist/functions/datetime.mjs +1 -0
- package/dist/functions/deep-equal.d.ts +4 -0
- package/dist/functions/deep-equal.mjs +1 -0
- package/dist/functions/domains.d.ts +10 -0
- package/dist/functions/domains.mjs +1 -0
- package/dist/functions/fetch-with-timeout.d.ts +3 -0
- package/dist/functions/fetch-with-timeout.mjs +1 -0
- package/dist/functions/fetcher.d.ts +3 -0
- package/dist/functions/fetcher.mjs +1 -0
- package/dist/functions/hash.d.ts +3 -0
- package/dist/functions/hash.mjs +1 -0
- package/dist/functions/index.d.ts +21 -0
- package/dist/functions/index.mjs +1 -0
- package/dist/functions/is-iframeable.d.ts +6 -0
- package/dist/functions/is-iframeable.mjs +1 -0
- package/dist/functions/link-constructor.d.ts +9 -0
- package/dist/functions/link-constructor.mjs +1 -0
- package/dist/functions/log.d.ts +7 -0
- package/dist/functions/log.mjs +1 -0
- package/dist/functions/misc.d.ts +112 -0
- package/dist/functions/misc.mjs +1 -0
- package/dist/functions/nanoid.d.ts +3 -0
- package/dist/functions/nanoid.mjs +1 -0
- package/dist/functions/nformatter.d.ts +6 -0
- package/dist/functions/nformatter.mjs +1 -0
- package/dist/functions/time-ago.d.ts +5 -0
- package/dist/functions/time-ago.mjs +1 -0
- package/dist/functions/truncate.d.ts +3 -0
- package/dist/functions/truncate.mjs +1 -0
- package/dist/functions/urls.d.ts +13 -0
- package/dist/functions/urls.mjs +1 -0
- package/dist/index.d.ts +24 -181
- package/dist/index.mjs +1 -1
- package/dist/is-iframeable-4cf55b9f.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { ccTLDs } from './cctlds.js';
|
|
2
|
+
export { COUNTRIES } from './countries.js';
|
|
3
3
|
|
|
4
4
|
declare const PLANS: ({
|
|
5
5
|
name: string;
|
|
@@ -111,6 +111,116 @@ declare const PLANS: ({
|
|
|
111
111
|
}[];
|
|
112
112
|
tagline?: undefined;
|
|
113
113
|
})[];
|
|
114
|
+
declare const FREE_PLAN: {
|
|
115
|
+
name: string;
|
|
116
|
+
tagline: string;
|
|
117
|
+
price: {
|
|
118
|
+
monthly: number;
|
|
119
|
+
yearly: number;
|
|
120
|
+
ids?: undefined;
|
|
121
|
+
};
|
|
122
|
+
limits: {
|
|
123
|
+
links: number;
|
|
124
|
+
clicks: number;
|
|
125
|
+
domains: number;
|
|
126
|
+
tags: number;
|
|
127
|
+
users: number;
|
|
128
|
+
};
|
|
129
|
+
colors: {
|
|
130
|
+
bg: string;
|
|
131
|
+
text: string;
|
|
132
|
+
};
|
|
133
|
+
cta: {
|
|
134
|
+
text: string;
|
|
135
|
+
href: string;
|
|
136
|
+
color: string;
|
|
137
|
+
shortText?: undefined;
|
|
138
|
+
};
|
|
139
|
+
featureTitle: string;
|
|
140
|
+
features: ({
|
|
141
|
+
text: string;
|
|
142
|
+
footnote?: undefined;
|
|
143
|
+
} | {
|
|
144
|
+
text: string;
|
|
145
|
+
footnote: string;
|
|
146
|
+
} | {
|
|
147
|
+
text: string;
|
|
148
|
+
footnote: {
|
|
149
|
+
title: string;
|
|
150
|
+
cta: string;
|
|
151
|
+
href: string;
|
|
152
|
+
};
|
|
153
|
+
})[];
|
|
154
|
+
} | {
|
|
155
|
+
name: string;
|
|
156
|
+
tagline: string;
|
|
157
|
+
price: {
|
|
158
|
+
monthly: number;
|
|
159
|
+
yearly: number;
|
|
160
|
+
ids: string[];
|
|
161
|
+
};
|
|
162
|
+
limits: {
|
|
163
|
+
links: number;
|
|
164
|
+
clicks: number;
|
|
165
|
+
domains: number;
|
|
166
|
+
tags: number;
|
|
167
|
+
users: number;
|
|
168
|
+
};
|
|
169
|
+
colors: {
|
|
170
|
+
bg: string;
|
|
171
|
+
text: string;
|
|
172
|
+
};
|
|
173
|
+
cta: {
|
|
174
|
+
text: string;
|
|
175
|
+
shortText: string;
|
|
176
|
+
href: string;
|
|
177
|
+
color: string;
|
|
178
|
+
};
|
|
179
|
+
featureTitle: string;
|
|
180
|
+
features: ({
|
|
181
|
+
text: string;
|
|
182
|
+
footnote?: undefined;
|
|
183
|
+
} | {
|
|
184
|
+
text: string;
|
|
185
|
+
footnote: string;
|
|
186
|
+
} | {
|
|
187
|
+
text: string;
|
|
188
|
+
footnote: {
|
|
189
|
+
title: string;
|
|
190
|
+
cta: string;
|
|
191
|
+
href: string;
|
|
192
|
+
};
|
|
193
|
+
})[];
|
|
194
|
+
} | {
|
|
195
|
+
name: string;
|
|
196
|
+
price: {
|
|
197
|
+
monthly: null;
|
|
198
|
+
yearly: null;
|
|
199
|
+
ids?: undefined;
|
|
200
|
+
};
|
|
201
|
+
limits: {
|
|
202
|
+
links: null;
|
|
203
|
+
clicks: null;
|
|
204
|
+
domains: null;
|
|
205
|
+
tags?: undefined;
|
|
206
|
+
users?: undefined;
|
|
207
|
+
};
|
|
208
|
+
colors: {
|
|
209
|
+
bg: string;
|
|
210
|
+
text: string;
|
|
211
|
+
};
|
|
212
|
+
cta: {
|
|
213
|
+
text: string;
|
|
214
|
+
href: string;
|
|
215
|
+
color: string;
|
|
216
|
+
shortText?: undefined;
|
|
217
|
+
};
|
|
218
|
+
featureTitle: string;
|
|
219
|
+
features: {
|
|
220
|
+
text: string;
|
|
221
|
+
}[];
|
|
222
|
+
tagline?: undefined;
|
|
223
|
+
};
|
|
114
224
|
declare const SELF_SERVE_PAID_PLANS: ({
|
|
115
225
|
name: string;
|
|
116
226
|
tagline: string;
|
|
@@ -221,6 +331,7 @@ declare const SELF_SERVE_PAID_PLANS: ({
|
|
|
221
331
|
}[];
|
|
222
332
|
tagline?: undefined;
|
|
223
333
|
})[];
|
|
334
|
+
declare const FREE_PROJECTS_LIMIT = 2;
|
|
224
335
|
|
|
225
336
|
declare const LOCALHOST_GEO_DATA: {
|
|
226
337
|
city: string;
|
|
@@ -317,8 +428,12 @@ declare const DUB_HEADERS: {
|
|
|
317
428
|
declare const GOOGLE_FAVICON_URL = "https://www.google.com/s2/favicons?sz=64&domain_url=";
|
|
318
429
|
declare const DUB_LOGO = "https://d2vwwcvoksz7ty.cloudfront.net/logo.png";
|
|
319
430
|
declare const DUB_THUMBNAIL = "https://d2vwwcvoksz7ty.cloudfront.net/thumbnail.png";
|
|
431
|
+
declare const DUB_PROJECT_ID = "cl7pj5kq4006835rbjlt2ofka";
|
|
432
|
+
declare const LEGAL_PROJECT_ID = "clrflia0j0000vs7sqfhz9c7q";
|
|
433
|
+
declare const LEGAL_USER_ID = "clqei1lgc0000vsnzi01pbf47";
|
|
320
434
|
declare const HIDE_BACKGROUND_SEGMENTS: string[];
|
|
321
435
|
declare const DUB_DOMAINS: {
|
|
436
|
+
id: string;
|
|
322
437
|
slug: string;
|
|
323
438
|
verified: boolean;
|
|
324
439
|
primary: boolean;
|
|
@@ -328,6 +443,7 @@ declare const DUB_DOMAINS: {
|
|
|
328
443
|
placeholder: string;
|
|
329
444
|
clicks: number;
|
|
330
445
|
allowedHostnames: string[];
|
|
446
|
+
projectId: string;
|
|
331
447
|
}[];
|
|
332
448
|
declare const ALL_TOOLS: {
|
|
333
449
|
name: string;
|
|
@@ -352,9 +468,6 @@ declare const DEFAULT_LINK_PROPS: {
|
|
|
352
468
|
userId: string;
|
|
353
469
|
proxy: boolean;
|
|
354
470
|
};
|
|
355
|
-
declare const DUB_PROJECT_ID = "cl7pj5kq4006835rbjlt2ofka";
|
|
356
|
-
declare const LEGAL_PROJECT_ID = "clrflia0j0000vs7sqfhz9c7q";
|
|
357
|
-
declare const LEGAL_USER_ID = "clqei1lgc0000vsnzi01pbf47";
|
|
358
471
|
declare const SAML_PROVIDERS: {
|
|
359
472
|
name: string;
|
|
360
473
|
logo: string;
|
|
@@ -368,4 +481,4 @@ declare const SAML_PROVIDERS: {
|
|
|
368
481
|
wip: boolean;
|
|
369
482
|
}[];
|
|
370
483
|
|
|
371
|
-
export { ADMIN_HOSTNAMES, ALL_TOOLS, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, DEFAULT_LINK_PROPS, DEFAULT_REDIRECTS, DUB_DOMAINS, DUB_HEADERS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, GOOGLE_FAVICON_URL, HIDE_BACKGROUND_SEGMENTS, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, LOCALHOST_GEO_DATA, LOCALHOST_IP, PAGINATION_LIMIT, PLANS, SAML_PROVIDERS, SECOND_LEVEL_DOMAINS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, SPECIAL_APEX_DOMAINS, STAGGER_CHILD_VARIANTS, SWIPE_REVEAL_ANIMATION_SETTINGS };
|
|
484
|
+
export { ADMIN_HOSTNAMES, ALL_TOOLS, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, DEFAULT_LINK_PROPS, DEFAULT_REDIRECTS, DUB_DOMAINS, DUB_HEADERS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, FREE_PLAN, FREE_PROJECTS_LIMIT, GOOGLE_FAVICON_URL, HIDE_BACKGROUND_SEGMENTS, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, LOCALHOST_GEO_DATA, LOCALHOST_IP, PAGINATION_LIMIT, PLANS, SAML_PROVIDERS, SECOND_LEVEL_DOMAINS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, SPECIAL_APEX_DOMAINS, STAGGER_CHILD_VARIANTS, SWIPE_REVEAL_ANIMATION_SETTINGS };
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as C,B as D,C as E,D as F,E as G,F as H,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as y,x as z,y as A,z as B}from"../chunk-
|
|
1
|
+
import{A as C,B as D,C as E,D as F,E as G,F as H,G as I,H as J,a as c,b as d,c as e,d as f,e as g,f as h,g as i,h as j,i as k,j as l,k as m,l as n,m as o,n as p,o as q,p as r,q as s,r as t,s as u,t as v,u as w,v as x,w as y,x as z,y as A,z as B}from"../chunk-F6C3QYRM.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b}from"../chunk-UBCCNLBS.mjs";export{u as ADMIN_HOSTNAMES,F as ALL_TOOLS,t as API_DOMAIN,s as API_HOSTNAMES,q as APP_DOMAIN,r as APP_DOMAIN_WITH_NGROK,p as APP_HOSTNAMES,b as COUNTRIES,I as DEFAULT_LINK_PROPS,v as DEFAULT_REDIRECTS,E as DUB_DOMAINS,w as DUB_HEADERS,y as DUB_LOGO,A as DUB_PROJECT_ID,z as DUB_THUMBNAIL,l as FADE_IN_ANIMATION_SETTINGS,i as FRAMER_MOTION_LIST_ITEM_VARIANTS,d as FREE_PLAN,f as FREE_PROJECTS_LIMIT,x as GOOGLE_FAVICON_URL,D as HIDE_BACKGROUND_SEGMENTS,o as HOME_DOMAIN,B as LEGAL_PROJECT_ID,C as LEGAL_USER_ID,g as LOCALHOST_GEO_DATA,h as LOCALHOST_IP,m as PAGINATION_LIMIT,c as PLANS,J as SAML_PROVIDERS,G as SECOND_LEVEL_DOMAINS,e as SELF_SERVE_PAID_PLANS,n as SHORT_DOMAIN,H as SPECIAL_APEX_DOMAINS,j as STAGGER_CHILD_VARIANTS,k as SWIPE_REVEAL_ANIMATION_SETTINGS,a as ccTLDs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-GTQBILTE.mjs";export{a as capitalize};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-2OJAP233.mjs";export{a as chunk};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-NEIHTFSW.mjs";export{a as cn};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Metadata } from 'next';
|
|
2
|
+
|
|
3
|
+
declare function constructMetadata({ title, description, image, icons, noIndex, }?: {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
icons?: Metadata["icons"];
|
|
8
|
+
noIndex?: boolean;
|
|
9
|
+
}): Metadata;
|
|
10
|
+
|
|
11
|
+
export { constructMetadata };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-C7CFYTBV.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as constructMetadata};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const getDateTimeLocal: (timestamp?: Date) => string;
|
|
2
|
+
declare const formatDate: (dateString: string) => string;
|
|
3
|
+
declare const getFirstAndLastDay: (day: number) => {
|
|
4
|
+
firstDay: Date;
|
|
5
|
+
lastDay: Date;
|
|
6
|
+
};
|
|
7
|
+
declare const getLastDayOfMonth: () => number;
|
|
8
|
+
declare const getAdjustedBillingCycleStart: (billingCycleStart: number) => number;
|
|
9
|
+
declare const getBillingStartDate: (billingCycleStart: number) => Date;
|
|
10
|
+
|
|
11
|
+
export { formatDate, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getFirstAndLastDay, getLastDayOfMonth };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-LXJVNY3R.mjs";export{b as formatDate,e as getAdjustedBillingCycleStart,f as getBillingStartDate,a as getDateTimeLocal,c as getFirstAndLastDay,d as getLastDayOfMonth};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-ZECUYKGD.mjs";export{a as deepEqual};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const generateDomainFromName: (name: string) => string;
|
|
2
|
+
declare const validDomainRegex: RegExp;
|
|
3
|
+
declare const validKeyRegex: RegExp;
|
|
4
|
+
declare const validSlugRegex: RegExp;
|
|
5
|
+
declare const getSubdomain: (name: string, apexName: string) => string | null;
|
|
6
|
+
declare const getApexDomain: (url: string) => string;
|
|
7
|
+
declare const getDomainWithoutWWW: (url: string) => string | null | undefined;
|
|
8
|
+
declare const isDubDomain: (domain: string) => boolean;
|
|
9
|
+
|
|
10
|
+
export { generateDomainFromName, getApexDomain, getDomainWithoutWWW, getSubdomain, isDubDomain, validDomainRegex, validKeyRegex, validSlugRegex };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h}from"../chunk-J6V4PKNC.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as generateDomainFromName,f as getApexDomain,g as getDomainWithoutWWW,e as getSubdomain,h as isDubDomain,b as validDomainRegex,c as validKeyRegex,d as validSlugRegex};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-EMO4MGOU.mjs";export{a as fetchWithTimeout};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-6XPTKHZD.mjs";export{a as fetcher};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-XWSEDYR7.mjs";export{a as generateMD5Hash};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { capitalize } from './capitalize.js';
|
|
2
|
+
export { chunk } from './chunk.js';
|
|
3
|
+
export { cn } from './cn.js';
|
|
4
|
+
export { constructMetadata } from './construct-metadata.js';
|
|
5
|
+
export { formatDate, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getFirstAndLastDay, getLastDayOfMonth } from './datetime.js';
|
|
6
|
+
export { deepEqual } from './deep-equal.js';
|
|
7
|
+
export { generateDomainFromName, getApexDomain, getDomainWithoutWWW, getSubdomain, isDubDomain, validDomainRegex, validKeyRegex, validSlugRegex } from './domains.js';
|
|
8
|
+
export { fetchWithTimeout } from './fetch-with-timeout.js';
|
|
9
|
+
export { fetcher } from './fetcher.js';
|
|
10
|
+
export { generateMD5Hash } from './hash.js';
|
|
11
|
+
export { isIframeable } from './is-iframeable.js';
|
|
12
|
+
export { linkConstructor } from './link-constructor.js';
|
|
13
|
+
export { log } from './log.js';
|
|
14
|
+
export { getPlanFromPriceId } from './misc.js';
|
|
15
|
+
export { nanoid } from './nanoid.js';
|
|
16
|
+
export { nFormatter } from './nformatter.js';
|
|
17
|
+
export { timeAgo } from './time-ago.js';
|
|
18
|
+
export { truncate } from './truncate.js';
|
|
19
|
+
export { constructURLFromUTMParams, getParamsFromURL, getSearchParams, getUrlFromString, getUrlWithoutUTMParams, isValidUrl, paramsMetadata } from './urls.js';
|
|
20
|
+
import 'clsx';
|
|
21
|
+
import 'next';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../chunk-SPSUTBZ7.mjs";import{a as E}from"../chunk-5PD4TPH7.mjs";import{a as F}from"../chunk-PEPVOMPB.mjs";import{a as G}from"../chunk-FLUV3ASQ.mjs";import{a as H}from"../chunk-KL7VCF4Y.mjs";import{a as I}from"../chunk-I5Y5DKPK.mjs";import{a as J}from"../chunk-MPU6JRPV.mjs";import{a as K}from"../chunk-ZJKRLIJQ.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j}from"../chunk-LXJVNY3R.mjs";import{a as k}from"../chunk-ZECUYKGD.mjs";import{a as s,b as t,c as u,d as v,e as w,f as x,g as y,h as z}from"../chunk-J6V4PKNC.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r}from"../chunk-UUWTKITJ.mjs";import{a as A}from"../chunk-EMO4MGOU.mjs";import{a as B}from"../chunk-6XPTKHZD.mjs";import{a as C}from"../chunk-XWSEDYR7.mjs";import{a as D}from"../chunk-3BUV2ANI.mjs";import{a}from"../chunk-GTQBILTE.mjs";import{a as b}from"../chunk-2OJAP233.mjs";import{a as c}from"../chunk-NEIHTFSW.mjs";import{a as d}from"../chunk-C7CFYTBV.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as capitalize,b as chunk,c as cn,d as constructMetadata,p as constructURLFromUTMParams,k as deepEqual,A as fetchWithTimeout,B as fetcher,f as formatDate,s as generateDomainFromName,C as generateMD5Hash,i as getAdjustedBillingCycleStart,x as getApexDomain,j as getBillingStartDate,e as getDateTimeLocal,y as getDomainWithoutWWW,g as getFirstAndLastDay,h as getLastDayOfMonth,o as getParamsFromURL,G as getPlanFromPriceId,n as getSearchParams,w as getSubdomain,m as getUrlFromString,r as getUrlWithoutUTMParams,z as isDubDomain,D as isIframeable,l as isValidUrl,E as linkConstructor,F as log,I as nFormatter,H as nanoid,q as paramsMetadata,J as timeAgo,K as truncate,t as validDomainRegex,u as validKeyRegex,v as validSlugRegex};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-3BUV2ANI.mjs";export{a as isIframeable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-5PD4TPH7.mjs";export{a as linkConstructor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-PEPVOMPB.mjs";export{a as log};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare const getPlanFromPriceId: (priceId: string) => {
|
|
2
|
+
name: string;
|
|
3
|
+
tagline: string;
|
|
4
|
+
price: {
|
|
5
|
+
monthly: number;
|
|
6
|
+
yearly: number;
|
|
7
|
+
ids?: undefined;
|
|
8
|
+
};
|
|
9
|
+
limits: {
|
|
10
|
+
links: number;
|
|
11
|
+
clicks: number;
|
|
12
|
+
domains: number;
|
|
13
|
+
tags: number;
|
|
14
|
+
users: number;
|
|
15
|
+
};
|
|
16
|
+
colors: {
|
|
17
|
+
bg: string;
|
|
18
|
+
text: string;
|
|
19
|
+
};
|
|
20
|
+
cta: {
|
|
21
|
+
text: string;
|
|
22
|
+
href: string;
|
|
23
|
+
color: string;
|
|
24
|
+
shortText?: undefined;
|
|
25
|
+
};
|
|
26
|
+
featureTitle: string;
|
|
27
|
+
features: ({
|
|
28
|
+
text: string;
|
|
29
|
+
footnote?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
text: string;
|
|
32
|
+
footnote: string;
|
|
33
|
+
} | {
|
|
34
|
+
text: string;
|
|
35
|
+
footnote: {
|
|
36
|
+
title: string;
|
|
37
|
+
cta: string;
|
|
38
|
+
href: string;
|
|
39
|
+
};
|
|
40
|
+
})[];
|
|
41
|
+
} | {
|
|
42
|
+
name: string;
|
|
43
|
+
tagline: string;
|
|
44
|
+
price: {
|
|
45
|
+
monthly: number;
|
|
46
|
+
yearly: number;
|
|
47
|
+
ids: string[];
|
|
48
|
+
};
|
|
49
|
+
limits: {
|
|
50
|
+
links: number;
|
|
51
|
+
clicks: number;
|
|
52
|
+
domains: number;
|
|
53
|
+
tags: number;
|
|
54
|
+
users: number;
|
|
55
|
+
};
|
|
56
|
+
colors: {
|
|
57
|
+
bg: string;
|
|
58
|
+
text: string;
|
|
59
|
+
};
|
|
60
|
+
cta: {
|
|
61
|
+
text: string;
|
|
62
|
+
shortText: string;
|
|
63
|
+
href: string;
|
|
64
|
+
color: string;
|
|
65
|
+
};
|
|
66
|
+
featureTitle: string;
|
|
67
|
+
features: ({
|
|
68
|
+
text: string;
|
|
69
|
+
footnote?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
text: string;
|
|
72
|
+
footnote: string;
|
|
73
|
+
} | {
|
|
74
|
+
text: string;
|
|
75
|
+
footnote: {
|
|
76
|
+
title: string;
|
|
77
|
+
cta: string;
|
|
78
|
+
href: string;
|
|
79
|
+
};
|
|
80
|
+
})[];
|
|
81
|
+
} | {
|
|
82
|
+
name: string;
|
|
83
|
+
price: {
|
|
84
|
+
monthly: null;
|
|
85
|
+
yearly: null;
|
|
86
|
+
ids?: undefined;
|
|
87
|
+
};
|
|
88
|
+
limits: {
|
|
89
|
+
links: null;
|
|
90
|
+
clicks: null;
|
|
91
|
+
domains: null;
|
|
92
|
+
tags?: undefined;
|
|
93
|
+
users?: undefined;
|
|
94
|
+
};
|
|
95
|
+
colors: {
|
|
96
|
+
bg: string;
|
|
97
|
+
text: string;
|
|
98
|
+
};
|
|
99
|
+
cta: {
|
|
100
|
+
text: string;
|
|
101
|
+
href: string;
|
|
102
|
+
color: string;
|
|
103
|
+
shortText?: undefined;
|
|
104
|
+
};
|
|
105
|
+
featureTitle: string;
|
|
106
|
+
features: {
|
|
107
|
+
text: string;
|
|
108
|
+
}[];
|
|
109
|
+
tagline?: undefined;
|
|
110
|
+
} | null;
|
|
111
|
+
|
|
112
|
+
export { getPlanFromPriceId };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-FLUV3ASQ.mjs";import"../chunk-F6C3QYRM.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-UBCCNLBS.mjs";export{a as getPlanFromPriceId};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-KL7VCF4Y.mjs";export{a as nanoid};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-I5Y5DKPK.mjs";export{a as nFormatter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-MPU6JRPV.mjs";export{a as timeAgo};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-ZJKRLIJQ.mjs";export{a as truncate};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const isValidUrl: (url: string) => boolean;
|
|
2
|
+
declare const getUrlFromString: (str: string) => string | null | undefined;
|
|
3
|
+
declare const getSearchParams: (url: string) => Record<string, string>;
|
|
4
|
+
declare const getParamsFromURL: (url: string) => Record<string, string>;
|
|
5
|
+
declare const constructURLFromUTMParams: (url: string, utmParams: Record<string, string>) => string;
|
|
6
|
+
declare const paramsMetadata: {
|
|
7
|
+
display: string;
|
|
8
|
+
key: string;
|
|
9
|
+
examples: string;
|
|
10
|
+
}[];
|
|
11
|
+
declare const getUrlWithoutUTMParams: (url: string) => string;
|
|
12
|
+
|
|
13
|
+
export { constructURLFromUTMParams, getParamsFromURL, getSearchParams, getUrlFromString, getUrlWithoutUTMParams, isValidUrl, paramsMetadata };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../chunk-UUWTKITJ.mjs";export{e as constructURLFromUTMParams,d as getParamsFromURL,c as getSearchParams,b as getUrlFromString,g as getUrlWithoutUTMParams,a as isValidUrl,f as paramsMetadata};
|