@licklist/design 0.67.2-dev.5 → 0.67.3-dev.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.
Files changed (31) hide show
  1. package/dist/calendar/Calendar.d.ts +1 -1
  2. package/dist/calendar/Calendar.d.ts.map +1 -1
  3. package/dist/calendar/utils/index.d.ts +2 -2
  4. package/dist/calendar/utils/index.d.ts.map +1 -1
  5. package/dist/calendar/utils/index.js +20 -4
  6. package/dist/provider/location-input/LocationInputDescription.d.ts +4 -1
  7. package/dist/provider/location-input/LocationInputDescription.d.ts.map +1 -1
  8. package/dist/provider/location-input/LocationInputDescription.js +27 -12
  9. package/dist/provider/provider-form/ProviderForm.js +3 -1
  10. package/dist/provider/venue-form/VenueForm.js +3 -1
  11. package/dist/sales/booking/results/components/ResultCard.d.ts.map +1 -1
  12. package/dist/sales/booking/results/components/ResultCard.js +4 -5
  13. package/dist/sales/guest-profile/previous-bookings/PreviousBookings.js +1 -1
  14. package/dist/sales/manual-booking/formatDays.js +3 -3
  15. package/dist/sales/manual-booking/select-event/SelectEvent.d.ts.map +1 -1
  16. package/dist/sales/manual-booking/select-event/SelectEvent.js +3 -3
  17. package/dist/sales/manual-booking/summary/ManualBookingSummary.d.ts.map +1 -1
  18. package/dist/sales/manual-booking/summary/ManualBookingSummary.js +2 -2
  19. package/dist/sales/notes/NotesTableRow.js +3 -4
  20. package/package.json +8 -8
  21. package/src/calendar/utils/index.ts +26 -4
  22. package/src/provider/location-input/LocationInputDescription.tsx +23 -11
  23. package/src/provider/provider-form/ProviderForm.tsx +1 -1
  24. package/src/provider/venue-form/VenueForm.tsx +1 -1
  25. package/src/sales/booking/results/components/ResultCard.tsx +4 -8
  26. package/src/sales/guest-profile/previous-bookings/PreviousBookings.tsx +1 -1
  27. package/src/sales/manual-booking/formatDays.ts +3 -3
  28. package/src/sales/manual-booking/select-event/SelectEvent.tsx +2 -2
  29. package/src/sales/manual-booking/summary/ManualBookingSummary.tsx +2 -2
  30. package/src/sales/notes/NotesTableRow.tsx +3 -3
  31. package/yarn.lock +92 -93
@@ -1,7 +1,7 @@
1
1
  import { Dispatch, ReactElement, SetStateAction } from "react";
2
2
  import { DateTime } from "luxon";
3
3
  import { DateTimeButtonProps } from "src/date-time-button";
