@namiml/expo-sdk 3.4.5-dev.202607092317 → 3.4.5-dev.202607100416

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,6 +1,6 @@
1
1
  import * as _namiml_sdk_core from '@namiml/sdk-core';
2
- import { IUIAdapter, IPaywall, NamiPaywallLaunchContext, FlowNavigationOptions, PaywallHandle, IStorageAdapter, IDeviceAdapter, DevicePayload, TDevice, ScreenInfo, IPurchaseAdapter, NamiProductDetails, PurchaseContext, PurchaseResult, Nami as Nami$1, NamiPaywallEvent, NamiCampaign, NamiFlow, TPaywallContext, ISkuMenu, TimerState, NamiSKU, NamiAppSuppliedVideoDetails, TPaywallMedia, TComponent } from '@namiml/sdk-core';
3
- export { CustomerJourneyState, IPurchaseAdapter, NamiCampaign, NamiCampaignManager, NamiConfiguration, NamiCustomerManager, NamiEntitlement, NamiEntitlementManager, NamiFlow, NamiFlowEventHandler, NamiFlowHandoffStepHandler, NamiFlowManager, NamiHandoffAttributeValue, NamiHandoffComplete, NamiHandoffOutcome, NamiHandoffTag, NamiLanguageCodes, NamiLogLevel, NamiLoginSuccess, NamiPaywallAction, NamiPaywallEvent, NamiPaywallLaunchContext, NamiPaywallManager, NamiPermissionOutcome, NamiProductDetails, NamiPurchase, NamiPurchaseManager, NamiPurchaseSuccess, NamiSKU, NamiSKUType, NamiUserDataEnvelope, PurchaseContext, PurchaseResult } from '@namiml/sdk-core';
2
+ import { IUIAdapter, IPaywall, NamiPaywallLaunchContext, FlowNavigationOptions, PaywallHandle, IStorageAdapter, IDeviceAdapter, DevicePayload, TDevice, ScreenInfo, IPurchaseAdapter, NamiProductDetails, PurchaseContext, PurchaseResult, Nami as Nami$1, NamiPaywallEvent, NamiCampaign, NamiFlow, TPaywallContext, ISkuMenu, FormFieldValidator, TimerState, NamiSKU, NamiAppSuppliedVideoDetails, TPaywallMedia, TComponent } from '@namiml/sdk-core';
3
+ export { CustomerJourneyState, FormFieldValidator, IPurchaseAdapter, NamiCampaign, NamiCampaignManager, NamiConfiguration, NamiCustomerManager, NamiEntitlement, NamiEntitlementManager, NamiFlow, NamiFlowEventHandler, NamiFlowHandoffStepHandler, NamiFlowManager, NamiHandoffAttributeValue, NamiHandoffComplete, NamiHandoffOutcome, NamiHandoffTag, NamiLanguageCodes, NamiLogLevel, NamiLoginSuccess, NamiPaywallAction, NamiPaywallEvent, NamiPaywallLaunchContext, NamiPaywallManager, NamiPermissionOutcome, NamiProductDetails, NamiPurchase, NamiPurchaseManager, NamiPurchaseSuccess, NamiSKU, NamiSKUType, NamiUserDataEnvelope, PurchaseContext, PurchaseResult, TTextInputComponent, TTextInputType } from '@namiml/sdk-core';
4
4
  import React from 'react';
5
5
 
6
6
  type PaywallListener = (paywall: IPaywall, context: NamiPaywallLaunchContext) => void;
@@ -103,6 +103,9 @@ interface PaywallContextValue {
103
103
  setSelectedProducts(products: Record<string, string | null>): void;
104
104
  setCurrentFormId(formId: string, value?: string): void;
105
105
  setFormState(formId: string, value: boolean | string): void;
106
+ registerFormFieldValidator(formId: string, validator: FormFieldValidator): void;
107
+ setFormFieldError(formId: string, message: string): void;
108
+ clearFormFieldError(formId: string): void;
106
109
  setTimerState(timerId: string, remainingSeconds: number, savedAt: number, hasEmittedCompletion: boolean): void;
107
110
  getTimerState(timerId: string): TimerState | undefined;
108
111
  setProductDetails(details: NamiProductDetails[]): void;
package/dist/index.mjs CHANGED
@@ -1795,6 +1795,15 @@ const PaywallProvider = ({ paywall, context, campaign, flow, onFirstFocusReady,
1795
1795
  setFormState: (formId, value) => {
1796
1796
  providerRef.current?.setFormState(formId, value);
1797
1797
  },
1798
+ registerFormFieldValidator: (formId, validator) => {
1799
+ providerRef.current?.registerFormFieldValidator(formId, validator);
1800
+ },
1801
+ setFormFieldError: (formId, message) => {
1802
+ providerRef.current?.setFormFieldError(formId, message);
1803
+ },
1804
+ clearFormFieldError: (formId) => {
1805
+ providerRef.current?.clearFormFieldError(formId);
1806
+ },
1798
1807
  setTimerState: (timerId, remainingSeconds, savedAt, hasEmittedCompletion) => {
1799
1808
  providerRef.current?.setTimerState(timerId, remainingSeconds, savedAt, hasEmittedCompletion);
1800
1809
  },
@@ -2811,6 +2820,9 @@ function resolveRenderer(rendererKey) {
2811
2820
  case 'NamiToggleSwitch':
2812
2821
  renderer = require('./elements/NamiToggleSwitch').NamiToggleSwitch;
2813
2822
  break;
2823
+ case 'NamiTextInput':
2824
+ renderer = require('./elements/NamiTextInput').NamiTextInput;
2825
+ break;
2814
2826
  case 'NamiRadioButton':
2815
2827
  renderer = require('./elements/NamiRadioButton').NamiRadioButton;
2816
2828
  break;
@@ -2918,6 +2930,8 @@ function renderResolvedComponent(componentType, resolvedComponent, scaleFactor,
2918
2930
  return renderWithKey('NamiSegmentPickerItem', sharedProps);
2919
2931
  case 'toggleSwitch':
2920
2932
  return renderWithKey('NamiToggleSwitch', sharedProps);
2933
+ case 'textInput':
2934
+ return renderWithKey('NamiTextInput', sharedProps);
2921
2935
  case 'radio':
2922
2936
  return renderWithKey('NamiRadioButton', sharedProps);
2923
2937
  case 'progressIndicator':