@licklist/design 0.69.3-dev.6 → 0.69.3

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 (197) hide show
  1. package/dist/affiliate/form/AffiliateForm.d.ts.map +1 -1
  2. package/dist/auth/Login/LoginComponent.js +1 -2
  3. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +1 -2
  4. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
  5. package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +2 -3
  6. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts +1 -2
  7. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
  8. package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +28 -31
  9. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts +1 -2
  10. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.d.ts.map +1 -1
  11. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -14
  12. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  13. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +2 -3
  14. package/dist/iframe/activity-card/ActivityCard.d.ts +4 -7
  15. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
  16. package/dist/iframe/activity-card/ActivityCard.js +40 -59
  17. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  18. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  19. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  20. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
  21. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  22. package/dist/iframe/ryft/RyftPaymentForm.d.ts +2 -2
  23. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  24. package/dist/iframe/ryft/RyftPaymentForm.js +2 -8
  25. package/dist/iframe/ryft/utils/ryft-form.d.ts +1 -2
  26. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  27. package/dist/iframe/ryft/utils/ryft-form.js +1 -20
  28. package/dist/index.js +0 -1
  29. package/dist/layout/DropDown.d.ts +1 -2
  30. package/dist/layout/DropDown.d.ts.map +1 -1
  31. package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
  32. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  33. package/dist/modals/confirmation/ConfirmModal.js +8 -172
  34. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  35. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  36. package/dist/product-set/card/ProductSetCard.d.ts +2 -6
  37. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  38. package/dist/product-set/card/ProductSetCard.js +11 -30
  39. package/dist/product-set/control/DateAndRecurrenceInput.d.ts.map +1 -1
  40. package/dist/product-set/control/DateAndRecurrenceInput.js +3 -4
  41. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  42. package/dist/product-set/control/DateInput.js +2 -2
  43. package/dist/product-set/control/ProductSetControl.d.ts +0 -4
  44. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  45. package/dist/product-set/control/ProductSetControl.js +3 -30
  46. package/dist/product-set/form/MobileFooter.d.ts.map +1 -1
  47. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  48. package/dist/product-set/form/ProductCategoriesControl.js +2 -48
  49. package/dist/product-set/form/ProductSetForm.d.ts +1 -4
  50. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  51. package/dist/product-set/form/ProductSetForm.js +1 -64
  52. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  53. package/dist/product-set/form/ProductZonesControl.js +2 -0
  54. package/dist/product-set/form/ProductsControl.js +0 -1
  55. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  56. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  57. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  58. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  59. package/dist/product-set/form/SubProductsControl.js +3 -0
  60. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  61. package/dist/product-set/form/VenueMapsControl.js +3 -0
  62. package/dist/product-set/form/index.d.ts +0 -1
  63. package/dist/product-set/form/index.d.ts.map +1 -1
  64. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  65. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  66. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  67. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  68. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  69. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  70. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  71. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  72. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  73. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  74. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  75. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  76. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  77. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  78. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  79. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  80. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  81. package/dist/product-set/utils/index.d.ts +0 -7
  82. package/dist/product-set/utils/index.d.ts.map +1 -1
  83. package/dist/product-set/utils/index.js +1 -10
  84. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  85. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  86. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  87. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  88. package/dist/resource/form/components/CapacityControl.js +0 -3
  89. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  90. package/dist/resource/form/components/SortControl.js +0 -3
  91. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  92. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  93. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  94. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  95. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  96. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  97. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  98. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  99. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  100. package/dist/snippet/snippet-template/preview/Preview.js +0 -6
  101. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  102. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  103. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  104. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  105. package/dist/static/CurrencyNumberInput.js +0 -3
  106. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  107. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  108. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  109. package/dist/static/number-input/NumberInput.js +0 -3
  110. package/dist/styles/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
  111. package/dist/styles/activity-card/ListActivitiesCard.scss +42 -12
  112. package/dist/styles/activity-card/_index.scss +1 -1
  113. package/dist/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  114. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  115. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  116. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +0 -25
  117. package/dist/styles/sales/BookingResults.scss +1 -1
  118. package/dist/typeahead/Typeahead.d.ts +1 -5
  119. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  120. package/dist/typeahead/Typeahead.js +2 -9
  121. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  122. package/dist/zone/form/components/GameDurationControl.js +0 -3
  123. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  124. package/dist/zone/form/components/SortControl.js +0 -3
  125. package/package.json +7 -9
  126. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  127. package/src/auth/Login/LoginComponent.tsx +1 -1
  128. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +0 -3
  129. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +85 -88
  130. package/src/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.tsx +1 -11
  131. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -2
  132. package/src/iframe/activity-card/ActivityCard.tsx +24 -41
  133. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  134. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
  135. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  136. package/src/iframe/ryft/RyftPaymentForm.tsx +4 -9
  137. package/src/iframe/ryft/utils/ryft-form.ts +2 -28
  138. package/src/layout/DropDown.tsx +1 -1
  139. package/src/modals/confirmation/ConfirmModal.tsx +3 -19
  140. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  141. package/src/product-set/card/ProductSetCard.tsx +8 -47
  142. package/src/product-set/control/DateAndRecurrenceInput.tsx +1 -3
  143. package/src/product-set/control/DateInput.tsx +1 -2
  144. package/src/product-set/control/ProductSetControl.tsx +52 -52
  145. package/src/product-set/form/MobileFooter.tsx +3 -1
  146. package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
  147. package/src/product-set/form/ProductSetForm.tsx +2 -24
  148. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  149. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  150. package/src/product-set/form/SubProductsControl.tsx +3 -0
  151. package/src/product-set/form/VenueMapsControl.tsx +3 -0
  152. package/src/product-set/form/index.ts +0 -1
  153. package/src/product-set/product/ProductControl.tsx +1 -0
  154. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  155. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  156. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  157. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  158. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  159. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  160. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  161. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  162. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  163. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  164. package/src/product-set/utils/index.ts +0 -11
  165. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  166. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  167. package/src/resource/form/components/CapacityControl.tsx +0 -1
  168. package/src/resource/form/components/SortControl.tsx +0 -1
  169. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  170. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  171. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  172. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  173. package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
  174. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  175. package/src/static/CurrencyNumberInput.tsx +0 -1
  176. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  177. package/src/static/number-input/NumberInput.tsx +0 -1
  178. package/src/styles/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
  179. package/src/styles/activity-card/ListActivitiesCard.scss +42 -12
  180. package/src/styles/activity-card/_index.scss +1 -1
  181. package/src/styles/availability-indicator/AvailabilityIndicator.scss +0 -9
  182. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  183. package/src/styles/product-set/ProductSetForm.scss +0 -22
  184. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +0 -25
  185. package/src/styles/sales/BookingResults.scss +1 -1
  186. package/src/typeahead/Typeahead.tsx +1 -15
  187. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  188. package/src/zone/form/components/SortControl.tsx +0 -1
  189. package/yarn.lock +47 -73
  190. package/dist/product-set/control/ProductSetImageControl.d.ts +0 -2
  191. package/dist/product-set/control/ProductSetImageControl.d.ts.map +0 -1
  192. package/dist/product-set/control/ProductSetImageControl.js +0 -279
  193. package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
  194. package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
  195. package/dist/product-set/form/ProductSetNameControl.js +0 -35
  196. package/src/product-set/control/ProductSetImageControl.tsx +0 -97
  197. package/src/product-set/form/ProductSetNameControl.tsx +0 -27
