@salla.sa/twilight-components 2.14.489 → 2.14.491

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-C-1J1qrF.js → filepond-C8OgCkk4.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-B8fUrKqJ.js → filepond-plugin-file-poster-W7CIIo06.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-BJ4Bw3Ju.js → filepond-plugin-file-validate-size-b6owsb9D.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-D_Smjf6h.js → filepond-plugin-file-validate-type-_rafsi9p.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BDZBDL-U.js → filepond-plugin-image-edit-7_W-TDnV.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-B68mU2op.js → filepond-plugin-image-exif-orientation-BqHzmoQr.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-B2RzZ9r9.js → filepond-plugin-image-preview-CXYMGZyB.js} +1 -1
  8. package/dist/cjs/{functions-DdZX56J7.js → functions-DEYiJNeU.js} +1 -1
  9. package/dist/cjs/{index-DWea49r_.js → index-DFAB8ROR.js} +17 -5
  10. package/dist/cjs/{index-B5CW9Xve.js → index-DQxFCAkS.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-badge.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-booking-field_7.cjs.entry.js +11 -11
  21. package/dist/cjs/salla-bullet-delivery_2.cjs.entry.js +5 -5
  22. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  23. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-cart-summary-card.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cashback-banner.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-comment-factors.cjs.entry.js +45 -0
  27. package/dist/cjs/salla-comment-form_8.cjs.entry.js +112 -30
  28. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-edit-order-button.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-loyalty-banner.cjs.entry.js +2 -2
  46. package/dist/cjs/salla-loyalty-hero_2.cjs.entry.js +2 -2
  47. package/dist/cjs/salla-loyalty-panel.cjs.entry.js +3 -3
  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-program.cjs.entry.js +3 -3
  52. package/dist/cjs/salla-loyalty-reward.cjs.entry.js +2 -2
  53. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-map_2.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-next-order-coupon.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-order-branch.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-order-cancel.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-order-edit-product-card.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-order-options-modal_3.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-product-card-embed.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-rating-modal-v2.cjs.entry.js +1060 -0
  86. package/dist/cjs/salla-rating-modal.cjs.entry.js +38 -14
  87. package/dist/cjs/salla-review-factors-tags.cjs.entry.js +127 -0
  88. package/dist/cjs/salla-reward-action_4.cjs.entry.js +3 -3
  89. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  90. package/dist/cjs/salla-search.cjs.entry.js +6 -6
  91. package/dist/cjs/salla-skeleton.cjs.entry.js +2 -2
  92. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  93. package/dist/cjs/salla-social-share.cjs.entry.js +2 -2
  94. package/dist/cjs/salla-social.cjs.entry.js +2 -2
  95. package/dist/cjs/salla-tab-content_3.cjs.entry.js +4 -4
  96. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  97. package/dist/cjs/salla-tooltip.cjs.entry.js +2 -2
  98. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  99. package/dist/cjs/salla-user-menu.cjs.entry.js +3 -3
  100. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/salla-user-settings.cjs.entry.js +2 -2
  102. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  103. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  104. package/dist/cjs/salla-wishlist-actions.cjs.entry.js +2 -2
  105. package/dist/cjs/shipping-fast-CsqEQE78.js +13 -0
  106. package/dist/{esm/star-ZT7ehBBk.js → cjs/star-DMzrN05M.js} +4 -2
  107. package/dist/cjs/{tracked-promise-DNxhV4_1.js → tracked-promise-BFI0OYlh.js} +1 -1
  108. package/dist/cjs/twilight.cjs.js +2 -2
  109. package/dist/cjs/{vanilla-picker-ClijNDRd.js → vanilla-picker-X9clH5_E.js} +1 -1
  110. package/dist/collection/collection-manifest.json +3 -0
  111. package/dist/collection/components/salla-comments/salla-comment-factors.js +76 -0
  112. package/dist/collection/components/salla-comments/salla-comment-item.js +20 -6
  113. package/dist/collection/components/salla-comments/salla-comments.css +110 -0
  114. package/dist/collection/components/salla-rating-modal/salla-rating-modal-v2.js +1203 -0
  115. package/dist/collection/components/salla-rating-modal/salla-rating-modal.css +112 -1
  116. package/dist/collection/components/salla-rating-modal/salla-rating-modal.js +33 -2
  117. package/dist/collection/components/salla-rating-stars/salla-rating-stars.css +34 -1
  118. package/dist/collection/components/salla-rating-stars/salla-rating-stars.js +117 -16
  119. package/dist/collection/components/salla-review-factors-tags/helpers.js +86 -0
  120. package/dist/collection/components/salla-review-factors-tags/interfaces.js +1 -0
  121. package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.css +41 -0
  122. package/dist/collection/components/salla-review-factors-tags/salla-review-factors-tags.js +135 -0
  123. package/dist/collection/components/salla-reviews/salla-reviews.js +1 -1
  124. package/dist/collection/components/salla-reviews-page/salla-reviews-page.js +1 -1
  125. package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.css +60 -0
  126. package/dist/collection/components/salla-reviews-summary/salla-reviews-summary.js +12 -2
  127. package/dist/collection/components/salla-search/salla-search.js +5 -5
  128. package/dist/collection/components/salla-searchable-dropdown/salla-searchable-dropdown.js +4 -4
  129. package/dist/collection/components/salla-skeleton/salla-skeleton.js +1 -1
  130. package/dist/collection/components/salla-social/salla-social.js +1 -1
  131. package/dist/collection/components/salla-social-share/salla-social-share.js +1 -1
  132. package/dist/collection/components/salla-tabs/salla-tab-content.js +1 -1
  133. package/dist/collection/components/salla-tabs/salla-tab-header.js +1 -1
  134. package/dist/collection/components/salla-tabs/salla-tabs.js +1 -1
  135. package/dist/collection/components/salla-tel-input/salla-tel-input.js +1 -1
  136. package/dist/collection/components/salla-tooltip/salla-tooltip.js +1 -1
  137. package/dist/collection/components/salla-user-settings/salla-user-settings.js +1 -1
  138. package/dist/collection/components/salla-wishlist-actions/salla-wishlist-actions.js +1 -1
  139. package/dist/components/index.js +3 -3
  140. package/dist/components/salla-comment-factors.d.ts +11 -0
  141. package/dist/components/salla-comment-factors.js +9 -0
  142. package/dist/components/salla-comment-factors2.js +66 -0
  143. package/dist/components/salla-comment-item2.js +29 -9
  144. package/dist/components/salla-comments.js +9 -3
  145. package/dist/components/salla-rating-modal-v2.d.ts +11 -0
  146. package/dist/components/salla-rating-modal-v2.js +9 -0
  147. package/dist/components/salla-rating-modal-v22.js +1149 -0
  148. package/dist/components/salla-rating-modal.js +49 -19
  149. package/dist/components/salla-rating-stars2.js +80 -17
  150. package/dist/components/salla-review-factors-tags.d.ts +11 -0
  151. package/dist/components/salla-review-factors-tags.js +149 -0
  152. package/dist/components/salla-reviews-page.js +1 -1
  153. package/dist/components/salla-reviews-summary2.js +13 -3
  154. package/dist/components/salla-reviews.js +1 -1
  155. package/dist/components/salla-search.js +5 -5
  156. package/dist/components/salla-searchable-dropdown2.js +4 -4
  157. package/dist/components/salla-skeleton2.js +1 -1
  158. package/dist/components/salla-social-share2.js +1 -1
  159. package/dist/components/salla-social.js +1 -1
  160. package/dist/components/salla-tab-content2.js +1 -1
  161. package/dist/components/salla-tab-header2.js +1 -1
  162. package/dist/components/salla-tabs2.js +1 -1
  163. package/dist/components/salla-tel-input2.js +1 -1
  164. package/dist/components/salla-tooltip2.js +1 -1
  165. package/dist/components/salla-user-settings.js +1 -1
  166. package/dist/components/salla-wishlist-actions.js +1 -1
  167. package/dist/esm/{filepond-z2hEBvHC.js → filepond-DnJWzWeX.js} +1 -1
  168. package/dist/esm/{filepond-plugin-file-poster-B9sxi6Yz.js → filepond-plugin-file-poster-CQjIyjj0.js} +1 -1
  169. package/dist/esm/{filepond-plugin-file-validate-size-HWpVatr_.js → filepond-plugin-file-validate-size-BHmdR08m.js} +1 -1
  170. package/dist/esm/{filepond-plugin-file-validate-type-SgpUhQB_.js → filepond-plugin-file-validate-type-DKZI4Udo.js} +1 -1
  171. package/dist/esm/{filepond-plugin-image-edit-0F90Q6lM.js → filepond-plugin-image-edit-BEu3qWM8.js} +1 -1
  172. package/dist/esm/{filepond-plugin-image-exif-orientation-CXJDp_1v.js → filepond-plugin-image-exif-orientation-BnEErRDJ.js} +1 -1
  173. package/dist/esm/{filepond-plugin-image-preview-APl1nt4k.js → filepond-plugin-image-preview-C5uMnAXy.js} +1 -1
  174. package/dist/esm/{functions-BCdJLPcs.js → functions-BHv4YCak.js} +1 -1
  175. package/dist/esm/{index-DNWyGkAx.js → index-CrMCOyRb.js} +17 -5
  176. package/dist/esm/{index-DhwQVX77.js → index-DNoSNI6q.js} +1 -1
  177. package/dist/esm/loader.js +3 -3
  178. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  179. package/dist/esm/salla-accordion_6.entry.js +1 -1
  180. package/dist/esm/salla-add-product-button_5.entry.js +1 -1
  181. package/dist/esm/salla-advertisement.entry.js +1 -1
  182. package/dist/esm/salla-alert_2.entry.js +1 -1
  183. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  184. package/dist/esm/salla-apps-icons.entry.js +1 -1
  185. package/dist/esm/salla-badge.entry.js +1 -1
  186. package/dist/esm/salla-booking-field_7.entry.js +11 -11
  187. package/dist/esm/salla-bullet-delivery_2.entry.js +5 -5
  188. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  189. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  190. package/dist/esm/salla-cart-summary-card.entry.js +1 -1
  191. package/dist/esm/salla-cashback-banner.entry.js +1 -1
  192. package/dist/esm/salla-comment-factors.entry.js +43 -0
  193. package/dist/esm/salla-comment-form_8.entry.js +112 -30
  194. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  195. package/dist/esm/salla-contacts.entry.js +1 -1
  196. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  197. package/dist/esm/salla-count-down.entry.js +1 -1
  198. package/dist/esm/salla-custom-fields.entry.js +1 -1
  199. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  200. package/dist/esm/salla-edit-order-button.entry.js +1 -1
  201. package/dist/esm/salla-filters-widget.entry.js +1 -1
  202. package/dist/esm/salla-filters.entry.js +1 -1
  203. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  204. package/dist/esm/salla-gifting.entry.js +1 -1
  205. package/dist/esm/salla-hook.entry.js +1 -1
  206. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  207. package/dist/esm/salla-installment.entry.js +1 -1
  208. package/dist/esm/salla-list-tile.entry.js +1 -1
  209. package/dist/esm/salla-localization-modal.entry.js +1 -1
  210. package/dist/esm/salla-login-modal.entry.js +1 -1
  211. package/dist/esm/salla-loyalty-banner.entry.js +2 -2
  212. package/dist/esm/salla-loyalty-hero_2.entry.js +2 -2
  213. package/dist/esm/salla-loyalty-panel.entry.js +3 -3
  214. package/dist/esm/salla-loyalty-points-banner.entry.js +1 -1
  215. package/dist/esm/salla-loyalty-points-history.entry.js +1 -1
  216. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  217. package/dist/esm/salla-loyalty-program.entry.js +3 -3
  218. package/dist/esm/salla-loyalty-reward.entry.js +2 -2
  219. package/dist/esm/salla-loyalty.entry.js +1 -1
  220. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  221. package/dist/esm/salla-map_2.entry.js +1 -1
  222. package/dist/esm/salla-menu.entry.js +1 -1
  223. package/dist/esm/salla-metadata.entry.js +1 -1
  224. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  225. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  226. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  227. package/dist/esm/salla-next-order-coupon.entry.js +1 -1
  228. package/dist/esm/salla-notification-item.entry.js +1 -1
  229. package/dist/esm/salla-notifications.entry.js +1 -1
  230. package/dist/esm/salla-offer-modal.entry.js +1 -1
  231. package/dist/esm/salla-offer.entry.js +1 -1
  232. package/dist/esm/salla-order-branch.entry.js +1 -1
  233. package/dist/esm/salla-order-cancel.entry.js +1 -1
  234. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  235. package/dist/esm/salla-order-details-options.entry.js +1 -1
  236. package/dist/esm/salla-order-details.entry.js +1 -1
  237. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  238. package/dist/esm/salla-order-edit-product-card.entry.js +1 -1
  239. package/dist/esm/salla-order-edit.entry.js +1 -1
  240. package/dist/esm/salla-order-options-modal_3.entry.js +1 -1
  241. package/dist/esm/salla-order-summary.entry.js +1 -1
  242. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  243. package/dist/esm/salla-orders.entry.js +1 -1
  244. package/dist/esm/salla-payments.entry.js +1 -1
  245. package/dist/esm/salla-placeholder.entry.js +1 -1
  246. package/dist/esm/salla-price-range.entry.js +1 -1
  247. package/dist/esm/salla-product-card-embed.entry.js +1 -1
  248. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  249. package/dist/esm/salla-products-list.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 +1058 -0
  252. package/dist/esm/salla-rating-modal.entry.js +36 -12
  253. package/dist/esm/salla-review-factors-tags.entry.js +125 -0
  254. package/dist/esm/salla-reward-action_4.entry.js +3 -3
  255. package/dist/esm/salla-scopes.entry.js +1 -1
  256. package/dist/esm/salla-search.entry.js +6 -6
  257. package/dist/esm/salla-skeleton.entry.js +2 -2
  258. package/dist/esm/salla-slider.entry.js +1 -1
  259. package/dist/esm/salla-social-share.entry.js +2 -2
  260. package/dist/esm/salla-social.entry.js +2 -2
  261. package/dist/esm/salla-tab-content_3.entry.js +4 -4
  262. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  263. package/dist/esm/salla-tooltip.entry.js +2 -2
  264. package/dist/esm/salla-trust-badges.entry.js +1 -1
  265. package/dist/esm/salla-user-menu.entry.js +5 -5
  266. package/dist/esm/salla-user-profile.entry.js +1 -1
  267. package/dist/esm/salla-user-settings.entry.js +2 -2
  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 +2 -2
  271. package/dist/esm/shipping-fast-lMgMt31Q.js +11 -0
  272. package/dist/{cjs/star-DGcH7Yso.js → esm/star-CeFAfcTv.js} +2 -4
  273. package/dist/esm/{tracked-promise-CjtqaGP2.js → tracked-promise-DoP8oegK.js} +1 -1
  274. package/dist/esm/twilight.js +3 -3
  275. package/dist/esm/{vanilla-picker-DPMDb9SB.js → vanilla-picker-DHvTWQwH.js} +1 -1
  276. package/dist/twilight/{p-0a9af711.entry.js → p-01cd666a.entry.js} +1 -1
  277. package/dist/twilight/{p-ef2d94d3.entry.js → p-02bda539.entry.js} +1 -1
  278. package/dist/twilight/{p-e9cdcf2f.entry.js → p-0569fa78.entry.js} +1 -1
  279. package/dist/twilight/{p-47dd6817.entry.js → p-0a851930.entry.js} +1 -1
  280. package/dist/twilight/{p-338a55c1.entry.js → p-0b6623d1.entry.js} +1 -1
  281. package/dist/twilight/{p-082f3913.entry.js → p-0e9f471f.entry.js} +1 -1
  282. package/dist/twilight/{p-3c10826c.entry.js → p-0f6bc387.entry.js} +1 -1
  283. package/dist/twilight/{p-02e2f661.entry.js → p-10cfb2e6.entry.js} +1 -1
  284. package/dist/twilight/{p-85fc94be.entry.js → p-1351776d.entry.js} +1 -1
  285. package/dist/twilight/{p-f6d6dada.entry.js → p-14c28037.entry.js} +1 -1
  286. package/dist/twilight/{p-24127075.entry.js → p-158b25d6.entry.js} +1 -1
  287. package/dist/twilight/{p-0cd023d2.entry.js → p-180efa36.entry.js} +1 -1
  288. package/dist/twilight/{p-602df9ed.entry.js → p-1a89b6e6.entry.js} +1 -1
  289. package/dist/twilight/p-1d1598f2.entry.js +4 -0
  290. package/dist/twilight/{p-db9dc344.entry.js → p-24a33e42.entry.js} +1 -1
  291. package/dist/twilight/{p-12ccff98.entry.js → p-2565c8a8.entry.js} +1 -1
  292. package/dist/twilight/{p-c84ada78.entry.js → p-27ba15f4.entry.js} +1 -1
  293. package/dist/twilight/{p-52283d18.entry.js → p-2abf9e37.entry.js} +1 -1
  294. package/dist/twilight/p-2be2e677.entry.js +4 -0
  295. package/dist/twilight/{p-094dcf0c.entry.js → p-3301eb04.entry.js} +1 -1
  296. package/dist/twilight/{p-26faf85e.entry.js → p-3394398c.entry.js} +1 -1
  297. package/dist/twilight/{p-b5d32897.entry.js → p-346519c6.entry.js} +1 -1
  298. package/dist/twilight/{p-90534314.entry.js → p-3642805b.entry.js} +1 -1
  299. package/dist/twilight/{p-ed02b506.entry.js → p-3698e128.entry.js} +1 -1
  300. package/dist/twilight/{p-5171b440.entry.js → p-379db48e.entry.js} +1 -1
  301. package/dist/twilight/{p-b6cdfd09.entry.js → p-38f0b921.entry.js} +1 -1
  302. package/dist/twilight/{p-afc451ef.entry.js → p-3d3cebb9.entry.js} +1 -1
  303. package/dist/twilight/{p-3e7a3c6e.entry.js → p-3d3f647d.entry.js} +1 -1
  304. package/dist/twilight/{p-7bbea228.entry.js → p-43b6be6a.entry.js} +1 -1
  305. package/dist/twilight/p-46440c88.entry.js +4 -0
  306. package/dist/twilight/{p-46cd5ece.entry.js → p-484fde1d.entry.js} +1 -1
  307. package/dist/twilight/{p-43a2f42e.entry.js → p-4ee6b3e0.entry.js} +1 -1
  308. package/dist/twilight/{p-f01c12dc.entry.js → p-53188a50.entry.js} +1 -1
  309. package/dist/twilight/{p-b0d5084c.entry.js → p-53b388e5.entry.js} +1 -1
  310. package/dist/twilight/p-5619de6e.entry.js +4 -0
  311. package/dist/twilight/{p-edc4193f.entry.js → p-5832f8ef.entry.js} +1 -1
  312. package/dist/twilight/{p-160fc21e.entry.js → p-5c7dfd69.entry.js} +1 -1
  313. package/dist/twilight/{p-991b1e85.entry.js → p-5d757ebc.entry.js} +1 -1
  314. package/dist/twilight/{p-04a6cb8f.entry.js → p-65745dca.entry.js} +1 -1
  315. package/dist/twilight/{p-8fec15f8.entry.js → p-68a0d7de.entry.js} +1 -1
  316. package/dist/twilight/{p-9474d525.entry.js → p-698202a9.entry.js} +1 -1
  317. package/dist/twilight/{p-4ab4e5ea.entry.js → p-6b0b391f.entry.js} +1 -1
  318. package/dist/twilight/{p-fa5fa155.entry.js → p-6b14b175.entry.js} +1 -1
  319. package/dist/twilight/{p-5993b7d0.entry.js → p-6c03ddfd.entry.js} +1 -1
  320. package/dist/twilight/{p-cee1f87a.entry.js → p-6c25d25f.entry.js} +1 -1
  321. package/dist/twilight/{p-f2dbde1c.entry.js → p-6c7dc86f.entry.js} +1 -1
  322. package/dist/twilight/{p-08641aeb.entry.js → p-6e7c8096.entry.js} +1 -1
  323. package/dist/twilight/{p-844c6c1f.entry.js → p-7269d2ba.entry.js} +1 -1
  324. package/dist/twilight/{p-3f924fc5.entry.js → p-75d546f8.entry.js} +2 -2
  325. package/dist/twilight/{p-6ab60f90.entry.js → p-768077d9.entry.js} +1 -1
  326. package/dist/twilight/{p-39b8ffcd.entry.js → p-79d53d67.entry.js} +1 -1
  327. package/dist/twilight/{p-f14fe365.entry.js → p-7a4328dd.entry.js} +1 -1
  328. package/dist/twilight/{p-1efc0eed.entry.js → p-7a8f4587.entry.js} +1 -1
  329. package/dist/twilight/{p-7fb92e0b.entry.js → p-7ed01fae.entry.js} +1 -1
  330. package/dist/twilight/{p-ab2a5243.entry.js → p-831105b1.entry.js} +1 -1
  331. package/dist/twilight/{p-06966ed6.entry.js → p-83920e60.entry.js} +1 -1
  332. package/dist/twilight/{p-1a957d13.entry.js → p-84ed1fe9.entry.js} +1 -1
  333. package/dist/twilight/{p-3ce46edf.entry.js → p-904d61a5.entry.js} +1 -1
  334. package/dist/twilight/{p-c4c32432.entry.js → p-92212c2c.entry.js} +1 -1
  335. package/dist/twilight/{p-9fc965a7.entry.js → p-92f96da3.entry.js} +1 -1
  336. package/dist/twilight/{p-69766916.entry.js → p-95fd32d1.entry.js} +1 -1
  337. package/dist/twilight/{p-7a0d2f4d.entry.js → p-967a0b5f.entry.js} +1 -1
  338. package/dist/twilight/{p-f9192741.entry.js → p-96bc00e4.entry.js} +1 -1
  339. package/dist/twilight/{p-5wempgCB.js → p-B8h6YT8x.js} +1 -1
  340. package/dist/twilight/{p-Ca18LMTl.js → p-BAPngUXX.js} +1 -1
  341. package/dist/twilight/{p-BwggHXVj.js → p-By0LfFQa.js} +1 -1
  342. package/dist/twilight/{p-CsSICzhL.js → p-C9sdTleU.js} +1 -1
  343. package/dist/twilight/{p-DJ3ziTwG.js → p-CEkVObpk.js} +1 -1
  344. package/dist/twilight/{p-6sBYUIya.js → p-COcTJoQh.js} +1 -1
  345. package/dist/twilight/{p-C72A7Y44.js → p-C_9dEE-y.js} +1 -1
  346. package/dist/twilight/{p-ZT7ehBBk.js → p-CeFAfcTv.js} +1 -1
  347. package/dist/twilight/{p-DNWyGkAx.js → p-CrMCOyRb.js} +2 -2
  348. package/dist/twilight/{p-C5HojqDY.js → p-D7kAm5HN.js} +1 -1
  349. package/dist/twilight/{p-9273a620.entry.js → p-a458dd2a.entry.js} +1 -1
  350. package/dist/twilight/{p-14f8ba23.entry.js → p-a67a69d6.entry.js} +1 -1
  351. package/dist/twilight/{p-cbc66d20.entry.js → p-b02b29fa.entry.js} +1 -1
  352. package/dist/twilight/{p-d239611f.entry.js → p-b0ac8f2d.entry.js} +1 -1
  353. package/dist/twilight/{p-1aeeb0f0.entry.js → p-b6a9c958.entry.js} +1 -1
  354. package/dist/twilight/p-b7e45734.entry.js +4 -0
  355. package/dist/twilight/{p-6852162e.entry.js → p-b82011e6.entry.js} +1 -1
  356. package/dist/twilight/{p-c9aa80c3.entry.js → p-ba9d9441.entry.js} +1 -1
  357. package/dist/twilight/{p-da66f939.entry.js → p-bc231a7f.entry.js} +1 -1
  358. package/dist/twilight/{p-40407996.entry.js → p-be9f3b55.entry.js} +1 -1
  359. package/dist/twilight/p-c0fdeae5.entry.js +4 -0
  360. package/dist/twilight/{p-78f161f2.entry.js → p-c1959cfa.entry.js} +1 -1
  361. package/dist/twilight/{p-f8933bd5.entry.js → p-c34e8a2f.entry.js} +1 -1
  362. package/dist/twilight/{p-85c6c44f.entry.js → p-c40da673.entry.js} +1 -1
  363. package/dist/twilight/{p-6e7a6f4b.entry.js → p-c4981fc4.entry.js} +1 -1
  364. package/dist/twilight/{p-61813e83.entry.js → p-c75169ad.entry.js} +1 -1
  365. package/dist/twilight/{p-4b17c9a0.entry.js → p-cd6617a2.entry.js} +1 -1
  366. package/dist/twilight/{p-ca028945.entry.js → p-ce621f89.entry.js} +1 -1
  367. package/dist/twilight/{p-ac7c0ea4.entry.js → p-cf699819.entry.js} +1 -1
  368. package/dist/twilight/{p-a965c431.entry.js → p-d8b9b23d.entry.js} +1 -1
  369. package/dist/twilight/{p-d3f3eed5.entry.js → p-d90c6504.entry.js} +1 -1
  370. package/dist/twilight/{p-aaf7cbb1.entry.js → p-da875729.entry.js} +1 -1
  371. package/dist/twilight/{p-6891f00b.entry.js → p-db885288.entry.js} +1 -1
  372. package/dist/twilight/{p-cfc209db.entry.js → p-ea7111b7.entry.js} +1 -1
  373. package/dist/twilight/{p-56365c64.entry.js → p-f2a98eb7.entry.js} +1 -1
  374. package/dist/twilight/{p-de942889.entry.js → p-f2c185ff.entry.js} +1 -1
  375. package/dist/twilight/{p-6494c6bf.entry.js → p-f31322cc.entry.js} +1 -1
  376. package/dist/twilight/{p-5b989746.entry.js → p-f6e578f4.entry.js} +1 -1
  377. package/dist/twilight/{p-f2e9d83b.entry.js → p-f82bf774.entry.js} +1 -1
  378. package/dist/twilight/{p-e2da0555.entry.js → p-fd3602a9.entry.js} +1 -1
  379. package/dist/twilight/{p-DQUSqsnq.js → p-hej0tW8f.js} +1 -1
  380. package/dist/twilight/p-lMgMt31Q.js +4 -0
  381. package/dist/twilight/{p-Bw7P5SwX.js → p-pvcZDEed.js} +1 -1
  382. package/dist/twilight/{p-Dp4UckOj.js → p-vj4RR8x2.js} +1 -1
  383. package/dist/twilight/twilight.esm.js +1 -1
  384. package/dist/types/components/salla-comments/interfaces.d.ts +6 -0
  385. package/dist/types/components/salla-comments/salla-comment-factors.d.ts +6 -0
  386. package/dist/types/components/salla-comments/salla-comment-item.d.ts +3 -0
  387. package/dist/types/components/salla-comments/salla-comments.d.ts +2 -2
  388. package/dist/types/components/salla-rating-modal/order-feedback-response.d.ts +32 -0
  389. package/dist/types/components/salla-rating-modal/salla-rating-modal-v2.d.ts +151 -0
  390. package/dist/types/components/salla-rating-modal/salla-rating-modal.d.ts +5 -1
  391. package/dist/types/components/salla-rating-stars/salla-rating-stars.d.ts +13 -0
  392. package/dist/types/components/salla-review-factors-tags/helpers.d.ts +16 -0
  393. package/dist/types/components/salla-review-factors-tags/interfaces.d.ts +17 -0
  394. package/dist/types/components/salla-review-factors-tags/salla-review-factors-tags.d.ts +24 -0
  395. package/dist/types/components/salla-reviews-summary/interfaces.d.ts +5 -0
  396. package/dist/types/components/salla-reviews-summary/salla-reviews-summary.d.ts +2 -0
  397. package/dist/types/components.d.ts +114 -2
  398. package/package.json +5 -5
  399. package/dist/twilight/p-f12a28f9.entry.js +0 -4
  400. package/dist/twilight/p-f6205375.entry.js +0 -4
  401. package/dist/twilight/p-fc676125.entry.js +0 -4
@@ -27,13 +27,39 @@ export default interface OrderFeedbackResponse {
27
27
  shipping_enabled: boolean;
28
28
  testimonials_enabled: boolean;
29
29
  };
30
+ items?: Array<{
31
+ product?: {
32
+ id?: number;
33
+ };
34
+ }>;
35
+ rating?: CustomerOrderRating;
36
+ }
37
+ export interface CustomerOrderProductRating {
38
+ id?: number;
39
+ feedback_id?: number;
40
+ product_id?: number;
41
+ rating?: number;
42
+ stars?: number;
43
+ product?: {
44
+ id?: number;
45
+ };
46
+ factor_reviews?: ReviewFactor[];
47
+ review_factors?: ReviewFactor[];
48
+ }
49
+ export interface CustomerOrderRating {
50
+ store?: CustomerOrderProductRating;
51
+ product?: CustomerOrderProductRating | CustomerOrderProductRating[];
52
+ products?: CustomerOrderProductRating | CustomerOrderProductRating[];
30
53
  }
