@instructure/ui-alerts 8.11.2-snapshot.7 → 8.12.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.
- package/CHANGELOG.md +4 -0
- package/es/Alert/index.js +2 -2
- package/es/package.json +1 -0
- package/lib/Alert/index.js +1 -1
- package/package.json +17 -18
- package/src/Alert/index.tsx +2 -2
- package/types/Alert/index.d.ts.map +1 -1
- package/LICENSE.md +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-alerts
|
|
9
|
+
|
|
6
10
|
## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @instructure/ui-alerts
|
package/es/Alert/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import { Transition } from '@instructure/ui-motion';
|
|
|
37
37
|
import { logError as error } from '@instructure/console';
|
|
38
38
|
import { uid } from '@instructure/uid';
|
|
39
39
|
import { canvas } from '@instructure/ui-themes';
|
|
40
|
-
import { withStyle, jsx,
|
|
40
|
+
import { withStyle, jsx, InstUISettingsProvider } from '@instructure/emotion';
|
|
41
41
|
import generateStyle from './styles';
|
|
42
42
|
import generateComponentTheme from './theme';
|
|
43
43
|
import { propTypes, allowedProps } from './props';
|
|
@@ -164,7 +164,7 @@ let Alert = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
|
|
|
164
164
|
ReactDOM.render( // since ScreenReaderContent gets rendered outside the app,
|
|
165
165
|
// and uses the withStyle decorator, we need to provide a theme for it,
|
|
166
166
|
// otherwise throws warning (any theme, doesn't use any theme variables)
|
|
167
|
-
jsx(
|
|
167
|
+
jsx(InstUISettingsProvider, {
|
|
168
168
|
theme: canvas
|
|
169
169
|
}, content), div);
|
|
170
170
|
}
|
package/es/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/lib/Alert/index.js
CHANGED
|
@@ -170,7 +170,7 @@ let Alert = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
|
170
170
|
_reactDom.default.render( // since ScreenReaderContent gets rendered outside the app,
|
|
171
171
|
// and uses the withStyle decorator, we need to provide a theme for it,
|
|
172
172
|
// otherwise throws warning (any theme, doesn't use any theme variables)
|
|
173
|
-
(0, _emotion.jsx)(_emotion.
|
|
173
|
+
(0, _emotion.jsx)(_emotion.InstUISettingsProvider, {
|
|
174
174
|
theme: _uiThemes.canvas
|
|
175
175
|
}, content), div);
|
|
176
176
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.0",
|
|
4
4
|
"description": "An alert component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.
|
|
28
|
-
"@instructure/ui-color-utils": "8.
|
|
29
|
-
"@instructure/ui-test-utils": "8.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.12.0",
|
|
28
|
+
"@instructure/ui-color-utils": "8.12.0",
|
|
29
|
+
"@instructure/ui-test-utils": "8.12.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.13.10",
|
|
33
|
-
"@instructure/console": "8.
|
|
34
|
-
"@instructure/emotion": "8.
|
|
35
|
-
"@instructure/shared-types": "8.
|
|
36
|
-
"@instructure/ui-a11y-content": "8.
|
|
37
|
-
"@instructure/ui-buttons": "8.
|
|
38
|
-
"@instructure/ui-icons": "8.
|
|
39
|
-
"@instructure/ui-motion": "8.
|
|
40
|
-
"@instructure/ui-react-utils": "8.
|
|
41
|
-
"@instructure/ui-themes": "8.
|
|
42
|
-
"@instructure/ui-utils": "8.
|
|
43
|
-
"@instructure/ui-view": "8.
|
|
44
|
-
"@instructure/uid": "8.
|
|
33
|
+
"@instructure/console": "8.12.0",
|
|
34
|
+
"@instructure/emotion": "8.12.0",
|
|
35
|
+
"@instructure/shared-types": "8.12.0",
|
|
36
|
+
"@instructure/ui-a11y-content": "8.12.0",
|
|
37
|
+
"@instructure/ui-buttons": "8.12.0",
|
|
38
|
+
"@instructure/ui-icons": "8.12.0",
|
|
39
|
+
"@instructure/ui-motion": "8.12.0",
|
|
40
|
+
"@instructure/ui-react-utils": "8.12.0",
|
|
41
|
+
"@instructure/ui-themes": "8.12.0",
|
|
42
|
+
"@instructure/ui-utils": "8.12.0",
|
|
43
|
+
"@instructure/ui-view": "8.12.0",
|
|
44
|
+
"@instructure/uid": "8.12.0",
|
|
45
45
|
"keycode": "^2",
|
|
46
46
|
"prop-types": "^15"
|
|
47
47
|
},
|
|
@@ -52,6 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"sideEffects": false
|
|
56
|
-
"gitHead": "2681e145ad469e1396536d3e9eed75a19995eb8a"
|
|
55
|
+
"sideEffects": false
|
|
57
56
|
}
|
package/src/Alert/index.tsx
CHANGED
|
@@ -40,7 +40,7 @@ import { Transition } from '@instructure/ui-motion'
|
|
|
40
40
|
import { logError as error } from '@instructure/console'
|
|
41
41
|
import { uid } from '@instructure/uid'
|
|
42
42
|
import { canvas } from '@instructure/ui-themes'
|
|
43
|
-
import { withStyle, jsx,
|
|
43
|
+
import { withStyle, jsx, InstUISettingsProvider } from '@instructure/emotion'
|
|
44
44
|
|
|
45
45
|
import generateStyle from './styles'
|
|
46
46
|
import generateComponentTheme from './theme'
|
|
@@ -197,7 +197,7 @@ class Alert extends Component<AlertProps> {
|
|
|
197
197
|
// since ScreenReaderContent gets rendered outside the app,
|
|
198
198
|
// and uses the withStyle decorator, we need to provide a theme for it,
|
|
199
199
|
// otherwise throws warning (any theme, doesn't use any theme variables)
|
|
200
|
-
<
|
|
200
|
+
<InstUISettingsProvider theme={canvas}>{content}</InstUISettingsProvider>,
|
|
201
201
|
div
|
|
202
202
|
)
|
|
203
203
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAK9B,OAAO,EAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAK9B,OAAO,EAAa,GAAG,EAA0B,MAAM,sBAAsB,CAAA;AAM7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;GAIG;AACH,cACM,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;;;;;;;;;;;MAWlB;gBAGW,KAAK,KAAA;IAQjB,SAAS,UAAK;IAEd,SAAS;;;;;MAKR;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,aAAa,aAUZ;IAED,aAAa;IAKb,gBAAgB,aAIf;IAED,KAAK,aAQJ;IAID,SAAS,CAAC,CAAC,KAAA;IAIX,aAAa;IAUb,cAAc,CAAC,UAAU,KAAA;IAazB,6BAA6B;IAI7B,uBAAuB;IAevB,uBAAuB;IAcvB,wBAAwB,CAAC,GAAG,KAAA;IAW5B,uBAAuB;IAwBvB,WAAW,uBAOV;IAED,iBAAiB;IAajB,kBAAkB,CAAC,SAAS,KAAA;IAc5B,oBAAoB;IAKpB,UAAU;IAUV,iBAAiB;IAgBjB,WAAW;IAgBX,MAAM;CA4BP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,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.
|