package/yarn.lock CHANGED
@@ -2453,35 +2453,9 @@ __metadata:
2453
2453
  languageName: node
2454
2454
  linkType: hard
2455
2455
 
2456
- "@licklist/core@npm:0.29.1-dev.2":
2457
- version: 0.29.1-dev.2
2458
- resolution: "@licklist/core@npm:0.29.1-dev.2"
2459
- dependencies:
2460
- "@sentry/browser": "npm:6.2.0"
2461
- axios: "npm:0.26.0"
2462
- i18next: "npm:19.4.5"
2463
- luxon: "npm:3.5.0"
2464
- react: "npm:17.0.2"
2465
- react-dom: "npm:17.0.2"
2466
- react-i18next: "npm:11.8.8"
2467
- react-intl: "npm:6.6.8"
2468
- uuid: "npm:9.0.0"
2469
- wait-for-expect: "npm:3.0.2"
2470
- peerDependencies:
2471
- "@licklist/eslint-config": 0.5.5
2472
- axios: 0.26.0
2473
- luxon: 3.5.0
2474
- react: 17.0.2
2475
- react-dom: 17.0.2
2476
- react-i18next: 11.8.8
2477
- react-intl: 6.6.8
2478
- checksum: 10c0/cacb058eb075b8e42fe9135877aa90f5104b661a0a99addbadfe916604ee35d468d07f9ce4e349fad573015044977bf77821b92dc385bab23393bc4d72677c4f
2479
- languageName: node
2480
- linkType: hard
2481
-
2482
- "@licklist/core@npm:0.30.0-dev.0":
2483
- version: 0.30.0-dev.0
2484
- resolution: "@licklist/core@npm:0.30.0-dev.0"
2456
+ "@licklist/core@npm:0.30.1":
2457
+ version: 0.30.1
2458
+ resolution: "@licklist/core@npm:0.30.1"
2485
2459
  dependencies:
