@instructure/ui-navigation 8.10.1-snapshot.8 → 8.10.2

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,14 @@
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.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-navigation
9
+
10
+ ## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
11
+
12
+ **Note:** Version bump only for package @instructure/ui-navigation
13
+
6
14
  # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-navigation
@@ -46,11 +46,19 @@ id: AppNav.Item
46
46
  let Item = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Item extends Component {
47
47
  constructor(...args) {
48
48
  super(...args);
49
+ this.ref = null;
50
+
51
+ this.handleRef = el => {
52
+ var _this$props$elementRe, _this$props;
53
+
54
+ this.ref = el;
55
+ (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
56
+ };
49
57
 
50
58
  this.handleClick = e => {
51
- const _this$props = this.props,
52
- isDisabled = _this$props.isDisabled,
53
- onClick = _this$props.onClick;
59
+ const _this$props2 = this.props,
60
+ isDisabled = _this$props2.isDisabled,
61
+ onClick = _this$props2.onClick;
54
62
 
55
63
  if (isDisabled) {
56
64
  e.preventDefault();
@@ -62,29 +70,29 @@ let Item = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
62
70
  }
63
71
 
64
72
  componentDidMount() {
65
- var _this$props$makeStyle, _this$props2;
73
+ var _this$props$makeStyle, _this$props3;
66
74
 
67
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
75
+ (_this$props$makeStyle = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props3);
68
76
  }
69
77
 
70
78
  componentDidUpdate() {
71
- var _this$props$makeStyle2, _this$props3;
79
+ var _this$props$makeStyle2, _this$props4;
72
80
 
73
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
81
+ (_this$props$makeStyle2 = (_this$props4 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props4);
74
82
  }
75
83
 
76
84
  render() {
77
85
  var _this$props$styles, _this$props$styles2;
78
86
 
79
87
  const ElementType = getElementType(Item, this.props);
80
- const _this$props4 = this.props,
81
- renderIcon = _this$props4.renderIcon,
82
- renderLabel = _this$props4.renderLabel,
83
- href = _this$props4.href,
84
- elementRef = _this$props4.elementRef,
85
- renderAfter = _this$props4.renderAfter,
86
- cursor = _this$props4.cursor,
87
- isDisabled = _this$props4.isDisabled;
88
+ const _this$props5 = this.props,
89
+ renderIcon = _this$props5.renderIcon,
90
+ renderLabel = _this$props5.renderLabel,
91
+ href = _this$props5.href,
92
+ elementRef = _this$props5.elementRef,
93
+ renderAfter = _this$props5.renderAfter,
94
+ cursor = _this$props5.cursor,
95
+ isDisabled = _this$props5.isDisabled;
88
96
  const icon = callRenderProp(renderIcon);
89
97
  const label = callRenderProp(renderLabel);
90
98
  const labelIsForScreenReaders = matchComponentTypes(label, [ScreenReaderContent]);
@@ -50,6 +50,7 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
50
50
  this.state = {
51
51
  isMeasuring: false
52
52
  };
53
+ this.ref = null;
53
54
  this._list = null;
54
55
 
55
56
  this.measureItems = () => {
@@ -102,12 +103,19 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
102
103
  });
103
104
  });
104
105
  };
106
+
107
+ this.handleRef = el => {
108
+ var _this$props$elementRe, _this$props;
109
+
110
+ this.ref = el;
111
+ (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
112
+ };
105
113
  }
106
114
 
107
115
  componentDidMount() {
108
- var _this$props$makeStyle, _this$props;
116
+ var _this$props$makeStyle, _this$props2;
109
117
 
110
- (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
118
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
111
119
 
112
120
  const _getBoundingClientRec3 = getBoundingClientRect(this._list),
113
121
  origWidth = _getBoundingClientRec3.width;
@@ -132,9 +140,9 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
132
140
  }
133
141
 
134
142
  componentDidUpdate() {
135
- var _this$props$makeStyle2, _this$props2;
143
+ var _this$props$makeStyle2, _this$props3;
136
144
 
137
- (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
145
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
138
146
  }
139
147
 
140
148
  componentWillUnmount() {
@@ -176,12 +184,11 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
176
184
  render() {
177
185
  var _this$props$styles4, _this$props$styles5, _this$props$styles6;
178
186
 
179
- const _this$props3 = this.props,
180
- children = _this$props3.children,
181
- visibleItemsCount = _this$props3.visibleItemsCount,
182
- screenReaderLabel = _this$props3.screenReaderLabel,
183
- margin = _this$props3.margin,
184
- elementRef = _this$props3.elementRef;
187
+ const _this$props4 = this.props,
188
+ children = _this$props4.children,
189
+ visibleItemsCount = _this$props4.visibleItemsCount,
190
+ screenReaderLabel = _this$props4.screenReaderLabel,
191
+ margin = _this$props4.margin;
185
192
  const passthroughProps = View.omitViewProps(omitProps(this.props, AppNav.allowedProps), AppNav);
186
193
  const isMeasuring = this.state.isMeasuring;
187
194
  const childrenArray = Children.toArray(children);
@@ -195,7 +202,7 @@ let AppNav = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
195
202
  css: [(_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.appNav, hasRenderedContent ? (_this$props$styles5 = this.props.styles) === null || _this$props$styles5 === void 0 ? void 0 : _this$props$styles5.alignCenter : ''],
196
203
  margin: margin,
197
204
  display: hasRenderedContent ? 'flex' : 'block',
198
- elementRef: elementRef
205
+ elementRef: this.handleRef
199
206
  }), renderBeforeItems && jsx("span", null, renderBeforeItems), jsx("ul", {
200
207
  ref: el => this._list = el,
201
208
  css: (_this$props$styles6 = this.props.styles) === null || _this$props$styles6 === void 0 ? void 0 : _this$props$styles6.list,
@@ -42,6 +42,11 @@ id: Navigation.Item
42
42
  **/
43
43
 
44
44
  let NavigationItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class NavigationItem extends Component {
45
+ constructor(...args) {
46
+ super(...args);
47
+ this.ref = null;
48
+ }
49
+
45
50
  componentDidMount() {
46
51
  var _this$props$makeStyle, _this$props;
47
52
 
@@ -72,7 +77,10 @@ let NavigationItem = (_dec = withStyle(generateStyle, generateComponentTheme), _
72
77
  href: href,
73
78
  onClick: onClick,
74
79
  css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.navigationItem,
75
- "aria-label": this.props.minimized ? label : void 0
80
+ "aria-label": this.props.minimized ? label : void 0,
81
+ ref: element => {
82
+ this.ref = element;
83
+ }
76
84
  }), jsx("div", {
77
85
  css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.icon,
78
86
  "aria-hidden": "true"
@@ -51,6 +51,7 @@ category: components
51
51
  let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Navigation extends Component {
52
52
  constructor(props) {
53
53
  super();
54
+ this.ref = null;
54
55
 
55
56
  this.handleNavToggle = event => {
56
57
  if (!this.isControlled()) {
@@ -117,7 +118,10 @@ let Navigation = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2
117
118
  const props = omitProps(this.props, Navigation.allowedProps, ['minimized']);
118
119
  return jsx("nav", Object.assign({}, props, {
119
120
  css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.navigation,
120
- "aria-label": label
121
+ "aria-label": label,
122
+ ref: element => {
123
+ this.ref = element;
124
+ }
121
125
  }), jsx("ul", {
122
126
  css: (_this$props$styles3 = this.props.styles) === null || _this$props$styles3 === void 0 ? void 0 : _this$props$styles3.content
123
127
  }, this.renderChildren()), jsx("div", {
@@ -45,11 +45,19 @@ id: AppNav.Item
45
45
  let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Item extends _react.Component {
46
46
  constructor(...args) {
47
47
  super(...args);
48
+ this.ref = null;
49
+
50
+ this.handleRef = el => {
51
+ var _this$props$elementRe, _this$props;
52
+
53
+ this.ref = el;
54
+ (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
55
+ };
48
56
 
49
57
  this.handleClick = e => {
50
- const _this$props = this.props,
51
- isDisabled = _this$props.isDisabled,
52
- onClick = _this$props.onClick;
58
+ const _this$props2 = this.props,
59
+ isDisabled = _this$props2.isDisabled,
60
+ onClick = _this$props2.onClick;
53
61
 
54
62
  if (isDisabled) {
55
63
  e.preventDefault();
@@ -61,29 +69,29 @@ let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
61
69
  }
62
70
 
63
71
  componentDidMount() {
64
- var _this$props$makeStyle, _this$props2;
72
+ var _this$props$makeStyle, _this$props3;
65
73
 
66
- (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
74
+ (_this$props$makeStyle = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props3);
67
75
  }
68
76
 
69
77
  componentDidUpdate() {
70
- var _this$props$makeStyle2, _this$props3;
78
+ var _this$props$makeStyle2, _this$props4;
71
79
 
72
- (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
80
+ (_this$props$makeStyle2 = (_this$props4 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props4);
73
81
  }
74
82
 
75
83
  render() {
76
84
  var _this$props$styles, _this$props$styles2;
77
85
 
78
86
  const ElementType = (0, _getElementType.getElementType)(Item, this.props);
79
- const _this$props4 = this.props,
80
- renderIcon = _this$props4.renderIcon,
81
- renderLabel = _this$props4.renderLabel,
82
- href = _this$props4.href,
83
- elementRef = _this$props4.elementRef,
84
- renderAfter = _this$props4.renderAfter,
85
- cursor = _this$props4.cursor,
86
- isDisabled = _this$props4.isDisabled;
87
+ const _this$props5 = this.props,
88
+ renderIcon = _this$props5.renderIcon,
89
+ renderLabel = _this$props5.renderLabel,
90
+ href = _this$props5.href,
91
+ elementRef = _this$props5.elementRef,
92
+ renderAfter = _this$props5.renderAfter,
93
+ cursor = _this$props5.cursor,
94
+ isDisabled = _this$props5.isDisabled;
87
95
  const icon = (0, _callRenderProp.callRenderProp)(renderIcon);
88
96
  const label = (0, _callRenderProp.callRenderProp)(renderLabel);
89
97
  const labelIsForScreenReaders = (0, _matchComponentTypes.matchComponentTypes)(label, [_ScreenReaderContent.ScreenReaderContent]);
@@ -48,6 +48,7 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
48
48
  this.state = {
49
49
  isMeasuring: false
50
50
  };
51
+ this.ref = null;
51
52
  this._list = null;
52
53
 
53
54
  this.measureItems = () => {
@@ -100,12 +101,19 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
100
101
  });
101
102
  });
102
103
  };
104
+
105
+ this.handleRef = el => {
106
+ var _this$props$elementRe, _this$props;
107
+
108
+ this.ref = el;
109
+ (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
110
+ };
103
111
  }
104
112
 
105
113
  componentDidMount() {
106
- var _this$props$makeStyle, _this$props;
114
+ var _this$props$makeStyle, _this$props2;
107
115
 
108
- (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
116
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
109
117
 
110
118
  const _getBoundingClientRec3 = (0, _getBoundingClientRect.getBoundingClientRect)(this._list),
111
119
  origWidth = _getBoundingClientRec3.width;
@@ -130,9 +138,9 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
130
138
  }
131
139
 
132
140
  componentDidUpdate() {
133
- var _this$props$makeStyle2, _this$props2;
141
+ var _this$props$makeStyle2, _this$props3;
134
142
 
135
- (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
143
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
136
144
  }
137
145
 
138
146
  componentWillUnmount() {
@@ -174,12 +182,11 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
174
182
  render() {
175
183
  var _this$props$styles4, _this$props$styles5, _this$props$styles6;
176
184
 
177
- const _this$props3 = this.props,
178
- children = _this$props3.children,
179
- visibleItemsCount = _this$props3.visibleItemsCount,
180
- screenReaderLabel = _this$props3.screenReaderLabel,
181
- margin = _this$props3.margin,
182
- elementRef = _this$props3.elementRef;
185
+ const _this$props4 = this.props,
186
+ children = _this$props4.children,
187
+ visibleItemsCount = _this$props4.visibleItemsCount,
188
+ screenReaderLabel = _this$props4.screenReaderLabel,
189
+ margin = _this$props4.margin;
183
190
 
184
191
  const passthroughProps = _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, AppNav.allowedProps), AppNav);
185
192
 
@@ -197,7 +204,7 @@ let AppNav = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
197
204
  css: [(_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.appNav, hasRenderedContent ? (_this$props$styles5 = this.props.styles) === null || _this$props$styles5 === void 0 ? void 0 : _this$props$styles5.alignCenter : ''],
198
205
  margin: margin,
199
206
  display: hasRenderedContent ? 'flex' : 'block',
200
- elementRef: elementRef
207
+ elementRef: this.handleRef
201
208
  }), renderBeforeItems && (0, _emotion.jsx)("span", null, renderBeforeItems), (0, _emotion.jsx)("ul", {
202
209
  ref: el => this._list = el,
203
210
  css: (_this$props$styles6 = this.props.styles) === null || _this$props$styles6 === void 0 ? void 0 : _this$props$styles6.list,
@@ -36,6 +36,11 @@ id: Navigation.Item
36
36
  ---
37
37
  **/
38
38
  let NavigationItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class NavigationItem extends _react.Component {
39
+ constructor(...args) {
40
+ super(...args);
41
+ this.ref = null;
42
+ }
43
+
39
44
  componentDidMount() {
40
45
  var _this$props$makeStyle, _this$props;
41
46
 
@@ -66,7 +71,10 @@ let NavigationItem = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.def
66
71
  href: href,
67
72
  onClick: onClick,
68
73
  css: (_this$props$styles = this.props.styles) === null || _this$props$styles === void 0 ? void 0 : _this$props$styles.navigationItem,
69
- "aria-label": this.props.minimized ? label : void 0
74
+ "aria-label": this.props.minimized ? label : void 0,
75
+ ref: element => {
76
+ this.ref = element;
77
+ }
70
78
  }), (0, _emotion.jsx)("div", {
71
79
  css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.icon,
72
80
  "aria-hidden": "true"
@@ -52,6 +52,7 @@ category: components
52
52
  let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Navigation extends _react.Component {
53
53
  constructor(props) {
54
54
  super();
55
+ this.ref = null;
55
56
 
56
57
  this.handleNavToggle = event => {
57
58
  if (!this.isControlled()) {
@@ -118,7 +119,10 @@ let Navigation = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
118
119
  const props = (0, _omitProps.omitProps)(this.props, Navigation.allowedProps, ['minimized']);
119
120
  return (0, _emotion.jsx)("nav", Object.assign({}, props, {
120
121
  css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.navigation,
121
- "aria-label": label
122
+ "aria-label": label,
123
+ ref: element => {
124
+ this.ref = element;
125
+ }
122
126
  }), (0, _emotion.jsx)("ul", {
123
127
  css: (_this$props$styles3 = this.props.styles) === null || _this$props$styles3 === void 0 ? void 0 : _this$props$styles3.content
124
128
  }, this.renderChildren()), (0, _emotion.jsx)("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-navigation",
3
- "version": "8.10.1-snapshot.8+21f46f4e3",
3
+ "version": "8.10.2",
4
4
  "description": "Main and application level navigational components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,31 +24,31 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
28
- "@instructure/ui-color-utils": "8.10.1-snapshot.8+21f46f4e3",
29
- "@instructure/ui-test-locator": "8.10.1-snapshot.8+21f46f4e3",
30
- "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
31
- "@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
27
+ "@instructure/ui-babel-preset": "8.10.2",
28
+ "@instructure/ui-color-utils": "8.10.2",
29
+ "@instructure/ui-test-locator": "8.10.2",
30
+ "@instructure/ui-test-utils": "8.10.2",
31
+ "@instructure/ui-themes": "8.10.2"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/console": "8.10.1-snapshot.8+21f46f4e3",
36
- "@instructure/debounce": "8.10.1-snapshot.8+21f46f4e3",
37
- "@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
38
- "@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
39
- "@instructure/ui-a11y-content": "8.10.1-snapshot.8+21f46f4e3",
40
- "@instructure/ui-a11y-utils": "8.10.1-snapshot.8+21f46f4e3",
41
- "@instructure/ui-badge": "8.10.1-snapshot.8+21f46f4e3",
42
- "@instructure/ui-dom-utils": "8.10.1-snapshot.8+21f46f4e3",
43
- "@instructure/ui-focusable": "8.10.1-snapshot.8+21f46f4e3",
44
- "@instructure/ui-icons": "8.10.1-snapshot.8+21f46f4e3",
45
- "@instructure/ui-menu": "8.10.1-snapshot.8+21f46f4e3",
46
- "@instructure/ui-prop-types": "8.10.1-snapshot.8+21f46f4e3",
47
- "@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
48
- "@instructure/ui-testable": "8.10.1-snapshot.8+21f46f4e3",
49
- "@instructure/ui-tooltip": "8.10.1-snapshot.8+21f46f4e3",
50
- "@instructure/ui-utils": "8.10.1-snapshot.8+21f46f4e3",
51
- "@instructure/ui-view": "8.10.1-snapshot.8+21f46f4e3",
35
+ "@instructure/console": "8.10.2",
36
+ "@instructure/debounce": "8.10.2",
37
+ "@instructure/emotion": "8.10.2",
38
+ "@instructure/shared-types": "8.10.2",
39
+ "@instructure/ui-a11y-content": "8.10.2",
40
+ "@instructure/ui-a11y-utils": "8.10.2",
41
+ "@instructure/ui-badge": "8.10.2",
42
+ "@instructure/ui-dom-utils": "8.10.2",
43
+ "@instructure/ui-focusable": "8.10.2",
44
+ "@instructure/ui-icons": "8.10.2",
45
+ "@instructure/ui-menu": "8.10.2",
46
+ "@instructure/ui-prop-types": "8.10.2",
47
+ "@instructure/ui-react-utils": "8.10.2",
48
+ "@instructure/ui-testable": "8.10.2",
49
+ "@instructure/ui-tooltip": "8.10.2",
50
+ "@instructure/ui-utils": "8.10.2",
51
+ "@instructure/ui-view": "8.10.2",
52
52
  "prop-types": "^15"
53
53
  },
54
54
  "peerDependencies": {
@@ -57,6 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "sideEffects": false,
61
- "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
60
+ "sideEffects": false
62
61
  }
@@ -66,6 +66,8 @@ class Item extends Component<AppNavItemProps> {
66
66
  isDisabled: false
67
67
  }
68
68
 
69
+ ref: Element | null = null
70
+
69
71
  componentDidMount() {
70
72
  this.props.makeStyles?.()
71
73
  }
@@ -74,6 +76,11 @@ class Item extends Component<AppNavItemProps> {
74
76
  this.props.makeStyles?.()
75
77
  }
76
78
 
79
+ handleRef = (el: Element | null) => {
80
+ this.ref = el
81
+ this.props.elementRef?.(el)
82
+ }
83
+
77
84
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'e' implicitly has an 'any' type.
78
85
  handleClick = (e) => {
79
86
  const { isDisabled, onClick } = this.props
@@ -37,7 +37,7 @@ type AppNavItemOwnProps = {
37
37
  href?: string
38
38
  onClick?: (...args: any[]) => any
39
39
  isSelected?: boolean
40
- elementRef?: (...args: any[]) => any
40
+ elementRef?: (element: Element | null) => void
41
41
  as?: AsElementType
42
42
  cursor?: string
43
43
  isDisabled?: boolean
@@ -72,6 +72,7 @@ class AppNav extends Component<AppNavProps> {
72
72
  isMeasuring: false
73
73
  }
74
74
 
75
+ ref: Element | null = null
75
76
  _list = null
76
77
 
77
78
  componentDidMount() {
@@ -161,6 +162,11 @@ class AppNav extends Component<AppNavProps> {
161
162
  })
162
163
  }
163
164
 
165
+ handleRef = (el: Element | null) => {
166
+ this.ref = el
167
+ this.props.elementRef?.(el)
168
+ }
169
+
164
170
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'item' implicitly has an 'any' type.
165
171
  renderListItem(item, isMenuTrigger, key) {
166
172
  return (
@@ -216,8 +222,7 @@ class AppNav extends Component<AppNavProps> {
216
222
  children,
217
223
  visibleItemsCount,
218
224
  screenReaderLabel,
219
- margin,
220
- elementRef
225
+ margin
221
226
  } = this.props
222
227
 
223
228
  const passthroughProps = View.omitViewProps(
@@ -245,7 +250,7 @@ class AppNav extends Component<AppNavProps> {
245
250
  ]}
246
251
  margin={margin}
247
252
  display={hasRenderedContent ? 'flex' : 'block'}
248
- elementRef={elementRef}
253
+ elementRef={this.handleRef}
249
254
  >
250
255
  {renderBeforeItems && <span>{renderBeforeItems}</span>}
251
256
  <ul
@@ -42,7 +42,7 @@ type AppNavOwnProps = {
42
42
  renderBeforeItems?: React.ReactNode | ((...args: any[]) => any)
43
43
  renderAfterItems?: React.ReactNode | ((...args: any[]) => any)
44
44
  margin?: Spacing
45
- elementRef?: (...args: any[]) => any
45
+ elementRef?: (element: Element | null) => void
46
46
  renderTruncateLabel?: React.ReactNode | ((...args: any[]) => any)
47
47
  onUpdate?: (...args: any[]) => any
48
48
  visibleItemsCount?: number
@@ -57,6 +57,8 @@ class NavigationItem extends Component<NavigationItemProps> {
57
57
  minimized: false
58
58
  } as const
59
59
 
60
+ ref: Element | null = null
61
+
60
62
  componentDidMount() {
61
63
  this.props.makeStyles?.({ minimized: this.props.minimized })
62
64
  }
@@ -80,6 +82,10 @@ class NavigationItem extends Component<NavigationItemProps> {
80
82
  css={this.props.styles?.navigationItem}
81
83
  //@ts-expect-error TODO: INSTUI-3245
82
84
  aria-label={this.props.minimized ? label : undefined}
85
+ // @ts-expect-error TODO fix TS2590: Expression produces a union type that is too complex to represent.
86
+ ref={(element) => {
87
+ this.ref = element
88
+ }}
83
89
  >
84
90
  <div css={this.props.styles?.icon} aria-hidden="true">
85
91
  {icon}
@@ -65,6 +65,8 @@ class Navigation extends Component<NavigationProps, NavigationState> {
65
65
 
66
66
  static Item = NavigationItem
67
67
 
68
+ ref: Element | null = null
69
+
68
70
  // @ts-expect-error ts-migrate(7006) FIXME: Parameter 'props' implicitly has an 'any' type.
69
71
  constructor(props) {
70
72
  // @ts-expect-error ts-migrate(2554) FIXME: Expected 1-2 arguments, but got 0.
@@ -127,7 +129,14 @@ class Navigation extends Component<NavigationProps, NavigationState> {
127
129
  const props = omitProps(this.props, Navigation.allowedProps, ['minimized'])
128
130
 
129
131
  return (
130
- <nav {...props} css={this.props.styles?.navigation} aria-label={label}>
132
+ <nav
133
+ {...props}
134
+ css={this.props.styles?.navigation}
135
+ aria-label={label}
136
+ ref={(element) => {
137
+ this.ref = element
138
+ }}
139
+ >
131
140
  <ul css={this.props.styles?.content}>{this.renderChildren()}</ul>
132
141
  <div css={this.props.styles?.toggle}>
133
142
  <NavigationItem
@@ -18,7 +18,7 @@ declare class Item extends Component<AppNavItemProps> {
18
18
  href?: string | undefined;
19
19
  onClick?: ((...args: any[]) => any) | undefined;
20
20
  isSelected?: boolean | undefined;
21
- elementRef?: ((...args: any[]) => any) | undefined;
21
+ elementRef?: ((element: Element | null) => void) | undefined;
22
22
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
23
23
  cursor?: string | undefined;
24
24
  isDisabled?: boolean | undefined;
@@ -30,7 +30,7 @@ declare class Item extends Component<AppNavItemProps> {
30
30
  href?: string | undefined;
31
31
  onClick?: ((...args: any[]) => any) | undefined;
32
32
  isSelected?: boolean | undefined;
33
- elementRef?: ((...args: any[]) => any) | undefined;
33
+ elementRef?: ((element: Element | null) => void) | undefined;
34
34
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
35
35
  cursor?: string | undefined;
36
36
  isDisabled?: boolean | undefined;
@@ -42,8 +42,10 @@ declare class Item extends Component<AppNavItemProps> {
42
42
  cursor: string;
43
43
  isDisabled: boolean;
44
44
  };
45
+ ref: Element | null;
45
46
  componentDidMount(): void;
46
47
  componentDidUpdate(): void;
48
+ handleRef: (el: Element | null) => void;
47
49
  handleClick: (e: any) => void;
48
50
  render(): jsx.JSX.Element;
49
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,iBAAiB;IAIjB,kBAAkB;IAKlB,WAAW,mBASV;IAED,MAAM;CAuDP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAG9C;;;;;;GAMG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;MAOlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAGD,WAAW,mBASV;IAED,MAAM;CAuDP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -8,7 +8,7 @@ declare type AppNavItemOwnProps = {
8
8
  href?: string;
9
9
  onClick?: (...args: any[]) => any;
10
10
  isSelected?: boolean;
11
- elementRef?: (...args: any[]) => any;
11
+ elementRef?: (element: Element | null) => void;
12
12
  as?: AsElementType;
13
13
  cursor?: string;
14
14
  isDisabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/AppNav/Item/props.ts"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAA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D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -16,7 +16,7 @@ declare class AppNav extends Component<AppNavProps> {
16
16
  renderBeforeItems?: import("react").ReactNode | ((...args: any[]) => any);
17
17
  renderAfterItems?: import("react").ReactNode | ((...args: any[]) => any);
18
18
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
19
- elementRef?: ((...args: any[]) => any) | undefined;
19
+ elementRef?: ((element: Element | null) => void) | undefined;
20
20
  renderTruncateLabel?: import("react").ReactNode | ((...args: any[]) => any);
21
21
  onUpdate?: ((...args: any[]) => any) | undefined;
22
22
  visibleItemsCount?: number | undefined;
@@ -28,7 +28,7 @@ declare class AppNav extends Component<AppNavProps> {
28
28
  renderBeforeItems?: import("react").ReactNode | ((...args: any[]) => any);
29
29
  renderAfterItems?: import("react").ReactNode | ((...args: any[]) => any);
30
30
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
31
- elementRef?: ((...args: any[]) => any) | undefined;
31
+ elementRef?: ((element: Element | null) => void) | undefined;
32
32
  renderTruncateLabel?: import("react").ReactNode | ((...args: any[]) => any);
33
33
  onUpdate?: ((...args: any[]) => any) | undefined;
34
34
  visibleItemsCount?: number | undefined;
@@ -47,6 +47,7 @@ declare class AppNav extends Component<AppNavProps> {
47
47
  state: {
48
48
  isMeasuring: boolean;
49
49
  };
50
+ ref: Element | null;
50
51
  _list: null;
51
52
  componentDidMount(): void;
52
53
  componentDidUpdate(): void;
@@ -55,6 +56,7 @@ declare class AppNav extends Component<AppNavProps> {
55
56
  visibleItemsCount: number;
56
57
  };
57
58
  handleResize: () => void;
59
+ handleRef: (el: Element | null) => void;
58
60
  renderListItem(item: any, isMenuTrigger: any, key: any): jsx.JSX.Element;
59
61
  renderMenu(items: any): jsx.JSX.Element;
60
62
  render(): jsx.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/AppNav/index.tsx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;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;;MASlB;IAED,MAAM,CAAC,IAAI,cAAO;IAElB,KAAK;;MAEJ;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAC1B,KAAK,OAAO;IAEZ,iBAAiB;IA2BjB,kBAAkB;IAIlB,oBAAoB;IAcpB,YAAY;;MA8BX;IAED,YAAY,aAQX;IAED,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAGD,cAAc,CAAC,IAAI,KAAA,EAAE,aAAa,KAAA,EAAE,GAAG,KAAA;IAgBvC,UAAU,CAAC,KAAK,KAAA;IAiChB,MAAM;CAmDP;AAED,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,eAAe,MAAM,CAAA"}
@@ -7,7 +7,7 @@ declare type AppNavOwnProps = {
7
7
  renderBeforeItems?: React.ReactNode | ((...args: any[]) => any);
8
8
  renderAfterItems?: React.ReactNode | ((...args: any[]) => any);
9
9
  margin?: Spacing;
10
- elementRef?: (...args: any[]) => any;
10
+ elementRef?: (element: Element | null) => void;
11
11
  renderTruncateLabel?: React.ReactNode | ((...args: any[]) => any);
12
12
  onUpdate?: (...args: any[]) => any;
13
13
  visibleItemsCount?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/AppNav/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5E,aAAK,cAAc,GAAG;IACpB,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG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AgDvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAWnB,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -34,6 +34,7 @@ declare class NavigationItem extends Component<NavigationItemProps> {
34
34
  readonly selected: false;
35
35
  readonly minimized: false;
36
36
  };
37
+ ref: Element | null;
37
38
  componentDidMount(): void;
38
39
  componentDidUpdate(): void;
39
40
  renderLink(): jsx.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Navigation/NavigationItem/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD;;;;;GAKG;AACH,cAEM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;MAMT;IAEV,iBAAiB;IAIjB,kBAAkB;IAIlB,UAAU;IA0BV,MAAM;CAaP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Navigation/NavigationItem/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAGlD;;;;;GAKG;AACH,cAEM,cAAe,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,YAAY;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;MAMT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,UAAU;IA8BV,MAAM;CAaP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -43,6 +43,7 @@ declare class Navigation extends Component<NavigationProps, NavigationState> {
43
43
  onClick: (e: any) => void;
44
44
  };
45
45
  static Item: typeof NavigationItem;
46
+ ref: Element | null;
46
47
  constructor(props: any);
47
48
  componentDidMount(): void;
48
49
  componentDidUpdate(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Navigation/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAOzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIjD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM/D;;;;GAIG;AACH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAClE,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;MAOlB;IAED,MAAM,CAAC,IAAI,wBAAiB;gBAGhB,KAAK,KAAA;IAWjB,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,SAAS,YAKZ;IAED,YAAY,CAAC,KAAK;;MAAa;IAK/B,eAAe,uBAOd;IAED,cAAc;IASd,aAAa;IAMb,MAAM;CA0BP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Navigation/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAOzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIjD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM/D;;;;GAIG;AACH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAClE,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;MAOlB;IAED,MAAM,CAAC,IAAI,wBAAiB;IAE5B,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;gBAGd,KAAK,KAAA;IAWjB,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,SAAS,YAKZ;IAED,YAAY,CAAC,KAAK;;MAAa;IAK/B,eAAe,uBAOd;IAED,cAAc;IASd,aAAa;IAMb,MAAM;CAiCP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.