@dub/utils 0.0.29 → 0.0.31

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 (55) hide show
  1. package/dist/chunk-3DLEUJV3.mjs +1 -0
  2. package/dist/chunk-46LXJSPI.mjs +1 -0
  3. package/dist/chunk-4CH6MXF3.mjs +1 -0
  4. package/dist/chunk-4RSTNN7M.mjs +1 -0
  5. package/dist/chunk-4UYPINYJ.mjs +1 -0
  6. package/dist/chunk-63ND5Z3I.mjs +1 -0
  7. package/dist/chunk-664ZT47I.mjs +1 -0
  8. package/dist/chunk-6F4SZBJ3.mjs +1 -0
  9. package/dist/chunk-6VWTK5CW.mjs +1 -0
  10. package/dist/chunk-ABQ54CVL.mjs +1 -0
  11. package/dist/chunk-ALOPKGPB.mjs +1 -0
  12. package/dist/chunk-BEVRCJ4O.mjs +1 -0
  13. package/dist/chunk-C6XEPXSI.mjs +1 -0
  14. package/dist/chunk-DPUZZ3ID.mjs +1 -0
  15. package/dist/chunk-E5X57EHU.mjs +1 -0
  16. package/dist/chunk-EA7SA6OZ.mjs +1 -0
  17. package/dist/chunk-EHLVQXPN.mjs +1 -0
  18. package/dist/chunk-ET54P7CM.mjs +1 -0
  19. package/dist/chunk-FEGM4SDU.mjs +1 -0
  20. package/dist/chunk-GGIZK3EO.mjs +1 -0
  21. package/dist/chunk-HZKMK3KA.mjs +1 -0
  22. package/dist/chunk-IVQJMP4E.mjs +1 -0
  23. package/dist/chunk-K4QTPYBS.mjs +1 -0
  24. package/dist/chunk-KT3MZAWK.mjs +1 -0
  25. package/dist/chunk-LHYOSLSW.mjs +1 -0
  26. package/dist/chunk-LMQ4666D.mjs +1 -0
  27. package/dist/chunk-LQLVMKKY.mjs +1 -0
  28. package/dist/chunk-OTWCQOKL.mjs +1 -0
  29. package/dist/chunk-OWV4H34S.mjs +1 -0
  30. package/dist/chunk-PXBT4TKP.mjs +1 -0
  31. package/dist/chunk-PXSGKN2A.mjs +1 -0
  32. package/dist/chunk-SNEDSZS7.mjs +1 -0
  33. package/dist/chunk-TM2H2P2D.mjs +1 -0
  34. package/dist/chunk-TTNDDYLJ.mjs +1 -0
  35. package/dist/chunk-TXJYGQAV.mjs +1 -0
  36. package/dist/chunk-UVNDPH4P.mjs +1 -0
  37. package/dist/chunk-W67C4SNA.mjs +1 -0
  38. package/dist/chunk-YDE3WII6.mjs +1 -0
  39. package/dist/chunk-YOOUKTVN.mjs +1 -0
  40. package/dist/chunk-ZNAHVPCM.mjs +1 -0
  41. package/dist/chunk-ZRPMW6I7.mjs +1 -0
  42. package/dist/constants/index.d.ts +567 -2
  43. package/dist/constants/index.mjs +1 -1
  44. package/dist/constants/misc.d.ts +2 -1
  45. package/dist/constants/misc.mjs +1 -1
  46. package/dist/functions/construct-metadata.mjs +1 -1
  47. package/dist/functions/domains.mjs +1 -1
  48. package/dist/functions/index.d.ts +0 -1
  49. package/dist/functions/index.mjs +1 -1
  50. package/dist/functions/log.d.ts +1 -1
  51. package/dist/functions/log.mjs +1 -1
  52. package/dist/functions/misc.mjs +1 -1
  53. package/dist/index.d.ts +2 -3
  54. package/dist/index.mjs +1 -1
  55. package/package.json +2 -2