4
- export declare const defaultStartDay: DateTime;
4
+ export declare const defaultStartDay: DateTime<true>;
5
5
  export type CalendarProps = {
6
6
  currentDate: DateTime;
7
7
  setCurrentDate: Dispatch<SetStateAction<DateTime>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAK3D,eAAO,MAAM,eAAe,UAK1B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,QAAQ,CAAC;IACtB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnD,aAAa,EAAE,QAAQ,EAAE,CAAC;IAC1B,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,sBAAsB,EAAE,CACtB,IAAI,EAAE,QAAQ,KACX,IAAI,CACP,mBAAmB,EACnB,WAAW,GAAG,eAAe,GAAG,0BAA0B,GAAG,YAAY,CAC1E,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,aAAa,4CAW5C,CAAC"}
1
+ {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/calendar/Calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAK3D,eAAO,MAAM,eAAe,gBAK1B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,QAAQ,CAAC;IACtB,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnD,aAAa,EAAE,QAAQ,EAAE,CAAC;IAC1B,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,sBAAsB,EAAE,CACtB,IAAI,EAAE,QAAQ,KACX,IAAI,CACP,mBAAmB,EACnB,WAAW,GAAG,eAAe,GAAG,0BAA0B,GAAG,YAAY,CAC1E,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,aAAa,4CAW5C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { DateTime } from "luxon";
2
- export declare const getMonthCalendarDates: (initialDate: DateTime) => DateTime[];
3
- export declare const getWeekCalendarDates: (initialDate: DateTime) => DateTime[];
2
+ export declare const getMonthCalendarDates: (initialDate: DateTime, timeZone?: string) => DateTime[];
3
+ export declare const getWeekCalendarDates: (initialDate: DateTime, timeZone?: string) => DateTime[];
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,qBAAqB,gBAAiB,QAAQ,KAAG,QAAQ,EAOrE,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBAAiB,QAAQ,KAAG,QAAQ,EAMpE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/calendar/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAY,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,qBAAqB,gBACnB,QAAQ,aACV,MAAM,KAChB,QAAQ,EAeV,CAAC;AAEF,eAAO,MAAM,oBAAoB,gBAClB,QAAQ,aACV,MAAM,KAChB,QAAQ,EAcV,CAAC"}
@@ -1,23 +1,39 @@
1
1
  import { Interval } from 'luxon';
2
2
 
3
- var getMonthCalendarDates = function(initialDate) {
3
+ var getMonthCalendarDates = function(initialDate, timeZone) {
4
4
  var startOfMonth = initialDate.startOf("month");
5
5
  var endOfMonth = initialDate.endOf("month");
6
- return Interval.fromDateTimes(startOfMonth, endOfMonth).splitBy({
6
+ var dateTimes = Interval.fromDateTimes(startOfMonth, endOfMonth).splitBy({
7
7
  day: 1
8
8
  }).map(function(d) {
9
9
  return d.start;
10
10
  });
11
+ if (timeZone) {
12
+ return dateTimes.map(function(date) {
13
+ return date.setZone(timeZone, {
14
+ keepLocalTime: true
15
+ });
16
+ });
17
+ }
18
+ return dateTimes;
11
19
  };
12
- var getWeekCalendarDates = function(initialDate) {
20
+ var getWeekCalendarDates = function(initialDate, timeZone) {
13
21
  var lastDay = initialDate.plus({
14
22
  days: 7
15
23
  });
16
- return Interval.fromDateTimes(initialDate, lastDay).splitBy({
24
+ var dateTimes = Interval.fromDateTimes(initialDate, lastDay).splitBy({
17
25
  day: 1
18
26
  }).map(function(d) {
19
27
  return d.start;
20
28
  });
29
+ if (timeZone) {
30
+ return dateTimes.map(function(date) {
31
+ return date.setZone(timeZone, {
32
+ keepLocalTime: true
33
+ });
34
+ });
35
+ }
36
+ return dateTimes;
21
37
  };
22
38
 
23
39
  export { getMonthCalendarDates, getWeekCalendarDates };
@@ -1,2 +1,5 @@
1
- export declare function LocationInputDescription(): import("react/jsx-runtime").JSX.Element;
1
+ import { TimeZonePath } from "@licklist/plugins";
2
+ export declare function LocationInputDescription({ path }: {
3
+ path: TimeZonePath;
4
+ }): import("react/jsx-runtime").JSX.Element;
2
5
  //# sourceMappingURL=LocationInputDescription.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocationInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/LocationInputDescription.tsx"],"names":[],"mappings":"AAKA,wBAAgB,wBAAwB,4CAoBvC"}
1
+ {"version":3,"file":"LocationInputDescription.d.ts","sourceRoot":"","sources":["../../../src/provider/location-input/LocationInputDescription.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAkB,MAAM,mBAAmB,CAAC;AAKjE,wBAAgB,wBAAwB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,2CA6BxE"}
@@ -1,6 +1,7 @@
1
- import { jsx } from 'react/jsx-runtime';
1
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { useFormContext } from 'react-hook-form';
3
3
  import en from 'react-phone-number-input/locale/en.json';
4
+ import { useTimeZoneApi } from '@licklist/plugins';
4
5
 
5
6
  function _array_like_to_array(arr, len) {
6
7
  if (len == null || len > arr.length) len = arr.length;
@@ -27,18 +28,21 @@ function _unsupported_iterable_to_array(o, minLen) {
27
28
  if (n === "Map" || n === "Set") return Array.from(n);
28
29
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
29
30
  }
30
- function LocationInputDescription() {
31
+ var fieldNames = [
32
+ "street",
33
+ "city",
34
+ "state",
35
+ "postcode",
36
+ "country"
37
+ ];
38
+ function LocationInputDescription(param) {
39
+ var path = param.path;
40
+ var _data_find;
31
41
  var watch = useFormContext().watch;
32
- var values = watch("location");
33
- var fieldNames = [
34
- "street",
35
- "city",
36
- "state",
37
- "postcode",
38
- "country"
39
- ];
42
+ var location = watch("location");
43
+ var data = useTimeZoneApi(path).useAll().data;
40
44
  var fields = fieldNames.reduce(function(acc, field) {
41
- var value = values === null || values === void 0 ? void 0 : values[field];
45
+ var value = location === null || location === void 0 ? void 0 : location[field];
42
46
  if (!value) return acc;
43
47
  return _to_consumable_array(acc).concat([
44
48
  /*#__PURE__*/ jsx("div", {
@@ -46,8 +50,19 @@ function LocationInputDescription() {
46
50
  }, field)
47
51
  ]);
48
52
  }, []);
53
+ var timeZoneId = watch("timeZoneId");
54
+ var timeZoneName = data === null || data === void 0 ? void 0 : (_data_find = data.find(function(timeZone) {
55
+ return timeZone.id === +timeZoneId;
56
+ })) === null || _data_find === void 0 ? void 0 : _data_find.name;
49
57
  return /*#__PURE__*/ jsx("div", {
50
- children: fields
58
+ children: /*#__PURE__*/ jsxs(Fragment, {
59
+ children: [
60
+ fields,
61
+ timeZoneName && /*#__PURE__*/ jsx("div", {
62
+ children: timeZoneName
63
+ }, "timeZone")
64
+ ]
65
+ })
51
66
  });
52
67
  }
53
68
 
@@ -156,7 +156,9 @@ function ProviderForm(param) {
156
156
  /*#__PURE__*/ jsx(CollapsibleInputGroup, {
157
157
  eventKey: "location",
158
158
  label: t("location"),
159
- description: /*#__PURE__*/ jsx(LocationInputDescription, {}),
159
+ description: /*#__PURE__*/ jsx(LocationInputDescription, {
160
+ path: path
161
+ }),
160
162
  error: errors === null || errors === void 0 ? void 0 : (_errors_location = errors.location) === null || _errors_location === void 0 ? void 0 : (_errors_location_country = _errors_location.country) === null || _errors_location_country === void 0 ? void 0 : _errors_location_country.message,
161
163
  children: /*#__PURE__*/ jsx(LocationInput, {
162
164
  path: path
@@ -182,7 +182,9 @@ function VenueForm(param) {
182
182
  /*#__PURE__*/ jsx(CollapsibleInputGroup, {
183
183
  eventKey: "location",
184
184
  label: t("location"),
185
- description: /*#__PURE__*/ jsx(LocationInputDescription, {}),
185
+ description: /*#__PURE__*/ jsx(LocationInputDescription, {
186
+ path: path
187
+ }),
186
188
  error: (errors === null || errors === void 0 ? void 0 : (_errors_location = errors.location) === null || _errors_location === void 0 ? void 0 : _errors_location.message) || (errors === null || errors === void 0 ? void 0 : errors.location) && t("Validation:isNotValidField", {
187
189
  attribute: "The location data"
188
190
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAO1E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,oDAKpB,eAAe,4CA2FjB,CAAC"}
1
+ {"version":3,"file":"ResultCard.d.ts","sourceRoot":"","sources":["../../../../../src/sales/booking/results/components/ResultCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oDAAoD,CAAC;AAQ1E,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,oDAKpB,eAAe,4CAuFjB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { DateTime } from 'luxon';
5
4
  import { useIntl } from 'react-intl';
6
5
  import { ORDER_SOURCE_MANUAL } from '@licklist/core/dist/DataMapper/Order/OrderDataMapper';
7
6
  import * as Config from '@licklist/core/dist/Config';
@@ -9,6 +8,7 @@ import { TIME_FORMAT } from '@licklist/core/dist/Config';
9
8
  import { formatDateStringForEvent } from '@licklist/plugins/dist/utils/formatDate';
10
9
  import { getOrderSourceTitle } from '@licklist/plugins/dist/utils/sourceTitle';
11
10
  import { FaUser } from 'react-icons/fa';
11
+ import { fromIso } from '@licklist/core/dist/Services';
12
12
 
13
13
  var ResultCard = function(param) {
14
14
  var order = param.order, className = param.className, staffMember = param.staffMember, onCardClick = param.onCardClick;
@@ -21,8 +21,7 @@ var ResultCard = function(param) {
21
21
  })) === null || _products_map === void 0 ? void 0 : _products_map.join(", ")) || "";
22
22
  var activityName = (event === null || event === void 0 ? void 0 : event.name) || (menu === null || menu === void 0 ? void 0 : menu.name) || "";
23
23
  var onClick = function() {
24
- if (!onCardClick) return;
25
- onCardClick(id);
24
+ return onCardClick === null || onCardClick === void 0 ? void 0 : onCardClick(id);
26
25
  };
27
26
  return /*#__PURE__*/ jsx("div", {
28
27
  className: clsx("result-card", className),
@@ -93,14 +92,14 @@ var ResultCard = function(param) {
93
92
  children: [
94
93
  t("date"),
95
94
  ": ",
96
- formatDateStringForEvent(startDate, false)
95
+ formatDateStringForEvent(startDate)
97
96
  ]
98
97
  }),
99
98
  /*#__PURE__*/ jsxs("p", {
100
99
  children: [
101
100
  t("time"),
102
101
  ": ",
103
- DateTime.fromISO(startDate).toFormat(TIME_FORMAT)
102
+ fromIso(startDate).toFormat(TIME_FORMAT)
104
103
  ]
105
104
  }),
106
105
  /*#__PURE__*/ jsxs("p", {
@@ -56,7 +56,7 @@ var PreviousBookings = function(param) {
56
56
  var t = useTranslation("Design").t;
57
57
  var _useState = _sliced_to_array(useState(false), 2), showOlderBookings = _useState[0], setShowOlderBookings = _useState[1];
58
58
  var formatDate = function(date) {
59
- return DateTime.fromJSDate(new Date(date)).toFormat("dd LLL yyyy hh:mm");
59
+ return DateTime.fromJSDate(new Date(date)).toFormat("dd LLL yyyy HH:mm");
60
60
  };
61
61
  var capitalizeFirstLetter = function(string) {
62
62
  return string.charAt(0).toUpperCase() + string.slice(1);
@@ -1,5 +1,5 @@
1
1
  import { TIME_FORMAT } from '@licklist/core/dist/Config';
2
- import { DateTime } from 'luxon';
2
+ import { fromIso } from '@licklist/core/dist/Services';
3
3
 
4
4
  var formatToDays = function(daysInWeek) {
5
5
  if (!daysInWeek) {
@@ -38,8 +38,8 @@ var formatToDays = function(daysInWeek) {
38
38
  return formatedDays.join(", ");
39
39
  };
40
40
  var formatToHours = function(startAt, endAt) {
41
- var firstTime = DateTime.fromISO(startAt).toFormat(TIME_FORMAT);
42
- var lastTime = DateTime.fromISO(endAt).toFormat(TIME_FORMAT);
41
+ var firstTime = fromIso(startAt).toFormat(TIME_FORMAT);
42
+ var lastTime = fromIso(endAt).toFormat(TIME_FORMAT);
43
43
  return "".concat(firstTime, " - ").concat(lastTime);
44
44
  };
45
45
 
@@ -1 +1 @@
1
- {"version":3,"file":"SelectEvent.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/select-event/SelectEvent.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAIzF,UAAU,gBAAgB;IACxB,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,wCAIrB,gBAAgB,4CAgDlB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;6CA4ClC,CAAC"}
1
+ {"version":3,"file":"SelectEvent.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/select-event/SelectEvent.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AAKzF,UAAU,gBAAgB;IACxB,WAAW,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,WAAW,wCAIrB,gBAAgB,4CAgDlB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;6CA4ClC,CAAC"}
@@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next';
3
3
  import { Form, Card } from 'react-bootstrap';
4
4
  import MediaService from '@licklist/plugins/dist/services/Media/MediaService';
5
5
  import { rrulestr } from 'rrule';
6
- import { DateTime } from 'luxon';
6
+ import { fromIso } from '@licklist/core/dist/Services';
7
7
  import { formatToDays, formatToHours } from '../formatDays.js';
8
8
  import 'react-loader';
9
9
  import { BlockLoader } from '../../../static/loader/BlockLoader.js';
@@ -57,7 +57,7 @@ var SelectEvent = function(param) {
57
57
  };
58
58
  var EventCardManualBooking = function(param) {
59
59
  var coverImageUrl = param.coverImageUrl, title = param.title, rrule = param.rrule, startAt = param.startAt, endAt = param.endAt, isSoldOut = param.isSoldOut, onClick = param.onClick;
60
- var _rrulestr_options, _rrulestr, _DateTime_fromISO;
60
+ var _rrulestr_options, _rrulestr, _fromIso;
61
61
  var t = useTranslation("Sale").t;
62
62
  return /*#__PURE__*/ jsxs("div", {
63
63
  role: "button",
@@ -91,7 +91,7 @@ var EventCardManualBooking = function(param) {
91
91
  /*#__PURE__*/ jsx("div", {
92
92
  className: "event-card-days",
93
93
  children: rrule ? formatToDays((_rrulestr = rrulestr(rrule.includes("EXDATE") ? rrule.split(";EXDATE=")[0] : rrule)) === null || _rrulestr === void 0 ? void 0 : (_rrulestr_options = _rrulestr.options) === null || _rrulestr_options === void 0 ? void 0 : _rrulestr_options.byweekday) : formatToDays([
94
- (_DateTime_fromISO = DateTime.fromISO(startAt)) === null || _DateTime_fromISO === void 0 ? void 0 : _DateTime_fromISO.day
94
+ (_fromIso = fromIso(startAt)) === null || _fromIso === void 0 ? void 0 : _fromIso.day
95
95
  ])
96
96
  }),
97
97
  /*#__PURE__*/ jsx("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"ManualBookingSummary.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/summary/ManualBookingSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AAQnG,OAAO,EAEL,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAIrE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,oBAAoB,0IAU9B,yBAAyB,4CAwF3B,CAAC"}
1
+ {"version":3,"file":"ManualBookingSummary.d.ts","sourceRoot":"","sources":["../../../../src/sales/manual-booking/summary/ManualBookingSummary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AAOnG,OAAO,EAEL,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAKrE,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,oBAAoB,0IAU9B,yBAAyB,4CAwF3B,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import { useTranslation } from 'react-i18next';
3
- import { DateTime } from 'luxon';
4
3
  import * as Config from '@licklist/core/dist/Config';
5
4
  import { DATE_TIME_MANUAL_BOOKING_FORMAT, TIME_FORMAT } from '@licklist/core/dist/Config';
6
5
  import { useIntl } from 'react-intl';
7
6
  import { RELY_ON_PEOPLE_QUANTITY } from '@licklist/core/dist/DataMapper/Product/ProductSetDataMapper';
8
7
  import { getRelyOnPeopleMultiplier } from '@licklist/plugins/dist/utils/relyOnPeople';
8
+ import { fromIso } from '@licklist/core/dist/Services';
9
9
  import 'react-loader';
10
10
  import { BlockLoader } from '../../../static/loader/BlockLoader.js';
11
11
  import 'react';
@@ -19,7 +19,7 @@ var ManualBookingSummary = function(param) {
19
19
  ]).t;
20
20
  var formatNumber = useIntl().formatNumber;
21
21
  var showRelyOnPeople = relyOnPeopleType && relyOnPeopleType !== RELY_ON_PEOPLE_QUANTITY;
22
- var currentDate = DateTime.fromISO(orderDate);
22
+ var currentDate = fromIso(orderDate);
23
23
  var date = currentDate.toFormat(DATE_TIME_MANUAL_BOOKING_FORMAT);
24
24
  var time = currentDate.toFormat(TIME_FORMAT);
25
25
  return /*#__PURE__*/ jsxs("div", {
@@ -6,8 +6,7 @@ import { OverlayTrigger, Popover, ListGroup } from 'react-bootstrap';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { capitalize } from 'lodash';
8
8
  import { DateTime } from 'luxon';
9
- import { DATE_TIME_FULL_FORMAT, DATE_TIME_FORMAT } from '@licklist/core/dist/Config';
10
- import { getClientTimeZone } from '@licklist/core/dist/Services';
9
+ import { DATE_TIME_FULL_FORMAT, UTC_TIMEZONE, DATE_TIME_FORMAT } from '@licklist/core/dist/Config';
11
10
  import { FaEye, FaTrashAlt, FaEllipsisH } from 'react-icons/fa';
12
11
  import { ConfirmModal } from '../../modals/confirmation/ConfirmModal.js';
13
12
  import 'react-bootstrap/PageItem';
@@ -73,8 +72,8 @@ var TableRow = function(param) {
73
72
  var popoverId = useId();
74
73
  var _useState = _sliced_to_array(useState(false), 2), isOverlayVisibile = _useState[0], setIsOverlayVisible = _useState[1];
75
74
  var date = DateTime.fromFormat(note.updatedAt, DATE_TIME_FULL_FORMAT, {
76
- zone: "utc"
77
- }).setZone(getClientTimeZone()).toFormat(DATE_TIME_FORMAT);
75
+ zone: UTC_TIMEZONE
76
+ }).toLocal().toFormat(DATE_TIME_FORMAT);
78
77
  return /*#__PURE__*/ jsxs("tr", {
79
78
  onClick: onClick,
80
79
  children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.67.2-dev.5",
3
+ "version": "0.67.3-dev.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -42,11 +42,11 @@
42
42
  ]
43
43
  },
44
44
  "peerDependencies": {
45
- "@licklist/core": "0.28.6-dev.3",
45
+ "@licklist/core": "0.29.1-dev.2",
46
46
  "@licklist/eslint-config": "0.5.5",
47
- "@licklist/plugins": "0.32.0-dev.0",
47
+ "@licklist/plugins": "0.32.0-dev.3",
48
48
  "lodash": "4.17.21",
49
- "luxon": "1.26.0",
49
+ "luxon": "3.5.0",
50
50
  "react": "17.0.2",
51
51
  "react-dom": "17.0.2",
52
52
  "react-hook-form": "7.52.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.28.6-dev.3",
64
+ "@licklist/core": "0.29.1-dev.2",
65
65
  "@licklist/eslint-config": "0.5.5",
66
- "@licklist/plugins": "0.30.4-dev.3",
66
+ "@licklist/plugins": "0.32.0-dev.3",
67
67
  "@mdx-js/react": "1.6.22",
68
68
  "@popperjs/core": "2.11.8",
69
69
  "@react-aria/utils": "3.9.0",
@@ -100,7 +100,7 @@
100
100
  "framer-motion": "4.1.17",
101
101
  "konva": "6.0.0",
102
102
  "lodash": "4.17.21",
103
- "luxon": "1.26.0",
103
+ "luxon": "3.5.0",
104
104
  "moment": "2.29.1",
105
105
  "react": "17.0.2",
106
106
  "react-bootstrap": "1.6.1",
@@ -144,7 +144,7 @@
144
144
  "@svgr/rollup": "8.1.0",
145
145
  "@swc/core": "1.6.5",
146
146
  "@types/lodash": "4.17.5",
147
- "@types/luxon": "1.26.2",
147
+ "@types/luxon": "3.4.2",
148
148
  "@types/mdx-js__react": "1.5.3",
149
149
  "@types/node": "20.9.0",
150
150
  "@types/react": "17.0.80",
@@ -1,18 +1,40 @@
1
1
  import { DateTime, Interval } from "luxon";
2
2
 
3
- export const getMonthCalendarDates = (initialDate: DateTime): DateTime[] => {
3
+ export const getMonthCalendarDates = (
4
+ initialDate: DateTime,
5
+ timeZone?: string,
6
+ ): DateTime[] => {
4
7
  const startOfMonth = initialDate.startOf("month");
5
8
  const endOfMonth = initialDate.endOf("month");
6
9
 
7
- return Interval.fromDateTimes(startOfMonth, endOfMonth)
10
+ const dateTimes = Interval.fromDateTimes(startOfMonth, endOfMonth)
8
11
  .splitBy({ day: 1 })
9
12
  .map((d) => d.start);
13
+
14
+ if (timeZone) {
15
+ return dateTimes.map((date) =>
16
+ date.setZone(timeZone, { keepLocalTime: true }),
17
+ );
18
+ }
19
+
20
+ return dateTimes;
10
21
  };
11
22
 
12
- export const getWeekCalendarDates = (initialDate: DateTime): DateTime[] => {
23
+ export const getWeekCalendarDates = (
24
+ initialDate: DateTime,
25
+ timeZone?: string,
26
+ ): DateTime[] => {
13
27
  const lastDay = initialDate.plus({ days: 7 });
14
28
 
15
- return Interval.fromDateTimes(initialDate, lastDay)
29
+ const dateTimes = Interval.fromDateTimes(initialDate, lastDay)
16
30
  .splitBy({ day: 1 })
17
31
  .map((d) => d.start);
32
+
33
+ if (timeZone) {
34
+ return dateTimes.map((date) =>
35
+ date.setZone(timeZone, { keepLocalTime: true }),
36
+ );
37
+ }
38
+
39
+ return dateTimes;
18
40
  };
@@ -1,20 +1,19 @@
1
1
  import { ReactElement } from "react";
2
2
  import { useFormContext } from "react-hook-form";
3
3
  import en from "react-phone-number-input/locale/en.json";
4
+ import { TimeZonePath, useTimeZoneApi } from "@licklist/plugins";
4
5
  import { LocationInputValues } from ".";
5
6
 
6
- export function LocationInputDescription() {
7
+ const fieldNames = ["street", "city", "state", "postcode", "country"] as const;
8
+
9
+ export function LocationInputDescription({ path }: { path: TimeZonePath }) {
7
10
  const { watch } = useFormContext<LocationInputValues>();
8
- const values = watch("location");
9
- const fieldNames = [
10
- "street",
11
- "city",
12
- "state",
13
- "postcode",
14
- "country",
15
- ] as const;
11
+ const location = watch("location");
12
+
13
+ const { data } = useTimeZoneApi(path).useAll();
14
+
16
15
  const fields = fieldNames.reduce<ReactElement[]>((acc, field) => {
17
- const value = values?.[field];
16
+ const value = location?.[field];
18
17
  if (!value) return acc;
19
18
 
20
19
  return [
@@ -22,5 +21,18 @@ export function LocationInputDescription() {
22
21
  <div key={field}>{field === "country" ? en[value] : value}</div>,
23
22
  ];
24
23
  }, []);
25
- return <div>{fields}</div>;
24
+
25
+ const timeZoneId = watch("timeZoneId");
26
+ const timeZoneName = data?.find(
27
+ (timeZone) => timeZone.id === +timeZoneId,
28
+ )?.name;
29
+
30
+ return (
31
+ <div>
32
+ <>
33
+ {fields}
34
+ {timeZoneName && <div key="timeZone">{timeZoneName}</div>}
35
+ </>
36
+ </div>
37
+ );
26
38
  }
@@ -106,7 +106,7 @@ export function ProviderForm({
106
106
  <CollapsibleInputGroup
107
107
  eventKey="location"
108
108
  label={t("location")}
109
- description={<LocationInputDescription />}
109
+ description={<LocationInputDescription path={path} />}
110
110
  error={errors?.location?.country?.message}
111
111
  >
112
112
  <LocationInput path={path} />
@@ -137,7 +137,7 @@ export function VenueForm({
137
137
  <CollapsibleInputGroup
138
138
  eventKey="location"
139
139
  label={t("location")}
140
- description={<LocationInputDescription />}
140
+ description={<LocationInputDescription path={path} />}
141
141
  error={
142
142
  errors?.location?.message ||
143
143
  (errors?.location &&
@@ -1,6 +1,5 @@
1
1
  import clsx from "clsx";
2
2
  import { useTranslation } from "react-i18next";
3
- import { DateTime } from "luxon";
4
3
  import { useIntl } from "react-intl";
5
4
  import {
6
5
  Order,
@@ -12,6 +11,7 @@ import * as Config from "@licklist/core/dist/Config";
12
11
  import { formatDateStringForEvent } from "@licklist/plugins/dist/utils/formatDate";
13
12
  import { getOrderSourceTitle } from "@licklist/plugins/dist/utils/sourceTitle";
14
13
  import { FaUser } from "react-icons/fa";
14
+ import { fromIso } from "@licklist/core/dist/Services";
15
15
 
16
16
  export type ResultCardProps = {
17
17
  className: string;
@@ -46,11 +46,7 @@ export const ResultCard = ({
46
46
  const productList = products.map((product) => product.name)?.join(", ") || "";
47
47
  const activityName = event?.name || menu?.name || "";
48
48
 
49
- const onClick = () => {
50
- if (!onCardClick) return;
51
-
52
- onCardClick(id);
53
- };
49
+ const onClick = () => onCardClick?.(id);
54
50
 
55
51
  return (
56
52
  <div
@@ -85,10 +81,10 @@ export const ResultCard = ({
85
81
  {t("status")}: {t(status)}
86
82
  </p>
87
83
  <p>
88
- {t("date")}: {formatDateStringForEvent(startDate, false)}
84
+ {t("date")}: {formatDateStringForEvent(startDate)}
89
85
  </p>
90
86
  <p>
91
- {t("time")}: {DateTime.fromISO(startDate).toFormat(TIME_FORMAT)}
87
+ {t("time")}: {fromIso(startDate).toFormat(TIME_FORMAT)}
92
88
  </p>
93
89
  <p className="products" title={productList}>
94
90
  {t("products")}: {productList}
@@ -19,7 +19,7 @@ export const PreviousBookings = ({
19
19
  const [showOlderBookings, setShowOlderBookings] = useState(false);
20
20
 
21
21
  const formatDate = (date: string) => {
22
- return DateTime.fromJSDate(new Date(date)).toFormat("dd LLL yyyy hh:mm");
22
+ return DateTime.fromJSDate(new Date(date)).toFormat("dd LLL yyyy HH:mm");
23
23
  };
24
24
 
25
25
  const capitalizeFirstLetter = (string: string) => {
@@ -1,5 +1,5 @@
1
1
  import { TIME_FORMAT } from "@licklist/core/dist/Config";
2
- import { DateTime } from "luxon";
2
+ import { fromIso } from "@licklist/core/dist/Services";
3
3
 
4
4
  export const formatToDays = (daysInWeek?: number[]): string | null => {
5
5
  if (!daysInWeek) {
@@ -40,7 +40,7 @@ export const formatToDays = (daysInWeek?: number[]): string | null => {
40
40
  };
41
41
 
42
42
  export const formatToHours = (startAt: string, endAt: string) => {
43
- const firstTime = DateTime.fromISO(startAt).toFormat(TIME_FORMAT);
44
- const lastTime = DateTime.fromISO(endAt).toFormat(TIME_FORMAT);
43
+ const firstTime = fromIso(startAt).toFormat(TIME_FORMAT);
44
+ const lastTime = fromIso(endAt).toFormat(TIME_FORMAT);
45
45
  return `${firstTime} - ${lastTime}`;
46
46
  };
@@ -2,8 +2,8 @@ import { useTranslation } from "react-i18next";
2
2
  import { Card, Form } from "react-bootstrap";
3
3
  import MediaService from "@licklist/plugins/dist/services/Media/MediaService";
4
4
  import { rrulestr } from "rrule";
5
- import { DateTime } from "luxon";
6
5
  import { ManualBookingEvent } from "@licklist/plugins/dist/types/context/sale/menuSteps";
6
+ import { fromIso } from "@licklist/core/dist/Services";
7
7
  import { formatToDays, formatToHours } from "../formatDays";
8
8
  import { BlockLoader } from "../../../static/loader";
9
9
 
@@ -106,7 +106,7 @@ export const EventCardManualBooking = ({
106
106
  rrule.includes("EXDATE") ? rrule.split(";EXDATE=")[0] : rrule,
107
107
  )?.options?.byweekday,
108
108
  )
109
- : formatToDays([DateTime.fromISO(startAt)?.day])}
109
+ : formatToDays([fromIso(startAt)?.day])}
110
110
  </div>
111
111
  <div className="event-card-hours">{formatToHours(startAt, endAt)}</div>
112
112
  </div>
@@ -1,6 +1,5 @@
1
1
  import { useTranslation } from "react-i18next";
2
2
  import { ManualBookingOrder } from "@licklist/plugins/dist/context/sale/ManualBookingStepsContext";
3
- import { DateTime } from "luxon";
4
3
  import {
5
4
  DATE_TIME_MANUAL_BOOKING_FORMAT,
6
5
  TIME_FORMAT,
@@ -12,6 +11,7 @@ import {
12
11
  RelyOnPeopleType,
13
12
  } from "@licklist/core/dist/DataMapper/Product/ProductSetDataMapper";
14
13
  import { getRelyOnPeopleMultiplier } from "@licklist/plugins/dist/utils/relyOnPeople";
14
+ import { fromIso } from "@licklist/core/dist/Services";
15
15
  import { BlockLoader } from "../../../static/loader";
16
16
 
17
17
  export interface ManualBookingSummaryProps {
@@ -41,7 +41,7 @@ export const ManualBookingSummary = ({
41
41
  const { formatNumber } = useIntl();
42
42
  const showRelyOnPeople =
43
43
  relyOnPeopleType && relyOnPeopleType !== RELY_ON_PEOPLE_QUANTITY;
44
- const currentDate = DateTime.fromISO(orderDate);
44
+ const currentDate = fromIso(orderDate);
45
45
  const date = currentDate.toFormat(DATE_TIME_MANUAL_BOOKING_FORMAT);
46
46
  const time = currentDate.toFormat(TIME_FORMAT);
47
47
  return (
@@ -9,8 +9,8 @@ import { DateTime } from "luxon";
9
9
  import {
10
10
  DATE_TIME_FORMAT,
11
11
  DATE_TIME_FULL_FORMAT,
12
+ UTC_TIMEZONE,
12
13
  } from "@licklist/core/dist/Config";
13
- import { getClientTimeZone } from "@licklist/core/dist/Services";
14
14
  import { FaEllipsisH, FaEye, FaTrashAlt } from "react-icons/fa";
15
15
  import { ConfirmModal } from "../../modals";
16
16
  import { MenuButton } from "../../table";
@@ -27,9 +27,9 @@ export const TableRow = ({ note, onClick, onDeleteNote }: TableRowProps) => {
27
27
  const [isOverlayVisibile, setIsOverlayVisible] = useState(false);
28
28
 
29
29
  const date = DateTime.fromFormat(note.updatedAt, DATE_TIME_FULL_FORMAT, {
30
- zone: "utc",
30
+ zone: UTC_TIMEZONE,
31
31
  })
32
- .setZone(getClientTimeZone())
32
+ .toLocal()
33
33
  .toFormat(DATE_TIME_FORMAT);
34
34
 
35
35
  return (
package/yarn.lock CHANGED
@@ -2561,40 +2561,14 @@ __metadata:
2561
2561
  languageName: node
2562
2562
  linkType: hard
2563
2563
 
2564
- "@licklist/core@npm:0.28.3-dev.5":
2565
- version: 0.28.3-dev.5
2566
- resolution: "@licklist/core@npm:0.28.3-dev.5"
2564
+ "@licklist/core@npm:0.29.1-dev.2":
2565
+ version: 0.29.1-dev.2
2566
+ resolution: "@licklist/core@npm:0.29.1-dev.2"
2567
2567
  dependencies:
2568
2568
  "@sentry/browser": "npm:6.2.0"
2569
2569
  axios: "npm:0.26.0"
2570
2570
  i18next: "npm:19.4.5"
2571
- luxon: "npm:1.26.0"
2572
- react: "npm:17.0.2"
2573
- react-dom: "npm:17.0.2"
2574
- react-i18next: "npm:11.8.8"
2575
- react-intl: "npm:6.6.8"
2576
- uuid: "npm:9.0.0"
2577
- wait-for-expect: "npm:3.0.2"
2578
- peerDependencies:
2579
- "@licklist/eslint-config": 0.5.4
2580
- axios: 0.26.0
2581
- luxon: 1.26.0
2582
- react: 17.0.2
2583
- react-dom: 17.0.2
2584
- react-i18next: 11.8.8
2585
- react-intl: 6.6.8
2586
- checksum: 10c0/fd69ac962342534493e959a6986f4ce1f462e43aa50d8effb892401cd0ec7dbab1bc782e9b1fe462c9fe197b4d3299562976acb8a191839414855f2a4a82cca9
2587
- languageName: node
2588
- linkType: hard
2589
-
2590
- "@licklist/core@npm:0.28.6-dev.3":
2591
- version: 0.28.6-dev.3
2592
- resolution: "@licklist/core@npm:0.28.6-dev.3"
2593
- dependencies:
2594
- "@sentry/browser": "npm:6.2.0"
2595
- axios: "npm:0.26.0"
2596
- i18next: "npm:19.4.5"
2597
- luxon: "npm:1.26.0"
2571
+ luxon: "npm:3.5.0"
2598
2572
  react: "npm:17.0.2"
2599
2573
  react-dom: "npm:17.0.2"
2600
2574
  react-i18next: "npm:11.8.8"
@@ -2604,12 +2578,12 @@ __metadata:
2604
2578
  peerDependencies:
2605
2579
  "@licklist/eslint-config": 0.5.5
2606
2580
  axios: 0.26.0
2607
- luxon: 1.26.0
2581
+ luxon: 3.5.0
2608
2582
  react: 17.0.2
2609
2583
  react-dom: 17.0.2
2610
2584
  react-i18next: 11.8.8
2611
2585
  react-intl: 6.6.8
2612
- checksum: 10c0/f3a24b85a5bb36e4a291d01ec00d480b01ed03fa3009645ea89577d224ad566007fce7dc2cd1a53ad10e9f4d5a2e3397e70d3a941f67d541e419f3835bb50860
2586
+ checksum: 10c0/cacb058eb075b8e42fe9135877aa90f5104b661a0a99addbadfe916604ee35d468d07f9ce4e349fad573015044977bf77821b92dc385bab23393bc4d72677c4f
2613
2587
  languageName: node
2614
2588
  linkType: hard
2615
2589
 
@@ -2624,9 +2598,9 @@ __metadata:
2624
2598
  "@dnd-kit/utilities": "npm:2.0.0"
2625
2599
  "@fortawesome/fontawesome-svg-core": "npm:1.2.34"
2626
2600
  "@fortawesome/free-solid-svg-icons": "npm:5.15.2"
2627
- "@licklist/core": "npm:0.28.6-dev.3"
2601
+ "@licklist/core": "npm:0.29.1-dev.2"
2628
2602
  "@licklist/eslint-config": "npm:0.5.5"
2629
- "@licklist/plugins": "npm:0.30.4-dev.3"
2603
+ "@licklist/plugins": "npm:0.32.0-dev.3"
2630
2604
  "@mdx-js/react": "npm:1.6.22"
2631
2605
  "@popperjs/core": "npm:2.11.8"
2632
2606
  "@react-aria/utils": "npm:3.9.0"
@@ -2665,7 +2639,7 @@ __metadata:
2665
2639
  "@tiptap/react": "npm:2.0.0-beta.109"
2666
2640
  "@tiptap/suggestion": "npm:2.0.0-beta.92"
2667
2641
  "@types/lodash": "npm:4.17.5"
2668
- "@types/luxon": "npm:1.26.2"
2642
+ "@types/luxon": "npm:3.4.2"
2669
2643
  "@types/mdx-js__react": "npm:1.5.3"
2670
2644
  "@types/node": "npm:20.9.0"
2671
2645
  "@types/react": "npm:17.0.80"
@@ -2702,7 +2676,7 @@ __metadata:
2702
2676
  konva: "npm:6.0.0"
2703
2677
  lint-staged: "npm:12.3.2"
2704
2678
  lodash: "npm:4.17.21"
2705
- luxon: "npm:1.26.0"
2679
+ luxon: "npm:3.5.0"
2706
2680
  moment: "npm:2.29.1"
2707
2681
  prettier: "npm:3.3.3"
2708
2682
  react: "npm:17.0.2"
@@ -2748,11 +2722,11 @@ __metadata:
2748
2722
  vite-plugin-svgr: "npm:4.2.0"
2749
2723
  vite-tsconfig-paths: "npm:5.0.1"
2750
2724
  peerDependencies:
2751
- "@licklist/core": 0.28.6-dev.3
2725
+ "@licklist/core": 0.29.1-dev.2
2752
2726
  "@licklist/eslint-config": 0.5.5
2753
- "@licklist/plugins": 0.32.0-dev.0
2727
+ "@licklist/plugins": 0.32.0-dev.3
2754
2728
  lodash: 4.17.21
2755
- luxon: 1.26.0
2729
+ luxon: 3.5.0
2756
2730
  react: 17.0.2
2757
2731
  react-dom: 17.0.2
2758
2732
  react-hook-form: 7.52.2
@@ -2781,17 +2755,17 @@ __metadata:
2781
2755
  languageName: node
2782
2756
  linkType: hard
2783
2757
 
2784
- "@licklist/plugins@npm:0.30.4-dev.3":
2785
- version: 0.30.4-dev.3
2786
- resolution: "@licklist/plugins@npm:0.30.4-dev.3"
2758
+ "@licklist/plugins@npm:0.32.0-dev.3":
2759
+ version: 0.32.0-dev.3
2760
+ resolution: "@licklist/plugins@npm:0.32.0-dev.3"
2787
2761
  dependencies:
2788
- "@licklist/core": "npm:0.28.3-dev.5"
2762
+ "@licklist/core": "npm:0.29.1-dev.2"
2789
2763
  "@ungap/url-search-params": "npm:0.2.2"
2790
2764
  axios: "npm:0.26.0"
2791
2765
  history: "npm:4.10.1"
2792
2766
  laravel-echo: "npm:1.15.1"
2793
2767
  lodash: "npm:4.17.21"
2794
- luxon: "npm:1.26.0"
2768
+ luxon: "npm:3.5.0"
2795
2769
  moment: "npm:2.27.0"
2796
2770
  pusher-js: "npm:8.2.0"
2797
2771
  react: "npm:17.0.2"
@@ -2806,11 +2780,11 @@ __metadata:
2806
2780
  rrule: "npm:2.6.8"
2807
2781
  use-debounce: "npm:7.0.1"
2808
2782
  peerDependencies:
2809
- "@licklist/core": 0.28.3-dev.5
2810
- "@licklist/eslint-config": 0.5.4
2783
+ "@licklist/core": 0.29.1-dev.2
2784
+ "@licklist/eslint-config": 0.5.5
2811
2785
  axios: 0.26.0
2812
2786
  lodash: 4.17.21
2813
- luxon: 1.26.0
2787
+ luxon: 3.5.0
2814
2788
  react: 17.0.2
2815
2789
  react-dom: 17.0.2
2816
2790
  react-hook-form: 7.52.2
@@ -2818,7 +2792,7 @@ __metadata:
2818
2792
  react-loader: 2.4.7
2819
2793
  react-query: 3.34.12
2820
2794
  react-router-dom: 5.2.0
2821
- checksum: 10c0/3e13aabd58d2a69245d86522092528fd8f1f4c83c6ed2521882874e2912cc946e9dbc9f22643f77ce5b95755878efb0ed63186f24f53e5d80d33cf6c9d9837b3
2795
+ checksum: 10c0/a713a713d8f6d481245243a938f74874eb2ee531890807e1d5a1781a6150ddfac1c9558bc056bc809bbdb64f312129dec93dfac527a89037f6bf69eb6770fd4a
2822
2796
  languageName: node
2823
2797
  linkType: hard
2824
2798
 
@@ -3211,8 +3185,8 @@ __metadata:
3211
3185
  linkType: hard
3212
3186
 
3213
3187
  "@rollup/pluginutils@npm:^5.0.1, @rollup/pluginutils@npm:^5.0.2, @rollup/pluginutils@npm:^5.0.5, @rollup/pluginutils@npm:^5.1.0":
3214
- version: 5.1.1
3215
- resolution: "@rollup/pluginutils@npm:5.1.1"
3188
+ version: 5.1.2
3189
+ resolution: "@rollup/pluginutils@npm:5.1.2"
3216
3190
  dependencies:
3217
3191
  "@types/estree": "npm:^1.0.0"
3218
3192
  estree-walker: "npm:^2.0.2"
@@ -3222,7 +3196,7 @@ __metadata:
3222
3196
  peerDependenciesMeta:
3223
3197
  rollup:
3224
3198
  optional: true
3225
- checksum: 10c0/433a8b0b67ef9a36fb909a63c5ffa03846e15b6547fec9d2b9e15510dd898de9d1ec3f574aae29749d0e757e269112121a859f204b37becc470f1404e862b1e2
3199
+ checksum: 10c0/30f4a98e91a8699b6666b64ecdc665439bd53dddbe964bbeca56da81ff889cfde3a3e059144b80c5a2d9b48aa158df18a45e9a847a33b757d3e8336b278b8836
3226
3200
  languageName: node
3227
3201
  linkType: hard
3228
3202
 
@@ -5077,14 +5051,14 @@ __metadata:
5077
5051
  linkType: hard
5078
5052
 
5079
5053
  "@tiptap/extension-bubble-menu@npm:^2.0.0-beta.56":
5080
- version: 2.7.2
5081
- resolution: "@tiptap/extension-bubble-menu@npm:2.7.2"
5054
+ version: 2.7.3
5055
+ resolution: "@tiptap/extension-bubble-menu@npm:2.7.3"
5082
5056
  dependencies:
5083
5057
  tippy.js: "npm:^6.3.7"
5084
5058
  peerDependencies:
5085
5059
  "@tiptap/core": ^2.7.0
5086
5060
  "@tiptap/pm": ^2.7.0
5087
- checksum: 10c0/a0768509ee0ce95dda19f9cf7b43ad049679ae2bb1951d0903fc818f1598c128d8ba915a913589b5d2d0741cbf564ae27e59639bb8adab1c500e0310713fb6f8
5061
+ checksum: 10c0/179aac09db5479697229514958232ace39167ad903f6fb5561ecb773dfc773bb66b58d7c79a9924ce48398d7eddd1d15f2ec06cb1a7b0109754574cf853e5861
5088
5062
  languageName: node
5089
5063
  linkType: hard
5090
5064
 
@@ -5107,14 +5081,14 @@ __metadata:
5107
5081
  linkType: hard
5108
5082
 
5109
5083
  "@tiptap/extension-floating-menu@npm:^2.0.0-beta.51":
5110
- version: 2.7.2
5111
- resolution: "@tiptap/extension-floating-menu@npm:2.7.2"
5084
+ version: 2.7.3
5085
+ resolution: "@tiptap/extension-floating-menu@npm:2.7.3"
5112
5086
  dependencies:
5113
5087
  tippy.js: "npm:^6.3.7"
5114
5088
  peerDependencies:
5115
5089
  "@tiptap/core": ^2.7.0
5116
5090
  "@tiptap/pm": ^2.7.0
5117
- checksum: 10c0/3e363b199b55fe5d1ca8e861ee5a12a8a0c3f23baabce918fe554da9756ee674d155ab3baaf7bff52ab9009d3625922cc3c2966e4f258aa94e52c73678da1714
5091
+ checksum: 10c0/1a40ba4aa8fb8bbbe34140f7c330eaa6fa496803159dc66f645fbe2e28bf96991f3d64fef6de0d46a62be9635bdccfadac3801bef72cb35d6dfc1c0f7296e9a9
5118
5092
  languageName: node
5119
5093
  linkType: hard
5120
5094
 
@@ -5509,6 +5483,13 @@ __metadata:
5509
5483
  languageName: node
5510
5484
  linkType: hard
5511
5485
 
5486
+ "@types/linkify-it@npm:^5":
5487
+ version: 5.0.0
5488
+ resolution: "@types/linkify-it@npm:5.0.0"
5489
+ checksum: 10c0/7bbbf45b9dde17bf3f184fee585aef0e7342f6954f0377a24e4ff42ab5a85d5b806aaa5c8d16e2faf2a6b87b2d94467a196b7d2b85c9c7de2f0eaac5487aaab8
5490
+ languageName: node
5491
+ linkType: hard
5492
+
5512
5493
  "@types/lodash@npm:4.17.5":
5513
5494
  version: 4.17.5
5514
5495
  resolution: "@types/lodash@npm:4.17.5"
@@ -5516,10 +5497,20 @@ __metadata:
5516
5497
  languageName: node
5517
5498
  linkType: hard
5518
5499
 
5519
- "@types/luxon@npm:1.26.2":
5520
- version: 1.26.2
5521
- resolution: "@types/luxon@npm:1.26.2"
5522
- checksum: 10c0/7526b265d0b93ab8e1a01ec8e1e9940addac2ef75ebc14fb9c17fa0c6150bed9f3715fc05198b500d6c80a8cb2dece882b30ea9173fa229c5df8b2dc44a8398f
5500
+ "@types/luxon@npm:3.4.2":
5501
+ version: 3.4.2
5502
+ resolution: "@types/luxon@npm:3.4.2"
5503
+ checksum: 10c0/d835467de3daf7e17ba78b50bb5a14efd94272439ca067990d71332a54b311544459c69623eddd243b511b28d70194c9591a9ee8cf9c038962c965f991affd7e
5504
+ languageName: node
5505
+ linkType: hard
5506
+
5507
+ "@types/markdown-it@npm:^14.0.0":
5508
+ version: 14.1.2
5509
+ resolution: "@types/markdown-it@npm:14.1.2"
5510
+ dependencies:
5511
+ "@types/linkify-it": "npm:^5"
5512
+ "@types/mdurl": "npm:^2"
5513
+ checksum: 10c0/34f709f0476bd4e7b2ba7c3341072a6d532f1f4cb6f70aef371e403af8a08a7c372ba6907ac426bc618d356dab660c5b872791ff6c1ead80c483e0d639c6f127
5523
5514
  languageName: node
5524
5515
  linkType: hard
5525
5516
 
@@ -5541,6 +5532,13 @@ __metadata:
5541
5532
  languageName: node
5542
5533
  linkType: hard
5543
5534
 
5535
+ "@types/mdurl@npm:^2":
5536
+ version: 2.0.0
5537
+ resolution: "@types/mdurl@npm:2.0.0"
5538
+ checksum: 10c0/cde7bb571630ed1ceb3b92a28f7b59890bb38b8f34cd35326e2df43eebfc74985e6aa6fd4184e307393bad8a9e0783a519a3f9d13c8e03788c0f98e5ec869c5e
5539
+ languageName: node
5540
+ linkType: hard
5541
+
5544
5542
  "@types/mdx-js__react@npm:1.5.3":
5545
5543
  version: 1.5.3
5546
5544
  resolution: "@types/mdx-js__react@npm:1.5.3"
@@ -5577,11 +5575,11 @@ __metadata:
5577
5575
  linkType: hard
5578
5576
 
5579
5577
  "@types/node@npm:*":
5580
- version: 22.5.5
5581
- resolution: "@types/node@npm:22.5.5"
5578
+ version: 22.7.2
5579
+ resolution: "@types/node@npm:22.7.2"
5582
5580
  dependencies:
5583
5581
  undici-types: "npm:~6.19.2"
5584
- checksum: 10c0/ead9495cfc6b1da5e7025856dcce2591e9bae635357410c0d2dd619fce797d2a1d402887580ca4b336cb78168b195224869967de370a23f61663cf1e4836121c
5582
+ checksum: 10c0/987e4df034e4af0ce76b938c2c0d94373da376b228f1c93081a661c77e682795c599bcad47c93c70a25b8ea443587137cf23088fb7f62ef442955f13046eae3d
5585
5583
  languageName: node
5586
5584
  linkType: hard
5587
5585
 
@@ -5849,12 +5847,12 @@ __metadata:
5849
5847
  linkType: hard
5850
5848
 
5851
5849
  "@types/react@npm:*, @types/react@npm:16 || 17 || 18, @types/react@npm:>=16.14.8, @types/react@npm:>=16.9.11":
5852
- version: 18.3.8
5853
- resolution: "@types/react@npm:18.3.8"
5850
+ version: 18.3.9
5851
+ resolution: "@types/react@npm:18.3.9"
5854
5852
  dependencies:
5855
5853
  "@types/prop-types": "npm:*"
5856
5854
  csstype: "npm:^3.0.2"
5857
- checksum: 10c0/367312c9fe276639ecb142265e090a4dd04bb39f8d718cbab546de3f1ddcfddeff415e1147d0fc40f734badaa7420b7b109d511bd4304b2c4c9c36164612fdf8
5855
+ checksum: 10c0/a92b8e061d0c833e096254782c56a802316593f4a907fb834b557cabe848a0829b9eb6056404ea239eb4d5ec5ac7b7724309761516c0a7a277916fa04dd4f805
5858
5856
  languageName: node
5859
5857
  linkType: hard
5860
5858
 
@@ -7668,16 +7666,16 @@ __metadata:
7668
7666
  linkType: hard
7669
7667
 
7670
7668
  "browserslist@npm:^4.12.0, browserslist@npm:^4.23.1, browserslist@npm:^4.23.3":
7671
- version: 4.23.3
7672
- resolution: "browserslist@npm:4.23.3"
7669
+ version: 4.24.0
7670
+ resolution: "browserslist@npm:4.24.0"
7673
7671
  dependencies:
7674
- caniuse-lite: "npm:^1.0.30001646"
7675
- electron-to-chromium: "npm:^1.5.4"
7672
+ caniuse-lite: "npm:^1.0.30001663"
7673
+ electron-to-chromium: "npm:^1.5.28"
7676
7674
  node-releases: "npm:^2.0.18"
7677
7675
  update-browserslist-db: "npm:^1.1.0"
7678
7676
  bin:
7679
7677
  browserslist: cli.js
7680
- checksum: 10c0/3063bfdf812815346447f4796c8f04601bf5d62003374305fd323c2a463e42776475bcc5309264e39bcf9a8605851e53560695991a623be988138b3ff8c66642
7678
+ checksum: 10c0/95e76ad522753c4c470427f6e3c8a4bb5478ff448841e22b3d3e53f89ecaf17b6984666d6c7e715c370f1e7fa0cf684f42e34e554236a8b2fab38ea76b9e4c52
7681
7679
  languageName: node
7682
7680
  linkType: hard
7683
7681
 
@@ -7911,10 +7909,10 @@ __metadata:
7911
7909
  languageName: node
7912
7910
  linkType: hard
7913
7911
 
7914
- "caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001125, caniuse-lite@npm:^1.0.30001646":
7915
- version: 1.0.30001663
7916
- resolution: "caniuse-lite@npm:1.0.30001663"
7917
- checksum: 10c0/6508e27bf7fdec657f26f318b1ab64ace6e1208ef9fedaf0975bc89046e0c683bfba837f108840ada1686ff09b8ffd01e05ac791dcf598b8f16eefb636875cf2
7912
+ "caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001125, caniuse-lite@npm:^1.0.30001663":
7913
+ version: 1.0.30001664
7914
+ resolution: "caniuse-lite@npm:1.0.30001664"
7915
+ checksum: 10c0/db2b431aba41a585191ab1e4d40da0ad349ff32400edac2a167bf6bf92dbf9c704eab03dc60fb89e882ce02478d61c3036b2b1bdce8edf9b2aabda5608bae05e
7918
7916
  languageName: node
7919
7917
  linkType: hard
7920
7918
 
@@ -8050,8 +8048,8 @@ __metadata:
8050
8048
  linkType: hard
8051
8049
 
8052
8050
  "chromatic@npm:^11.4.0":
8053
- version: 11.10.2
8054
- resolution: "chromatic@npm:11.10.2"
8051
+ version: 11.10.4
8052
+ resolution: "chromatic@npm:11.10.4"
8055
8053
  peerDependencies:
8056
8054
  "@chromatic-com/cypress": ^0.*.* || ^1.0.0
8057
8055
  "@chromatic-com/playwright": ^0.*.* || ^1.0.0
@@ -8064,7 +8062,7 @@ __metadata:
8064
8062
  chroma: dist/bin.js
8065
8063
  chromatic: dist/bin.js
8066
8064
  chromatic-cli: dist/bin.js
8067
- checksum: 10c0/167633dc1d3d0309af4524e7603a887d3481bc6005a2c0cb955d9ca0e17223bd0335a01844835fe34f1823df308032d6b238bced644a755a3f7c265728ac5e41
8065
+ checksum: 10c0/b14b43f7ded1c6536fd2b0edf0d5d2da1a0f36083d14a87ce0c069db83f7c4896b483238164199976343748b5b846640b6914dcf523b9e9e698145fe74f52bcd
8068
8066
  languageName: node
8069
8067
  linkType: hard
8070
8068
 
@@ -9565,10 +9563,10 @@ __metadata:
9565
9563
  languageName: node
9566
9564
  linkType: hard
9567
9565
 
9568
- "electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.4":
9569
- version: 1.5.27
9570
- resolution: "electron-to-chromium@npm:1.5.27"
9571
- checksum: 10c0/4a057f469a01829884f2a51f3fc60af7e6a718b15009e4875df122fcdf13babea475ba029af1652a6875b4acfca730c48b13caac5d477d648e622699d3b662bf
9566
+ "electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.28":
9567
+ version: 1.5.29
9568
+ resolution: "electron-to-chromium@npm:1.5.29"
9569
+ checksum: 10c0/ae4849f1fe8d756d30c6f5f992803d8550a98b38a30aecc7d9776858cf229ad05b12cb9f7675f0a89330a077d16e28388cfe394fdd9d0828ffe860c8568c95c2
9572
9570
  languageName: node
9573
9571
  linkType: hard
9574
9572
 
@@ -10132,14 +10130,14 @@ __metadata:
10132
10130
  linkType: hard
10133
10131
 
10134
10132
  "eslint-module-utils@npm:^2.6.0":
10135
- version: 2.11.0
10136
- resolution: "eslint-module-utils@npm:2.11.0"
10133
+ version: 2.11.1
10134
+ resolution: "eslint-module-utils@npm:2.11.1"
10137
10135
  dependencies:
10138
10136
  debug: "npm:^3.2.7"
10139
10137
  peerDependenciesMeta:
10140
10138
  eslint:
10141
10139
  optional: true
10142
- checksum: 10c0/c1b02e83429878ab22596f17a5ac138e51a520e96a5ef89a5a6698769a2d174ab28302d45eb563c0fc418d21a5842e328c37a6e8f294bf2e64e675ba55203dd7
10140
+ checksum: 10c0/d1c23397eddc42a7824de08348095483bc270a4a3222bc0d54a76382c6411111c33e44a0a1819489e1e209d9e4721de2a8438e7ca4e6fe6be32ff818af9b11b4
10143
10141
  languageName: node
10144
10142
  linkType: hard
10145
10143
 
@@ -13741,10 +13739,10 @@ __metadata:
13741
13739
  languageName: node
13742
13740
  linkType: hard
13743
13741
 
13744
- "luxon@npm:1.26.0":
13745
- version: 1.26.0
13746
- resolution: "luxon@npm:1.26.0"
13747
- checksum: 10c0/06e7db9ab9e39069554ce12f84be7246e2e0948d3790ad991e7be676a263be137547ccd9911239b66cee6d8ef2bee6030a5400e0214494a7ea33a7fa4305dc62
13742
+ "luxon@npm:3.5.0":
13743
+ version: 3.5.0
13744
+ resolution: "luxon@npm:3.5.0"
13745
+ checksum: 10c0/335789bba95077db831ef99894edadeb23023b3eb2137a1b56acd0d290082b691cf793143d69e30bc069ec95f0b49f36419f48e951c68014f19ffe12045e3494
13748
13746
  languageName: node
13749
13747
  linkType: hard
13750
13748
 
@@ -16045,12 +16043,13 @@ __metadata:
16045
16043
  linkType: hard
16046
16044
 
16047
16045
  "prosemirror-markdown@npm:^1.10.1":
16048
- version: 1.13.0
16049
- resolution: "prosemirror-markdown@npm:1.13.0"
16046
+ version: 1.13.1
16047
+ resolution: "prosemirror-markdown@npm:1.13.1"
16050
16048
  dependencies:
16049
+ "@types/markdown-it": "npm:^14.0.0"
16051
16050
  markdown-it: "npm:^14.0.0"
16052
16051
  prosemirror-model: "npm:^1.20.0"
16053
- checksum: 10c0/3f4c7603da4795db8233a78ff2769f901d368fa82049fb651dc9e7db9ed7e057cdd704f248f37792b0b2814df6317714a960e4418ffcd1078c02f2cd08c8f906
16052
+ checksum: 10c0/518cad5d4e7b1c1b2abf43995c837392b76b9f7757e814de42885a20d427dfaa2308be6fea39828ae65225a768976cb914825f78138850a282b06ba571aaea3d
16054
16053
  languageName: node
16055
16054
  linkType: hard
16056
16055