@aurodesignsystem/auro-dialog 1.0.2 → 1.0.3

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ ## [1.0.3](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.2...v1.0.3) (2024-02-05)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **dist:** add apiExample js to dist folder [#6](https://github.com/AlaskaAirlines/auro-dialog/issues/6) ([565af94](https://github.com/AlaskaAirlines/auro-dialog/commit/565af94c93c89a1d63662d1d2f65eef4f304686a))
9
+ * **label:** update labels to auro-dialog ([7ab983f](https://github.com/AlaskaAirlines/auro-dialog/commit/7ab983fb11fa93ba5b8eb501fe3320caec610576))
10
+
3
11
  ## [1.0.2](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.0.1...v1.0.2) (2024-01-31)
4
12
 
5
13
 
@@ -0,0 +1,8 @@
1
+ function toggleDialog(elem) {
2
+ let dialog = document.querySelector(elem);
3
+
4
+ dialog.hasAttribute('open')
5
+ ? dialog.removeAttribute("open")
6
+ : (dialog.removeAttribute("open"),
7
+ dialog.setAttribute("open", true));
8
+ }
@@ -0,0 +1,8 @@
1
+ function toggleDialog(elem) {
2
+ let dialog = document.querySelector(elem);
3
+
4
+ dialog.hasAttribute('open')
5
+ ? dialog.removeAttribute("open")
6
+ : (dialog.removeAttribute("open"),
7
+ dialog.setAttribute("open", true));
8
+ }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "================================================================================"
8
8
  ],
9
9
  "name": "@aurodesignsystem/auro-dialog",
10
- "version": "1.0.2",
10
+ "version": "1.0.3",
11
11
  "description": "auro-dialog HTML custom element",
12
12
  "repository": {
13
13
  "type": "git",
@@ -143,7 +143,7 @@
143
143
  "bundler:test": "rollup -c -w",
144
144
  "scssLint": "stylelint \"./src/**/*.scss\"",
145
145
  "dev": "concurrently --kill-others \"npm run build:watch\" \"npm run serve\"",
146
- "dist:js": "copyfiles -u 1 -V './src/**/*.js' ./dist",
146
+ "dist:js": "copyfiles -u 1 -V './src/**/*.js' './apiExamples/**/*.js' ./dist",
147
147
  "esLint": "./node_modules/.bin/eslint src/**/*.js",
148
148
  "linters": "npm-run-all scssLint esLint",
149
149
  "preCommit": "node scripts/pre-commit.mjs",