codexly-ui 0.12.41 → 0.12.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codexly-ui",
3
- "version": "0.12.41",
3
+ "version": "0.12.43",
4
4
  "description": "Standalone, signal-based Angular UI component library for Codexly, styled with Tailwind CSS.",
5
5
  "keywords": [
6
6
  "angular",
@@ -3713,9 +3713,15 @@ interface ClxProductQuickViewData {
3713
3713
  clxColor?: ClxColorInput;
3714
3714
  currency?: string;
3715
3715
  }
3716
+ /** action tells the host which CTA the visitor pressed — 'addToCart' should only update the cart,
3717
+ * 'buyNow' should skip the cart and take the visitor straight to checkout with just this item,
3718
+ * same distinction clx-product-detail's own (addToCart)/(buyNow) outputs carry. Before action
3719
+ * existed, this modal only listened for (addToCart), so pressing "Comprar ahora" inside it emitted
3720
+ * buyNow with nothing wired to handle it — the modal never closed and nothing happened. */
3716
3721
  type ClxProductQuickViewResult = {
3717
3722
  variationId: string;
3718
3723
  quantity: number;
3724
+ action: 'addToCart' | 'buyNow';
3719
3725
  } | undefined;
3720
3726
  declare class ClxProductQuickViewComponent {
3721
3727
  private readonly ref;
@@ -3724,6 +3730,10 @@ declare class ClxProductQuickViewComponent {
3724
3730
  variationId: string;
3725
3731
  quantity: number;
3726
3732
  }): void;
3733
+ protected _onBuyNow(event: {
3734
+ variationId: string;
3735
+ quantity: number;
3736
+ }): void;
3727
3737
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxProductQuickViewComponent, never>;
3728
3738
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxProductQuickViewComponent, "clx-product-quick-view", never, {}, {}, never, never, true, never>;
3729
3739
  }