@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
|
@@ -4,7 +4,6 @@ export declare class SallaCommentItem {
|
|
|
4
4
|
componentDidLoad(): void;
|
|
5
5
|
host: HTMLElement;
|
|
6
6
|
private likeBtn;
|
|
7
|
-
private modal;
|
|
8
7
|
/**
|
|
9
8
|
* Single Comment Instance
|
|
10
9
|
*/
|
|
@@ -20,12 +19,15 @@ export declare class SallaCommentItem {
|
|
|
20
19
|
has_order_trans: any;
|
|
21
20
|
allowLikes: any;
|
|
22
21
|
allowAttachImages: any;
|
|
22
|
+
allowAttachVideos: any;
|
|
23
23
|
helpfulLabel: any;
|
|
24
24
|
reviewDetailsLabel: any;
|
|
25
25
|
likesCount: number;
|
|
26
26
|
likedComments: any[];
|
|
27
27
|
showReviewFactors: boolean;
|
|
28
28
|
private getReplies;
|
|
29
|
+
private getImages;
|
|
30
|
+
private getVideos;
|
|
29
31
|
private getDate;
|
|
30
32
|
private getTime;
|
|
31
33
|
private toggleLike;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { type EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import type { FilePondFile } from './interfaces';
|
|
3
3
|
import type { FilePond as FilePondType, FilePondErrorDescription } from 'filepond/types/index';
|
|
4
|
+
interface PreviewFile {
|
|
5
|
+
id: string;
|
|
6
|
+
url: string;
|
|
7
|
+
mimeType?: string;
|
|
8
|
+
processing?: boolean;
|
|
9
|
+
}
|
|
4
10
|
export declare class SallaFileUpload {
|
|
5
11
|
private filePondLoaded;
|
|
6
12
|
private FilePond;
|
|
@@ -15,10 +21,30 @@ export declare class SallaFileUpload {
|
|
|
15
21
|
filepond: FilePondType;
|
|
16
22
|
host: HTMLElement;
|
|
17
23
|
max_images_count: (count: number) => string;
|
|
24
|
+
max_videos_count: (count: number) => string;
|
|
18
25
|
max_count_hint: (count: number) => string;
|
|
26
|
+
video_too_large: (size: string) => string;
|
|
27
|
+
video_too_long: (duration: string) => string;
|
|
19
28
|
uploadedFiles: any[];
|
|
20
29
|
isListScrollerListenerAdded: boolean;
|
|
21
30
|
showMaxCountHint: boolean;
|
|
31
|
+
previewFiles: PreviewFile[];
|
|
32
|
+
private attachmentView;
|
|
33
|
+
private maxFilesNotified;
|
|
34
|
+
private validationRejectedFileIds;
|
|
35
|
+
private previewFilesSyncRaf;
|
|
36
|
+
/**
|
|
37
|
+
* Transient reservations for files currently passing add-validation, keyed by
|
|
38
|
+
* FilePond file id. FilePond runs beforeAddFile async and only inserts a file
|
|
39
|
+
* into `getFiles()` after validation resolves, so a batch of parallel picks
|
|
40
|
+
* would race if we counted the pond alone. We reserve a slot here synchronously
|
|
41
|
+
* for the in-flight window and always release it in `onaddfile` (once the file
|
|
42
|
+
* is committed to the pond and counted from there). Because committed files are
|
|
43
|
+
* always counted from `getFiles()` — never from this map — it cannot drift and
|
|
44
|
+
* "stick" the uploader at its limit across delete/re-upload cycles.
|
|
45
|
+
*/
|
|
46
|
+
private inFlightFiles;
|
|
47
|
+
private previewObjectUrls;
|
|
22
48
|
/**
|
|
23
49
|
* The uploaded image link or URL
|
|
24
50
|
*/
|
|
@@ -103,6 +129,10 @@ export declare class SallaFileUpload {
|
|
|
103
129
|
* Enable or disable adding multiple files
|
|
104
130
|
*/
|
|
105
131
|
allowMultiple: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Enable the custom gallery preview instead of FilePond thumbnails.
|
|
134
|
+
*/
|
|
135
|
+
enableGallery: boolean;
|
|
106
136
|
/**
|
|
107
137
|
* Allow drop to replace a file, only works when allowMultiple is false
|
|
108
138
|
*/
|
|
@@ -130,7 +160,8 @@ export declare class SallaFileUpload {
|
|
|
130
160
|
*/
|
|
131
161
|
allowImagePreview: boolean;
|
|
132
162
|
/**
|
|
133
|
-
* Fixed image preview height, overrides min and max preview height
|
|
163
|
+
* Fixed image preview height, overrides min and max preview height.
|
|
164
|
+
* Also sets the gallery thumbnail size when using the swiper preview (default: 75px).
|
|
134
165
|
*/
|
|
135
166
|
imagePreviewHeight: number;
|
|
136
167
|
/**
|
|
@@ -155,6 +186,24 @@ export declare class SallaFileUpload {
|
|
|
155
186
|
* The maxmimum number of files that can be uploaded in parallel
|
|
156
187
|
*/
|
|
157
188
|
maxParallelUploads: number;
|
|
189
|
+
/**
|
|
190
|
+
* Primary: maximum number of image files (split count mode).
|
|
191
|
+
* When set with or without maxVideosCount, maxFilesCount is ignored for count limits.
|
|
192
|
+
*/
|
|
193
|
+
maxImagesCount: number;
|
|
194
|
+
/**
|
|
195
|
+
* Primary: maximum number of video files (split count mode).
|
|
196
|
+
* When set with or without maxImagesCount, maxFilesCount is ignored for count limits.
|
|
197
|
+
*/
|
|
198
|
+
maxVideosCount: number;
|
|
199
|
+
/**
|
|
200
|
+
* Maximum size for video files only, e.g. 50MB or 750KB
|
|
201
|
+
*/
|
|
202
|
+
maxVideoFileSize: `${number}MB` | `${number}KB`;
|
|
203
|
+
/**
|
|
204
|
+
* Maximum video duration in seconds
|
|
205
|
+
*/
|
|
206
|
+
maxVideoDuration: number;
|
|
158
207
|
/**
|
|
159
208
|
* Set to true to enable custom validity messages.
|
|
160
209
|
* FilePond will throw an error when a parent form is submitted and it contains invalid files.
|
|
@@ -259,14 +308,27 @@ export declare class SallaFileUpload {
|
|
|
259
308
|
uploaded: EventEmitter<string>;
|
|
260
309
|
uploadedHandler(): CustomEvent<string>;
|
|
261
310
|
/**
|
|
262
|
-
* Event emitted when the file is about to be removed. Returns
|
|
311
|
+
* Event emitted when the file is about to be removed. Returns the removed file id when available.
|
|
263
312
|
*/
|
|
264
|
-
removed: EventEmitter<
|
|
265
|
-
|
|
313
|
+
removed: EventEmitter<string | number>;
|
|
314
|
+
/**
|
|
315
|
+
* Event emitted when the gallery preview list changes (upload/remove).
|
|
316
|
+
*/
|
|
317
|
+
galleryUpdated: EventEmitter<{
|
|
318
|
+
count: number;
|
|
319
|
+
imageCount?: number;
|
|
320
|
+
videoCount?: number;
|
|
321
|
+
uploading?: boolean;
|
|
322
|
+
}>;
|
|
323
|
+
private emitRemovedFile;
|
|
324
|
+
removedHandler(deletedFile: FilePondFile, options?: {
|
|
325
|
+
skipEmit?: boolean;
|
|
326
|
+
}): void;
|
|
266
327
|
/**
|
|
267
328
|
* Method to set option for filepond
|
|
268
329
|
* */
|
|
269
330
|
setOption(key: string, value: string | number): Promise<void>;
|
|
331
|
+
private generateUploadFileId;
|
|
270
332
|
private getLabel;
|
|
271
333
|
/**
|
|
272
334
|
*
|
|
@@ -275,8 +337,69 @@ export declare class SallaFileUpload {
|
|
|
275
337
|
private getFileSize;
|
|
276
338
|
private getFormDataFileInput;
|
|
277
339
|
private openFileBrowser;
|
|
340
|
+
private usesGalleryPreview;
|
|
341
|
+
private isValidPreviewUrl;
|
|
342
|
+
private getHiddenInputValue;
|
|
343
|
+
private usesSplitCountLimits;
|
|
344
|
+
private hasImageLimit;
|
|
345
|
+
private hasVideoLimit;
|
|
346
|
+
private getMaxImagesCount;
|
|
347
|
+
private getMaxVideosCount;
|
|
348
|
+
private getTotalMaxFiles;
|
|
349
|
+
private getImageMaxFileSizeString;
|
|
350
|
+
private getImageMaxFileSizeBytes;
|
|
351
|
+
private getVideoMaxFileSizeBytes;
|
|
352
|
+
private getFilePondMaxFileSizeValue;
|
|
353
|
+
private getFileMimeType;
|
|
354
|
+
private getFileUrlOrName;
|
|
355
|
+
private isVideoFile;
|
|
356
|
+
private getPondItemNameOrUrl;
|
|
357
|
+
private isVideoFileFromPond;
|
|
358
|
+
private isImageFileFromPond;
|
|
359
|
+
private getFileTypeCategory;
|
|
360
|
+
/**
|
|
361
|
+
* Effective count for a type = files committed to the pond + still-in-flight
|
|
362
|
+
* reservations that are not yet in the pond. Committed files come straight from
|
|
363
|
+
* `getFiles()` (the source of truth), so this self-heals after deletes and can
|
|
364
|
+
* never leave the uploader stuck at its limit.
|
|
365
|
+
*/
|
|
366
|
+
private countAcceptedByType;
|
|
367
|
+
/** Effective total across all types (committed pond files + in-flight reservations). */
|
|
368
|
+
private countAcceptedTotal;
|
|
369
|
+
private reserveAcceptedFile;
|
|
370
|
+
private releaseAcceptedFile;
|
|
371
|
+
private getVideoDuration;
|
|
372
|
+
private notifyMaxImagesLimit;
|
|
373
|
+
private notifyMaxVideosLimit;
|
|
374
|
+
private notifyMaxFilesLimit;
|
|
375
|
+
private markValidationRejected;
|
|
376
|
+
private getUploadErrorMessageForFile;
|
|
377
|
+
private notifyUploadError;
|
|
378
|
+
private removeFailedFile;
|
|
379
|
+
private validateBeforeAddFile;
|
|
380
|
+
private renderGalleryThumb;
|
|
381
|
+
private releasePreviewObjectUrl;
|
|
382
|
+
private prunePreviewObjectUrls;
|
|
383
|
+
private revokeAllPreviewObjectUrls;
|
|
384
|
+
private getFilePreviewUrl;
|
|
385
|
+
private isFileUploading;
|
|
386
|
+
private getPreviewGalleryItems;
|
|
387
|
+
private getCountableGalleryItems;
|
|
388
|
+
private schedulePreviewFilesSync;
|
|
389
|
+
private mapItemsToPreviewFiles;
|
|
390
|
+
private emitGalleryCounts;
|
|
391
|
+
private syncPreviewFiles;
|
|
392
|
+
private enforceDropLabelVisibility;
|
|
393
|
+
private scheduleDropLabelVisibilityEnforcement;
|
|
394
|
+
private removePreviewFile;
|
|
395
|
+
private openPreview;
|
|
396
|
+
private getGalleryThumbSize;
|
|
397
|
+
private getGalleryStyles;
|
|
398
|
+
private renderPreviewGallery;
|
|
278
399
|
private getFiles;
|
|
279
400
|
componentWillLoad(): Promise<void>;
|
|
401
|
+
disconnectedCallback(): void;
|
|
280
402
|
render(): any;
|
|
281
403
|
componentDidLoad(): Promise<void>;
|
|
282
404
|
}
|
|
405
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const IMAGE_UPLOAD_ACCEPT = "image/png, image/jpeg, image/jpg";
|
|
2
|
+
/** Valid MIME types + extensions for native file pickers (macOS Finder requires real MIME types). */
|
|
3
|
+
export declare const VIDEO_UPLOAD_ACCEPT = "video/mp4, video/quicktime, video/x-msvideo, video/x-matroska, video/webm, .mp4, .mov, .avi, .mkv, .webm";
|
|
4
|
+
export declare const MEDIA_UPLOAD_ACCEPT = "image/png, image/jpeg, image/jpg, video/mp4, video/quicktime, video/x-msvideo, video/x-matroska, video/webm, .mp4, .mov, .avi, .mkv, .webm";
|
|
5
|
+
export declare function buildMediaUploadAccept(allowImages: boolean, allowVideos: boolean): string;
|
|
6
|
+
export declare function usesSplitCountLimits(maxImagesCount?: number, maxVideosCount?: number): boolean;
|
|
7
|
+
export declare function isConfiguredLimit(limit?: number): boolean;
|
|
8
|
+
export declare function getMaxImagesCount(maxImagesCount?: number): number;
|
|
9
|
+
export declare function getMaxVideosCount(maxVideosCount?: number): number;
|
|
10
|
+
export declare function getTotalMaxFiles(maxFilesCount: number, maxImagesCount?: number, maxVideosCount?: number): number;
|
|
11
|
+
export declare function isVideoMimeType(mimeType?: string, urlOrName?: string): boolean;
|
|
12
|
+
export declare function isImageMimeType(mimeType?: string, urlOrName?: string): boolean;
|
|
13
|
+
export declare function parseSizeToBytes(size: string): number;
|
|
14
|
+
export declare function formatBytesAsSize(bytes: number): string;
|
|
15
|
+
export declare function formatDuration(seconds: number): string;
|
|
16
|
+
export declare function getFilePondMaxFileSize(maxFileSize: string | undefined, storeUploadSizeKb: number | undefined, maxVideoFileSize: string | undefined): string | null;
|
|
17
|
+
export interface UploadErrorMessageOptions {
|
|
18
|
+
isVideo?: boolean;
|
|
19
|
+
maxVideoFileSizeLabel?: string;
|
|
20
|
+
maxVideoBytes?: number | null;
|
|
21
|
+
tooLargeLabel: string;
|
|
22
|
+
invalidTypeLabel: string;
|
|
23
|
+
genericErrorLabel: string;
|
|
24
|
+
videoTooLarge: (size: string) => string;
|
|
25
|
+
}
|
|
26
|
+
export declare function isUploadSizeError(error: {
|
|
27
|
+
type?: string;
|
|
28
|
+
body?: string;
|
|
29
|
+
}): boolean;
|
|
30
|
+
export declare function isUploadTypeError(error: {
|
|
31
|
+
type?: string;
|
|
32
|
+
body?: string;
|
|
33
|
+
}): boolean;
|
|
34
|
+
export declare function getUploadErrorMessage(error: {
|
|
35
|
+
type?: string;
|
|
36
|
+
body?: string;
|
|
37
|
+
}, options: UploadErrorMessageOptions): string;
|
|
38
|
+
/** FilePond FileStatus values used for gallery counting. */
|
|
39
|
+
export declare const FILE_STATUS_INIT = 1;
|
|
40
|
+
export declare const FILE_STATUS_IDLE = 2;
|
|
41
|
+
export declare const FILE_STATUS_PROCESSING = 3;
|
|
42
|
+
export declare const FILE_STATUS_PROCESSING_COMPLETE = 5;
|
|
43
|
+
export declare const FILE_STATUS_PROCESSING_ERROR = 6;
|
|
44
|
+
export declare const FILE_STATUS_LOADING = 7;
|
|
45
|
+
export declare const FILE_STATUS_LOAD_ERROR = 8;
|
|
46
|
+
export declare const FILE_STATUS_PROCESSING_QUEUED = 9;
|
|
47
|
+
export declare function shouldCountGalleryFile(status: number): boolean;
|
|
48
|
+
/** Exclude in-flight add validation so limit counters don't spike on rejected picks. */
|
|
49
|
+
export declare function shouldCountGalleryLimit(status: number): boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare const MAX_IMAGE_UPLOAD_LIMIT = 10;
|
|
2
|
+
export declare const MAX_VIDEO_UPLOAD_LIMIT = 5;
|
|
3
|
+
export declare const MAX_VIDEO_FILE_SIZE: `${number}MB`;
|
|
4
|
+
export declare const MAX_VIDEO_DURATION = 60;
|
|
5
|
+
export declare const MAX_PARALLEL_UPLOADS = 10;
|
|
6
|
+
export declare function isVideoUrl(url: string): boolean;
|
|
7
|
+
export declare function splitMediaUrls(urls: string[]): {
|
|
8
|
+
images: string[];
|
|
9
|
+
videos: string[];
|
|
10
|
+
};
|
|
11
|
+
export declare function getMediaUrlsByType(items: Array<{
|
|
12
|
+
url?: string;
|
|
13
|
+
}>): {
|
|
14
|
+
images: string[];
|
|
15
|
+
videos: string[];
|
|
16
|
+
};
|
|
17
|
+
export declare function parseMediaField(value: string | string[]): string[];
|
|
18
|
+
export declare function countMediaByType(items: Array<{
|
|
19
|
+
url?: string;
|
|
20
|
+
}>): {
|
|
21
|
+
image: number;
|
|
22
|
+
video: number;
|
|
23
|
+
};
|
|
24
|
+
export declare function createPreloadedMediaItem(url: string): {
|
|
25
|
+
id: string;
|
|
26
|
+
url: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function removeUploadedImage(images: Array<{
|
|
29
|
+
id?: string | number;
|
|
30
|
+
url?: string;
|
|
31
|
+
}>, removedId: string | number): {
|
|
32
|
+
id?: string | number;
|
|
33
|
+
url?: string;
|
|
34
|
+
}[];
|
|
35
|
+
export declare function syncHiddenMediaInputs(imagesInput: HTMLInputElement | undefined, videosInput: HTMLInputElement | undefined, items: Array<{
|
|
36
|
+
url?: string;
|
|
37
|
+
}>): void;
|
|
38
|
+
export declare function normalizeSubmittedMedia(data: Record<string, unknown>, allowAttachImages: boolean, allowAttachVideos: boolean): void;
|
|
@@ -19,12 +19,17 @@ export declare class SallaRatingModalV2 {
|
|
|
19
19
|
defaultMode: boolean;
|
|
20
20
|
deleteMode: boolean;
|
|
21
21
|
shouldOpenDeleteModal: boolean;
|
|
22
|
-
editType
|
|
23
|
-
editFeedbackId
|
|
24
|
-
deleteFeedbackId
|
|
22
|
+
editType?: 'product' | 'store' | 'shipping';
|
|
23
|
+
editFeedbackId?: number;
|
|
24
|
+
deleteFeedbackId?: number;
|
|
25
25
|
editItem: any;
|
|
26
26
|
allowAttachImages: boolean;
|
|
27
|
+
allowAttachVideos: boolean;
|
|
27
28
|
allowContactSupport: boolean;
|
|
29
|
+
uploadCounts: Record<number, number>;
|
|
30
|
+
uploadImageCounts: Record<number, number>;
|
|
31
|
+
uploadVideoCounts: Record<number, number>;
|
|
32
|
+
hasUploadsInProgress: boolean;
|
|
28
33
|
loyaltyImageRatingPoints: number;
|
|
29
34
|
private dragAndDropFilesLabel;
|
|
30
35
|
private contactSubjectLabel;
|
|
@@ -43,6 +48,9 @@ export declare class SallaRatingModalV2 {
|
|
|
43
48
|
private loyaltyPointsForImagesLabel;
|
|
44
49
|
private contentRefs;
|
|
45
50
|
private hiddenInputs;
|
|
51
|
+
private hiddenVideoInputs;
|
|
52
|
+
private editHiddenVideosInput?;
|
|
53
|
+
private uploadingByProductId;
|
|
46
54
|
private userFilledFactorKeys;
|
|
47
55
|
private boundRatingRows;
|
|
48
56
|
private stepsCount;
|
|
@@ -59,17 +67,30 @@ export declare class SallaRatingModalV2 {
|
|
|
59
67
|
private steps;
|
|
60
68
|
private dots;
|
|
61
69
|
private submitted;
|
|
62
|
-
private MAX_UPLOAD_LIMIT;
|
|
63
70
|
private thanksCountdownInterval;
|
|
71
|
+
private MAX_IMAGE_UPLOAD_LIMIT;
|
|
72
|
+
private MAX_VIDEO_UPLOAD_LIMIT;
|
|
73
|
+
private MAX_VIDEO_FILE_SIZE;
|
|
74
|
+
private MAX_VIDEO_DURATION;
|
|
75
|
+
private MAX_PARALLEL_UPLOADS;
|
|
64
76
|
/**
|
|
65
77
|
* The order id, to rate on its products & shipping
|
|
66
78
|
*/
|
|
67
|
-
orderId
|
|
68
|
-
host: HTMLElement;
|
|
79
|
+
orderId?: number;
|
|
80
|
+
host: HTMLElement | undefined;
|
|
69
81
|
/**
|
|
70
82
|
* Show the rating modal
|
|
71
83
|
*/
|
|
72
84
|
private syncStoreSettings;
|
|
85
|
+
private canAttachMedia;
|
|
86
|
+
private getMediaUploadAccept;
|
|
87
|
+
private refreshMediaLabels;
|
|
88
|
+
private getAllowedMediaTypesLabel;
|
|
89
|
+
private getMaxUploadHintLabel;
|
|
90
|
+
private setUploadCount;
|
|
91
|
+
private setUploaderProcessing;
|
|
92
|
+
private scheduleUploaderHeightRefresh;
|
|
93
|
+
private handleGalleryCountUpdate;
|
|
73
94
|
/** Encrypted order id from page config / prop — used to fetch order details. */
|
|
74
95
|
private getRatingOrderId;
|
|
75
96
|
/** Numeric order id from API response — used when submitting ratings. */
|
|
@@ -95,7 +116,9 @@ export declare class SallaRatingModalV2 {
|
|
|
95
116
|
}): Promise<void>;
|
|
96
117
|
fetchEditItem(feedbackId: number): Promise<void>;
|
|
97
118
|
private editReview;
|
|
98
|
-
openDeleteModal(params:
|
|
119
|
+
openDeleteModal(params: {
|
|
120
|
+
feedback_id: number;
|
|
121
|
+
}): Promise<unknown>;
|
|
99
122
|
deleteReview(): Promise<void>;
|
|
100
123
|
/**
|
|
101
124
|
* Show the rating modal
|
|
@@ -12,5 +12,5 @@ export declare function resolveReviewFactors(order: {
|
|
|
12
12
|
products?: unknown;
|
|
13
13
|
};
|
|
14
14
|
} | null | undefined, ratingId?: number, productId?: number, itemId?: number): ReviewFactor[];
|
|
15
|
-
export declare function fetchOrder(orderId: number): Promise<unknown>;
|
|
15
|
+
export declare function fetchOrder(orderId: string | number): Promise<unknown>;
|
|
16
16
|
export declare function resetOrderCacheForTests(): void;
|
|
@@ -11,6 +11,13 @@ export interface ProductRating {
|
|
|
11
11
|
product?: {
|
|
12
12
|
id?: number;
|
|
13
13
|
};
|
|
14
|
+
stars?: number;
|
|
15
|
+
rating?: number;
|
|
16
|
+
content?: string;
|
|
17
|
+
is_pending?: boolean;
|
|
18
|
+
can_update?: boolean;
|
|
19
|
+
images?: string[];
|
|
20
|
+
videos?: string[];
|
|
14
21
|
factor_reviews?: ReviewFactor[];
|
|
15
22
|
review_factors?: ReviewFactor[];
|
|
16
23
|
factors?: ReviewFactor[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ProductRating } from '../salla-review-factors-tags/interfaces';
|
|
2
|
+
export interface AttachmentMediaSource {
|
|
3
|
+
images?: string[];
|
|
4
|
+
videos?: string[];
|
|
5
|
+
product?: {
|
|
6
|
+
id?: number | string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface OrderItemRating extends AttachmentMediaSource {
|
|
10
|
+
id?: number | string;
|
|
11
|
+
stars?: number;
|
|
12
|
+
content?: string;
|
|
13
|
+
is_pending?: boolean;
|
|
14
|
+
can_update?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type ProductRatingMediaSource = ProductRating & AttachmentMediaSource;
|
|
17
|
+
export interface OrderItem {
|
|
18
|
+
id?: number | string;
|
|
19
|
+
product?: {
|
|
20
|
+
id?: number | string;
|
|
21
|
+
};
|
|
22
|
+
rating?: OrderItemRating | null;
|
|
23
|
+
}
|
|
24
|
+
export interface OrderResponse {
|
|
25
|
+
items?: OrderItem[];
|
|
26
|
+
rating?: {
|
|
27
|
+
product?: unknown;
|
|
28
|
+
products?: unknown;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { OrderItem, ProductRatingMediaSource } from './interfaces';
|
|
2
|
+
export declare class SallaReviewOrderItem {
|
|
3
|
+
/**
|
|
4
|
+
* Product id used to match `items[].product.id` and `rating.product[].product.id`.
|
|
5
|
+
* The order itself is fetched via `page.id`.
|
|
6
|
+
*/
|
|
7
|
+
productId?: string | number;
|
|
8
|
+
orderItem?: OrderItem;
|
|
9
|
+
fetchOrderId?: string | number;
|
|
10
|
+
productRatings: ProductRatingMediaSource[];
|
|
11
|
+
allowUpdate: boolean;
|
|
12
|
+
componentWillLoad(): Promise<void>;
|
|
13
|
+
onProductIdChange(): Promise<void>;
|
|
14
|
+
/** Real order id used for `GET /orders/{id}`. */
|
|
15
|
+
private resolveFetchOrderId;
|
|
16
|
+
private sameId;
|
|
17
|
+
private label;
|
|
18
|
+
private toOrderItemRating;
|
|
19
|
+
/**
|
|
20
|
+
* Build the reviewed line item from:
|
|
21
|
+
* - `order.items[]` matched by `items[].product.id`
|
|
22
|
+
* - `order.rating.product[]` matched by `rating.product[].product.id`
|
|
23
|
+
*/
|
|
24
|
+
private resolveOrderItem;
|
|
25
|
+
private loadOrderItem;
|
|
26
|
+
private renderActions;
|
|
27
|
+
private serializeRatingMedia;
|
|
28
|
+
private serializeProductRatings;
|
|
29
|
+
render(): any;
|
|
30
|
+
}
|