@salla.sa/twilight-components 2.14.483 → 2.14.485
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/cjs/{Helper-CgGR9Qf8.js → Helper-DvyEpCgx.js} +13 -0
- package/dist/cjs/{filepond-B7JshNP-.js → filepond-B1h9ltVJ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-Bxw84EJ9.js → filepond-plugin-file-poster-B4zD4xns.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-D7z9bzxr.js → filepond-plugin-file-validate-size-CIX5-X21.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-CImB-IPQ.js → filepond-plugin-file-validate-type-D1NcjxUw.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-CUJXTddu.js → filepond-plugin-image-edit-Bb7P11BN.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-C3mcn9KI.js → filepond-plugin-image-exif-orientation-C4HNrnSA.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-BI1YsBYj.js → filepond-plugin-image-preview-DeMAP_C9.js} +1 -1
- package/dist/cjs/{functions-JdrYDQKu.js → functions-COuh9Ohq.js} +1 -1
- package/dist/cjs/{index-UdJx6iBO.js → index-8pwFZzoL.js} +8 -8
- package/dist/cjs/{index-D3Wa_I8P.js → index-jbrJkd9L.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-accordion_6.cjs.entry.js +2 -2
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +2 -2
- package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
- package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
- package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
- package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +2 -2
- package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
- package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
- package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
- package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
- package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
- package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
- package/dist/cjs/salla-filters-widget.cjs.entry.js +2 -2
- package/dist/cjs/salla-filters.cjs.entry.js +2 -2
- package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
- package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
- package/dist/cjs/salla-hook.cjs.entry.js +1 -1
- package/dist/cjs/salla-infinite-scroll.cjs.entry.js +2 -2
- package/dist/cjs/salla-installment.cjs.entry.js +1 -1
- package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
- package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-program.cjs.entry.js +3 -3
- package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
- package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
- package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
- package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
- package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-notifications.cjs.entry.js +2 -2
- package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
- package/dist/cjs/salla-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-options-modal_3.cjs.entry.js +17 -2
- package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-orders.cjs.entry.js +2 -2
- package/dist/cjs/salla-payments.cjs.entry.js +1 -1
- package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
- package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
- package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
- package/dist/cjs/salla-products-list.cjs.entry.js +44 -17
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal.cjs.entry.js +2 -2
- package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +2 -2
- package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/salla-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
- package/dist/cjs/salla-social.cjs.entry.js +1 -1
- package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
- package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
- package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
- package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
- package/dist/cjs/salla-verify.cjs.entry.js +1 -1
- package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
- package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
- package/dist/cjs/{tracked-promise-DENdU5n-.js → tracked-promise-BOMQ9hTv.js} +1 -1
- package/dist/cjs/twilight.cjs.js +2 -2
- package/dist/cjs/{vanilla-picker-CMF_WtgH.js → vanilla-picker-DM7x_-2X.js} +1 -1
- package/dist/collection/Helpers/Helper.js +13 -0
- package/dist/collection/components/salla-products-list/salla-products-list.js +42 -15
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +18 -0
- package/dist/components/Helper.js +13 -0
- package/dist/components/index.js +8 -8
- package/dist/components/salla-products-list2.js +42 -15
- package/dist/components/salla-products-slider2.js +17 -0
- package/dist/esm/{Helper-BXj4f_Qj.js → Helper-CD8d-Brd.js} +13 -0
- package/dist/esm/{filepond-DwduE1q7.js → filepond-DHzuRfQN.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-Cg5uryRV.js → filepond-plugin-file-poster-BxdBxR7d.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-CI1Sj8kr.js → filepond-plugin-file-validate-size-C-0L9g1L.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-JUm4bC13.js → filepond-plugin-file-validate-type-OyHjZUCW.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BrJ55gLP.js → filepond-plugin-image-edit-BIfGCYQ5.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-BkQECx1u.js → filepond-plugin-image-exif-orientation-DJlKxr63.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-nIxzaSJG.js → filepond-plugin-image-preview-B2DpOs_r.js} +1 -1
- package/dist/esm/{functions-BzIvfM0W.js → functions-DT-OwuY-.js} +1 -1
- package/dist/esm/{index-CFOfZPpP.js → index-D449pxDB.js} +1 -1
- package/dist/esm/{index-CPL9CY3o.js → index-DJPd6DKq.js} +8 -8
- package/dist/esm/loader.js +3 -3
- package/dist/esm/salla-accordion-body_2.entry.js +1 -1
- package/dist/esm/salla-accordion_6.entry.js +2 -2
- package/dist/esm/salla-add-product-button_5.entry.js +2 -2
- package/dist/esm/salla-advertisement.entry.js +1 -1
- package/dist/esm/salla-alert_2.entry.js +1 -1
- package/dist/esm/salla-app-install-alert.entry.js +1 -1
- package/dist/esm/salla-apps-icons.entry.js +1 -1
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-booking-field_7.entry.js +11 -11
- package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
- package/dist/esm/salla-cart-coupons.entry.js +1 -1
- package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-form_8.entry.js +2 -2
- package/dist/esm/salla-conditional-offer.entry.js +1 -1
- package/dist/esm/salla-contacts.entry.js +1 -1
- package/dist/esm/salla-cookies-bar.entry.js +1 -1
- package/dist/esm/salla-count-down.entry.js +1 -1
- package/dist/esm/salla-custom-fields.entry.js +1 -1
- package/dist/esm/salla-delivery-promise.entry.js +1 -1
- package/dist/esm/salla-edit-order-button.entry.js +1 -1
- package/dist/esm/salla-filters-widget.entry.js +2 -2
- package/dist/esm/salla-filters.entry.js +2 -2
- package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
- package/dist/esm/salla-gifting.entry.js +1 -1
- package/dist/esm/salla-hook.entry.js +1 -1
- package/dist/esm/salla-infinite-scroll.entry.js +2 -2
- package/dist/esm/salla-installment.entry.js +1 -1
- package/dist/esm/salla-list-tile.entry.js +1 -1
- package/dist/esm/salla-localization-modal.entry.js +1 -1
- package/dist/esm/salla-login-modal.entry.js +1 -1
- package/dist/esm/salla-loyalty-banner.entry.js +2 -2
- package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
- package/dist/esm/salla-loyalty-panel.entry.js +3 -3
- package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
- package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
- package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
- package/dist/esm/salla-loyalty-program.entry.js +3 -3
- package/dist/esm/salla-loyalty-reward.entry.js +2 -2
- package/dist/esm/salla-loyalty.entry.js +1 -1
- package/dist/esm/salla-maintenance-alert.entry.js +1 -1
- package/dist/esm/salla-map_2.entry.js +1 -1
- package/dist/esm/salla-menu.entry.js +1 -1
- package/dist/esm/salla-metadata.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
- package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-next-order-coupon.entry.js +1 -1
- package/dist/esm/salla-notification-item.entry.js +1 -1
- package/dist/esm/salla-notifications.entry.js +2 -2
- package/dist/esm/salla-offer-modal.entry.js +1 -1
- package/dist/esm/salla-offer.entry.js +1 -1
- package/dist/esm/salla-order-branch.entry.js +1 -1
- package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
- package/dist/esm/salla-order-details-options.entry.js +1 -1
- package/dist/esm/salla-order-details.entry.js +1 -1
- package/dist/esm/salla-order-edit-item.entry.js +1 -1
- package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
- package/dist/esm/salla-order-edit.entry.js +1 -1
- package/dist/esm/salla-order-options-modal_3.entry.js +17 -2
- package/dist/esm/salla-order-summary.entry.js +1 -1
- package/dist/esm/salla-order-totals-card.entry.js +1 -1
- package/dist/esm/salla-orders.entry.js +2 -2
- package/dist/esm/salla-payments.entry.js +1 -1
- package/dist/esm/salla-placeholder.entry.js +1 -1
- package/dist/esm/salla-price-range.entry.js +1 -1
- package/dist/esm/salla-product-card-embed.entry.js +1 -1
- package/dist/esm/salla-product-size-guide.entry.js +1 -1
- package/dist/esm/salla-products-list.entry.js +44 -17
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal.entry.js +2 -2
- package/dist/esm/salla-reward-action_4.entry.js +3 -3
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +2 -2
- package/dist/esm/salla-skeleton.entry.js +1 -1
- package/dist/esm/salla-slider.entry.js +1 -1
- package/dist/esm/salla-social-share.entry.js +1 -1
- package/dist/esm/salla-social.entry.js +1 -1
- package/dist/esm/salla-tab-content_3.entry.js +1 -1
- package/dist/esm/salla-tiered-offer.entry.js +1 -1
- package/dist/esm/salla-tooltip.entry.js +1 -1
- package/dist/esm/salla-trust-badges.entry.js +1 -1
- package/dist/esm/salla-user-menu.entry.js +1 -1
- package/dist/esm/salla-user-profile.entry.js +1 -1
- package/dist/esm/salla-user-settings.entry.js +1 -1
- package/dist/esm/salla-verify.entry.js +1 -1
- package/dist/esm/salla-wallet.entry.js +1 -1
- package/dist/esm/salla-wishlist-actions.entry.js +1 -1
- package/dist/esm/{tracked-promise-CoSLxVRo.js → tracked-promise-CNnq4c_E.js} +1 -1
- package/dist/esm/twilight.js +3 -3
- package/dist/esm/{vanilla-picker-BNfzIAYB.js → vanilla-picker-DQDhWp1B.js} +1 -1
- package/dist/twilight/{p-3b958e78.entry.js → p-005c08fe.entry.js} +1 -1
- package/dist/twilight/{p-120cbae1.entry.js → p-01fd381b.entry.js} +1 -1
- package/dist/twilight/{p-f7ebf444.entry.js → p-029c7342.entry.js} +1 -1
- package/dist/twilight/{p-b57981d4.entry.js → p-07e93d60.entry.js} +1 -1
- package/dist/twilight/{p-60024239.entry.js → p-0ade8936.entry.js} +1 -1
- package/dist/twilight/{p-f995bf04.entry.js → p-1620eaa3.entry.js} +1 -1
- package/dist/twilight/{p-df1cdb0d.entry.js → p-17b0b92b.entry.js} +1 -1
- package/dist/twilight/{p-34a187cf.entry.js → p-17f9907e.entry.js} +1 -1
- package/dist/twilight/{p-12a111fe.entry.js → p-1b506134.entry.js} +1 -1
- package/dist/twilight/{p-7cdb34ae.entry.js → p-1b9272d4.entry.js} +1 -1
- package/dist/twilight/{p-4a79b461.entry.js → p-1dc4ab57.entry.js} +1 -1
- package/dist/twilight/{p-976fe135.entry.js → p-1fc50a13.entry.js} +1 -1
- package/dist/twilight/{p-5b6a819a.entry.js → p-2270652d.entry.js} +1 -1
- package/dist/twilight/{p-0e8ffb12.entry.js → p-23a8870b.entry.js} +1 -1
- package/dist/twilight/{p-208e0041.entry.js → p-2566c361.entry.js} +1 -1
- package/dist/twilight/{p-f96a86a0.entry.js → p-2646c71c.entry.js} +1 -1
- package/dist/twilight/{p-866ae3dc.entry.js → p-26603c81.entry.js} +1 -1
- package/dist/twilight/{p-7aa2cb4d.entry.js → p-2794a82d.entry.js} +1 -1
- package/dist/twilight/{p-dd0d6d13.entry.js → p-2d6f9f9e.entry.js} +1 -1
- package/dist/twilight/{p-f4906774.entry.js → p-2e1cf59c.entry.js} +1 -1
- package/dist/twilight/{p-DW5X0KUQ.js → p-2xUZDJ04.js} +1 -1
- package/dist/twilight/{p-257fbf4d.entry.js → p-302bc68d.entry.js} +1 -1
- package/dist/twilight/{p-d7a88a71.entry.js → p-309914e6.entry.js} +1 -1
- package/dist/twilight/{p-ce12be93.entry.js → p-329f2f11.entry.js} +1 -1
- package/dist/twilight/{p-f174316c.entry.js → p-32eea65f.entry.js} +1 -1
- package/dist/twilight/{p-fc5654d2.entry.js → p-32ef12bb.entry.js} +1 -1
- package/dist/twilight/{p-2def11f1.entry.js → p-3a103253.entry.js} +1 -1
- package/dist/twilight/{p-5a1797c8.entry.js → p-3c4b0b05.entry.js} +1 -1
- package/dist/twilight/{p-74a9bc1e.entry.js → p-40256161.entry.js} +1 -1
- package/dist/twilight/{p-ddc1bc0d.entry.js → p-431b9986.entry.js} +1 -1
- package/dist/twilight/{p-d27249b5.entry.js → p-445b3e07.entry.js} +1 -1
- package/dist/twilight/{p-3dee0f70.entry.js → p-48b68862.entry.js} +1 -1
- package/dist/twilight/{p-7645015f.entry.js → p-4a31a4dd.entry.js} +1 -1
- package/dist/twilight/{p-b6c15b67.entry.js → p-566bae1e.entry.js} +1 -1
- package/dist/twilight/{p-e3d7e3c8.entry.js → p-58e39fe9.entry.js} +1 -1
- package/dist/twilight/{p-cec8779e.entry.js → p-5c7dd67e.entry.js} +1 -1
- package/dist/twilight/{p-324a7ef6.entry.js → p-5cd703c2.entry.js} +1 -1
- package/dist/twilight/{p-75f932ca.entry.js → p-5e39f770.entry.js} +1 -1
- package/dist/twilight/{p-822715db.entry.js → p-6181acb5.entry.js} +1 -1
- package/dist/twilight/{p-456ac86d.entry.js → p-6466fd9c.entry.js} +1 -1
- package/dist/twilight/{p-2f1d030d.entry.js → p-67ac0915.entry.js} +1 -1
- package/dist/twilight/{p-2f38b7e4.entry.js → p-69926ae5.entry.js} +1 -1
- package/dist/twilight/{p-27d113b9.entry.js → p-6e8a0f83.entry.js} +1 -1
- package/dist/twilight/{p-80f079b3.entry.js → p-74abfefb.entry.js} +1 -1
- package/dist/twilight/{p-4970584a.entry.js → p-74ba62ad.entry.js} +1 -1
- package/dist/twilight/{p-33afa437.entry.js → p-7547a8c3.entry.js} +1 -1
- package/dist/twilight/{p-10a86f9e.entry.js → p-78854c4a.entry.js} +1 -1
- package/dist/twilight/{p-fb469c8a.entry.js → p-7afc3b39.entry.js} +1 -1
- package/dist/twilight/{p-158ddb37.entry.js → p-7baf04d3.entry.js} +1 -1
- package/dist/twilight/{p-1b33acf6.entry.js → p-7dedb31c.entry.js} +1 -1
- package/dist/twilight/{p-d2fb2da6.entry.js → p-7f788909.entry.js} +1 -1
- package/dist/twilight/{p-7d55faee.entry.js → p-800e069d.entry.js} +1 -1
- package/dist/twilight/{p-bdeb8fdc.entry.js → p-80fc1a7b.entry.js} +1 -1
- package/dist/twilight/p-83b8d7cf.entry.js +4 -0
- package/dist/twilight/{p-0696998f.entry.js → p-859f2c19.entry.js} +1 -1
- package/dist/twilight/{p-9b98eda2.entry.js → p-8f672cef.entry.js} +1 -1
- package/dist/twilight/{p-a92022bc.entry.js → p-91884639.entry.js} +1 -1
- package/dist/twilight/{p-110e5099.entry.js → p-9248a9b8.entry.js} +1 -1
- package/dist/twilight/{p-909275e1.entry.js → p-93e3a6b1.entry.js} +1 -1
- package/dist/twilight/{p-3c04469e.entry.js → p-985f8781.entry.js} +1 -1
- package/dist/twilight/{p-666611e5.entry.js → p-9c52e63b.entry.js} +1 -1
- package/dist/twilight/{p-63626e90.entry.js → p-9f003164.entry.js} +1 -1
- package/dist/twilight/p-BG-PTfCd.js +4 -0
- package/dist/twilight/{p-Bvu4BGoi.js → p-BG50tuBF.js} +1 -1
- package/dist/twilight/{p-BzPtXZ8b.js → p-BL8emH6B.js} +1 -1
- package/dist/twilight/{p-ChXaJaVQ.js → p-Bnff9Ut3.js} +1 -1
- package/dist/twilight/{p-BcbKK1Xp.js → p-C-3GuKNW.js} +1 -1
- package/dist/twilight/{p-CSKE9PmZ.js → p-C4k3wAWB.js} +1 -1
- package/dist/twilight/{p-Jx-87Pvn.js → p-Ce51TrKH.js} +1 -1
- package/dist/twilight/{p-DArQ56Y5.js → p-Cve96fFs.js} +1 -1
- package/dist/twilight/p-DJPd6DKq.js +5 -0
- package/dist/twilight/{p-_Jg561eU.js → p-DXqzsbXl.js} +1 -1
- package/dist/twilight/{p-9eed2e81.entry.js → p-a20d0254.entry.js} +1 -1
- package/dist/twilight/{p-00ac20ac.entry.js → p-a92549f6.entry.js} +1 -1
- package/dist/twilight/{p-BbzxbdV_.js → p-aMw12tPb.js} +1 -1
- package/dist/twilight/{p-931481f2.entry.js → p-adb4eed7.entry.js} +1 -1
- package/dist/twilight/{p-5f10dcbb.entry.js → p-af769e0a.entry.js} +1 -1
- package/dist/twilight/{p-25d87b51.entry.js → p-b94fe237.entry.js} +1 -1
- package/dist/twilight/{p-348e706d.entry.js → p-bff68f44.entry.js} +1 -1
- package/dist/twilight/{p-3607b38e.entry.js → p-c06f0822.entry.js} +1 -1
- package/dist/twilight/{p-29fd2c2e.entry.js → p-c1aa61bc.entry.js} +1 -1
- package/dist/twilight/{p-d0e713bf.entry.js → p-c2284ac3.entry.js} +1 -1
- package/dist/twilight/{p-3161b8ae.entry.js → p-c31600a9.entry.js} +1 -1
- package/dist/twilight/{p-1e71fea1.entry.js → p-c88eb0de.entry.js} +1 -1
- package/dist/twilight/{p-e8d76141.entry.js → p-ca0fa22b.entry.js} +1 -1
- package/dist/twilight/{p-073299af.entry.js → p-cbb75c0b.entry.js} +1 -1
- package/dist/twilight/{p-a4f5a886.entry.js → p-cf17ece0.entry.js} +1 -1
- package/dist/twilight/{p-f36bc567.entry.js → p-d21bdb22.entry.js} +1 -1
- package/dist/twilight/{p-05509b03.entry.js → p-d886da88.entry.js} +1 -1
- package/dist/twilight/{p-0f1c9e60.entry.js → p-da010601.entry.js} +1 -1
- package/dist/twilight/{p-340dd50d.entry.js → p-dac3e978.entry.js} +1 -1
- package/dist/twilight/{p-a8551a6e.entry.js → p-dafb763f.entry.js} +1 -1
- package/dist/twilight/{p-3fde1a58.entry.js → p-e056c218.entry.js} +1 -1
- package/dist/twilight/{p-cdbf3ed7.entry.js → p-e492ab39.entry.js} +1 -1
- package/dist/twilight/{p-4804edb7.entry.js → p-e625c6a1.entry.js} +1 -1
- package/dist/twilight/{p-f93423c4.entry.js → p-f13b397a.entry.js} +1 -1
- package/dist/twilight/{p-b4079e50.entry.js → p-f60e5ac2.entry.js} +1 -1
- package/dist/twilight/{p-c07e239e.entry.js → p-f8ccc247.entry.js} +1 -1
- package/dist/twilight/{p-9df9f164.entry.js → p-f8eb9db2.entry.js} +1 -1
- package/dist/twilight/{p-32c59462.entry.js → p-fe9451ac.entry.js} +1 -1
- package/dist/twilight/{p-jKgGFpyH.js → p-tC9eMgA8.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/Helpers/Helper.d.ts +1 -0
- package/dist/types/components/salla-products-list/salla-products-list.d.ts +4 -0
- package/dist/types/components/salla-products-slider/salla-products-slider.d.ts +4 -0
- package/package.json +5 -5
- package/dist/twilight/p-CPL9CY3o.js +0 -5
- package/dist/twilight/p-Da1jq8Qo.js +0 -4
- package/dist/twilight/p-c37d3334.entry.js +0 -4
|
@@ -100,6 +100,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
100
100
|
this.emitSelection();
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
+
this.onWishlistStorageSynced = () => Helper.syncWishlistIcons(this.wrapper, `${this.productCardComponent}, salla-product-card`);
|
|
103
104
|
//TODO:: check why `this.includes` not working!!
|
|
104
105
|
this.includes = Helper.parseJson(this.includes || this.host.getAttribute('includes'));
|
|
105
106
|
if (!Array.isArray(this.includes)) {
|
|
@@ -121,11 +122,13 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
121
122
|
window.addEventListener('DOMContentLoaded', this.boundScrollToLastViewedProduct);
|
|
122
123
|
salla.event.on('salla-filters::changed', filters => this.setFilters(filters));
|
|
123
124
|
salla.event.on('wishlist::removed', this.onWishlistItemRemoved);
|
|
125
|
+
salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
124
126
|
}
|
|
125
127
|
disconnectedCallback() {
|
|
126
128
|
window.removeEventListener('DOMContentLoaded', this.boundScrollToLastViewedProduct);
|
|
127
129
|
window.removeEventListener('scroll', this.boundHandleScroll);
|
|
128
130
|
salla.event.off('wishlist::removed', this.onWishlistItemRemoved);
|
|
131
|
+
salla.event.off('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
129
132
|
}
|
|
130
133
|
/**
|
|
131
134
|
* Set parsed filters data from URI
|
|
@@ -369,6 +372,17 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
369
372
|
this.selectionChanged.emit(detail);
|
|
370
373
|
salla.event.emit('salla-products-list::selection.changed', detail);
|
|
371
374
|
}
|
|
375
|
+
appendProductCards(cards) {
|
|
376
|
+
if (!this.wrapper) {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
const list = Array.isArray(cards) ? cards : [cards];
|
|
380
|
+
list.forEach(card => this.wrapper.append(card));
|
|
381
|
+
this.onWishlistStorageSynced();
|
|
382
|
+
}
|
|
383
|
+
refreshWishlistIconsAfterHydration() {
|
|
384
|
+
return salla.wishlist.api.syncStorageFromServer();
|
|
385
|
+
}
|
|
372
386
|
/**
|
|
373
387
|
* Re-render the list when selection mode is toggled at runtime (e.g. enabled
|
|
374
388
|
* by the wishlist actions panel after the list already loaded).
|
|
@@ -413,13 +427,18 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
413
427
|
}
|
|
414
428
|
waitForLayoutStable(element) {
|
|
415
429
|
let timeout = null;
|
|
430
|
+
let maxWait = null;
|
|
416
431
|
return new Promise(resolve => {
|
|
417
|
-
|
|
432
|
+
let observer;
|
|
433
|
+
const settle = () => {
|
|
418
434
|
clearTimeout(timeout);
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
435
|
+
clearTimeout(maxWait);
|
|
436
|
+
observer.disconnect();
|
|
437
|
+
resolve(null);
|
|
438
|
+
};
|
|
439
|
+
observer = new MutationObserver(() => {
|
|
440
|
+
clearTimeout(timeout);
|
|
441
|
+
timeout = setTimeout(settle, 160); // Adjust delay as needed for your layout
|
|
423
442
|
});
|
|
424
443
|
// Observe changes to the entire body, including child nodes and attributes.
|
|
425
444
|
observer.observe(element, {
|
|
@@ -427,6 +446,8 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
427
446
|
subtree: true,
|
|
428
447
|
attributes: true,
|
|
429
448
|
});
|
|
449
|
+
// hard cap so a quiescent DOM still resolves and disconnects the observer
|
|
450
|
+
maxWait = setTimeout(settle, 1000);
|
|
430
451
|
});
|
|
431
452
|
}
|
|
432
453
|
async waitForStableLayout(element) {
|
|
@@ -566,9 +587,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
566
587
|
this.page = pageIndex;
|
|
567
588
|
this.nextPage = nextPage;
|
|
568
589
|
// more performant on larger set of data
|
|
569
|
-
|
|
570
|
-
this.wrapper.append(this.getItemHTML(currentPageData?.[i]));
|
|
571
|
-
}
|
|
590
|
+
this.appendProductCards(currentPageData.map((product) => this.getItemHTML(product)));
|
|
572
591
|
return true;
|
|
573
592
|
}
|
|
574
593
|
catch (error) {
|
|
@@ -701,11 +720,13 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
701
720
|
}
|
|
702
721
|
const items = await this.handleResponse(response);
|
|
703
722
|
this.infiniteScroll.appendItems(items);
|
|
723
|
+
this.onWishlistStorageSynced();
|
|
704
724
|
if (this.infiniteScroll.pageIndex === 2) {
|
|
705
725
|
if (!this.autoload && this.nextPage) {
|
|
706
726
|
this.loadMoreWrapper.style.display = 'block';
|
|
707
727
|
}
|
|
708
728
|
this.animateItems();
|
|
729
|
+
this.refreshInfiniteScrollMeasurements();
|
|
709
730
|
}
|
|
710
731
|
}
|
|
711
732
|
catch (error) {
|
|
@@ -757,6 +778,13 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
757
778
|
this.infiniteScroll.loadNextPage();
|
|
758
779
|
}
|
|
759
780
|
}
|
|
781
|
+
// re-measure scroll trigger after layout settles; stale `top` breaks autoload
|
|
782
|
+
refreshInfiniteScrollMeasurements() {
|
|
783
|
+
if (!this.autoload || !this.infiniteScroll?.updateMeasurements) {
|
|
784
|
+
return;
|
|
785
|
+
}
|
|
786
|
+
this.waitForStableLayout(document.body).then(() => this.infiniteScroll?.updateMeasurements?.());
|
|
787
|
+
}
|
|
760
788
|
async applyBeforeBuildListUrl(url) {
|
|
761
789
|
try {
|
|
762
790
|
const ctx = { component: this, url };
|
|
@@ -807,7 +835,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
807
835
|
this.nextPage = await this.resolveNextPageFromCursor(response);
|
|
808
836
|
return;
|
|
809
837
|
}
|
|
810
|
-
(await this.handleResponse(response))
|
|
838
|
+
this.appendProductCards(await this.handleResponse(response));
|
|
811
839
|
}));
|
|
812
840
|
}
|
|
813
841
|
/**
|
|
@@ -910,8 +938,7 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
910
938
|
}
|
|
911
939
|
//todo:: avoid using timeout, just assigne the data to the this.firstPageResponse and it should work fine, because it will be rendered in componentDidLoad
|
|
912
940
|
setTimeout(() => {
|
|
913
|
-
|
|
914
|
-
productsList.map(product => this.wrapper.append(this.getItemHTML(product)));
|
|
941
|
+
this.appendProductCards(this.getSourceValue().map((product) => this.getItemHTML(product)));
|
|
915
942
|
});
|
|
916
943
|
return;
|
|
917
944
|
}
|
|
@@ -938,14 +965,13 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
938
965
|
this.loadMoreWrapper && (this.loadMoreWrapper.style.display = 'block');
|
|
939
966
|
}
|
|
940
967
|
this.scrollToLastViewedProduct();
|
|
968
|
+
this.refreshInfiniteScrollMeasurements();
|
|
941
969
|
}
|
|
942
970
|
else if (!this.firstPageResponse && this.switchToNormalBehavior) {
|
|
943
971
|
this.getInitialData()
|
|
944
972
|
.then(async () => {
|
|
945
973
|
if (this.firstPageResponse) {
|
|
946
|
-
(await this.handleResponse(this.firstPageResponse, false))
|
|
947
|
-
this.wrapper.append(card);
|
|
948
|
-
});
|
|
974
|
+
this.appendProductCards(await this.handleResponse(this.firstPageResponse, false));
|
|
949
975
|
setTimeout(() => {
|
|
950
976
|
if (!this.autoload && this.nextPage && this.infiniteScroll.pageIndex == 1) {
|
|
951
977
|
const loadMoreWrapper = this.host.querySelector('.s-infinite-scroll-wrapper');
|
|
@@ -963,8 +989,9 @@ const SallaProductsList = /*@__PURE__*/ proxyCustomElement(class SallaProductsLi
|
|
|
963
989
|
}
|
|
964
990
|
else {
|
|
965
991
|
this.firstPageResponse &&
|
|
966
|
-
(await this.handleResponse(this.firstPageResponse, false))
|
|
992
|
+
this.appendProductCards(await this.handleResponse(this.firstPageResponse, false));
|
|
967
993
|
}
|
|
994
|
+
await this.refreshWishlistIconsAfterHydration();
|
|
968
995
|
}
|
|
969
996
|
canRender() {
|
|
970
997
|
return this.sourceValueIsValid && this.isReady;
|
|
@@ -40,6 +40,7 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
40
40
|
*/
|
|
41
41
|
this.productCardComponent = 'custom-salla-product-card';
|
|
42
42
|
this.apiUrl = '';
|
|
43
|
+
this.onWishlistStorageSynced = () => Helper.syncWishlistIcons(this.host, `${this.productCardComponent}, salla-product-card`);
|
|
43
44
|
}
|
|
44
45
|
componentWillLoad() {
|
|
45
46
|
return salla.onReady()
|
|
@@ -90,9 +91,20 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
90
91
|
}
|
|
91
92
|
}, 1000);
|
|
92
93
|
}
|
|
94
|
+
connectedCallback() {
|
|
95
|
+
salla.event.on('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
96
|
+
}
|
|
97
|
+
disconnectedCallback() {
|
|
98
|
+
salla.event.off('wishlist::storage.synced', this.onWishlistStorageSynced);
|
|
99
|
+
}
|
|
93
100
|
async componentDidLoad() {
|
|
94
101
|
await Salla.hooks.registerComponent('salla-products-slider', this);
|
|
95
102
|
}
|
|
103
|
+
onReadyChanged(isReady) {
|
|
104
|
+
if (!isReady)
|
|
105
|
+
return;
|
|
106
|
+
void salla.wishlist.api.syncStorageFromServer();
|
|
107
|
+
}
|
|
96
108
|
isSourceWithoutValue() {
|
|
97
109
|
return ['offers', 'latest', 'sales', 'top-rated'].includes(this.getSource());
|
|
98
110
|
}
|
|
@@ -132,6 +144,9 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
132
144
|
return (h(Host, { class: "s-products-slider-wrapper" }, h("salla-slider", { class: "s-products-slider-slider", id: this.sliderId || `s-products-slider-${Math.random().toString(36).substr(2, 9)}`, ...(this.sliderProps || {}), "auto-play": this.autoplay, type: "carousel", "block-title": this.blockTitle, "block-subTitle": this.subTitle, "display-all-url": this.displayAllUrl, sliderConfig: this.sliderConfig ? this.sliderConfig : null }, h("div", { slot: "items" }, this.productsData?.map(product => this.getItemHTML(product))))));
|
|
133
145
|
}
|
|
134
146
|
get host() { return this; }
|
|
147
|
+
static get watchers() { return {
|
|
148
|
+
"isReady": ["onReadyChanged"]
|
|
149
|
+
}; }
|
|
135
150
|
static get style() { return sallaProductsSliderCss; }
|
|
136
151
|
}, [0, "salla-products-slider", {
|
|
137
152
|
"blockTitle": [1, "block-title"],
|
|
@@ -152,6 +167,8 @@ const SallaProductsSlider = /*@__PURE__*/ proxyCustomElement(class SallaProducts
|
|
|
152
167
|
"hasCustomComponent": [32],
|
|
153
168
|
"apiUrl": [32],
|
|
154
169
|
"parsedSourceValue": [32]
|
|
170
|
+
}, undefined, {
|
|
171
|
+
"isReady": ["onReadyChanged"]
|
|
155
172
|
}]);
|
|
156
173
|
function defineCustomElement() {
|
|
157
174
|
if (typeof customElements === "undefined") {
|
|
@@ -441,6 +441,19 @@ class Helper {
|
|
|
441
441
|
(config.sms || config.mobile || config.whatsapp) && channels.push('sms');
|
|
442
442
|
return channels.join(',');
|
|
443
443
|
}
|
|
444
|
+
syncWishlistIcons(root, cardSelector) {
|
|
445
|
+
root?.querySelectorAll(cardSelector).forEach((card) => {
|
|
446
|
+
const rawId = card.product?.id;
|
|
447
|
+
const id = typeof rawId === 'number' ? rawId : Number(rawId);
|
|
448
|
+
if (Number.isNaN(id))
|
|
449
|
+
return;
|
|
450
|
+
const added = salla.wishlist.api.has(id);
|
|
451
|
+
card.querySelectorAll('.s-product-card-wishlist-btn, .btn--wishlist').forEach((btn) => {
|
|
452
|
+
btn.classList.toggle('s-product-card-wishlist-added', added);
|
|
453
|
+
btn.classList.toggle('wishlist-added', added);
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
}
|
|
444
457
|
}
|
|
445
458
|
var Helper$1 = new Helper;
|
|
446
459
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Crafted with ❤ by Salla
|
|
3
3
|
*/
|
|
4
|
-
import { h } from './index-
|
|
4
|
+
import { h } from './index-DJPd6DKq.js';
|
|
5
5
|
|
|
6
6
|
function nearestLowerMultiple(number, multipleOf = window.matchMedia('(min-width: 768px)').matches ? 3 : 2) {
|
|
7
7
|
return number < multipleOf ? number : number - (number % multipleOf);
|