@muonic/muon 0.0.2-beta.44 → 0.0.2-beta.45
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 +2 -0
- package/package.json +1 -1
- package/scripts/utils/index.mjs +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.2-beta.45](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.44...v0.0.2-beta.45) (2023-09-18)
|
|
6
|
+
|
|
5
7
|
### [0.0.2-beta.44](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.43...v0.0.2-beta.44) (2023-09-15)
|
|
6
8
|
|
|
7
9
|
|
package/package.json
CHANGED
package/scripts/utils/index.mjs
CHANGED
|
@@ -305,9 +305,17 @@ const componentDefiner = async () => {
|
|
|
305
305
|
});
|
|
306
306
|
|
|
307
307
|
componentDefinition += `
|
|
308
|
-
|
|
308
|
+
function defineComponents() {
|
|
309
309
|
${definingCompnents.join('')}
|
|
310
|
-
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (document.readyState === 'loading') {
|
|
313
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
314
|
+
defineComponents();
|
|
315
|
+
});
|
|
316
|
+
} else {
|
|
317
|
+
defineComponents();
|
|
318
|
+
}
|
|
311
319
|
`;
|
|
312
320
|
|
|
313
321
|
return componentDefinition;
|