@licklist/design 0.69.1-dev.4 → 0.69.2

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 (187) 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 +24 -50
  9. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
  10. package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
  11. package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +2 -3
  12. package/dist/iframe/activity-card/ActivityCard.d.ts +4 -5
  13. package/dist/iframe/activity-card/ActivityCard.d.ts.map +1 -1
  14. package/dist/iframe/activity-card/ActivityCard.js +40 -52
  15. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
  16. package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +0 -13
  17. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.d.ts.map +1 -1
  18. package/dist/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.js +0 -2
  19. package/dist/iframe/payment/order-items-table/utils/paymentSummary.d.ts.map +1 -1
  20. package/dist/iframe/ryft/RyftPaymentForm.d.ts +2 -2
  21. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  22. package/dist/iframe/ryft/RyftPaymentForm.js +2 -8
  23. package/dist/iframe/ryft/utils/ryft-form.d.ts +1 -2
  24. package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
  25. package/dist/iframe/ryft/utils/ryft-form.js +1 -20
  26. package/dist/index.js +0 -1
  27. package/dist/layout/DropDown.d.ts +1 -2
  28. package/dist/layout/DropDown.d.ts.map +1 -1
  29. package/dist/modals/confirmation/ConfirmModal.d.ts +1 -3
  30. package/dist/modals/confirmation/ConfirmModal.d.ts.map +1 -1
  31. package/dist/modals/confirmation/ConfirmModal.js +8 -172
  32. package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
  33. package/dist/notification/email-template/control/EmailTemplateControl.js +0 -3
  34. package/dist/product-set/card/ProductSetCard.d.ts +2 -6
  35. package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
  36. package/dist/product-set/card/ProductSetCard.js +11 -30
  37. package/dist/product-set/control/DateInput.d.ts.map +1 -1
  38. package/dist/product-set/control/DateInput.js +2 -2
  39. package/dist/product-set/control/ProductSetControl.d.ts +0 -4
  40. package/dist/product-set/control/ProductSetControl.d.ts.map +1 -1
  41. package/dist/product-set/control/ProductSetControl.js +3 -24
  42. package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
  43. package/dist/product-set/form/ProductCategoriesControl.js +2 -48
  44. package/dist/product-set/form/ProductSetForm.d.ts +1 -4
  45. package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
  46. package/dist/product-set/form/ProductSetForm.js +1 -64
  47. package/dist/product-set/form/ProductZonesControl.d.ts.map +1 -1
  48. package/dist/product-set/form/ProductZonesControl.js +2 -0
  49. package/dist/product-set/form/ProductsControl.js +0 -1
  50. package/dist/product-set/form/SelectCategoryModal.d.ts +0 -12
  51. package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
  52. package/dist/product-set/form/SelectCategoryModal.js +1 -1
  53. package/dist/product-set/form/SubProductsControl.d.ts.map +1 -1
  54. package/dist/product-set/form/SubProductsControl.js +3 -0
  55. package/dist/product-set/form/VenueMapsControl.d.ts.map +1 -1
  56. package/dist/product-set/form/VenueMapsControl.js +3 -0
  57. package/dist/product-set/form/index.d.ts +0 -1
  58. package/dist/product-set/form/index.d.ts.map +1 -1
  59. package/dist/product-set/product/ProductControl.d.ts.map +1 -1
  60. package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
  61. package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +0 -6
  62. package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
  63. package/dist/product-set/product/deposit/ProductDepositControl.js +0 -3
  64. package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
  65. package/dist/product-set/product/duration/ProductDurationControl.js +0 -6
  66. package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
  67. package/dist/product-set/product/price/ProductPriceControl.js +0 -3
  68. package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
  69. package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +0 -6
  70. package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
  71. package/dist/product-set/product/quantity/ProductQuantityControl.js +0 -6
  72. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
  73. package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +1 -4
  74. package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
  75. package/dist/product-set/product-category/ProductCategoryControl.js +0 -12
  76. package/dist/product-set/utils/index.d.ts +0 -7
  77. package/dist/product-set/utils/index.d.ts.map +1 -1
  78. package/dist/product-set/utils/index.js +1 -10
  79. package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
  80. package/dist/recurrence-input/RecurrenceEndInput.js +0 -3
  81. package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
  82. package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
  83. package/dist/resource/form/components/CapacityControl.js +0 -3
  84. package/dist/resource/form/components/SortControl.d.ts.map +1 -1
  85. package/dist/resource/form/components/SortControl.js +0 -3
  86. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  87. package/dist/sales/booking/results/components/ResultCard.js +2 -0
  88. package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
  89. package/dist/sales/coupon/control/CouponFormControl.js +0 -21
  90. package/dist/setting/admin/PaymentFeeForm.d.ts.map +1 -1
  91. package/dist/setting/admin/PaymentFeeForm.js +1 -16
  92. package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
  93. package/dist/setting/dashboard/DashboardSettingForm.js +1 -4
  94. package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
  95. package/dist/snippet/snippet-template/preview/Preview.js +0 -6
  96. package/dist/sortable-tree/SortableTreeItem.d.ts +1 -2
  97. package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
  98. package/dist/sortable-tree/SortableTreeItem.js +4 -10
  99. package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
  100. package/dist/static/CurrencyNumberInput.js +0 -3
  101. package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
  102. package/dist/static/form-number-input/FormNumberInput.js +0 -3
  103. package/dist/static/number-input/NumberInput.d.ts.map +1 -1
  104. package/dist/static/number-input/NumberInput.js +0 -3
  105. package/dist/styles/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
  106. package/dist/styles/activity-card/ListActivitiesCard.scss +42 -12
  107. package/dist/styles/activity-card/_index.scss +1 -1
  108. package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  109. package/dist/styles/product-set/ProductSetForm.scss +0 -22
  110. package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -28
  111. package/dist/styles/sales/BookingResults.scss +1 -1
  112. package/dist/typeahead/Typeahead.d.ts +1 -5
  113. package/dist/typeahead/Typeahead.d.ts.map +1 -1
  114. package/dist/typeahead/Typeahead.js +2 -9
  115. package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
  116. package/dist/zone/form/components/GameDurationControl.js +0 -3
  117. package/dist/zone/form/components/SortControl.d.ts.map +1 -1
  118. package/dist/zone/form/components/SortControl.js +0 -3
  119. package/package.json +6 -8
  120. package/src/affiliate/form/AffiliateForm.tsx +0 -1
  121. package/src/auth/Login/LoginComponent.tsx +1 -1
  122. package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +2 -3
  123. package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +86 -85
  124. package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +1 -2
  125. package/src/iframe/activity-card/ActivityCard.tsx +24 -35
  126. package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +0 -9
  127. package/src/iframe/order-process/components/CategoryProduct/components/ProductQuantityInput/ProductQuantityInput.tsx +0 -1
  128. package/src/iframe/payment/order-items-table/utils/paymentSummary.tsx +0 -1
  129. package/src/iframe/ryft/RyftPaymentForm.tsx +5 -13
  130. package/src/iframe/ryft/utils/ryft-form.ts +2 -26
  131. package/src/layout/DropDown.tsx +1 -1
  132. package/src/modals/confirmation/ConfirmModal.tsx +3 -19
  133. package/src/notification/email-template/control/EmailTemplateControl.tsx +0 -1
  134. package/src/product-set/card/ProductSetCard.tsx +8 -47
  135. package/src/product-set/control/DateInput.tsx +1 -2
  136. package/src/product-set/control/ProductSetControl.tsx +52 -46
  137. package/src/product-set/form/ProductCategoriesControl.tsx +1 -37
  138. package/src/product-set/form/ProductSetForm.tsx +2 -24
  139. package/src/product-set/form/ProductZonesControl.tsx +4 -1
  140. package/src/product-set/form/SelectCategoryModal.tsx +2 -2
  141. package/src/product-set/form/SubProductsControl.tsx +3 -0
  142. package/src/product-set/form/VenueMapsControl.tsx +3 -0
  143. package/src/product-set/form/index.ts +0 -1
  144. package/src/product-set/product/ProductControl.tsx +1 -0
  145. package/src/product-set/product/advanced-options/AdvancedOptions.tsx +1 -1
  146. package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +0 -2
  147. package/src/product-set/product/deposit/ProductDepositControl.tsx +0 -1
  148. package/src/product-set/product/duration/ProductDurationControl.tsx +0 -2
  149. package/src/product-set/product/price/ProductPriceControl.tsx +0 -1
  150. package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +0 -2
  151. package/src/product-set/product/quantity/ProductQuantityControl.tsx +0 -2
  152. package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +0 -1
  153. package/src/product-set/product-category/ProductCategoryControl.tsx +0 -4
  154. package/src/product-set/product-zone/ProductZoneControl.tsx +1 -1
  155. package/src/product-set/utils/index.ts +0 -11
  156. package/src/recurrence-input/RecurrenceEndInput.tsx +0 -1
  157. package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +0 -1
  158. package/src/resource/form/components/CapacityControl.tsx +0 -1
  159. package/src/resource/form/components/SortControl.tsx +0 -1
  160. package/src/sales/booking/results/components/ResultCard.tsx +2 -0
  161. package/src/sales/coupon/control/CouponFormControl.tsx +0 -7
  162. package/src/setting/admin/PaymentFeeForm.tsx +0 -5
  163. package/src/setting/dashboard/DashboardSettingForm.tsx +0 -1
  164. package/src/snippet/snippet-template/preview/Preview.tsx +0 -6
  165. package/src/sortable-tree/SortableTreeItem.tsx +0 -6
  166. package/src/static/CurrencyNumberInput.tsx +0 -1
  167. package/src/static/form-number-input/FormNumberInput.tsx +0 -1
  168. package/src/static/number-input/NumberInput.tsx +0 -1
  169. package/src/styles/activity-card/{ActivitiesCard.scss → GridActivitiesCard.scss} +5 -19
  170. package/src/styles/activity-card/ListActivitiesCard.scss +42 -12
  171. package/src/styles/activity-card/_index.scss +1 -1
  172. package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
  173. package/src/styles/product-set/ProductSetForm.scss +0 -22
  174. package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -28
  175. package/src/styles/sales/BookingResults.scss +1 -1
  176. package/src/typeahead/Typeahead.tsx +1 -15
  177. package/src/zone/form/components/GameDurationControl.tsx +0 -1
  178. package/src/zone/form/components/SortControl.tsx +0 -1
  179. package/yarn.lock +32 -58
  180. package/dist/product-set/control/ProductSetImageControl.d.ts +0 -2
  181. package/dist/product-set/control/ProductSetImageControl.d.ts.map +0 -1
  182. package/dist/product-set/control/ProductSetImageControl.js +0 -279
  183. package/dist/product-set/form/ProductSetNameControl.d.ts +0 -6
  184. package/dist/product-set/form/ProductSetNameControl.d.ts.map +0 -1
  185. package/dist/product-set/form/ProductSetNameControl.js +0 -35
  186. package/src/product-set/control/ProductSetImageControl.tsx +0 -97
  187. package/src/product-set/form/ProductSetNameControl.tsx +0 -27
