@instructure/ui-avatar 11.7.11-snapshot-8 → 11.7.11-snapshot-10
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,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
|
-
## [11.7.11-snapshot-
|
|
6
|
+
## [11.7.11-snapshot-10](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-10) (2026-10-28)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-avatar
|
|
9
9
|
|
package/es/Avatar/v2/index.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
import { useStyleNew } from '@instructure/emotion';
|
|
26
26
|
import { useState, useEffect, forwardRef } from 'react';
|
|
27
|
-
import { passthroughProps } from '@instructure/ui-react-utils';
|
|
27
|
+
import { omitProps, passthroughProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { renderIconWithProps } from '@instructure/ui-icons';
|
|
29
29
|
import { avatarSizeToIconSize } from './props.js';
|
|
30
30
|
import generateStyle from './styles.js';
|
|
@@ -144,9 +144,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
144
144
|
return renderInitials();
|
|
145
145
|
};
|
|
146
146
|
return _jsx("div", {
|
|
147
|
-
...passthroughProps(
|
|
148
|
-
...props
|
|
149
|
-
}),
|
|
147
|
+
...passthroughProps(omitProps(props, ['onImageLoaded'])),
|
|
150
148
|
ref: ref,
|
|
151
149
|
"aria-label": alt ? alt : undefined,
|
|
152
150
|
role: alt ? 'img' : undefined,
|
package/lib/Avatar/v2/index.js
CHANGED
|
@@ -151,9 +151,7 @@ const Avatar = exports.Avatar = /*#__PURE__*/(0, _react.forwardRef)((props, ref)
|
|
|
151
151
|
return renderInitials();
|
|
152
152
|
};
|
|
153
153
|
return (0, _jsxRuntime.jsx)("div", {
|
|
154
|
-
...(0, _uiReactUtils.passthroughProps)(
|
|
155
|
-
...props
|
|
156
|
-
}),
|
|
154
|
+
...(0, _uiReactUtils.passthroughProps)((0, _uiReactUtils.omitProps)(props, ['onImageLoaded'])),
|
|
157
155
|
ref: ref,
|
|
158
156
|
"aria-label": alt ? alt : undefined,
|
|
159
157
|
role: alt ? 'img' : undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-avatar",
|
|
3
|
-
"version": "11.7.11-snapshot-
|
|
3
|
+
"version": "11.7.11-snapshot-10",
|
|
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",
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
|
-
"@instructure/emotion": "11.7.11-snapshot-
|
|
19
|
-
"@instructure/shared-types": "11.7.11-snapshot-
|
|
20
|
-
"@instructure/ui-icons": "11.7.11-snapshot-
|
|
21
|
-
"@instructure/ui-react-utils": "11.7.11-snapshot-
|
|
22
|
-
"@instructure/ui-themes": "11.7.11-snapshot-
|
|
23
|
-
"@instructure/ui-utils": "11.7.11-snapshot-
|
|
24
|
-
"@instructure/ui-view": "11.7.11-snapshot-
|
|
18
|
+
"@instructure/emotion": "11.7.11-snapshot-10",
|
|
19
|
+
"@instructure/shared-types": "11.7.11-snapshot-10",
|
|
20
|
+
"@instructure/ui-icons": "11.7.11-snapshot-10",
|
|
21
|
+
"@instructure/ui-react-utils": "11.7.11-snapshot-10",
|
|
22
|
+
"@instructure/ui-themes": "11.7.11-snapshot-10",
|
|
23
|
+
"@instructure/ui-utils": "11.7.11-snapshot-10",
|
|
24
|
+
"@instructure/ui-view": "11.7.11-snapshot-10"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-axe-check": "11.7.11-snapshot-
|
|
28
|
-
"@instructure/ui-babel-preset": "11.7.11-snapshot-
|
|
29
|
-
"@instructure/ui-color-utils": "11.7.11-snapshot-
|
|
27
|
+
"@instructure/ui-axe-check": "11.7.11-snapshot-10",
|
|
28
|
+
"@instructure/ui-babel-preset": "11.7.11-snapshot-10",
|
|
29
|
+
"@instructure/ui-color-utils": "11.7.11-snapshot-10",
|
|
30
30
|
"vitest": "^5.0.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
package/src/Avatar/v2/index.tsx
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import { useStyleNew } from '@instructure/emotion'
|
|
26
26
|
import { useState, useEffect, forwardRef, SyntheticEvent } from 'react'
|
|
27
27
|
|
|
28
|
-
import { passthroughProps } from '@instructure/ui-react-utils'
|
|
28
|
+
import { omitProps, passthroughProps } from '@instructure/ui-react-utils'
|
|
29
29
|
import { renderIconWithProps } from '@instructure/ui-icons'
|
|
30
30
|
import { AvatarProps, avatarSizeToIconSize } from './props.js'
|
|
31
31
|
|
|
@@ -157,7 +157,8 @@ const Avatar = forwardRef<HTMLDivElement, AvatarProps>(
|
|
|
157
157
|
|
|
158
158
|
return (
|
|
159
159
|
<div
|
|
160
|
-
|
|
160
|
+
// React warns on unknown props, prevent this
|
|
161
|
+
{...passthroughProps(omitProps(props, ['onImageLoaded']))}
|
|
161
162
|
ref={ref}
|
|
162
163
|
aria-label={alt ? alt : undefined}
|
|
163
164
|
role={alt ? 'img' : undefined}
|