@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/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-C7seLJBr.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-C7seLJBr.js';
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 and identify users.
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)