@@ -5,7 +5,7 @@ export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_C
5
5
  export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS } from './layout.js';
6
6
  export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './localhost.js';
7
7
  export { DEFAULT_REDIRECTS, DUB_HEADERS } from './middleware.js';
8
- export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT } from './misc.js';
8
+ export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './misc.js';
9
9
  export { SAML_PROVIDERS } from './saml.js';
10
10
 
11
11
  declare const PLANS: ({
@@ -234,6 +234,232 @@ declare const FREE_PLAN: {
234
234
  text: string;
235
235
  }[];
236
236
  };
237
+ declare const PRO_PLAN: {
238
+ name: string;
239
+ tagline: string;
240
+ price: {
241
+ monthly: number;
242
+ yearly: number;
243
+ ids?: undefined;
244
+ };
245
+ limits: {
246
+ links: number;
247
+ clicks: number;
248
+ domains: number;
249
+ tags: number;
250
+ users: number;
251
+ };
252
+ colors: {
253
+ bg: string;
254
+ text: string;
255
+ };
256
+ cta: {
257
+ text: string;
258
+ href: string;
259
+ color: string;
260
+ shortText?: undefined;
261
+ };
262
+ featureTitle: string;
263
+ features: ({
264
+ text: string;
265
+ footnote?: undefined;
266
+ } | {
267
+ text: string;
268
+ footnote: string;
269
+ } | {
270
+ text: string;
271
+ footnote: {
272
+ title: string;
273
+ cta: string;
274
+ href: string;
275
+ };
276
+ })[];
277
+ link?: undefined;
278
+ } | {
279
+ name: string;
280
+ tagline: string;
281
+ link: string;
282
+ price: {
283
+ monthly: number;
284
+ yearly: number;
285
+ ids: string[];
286
+ };
287
+ limits: {
288
+ links: number;
289
+ clicks: number;
290
+ domains: number;
291
+ tags: number;
292
+ users: number;
293
+ };
294
+ colors: {
295
+ bg: string;
296
+ text: string;
297
+ };
298
+ cta: {
299
+ text: string;
300
+ shortText: string;
301
+ href: string;
302
+ color: string;
303
+ };
304
+ featureTitle: string;
305
+ features: ({
306
+ text: string;
307
+ footnote?: undefined;
308
+ } | {
309
+ text: string;
310
+ footnote: string;
311
+ } | {
312
+ text: string;
313
+ footnote: {
314
+ title: string;
315
+ cta: string;
316
+ href: string;
317
+ };
318
+ })[];
319
+ } | {
320
+ name: string;
321
+ tagline: string;
322
+ link: string;
323
+ price: {
324
+ monthly: null;
325
+ yearly: null;
326
+ ids?: undefined;
327
+ };
328
+ limits: {
329
+ links: null;
330
+ clicks: null;
331
+ domains: null;
332
+ tags?: undefined;
333
+ users?: undefined;
334
+ };
335
+ colors: {
336
+ bg: string;
337
+ text: string;
338
+ };
339
+ cta: {
340
+ text: string;
341
+ href: string;
342
+ color: string;
343
+ shortText?: undefined;
344
+ };
345
+ featureTitle: string;
346
+ features: {
347
+ text: string;
348
+ }[];
349
+ };
350
+ declare const ENTERPRISE_PLAN: {
351
+ name: string;
352
+ tagline: string;
353
+ price: {
354
+ monthly: number;
355
+ yearly: number;
356
+ ids?: undefined;
357
+ };
358
+ limits: {
359
+ links: number;
360
+ clicks: number;
361
+ domains: number;
362
+ tags: number;
363
+ users: number;
364
+ };
365
+ colors: {
366
+ bg: string;
367
+ text: string;
368
+ };
369
+ cta: {
370
+ text: string;
371
+ href: string;
372
+ color: string;
373
+ shortText?: undefined;
374
+ };
375
+ featureTitle: string;
376
+ features: ({
377
+ text: string;
378
+ footnote?: undefined;
379
+ } | {
380
+ text: string;
381
+ footnote: string;
382
+ } | {
383
+ text: string;
384
+ footnote: {
385
+ title: string;
386
+ cta: string;
387
+ href: string;
388
+ };
389
+ })[];
390
+ link?: undefined;
391
+ } | {
392
+ name: string;
393
+ tagline: string;
394
+ link: string;
395
+ price: {
396
+ monthly: number;
397
+ yearly: number;
398
+ ids: string[];
399
+ };
400
+ limits: {
401
+ links: number;
402
+ clicks: number;
403
+ domains: number;
404
+ tags: number;
405
+ users: number;
406
+ };
407
+ colors: {
408
+ bg: string;
409
+ text: string;
410
+ };
411
+ cta: {
412
+ text: string;
413
+ shortText: string;
414
+ href: string;
415
+ color: string;
416
+ };
417
+ featureTitle: string;
418
+ features: ({
419
+ text: string;
420
+ footnote?: undefined;
421
+ } | {
422
+ text: string;
423
+ footnote: string;
424
+ } | {
425
+ text: string;
426
+ footnote: {
427
+ title: string;
428
+ cta: string;
429
+ href: string;
430
+ };
431
+ })[];
432
+ } | {
433
+ name: string;
434
+ tagline: string;
435
+ link: string;
436
+ price: {
437
+ monthly: null;
438
+ yearly: null;
439
+ ids?: undefined;
440
+ };
441
+ limits: {
442
+ links: null;
443
+ clicks: null;
444
+ domains: null;
445
+ tags?: undefined;
446
+ users?: undefined;
447
+ };
448
+ colors: {
449
+ bg: string;
450
+ text: string;
451
+ };
452
+ cta: {
453
+ text: string;
454
+ href: string;
455
+ color: string;
456
+ shortText?: undefined;
457
+ };
458
+ featureTitle: string;
459
+ features: {
460
+ text: string;
461
+ }[];
462
+ };
237
463
  declare const SELF_SERVE_PAID_PLANS: ({
238
464
  name: string;
239
465
  tagline: string;
@@ -348,6 +574,345 @@ declare const SELF_SERVE_PAID_PLANS: ({
348
574
  }[];
349
575
  })[];
350
576
  declare const FREE_PROJECTS_LIMIT = 2;
577
+ declare const getPlanFromPriceId: (priceId: string) => {
578
+ name: string;
579
+ tagline: string;
580
+ price: {
581
+ monthly: number;
582
+ yearly: number;
583
+ ids?: undefined;
584
+ };
585
+ limits: {
586
+ links: number;
587
+ clicks: number;
588
+ domains: number;
589
+ tags: number;
590
+ users: number;
591
+ };
592
+ colors: {
593
+ bg: string;
594
+ text: string;
595
+ };
596
+ cta: {
597
+ text: string;
598
+ href: string;
599
+ color: string;
600
+ shortText?: undefined;
601
+ };
602
+ featureTitle: string;
603
+ features: ({
604
+ text: string;
605
+ footnote?: undefined;
606
+ } | {
607
+ text: string;
608
+ footnote: string;
609
+ } | {
610
+ text: string;
611
+ footnote: {
612
+ title: string;
613
+ cta: string;
614
+ href: string;
615
+ };
616
+ })[];
617
+ link?: undefined;
618
+ } | {
619
+ name: string;
620
+ tagline: string;
621
+ link: string;
622
+ price: {
623
+ monthly: number;
624
+ yearly: number;
625
+ ids: string[];
626
+ };
627
+ limits: {
628
+ links: number;
629
+ clicks: number;
630
+ domains: number;
631
+ tags: number;
632
+ users: number;
633
+ };
634
+ colors: {
635
+ bg: string;
636
+ text: string;
637
+ };
638
+ cta: {
639
+ text: string;
640
+ shortText: string;
641
+ href: string;
642
+ color: string;
643
+ };
644
+ featureTitle: string;
645
+ features: ({
646
+ text: string;
647
+ footnote?: undefined;
648
+ } | {
649
+ text: string;
650
+ footnote: string;
651
+ } | {
652
+ text: string;
653
+ footnote: {
654
+ title: string;
655
+ cta: string;
656
+ href: string;
657
+ };
658
+ })[];
659
+ } | {
660
+ name: string;
661
+ tagline: string;
662
+ link: string;
663
+ price: {
664
+ monthly: null;
665
+ yearly: null;
666
+ ids?: undefined;
667
+ };
668
+ limits: {
669
+ links: null;
670
+ clicks: null;
671
+ domains: null;
672
+ tags?: undefined;
673
+ users?: undefined;
674
+ };
675
+ colors: {
676
+ bg: string;
677
+ text: string;
678
+ };
679
+ cta: {
680
+ text: string;
681
+ href: string;
682
+ color: string;
683
+ shortText?: undefined;
684
+ };
685
+ featureTitle: string;
686
+ features: {
687
+ text: string;
688
+ }[];
689
+ } | null;
690
+ declare const getPlanDetails: (plan: string) => {
691
+ name: string;
692
+ tagline: string;
693
+ price: {
694
+ monthly: number;
695
+ yearly: number;
696
+ ids?: undefined;
697
+ };
698
+ limits: {
699
+ links: number;
700
+ clicks: number;
701
+ domains: number;
702
+ tags: number;
703
+ users: number;
704
+ };
705
+ colors: {
706
+ bg: string;
707
+ text: string;
708
+ };
709
+ cta: {
710
+ text: string;
711
+ href: string;
712
+ color: string;
713
+ shortText?: undefined;
714
+ };
715
+ featureTitle: string;
716
+ features: ({
717
+ text: string;
718
+ footnote?: undefined;
719
+ } | {
720
+ text: string;
721
+ footnote: string;
722
+ } | {
723
+ text: string;
724
+ footnote: {
725
+ title: string;
726
+ cta: string;
727
+ href: string;
728
+ };
729
+ })[];
730
+ link?: undefined;
731
+ } | {
732
+ name: string;
733
+ tagline: string;
734
+ link: string;
735
+ price: {
736
+ monthly: number;
737
+ yearly: number;
738
+ ids: string[];
739
+ };
740
+ limits: {
741
+ links: number;
742
+ clicks: number;
743
+ domains: number;
744
+ tags: number;
745
+ users: number;
746
+ };
747
+ colors: {
748
+ bg: string;
749
+ text: string;
750
+ };
751
+ cta: {
752
+ text: string;
753
+ shortText: string;
754
+ href: string;
755
+ color: string;
756
+ };
757
+ featureTitle: string;
758
+ features: ({
759
+ text: string;
760
+ footnote?: undefined;
761
+ } | {
762
+ text: string;
763
+ footnote: string;
764
+ } | {
765
+ text: string;
766
+ footnote: {
767
+ title: string;
768
+ cta: string;
769
+ href: string;
770
+ };
771
+ })[];
772
+ } | {
773
+ name: string;
774
+ tagline: string;
775
+ link: string;
776
+ price: {
777
+ monthly: null;
778
+ yearly: null;
779
+ ids?: undefined;
780
+ };
781
+ limits: {
782
+ links: null;
783
+ clicks: null;
784
+ domains: null;
785
+ tags?: undefined;
786
+ users?: undefined;
787
+ };
788
+ colors: {
789
+ bg: string;
790
+ text: string;
791
+ };
792
+ cta: {
793
+ text: string;
794
+ href: string;
795
+ color: string;
796
+ shortText?: undefined;
797
+ };
798
+ featureTitle: string;
799
+ features: {
800
+ text: string;
801
+ }[];
802
+ };
803
+ declare const getNextPlan: (plan: string) => {
804
+ name: string;
805
+ tagline: string;
806
+ price: {
807
+ monthly: number;
808
+ yearly: number;
809
+ ids?: undefined;
810
+ };
811
+ limits: {
812
+ links: number;
813
+ clicks: number;
814
+ domains: number;
815
+ tags: number;
816
+ users: number;
817
+ };
818
+ colors: {
819
+ bg: string;
820
+ text: string;
821
+ };
822
+ cta: {
823
+ text: string;
824
+ href: string;
825
+ color: string;
826
+ shortText?: undefined;
827
+ };
828
+ featureTitle: string;
829
+ features: ({
830
+ text: string;
831
+ footnote?: undefined;
832
+ } | {
833
+ text: string;
834
+ footnote: string;
835
+ } | {
836
+ text: string;
837
+ footnote: {
838
+ title: string;
839
+ cta: string;
840
+ href: string;
841
+ };
842
+ })[];
843
+ link?: undefined;
844
+ } | {
845
+ name: string;
846
+ tagline: string;
847
+ link: string;
848
+ price: {
849
+ monthly: number;
850
+ yearly: number;
851
+ ids: string[];
852
+ };
853
+ limits: {
854
+ links: number;
855
+ clicks: number;
856
+ domains: number;
857
+ tags: number;
858
+ users: number;
859
+ };
860
+ colors: {
861
+ bg: string;
862
+ text: string;
863
+ };
864
+ cta: {
865
+ text: string;
866
+ shortText: string;
867
+ href: string;
868
+ color: string;
869
+ };
870
+ featureTitle: string;
871
+ features: ({
872
+ text: string;
873
+ footnote?: undefined;
874
+ } | {
875
+ text: string;
876
+ footnote: string;
877
+ } | {
878
+ text: string;
879
+ footnote: {
880
+ title: string;
881
+ cta: string;
882
+ href: string;
883
+ };
884
+ })[];
885
+ } | {
886
+ name: string;
887
+ tagline: string;
888
+ link: string;
889
+ price: {
890
+ monthly: null;
891
+ yearly: null;
892
+ ids?: undefined;
893
+ };
894
+ limits: {
895
+ links: null;
896
+ clicks: null;
897
+ domains: null;
898
+ tags?: undefined;
899
+ users?: undefined;
900
+ };
901
+ colors: {
902
+ bg: string;
903
+ text: string;
904
+ };
905
+ cta: {
906
+ text: string;
907
+ href: string;
908
+ color: string;
909
+ shortText?: undefined;
910
+ };
911
+ featureTitle: string;
912
+ features: {
913
+ text: string;
914
+ }[];
915
+ };
351
916
 
352
917
  declare const APP_NAME: string;
353
918
  declare const SHORT_DOMAIN: string;
@@ -379,4 +944,4 @@ declare const DUB_DOMAINS: {
379
944
  projectId: string;
380
945
  }[];
381
946
 
382
- export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN };
947
+ export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, ENTERPRISE_PLAN, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, PRO_PLAN, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId };
@@ -1 +1 @@
1
- import{a as s,b as t,c as u,d as v,e as x,f as y,g as z,h as A,i as B,j as C,k as D,l as E,m as F,n as G,o as H,p as I,q as J,r as K,s as L,t as M}from"../chunk-VTLX43W7.mjs";import{a as n,b as o}from"../chunk-5VUO5P2B.mjs";import{a as p,b as q,c as r}from"../chunk-5FPTMLJS.mjs";import{a as w}from"../chunk-PUFZASP4.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b}from"../chunk-2RCZ6Q6L.mjs";import{a as c,b as d}from"../chunk-SYT2IXG6.mjs";import{a as e,b as f,c as g,d as h}from"../chunk-2SICE2ZS.mjs";import{a as i,b as j,c as k}from"../chunk-WE5LUVZO.mjs";import{a as l,b as m}from"../chunk-FYXE2IZT.mjs";export{F as ADMIN_HOSTNAMES,j as ALL_TOOLS,E as API_DOMAIN,D as API_HOSTNAMES,B as APP_DOMAIN,C as APP_DOMAIN_WITH_NGROK,A as APP_HOSTNAMES,x as APP_NAME,k as COMPARE_PAGES,b as COUNTRIES,p as DEFAULT_LINK_PROPS,n as DEFAULT_REDIRECTS,I as DEMO_LINK_ID,M as DUB_DOMAINS,o as DUB_HEADERS,G as DUB_LOGO,J as DUB_PROJECT_ID,H as DUB_THUMBNAIL,h as FADE_IN_ANIMATION_SETTINGS,e as FRAMER_MOTION_LIST_ITEM_VARIANTS,t as FREE_PLAN,v as FREE_PROJECTS_LIMIT,q as GOOGLE_FAVICON_URL,i as HIDE_BACKGROUND_SEGMENTS,z as HOME_DOMAIN,K as LEGAL_PROJECT_ID,L as LEGAL_USER_ID,l as LOCALHOST_GEO_DATA,m as LOCALHOST_IP,r as PAGINATION_LIMIT,s as PLANS,w as SAML_PROVIDERS,c as SECOND_LEVEL_DOMAINS,u as SELF_SERVE_PAID_PLANS,y as SHORT_DOMAIN,d as SPECIAL_APEX_DOMAINS,f as STAGGER_CHILD_VARIANTS,g as SWIPE_REVEAL_ANIMATION_SETTINGS,a as ccTLDs};
1
+ import{A as L,B as M,C as N,D as O,E as P,F as Q,G as R,H as S,j as t,k as u,l as v,m as w,n as x,o as y,p as z,q as A,r as B,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"../chunk-ZNAHVPCM.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import{a as n,b as o}from"../chunk-5VUO5P2B.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-PXSGKN2A.mjs";import{a as C}from"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import{a}from"../chunk-YUMUNL66.mjs";import{a as b}from"../chunk-2RCZ6Q6L.mjs";import{a as c,b as d}from"../chunk-SYT2IXG6.mjs";import{a as e,b as f,c as g,d as h}from"../chunk-2SICE2ZS.mjs";import{a as i,b as j,c as k}from"../chunk-WE5LUVZO.mjs";import{a as l,b as m}from"../chunk-FYXE2IZT.mjs";export{L as ADMIN_HOSTNAMES,j as ALL_TOOLS,K as API_DOMAIN,J as API_HOSTNAMES,H as APP_DOMAIN,I as APP_DOMAIN_WITH_NGROK,G as APP_HOSTNAMES,D as APP_NAME,k as COMPARE_PAGES,b as COUNTRIES,p as DEFAULT_LINK_PROPS,n as DEFAULT_REDIRECTS,O as DEMO_LINK_ID,S as DUB_DOMAINS,o as DUB_HEADERS,M as DUB_LOGO,P as DUB_PROJECT_ID,N as DUB_THUMBNAIL,w as ENTERPRISE_PLAN,h as FADE_IN_ANIMATION_SETTINGS,e as FRAMER_MOTION_LIST_ITEM_VARIANTS,u as FREE_PLAN,y as FREE_PROJECTS_LIMIT,q as GOOGLE_FAVICON_URL,i as HIDE_BACKGROUND_SEGMENTS,F as HOME_DOMAIN,Q as LEGAL_PROJECT_ID,R as LEGAL_USER_ID,l as LOCALHOST_GEO_DATA,m as LOCALHOST_IP,r as PAGINATION_LIMIT,t as PLANS,v as PRO_PLAN,C as SAML_PROVIDERS,c as SECOND_LEVEL_DOMAINS,x as SELF_SERVE_PAID_PLANS,E as SHORT_DOMAIN,d as SPECIAL_APEX_DOMAINS,f as STAGGER_CHILD_VARIANTS,g as SWIPE_REVEAL_ANIMATION_SETTINGS,s as TWO_WEEKS_IN_SECONDS,a as ccTLDs,B as getNextPlan,A as getPlanDetails,z as getPlanFromPriceId};
@@ -17,5 +17,6 @@ declare const DEFAULT_LINK_PROPS: {
17
17
  };
18
18
  declare const GOOGLE_FAVICON_URL = "https://www.google.com/s2/favicons?sz=64&domain_url=";
19
19
  declare const PAGINATION_LIMIT = 100;
20
+ declare const TWO_WEEKS_IN_SECONDS: number;
20
21
 
21
- export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT };
22
+ export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS };
@@ -1 +1 @@
1
- import{a,b,c}from"../chunk-5FPTMLJS.mjs";export{a as DEFAULT_LINK_PROPS,b as GOOGLE_FAVICON_URL,c as PAGINATION_LIMIT};
1
+ import{a,b,c,d}from"../chunk-PXSGKN2A.mjs";export{a as DEFAULT_LINK_PROPS,b as GOOGLE_FAVICON_URL,c as PAGINATION_LIMIT,d as TWO_WEEKS_IN_SECONDS};
@@ -1 +1 @@
1
- import{a}from"../chunk-2TURBZEL.mjs";import"../chunk-VTLX43W7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-5FPTMLJS.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as constructMetadata};
1
+ import{a}from"../chunk-ZNAHVPCM.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as constructMetadata};
@@ -1 +1 @@
1
- import{a,b,c,d,e,f,g,h}from"../chunk-VEUP2DC6.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-VTLX43W7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-5FPTMLJS.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.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};
1
+ import{b as a,c as b,d as c,e as d,f as e,g as f,h as g,i as h}from"../chunk-ZNAHVPCM.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.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};
@@ -11,7 +11,6 @@ export { generateMD5Hash } from './hash.js';
11
11
  export { isIframeable } from './is-iframeable.js';
