@instructure/ui-calendar 8.56.3 → 8.56.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.56.4](https://github.com/instructure/instructure-ui/compare/v8.56.3...v8.56.4) (2024-10-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-calendar,ui-date-input:** fix locale and timezone for simple api ([94209df](https://github.com/instructure/instructure-ui/commit/94209dfdfaeca8c8ae452771c4bf2688e6345272))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [8.56.3](https://github.com/instructure/instructure-ui/compare/v8.56.2...v8.56.3) (2024-09-18)
7
18
 
8
19
 
@@ -235,9 +235,10 @@ let Calendar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
235
235
  }) : day))));
236
236
  }
237
237
  locale() {
238
+ var _this$context;
238
239
  if (this.props.locale) {
239
240
  return this.props.locale;
240
- } else if (this.context && this.context.locale) {
241
+ } else if (this !== null && this !== void 0 && (_this$context = this.context) !== null && _this$context !== void 0 && _this$context.locale) {
241
242
  return this.context.locale;
242
243
  }
243
244
  return Locale.browserLocale();
@@ -246,9 +246,10 @@ let Calendar = exports.Calendar = (_dec = (0, _emotion.withStyle)(_styles.defaul
246
246
  }) : day))));
247
247
  }
248
248
  locale() {
249
+ var _this$context;
249
250
  if (this.props.locale) {
250
251
  return this.props.locale;
251
- } else if (this.context && this.context.locale) {
252
+ } else if (this !== null && this !== void 0 && (_this$context = this.context) !== null && _this$context !== void 0 && _this$context.locale) {
252
253
  return this.context.locale;
253
254
  }
254
255
  return _Locale.Locale.browserLocale();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-calendar",
3
- "version": "8.56.3",
3
+ "version": "8.56.4",
4
4
  "description": "A calendar component.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,29 +23,29 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.56.3",
27
- "@instructure/ui-color-utils": "8.56.3",
28
- "@instructure/ui-test-locator": "8.56.3",
29
- "@instructure/ui-test-utils": "8.56.3",
30
- "@instructure/ui-themes": "8.56.3",
26
+ "@instructure/ui-babel-preset": "8.56.4",
27
+ "@instructure/ui-color-utils": "8.56.4",
28
+ "@instructure/ui-test-locator": "8.56.4",
29
+ "@instructure/ui-test-utils": "8.56.4",
30
+ "@instructure/ui-themes": "8.56.4",
31
31
  "@testing-library/jest-dom": "^6.1.4",
32
32
  "@testing-library/react": "^14.1.2"
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.23.2",
36
- "@instructure/console": "8.56.3",
37
- "@instructure/emotion": "8.56.3",
38
- "@instructure/shared-types": "8.56.3",
39
- "@instructure/ui-a11y-content": "8.56.3",
40
- "@instructure/ui-buttons": "8.56.3",
41
- "@instructure/ui-i18n": "8.56.3",
42
- "@instructure/ui-icons": "8.56.3",
43
- "@instructure/ui-prop-types": "8.56.3",
44
- "@instructure/ui-react-utils": "8.56.3",
45
- "@instructure/ui-testable": "8.56.3",
46
- "@instructure/ui-utils": "8.56.3",
47
- "@instructure/ui-view": "8.56.3",
48
- "@instructure/uid": "8.56.3",
36
+ "@instructure/console": "8.56.4",
37
+ "@instructure/emotion": "8.56.4",
38
+ "@instructure/shared-types": "8.56.4",
39
+ "@instructure/ui-a11y-content": "8.56.4",
40
+ "@instructure/ui-buttons": "8.56.4",
41
+ "@instructure/ui-i18n": "8.56.4",
42
+ "@instructure/ui-icons": "8.56.4",
43
+ "@instructure/ui-prop-types": "8.56.4",
44
+ "@instructure/ui-react-utils": "8.56.4",
45
+ "@instructure/ui-testable": "8.56.4",
46
+ "@instructure/ui-utils": "8.56.4",
47
+ "@instructure/ui-view": "8.56.4",
48
+ "@instructure/uid": "8.56.4",
49
49
  "prop-types": "^15.8.1"
50
50
  },
51
51
  "peerDependencies": {
@@ -342,7 +342,7 @@ class Calendar extends Component<CalendarProps, CalendarState> {
342
342
  locale(): string {
343
343
  if (this.props.locale) {
344
344
  return this.props.locale
345
- } else if (this.context && this.context.locale) {
345
+ } else if (this?.context?.locale) {
346
346
  return this.context.locale
347
347
  }
348
348
  return Locale.browserLocale()