2486
2460
  "@sentry/browser": "npm:6.2.0"
2487
2461
  axios: "npm:0.26.0"
@@ -2501,7 +2475,7 @@ __metadata:
2501
2475
  react-dom: 17.0.2
2502
2476
  react-i18next: 11.8.8
2503
2477
  react-intl: 6.6.8
2504
- checksum: 10c0/0254119edd1b01abeb3cdce66d26a56098860bfb5e0a8ec1d98ac2da3eb28b1cb8f7b2315a07ca3bd905eb25c349d65a4a4dab44e53466968b1b50012eec10bd
2478
+ checksum: 10c0/2b3ec4eebfffd120e188825beb607864dfc85ddc6f5cd834e6c7b99b0191171936da0299441f2a91721d70ebb196279b6b72d8e9ec37fc21d4f51f97400b8475
2505
2479
  languageName: node
2506
2480
  linkType: hard
2507
2481
 
@@ -2516,9 +2490,9 @@ __metadata:
2516
2490
  "@dnd-kit/utilities": "npm:2.0.0"
2517
2491
  "@fortawesome/fontawesome-svg-core": "npm:1.2.34"
2518
2492
  "@fortawesome/free-solid-svg-icons": "npm:5.15.2"
2519
- "@licklist/core": "npm:0.30.0-dev.0"
2493
+ "@licklist/core": "npm:0.30.1"
2520
2494
  "@licklist/eslint-config": "npm:0.5.6"
2521
- "@licklist/plugins": "npm:0.33.0-dev.0"
2495
+ "@licklist/plugins": "npm:0.33.1"
2522
2496
  "@mantine/core": "npm:6.0.22"
2523
2497
  "@mantine/hooks": "npm:6.0.22"
2524
2498
  "@mdx-js/react": "npm:1.6.22"
@@ -2647,9 +2621,9 @@ __metadata:
2647
2621
  vite-plugin-svgr: "npm:4.2.0"
2648
2622
  vite-tsconfig-paths: "npm:5.0.1"
2649
2623
  peerDependencies:
2650
- "@licklist/core": 0.30.0-dev.0
2624
+ "@licklist/core": 0.30.3
2651
2625
  "@licklist/eslint-config": 0.5.6
2652
- "@licklist/plugins": 0.33.2-dev.1
2626
+ "@licklist/plugins": 0.33.1
2653
2627
  lodash: 4.17.21
2654
2628
  luxon: 3.5.0
2655
2629
  react: 17.0.2
@@ -2679,11 +2653,11 @@ __metadata:
2679
2653
  languageName: node
2680
2654
  linkType: hard
2681
2655
 
2682
- "@licklist/plugins@npm:0.33.0-dev.0":
2683
- version: 0.33.0-dev.0
2684
- resolution: "@licklist/plugins@npm:0.33.0-dev.0"
2656
+ "@licklist/plugins@npm:0.33.1":
2657
+ version: 0.33.1
2658
+ resolution: "@licklist/plugins@npm:0.33.1"
2685
2659
  dependencies:
2686
- "@licklist/core": "npm:0.29.1-dev.2"
2660
+ "@licklist/core": "npm:0.30.1"
2687
2661
  "@ungap/url-search-params": "npm:0.2.2"
2688
2662
  axios: "npm:0.26.0"
2689
2663
  history: "npm:4.10.1"
@@ -2704,7 +2678,7 @@ __metadata:
2704
2678
  rrule: "npm:2.6.8"
2705
2679
  use-debounce: "npm:7.0.1"
2706
2680
  peerDependencies:
2707
- "@licklist/core": 0.29.1-dev.2
2681
+ "@licklist/core": 0.30.1
2708
2682
  "@licklist/eslint-config": 0.5.6
2709
2683
  axios: 0.26.0
2710
2684
  lodash: 4.17.21
@@ -2716,7 +2690,7 @@ __metadata:
2716
2690
  react-loader: 2.4.7
2717
2691
  react-query: 3.34.12
2718
2692
  react-router-dom: 5.2.0
