@instructure/ui-badge 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-badge
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-badge
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-badge
package/es/Badge/index.js CHANGED
@@ -45,35 +45,44 @@ let Badge = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = te
45
45
  constructor(props) {
46
46
  super(props);
47
47
  this._defaultId = void 0;
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
+ };
56
+
48
57
  this._defaultId = uid('Badge');
49
58
  }
50
59
 
51
60
  componentDidMount() {
52
- var _this$props$makeStyle, _this$props;
61
+ var _this$props$makeStyle, _this$props2;
53
62
 
54
- (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
63
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
55
64
  }
56
65
 
57
66
  componentDidUpdate() {
58
- var _this$props$makeStyle2, _this$props2;
67
+ var _this$props$makeStyle2, _this$props3;
59
68
 
60
- (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
69
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
61
70
  }
62
71
 
63
72
  countOverflow() {
64
- const _this$props3 = this.props,
65
- count = _this$props3.count,
66
- countUntil = _this$props3.countUntil;
73
+ const _this$props4 = this.props,
74
+ count = _this$props4.count,
75
+ countUntil = _this$props4.countUntil;
67
76
  return countUntil && count && countUntil > 1 && count >= countUntil;
68
77
  }
69
78
 
70
79
  renderOutput() {
71
- const _this$props4 = this.props,
72
- count = _this$props4.count,
73
- countUntil = _this$props4.countUntil,
74
- formatOverflowText = _this$props4.formatOverflowText,
75
- formatOutput = _this$props4.formatOutput,
76
- type = _this$props4.type; // If the badge count is >= than the countUntil limit, format the badge text
80
+ const _this$props5 = this.props,
81
+ count = _this$props5.count,
82
+ countUntil = _this$props5.countUntil,
83
+ formatOverflowText = _this$props5.formatOverflowText,
84
+ formatOutput = _this$props5.formatOutput,
85
+ type = _this$props5.type; // If the badge count is >= than the countUntil limit, format the badge text
77
86
  // via the formatOverflowText function prop
78
87
 
79
88
  let formattedCount = (count || '').toString();
@@ -90,19 +99,21 @@ let Badge = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = te
90
99
  }
91
100
 
92
101
  renderBadge() {
93
- const _this$props5 = this.props,
94
- count = _this$props5.count,
95
- margin = _this$props5.margin,
96
- standalone = _this$props5.standalone,
97
- type = _this$props5.type,
98
- styles = _this$props5.styles;
99
- return jsx(View, {
102
+ const _this$props6 = this.props,
103
+ count = _this$props6.count,
104
+ margin = _this$props6.margin,
105
+ standalone = _this$props6.standalone,
106
+ type = _this$props6.type,
107
+ styles = _this$props6.styles;
108
+ return jsx(View, Object.assign({
100
109
  margin: standalone ? margin : 'none',
101
110
  css: styles === null || styles === void 0 ? void 0 : styles.badge,
102
111
  title: type === 'count' && this.countOverflow() ? count === null || count === void 0 ? void 0 : count.toString() : '',
103
112
  id: !standalone ? this._defaultId : void 0,
104
113
  display: standalone ? 'inline-block' : 'block'
105
- }, this.renderOutput());
114
+ }, standalone && {
115
+ elementRef: this.handleRef
116
+ }), this.renderOutput());
106
117
  }
107
118
 
108
119
  renderChildren() {
@@ -114,12 +125,11 @@ let Badge = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = te
114
125
  }
115
126
 
116
127
  render() {
117
- const _this$props6 = this.props,
118
- margin = _this$props6.margin,
119
- elementRef = _this$props6.elementRef,
120
- standalone = _this$props6.standalone,
121
- as = _this$props6.as,
122
- styles = _this$props6.styles;
128
+ const _this$props7 = this.props,
129
+ margin = _this$props7.margin,
130
+ standalone = _this$props7.standalone,
131
+ as = _this$props7.as,
132
+ styles = _this$props7.styles;
123
133
 
124
134
  if (standalone) {
125
135
  return this.renderBadge();
@@ -127,7 +137,7 @@ let Badge = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = te
127
137
  return jsx(View, {
128
138
  as: as,
129
139
  margin: margin,
130
- elementRef: elementRef,
140
+ elementRef: this.handleRef,
131
141
  css: styles === null || styles === void 0 ? void 0 : styles.wrapper,
132
142
  display: "inline-block"
133
143
  }, this.renderChildren(), this.renderBadge());
@@ -37,35 +37,44 @@ let Badge = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
37
37
  constructor(props) {
38
38
  super(props);
39
39
  this._defaultId = void 0;
40
+ this.ref = null;
41
+
42
+ this.handleRef = el => {
43
+ var _this$props$elementRe, _this$props;
44
+
45
+ this.ref = el;
46
+ (_this$props$elementRe = (_this$props = this.props).elementRef) === null || _this$props$elementRe === void 0 ? void 0 : _this$props$elementRe.call(_this$props, el);
47
+ };
48
+
40
49
  this._defaultId = (0, _uid.uid)('Badge');
41
50
  }
42
51
 
43
52
  componentDidMount() {
44
- var _this$props$makeStyle, _this$props;
53
+ var _this$props$makeStyle, _this$props2;
45
54
 
46
- (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
55
+ (_this$props$makeStyle = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props2);
47
56
  }
48
57
 
49
58
  componentDidUpdate() {
50
- var _this$props$makeStyle2, _this$props2;
59
+ var _this$props$makeStyle2, _this$props3;
51
60
 
52
- (_this$props$makeStyle2 = (_this$props2 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props2);
61
+ (_this$props$makeStyle2 = (_this$props3 = this.props).makeStyles) === null || _this$props$makeStyle2 === void 0 ? void 0 : _this$props$makeStyle2.call(_this$props3);
53
62
  }
54
63
 
55
64
  countOverflow() {
56
- const _this$props3 = this.props,
57
- count = _this$props3.count,
58
- countUntil = _this$props3.countUntil;
65
+ const _this$props4 = this.props,
66
+ count = _this$props4.count,
67
+ countUntil = _this$props4.countUntil;
59
68
  return countUntil && count && countUntil > 1 && count >= countUntil;
60
69
  }
61
70
 
62
71
  renderOutput() {
63
- const _this$props4 = this.props,
64
- count = _this$props4.count,
65
- countUntil = _this$props4.countUntil,
66
- formatOverflowText = _this$props4.formatOverflowText,
67
- formatOutput = _this$props4.formatOutput,
68
- type = _this$props4.type; // If the badge count is >= than the countUntil limit, format the badge text
72
+ const _this$props5 = this.props,
73
+ count = _this$props5.count,
74
+ countUntil = _this$props5.countUntil,
75
+ formatOverflowText = _this$props5.formatOverflowText,
76
+ formatOutput = _this$props5.formatOutput,
77
+ type = _this$props5.type; // If the badge count is >= than the countUntil limit, format the badge text
69
78
  // via the formatOverflowText function prop
70
79
 
71
80
  let formattedCount = (count || '').toString();
@@ -82,19 +91,21 @@ let Badge = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
82
91
  }
83
92
 
84
93
  renderBadge() {
85
- const _this$props5 = this.props,
86
- count = _this$props5.count,
87
- margin = _this$props5.margin,
88
- standalone = _this$props5.standalone,
89
- type = _this$props5.type,
90
- styles = _this$props5.styles;
91
- return (0, _emotion.jsx)(_View.View, {
94
+ const _this$props6 = this.props,
95
+ count = _this$props6.count,
96
+ margin = _this$props6.margin,
97
+ standalone = _this$props6.standalone,
98
+ type = _this$props6.type,
99
+ styles = _this$props6.styles;
100
+ return (0, _emotion.jsx)(_View.View, Object.assign({
92
101
  margin: standalone ? margin : 'none',
93
102
  css: styles === null || styles === void 0 ? void 0 : styles.badge,
94
103
  title: type === 'count' && this.countOverflow() ? count === null || count === void 0 ? void 0 : count.toString() : '',
95
104
  id: !standalone ? this._defaultId : void 0,
96
105
  display: standalone ? 'inline-block' : 'block'
97
- }, this.renderOutput());
106
+ }, standalone && {
107
+ elementRef: this.handleRef
108
+ }), this.renderOutput());
98
109
  }
99
110
 
100
111
  renderChildren() {
@@ -106,12 +117,11 @@ let Badge = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
106
117
  }
107
118
 
108
119
  render() {
109
- const _this$props6 = this.props,
110
- margin = _this$props6.margin,
111
- elementRef = _this$props6.elementRef,
112
- standalone = _this$props6.standalone,
113
- as = _this$props6.as,
114
- styles = _this$props6.styles;
120
+ const _this$props7 = this.props,
121
+ margin = _this$props7.margin,
122
+ standalone = _this$props7.standalone,
123
+ as = _this$props7.as,
124
+ styles = _this$props7.styles;
115
125
 
116
126
  if (standalone) {
117
127
  return this.renderBadge();
@@ -119,7 +129,7 @@ let Badge = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
119
129
  return (0, _emotion.jsx)(_View.View, {
120
130
  as: as,
121
131
  margin: margin,
122
- elementRef: elementRef,
132
+ elementRef: this.handleRef,
123
133
  css: styles === null || styles === void 0 ? void 0 : styles.wrapper,
124
134
  display: "inline-block"
125
135
  }, this.renderChildren(), this.renderBadge());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-badge",
3
- "version": "8.10.1-snapshot.8+21f46f4e3",
3
+ "version": "8.10.2",
4
4
  "description": "A badge component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,22 +25,22 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.10.1-snapshot.8+21f46f4e3",
29
- "@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
30
- "@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
31
- "@instructure/ui-color-utils": "8.10.1-snapshot.8+21f46f4e3",
32
- "@instructure/ui-position": "8.10.1-snapshot.8+21f46f4e3",
33
- "@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
34
- "@instructure/ui-testable": "8.10.1-snapshot.8+21f46f4e3",
35
- "@instructure/ui-view": "8.10.1-snapshot.8+21f46f4e3",
36
- "@instructure/uid": "8.10.1-snapshot.8+21f46f4e3",
28
+ "@instructure/console": "8.10.2",
29
+ "@instructure/emotion": "8.10.2",
30
+ "@instructure/shared-types": "8.10.2",
31
+ "@instructure/ui-color-utils": "8.10.2",
32
+ "@instructure/ui-position": "8.10.2",
33
+ "@instructure/ui-react-utils": "8.10.2",
34
+ "@instructure/ui-testable": "8.10.2",
35
+ "@instructure/ui-view": "8.10.2",
36
+ "@instructure/uid": "8.10.2",
37
37
  "prop-types": "^15"
38
38
  },
39
39
  "devDependencies": {
40
- "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
41
- "@instructure/ui-test-locator": "8.10.1-snapshot.8+21f46f4e3",
42
- "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
43
- "@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
40
+ "@instructure/ui-babel-preset": "8.10.2",
41
+ "@instructure/ui-test-locator": "8.10.2",
42
+ "@instructure/ui-test-utils": "8.10.2",
43
+ "@instructure/ui-themes": "8.10.2"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=16.8 <=17"
@@ -48,6 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "sideEffects": false,
52
- "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
51
+ "sideEffects": false
53
52
  }
@@ -67,13 +67,21 @@ class Badge extends Component<BadgeProps> {
67
67
  formatOverflowText: (_count: number, countUntil: number) =>
68
68
  `${countUntil - 1} +`
69
69
  }
70
- _defaultId: string
71
70
 
72
71
  constructor(props: BadgeProps) {
73
72
  super(props)
74
73
  this._defaultId = uid('Badge')
75
74
  }
76
75
 
76
+ _defaultId: string
77
+
78
+ ref: Element | null = null
79
+
80
+ handleRef = (el: Element | null) => {
81
+ this.ref = el
82
+ this.props.elementRef?.(el)
83
+ }
84
+
77
85
  componentDidMount() {
78
86
  this.props.makeStyles?.()
79
87
  }
@@ -88,8 +96,13 @@ class Badge extends Component<BadgeProps> {
88
96
  }
89
97
 
90
98
  renderOutput() {
91
- const { count, countUntil, formatOverflowText, formatOutput, type } =
92
- this.props
99
+ const {
100
+ count,
101
+ countUntil,
102
+ formatOverflowText,
103
+ formatOutput,
104
+ type
105
+ } = this.props
93
106
 
94
107
  // If the badge count is >= than the countUntil limit, format the badge text
95
108
  // via the formatOverflowText function prop
@@ -123,6 +136,7 @@ class Badge extends Component<BadgeProps> {
123
136
  }
124
137
  id={!standalone ? this._defaultId : undefined}
125
138
  display={standalone ? 'inline-block' : 'block'}
139
+ {...(standalone && { elementRef: this.handleRef })}
126
140
  >
127
141
  {this.renderOutput()}
128
142
  </View>
@@ -138,7 +152,7 @@ class Badge extends Component<BadgeProps> {
138
152
  }
139
153
 
140
154
  render() {
141
- const { margin, elementRef, standalone, as, styles } = this.props
155
+ const { margin, standalone, as, styles } = this.props
142
156
 
143
157
  if (standalone) {
144
158
  return this.renderBadge()
@@ -147,7 +161,7 @@ class Badge extends Component<BadgeProps> {
147
161
  <View
148
162
  as={as}
149
163
  margin={margin}
150
- elementRef={elementRef}
164
+ elementRef={this.handleRef}
151
165
  css={styles?.wrapper}
152
166
  display="inline-block"
153
167
  >
@@ -66,7 +66,7 @@ type BadgeOwnProps = {
66
66
  /**
67
67
  * provides a reference to the underlying html root element
68
68
  */
69
- elementRef?: (element: HTMLElement | null) => void
69
+ elementRef?: (element: Element | null) => void
70
70
  formatOverflowText?: (count: number, countUntil: number) => string
71
71
  formatOutput?: (formattedCount: string) => JSX.Element | string | number
72
72
  as?: AsElementType
@@ -18,7 +18,7 @@ declare class Badge extends Component<BadgeProps> {
18
18
  standalone?: boolean | undefined;
19
19
  pulse?: boolean | undefined;
20
20
  variant?: "primary" | "success" | "danger" | undefined;
21
- elementRef?: ((element: HTMLElement | null) => void) | undefined;
21
+ elementRef?: ((element: Element | null) => void) | undefined;
22
22
  formatOverflowText?: ((count: number, countUntil: number) => string) | undefined;
23
23
  formatOutput?: ((formattedCount: string) => string | number | JSX.Element) | undefined;
24
24
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
@@ -33,7 +33,7 @@ declare class Badge extends Component<BadgeProps> {
33
33
  standalone?: boolean | undefined;
34
34
  pulse?: boolean | undefined;
35
35
  variant?: "primary" | "success" | "danger" | undefined;
36
- elementRef?: ((element: HTMLElement | null) => void) | undefined;
36
+ elementRef?: ((element: Element | null) => void) | undefined;
37
37
  formatOverflowText?: ((count: number, countUntil: number) => string) | undefined;
38
38
  formatOutput?: ((formattedCount: string) => string | number | JSX.Element) | undefined;
39
39
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
@@ -54,8 +54,10 @@ declare class Badge extends Component<BadgeProps> {
54
54
  elementRef: () => void;
55
55
  formatOverflowText: (_count: number, countUntil: number) => string;
56
56
  };
57
- _defaultId: string;
58
57
  constructor(props: BadgeProps);
58
+ _defaultId: string;
59
+ ref: Element | null;
60
+ handleRef: (el: Element | null) => void;
59
61
  componentDidMount(): void;
60
62
  componentDidUpdate(): void;
61
63
  countOverflow(): boolean | 0 | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Badge/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAY,YAAY,EAAE,MAAM,OAAO,CAAA;AAOzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;;GAKG;AAEH,cAEM,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IACvC,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;qCAYY,MAAM,cAAc,MAAM;MAExD;IACD,UAAU,EAAE,MAAM,CAAA;gBAEN,KAAK,EAAE,UAAU;IAK7B,iBAAiB;IAGjB,kBAAkB;IAIlB,aAAa;IAMb,YAAY;IAwBZ,WAAW;IAkBX,cAAc;IAQd,MAAM;CAoBP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Badge/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAY,YAAY,EAAE,MAAM,OAAO,CAAA;AAOzD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;;GAKG;AAEH,cAEM,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IACvC,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;qCAYY,MAAM,cAAc,MAAM;MAExD;gBAEW,KAAK,EAAE,UAAU;IAK7B,UAAU,EAAE,MAAM,CAAA;IAElB,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAG9B;IAED,iBAAiB;IAGjB,kBAAkB;IAIlB,aAAa;IAMb,YAAY;IA6BZ,WAAW;IAmBX,cAAc;IAQd,MAAM;CAoBP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -29,7 +29,7 @@ declare type BadgeOwnProps = {
29
29
  /**
30
30
  * provides a reference to the underlying html root element
31
31
  */
32
- elementRef?: (element: HTMLElement | null) => void;
32
+ elementRef?: (element: Element | null) => void;
33
33
  formatOverflowText?: (count: number, countUntil: number) => string;
34
34
  formatOutput?: (formattedCount: string) => JSX.Element | string | number;
35
35
  as?: AsElementType;
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Badge/props.ts"],"names":[],"mappings":";AA6BA,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,aAAK,aAAa,GAAG;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,cAAc,CAAA;IAC/B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,KAAK,CAAC,EAA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,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,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.