@gitlab/ui 115.5.0 → 115.6.0

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.
@@ -121,9 +121,18 @@ const plugin = Vue => {
121
121
  }
122
122
  });
123
123
  // Create a mount point (a DIV) and mount it (which triggers the show)
124
- const div = document.createElement('div');
125
- document.body.appendChild(div);
126
- toast.$mount(div);
124
+ function createMountPoint() {
125
+ const div = document.createElement('div');
126
+ document.body.appendChild(div);
127
+ toast.$mount(div);
128
+ }
129
+
130
+ // ViewTransition fallback
131
+ if (!document.startViewTransition) {
132
+ createMountPoint();
133
+ return;
134
+ }
135
+ document.startViewTransition(createMountPoint);
127
136
  };
128
137
 
129
138
  // Declare BvToast instance property class
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "115.5.0",
3
+ "version": "115.6.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -138,28 +138,28 @@
138
138
  "cypress-real-events": "^1.14.0",
139
139
  "dompurify": "^3.1.2",
140
140
  "emoji-regex": "^10.4.0",
141
- "esbuild": "^0.18.0",
141
+ "esbuild": "^0.25.6",
142
142
  "fuse.js": "^7.1.0",
143
143
  "gitlab-api-async-iterator": "^1.3.1",
144
144
  "glob": "11.0.3",
145
145
  "globby": "^14.1.0",
146
146
  "identity-obj-proxy": "^3.0.0",
147
- "jest": "30.0.2",
148
- "jest-circus": "30.0.2",
149
- "jest-environment-jsdom": "30.0.2",
147
+ "jest": "30.0.4",
148
+ "jest-circus": "30.0.4",
149
+ "jest-environment-jsdom": "30.0.4",
150
150
  "jest-image-snapshot": "^6.5.1",
151
151
  "merge-cobertura": "^1.0.4",
152
152
  "mockdate": "^3.0.5",
153
153
  "module-alias": "^2.2.3",
154
154
  "npm-run-all": "^4.1.5",
155
155
  "pikaday": "^1.8.0",
156
- "playwright": "^1.53.2",
157
- "playwright-core": "^1.53.2",
156
+ "playwright": "^1.54.1",
157
+ "playwright-core": "^1.54.1",
158
158
  "postcss": "8.5.6",
159
159
  "postcss-loader": "8.1.1",
160
160
  "postcss-scss": "4.0.9",
161
- "react": "^18.3.1",
162
- "react-dom": "^19.1.0",
161
+ "react": "18.3.1",
162
+ "react-dom": "18.3.1",
163
163
  "rollup": "^2.79.2",
164
164
  "rollup-plugin-babel": "^4.4.0",
165
165
  "rollup-plugin-postcss": "4.0.2",
@@ -5,10 +5,14 @@
5
5
  .b-toaster {
6
6
  &.b-toaster-bottom-left {
7
7
  .b-toaster-slot {
8
+ @apply gl-w-auto;
9
+ @apply gl-flex;
8
10
  bottom: $gl-spacing-scale-6;
9
11
  left: $gl-spacing-scale-6;
10
12
  right: auto;
11
- @apply gl-w-auto;
13
+ flex-direction: column-reverse;
14
+ gap: $gl-spacing-scale-4;
15
+ view-transition-name: gl-toast;
12
16
 
13
17
  @include media-breakpoint-down(xs) {
14
18
  @apply gl-w-full;
@@ -60,3 +64,8 @@
60
64
  color: inherit !important;
61
65
  }
62
66
  }
67
+
68
+ ::view-transition-group(gl-toast) {
69
+ animation-duration: $gl-transition-duration-medium;
70
+ animation-timing-function: $gl-easing-out-cubic;
71
+ }
@@ -19,10 +19,6 @@
19
19
  background-color: rgba($toast-background-color, $b-toast-background-opacity);
20
20
  }
21
21
 
22
- &:not(:last-child) {
23
- margin-bottom: $toast-padding-x;
24
- }
25
-
26
22
  &.b-toast-solid {
27
23
  .toast {
28
24
  background-color: rgba($toast-background-color, 1);
@@ -133,9 +133,19 @@ const plugin = Vue => {
133
133
  }
134
134
  })
135
135
  // Create a mount point (a DIV) and mount it (which triggers the show)
136
- const div = document.createElement('div')
137
- document.body.appendChild(div)
138
- toast.$mount(div)
136
+ function createMountPoint() {
137
+ const div = document.createElement('div')
138
+ document.body.appendChild(div)
139
+ toast.$mount(div)
140
+ }
141
+
142
+ // ViewTransition fallback
143
+ if (!document.startViewTransition) {
144
+ createMountPoint()
145
+ return
146
+ }
147
+
148
+ document.startViewTransition(createMountPoint)
139
149
  }
140
150
 
141
151
  // Declare BvToast instance property class
@@ -1,3 +1,2 @@
1
1
  @import "toast";
2
2
  @import "toaster";
3
- @import "toaster-transition";
@@ -1,45 +0,0 @@
1
- // --- <b-toast> custom transition SCSS ---
2
-
3
- // PortalVue appears to have issues with transition classes on portaled items
4
-
5
- .b-toaster {
6
- &.b-toaster-top-right,
7
- &.b-toaster-top-left,
8
- &.b-toaster-bottom-right,
9
- &.b-toaster-bottom-left {
10
- .b-toast {
11
- &.b-toaster-enter-active,
12
- &.b-toaster-leave-active,
13
- &.b-toaster-move {
14
- transition: transform 0.175s;
15
- }
16
-
17
- &.b-toaster-enter {
18
- }
19
-
20
- &.b-toaster-enter-to,
21
- &.b-toaster-enter-active {
22
- .toast.fade {
23
- // Delay the appearance of the toast until
24
- // the move transition has completed
25
- transition-delay: 0.175s;
26
- }
27
- }
28
-
29
- &.b-toaster-enter-to {
30
- }
31
-
32
- &.b-toaster-leave-active {
33
- position: absolute;
34
- transition-delay: 0.175s;
35
-
36
- .toast.fade {
37
- transition-delay: 0s;
38
- }
39
- }
40
-
41
- &.b-toaster-leave-to {
42
- }
43
- }
44
- }
45
- }