@brightspace-ui/core 2.127.1 → 2.127.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.
@@ -1,11 +1,12 @@
1
1
  import '../colors/colors.js';
2
- import { css, html, LitElement } from 'lit';
2
+ import { css, html, LitElement, noChange } from 'lit';
3
3
  import { fixSvg } from './fix-svg.js';
4
+ import { guard } from 'lit/directives/guard.js';
4
5
  import { iconStyles } from './icon-styles.js';
5
6
  import { loadSvg } from '../../generated/icons/presetIconLoader.js';
6
7
  import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
7
- import { runAsync } from '../../directives/run-async/run-async.js';
8
8
  import { unsafeSVG } from 'lit/directives/unsafe-svg.js';
9
+ import { until } from 'lit/directives/until.js';
9
10
 
10
11
  class Icon extends RtlMixin(LitElement) {
11
12
 
@@ -36,9 +37,7 @@ class Icon extends RtlMixin(LitElement) {
36
37
  }
37
38
 
38
39
  render() {
39
- return html`${runAsync(this.icon, () => this._getIcon(), {
40
- success: (icon) => icon
41
- }, { pendingState: false })}`;
40
+ return guard([this.icon], () => until(this._getIcon(), noChange));
42
41
  }
43
42
 
44
43
  _fixSvg(svgStr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.127.1",
3
+ "version": "2.127.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",