@salla.sa/twilight-components 2.14.400 → 2.14.401

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 (272) hide show
  1. package/dist/cjs/{filepond-8oBYaby8.js → filepond-Cyf8KBGp.js} +1 -1
  2. package/dist/cjs/{filepond-plugin-file-poster-C9_FxKYE.js → filepond-plugin-file-poster--yUgJ7UK.js} +1 -1
  3. package/dist/cjs/{filepond-plugin-file-validate-size-DH5y0nbW.js → filepond-plugin-file-validate-size-uHtguPuy.js} +1 -1
  4. package/dist/cjs/{filepond-plugin-file-validate-type-CeUAOvr1.js → filepond-plugin-file-validate-type-COz5Ivmq.js} +1 -1
  5. package/dist/cjs/{filepond-plugin-image-edit-BBY0rrW9.js → filepond-plugin-image-edit-CHInCcL8.js} +1 -1
  6. package/dist/cjs/{filepond-plugin-image-exif-orientation-CFHoWFvz.js → filepond-plugin-image-exif-orientation-CIh1qmKb.js} +1 -1
  7. package/dist/cjs/{filepond-plugin-image-preview-CUvopkJW.js → filepond-plugin-image-preview-C2lHZO0J.js} +1 -1
  8. package/dist/cjs/{index-CXnvDEKA.js → index-CnTFTuui.js} +1 -1
  9. package/dist/cjs/{index-CTlqP1j4.js → index-CsHE7up1.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/salla-accordion-body_2.cjs.entry.js +1 -1
  12. package/dist/cjs/salla-accordion_6.cjs.entry.js +1 -1
  13. package/dist/cjs/salla-add-product-button_4.cjs.entry.js +1 -1
  14. package/dist/cjs/salla-advertisement.cjs.entry.js +1 -1
  15. package/dist/cjs/salla-alert_2.cjs.entry.js +1 -1
  16. package/dist/cjs/salla-app-install-alert.cjs.entry.js +1 -1
  17. package/dist/cjs/salla-apps-icons.cjs.entry.js +1 -1
  18. package/dist/cjs/salla-booking-field_7.cjs.entry.js +10 -10
  19. package/dist/cjs/salla-bullet-delivery.cjs.entry.js +1 -1
  20. package/dist/cjs/salla-cart-coupons.cjs.entry.js +1 -1
  21. package/dist/cjs/salla-cart-item-offers_2.cjs.entry.js +1 -1
  22. package/dist/cjs/salla-comment-form_8.cjs.entry.js +43 -5
  23. package/dist/cjs/salla-conditional-offer.cjs.entry.js +1 -1
  24. package/dist/cjs/salla-contacts.cjs.entry.js +1 -1
  25. package/dist/cjs/salla-cookies-bar.cjs.entry.js +1 -1
  26. package/dist/cjs/salla-count-down.cjs.entry.js +1 -1
  27. package/dist/cjs/salla-custom-fields.cjs.entry.js +1 -1
  28. package/dist/cjs/salla-delivery-promise.cjs.entry.js +1 -1
  29. package/dist/cjs/salla-filters-widget.cjs.entry.js +1 -1
  30. package/dist/cjs/salla-filters.cjs.entry.js +1 -1
  31. package/dist/cjs/salla-fulfillment-methods.cjs.entry.js +1 -1
  32. package/dist/cjs/salla-gifting.cjs.entry.js +1 -1
  33. package/dist/cjs/salla-hook.cjs.entry.js +1 -1
  34. package/dist/cjs/salla-infinite-scroll.cjs.entry.js +1 -1
  35. package/dist/cjs/salla-installment.cjs.entry.js +1 -1
  36. package/dist/cjs/salla-list-tile.cjs.entry.js +1 -1
  37. package/dist/cjs/salla-localization-modal.cjs.entry.js +1 -1
  38. package/dist/cjs/salla-login-modal.cjs.entry.js +1 -1
  39. package/dist/cjs/salla-loyalty-prize-item.cjs.entry.js +1 -1
  40. package/dist/cjs/salla-loyalty-program.cjs.entry.js +1 -1
  41. package/dist/cjs/salla-loyalty.cjs.entry.js +1 -1
  42. package/dist/cjs/salla-maintenance-alert.cjs.entry.js +1 -1
  43. package/dist/cjs/salla-map.cjs.entry.js +1 -1
  44. package/dist/cjs/salla-menu.cjs.entry.js +1 -1
  45. package/dist/cjs/salla-metadata.cjs.entry.js +1 -1
  46. package/dist/cjs/salla-multiple-bundle-product-cart_2.cjs.entry.js +1 -1
  47. package/dist/cjs/salla-multiple-bundle-product-options-modal_2.cjs.entry.js +1 -1
  48. package/dist/cjs/salla-multiple-bundle-product.cjs.entry.js +1 -1
  49. package/dist/cjs/salla-notification-item.cjs.entry.js +1 -1
  50. package/dist/cjs/salla-notifications.cjs.entry.js +1 -1
  51. package/dist/cjs/salla-offer-modal.cjs.entry.js +1 -1
  52. package/dist/cjs/salla-offer.cjs.entry.js +1 -1
  53. package/dist/cjs/salla-order-details-multiple-bundle-product.cjs.entry.js +1 -1
  54. package/dist/cjs/salla-order-details-options.cjs.entry.js +1 -1
  55. package/dist/cjs/salla-order-details.cjs.entry.js +1 -1
  56. package/dist/cjs/salla-order-edit-item.cjs.entry.js +1 -1
  57. package/dist/cjs/salla-order-edit.cjs.entry.js +1 -1
  58. package/dist/cjs/salla-order-summary.cjs.entry.js +1 -1
  59. package/dist/cjs/salla-order-totals-card.cjs.entry.js +1 -1
  60. package/dist/cjs/salla-orders.cjs.entry.js +1 -1
  61. package/dist/cjs/salla-payments.cjs.entry.js +1 -1
  62. package/dist/cjs/salla-placeholder.cjs.entry.js +1 -1
  63. package/dist/cjs/salla-price-range.cjs.entry.js +1 -1
  64. package/dist/cjs/salla-product-card.cjs.entry.js +1 -1
  65. package/dist/cjs/salla-product-size-guide.cjs.entry.js +1 -1
  66. package/dist/cjs/salla-products-list.cjs.entry.js +1 -1
  67. package/dist/cjs/salla-products-slider.cjs.entry.js +1 -1
  68. package/dist/cjs/salla-progress-bar.cjs.entry.js +1 -1
  69. package/dist/cjs/salla-quick-order.cjs.entry.js +1 -1
  70. package/dist/cjs/salla-rating-modal.cjs.entry.js +1 -1
  71. package/dist/cjs/salla-scopes.cjs.entry.js +1 -1
  72. package/dist/cjs/salla-search.cjs.entry.js +1 -1
  73. package/dist/cjs/salla-skeleton.cjs.entry.js +1 -1
  74. package/dist/cjs/salla-slider.cjs.entry.js +1 -1
  75. package/dist/cjs/salla-social-share.cjs.entry.js +1 -1
  76. package/dist/cjs/salla-social.cjs.entry.js +1 -1
  77. package/dist/cjs/salla-tab-content_3.cjs.entry.js +1 -1
  78. package/dist/cjs/salla-tiered-offer.cjs.entry.js +1 -1
  79. package/dist/cjs/salla-tooltip.cjs.entry.js +1 -1
  80. package/dist/cjs/salla-trust-badges.cjs.entry.js +1 -1
  81. package/dist/cjs/salla-user-menu.cjs.entry.js +1 -1
  82. package/dist/cjs/salla-user-profile.cjs.entry.js +1 -1
  83. package/dist/cjs/salla-user-settings.cjs.entry.js +1 -1
  84. package/dist/cjs/salla-verify.cjs.entry.js +1 -1
  85. package/dist/cjs/salla-wallet.cjs.entry.js +1 -1
  86. package/dist/cjs/twilight.cjs.js +2 -2
  87. package/dist/cjs/{vanilla-picker-DIOht-QE.js → vanilla-picker-DYNK0WJo.js} +1 -1
  88. package/dist/collection/components/salla-comment-form/salla-comment-form.js +33 -3
  89. package/dist/collection/components/salla-comments/salla-comment-item.js +1 -1
  90. package/dist/collection/components/salla-comments/salla-comments.js +34 -0
  91. package/dist/components/index.js +2 -2
  92. package/dist/components/salla-comment-form2.js +17 -4
  93. package/dist/components/salla-comment-item2.js +1 -1
  94. package/dist/components/salla-comments.js +26 -1
  95. package/dist/esm/{filepond-C3JoxS5H.js → filepond-DR4SNVzz.js} +1 -1
  96. package/dist/esm/{filepond-plugin-file-poster-BtPqGW1l.js → filepond-plugin-file-poster-D5SixGgC.js} +1 -1
  97. package/dist/esm/{filepond-plugin-file-validate-size-CzU4paDx.js → filepond-plugin-file-validate-size-DsOh2L9N.js} +1 -1
  98. package/dist/esm/{filepond-plugin-file-validate-type-vDW3qAnV.js → filepond-plugin-file-validate-type-B4O62KoP.js} +1 -1
  99. package/dist/esm/{filepond-plugin-image-edit-D7B65tS9.js → filepond-plugin-image-edit-Clnx4Mv4.js} +1 -1
  100. package/dist/esm/{filepond-plugin-image-exif-orientation-CG2VBxZQ.js → filepond-plugin-image-exif-orientation-BN-eLjue.js} +1 -1
  101. package/dist/esm/{filepond-plugin-image-preview-D3kctuA5.js → filepond-plugin-image-preview-CYK3uEyM.js} +1 -1
  102. package/dist/esm/{index-NBDrHfxi.js → index-BlBuuMQp.js} +2 -2
  103. package/dist/esm/{index-CEMIzZOC.js → index-D6k2MP-W.js} +1 -1
  104. package/dist/esm/loader.js +3 -3
  105. package/dist/esm/salla-accordion-body_2.entry.js +1 -1
  106. package/dist/esm/salla-accordion_6.entry.js +1 -1
  107. package/dist/esm/salla-add-product-button_4.entry.js +1 -1
  108. package/dist/esm/salla-advertisement.entry.js +1 -1
  109. package/dist/esm/salla-alert_2.entry.js +1 -1
  110. package/dist/esm/salla-app-install-alert.entry.js +1 -1
  111. package/dist/esm/salla-apps-icons.entry.js +1 -1
  112. package/dist/esm/salla-booking-field_7.entry.js +10 -10
  113. package/dist/esm/salla-bullet-delivery.entry.js +1 -1
  114. package/dist/esm/salla-cart-coupons.entry.js +1 -1
  115. package/dist/esm/salla-cart-item-offers_2.entry.js +1 -1
  116. package/dist/esm/salla-comment-form_8.entry.js +43 -5
  117. package/dist/esm/salla-conditional-offer.entry.js +1 -1
  118. package/dist/esm/salla-contacts.entry.js +1 -1
  119. package/dist/esm/salla-cookies-bar.entry.js +1 -1
  120. package/dist/esm/salla-count-down.entry.js +1 -1
  121. package/dist/esm/salla-custom-fields.entry.js +1 -1
  122. package/dist/esm/salla-delivery-promise.entry.js +1 -1
  123. package/dist/esm/salla-filters-widget.entry.js +1 -1
  124. package/dist/esm/salla-filters.entry.js +1 -1
  125. package/dist/esm/salla-fulfillment-methods.entry.js +1 -1
  126. package/dist/esm/salla-gifting.entry.js +1 -1
  127. package/dist/esm/salla-hook.entry.js +1 -1
  128. package/dist/esm/salla-infinite-scroll.entry.js +1 -1
  129. package/dist/esm/salla-installment.entry.js +1 -1
  130. package/dist/esm/salla-list-tile.entry.js +1 -1
  131. package/dist/esm/salla-localization-modal.entry.js +1 -1
  132. package/dist/esm/salla-login-modal.entry.js +1 -1
  133. package/dist/esm/salla-loyalty-prize-item.entry.js +1 -1
  134. package/dist/esm/salla-loyalty-program.entry.js +1 -1
  135. package/dist/esm/salla-loyalty.entry.js +1 -1
  136. package/dist/esm/salla-maintenance-alert.entry.js +1 -1
  137. package/dist/esm/salla-map.entry.js +1 -1
  138. package/dist/esm/salla-menu.entry.js +1 -1
  139. package/dist/esm/salla-metadata.entry.js +1 -1
  140. package/dist/esm/salla-multiple-bundle-product-cart_2.entry.js +1 -1
  141. package/dist/esm/salla-multiple-bundle-product-options-modal_2.entry.js +1 -1
  142. package/dist/esm/salla-multiple-bundle-product.entry.js +1 -1
  143. package/dist/esm/salla-notification-item.entry.js +1 -1
  144. package/dist/esm/salla-notifications.entry.js +1 -1
  145. package/dist/esm/salla-offer-modal.entry.js +1 -1
  146. package/dist/esm/salla-offer.entry.js +1 -1
  147. package/dist/esm/salla-order-details-multiple-bundle-product.entry.js +1 -1
  148. package/dist/esm/salla-order-details-options.entry.js +1 -1
  149. package/dist/esm/salla-order-details.entry.js +1 -1
  150. package/dist/esm/salla-order-edit-item.entry.js +1 -1
  151. package/dist/esm/salla-order-edit.entry.js +1 -1
  152. package/dist/esm/salla-order-summary.entry.js +1 -1
  153. package/dist/esm/salla-order-totals-card.entry.js +1 -1
  154. package/dist/esm/salla-orders.entry.js +1 -1
  155. package/dist/esm/salla-payments.entry.js +1 -1
  156. package/dist/esm/salla-placeholder.entry.js +1 -1
  157. package/dist/esm/salla-price-range.entry.js +1 -1
  158. package/dist/esm/salla-product-card.entry.js +1 -1
  159. package/dist/esm/salla-product-size-guide.entry.js +1 -1
  160. package/dist/esm/salla-products-list.entry.js +1 -1
  161. package/dist/esm/salla-products-slider.entry.js +1 -1
  162. package/dist/esm/salla-progress-bar.entry.js +1 -1
  163. package/dist/esm/salla-quick-order.entry.js +1 -1
  164. package/dist/esm/salla-rating-modal.entry.js +1 -1
  165. package/dist/esm/salla-scopes.entry.js +1 -1
  166. package/dist/esm/salla-search.entry.js +1 -1
  167. package/dist/esm/salla-skeleton.entry.js +1 -1
  168. package/dist/esm/salla-slider.entry.js +1 -1
  169. package/dist/esm/salla-social-share.entry.js +1 -1
  170. package/dist/esm/salla-social.entry.js +1 -1
  171. package/dist/esm/salla-tab-content_3.entry.js +1 -1
  172. package/dist/esm/salla-tiered-offer.entry.js +1 -1
  173. package/dist/esm/salla-tooltip.entry.js +1 -1
  174. package/dist/esm/salla-trust-badges.entry.js +1 -1
  175. package/dist/esm/salla-user-menu.entry.js +1 -1
  176. package/dist/esm/salla-user-profile.entry.js +1 -1
  177. package/dist/esm/salla-user-settings.entry.js +1 -1
  178. package/dist/esm/salla-verify.entry.js +1 -1
  179. package/dist/esm/salla-wallet.entry.js +1 -1
  180. package/dist/esm/twilight.js +3 -3
  181. package/dist/esm/{vanilla-picker-DBbYurWw.js → vanilla-picker-oVvgrx3f.js} +1 -1
  182. package/dist/twilight/{p-da07cf74.entry.js → p-084e2131.entry.js} +1 -1
  183. package/dist/twilight/{p-247ea302.entry.js → p-08582b06.entry.js} +1 -1
  184. package/dist/twilight/{p-4adfbc23.entry.js → p-0901a25d.entry.js} +1 -1
  185. package/dist/twilight/{p-76657623.entry.js → p-091fe74b.entry.js} +1 -1
  186. package/dist/twilight/{p-7db1d294.entry.js → p-11c02cc2.entry.js} +1 -1
  187. package/dist/twilight/{p-909f8055.entry.js → p-1426be48.entry.js} +1 -1
  188. package/dist/twilight/{p-cef3ce10.entry.js → p-14d50b4c.entry.js} +1 -1
  189. package/dist/twilight/{p-7f55a45e.entry.js → p-15aa6772.entry.js} +1 -1
  190. package/dist/twilight/{p-a184090f.entry.js → p-1caa8d6e.entry.js} +1 -1
  191. package/dist/twilight/{p-85bbede4.entry.js → p-209a2ef7.entry.js} +1 -1
  192. package/dist/twilight/{p-e7a55f86.entry.js → p-22790492.entry.js} +1 -1
  193. package/dist/twilight/{p-651bf6b4.entry.js → p-25123930.entry.js} +1 -1
  194. package/dist/twilight/{p-30ea3256.entry.js → p-26ce4274.entry.js} +1 -1
  195. package/dist/twilight/{p-d88ba652.entry.js → p-2768932b.entry.js} +1 -1
  196. package/dist/twilight/{p-6c963eef.entry.js → p-2835ba4b.entry.js} +1 -1
  197. package/dist/twilight/{p-6a4489da.entry.js → p-28d735dc.entry.js} +1 -1
  198. package/dist/twilight/{p-97be11f8.entry.js → p-32ab498a.entry.js} +1 -1
  199. package/dist/twilight/{p-7a545ff1.entry.js → p-345807de.entry.js} +1 -1
  200. package/dist/twilight/{p-48fb61ee.entry.js → p-35b7c465.entry.js} +1 -1
  201. package/dist/twilight/{p-d48fb649.entry.js → p-372ce435.entry.js} +1 -1
  202. package/dist/twilight/{p-aa3fff4a.entry.js → p-3b3b6cd6.entry.js} +1 -1
  203. package/dist/twilight/{p-c1e6c417.entry.js → p-3d2bdf94.entry.js} +1 -1
  204. package/dist/twilight/{p-8312c50c.entry.js → p-45f1b946.entry.js} +1 -1
  205. package/dist/twilight/{p-150d9ac5.entry.js → p-48b8b9b0.entry.js} +1 -1
  206. package/dist/twilight/{p-d8031f07.entry.js → p-505504bf.entry.js} +1 -1
  207. package/dist/twilight/{p-99320491.entry.js → p-546f8eb7.entry.js} +1 -1
  208. package/dist/twilight/{p-628f6c31.entry.js → p-56ad6447.entry.js} +1 -1
  209. package/dist/twilight/{p-316c06ab.entry.js → p-5f3d4e2c.entry.js} +1 -1
  210. package/dist/twilight/{p-a870f6da.entry.js → p-6324f2ca.entry.js} +1 -1
  211. package/dist/twilight/{p-a8ae86e2.entry.js → p-65129aa6.entry.js} +1 -1
  212. package/dist/twilight/p-6b5c8369.entry.js +4 -0
  213. package/dist/twilight/{p-4269d1ab.entry.js → p-6e47537d.entry.js} +1 -1
  214. package/dist/twilight/{p-6fcec199.entry.js → p-6f8ce4cc.entry.js} +1 -1
  215. package/dist/twilight/{p-3e0c6da6.entry.js → p-727a8316.entry.js} +1 -1
  216. package/dist/twilight/{p-2da209d8.entry.js → p-78d7eb5c.entry.js} +1 -1
  217. package/dist/twilight/{p-95c5460a.entry.js → p-79dd8455.entry.js} +1 -1
  218. package/dist/twilight/{p-71fea388.entry.js → p-7a15e1a1.entry.js} +1 -1
  219. package/dist/twilight/{p-d2680a8c.entry.js → p-7d6b0477.entry.js} +1 -1
  220. package/dist/twilight/{p-a446e236.entry.js → p-8290d5fc.entry.js} +1 -1
  221. package/dist/twilight/{p-a15e729f.entry.js → p-864d29b3.entry.js} +1 -1
  222. package/dist/twilight/{p-845757fa.entry.js → p-8d4c052f.entry.js} +1 -1
  223. package/dist/twilight/{p-56be56e1.entry.js → p-8f67c4cb.entry.js} +1 -1
  224. package/dist/twilight/{p-281511b7.entry.js → p-8f73276d.entry.js} +1 -1
  225. package/dist/twilight/{p-83cc5e65.entry.js → p-958e5868.entry.js} +1 -1
  226. package/dist/twilight/{p-b68bee1a.entry.js → p-9972c1f3.entry.js} +1 -1
  227. package/dist/twilight/{p-5a35d33a.entry.js → p-9b68df5a.entry.js} +1 -1
  228. package/dist/twilight/{p-7488ee16.entry.js → p-9bd7d9f5.entry.js} +1 -1
  229. package/dist/twilight/{p-95e85f05.entry.js → p-9c58f3c0.entry.js} +1 -1
  230. package/dist/twilight/{p-4c5165f2.entry.js → p-9cf29ddb.entry.js} +1 -1
  231. package/dist/twilight/{p-2137a11f.entry.js → p-9d9338c9.entry.js} +1 -1
  232. package/dist/twilight/{p-6b255e44.entry.js → p-9e85bac1.entry.js} +1 -1
  233. package/dist/twilight/{p-Dsmct0bT.js → p-BG4uFEWi.js} +1 -1
  234. package/dist/twilight/{p-NBDrHfxi.js → p-BlBuuMQp.js} +1 -1
  235. package/dist/twilight/{p-sc0K09yT.js → p-C9FzKstV.js} +1 -1
  236. package/dist/twilight/{p-DBURTRIs.js → p-CwzEvhrD.js} +1 -1
  237. package/dist/twilight/{p-CGCKtSMz.js → p-DI03hbOx.js} +1 -1
  238. package/dist/twilight/{p-J_Xt7993.js → p-D_gOsznU.js} +1 -1
  239. package/dist/twilight/{p-zDAub2oK.js → p-Duj4y93z.js} +1 -1
  240. package/dist/twilight/{p-BGX5s3RM.js → p-EaMy8k6o.js} +1 -1
  241. package/dist/twilight/{p-BYvYgYyR.js → p-FrOTq2f2.js} +1 -1
  242. package/dist/twilight/{p-D-4mkc7-.js → p-GweAdjGj.js} +1 -1
  243. package/dist/twilight/{p-1422dc91.entry.js → p-a63e2bd1.entry.js} +1 -1
  244. package/dist/twilight/{p-eb8a1a26.entry.js → p-a9e4b4a9.entry.js} +1 -1
  245. package/dist/twilight/{p-af018a37.entry.js → p-aba6b3a8.entry.js} +1 -1
  246. package/dist/twilight/{p-1308876f.entry.js → p-acf4f50d.entry.js} +1 -1
  247. package/dist/twilight/{p-8fb92a3e.entry.js → p-b3ac5838.entry.js} +1 -1
  248. package/dist/twilight/{p-b01d79c5.entry.js → p-b606c9a2.entry.js} +1 -1
  249. package/dist/twilight/{p-d72ca3c9.entry.js → p-bcbdff6d.entry.js} +1 -1
  250. package/dist/twilight/{p-cd3b5f80.entry.js → p-c0239486.entry.js} +1 -1
  251. package/dist/twilight/{p-88b8dbb0.entry.js → p-c0822f39.entry.js} +1 -1
  252. package/dist/twilight/{p-ce6c7675.entry.js → p-c6358810.entry.js} +1 -1
  253. package/dist/twilight/{p-e0fdbe87.entry.js → p-c86dde05.entry.js} +1 -1
  254. package/dist/twilight/{p-4b466145.entry.js → p-d2816142.entry.js} +1 -1
  255. package/dist/twilight/{p-17f5e992.entry.js → p-d38bd02b.entry.js} +1 -1
  256. package/dist/twilight/{p-0483d511.entry.js → p-d4dcdcc5.entry.js} +1 -1
  257. package/dist/twilight/{p-68437972.entry.js → p-d8d3dfcd.entry.js} +1 -1
  258. package/dist/twilight/{p-4b36ece0.entry.js → p-dc846049.entry.js} +1 -1
  259. package/dist/twilight/{p-9cdacf0b.entry.js → p-dfdb0e7c.entry.js} +1 -1
  260. package/dist/twilight/{p-b3981d77.entry.js → p-e17e30a7.entry.js} +1 -1
  261. package/dist/twilight/{p-dfd9ad83.entry.js → p-ef7c452b.entry.js} +1 -1
  262. package/dist/twilight/{p-49da4d80.entry.js → p-f2488a50.entry.js} +1 -1
  263. package/dist/twilight/{p-47609dd0.entry.js → p-f4e96119.entry.js} +1 -1
  264. package/dist/twilight/{p-0765013e.entry.js → p-f58c722c.entry.js} +1 -1
  265. package/dist/twilight/{p-677f58c6.entry.js → p-f60646dc.entry.js} +1 -1
  266. package/dist/twilight/{p-f94df09f.entry.js → p-fe4a504b.entry.js} +1 -1
  267. package/dist/twilight/twilight.esm.js +1 -1
  268. package/dist/types/components/salla-comment-form/salla-comment-form.d.ts +15 -0
  269. package/dist/types/components/salla-comments/salla-comments.d.ts +4 -0
  270. package/dist/types/components.d.ts +35 -0
  271. package/package.json +5 -5
  272. package/dist/twilight/p-849a530e.entry.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
4
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
5
5
  import { d as defineCustomElement$1 } from './salla-button2.js';
6
6
 
7
7
  const sallaCommentFormCss = ":host{display:block}";
@@ -10,6 +10,7 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
10
10
  constructor() {
11
11
  super();
12
12
  this.__registerHost();
13
+ this.commentAdded = createEvent(this, "commentAdded", 7);
13
14
  this.placeholder = salla.lang.get('blocks.comments.placeholder');
14
15
  this.submitText = salla.lang.get('blocks.comments.submit');
15
16
  salla.lang.onLoaded(() => {
@@ -27,12 +28,24 @@ const SallaCommentForm = /*@__PURE__*/ proxyCustomElement(class SallaCommentForm
27
28
  salla.log('CommentForm:: validation error!');
28
29
  return;
29
30
  }
31
+ const commentText = this.commentField.value;
30
32
  this.submitBtn.load()
31
- .then(() => salla.comment.add({ id: this.itemId, comment: this.commentField.value, type: this.type }))
32
- .finally(() => this.submitBtn.stop);
33
+ .then(() => salla.comment.add({ id: this.itemId, comment: commentText, type: this.type }))
34
+ .then(() => {
35
+ this.commentAdded.emit({
36
+ name: salla.config.get('user.name'),
37
+ avatar: salla.config.get('user.avatar'),
38
+ content: commentText,
39
+ is_pending: true,
40
+ created_at: { date: new Date().toISOString().replace('T', ' ').substring(0, 19) },
41
+ images: [],
42
+ });
43
+ this.commentField.value = '';
44
+ })
45
+ .finally(() => this.submitBtn.stop());
33
46
  }
34
47
  render() {
35
- return (h(Host, { key: '24b73030ff1828a6f21c1c36a00be2c8651f6edf' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
48
+ return (h(Host, { key: '0ec765c8dd7cf28d23c4305c234cec5efd3daae1' }, !!this.canComment ? h("form", { ref: frm => this.commentForm = frm }, h("div", { class: "s-comment-form-wrapper" }, this.showAvatar ?
36
49
  h("img", { class: "s-comment-form-avatar", src: salla.config.get('user.avatar'), alt: "user avatar" }) : '', h("div", { class: "s-comment-form-content" }, h("textarea", { cols: 30, rows: 5, minlength: "4", maxlength: "500", ref: field => this.commentField = field, placeholder: this.placeholder, class: "s-comment-form-input", required: true }), h("br", null), h("div", { class: "s-comment-form-action" }, h("salla-button", { ref: btn => this.submitBtn = btn, "loader-position": 'center', onClick: () => this.submit() }, this.submitText))))) : ''));
37
50
  }
38
51
  static get style() { return sallaCommentFormCss; }
@@ -151,7 +151,7 @@ const SallaCommentItem = /*@__PURE__*/ proxyCustomElement(class SallaCommentItem
151
151
  h("span", { class: "s-comments-item-rated-widget" }, this.rated_trans) : null)
152
152
  : null), h("p", { key: '694c2079d3379966994af7040fe4542481a53e66', class: "s-comments-item-timestamp s-ltr" }, this.getDate(this.comment.created_at?.date), h("span", { key: '734ca2eb6bf846c661007a1b9c41f22c47923b27', class: "s-comments-item-time" }, " - ", this.getTime(this.comment.created_at?.date))), !!this.comment.rating || !!this.comment.stars ?
153
153
  h("salla-rating-stars", { size: "mini", class: "s-comments-item-stars", value: this.comment.rating || this.comment.stars })
154
- : null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
154
+ : null), h("div", { key: '45e32a0759536f8c9e8bc8b823d50c931bdd1e23', class: "s-comments-item-content" }, h("p", { key: '9edf2cdfd489f77214d7a1ecae8a99943dfd4ece', innerHTML: this.comment.content }), this.allowAttachImages && h("div", { key: 'bbba6c62c4d13289137c634f5413880dfa572ab4', class: "s-comments-item-images" }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "", onClick: () => this.modal.open() }))), h("salla-modal", { key: 'cd5c48b8cf3e1c9457a2fb60a42859cbd91aa996', ref: modal => this.modal = modal, width: "sm" }, h("salla-slider", { key: '304bc9417e6d7fd0e310127dce4e56a1c6ce00ea', id: `s-comments-item-${this.comment.id}-images`, class: "s-comments-item-images-slider", type: "thumbs", "auto-height": true, showControls: this.comment.images.length > 1 ? true : false, "show-thumbs-controls": "false" }, h("div", { key: '50401766737293c42fa7ba3b351b6db736fd92eb', slot: 'items' }, this.comment.images.map((image, index) => (h("img", { key: index, src: image, alt: "" })))), h("div", { key: '6b9a50da0b67497dfae21b52044850329d8712b5', slot: "thumbs" }, this.comment.images.map((image, index) => (h("div", { class: "s-comments-item-images-slider-thumb" }, h("img", { key: index, src: image, alt: "" })))))))), this.allowLikes && !isAdmin && !!this.comment.id && salla.url.is_page('product.single') ? h("salla-button", { ref: el => this.likeBtn = el, class: `s-comments-item-like-btn ${this.likedComments.includes(this.comment.id) ? 'liked' : ''}`, loaderPosition: 'center', fill: 'outline', size: 'small', onClick: () => this.toggleLike() }, h("span", null, this.helpfulLabel, " ", this.likesCount > 0 ? `(${this.likesCount})` : ''), h("span", { innerHTML: ThumbsUp })) : '', this.comment.is_pending ?
155
155
  h("span", { class: "s-comments-item-pending-text" }, this.waiting_approval_trans) : null))), !!this.getReplies().length && !isAdmin ?