2719
- checksum: 10c0/cdf57c38578b30926a323f0caf80a93c43fadc032dcd79d749de92ca6d7c3b47a8ac6bdf56547a56e0581094434ecd30880e5298161cb0fa97705e369ba799f1
2693
+ checksum: 10c0/9f9cba3fcf3b2543c1b781233c0cfa2d6638ff47edde93ed3500ea4dfe12f7940380e9d79b6051b6cc8eb5cb26cdbb97fcd412b83bfd3dce7cd1c34835f975a7
2720
2694
  languageName: node
2721
2695
  linkType: hard
2722
2696
 
@@ -5668,11 +5642,11 @@ __metadata:
5668
5642
  linkType: hard
5669
5643
 
5670
5644
  "@types/node@npm:*":
5671
- version: 22.7.6
5672
- resolution: "@types/node@npm:22.7.6"
5645
+ version: 22.7.5
5646
+ resolution: "@types/node@npm:22.7.5"
5673
5647
  dependencies:
5674
5648
  undici-types: "npm:~6.19.2"
5675
- checksum: 10c0/d4406a63afce981c363fb1d1954aaf1759ad2d487c0833ebf667565ea4e45ff217d6fab4b5343badbdeccdf9d2e4a0841d633e0c929ceabcb33c288663dd0c73
5649
+ checksum: 10c0/cf11f74f1a26053ec58066616e3a8685b6bcd7259bc569738b8f752009f9f0f7f85a1b2d24908e5b0f752482d1e8b6babdf1fbb25758711ec7bb9500bfcd6e60
5676
5650
  languageName: node
5677
5651
  linkType: hard
5678
5652
 
@@ -6578,11 +6552,11 @@ __metadata:
6578
6552
  linkType: hard
6579
6553
 
6580
6554
  "acorn@npm:^8.12.1, acorn@npm:^8.5.0, acorn@npm:^8.8.2":
6581
- version: 8.13.0
6582
- resolution: "acorn@npm:8.13.0"
6555
+ version: 8.12.1
6556
+ resolution: "acorn@npm:8.12.1"
6583
6557
  bin:
6584
6558
  acorn: bin/acorn
6585
- checksum: 10c0/f35dd53d68177c90699f4c37d0bb205b8abe036d955d0eb011ddb7f14a81e6fd0f18893731c457c1b5bd96754683f4c3d80d9a5585ddecaa53cdf84e0b3d68f7
6559
+ checksum: 10c0/51fb26cd678f914e13287e886da2d7021f8c2bc0ccc95e03d3e0447ee278dd3b40b9c57dc222acd5881adcf26f3edc40901a4953403232129e3876793cd17386
6586
6560
  languageName: node
6587
6561
  linkType: hard
6588
6562
 
@@ -7247,9 +7221,9 @@ __metadata:
7247
7221
  linkType: hard
7248
7222
 
7249
7223
  "axe-core@npm:^4.2.0, axe-core@npm:^4.3.5":
7250
- version: 4.10.1
7251
- resolution: "axe-core@npm:4.10.1"
7252
- checksum: 10c0/53d865efb7284fd69bc95ced1a1709fd603ea07f06e272da06942e7cfeca1c823e09bde28f57178e3a1a4c9a089fe4b5d274c871e3e6522a3b1bffec8eaa7dd8
7224
+ version: 4.10.0
7225
+ resolution: "axe-core@npm:4.10.0"
7226
+ checksum: 10c0/732c171d48caaace5e784895c4dacb8ca6155e9d98045138ebe3952f78457dd05b92c57d05b41ce2a570aff87dbd0471e8398d2c0f6ebe79617b746c8f658998
7253
7227
  languageName: node
7254
7228
  linkType: hard
7255
7229
 
@@ -8057,9 +8031,9 @@ __metadata:
8057
8031
  linkType: hard
8058
8032
 
8059
8033
  "caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001125, caniuse-lite@npm:^1.0.30001646, caniuse-lite@npm:^1.0.30001663":
8060
- version: 1.0.30001669
8061
- resolution: "caniuse-lite@npm:1.0.30001669"
8062
- checksum: 10c0/f125f23440d3dbb6c25ffb8d55f4ce48af36a84d0932b152b3b74f143a4170cbe92e02b0a9676209c86609bf7bf34119ff10cc2bc7c1b7ea40e936cc16598408
8034
+ version: 1.0.30001668
8035
+ resolution: "caniuse-lite@npm:1.0.30001668"
8036
+ checksum: 10c0/247b3200aeec55038f3a11f3e6ab66f656c54d30df7b01d8d447efaba9af96ad3e17128da2ddd42ddc9cb6c286bac65b634a20955b3cc6619be7ca4601fddc8e
8063
8037
  languageName: node
