@ni/nimble-components 32.2.9 → 32.2.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.
- package/dist/all-components-bundle.js +7 -5
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3 -3
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/dialog/index.js +1 -1
- package/dist/esm/dialog/index.js.map +1 -1
- package/dist/esm/drawer/index.js +1 -1
- package/dist/esm/drawer/index.js.map +1 -1
- package/dist/esm/testing/async-helpers.js +1 -1
- package/dist/esm/testing/async-helpers.js.map +1 -1
- package/dist/esm/utilities/testing/component.js +2 -2
- package/dist/esm/utilities/testing/component.js.map +1 -1
- package/dist/esm/utilities/wait-until-custom-elements-defined-async.js +5 -3
- package/dist/esm/utilities/wait-until-custom-elements-defined-async.js.map +1 -1
- package/package.json +1 -1
|
@@ -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) =>
|
|
55240
|
-
|
|
55241
|
-
|
|
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
|
|