codexly-ui 0.10.69 → 0.10.70
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/fesm2022/codexly-ui.mjs +22 -4
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/types/codexly-ui.d.ts +10 -0
package/package.json
CHANGED
package/types/codexly-ui.d.ts
CHANGED
|
@@ -3020,6 +3020,16 @@ declare class ClxProductDetailComponent {
|
|
|
3020
3020
|
* whose specs are a superset of the selection counts as a match, since the visitor hasn't
|
|
3021
3021
|
* narrowed those other spec types down to one value yet. */
|
|
3022
3022
|
readonly activeVariation: _angular_core.Signal<ClxVariation | null>;
|
|
3023
|
+
/** True only once the visitor has explicitly picked one option per spec type (Color AND Talla,
|
|
3024
|
+
* not just one of them) — activeVariation() always resolves to *some* variation even with a
|
|
3025
|
+
* partial selection (see its own doc comment), so it alone can't gate the CTA: without this,
|
|
3026
|
+
* "Agrega al carrito" would add whatever variation the partial selection happened to resolve to
|
|
3027
|
+
* (e.g. the first in-stock Talla under the chosen Color) instead of what the visitor actually
|
|
3028
|
+
* chose. */
|
|
3029
|
+
readonly isSelectionComplete: _angular_core.Signal<boolean>;
|
|
3030
|
+
/** Names of the spec types still missing a selection — surfaced next to the CTA so a disabled
|
|
3031
|
+
* "Agrega al carrito" reads as "pick a Talla" instead of an unexplained dead button. */
|
|
3032
|
+
readonly missingSpecNames: _angular_core.Signal<string[]>;
|
|
3023
3033
|
readonly finalPrice: _angular_core.Signal<number>;
|
|
3024
3034
|
readonly discount: _angular_core.Signal<number>;
|
|
3025
3035
|
/** An option is available if some in-stock variation matches it together with the rest of the
|