@canva/cli 1.11.0 → 1.13.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 +43 -0
- package/README.md +13 -0
- package/cli.js +593 -580
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/index.mjs +4 -4
- package/package.json +7 -2
- package/templates/base/package.json +7 -7
- package/templates/base/webpack.config.ts +0 -1
- package/templates/common/jest.config.mjs +1 -1
- package/templates/dam/backend/server.ts +8 -0
- package/templates/dam/canva-app.json +4 -0
- package/templates/dam/package.json +7 -7
- package/templates/dam/webpack.config.ts +0 -1
- package/templates/data_connector/README.md +1 -1
- package/templates/data_connector/package.json +7 -7
- package/templates/data_connector/webpack.config.ts +0 -1
- package/templates/gen_ai/backend/server.ts +17 -0
- package/templates/gen_ai/package.json +7 -7
- package/templates/gen_ai/src/api/api.ts +4 -0
- package/templates/gen_ai/webpack.config.ts +0 -1
- package/templates/hello_world/package.json +7 -7
- package/templates/hello_world/webpack.config.ts +0 -1
- package/templates/mls/README.md +81 -0
- package/templates/mls/canva-app.json +25 -0
- package/templates/mls/declarations/declarations.d.ts +29 -0
- package/templates/mls/eslint.config.mjs +14 -0
- package/templates/mls/jest.config.mjs +36 -0
- package/templates/mls/jest.setup.ts +37 -0
- package/templates/mls/package.json +117 -0
- package/templates/mls/scripts/copy_env.ts +13 -0
- package/templates/mls/scripts/ssl/ssl.ts +131 -0
- package/templates/mls/scripts/start/app_runner.ts +223 -0
- package/templates/mls/scripts/start/context.ts +171 -0
- package/templates/mls/scripts/start/start.ts +46 -0
- package/templates/mls/src/__tests__/app.tests.tsx +11 -0
- package/templates/mls/src/__tests__/office_selection_page.tests.tsx +72 -0
- package/templates/mls/src/__tests__/utils.tsx +19 -0
- package/templates/mls/src/adapter.ts +126 -0
- package/templates/mls/src/components/agent/agent_card.tsx +57 -0
- package/templates/mls/src/components/agent/agent_grid.tsx +37 -0
- package/templates/mls/src/components/agent/agent_list.tsx +17 -0
- package/templates/mls/src/components/agent/agent_search_filters.tsx +88 -0
- package/templates/mls/src/components/breadcrumb/breadcrumb.tsx +40 -0
- package/templates/mls/src/components/listing/listing_card.tsx +64 -0
- package/templates/mls/src/components/listing/listing_grid.tsx +37 -0
- package/templates/mls/src/components/listing/listing_list.tsx +21 -0
- package/templates/mls/src/components/listing/listing_search_filters.tsx +145 -0
- package/templates/mls/src/components/placeholders/placeholders.tsx +65 -0
- package/templates/mls/src/data.ts +359 -0
- package/templates/mls/src/index.tsx +4 -0
- package/templates/mls/src/intents/design_editor/app.tsx +44 -0
- package/templates/mls/src/intents/design_editor/index.tsx +25 -0
- package/templates/mls/src/pages/agent_details_page/agent_details_page.tsx +175 -0
- package/templates/mls/src/pages/list_page/agent_tab_panel.tsx +126 -0
- package/templates/mls/src/pages/list_page/list_page.tsx +67 -0
- package/templates/mls/src/pages/list_page/listing_tab_panel.tsx +135 -0
- package/templates/mls/src/pages/listing_details_page/listing_details_page.tsx +418 -0
- package/templates/mls/src/pages/loading_page/loading_page.tsx +152 -0
- package/templates/mls/src/pages/office_selection_page/office_selection_page.tsx +144 -0
- package/templates/mls/src/real_estate.type.ts +44 -0
- package/templates/mls/src/util/use_add_element.tsx +62 -0
- package/templates/mls/src/util/use_drag_element.tsx +68 -0
- package/templates/mls/styles/components.css +56 -0
- package/templates/mls/tsconfig.json +55 -0
- package/templates/mls/webpack.config.ts +253 -0
- package/templates/base/backend/routers/oauth.ts +0 -393
- package/templates/base/utils/backend/bearer_middleware/bearer_middleware.ts +0 -99
- package/templates/base/utils/backend/bearer_middleware/index.ts +0 -1
- package/templates/base/utils/backend/bearer_middleware/tests/bearer_middleware.tests.ts +0 -192
- package/templates/common/utils/backend/base_backend/create.ts +0 -104
- package/templates/gen_ai/backend/database/database.ts +0 -42
- package/templates/gen_ai/utils/backend/bearer_middleware/bearer_middleware.ts +0 -99
- package/templates/gen_ai/utils/backend/bearer_middleware/index.ts +0 -1
- /package/templates/base/{utils/backend → backend}/base_backend/create.ts +0 -0
- /package/templates/base/{utils/backend → backend}/jwt_middleware/index.ts +0 -0
- /package/templates/base/{utils/backend → backend}/jwt_middleware/jwt_middleware.ts +0 -0
- /package/templates/{common → gen_ai}/utils/backend/jwt_middleware/index.ts +0 -0
- /package/templates/{common → gen_ai}/utils/backend/jwt_middleware/jwt_middleware.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.13.0 - 2026-01-07
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added `apps link` command to connect a project directory to a Canva app by setting the required ENV variables.
|
|
8
|
+
- Update doctor command to also check for newly released `@canva/app-middleware` package.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Cleanup unnecessary `utils` alias in the generated template webpack config.
|
|
13
|
+
- Upgraded `@canva/user` to `2.1.2`.
|
|
14
|
+
- Upgraded `@canva/app-ui-kit` to `5.4.0`.
|
|
15
|
+
- Upgraded `react` and `react-dom` to `19.2.3`.
|
|
16
|
+
- Upgraded `@canva/asset` to `2.3.0`.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Fixed `canva apps list` command not loading any more than 25 apps.
|
|
21
|
+
|
|
22
|
+
## v1.12.0 - 2025-12-15
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Add Real Estate MLS app to templates
|
|
27
|
+
- Added JWT verification middleware to DAM and GenAI templates.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- It's that time of year again! Updating the CLI logo to be Christmas themed!
|
|
32
|
+
- Upgraded `@canva/design` to `v2.7.5`.
|
|
33
|
+
- Updated `react` and `react-dom` to `19.2.1`.
|
|
34
|
+
- Upgraded `@canva/app-i18n-kit` to `1.2.0`.
|
|
35
|
+
- Upgraded `@canva/app-ui-kit` to `5.3.0`.
|
|
36
|
+
- Upgraded `@canva/asset` to `2.2.2`.
|
|
37
|
+
- The `utils/backend` folder is no longer included in the output of templates that don't require a backend.
|
|
38
|
+
- Moved backend utility modules from `/utils` to `/backend`.
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Updated intent setup instructions in the data connector template README.md
|
|
43
|
+
- Fixed missing permission in the DAM template's `canva-app.json`.
|
|
44
|
+
- Cleanup orphaned auth router code and utils from `gen_ai` template.
|
|
45
|
+
|
|
3
46
|
## v1.11.0 - 2025-12-08
|
|
4
47
|
|
|
5
48
|
### Changed
|
package/README.md
CHANGED
|
@@ -247,6 +247,8 @@ canva apps create "My New App" --template="hello_world" --distribution="public"
|
|
|
247
247
|
- `"hello_world"`: Basic starting point.
|
|
248
248
|
- `"dam"`: Digital asset management integration.
|
|
249
249
|
- `"gen_ai"`: Generative AI app creation.
|
|
250
|
+
- `"data_connector"`: Data connector integration.
|
|
251
|
+
- `"mls"`: MLS (Multiple Listing Service) real estate app.
|
|
250
252
|
|
|
251
253
|
- `--distribution`: Sets the app's distribution type.
|
|
252
254
|
|
|
@@ -372,6 +374,17 @@ Report on the status and validity of the [canva-app.json](https://www.canva.dev/
|
|
|
372
374
|
canva apps config status
|
|
373
375
|
```
|
|
374
376
|
|
|
377
|
+
##### link
|
|
378
|
+
|
|
379
|
+
Link your local project to an existing Canva app by updating the .env file
|
|
380
|
+
|
|
381
|
+
```shell
|
|
382
|
+
canva apps link
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
- **Flags**:
|
|
386
|
+
- `--appId`: Specifies an App ID to select.
|
|
387
|
+
|
|
375
388
|
#### logout
|
|
376
389
|
|
|
377
390
|
Log out and revoke Canva CLI access.
|