@instructure/ui-avatar 9.0.2-snapshot-2 → 9.0.2-snapshot-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 +1 -1
- package/es/Avatar/index.js +4 -4
- package/lib/Avatar/index.js +4 -4
- package/package.json +17 -17
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Avatar/AvatarLocator.d.ts +36 -36
- package/types/Avatar/index.d.ts +5 -5
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
|
-
## [9.0.2-snapshot-
|
|
6
|
+
## [9.0.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-4) (2024-06-05)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-avatar
|
|
9
9
|
|
package/es/Avatar/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["onImageLoaded", "styles"];
|
|
3
|
-
var _dec, _dec2, _class,
|
|
3
|
+
var _dec, _dec2, _class, _Avatar;
|
|
4
4
|
/*
|
|
5
5
|
* The MIT License (MIT)
|
|
6
6
|
*
|
|
@@ -39,7 +39,7 @@ import { propTypes, allowedProps } from './props';
|
|
|
39
39
|
category: components
|
|
40
40
|
---
|
|
41
41
|
**/
|
|
42
|
-
let Avatar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
42
|
+
let Avatar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_Avatar = class Avatar extends Component {
|
|
43
43
|
constructor(...args) {
|
|
44
44
|
super(...args);
|
|
45
45
|
this.state = {
|
|
@@ -132,7 +132,7 @@ let Avatar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
|
|
|
132
132
|
"aria-hidden": "true"
|
|
133
133
|
}), !this.state.loaded && this.renderContent());
|
|
134
134
|
}
|
|
135
|
-
},
|
|
135
|
+
}, _Avatar.displayName = "Avatar", _Avatar.componentId = 'Avatar', _Avatar.propTypes = propTypes, _Avatar.allowedProps = allowedProps, _Avatar.defaultProps = {
|
|
136
136
|
size: 'medium',
|
|
137
137
|
color: 'default',
|
|
138
138
|
hasInverseColor: false,
|
|
@@ -140,6 +140,6 @@ let Avatar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
|
|
|
140
140
|
shape: 'circle',
|
|
141
141
|
display: 'inline-block',
|
|
142
142
|
onImageLoaded: _event => {}
|
|
143
|
-
},
|
|
143
|
+
}, _Avatar)) || _class) || _class);
|
|
144
144
|
export default Avatar;
|
|
145
145
|
export { Avatar };
|
package/lib/Avatar/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
16
16
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
17
17
|
var _props = require("./props");
|
|
18
18
|
const _excluded = ["onImageLoaded", "styles"];
|
|
19
|
-
var _dec, _dec2, _class,
|
|
19
|
+
var _dec, _dec2, _class, _Avatar;
|
|
20
20
|
/*
|
|
21
21
|
* The MIT License (MIT)
|
|
22
22
|
*
|
|
@@ -46,7 +46,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
46
46
|
category: components
|
|
47
47
|
---
|
|
48
48
|
**/
|
|
49
|
-
let Avatar = exports.Avatar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
49
|
+
let Avatar = exports.Avatar = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_Avatar = class Avatar extends _react.Component {
|
|
50
50
|
constructor(...args) {
|
|
51
51
|
super(...args);
|
|
52
52
|
this.state = {
|
|
@@ -139,7 +139,7 @@ let Avatar = exports.Avatar = (_dec = (0, _emotion.withStyle)(_styles.default, _
|
|
|
139
139
|
"aria-hidden": "true"
|
|
140
140
|
}), !this.state.loaded && this.renderContent());
|
|
141
141
|
}
|
|
142
|
-
},
|
|
142
|
+
}, _Avatar.displayName = "Avatar", _Avatar.componentId = 'Avatar', _Avatar.propTypes = _props.propTypes, _Avatar.allowedProps = _props.allowedProps, _Avatar.defaultProps = {
|
|
143
143
|
size: 'medium',
|
|
144
144
|
color: 'default',
|
|
145
145
|
hasInverseColor: false,
|
|
@@ -147,5 +147,5 @@ let Avatar = exports.Avatar = (_dec = (0, _emotion.withStyle)(_styles.default, _
|
|
|
147
147
|
shape: 'circle',
|
|
148
148
|
display: 'inline-block',
|
|
149
149
|
onImageLoaded: _event => {}
|
|
150
|
-
},
|
|
150
|
+
}, _Avatar)) || _class) || _class);
|
|
151
151
|
var _default = exports.default = Avatar;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-avatar",
|
|
3
|
-
"version": "9.0.2-snapshot-
|
|
3
|
+
"version": "9.0.2-snapshot-4",
|
|
4
4
|
"description": "An image or letters that represents a user.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,25 +23,25 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.
|
|
27
|
-
"@instructure/console": "9.0.2-snapshot-
|
|
28
|
-
"@instructure/emotion": "9.0.2-snapshot-
|
|
29
|
-
"@instructure/shared-types": "9.0.2-snapshot-
|
|
30
|
-
"@instructure/ui-icons": "9.0.2-snapshot-
|
|
31
|
-
"@instructure/ui-react-utils": "9.0.2-snapshot-
|
|
32
|
-
"@instructure/ui-testable": "9.0.2-snapshot-
|
|
33
|
-
"@instructure/ui-view": "9.0.2-snapshot-
|
|
26
|
+
"@babel/runtime": "^7.24.5",
|
|
27
|
+
"@instructure/console": "9.0.2-snapshot-4",
|
|
28
|
+
"@instructure/emotion": "9.0.2-snapshot-4",
|
|
29
|
+
"@instructure/shared-types": "9.0.2-snapshot-4",
|
|
30
|
+
"@instructure/ui-icons": "9.0.2-snapshot-4",
|
|
31
|
+
"@instructure/ui-react-utils": "9.0.2-snapshot-4",
|
|
32
|
+
"@instructure/ui-testable": "9.0.2-snapshot-4",
|
|
33
|
+
"@instructure/ui-view": "9.0.2-snapshot-4",
|
|
34
34
|
"prop-types": "^15.8.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@instructure/ui-axe-check": "9.0.2-snapshot-
|
|
38
|
-
"@instructure/ui-babel-preset": "9.0.2-snapshot-
|
|
39
|
-
"@instructure/ui-color-utils": "9.0.2-snapshot-
|
|
40
|
-
"@instructure/ui-test-locator": "9.0.2-snapshot-
|
|
41
|
-
"@instructure/ui-test-utils": "9.0.2-snapshot-
|
|
42
|
-
"@instructure/ui-themes": "9.0.2-snapshot-
|
|
43
|
-
"@testing-library/jest-dom": "^6.
|
|
44
|
-
"@testing-library/react": "^
|
|
37
|
+
"@instructure/ui-axe-check": "9.0.2-snapshot-4",
|
|
38
|
+
"@instructure/ui-babel-preset": "9.0.2-snapshot-4",
|
|
39
|
+
"@instructure/ui-color-utils": "9.0.2-snapshot-4",
|
|
40
|
+
"@instructure/ui-test-locator": "9.0.2-snapshot-4",
|
|
41
|
+
"@instructure/ui-test-utils": "9.0.2-snapshot-4",
|
|
42
|
+
"@instructure/ui-themes": "9.0.2-snapshot-4",
|
|
43
|
+
"@testing-library/jest-dom": "^6.4.5",
|
|
44
|
+
"@testing-library/react": "^15.0.7"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=16.8 <=18"
|