@instructure/ui-top-nav-bar 9.0.2-snapshot-10 → 9.0.2-snapshot-13

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,9 +3,12 @@
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
- ## [9.0.2-snapshot-10](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-10) (2024-06-11)
6
+ ## [9.0.2-snapshot-13](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-13) (2024-06-13)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-top-nav-bar
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-top-nav-bar:** show nothing in smallviewportlayout when there is one crumb link ([1c380a9](https://github.com/instructure/instructure-ui/commit/1c380a9943ffc1213d19961dc840181fb26a0308))
9
12
 
10
13
 
11
14
 
@@ -100,7 +100,7 @@ let TopNavBarBreadcrumb = (_dec = withStyle(generateStyle, null), _dec2 = testab
100
100
  css: styles === null || styles === void 0 ? void 0 : styles.topNavBarBreadcrumb
101
101
  }, jsx("div", {
102
102
  css: styles === null || styles === void 0 ? void 0 : styles.linkContainer
103
- }, jsx(Link, {
103
+ }, lastButOneLink && jsx(Link, {
104
104
  href: lastButOneLink.props.href,
105
105
  isWithinText: false,
106
106
  renderIcon: IconArrowOpenStartLine
@@ -107,7 +107,7 @@ let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.wit
107
107
  css: styles === null || styles === void 0 ? void 0 : styles.topNavBarBreadcrumb
108
108
  }, (0, _emotion.jsx)("div", {
109
109
  css: styles === null || styles === void 0 ? void 0 : styles.linkContainer
110
- }, (0, _emotion.jsx)(_Link.Link, {
110
+ }, lastButOneLink && (0, _emotion.jsx)(_Link.Link, {
111
111
  href: lastButOneLink.props.href,
112
112
  isWithinText: false,
113
113
  renderIcon: _IconArrowOpenStartLine.IconArrowOpenStartLine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-top-nav-bar",
3
- "version": "9.0.2-snapshot-10",
3
+ "version": "9.0.2-snapshot-13",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,38 +24,38 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.24.5",
27
- "@instructure/console": "9.0.2-snapshot-10",
28
- "@instructure/emotion": "9.0.2-snapshot-10",
29
- "@instructure/shared-types": "9.0.2-snapshot-10",
30
- "@instructure/ui-a11y-content": "9.0.2-snapshot-10",
31
- "@instructure/ui-avatar": "9.0.2-snapshot-10",
32
- "@instructure/ui-breadcrumb": "9.0.2-snapshot-10",
33
- "@instructure/ui-buttons": "9.0.2-snapshot-10",
34
- "@instructure/ui-dialog": "9.0.2-snapshot-10",
35
- "@instructure/ui-dom-utils": "9.0.2-snapshot-10",
36
- "@instructure/ui-drilldown": "9.0.2-snapshot-10",
37
- "@instructure/ui-icons": "9.0.2-snapshot-10",
38
- "@instructure/ui-link": "9.0.2-snapshot-10",
39
- "@instructure/ui-popover": "9.0.2-snapshot-10",
40
- "@instructure/ui-prop-types": "9.0.2-snapshot-10",
41
- "@instructure/ui-react-utils": "9.0.2-snapshot-10",
42
- "@instructure/ui-responsive": "9.0.2-snapshot-10",
43
- "@instructure/ui-testable": "9.0.2-snapshot-10",
44
- "@instructure/ui-tooltip": "9.0.2-snapshot-10",
45
- "@instructure/ui-tray": "9.0.2-snapshot-10",
46
- "@instructure/ui-truncate-list": "9.0.2-snapshot-10",
47
- "@instructure/ui-utils": "9.0.2-snapshot-10",
48
- "@instructure/ui-view": "9.0.2-snapshot-10",
27
+ "@instructure/console": "9.0.2-snapshot-13",
28
+ "@instructure/emotion": "9.0.2-snapshot-13",
29
+ "@instructure/shared-types": "9.0.2-snapshot-13",
30
+ "@instructure/ui-a11y-content": "9.0.2-snapshot-13",
31
+ "@instructure/ui-avatar": "9.0.2-snapshot-13",
32
+ "@instructure/ui-breadcrumb": "9.0.2-snapshot-13",
33
+ "@instructure/ui-buttons": "9.0.2-snapshot-13",
34
+ "@instructure/ui-dialog": "9.0.2-snapshot-13",
35
+ "@instructure/ui-dom-utils": "9.0.2-snapshot-13",
36
+ "@instructure/ui-drilldown": "9.0.2-snapshot-13",
37
+ "@instructure/ui-icons": "9.0.2-snapshot-13",
38
+ "@instructure/ui-link": "9.0.2-snapshot-13",
39
+ "@instructure/ui-popover": "9.0.2-snapshot-13",
40
+ "@instructure/ui-prop-types": "9.0.2-snapshot-13",
41
+ "@instructure/ui-react-utils": "9.0.2-snapshot-13",
42
+ "@instructure/ui-responsive": "9.0.2-snapshot-13",
43
+ "@instructure/ui-testable": "9.0.2-snapshot-13",
44
+ "@instructure/ui-tooltip": "9.0.2-snapshot-13",
45
+ "@instructure/ui-tray": "9.0.2-snapshot-13",
46
+ "@instructure/ui-truncate-list": "9.0.2-snapshot-13",
47
+ "@instructure/ui-utils": "9.0.2-snapshot-13",
48
+ "@instructure/ui-view": "9.0.2-snapshot-13",
49
49
  "prop-types": "^15.8.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@instructure/ui-axe-check": "9.0.2-snapshot-10",
53
- "@instructure/ui-babel-preset": "9.0.2-snapshot-10",
54
- "@instructure/ui-color-utils": "9.0.2-snapshot-10",
55
- "@instructure/ui-scripts": "9.0.2-snapshot-10",
56
- "@instructure/ui-test-locator": "9.0.2-snapshot-10",
57
- "@instructure/ui-test-utils": "9.0.2-snapshot-10",
58
- "@instructure/ui-themes": "9.0.2-snapshot-10",
52
+ "@instructure/ui-axe-check": "9.0.2-snapshot-13",
53
+ "@instructure/ui-babel-preset": "9.0.2-snapshot-13",
54
+ "@instructure/ui-color-utils": "9.0.2-snapshot-13",
55
+ "@instructure/ui-scripts": "9.0.2-snapshot-13",
56
+ "@instructure/ui-test-locator": "9.0.2-snapshot-13",
57
+ "@instructure/ui-test-utils": "9.0.2-snapshot-13",
58
+ "@instructure/ui-themes": "9.0.2-snapshot-13",
59
59
  "@testing-library/jest-dom": "^6.4.5",
60
60
  "@testing-library/react": "^15.0.7",
61
61
  "@testing-library/user-event": "^14.5.2"
@@ -126,13 +126,15 @@ class TopNavBarBreadcrumb extends Component<
126
126
  ) : (
127
127
  <div ref={this.handleRef} css={styles?.topNavBarBreadcrumb}>
128
128
  <div css={styles?.linkContainer}>
129
- <Link
130
- href={lastButOneLink.props.href}
131
- isWithinText={false}
132
- renderIcon={IconArrowOpenStartLine}
133
- >
134
- {lastButOneLink.props.children}
135
- </Link>
129
+ {lastButOneLink && (
130
+ <Link
131
+ href={lastButOneLink.props.href}
132
+ isWithinText={false}
133
+ renderIcon={IconArrowOpenStartLine}
134
+ >
135
+ {lastButOneLink.props.children}
136
+ </Link>
137
+ )}
136
138
  </div>
137
139
  </div>
138
140
  ))