@appfunnel-dev/sdk 2.0.1 → 2.1.0
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/CHANGELOG.md +28 -0
- package/dist/{checkout-B1K6ozwk.d.ts → checkout-BPYU4wXF.d.ts} +44 -16
- package/dist/{checkout-C4tFUEdF.d.cts → checkout-BzP__Mxe.d.cts} +44 -16
- package/dist/{chunk-WCBVSZHJ.js → chunk-AW2YURFE.js} +7 -4
- package/dist/chunk-AW2YURFE.js.map +1 -0
- package/dist/{chunk-E7JXWUNV.cjs → chunk-MBSXEIXT.cjs} +7 -4
- package/dist/chunk-MBSXEIXT.cjs.map +1 -0
- package/dist/driver-paddle.d.cts +1 -1
- package/dist/driver-paddle.d.ts +1 -1
- package/dist/driver-stripe.cjs +18 -2
- package/dist/driver-stripe.cjs.map +1 -1
- package/dist/driver-stripe.d.cts +1 -1
- package/dist/driver-stripe.d.ts +1 -1
- package/dist/driver-stripe.js +17 -1
- package/dist/driver-stripe.js.map +1 -1
- package/dist/index.cjs +67 -67
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-E7JXWUNV.cjs.map +0 -1
- package/dist/chunk-WCBVSZHJ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkOR4NHLLL_cjs = require('./chunk-OR4NHLLL.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkMBSXEIXT_cjs = require('./chunk-MBSXEIXT.cjs');
|
|
5
5
|
var chunk6KTFVZA4_cjs = require('./chunk-6KTFVZA4.cjs');
|
|
6
6
|
require('./chunk-JL42MNGM.cjs');
|
|
7
7
|
require('./chunk-5HUJEI26.cjs');
|
|
@@ -29,7 +29,7 @@ function resolveMeasurementSystem(contextRegion) {
|
|
|
29
29
|
return measurementSystemForCountry(contextRegion) ?? measurementSystemForCountry(navigatorRegion()) ?? "metric";
|
|
30
30
|
}
|
|
31
31
|
function useMeasurementSystem() {
|
|
32
|
-
const region =
|
|
32
|
+
const region = chunkMBSXEIXT_cjs.useLocale().region;
|
|
33
33
|
const [system, setSystem] = react.useState("metric");
|
|
34
34
|
react.useEffect(() => {
|
|
35
35
|
setSystem(resolveMeasurementSystem(region));
|
|
@@ -239,7 +239,7 @@ function sessionStorageKey(cfg) {
|
|
|
239
239
|
return `af_sid:${cfg.campaignId}`;
|
|
240
240
|
}
|
|
241
241
|
function createPlatformTracker(cfg) {
|
|
242
|
-
if (typeof window === "undefined") return
|
|
242
|
+
if (typeof window === "undefined") return chunkMBSXEIXT_cjs.createConsoleTracker();
|
|
243
243
|
const url = ingestEndpoint(cfg);
|
|
244
244
|
const landingUrl = window.location.href;
|
|
245
245
|
const sidKey = sessionStorageKey(cfg);
|
|
@@ -360,7 +360,7 @@ function createPlatformTracker(cfg) {
|
|
|
360
360
|
} catch {
|
|
361
361
|
}
|
|
362
362
|
if (cfg.experiment?.id && cfg.experiment.variant) {
|
|
363
|
-
enqueue("experiment.exposure",
|
|
363
|
+
enqueue("experiment.exposure", chunkMBSXEIXT_cjs.exposurePayload(cfg.experiment.id, cfg.experiment.variant, cfg.experiment.version));
|
|
364
364
|
}
|
|
365
365
|
return {
|
|
366
366
|
track: (event, data, userData) => enqueue(event, data, userData),
|
|
@@ -440,14 +440,14 @@ function createFunnelTree({
|
|
|
440
440
|
return react.createElement(
|
|
441
441
|
react.Fragment,
|
|
442
442
|
null,
|
|
443
|
-
react.createElement(
|
|
444
|
-
embedEnabled ? react.createElement(
|
|
443
|
+
react.createElement(chunkMBSXEIXT_cjs.CheckoutResume, null),
|
|
444
|
+
embedEnabled ? react.createElement(chunkMBSXEIXT_cjs.EmbedBridge, null) : null,
|
|
445
445
|
layout ? react.createElement(layout, null, children) : children
|
|
446
446
|
);
|
|
447
447
|
};
|
|
448
448
|
return react.createElement(AssetsProvider, {
|
|
449
449
|
assets: opts.assets,
|
|
450
|
-
children: react.createElement(
|
|
450
|
+
children: react.createElement(chunkMBSXEIXT_cjs.FunnelProvider, {
|
|
451
451
|
config,
|
|
452
452
|
offerings: opts.offerings ?? [],
|
|
453
453
|
messages: opts.messages ?? messages,
|
|
@@ -463,7 +463,7 @@ function createFunnelTree({
|
|
|
463
463
|
customerId: opts.customerId ?? null,
|
|
464
464
|
sessionId: opts.sessionId ?? null
|
|
465
465
|
},
|
|
466
|
-
children: react.createElement(
|
|
466
|
+
children: react.createElement(chunkMBSXEIXT_cjs.FunnelView, {
|
|
467
467
|
pages,
|
|
468
468
|
layout: layoutWithResume,
|
|
469
469
|
initialKey: opts.initialKey,
|
|
@@ -492,8 +492,8 @@ function Choice({
|
|
|
492
492
|
selectedClassName,
|
|
493
493
|
advanceOnSelect
|
|
494
494
|
}) {
|
|
495
|
-
const { value, set } =
|
|
496
|
-
const nav =
|
|
495
|
+
const { value, set } = chunkMBSXEIXT_cjs.useField(bind);
|
|
496
|
+
const nav = chunkMBSXEIXT_cjs.useNavigation();
|
|
497
497
|
return options.map((opt) => {
|
|
498
498
|
const o = typeof opt === "string" ? { value: opt } : opt;
|
|
499
499
|
const selected = value === o.value;
|
|
@@ -515,7 +515,7 @@ function Choice({
|
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
function Next({ children, onClick, ...rest }) {
|
|
518
|
-
const { next } =
|
|
518
|
+
const { next } = chunkMBSXEIXT_cjs.useNavigation();
|
|
519
519
|
return react.createElement(
|
|
520
520
|
"button",
|
|
521
521
|
{
|
|
@@ -530,7 +530,7 @@ function Next({ children, onClick, ...rest }) {
|
|
|
530
530
|
);
|
|
531
531
|
}
|
|
532
532
|
function Back({ children, onClick, ...rest }) {
|
|
533
|
-
const { back, canGoBack } =
|
|
533
|
+
const { back, canGoBack } = chunkMBSXEIXT_cjs.useNavigation();
|
|
534
534
|
if (!canGoBack) return null;
|
|
535
535
|
return react.createElement(
|
|
536
536
|
"button",
|
|
@@ -568,10 +568,10 @@ function resolveStore(stores, platform) {
|
|
|
568
568
|
|
|
569
569
|
// src/download/DownloadButton.tsx
|
|
570
570
|
function usePlatform() {
|
|
571
|
-
return platformFor(
|
|
571
|
+
return platformFor(chunkMBSXEIXT_cjs.useFunnel().context);
|
|
572
572
|
}
|
|
573
573
|
function useAppDownload(stores) {
|
|
574
|
-
const funnel =
|
|
574
|
+
const funnel = chunkMBSXEIXT_cjs.useFunnel();
|
|
575
575
|
const latest = react.useRef(stores);
|
|
576
576
|
latest.current = stores;
|
|
577
577
|
const platform = platformFor(funnel.context);
|
|
@@ -729,215 +729,215 @@ Object.defineProperty(exports, "compileManifest", {
|
|
|
729
729
|
});
|
|
730
730
|
Object.defineProperty(exports, "Checkout", {
|
|
731
731
|
enumerable: true,
|
|
732
|
-
get: function () { return
|
|
732
|
+
get: function () { return chunkMBSXEIXT_cjs.Checkout; }
|
|
733
733
|
});
|
|
734
734
|
Object.defineProperty(exports, "CheckoutButton", {
|
|
735
735
|
enumerable: true,
|
|
736
|
-
get: function () { return
|
|
736
|
+
get: function () { return chunkMBSXEIXT_cjs.CheckoutButton; }
|
|
737
737
|
});
|
|
738
738
|
Object.defineProperty(exports, "CheckoutResume", {
|
|
739
739
|
enumerable: true,
|
|
740
|
-
get: function () { return
|
|
740
|
+
get: function () { return chunkMBSXEIXT_cjs.CheckoutResume; }
|
|
741
741
|
});
|
|
742
742
|
Object.defineProperty(exports, "CheckoutSpinner", {
|
|
743
743
|
enumerable: true,
|
|
744
|
-
get: function () { return
|
|
744
|
+
get: function () { return chunkMBSXEIXT_cjs.CheckoutSpinner; }
|
|
745
745
|
});
|
|
746
746
|
Object.defineProperty(exports, "FunnelProvider", {
|
|
747
747
|
enumerable: true,
|
|
748
|
-
get: function () { return
|
|
748
|
+
get: function () { return chunkMBSXEIXT_cjs.FunnelProvider; }
|
|
749
749
|
});
|
|
750
750
|
Object.defineProperty(exports, "FunnelToaster", {
|
|
751
751
|
enumerable: true,
|
|
752
|
-
get: function () { return
|
|
752
|
+
get: function () { return chunkMBSXEIXT_cjs.FunnelToaster; }
|
|
753
753
|
});
|
|
754
754
|
Object.defineProperty(exports, "FunnelView", {
|
|
755
755
|
enumerable: true,
|
|
756
|
-
get: function () { return
|
|
756
|
+
get: function () { return chunkMBSXEIXT_cjs.FunnelView; }
|
|
757
757
|
});
|
|
758
758
|
Object.defineProperty(exports, "Modal", {
|
|
759
759
|
enumerable: true,
|
|
760
|
-
get: function () { return
|
|
760
|
+
get: function () { return chunkMBSXEIXT_cjs.Modal; }
|
|
761
761
|
});
|
|
762
762
|
Object.defineProperty(exports, "Sheet", {
|
|
763
763
|
enumerable: true,
|
|
764
|
-
get: function () { return
|
|
764
|
+
get: function () { return chunkMBSXEIXT_cjs.Sheet; }
|
|
765
765
|
});
|
|
766
766
|
Object.defineProperty(exports, "UpsellButton", {
|
|
767
767
|
enumerable: true,
|
|
768
|
-
get: function () { return
|
|
768
|
+
get: function () { return chunkMBSXEIXT_cjs.UpsellButton; }
|
|
769
769
|
});
|
|
770
770
|
Object.defineProperty(exports, "VariableStore", {
|
|
771
771
|
enumerable: true,
|
|
772
|
-
get: function () { return
|
|
772
|
+
get: function () { return chunkMBSXEIXT_cjs.VariableStore; }
|
|
773
773
|
});
|
|
774
774
|
Object.defineProperty(exports, "attachBus", {
|
|
775
775
|
enumerable: true,
|
|
776
|
-
get: function () { return
|
|
776
|
+
get: function () { return chunkMBSXEIXT_cjs.attachBus; }
|
|
777
777
|
});
|
|
778
778
|
Object.defineProperty(exports, "buildAcquisition", {
|
|
779
779
|
enumerable: true,
|
|
780
|
-
get: function () { return
|
|
780
|
+
get: function () { return chunkMBSXEIXT_cjs.buildAcquisition; }
|
|
781
781
|
});
|
|
782
782
|
Object.defineProperty(exports, "buildContext", {
|
|
783
783
|
enumerable: true,
|
|
784
|
-
get: function () { return
|
|
784
|
+
get: function () { return chunkMBSXEIXT_cjs.buildContext; }
|
|
785
785
|
});
|
|
786
786
|
Object.defineProperty(exports, "createBus", {
|
|
787
787
|
enumerable: true,
|
|
788
|
-
get: function () { return
|
|
788
|
+
get: function () { return chunkMBSXEIXT_cjs.createBus; }
|
|
789
789
|
});
|
|
790
790
|
Object.defineProperty(exports, "createConsoleTracker", {
|
|
791
791
|
enumerable: true,
|
|
792
|
-
get: function () { return
|
|
792
|
+
get: function () { return chunkMBSXEIXT_cjs.createConsoleTracker; }
|
|
793
793
|
});
|
|
794
794
|
Object.defineProperty(exports, "createFunnelStore", {
|
|
795
795
|
enumerable: true,
|
|
796
|
-
get: function () { return
|
|
796
|
+
get: function () { return chunkMBSXEIXT_cjs.createFunnelStore; }
|
|
797
797
|
});
|
|
798
798
|
Object.defineProperty(exports, "createMockDriver", {
|
|
799
799
|
enumerable: true,
|
|
800
|
-
get: function () { return
|
|
800
|
+
get: function () { return chunkMBSXEIXT_cjs.createMockDriver; }
|
|
801
801
|
});
|
|
802
802
|
Object.defineProperty(exports, "defineModal", {
|
|
803
803
|
enumerable: true,
|
|
804
|
-
get: function () { return
|
|
804
|
+
get: function () { return chunkMBSXEIXT_cjs.defineModal; }
|
|
805
805
|
});
|
|
806
806
|
Object.defineProperty(exports, "dismissAllModals", {
|
|
807
807
|
enumerable: true,
|
|
808
|
-
get: function () { return
|
|
808
|
+
get: function () { return chunkMBSXEIXT_cjs.dismissAllModals; }
|
|
809
809
|
});
|
|
810
810
|
Object.defineProperty(exports, "driverWithEmail", {
|
|
811
811
|
enumerable: true,
|
|
812
|
-
get: function () { return
|
|
812
|
+
get: function () { return chunkMBSXEIXT_cjs.driverWithEmail; }
|
|
813
813
|
});
|
|
814
814
|
Object.defineProperty(exports, "hideModal", {
|
|
815
815
|
enumerable: true,
|
|
816
|
-
get: function () { return
|
|
816
|
+
get: function () { return chunkMBSXEIXT_cjs.hideModal; }
|
|
817
817
|
});
|
|
818
818
|
Object.defineProperty(exports, "isValidEmail", {
|
|
819
819
|
enumerable: true,
|
|
820
|
-
get: function () { return
|
|
820
|
+
get: function () { return chunkMBSXEIXT_cjs.isValidEmail; }
|
|
821
821
|
});
|
|
822
822
|
Object.defineProperty(exports, "newEventId", {
|
|
823
823
|
enumerable: true,
|
|
824
|
-
get: function () { return
|
|
824
|
+
get: function () { return chunkMBSXEIXT_cjs.newEventId; }
|
|
825
825
|
});
|
|
826
826
|
Object.defineProperty(exports, "registerModal", {
|
|
827
827
|
enumerable: true,
|
|
828
|
-
get: function () { return
|
|
828
|
+
get: function () { return chunkMBSXEIXT_cjs.registerModal; }
|
|
829
829
|
});
|
|
830
830
|
Object.defineProperty(exports, "removeModal", {
|
|
831
831
|
enumerable: true,
|
|
832
|
-
get: function () { return
|
|
832
|
+
get: function () { return chunkMBSXEIXT_cjs.removeModal; }
|
|
833
833
|
});
|
|
834
834
|
Object.defineProperty(exports, "showModal", {
|
|
835
835
|
enumerable: true,
|
|
836
|
-
get: function () { return
|
|
836
|
+
get: function () { return chunkMBSXEIXT_cjs.showModal; }
|
|
837
837
|
});
|
|
838
838
|
Object.defineProperty(exports, "toast", {
|
|
839
839
|
enumerable: true,
|
|
840
|
-
get: function () { return
|
|
840
|
+
get: function () { return chunkMBSXEIXT_cjs.toast; }
|
|
841
841
|
});
|
|
842
842
|
Object.defineProperty(exports, "unregisterModal", {
|
|
843
843
|
enumerable: true,
|
|
844
|
-
get: function () { return
|
|
844
|
+
get: function () { return chunkMBSXEIXT_cjs.unregisterModal; }
|
|
845
845
|
});
|
|
846
846
|
Object.defineProperty(exports, "useActiveLocale", {
|
|
847
847
|
enumerable: true,
|
|
848
|
-
get: function () { return
|
|
848
|
+
get: function () { return chunkMBSXEIXT_cjs.useActiveLocale; }
|
|
849
849
|
});
|
|
850
850
|
Object.defineProperty(exports, "useCheckout", {
|
|
851
851
|
enumerable: true,
|
|
852
|
-
get: function () { return
|
|
852
|
+
get: function () { return chunkMBSXEIXT_cjs.useCheckout; }
|
|
853
853
|
});
|
|
854
854
|
Object.defineProperty(exports, "useClickIds", {
|
|
855
855
|
enumerable: true,
|
|
856
|
-
get: function () { return
|
|
856
|
+
get: function () { return chunkMBSXEIXT_cjs.useClickIds; }
|
|
857
857
|
});
|
|
858
858
|
Object.defineProperty(exports, "useContextValue", {
|
|
859
859
|
enumerable: true,
|
|
860
|
-
get: function () { return
|
|
860
|
+
get: function () { return chunkMBSXEIXT_cjs.useContextValue; }
|
|
861
861
|
});
|
|
862
862
|
Object.defineProperty(exports, "useData", {
|
|
863
863
|
enumerable: true,
|
|
864
|
-
get: function () { return
|
|
864
|
+
get: function () { return chunkMBSXEIXT_cjs.useData; }
|
|
865
865
|
});
|
|
866
866
|
Object.defineProperty(exports, "useDevice", {
|
|
867
867
|
enumerable: true,
|
|
868
|
-
get: function () { return
|
|
868
|
+
get: function () { return chunkMBSXEIXT_cjs.useDevice; }
|
|
869
869
|
});
|
|
870
870
|
Object.defineProperty(exports, "useExperiment", {
|
|
871
871
|
enumerable: true,
|
|
872
|
-
get: function () { return
|
|
872
|
+
get: function () { return chunkMBSXEIXT_cjs.useExperiment; }
|
|
873
873
|
});
|
|
874
874
|
Object.defineProperty(exports, "useField", {
|
|
875
875
|
enumerable: true,
|
|
876
|
-
get: function () { return
|
|
876
|
+
get: function () { return chunkMBSXEIXT_cjs.useField; }
|
|
877
877
|
});
|
|
878
878
|
Object.defineProperty(exports, "useFunnel", {
|
|
879
879
|
enumerable: true,
|
|
880
|
-
get: function () { return
|
|
880
|
+
get: function () { return chunkMBSXEIXT_cjs.useFunnel; }
|
|
881
881
|
});
|
|
882
882
|
Object.defineProperty(exports, "useGroupProgress", {
|
|
883
883
|
enumerable: true,
|
|
884
|
-
get: function () { return
|
|
884
|
+
get: function () { return chunkMBSXEIXT_cjs.useGroupProgress; }
|
|
885
885
|
});
|
|
886
886
|
Object.defineProperty(exports, "useLocale", {
|
|
887
887
|
enumerable: true,
|
|
888
|
-
get: function () { return
|
|
888
|
+
get: function () { return chunkMBSXEIXT_cjs.useLocale; }
|
|
889
889
|
});
|
|
890
890
|
Object.defineProperty(exports, "useMarketingConsent", {
|
|
891
891
|
enumerable: true,
|
|
892
|
-
get: function () { return
|
|
892
|
+
get: function () { return chunkMBSXEIXT_cjs.useMarketingConsent; }
|
|
893
893
|
});
|
|
894
894
|
Object.defineProperty(exports, "useModal", {
|
|
895
895
|
enumerable: true,
|
|
896
|
-
get: function () { return
|
|
896
|
+
get: function () { return chunkMBSXEIXT_cjs.useModal; }
|
|
897
897
|
});
|
|
898
898
|
Object.defineProperty(exports, "useNavigation", {
|
|
899
899
|
enumerable: true,
|
|
900
|
-
get: function () { return
|
|
900
|
+
get: function () { return chunkMBSXEIXT_cjs.useNavigation; }
|
|
901
901
|
});
|
|
902
902
|
Object.defineProperty(exports, "useOffering", {
|
|
903
903
|
enumerable: true,
|
|
904
|
-
get: function () { return
|
|
904
|
+
get: function () { return chunkMBSXEIXT_cjs.useOffering; }
|
|
905
905
|
});
|
|
906
906
|
Object.defineProperty(exports, "useOfferings", {
|
|
907
907
|
enumerable: true,
|
|
908
|
-
get: function () { return
|
|
908
|
+
get: function () { return chunkMBSXEIXT_cjs.useOfferings; }
|
|
909
909
|
});
|
|
910
910
|
Object.defineProperty(exports, "usePage", {
|
|
911
911
|
enumerable: true,
|
|
912
|
-
get: function () { return
|
|
912
|
+
get: function () { return chunkMBSXEIXT_cjs.usePage; }
|
|
913
913
|
});
|
|
914
914
|
Object.defineProperty(exports, "useResponse", {
|
|
915
915
|
enumerable: true,
|
|
916
|
-
get: function () { return
|
|
916
|
+
get: function () { return chunkMBSXEIXT_cjs.useResponse; }
|
|
917
917
|
});
|
|
918
918
|
Object.defineProperty(exports, "useSystem", {
|
|
919
919
|
enumerable: true,
|
|
920
|
-
get: function () { return
|
|
920
|
+
get: function () { return chunkMBSXEIXT_cjs.useSystem; }
|
|
921
921
|
});
|
|
922
922
|
Object.defineProperty(exports, "useTracker", {
|
|
923
923
|
enumerable: true,
|
|
924
|
-
get: function () { return
|
|
924
|
+
get: function () { return chunkMBSXEIXT_cjs.useTracker; }
|
|
925
925
|
});
|
|
926
926
|
Object.defineProperty(exports, "useTranslation", {
|
|
927
927
|
enumerable: true,
|
|
928
|
-
get: function () { return
|
|
928
|
+
get: function () { return chunkMBSXEIXT_cjs.useTranslation; }
|
|
929
929
|
});
|
|
930
930
|
Object.defineProperty(exports, "useUserAttribute", {
|
|
931
931
|
enumerable: true,
|
|
932
|
-
get: function () { return
|
|
932
|
+
get: function () { return chunkMBSXEIXT_cjs.useUserAttribute; }
|
|
933
933
|
});
|
|
934
934
|
Object.defineProperty(exports, "useUtm", {
|
|
935
935
|
enumerable: true,
|
|
936
|
-
get: function () { return
|
|
936
|
+
get: function () { return chunkMBSXEIXT_cjs.useUtm; }
|
|
937
937
|
});
|
|
938
938
|
Object.defineProperty(exports, "withBus", {
|
|
939
939
|
enumerable: true,
|
|
940
|
-
get: function () { return
|
|
940
|
+
get: function () { return chunkMBSXEIXT_cjs.withBus; }
|
|
941
941
|
});
|
|
942
942
|
Object.defineProperty(exports, "assignVariant", {
|
|
943
943
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, ComponentType, ButtonHTMLAttributes, AnchorHTMLAttributes }
|
|
|
3
3
|
import { O as Offering, V as VariableValue, a as VariableConfig, A as Acquisition, D as Direction, F as FunnelContext, R as RuntimeExperiment, b as FunnelSnapshot, c as FunnelDefinition, d as buildContext, e as OfferingInput, P as PageMeta, f as PageContext, G as GroupProgress } from './manifest-Dp1oRvqp.cjs';
|
|
4
4
|
export { B as BrowserContext, g as BuildContextOptions, C as ClickIdContext, h as CompileInput, i as Condition, j as ConditionOp, k as DeviceContext, E as EdgeCondition, l as ExperimentArm, m as ExperimentResolution, n as FlowPage, o as FunnelLocales, p as FunnelManifest, q as Gate, I as IdentityContext, r as Interval, L as LocaleContext, M as ManifestEdge, s as ManifestPage, t as ManifestValidation, u as Money, v as OsContext, w as PageComponent, x as PageGroup, y as PageType, z as Predicate, H as ResolvedOffering, J as Route, S as SampleOffering, K as SessionContext, N as SystemContext, U as UtmContext, Q as assignVariant, T as bucketingSeed, W as buildAcquisition, X as buildCatalog, Y as compileManifest, Z as currencyExponent, _ as defineFunnel, $ as definePage, a0 as entryGuard, a1 as evaluateCondition, a2 as evaluateGate, a3 as expectedPathLength, a4 as fnv1a, a5 as formatMoney, a6 as formatOffering, a7 as formatSampleOffering, a8 as groupProgress, a9 as hashToUnit, aa as isRtl, ab as isVariantKey, ac as nextPage, ad as outgoingKeys, ae as pageMeta, af as parseSlotKey, ag as pickByWeight, ah as resolveExperiments, ai as resolveLocale, aj as resolveOffering, ak as resolveRoute } from './manifest-Dp1oRvqp.cjs';
|
|
5
5
|
import { NavSnapshot } from './protocol.cjs';
|
|
6
|
-
import { a as CheckoutDriver, C as CheckoutDriverContext } from './checkout-
|
|
7
|
-
export { b as Checkout, c as CheckoutAppearance, d as CheckoutButton, e as CheckoutButtonProps, f as CheckoutCallbacks, g as CheckoutClassNames, h as CheckoutCommonProps, i as
|
|
6
|
+
import { a as CheckoutDriver, C as CheckoutDriverContext } from './checkout-BzP__Mxe.cjs';
|
|
7
|
+
export { b as Checkout, c as CheckoutAppearance, d as CheckoutButton, e as CheckoutButtonProps, f as CheckoutCallbacks, g as CheckoutClassNames, h as CheckoutCommonProps, i as CheckoutExpressOptions, j as CheckoutHandle, k as CheckoutInlineProps, l as CheckoutMethods, m as CheckoutOptions, n as CheckoutProps, o as CheckoutRequest, p as CheckoutResult, q as CheckoutResume, r as CheckoutSpinner, s as CheckoutStatus, F as FailureModalProps, t as FailureRoute, M as MockDriverOptions, O as OnFailedMap, u as OpensAxis, P as PaymentAxis, T as TriggerAxis, v as TriggerState, U as UpsellButton, w as UpsellButtonProps, x as UpsellCommonProps, y as UpsellRecovery, z as UseCheckoutOptions, A as createMockDriver, B as driverWithEmail, D as useCheckout } from './checkout-BzP__Mxe.cjs';
|
|
8
8
|
import { ToasterProps } from 'sonner';
|
|
9
9
|
export { ToasterProps, toast } from 'sonner';
|
|
10
10
|
export { C as CheckoutError, a as CheckoutErrorCategory, b as CheckoutIntent, c as CheckoutProvider, d as CheckoutSurface, D as DeviceClass, H as HostedPaymentMode, I as INLINE_SURFACES, M as MANAGED_PROFILES, O as OffSessionReliability, e as OpensIn, P as PAYMENT_RENDERINGS, f as PROVIDER_HOSTED_SURFACES, g as PROVIDER_PROFILES, h as PaymentMode, i as PaymentRendering, j as ProviderProfile, k as ProviderVariant, S as SurfaceCapability, l as SurfacePreference, U as UpsellKind, V as ValidationResult, m as checkoutError, n as isCompleteSurface, o as isInlineSurface, p as isMerchantOfRecord, q as isOrchestrator, r as isProviderHostedSurface, s as isRenderableSurface, t as profileFor, u as renderableSurfaces, v as resolvePayment, w as resolveSurface, x as supportsManaged, y as surfacesFor, z as validateCheckout, A as validateTrialSurface, B as validateUpsell } from './capabilities-BtnJi2JD.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ReactNode, ComponentType, ButtonHTMLAttributes, AnchorHTMLAttributes }
|
|
|
3
3
|
import { O as Offering, V as VariableValue, a as VariableConfig, A as Acquisition, D as Direction, F as FunnelContext, R as RuntimeExperiment, b as FunnelSnapshot, c as FunnelDefinition, d as buildContext, e as OfferingInput, P as PageMeta, f as PageContext, G as GroupProgress } from './manifest-Dp1oRvqp.js';
|
|
4
4
|
export { B as BrowserContext, g as BuildContextOptions, C as ClickIdContext, h as CompileInput, i as Condition, j as ConditionOp, k as DeviceContext, E as EdgeCondition, l as ExperimentArm, m as ExperimentResolution, n as FlowPage, o as FunnelLocales, p as FunnelManifest, q as Gate, I as IdentityContext, r as Interval, L as LocaleContext, M as ManifestEdge, s as ManifestPage, t as ManifestValidation, u as Money, v as OsContext, w as PageComponent, x as PageGroup, y as PageType, z as Predicate, H as ResolvedOffering, J as Route, S as SampleOffering, K as SessionContext, N as SystemContext, U as UtmContext, Q as assignVariant, T as bucketingSeed, W as buildAcquisition, X as buildCatalog, Y as compileManifest, Z as currencyExponent, _ as defineFunnel, $ as definePage, a0 as entryGuard, a1 as evaluateCondition, a2 as evaluateGate, a3 as expectedPathLength, a4 as fnv1a, a5 as formatMoney, a6 as formatOffering, a7 as formatSampleOffering, a8 as groupProgress, a9 as hashToUnit, aa as isRtl, ab as isVariantKey, ac as nextPage, ad as outgoingKeys, ae as pageMeta, af as parseSlotKey, ag as pickByWeight, ah as resolveExperiments, ai as resolveLocale, aj as resolveOffering, ak as resolveRoute } from './manifest-Dp1oRvqp.js';
|
|
5
5
|
import { NavSnapshot } from './protocol.js';
|
|
6
|
-
import { a as CheckoutDriver, C as CheckoutDriverContext } from './checkout-
|
|
7
|
-
export { b as Checkout, c as CheckoutAppearance, d as CheckoutButton, e as CheckoutButtonProps, f as CheckoutCallbacks, g as CheckoutClassNames, h as CheckoutCommonProps, i as
|
|
6
|
+
import { a as CheckoutDriver, C as CheckoutDriverContext } from './checkout-BPYU4wXF.js';
|
|
7
|
+
export { b as Checkout, c as CheckoutAppearance, d as CheckoutButton, e as CheckoutButtonProps, f as CheckoutCallbacks, g as CheckoutClassNames, h as CheckoutCommonProps, i as CheckoutExpressOptions, j as CheckoutHandle, k as CheckoutInlineProps, l as CheckoutMethods, m as CheckoutOptions, n as CheckoutProps, o as CheckoutRequest, p as CheckoutResult, q as CheckoutResume, r as CheckoutSpinner, s as CheckoutStatus, F as FailureModalProps, t as FailureRoute, M as MockDriverOptions, O as OnFailedMap, u as OpensAxis, P as PaymentAxis, T as TriggerAxis, v as TriggerState, U as UpsellButton, w as UpsellButtonProps, x as UpsellCommonProps, y as UpsellRecovery, z as UseCheckoutOptions, A as createMockDriver, B as driverWithEmail, D as useCheckout } from './checkout-BPYU4wXF.js';
|
|
8
8
|
import { ToasterProps } from 'sonner';
|
|
9
9
|
export { ToasterProps, toast } from 'sonner';
|
|
10
10
|
export { C as CheckoutError, a as CheckoutErrorCategory, b as CheckoutIntent, c as CheckoutProvider, d as CheckoutSurface, D as DeviceClass, H as HostedPaymentMode, I as INLINE_SURFACES, M as MANAGED_PROFILES, O as OffSessionReliability, e as OpensIn, P as PAYMENT_RENDERINGS, f as PROVIDER_HOSTED_SURFACES, g as PROVIDER_PROFILES, h as PaymentMode, i as PaymentRendering, j as ProviderProfile, k as ProviderVariant, S as SurfaceCapability, l as SurfacePreference, U as UpsellKind, V as ValidationResult, m as checkoutError, n as isCompleteSurface, o as isInlineSurface, p as isMerchantOfRecord, q as isOrchestrator, r as isProviderHostedSurface, s as isRenderableSurface, t as profileFor, u as renderableSurfaces, v as resolvePayment, w as resolveSurface, x as supportsManaged, y as surfacesFor, z as validateCheckout, A as validateTrialSurface, B as validateUpsell } from './capabilities-BtnJi2JD.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { compileManifest } from './chunk-BOO6HJ4Y.js';
|
|
2
|
-
import { useLocale, createConsoleTracker, exposurePayload, FunnelProvider, FunnelView, useField, useNavigation, useFunnel, CheckoutResume, EmbedBridge } from './chunk-
|
|
3
|
-
export { Checkout, CheckoutButton, CheckoutResume, CheckoutSpinner, FunnelProvider, FunnelToaster, FunnelView, Modal, Sheet, UpsellButton, VariableStore, attachBus, buildAcquisition, buildContext, createBus, createConsoleTracker, createFunnelStore, createMockDriver, defineModal, dismissAllModals, driverWithEmail, hideModal, isValidEmail, newEventId, registerModal, removeModal, showModal, toast, unregisterModal, useActiveLocale, useCheckout, useClickIds, useContextValue, useData, useDevice, useExperiment, useField, useFunnel, useGroupProgress, useLocale, useMarketingConsent, useModal, useNavigation, useOffering, useOfferings, usePage, useResponse, useSystem, useTracker, useTranslation, useUserAttribute, useUtm, withBus } from './chunk-
|
|
2
|
+
import { useLocale, createConsoleTracker, exposurePayload, FunnelProvider, FunnelView, useField, useNavigation, useFunnel, CheckoutResume, EmbedBridge } from './chunk-AW2YURFE.js';
|
|
3
|
+
export { Checkout, CheckoutButton, CheckoutResume, CheckoutSpinner, FunnelProvider, FunnelToaster, FunnelView, Modal, Sheet, UpsellButton, VariableStore, attachBus, buildAcquisition, buildContext, createBus, createConsoleTracker, createFunnelStore, createMockDriver, defineModal, dismissAllModals, driverWithEmail, hideModal, isValidEmail, newEventId, registerModal, removeModal, showModal, toast, unregisterModal, useActiveLocale, useCheckout, useClickIds, useContextValue, useData, useDevice, useExperiment, useField, useFunnel, useGroupProgress, useLocale, useMarketingConsent, useModal, useNavigation, useOffering, useOfferings, usePage, useResponse, useSystem, useTracker, useTranslation, useUserAttribute, useUtm, withBus } from './chunk-AW2YURFE.js';
|
|
4
4
|
export { assignVariant, bucketingSeed, buildCatalog, currencyExponent, defineFunnel, definePage, entryGuard, evaluateCondition, evaluateGate, expectedPathLength, fnv1a, formatMoney, formatOffering, formatSampleOffering, groupProgress, hashToUnit, isRtl, isVariantKey, nextPage, outgoingKeys, pageMeta, parseSlotKey, pickByWeight, resolveExperiments, resolveLocale, resolveOffering, resolveRoute } from './chunk-WIFTHXF5.js';
|
|
5
5
|
import './chunk-U5R4ILJT.js';
|
|
6
6
|
import './chunk-XEIWE7NY.js';
|
package/package.json
CHANGED