@scm-manager/ui-components 3.10.1-20250720-083819 → 3.10.1-20250726-115425

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scm-manager/ui-components",
3
- "version": "3.10.1-20250720-083819",
3
+ "version": "3.10.1-20250726-115425",
4
4
  "description": "UI Components for SCM-Manager and its plugins",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -32,8 +32,8 @@
32
32
  "react-query": "^3.39.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@scm-manager/ui-tests": "3.10.1-20250720-083819",
36
- "@scm-manager/ui-types": "3.10.1-20250720-083819",
35
+ "@scm-manager/ui-tests": "3.10.1-20250726-115425",
36
+ "@scm-manager/ui-types": "3.10.1-20250726-115425",
37
37
  "@types/fetch-mock": "^7.3.1",
38
38
  "@types/react-select": "^2.0.19",
39
39
  "@types/unist": "^2.0.3",
@@ -68,17 +68,17 @@
68
68
  "@scm-manager/jest-preset": "^2.14.1",
69
69
  "@scm-manager/prettier-config": "^2.12.0",
70
70
  "@scm-manager/tsconfig": "^2.13.0",
71
- "@scm-manager/ui-syntaxhighlighting": "3.10.1-20250720-083819",
72
- "@scm-manager/ui-shortcuts": "3.10.1-20250720-083819",
73
- "@scm-manager/ui-text": "3.10.1-20250720-083819"
71
+ "@scm-manager/ui-syntaxhighlighting": "3.10.1-20250726-115425",
72
+ "@scm-manager/ui-shortcuts": "3.10.1-20250726-115425",
73
+ "@scm-manager/ui-text": "3.10.1-20250726-115425"
74
74
  },
