@instructure/ui-avatar 10.2.3-snapshot-14 → 10.2.3-snapshot-16
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/__new-tests__/Avatar.test.js +4 -4
- package/lib/Avatar/__new-tests__/Avatar.test.js +4 -4
- package/package.json +16 -16
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Avatar/AvatarLocator.d.ts +75 -1
- package/types/Avatar/AvatarLocator.d.ts.map +1 -1
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
|
-
## [10.2.3-snapshot-
|
|
6
|
+
## [10.2.3-snapshot-16](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-snapshot-16) (2024-10-03)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-avatar
|
|
9
9
|
|
|
@@ -82,7 +82,7 @@ describe('<Avatar />', () => {
|
|
|
82
82
|
});
|
|
83
83
|
it('should return the underlying component', async () => {
|
|
84
84
|
const elementRef = vi.fn();
|
|
85
|
-
const _render4 = render(
|
|
85
|
+
const _render4 = render(/*#__PURE__*/React.createElement(Avatar, {
|
|
86
86
|
name: "Avatar Name",
|
|
87
87
|
elementRef: elementRef
|
|
88
88
|
})),
|
|
@@ -97,7 +97,7 @@ describe('<Avatar />', () => {
|
|
|
97
97
|
cy: "75",
|
|
98
98
|
r: "20"
|
|
99
99
|
})));
|
|
100
|
-
const _render5 = render(
|
|
100
|
+
const _render5 = render(/*#__PURE__*/React.createElement(Avatar, {
|
|
101
101
|
name: "avatar name",
|
|
102
102
|
renderIcon: SomeIcon
|
|
103
103
|
}, "hello")),
|
|
@@ -115,7 +115,7 @@ describe('<Avatar />', () => {
|
|
|
115
115
|
expect(avatarSvg).toBeInTheDocument();
|
|
116
116
|
});
|
|
117
117
|
it('should display correctly when an icon renderer is passed', async () => {
|
|
118
|
-
const _render7 = render(
|
|
118
|
+
const _render7 = render(/*#__PURE__*/React.createElement(Avatar, {
|
|
119
119
|
name: "Jessica Jones",
|
|
120
120
|
renderIcon: () => _IconGroupLine || (_IconGroupLine = /*#__PURE__*/React.createElement(IconGroupLine, null))
|
|
121
121
|
}, "Hello World")),
|
|
@@ -148,7 +148,7 @@ describe('<Avatar />', () => {
|
|
|
148
148
|
});
|
|
149
149
|
it('should call onImageLoaded once the image loads', async () => {
|
|
150
150
|
const onImageLoaded = vi.fn();
|
|
151
|
-
const _render10 = render(
|
|
151
|
+
const _render10 = render(/*#__PURE__*/React.createElement(Avatar, {
|
|
152
152
|
name: "Avatar Name",
|
|
153
153
|
onImageLoaded: onImageLoaded
|
|
154
154
|
})),
|
|
@@ -85,7 +85,7 @@ describe('<Avatar />', () => {
|
|
|
85
85
|
});
|
|
86
86
|
it('should return the underlying component', async () => {
|
|
87
87
|
const elementRef = _vitest.vi.fn();
|
|
88
|
-
const _render4 = (0, _react2.render)(
|
|
88
|
+
const _render4 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
89
89
|
name: "Avatar Name",
|
|
90
90
|
elementRef: elementRef
|
|
91
91
|
})),
|
|
@@ -100,7 +100,7 @@ describe('<Avatar />', () => {
|
|
|
100
100
|
cy: "75",
|
|
101
101
|
r: "20"
|
|
102
102
|
})));
|
|
103
|
-
const _render5 = (0, _react2.render)(
|
|
103
|
+
const _render5 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
104
104
|
name: "avatar name",
|
|
105
105
|
renderIcon: SomeIcon
|
|
106
106
|
}, "hello")),
|
|
@@ -118,7 +118,7 @@ describe('<Avatar />', () => {
|
|
|
118
118
|
expect(avatarSvg).toBeInTheDocument();
|
|
119
119
|
});
|
|
120
120
|
it('should display correctly when an icon renderer is passed', async () => {
|
|
121
|
-
const _render7 = (0, _react2.render)(
|
|
121
|
+
const _render7 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
122
122
|
name: "Jessica Jones",
|
|
123
123
|
renderIcon: () => _IconGroupLine || (_IconGroupLine = /*#__PURE__*/_react.default.createElement(_IconGroupLine3.IconGroupLine, null))
|
|
124
124
|
}, "Hello World")),
|
|
@@ -151,7 +151,7 @@ describe('<Avatar />', () => {
|
|
|
151
151
|
});
|
|
152
152
|
it('should call onImageLoaded once the image loads', async () => {
|
|
153
153
|
const onImageLoaded = _vitest.vi.fn();
|
|
154
|
-
const _render10 = (0, _react2.render)(
|
|
154
|
+
const _render10 = (0, _react2.render)(/*#__PURE__*/_react.default.createElement(_index.default, {
|
|
155
155
|
name: "Avatar Name",
|
|
156
156
|
onImageLoaded: onImageLoaded
|
|
157
157
|
})),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-avatar",
|
|
3
|
-
"version": "10.2.3-snapshot-
|
|
3
|
+
"version": "10.2.3-snapshot-16",
|
|
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/emotion": "10.2.3-snapshot-
|
|
28
|
-
"@instructure/shared-types": "10.2.3-snapshot-
|
|
29
|
-
"@instructure/ui-icons": "10.2.3-snapshot-
|
|
30
|
-
"@instructure/ui-react-utils": "10.2.3-snapshot-
|
|
31
|
-
"@instructure/ui-testable": "10.2.3-snapshot-
|
|
32
|
-
"@instructure/ui-view": "10.2.3-snapshot-
|
|
26
|
+
"@babel/runtime": "^7.25.6",
|
|
27
|
+
"@instructure/emotion": "10.2.3-snapshot-16",
|
|
28
|
+
"@instructure/shared-types": "10.2.3-snapshot-16",
|
|
29
|
+
"@instructure/ui-icons": "10.2.3-snapshot-16",
|
|
30
|
+
"@instructure/ui-react-utils": "10.2.3-snapshot-16",
|
|
31
|
+
"@instructure/ui-testable": "10.2.3-snapshot-16",
|
|
32
|
+
"@instructure/ui-view": "10.2.3-snapshot-16",
|
|
33
33
|
"prop-types": "^15.8.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@instructure/ui-axe-check": "10.2.3-snapshot-
|
|
37
|
-
"@instructure/ui-babel-preset": "10.2.3-snapshot-
|
|
38
|
-
"@instructure/ui-color-utils": "10.2.3-snapshot-
|
|
39
|
-
"@instructure/ui-test-locator": "10.2.3-snapshot-
|
|
40
|
-
"@instructure/ui-test-utils": "10.2.3-snapshot-
|
|
41
|
-
"@instructure/ui-themes": "10.2.3-snapshot-
|
|
36
|
+
"@instructure/ui-axe-check": "10.2.3-snapshot-16",
|
|
37
|
+
"@instructure/ui-babel-preset": "10.2.3-snapshot-16",
|
|
38
|
+
"@instructure/ui-color-utils": "10.2.3-snapshot-16",
|
|
39
|
+
"@instructure/ui-test-locator": "10.2.3-snapshot-16",
|
|
40
|
+
"@instructure/ui-test-utils": "10.2.3-snapshot-16",
|
|
41
|
+
"@instructure/ui-themes": "10.2.3-snapshot-16",
|
|
42
42
|
"@testing-library/jest-dom": "^6.4.6",
|
|
43
|
-
"@testing-library/react": "^
|
|
44
|
-
"vitest": "^2.
|
|
43
|
+
"@testing-library/react": "^16.0.1",
|
|
44
|
+
"vitest": "^2.1.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"react": ">=16.8 <=18"
|