8064
8038
  linkType: hard
8065
8039
 
@@ -8195,8 +8169,8 @@ __metadata:
8195
8169
  linkType: hard
8196
8170
 
8197
8171
  "chromatic@npm:^11.4.0":
8198
- version: 11.12.6
8199
- resolution: "chromatic@npm:11.12.6"
8172
+ version: 11.12.5
8173
+ resolution: "chromatic@npm:11.12.5"
8200
8174
  peerDependencies:
8201
8175
  "@chromatic-com/cypress": ^0.*.* || ^1.0.0
8202
8176
  "@chromatic-com/playwright": ^0.*.* || ^1.0.0
@@ -8209,7 +8183,7 @@ __metadata:
8209
8183
  chroma: dist/bin.js
8210
8184
  chromatic: dist/bin.js
8211
8185
  chromatic-cli: dist/bin.js
8212
- checksum: 10c0/7d161c52bc239ac6e8380f9a64533dd3792819d8f103d0083a805d5c9ece0844787eedd45c19c41e69d0ef0a3756051fa3e5c1f2fc9630d60f2ada4d5452e929
8186
+ checksum: 10c0/4a083e4b12ebd0e1f04f944fef66c8345d0895e4c42e253cc4726328b13207553d860fbd5955804fbea806ae06a58d88f8ef845e6c90ce8ce2bc62f5660a3c8e
8213
8187
  languageName: node
8214
8188
  linkType: hard
8215
8189
 
@@ -9816,9 +9790,9 @@ __metadata:
9816
9790
  linkType: hard
9817
9791
 
9818
9792
  "electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.28":
9819
- version: 1.5.41
9820
- resolution: "electron-to-chromium@npm:1.5.41"
9821
- checksum: 10c0/97b82383963029e6ed0bd7a71eb527f640c8cf658c9e43c776b0257b3c65e366590ac54135683a21e4474a156b8be78717d6e94d3c1def84b69f92bf48f2390f
9793
+ version: 1.5.38
9794
+ resolution: "electron-to-chromium@npm:1.5.38"
9795
+ checksum: 10c0/f44715632fce33ac2444e5f0ac54684640b95bbfcdde47153e727645c33f5d18110d5af5348120a8345707c6c219d6109573b6acba56d819ca607010b75931ef
9822
9796
  languageName: node
9823
9797
  linkType: hard
9824
9798
 
@@ -10910,9 +10884,9 @@ __metadata:
10910
10884
  linkType: hard
10911
10885
 
10912
10886
  "fast-uri@npm:^3.0.1":
10913
- version: 3.0.3
10914
- resolution: "fast-uri@npm:3.0.3"
10915
- checksum: 10c0/4b2c5ce681a062425eae4f15cdc8fc151fd310b2f69b1f96680677820a8b49c3cd6e80661a406e19d50f0c40a3f8bffdd458791baf66f4a879d80be28e10a320
10887
+ version: 3.0.2
10888
+ resolution: "fast-uri@npm:3.0.2"
10889
+ checksum: 10c0/8cdd3da7b4022a037d348d587d55caff74b7e4f862bbdd2cc35c1e6e3f97d0aedb567894d44c57ee8798d3192cceb97dcf41dbdabfa07dd2842a0474a6c6eeef
10916
10890
  languageName: node
10917
10891
  linkType: hard
10918
10892
 
@@ -13686,9 +13660,9 @@ __metadata:
13686
13660
  linkType: hard
13687
13661
 
13688
13662
  "libphonenumber-js@npm:^1.9.11":
13689
- version: 1.11.12
13690
- resolution: "libphonenumber-js@npm:1.11.12"
13691
- checksum: 10c0/56fdf7ce107bd9d0329c47392d21649ee61b5ef210fa5926cb839506195d8482760982c9f75c207e97cf070be8ef2edc5a81db7cc3623f46990222945f4e0f65
13663
+ version: 1.11.11
13664
+ resolution: "libphonenumber-js@npm:1.11.11"
13665
+ checksum: 10c0/496b8fe2718fc12979567b6cd9499d1ea0621233e95c312da5444b17ba7b1664af614dae7acf0a31b3deb023bade7a99ee91983425dbc8939b89cea24c9155c9
13692
13666
  languageName: node
13693
13667
  linkType: hard
13694
13668
 
@@ -15762,9 +15736,9 @@ __metadata:
15762
15736
  linkType: hard