12
12
  export { linkConstructor } from './link-constructor.js';
13
13
  export { log } from './log.js';
14
- export { getPlanFromPriceId } from './misc.js';
15
14
  export { nanoid } from './nanoid.js';
16
15
  export { nFormatter } from './nformatter.js';
17
16
  export { timeAgo } from './time-ago.js';
@@ -1 +1 @@
1
- import"../chunk-SPSUTBZ7.mjs";import{a as F}from"../chunk-PEPVOMPB.mjs";import{a as G}from"../chunk-6Q2MCPZP.mjs";import{a as H}from"../chunk-OWYWG4M6.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 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-VEUP2DC6.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 as E}from"../chunk-5PD4TPH7.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-2TURBZEL.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"../chunk-VTLX43W7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-5FPTMLJS.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.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};
1
+ import{a as d,b as s,c as t,d as u,e as v,f as w,g as x,h as y,i as z}from"../chunk-ZNAHVPCM.mjs";import{a as F}from"../chunk-GGIZK3EO.mjs";import{a as G}from"../chunk-OWYWG4M6.mjs";import{a as H}from"../chunk-I5Y5DKPK.mjs";import{a as I}from"../chunk-MPU6JRPV.mjs";import{a as J}from"../chunk-ZJKRLIJQ.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 k}from"../chunk-ZECUYKGD.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 as E}from"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.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 e,b as f,c as g,d as h,e as i,f as j}from"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.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,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,H as nFormatter,G as nanoid,q as paramsMetadata,I as timeAgo,J as truncate,t as validDomainRegex,u as validKeyRegex,v as validSlugRegex};
@@ -1,6 +1,6 @@
1
1
  declare const log: ({ message, type, mention, }: {
2
2
  message: string;
3
- type: "alerts" | "cron" | "links" | "errors";
3
+ type: "alerts" | "cron" | "links" | "subscribers" | "errors";
4
4
  mention?: boolean | undefined;
5
5
  }) => Promise<Response | undefined>;
