@telia-ace/alliance-ui 1.0.6-next.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @telia-ace/alliance-ui
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - fea9df3: Remove `<telia-button-text>` after it was removed in `@teliads/components@19`.
8
+ - cc604b0: Improvements to `<alliance-modal>`.
9
+
10
+ - Sets `max-width` to same width as [Voca Large breakpoint](https://docs.voca.teliacompany.com/?path=/story/foundations-breakpoints-showcase--showcase) (`1024px` / `64em`).
11
+ - Adds scrolling support.
12
+ ![image](https://i.imgur.com/fz2FD8R.gif)
13
+ - Uses `<dialog>` instead of `<div>` for modal window.
14
+ - Adds support for `disabled` actions.
15
+
16
+ - 508cbdc: Fix exports of types.
17
+ - f196975: Add comment to custom event types. Export ActionEvent from modal.
18
+ - cc604b0: Relative path support in CSS import vite plugin.
19
+ - fea9df3: Update dependencies to latest.
20
+ - 1740edd: Fix `<alliance-modal>` having incorrect `z-index`.
21
+ - f196975: Dispatch `'close'` action when pressing Escape in modal.
22
+ - 50e1c70: Add `<alliance-modal>` component, see the documentation for more information.
23
+ - c3765fc: BREAKING: Always use objects as detail type for events (https://github.com/telia-company/ace-alliance-sdk/issues/190).
24
+
25
+ ### Migration guide for existing apps
26
+
27
+ #### Paginator `change-page` event
28
+
29
+ ```diff
30
+ import type { ChangePageEvent } from '@telia-ace/alliance-ui/components/alliance-paginator';
31
+ let currentPage = 1;
32
+ function onChangePage (event: ChangePageEvent) {
33
+ - currentPage = event.detail;
34
+ + currentPage = event.detail.nextPage;
35
+ }
36
+ ```
37
+
38
+ #### Modal `action` event
39
+
40
+ ```diff
41
+ import type { ActionEvent } from '@telia-ace/alliance-ui/components/alliance-modal';
42
+ let modalOpen = true;
43
+ function onModalAction (event: ActionEvent) {
44
+ - modalOpen = event.detail === 'close';
45
+ + modalOpen = event.detail.action === 'close';
46
+ }
47
+ ```
48
+
49
+ - f196975: Prefix all environment variables defined by the CLI with `ALLIANCE_` to avoid conflicting with third party packages.
50
+ - f196975: Correct link to Alliance documentation in README.
51
+
3
52
  ## 1.0.6-next.5
4
53
 
5
54
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telia-ace/alliance-ui",
3
- "version": "1.0.6-next.5",
3
+ "version": "1.0.6",
4
4
  "description": "UI components used by ACE Alliance apps.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Telia Company AB",
@@ -45,8 +45,8 @@
45
45
  "lit": "^2.6.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@telia-ace/alliance-framework": "^1.0.7-next.3",
49
- "@telia-ace/alliance-utilities": "^1.0.7-next.1",
48
+ "@telia-ace/alliance-framework": "^1.0.7",
49
+ "@telia-ace/alliance-utilities": "^1.0.7",
50
50
  "@types/fs-extra": "^11.0.1",
51
51
  "fs-extra": "^11.1.0",
52
52
  "vite": "^4.1.1"