@hashicorp/design-system-components 1.3.1 → 1.3.2

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,5 +1,11 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#668](https://github.com/hashicorp/design-system/pull/668) [`3c3b6706`](https://github.com/hashicorp/design-system/commit/3c3b67061d3850721525a624c14bc88ee72e32a1) Thanks [@alex-ju](https://github.com/alex-ju)! - Fix whitespace issue in `Link::Inline` and `Interactive` utility component
8
+
3
9
  ## 1.3.1
4
10
 
5
11
  ### Patch Changes
@@ -1,7 +1,8 @@
1
1
  {{! IMPORTANT: we removed the newlines before/after the yield to reduce the issues with unexpected whitespaces (see https://github.com/hashicorp/design-system/pull/231#issuecomment-1123502499) }}
2
+ {{! IMPORTANT: we need to add "squishies" here (~) because otherwise the whitespace added by Ember becomes visible in the link (being an inline element) - See https://handlebarsjs.com/guide/expressions.html#whitespace-control }}
2
3
  {{! NOTICE: we can't support the direct use of the "href" HTML attribute via ...attributes in the <a> elements, because we need to rely on the "@href" Ember argument to differentiate between different types of generated output }}
3
- {{#if @route}}
4
- {{#if this.isRouteExternal}}
4
+ {{~#if @route~}}
5
+ {{~#if this.isRouteExternal~}}
5
6
  <LinkToExternal
6
7
  @current-when={{@current-when}}
7
8
  @models={{hds-link-to-models @model @models}}
@@ -10,7 +11,7 @@
10
11
  @route={{@route}}
11
12
  ...attributes
12
13
  >{{yield}}</LinkToExternal>
13
- {{else}}
14
+ {{~else~}}
14
15
  <LinkTo
15
16
  @current-when={{@current-when}}
16
17
  @models={{hds-link-to-models @model @models}}
@@ -19,15 +20,13 @@
19
20
  @route={{@route}}
20
21
  ...attributes
21
22
  >{{yield}}</LinkTo>
22
- {{/if}}
23
- {{else if @href}}
24
- {{#if this.isHrefExternal}}
23
+ {{~/if~}}
24
+ {{~else if @href~}}
25
+ {{~#if this.isHrefExternal~}}
25
26
  <a target="_blank" rel="noopener noreferrer" ...attributes href={{@href}} {{on "keyup" this.onKeyUp}}>{{yield}}</a>
26
- {{else}}
27
+ {{~else~}}
27
28
  <a ...attributes href={{@href}} {{on "keyup" this.onKeyUp}}>{{yield}}</a>
28
- {{/if}}
29
- {{else}}
30
- <button type="button" ...attributes>
31
- {{yield}}
32
- </button>
33
- {{/if}}
29
+ {{~/if~}}
30
+ {{~else~}}
31
+ <button type="button" ...attributes>{{yield}}</button>
32
+ {{~/if~}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "HashiCorp Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",
@@ -77,7 +77,7 @@
77
77
  "ember-prism": "^0.12.0",
78
78
  "ember-qunit": "^5.1.5",
79
79
  "ember-resolver": "^8.0.3",
80
- "ember-source": "~4.7.0",
80
+ "ember-source": "~4.8.1",
81
81
  "ember-source-channel-url": "^3.0.0",
82
82
  "ember-template-lint": "^4.14.0",
83
83
  "ember-template-lint-plugin-prettier": "^4.0.0",