Skip to content

Commit 399d667

Browse files
committed
codelessly_api 6.0.0
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VtH72Dg3rGsqwaEe62Sha4
1 parent 091b0a3 commit 399d667

2 files changed

Lines changed: 35 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1-
## Unreleased
1+
## 6.0.0
22

3-
- Breaking: `ButtonProperties.buttonColor` is nullable and defaults to `null`,
3+
### Breaking changes
4+
5+
- `ButtonProperties.buttonColor` is nullable and defaults to `null`,
46
the button type's default colour. It was black, and black was left out of
57
the JSON, so a missing key now reads as `null` and an explicit black is
68
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.
726
- `TextFieldProperties.maxLines`: `null` (unlimited lines) is written as an
827
explicit `null` and reads back as `null`; a missing key still reads as 1.
928
- `VariableData.getValue()` returns an empty text variable as `''` instead of
@@ -22,6 +41,19 @@
2241
title, message and button labels (optionally destructive), then runs
2342
`actions` on confirm or `cancelActions` on cancel.
2443

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+
2557
## 5.3.0
2658

2759
- `ShowToastAction` (`ActionType.showToast`): shows a short message at the

‎pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: codelessly_api
22
description: Flutter's layouts and widgets represented as models and JSON data. This API is used by the Codelessly Editor and CloudUI SDK to render Flutter Widgets.
3-
version: 5.3.0
3+
version: 6.0.0
44
homepage: https://codelessly.com/
55
repository: https://github.com/Codelessly/CodelesslyAPI
66

0 commit comments

Comments
 (0)