@@ -14,7 +14,6 @@
14
14
 
15
15
  .navigation {
16
16
  display: block;
17
-
18
17
  @include media-breakpoint-down(sm) {
19
18
  padding: 0;
20
19
  }
@@ -24,7 +23,6 @@
24
23
  margin-left: 0;
25
24
  height: calc(100vh - 2rem);
26
25
  max-height: calc(100vh - 1rem);
27
-
28
26
  @include media-breakpoint-down(sm) {
29
27
  width: calc(100% - 2rem);
30
28
  max-width: unset;
@@ -71,11 +69,9 @@
71
69
  .left-block {
72
70
  min-height: 100%;
73
71
  }
74
-
75
72
  .right-block {
76
73
  margin: 0 auto;
77
74
  width: 100%;
78
-
79
75
  .children-wrapper {
80
76
  .accordion {
81
77
  .collapse {
@@ -89,7 +85,6 @@
89
85
  }
90
86
  }
91
87
  }
92
-
93
88
  ::-webkit-scrollbar {
94
89
  display: none;
95
90
  scrollbar-width: none;
@@ -102,14 +97,6 @@
102
97
  }
103
98
 
104
99
  .ryft-payment-form {
105
-
106
- .form-disable-box {
107
- display: none;
108
- position: absolute;
109
- width: 100%;
110
- height: 100%;
111
- }
112
-
113
100
  .submit-button-wrapper {
114
101
  margin: -1rem 0 1rem;
115
102
 
@@ -117,18 +104,15 @@
117
104
  width: 100%;
118
105
  }
119
106
  }
120
-
121
107
  #mobile-pay-divider-container {
122
108
  display: flex;
123
109
  position: relative;
124
110
  margin-bottom: 1rem;
125
-
126
111
  #mobile-pay-divider-text {
127
112
  margin-right: 1rem;
128
113
  font-size: 0.875rem;
129
114
  font-weight: 600;
130
115
  }
131
-
132
116
  #mobile-pay-divider {
133
117
  width: 100%;
134
118
  border-bottom: 1px #dfdfdf solid;
@@ -141,7 +125,6 @@
141
125
  border: none;
142
126
  margin-bottom: 0.5rem;
143
127
  text-align: left;
144
-
145
128
  :first-child {
146
129
  font-size: 1rem;
147
130
  font-weight: 600;
@@ -152,17 +135,14 @@
152
135
  margin-bottom: 0.5rem;
153
136
  }
154
137
  }
155
-
156
138
  .ryft-pay-grid {
157
139
  display: flex;
158
140
  flex-direction: column;
159
-
160
141
  .apple-pay-button {
161
142
  height: 2.5rem;
162
143
  margin-top: 1rem;
163
144
  }
164
145
  }
165
-
166
146
  .mobile-pay-title {
167
147
  display: block;
168
148
  font-weight: 600;
@@ -176,16 +156,10 @@
176
156
  }
177
157
 
178
158
  @include media-breakpoint-up(md) {
179
-
180
159
  .ryft-payment-form,
181
- .form-disable-box {
182
- height: 50%;
183
- top: 15rem;
184
- }
185
160
  .iframe-payment-form {
186
161
  position: relative;
187
162
  max-height: 300px !important;
188
-
189
163
  .submit-button-wrapper {
190
164
  max-width: 15.5rem;
191
165
  }
@@ -197,7 +171,6 @@
197
171
  max-width: 15.5rem;
198
172
  margin-bottom: 1rem;
199
173
  }
200
-
201
174
  .ryft-pay-apple-pay-button {
202
175
  border-radius: 0.25rem;
203
176
  }
@@ -205,4 +178,4 @@
205
178
  .divider {
206
179
  display: none !important;
207
180
  }
208
- }
181
+ }
@@ -5,7 +5,7 @@
5
5
  flex-wrap: wrap;
