@commercetools-uikit/calendar-time-utils 17.0.1 → 17.1.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.
@@ -54,7 +54,6 @@ const formatToken = {
54
54
  // MINUTE_TWO_DIGITS
55
55
  A: 'A' // PERIOD - https://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns
56
56
  };
57
-
58
57
  // Here is where we translate from the standard characters used in the pattern
59
58
  // (calculated in the moment.js library) to the characters used in the locale
60
59
  // We just need to provide the translation for the characters that are different
@@ -114,7 +113,6 @@ const formatTime = (day, locale, timeZone) => {
114
113
  if (date.seconds()) return date.format('LTS'); // 5:13:51 PM
115
114
  return date.format('LT'); // 5:13 PM
116
115
  };
117
-
118
116
  const formatDate = (day, locale, timeZone) => {
119
117
  var _context;
120
118
  const date = moment__default["default"](day, moment__default["default"].ISO_8601, locale).tz(timeZone).format('L');
@@ -232,7 +230,7 @@ const getLocalizedDateTimeFormatPattern = function (locale) {
232
230
  };
233
231
 
234
232
  // NOTE: This string will be replaced on build time with the package version.
235
- var version = "17.0.1";
233
+ var version = "17.1.0";
236
234
 
237
235
  exports.changeDateInMonth = changeDateInMonth;
238
236
  exports.changeMonth = changeMonth;
@@ -54,7 +54,6 @@ const formatToken = {
54
54
  // MINUTE_TWO_DIGITS
55
55
  A: 'A' // PERIOD - https://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns
56
56
  };
57
-
58
57
  // Here is where we translate from the standard characters used in the pattern
59
58
  // (calculated in the moment.js library) to the characters used in the locale
60
59
  // We just need to provide the translation for the characters that are different
@@ -114,7 +113,6 @@ const formatTime = (day, locale, timeZone) => {
114
113
  if (date.seconds()) return date.format('LTS'); // 5:13:51 PM
115
114
  return date.format('LT'); // 5:13 PM
116
115
  };
117
-
118
116
  const formatDate = (day, locale, timeZone) => {
119
117
  var _context;
120
118
  const date = moment__default["default"](day, moment__default["default"].ISO_8601, locale).tz(timeZone).format('L');
@@ -232,7 +230,7 @@ const getLocalizedDateTimeFormatPattern = function (locale) {
232
230
  };
233
231
 
234
232
  // NOTE: This string will be replaced on build time with the package version.
235
- var version = "17.0.1";
233
+ var version = "17.1.0";
236
234
 
237
235
  exports.changeDateInMonth = changeDateInMonth;
238
236
  exports.changeMonth = changeMonth;
@@ -38,7 +38,6 @@ const formatToken = {
38
38
  // MINUTE_TWO_DIGITS
39
39
  A: 'A' // PERIOD - https://unicode.org/reports/tr35/tr35-6.html#Date_Format_Patterns
40
40
  };
41
-
42
41
  // Here is where we translate from the standard characters used in the pattern
43
42
  // (calculated in the moment.js library) to the characters used in the locale
44
43
  // We just need to provide the translation for the characters that are different
@@ -98,7 +97,6 @@ const formatTime = (day, locale, timeZone) => {
98
97
  if (date.seconds()) return date.format('LTS'); // 5:13:51 PM
99
98
  return date.format('LT'); // 5:13 PM
100
99
  };
101
-
102
100
  const formatDate = (day, locale, timeZone) => {
103
101
  var _context;
104
102
  const date = moment(day, moment.ISO_8601, locale).tz(timeZone).format('L');
@@ -216,6 +214,6 @@ const getLocalizedDateTimeFormatPattern = function (locale) {
216
214
  };
217
215
 
218
216
  // NOTE: This string will be replaced on build time with the package version.
219
- var version = "17.0.1";
217
+ var version = "17.1.0";
220
218
 
221
219
  export { changeDateInMonth, changeMonth, changeTime, createCalendarItems, createItemDateTimeToString, createSuggestedItems, formatDate, formatTime, getCalendarDayLabel, getDateInMonth, getDaysInMonth, getLocalizedDateTimeFormatPattern, getMonthCalendarLabel, getPaddingDayCount, getPreviousDay, getStartOf, getToday, getWeekdayNames, getYearCalendarLabel, isSameDay, parseInputText, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/calendar-time-utils",
3
3
  "description": "Utilities to work with time values for a calendar.",
4
- "version": "17.0.1",
4
+ "version": "17.1.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/utils": "17.0.1"
24
+ "@commercetools-uikit/utils": "17.1.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "moment-timezone": "0.5.44"