@appfunnel-dev/sdk 0.13.0 → 0.15.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/{chunk-CMVB7RQE.js → chunk-7JLCKTX6.js} +3 -3
- package/dist/{chunk-CMVB7RQE.js.map → chunk-7JLCKTX6.js.map} +1 -1
- package/dist/{chunk-EB5VWGR4.js → chunk-H5C2QJIY.js} +158 -167
- package/dist/chunk-H5C2QJIY.js.map +1 -0
- package/dist/{chunk-QG6CE7L7.cjs → chunk-JHR65SVV.cjs} +6 -6
- package/dist/{chunk-QG6CE7L7.cjs.map → chunk-JHR65SVV.cjs.map} +1 -1
- package/dist/{chunk-KEFKKBBP.cjs → chunk-OTBIW5DN.cjs} +157 -166
- package/dist/chunk-OTBIW5DN.cjs.map +1 -0
- package/dist/elements/index.cjs +6 -6
- package/dist/elements/index.js +2 -2
- package/dist/index.cjs +31 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/{internal-twwb8xjX.d.cts → internal-BBWDTB-l.d.cts} +1 -1
- package/dist/{internal-twwb8xjX.d.ts → internal-BBWDTB-l.d.ts} +1 -1
- package/dist/internal.cjs +2 -2
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-EB5VWGR4.js.map +0 -1
- package/dist/chunk-KEFKKBBP.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AppFunnelConfig, P as PageDefinition, V as VariableValue, U as UserState, L as LocaleState, T as TranslationState, N as NavigationState, a as ProductsState, b as TrackingState, c as PaymentState, D as DeviceInfo, d as PageData, F as FunnelState } from './internal-
|
|
2
|
-
export { C as ConditionConfig, e as ConditionGroupConfig, f as FunnelProvider, g as FunnelProviderProps, h as FunnelSettings, i as PageConfig, j as PageState, k as PageType, l as ProductConfig, m as ProductsConfig, n as Progress, R as RouteConfig, o as RuntimeProduct, p as VariableConfig, q as VariableType } from './internal-
|
|
1
|
+
import { A as AppFunnelConfig, P as PageDefinition, V as VariableValue, U as UserState, L as LocaleState, T as TranslationState, N as NavigationState, a as ProductsState, b as TrackingState, c as PaymentState, D as DeviceInfo, d as PageData, F as FunnelState } from './internal-BBWDTB-l.cjs';
|
|
2
|
+
export { C as ConditionConfig, e as ConditionGroupConfig, f as FunnelProvider, g as FunnelProviderProps, h as FunnelSettings, i as PageConfig, j as PageState, k as PageType, l as ProductConfig, m as ProductsConfig, n as Progress, R as RouteConfig, o as RuntimeProduct, p as VariableConfig, q as VariableType } from './internal-BBWDTB-l.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { Appearance } from '@stripe/stripe-js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AppFunnelConfig, P as PageDefinition, V as VariableValue, U as UserState, L as LocaleState, T as TranslationState, N as NavigationState, a as ProductsState, b as TrackingState, c as PaymentState, D as DeviceInfo, d as PageData, F as FunnelState } from './internal-
|
|
2
|
-
export { C as ConditionConfig, e as ConditionGroupConfig, f as FunnelProvider, g as FunnelProviderProps, h as FunnelSettings, i as PageConfig, j as PageState, k as PageType, l as ProductConfig, m as ProductsConfig, n as Progress, R as RouteConfig, o as RuntimeProduct, p as VariableConfig, q as VariableType } from './internal-
|
|
1
|
+
import { A as AppFunnelConfig, P as PageDefinition, V as VariableValue, U as UserState, L as LocaleState, T as TranslationState, N as NavigationState, a as ProductsState, b as TrackingState, c as PaymentState, D as DeviceInfo, d as PageData, F as FunnelState } from './internal-BBWDTB-l.js';
|
|
2
|
+
export { C as ConditionConfig, e as ConditionGroupConfig, f as FunnelProvider, g as FunnelProviderProps, h as FunnelSettings, i as PageConfig, j as PageState, k as PageType, l as ProductConfig, m as ProductsConfig, n as Progress, R as RouteConfig, o as RuntimeProduct, p as VariableConfig, q as VariableType } from './internal-BBWDTB-l.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import { Appearance } from '@stripe/stripe-js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useNavigation, useResponses } from './chunk-
|
|
2
|
-
export { useNavigation, useResponse, useResponses } from './chunk-
|
|
3
|
-
import { useFunnelContext } from './chunk-
|
|
4
|
-
export { FunnelProvider, registerIntegration } from './chunk-
|
|
1
|
+
import { useNavigation, useResponses } from './chunk-7JLCKTX6.js';
|
|
2
|
+
export { useNavigation, useResponse, useResponses } from './chunk-7JLCKTX6.js';
|
|
3
|
+
import { useFunnelContext } from './chunk-H5C2QJIY.js';
|
|
4
|
+
export { FunnelProvider, registerIntegration } from './chunk-H5C2QJIY.js';
|
|
5
5
|
import { forwardRef, useMemo, useRef, useEffect, useCallback, useImperativeHandle, useState, useSyncExternalStore } from 'react';
|
|
6
6
|
import { loadStripe } from '@stripe/stripe-js';
|
|
7
7
|
import { toast } from 'sonner';
|
|
@@ -171,6 +171,9 @@ function useUser() {
|
|
|
171
171
|
},
|
|
172
172
|
setMarketingConsent(consent) {
|
|
173
173
|
variableStore.set("user.marketingConsent", consent);
|
|
174
|
+
if (consent) {
|
|
175
|
+
tracker.track("marketing.consent_given");
|
|
176
|
+
}
|
|
174
177
|
},
|
|
175
178
|
identify(email) {
|
|
176
179
|
tracker.identify(email);
|