@namiml/web-sdk 3.4.3-dev.202606151935 → 3.4.3-dev.202606182025

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.
@@ -1,4 +1,4 @@
1
- import { PaywallState, IPaywall, NamiPaywallLaunchContext, NamiCampaign, TPaywallContext, TBaseComponent, TSpacerComponent, TSemverObj, TButtonContainer, THeaderFooter, TTextComponent, TSymbolComponent, TContainer, TProductContainer, TImageComponent, TSegmentPicker, TSegmentPickerItem, TVideoComponent, TCollapseContainer, TResponsiveGrid, TRepeatingGrid, TCarouselContainer, TVolumeButton, TPlayPauseButton, TStack, TPaywallLaunchContext, NamiFlow, TQRCodeComponent, TToggleSwitch, TRadioButton, TProgressIndicatorComponent, TToggleButtonComponent, TCountdownTimerTextComponent, TProgressBarComponent } from '@namiml/sdk-core';
1
+ import { PaywallState, IPaywall, NamiPaywallLaunchContext, NamiCampaign, TPaywallContext, TBaseComponent, TSpacerComponent, TSemverObj, TButtonContainer, THeaderFooter, TTextComponent, TSymbolComponent, TContainer, TProductContainer, TImageComponent, TSegmentPicker, TSegmentPickerItem, TVideoComponent, TCollapseContainer, TResponsiveGrid, TRepeatingGrid, TCarouselContainer, TVolumeButton, TPlayPauseButton, TStack, TPaywallLaunchContext, NamiFlow, TQRCodeComponent, TToggleSwitch, TRadioButton, TProgressIndicatorComponent, TToggleButtonComponent, TCountdownTimerTextComponent, TProgressBarComponent, TTextInputComponent } from '@namiml/sdk-core';
2
2
  export { CustomerJourneyState, DeviceProfile, LaunchCampaignError, LogLevel, Nami, NamiAnonymousCampaign, NamiCampaign, NamiCampaignManager, NamiCampaignRuleType, NamiCampaignSegment, NamiConfiguration, NamiCustomerManager, NamiEntitlement, NamiEntitlementManager, NamiFlowCampaign, NamiFlowEventHandler, NamiFlowHandoffStepHandler, NamiFlowManager, NamiInitialConfig, NamiLanguageCodes, NamiLogLevel, NamiPaywallAction, NamiPaywallActionHandler, NamiPaywallComponentChange, NamiPaywallEvent, NamiPaywallEventVideoMetadata, NamiPaywallLaunchContext, NamiPaywallManager, NamiPaywallManagerEvents, NamiProductDetails, NamiProductOffer, NamiPurchase, NamiPurchaseDetails, NamiPurchaseManager, NamiPurchasesState, NamiSKU, NamiSKUType, NamiSubscriptionInterval, NamiSubscriptionPeriod, _internal, isNamiFlowCampaign } from '@namiml/sdk-core';
3
3
  import * as lit from 'lit';
4
4
  import { ReactiveController, ReactiveControllerHost, LitElement, CSSResultGroup, CSSResult, PropertyValueMap, TemplateResult, PropertyValues } from 'lit';
@@ -539,6 +539,38 @@ declare class NamiProgressBar extends NamiElement {
539
539
  render(): TemplateResult;
540
540
  }
541
541
 
542
+ declare class NamiTextInput extends NamiElement<TTextInputComponent> {
543
+ component: TTextInputComponent;
544
+ inFocusedState: boolean;
545
+ scaleFactor: number;
546
+ /** Live (non-reactive) buffer of the input value; mirrors PaywallState. */
547
+ private _value;
548
+ /** Whether the input currently holds DOM focus. */
549
+ private _focused;
550
+ constructor();
551
+ connectedCallback(): void;
552
+ private get isTelevision();
553
+ /** Map the wire `type` to the validator's `TTextInputType`. */
554
+ private validatorType;
555
+ private validator;
556
+ private get currentError();
557
+ private _handleInput;
558
+ private _handleFocus;
559
+ private _handleBlur;
560
+ protected styles(): CSSResult;
561
+ private resolvedSpacing;
562
+ private resolvedBorderWidth;
563
+ private applyLabelStyles;
564
+ /**
565
+ * 4-state styling: error > focused > filled > empty. Errors and focus override
566
+ * the resting border/fill/radius. Filled vs empty share the resting style; the
567
+ * distinction exists for parity with the native ports and future theming.
568
+ */
569
+ private applyInputStyles;
570
+ private applyErrorStyles;
571
+ render(): lit_html.TemplateResult<1>;
572
+ }
573
+
542
574
  declare global {
543
575
  interface HTMLElementTagNameMap {
544
576
  "nami-spacer": NamiSpacer;
@@ -570,5 +602,6 @@ declare global {
570
602
  "nami-toggle-button": NamiToggleButton;
571
603
  "nami-countdown-timer-text": NamiCountdownTimerText;
572
604
  "nami-progress-bar": NamiProgressBar;
605
+ "nami-text-input": NamiTextInput;
573
606
  }
574
607
  }