From a5882af95970c0973bd97eed2a86c653948c8ef3 Mon Sep 17 00:00:00 2001 From: Eunsun Mota Date: Tue, 22 Oct 2024 12:42:32 -0700 Subject: [PATCH] feat(api): add register static method #26 - `AuroDialog.register` is to easily register the element without extra importing - `import '@aurodesignsystem/auro-dialog'` will still register this element to `` - `import { AuroDialog } from '@aurodesignsystem/auro-dialog/src/auro-dialog.js` wont register this element until `AuroDialog.register` gets called --- demo/index.html | 5 - demo/index.js | 5 + demo/index.md | 7 +- demo/index.min.js | 339 +++++++++++++++++++++++++++++++++++++++ docs/partials/index.md | 7 +- index.js | 3 +- package-lock.json | 4 +- package.json | 2 +- src/auro-dialog.js | 18 ++- test/auro-dialog.test.js | 2 +- 10 files changed, 367 insertions(+), 25 deletions(-) diff --git a/demo/index.html b/demo/index.html index 9520af3..2250509 100644 --- a/demo/index.html +++ b/demo/index.html @@ -42,11 +42,6 @@