6
6
 
7
7
  .result-card {
8
- height: 14rem;
8
+ height: 14.25rem;
9
9
  border: 1px solid $gray-400;
10
10
  max-width: calc(50% - 0.75rem);
11
11
  flex: 0 0 calc(50% - 0.75rem);
@@ -12,13 +12,10 @@ export interface TypeaheadProps {
12
12
  placeholder: string
13
13
  isRequired?: boolean
14
14
  name: string
15
- value?: TypeaheadOptions
16
15
  isMultipleChoise?: boolean
17
16
  noOptionsMessage: string
18
17
  isInvalid?: boolean
19
18
  isCouponForm?: boolean
20
- containerStyles?: CSSObjectWithLabel
21
- onChangeValue?: (value: TypeaheadOptions) => void
22
19
  }
23
20
 
24
21
  function Typeahead({
@@ -27,9 +24,6 @@ function Typeahead({
27
24
  isRequired = false,
28
25
  isMultipleChoise,
29
26
  name = '',
30
- value,
31
- onChangeValue,
32
- containerStyles,
33
27
  isCouponForm = false,
34
28
  noOptionsMessage = '',
35
29
  isInvalid,
@@ -59,23 +53,15 @@ function Typeahead({
59
53
  render={({ field }) => (
60
54
  <Select
61
55
  placeholder={placeholder}
62
- value={value ?? field.value}
56
+ value={field.value}
63
57
  isMulti={isMultipleChoise}
64
58
  styles={{
65
- container: (base) => ({
66
- ...base,
67
- ...containerStyles,
68
- }),
69
59
  control: (base) => ({
70
60
  ...base,
71
61
  ...getStyle(),
72
62
  }),
73
63
  }}
74
64
  onChange={(value) => {
75
- if (onChangeValue) {
76
- onChangeValue(value)
77
- return
78
- }
79
65
  field.onChange(value)
80
66
  }}
81
67
  options={options}
@@ -29,7 +29,6 @@ export const GameDurationControl = ({
29
29
  required: false,
30
30
  min: 1,
31
31
  })}
32
- onWheel={(event) => event.currentTarget.blur()}
33
32
  placeholder={t('Design:duration')}
34
33
  isInvalid={Boolean(errors.defaultDuration)}
35
34
  disabled={isLoading}
@@ -27,7 +27,6 @@ export const SortControl = ({ isLoading }: SortControlProps) => {
27
27
  required: false,
28
28
  min: 1,
29
29
  })}
30
- onWheel={(event) => event.currentTarget.blur()}
31
30
  placeholder={t('Design:ordering')}
32
31
  isInvalid={Boolean(errors.sort)}
33
32
  disabled={isLoading}
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.1
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
 
@@ -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
 
@@ -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
 
@@ -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.39
9820
- resolution: "electron-to-chromium@npm:1.5.39"
9821
- checksum: 10c0/36364f9c68a7d20c54b020fe81cabf3e6022b7feb91f63695dd1039612cac031cc98bbcc0c3ba957f1876dde89853ba48407c590a4227fd13616a028ac1a0944
9793
+ version: 1.5.36
9794
+ resolution: "electron-to-chromium@npm:1.5.36"
9795
+ checksum: 10c0/cd8d0de7801107f2b2744b5b18641c969a49b0503996cc1a586bb79d893020d0c4e916ac1935603eea65104b4fc1096bc339e0151531dca9e0f0ce0c1882e2d8
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
 
@@ -14165,12 +14139,12 @@ __metadata:
14165
14139
  linkType: hard
14166
14140
 
14167
14141
  "match-sorter@npm:^6.0.2":
14168
- version: 6.4.0
14169
- resolution: "match-sorter@npm:6.4.0"
14142
+ version: 6.3.4
14143
+ resolution: "match-sorter@npm:6.3.4"
14170
14144
  dependencies:
14171
14145
  "@babel/runtime": "npm:^7.23.8"
14172
14146
  remove-accents: "npm:0.5.0"
14173
- checksum: 10c0/2b8ea3933416d16570888e4ca44c67d7deeccb0a378852e14ee6eebcf52e9a1df3ca1279cbf3f5bcae02edab28304c3bd1199d1782ff2a148448bfc0b314242e
14147
+ checksum: 10c0/35d2a6b6df003c677d9ec87ecd4683657638f5bce856f43f9cf90b03e357ed2f09813ebbac759defa7e7438706936dd34dc2bfe1a18771f7d2541f14d639b4ad
14174
14148
  languageName: node
14175
14149
  linkType: hard
14176
14150
 
@@ -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"}