@namiml/web-sdk 3.4.10-dev.202608212120 → 3.4.10-dev.202608230147

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.
@@ -15,6 +15,21 @@ export declare class NamiButton extends NamiElement {
15
15
  disconnectedCallback(): void;
16
16
  protected updated(changedProperties: PropertyValueMap<this>): void;
17
17
  private _handleFocus;
18
+ /**
19
+ * NAM-3607: on CTV, focus is the selection signal — there is no tap to select a product.
20
+ * Bridge a focused product button into `state.selectedProducts` so conditions and smart
21
+ * text authored against `${state.selectedProducts.${state.currentGroupId}}` resolve
22
+ * against the *focused* product. Buttons outside a product card carry no `sku` (it is
23
+ * attached per card by `appendSkuToComponents`) and are ignored, as is every non-television
24
+ * form factor, where tap already drives selection.
25
+ *
26
+ * Unlike Apple's `setFocusedSku`, this only ever sets a selection, never clears one:
27
+ * clearing would blank product-scoped content whenever focus moved to the group toggle,
28
+ * Restore, or a non-product column, and would fight the template's `initialState`
29
+ * selection. `selectSKU` is idempotent, so repeat focus events on the same card do not
30
+ * trigger a re-render.
31
+ */
32
+ private _selectFocusedProductOnTelevision;
18
33
  private _handleBlur;
19
34
  private _dispatchFocusChange;
20
35
  private _dispatchPageChange;