6
6
 
@@ -1 +1 @@
1
- import{a}from"../chunk-PEPVOMPB.mjs";export{a as log};
1
+ import{a}from"../chunk-GGIZK3EO.mjs";export{a as log};
@@ -1 +1 @@
1
- import{a}from"../chunk-6Q2MCPZP.mjs";import"../chunk-VTLX43W7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-5FPTMLJS.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as getPlanFromPriceId};
1
+ import{j as a}from"../chunk-UVNDPH4P.mjs";import"../chunk-GGIZK3EO.mjs";import"../chunk-OWYWG4M6.mjs";import"../chunk-I5Y5DKPK.mjs";import"../chunk-MPU6JRPV.mjs";import"../chunk-ZJKRLIJQ.mjs";import"../chunk-UUWTKITJ.mjs";import"../chunk-ZECUYKGD.mjs";import"../chunk-EMO4MGOU.mjs";import"../chunk-6XPTKHZD.mjs";import"../chunk-XWSEDYR7.mjs";import"../chunk-3BUV2ANI.mjs";import"../chunk-5PD4TPH7.mjs";import"../chunk-5VUO5P2B.mjs";import"../chunk-PXSGKN2A.mjs";import"../chunk-PUFZASP4.mjs";import"../chunk-GTQBILTE.mjs";import"../chunk-2OJAP233.mjs";import"../chunk-NEIHTFSW.mjs";import"../chunk-LXJVNY3R.mjs";import"../chunk-YUMUNL66.mjs";import"../chunk-2RCZ6Q6L.mjs";import"../chunk-SYT2IXG6.mjs";import"../chunk-2SICE2ZS.mjs";import"../chunk-WE5LUVZO.mjs";import"../chunk-FYXE2IZT.mjs";export{a as getPlanFromPriceId};
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN } from './constants/index.js';
1
+ export { ADMIN_HOSTNAMES, API_DOMAIN, API_HOSTNAMES, APP_DOMAIN, APP_DOMAIN_WITH_NGROK, APP_HOSTNAMES, APP_NAME, DEMO_LINK_ID, DUB_DOMAINS, DUB_LOGO, DUB_PROJECT_ID, DUB_THUMBNAIL, ENTERPRISE_PLAN, FREE_PLAN, FREE_PROJECTS_LIMIT, HOME_DOMAIN, LEGAL_PROJECT_ID, LEGAL_USER_ID, PLANS, PRO_PLAN, SELF_SERVE_PAID_PLANS, SHORT_DOMAIN, getNextPlan, getPlanDetails, getPlanFromPriceId } from './constants/index.js';
2
2
  export { capitalize } from './functions/capitalize.js';
