@licklist/design 0.78.5-dev.2 → 0.78.5-dev.21
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.
- package/dist/CustomDatePicker/CustomDatePicker.d.ts +10 -0
- package/dist/CustomDatePicker/CustomDatePicker.d.ts.map +1 -0
- package/dist/auth/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
- package/dist/auth/ChangePassword/ChangePasswordComponent.js +5 -4
- package/dist/auth/Layout/UserNavDropDownToggle.js +3 -0
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +11 -7
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.js +5 -4
- package/dist/auth/ResetPassword/ResetPasswordComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordComponent.js +5 -4
- package/dist/auth/Social/SocialCallbackComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialCallbackComponent.js +5 -2
- package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialFormComponent.js +4 -4
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
- package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.js +5 -4
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/events/edit-recurrent-event-modal/EditRecurrentEventModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.d.ts.map +1 -1
- package/dist/file-upload/FileUpload.js +4 -4
- package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
- package/dist/iframe/payment/order-items-table/hooks/useTableData.js +81 -80
- package/dist/modals/dialog/Dialog.d.ts.map +1 -1
- package/dist/modals/dialog/Dialog.js +39 -41
- package/dist/notification/email-template/card/EmailTemplateCard.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts +1 -0
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +4 -4
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +2 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +2 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +1 -1
- package/dist/recurrence-input/RecurrenceInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceInput.js +1 -1
- package/dist/setting/dashboard/payments/payments-modal/PaymentsModal.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +14 -20
- package/package.json +6 -6
- package/src/CustomDatePicker/CustomDatePicker.tsx +252 -0
- package/src/auth/ChangePassword/ChangePasswordComponent.tsx +3 -4
- package/src/auth/Layout/UserNavDropDownToggle.tsx +1 -1
- package/src/auth/Login/LoginComponent.tsx +7 -5
- package/src/auth/Register/RegisterComponent.tsx +3 -4
- package/src/auth/ResetPassword/ResetPasswordComponent.tsx +3 -4
- package/src/auth/Social/SocialCallbackComponent.tsx +3 -2
- package/src/auth/Social/SocialFormComponent.tsx +2 -3
- package/src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx +3 -4
- package/src/events/edit-recurrent-event-modal/EditRecurrentEventModal.tsx +1 -0
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +1 -0
- package/src/file-upload/FileUpload.tsx +2 -3
- package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +103 -109
- package/src/modals/dialog/Dialog.tsx +35 -36
- package/src/notification/email-template/card/EmailTemplateCard.tsx +0 -2
- package/src/notification/email-template/control/EmailTemplateControl.tsx +7 -5
- package/src/notification/email-template/form/EmailTemplateForm.tsx +3 -0
- package/src/recurrence-input/RecurrenceInput.tsx +4 -3
- package/src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx +1 -0
- package/src/snippet/snippet-template/preview/Preview.tsx +6 -9
- package/yarn.lock +528 -576
|
@@ -65,55 +65,52 @@ var useTableData = function(param) {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
var renderCategoryItem = function(products) {
|
|
68
|
-
var _products__productCategory;
|
|
69
|
-
var _products__productCategory_name;
|
|
68
|
+
var _products__productCategory, _products_;
|
|
69
|
+
var _products__productCategory_name, _order_orderProducts;
|
|
70
70
|
return {
|
|
71
71
|
key: uniqueId('category-id-'),
|
|
72
|
-
name: wrapLabelContent((_products__productCategory_name = (
|
|
72
|
+
name: wrapLabelContent((_products__productCategory_name = (_products_ = products[0]) === null || _products_ === void 0 ? void 0 : (_products__productCategory = _products_.productCategory) === null || _products__productCategory === void 0 ? void 0 : _products__productCategory.name) !== null && _products__productCategory_name !== void 0 ? _products__productCategory_name : ''),
|
|
73
73
|
quantity: '',
|
|
74
|
-
price: wrapLabelContent("".concat(t('total'), ": ").concat(formatPrice(getTotalSumByCategory(order.orderProducts, products))))
|
|
74
|
+
price: wrapLabelContent("".concat(t('total'), ": ").concat(formatPrice(getTotalSumByCategory((_order_orderProducts = order.orderProducts) !== null && _order_orderProducts !== void 0 ? _order_orderProducts : [], products))))
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
var reworkProductStructure = function(order) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
78
|
+
if (!order) return [];
|
|
79
|
+
var _order_orderProductModifiersGroups;
|
|
80
|
+
var groups = (_order_orderProductModifiersGroups = order === null || order === void 0 ? void 0 : order.orderProductModifiersGroups) !== null && _order_orderProductModifiersGroups !== void 0 ? _order_orderProductModifiersGroups : [];
|
|
81
|
+
if (!Array.isArray(groups) || !groups.length) return [
|
|
82
|
+
order
|
|
83
|
+
];
|
|
84
|
+
return groups.flatMap(function(modGroup, idx) {
|
|
85
|
+
var _order_deletedAt, _order_orderId, _order_price, _order_productId, _modGroup_productQuantity, _order_deposit, _modGroup_modifiers, _map;
|
|
86
|
+
return {
|
|
87
|
+
deletedAt: (_order_deletedAt = order.deletedAt) !== null && _order_deletedAt !== void 0 ? _order_deletedAt : null,
|
|
88
|
+
id: "".concat(order.id, "-").concat(idx + 1),
|
|
89
|
+
orderId: (_order_orderId = order.orderId) !== null && _order_orderId !== void 0 ? _order_orderId : null,
|
|
90
|
+
price: (_order_price = order.price) !== null && _order_price !== void 0 ? _order_price : 0,
|
|
91
|
+
productId: (_order_productId = order.productId) !== null && _order_productId !== void 0 ? _order_productId : '',
|
|
92
|
+
quantity: (_modGroup_productQuantity = modGroup === null || modGroup === void 0 ? void 0 : modGroup.productQuantity) !== null && _modGroup_productQuantity !== void 0 ? _modGroup_productQuantity : 1,
|
|
93
|
+
deposit: (_order_deposit = order.deposit) !== null && _order_deposit !== void 0 ? _order_deposit : 0,
|
|
94
|
+
orderProductModifiers: (_map = ((_modGroup_modifiers = modGroup === null || modGroup === void 0 ? void 0 : modGroup.modifiers) !== null && _modGroup_modifiers !== void 0 ? _modGroup_modifiers : []).map(function(mod) {
|
|
95
|
+
var _mod_modifierId, _mod_price, _mod_productId, _mod_quantity, _mod_modifierSetId, _mod_modifier;
|
|
96
|
+
return {
|
|
97
|
+
modifierId: (_mod_modifierId = mod === null || mod === void 0 ? void 0 : mod.modifierId) !== null && _mod_modifierId !== void 0 ? _mod_modifierId : '',
|
|
98
|
+
price: (_mod_price = mod === null || mod === void 0 ? void 0 : mod.price) !== null && _mod_price !== void 0 ? _mod_price : 0,
|
|
99
|
+
productId: (_mod_productId = mod === null || mod === void 0 ? void 0 : mod.productId) !== null && _mod_productId !== void 0 ? _mod_productId : '',
|
|
100
|
+
quantity: (_mod_quantity = mod === null || mod === void 0 ? void 0 : mod.quantity) !== null && _mod_quantity !== void 0 ? _mod_quantity : 1,
|
|
101
|
+
modifierSetId: (_mod_modifierSetId = mod === null || mod === void 0 ? void 0 : mod.modifierSetId) !== null && _mod_modifierSetId !== void 0 ? _mod_modifierSetId : '',
|
|
102
|
+
modifier: (_mod_modifier = mod === null || mod === void 0 ? void 0 : mod.modifier) !== null && _mod_modifier !== void 0 ? _mod_modifier : null
|
|
103
|
+
};
|
|
104
|
+
})) !== null && _map !== void 0 ? _map : []
|
|
105
|
+
};
|
|
106
|
+
});
|
|
104
107
|
};
|
|
105
|
-
var
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
if (product.quantity === 0) {
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
var name = ((_productsForCategory_find = productsForCategory.find(function(item) {
|
|
112
|
-
return item.id === product.productId;
|
|
113
|
-
})) === null || _productsForCategory_find === void 0 ? void 0 : _productsForCategory_find.name) || '';
|
|
108
|
+
var renderModifierItem = function(orderModifier) {
|
|
109
|
+
if (!orderModifier || orderModifier.quantity === 0) return null;
|
|
110
|
+
var quantity = orderModifier.quantity, modifier = orderModifier.modifier, modifierId = orderModifier.modifierId, price = orderModifier.price;
|
|
114
111
|
return {
|
|
115
|
-
key:
|
|
116
|
-
name: name,
|
|
112
|
+
key: modifierId,
|
|
113
|
+
name: " - ".concat((modifier === null || modifier === void 0 ? void 0 : modifier.name) || ''),
|
|
117
114
|
quantity: /*#__PURE__*/ jsxs("div", {
|
|
118
115
|
className: "quantity",
|
|
119
116
|
children: [
|
|
@@ -121,21 +118,23 @@ var useTableData = function(param) {
|
|
|
121
118
|
className: "multiplier",
|
|
122
119
|
children: "x"
|
|
123
120
|
}),
|
|
124
|
-
|
|
121
|
+
quantity
|
|
125
122
|
]
|
|
126
123
|
}),
|
|
127
|
-
price: formatPrice(
|
|
128
|
-
modifier: (product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.map(renderModifierItem)) || []
|
|
124
|
+
price: formatPrice(price !== null && price !== void 0 ? price : 0)
|
|
129
125
|
};
|
|
130
126
|
};
|
|
131
|
-
var
|
|
132
|
-
var
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
127
|
+
var renderProductItem = function(param) {
|
|
128
|
+
var product = param.product, productsForCategory = param.productsForCategory;
|
|
129
|
+
var _productsForCategory_find, _product_orderProductModifiers;
|
|
130
|
+
if (!product || product.quantity === 0) return null;
|
|
131
|
+
var name = ((_productsForCategory_find = productsForCategory.find(function(item) {
|
|
132
|
+
return item.id === product.productId;
|
|
133
|
+
})) === null || _productsForCategory_find === void 0 ? void 0 : _productsForCategory_find.name) || '';
|
|
134
|
+
var _product_price, _product_orderProductModifiers_map;
|
|
136
135
|
return {
|
|
137
|
-
key:
|
|
138
|
-
name:
|
|
136
|
+
key: product.id,
|
|
137
|
+
name: name,
|
|
139
138
|
quantity: /*#__PURE__*/ jsxs("div", {
|
|
140
139
|
className: "quantity",
|
|
141
140
|
children: [
|
|
@@ -143,47 +142,51 @@ var useTableData = function(param) {
|
|
|
143
142
|
className: "multiplier",
|
|
144
143
|
children: "x"
|
|
145
144
|
}),
|
|
146
|
-
quantity
|
|
145
|
+
product.quantity
|
|
147
146
|
]
|
|
148
147
|
}),
|
|
149
|
-
price: formatPrice(price)
|
|
148
|
+
price: formatPrice((_product_price = product.price) !== null && _product_price !== void 0 ? _product_price : 0),
|
|
149
|
+
modifier: ((_product_orderProductModifiers_map = product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.map(renderModifierItem)) !== null && _product_orderProductModifiers_map !== void 0 ? _product_orderProductModifiers_map : []).filter(Boolean)
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
152
|
var renderProductsContent = function() {
|
|
153
153
|
var productCategories = _to_consumable_array(new Set(order.products.map(function(product) {
|
|
154
154
|
return product.productCategoryId;
|
|
155
155
|
})));
|
|
156
|
-
return productCategories.reduce(function(
|
|
157
|
-
var
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
156
|
+
return productCategories.reduce(function(acc, categoryId) {
|
|
157
|
+
var _order_orderProducts;
|
|
158
|
+
var _order_products_filter;
|
|
159
|
+
var productsForCategory = (_order_products_filter = order === null || order === void 0 ? void 0 : order.products.filter(function(p) {
|
|
160
|
+
return p.productCategoryId === categoryId;
|
|
161
|
+
})) !== null && _order_products_filter !== void 0 ? _order_products_filter : [];
|
|
162
|
+
var _order_orderProducts_filter;
|
|
163
|
+
var products = (_order_orderProducts_filter = order === null || order === void 0 ? void 0 : (_order_orderProducts = order.orderProducts) === null || _order_orderProducts === void 0 ? void 0 : _order_orderProducts.filter(function(el) {
|
|
164
|
+
return productsForCategory.map(function(p) {
|
|
165
|
+
return p.id;
|
|
163
166
|
}).includes(el.productId);
|
|
164
|
-
});
|
|
165
|
-
if (!products.length)
|
|
166
|
-
return previousValues;
|
|
167
|
-
}
|
|
167
|
+
})) !== null && _order_orderProducts_filter !== void 0 ? _order_orderProducts_filter : [];
|
|
168
|
+
if (!products.length) return acc;
|
|
168
169
|
var productsWithReworkedModifier = products.map(function(product) {
|
|
169
|
-
|
|
170
|
+
var _product_orderProductModifiers;
|
|
171
|
+
if (!(product === null || product === void 0 ? void 0 : (_product_orderProductModifiers = product.orderProductModifiers) === null || _product_orderProductModifiers === void 0 ? void 0 : _product_orderProductModifiers.length)) return product;
|
|
170
172
|
return reworkProductStructure(product);
|
|
171
173
|
});
|
|
172
|
-
var filteredProducts = flatten(productsWithReworkedModifier).map(function(
|
|
174
|
+
var filteredProducts = flatten(productsWithReworkedModifier).map(function(p) {
|
|
173
175
|
return renderProductItem({
|
|
174
|
-
product:
|
|
176
|
+
product: p,
|
|
175
177
|
productsForCategory: productsForCategory
|
|
176
178
|
});
|
|
179
|
+
}).filter(function(row) {
|
|
180
|
+
return Boolean(row);
|
|
177
181
|
});
|
|
178
|
-
|
|
182
|
+
if (!filteredProducts.length) return acc;
|
|
183
|
+
var productWithModifier = flatMap(filteredProducts, function(row) {
|
|
184
|
+
var _row_modifier;
|
|
179
185
|
return [
|
|
180
|
-
|
|
181
|
-
].concat(_to_consumable_array(
|
|
186
|
+
row
|
|
187
|
+
].concat(_to_consumable_array((_row_modifier = row.modifier) !== null && _row_modifier !== void 0 ? _row_modifier : []));
|
|
182
188
|
});
|
|
183
|
-
|
|
184
|
-
return previousValues;
|
|
185
|
-
}
|
|
186
|
-
return _to_consumable_array(previousValues).concat([
|
|
189
|
+
return _to_consumable_array(acc).concat([
|
|
187
190
|
renderCategoryItem(productsForCategory)
|
|
188
191
|
], _to_consumable_array(productWithModifier));
|
|
189
192
|
}, []);
|
|
@@ -200,20 +203,18 @@ var useTableData = function(param) {
|
|
|
200
203
|
});
|
|
201
204
|
};
|
|
202
205
|
var data = useMemo(function() {
|
|
203
|
-
if (!order)
|
|
204
|
-
return [];
|
|
205
|
-
}
|
|
206
|
+
if (!order) return [];
|
|
206
207
|
return _to_consumable_array(renderProductsContent()).concat(_to_consumable_array(renderSummaryItems(getOrderSummaryItems({
|
|
207
208
|
order: order,
|
|
208
209
|
paymentDetail: paymentDetail,
|
|
209
210
|
isPaymentProcessed: isPaymentProcessed,
|
|
210
211
|
externalDiscount: externalDiscount
|
|
211
212
|
}))));
|
|
212
|
-
},
|
|
213
|
-
[
|
|
213
|
+
}, [
|
|
214
214
|
order,
|
|
215
215
|
externalDiscount,
|
|
216
|
-
isPaymentProcessed
|
|
216
|
+
isPaymentProcessed,
|
|
217
|
+
paymentDetail
|
|
217
218
|
]);
|
|
218
219
|
return data;
|
|
219
220
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,eAAO,MAAM,MAAM,uEAOhB,YAAY,
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/modals/dialog/Dialog.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAA;IAChC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,eAAO,MAAM,MAAM,uEAOhB,YAAY,4CAoDd,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, Fragment
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { Modal, Button } from 'react-bootstrap';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
|
|
@@ -15,47 +15,45 @@ var Dialog = function(param) {
|
|
|
15
15
|
onDecline();
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
children: title
|
|
32
|
-
})
|
|
33
|
-
}),
|
|
34
|
-
content && /*#__PURE__*/ jsx(Modal.Body, {
|
|
35
|
-
className: "justify-content-center",
|
|
36
|
-
children: content
|
|
37
|
-
}),
|
|
38
|
-
/*#__PURE__*/ jsx(Modal.Footer, {
|
|
39
|
-
className: "border-0 justify-content-center",
|
|
40
|
-
children: customButtons || /*#__PURE__*/ jsxs(Fragment, {
|
|
41
|
-
children: [
|
|
42
|
-
/*#__PURE__*/ jsx(Button, {
|
|
43
|
-
variant: "secondary",
|
|
44
|
-
className: "modal-buttons",
|
|
45
|
-
onClick: declineHandler,
|
|
46
|
-
children: t('cancel')
|
|
47
|
-
}),
|
|
48
|
-
/*#__PURE__*/ jsx(Button, {
|
|
49
|
-
variant: "primary",
|
|
50
|
-
className: "modal-buttons",
|
|
51
|
-
onClick: approveHandler,
|
|
52
|
-
children: t('Design:confirm')
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
})
|
|
18
|
+
return /*#__PURE__*/ jsxs(Modal, {
|
|
19
|
+
show: isActive,
|
|
20
|
+
onHide: onDecline,
|
|
21
|
+
animation: false,
|
|
22
|
+
size: "sm",
|
|
23
|
+
centered: true,
|
|
24
|
+
className: "text-center justify-content-center rounded",
|
|
25
|
+
children: [
|
|
26
|
+
/*#__PURE__*/ jsx(Modal.Header, {
|
|
27
|
+
className: "justify-content-center border-0",
|
|
28
|
+
children: title && /*#__PURE__*/ jsx(Modal.Title, {
|
|
29
|
+
as: "h6",
|
|
30
|
+
children: title
|
|
56
31
|
})
|
|
57
|
-
|
|
58
|
-
|
|
32
|
+
}),
|
|
33
|
+
content && /*#__PURE__*/ jsx(Modal.Body, {
|
|
34
|
+
className: "justify-content-center",
|
|
35
|
+
children: content
|
|
36
|
+
}),
|
|
37
|
+
/*#__PURE__*/ jsx(Modal.Footer, {
|
|
38
|
+
className: "border-0 justify-content-center",
|
|
39
|
+
children: customButtons || /*#__PURE__*/ jsxs(Fragment, {
|
|
40
|
+
children: [
|
|
41
|
+
/*#__PURE__*/ jsx(Button, {
|
|
42
|
+
variant: "secondary",
|
|
43
|
+
className: "modal-buttons",
|
|
44
|
+
onClick: declineHandler,
|
|
45
|
+
children: t('cancel')
|
|
46
|
+
}),
|
|
47
|
+
/*#__PURE__*/ jsx(Button, {
|
|
48
|
+
variant: "primary",
|
|
49
|
+
className: "modal-buttons",
|
|
50
|
+
onClick: approveHandler,
|
|
51
|
+
children: t('Design:confirm')
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
]
|
|
59
57
|
});
|
|
60
58
|
};
|
|
61
59
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/card/EmailTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,aAAoB,EACpB,IAAI,GACL,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"EmailTemplateCard.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/card/EmailTemplateCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAKzG,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;CACvB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAiB,EACjB,QAAgB,EAChB,aAAoB,EACpB,IAAI,GACL,EAAE,sBAAsB,2CAkDxB"}
|
|
@@ -7,6 +7,7 @@ export interface EmailTemplateControlProps {
|
|
|
7
7
|
meta: string;
|
|
8
8
|
defaultAttachments?: Attachment[];
|
|
9
9
|
notificationTypes?: NotificationType[];
|
|
10
|
+
waiverType?: boolean;
|
|
10
11
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
|
|
11
12
|
}
|
|
12
13
|
export declare const EmailTemplateControl: import("react").ForwardRefExoticComponent<EmailTemplateControlProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAuahC,CAAA"}
|
|
@@ -234,7 +234,7 @@ function _ts_generator(thisArg, body) {
|
|
|
234
234
|
}
|
|
235
235
|
var EDITOR_DESIGN_UPDATED = 'design:updated';
|
|
236
236
|
var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
237
|
-
var setIsLoading = param.setIsLoading, meta = param.meta, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_defaultAttachments = param.defaultAttachments, defaultAttachments = _param_defaultAttachments === void 0 ? [] : _param_defaultAttachments, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType;
|
|
237
|
+
var setIsLoading = param.setIsLoading, meta = param.meta, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_defaultAttachments = param.defaultAttachments, defaultAttachments = _param_defaultAttachments === void 0 ? [] : _param_defaultAttachments, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, _param_waiverType = param.waiverType, waiverType = _param_waiverType === void 0 ? false : _param_waiverType, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType;
|
|
238
238
|
var _errors_type, _errors_name, _errors_subject, _errors_body;
|
|
239
239
|
var t = useTranslation([
|
|
240
240
|
'Design'
|
|
@@ -476,7 +476,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
476
476
|
]
|
|
477
477
|
})
|
|
478
478
|
}),
|
|
479
|
-
/*#__PURE__*/ jsx(Row, {
|
|
479
|
+
!waiverType && /*#__PURE__*/ jsx(Row, {
|
|
480
480
|
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
481
481
|
as: Col,
|
|
482
482
|
children: [
|
|
@@ -578,7 +578,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
578
578
|
}
|
|
579
579
|
// should show dropdown only if user want to include PDF file
|
|
580
580
|
if (option.type === OPTION_TYPE.files_selector) {
|
|
581
|
-
var fileSelectors = JSON.parse(option.defaultValue);
|
|
581
|
+
var fileSelectors = (option === null || option === void 0 ? void 0 : option.defaultValue) ? JSON.parse(option.defaultValue) : '';
|
|
582
582
|
var fileNames = Object.values(fileSelectors);
|
|
583
583
|
var fileKeys = Object.keys(fileSelectors);
|
|
584
584
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -622,7 +622,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
622
622
|
]
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
if (option.type === OPTION_TYPE.days_reminder) {
|
|
625
|
+
if (option.type === OPTION_TYPE.days_reminder || option.type === OPTION_TYPE.waiver_reminder) {
|
|
626
626
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
627
627
|
children: [
|
|
628
628
|
/*#__PURE__*/ jsx(Form.Label, {
|
|
@@ -31,9 +31,10 @@ export interface EmailTemplateProps extends HasPermissionProp {
|
|
|
31
31
|
placeholders?: NotificationPlaceholder[];
|
|
32
32
|
options?: TemplateOption[];
|
|
33
33
|
serverErrors?: ServerError;
|
|
34
|
+
waiverType?: boolean;
|
|
34
35
|
notificationTypes?: NotificationType[];
|
|
35
36
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
|
|
36
37
|
onTypeChange?: (type?: NotificationType | null) => void;
|
|
37
38
|
}
|
|
38
|
-
export declare const EmailTemplateForm: ({ defaultValues, onSubmitSave, onSubmitSaveAndSend, hasPermission, placeholders, options, serverErrors, notificationTypes, getDefaultTemplateMetaByType, onTypeChange, }: EmailTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const EmailTemplateForm: ({ defaultValues, onSubmitSave, onSubmitSaveAndSend, hasPermission, placeholders, options, serverErrors, waiverType, notificationTypes, getDefaultTemplateMetaByType, onTypeChange, }: EmailTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
//# sourceMappingURL=EmailTemplateForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateForm.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/form/EmailTemplateForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE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like_to_array(o, minLen);
|
|
109
109
|
}
|
|
110
110
|
var EmailTemplateForm = function(param) {
|
|
111
|
-
var defaultValues = param.defaultValues, onSubmitSave = param.onSubmitSave, onSubmitSaveAndSend = param.onSubmitSaveAndSend, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, _param_placeholders = param.placeholders, placeholders = _param_placeholders === void 0 ? [] : _param_placeholders, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, serverErrors = param.serverErrors, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType, onTypeChange = param.onTypeChange;
|
|
111
|
+
var defaultValues = param.defaultValues, onSubmitSave = param.onSubmitSave, onSubmitSaveAndSend = param.onSubmitSaveAndSend, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, _param_placeholders = param.placeholders, placeholders = _param_placeholders === void 0 ? [] : _param_placeholders, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, serverErrors = param.serverErrors, waiverType = param.waiverType, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType, onTypeChange = param.onTypeChange;
|
|
112
112
|
var t = useTranslation('Design').t;
|
|
113
113
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
114
114
|
var emailEditorRef = useRef(null);
|
|
@@ -143,6 +143,7 @@ var EmailTemplateForm = function(param) {
|
|
|
143
143
|
children: [
|
|
144
144
|
/*#__PURE__*/ jsx(EmailTemplateControl, {
|
|
145
145
|
ref: emailEditorRef,
|
|
146
|
+
waiverType: waiverType,
|
|
146
147
|
setIsLoading: setIsLoading,
|
|
147
148
|
meta: (defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.meta) || null,
|
|
148
149
|
defaultAttachments: (defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.attachments) || [],
|
|
@@ -15,7 +15,6 @@ import 'react-bootstrap/Row';
|
|
|
15
15
|
import 'react-bootstrap/Col';
|
|
16
16
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
17
17
|
import '@licklist/plugins/dist/services/Form/HookFormService';
|
|
18
|
-
import 'react-router-dom';
|
|
19
18
|
import '../../../calendar/Calendar.js';
|
|
20
19
|
import 'clsx';
|
|
21
20
|
import 'luxon';
|
|
@@ -24,6 +23,7 @@ import '../../../tiptap-editor/TipTapEditor.js';
|
|
|
24
23
|
import '@licklist/core/dist/Config';
|
|
25
24
|
import '../../../iframe/event/event-card/IframeEventCardSkeleton.js';
|
|
26
25
|
import 'react-icons/fa';
|
|
26
|
+
import 'react-router-dom';
|
|
27
27
|
import '../../../static/index.js';
|
|
28
28
|
import '../../../iframe/page/Page.js';
|
|
29
29
|
import '../../../iframe/page/components/PageBody/PageBody.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"RecurrenceInput.d.ts","sourceRoot":"","sources":["../../src/recurrence-input/RecurrenceInput.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,SAAS,EAAW,MAAM,OAAO,CAAA;AAWjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,gBAAgB,CAAC,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAgB,EAChB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,gBAAmC,GACpC,EAAE,oBAAoB,2CA0EtB"}
|
|
@@ -117,7 +117,7 @@ function RecurrenceInput(param) {
|
|
|
117
117
|
})), 2), state = _useReducer[0], updateState = _useReducer[1];
|
|
118
118
|
useEffect(// TODO: unhardcode timezone
|
|
119
119
|
function() {
|
|
120
|
-
|
|
120
|
+
onChange(RRule.optionsToString(_object_spread({
|
|
121
121
|
freq: state.freq,
|
|
122
122
|
count: state.count,
|
|
123
123
|
interval: state.interval,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentsModal.d.ts","sourceRoot":"","sources":["../../../../../src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,MAAM,GACP,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"PaymentsModal.d.ts","sourceRoot":"","sources":["../../../../../src/setting/dashboard/payments/payments-modal/PaymentsModal.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC9C,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,MAAM,GACP,EAAE,kBAAkB,2CAiCpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Preview.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/preview/Preview.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,cAAc,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,cAAsB,GACvB,EAAE,YAAY,2CA8Vd"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useContext } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { MemoryRouter } from 'react-router-dom';
|
|
5
4
|
import { Button } from 'react-bootstrap';
|
|
6
5
|
import { SNIPPET_TEMPLATE_TYPE_VENUE_MAP, SNIPPET_TEMPLATE_TYPE_EVENT_LIST } from '@licklist/core/dist/DataMapper/Provider/SnippetTemplateDataMapper';
|
|
7
6
|
import { defaultStartDay, Calendar } from '../../../calendar/Calendar.js';
|
|
@@ -19,6 +18,7 @@ import { PageHeader } from '../../../iframe/page/components/PageHeader/PageHeade
|
|
|
19
18
|
import 'react-icons/fa';
|
|
20
19
|
import 'react-swipeable';
|
|
21
20
|
import 'react-bootstrap/Button';
|
|
21
|
+
import 'react-router-dom';
|
|
22
22
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
23
23
|
import '@licklist/plugins/dist/services/Media/MediaService';
|
|
24
24
|
import '../../../tiptap-editor/TipTapEditor.js';
|
|
@@ -154,25 +154,19 @@ function Preview(param) {
|
|
|
154
154
|
/*#__PURE__*/ jsx(Timer, {
|
|
155
155
|
timer: 600
|
|
156
156
|
}),
|
|
157
|
-
/*#__PURE__*/ jsx(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
pathname: '/step2',
|
|
171
|
-
key: '/step2',
|
|
172
|
-
name: 'Cheese'
|
|
173
|
-
}
|
|
174
|
-
]
|
|
175
|
-
})
|
|
157
|
+
/*#__PURE__*/ jsx(NavigationSteps, {
|
|
158
|
+
steps: [
|
|
159
|
+
{
|
|
160
|
+
pathname: '/step1',
|
|
161
|
+
key: '/step1',
|
|
162
|
+
name: 'Burger'
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
pathname: '/step2',
|
|
166
|
+
key: '/step2',
|
|
167
|
+
name: 'Cheese'
|
|
168
|
+
}
|
|
169
|
+
]
|
|
176
170
|
})
|
|
177
171
|
]
|
|
178
172
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-dev.
|
|
3
|
+
"version": "0.78.5-dev.21",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.36.1-dev.
|
|
45
|
+
"@licklist/core": "0.36.1-dev.6",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.36.4-dev.
|
|
47
|
+
"@licklist/plugins": "0.36.4-dev.9",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
49
|
"i18next": "25.3.2",
|
|
50
50
|
"lodash": "4.17.21",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@dnd-kit/utilities": "2.0.0",
|
|
65
65
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
66
66
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
67
|
-
"@licklist/core": "0.36.1-dev.
|
|
67
|
+
"@licklist/core": "0.36.1-dev.6",
|
|
68
68
|
"@licklist/eslint-config": "0.5.6",
|
|
69
|
-
"@licklist/plugins": "0.36.4-dev.
|
|
69
|
+
"@licklist/plugins": "0.36.4-dev.8",
|
|
70
70
|
"@mantine/core": "6.0.22",
|
|
71
71
|
"@mantine/hooks": "6.0.22",
|
|
72
72
|
"@mdx-js/react": "1.6.22",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
},
|
|
200
200
|
"resolutions": {
|
|
201
201
|
"@types/react": "18.3.12",
|
|
202
|
-
"@types/react-dom": "
|
|
202
|
+
"@types/react-dom": "18.3.1"
|
|
203
203
|
},
|
|
204
204
|
"lint-staged": {
|
|
205
205
|
"*.{ts,tsx}": [
|