@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/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 chunkE7JXWUNV_cjs = require('./chunk-E7JXWUNV.cjs');
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 = chunkE7JXWUNV_cjs.useLocale().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 chunkE7JXWUNV_cjs.createConsoleTracker();
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", chunkE7JXWUNV_cjs.exposurePayload(cfg.experiment.id, cfg.experiment.variant, cfg.experiment.version));
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(chunkE7JXWUNV_cjs.CheckoutResume, null),
444
- embedEnabled ? react.createElement(chunkE7JXWUNV_cjs.EmbedBridge, null) : null,
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(chunkE7JXWUNV_cjs.FunnelProvider, {
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(chunkE7JXWUNV_cjs.FunnelView, {
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 } = chunkE7JXWUNV_cjs.useField(bind);
496
- const nav = chunkE7JXWUNV_cjs.useNavigation();
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 } = chunkE7JXWUNV_cjs.useNavigation();
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 } = chunkE7JXWUNV_cjs.useNavigation();
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(chunkE7JXWUNV_cjs.useFunnel().context);
571
+ return platformFor(chunkMBSXEIXT_cjs.useFunnel().context);
572
572
  }
573
573
  function useAppDownload(stores) {
574
- const funnel = chunkE7JXWUNV_cjs.useFunnel();
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 chunkE7JXWUNV_cjs.Checkout; }
732
+ get: function () { return chunkMBSXEIXT_cjs.Checkout; }
733
733
  });
734
734
  Object.defineProperty(exports, "CheckoutButton", {
735
735
  enumerable: true,
736
- get: function () { return chunkE7JXWUNV_cjs.CheckoutButton; }
736
+ get: function () { return chunkMBSXEIXT_cjs.CheckoutButton; }
737
737
  });
738
738
  Object.defineProperty(exports, "CheckoutResume", {
739
739
  enumerable: true,
740
- get: function () { return chunkE7JXWUNV_cjs.CheckoutResume; }
740
+ get: function () { return chunkMBSXEIXT_cjs.CheckoutResume; }
741
741
  });
742
742
  Object.defineProperty(exports, "CheckoutSpinner", {
743
743
  enumerable: true,
744
- get: function () { return chunkE7JXWUNV_cjs.CheckoutSpinner; }
744
+ get: function () { return chunkMBSXEIXT_cjs.CheckoutSpinner; }
745
745
  });
746
746
  Object.defineProperty(exports, "FunnelProvider", {
747
747
  enumerable: true,
748
- get: function () { return chunkE7JXWUNV_cjs.FunnelProvider; }
748
+ get: function () { return chunkMBSXEIXT_cjs.FunnelProvider; }
749
749
  });
750
750
  Object.defineProperty(exports, "FunnelToaster", {
751
751
  enumerable: true,
752
- get: function () { return chunkE7JXWUNV_cjs.FunnelToaster; }
752
+ get: function () { return chunkMBSXEIXT_cjs.FunnelToaster; }
753
753
  });
754
754
  Object.defineProperty(exports, "FunnelView", {
755
755
  enumerable: true,
756
- get: function () { return chunkE7JXWUNV_cjs.FunnelView; }
756
+ get: function () { return chunkMBSXEIXT_cjs.FunnelView; }
757
757
  });
758
758
  Object.defineProperty(exports, "Modal", {
759
759
  enumerable: true,
760
- get: function () { return chunkE7JXWUNV_cjs.Modal; }
760
+ get: function () { return chunkMBSXEIXT_cjs.Modal; }
761
761
  });
762
762
  Object.defineProperty(exports, "Sheet", {
763
763
  enumerable: true,
764
- get: function () { return chunkE7JXWUNV_cjs.Sheet; }
764
+ get: function () { return chunkMBSXEIXT_cjs.Sheet; }
765
765
  });
766
766
  Object.defineProperty(exports, "UpsellButton", {
767
767
  enumerable: true,
768
- get: function () { return chunkE7JXWUNV_cjs.UpsellButton; }
768
+ get: function () { return chunkMBSXEIXT_cjs.UpsellButton; }
769
769
  });
770
770
  Object.defineProperty(exports, "VariableStore", {
771
771
  enumerable: true,
772
- get: function () { return chunkE7JXWUNV_cjs.VariableStore; }
772
+ get: function () { return chunkMBSXEIXT_cjs.VariableStore; }
773
773
  });
