@brightspace-ui/core 1.216.0 → 1.217.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.
@@ -7,7 +7,7 @@ import { LocalizeCoreElement } from '../../lang/localize-core-element.js';
7
7
  import { offscreenStyles } from '../offscreen/offscreen.js';
8
8
  import { RtlMixin } from '../../mixins/rtl-mixin.js';
9
9
  import { SkeletonMixin } from '../skeleton/skeleton-mixin.js';
10
- import { styleMap } from 'lit-html/directives/style-map';
10
+ import { styleMap } from 'lit-html/directives/style-map.js';
11
11
 
12
12
  export const CountBadgeMixin = superclass => class extends LocalizeCoreElement(SkeletonMixin(RtlMixin(superclass))) {
13
13
 
@@ -56,7 +56,8 @@ class CodeView extends LitElement {
56
56
  }
57
57
 
58
58
  get _codeTemplate() {
59
- return html`<pre class="language-${this.language}"><code class="language-${this.language}">${unsafeHTML(this._code)}</code></pre>`;
59
+ const code = this._code !== undefined ? unsafeHTML(this._code) : '';
60
+ return html`<pre class="language-${this.language}"><code class="language-${this.language}">${code}</code></pre>`;
60
61
  }
61
62
 
62
63
  _formatCode(text) {
@@ -163,7 +163,8 @@ class ListDemoDragAndDrop extends LitElement {
163
163
  targetItems.splice(targetIndex, 0, dataToMove[i]);
164
164
  }
165
165
 
166
- await this.requestUpdate();
166
+ this.requestUpdate();
167
+ await this.updateComplete;
167
168
 
168
169
  if (e.detail.keyboardActive) {
169
170
  requestAnimationFrame(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.216.0",
3
+ "version": "1.217.0",
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",