@instructure/ui-avatar 11.7.4-snapshot-11 → 11.7.4-snapshot-49

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.4-snapshot-11](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-11) (2026-05-19)
6
+ ## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-avatar
9
9
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -26,8 +26,9 @@ import { useStyle as useStyleNew } from '@instructure/emotion';
26
26
  import { useState, useEffect, forwardRef, useRef } from 'react';
27
27
  import { View } from '@instructure/ui-view/v11_6';
28
28
  import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils';
29
- import generateStyle from "./styles.js";
30
- import generateComponentTheme from "./theme.js";
29
+ import generateStyle from './styles.js';
30
+ import generateComponentTheme from './theme.js';
31
+
31
32
  /**
32
33
  ---
33
34
  category: components
@@ -151,9 +152,11 @@ const Avatar = /*#__PURE__*/forwardRef(({
151
152
  }), !loaded && renderContent()]
152
153
  });
153
154
  });
154
- Avatar.displayName = 'Avatar';
155
+ // Ensures React DevTools shows "Avatar" instead of "ForwardRef"
156
+ Avatar.displayName = 'Avatar'
155
157
 
156
- // TODO - why is this needed?
157
- Avatar.displayName = 'Avatar';
158
+ // expose generateComponentTheme so Document can render "Default Theme Variables" for v11.6
159
+ ;
160
+ Avatar.generateComponentTheme = generateComponentTheme;
158
161
  export default Avatar;
159
162
  export { Avatar };
@@ -26,8 +26,8 @@ import { useStyleNew } from '@instructure/emotion';
26
26
  import { useState, useEffect, forwardRef } from 'react';