774
774
  Object.defineProperty(exports, "attachBus", {
775
775
  enumerable: true,
776
- get: function () { return chunkE7JXWUNV_cjs.attachBus; }
776
+ get: function () { return chunkMBSXEIXT_cjs.attachBus; }
777
777
  });
778
778
  Object.defineProperty(exports, "buildAcquisition", {
779
779
  enumerable: true,
780
- get: function () { return chunkE7JXWUNV_cjs.buildAcquisition; }
780
+ get: function () { return chunkMBSXEIXT_cjs.buildAcquisition; }
781
781
  });
782
782
  Object.defineProperty(exports, "buildContext", {
783
783
  enumerable: true,
784
- get: function () { return chunkE7JXWUNV_cjs.buildContext; }
784
+ get: function () { return chunkMBSXEIXT_cjs.buildContext; }
785
785
  });
786
786
  Object.defineProperty(exports, "createBus", {
787
787
  enumerable: true,
788
- get: function () { return chunkE7JXWUNV_cjs.createBus; }
788
+ get: function () { return chunkMBSXEIXT_cjs.createBus; }
789
789
  });
790
790
  Object.defineProperty(exports, "createConsoleTracker", {
791
791
  enumerable: true,
792
- get: function () { return chunkE7JXWUNV_cjs.createConsoleTracker; }
792
+ get: function () { return chunkMBSXEIXT_cjs.createConsoleTracker; }
793
793
  });
794
794
  Object.defineProperty(exports, "createFunnelStore", {
795
795
  enumerable: true,
796
- get: function () { return chunkE7JXWUNV_cjs.createFunnelStore; }
796
+ get: function () { return chunkMBSXEIXT_cjs.createFunnelStore; }
797
797
  });
798
798
  Object.defineProperty(exports, "createMockDriver", {
799
799
  enumerable: true,
800
- get: function () { return chunkE7JXWUNV_cjs.createMockDriver; }
800
+ get: function () { return chunkMBSXEIXT_cjs.createMockDriver; }
801
801
  });
802
802
  Object.defineProperty(exports, "defineModal", {
803
803
  enumerable: true,
804
- get: function () { return chunkE7JXWUNV_cjs.defineModal; }
804
+ get: function () { return chunkMBSXEIXT_cjs.defineModal; }
805
805
  });
806
806
  Object.defineProperty(exports, "dismissAllModals", {
807
807
  enumerable: true,
808
- get: function () { return chunkE7JXWUNV_cjs.dismissAllModals; }
808
+ get: function () { return chunkMBSXEIXT_cjs.dismissAllModals; }
809
809
  });
810
810
  Object.defineProperty(exports, "driverWithEmail", {
811
811
  enumerable: true,
812
- get: function () { return chunkE7JXWUNV_cjs.driverWithEmail; }
812
+ get: function () { return chunkMBSXEIXT_cjs.driverWithEmail; }
813
813
  });
814
814
  Object.defineProperty(exports, "hideModal", {
815
815
  enumerable: true,
816
- get: function () { return chunkE7JXWUNV_cjs.hideModal; }
816
+ get: function () { return chunkMBSXEIXT_cjs.hideModal; }
817
817
  });
818
818
  Object.defineProperty(exports, "isValidEmail", {
819
819
  enumerable: true,
820
- get: function () { return chunkE7JXWUNV_cjs.isValidEmail; }
820
+ get: function () { return chunkMBSXEIXT_cjs.isValidEmail; }
821
821
  });
822
822
  Object.defineProperty(exports, "newEventId", {
823
823
  enumerable: true,
824
- get: function () { return chunkE7JXWUNV_cjs.newEventId; }
824
+ get: function () { return chunkMBSXEIXT_cjs.newEventId; }
825
825
  });
826
826
  Object.defineProperty(exports, "registerModal", {
827
827
  enumerable: true,
828
- get: function () { return chunkE7JXWUNV_cjs.registerModal; }
828
+ get: function () { return chunkMBSXEIXT_cjs.registerModal; }
829
829
  });
830
830
  Object.defineProperty(exports, "removeModal", {
831
831
  enumerable: true,
832
- get: function () { return chunkE7JXWUNV_cjs.removeModal; }
832
+ get: function () { return chunkMBSXEIXT_cjs.removeModal; }
833
833
  });
834
834
  Object.defineProperty(exports, "showModal", {
835
835
  enumerable: true,
836
- get: function () { return chunkE7JXWUNV_cjs.showModal; }
836
+ get: function () { return chunkMBSXEIXT_cjs.showModal; }
837
837
  });
