@salla.sa/twilight-components 2.14.539 → 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.
Files changed (401) hide show
  1. package/dist/cjs/{filepond-CIpOpiw6.js → filepond-CNdvfaMJ.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-CPV_SZrj.js → filepond-plugin-file-poster-Di_D3w89.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-C_XGylG1.js → filepond-plugin-file-validate-size-BiRa98qd.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CmVS48lk.js → filepond-plugin-file-validate-type-Bolv-kyJ.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-KfqhH5F9.js → filepond-plugin-image-edit-AN6huMV9.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-BfRIDxO-.js → filepond-plugin-image-exif-orientation-Bwa8QtGo.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-DlvO4sHZ.js → filepond-plugin-image-preview-CaVYLAvG.js} +1 -1
  8. package/dist/cjs/helpers-ClOJIAG8.js +89 -0
  9. package/dist/cjs/{index-CMDyFi6Q.js → index-DX2EKTCE.js} +18 -14
  10. package/dist/cjs/{intlTelInput-BK34b4sR.js → intlTelInput-DnwdGAiP.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-add-product-button_5.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  19. package/dist/cjs/{salla-booking-field_7.cjs.entry.js → salla-attachment-view_9.cjs.entry.js} +1003 -40
  20. package/dist/cjs/salla-badge.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-basket-gap.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-comment-factors.cjs.entry.js +2 -2
  28. package/dist/cjs/salla-comment-form_8.cjs.entry.js +14 -5
  29. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-cookies-bar.cjs.entry.js +303 -26
  32. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-loyalty-banner_10.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-loyalty-exchange-product-card.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-loyalty-points-banner.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-loyalty-points-history.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-notification-item_2.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-options-modal_2.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-shipments.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +420 -84
  85. package/dist/cjs/salla-rating-modal.cjs.entry.js +3 -5
  86. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +4 -83
  87. package/dist/cjs/salla-review-order-item.cjs.entry.js +125 -0
  88. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  89. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  91. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  92. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  94. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  95. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  96. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  98. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  100. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  102. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +1 -1
  104. package/dist/cjs/twilight.cjs.js +2 -2
  105. package/dist/cjs/upload-limits-C3RarAPN.js +136 -0
  106. package/dist/cjs/{vanilla-picker-DYTpjTDj.js → vanilla-picker-BUFYPi-_.js} +1 -1
  107. package/dist/collection/collection-manifest.json +16 -11
  108. package/dist/collection/components/salla-attachment-view/salla-attachment-view.css +164 -0
  109. package/dist/collection/components/salla-attachment-view/salla-attachment-view.js +250 -0
  110. package/dist/collection/components/salla-attachments/salla-attachments.css +69 -0
  111. package/dist/collection/components/salla-attachments/salla-attachments.js +375 -0
  112. package/dist/collection/components/salla-comments/salla-comment-item.js +13 -3
  113. package/dist/collection/components/salla-comments/salla-comments.css +7 -0
  114. package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.css +206 -56
  115. package/dist/collection/components/salla-cookies-bar/salla-cookies-bar.js +322 -30
  116. package/dist/collection/components/salla-datetime-picker/salla-datetime-picker.js +1 -1
  117. package/dist/collection/components/salla-file-upload/salla-file-upload.css +149 -0
  118. package/dist/collection/components/salla-file-upload/salla-file-upload.js +784 -42
  119. package/dist/collection/components/salla-file-upload/upload-limits.js +127 -0
  120. package/dist/collection/components/salla-products-slider/salla-products-slider.js +1 -1
  121. package/dist/collection/components/salla-rating-modal/rating-modal-media.js +85 -0
  122. package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +348 -85
  123. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +17 -7
  124. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +1 -3
  125. package/dist/collection/components/salla-review-factors-tags/helpers.js +8 -7
  126. package/dist/collection/components/salla-review-order-item/interfaces.js +1 -0
  127. package/dist/collection/components/salla-review-order-item/salla-review-order-item.js +154 -0
  128. package/dist/components/index.js +2 -2
  129. package/dist/components/salla-add-product-button2.js +40 -28
  130. package/dist/components/salla-attachment-view.d.ts +11 -0
  131. package/dist/components/salla-attachment-view.js +9 -0
  132. package/dist/components/salla-attachment-view2.js +323 -0
  133. package/dist/components/salla-attachments.d.ts +11 -0
  134. package/dist/components/salla-attachments.js +9 -0
  135. package/dist/components/salla-attachments2.js +232 -0
  136. package/dist/components/salla-basket-gap.js +46 -34
  137. package/dist/components/salla-breadcrumb.js +1 -1
  138. package/dist/components/salla-comment-factors2.js +1 -1
  139. package/dist/components/salla-comment-item2.js +26 -4
  140. package/dist/components/salla-comments.js +14 -2
  141. package/dist/components/salla-cookies-bar.js +319 -27
  142. package/dist/components/salla-custom-fields.js +28 -4
  143. package/dist/components/salla-file-upload2.js +703 -31
  144. package/dist/components/salla-gifting.js +7 -1
  145. package/dist/components/salla-loyalty-exchange-product-card2.js +46 -34
  146. package/dist/components/salla-loyalty-panel.js +8 -2
  147. package/dist/components/salla-loyalty-program.js +8 -2
  148. package/dist/components/salla-multiple-bundle-product-cart2.js +40 -28
  149. package/dist/components/salla-multiple-bundle-product-details2.js +12 -6
  150. package/dist/components/salla-multiple-bundle-product-options-modal2.js +7 -1
  151. package/dist/components/salla-multiple-bundle-product-slider2.js +1 -1
  152. package/dist/components/salla-multiple-bundle-product.js +12 -6
  153. package/dist/components/salla-offer-modal.js +8 -2
  154. package/dist/components/salla-order-edit-item2.js +36 -24
  155. package/dist/components/salla-order-edit.js +42 -30
  156. package/dist/components/salla-order-options-modal2.js +34 -22
  157. package/dist/components/salla-product-card2.js +44 -32
  158. package/dist/components/salla-product-options2.js +32 -20
  159. package/dist/components/salla-products-slider2.js +8 -2
  160. package/dist/components/salla-quick-buy2.js +36 -24
  161. package/dist/components/salla-rating-modal-v22.js +449 -97
  162. package/dist/components/salla-rating-modal.js +30 -20
  163. package/dist/components/salla-review-factors-tags2.js +9 -8
  164. package/dist/components/salla-review-order-item.d.ts +11 -0
  165. package/dist/components/salla-review-order-item.js +196 -0
  166. package/dist/components/salla-reward-details2.js +8 -2
  167. package/dist/components/salla-slider2.js +1 -1
  168. package/dist/esm/{filepond-DMUE9Fyj.js → filepond-CKsbRWmS.js} +1 -1
  169. package/dist/esm/{filepond-plugin-file-poster-DBZQTm7s.js → filepond-plugin-file-poster-B_gYCESq.js} +1 -1
  170. package/dist/esm/{filepond-plugin-file-validate-size-CrKxdsNW.js → filepond-plugin-file-validate-size-Bep6fNi3.js} +1 -1
  171. package/dist/esm/{filepond-plugin-file-validate-type-DvEJrucY.js → filepond-plugin-file-validate-type-r3uRmGIr.js} +1 -1
  172. package/dist/esm/{filepond-plugin-image-edit-C6ptCg9o.js → filepond-plugin-image-edit-BJcOlOFL.js} +1 -1
  173. package/dist/esm/{filepond-plugin-image-exif-orientation-IcgeTieF.js → filepond-plugin-image-exif-orientation-DJoDaRwQ.js} +1 -1
  174. package/dist/esm/{filepond-plugin-image-preview-CDMh74os.js → filepond-plugin-image-preview-BsuTLPS0.js} +1 -1
  175. package/dist/esm/helpers-DqXpn47Z.js +85 -0
  176. package/dist/esm/{index-CjQzkU95.js → index-BVqCTDsV.js} +18 -14
  177. package/dist/esm/{intlTelInput-Dsx2z7pR.js → intlTelInput-CD2FA0nI.js} +1 -1
  178. package/dist/esm/loader.js +3 -3
  179. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  180. package/dist/esm/salla-accordion_6.entry.js +1 -1
  181. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  182. package/dist/esm/salla-advertisement.entry.js +1 -1
  183. package/dist/esm/salla-alert_2.entry.js +1 -1
  184. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  185. package/dist/esm/salla-apps-icons.entry.js +1 -1
  186. package/dist/esm/{salla-booking-field_7.entry.js → salla-attachment-view_9.entry.js} +1002 -41
  187. package/dist/esm/salla-badge.entry.js +1 -1
  188. package/dist/esm/salla-basket-gap.entry.js +1 -1
  189. package/dist/esm/salla-bullet-delivery_2.entry.js +1 -1
  190. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  191. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  192. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  193. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  194. package/dist/esm/salla-comment-factors.entry.js +2 -2
  195. package/dist/esm/salla-comment-form_8.entry.js +14 -5
  196. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  197. package/dist/esm/salla-contacts.entry.js +1 -1
  198. package/dist/esm/salla-cookies-bar.entry.js +303 -26
  199. package/dist/esm/salla-count-down.entry.js +1 -1
  200. package/dist/esm/salla-custom-fields.entry.js +1 -1
  201. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  202. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  203. package/dist/esm/salla-filters-widget.entry.js +1 -1
  204. package/dist/esm/salla-filters.entry.js +1 -1
  205. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  206. package/dist/esm/salla-gifting.entry.js +1 -1
  207. package/dist/esm/salla-hook.entry.js +1 -1
  208. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  209. package/dist/esm/salla-installment.entry.js +1 -1
  210. package/dist/esm/salla-list-tile.entry.js +1 -1
  211. package/dist/esm/salla-localization-modal.entry.js +1 -1
  212. package/dist/esm/salla-login-modal.entry.js +1 -1
  213. package/dist/esm/salla-loyalty-banner_10.entry.js +1 -1
  214. package/dist/esm/salla-loyalty-exchange-product-card.entry.js +1 -1
  215. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  216. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  217. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  218. package/dist/esm/salla-loyalty.entry.js +1 -1
  219. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  220. package/dist/esm/salla-map_2.entry.js +1 -1
  221. package/dist/esm/salla-menu.entry.js +1 -1
  222. package/dist/esm/salla-metadata.entry.js +1 -1
  223. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  224. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  225. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  226. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  227. package/dist/esm/salla-notification-item_2.entry.js +1 -1
  228. package/dist/esm/salla-offer-modal.entry.js +1 -1
  229. package/dist/esm/salla-offer.entry.js +1 -1
  230. package/dist/esm/salla-order-branch.entry.js +1 -1
  231. package/dist/esm/salla-order-cancel.entry.js +1 -1
  232. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  233. package/dist/esm/salla-order-details-options.entry.js +1 -1
  234. package/dist/esm/salla-order-details.entry.js +1 -1
  235. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  236. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  237. package/dist/esm/salla-order-edit.entry.js +1 -1
  238. package/dist/esm/salla-order-options-modal_2.entry.js +1 -1
  239. package/dist/esm/salla-order-shipments.entry.js +1 -1
  240. package/dist/esm/salla-order-summary.entry.js +1 -1
  241. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  242. package/dist/esm/salla-orders.entry.js +1 -1
  243. package/dist/esm/salla-payments.entry.js +1 -1
  244. package/dist/esm/salla-placeholder.entry.js +1 -1
  245. package/dist/esm/salla-price-range.entry.js +1 -1
  246. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  247. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  248. package/dist/esm/salla-products-list.entry.js +1 -1
  249. package/dist/esm/salla-products-slider.entry.js +1 -1
  250. package/dist/esm/salla-quick-order.entry.js +1 -1
  251. package/dist/esm/salla-rating-modal-v2.entry.js +420 -84
  252. package/dist/esm/salla-rating-modal.entry.js +3 -5
  253. package/dist/esm/salla-review-factors-tags.entry.js +2 -81
  254. package/dist/esm/salla-review-order-item.entry.js +123 -0
  255. package/dist/esm/salla-scopes.entry.js +1 -1
  256. package/dist/esm/salla-search.entry.js +1 -1
  257. package/dist/esm/salla-skeleton.entry.js +1 -1
  258. package/dist/esm/salla-slider.entry.js +1 -1
  259. package/dist/esm/salla-social-share.entry.js +1 -1
  260. package/dist/esm/salla-social.entry.js +1 -1
  261. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  262. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  263. package/dist/esm/salla-tooltip.entry.js +1 -1
  264. package/dist/esm/salla-trust-badges.entry.js +1 -1
  265. package/dist/esm/salla-user-menu.entry.js +1 -1
  266. package/dist/esm/salla-user-profile.entry.js +1 -1
  267. package/dist/esm/salla-user-settings.entry.js +1 -1
  268. package/dist/esm/salla-verify.entry.js +1 -1
  269. package/dist/esm/salla-wallet.entry.js +1 -1
  270. package/dist/esm/salla-wishlist-actions.entry.js +1 -1
  271. package/dist/esm/twilight.js +3 -3
  272. package/dist/esm/upload-limits-DrXX8XG8.js +121 -0
  273. package/dist/esm/{vanilla-picker-oYjMgYry.js → vanilla-picker-Ba_za9Iy.js} +1 -1
  274. package/dist/twilight/{p-49e6fe86.entry.js → p-003499a8.entry.js} +1 -1
  275. package/dist/twilight/{p-58184ae2.entry.js → p-0974f6c6.entry.js} +1 -1
  276. package/dist/twilight/{p-3052178c.entry.js → p-0a9093f1.entry.js} +1 -1
  277. package/dist/twilight/{p-cb179aba.entry.js → p-0ce2c41f.entry.js} +1 -1
  278. package/dist/twilight/{p-bbe79568.entry.js → p-0ea8365b.entry.js} +1 -1
  279. package/dist/twilight/p-1174e53e.entry.js +4 -0
  280. package/dist/twilight/{p-fe7990b7.entry.js → p-11ef8b82.entry.js} +1 -1
  281. package/dist/twilight/{p-dd5800dd.entry.js → p-13244c52.entry.js} +1 -1
  282. package/dist/twilight/{p-187a502c.entry.js → p-14689252.entry.js} +1 -1
  283. package/dist/twilight/{p-48db7b95.entry.js → p-17940d8a.entry.js} +1 -1
  284. package/dist/twilight/{p-a802826b.entry.js → p-1974f6da.entry.js} +1 -1
  285. package/dist/twilight/{p-250d7ab2.entry.js → p-1a191989.entry.js} +1 -1
  286. package/dist/twilight/{p-1d2804ac.entry.js → p-1ec6e0fe.entry.js} +1 -1
  287. package/dist/twilight/{p-5bbf829e.entry.js → p-1fcebaad.entry.js} +1 -1
  288. package/dist/twilight/{p-51a860bc.entry.js → p-2b0cf190.entry.js} +1 -1
  289. package/dist/twilight/{p-68c8772a.entry.js → p-333ea76b.entry.js} +1 -1
  290. package/dist/twilight/{p-8ef3693b.entry.js → p-337cc9f6.entry.js} +1 -1
  291. package/dist/twilight/{p-f7298462.entry.js → p-34d5c7bf.entry.js} +1 -1
  292. package/dist/twilight/{p-b1812d5c.entry.js → p-36abc50f.entry.js} +1 -1
  293. package/dist/twilight/{p-a1494e64.entry.js → p-37d9f762.entry.js} +1 -1
  294. package/dist/twilight/{p-5e9fb02d.entry.js → p-3961522a.entry.js} +1 -1
  295. package/dist/twilight/{p-1754903f.entry.js → p-39d9e02f.entry.js} +1 -1
  296. package/dist/twilight/{p-152c657e.entry.js → p-3a4bb8de.entry.js} +1 -1
  297. package/dist/twilight/{p-7c74dc6e.entry.js → p-409f95a8.entry.js} +1 -1
  298. package/dist/twilight/{p-3bc64439.entry.js → p-42952fac.entry.js} +1 -1
  299. package/dist/twilight/{p-0a1271e1.entry.js → p-436dfe93.entry.js} +1 -1
  300. package/dist/twilight/{p-44cfb2c2.entry.js → p-50c90e0a.entry.js} +1 -1
  301. package/dist/twilight/{p-31c36417.entry.js → p-5115117b.entry.js} +1 -1
  302. package/dist/twilight/{p-1fb46b43.entry.js → p-56647774.entry.js} +1 -1
  303. package/dist/twilight/{p-e020f1c3.entry.js → p-598cadf4.entry.js} +1 -1
  304. package/dist/twilight/{p-331679d8.entry.js → p-635265d1.entry.js} +1 -1
  305. package/dist/twilight/{p-1470e96a.entry.js → p-659e2280.entry.js} +1 -1
  306. package/dist/twilight/p-6a3487de.entry.js +4 -0
  307. package/dist/twilight/{p-1c31cec0.entry.js → p-6d07d195.entry.js} +1 -1
  308. package/dist/twilight/{p-91b4a1a0.entry.js → p-6ee096e8.entry.js} +1 -1
  309. package/dist/twilight/{p-37413a02.entry.js → p-723aeda4.entry.js} +1 -1
  310. package/dist/twilight/{p-ae536a61.entry.js → p-743b79ae.entry.js} +1 -1
  311. package/dist/twilight/{p-b193c991.entry.js → p-75e692d1.entry.js} +1 -1
  312. package/dist/twilight/{p-9c7fcbb0.entry.js → p-79444897.entry.js} +1 -1
  313. package/dist/twilight/{p-6ed4c9bb.entry.js → p-7b23dec7.entry.js} +1 -1
  314. package/dist/twilight/p-7bb24ad6.entry.js +4 -0
  315. package/dist/twilight/{p-c254b6fa.entry.js → p-7d9288b0.entry.js} +1 -1
  316. package/dist/twilight/{p-82c12191.entry.js → p-85f95a58.entry.js} +1 -1
  317. package/dist/twilight/{p-67e88dc4.entry.js → p-86a1f616.entry.js} +1 -1
  318. package/dist/twilight/{p-80ff5572.entry.js → p-87115499.entry.js} +1 -1
  319. package/dist/twilight/{p-cc2b960c.entry.js → p-878c2be2.entry.js} +1 -1
  320. package/dist/twilight/{p-b69e98a8.entry.js → p-89e9a91f.entry.js} +1 -1
  321. package/dist/twilight/{p-2e112687.entry.js → p-90ee37c7.entry.js} +1 -1
  322. package/dist/twilight/{p-aeb76c46.entry.js → p-96584590.entry.js} +1 -1
  323. package/dist/twilight/{p-1dd1fef0.entry.js → p-96a57e9c.entry.js} +1 -1
  324. package/dist/twilight/{p-1c369bcf.entry.js → p-978e4164.entry.js} +1 -1
  325. package/dist/twilight/{p-4058b619.entry.js → p-97fc57c1.entry.js} +1 -1
  326. package/dist/twilight/p-98b1ff35.entry.js +4 -0
  327. package/dist/twilight/{p-5d01f25c.entry.js → p-9d18525b.entry.js} +1 -1
  328. package/dist/twilight/{p-CmQyEOxJ.js → p-B83s3cRn.js} +2 -2
  329. package/dist/twilight/{p-CjQzkU95.js → p-BVqCTDsV.js} +1 -1
  330. package/dist/twilight/{p-BtymczNp.js → p-CP29f7RQ.js} +1 -1
  331. package/dist/twilight/{p-C6w35AiQ.js → p-CS-t4QAX.js} +1 -1
  332. package/dist/twilight/{p-BiyhYWus.js → p-Cluq3aDa.js} +1 -1
  333. package/dist/twilight/{p-DfJdKB52.js → p-D-zqM6k8.js} +1 -1
  334. package/dist/twilight/{p-CGDRqU6i.js → p-DJmqmO68.js} +1 -1
  335. package/dist/twilight/{p-D2uiOzVz.js → p-DgwK96eP.js} +1 -1
  336. package/dist/twilight/p-DqXpn47Z.js +4 -0
  337. package/dist/twilight/p-DrXX8XG8.js +4 -0
  338. package/dist/twilight/{p-C1wu6qA1.js → p-DzW3U8TR.js} +1 -1
  339. package/dist/twilight/{p-B9VKgTTF.js → p-JKh0XFIn.js} +1 -1
  340. package/dist/twilight/{p-699bea26.entry.js → p-a347e701.entry.js} +1 -1
  341. package/dist/twilight/{p-9fa351ab.entry.js → p-a5d08af6.entry.js} +1 -1
  342. package/dist/twilight/{p-8230c543.entry.js → p-a774f6f0.entry.js} +7 -7
  343. package/dist/twilight/p-afaa0fbe.entry.js +4 -0
  344. package/dist/twilight/p-b389b1d3.entry.js +4 -0
  345. package/dist/twilight/{p-298ff716.entry.js → p-b6d5ae9b.entry.js} +1 -1
  346. package/dist/twilight/{p-b0e86201.entry.js → p-b862c670.entry.js} +1 -1
  347. package/dist/twilight/{p-2e43ddf0.entry.js → p-bab59319.entry.js} +1 -1
  348. package/dist/twilight/{p-437fe6f1.entry.js → p-bf4c2184.entry.js} +1 -1
  349. package/dist/twilight/{p-7f73ff43.entry.js → p-c19cf93c.entry.js} +1 -1
  350. package/dist/twilight/{p-3f26f1c5.entry.js → p-c34f8c08.entry.js} +1 -1
  351. package/dist/twilight/{p-116e7555.entry.js → p-c47ecca7.entry.js} +1 -1
  352. package/dist/twilight/{p-84f35767.entry.js → p-c48f5c6b.entry.js} +1 -1
  353. package/dist/twilight/{p-40217fcc.entry.js → p-c53c2f59.entry.js} +1 -1
  354. package/dist/twilight/{p-1151ebd7.entry.js → p-cd805a38.entry.js} +1 -1
  355. package/dist/twilight/{p-4868c03c.entry.js → p-cdd8ed7f.entry.js} +1 -1
  356. package/dist/twilight/{p-9b6db6a7.entry.js → p-ced4b7ac.entry.js} +1 -1
  357. package/dist/twilight/{p-a3f00389.entry.js → p-cf3365e2.entry.js} +1 -1
  358. package/dist/twilight/p-d78998b7.entry.js +4 -0
  359. package/dist/twilight/{p-665bca88.entry.js → p-daea3207.entry.js} +1 -1
  360. package/dist/twilight/{p-664f0936.entry.js → p-dff6d623.entry.js} +1 -1
  361. package/dist/twilight/p-e04221de.entry.js +4 -0
  362. package/dist/twilight/{p-db02986a.entry.js → p-e2934193.entry.js} +1 -1
  363. package/dist/twilight/{p-14c72ffd.entry.js → p-e3dab961.entry.js} +1 -1
  364. package/dist/twilight/{p-bf183f3a.entry.js → p-e41e5fc7.entry.js} +1 -1
  365. package/dist/twilight/{p-5b03dca8.entry.js → p-e4c9cef4.entry.js} +1 -1
  366. package/dist/twilight/{p-27a0a4cc.entry.js → p-eaf9d536.entry.js} +1 -1
  367. package/dist/twilight/{p-a669483e.entry.js → p-ee2b16d7.entry.js} +1 -1
  368. package/dist/twilight/{p-fa28a89f.entry.js → p-ee3ddc23.entry.js} +1 -1
  369. package/dist/twilight/{p-54d0db9a.entry.js → p-f0a14b18.entry.js} +1 -1
  370. package/dist/twilight/{p-8fa84b87.entry.js → p-f195a63d.entry.js} +1 -1
  371. package/dist/twilight/{p-997c4966.entry.js → p-f2c688d6.entry.js} +1 -1
  372. package/dist/twilight/{p-2c6c0844.entry.js → p-f4ac8cae.entry.js} +1 -1
  373. package/dist/twilight/{p-2babb4bd.entry.js → p-f58d14ed.entry.js} +1 -1
  374. package/dist/twilight/{p-3bdba697.entry.js → p-f82cee0c.entry.js} +1 -1
  375. package/dist/twilight/{p-8ae7bf96.entry.js → p-fa17989b.entry.js} +1 -1
  376. package/dist/twilight/{p-b3fe5e44.entry.js → p-fbc075fe.entry.js} +1 -1
  377. package/dist/twilight/{p-3b6b3c54.entry.js → p-fc5d5473.entry.js} +1 -1
  378. package/dist/twilight/twilight.esm.js +1 -1
  379. package/dist/types/components/salla-attachment-view/salla-attachment-view.d.ts +47 -0
  380. package/dist/types/components/salla-attachments/salla-attachments.d.ts +73 -0
  381. package/dist/types/components/salla-comments/interfaces.d.ts +1 -0
  382. package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -1
  383. package/dist/types/components/salla-cookies-bar/salla-cookies-bar.d.ts +117 -12
  384. package/dist/types/components/salla-file-upload/salla-file-upload.d.ts +127 -4
  385. package/dist/types/components/salla-file-upload/upload-limits.d.ts +49 -0
  386. package/dist/types/components/salla-rating-modal/rating-modal-media.d.ts +38 -0
  387. package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +30 -7
  388. package/dist/types/components/salla-review-factors-tags/helpers.d.ts +1 -1
  389. package/dist/types/components/salla-review-factors-tags/interfaces.d.ts +7 -0
  390. package/dist/types/components/salla-review-order-item/interfaces.d.ts +30 -0
  391. package/dist/types/components/salla-review-order-item/salla-review-order-item.d.ts +30 -0
  392. package/dist/types/components.d.ts +286 -11
  393. package/package.json +6 -6
  394. package/dist/twilight/p-236f371d.entry.js +0 -4
  395. package/dist/twilight/p-3c22551b.entry.js +0 -4
  396. package/dist/twilight/p-8bce41c8.entry.js +0 -4
  397. package/dist/twilight/p-e701a3dc.entry.js +0 -4
  398. package/dist/twilight/p-f1eebeda.entry.js +0 -4
  399. package/dist/twilight/p-f4bdf19e.entry.js +0 -4
  400. package/dist/twilight/p-faaf4423.entry.js +0 -4
  401. package/dist/components/{keyboard_arrow_right.js → keyboard_arrow_left.js} +6 -6
@@ -5,6 +5,8 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { Attachment } from "./components/salla-attachment-view/salla-attachment-view";
9
+ import { Attachment as Attachment1 } from "./components/salla-attachment-view/salla-attachment-view";
8
10
  import { Option } from "./components/salla-booking-field/interfaces";
9
11
  import { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
10
12
  import { Coupon } from "./components/salla-cart-coupons/interfaces";
@@ -33,6 +35,8 @@ import { ReviewFactor as ReviewFactor1 } from "./components/salla-review-factors
33
35
  import { ReviewType, SortingOption, Source } from "./components/salla-reviews/interfaces";
34
36
  import { DropdownItem } from "./components/salla-searchable-dropdown/interfaces";
35
37
  import { Phone } from "./components/salla-tel-input/interfaces";
38
+ export { Attachment } from "./components/salla-attachment-view/salla-attachment-view";
39
+ export { Attachment as Attachment1 } from "./components/salla-attachment-view/salla-attachment-view";
36
40
  export { Option } from "./components/salla-booking-field/interfaces";
37
41
  export { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
38
42
  export { Coupon } from "./components/salla-cart-coupons/interfaces";
@@ -198,6 +202,81 @@ export namespace Components {
198
202
  */
199
203
  "vertical": boolean;
200
204
  }
205
+ /**
206
+ * A reusable lightbox for viewing image/video attachments in a modal with a
207
+ * scrollable thumbnails strip. Open it imperatively via the `open()` method.
208
+ * @example const viewer = document.querySelector('salla-attachment-view');
209
+ * viewer.attachments = [{ id: '1', url: '/a.jpg' }, { id: '2', url: '/b.mp4' }];
210
+ * viewer.open(0);
211
+ */
212
+ interface SallaAttachmentView {
213
+ /**
214
+ * Attachments to display. Accepts an array of `{ id, url, mimeType? }` or a JSON string of the same shape (for consumers outside of JSX/Stencil).
215
+ * @default []
216
+ */
217
+ "attachments": Attachment[] | string;
218
+ /**
219
+ * Close the viewer.
220
+ */
221
+ "close": () => Promise<void>;
222
+ /**
223
+ * Open the viewer at the given attachment index.
224
+ * @param index - Index of the attachment to show first (defaults to 0).
225
+ */
226
+ "open": (index?: number) => Promise<void>;
227
+ }
228
+ /**
229
+ * Renders a horizontal strip of image/video attachment thumbnails with an
230
+ * optional "+N" overflow indicator on the last visible item. When `clickable`
231
+ * is true, opens `salla-attachment-view` when a thumbnail is clicked.
232
+ * Media can be supplied as:
233
+ * - `attachments` — full `{ id, url, mimeType?/type? }` objects
234
+ * - `images` / `videos` — URL string arrays
235
+ * - `rating` — object with `images` / `videos` arrays
236
+ * - `productRatings` + `productId` — match a product rating, else fall back to `rating`
237
+ */
238
+ interface SallaAttachments {
239
+ /**
240
+ * Attachments to display. Accepts an array of `{ id, url, mimeType? }` or a JSON string of the same shape.
241
+ * @default []
242
+ */
243
+ "attachments": Attachment1[] | string;
244
+ /**
245
+ * When true, clicking a thumbnail opens the attachment lightbox.
246
+ * @default false
247
+ */
248
+ "clickable": boolean;
249
+ /**
250
+ * Image URLs to display. Accepts a string array or a JSON string.
251
+ * @default []
252
+ */
253
+ "images": string[] | string;
254
+ /**
255
+ * Maximum number of thumbnails to show before displaying a "+N" overlay on the last visible item.
256
+ * @default 4
257
+ */
258
+ "maxVisible": number;
259
+ /**
260
+ * Product id used to match an entry in `productRatings`.
261
+ * @default null
262
+ */
263
+ "productId": number | string;
264
+ /**
265
+ * Product ratings list. When set with `productId`, the matching rating's media is preferred over `rating`.
266
+ * @default []
267
+ */
268
+ "productRatings": MediaSource[] | string;
269
+ /**
270
+ * Rating-like object with `images` / `videos` URL arrays. Used when `images`/`videos` are empty, and as a fallback when resolving `productRatings`.
271
+ * @default null
272
+ */
273
+ "rating": MediaSource | string;
274
+ /**
275
+ * Video URLs to display. Accepts a string array or a JSON string.
276
+ * @default []
277
+ */
278
+ "videos": string[] | string;
279
+ }
201
280
  interface SallaBadge {
202
281
  /**
203
282
  * The background color of the badge
@@ -577,15 +656,15 @@ export namespace Components {
577
656
  /**
578
657
  * Accept cookies consent.
579
658
  */
580
- "accept": () => Promise<HTMLElement>;
659
+ "accept": () => Promise<HTMLElement | undefined>;
581
660
  /**
582
- * Show cookies settings bar to allow updating consent.
661
+ * Show cookies settings bar to allow updating consent. Always opens on the initial consent step, same as first load — the customer picks "customize" to reach the per-category panel.
583
662
  */
584
- "open": () => Promise<HTMLElement>;
663
+ "open": () => Promise<HTMLElement | undefined>;
585
664
  /**
586
665
  * Reject cookies consent.
587
666
  */
588
- "reject": () => Promise<HTMLElement>;
667
+ "reject": () => Promise<HTMLElement | undefined>;
589
668
  }
590
669
  interface SallaCountDown {
591
670
  /**
@@ -1129,6 +1208,11 @@ export namespace Components {
1129
1208
  * When enabled, files are validated before they are dropped. A file is not added when it's invalid.
1130
1209
  */
1131
1210
  "dropValidation": boolean;
1211
+ /**
1212
+ * Enable the custom gallery preview instead of FilePond thumbnails.
1213
+ * @default false
1214
+ */
1215
+ "enableGallery": boolean;
1132
1216
  /**
1133
1217
  * If current file has id, pass it here, to be passed back in the `removed` event
1134
1218
  */
@@ -1181,7 +1265,7 @@ export namespace Components {
1181
1265
  */
1182
1266
  "ignoredFiles": Array<any>;
1183
1267
  /**
1184
- * Fixed image preview height, overrides min and max preview height
1268
+ * Fixed image preview height, overrides min and max preview height. Also sets the gallery thumbnail size when using the swiper preview (default: 75px).
1185
1269
  * @default null
1186
1270
  */
1187
1271
  "imagePreviewHeight": number;
@@ -1223,11 +1307,27 @@ export namespace Components {
1223
1307
  * @default 1
1224
1308
  */
1225
1309
  "maxFilesCount": number;
1310
+ /**
1311
+ * Primary: maximum number of image files (split count mode). When set with or without maxVideosCount, maxFilesCount is ignored for count limits.
1312
+ */
1313
+ "maxImagesCount": number;
1226
1314
  /**
1227
1315
  * The maxmimum number of files that can be uploaded in parallel
1228
1316
  * @default 3
1229
1317
  */
1230
1318
  "maxParallelUploads": number;
1319
+ /**
1320
+ * Maximum video duration in seconds
1321
+ */
1322
+ "maxVideoDuration": number;
1323
+ /**
1324
+ * Maximum size for video files only, e.g. 50MB or 750KB
1325
+ */
1326
+ "maxVideoFileSize": `${number}MB` | `${number}KB`;
1327
+ /**
1328
+ * Primary: maximum number of video files (split count mode). When set with or without maxImagesCount, maxFilesCount is ignored for count limits.
1329
+ */
1330
+ "maxVideosCount": number;
1231
1331
  /**
1232
1332
  * The submit request method.
1233
1333
  * @default 'POST'
@@ -2696,12 +2796,12 @@ export namespace Components {
2696
2796
  */
2697
2797
  "close": () => Promise<HTMLElement>;
2698
2798
  "open": () => Promise<unknown>;
2699
- "openDeleteModal": (params: any) => Promise<unknown>;
2799
+ "openDeleteModal": (params: { feedback_id: number; }) => Promise<unknown>;
2700
2800
  "openEditModal": (params: { type: "product" | "store" | "shipping"; feedback_id: number; }) => Promise<void>;
2701
2801
  /**
2702
2802
  * The order id, to rate on its products & shipping
2703
2803
  */
2704
- "orderId": number;
2804
+ "orderId"?: number;
2705
2805
  }
2706
2806
  interface SallaRatingStars {
2707
2807
  /**
@@ -2770,6 +2870,12 @@ export namespace Components {
2770
2870
  */
2771
2871
  "ratingId"?: number;
2772
2872
  }
2873
+ interface SallaReviewOrderItem {
2874
+ /**
2875
+ * Product id used to match `items[].product.id` and `rating.product[].product.id`. The order itself is fetched via `page.id`.
2876
+ */
2877
+ "productId"?: string | number;
2878
+ }
2773
2879
  interface SallaReviews {
2774
2880
  /**
2775
2881
  * Controls the visibility of a link to the reviews page. When set to `true`, a link will be displayed allowing users to navigate to the full reviews section.
@@ -3684,6 +3790,35 @@ declare global {
3684
3790
  prototype: HTMLSallaAppsIconsElement;
3685
3791
  new (): HTMLSallaAppsIconsElement;
3686
3792
  };
3793
+ /**
3794
+ * A reusable lightbox for viewing image/video attachments in a modal with a
3795
+ * scrollable thumbnails strip. Open it imperatively via the `open()` method.
3796
+ * @example const viewer = document.querySelector('salla-attachment-view');
3797
+ * viewer.attachments = [{ id: '1', url: '/a.jpg' }, { id: '2', url: '/b.mp4' }];
3798
+ * viewer.open(0);
3799
+ */
3800
+ interface HTMLSallaAttachmentViewElement extends Components.SallaAttachmentView, HTMLStencilElement {
3801
+ }
3802
+ var HTMLSallaAttachmentViewElement: {
3803
+ prototype: HTMLSallaAttachmentViewElement;
3804
+ new (): HTMLSallaAttachmentViewElement;
3805
+ };
3806
+ /**
3807
+ * Renders a horizontal strip of image/video attachment thumbnails with an
3808
+ * optional "+N" overflow indicator on the last visible item. When `clickable`
3809
+ * is true, opens `salla-attachment-view` when a thumbnail is clicked.
3810
+ * Media can be supplied as:
3811
+ * - `attachments` — full `{ id, url, mimeType?/type? }` objects
3812
+ * - `images` / `videos` — URL string arrays
3813
+ * - `rating` — object with `images` / `videos` arrays
3814
+ * - `productRatings` + `productId` — match a product rating, else fall back to `rating`
3815
+ */
3816
+ interface HTMLSallaAttachmentsElement extends Components.SallaAttachments, HTMLStencilElement {
3817
+ }
3818
+ var HTMLSallaAttachmentsElement: {
3819
+ prototype: HTMLSallaAttachmentsElement;
3820
+ new (): HTMLSallaAttachmentsElement;
3821
+ };
3687
3822
  interface HTMLSallaBadgeElement extends Components.SallaBadge, HTMLStencilElement {
3688
3823
  }
3689
3824
  var HTMLSallaBadgeElement: {
@@ -3976,7 +4111,13 @@ declare global {
3976
4111
  "added": { error: FilePondErrorDescription | null, file: FilePondFile };
3977
4112
  "invalidInput": any;
3978
4113
  "uploaded": string;
3979
- "removed": FilePondFile;
4114
+ "removed": string | number;
4115
+ "galleryUpdated": {
4116
+ count: number;
4117
+ imageCount?: number;
4118
+ videoCount?: number;
4119
+ uploading?: boolean;
4120
+ };
3980
4121
  }
3981
4122
  interface HTMLSallaFileUploadElement extends Components.SallaFileUpload, HTMLStencilElement {
3982
4123
  addEventListener<K extends keyof HTMLSallaFileUploadElementEventMap>(type: K, listener: (this: HTMLSallaFileUploadElement, ev: SallaFileUploadCustomEvent<HTMLSallaFileUploadElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -4699,6 +4840,12 @@ declare global {
4699
4840
  prototype: HTMLSallaReviewFactorsTagsElement;
4700
4841
  new (): HTMLSallaReviewFactorsTagsElement;
4701
4842
  };
4843
+ interface HTMLSallaReviewOrderItemElement extends Components.SallaReviewOrderItem, HTMLStencilElement {
4844
+ }
4845
+ var HTMLSallaReviewOrderItemElement: {
4846
+ prototype: HTMLSallaReviewOrderItemElement;
4847
+ new (): HTMLSallaReviewOrderItemElement;
4848
+ };
4702
4849
  interface HTMLSallaReviewsElement extends Components.SallaReviews, HTMLStencilElement {
4703
4850
  }
4704
4851
  var HTMLSallaReviewsElement: {
@@ -5004,6 +5151,8 @@ declare global {
5004
5151
  "salla-alert": HTMLSallaAlertElement;
5005
5152
  "salla-app-install-alert": HTMLSallaAppInstallAlertElement;
5006
5153
  "salla-apps-icons": HTMLSallaAppsIconsElement;
5154
+ "salla-attachment-view": HTMLSallaAttachmentViewElement;
5155
+ "salla-attachments": HTMLSallaAttachmentsElement;
5007
5156
  "salla-badge": HTMLSallaBadgeElement;
5008
5157
  "salla-basket-gap": HTMLSallaBasketGapElement;
5009
5158
  "salla-booking-field": HTMLSallaBookingFieldElement;
@@ -5102,6 +5251,7 @@ declare global {
5102
5251
  "salla-rating-stars": HTMLSallaRatingStarsElement;
5103
5252
  "salla-review-card": HTMLSallaReviewCardElement;
5104
5253
  "salla-review-factors-tags": HTMLSallaReviewFactorsTagsElement;
5254
+ "salla-review-order-item": HTMLSallaReviewOrderItemElement;
5105
5255
  "salla-reviews": HTMLSallaReviewsElement;
5106
5256
  "salla-reviews-page": HTMLSallaReviewsPageElement;
5107
5257
  "salla-reviews-summary": HTMLSallaReviewsSummaryElement;
@@ -5284,6 +5434,72 @@ declare namespace LocalJSX {
5284
5434
  */
5285
5435
  "vertical"?: boolean;
5286
5436
  }
5437
+ /**
5438
+ * A reusable lightbox for viewing image/video attachments in a modal with a
5439
+ * scrollable thumbnails strip. Open it imperatively via the `open()` method.
5440
+ * @example const viewer = document.querySelector('salla-attachment-view');
5441
+ * viewer.attachments = [{ id: '1', url: '/a.jpg' }, { id: '2', url: '/b.mp4' }];
5442
+ * viewer.open(0);
5443
+ */
5444
+ interface SallaAttachmentView {
5445
+ /**
5446
+ * Attachments to display. Accepts an array of `{ id, url, mimeType? }` or a JSON string of the same shape (for consumers outside of JSX/Stencil).
5447
+ * @default []
5448
+ */
5449
+ "attachments"?: Attachment[] | string;
5450
+ }
5451
+ /**
5452
+ * Renders a horizontal strip of image/video attachment thumbnails with an
5453
+ * optional "+N" overflow indicator on the last visible item. When `clickable`
5454
+ * is true, opens `salla-attachment-view` when a thumbnail is clicked.
5455
+ * Media can be supplied as:
5456
+ * - `attachments` — full `{ id, url, mimeType?/type? }` objects
5457
+ * - `images` / `videos` — URL string arrays
5458
+ * - `rating` — object with `images` / `videos` arrays
5459
+ * - `productRatings` + `productId` — match a product rating, else fall back to `rating`
5460
+ */
5461
+ interface SallaAttachments {
5462
+ /**
5463
+ * Attachments to display. Accepts an array of `{ id, url, mimeType? }` or a JSON string of the same shape.
5464
+ * @default []
5465
+ */
5466
+ "attachments"?: Attachment1[] | string;
5467
+ /**
5468
+ * When true, clicking a thumbnail opens the attachment lightbox.
5469
+ * @default false
5470
+ */
5471
+ "clickable"?: boolean;
5472
+ /**
5473
+ * Image URLs to display. Accepts a string array or a JSON string.
5474
+ * @default []
5475
+ */
5476
+ "images"?: string[] | string;
5477
+ /**
5478
+ * Maximum number of thumbnails to show before displaying a "+N" overlay on the last visible item.
5479
+ * @default 4
5480
+ */
5481
+ "maxVisible"?: number;
5482
+ /**
5483
+ * Product id used to match an entry in `productRatings`.
5484
+ * @default null
5485
+ */
5486
+ "productId"?: number | string;
5487
+ /**
5488
+ * Product ratings list. When set with `productId`, the matching rating's media is preferred over `rating`.
5489
+ * @default []
5490
+ */
5491
+ "productRatings"?: MediaSource[] | string;
5492
+ /**
5493
+ * Rating-like object with `images` / `videos` URL arrays. Used when `images`/`videos` are empty, and as a fallback when resolving `productRatings`.
5494
+ * @default null
5495
+ */
5496
+ "rating"?: MediaSource | string;
5497
+ /**
5498
+ * Video URLs to display. Accepts a string array or a JSON string.
5499
+ * @default []
5500
+ */
5501
+ "videos"?: string[] | string;
5502
+ }
5287
5503
  interface SallaBadge {
5288
5504
  /**
5289
5505
  * The background color of the badge
@@ -6175,6 +6391,11 @@ declare namespace LocalJSX {
6175
6391
  * When enabled, files are validated before they are dropped. A file is not added when it's invalid.
6176
6392
  */
6177
6393
  "dropValidation"?: boolean;
6394
+ /**
6395
+ * Enable the custom gallery preview instead of FilePond thumbnails.
6396
+ * @default false
6397
+ */
6398
+ "enableGallery"?: boolean;
6178
6399
  /**
6179
6400
  * If current file has id, pass it here, to be passed back in the `removed` event
6180
6401
  */
@@ -6227,7 +6448,7 @@ declare namespace LocalJSX {
6227
6448
  */
6228
6449
  "ignoredFiles"?: Array<any>;
6229
6450
  /**
6230
- * Fixed image preview height, overrides min and max preview height
6451
+ * Fixed image preview height, overrides min and max preview height. Also sets the gallery thumbnail size when using the swiper preview (default: 75px).
6231
6452
  * @default null
6232
6453
  */
6233
6454
  "imagePreviewHeight"?: number;
@@ -6269,11 +6490,27 @@ declare namespace LocalJSX {
6269
6490
  * @default 1
6270
6491
  */
6271
6492
  "maxFilesCount"?: number;
6493
+ /**
6494
+ * Primary: maximum number of image files (split count mode). When set with or without maxVideosCount, maxFilesCount is ignored for count limits.
6495
+ */
6496
+ "maxImagesCount"?: number;
6272
6497
  /**
6273
6498
  * The maxmimum number of files that can be uploaded in parallel
6274
6499
  * @default 3
6275
6500
  */
6276
6501
  "maxParallelUploads"?: number;
6502
+ /**
6503
+ * Maximum video duration in seconds
6504
+ */
6505
+ "maxVideoDuration"?: number;
6506
+ /**
6507
+ * Maximum size for video files only, e.g. 50MB or 750KB
6508
+ */
6509
+ "maxVideoFileSize"?: `${number}MB` | `${number}KB`;
6510
+ /**
6511
+ * Primary: maximum number of video files (split count mode). When set with or without maxImagesCount, maxFilesCount is ignored for count limits.
6512
+ */
6513
+ "maxVideosCount"?: number;
6277
6514
  /**
6278
6515
  * The submit request method.
6279
6516
  * @default 'POST'
@@ -6287,14 +6524,23 @@ declare namespace LocalJSX {
6287
6524
  * Event emitted when the file has been added
6288
6525
  */
6289
6526
  "onAdded"?: (event: SallaFileUploadCustomEvent<{ error: FilePondErrorDescription | null, file: FilePondFile }>) => void;
6527
+ /**
6528
+ * Event emitted when the gallery preview list changes (upload/remove).
6529
+ */
6530
+ "onGalleryUpdated"?: (event: SallaFileUploadCustomEvent<{
6531
+ count: number;
6532
+ imageCount?: number;
6533
+ videoCount?: number;
6534
+ uploading?: boolean;
6535
+ }>) => void;
6290
6536
  /**
6291
6537
  * Event emitted when the input is invalid
6292
6538
  */
6293
6539
  "onInvalidInput"?: (event: SallaFileUploadCustomEvent<any>) => void;
6294
6540
  /**
6295
- * Event emitted when the file is about to be removed. Returns boolean value.
6541
+ * Event emitted when the file is about to be removed. Returns the removed file id when available.
6296
6542
  */
6297
- "onRemoved"?: (event: SallaFileUploadCustomEvent<FilePondFile>) => void;
6543
+ "onRemoved"?: (event: SallaFileUploadCustomEvent<string | number>) => void;
6298
6544
  /**
6299
6545
  * Event emitted when the file has been uploaded and link to the file has been recieved from the server. Returns string value.
6300
6546
  */
@@ -7688,6 +7934,12 @@ declare namespace LocalJSX {
7688
7934
  */
7689
7935
  "ratingId"?: number;
7690
7936
  }
7937
+ interface SallaReviewOrderItem {
7938
+ /**
7939
+ * Product id used to match `items[].product.id` and `rating.product[].product.id`. The order itself is fetched via `page.id`.
7940
+ */
7941
+ "productId"?: string | number;
7942
+ }
7691
7943
  interface SallaReviews {
7692
7944
  /**
7693
7945
  * Controls the visibility of a link to the reviews page. When set to `true`, a link will be displayed allowing users to navigate to the full reviews section.
@@ -8293,6 +8545,8 @@ declare namespace LocalJSX {
8293
8545
  "salla-alert": SallaAlert;
8294
8546
  "salla-app-install-alert": SallaAppInstallAlert;
8295
8547
  "salla-apps-icons": SallaAppsIcons;
8548
+ "salla-attachment-view": SallaAttachmentView;
8549
+ "salla-attachments": SallaAttachments;
8296
8550
  "salla-badge": SallaBadge;
8297
8551
  "salla-basket-gap": SallaBasketGap;
8298
8552
  "salla-booking-field": SallaBookingField;
@@ -8391,6 +8645,7 @@ declare namespace LocalJSX {
8391
8645
  "salla-rating-stars": SallaRatingStars;
8392
8646
  "salla-review-card": SallaReviewCard;
8393
8647
  "salla-review-factors-tags": SallaReviewFactorsTags;
8648
+ "salla-review-order-item": SallaReviewOrderItem;
8394
8649
  "salla-reviews": SallaReviews;
8395
8650
  "salla-reviews-page": SallaReviewsPage;
8396
8651
  "salla-reviews-summary": SallaReviewsSummary;
@@ -8450,6 +8705,25 @@ declare module "@stencil/core" {
8450
8705
  "salla-alert": LocalJSX.SallaAlert & JSXBase.HTMLAttributes<HTMLSallaAlertElement>;
8451
8706
  "salla-app-install-alert": LocalJSX.SallaAppInstallAlert & JSXBase.HTMLAttributes<HTMLSallaAppInstallAlertElement>;
8452
8707
  "salla-apps-icons": LocalJSX.SallaAppsIcons & JSXBase.HTMLAttributes<HTMLSallaAppsIconsElement>;
8708
+ /**
8709
+ * A reusable lightbox for viewing image/video attachments in a modal with a
8710
+ * scrollable thumbnails strip. Open it imperatively via the `open()` method.
8711
+ * @example const viewer = document.querySelector('salla-attachment-view');
8712
+ * viewer.attachments = [{ id: '1', url: '/a.jpg' }, { id: '2', url: '/b.mp4' }];
8713
+ * viewer.open(0);
8714
+ */
8715
+ "salla-attachment-view": LocalJSX.SallaAttachmentView & JSXBase.HTMLAttributes<HTMLSallaAttachmentViewElement>;
8716
+ /**
8717
+ * Renders a horizontal strip of image/video attachment thumbnails with an
8718
+ * optional "+N" overflow indicator on the last visible item. When `clickable`
8719
+ * is true, opens `salla-attachment-view` when a thumbnail is clicked.
8720
+ * Media can be supplied as:
8721
+ * - `attachments` — full `{ id, url, mimeType?/type? }` objects
8722
+ * - `images` / `videos` — URL string arrays
8723
+ * - `rating` — object with `images` / `videos` arrays
8724
+ * - `productRatings` + `productId` — match a product rating, else fall back to `rating`
8725
+ */
8726
+ "salla-attachments": LocalJSX.SallaAttachments & JSXBase.HTMLAttributes<HTMLSallaAttachmentsElement>;
8453
8727
  "salla-badge": LocalJSX.SallaBadge & JSXBase.HTMLAttributes<HTMLSallaBadgeElement>;
8454
8728
  "salla-basket-gap": LocalJSX.SallaBasketGap & JSXBase.HTMLAttributes<HTMLSallaBasketGapElement>;
8455
8729
  "salla-booking-field": LocalJSX.SallaBookingField & JSXBase.HTMLAttributes<HTMLSallaBookingFieldElement>;
@@ -8651,6 +8925,7 @@ declare module "@stencil/core" {
8651
8925
  "salla-rating-stars": LocalJSX.SallaRatingStars & JSXBase.HTMLAttributes<HTMLSallaRatingStarsElement>;
8652
8926
  "salla-review-card": LocalJSX.SallaReviewCard & JSXBase.HTMLAttributes<HTMLSallaReviewCardElement>;
8653
8927
  "salla-review-factors-tags": LocalJSX.SallaReviewFactorsTags & JSXBase.HTMLAttributes<HTMLSallaReviewFactorsTagsElement>;
8928
+ "salla-review-order-item": LocalJSX.SallaReviewOrderItem & JSXBase.HTMLAttributes<HTMLSallaReviewOrderItemElement>;
8654
8929
  "salla-reviews": LocalJSX.SallaReviews & JSXBase.HTMLAttributes<HTMLSallaReviewsElement>;
8655
8930
  "salla-reviews-page": LocalJSX.SallaReviewsPage & JSXBase.HTMLAttributes<HTMLSallaReviewsPageElement>;
8656
8931
  "salla-reviews-summary": LocalJSX.SallaReviewsSummary & JSXBase.HTMLAttributes<HTMLSallaReviewsSummaryElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salla.sa/twilight-components",
3
- "version": "2.14.539",
3
+ "version": "2.14.541",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -39,7 +39,7 @@
39
39
  "start": "node src/plugins/watch-utilities.js & stencil build --dev --watch --serve --secure",
40
40
  "watch": "npm run start",
41
41
  "test": "stencil test --spec --coverage",
42
- "test:ci": "SPEC_CI=true stencil test --spec",
42
+ "test:ci": "SPEC_CI=true stencil test --spec --maxWorkers=2",
43
43
  "test.spec": "stencil test --spec",
44
44
  "test.e2e": "stencil test --e2e",
45
45
  "test.watch": "stencil test --spec --e2e --watchAll",
@@ -82,9 +82,9 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@googlemaps/markerclusterer": "2.6.2",
85
- "@salla.sa/applepay": "2.14.539",
86
- "@salla.sa/twilight": "2.14.539",
87
- "@salla.sa/twilight-tailwind-theme": "2.14.539",
85
+ "@salla.sa/applepay": "2.14.541",
86
+ "@salla.sa/twilight": "2.14.541",
87
+ "@salla.sa/twilight-tailwind-theme": "2.14.541",
88
88
  "@salla.sa/ui-address-autocomplete-widget": "1.2.1",
89
89
  "@salla.sa/ui-google-map-render": "1.2.1",
90
90
  "@types/node": "^20.4.8",
@@ -105,5 +105,5 @@
105
105
  "vanilla-lazyload": "^17.8.5",
106
106
  "vanilla-picker": "^2.12.2"
107
107
  },
108
- "gitHead": "66c78b711bf2513f56dbe99d89bee1ded74eb943"
108
+ "gitHead": "fbd8b4e6413f5121d42e758be52fc730ab9a7d60"
109
109
  }