15763
15737
 
15764
15738
  "picocolors@npm:^1.0.0, picocolors@npm:^1.0.1, picocolors@npm:^1.1.0":
15765
- version: 1.1.1
15766
- resolution: "picocolors@npm:1.1.1"
15767
- checksum: 10c0/e2e3e8170ab9d7c7421969adaa7e1b31434f789afb9b3f115f6b96d91945041ac3ceb02e9ec6fe6510ff036bcc0bf91e69a1772edc0b707e12b19c0f2d6bcf58
15739
+ version: 1.1.0
15740
+ resolution: "picocolors@npm:1.1.0"
15741
+ checksum: 10c0/86946f6032148801ef09c051c6fb13b5cf942eaf147e30ea79edb91dd32d700934edebe782a1078ff859fb2b816792e97ef4dab03d7f0b804f6b01a0df35e023
15768
15742
  languageName: node
15769
15743
  linkType: hard
15770
15744
 
@@ -20259,8 +20233,8 @@ __metadata:
20259
20233
  linkType: hard
20260
20234
 
20261
20235
  "terser@npm:^5.3.4":
20262
- version: 5.36.0
20263
- resolution: "terser@npm:5.36.0"
20236
+ version: 5.34.1
20237
+ resolution: "terser@npm:5.34.1"
20264
20238
  dependencies:
20265
20239
  "@jridgewell/source-map": "npm:^0.3.3"
20266
20240
  acorn: "npm:^8.8.2"
@@ -20268,7 +20242,7 @@ __metadata:
20268
20242
  source-map-support: "npm:~0.5.20"
20269
20243
  bin:
20270
20244
  terser: bin/terser
20271
- checksum: 10c0/f4ed2bead19f64789ddcfb85b7cef78f3942f967b8890c54f57d1e35bc7d547d551c6a4c32210bce6ba45b1c738314bbfac6acbc6c762a45cd171777d0c120d9
20245
+ checksum: 10c0/51c7d704c5c4ae88bf937124112c9972aed4e1fd29d805cc2d86e0f54cd631ecd4e69db5bb3c1e3b450c741c86e2313328bea0fde925329e8a31a07a7941723c
20272
20246
  languageName: node
20273
20247
  linkType: hard
20274
20248
 
@@ -20546,9 +20520,9 @@ __metadata:
20546
20520
  linkType: hard
20547
20521
 
20548
20522
  "tslib@npm:^2, tslib@npm:^2.0.0, tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0":
20549
- version: 2.8.0
20550
- resolution: "tslib@npm:2.8.0"
20551
- checksum: 10c0/31e4d14dc1355e9b89e4d3c893a18abb7f90b6886b089c2da91224d0a7752c79f3ddc41bc1aa0a588ac895bd97bb99c5bc2bfdb2f86de849f31caeb3ba79bbe5
20523
+ version: 2.7.0
20524
+ resolution: "tslib@npm:2.7.0"
20525
+ checksum: 10c0/469e1d5bf1af585742128827000711efa61010b699cb040ab1800bcd3ccdd37f63ec30642c9e07c4439c1db6e46345582614275daca3e0f4abae29b0083f04a6
20552
20526
  languageName: node
20553
20527
  linkType: hard
20554
20528
 
