@gitlab/ui 80.16.0 → 80.16.1

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
@@ -1,3 +1,10 @@
1
+ ## [80.16.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.16.0...v80.16.1) (2024-05-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * breadcrumbs refs breaks on vue3 ([e3feef3](https://gitlab.com/gitlab-org/gitlab-ui/commit/e3feef3640f68fe58eaed80f91cb8ba68e8c7ab1))
7
+
1
8
  # [80.16.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v80.15.2...v80.16.0) (2024-05-30)
2
9
 
3
10
 
@@ -135,6 +135,7 @@ var script = {
135
135
  // Wait for DOM update so all items get rendered and can be measured.
136
136
  await this.$nextTick();
137
137
  this.totalBreadcrumbsWidth = 0;
138
+ if (!this.$refs.breadcrumbs) return;
138
139
  this.$refs.breadcrumbs.forEach((b, index) => {
139
140
  const width = b.$el.clientWidth;
140
141
  this.totalBreadcrumbsWidth += width;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "80.16.0",
3
+ "version": "80.16.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -55,8 +55,8 @@
55
55
  "test:visual": "./bin/run-visual-tests.sh 'test-storybook --browsers firefox --verbose --url http://localhost:9001'",
56
56
  "test:visual:update": "./bin/run-visual-tests.sh 'test-storybook -u --browsers firefox --verbose --url http://localhost:9001'",
57
57
  "test:visual:internal": "NODE_ENV=test IS_VISUAL_TEST=true start-test storybook:run http-get://${STORYBOOK_HOST:-localhost}:9001/iframe.html",
58
- "prettier": "prettier --check '**/*.{js,ts,vue}'",
59
- "prettier:fix": "prettier --write '**/*.{js,ts,vue}'",
58
+ "prettier": "prettier --check '**/*.{js,mjs,ts,vue}'",
59
+ "prettier:fix": "prettier --write '**/*.{js,mjs,ts,vue}'",
60
60
  "eslint": "eslint --max-warnings 0 --ext .js,.vue .",
61
61
  "preeslint": "yarn generate-utilities",
62
62
  "eslint:fix": "yarn eslint --fix",
@@ -128,6 +128,9 @@ export default {
128
128
  await this.$nextTick();
129
129
 
130
130
  this.totalBreadcrumbsWidth = 0;
131
+
132
+ if (!this.$refs.breadcrumbs) return;
133
+
131
134
  this.$refs.breadcrumbs.forEach((b, index) => {
132
135
  const width = b.$el.clientWidth;
133
136
  this.totalBreadcrumbsWidth += width;