@licklist/design 0.72.72 → 0.72.73-stage.0
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/auth/Authorizer.d.ts.map +1 -1
- package/dist/auth/Authorizer.js +2 -1
- package/dist/auth/Router.d.ts.map +1 -1
- package/dist/auth/Router.js +18 -14
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts +1 -2
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SaleDeadline/SaleDeadline.js +2 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +2 -3
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -6
- package/dist/product-set/control/ProductSetControl.js +1 -2
- package/dist/product-set/product/ProductControl.d.ts +2 -2
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +4 -53
- package/dist/product-set/utils/index.d.ts +1 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts +2 -1
- package/dist/sales/coupon/form/CouponFrom.d.ts.map +1 -1
- package/dist/sales/coupon/form/CouponFrom.js +19 -6
- package/dist/setting/index.d.ts +0 -2
- package/dist/setting/index.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/package.json +12 -7
- package/src/auth/Authorizer.tsx +1 -0
- package/src/auth/Router.tsx +19 -19
- package/src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx +4 -12
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -0
- package/src/index.ts +0 -1
- package/src/product-set/control/ProductSetControl.tsx +1 -1
- package/src/product-set/form/ProductCategoriesControl.tsx +1 -1
- package/src/product-set/product/Product.stories.tsx +1 -1
- package/src/product-set/product/ProductControl.tsx +3 -55
- package/src/sales/coupon/form/CouponFrom.tsx +20 -8
- package/src/setting/index.ts +0 -2
- package/src/sortable-tree/SortableTreeItem.tsx +1 -0
- package/yarn.lock +217 -244
- package/dist/assets/logo/licklist.sm.svg.js +0 -33
- package/dist/assets/logo/licklist.svg.js +0 -16
- package/dist/header/BookeditHeader.d.ts +0 -15
- package/dist/header/BookeditHeader.d.ts.map +0 -1
- package/dist/header/BookeditHeader.js +0 -21
- package/dist/header/Header.d.ts +0 -16
- package/dist/header/Header.d.ts.map +0 -1
- package/dist/header/Header.js +0 -55
- package/dist/header/LicklistHeader.d.ts +0 -15
- package/dist/header/LicklistHeader.d.ts.map +0 -1
- package/dist/header/LicklistHeader.js +0 -23
- package/dist/header/elements/CompanySelector.d.ts +0 -11
- package/dist/header/elements/CompanySelector.d.ts.map +0 -1
- package/dist/header/elements/CompanySelector.js +0 -36
- package/dist/header/elements/index.d.ts +0 -3
- package/dist/header/elements/index.d.ts.map +0 -1
- package/dist/header/index.d.ts +0 -6
- package/dist/header/index.d.ts.map +0 -1
- package/dist/setting/admin/AdminSettingForm.d.ts +0 -25
- package/dist/setting/admin/AdminSettingForm.d.ts.map +0 -1
- package/dist/setting/admin/AdminSettingForm.js +0 -220
- package/dist/setting/admin/PaymentFeeForm.d.ts +0 -13
- package/dist/setting/admin/PaymentFeeForm.d.ts.map +0 -1
- package/dist/setting/admin/PaymentFeeForm.js +0 -424
- package/dist/setting/admin/index.d.ts +0 -2
- package/dist/setting/admin/index.d.ts.map +0 -1
- package/dist/setting/system/SystemSettingForm.d.ts +0 -10
- package/dist/setting/system/SystemSettingForm.d.ts.map +0 -1
- package/dist/setting/system/SystemSettingForm.js +0 -95
- package/dist/setting/system/index.d.ts +0 -2
- package/dist/setting/system/index.d.ts.map +0 -1
- package/dist/types/currency.d.ts +0 -5
- package/dist/types/currency.d.ts.map +0 -1
- package/src/header/BookeditHeader.tsx +0 -38
- package/src/header/Header.stories.tsx +0 -123
- package/src/header/Header.tsx +0 -69
- package/src/header/LicklistHeader.tsx +0 -46
- package/src/header/elements/CompanySelector.tsx +0 -47
- package/src/header/elements/Elements.stories.tsx +0 -33
- package/src/header/elements/index.ts +0 -3
- package/src/header/index.ts +0 -7
- package/src/setting/admin/AdminSetting.stories.tsx +0 -52
- package/src/setting/admin/AdminSettingForm.tsx +0 -196
- package/src/setting/admin/PaymentFeeForm.tsx +0 -304
- package/src/setting/admin/index.ts +0 -1
- package/src/setting/system/SystemSetting.stories.tsx +0 -26
- package/src/setting/system/SystemSettingForm.tsx +0 -62
- package/src/setting/system/index.ts +0 -1
- package/src/types/currency.ts +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"Authorizer.d.ts","sourceRoot":"","sources":["../../src/auth/Authorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAA;AASnE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,UAAU,CAAC,KAAK,EAAE,eAAe,2CA2EzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
package/dist/auth/Authorizer.js
CHANGED
|
@@ -98,7 +98,8 @@ function Authorizer(props) {
|
|
|
98
98
|
ROUTES.TERMS_PAGE,
|
|
99
99
|
ROUTES.PRIVACY_FACTS_PAGE,
|
|
100
100
|
ROUTES.CHANGE_PASSWORD,
|
|
101
|
-
ROUTES.FORGOT_PASSWORD
|
|
101
|
+
ROUTES.FORGOT_PASSWORD,
|
|
102
|
+
ROUTES.SSO_LOGIN
|
|
102
103
|
].concat(_to_consumable_array(matchedPathPatternUrls())).includes(RouteService.getCurrentPage())) {
|
|
103
104
|
setIsValidated(function() {
|
|
104
105
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../src/auth/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"Router.d.ts","sourceRoot":"","sources":["../../src/auth/Router.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAA;CACnC;AAED,iBAAS,MAAM,CAAC,KAAK,EAAE,WAAW,2CA0BjC;AAED,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/dist/auth/Router.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useEffect } from 'react';
|
|
3
2
|
import { Router as Router$1 } from 'react-router-dom';
|
|
4
|
-
import App from '@licklist/plugins/dist/services/App/App';
|
|
5
3
|
import history from '@licklist/plugins/dist/services/History/History';
|
|
6
4
|
|
|
7
5
|
function Router(props) {
|
|
8
6
|
var children = props.children;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
// uncomment if necessary to debug history
|
|
8
|
+
// useEffect(() => {
|
|
9
|
+
// if (App.isDevelopment()) {
|
|
10
|
+
// console.info('initial history is: ', JSON.stringify(history, null, 2))
|
|
11
|
+
// history.listen((location, action) => {
|
|
12
|
+
// if (!location) {
|
|
13
|
+
// return
|
|
14
|
+
// }
|
|
15
|
+
// console.info(
|
|
16
|
+
// `The current URL is ${location.pathname}${location.search}${location.hash}`,
|
|
17
|
+
// )
|
|
18
|
+
// console.info(
|
|
19
|
+
// `The last navigation action was ${action}`,
|
|
20
|
+
// JSON.stringify(history, null, 2),
|
|
21
|
+
// )
|
|
22
|
+
// })
|
|
23
|
+
// }
|
|
24
|
+
// }, [])
|
|
21
25
|
// TODO fix issue react router types
|
|
22
26
|
// @ts-expect-error
|
|
23
27
|
return /*#__PURE__*/ jsx(Router$1, {
|
|
@@ -2,10 +2,9 @@ export declare const SALE_DEADLINE_NAME_CATEGORY = "saleDeadlineCategory";
|
|
|
2
2
|
export declare const SALE_DEADLINE_NAME = "saleDeadline";
|
|
3
3
|
export declare const DEADLINE_NAME: readonly ["saleDeadlineCategory", "saleDeadline"];
|
|
4
4
|
export type DeadLineNameType = (typeof DEADLINE_NAME)[number];
|
|
5
|
-
export declare const SaleDeadline: ({ disabled, onlyBefore,
|
|
5
|
+
export declare const SaleDeadline: ({ disabled, onlyBefore, deadLineCategory, }: {
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
onlyBefore?: boolean;
|
|
8
|
-
isProductSet?: boolean;
|
|
9
8
|
deadLineCategory?: string;
|
|
10
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
//# sourceMappingURL=SaleDeadline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"SaleDeadline.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SaleDeadline/SaleDeadline.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,2BAA2B,yBAAyB,CAAA;AACjE,eAAO,MAAM,kBAAkB,iBAAiB,CAAA;AAWhD,eAAO,MAAM,aAAa,mDAGhB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAA;AAU7D,eAAO,MAAM,YAAY,gDAItB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B,4CA8JA,CAAA"}
|
|
@@ -67,7 +67,7 @@ var SALE_DEADLINES_EVENT_START_TYPES = [
|
|
|
67
67
|
}
|
|
68
68
|
];
|
|
69
69
|
var SaleDeadline = function(param) {
|
|
70
|
-
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore,
|
|
70
|
+
var _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_onlyBefore = param.onlyBefore, onlyBefore = _param_onlyBefore === void 0 ? false : _param_onlyBefore, deadLineCategory = param.deadLineCategory;
|
|
71
71
|
var _errors_root;
|
|
72
72
|
var t = useTranslation([
|
|
73
73
|
'Design'
|
|
@@ -133,10 +133,9 @@ var SaleDeadline = function(param) {
|
|
|
133
133
|
name: "sale-deadline",
|
|
134
134
|
options: SALE_DEADLINES_EVENT_START_TYPES.map(function(param) {
|
|
135
135
|
var type = param.type;
|
|
136
|
-
var salesDeadlineTitle = type === SALE_DEADLINE_BEFORE_TYPE && isProductSet ? 'beforeProductSet' : type;
|
|
137
136
|
return {
|
|
138
137
|
id: type,
|
|
139
|
-
value: t("Design:".concat(
|
|
138
|
+
value: t("Design:".concat(type))
|
|
140
139
|
};
|
|
141
140
|
}),
|
|
142
141
|
value: deadlineType,
|
|
@@ -29,7 +29,6 @@ import 'react-bootstrap/Button';
|
|
|
29
29
|
import 'react-bootstrap/OverlayTrigger';
|
|
30
30
|
import 'react-bootstrap/Popover';
|
|
31
31
|
import '@licklist/plugins/dist/services/Form/HookFormService';
|
|
32
|
-
import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
33
32
|
import 'react-bootstrap/Collapse';
|
|
34
33
|
import '@licklist/plugins/dist/hooks/Media/useImages';
|
|
35
34
|
import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
@@ -73,6 +72,7 @@ import '../../../../../iframe/payment/payment-status-page/PaymentStatusPage.js';
|
|
|
73
72
|
import '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
74
73
|
import '../../../../../static/manual-date-picker/constants/index.js';
|
|
75
74
|
import '../../../../../iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js';
|
|
75
|
+
import '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
76
76
|
import '../../../../../sortable-tree/SortableTree.js';
|
|
77
77
|
import '@dnd-kit/core';
|
|
78
78
|
import '@dnd-kit/sortable';
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js
CHANGED
|
@@ -31,7 +31,6 @@ import { ProductWithModifierSetForm } from './ProductWithModifierSetForm.js';
|
|
|
31
31
|
|
|
32
32
|
var ProductWithModifierSetModal = function(param) {
|
|
33
33
|
var show = param.show, onHide = param.onHide, product = param.product, category = param.category, onChange = param.onChange, editOrderModifier = param.editOrderModifier;
|
|
34
|
-
var _product_images, _product_images1;
|
|
35
34
|
var _useDialogContext = useDialogContext(), onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState;
|
|
36
35
|
useOnWindowUnmount({
|
|
37
36
|
onBeforeUnload: onBeforeUnload,
|
|
@@ -58,14 +57,14 @@ var ProductWithModifierSetModal = function(param) {
|
|
|
58
57
|
className: "right-block",
|
|
59
58
|
id: "select-event-container",
|
|
60
59
|
children: /*#__PURE__*/ jsxs("div", {
|
|
61
|
-
className: clsx('manual-booking-container', !
|
|
60
|
+
className: clsx('manual-booking-container', !product.images.length && 'tw-mt-8'),
|
|
62
61
|
children: [
|
|
63
62
|
/*#__PURE__*/ jsx("div", {
|
|
64
63
|
className: "manual-booking-header",
|
|
65
64
|
children: /*#__PURE__*/ jsx(TicketDescription, {
|
|
66
65
|
title: product.name,
|
|
67
66
|
description: product.description,
|
|
68
|
-
className: clsx('iframe-event__product-description', !
|
|
67
|
+
className: clsx('iframe-event__product-description', !product.images.length && 'mt-6'),
|
|
69
68
|
classNameProductModal: "d-block",
|
|
70
69
|
images: product.images,
|
|
71
70
|
isRequired: product.isRequired,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAKrG,UAAU,aAAc,SAAQ,SAAS;IACvC,qBAAqB,CAAC,EAAG,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC1D;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,4CAyCrB,CAAA"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,QAAQ,CAAA;AACtB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,wBAAwB,CAAA;AACtC,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -29,10 +29,6 @@ export { EventCardSkeleton } from './events/event-card/EventCardSkeleton.js';
|
|
|
29
29
|
export { EventStatisticModal } from './events/event-statistic-modal/EventStatisticModal.js';
|
|
30
30
|
export { EventVenueMap } from './events/event-venue-map/EventVenueMap.js';
|
|
31
31
|
export { FileUpload } from './file-upload/FileUpload.js';
|
|
32
|
-
export { default as BookeditHeader } from './header/BookeditHeader.js';
|
|
33
|
-
export { default as LicklistHeader } from './header/LicklistHeader.js';
|
|
34
|
-
export { default as Header } from './header/Header.js';
|
|
35
|
-
export { default as CompanySelector } from './header/elements/CompanySelector.js';
|
|
36
32
|
export { Example, ExampleContent, ExampleToggle } from './help/example/Example.js';
|
|
37
33
|
export { HelpPopover } from './help/popover/HelpPopover.js';
|
|
38
34
|
export { EventBookingForm } from './iframe/event/event-booking-form/EventBookingForm.js';
|
|
@@ -137,8 +133,6 @@ export { RyftPayment } from './sales/payment-form/components/RyftPayment/RyftPay
|
|
|
137
133
|
export { BookingResults } from './sales/booking/results/BookingResults.js';
|
|
138
134
|
export { BACKGROUND_COLOR_CLASSNAMES } from './sales/booking/results/constants.js';
|
|
139
135
|
export { NotesTable } from './sales/notes/NotesTable.js';
|
|
140
|
-
export { SystemSettingForm } from './setting/system/SystemSettingForm.js';
|
|
141
|
-
export { AdminSettingForm } from './setting/admin/AdminSettingForm.js';
|
|
142
136
|
export { DashboardSettingForm } from './setting/dashboard/DashboardSettingForm.js';
|
|
143
137
|
export { SnippetCard } from './setting/dashboard/snippets/card/SnippetCard.js';
|
|
144
138
|
export { SnippetTemplateCard } from './setting/dashboard/snippet-templates/card/SnippetTemplateCard.js';
|
|
@@ -28,7 +28,7 @@ export interface ProductControlValues extends FormValues, ProductDepositControlV
|
|
|
28
28
|
originalProductId: number | null;
|
|
29
29
|
isUnlimited: boolean;
|
|
30
30
|
isRequired: boolean;
|
|
31
|
-
quantitySelector
|
|
31
|
+
quantitySelector?: number;
|
|
32
32
|
hasSpecialNotes: boolean;
|
|
33
33
|
minSpend?: number | null;
|
|
34
34
|
type?: ProductType;
|
|
@@ -54,5 +54,5 @@ export interface ProductControlProps<T> extends IsDeletableEvent, FieldNamePrefi
|
|
|
54
54
|
categoryType?: CategoryType;
|
|
55
55
|
isOverrides?: boolean;
|
|
56
56
|
}
|
|
57
|
-
export declare function ProductControl<T extends FormValues>({ isLoading, fieldNamePrefix, allowDeposits, hasBookingManagement, zoneList, onCopy, onProductNameChange, productName,
|
|
57
|
+
export declare function ProductControl<T extends FormValues>({ isLoading, fieldNamePrefix, allowDeposits, hasBookingManagement, zoneList, onCopy, onProductNameChange, productName, categoryType, isOverrides, }: ProductControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
58
58
|
//# sourceMappingURL=ProductControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAgBd,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { QUANTITY_TYPE_LIST_DTO, QUANTITY_TYPE_CONSTANT, QUANTITY_TYPE_RECHARGING } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
3
2
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import { useId } from '@react-aria/utils';
|
|
@@ -8,7 +7,7 @@ import { Form, Button } from 'react-bootstrap';
|
|
|
8
7
|
import Col from 'react-bootstrap/Col';
|
|
9
8
|
import Collapse from 'react-bootstrap/Collapse';
|
|
10
9
|
import Row from 'react-bootstrap/Row';
|
|
11
|
-
import { useFormContext,
|
|
10
|
+
import { useFormContext, Controller } from 'react-hook-form';
|
|
12
11
|
import { useTranslation } from 'react-i18next';
|
|
13
12
|
import { useImages } from '@licklist/plugins/dist/hooks/Media/useImages';
|
|
14
13
|
import { IMAGE_TYPE_IMAGE } from '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
|
|
@@ -22,7 +21,7 @@ import { ProductSetLoadingContext } from '../form/context.js';
|
|
|
22
21
|
import { ProductBookingManagementControl } from './booking-management/ProductBookingManagementControl.js';
|
|
23
22
|
import { ProductDepositControl } from './deposit/ProductDepositControl.js';
|
|
24
23
|
import { ProductQuantityControl } from './quantity/ProductQuantityControl.js';
|
|
25
|
-
import
|
|
24
|
+
import 'react-bootstrap/InputGroup';
|
|
26
25
|
import { ProductQuantityRechargingControl } from './quantity/ProductQuantityRechargingControl.js';
|
|
27
26
|
import { TipTapEditor } from '../../tiptap-editor/TipTapEditor.js';
|
|
28
27
|
import { ProductPriceControl } from './price/ProductPriceControl.js';
|
|
@@ -130,7 +129,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
130
129
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
131
130
|
}
|
|
132
131
|
function ProductControl(param) {
|
|
133
|
-
var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, fieldNamePrefix = param.fieldNamePrefix, _param_allowDeposits = param.allowDeposits, allowDeposits = _param_allowDeposits === void 0 ? false : _param_allowDeposits, _param_hasBookingManagement = param.hasBookingManagement, hasBookingManagement = _param_hasBookingManagement === void 0 ? false : _param_hasBookingManagement, _param_zoneList = param.zoneList, zoneList = _param_zoneList === void 0 ? [] : _param_zoneList, onCopy = param.onCopy, onProductNameChange = param.onProductNameChange, productName = param.productName,
|
|
132
|
+
var _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, fieldNamePrefix = param.fieldNamePrefix, _param_allowDeposits = param.allowDeposits, allowDeposits = _param_allowDeposits === void 0 ? false : _param_allowDeposits, _param_hasBookingManagement = param.hasBookingManagement, hasBookingManagement = _param_hasBookingManagement === void 0 ? false : _param_hasBookingManagement, _param_zoneList = param.zoneList, zoneList = _param_zoneList === void 0 ? [] : _param_zoneList, onCopy = param.onCopy, onProductNameChange = param.onProductNameChange, productName = param.productName, categoryType = param.categoryType, _param_isOverrides = param.isOverrides, isOverrides = _param_isOverrides === void 0 ? false : _param_isOverrides;
|
|
134
133
|
var _useFormContext = useFormContext(), register = _useFormContext.register, control = _useFormContext.control, errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, getValues = _useFormContext.getValues, watch = _useFormContext.watch;
|
|
135
134
|
var _useContext = useContext(ProductSetLoadingContext), setLoading = _useContext.setLoading, modifiersSetList = _useContext.modifiersSetList;
|
|
136
135
|
var t = useTranslation([
|
|
@@ -147,28 +146,13 @@ function ProductControl(param) {
|
|
|
147
146
|
var descriptionId = useId();
|
|
148
147
|
var isAvailableId = useId();
|
|
149
148
|
var isSoldOutId = useId();
|
|
150
|
-
var quantitySelectorId = useId();
|
|
151
149
|
var unlimitedQuantityId = useId();
|
|
152
150
|
var isZoneCategory = checkIfZoneCategory(categoryType);
|
|
153
|
-
var quantitySelectorList = [
|
|
154
|
-
{
|
|
155
|
-
id: 1,
|
|
156
|
-
value: t('quantitySelector')
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
id: 2,
|
|
160
|
-
value: t('stockControl')
|
|
161
|
-
}
|
|
162
|
-
];
|
|
163
151
|
var handleExpand = useCallback(function() {
|
|
164
152
|
return setExpanded(function(prevExpanded) {
|
|
165
153
|
return !prevExpanded;
|
|
166
154
|
});
|
|
167
155
|
}, []);
|
|
168
|
-
var quantityValue = useWatch({
|
|
169
|
-
control: control,
|
|
170
|
-
name: "".concat(fieldNamePrefix, ".quantitySelector")
|
|
171
|
-
});
|
|
172
156
|
var _useImages = useImages(initialImages), images = _useImages.images, handleImageRemove = _useImages.handleImageRemove, handleImageUploading = _useImages.handleImageUploading, isImageUploading = _useImages.isLoading;
|
|
173
157
|
var onFilesChange = useCallback(function(files) {
|
|
174
158
|
handleImageUploading(files, IMAGE_TYPE_IMAGE);
|
|
@@ -206,8 +190,6 @@ function ProductControl(param) {
|
|
|
206
190
|
fieldNamePrefix,
|
|
207
191
|
setValue
|
|
208
192
|
]);
|
|
209
|
-
var quantitySelector = quantityValue !== null && quantityValue !== void 0 ? quantityValue : '1';
|
|
210
|
-
var quantity = QUANTITY_TYPE_LIST_DTO[quantitySelector];
|
|
211
193
|
var modifierList = convertToTypeaheadOptions(modifiersSetList);
|
|
212
194
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
213
195
|
children: [
|
|
@@ -294,13 +276,7 @@ function ProductControl(param) {
|
|
|
294
276
|
isOverrides: isOverrides,
|
|
295
277
|
onFocus: onFocus
|
|
296
278
|
}),
|
|
297
|
-
|
|
298
|
-
isLoading: isLoading,
|
|
299
|
-
fieldNamePrefix: fieldNamePrefix,
|
|
300
|
-
onFocus: onFocus,
|
|
301
|
-
disabled: isUnlimited
|
|
302
|
-
}),
|
|
303
|
-
quantity === QUANTITY_TYPE_RECHARGING && /*#__PURE__*/ jsx(ProductQuantityRechargingControl, {
|
|
279
|
+
/*#__PURE__*/ jsx(ProductQuantityRechargingControl, {
|
|
304
280
|
isLoading: isLoading,
|
|
305
281
|
fieldNamePrefix: fieldNamePrefix,
|
|
306
282
|
onFocus: onFocus,
|
|
@@ -323,31 +299,6 @@ function ProductControl(param) {
|
|
|
323
299
|
]
|
|
324
300
|
})
|
|
325
301
|
]
|
|
326
|
-
}),
|
|
327
|
-
/*#__PURE__*/ jsxs(Form.Group, {
|
|
328
|
-
controlId: quantitySelectorId,
|
|
329
|
-
children: [
|
|
330
|
-
/*#__PURE__*/ jsx(Form.Label, {
|
|
331
|
-
children: t('quantitySelectorType')
|
|
332
|
-
}),
|
|
333
|
-
/*#__PURE__*/ jsx(Form.Control, _object_spread_props(_object_spread({
|
|
334
|
-
as: "select",
|
|
335
|
-
defaultValue: hasTicket ? quantitySelectorList[0].id : undefined
|
|
336
|
-
}, register("".concat(fieldNamePrefix, ".quantitySelector"))), {
|
|
337
|
-
isInvalid: HookFormService.isInvalid("".concat(fieldNamePrefix, ".quantitySelector"), errors),
|
|
338
|
-
disabled: isLoading || hasTicket || isOverrides,
|
|
339
|
-
children: quantitySelectorList.map(function(selector) {
|
|
340
|
-
return /*#__PURE__*/ jsx("option", {
|
|
341
|
-
value: selector.id,
|
|
342
|
-
children: selector.value
|
|
343
|
-
}, selector.id);
|
|
344
|
-
})
|
|
345
|
-
})),
|
|
346
|
-
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
347
|
-
type: "invalid",
|
|
348
|
-
children: HookFormService.getErrors("".concat(fieldNamePrefix, ".quantitySelector"), errors)
|
|
349
|
-
})
|
|
350
|
-
]
|
|
351
302
|
})
|
|
352
303
|
]
|
|
353
304
|
})
|
|
@@ -44,7 +44,7 @@ export declare const updateModifiersSetAtProductSetForm: (data: ProductSetFormVa
|
|
|
44
44
|
originalProductId: number | null;
|
|
45
45
|
isUnlimited: boolean;
|
|
46
46
|
isRequired: boolean;
|
|
47
|
-
quantitySelector
|
|
47
|
+
quantitySelector?: number;
|
|
48
48
|
hasSpecialNotes: boolean;
|
|
49
49
|
minSpend?: number | null;
|
|
50
50
|
type?: import("@licklist/core/dist/DataMapper/Product/ProductDataMapper").ProductType;
|
|
@@ -23,9 +23,10 @@ export interface CouponFormProps {
|
|
|
23
23
|
productGroups?: ProductGroup[];
|
|
24
24
|
defaultValues?: CouponFormValues;
|
|
25
25
|
onSubmit: (values: CouponFormValues) => void;
|
|
26
|
+
onCancel: () => void;
|
|
26
27
|
isLoading?: boolean;
|
|
27
28
|
hasPermission: boolean;
|
|
28
29
|
serverErrors?: ServerError;
|
|
29
30
|
}
|
|
30
|
-
export declare const CouponForm: ({ onSubmit, defaultValues, isLoading, productGroups, hasPermission, serverErrors, }: CouponFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const CouponForm: ({ onSubmit, onCancel, defaultValues, isLoading, productGroups, hasPermission, serverErrors, }: CouponFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
//# sourceMappingURL=CouponFrom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouponFrom.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/form/CouponFrom.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,eAAe,EAChB,MAAM,+DAA+D,CAAA;AACtE,OAAO,EACL,eAAe,EACf,UAAU,EACX,MAAM,yDAAyD,CAAA;AAIhE,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;
|
|
1
|
+
{"version":3,"file":"CouponFrom.d.ts","sourceRoot":"","sources":["../../../../src/sales/coupon/form/CouponFrom.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,eAAe,EAChB,MAAM,+DAA+D,CAAA;AACtE,OAAO,EACL,eAAe,EACf,UAAU,EACX,MAAM,yDAAyD,CAAA;AAIhE,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAI3E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,UAAU,CAAA;IACxB,eAAe,EAAE,eAAe,EAAE,CAAA;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,eAAe,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,cAAc,EAAE,MAAM,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,aAAa,CAAC,EAAE,gBAAgB,CAAA;IAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAA;IAC5C,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B;AAED,eAAO,MAAM,UAAU,kGAQpB,eAAe,4CA6CjB,CAAA"}
|
|
@@ -59,7 +59,7 @@ function _object_spread_props(target, source) {
|
|
|
59
59
|
return target;
|
|
60
60
|
}
|
|
61
61
|
var CouponForm = function(param) {
|
|
62
|
-
var onSubmit = param.onSubmit, defaultValues = param.defaultValues, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, productGroups = param.productGroups, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? false : _param_hasPermission, serverErrors = param.serverErrors;
|
|
62
|
+
var onSubmit = param.onSubmit, onCancel = param.onCancel, defaultValues = param.defaultValues, _param_isLoading = param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, productGroups = param.productGroups, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? false : _param_hasPermission, serverErrors = param.serverErrors;
|
|
63
63
|
var form = useForm({
|
|
64
64
|
defaultValues: defaultValues
|
|
65
65
|
});
|
|
@@ -85,11 +85,24 @@ var CouponForm = function(param) {
|
|
|
85
85
|
productGroups: productGroups,
|
|
86
86
|
isLoading: isLoading
|
|
87
87
|
}),
|
|
88
|
-
hasPermission && /*#__PURE__*/
|
|
89
|
-
className: "
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
hasPermission && /*#__PURE__*/ jsxs("div", {
|
|
89
|
+
className: "tw-flex tw-gap-4",
|
|
90
|
+
children: [
|
|
91
|
+
/*#__PURE__*/ jsx(Button, {
|
|
92
|
+
className: "d-md-block mt-5",
|
|
93
|
+
type: "submit",
|
|
94
|
+
disabled: isLoading,
|
|
95
|
+
children: t('save')
|
|
96
|
+
}),
|
|
97
|
+
/*#__PURE__*/ jsx(Button, {
|
|
98
|
+
className: "mt-5 d-md-block",
|
|
99
|
+
variant: "outline-primary",
|
|
100
|
+
type: "reset",
|
|
101
|
+
onClick: onCancel,
|
|
102
|
+
disabled: isLoading,
|
|
103
|
+
children: t('cancel')
|
|
104
|
+
})
|
|
105
|
+
]
|
|
93
106
|
})
|
|
94
107
|
]
|
|
95
108
|
})
|
package/dist/setting/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/setting/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/setting/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAA;AAiBd,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAA;AAEV,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAA;AAEtE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,IAAI,EAAE,SAAS,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,CAAC,EAAE,0BAA0B,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;IACjC,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAA;QACb,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;IACD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAkB,EAClB,YAAmB,EACnB,SAAiB,EACjB,cAAqB,EACrB,iBAAsB,EACtB,UAAe,EACf,UAAU,EACV,UAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,cAAc,EACd,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,UAAU,GACX,EAAE,qBAAqB,2CA+TvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.73-stage.0",
|
|
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.32.14",
|
|
45
|
+
"@licklist/core": "0.32.14-stage.0",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.35.
|
|
47
|
+
"@licklist/plugins": "0.35.6-stage.2",
|
|
48
48
|
"lodash": "4.17.21",
|
|
49
49
|
"luxon": "3.5.0",
|
|
50
50
|
"react": "17.0.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
62
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
63
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.32.14",
|
|
64
|
+
"@licklist/core": "0.32.14-stage.0",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.35.
|
|
66
|
+
"@licklist/plugins": "0.35.6-stage.2",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
68
68
|
"@mantine/hooks": "6.0.22",
|
|
69
69
|
"@mdx-js/react": "1.6.22",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@wojtekmaj/react-daterange-picker": "4.1.0",
|
|
95
95
|
"bootstrap": "4.6.0",
|
|
96
96
|
"bootstrap-social": "5.1.1",
|
|
97
|
-
"clsx": "
|
|
97
|
+
"clsx": "2.1.1",
|
|
98
98
|
"date-fns": "2.29.3",
|
|
99
99
|
"emojibase": "6.1.0",
|
|
100
100
|
"emojibase-data": "7.0.1",
|
|
@@ -195,6 +195,10 @@
|
|
|
195
195
|
"vite-plugin-svgr": "4.2.0",
|
|
196
196
|
"vite-tsconfig-paths": "5.0.1"
|
|
197
197
|
},
|
|
198
|
+
"resolutions": {
|
|
199
|
+
"@types/react": "17.0.80",
|
|
200
|
+
"@types/react-dom": "17.0.25"
|
|
201
|
+
},
|
|
198
202
|
"lint-staged": {
|
|
199
203
|
"*.{ts,tsx}": [
|
|
200
204
|
"yarn lint:fix",
|
|
@@ -205,5 +209,6 @@
|
|
|
205
209
|
"volta": {
|
|
206
210
|
"node": "20.9.0",
|
|
207
211
|
"yarn": "4.4.0"
|
|
208
|
-
}
|
|
212
|
+
},
|
|
213
|
+
"stableVersion": "0.71.19-stage.1"
|
|
209
214
|
}
|
package/src/auth/Authorizer.tsx
CHANGED
package/src/auth/Router.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ReactNode
|
|
1
|
+
import { ReactNode } from 'react'
|
|
2
2
|
import { Router as BrowserRouter } from 'react-router-dom'
|
|
3
|
-
import App from '@licklist/plugins/dist/services/App/App'
|
|
4
3
|
import history from '@licklist/plugins/dist/services/History/History'
|
|
5
4
|
|
|
6
5
|
export interface RouterProps {
|
|
@@ -10,24 +9,25 @@ export interface RouterProps {
|
|
|
10
9
|
function Router(props: RouterProps) {
|
|
11
10
|
const { children } = props
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
// uncomment if necessary to debug history
|
|
13
|
+
// useEffect(() => {
|
|
14
|
+
// if (App.isDevelopment()) {
|
|
15
|
+
// console.info('initial history is: ', JSON.stringify(history, null, 2))
|
|
16
|
+
// history.listen((location, action) => {
|
|
17
|
+
// if (!location) {
|
|
18
|
+
// return
|
|
19
|
+
// }
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, [])
|
|
21
|
+
// console.info(
|
|
22
|
+
// `The current URL is ${location.pathname}${location.search}${location.hash}`,
|
|
23
|
+
// )
|
|
24
|
+
// console.info(
|
|
25
|
+
// `The last navigation action was ${action}`,
|
|
26
|
+
// JSON.stringify(history, null, 2),
|
|
27
|
+
// )
|
|
28
|
+
// })
|
|
29
|
+
// }
|
|
30
|
+
// }, [])
|
|
31
31
|
|
|
32
32
|
// TODO fix issue react router types
|
|
33
33
|
// @ts-expect-error
|
|
@@ -39,12 +39,10 @@ type SaleDeadlineType =
|
|
|
39
39
|
export const SaleDeadline = ({
|
|
40
40
|
disabled = false,
|
|
41
41
|
onlyBefore = false,
|
|
42
|
-
isProductSet = false,
|
|
43
42
|
deadLineCategory,
|
|
44
43
|
}: {
|
|
45
44
|
disabled?: boolean
|
|
46
45
|
onlyBefore?: boolean
|
|
47
|
-
isProductSet?: boolean
|
|
48
46
|
deadLineCategory?: string
|
|
49
47
|
}) => {
|
|
50
48
|
const { t } = useTranslation(['Design'])
|
|
@@ -142,16 +140,10 @@ export const SaleDeadline = ({
|
|
|
142
140
|
<Switch
|
|
143
141
|
name='sale-deadline'
|
|
144
142
|
options={SALE_DEADLINES_EVENT_START_TYPES.map(
|
|
145
|
-
({ type }) => {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
: type
|
|
150
|
-
return {
|
|
151
|
-
id: type,
|
|
152
|
-
value: t(`Design:${salesDeadlineTitle}`),
|
|
153
|
-
}
|
|
154
|
-
},
|
|
143
|
+
({ type }) => ({
|
|
144
|
+
id: type,
|
|
145
|
+
value: t(`Design:${type}`),
|
|
146
|
+
}),
|
|
155
147
|
)}
|
|
156
148
|
value={deadlineType}
|
|
157
149
|
onChange={changeValueByType}
|
package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx
CHANGED
|
@@ -48,12 +48,12 @@ export const ProductWithModifierSetModal = ({
|
|
|
48
48
|
</button>
|
|
49
49
|
</div>
|
|
50
50
|
<div className='right-block' id='select-event-container'>
|
|
51
|
-
<div className={clsx('manual-booking-container', !product
|
|
51
|
+
<div className={clsx('manual-booking-container', !product.images.length && 'tw-mt-8')}>
|
|
52
52
|
<div className='manual-booking-header'>
|
|
53
53
|
<TicketDescription
|
|
54
54
|
title={product.name}
|
|
55
55
|
description={product.description}
|
|
56
|
-
className={clsx('iframe-event__product-description', !product
|
|
56
|
+
className={clsx('iframe-event__product-description', !product.images.length && 'mt-6')}
|
|
57
57
|
classNameProductModal='d-block'
|
|
58
58
|
images={product.images}
|
|
59
59
|
isRequired={product.isRequired}
|