|
1 | | -## Unreleased |
| 1 | +## 6.0.0 |
2 | 2 |
|
3 | | -- Breaking: `ButtonProperties.buttonColor` is nullable and defaults to `null`, |
| 3 | +### Breaking changes |
| 4 | + |
| 5 | +- `ButtonProperties.buttonColor` is nullable and defaults to `null`, |
4 | 6 | the button type's default colour. It was black, and black was left out of |
5 | 7 | the JSON, so a missing key now reads as `null` and an explicit black is |
6 | 8 | written and read back as black. |
| 9 | +- `ShowToastAction.backgroundColor` and `textColor` are nullable and default |
| 10 | + to `null` (the app's theme). Saved toasts, which omitted the old defaults, |
| 11 | + now take the theme's colours. `copyWith` gains `clearBackgroundColor` and |
| 12 | + `clearTextColor`. |
| 13 | + |
| 14 | +### New |
| 15 | + |
| 16 | +- Responsive variances: `ScreenBreakpoint` (mobile, tablet, desktop; widths |
| 17 | + 600 and 1024, design widths 390/834/1440), an optional `Variant.breakpoint` |
| 18 | + (omitted from JSON when unset), and `VarianceNode.isResponsive`, |
| 19 | + `variantForBreakpoint` and `variantForWidth`. |
| 20 | +- `ShowToastAction`: a button (`actionLabel` and `actions`, e.g. Undo), a |
| 21 | + `ToastStyle` and a `ToastPosition` (top or bottom). |
| 22 | +- `ConfirmAction` can show a canvas as its dialog (`dialogId`, `params`), |
| 23 | + which answers through a Navigate back action whose params hold |
| 24 | + `confirmed`, and has optional colour, radius and barrier overrides for the |
| 25 | + built-in dialog. |
7 | 26 | - `TextFieldProperties.maxLines`: `null` (unlimited lines) is written as an |
8 | 27 | explicit `null` and reads back as `null`; a missing key still reads as 1. |
9 | 28 | - `VariableData.getValue()` returns an empty text variable as `''` instead of |
|
22 | 41 | title, message and button labels (optionally destructive), then runs |
23 | 42 | `actions` on confirm or `cancelActions` on cancel. |
24 | 43 |
|
| 44 | +### Fixes |
| 45 | + |
| 46 | +- Web view nodes always write their `webviewType`, `mapMode` and |
| 47 | + `embedType` discriminators, so they read back from JSON. |
| 48 | +- Empty action lists, maps and sets are left out of JSON (conditional, |
| 49 | + for-each and cloud files actions, API call parameters, call function |
| 50 | + params, else conditions, condition groups, variable extras, text field |
| 51 | + autofill hints and variance properties); 5.2.0 and 5.3.0 read the shorter |
| 52 | + JSON back to equal objects. |
| 53 | +- `NodeProcessor.updateNode` rewrites edge pins from the node's box only for |
| 54 | + freeform children with no alignment (`NodeProcessor.edgePinsPosition`); |
| 55 | + children of rows and columns and aligned children keep their pins. |
| 56 | + |
25 | 57 | ## 5.3.0 |
26 | 58 |
|
27 | 59 | - `ShowToastAction` (`ActionType.showToast`): shows a short message at the |
|
0 commit comments