@salla.sa/twilight-components 2.14.540 → 2.14.542
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/{filepond-U8F_iDbp.js → filepond-B0aAvhFd.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CAJAmCHU.js → filepond-plugin-file-poster-BFqqCNYU.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Dxgl8Gdz.js → filepond-plugin-file-validate-size-BNcTcX1x.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BPhw8zXs.js → filepond-plugin-file-validate-type-DAWd81u4.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DNKfSuCy.js → filepond-plugin-image-edit-CIg9FEsX.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-NCmUtKOd.js → filepond-plugin-image-exif-orientation--VivPhX_.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-jRCd9jSG.js → filepond-plugin-image-preview-apJ7tv7p.js} +1 -1
- package/dist/cjs/helpers-ClOJIAG8.js +89 -0
- package/dist/cjs/{index-F_FURF-0.js → index-ufJ3UmgO.js} +18 -14
- package/dist/cjs/{intlTelInput-yt9noy9U.js → intlTelInput-1mNNQjMC.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 +1 -1
- package/dist/cjs/salla-add-product-button_5.cjs.entry.js +8 -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-booking-field_7.cjs.entry.js → salla-attachment-view_9.cjs.entry.js} +1003 -40
- package/dist/cjs/salla-badge.cjs.entry.js +1 -1
- package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
- 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-cart-summary-card.cjs.entry.js +1 -1
- package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
- package/dist/cjs/salla-comment-factors.cjs.entry.js +2 -2
- package/dist/cjs/salla-comment-form_8.cjs.entry.js +14 -5
- 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 +1 -1
- package/dist/cjs/salla-filters.cjs.entry.js +1 -1
- 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 +1 -1
- 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_10.cjs.entry.js +1 -1
- package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
- 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.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_2.cjs.entry.js +1 -1
- 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-cancel.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_2.cjs.entry.js +1 -1
- package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
- package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
- package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +420 -84
- package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -5
- package/dist/cjs/salla-review-factors-tags.cjs.entry.js +4 -83
- package/dist/cjs/salla-review-order-item.cjs.entry.js +125 -0
- package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
- package/dist/cjs/salla-search.cjs.entry.js +1 -1
- 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/twilight.cjs.js +2 -2
- package/dist/cjs/upload-limits-C3RarAPN.js +136 -0
- package/dist/cjs/{vanilla-picker-DXgSpklI.js → vanilla-picker-DvN9odkn.js} +1 -1
- package/dist/collection/collection-manifest.json +16 -11
- package/dist/collection/components/salla-attachment-view/salla-attachment-view.css +164 -0
- package/dist/collection/components/salla-attachment-view/salla-attachment-view.js +250 -0
- package/dist/collection/components/salla-attachments/salla-attachments.css +69 -0
- package/dist/collection/components/salla-attachments/salla-attachments.js +375 -0
- package/dist/collection/components/salla-comments/salla-comment-item.js +13 -3
- package/dist/collection/components/salla-comments/salla-comments.css +7 -0
- package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
- package/dist/collection/components/salla-file-upload/salla-file-upload.css +149 -0
- package/dist/collection/components/salla-file-upload/salla-file-upload.js +784 -42
- package/dist/collection/components/salla-file-upload/upload-limits.js +127 -0
- package/dist/collection/components/salla-product-options/salla-product-options.js +7 -1
- package/dist/collection/components/salla-products-slider/salla-products-slider.js +1 -1
- package/dist/collection/components/salla-rating-modal/rating-modal-media.js +85 -0
- package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +348 -85
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +17 -7
- package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +1 -3
- package/dist/collection/components/salla-review-factors-tags/helpers.js +8 -7
- package/dist/collection/components/salla-review-order-item/interfaces.js +1 -0
- package/dist/collection/components/salla-review-order-item/salla-review-order-item.js +154 -0
- package/dist/components/index.js +2 -2
- package/dist/components/salla-add-product-button2.js +40 -28
- package/dist/components/salla-attachment-view.d.ts +11 -0
- package/dist/components/salla-attachment-view.js +9 -0
- package/dist/components/salla-attachment-view2.js +323 -0
- package/dist/components/salla-attachments.d.ts +11 -0
- package/dist/components/salla-attachments.js +9 -0
- package/dist/components/salla-attachments2.js +232 -0
- package/dist/components/salla-basket-gap.js +46 -34
- package/dist/components/salla-breadcrumb.js +1 -1
- package/dist/components/salla-comment-factors2.js +1 -1
- package/dist/components/salla-comment-item2.js +26 -4
- package/dist/components/salla-comments.js +14 -2
- package/dist/components/salla-custom-fields.js +28 -4
- package/dist/components/salla-file-upload2.js +703 -31
- package/dist/components/salla-gifting.js +7 -1
- package/dist/components/salla-loyalty-exchange-product-card2.js +46 -34
- package/dist/components/salla-loyalty-panel.js +8 -2
- package/dist/components/salla-loyalty-program.js +8 -2
- package/dist/components/salla-multiple-bundle-product-cart2.js +40 -28
- package/dist/components/salla-multiple-bundle-product-details2.js +12 -6
- package/dist/components/salla-multiple-bundle-product-options-modal2.js +7 -1
- package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
- package/dist/components/salla-multiple-bundle-product.js +12 -6
- package/dist/components/salla-offer-modal.js +8 -2
- package/dist/components/salla-order-edit-item2.js +36 -24
- package/dist/components/salla-order-edit.js +42 -30
- package/dist/components/salla-order-options-modal2.js +34 -22
- package/dist/components/salla-product-card2.js +44 -32
- package/dist/components/salla-product-options2.js +39 -21
- package/dist/components/salla-products-slider2.js +8 -2
- package/dist/components/salla-quick-buy2.js +36 -24
- package/dist/components/salla-rating-modal-v22.js +449 -97
- package/dist/components/salla-rating-modal.js +30 -20
- package/dist/components/salla-review-factors-tags2.js +9 -8
- package/dist/components/salla-review-order-item.d.ts +11 -0
- package/dist/components/salla-review-order-item.js +196 -0
- package/dist/components/salla-reward-details2.js +8 -2
- package/dist/components/salla-slider2.js +1 -1
- package/dist/esm/{filepond-Bxzb6RRZ.js → filepond-BJvckaDn.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CZfrjnEX.js → filepond-plugin-file-poster-BJGjo9nD.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Dqa69lX7.js → filepond-plugin-file-validate-size-DLFBVAw5.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-C_76nxDb.js → filepond-plugin-file-validate-type-Cl7gFtPR.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BvzVMeMY.js → filepond-plugin-image-edit-P-yC8gQP.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Br4ANTi7.js → filepond-plugin-image-exif-orientation-Ck7hEAD_.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-e54xZ08P.js → filepond-plugin-image-preview-BSCNg5pC.js} +1 -1
- package/dist/esm/helpers-DqXpn47Z.js +85 -0
- package/dist/esm/{index-5UtJVEzd.js → index-DaGqpYdk.js} +18 -14
- package/dist/esm/{intlTelInput-BQXch__5.js → intlTelInput-CFalf-QE.js} +1 -1
- 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 +1 -1
- package/dist/esm/salla-add-product-button_5.entry.js +8 -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-booking-field_7.entry.js → salla-attachment-view_9.entry.js} +1002 -41
- package/dist/esm/salla-badge.entry.js +1 -1
- package/dist/esm/salla-basket-gap.entry.js +1 -1
- 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-cart-summary-card.entry.js +1 -1
- package/dist/esm/salla-cashback-banner.entry.js +1 -1
- package/dist/esm/salla-comment-factors.entry.js +2 -2
- package/dist/esm/salla-comment-form_8.entry.js +14 -5
- 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 +1 -1
- package/dist/esm/salla-filters.entry.js +1 -1
- 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 +1 -1
- 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_10.entry.js +1 -1
- package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
- 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.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_2.entry.js +1 -1
- 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-cancel.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_2.entry.js +1 -1
- package/dist/esm/salla-order-shipments.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/salla-products-slider.entry.js +1 -1
- package/dist/esm/salla-quick-order.entry.js +1 -1
- package/dist/esm/salla-rating-modal-v2.entry.js +420 -84
- package/dist/esm/salla-rating-modal.entry.js +3 -5
- package/dist/esm/salla-review-factors-tags.entry.js +2 -81
- package/dist/esm/salla-review-order-item.entry.js +123 -0
- package/dist/esm/salla-scopes.entry.js +1 -1
- package/dist/esm/salla-search.entry.js +1 -1
- 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/twilight.js +3 -3
- package/dist/esm/upload-limits-DrXX8XG8.js +121 -0
- package/dist/esm/{vanilla-picker-lLULIehu.js → vanilla-picker-BPvYmRRu.js} +1 -1
- package/dist/twilight/{p-1ee008c3.entry.js → p-06558ec3.entry.js} +1 -1
- package/dist/twilight/{p-18d7763b.entry.js → p-096b05e7.entry.js} +1 -1
- package/dist/twilight/p-09848b04.entry.js +4 -0
- package/dist/twilight/{p-f5747d3c.entry.js → p-0df4b2e1.entry.js} +1 -1
- package/dist/twilight/p-11347c90.entry.js +4 -0
- package/dist/twilight/{p-693d012f.entry.js → p-16c80467.entry.js} +1 -1
- package/dist/twilight/{p-3b0032e4.entry.js → p-17d19645.entry.js} +1 -1
- package/dist/twilight/{p-200a9c11.entry.js → p-1cfd78ce.entry.js} +1 -1
- package/dist/twilight/{p-582247b3.entry.js → p-1f63a8a3.entry.js} +1 -1
- package/dist/twilight/{p-3af52c82.entry.js → p-21ca76cd.entry.js} +1 -1
- package/dist/twilight/{p-d6b6f984.entry.js → p-243dc280.entry.js} +1 -1
- package/dist/twilight/{p-e6007706.entry.js → p-25b45505.entry.js} +1 -1
- package/dist/twilight/{p-900ee42a.entry.js → p-268a3562.entry.js} +1 -1
- package/dist/twilight/{p-ce941081.entry.js → p-26a4ab4b.entry.js} +1 -1
- package/dist/twilight/p-2996d4b7.entry.js +4 -0
- package/dist/twilight/{p-95224232.entry.js → p-29cddb02.entry.js} +1 -1
- package/dist/twilight/{p-088c1ab3.entry.js → p-30201fb9.entry.js} +1 -1
- package/dist/twilight/{p-66448f0f.entry.js → p-3282b3a6.entry.js} +1 -1
- package/dist/twilight/p-32ceb30c.entry.js +4 -0
- package/dist/twilight/{p-b9b32feb.entry.js → p-33a9c78a.entry.js} +1 -1
- package/dist/twilight/{p-49c2e935.entry.js → p-390d4d73.entry.js} +1 -1
- package/dist/twilight/{p-71731e63.entry.js → p-42dccb9d.entry.js} +1 -1
- package/dist/twilight/{p-4e2e4e92.entry.js → p-46e413e3.entry.js} +1 -1
- package/dist/twilight/p-4860edc2.entry.js +4 -0
- package/dist/twilight/{p-6c4cef7a.entry.js → p-494948d0.entry.js} +1 -1
- package/dist/twilight/{p-3136d942.entry.js → p-495b632f.entry.js} +1 -1
- package/dist/twilight/{p-fe222cbe.entry.js → p-4c30313e.entry.js} +1 -1
- package/dist/twilight/{p-66313db6.entry.js → p-4f59ac12.entry.js} +1 -1
- package/dist/twilight/{p-b16c1eac.entry.js → p-505ff5ef.entry.js} +1 -1
- package/dist/twilight/{p-21e9a475.entry.js → p-53735832.entry.js} +1 -1
- package/dist/twilight/{p-6e766b2a.entry.js → p-58d25433.entry.js} +1 -1
- package/dist/twilight/{p-ad54610c.entry.js → p-59c4876b.entry.js} +1 -1
- package/dist/twilight/{p-c224fa3a.entry.js → p-5c51b1a6.entry.js} +1 -1
- package/dist/twilight/p-61eeadbb.entry.js +4 -0
- package/dist/twilight/{p-497cc3a6.entry.js → p-6413aff2.entry.js} +1 -1
- package/dist/twilight/{p-4cff8533.entry.js → p-6794c97c.entry.js} +1 -1
- package/dist/twilight/{p-f27472f4.entry.js → p-684d6eb1.entry.js} +1 -1
- package/dist/twilight/{p-5f1b8510.entry.js → p-6972d948.entry.js} +1 -1
- package/dist/twilight/p-71ced4b7.entry.js +4 -0
- package/dist/twilight/{p-73607393.entry.js → p-72000ddb.entry.js} +1 -1
- package/dist/twilight/{p-891009e2.entry.js → p-72ae244c.entry.js} +1 -1
- package/dist/twilight/{p-ac9a54cc.entry.js → p-73edafaa.entry.js} +1 -1
- package/dist/twilight/{p-5cbbf472.entry.js → p-77391513.entry.js} +1 -1
- package/dist/twilight/p-7763e0be.entry.js +4 -0
- package/dist/twilight/{p-bb7bc52f.entry.js → p-77ba1fda.entry.js} +1 -1
- package/dist/twilight/{p-b639f062.entry.js → p-7a321b1c.entry.js} +1 -1
- package/dist/twilight/{p-acd1a9d8.entry.js → p-7bb14e7b.entry.js} +1 -1
- package/dist/twilight/{p-575b3b4c.entry.js → p-7bcd6e69.entry.js} +1 -1
- package/dist/twilight/{p-1c66fdb3.entry.js → p-7c61baf1.entry.js} +1 -1
- package/dist/twilight/{p-9af31040.entry.js → p-7d24fc33.entry.js} +1 -1
- package/dist/twilight/{p-524aabd2.entry.js → p-82fb654b.entry.js} +1 -1
- package/dist/twilight/{p-46d2375b.entry.js → p-8a12cb3e.entry.js} +1 -1
- package/dist/twilight/{p-ed9899c0.entry.js → p-8d4fe636.entry.js} +1 -1
- package/dist/twilight/{p-d8a69feb.entry.js → p-8d8fe545.entry.js} +1 -1
- package/dist/twilight/{p-4c34e1fd.entry.js → p-8e288b57.entry.js} +1 -1
- package/dist/twilight/{p-02e821a0.entry.js → p-930f7101.entry.js} +1 -1
- package/dist/twilight/{p-271a2d55.entry.js → p-96f7014a.entry.js} +1 -1
- package/dist/twilight/p-97ce9cb0.entry.js +4 -0
- package/dist/twilight/{p-1YJa6YaH.js → p-B-gnDFoe.js} +1 -1
- package/dist/twilight/{p-5njrWPq2.js → p-B0zeNMnk.js} +2 -2
- package/dist/twilight/{p-Dke2dnYe.js → p-BG6uSDFf.js} +1 -1
- package/dist/twilight/{p-CXv4fDWa.js → p-BQK0M8C7.js} +1 -1
- package/dist/twilight/{p-WDLGvEaR.js → p-BimR7cIN.js} +1 -1
- package/dist/twilight/{p-Cf5WZwC9.js → p-BqpEp7-e.js} +1 -1
- package/dist/twilight/{p-Dso9PQdO.js → p-Cv-hXjUb.js} +1 -1
- package/dist/twilight/{p-yEKxvrPt.js → p-DXvNz88d.js} +1 -1
- package/dist/twilight/{p-5UtJVEzd.js → p-DaGqpYdk.js} +1 -1
- package/dist/twilight/p-DqXpn47Z.js +4 -0
- package/dist/twilight/p-DrXX8XG8.js +4 -0
- package/dist/twilight/{p-CkJpLPBM.js → p-WLC9KdSz.js} +1 -1
- package/dist/twilight/{p-fb2c863d.entry.js → p-a08fb92b.entry.js} +1 -1
- package/dist/twilight/{p-5a26fb06.entry.js → p-a49c78f0.entry.js} +1 -1
- package/dist/twilight/{p-7a17138f.entry.js → p-a77540ee.entry.js} +1 -1
- package/dist/twilight/{p-2a9a4e12.entry.js → p-a89ae474.entry.js} +1 -1
- package/dist/twilight/{p-f3771ebc.entry.js → p-a9db1142.entry.js} +1 -1
- package/dist/twilight/{p-1bc7ab28.entry.js → p-ac7422d5.entry.js} +1 -1
- package/dist/twilight/{p-d4e1a8f7.entry.js → p-b13f73f7.entry.js} +1 -1
- package/dist/twilight/{p-b9477568.entry.js → p-b4db2812.entry.js} +1 -1
- package/dist/twilight/{p-e4cb5ee8.entry.js → p-b948c4e7.entry.js} +1 -1
- package/dist/twilight/{p-02df1c31.entry.js → p-c21a156c.entry.js} +1 -1
- package/dist/twilight/{p-8dab94d8.entry.js → p-c2b80e5c.entry.js} +1 -1
- package/dist/twilight/{p-b7f1bad9.entry.js → p-c34bf692.entry.js} +1 -1
- package/dist/twilight/{p-6757a647.entry.js → p-c55ce57e.entry.js} +1 -1
- package/dist/twilight/{p-64ee420e.entry.js → p-c7f384ba.entry.js} +1 -1
- package/dist/twilight/{p-1578cbe5.entry.js → p-ca56bdf4.entry.js} +1 -1
- package/dist/twilight/{p-40a0baa7.entry.js → p-cc80d691.entry.js} +1 -1
- package/dist/twilight/{p-913d4965.entry.js → p-cdaafc9b.entry.js} +1 -1
- package/dist/twilight/{p-c138132c.entry.js → p-ce868465.entry.js} +1 -1
- package/dist/twilight/{p-7e9d67f2.entry.js → p-d16998b0.entry.js} +1 -1
- package/dist/twilight/{p-397acd73.entry.js → p-d3ab94f2.entry.js} +1 -1
- package/dist/twilight/{p-963d34af.entry.js → p-d4ba3882.entry.js} +1 -1
- package/dist/twilight/{p-2d62c356.entry.js → p-d9ff0ef8.entry.js} +1 -1
- package/dist/twilight/{p-1c049149.entry.js → p-dd2f9c7d.entry.js} +1 -1
- package/dist/twilight/{p-a5afb821.entry.js → p-de002b09.entry.js} +1 -1
- package/dist/twilight/{p-a9e276fa.entry.js → p-e088823b.entry.js} +1 -1
- package/dist/twilight/{p-b5c90151.entry.js → p-e50e92d4.entry.js} +1 -1
- package/dist/twilight/{p-538a1642.entry.js → p-e5f6f36a.entry.js} +1 -1
- package/dist/twilight/{p-0ecbe43b.entry.js → p-e6090253.entry.js} +1 -1
- package/dist/twilight/{p-c8c36233.entry.js → p-e6e778d0.entry.js} +1 -1
- package/dist/twilight/{p-4e71dacc.entry.js → p-ea05a3b9.entry.js} +1 -1
- package/dist/twilight/{p-fbb156e8.entry.js → p-ec0d05d5.entry.js} +9 -9
- package/dist/twilight/{p-d505caaf.entry.js → p-ed7597fe.entry.js} +1 -1
- package/dist/twilight/{p-c05513ae.entry.js → p-f1077a6e.entry.js} +1 -1
- package/dist/twilight/{p-0895958b.entry.js → p-f1d5bc83.entry.js} +1 -1
- package/dist/twilight/twilight.esm.js +1 -1
- package/dist/types/components/salla-attachment-view/salla-attachment-view.d.ts +47 -0
- package/dist/types/components/salla-attachments/salla-attachments.d.ts +73 -0
- package/dist/types/components/salla-comments/interfaces.d.ts +1 -0
- package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -1
- package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +127 -4
- package/dist/types/components/salla-file-upload/upload-limits.d.ts +49 -0
- package/dist/types/components/salla-rating-modal/rating-modal-media.d.ts +38 -0
- package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +30 -7
- package/dist/types/components/salla-review-factors-tags/helpers.d.ts +1 -1
- package/dist/types/components/salla-review-factors-tags/interfaces.d.ts +7 -0
- package/dist/types/components/salla-review-order-item/interfaces.d.ts +30 -0
- package/dist/types/components/salla-review-order-item/salla-review-order-item.d.ts +30 -0
- package/dist/types/components.d.ts +282 -7
- package/package.json +5 -5
- package/dist/twilight/p-0bc1c246.entry.js +0 -4
- package/dist/twilight/p-16c09de9.entry.js +0 -4
- package/dist/twilight/p-3024f859.entry.js +0 -4
- package/dist/twilight/p-3b821dc9.entry.js +0 -4
- package/dist/twilight/p-4dabd999.entry.js +0 -4
- package/dist/twilight/p-aaa37ca1.entry.js +0 -4
- package/dist/twilight/p-dcf53c45.entry.js +0 -4
- package/dist/twilight/p-f17fa83f.entry.js +0 -4
- package/dist/components/{keyboard_arrow_right.js → keyboard_arrow_left.js} +6 -6
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
export const IMAGE_UPLOAD_ACCEPT = 'image/png, image/jpeg, image/jpg';
|
|
5
|
+
/** Valid MIME types + extensions for native file pickers (macOS Finder requires real MIME types). */
|
|
6
|
+
export const VIDEO_UPLOAD_ACCEPT = 'video/mp4, video/quicktime, video/x-msvideo, video/x-matroska, video/webm, .mp4, .mov, .avi, .mkv, .webm';
|
|
7
|
+
export const MEDIA_UPLOAD_ACCEPT = `${IMAGE_UPLOAD_ACCEPT}, ${VIDEO_UPLOAD_ACCEPT}`;
|
|
8
|
+
export function buildMediaUploadAccept(allowImages, allowVideos) {
|
|
9
|
+
const types = [];
|
|
10
|
+
if (allowImages)
|
|
11
|
+
types.push(IMAGE_UPLOAD_ACCEPT);
|
|
12
|
+
if (allowVideos)
|
|
13
|
+
types.push(VIDEO_UPLOAD_ACCEPT);
|
|
14
|
+
return types.join(', ');
|
|
15
|
+
}
|
|
16
|
+
export function usesSplitCountLimits(maxImagesCount, maxVideosCount) {
|
|
17
|
+
return maxImagesCount != null || maxVideosCount != null;
|
|
18
|
+
}
|
|
19
|
+
export function isConfiguredLimit(limit) {
|
|
20
|
+
return limit != null;
|
|
21
|
+
}
|
|
22
|
+
export function getMaxImagesCount(maxImagesCount) {
|
|
23
|
+
return maxImagesCount ?? 0;
|
|
24
|
+
}
|
|
25
|
+
export function getMaxVideosCount(maxVideosCount) {
|
|
26
|
+
return maxVideosCount ?? 0;
|
|
27
|
+
}
|
|
28
|
+
export function getTotalMaxFiles(maxFilesCount, maxImagesCount, maxVideosCount) {
|
|
29
|
+
if (usesSplitCountLimits(maxImagesCount, maxVideosCount)) {
|
|
30
|
+
return getMaxImagesCount(maxImagesCount) + getMaxVideosCount(maxVideosCount);
|
|
31
|
+
}
|
|
32
|
+
return maxFilesCount;
|
|
33
|
+
}
|
|
34
|
+
export function isVideoMimeType(mimeType, urlOrName) {
|
|
35
|
+
if (mimeType?.startsWith('video/'))
|
|
36
|
+
return true;
|
|
37
|
+
if (urlOrName && /\.(mp4|webm|mov|avi|mkv)$/i.test(urlOrName))
|
|
38
|
+
return true;
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
export function isImageMimeType(mimeType, urlOrName) {
|
|
42
|
+
if (mimeType?.startsWith('image/'))
|
|
43
|
+
return true;
|
|
44
|
+
if (urlOrName && /\.(png|jpe?g|gif|webp|heic|heif)$/i.test(urlOrName))
|
|
45
|
+
return true;
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
export function parseSizeToBytes(size) {
|
|
49
|
+
const match = size.match(/^(\d+(?:\.\d+)?)\s*(KB|MB)$/i);
|
|
50
|
+
if (!match)
|
|
51
|
+
return 0;
|
|
52
|
+
const value = parseFloat(match[1]);
|
|
53
|
+
return match[2].toUpperCase() === 'MB' ? value * 1024 * 1024 : value * 1024;
|
|
54
|
+
}
|
|
55
|
+
export function formatBytesAsSize(bytes) {
|
|
56
|
+
if (bytes >= 1024 * 1024) {
|
|
57
|
+
return `${Math.round(bytes / (1024 * 1024))}MB`;
|
|
58
|
+
}
|
|
59
|
+
return `${Math.round(bytes / 1024)}KB`;
|
|
60
|
+
}
|
|
61
|
+
export function formatDuration(seconds) {
|
|
62
|
+
const mins = Math.floor(seconds / 60);
|
|
63
|
+
const secs = Math.floor(seconds % 60);
|
|
64
|
+
if (mins > 0) {
|
|
65
|
+
return `${mins}:${secs.toString().padStart(2, '0')}`;
|
|
66
|
+
}
|
|
67
|
+
return `${secs}s`;
|
|
68
|
+
}
|
|
69
|
+
export function getFilePondMaxFileSize(maxFileSize, storeUploadSizeKb, maxVideoFileSize) {
|
|
70
|
+
const imageLimit = storeUploadSizeKb ? `${storeUploadSizeKb}KB` : maxFileSize;
|
|
71
|
+
const limits = [imageLimit, maxVideoFileSize].filter(Boolean).map(s => parseSizeToBytes(s));
|
|
72
|
+
if (!limits.length) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
return formatBytesAsSize(Math.max(...limits));
|
|
76
|
+
}
|
|
77
|
+
export function isUploadSizeError(error) {
|
|
78
|
+
const body = (error.body || '').toLowerCase();
|
|
79
|
+
return (error.type === 'size' ||
|
|
80
|
+
body.includes('too large') ||
|
|
81
|
+
body.includes('max file size') ||
|
|
82
|
+
body.includes('file is too big') ||
|
|
83
|
+
body.includes('exceeds'));
|
|
84
|
+
}
|
|
85
|
+
export function isUploadTypeError(error) {
|
|
86
|
+
const body = (error.body || '').toLowerCase();
|
|
87
|
+
return (error.type === 'type' ||
|
|
88
|
+
body.includes('invalid type') ||
|
|
89
|
+
body.includes('not allowed') ||
|
|
90
|
+
body.includes('file type'));
|
|
91
|
+
}
|
|
92
|
+
export function getUploadErrorMessage(error, options) {
|
|
93
|
+
if (isUploadSizeError(error)) {
|
|
94
|
+
if (options.isVideo) {
|
|
95
|
+
const sizeLabel = options.maxVideoFileSizeLabel ||
|
|
96
|
+
(options.maxVideoBytes ? formatBytesAsSize(options.maxVideoBytes) : '');
|
|
97
|
+
return options.videoTooLarge(sizeLabel);
|
|
98
|
+
}
|
|
99
|
+
return options.tooLargeLabel;
|
|
100
|
+
}
|
|
101
|
+
if (isUploadTypeError(error)) {
|
|
102
|
+
return options.invalidTypeLabel;
|
|
103
|
+
}
|
|
104
|
+
if (error.body) {
|
|
105
|
+
return error.body;
|
|
106
|
+
}
|
|
107
|
+
return options.genericErrorLabel;
|
|
108
|
+
}
|
|
109
|
+
/** FilePond FileStatus values used for gallery counting. */
|
|
110
|
+
export const FILE_STATUS_INIT = 1;
|
|
111
|
+
export const FILE_STATUS_IDLE = 2;
|
|
112
|
+
export const FILE_STATUS_PROCESSING = 3;
|
|
113
|
+
export const FILE_STATUS_PROCESSING_COMPLETE = 5;
|
|
114
|
+
export const FILE_STATUS_PROCESSING_ERROR = 6;
|
|
115
|
+
export const FILE_STATUS_LOADING = 7;
|
|
116
|
+
export const FILE_STATUS_LOAD_ERROR = 8;
|
|
117
|
+
export const FILE_STATUS_PROCESSING_QUEUED = 9;
|
|
118
|
+
export function shouldCountGalleryFile(status) {
|
|
119
|
+
return status !== FILE_STATUS_LOAD_ERROR && status !== FILE_STATUS_PROCESSING_ERROR;
|
|
120
|
+
}
|
|
121
|
+
/** Exclude in-flight add validation so limit counters don't spike on rejected picks. */
|
|
122
|
+
export function shouldCountGalleryLimit(status) {
|
|
123
|
+
if (!shouldCountGalleryFile(status)) {
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
return status !== FILE_STATUS_LOADING && status !== FILE_STATUS_INIT;
|
|
127
|
+
}
|
|
@@ -818,7 +818,13 @@ export class SallaProductOptions {
|
|
|
818
818
|
+ (detail.additional_price ? ` (${salla.money(detail.additional_price, false)})` : '');
|
|
819
819
|
// Keep the Riyal icon markup for price-format radio options rendered via innerHTML.
|
|
820
820
|
if (format === "price") {
|
|
821
|
-
|
|
821
|
+
// Strip markup from the name before extracting the price, so an XSS
|
|
822
|
+
// payload (e.g. <img onerror=...>) can't contribute a stray '.' that
|
|
823
|
+
// turns "100" into Number(".100") === 0.1. Local fix only — do NOT
|
|
824
|
+
// relax the shared salla.helpers.digitsOnly (broad blast radius).
|
|
825
|
+
// COD-10924 / SAL-153 Stage 4.
|
|
826
|
+
const strippedName = detail.name.replace(/<[^>]*>/g, '');
|
|
827
|
+
const normalizedPrice = salla.helpers.digitsOnly(strippedName);
|
|
822
828
|
const price = Number(normalizedPrice);
|
|
823
829
|
if (!normalizedPrice || !Number.isFinite(price)) {
|
|
824
830
|
return detailSuffix;
|
|
@@ -377,7 +377,7 @@ export class SallaProductsSlider {
|
|
|
377
377
|
"mutable": false,
|
|
378
378
|
"complexType": {
|
|
379
379
|
"original": "Partial<SallaSliderProps>",
|
|
380
|
-
"resolved": "{ autoPlay?: boolean; loop?: boolean; type?: \"\" | \"default\" | \"blog\" | \"carousel\" | \"fullscreen\" | \"thumbs\" | \"hero\" | \"testimonials\" | \"fullwidth\"; direction?: string; vertical?: boolean; blockTitle?: string; listenToThumbnailsOption?: boolean; blockSubtitle?: string; displayAllUrl?: string; arrowsCentered?: boolean; verticalThumbs?: boolean; gridThumbs?: boolean;
|
|
380
|
+
"resolved": "{ autoPlay?: boolean; loop?: boolean; type?: \"\" | \"default\" | \"blog\" | \"carousel\" | \"fullscreen\" | \"thumbs\" | \"hero\" | \"testimonials\" | \"fullwidth\"; direction?: string; autoHeight?: boolean; showControls?: boolean; sliderConfig?: any; vertical?: boolean; blockTitle?: string; listenToThumbnailsOption?: boolean; blockSubtitle?: string; displayAllUrl?: string; arrowsCentered?: boolean; verticalThumbs?: boolean; gridThumbs?: boolean; controlsOuter?: boolean; showThumbsControls?: boolean; staticWhenSingle?: boolean; slidesPerView?: string; pagination?: boolean; centered?: boolean; thumbsConfig?: any; }",
|
|
381
381
|
"references": {
|
|
382
382
|
"Partial": {
|
|
383
383
|
"location": "global",
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Crafted with ❤ by Salla
|
|
3
|
+
*/
|
|
4
|
+
export const MAX_IMAGE_UPLOAD_LIMIT = 10;
|
|
5
|
+
export const MAX_VIDEO_UPLOAD_LIMIT = 5;
|
|
6
|
+
export const MAX_VIDEO_FILE_SIZE = '100MB';
|
|
7
|
+
export const MAX_VIDEO_DURATION = 60;
|
|
8
|
+
export const MAX_PARALLEL_UPLOADS = 10;
|
|
9
|
+
export function isVideoUrl(url) {
|
|
10
|
+
const pathname = url.split(/[?#]/, 1)[0];
|
|
11
|
+
return /\.(mp4|webm|mov|avi|mkv)$/i.test(pathname);
|
|
12
|
+
}
|
|
13
|
+
export function splitMediaUrls(urls) {
|
|
14
|
+
return urls.reduce((acc, url) => {
|
|
15
|
+
if (!url)
|
|
16
|
+
return acc;
|
|
17
|
+
if (isVideoUrl(url)) {
|
|
18
|
+
acc.videos.push(url);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
acc.images.push(url);
|
|
22
|
+
}
|
|
23
|
+
return acc;
|
|
24
|
+
}, { images: [], videos: [] });
|
|
25
|
+
}
|
|
26
|
+
export function getMediaUrlsByType(items) {
|
|
27
|
+
return splitMediaUrls(items.map(item => item?.url || '').filter(Boolean));
|
|
28
|
+
}
|
|
29
|
+
export function parseMediaField(value) {
|
|
30
|
+
if (!value)
|
|
31
|
+
return [];
|
|
32
|
+
if (Array.isArray(value))
|
|
33
|
+
return value.filter(Boolean);
|
|
34
|
+
return value
|
|
35
|
+
.split(',')
|
|
36
|
+
.map(url => url.trim())
|
|
37
|
+
.filter(Boolean);
|
|
38
|
+
}
|
|
39
|
+
export function countMediaByType(items) {
|
|
40
|
+
return items.reduce((counts, item) => {
|
|
41
|
+
const url = item?.url || '';
|
|
42
|
+
if (isVideoUrl(url)) {
|
|
43
|
+
counts.video += 1;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
counts.image += 1;
|
|
47
|
+
}
|
|
48
|
+
return counts;
|
|
49
|
+
}, { image: 0, video: 0 });
|
|
50
|
+
}
|
|
51
|
+
export function createPreloadedMediaItem(url) {
|
|
52
|
+
return { id: url, url };
|
|
53
|
+
}
|
|
54
|
+
export function removeUploadedImage(images, removedId) {
|
|
55
|
+
const normalizedId = String(removedId);
|
|
56
|
+
let removed = false;
|
|
57
|
+
return images.filter(image => {
|
|
58
|
+
const imageId = image?.id !== undefined && image?.id !== null ? String(image.id) : '';
|
|
59
|
+
const imageUrl = String(image?.url ?? '');
|
|
60
|
+
const matches = imageId === normalizedId || imageUrl === normalizedId;
|
|
61
|
+
if (matches) {
|
|
62
|
+
if (removed) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
removed = true;
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return true;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
export function syncHiddenMediaInputs(imagesInput, videosInput, items) {
|
|
72
|
+
const { images, videos } = getMediaUrlsByType(items);
|
|
73
|
+
if (imagesInput)
|
|
74
|
+
imagesInput.value = images.join(',');
|
|
75
|
+
if (videosInput)
|
|
76
|
+
videosInput.value = videos.join(',');
|
|
77
|
+
}
|
|
78
|
+
export function normalizeSubmittedMedia(data, allowAttachImages, allowAttachVideos) {
|
|
79
|
+
if (!allowAttachImages) {
|
|
80
|
+
delete data.images;
|
|
81
|
+
}
|
|
82
|
+
if (!allowAttachVideos) {
|
|
83
|
+
delete data.videos;
|
|
84
|
+
}
|
|
85
|
+
}
|