838
838
  Object.defineProperty(exports, "toast", {
839
839
  enumerable: true,
840
- get: function () { return chunkE7JXWUNV_cjs.toast; }
840
+ get: function () { return chunkMBSXEIXT_cjs.toast; }
841
841
  });
842
842
  Object.defineProperty(exports, "unregisterModal", {
843
843
  enumerable: true,
844
- get: function () { return chunkE7JXWUNV_cjs.unregisterModal; }
844
+ get: function () { return chunkMBSXEIXT_cjs.unregisterModal; }
845
845
  });
846
846
  Object.defineProperty(exports, "useActiveLocale", {
847
847
  enumerable: true,
848
- get: function () { return chunkE7JXWUNV_cjs.useActiveLocale; }
848
+ get: function () { return chunkMBSXEIXT_cjs.useActiveLocale; }
849
849
  });
850
850
  Object.defineProperty(exports, "useCheckout", {
851
851
  enumerable: true,
852
- get: function () { return chunkE7JXWUNV_cjs.useCheckout; }
852
+ get: function () { return chunkMBSXEIXT_cjs.useCheckout; }
853
853
  });
854
854
  Object.defineProperty(exports, "useClickIds", {
855
855
  enumerable: true,
856
- get: function () { return chunkE7JXWUNV_cjs.useClickIds; }
856
+ get: function () { return chunkMBSXEIXT_cjs.useClickIds; }
857
857
  });
858
858
  Object.defineProperty(exports, "useContextValue", {
859
859
  enumerable: true,
860
- get: function () { return chunkE7JXWUNV_cjs.useContextValue; }
860
+ get: function () { return chunkMBSXEIXT_cjs.useContextValue; }
861
861
  });
862
862
  Object.defineProperty(exports, "useData", {
863
863
  enumerable: true,
864
- get: function () { return chunkE7JXWUNV_cjs.useData; }
864
+ get: function () { return chunkMBSXEIXT_cjs.useData; }
865
865
  });
866
866
  Object.defineProperty(exports, "useDevice", {
867
867
  enumerable: true,
868
- get: function () { return chunkE7JXWUNV_cjs.useDevice; }
868
+ get: function () { return chunkMBSXEIXT_cjs.useDevice; }
869
869
  });
870
870
  Object.defineProperty(exports, "useExperiment", {
871
871
  enumerable: true,
872
- get: function () { return chunkE7JXWUNV_cjs.useExperiment; }
872
+ get: function () { return chunkMBSXEIXT_cjs.useExperiment; }
873
873
  });
874
874
  Object.defineProperty(exports, "useField", {
875
875
  enumerable: true,
876
- get: function () { return chunkE7JXWUNV_cjs.useField; }
876
+ get: function () { return chunkMBSXEIXT_cjs.useField; }
877
877
  });
878
878
  Object.defineProperty(exports, "useFunnel", {
879
879
  enumerable: true,
880
- get: function () { return chunkE7JXWUNV_cjs.useFunnel; }
880
+ get: function () { return chunkMBSXEIXT_cjs.useFunnel; }
881
881
  });
882
882
  Object.defineProperty(exports, "useGroupProgress", {
883
883
  enumerable: true,
884
- get: function () { return chunkE7JXWUNV_cjs.useGroupProgress; }
884
+ get: function () { return chunkMBSXEIXT_cjs.useGroupProgress; }
885
885
  });
886
886
  Object.defineProperty(exports, "useLocale", {
887
887
  enumerable: true,
888
- get: function () { return chunkE7JXWUNV_cjs.useLocale; }
888
+ get: function () { return chunkMBSXEIXT_cjs.useLocale; }
889
889
  });
890
890
  Object.defineProperty(exports, "useMarketingConsent", {
891
891
  enumerable: true,
892
- get: function () { return chunkE7JXWUNV_cjs.useMarketingConsent; }
892
+ get: function () { return chunkMBSXEIXT_cjs.useMarketingConsent; }
893
893
  });
894
894
  Object.defineProperty(exports, "useModal", {
895
895
  enumerable: true,
896
- get: function () { return chunkE7JXWUNV_cjs.useModal; }
896
+ get: function () { return chunkMBSXEIXT_cjs.useModal; }
897
897
  });
898
898
  Object.defineProperty(exports, "useNavigation", {
899
899
  enumerable: true,
900
- get: function () { return chunkE7JXWUNV_cjs.useNavigation; }
900
+ get: function () { return chunkMBSXEIXT_cjs.useNavigation; }
901
901
  });