31
54
  export interface ProductFeedback {
32
55
  feedback: {
33
56
  content: string;
34
57
  rating: number;
35
58
  status: string;
59
+ factor_reviews?: ReviewFactor[];
36
60
  };
61
+ review_factors?: ReviewFactor[];
62
+ factor_reviews?: ReviewFactor[];
37
63
  product: {
38
64
  id: number;
39
65
  type: string;
@@ -55,6 +81,12 @@ export interface ProductFeedback {
55
81
  favorite: any;
56
82
  };
57
83
  }
84
+ export interface ReviewFactor {
85
+ id?: number | string;
86
+ name: string;
87
+ required?: boolean;
88
+ rating?: number;
89
+ }
58
90
  interface Price {
59
91
  amount: number;
60
92
  currency: string;
@@ -0,0 +1,151 @@
1
+ import type OrderFeedbackResponse from './order-feedback-response';
2
+ import type { ReviewFactor } from './order-feedback-response';
3
+ export declare class SallaRatingModalV2 {
4
+ constructor();
5
+ order: OrderFeedbackResponse | undefined;
6
+ hasError: boolean;
7
+ showContactWidget: boolean;
8
+ errorMessage: string;
9
+ images: any[];
10
+ productImages: Record<number, Array<any>>;
11
+ editItemImages: Array<any>;
12
+ productReviewFactors: Record<number, ReviewFactor[]>;
13
+ editFactorRatings: Record<string, number>;
14
+ productMainRatings: Record<number, number>;
15
+ productFactorRatings: Record<number, Record<string, number>>;
16
+ editMainRating: number | undefined;
17
+ contact_body: (store: string, id: number, customer: string) => string;
18
+ editMode: boolean;
19
+ defaultMode: boolean;
20
+ deleteMode: boolean;
21
+ shouldOpenDeleteModal: boolean;
22
+ editType: 'product' | 'store' | 'shipping';
23
+ editFeedbackId: number;
24
+ deleteFeedbackId: number;
25
+ editItem: any;
26
+ allowAttachImages: boolean;
27
+ allowContactSupport: boolean;
28
+ private dragAndDropFilesLabel;
29
+ private contactSubjectLabel;
30
+ private editReviewLabel;
31
+ private allowedImagesTypesLabel;
32
+ private threeImagesMax;
33
+ private areYouSureLabel;
34
+ private confirmDeletionLabel;
35
+ private cancelLabel;
36
+ private confirmDeleteBtn;
37
+ private updatedSuccessfullyLabel;
38
+ private deletedSuccessfullyLabel;
39
+ private contactUsLabel;
40
+ private requiredFactorsLabel;
41
+ private overallProductRatingLabel;
42
+ private contentRefs;
43
+ private hiddenInputs;
44
+ private userFilledFactorKeys;
45
+ private boundRatingRows;
46
+ private stepsCount;
47
+ private nextBtn;
48
+ private backBtn;
49
+ private modal;
50
+ private editModal;
51
+ private deleteModal;
52
+ private currentIndex;
53
+ private currentTab;
54
+ private thanksTab;
55
+ private body;
56
+ private thanksTime;
57
+ private steps;
58
+ private dots;
59
+ private submitted;
60
+ private MAX_UPLOAD_LIMIT;
61
+ private thanksCountdownInterval;
62
+ /**
63
+ * The order id, to rate on its products & shipping
64
+ */
65
+ orderId: number;
66
+ host: HTMLElement;
67
+ /**
68
+ * Show the rating modal
69
+ */
70
+ private syncStoreSettings;
71
+ /** Encrypted order id from page config / prop — used to fetch order details. */
72
+ private getRatingOrderId;
73
+ /** Numeric order id from API response — used when submitting ratings. */
74
+ private getSubmitOrderId;
75
+ private isCustomerOrderShape;
76
+ private getBootstrapOrder;
77
+ private loadCustomerOrderForEdit;
78
+ private getOrderProductRatings;
79
+ private getMatchedProductRating;
80
+ private hasRatingFeedback;
81
+ private isTestimonialsEnabled;
82
+ private isProductsEnabled;
83
+ private isShippingEnabled;
84
+ private getOrderProducts;
85
+ private getRateableProducts;
86
+ private getStepsCount;
87
+ private scheduleWizardSetup;
88
+ private afterOrderLoaded;
89
+ open(): Promise<unknown>;
90
+ openEditModal(params: {
91
+ type: 'product' | 'store' | 'shipping';
92
+ feedback_id: number;
93
+ }): Promise<void>;
94
+ fetchEditItem(feedbackId: number): Promise<void>;
95
+ private editReview;
96
+ openDeleteModal(params: any): Promise<unknown>;
97
+ deleteReview(): Promise<void>;
98
+ /**
99
+ * Show the rating modal
100
+ */
101
+ close(): Promise<HTMLElement>;
102
+ private handleWizard;
103
+ private refreshWizardRefs;
104
+ private showActiveStep;
105
+ private updateBodyHeight;
106
+ private previousTab;
107
+ private submit;
108
+ private submittedBefore;
109
+ private getRatingHiddenInput;
110
+ private collectNamedInputs;
111
+ private normalizeFactorsList;
112
+ private validate;
113
+ private collectFormData;
114
+ private buildProductRatingPayload;
115
+ private sendFeedback;
116
+ private clearThanksCountdown;
117
+ private showThankYou;
118
+ private getFilepondPlaceholder;
119
+ private getCustomerName;
120
+ private normalizeReviewFactorsPayload;
121
+ private fetchProductReviewFactors;
122
+ private fetchAllProductReviewFactors;
123
+ private ensureProductFactorsLoaded;
124
+ private getFactorFieldName;
125
+ private normalizeToArray;
126
+ private isFactorReviewsList;
127
+ private getFactorReviewsFromRecord;
128
+ private getEditFactorReviewsList;
129
+ private getFactorKey;
130
+ private getFactorRatingsForProduct;
131
+ private setFactorRatingsForProduct;
132
+ private markExistingFactorRatingsAsUserFilled;
133
+ private shouldAutofillFactors;
134
+ private autofillUnfilledFactors;
135
+ private handleMainRatingChange;
136
+ private handleFactorRatingChange;
137
+ private setupProductRatingAutofill;
138
+ private buildEditFactorRatings;
139
+ private renderProductStep;
140
+ private renderProductReviewFactors;
141
+ private handleSendEmail;
142
+ private handleSendWhatsApp;
143
+ private resetData;
144
+ private getDeleteModal;
145
+ private renderUploadedImagesCount;
146
+ private getEditModal;
147
+ render(): any;
148
+ componentWillLoad(): Promise<void>;
149
+ componentDidRender(): void;
150
+ disconnectedCallback(): void;
151
+ }
@@ -17,6 +17,8 @@ export declare class SallaRatingModal {
17
17
  editFeedbackId: number;
18
18
  deleteFeedbackId: number;
19
19
  editItem: any;
20
+ enableNewPopUp: boolean;
21
+ private v2Ref;
20
22
  private dragAndDropFilesLabel;
21
23
  private contactSubjectLabel;
22
24
  private editReviewLabel;
@@ -56,6 +58,8 @@ export declare class SallaRatingModal {
56
58
  */
57
59
  orderId: number;
58
60
  host: HTMLElement;
61
+ private getV2Ref;
62
+ private syncNewPopUpFlag;
59
63
  /**
60
64
  * Show the rating modal
61
65
  */
@@ -92,6 +96,6 @@ export declare class SallaRatingModal {
92
96
  private renderUploadedImagesCount;
93
97
  private getEditModal;
94
98
  render(): any;
95
- componentWillLoad(): void;
99
+ componentWillLoad(): Promise<void>;
96
100
  componentDidLoad(): void;
97
101
  }
@@ -24,18 +24,31 @@ export declare class SallaRatingStars {
24
24
  */
25
25
  withLabel: boolean;
26
26
  /**
27
+ * Render the description label before the stars instead of after.
28
+ */
29
+ labelBeforeStars: boolean;
30
+ /**
27
31
  * Allows the rating to be editable.
28
32
  */
29
33
  editable: boolean;
34
+ tag: boolean;
30
35
  host: HTMLElement;
31
36
  private starsElem;
32
37
  private reviewsElement;
38
+ private labelElem;
39
+ private getLabelClassName;
40
+ private setLabelDisplay;
33
41
  componentWillLoad(): Promise<void>;
34
42
  protected initiateRating(): void;
35
43
  private handleRating;
36
44
  triggerRatingProgrammatically(index: number): void;
37
45
  private highlightSelectedStars;
38
46
  private createStars;
47
+ private renderReviewLabel;
48
+ private renderStarsWrapper;
49
+ private renderEditableStars;
39
50
  render(): any;
40
51
  componentDidLoad(): void;
52
+ componentDidUpdate(): void;
53
+ private syncEditableRating;
41
54
  }
@@ -0,0 +1,16 @@
1
+ import type { ProductRating, ReviewFactor } from './interfaces';
2
+ export declare function normalizeList<T>(value: T | T[] | Record<string, T> | null | undefined): T[];
3
+ export declare function getProductRatings(rating?: {
4
+ product?: unknown;
5
+ products?: unknown;
6
+ }): ProductRating[];
7
+ export declare function extractFactors(source?: ProductRating | null): ReviewFactor[];
8
+ export declare function findProductRating(productRatings: ProductRating[], ratingId?: number, productId?: number, itemId?: number): ProductRating | undefined;
9
+ export declare function resolveReviewFactors(order: {
10
+ rating?: {
11
+ product?: unknown;
12
+ products?: unknown;
13
+ };
14
+ } | null | undefined, ratingId?: number, productId?: number, itemId?: number): ReviewFactor[];
15
+ export declare function fetchOrder(orderId: number): Promise<unknown>;
16
+ export declare function resetOrderCacheForTests(): void;
@@ -0,0 +1,17 @@
1
+ export interface ReviewFactor {
2
+ id?: number | string;
3
+ name: string;
4
+ rating?: number;
5
+ }
6
+ export interface ProductRating {
7
+ id?: number;
8
+ feedback_id?: number;
9
+ product_id?: number;
10
+ order_item_id?: number;
11
+ product?: {
12
+ id?: number;
13
+ };
14
+ factor_reviews?: ReviewFactor[];
15
+ review_factors?: ReviewFactor[];
16
+ factors?: ReviewFactor[];
17
+ }
@@ -0,0 +1,24 @@
1
+ import type { ReviewFactor } from './interfaces';
2
+ export declare class SallaReviewFactorsTags {
3
+ /**
4
+ * Order ID used to fetch rating factors from `GET /orders/{order_id}`.
5
+ */
6
+ orderId: number;
7
+ /**
8
+ * Product rating feedback ID.
9
+ */
10
+ ratingId?: number;
11
+ /**
12
+ * Product ID used to match the rated line item.
13
+ */
14
+ productId?: number;
15
+ /**
16
+ * Order item ID used to match the rated line item.
17
+ */
18
+ itemId?: number;
19
+ factors: ReviewFactor[];
20
+ componentWillLoad(): Promise<void>;
21
+ private loadFactors;
22
+ private renderFactorTags;
23
+ render(): any;
24
+ }
@@ -3,9 +3,14 @@ export interface ReviewsSummary {
3
3
  rating: number;
4
4
  reviews: Reviews;
5
5
  recommendation?: number;
6
+ factors?: ReviewFactor[];
6
7
  }
7
8
  export interface Reviews {
8
9
  "5": number;
9
10
  "1": number;
10
11
  "4": number;
11
12
  }
13
+ export interface ReviewFactor {
14
+ name: string;
15
+ rating: number;
16
+ }
@@ -8,6 +8,7 @@ export declare class SallaReviewsSummary {
8
8
  canRender: boolean;
9
9
  basedOnLabel: string;
10
10
  recommendedLabel: string;
11
+ overallRatingLabel: string;
11
12
  showRatingSummary: boolean;
12
13
  recommendationOnly: boolean;
13
14
  showRecommendation: boolean;
@@ -15,6 +16,7 @@ export declare class SallaReviewsSummary {
15
16
  private loadConfig;
16
17
  private initializeLanguages;
17
18
  private loadSummary;
19
+ private renderFactorTags;
18
20
  private renderRecommendation;
19
21
  render(): any;
20
22
  }
@@ -9,7 +9,7 @@ import { Option } from "./components/salla-booking-field/interfaces";
9
9
  import { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
10
10
  import { Coupon } from "./components/salla-cart-coupons/interfaces";
11
11
  import { Color, Options } from "./components/salla-color-picker/interfaces";
12
- import { Comment, CommentType } from "./components/salla-comments/interfaces";
12
+ import { Comment, CommentType, ReviewFactor } from "./components/salla-comments/interfaces";
13
13
  import { CustomField } from "./components/salla-user-profile/interfaces";
14
14
  import { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
15
15
  import { FilePondFile } from "./components/salla-file-upload/interfaces";
@@ -36,7 +36,7 @@ export { Option } from "./components/salla-booking-field/interfaces";
36
36
  export { AddressCreatedEvent, BulletDeliveryConfirmedEvent, HeaderContextUpdateEvent } from "./components/salla-bullet-delivery/interfaces";
37
37
  export { Coupon } from "./components/salla-cart-coupons/interfaces";
38
38
  export { Color, Options } from "./components/salla-color-picker/interfaces";
39
- export { Comment, CommentType } from "./components/salla-comments/interfaces";
39
+ export { Comment, CommentType, ReviewFactor } from "./components/salla-comments/interfaces";
40
40
  export { CustomField } from "./components/salla-user-profile/interfaces";
41
41
  export { DateLimit, DateOption, LocaleKey } from "./components/salla-datetime-picker/interfaces";
42
42
  export { FilePondFile } from "./components/salla-file-upload/interfaces";
@@ -454,6 +454,12 @@ export namespace Components {
454
454
  */
455
455
  "showTextField": boolean;
456
456
  }
457
+ interface SallaCommentFactors {
458
+ /**
459
+ * @default []
460
+ */
461
+ "factors": ReviewFactor[];
462
+ }
457
463
  interface SallaCommentForm {
458
464
  /**
459
465
  * The ID of the item(as defined in the type), where the comment is for. defaults to `salla.config.get('page.id')`
@@ -2641,12 +2647,30 @@ export namespace Components {
2641
2647
  */
2642
2648
  "orderId": number;
2643
2649
  }
2650
+ interface SallaRatingModalV2 {
2651
+ /**
2652
+ * Show the rating modal
2653
+ */
2654
+ "close": () => Promise<HTMLElement>;
2655
+ "open": () => Promise<unknown>;
2656
+ "openDeleteModal": (params: any) => Promise<unknown>;
2657
+ "openEditModal": (params: { type: "product" | "store" | "shipping"; feedback_id: number; }) => Promise<void>;
2658
+ /**
2659
+ * The order id, to rate on its products & shipping
2660
+ */
2661
+ "orderId": number;
2662
+ }
2644
2663
  interface SallaRatingStars {
2645
2664
  /**
2646
2665
  * Allows the rating to be editable.
2647
2666
  * @default false
2648
2667
  */
2649
2668
  "editable": boolean;
2669
+ /**
2670
+ * Render the description label before the stars instead of after.
2671
+ * @default false
2672
+ */
2673
+ "labelBeforeStars": boolean;
2650
2674
  /**
2651
2675
  * Sets input name.
2652
2676
  * @default 'rating'
@@ -2662,6 +2686,10 @@ export namespace Components {
2662
2686
  * @default 'medium'
2663
2687
  */
2664
2688
  "size": "large" | "medium" | "small" | "mini";
2689
+ /**
2690
+ * @default true
2691
+ */
2692
+ "tag": boolean;
2665
2693
  /**
2666
2694
  * The rating value.
2667
2695
  */
@@ -2677,6 +2705,24 @@ export namespace Components {
2677
2705
  */
2678
2706
  "review": Partial<Review>;
2679
2707
  }
2708
+ interface SallaReviewFactorsTags {
2709
+ /**
2710
+ * Order item ID used to match the rated line item.
2711
+ */
2712
+ "itemId"?: number;
2713
+ /**
2714
+ * Order ID used to fetch rating factors from `GET /orders/{order_id}`.
2715
+ */
2716
+ "orderId": number;
2717
+ /**
2718
+ * Product ID used to match the rated line item.
2719
+ */
2720
+ "productId"?: number;
2721
+ /**
2722
+ * Product rating feedback ID.
2723
+ */
2724
+ "ratingId"?: number;
2725
+ }
2680
2726
  interface SallaReviews {
2681
2727
  /**
2682
2728
  * 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.
@@ -3714,6 +3760,12 @@ declare global {
3714
3760
  prototype: HTMLSallaColorPickerElement;
3715
3761
  new (): HTMLSallaColorPickerElement;
3716
3762
  };
3763
+ interface HTMLSallaCommentFactorsElement extends Components.SallaCommentFactors, HTMLStencilElement {
3764
+ }
3765
+ var HTMLSallaCommentFactorsElement: {
3766
+ prototype: HTMLSallaCommentFactorsElement;
3767
+ new (): HTMLSallaCommentFactorsElement;
3768
+ };
3717
3769
  interface HTMLSallaCommentFormElementEventMap {
3718
3770
  "commentAdded": {
3719
3771
  id?: number;
@@ -4536,6 +4588,12 @@ declare global {
4536
4588
  prototype: HTMLSallaRatingModalElement;
4537
4589
  new (): HTMLSallaRatingModalElement;
4538
4590
  };
4591
+ interface HTMLSallaRatingModalV2Element extends Components.SallaRatingModalV2, HTMLStencilElement {
4592
+ }
4593
+ var HTMLSallaRatingModalV2Element: {
4594
+ prototype: HTMLSallaRatingModalV2Element;
4595
+ new (): HTMLSallaRatingModalV2Element;
4596
+ };
4539
4597
  interface HTMLSallaRatingStarsElement extends Components.SallaRatingStars, HTMLStencilElement {
4540
4598
  }
4541
4599
  var HTMLSallaRatingStarsElement: {
@@ -4548,6 +4606,12 @@ declare global {
4548
4606
  prototype: HTMLSallaReviewCardElement;
4549
4607
  new (): HTMLSallaReviewCardElement;
4550
4608
  };
4609
+ interface HTMLSallaReviewFactorsTagsElement extends Components.SallaReviewFactorsTags, HTMLStencilElement {
4610
+ }
4611
+ var HTMLSallaReviewFactorsTagsElement: {
4612
+ prototype: HTMLSallaReviewFactorsTagsElement;
4613
+ new (): HTMLSallaReviewFactorsTagsElement;
4614
+ };
4551
4615
  interface HTMLSallaReviewsElement extends Components.SallaReviews, HTMLStencilElement {
4552
4616
  }
4553
4617
  var HTMLSallaReviewsElement: {
@@ -4865,6 +4929,7 @@ declare global {
4865
4929
  "salla-cart-summary-card": HTMLSallaCartSummaryCardElement;
4866
4930
  "salla-cashback-banner": HTMLSallaCashbackBannerElement;
4867
4931
  "salla-color-picker": HTMLSallaColorPickerElement;
4932
+ "salla-comment-factors": HTMLSallaCommentFactorsElement;
4868
4933
  "salla-comment-form": HTMLSallaCommentFormElement;
4869
4934
  "salla-comment-item": HTMLSallaCommentItemElement;
4870
4935
  "salla-comments": HTMLSallaCommentsElement;
@@ -4942,8 +5007,10 @@ declare global {
4942
5007
  "salla-quick-buy": HTMLSallaQuickBuyElement;
4943
5008
  "salla-quick-order": HTMLSallaQuickOrderElement;
4944
5009
  "salla-rating-modal": HTMLSallaRatingModalElement;
5010
+ "salla-rating-modal-v2": HTMLSallaRatingModalV2Element;
4945
5011
  "salla-rating-stars": HTMLSallaRatingStarsElement;
4946
5012
  "salla-review-card": HTMLSallaReviewCardElement;
5013
+ "salla-review-factors-tags": HTMLSallaReviewFactorsTagsElement;
4947
5014
  "salla-reviews": HTMLSallaReviewsElement;
4948
5015
  "salla-reviews-page": HTMLSallaReviewsPageElement;
4949
5016
  "salla-reviews-summary": HTMLSallaReviewsSummaryElement;
@@ -5357,6 +5424,12 @@ declare namespace LocalJSX {
5357
5424
  */
5358
5425
  "showTextField"?: boolean;
5359
5426
  }
5427
+ interface SallaCommentFactors {
5428
+ /**
5429
+ * @default []
5430
+ */
5431
+ "factors"?: ReviewFactor[];
5432
+ }
5360
5433
  interface SallaCommentForm {
5361
5434
  /**
5362
5435
  * The ID of the item(as defined in the type), where the comment is for. defaults to `salla.config.get('page.id')`
@@ -7409,12 +7482,23 @@ declare namespace LocalJSX {
7409
7482
  */
7410
7483
  "orderId"?: number;
7411
7484
  }
7485
+ interface SallaRatingModalV2 {
7486
+ /**
7487
+ * The order id, to rate on its products & shipping
7488
+ */
7489
+ "orderId"?: number;
7490
+ }
7412
7491
  interface SallaRatingStars {
7413
7492
  /**
7414
7493
  * Allows the rating to be editable.
7415
7494
  * @default false
7416
7495
  */
7417
7496
  "editable"?: boolean;
7497
+ /**
7498
+ * Render the description label before the stars instead of after.
7499
+ * @default false
7500
+ */
7501
+ "labelBeforeStars"?: boolean;
7418
7502
  /**
7419
7503
  * Sets input name.
7420
7504
  * @default 'rating'
@@ -7430,6 +7514,10 @@ declare namespace LocalJSX {
7430
7514
  * @default 'medium'
7431
7515
  */
7432
7516
  "size"?: "large" | "medium" | "small" | "mini";
7517
+ /**
7518
+ * @default true
7519
+ */
7520
+ "tag"?: boolean;
7433
7521
  /**
7434
7522
  * The rating value.
7435
7523
  */
@@ -7445,6 +7533,24 @@ declare namespace LocalJSX {
7445
7533
  */
7446
7534
  "review"?: Partial<Review>;
7447
7535
  }
7536
+ interface SallaReviewFactorsTags {
7537
+ /**
7538
+ * Order item ID used to match the rated line item.
7539
+ */
7540
+ "itemId"?: number;
7541
+ /**
7542
+ * Order ID used to fetch rating factors from `GET /orders/{order_id}`.
7543
+ */
7544
+ "orderId": number;
7545
+ /**
7546
+ * Product ID used to match the rated line item.
7547
+ */
7548
+ "productId"?: number;
7549
+ /**
7550
+ * Product rating feedback ID.
7551
+ */
7552
+ "ratingId"?: number;
7553
+ }
7448
7554
  interface SallaReviews {
7449
7555
  /**
7450
7556
  * 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.
@@ -8062,6 +8168,7 @@ declare namespace LocalJSX {
8062
8168
  "salla-cart-summary-card": SallaCartSummaryCard;
8063
8169
  "salla-cashback-banner": SallaCashbackBanner;
8064
8170
  "salla-color-picker": SallaColorPicker;
8171
+ "salla-comment-factors": SallaCommentFactors;
8065
8172
  "salla-comment-form": SallaCommentForm;
8066
8173
  "salla-comment-item": SallaCommentItem;
8067
8174
  "salla-comments": SallaComments;
@@ -8139,8 +8246,10 @@ declare namespace LocalJSX {
8139
8246
  "salla-quick-buy": SallaQuickBuy;
8140
8247
  "salla-quick-order": SallaQuickOrder;
8141
8248
  "salla-rating-modal": SallaRatingModal;
8249
+ "salla-rating-modal-v2": SallaRatingModalV2;
8142
8250
  "salla-rating-stars": SallaRatingStars;
8143
8251
  "salla-review-card": SallaReviewCard;
8252
+ "salla-review-factors-tags": SallaReviewFactorsTags;
8144
8253
  "salla-reviews": SallaReviews;
8145
8254
  "salla-reviews-page": SallaReviewsPage;
8146
8255
  "salla-reviews-summary": SallaReviewsSummary;
@@ -8222,6 +8331,7 @@ declare module "@stencil/core" {
8222
8331
  "salla-cart-summary-card": LocalJSX.SallaCartSummaryCard & JSXBase.HTMLAttributes<HTMLSallaCartSummaryCardElement>;
8223
8332
  "salla-cashback-banner": LocalJSX.SallaCashbackBanner & JSXBase.HTMLAttributes<HTMLSallaCashbackBannerElement>;
8224
8333
  "salla-color-picker": LocalJSX.SallaColorPicker & JSXBase.HTMLAttributes<HTMLSallaColorPickerElement>;
8334
+ "salla-comment-factors": LocalJSX.SallaCommentFactors & JSXBase.HTMLAttributes<HTMLSallaCommentFactorsElement>;
8225
8335
  "salla-comment-form": LocalJSX.SallaCommentForm & JSXBase.HTMLAttributes<HTMLSallaCommentFormElement>;
8226
8336
  "salla-comment-item": LocalJSX.SallaCommentItem & JSXBase.HTMLAttributes<HTMLSallaCommentItemElement>;
8227
8337
  "salla-comments": LocalJSX.SallaComments & JSXBase.HTMLAttributes<HTMLSallaCommentsElement>;
@@ -8387,8 +8497,10 @@ declare module "@stencil/core" {
8387
8497
  "salla-quick-buy": LocalJSX.SallaQuickBuy & JSXBase.HTMLAttributes<HTMLSallaQuickBuyElement>;
8388
8498
  "salla-quick-order": LocalJSX.SallaQuickOrder & JSXBase.HTMLAttributes<HTMLSallaQuickOrderElement>;
8389
8499
  "salla-rating-modal": LocalJSX.SallaRatingModal & JSXBase.HTMLAttributes<HTMLSallaRatingModalElement>;
8500
+ "salla-rating-modal-v2": LocalJSX.SallaRatingModalV2 & JSXBase.HTMLAttributes<HTMLSallaRatingModalV2Element>;
8390
8501
  "salla-rating-stars": LocalJSX.SallaRatingStars & JSXBase.HTMLAttributes<HTMLSallaRatingStarsElement>;
8391
8502
  "salla-review-card": LocalJSX.SallaReviewCard & JSXBase.HTMLAttributes<HTMLSallaReviewCardElement>;
8503
+ "salla-review-factors-tags": LocalJSX.SallaReviewFactorsTags & JSXBase.HTMLAttributes<HTMLSallaReviewFactorsTagsElement>;
8392
8504
  "salla-reviews": LocalJSX.SallaReviews & JSXBase.HTMLAttributes<HTMLSallaReviewsElement>;
8393
8505
  "salla-reviews-page": LocalJSX.SallaReviewsPage & JSXBase.HTMLAttributes<HTMLSallaReviewsPageElement>;
8394
8506
  "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.489",
3
+ "version": "2.14.491",
4
4
  "license": "GPL-3.0",
5
5
  "author": "Salla Team <support@salla.dev> (https://salla.dev)",
6
6
  "bugs": {
@@ -81,9 +81,9 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@googlemaps/markerclusterer": "2.6.2",
84
- "@salla.sa/applepay": "2.14.489",
85
- "@salla.sa/twilight": "2.14.489",
86
- "@salla.sa/twilight-tailwind-theme": "2.14.489",
84
+ "@salla.sa/applepay": "2.14.491",
85
+ "@salla.sa/twilight": "2.14.491",
86
+ "@salla.sa/twilight-tailwind-theme": "2.14.491",
87
87
  "@salla.sa/ui-address-autocomplete-widget": "1.2.1",
88
88
  "@salla.sa/ui-google-map-render": "1.2.1",
89
89
  "@types/node": "^20.4.8",
@@ -104,5 +104,5 @@
104
104
  "vanilla-lazyload": "^17.8.5",
105
105
  "vanilla-picker": "^2.12.2"
106
106
  },
107
- "gitHead": "0daee21634ce788473fe383e40e29da644630dfd"
107
+ "gitHead": "18c975e1da35ca6b7bfc31bbec5c71e3f0539609"
108
108
  }