@ni/spright-components 4.1.9 → 4.1.10

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.
@@ -21949,7 +21949,7 @@ so this becomes the fallback color for the slot */ ''}
21949
21949
  throw new Error('Dialog is already open');
21950
21950
  }
21951
21951
  this.dialogElement.showModal();
21952
- return new Promise((resolve, _reject) => {
21952
+ return await new Promise((resolve, _reject) => {
21953
21953
  this.resolveShow = resolve;
21954
21954
  });
21955
21955
  }
@@ -22220,7 +22220,7 @@ so this becomes the fallback color for the slot */ ''}
22220
22220
  throw new Error('Drawer is already open');
22221
22221
  }
22222
22222
  this.openDialog();
22223
- return new Promise((resolve, _reject) => {
22223
+ return await new Promise((resolve, _reject) => {
22224
22224
  this.resolveShow = resolve;
22225
22225
  });
22226
22226
  }
@@ -55236,9 +55236,11 @@ img.ProseMirror-separator {
55236
55236
  }
55237
55237
 
55238
55238
  async function waitUntilCustomElementsDefinedAsync(elements) {
55239
- const definedElements = elements.map(async (item) => (item.matches(':not(:defined)')
55240
- ? customElements.whenDefined(item.localName)
55241
- : Promise.resolve()));
55239
+ const definedElements = elements.map(async (item) => {
55240
+ if (item.matches(':not(:defined)')) {
55241
+ await customElements.whenDefined(item.localName);
55242
+ }
55243
+ });
55242
55244
  await Promise.all(definedElements);
55243
55245
  }
55244
55246