@aurodesignsystem/auro-dialog 1.1.0-beta.2 → 2.0.0-beta.1

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/.husky/commit-msg CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
1
  npx --no-install commitlint --edit "$1"
package/.husky/pre-commit CHANGED
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
1
  ./node_modules/.bin/npm-run-all preCommit test linters postinstall
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ # [2.0.0-beta.1](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.1.0-beta.2...v2.0.0-beta.1) (2024-10-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * resolve minor color theming issues ([04aed67](https://github.com/AlaskaAirlines/auro-dialog/commit/04aed672c13d2ec1e3be8f80025e7ffc8f18e6d1))
9
+
10
+
11
+ ### Features
12
+
13
+ * add tag name as attribute when custom registered ([e749245](https://github.com/AlaskaAirlines/auro-dialog/commit/e749245d29676388bf40c32b263f32a5f1fc5a68))
14
+
15
+
16
+ ### Performance Improvements
17
+
18
+ * refactor custom component registration config ([5c1afc8](https://github.com/AlaskaAirlines/auro-dialog/commit/5c1afc8f4e8bd38114a03f0b95a0f5f81b25e763))
19
+ * update dependencies ([eea1e4f](https://github.com/AlaskaAirlines/auro-dialog/commit/eea1e4f3f84f172558fc6fba6784dbbbf81f2ef1))
20
+
21
+
22
+ ### BREAKING CHANGES
23
+
24
+ * trigger major release for color theme support #13
25
+
3
26
  # [1.1.0-beta.2](https://github.com/AlaskaAirlines/auro-dialog/compare/v1.1.0-beta.1...v1.1.0-beta.2) (2024-07-08)
4
27
 
5
28
 
package/README.md CHANGED
@@ -62,15 +62,6 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
62
62
 
63
63
  <!-- AURO-GENERATED-CONTENT:END -->
64
64
 
65
- ### CSS Custom Property fallbacks
66
-
67
- <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/cssFallbacks.md) -->
68
- [CSS custom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) are [not supported](https://auro.alaskaair.com/support/custom-properties) in older browsers. For this, fallback properties are pre-generated and included with the npm.
69
-
70
- Any update to the Auro Design Tokens will be immediately reflected with browsers that support CSS custom properties, legacy browsers will require updated components with pre-generated fallback properties.
71
-
72
- <!-- AURO-GENERATED-CONTENT:END -->
73
-
74
65
  ### Define dependency in project component
75
66
 
76
67
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/componentImportDescription.md) -->
@@ -126,9 +117,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
126
117
  <!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/usage/bundleUseModBrowsers.md) -->
127
118
 
128
119
  ```html
129
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.3.0/dist/tokens/CSSCustomProperties.css" />
130
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.0.8/dist/bundled/essentials.css" />
131
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@1.1.0-beta.2/dist/auro-dialog__bundled.js" type="module"></script>
120
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.10.0/dist/tokens/CSSCustomProperties.css" />
121
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.1/dist/bundled/essentials.css" />
122
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-dialog@2.0.0-beta.1/dist/auro-dialog__bundled.js" type="module"></script>
132
123
  ```
133
124
 
134
125
  <!-- AURO-GENERATED-CONTENT:END -->
package/demo/api.md CHANGED
@@ -730,11 +730,10 @@ The component may be restyled using the following code sample and changing the v
730
730
  @import "./../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables";
731
731
 
732
732
  :host {
733
- --ds-auro-dialog-background-color: var(--ds-color-background-primary-100-default, #{$ds-color-background-primary-100-default});
734
- --ds-auro-dialog-boxshadow-color-one: rgb(0 0 0 / 0.12);
735
- --ds-auro-dialog-boxshadow-color-two: rgb(0 0 0 / 0.1);
736
- --ds-auro-dialog-overlay-modal-background-color: rgb(0 0 0 / 0.5);
737
- --ds-auro-dialog-overlay-open-background-color: rgb(0 0 0 / 0.2);
733
+ --ds-auro-dialog-container-color: var(--ds-color-container-primary-default, #{$ds-color-container-primary-default});
734
+ --ds-auro-dialog-boxshadow-color: var(--ds-elevation-300, #{$ds-elevation-300});
735
+ --ds-auro-dialog-overlay-modal-background-color: var(--ds-color-background-scrimmed-default, #{$ds-color-background-scrimmed-default});
736
+ --ds-auro-dialog-overlay-open-background-color: var(--ds-color-background-scrimmed-default, #{$ds-color-background-scrimmed-default});
738
737
  --ds-auro-dialog-text-color: var(--ds-color-text-primary-default, #{$ds-color-text-primary-default});
739
738
  }
740
739
  ```
package/demo/index.md CHANGED
@@ -137,8 +137,10 @@ There are two important parts of every Auro component. The <a href="https://deve
137
137
  To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our `registerComponent(name)` method and pass in a unique name.
138
138
 
139
139
  ```js
140
- import './node_modules/@aurodesignsystem/auro-dialog';
141
- registerComponent('custom-dialog');
140
+ import { AuroDialog } from './src/auro-dialog.js';
141
+ import * as RuntimeUtils from '@aurodesignsystem/auro-library/scripts/utils/runtimeUtils.mjs';
142
+
143
+ RuntimeUtils.default.prototype.registerComponent('custom-dialog', AuroDialog);
142
144
  ```
143
145
 
144
146
  This will create a new custom element that you can use in your HTML that will function identically to the `auro-dialog` element.