3
3
  export { chunk } from './functions/chunk.js';
4
4
  export { cn } from './functions/cn.js';
@@ -12,7 +12,6 @@ export { generateMD5Hash } from './functions/hash.js';
12
12
  export { isIframeable } from './functions/is-iframeable.js';
13
13
  export { linkConstructor } from './functions/link-constructor.js';
14
14
  export { log } from './functions/log.js';
15
- export { getPlanFromPriceId } from './functions/misc.js';
16
15
  export { nanoid } from './functions/nanoid.js';
17
16
  export { nFormatter } from './functions/nformatter.js';
18
17
  export { timeAgo } from './functions/time-ago.js';
@@ -25,7 +24,7 @@ export { FADE_IN_ANIMATION_SETTINGS, FRAMER_MOTION_LIST_ITEM_VARIANTS, STAGGER_C
25
24
  export { ALL_TOOLS, COMPARE_PAGES, HIDE_BACKGROUND_SEGMENTS } from './constants/layout.js';
26
25
  export { LOCALHOST_GEO_DATA, LOCALHOST_IP } from './constants/localhost.js';
27
26
  export { DEFAULT_REDIRECTS, DUB_HEADERS } from './constants/middleware.js';
28
- export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT } from './constants/misc.js';
27
+ export { DEFAULT_LINK_PROPS, GOOGLE_FAVICON_URL, PAGINATION_LIMIT, TWO_WEEKS_IN_SECONDS } from './constants/misc.js';
29
28
  export { SAML_PROVIDERS } from './constants/saml.js';
30
29
  import 'clsx';
31
30
  import 'next';