27
27
  import { passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { renderIconWithProps } from '@instructure/ui-icons';
29
- import { avatarSizeToIconSize } from "./props.js";
30
- import generateStyle from "./styles.js";
29
+ import { avatarSizeToIconSize } from './props.js';
30
+ import generateStyle from './styles.js';
31
31
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
32
32
  const ICON_COLOR_MAP = {
33
33
  accent1: 'accentBlueColor',
package/es/exports/a.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Avatar } from "../Avatar/v1/index.js";
24
+ export { Avatar } from '../Avatar/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,4 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Avatar } from "../Avatar/v2/index.js";
24
+ export { Avatar } from '../Avatar/v2/index.js';
@@ -10,8 +10,8 @@ var _react = require("react");
10
10
  var _v11_ = require("@instructure/ui-view/v11_6");
11
11
  var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
12
12
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
13
- var _styles = _interopRequireDefault(require("./styles"));
14
- var _theme = _interopRequireDefault(require("./theme"));
13
+ var _styles = _interopRequireDefault(require("./styles.js"));
14
+ var _theme = _interopRequireDefault(require("./theme.js"));
15
15
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
16
16
  /*
17
17
  * The MIT License (MIT)
@@ -158,8 +158,10 @@ category: components
158
158
  }), !loaded && renderContent()]
159
159
  });
160
160
  });
161
- Avatar.displayName = 'Avatar';
161
+ // Ensures React DevTools shows "Avatar" instead of "ForwardRef"
162
+ Avatar.displayName = 'Avatar'
162
163
 
163
- // TODO - why is this needed?
164
- Avatar.displayName = 'Avatar';
164
+ // expose generateComponentTheme so Document can render "Default Theme Variables" for v11.6
165
+ ;
166
+ Avatar.generateComponentTheme = _theme.default;
165
167
  var _default = exports.default = Avatar;
@@ -9,8 +9,8 @@ var _emotion = require("@instructure/emotion");
9
9
  var _react = require("react");
10
10
  var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
11
11
  var _renderIconWithProps = require("@instructure/ui-icons/lib/IconPropsProvider/renderIconWithProps.js");
12
- var _props = require("./props");
13
- var _styles = _interopRequireDefault(require("./styles"));
12
+ var _props = require("./props.js");
13
+ var _styles = _interopRequireDefault(require("./styles.js"));
14
14
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
15
  /*
16
16
  * The MIT License (MIT)
package/lib/exports/a.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "Avatar", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _v.Avatar;
9
+ return _index.Avatar;
10
10
  }
11
11
  });
12
- var _v = require("../Avatar/v1");
12
+ var _index = require("../Avatar/v1/index.js");
package/lib/exports/b.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "Avatar", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _v.Avatar;
9
+ return _index.Avatar;
10
10
  }
11
11
  });
12
- var _v = require("../Avatar/v2");
12
+ var _index = require("../Avatar/v2/index.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-avatar",
3
- "version": "11.7.4-snapshot-11",
3
+ "version": "11.7.4-snapshot-49",
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,20 +15,20 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.4-snapshot-11",
19
- "@instructure/ui-react-utils": "11.7.4-snapshot-11",
20
- "@instructure/shared-types": "11.7.4-snapshot-11",
21
- "@instructure/ui-icons": "11.7.4-snapshot-11",
22
- "@instructure/ui-themes": "11.7.4-snapshot-11",
23
- "@instructure/ui-view": "11.7.4-snapshot-11"
18
+ "@instructure/emotion": "11.7.4-snapshot-49",
19
+ "@instructure/ui-icons": "11.7.4-snapshot-49",
20
+ "@instructure/ui-react-utils": "11.7.4-snapshot-49",
21
+ "@instructure/ui-themes": "11.7.4-snapshot-49",
22
+ "@instructure/ui-view": "11.7.4-snapshot-49",
23
+ "@instructure/shared-types": "11.7.4-snapshot-49"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@testing-library/jest-dom": "^6.6.3",
27
27
  "@testing-library/react": "15.0.7",
28
28
  "vitest": "^3.2.2",
29
- "@instructure/ui-babel-preset": "11.7.4-snapshot-11",
30
- "@instructure/ui-axe-check": "11.7.4-snapshot-11",
31
- "@instructure/ui-color-utils": "11.7.4-snapshot-11"
29
+ "@instructure/ui-axe-check": "11.7.4-snapshot-49",
30
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-49",
31
+ "@instructure/ui-color-utils": "11.7.4-snapshot-49"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=18 <=19"
@@ -36,8 +36,8 @@ import { View } from '@instructure/ui-view/v11_6'
36
36
  import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils'
37
37
  import type { AvatarProps } from './props'
38
38
 
39
- import generateStyle from './styles'
40
- import generateComponentTheme from './theme'
39
+ import generateStyle from './styles.js'
40
+ import generateComponentTheme from './theme.js'
41
41
 
42
42
  /**
43
43
  ---
@@ -175,10 +175,15 @@ const Avatar = forwardRef(
175
175
  )
176
176
  }
177
177
  )
178
+ // Ensures React DevTools shows "Avatar" instead of "ForwardRef"
178
179
  Avatar.displayName = 'Avatar'
179
180
 
180
- // TODO - why is this needed?
181
- Avatar.displayName = 'Avatar'
181
+ // expose generateComponentTheme so Document can render "Default Theme Variables" for v11.6
182
+ ;(
183
+ Avatar as typeof Avatar & {
184
+ generateComponentTheme: typeof generateComponentTheme
185
+ }
186
+ ).generateComponentTheme = generateComponentTheme
182
187
 
183
188
  export default Avatar
184
189
  export { Avatar }
@@ -23,7 +23,7 @@
23
23
  */
24
24
 
25
25
  import type { AvatarTheme } from '@instructure/shared-types'
26
- import { AvatarProps, AvatarStyle } from './props'
26
+ import { AvatarProps, AvatarStyle } from './props.js'
27
27
 
28
28
  type StyleParams = {
29
29
  loaded: boolean
@@ -27,9 +27,9 @@ import { useState, useEffect, forwardRef, SyntheticEvent } from 'react'
27
27
 
28
28
  import { passthroughProps } from '@instructure/ui-react-utils'
29
29
  import { renderIconWithProps } from '@instructure/ui-icons'
30
- import { AvatarProps, avatarSizeToIconSize } from './props'
30
+ import { AvatarProps, avatarSizeToIconSize } from './props.js'
31
31
 
32
- import generateStyle from './styles'
32
+ import generateStyle from './styles.js'
33
33
 
34
34
  const ICON_COLOR_MAP = {
35
35
  accent1: 'accentBlueColor',
@@ -24,7 +24,7 @@
24
24
 
25
25
  import { calcSpacingFromShorthand } from '@instructure/emotion'
26
26
  import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes'
27
- import { AvatarProps, AvatarStyle } from './props'
27
+ import { AvatarProps, AvatarStyle } from './props.js'
28
28
 
29
29
  type StyleParams = {
30
30
  loaded: boolean
package/src/exports/a.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Avatar } from '../Avatar/v1'
24
+ export { Avatar } from '../Avatar/v1/index.js'
25
25
  export type { AvatarProps } from '../Avatar/v1/props'
package/src/exports/b.ts CHANGED
@@ -21,5 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Avatar } from '../Avatar/v2'
24
+ export { Avatar } from '../Avatar/v2/index.js'
25
25
  export type { AvatarProps } from '../Avatar/v2/props'