@licklist/design 0.76.0-stage.1 → 0.76.0-stage.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.
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +2 -10
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -2
- package/package.json +1 -1
- package/src/events/event-card/EventCard.tsx +0 -7
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/yarn.lock +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventCard.d.ts","sourceRoot":"","sources":["../../../src/events/event-card/EventCard.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AASjG,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAS3C,MAAM,WAAW,cAAe,SAAQ,iBAAiB;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,YAAY,EAAE,MAAM,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IACtC,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB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R,KAAK,EACL,SAAS,EACT,MAAM,EACN,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,aAAoB,EACpB,cAAc,EACd,WAAW,EACX,cAAc,EACd,OAAO,EACP,aAAa,EACb,OAAO,GACR,EAAE,cAAc,2CA0JhB"}
|
|
@@ -6,7 +6,6 @@ import clsx from 'clsx';
|
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import * as Config from '@licklist/core/dist/Config';
|
|
8
8
|
import { FaEye, FaQrcode, FaExternalLinkAlt, FaEdit, FaCopy, FaTrashAlt } from 'react-icons/fa';
|
|
9
|
-
import { TipTapEditor } from '../../tiptap-editor/TipTapEditor.js';
|
|
10
9
|
import { getStatisticInfo, formatContent, EVENT_DESCRIPTION_SIZE } from './utils.js';
|
|
11
10
|
import { ReactComponent as SvgChartBar } from '../../assets/dashboard/chartBar.svg.js';
|
|
12
11
|
|
|
@@ -38,13 +37,13 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
38
37
|
return target;
|
|
39
38
|
}
|
|
40
39
|
function EventCard(param) {
|
|
41
|
-
var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, onOpenQrCode = param.onOpenQrCode, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId
|
|
40
|
+
var name = param.name, description = param.description, date = param.date, imageUrl = param.imageUrl, sales = param.sales, onPreview = param.onPreview, onEdit = param.onEdit, onCopy = param.onCopy, onRemove = param.onRemove, onOpenQrCode = param.onOpenQrCode, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, productSetName = param.productSetName, onStatistic = param.onStatistic, eventStatistic = param.eventStatistic, titleId = param.titleId; param.descriptionId; var eventID = param.eventID;
|
|
42
41
|
var t = useTranslation('Design').t;
|
|
43
42
|
var _useIntl = useIntl(), formatNumber = _useIntl.formatNumber, formatDate = _useIntl.formatDate;
|
|
44
43
|
var _getStatisticInfo = getStatisticInfo(eventStatistic, date), totalViews = _getStatisticInfo.totalViews, statistics = _object_without_properties(_getStatisticInfo, [
|
|
45
44
|
"totalViews"
|
|
46
45
|
]);
|
|
47
|
-
|
|
46
|
+
useMemo(function() {
|
|
48
47
|
return formatContent(description, EVENT_DESCRIPTION_SIZE);
|
|
49
48
|
}, [
|
|
50
49
|
description
|
|
@@ -93,13 +92,6 @@ function EventCard(param) {
|
|
|
93
92
|
/*#__PURE__*/ jsxs("div", {
|
|
94
93
|
className: "flex-grow-1",
|
|
95
94
|
children: [
|
|
96
|
-
/*#__PURE__*/ jsx(TipTapEditor, {
|
|
97
|
-
viewMode: true,
|
|
98
|
-
disabled: true,
|
|
99
|
-
className: clsx('event-description', !imageUrl && 'no-image'),
|
|
100
|
-
content: memoedContent,
|
|
101
|
-
id: descriptionId
|
|
102
|
-
}),
|
|
103
95
|
/*#__PURE__*/ jsx("div", {
|
|
104
96
|
className: "mt-2 ml-2",
|
|
105
97
|
children: Object.keys(statistics).map(function(key) {
|
package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js
CHANGED
|
@@ -31,6 +31,7 @@ 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;
|
|
34
35
|
var _useDialogContext = useDialogContext(), onBeforeUnload = _useDialogContext.onBeforeUnload, onPopState = _useDialogContext.onPopState;
|
|
35
36
|
useOnWindowUnmount({
|
|
36
37
|
onBeforeUnload: onBeforeUnload,
|
|
@@ -57,14 +58,14 @@ var ProductWithModifierSetModal = function(param) {
|
|
|
57
58
|
className: "right-block",
|
|
58
59
|
id: "select-event-container",
|
|
59
60
|
children: /*#__PURE__*/ jsxs("div", {
|
|
60
|
-
className: clsx('manual-booking-container', !product.images.length && 'tw-mt-8'),
|
|
61
|
+
className: clsx('manual-booking-container', !(product === null || product === void 0 ? void 0 : (_product_images = product.images) === null || _product_images === void 0 ? void 0 : _product_images.length) && 'tw-mt-8'),
|
|
61
62
|
children: [
|
|
62
63
|
/*#__PURE__*/ jsx("div", {
|
|
63
64
|
className: "manual-booking-header",
|
|
64
65
|
children: /*#__PURE__*/ jsx(TicketDescription, {
|
|
65
66
|
title: product.name,
|
|
66
67
|
description: product.description,
|
|
67
|
-
className: clsx('iframe-event__product-description', !product.images.length && 'mt-6'),
|
|
68
|
+
className: clsx('iframe-event__product-description', !(product === null || product === void 0 ? void 0 : (_product_images1 = product.images) === null || _product_images1 === void 0 ? void 0 : _product_images1.length) && 'mt-6'),
|
|
68
69
|
classNameProductModal: "d-block",
|
|
69
70
|
images: product.images,
|
|
70
71
|
isRequired: product.isRequired,
|
package/package.json
CHANGED
|
@@ -109,13 +109,6 @@ export function EventCard({
|
|
|
109
109
|
)}
|
|
110
110
|
</Card.Title>
|
|
111
111
|
<div className='flex-grow-1'>
|
|
112
|
-
<TipTapEditor
|
|
113
|
-
viewMode
|
|
114
|
-
disabled
|
|
115
|
-
className={clsx('event-description', !imageUrl && 'no-image')}
|
|
116
|
-
content={memoedContent}
|
|
117
|
-
id={descriptionId}
|
|
118
|
-
/>
|
|
119
112
|
<div className='mt-2 ml-2'>
|
|
120
113
|
{Object.keys(statistics).map((key) => (
|
|
121
114
|
<div className='event-card-sale' key={key}>
|
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}
|
package/yarn.lock
CHANGED
|
@@ -5703,11 +5703,11 @@ __metadata:
|
|
|
5703
5703
|
linkType: hard
|
|
5704
5704
|
|
|
5705
5705
|
"@types/node@npm:*":
|
|
5706
|
-
version: 24.0.
|
|
5707
|
-
resolution: "@types/node@npm:24.0.
|
|
5706
|
+
version: 24.0.3
|
|
5707
|
+
resolution: "@types/node@npm:24.0.3"
|
|
5708
5708
|
dependencies:
|
|
5709
5709
|
undici-types: "npm:~7.8.0"
|
|
5710
|
-
checksum: 10c0/
|
|
5710
|
+
checksum: 10c0/9c3c4e87600d1cf11e291c2fd4bfd806a615455463c30a0ef6dc9c801b3423344d9b82b8084e3ccabce485a7421ebb61a66e9676181bd7d9aea4759998a120d5
|
|
5711
5711
|
languageName: node
|
|
5712
5712
|
linkType: hard
|
|
5713
5713
|
|
|
@@ -17124,12 +17124,12 @@ __metadata:
|
|
|
17124
17124
|
linkType: hard
|
|
17125
17125
|
|
|
17126
17126
|
"pump@npm:^3.0.0":
|
|
17127
|
-
version: 3.0.
|
|
17128
|
-
resolution: "pump@npm:3.0.
|
|
17127
|
+
version: 3.0.3
|
|
17128
|
+
resolution: "pump@npm:3.0.3"
|
|
17129
17129
|
dependencies:
|
|
17130
17130
|
end-of-stream: "npm:^1.1.0"
|
|
17131
17131
|
once: "npm:^1.3.1"
|
|
17132
|
-
checksum: 10c0/
|
|
17132
|
+
checksum: 10c0/ada5cdf1d813065bbc99aa2c393b8f6beee73b5de2890a8754c9f488d7323ffd2ca5f5a0943b48934e3fcbd97637d0337369c3c631aeb9614915db629f1c75c9
|
|
17133
17133
|
languageName: node
|
|
17134
17134
|
linkType: hard
|
|
17135
17135
|
|