@@ -1,2 +0,0 @@
1
- export declare const ProductSetImageControl: () => import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=ProductSetImageControl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductSetImageControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetImageControl.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,sBAAsB,+CAsFlC,CAAA"}
@@ -1,279 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { useFormContext } from 'react-hook-form';
3
- import { useImages, HookFormService } from '@licklist/plugins';
4
- import { IMAGE_TYPE_IMAGE } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
5
- import { useCallback, useEffect } from 'react';
6
- import { Form } from 'react-bootstrap';
7
- import { FileUpload } from '../../file-upload/FileUpload.js';
8
- import { useTranslation } from 'react-i18next';
9
- import { isEqual } from 'lodash';
10
-
11
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
12
- try {
13
- var info = gen[key](arg);
14
- var value = info.value;
15
- } catch (error) {
16
- reject(error);
17
- return;
18
- }
19
- if (info.done) {
20
- resolve(value);
21
- } else {
22
- Promise.resolve(value).then(_next, _throw);
23
- }
24
- }
25
- function _async_to_generator(fn) {
26
- return function() {
27
- var self = this, args = arguments;
28
- return new Promise(function(resolve, reject) {
29
- var gen = fn.apply(self, args);
30
- function _next(value) {
31
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
32
- }
33
- function _throw(err) {
34
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
35
- }
36
- _next(undefined);
37
- });
38
- };
39
- }
40
- function _define_property(obj, key, value) {
41
- if (key in obj) {
42
- Object.defineProperty(obj, key, {
43
- value: value,
44
- enumerable: true,
45
- configurable: true,
46
- writable: true
47
- });
48
- } else {
49
- obj[key] = value;
50
- }
51
- return obj;
52
- }
53
- function _object_spread(target) {
54
- for(var i = 1; i < arguments.length; i++){
55
- var source = arguments[i] != null ? arguments[i] : {};
56
- var ownKeys = Object.keys(source);
57
- if (typeof Object.getOwnPropertySymbols === "function") {
58
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
59
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
60
- }));
61
- }
62
- ownKeys.forEach(function(key) {
63
- _define_property(target, key, source[key]);
64
- });
65
- }
66
- return target;
67
- }
68
- function ownKeys(object, enumerableOnly) {
69
- var keys = Object.keys(object);
70
- if (Object.getOwnPropertySymbols) {
71
- var symbols = Object.getOwnPropertySymbols(object);
72
- if (enumerableOnly) {
73
- symbols = symbols.filter(function(sym) {
74
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
75
- });
76
- }
77
- keys.push.apply(keys, symbols);
78
- }
79
- return keys;
80
- }
81
- function _object_spread_props(target, source) {
82
- source = source != null ? source : {};
83
- if (Object.getOwnPropertyDescriptors) {
84
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
85
- } else {
86
- ownKeys(Object(source)).forEach(function(key) {
87
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
88
- });
89
- }
90
- return target;
91
- }
92
- function _ts_generator(thisArg, body) {
93
- var f, y, t, g, _ = {
94
- label: 0,
95
- sent: function() {
96
- if (t[0] & 1) throw t[1];
97
- return t[1];
98
- },
99
- trys: [],
100
- ops: []
101
- };
102
- return g = {
103
- next: verb(0),
104
- "throw": verb(1),
105
- "return": verb(2)
106
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
107
- return this;
108
- }), g;
109
- function verb(n) {
110
- return function(v) {
111
- return step([
112
- n,
113
- v
114
- ]);
115
- };
116
- }
117
- function step(op) {
118
- if (f) throw new TypeError("Generator is already executing.");
119
- while(_)try {
120
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
121
- if (y = 0, t) op = [
122
- op[0] & 2,
123
- t.value
124
- ];
125
- switch(op[0]){
126
- case 0:
127
- case 1:
128
- t = op;
129
- break;
130
- case 4:
131
- _.label++;
132
- return {
133
- value: op[1],
134
- done: false
135
- };
136
- case 5:
137
- _.label++;
138
- y = op[1];
139
- op = [
140
- 0
141
- ];
142
- continue;
143
- case 7:
144
- op = _.ops.pop();
145
- _.trys.pop();
146
- continue;
147
- default:
148
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
149
- _ = 0;
150
- continue;
151
- }
152
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
153
- _.label = op[1];
154
- break;
155
- }
156
- if (op[0] === 6 && _.label < t[1]) {
157
- _.label = t[1];
158
- t = op;
159
- break;
160
- }
161
- if (t && _.label < t[2]) {
162
- _.label = t[2];
163
- _.ops.push(op);
164
- break;
165
- }
166
- if (t[2]) _.ops.pop();
167
- _.trys.pop();
168
- continue;
169
- }
170
- op = body.call(thisArg, _);
171
- } catch (e) {
172
- op = [
173
- 6,
174
- e
175
- ];
176
- y = 0;
177
- } finally{
178
- f = t = 0;
179
- }
180
- if (op[0] & 5) throw op[1];
181
- return {
182
- value: op[0] ? op[1] : void 0,
183
- done: true
184
- };
185
- }
186
- }
187
- var ProductSetImageControl = function() {
188
- var t = useTranslation('Design').t;
189
- var _useFormContext = useFormContext(), errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, watch = _useFormContext.watch, clearErrors = _useFormContext.clearErrors;
190
- var currentProductSet = watch();
191
- var _useImages = useImages(null), images = _useImages.images, handleImageRemove = _useImages.handleImageRemove, handleImageUploading = _useImages.handleImageUploading, isImageUploading = _useImages.isLoading, setImages = _useImages.setImages;
192
- var onFilesChange = useCallback(function() {
193
- var _ref = _async_to_generator(function(files) {
194
- var uploadedFiles;
195
- return _ts_generator(this, function(_state) {
196
- switch(_state.label){
197
- case 0:
198
- return [
199
- 4,
200
- handleImageUploading(files, IMAGE_TYPE_IMAGE)
201
- ];
202
- case 1:
203
- uploadedFiles = _state.sent();
204
- if (!uploadedFiles) return [
205
- 2
206
- ];
207
- setValue('localImageBlobURL', URL.createObjectURL(files[0]));
208
- return [
209
- 2
210
- ];
211
- }
212
- });
213
- });
214
- return function(files) {
215
- return _ref.apply(this, arguments);
216
- };
217
- }(), // eslint-disable-next-line react-hooks/exhaustive-deps
218
- [
219
- handleImageUploading
220
- ]);
221
- var onImageRemove = useCallback(function(id, path) {
222
- handleImageRemove(id, path);
223
- setValue('localImageBlobURL', undefined);
224
- }, // eslint-disable-next-line react-hooks/exhaustive-deps
225
- [
226
- handleImageRemove
227
- ]);
228
- useEffect(function() {
229
- if (!currentProductSet || !currentProductSet.image) return;
230
- setImages([
231
- _object_spread_props(_object_spread({}, currentProductSet.image), {
232
- url: currentProductSet.image.url || (currentProductSet === null || currentProductSet === void 0 ? void 0 : currentProductSet.localImageBlobURL)
233
- })
234
- ]);
235
- // eslint-disable-next-line react-hooks/exhaustive-deps
236
- }, [
237
- currentProductSet === null || currentProductSet === void 0 ? void 0 : currentProductSet.image
238
- ]);
239
- useEffect(function() {
240
- if (isEqual(images[0], currentProductSet === null || currentProductSet === void 0 ? void 0 : currentProductSet.image)) return;
241
- setValue('image', images[0] || null);
242
- if (images[0]) {
243
- clearErrors('image');
244
- }
245
- // eslint-disable-next-line react-hooks/exhaustive-deps
246
- }, [
247
- images
248
- ]);
249
- return /*#__PURE__*/ jsxs(Form.Group, {
250
- controlId: "name",
251
- children: [
252
- /*#__PURE__*/ jsx(Form.Control, {
253
- isInvalid: HookFormService.isInvalid('image', errors),
254
- hidden: true
255
- }),
256
- /*#__PURE__*/ jsx(FileUpload, {
257
- onFilesChange: onFilesChange,
258
- allowedExtensions: [
259
- 'jpeg',
260
- 'jpg',
261
- 'png'
262
- ],
263
- subTitle: ".jpeg .jpg .png",
264
- enablePreview: true,
265
- onFileRemove: onImageRemove,
266
- defaultFiles: images,
267
- isLoading: isImageUploading,
268
- withIcon: true,
269
- title: t('Design:addImage')
270
- }),
271
- /*#__PURE__*/ jsx(Form.Control.Feedback, {
272
- type: "invalid",
273
- children: HookFormService.getErrors('image', errors)
274
- })
275
- ]
276
- });
277
- };
278
-
279
- export { ProductSetImageControl };
@@ -1,6 +0,0 @@
1
- export declare const ProductSetNameControl: ({ value, onChange, error, }: {
2
- value: string;
3
- onChange: (value: string) => void;
4
- error?: string;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=ProductSetNameControl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProductSetNameControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductSetNameControl.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,gCAI/B;IACD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,4CAeA,CAAA"}
@@ -1,35 +0,0 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { Form } from 'react-bootstrap';
3
- import { useTranslation } from 'react-i18next';
4
-
5
- var ProductSetNameControl = function(param) {
6
- var value = param.value, onChange = param.onChange, error = param.error;
7
- var t = useTranslation([
8
- 'Design'
9
- ]).t;
10
- return /*#__PURE__*/ jsxs(Form.Group, {
11
- children: [
12
- /*#__PURE__*/ jsxs(Form.Label, {
13
- children: [
14
- t('Design:ProductSetName'),
15
- "*"
16
- ]
17
- }),
18
- /*#__PURE__*/ jsx(Form.Control, {
19
- value: value,
20
- maxLength: 255,
21
- onChange: function(e) {
22
- return onChange(e.target.value);
23
- },
24
- placeholder: t('Design:placeholderProductSetName'),
25
- isInvalid: Boolean(error)
26
- }),
27
- /*#__PURE__*/ jsx(Form.Control.Feedback, {
28
- type: "invalid",
29
- children: error
30
- })
31
- ]
32
- });
33
- };
34
-
35
- export { ProductSetNameControl };