@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.
- package/dist/components/elements/Button.d.ts +15 -0
- package/dist/nami-web.cjs +2 -2
- package/dist/nami-web.d.ts +15 -0
- package/dist/nami-web.mjs +15 -15
- package/dist/nami-web.umd.js +3 -3
- package/package.json +2 -2
package/dist/nami-web.d.ts
CHANGED
|
@@ -105,6 +105,21 @@ declare class NamiButton extends NamiElement {
|
|
|
105
105
|
disconnectedCallback(): void;
|
|
106
106
|
protected updated(changedProperties: PropertyValueMap<this>): void;
|
|
107
107
|
private _handleFocus;
|
|
108
|
+
/**
|
|
109
|
+
* NAM-3607: on CTV, focus is the selection signal — there is no tap to select a product.
|
|
110
|
+
* Bridge a focused product button into `state.selectedProducts` so conditions and smart
|
|
111
|
+
* text authored against `${state.selectedProducts.${state.currentGroupId}}` resolve
|
|
112
|
+
* against the *focused* product. Buttons outside a product card carry no `sku` (it is
|
|
113
|
+
* attached per card by `appendSkuToComponents`) and are ignored, as is every non-television
|
|
114
|
+
* form factor, where tap already drives selection.
|
|
115
|
+
*
|
|
116
|
+
* Unlike Apple's `setFocusedSku`, this only ever sets a selection, never clears one:
|
|
117
|
+
* clearing would blank product-scoped content whenever focus moved to the group toggle,
|
|
118
|
+
* Restore, or a non-product column, and would fight the template's `initialState`
|
|
119
|
+
* selection. `selectSKU` is idempotent, so repeat focus events on the same card do not
|
|
120
|
+
* trigger a re-render.
|
|
121
|
+
*/
|
|
122
|
+
private _selectFocusedProductOnTelevision;
|
|
108
123
|
private _handleBlur;
|
|
109
124
|
private _dispatchFocusChange;
|
|
110
125
|
private _dispatchPageChange;
|