@licklist/design 0.70.6 → 0.70.7
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/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +0 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +0 -1
- package/dist/snippet/snippet-template/preview/Preview.d.ts.map +1 -1
- package/dist/snippet/snippet-template/preview/Preview.js +3 -3
- package/package.json +2 -2
- package/src/snippet/snippet-template/preview/Preview.tsx +7 -5
- package/yarn.lock +32 -17
|
@@ -39,7 +39,6 @@ import '../../../../../tiptap-editor/TipTapEditor.js';
|
|
|
39
39
|
import '@licklist/core/dist/DataMapper/Product/ProductDataMapper';
|
|
40
40
|
import '@licklist/core/dist/DataMapper/Provider/SnippetTemplateDataMapper';
|
|
41
41
|
import 'react-color';
|
|
42
|
-
import '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
43
42
|
import '../../../../../calendar/Calendar.js';
|
|
44
43
|
import 'luxon';
|
|
45
44
|
import 'react-intl';
|
|
@@ -16,7 +16,6 @@ import 'react-bootstrap/Col';
|
|
|
16
16
|
import '@licklist/plugins/dist/services/Form/FormErrorService';
|
|
17
17
|
import '@licklist/plugins/dist/services/Form/HookFormService';
|
|
18
18
|
import 'react-router-dom';
|
|
19
|
-
import '@licklist/core/dist/DataMapper/Provider/SnippetDataMapper';
|
|
20
19
|
import '../../../calendar/Calendar.js';
|
|
21
20
|
import 'clsx';
|
|
22
21
|
import 'luxon';
|
|
@@ -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":"AAmCA,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,2CAgWd"}
|
|
@@ -3,7 +3,7 @@ import { useState, useContext } from 'react';
|
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { MemoryRouter } from 'react-router-dom';
|
|
5
5
|
import { Button } from 'react-bootstrap';
|
|
6
|
-
import {
|
|
6
|
+
import { SNIPPET_TEMPLATE_TYPE_VENUE_MAP, SNIPPET_TEMPLATE_TYPE_EVENT_LIST } from '@licklist/core/dist/DataMapper/Provider/SnippetTemplateDataMapper';
|
|
7
7
|
import { defaultStartDay, Calendar } from '../../../calendar/Calendar.js';
|
|
8
8
|
import 'clsx';
|
|
9
9
|
import { getMonthCalendarDates } from '../../../calendar/utils/index.js';
|
|
@@ -115,7 +115,7 @@ function Preview(param) {
|
|
|
115
115
|
var _useState = _sliced_to_array(useState(0), 2), value = _useState[0], setValue = _useState[1];
|
|
116
116
|
var _useState1 = _sliced_to_array(useState(0), 2), productSetId = _useState1[0], onSelectProductSet = _useState1[1];
|
|
117
117
|
var setView = useContext(SnippetTemplateViewContext).setView;
|
|
118
|
-
var _useContext = useContext(SnippetTemplateContext), _useContext_template = _useContext.template, _useContext_template_type = _useContext_template.type, type = _useContext_template_type === void 0 ?
|
|
118
|
+
var _useContext = useContext(SnippetTemplateContext), _useContext_template = _useContext.template, _useContext_template_type = _useContext_template.type, type = _useContext_template_type === void 0 ? SNIPPET_TEMPLATE_TYPE_EVENT_LIST : _useContext_template_type;
|
|
119
119
|
var handleOnClick = function(nextView) {
|
|
120
120
|
setView(nextView);
|
|
121
121
|
onSettingClick();
|
|
@@ -341,7 +341,7 @@ function Preview(param) {
|
|
|
341
341
|
})
|
|
342
342
|
]
|
|
343
343
|
}),
|
|
344
|
-
providerHasMap && type ===
|
|
344
|
+
providerHasMap && type === SNIPPET_TEMPLATE_TYPE_VENUE_MAP && /*#__PURE__*/ jsxs(Fragment, {
|
|
345
345
|
children: [
|
|
346
346
|
/*#__PURE__*/ jsxs("div", {
|
|
347
347
|
className: "pt-4",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.70.
|
|
3
|
+
"version": "0.70.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -61,7 +61,7 @@
|
|
|
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.
|
|
64
|
+
"@licklist/core": "0.31.3",
|
|
65
65
|
"@licklist/eslint-config": "0.5.6",
|
|
66
66
|
"@licklist/plugins": "0.33.6",
|
|
67
67
|
"@mantine/core": "6.0.22",
|
|
@@ -3,9 +3,10 @@ import { useTranslation } from 'react-i18next'
|
|
|
3
3
|
import { MemoryRouter } from 'react-router-dom'
|
|
4
4
|
import { Button } from 'react-bootstrap'
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from '@licklist/core/dist/DataMapper/Provider/
|
|
6
|
+
SNIPPET_TEMPLATE_TYPE_VENUE_MAP,
|
|
7
|
+
SNIPPET_TEMPLATE_TYPE_EVENT_LIST,
|
|
8
|
+
} from '@licklist/core/dist/DataMapper/Provider/SnippetTemplateDataMapper'
|
|
9
|
+
|
|
9
10
|
import { ProductSet } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper'
|
|
10
11
|
import { DateTime } from 'luxon'
|
|
11
12
|
import { Calendar, CalendarProps, defaultStartDay } from '../../../calendar'
|
|
@@ -28,6 +29,7 @@ import {
|
|
|
28
29
|
import { NumberInput } from '../../../iframe/order-process/components/CategoryProduct/components/NumberInput'
|
|
29
30
|
import { SnippetTemplateContext } from '../context/snippetTemplate'
|
|
30
31
|
|
|
32
|
+
|
|
31
33
|
const DEFAULT_IMAGE =
|
|
32
34
|
'https://images.unsplash.com/photo-1638988319382-90e61be77c59?ixlib=rb-1.2.1&auto=format&fit=crop&w=687&q=80'
|
|
33
35
|
|
|
@@ -46,7 +48,7 @@ export function Preview({
|
|
|
46
48
|
|
|
47
49
|
const { setView } = useContext(SnippetTemplateViewContext)
|
|
48
50
|
const {
|
|
49
|
-
template: { type =
|
|
51
|
+
template: { type = SNIPPET_TEMPLATE_TYPE_EVENT_LIST },
|
|
50
52
|
} = useContext(SnippetTemplateContext)
|
|
51
53
|
|
|
52
54
|
const handleOnClick = (nextView: keyof typeof snippetTemplateViews) => {
|
|
@@ -192,7 +194,7 @@ export function Preview({
|
|
|
192
194
|
</div>
|
|
193
195
|
</SettingButton>
|
|
194
196
|
|
|
195
|
-
{providerHasMap && type ===
|
|
197
|
+
{providerHasMap && type === SNIPPET_TEMPLATE_TYPE_VENUE_MAP && (
|
|
196
198
|
<>
|
|
197
199
|
<div className='pt-4'>
|
|
198
200
|
<h4>{t('Calendar')}</h4>
|
package/yarn.lock
CHANGED
|
@@ -2492,9 +2492,9 @@ __metadata:
|
|
|
2492
2492
|
languageName: node
|
|
2493
2493
|
linkType: hard
|
|
2494
2494
|
|
|
2495
|
-
"@licklist/core@npm:0.
|
|
2496
|
-
version: 0.
|
|
2497
|
-
resolution: "@licklist/core@npm:0.
|
|
2495
|
+
"@licklist/core@npm:0.31.3":
|
|
2496
|
+
version: 0.31.3
|
|
2497
|
+
resolution: "@licklist/core@npm:0.31.3"
|
|
2498
2498
|
dependencies:
|
|
2499
2499
|
"@sentry/browser": "npm:6.2.0"
|
|
2500
2500
|
axios: "npm:0.26.0"
|
|
@@ -2506,6 +2506,7 @@ __metadata:
|
|
|
2506
2506
|
react-intl: "npm:6.6.8"
|
|
2507
2507
|
uuid: "npm:9.0.0"
|
|
2508
2508
|
wait-for-expect: "npm:3.0.2"
|
|
2509
|
+
zustand: "npm:3.7.2"
|
|
2509
2510
|
peerDependencies:
|
|
2510
2511
|
"@licklist/eslint-config": 0.5.6
|
|
2511
2512
|
axios: 0.26.0
|
|
@@ -2514,7 +2515,8 @@ __metadata:
|
|
|
2514
2515
|
react-dom: 17.0.2
|
|
2515
2516
|
react-i18next: 11.8.8
|
|
2516
2517
|
react-intl: 6.6.8
|
|
2517
|
-
|
|
2518
|
+
zustand: 3.7.2
|
|
2519
|
+
checksum: 10c0/614fc7baaf0ba650fd1bc2a012d929993dc3ec280b0cf4d5a37711f84f2c64e810d27cf645a7b127c0203cf83d969d49df493c7e41f9d0978b2a9217a2dd0fe8
|
|
2518
2520
|
languageName: node
|
|
2519
2521
|
linkType: hard
|
|
2520
2522
|
|
|
@@ -2529,7 +2531,7 @@ __metadata:
|
|
|
2529
2531
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2530
2532
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2531
2533
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2532
|
-
"@licklist/core": "npm:0.
|
|
2534
|
+
"@licklist/core": "npm:0.31.3"
|
|
2533
2535
|
"@licklist/eslint-config": "npm:0.5.6"
|
|
2534
2536
|
"@licklist/plugins": "npm:0.33.6"
|
|
2535
2537
|
"@mantine/core": "npm:6.0.22"
|
|
@@ -5694,11 +5696,11 @@ __metadata:
|
|
|
5694
5696
|
linkType: hard
|
|
5695
5697
|
|
|
5696
5698
|
"@types/node@npm:*":
|
|
5697
|
-
version: 22.
|
|
5698
|
-
resolution: "@types/node@npm:22.
|
|
5699
|
+
version: 22.9.0
|
|
5700
|
+
resolution: "@types/node@npm:22.9.0"
|
|
5699
5701
|
dependencies:
|
|
5700
5702
|
undici-types: "npm:~6.19.8"
|
|
5701
|
-
checksum: 10c0/
|
|
5703
|
+
checksum: 10c0/3f46cbe0a49bab4ba30494025e4c8a6e699b98ac922857aa1f0209ce11a1313ee46e6808b8f13fe5b8b960a9d7796b77c8d542ad4e9810e85ef897d5593b5d51
|
|
5702
5704
|
languageName: node
|
|
5703
5705
|
linkType: hard
|
|
5704
5706
|
|
|
@@ -8207,8 +8209,8 @@ __metadata:
|
|
|
8207
8209
|
linkType: hard
|
|
8208
8210
|
|
|
8209
8211
|
"chromatic@npm:^11.4.0":
|
|
8210
|
-
version: 11.16.
|
|
8211
|
-
resolution: "chromatic@npm:11.16.
|
|
8212
|
+
version: 11.16.5
|
|
8213
|
+
resolution: "chromatic@npm:11.16.5"
|
|
8212
8214
|
peerDependencies:
|
|
8213
8215
|
"@chromatic-com/cypress": ^0.*.* || ^1.0.0
|
|
8214
8216
|
"@chromatic-com/playwright": ^0.*.* || ^1.0.0
|
|
@@ -8221,7 +8223,7 @@ __metadata:
|
|
|
8221
8223
|
chroma: dist/bin.js
|
|
8222
8224
|
chromatic: dist/bin.js
|
|
8223
8225
|
chromatic-cli: dist/bin.js
|
|
8224
|
-
checksum: 10c0/
|
|
8226
|
+
checksum: 10c0/94fc65de8fdde6dfbc8c88419903e5f39a94945dc6de70d39570d4b522855e132fdaa4dcb1e0e3799d81d70db2bd07725c12c816b69617facfae10b5fd74585c
|
|
8225
8227
|
languageName: node
|
|
8226
8228
|
linkType: hard
|
|
8227
8229
|
|
|
@@ -9829,9 +9831,9 @@ __metadata:
|
|
|
9829
9831
|
linkType: hard
|
|
9830
9832
|
|
|
9831
9833
|
"electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.41":
|
|
9832
|
-
version: 1.5.
|
|
9833
|
-
resolution: "electron-to-chromium@npm:1.5.
|
|
9834
|
-
checksum: 10c0/
|
|
9834
|
+
version: 1.5.51
|
|
9835
|
+
resolution: "electron-to-chromium@npm:1.5.51"
|
|
9836
|
+
checksum: 10c0/1903552a918bfc0568a3af568b14c9ac35bcf1ec8cba33a1c50304d93195c825aaa9b82ae463fcb19805600add4c302e7d2db4d762c36e5ae6547f72ad21afdd
|
|
9835
9837
|
languageName: node
|
|
9836
9838
|
linkType: hard
|
|
9837
9839
|
|
|
@@ -10133,8 +10135,8 @@ __metadata:
|
|
|
10133
10135
|
linkType: hard
|
|
10134
10136
|
|
|
10135
10137
|
"es-iterator-helpers@npm:^1.0.19":
|
|
10136
|
-
version: 1.
|
|
10137
|
-
resolution: "es-iterator-helpers@npm:1.
|
|
10138
|
+
version: 1.2.0
|
|
10139
|
+
resolution: "es-iterator-helpers@npm:1.2.0"
|
|
10138
10140
|
dependencies:
|
|
10139
10141
|
call-bind: "npm:^1.0.7"
|
|
10140
10142
|
define-properties: "npm:^1.2.1"
|
|
@@ -10144,13 +10146,14 @@ __metadata:
|
|
|
10144
10146
|
function-bind: "npm:^1.1.2"
|
|
10145
10147
|
get-intrinsic: "npm:^1.2.4"
|
|
10146
10148
|
globalthis: "npm:^1.0.4"
|
|
10149
|
+
gopd: "npm:^1.0.1"
|
|
10147
10150
|
has-property-descriptors: "npm:^1.0.2"
|
|
10148
10151
|
has-proto: "npm:^1.0.3"
|
|
10149
10152
|
has-symbols: "npm:^1.0.3"
|
|
10150
10153
|
internal-slot: "npm:^1.0.7"
|
|
10151
10154
|
iterator.prototype: "npm:^1.1.3"
|
|
10152
10155
|
safe-array-concat: "npm:^1.1.2"
|
|
10153
|
-
checksum: 10c0/
|
|
10156
|
+
checksum: 10c0/2bd60580dfeae353f5b80445d2808da745e97eeacdb663a8c4d99a12046873830a06d377e9d5e88fe54eece7c94319a5ce5a01220e24d71394ceca8d3ef621d7
|
|
10154
10157
|
languageName: node
|
|
10155
10158
|
linkType: hard
|
|
10156
10159
|
|
|
@@ -21949,6 +21952,18 @@ __metadata:
|
|
|
21949
21952
|
languageName: node
|
|
21950
21953
|
linkType: hard
|
|
21951
21954
|
|
|
21955
|
+
"zustand@npm:3.7.2":
|
|
21956
|
+
version: 3.7.2
|
|
21957
|
+
resolution: "zustand@npm:3.7.2"
|
|
21958
|
+
peerDependencies:
|
|
21959
|
+
react: ">=16.8"
|
|
21960
|
+
peerDependenciesMeta:
|
|
21961
|
+
react:
|
|
21962
|
+
optional: true
|
|
21963
|
+
checksum: 10c0/6a56185ca67080c252dfe96039da02094cfd780bd7a45768708105f114dea39ae9abc80ffaa7f3f6104e6490db325bd443b857ab5eab8ebf9a697318cd163bb6
|
|
21964
|
+
languageName: node
|
|
21965
|
+
linkType: hard
|
|
21966
|
+
|
|
21952
21967
|
"zwitch@npm:^1.0.0":
|
|
21953
21968
|
version: 1.0.5
|
|
21954
21969
|
resolution: "zwitch@npm:1.0.5"
|