@instructure/ui-dialog 8.25.1-snapshot-10 → 8.25.1-snapshot-13

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,7 +3,7 @@
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.25.1-snapshot-10](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-10) (2022-06-20)
6
+ ## [8.25.1-snapshot-13](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.25.1-snapshot-13) (2022-06-22)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-dialog
9
9
 
@@ -40,22 +40,22 @@ category: components/utilities
40
40
  @tsProps
41
41
  **/
42
42
  class Dialog extends Component {
43
- static displayName = "Dialog";
44
- static componentId = 'Dialog';
45
- static propTypes = propTypes;
46
- static allowedProps = allowedProps;
47
- static defaultProps = {
48
- open: false,
49
- shouldFocusOnOpen: true,
50
- shouldContainFocus: false,
51
- shouldReturnFocus: false,
52
- shouldCloseOnDocumentClick: true,
53
- shouldCloseOnEscape: true
54
- };
55
- _timeouts = [];
56
- _raf = [];
57
- _focusRegion = null;
58
- ref = null;
43
+ constructor() {
44
+ super(...arguments);
45
+ this._timeouts = [];
46
+ this._raf = [];
47
+ this._focusRegion = null;
48
+ this.ref = null;
49
+
50
+ this.getRef = el => {
51
+ const elementRef = this.props.elementRef;
52
+ this.ref = el;
53
+
54
+ if (typeof elementRef === 'function') {
55
+ elementRef(el);
56
+ }
57
+ };
58
+ }
59
59
 
60
60
  get _root() {
61
61
  return this.ref;
@@ -143,15 +143,6 @@ class Dialog extends Component {
143
143
  this.close();
144
144
  }
145
145
 
146
- getRef = el => {
147
- const elementRef = this.props.elementRef;
148
- this.ref = el;
149
-
150
- if (typeof elementRef === 'function') {
151
- elementRef(el);
152
- }
153
- };
154
-
155
146
  get contentElement() {
156
147
  let contentElement = findDOMNode(this.props.contentElement);
157
148
 
@@ -181,5 +172,17 @@ class Dialog extends Component {
181
172
 
182
173
  }
183
174
 
175
+ Dialog.displayName = "Dialog";
176
+ Dialog.componentId = 'Dialog';
177
+ Dialog.propTypes = propTypes;
178
+ Dialog.allowedProps = allowedProps;
179
+ Dialog.defaultProps = {
180
+ open: false,
181
+ shouldFocusOnOpen: true,
182
+ shouldContainFocus: false,
183
+ shouldReturnFocus: false,
184
+ shouldCloseOnDocumentClick: true,
185
+ shouldCloseOnEscape: true
186
+ };
184
187
  export default Dialog;
185
188
  export { Dialog };
@@ -38,22 +38,22 @@ category: components/utilities
38
38
  @tsProps
39
39
  **/
40
40
  class Dialog extends _react.Component {
41
- static displayName = "Dialog";
42
- static componentId = 'Dialog';
43
- static propTypes = _props.propTypes;
44
- static allowedProps = _props.allowedProps;
45
- static defaultProps = {
46
- open: false,
47
- shouldFocusOnOpen: true,
48
- shouldContainFocus: false,
49
- shouldReturnFocus: false,
50
- shouldCloseOnDocumentClick: true,
51
- shouldCloseOnEscape: true
52
- };
53
- _timeouts = [];
54
- _raf = [];
55
- _focusRegion = null;
56
- ref = null;
41
+ constructor() {
42
+ super(...arguments);
43
+ this._timeouts = [];
44
+ this._raf = [];
45
+ this._focusRegion = null;
46
+ this.ref = null;
47
+
48
+ this.getRef = el => {
49
+ const elementRef = this.props.elementRef;
50
+ this.ref = el;
51
+
52
+ if (typeof elementRef === 'function') {
53
+ elementRef(el);
54
+ }
55
+ };
56
+ }
57
57
 
58
58
  get _root() {
59
59
  return this.ref;
@@ -141,15 +141,6 @@ class Dialog extends _react.Component {
141
141
  this.close();
142
142
  }
143
143
 
144
- getRef = el => {
145
- const elementRef = this.props.elementRef;
146
- this.ref = el;
147
-
148
- if (typeof elementRef === 'function') {
149
- elementRef(el);
150
- }
151
- };
152
-
153
144
  get contentElement() {
154
145
  let contentElement = (0, _findDOMNode.findDOMNode)(this.props.contentElement);
155
146
 
@@ -180,5 +171,17 @@ class Dialog extends _react.Component {
180
171
  }
181
172
 
182
173
  exports.Dialog = Dialog;
174
+ Dialog.displayName = "Dialog";
175
+ Dialog.componentId = 'Dialog';
176
+ Dialog.propTypes = _props.propTypes;
177
+ Dialog.allowedProps = _props.allowedProps;
178
+ Dialog.defaultProps = {
179
+ open: false,
180
+ shouldFocusOnOpen: true,
181
+ shouldContainFocus: false,
182
+ shouldReturnFocus: false,
183
+ shouldCloseOnDocumentClick: true,
184
+ shouldCloseOnEscape: true
185
+ };
183
186
  var _default = Dialog;
184
187
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-dialog",
3
- "version": "8.25.1-snapshot-10",
3
+ "version": "8.25.1-snapshot-13",
4
4
  "description": "A utility component for managing keyboard accessibility and screen reader behavior",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,18 +24,18 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.13.10",
27
- "@instructure/shared-types": "8.25.1-snapshot-10",
28
- "@instructure/ui-a11y-utils": "8.25.1-snapshot-10",
29
- "@instructure/ui-dom-utils": "8.25.1-snapshot-10",
30
- "@instructure/ui-react-utils": "8.25.1-snapshot-10",
31
- "@instructure/ui-testable": "8.25.1-snapshot-10",
27
+ "@instructure/shared-types": "8.25.1-snapshot-13",
28
+ "@instructure/ui-a11y-utils": "8.25.1-snapshot-13",
29
+ "@instructure/ui-dom-utils": "8.25.1-snapshot-13",
30
+ "@instructure/ui-react-utils": "8.25.1-snapshot-13",
31
+ "@instructure/ui-testable": "8.25.1-snapshot-13",
32
32
  "prop-types": "^15"
33
33
  },
34
34
  "devDependencies": {
35
- "@instructure/console": "8.25.1-snapshot-10",
36
- "@instructure/ui-babel-preset": "8.25.1-snapshot-10",
37
- "@instructure/ui-prop-types": "8.25.1-snapshot-10",
38
- "@instructure/ui-test-utils": "8.25.1-snapshot-10"
35
+ "@instructure/console": "8.25.1-snapshot-13",
36
+ "@instructure/ui-babel-preset": "8.25.1-snapshot-13",
37
+ "@instructure/ui-prop-types": "8.25.1-snapshot-13",
38
+ "@instructure/ui-test-utils": "8.25.1-snapshot-13"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=16.8 <=17"