@appfunnel-dev/sdk 0.7.0 → 0.8.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/README.md +2 -80
- package/dist/elements/index.cjs +49 -4
- package/dist/elements/index.cjs.map +1 -1
- package/dist/elements/index.d.cts +19 -1
- package/dist/elements/index.d.ts +19 -1
- package/dist/elements/index.js +49 -5
- package/dist/elements/index.js.map +1 -1
- package/dist/index.cjs +727 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +729 -40
- package/dist/index.js.map +1 -1
- package/dist/{internal-C7seLJBr.d.cts → internal-C9MOEdND.d.cts} +11 -12
- package/dist/{internal-C7seLJBr.d.ts → internal-C9MOEdND.d.ts} +11 -12
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/package.json +1 -1
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-C9MOEdND.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-C9MOEdND.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';
|
|
@@ -190,12 +190,12 @@ declare function useNavigation(): NavigationState;
|
|
|
190
190
|
declare function useProducts(): ProductsState;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
|
-
* Tracking hook — fire events
|
|
193
|
+
* Tracking hook — fire custom events.
|
|
194
194
|
*/
|
|
195
195
|
declare function useTracking(): TrackingState;
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
|
-
* Payment hook — reads payment-related variables.
|
|
198
|
+
* Payment hook — reads payment-related variables and provides a purchase action.
|
|
199
199
|
*
|
|
200
200
|
* Only re-renders when payment/card variables change.
|
|
201
201
|
*/
|
|
@@ -299,6 +299,9 @@ interface StripePaymentFormProps {
|
|
|
299
299
|
/**
|
|
300
300
|
* Stripe payment component supporting PaymentElement and Embedded Checkout.
|
|
301
301
|
*
|
|
302
|
+
* In dev mode (`globalThis.__APPFUNNEL_DEV__`), renders a demo form that
|
|
303
|
+
* simulates Stripe UI and emulates purchases without real Stripe calls.
|
|
304
|
+
*
|
|
302
305
|
* Use a ref to submit the form from an external button:
|
|
303
306
|
* ```tsx
|
|
304
307
|
* const paymentRef = useRef<StripePaymentHandle>(null)
|