@canva/cli 1.1.0 → 1.3.0
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 +27 -0
- package/README.md +26 -0
- package/cli.js +635 -624
- package/lib/cjs/index.cjs +4 -4
- package/lib/esm/index.mjs +4 -4
- package/package.json +12 -4
- package/templates/base/package.json +9 -7
- package/templates/dam/package.json +8 -8
- package/templates/data_connector/package.json +7 -7
- package/templates/data_connector/src/api/data_sources/templates.tsx +1 -2
- package/templates/data_connector/src/components/inputs/messages.tsx +0 -4
- package/templates/data_connector/src/components/inputs/search_filter.tsx +2 -1
- package/templates/data_connector/src/context/app_context.tsx +3 -2
- package/templates/data_connector/src/routes/protected_route.tsx +2 -1
- package/templates/gen_ai/package.json +7 -7
- package/templates/gen_ai/src/components/image_grid.tsx +3 -2
- package/templates/gen_ai/src/components/tests/remaining_credit.tests.tsx +2 -2
- package/templates/hello_world/package.json +7 -7
- package/templates/hello_world/src/tests/app.tests.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.3.0 - 2025-10-01
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added a new apps migration for upgrading to App UI Kit v5 and React v19
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Updated app templates to use App UI Kit v5 and React v19
|
|
12
|
+
- Updated to `ink` v6.3.1.
|
|
13
|
+
|
|
14
|
+
## v1.2.0 - 2025-09-14
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Added `canva apps migrate` command to run code migrations for updating apps to newer patterns and APIs.
|
|
19
|
+
- Added Apps SDK v1 to v2 migration: `apps-sdk-v1-v2`.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Updated the `canva apps doctor` command to check for legacy sdk directory usage.
|
|
24
|
+
- The `canva login` command no longer requires manually copying and pasting an auth code. To use the old login flow, add the `--mode=manual` argument.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Updated the Data Connector template example to match recent changes in the Connect API spec.
|
|
29
|
+
|
|
3
30
|
## v1.1.0 - 2025-09-04
|
|
4
31
|
|
|
5
32
|
### Added
|
package/README.md
CHANGED
|
@@ -204,6 +204,11 @@ canva login
|
|
|
204
204
|
|
|
205
205
|
- **Flags**:
|
|
206
206
|
- `--china`, `--cn`: Login to canva.cn, this will use canva.cn for all subsequent commands until you log out.
|
|
207
|
+
- `--mode`: The authentication mode or flow to use when logging in.
|
|
208
|
+
|
|
209
|
+
Available modes:
|
|
210
|
+
- `"callback"`: Runs a local server to receive the auth code (default).
|
|
211
|
+
- `"manual"`: Prompts you to copy and paste the auth code manually.
|
|
207
212
|
|
|
208
213
|
#### logout
|
|
209
214
|
|
|
@@ -302,6 +307,27 @@ canva apps doctor
|
|
|
302
307
|
- `--verbose`: Show detailed diagnostic output optimized for AI agent assistance.
|
|
303
308
|
- `--check`: Specify a specific check to run.
|
|
304
309
|
|
|
310
|
+
##### migrate
|
|
311
|
+
|
|
312
|
+
Run specific code migrations to update your app to newer patterns and APIs.
|
|
313
|
+
|
|
314
|
+
```shell
|
|
315
|
+
canva apps migrate <migrationName>
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
- **Arguments**:
|
|
319
|
+
- `migrationName`: Name of the migration to run.
|
|
320
|
+
|
|
321
|
+
Available migrations:
|
|
322
|
+
- `"apps-sdk-v1-v2"`: Migrates apps using the Apps SDK v1 packages to v2.
|
|
323
|
+
|
|
324
|
+
- **Examples**:
|
|
325
|
+
|
|
326
|
+
```shell
|
|
327
|
+
canva apps migrate apps-sdk-v1-v2
|
|
328
|
+
canva apps migrate apps-sdk-v1-v2 --debug
|
|
329
|
+
```
|
|
330
|
+
|
|
305
331
|
##### config
|
|
306
332
|
|
|
307
333
|
Manage your [App Configuration](https://www.canva.dev/docs/apps/app-configuration/).
|