75
75
  "dependencies": {
76
- "@scm-manager/ui-core": "3.10.1-20250720-083819",
77
- "@scm-manager/ui-overlays": "3.10.1-20250720-083819",
78
- "@scm-manager/ui-layout": "3.10.1-20250720-083819",
79
- "@scm-manager/ui-buttons": "3.10.1-20250720-083819",
80
- "@scm-manager/ui-api": "3.10.1-20250720-083819",
81
- "@scm-manager/ui-extensions": "3.10.1-20250720-083819",
76
+ "@scm-manager/ui-core": "3.10.1-20250726-115425",
77
+ "@scm-manager/ui-overlays": "3.10.1-20250726-115425",
78
+ "@scm-manager/ui-layout": "3.10.1-20250726-115425",
79
+ "@scm-manager/ui-buttons": "3.10.1-20250726-115425",
80
+ "@scm-manager/ui-api": "3.10.1-20250726-115425",
81
+ "@scm-manager/ui-extensions": "3.10.1-20250726-115425",
82
82
  "deepmerge": "^4.2.2",
83
83
  "hast-util-sanitize": "^3.0.2",
84
84
  "react-diff-view": "^2.4.10",
@@ -1825,18 +1825,20 @@ exports[`Storyshots Footer Full 1`] = `
1825
1825
  className="has-text-weight-bold mb-2"
1826
1826
  >
1827
1827
  <div
1828
+ className="is-flex"
1828
1829
  data-testid="trillian-mcmillian"
1829
1830
  >
1830
- <span
1831
- className="Footer__AvatarContainer-sc-k70cxq-1 kckyuz image is-rounded"
1832
- >
1831
+ <div>
1833
1832
  <img
1834
1833
  alt="trillian"
1835
- className="is-rounded Footer__VCenteredAvatar-sc-k70cxq-0 bGojWR"
1834
+ className="is-rounded Footer__VCenteredAvatar-sc-k70cxq-0 gNPbnb"
1835
+ crossOrigin="anonymous"
1836
1836
  src="test-file-stub"
1837
1837
  />
1838
- </span>
1839
- Trillian McMillian
1838
+ </div>
1839
+ <div>
1840
+ Trillian McMillian
1841
+ </div>
1840
1842
  </div>
1841
1843
  </h2>
1842
1844
  <ul
@@ -2031,18 +2033,20 @@ exports[`Storyshots Footer With Avatar 1`] = `
2031
2033
  className="has-text-weight-bold mb-2"
2032
2034
  >
2033
2035
  <div
2036
+ className="is-flex"
2034
2037
  data-testid="trillian-mcmillian"
2035
2038
  >
2036
- <span
2037
- className="Footer__AvatarContainer-sc-k70cxq-1 kckyuz image is-rounded"
2038
- >
2039
+ <div>
2039
2040
  <img
2040
2041
  alt="trillian"
2041
- className="is-rounded Footer__VCenteredAvatar-sc-k70cxq-0 bGojWR"
2042
+ className="is-rounded Footer__VCenteredAvatar-sc-k70cxq-0 gNPbnb"
2043
+ crossOrigin="anonymous"
2042
2044
  src="test-file-stub"
2043
2045
  />
2044
- </span>
2045
- Trillian McMillian
2046
+ </div>
2047
+ <div>
2048
+ Trillian McMillian
2049
+ </div>
2046
2050
  </div>
2047
2051
  </h2>
2048
2052
  <ul
@@ -20086,6 +20090,7 @@ exports[`Storyshots Repositories/Annotate With Avatars 1`] = `
20086
20090
  <img
20087
20091
  alt="Arthur Dent"
20088
20092
  className="has-rounded-border AuthorImage-sc-ygvjd8-0 dTapGF"
20093
+ crossOrigin="anonymous"
20089
20094
  src="https://robohash.org/arthur.dent@hitchhiker.com.png"
20090
20095
  />
20091
20096
  Arthur Dent
@@ -20148,6 +20153,7 @@ exports[`Storyshots Repositories/Annotate With Avatars 1`] = `
20148
20153
  <img
20149
20154
  alt="Tricia Marie McMillan"
20150
20155
  className="has-rounded-border AuthorImage-sc-ygvjd8-0 dTapGF"
20156
+ crossOrigin="anonymous"
20151
20157
  src="https://robohash.org/trillian@hitchhiker.com.png"
20152
20158
  />
20153
20159
  Tricia Marie McMillan
@@ -20210,6 +20216,7 @@ exports[`Storyshots Repositories/Annotate With Avatars 1`] = `
20210
20216
  <img
20211
20217
  alt="Arthur Dent"
20212
20218
  className="has-rounded-border AuthorImage-sc-ygvjd8-0 dTapGF"
20219
+ crossOrigin="anonymous"
20213
20220
  src="https://robohash.org/arthur.dent@hitchhiker.com.png"
20214
20221
  />
20215
20222
  Arthur Dent
@@ -20254,6 +20261,7 @@ exports[`Storyshots Repositories/Annotate With Avatars 1`] = `
20254
20261
  <img
20255
20262
  alt="Ford Prefect"
20256
20263
  className="has-rounded-border AuthorImage-sc-ygvjd8-0 dTapGF"
20264
+ crossOrigin="anonymous"
20257
20265
  src="https://robohash.org/ford.prefect@hitchhiker.com.png"
20258
20266
  />
20259
20267
  Ford Prefect
@@ -20298,6 +20306,7 @@ exports[`Storyshots Repositories/Annotate With Avatars 1`] = `
20298
20306
  <img
20299
20307
  alt="Arthur Dent"
20300
20308
  className="has-rounded-border AuthorImage-sc-ygvjd8-0 dTapGF"
20309
+ crossOrigin="anonymous"
20301
20310
  src="https://robohash.org/arthur.dent@hitchhiker.com.png"
20302
20311
  />
20303
20312
  Arthur Dent
@@ -20380,11 +20389,12 @@ exports[`Storyshots Repositories/Changesets Co-Authors with avatar 1`] = `
20380
20389
  className="media-left mt-2 mr-2"
20381
20390
  >
20382
20391
  <div
20383
- className="SingleChangeset__FixedSizedAvatar-sc-ytpqp9-0 cDjLjl image"
20392
+ className="SingleChangeset__FixedSizedAvatar-sc-ytpqp9-0 dLAXC image"
20384
20393
  >
20385
20394
  <img
20386
20395
  alt="SCM Administrator"
20387
20396
  className="has-rounded-border"
20397
+ crossOrigin="anonymous"
20388
20398
  src="https://robohash.org/scm-admin@scm-manager.org"
20389
20399
  />
20390
20400
  </div>
@@ -20554,11 +20564,12 @@ exports[`Storyshots Repositories/Changesets Commiter and Co-Authors with avatar
20554
20564
  className="media-left mt-2 mr-2"
20555
20565
  >
20556
20566
  <div
20557
- className="SingleChangeset__FixedSizedAvatar-sc-ytpqp9-0 cDjLjl image"
20567
+ className="SingleChangeset__FixedSizedAvatar-sc-ytpqp9-0 dLAXC image"
20558
20568
  >
20559
20569
  <img
20560
20570
  alt="SCM Administrator"
20561
20571
  className="has-rounded-border"
20572
+ crossOrigin="anonymous"
20562
20573
  src="https://robohash.org/scm-admin@scm-manager.org"
20563
20574
  />
20564
20575
  </div>
@@ -21626,11 +21637,12 @@ exports[`Storyshots Repositories/Changesets With avatar 1`] = `
21626
21637
  className="media-left mt-2 mr-2"
21627
21638
  >
21628
21639
  <div
21629
- className="SingleChangeset__FixedSizedAvatar-sc-ytpqp9-0 cDjLjl image"
21640
+ className="SingleChangeset__FixedSizedAvatar-sc-ytpqp9-0 dLAXC image"
21630
21641
  >
21631
21642
  <img
21632
21643
  alt="SCM Administrator"
21633
21644
  className="has-rounded-border"
21645
+ crossOrigin="anonymous"
21634
21646
  src="test-file-stub"
21635
21647
  />
21636
21648
  </div>
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import React, { FC } from "react";
18
- import { Image } from "..";
18
+ import { Image } from "@scm-manager/ui-core";
19
19
  import { EXTENSION_POINT, Person } from "./Avatar";
20
20
  import { useBinder } from "@scm-manager/ui-extensions";
21
21
 
@@ -36,7 +36,7 @@ const AvatarImage: FC<Props> = ({ person, representation = "rounded-border", cla
36
36
  classes += " " + className;
37
37
  }
38
38
 
39
- return <Image className={classes} src={avatar} alt={person.name} />;
39
+ return <Image className={classes} src={avatar} alt={person.name} crossOrigin="anonymous" />;
40
40
  }
41
41
 
42
42
  return null;
@@ -51,23 +51,19 @@ type TitleWithAvatarProps = {
51
51
  };
52
52
 
53
53
  const VCenteredAvatar = styled(AvatarImage)`
54
- vertical-align: middle;
55
- `;
56
-
57
- const AvatarContainer = styled.span`
58
- float: left;
54
+ width: 1rem !important;
55
+ height: 1rem !important;
59
56
  margin-right: 0.3em;
60
57
  padding-top: 0.2em;
61
- width: 1em;
62
- height: 1em;
58
+ border-radius: 100%;
63
59
  `;
64
60
 
65
61
  const TitleWithAvatar: FC<TitleWithAvatarProps> = ({ me }) => (
66
- <div {...createAttributesForTesting(me.displayName)}>
67
- <AvatarContainer className="image is-rounded">
62
+ <div {...createAttributesForTesting(me.displayName)} className="is-flex">
63
+ <div>
68
64
  <VCenteredAvatar person={me} representation="rounded" />
69
- </AvatarContainer>
70
- {me.displayName}
65
+ </div>
66
+ <div>{me.displayName}</div>
71
67
  </div>
72
68
  );
73
69
 
@@ -37,6 +37,7 @@ type Props = {
37
37
  const FixedSizedAvatar = styled.div`
38
38
  width: 35px;
39
39
  height: 35px;
40
+ min-width: fit-content;
40
41
  `;
41
42
 
42
43
  const FullWidthDiv = styled.div`