@salla.sa/twilight-components 2.14.540 → 2.14.541
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-CNdvfaMJ.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-poster-CAJAmCHU.js → filepond-plugin-file-poster-Di_D3w89.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-size-Dxgl8Gdz.js → filepond-plugin-file-validate-size-BiRa98qd.js} +1 -1
- package/dist/cjs/{filepond-plugin-file-validate-type-BPhw8zXs.js → filepond-plugin-file-validate-type-Bolv-kyJ.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-edit-DNKfSuCy.js → filepond-plugin-image-edit-AN6huMV9.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-exif-orientation-NCmUtKOd.js → filepond-plugin-image-exif-orientation-Bwa8QtGo.js} +1 -1
- package/dist/cjs/{filepond-plugin-image-preview-jRCd9jSG.js → filepond-plugin-image-preview-CaVYLAvG.js} +1 -1
- package/dist/cjs/helpers-ClOJIAG8.js +89 -0
- package/dist/cjs/{index-F_FURF-0.js → index-DX2EKTCE.js} +18 -14
- package/dist/cjs/{intlTelInput-yt9noy9U.js → intlTelInput-DnwdGAiP.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 +1 -1
- 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-BUFYPi-_.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-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 +32 -20
- 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-CKsbRWmS.js} +1 -1
- package/dist/esm/{filepond-plugin-file-poster-CZfrjnEX.js → filepond-plugin-file-poster-B_gYCESq.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-size-Dqa69lX7.js → filepond-plugin-file-validate-size-Bep6fNi3.js} +1 -1
- package/dist/esm/{filepond-plugin-file-validate-type-C_76nxDb.js → filepond-plugin-file-validate-type-r3uRmGIr.js} +1 -1
- package/dist/esm/{filepond-plugin-image-edit-BvzVMeMY.js → filepond-plugin-image-edit-BJcOlOFL.js} +1 -1
- package/dist/esm/{filepond-plugin-image-exif-orientation-Br4ANTi7.js → filepond-plugin-image-exif-orientation-DJoDaRwQ.js} +1 -1
- package/dist/esm/{filepond-plugin-image-preview-e54xZ08P.js → filepond-plugin-image-preview-BsuTLPS0.js} +1 -1
- package/dist/esm/helpers-DqXpn47Z.js +85 -0
- package/dist/esm/{index-5UtJVEzd.js → index-BVqCTDsV.js} +18 -14
- package/dist/esm/{intlTelInput-BQXch__5.js → intlTelInput-CD2FA0nI.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 +1 -1
- 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-Ba_za9Iy.js} +1 -1
- package/dist/twilight/{p-1c66fdb3.entry.js → p-003499a8.entry.js} +1 -1
- package/dist/twilight/{p-0bc1c246.entry.js → p-0974f6c6.entry.js} +1 -1
- package/dist/twilight/{p-1578cbe5.entry.js → p-0a9093f1.entry.js} +1 -1
- package/dist/twilight/{p-ad54610c.entry.js → p-0ce2c41f.entry.js} +1 -1
- package/dist/twilight/{p-acd1a9d8.entry.js → p-0ea8365b.entry.js} +1 -1
- package/dist/twilight/p-1174e53e.entry.js +4 -0
- package/dist/twilight/{p-d8a69feb.entry.js → p-11ef8b82.entry.js} +1 -1
- package/dist/twilight/{p-5cbbf472.entry.js → p-13244c52.entry.js} +1 -1
- package/dist/twilight/{p-9af31040.entry.js → p-14689252.entry.js} +1 -1
- package/dist/twilight/{p-397acd73.entry.js → p-17940d8a.entry.js} +1 -1
- package/dist/twilight/{p-40a0baa7.entry.js → p-1974f6da.entry.js} +1 -1
- package/dist/twilight/{p-02e821a0.entry.js → p-1a191989.entry.js} +1 -1
- package/dist/twilight/{p-900ee42a.entry.js → p-1ec6e0fe.entry.js} +1 -1
- package/dist/twilight/{p-3af52c82.entry.js → p-1fcebaad.entry.js} +1 -1
- package/dist/twilight/{p-6c4cef7a.entry.js → p-2b0cf190.entry.js} +1 -1
- package/dist/twilight/{p-7e9d67f2.entry.js → p-333ea76b.entry.js} +1 -1
- package/dist/twilight/{p-d6b6f984.entry.js → p-337cc9f6.entry.js} +1 -1
- package/dist/twilight/{p-71731e63.entry.js → p-34d5c7bf.entry.js} +1 -1
- package/dist/twilight/{p-49c2e935.entry.js → p-36abc50f.entry.js} +1 -1
- package/dist/twilight/{p-e6007706.entry.js → p-37d9f762.entry.js} +1 -1
- package/dist/twilight/{p-891009e2.entry.js → p-3961522a.entry.js} +1 -1
- package/dist/twilight/{p-b5c90151.entry.js → p-39d9e02f.entry.js} +1 -1
- package/dist/twilight/{p-088c1ab3.entry.js → p-3a4bb8de.entry.js} +1 -1
- package/dist/twilight/{p-538a1642.entry.js → p-409f95a8.entry.js} +1 -1
- package/dist/twilight/{p-fb2c863d.entry.js → p-42952fac.entry.js} +1 -1
- package/dist/twilight/{p-913d4965.entry.js → p-436dfe93.entry.js} +1 -1
- package/dist/twilight/{p-ed9899c0.entry.js → p-50c90e0a.entry.js} +1 -1
- package/dist/twilight/{p-ce941081.entry.js → p-5115117b.entry.js} +1 -1
- package/dist/twilight/{p-693d012f.entry.js → p-56647774.entry.js} +1 -1
- package/dist/twilight/{p-18d7763b.entry.js → p-598cadf4.entry.js} +1 -1
- package/dist/twilight/{p-66313db6.entry.js → p-635265d1.entry.js} +1 -1
- package/dist/twilight/{p-95224232.entry.js → p-659e2280.entry.js} +1 -1
- package/dist/twilight/{p-6757a647.entry.js → p-6a3487de.entry.js} +1 -1
- package/dist/twilight/{p-582247b3.entry.js → p-6d07d195.entry.js} +1 -1
- package/dist/twilight/{p-8dab94d8.entry.js → p-6ee096e8.entry.js} +1 -1
- package/dist/twilight/{p-c138132c.entry.js → p-723aeda4.entry.js} +1 -1
- package/dist/twilight/{p-c8c36233.entry.js → p-743b79ae.entry.js} +1 -1
- package/dist/twilight/{p-5f1b8510.entry.js → p-75e692d1.entry.js} +1 -1
- package/dist/twilight/{p-0895958b.entry.js → p-79444897.entry.js} +1 -1
- package/dist/twilight/{p-4e2e4e92.entry.js → p-7b23dec7.entry.js} +1 -1
- package/dist/twilight/p-7bb24ad6.entry.js +4 -0
- package/dist/twilight/{p-4c34e1fd.entry.js → p-7d9288b0.entry.js} +1 -1
- package/dist/twilight/{p-0ecbe43b.entry.js → p-85f95a58.entry.js} +1 -1
- package/dist/twilight/{p-2a9a4e12.entry.js → p-86a1f616.entry.js} +1 -1
- package/dist/twilight/{p-1bc7ab28.entry.js → p-87115499.entry.js} +1 -1
- package/dist/twilight/{p-497cc3a6.entry.js → p-878c2be2.entry.js} +1 -1
- package/dist/twilight/{p-524aabd2.entry.js → p-89e9a91f.entry.js} +1 -1
- package/dist/twilight/{p-f3771ebc.entry.js → p-90ee37c7.entry.js} +1 -1
- package/dist/twilight/{p-e4cb5ee8.entry.js → p-96584590.entry.js} +1 -1
- package/dist/twilight/{p-3136d942.entry.js → p-96a57e9c.entry.js} +1 -1
- package/dist/twilight/{p-7a17138f.entry.js → p-978e4164.entry.js} +1 -1
- package/dist/twilight/{p-b9b32feb.entry.js → p-97fc57c1.entry.js} +1 -1
- package/dist/twilight/p-98b1ff35.entry.js +4 -0
- package/dist/twilight/{p-5a26fb06.entry.js → p-9d18525b.entry.js} +1 -1
- package/dist/twilight/p-B83s3cRn.js +9 -0
- package/dist/twilight/{p-5UtJVEzd.js → p-BVqCTDsV.js} +1 -1
- package/dist/twilight/{p-5njrWPq2.js → p-CP29f7RQ.js} +2 -2
- package/dist/twilight/{p-CXv4fDWa.js → p-CS-t4QAX.js} +1 -1
- package/dist/twilight/{p-1YJa6YaH.js → p-Cluq3aDa.js} +1 -1
- package/dist/twilight/{p-yEKxvrPt.js → p-D-zqM6k8.js} +1 -1
- package/dist/twilight/{p-Dke2dnYe.js → p-DJmqmO68.js} +1 -1
- package/dist/twilight/{p-CkJpLPBM.js → p-DgwK96eP.js} +1 -1
- package/dist/twilight/p-DqXpn47Z.js +4 -0
- package/dist/twilight/p-DrXX8XG8.js +4 -0
- package/dist/twilight/{p-Cf5WZwC9.js → p-DzW3U8TR.js} +1 -1
- package/dist/twilight/{p-Dso9PQdO.js → p-JKh0XFIn.js} +1 -1
- package/dist/twilight/{p-64ee420e.entry.js → p-a347e701.entry.js} +1 -1
- package/dist/twilight/{p-271a2d55.entry.js → p-a5d08af6.entry.js} +1 -1
- package/dist/twilight/{p-fbb156e8.entry.js → p-a774f6f0.entry.js} +7 -7
- package/dist/twilight/p-afaa0fbe.entry.js +4 -0
- package/dist/twilight/p-b389b1d3.entry.js +4 -0
- package/dist/twilight/{p-3b0032e4.entry.js → p-b6d5ae9b.entry.js} +1 -1
- package/dist/twilight/{p-2d62c356.entry.js → p-b862c670.entry.js} +1 -1
- package/dist/twilight/{p-4e71dacc.entry.js → p-bab59319.entry.js} +1 -1
- package/dist/twilight/{p-16c09de9.entry.js → p-bf4c2184.entry.js} +1 -1
- package/dist/twilight/{p-b9477568.entry.js → p-c19cf93c.entry.js} +1 -1
- package/dist/twilight/{p-b16c1eac.entry.js → p-c34f8c08.entry.js} +1 -1
- package/dist/twilight/{p-d4e1a8f7.entry.js → p-c47ecca7.entry.js} +1 -1
- package/dist/twilight/{p-46d2375b.entry.js → p-c48f5c6b.entry.js} +1 -1
- package/dist/twilight/{p-1c049149.entry.js → p-c53c2f59.entry.js} +1 -1
- package/dist/twilight/{p-f5747d3c.entry.js → p-cd805a38.entry.js} +1 -1
- package/dist/twilight/{p-ac9a54cc.entry.js → p-cdd8ed7f.entry.js} +1 -1
- package/dist/twilight/{p-02df1c31.entry.js → p-ced4b7ac.entry.js} +1 -1
- package/dist/twilight/{p-21e9a475.entry.js → p-cf3365e2.entry.js} +1 -1
- package/dist/twilight/p-d78998b7.entry.js +4 -0
- package/dist/twilight/{p-bb7bc52f.entry.js → p-daea3207.entry.js} +1 -1
- package/dist/twilight/{p-6e766b2a.entry.js → p-dff6d623.entry.js} +1 -1
- package/dist/twilight/p-e04221de.entry.js +4 -0
- package/dist/twilight/{p-66448f0f.entry.js → p-e2934193.entry.js} +1 -1
- package/dist/twilight/{p-a9e276fa.entry.js → p-e3dab961.entry.js} +1 -1
- package/dist/twilight/{p-73607393.entry.js → p-e41e5fc7.entry.js} +1 -1
- package/dist/twilight/{p-fe222cbe.entry.js → p-e4c9cef4.entry.js} +1 -1
- package/dist/twilight/{p-a5afb821.entry.js → p-eaf9d536.entry.js} +1 -1
- package/dist/twilight/{p-c05513ae.entry.js → p-ee2b16d7.entry.js} +1 -1
- package/dist/twilight/{p-c224fa3a.entry.js → p-ee3ddc23.entry.js} +1 -1
- package/dist/twilight/{p-963d34af.entry.js → p-f0a14b18.entry.js} +1 -1
- package/dist/twilight/{p-4cff8533.entry.js → p-f195a63d.entry.js} +1 -1
- package/dist/twilight/{p-200a9c11.entry.js → p-f2c688d6.entry.js} +1 -1
- package/dist/twilight/{p-b7f1bad9.entry.js → p-f4ac8cae.entry.js} +1 -1
- package/dist/twilight/{p-1ee008c3.entry.js → p-f58d14ed.entry.js} +1 -1
- package/dist/twilight/{p-d505caaf.entry.js → p-f82cee0c.entry.js} +1 -1
- package/dist/twilight/{p-b639f062.entry.js → p-fa17989b.entry.js} +1 -1
- package/dist/twilight/{p-575b3b4c.entry.js → p-fbc075fe.entry.js} +1 -1
- package/dist/twilight/{p-f27472f4.entry.js → p-fc5d5473.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-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-WDLGvEaR.js +0 -9
- 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
|
+
}
|
|
@@ -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
|
+
}
|