156
156
  this.getReplies().map((reply) => {
157
157
  return h("div", null, h("salla-comment-item", { comment: reply }));
@@ -233,6 +233,31 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
233
233
  return this.loadInitialData();
234
234
  });
235
235
  }
236
+ /**
237
+ * Catch the commentAdded event emitted by salla-comment-form and instantly render it
238
+ */
239
+ onCommentAdded(event) {
240
+ const comment = event.detail;
241
+ if (!comment)
242
+ return;
243
+ // If comments were empty, clear the placeholder and initialize the list
244
+ if (this.showPlaceholder || !this.total) {
245
+ this.showPlaceholder = false;
246
+ this.total = (this.total || 0) + 1;
247
+ this.comments = this.comments || [];
248
+ }
249
+ else {
250
+ this.total = (this.total || 0) + 1;
251
+ }
252
+ // Wait for next render tick so wrapper is available if placeholder was just removed
253
+ setTimeout(() => {
254
+ if (!this.wrapper)
255
+ return;
256
+ const commentItem = this.getCommentHTML(comment);
257
+ this.wrapper.prepend(commentItem);
258
+ this.animateItems([commentItem]);
259
+ }, 0);
260
+ }
236
261
  // Load initial data
237
262
  async loadInitialData() {
238
263
  try {
@@ -331,7 +356,7 @@ const SallaComments$1 = /*@__PURE__*/ proxyCustomElement(class SallaComments ext
331
356
  "showRatingSummary": [32],
332
357
  "allowLikes": [32],
333
358
  "reload": [64]
334
- }]);
359
+ }, [[0, "commentAdded", "onCommentAdded"]]]);
335
360
  function defineCustomElement$1() {
336
361
  if (typeof customElements === "undefined") {
337
362
  return;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BlBuuMQp.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BlBuuMQp.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BlBuuMQp.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BlBuuMQp.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BlBuuMQp.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BlBuuMQp.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Crafted with ❤ by Salla
3
3
  */
4
- import { d as getDefaultExportFromCjs } from './index-NBDrHfxi.js';
4
+ import { d as getDefaultExportFromCjs } from './index-BlBuuMQp.js';
5
5
 
6
6
  function _mergeNamespaces(n, m) {
7
7
  m.forEach(function (e) {