902
902
  Object.defineProperty(exports, "useOffering", {
903
903
  enumerable: true,
904
- get: function () { return chunkE7JXWUNV_cjs.useOffering; }
904
+ get: function () { return chunkMBSXEIXT_cjs.useOffering; }
905
905
  });
906
906
  Object.defineProperty(exports, "useOfferings", {
907
907
  enumerable: true,
908
- get: function () { return chunkE7JXWUNV_cjs.useOfferings; }
908
+ get: function () { return chunkMBSXEIXT_cjs.useOfferings; }
909
909
  });
910
910
  Object.defineProperty(exports, "usePage", {
911
911
  enumerable: true,
912
- get: function () { return chunkE7JXWUNV_cjs.usePage; }
912
+ get: function () { return chunkMBSXEIXT_cjs.usePage; }
913
913
  });
914
914
  Object.defineProperty(exports, "useResponse", {
915
915
  enumerable: true,
916
- get: function () { return chunkE7JXWUNV_cjs.useResponse; }
916
+ get: function () { return chunkMBSXEIXT_cjs.useResponse; }
917
917
  });
918
918
  Object.defineProperty(exports, "useSystem", {
919
919
  enumerable: true,
920
- get: function () { return chunkE7JXWUNV_cjs.useSystem; }
920
+ get: function () { return chunkMBSXEIXT_cjs.useSystem; }
921
921
  });
922
922
  Object.defineProperty(exports, "useTracker", {
923
923
  enumerable: true,
924
- get: function () { return chunkE7JXWUNV_cjs.useTracker; }
924
+ get: function () { return chunkMBSXEIXT_cjs.useTracker; }
925
925
  });
926
926
  Object.defineProperty(exports, "useTranslation", {
927
927
  enumerable: true,
928
- get: function () { return chunkE7JXWUNV_cjs.useTranslation; }
928
+ get: function () { return chunkMBSXEIXT_cjs.useTranslation; }
929
929
  });
930
930
  Object.defineProperty(exports, "useUserAttribute", {
931
931
  enumerable: true,
932
- get: function () { return chunkE7JXWUNV_cjs.useUserAttribute; }
932
+ get: function () { return chunkMBSXEIXT_cjs.useUserAttribute; }
933
933
  });
934
934
  Object.defineProperty(exports, "useUtm", {
935
935
  enumerable: true,
936
- get: function () { return chunkE7JXWUNV_cjs.useUtm; }
936
+ get: function () { return chunkMBSXEIXT_cjs.useUtm; }
937
937
  });
938
938
  Object.defineProperty(exports, "withBus", {
939
939
  enumerable: true,
940
- get: function () { return chunkE7JXWUNV_cjs.withBus; }
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-C4tFUEdF.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 CheckoutHandle, j as CheckoutInlineProps, k as CheckoutMethods, l as CheckoutProps, m as CheckoutRequest, n as CheckoutResult, o as CheckoutResume, p as CheckoutSpinner, q as CheckoutStatus, F as FailureModalProps, r as FailureRoute, M as MockDriverOptions, O as OnFailedMap, s as OpensAxis, P as PaymentAxis, T as TriggerAxis, t as TriggerState, U as UpsellButton, u as UpsellButtonProps, v as UpsellCommonProps, w as UpsellRecovery, x as UseCheckoutOptions, y as createMockDriver, z as driverWithEmail, A as useCheckout } from './checkout-C4tFUEdF.cjs';
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-B1K6ozwk.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 CheckoutHandle, j as CheckoutInlineProps, k as CheckoutMethods, l as CheckoutProps, m as CheckoutRequest, n as CheckoutResult, o as CheckoutResume, p as CheckoutSpinner, q as CheckoutStatus, F as FailureModalProps, r as FailureRoute, M as MockDriverOptions, O as OnFailedMap, s as OpensAxis, P as PaymentAxis, T as TriggerAxis, t as TriggerState, U as UpsellButton, u as UpsellButtonProps, v as UpsellCommonProps, w as UpsellRecovery, x as UseCheckoutOptions, y as createMockDriver, z as driverWithEmail, A as useCheckout } from './checkout-B1K6ozwk.js';
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-WCBVSZHJ.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-WCBVSZHJ.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appfunnel-dev/sdk",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "The AppFunnel funnel framework — typed namespaces, routing, commerce, modals, i18n for React funnels",
5
5
  "type": "module",
6
6
  "publishConfig": {