@canva/cli 1.0.1 → 1.1.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 +41 -0
- package/README.md +1 -1
- package/cli.js +473 -463
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/index.mjs +3 -3
- package/lib/index.d.ts +56 -0
- package/package.json +5 -2
- package/templates/base/package.json +9 -9
- package/templates/base/scripts/start/app_runner.ts +1 -1
- package/templates/common/README.md +2 -2
- package/templates/common/jest.setup.ts +17 -4
- package/templates/dam/package.json +10 -10
- package/templates/dam/scripts/start/app_runner.ts +1 -1
- package/templates/data_connector/README.md +1 -1
- package/templates/data_connector/package.json +11 -11
- package/templates/data_connector/scripts/start/app_runner.ts +1 -1
- package/templates/gen_ai/package.json +12 -12
- package/templates/gen_ai/scripts/start/app_runner.ts +1 -1
- package/templates/hello_world/package.json +10 -10
- package/templates/hello_world/scripts/start/app_runner.ts +1 -1
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"react-intl": "6.8.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@canva/app-eslint-plugin": "^1.0.0-beta.
|
|
36
|
+
"@canva/app-eslint-plugin": "^1.0.0-beta.5",
|
|
37
37
|
"@canva/cli": ">= 0.0.1-beta.13",
|
|
38
38
|
"@formatjs/cli": "6.7.2",
|
|
39
39
|
"@formatjs/ts-transformer": "3.14.0",
|
|
40
|
-
"@ngrok/ngrok": "1.5.
|
|
40
|
+
"@ngrok/ngrok": "1.5.2",
|
|
41
41
|
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
42
42
|
"@svgr/webpack": "8.1.0",
|
|
43
43
|
"@testing-library/react": "16.3.0",
|
|
44
44
|
"@types/cors": "2.8.19",
|
|
45
45
|
"@types/debug": "4.1.12",
|
|
46
46
|
"@types/express": "4.17.21",
|
|
47
|
-
"@types/express-serve-static-core": "5.0.
|
|
47
|
+
"@types/express-serve-static-core": "5.0.7",
|
|
48
48
|
"@types/jest": "29.5.14",
|
|
49
49
|
"@types/jsonwebtoken": "9.0.10",
|
|
50
50
|
"@types/node": "20.19.2",
|
|
51
|
-
"@types/node-fetch": "2.6.
|
|
52
|
-
"@types/node-forge": "1.3.
|
|
51
|
+
"@types/node-fetch": "2.6.13",
|
|
52
|
+
"@types/node-forge": "1.3.14",
|
|
53
53
|
"@types/nodemon": "1.19.6",
|
|
54
54
|
"@types/prompts": "2.4.9",
|
|
55
55
|
"@types/react": "18.3.12",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"cli-table3": "0.6.5",
|
|
60
60
|
"css-loader": "7.1.2",
|
|
61
61
|
"css-modules-typescript-loader": "4.0.1",
|
|
62
|
-
"cssnano": "7.
|
|
62
|
+
"cssnano": "7.1.1",
|
|
63
63
|
"debug": "4.4.1",
|
|
64
64
|
"dotenv": "16.6.0",
|
|
65
65
|
"exponential-backoff": "3.1.2",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"jest-environment-jsdom": "29.7.0",
|
|
71
71
|
"jsonwebtoken": "9.0.2",
|
|
72
72
|
"jwks-rsa": "3.2.0",
|
|
73
|
-
"mini-css-extract-plugin": "2.9.
|
|
73
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
74
74
|
"node-fetch": "3.3.2",
|
|
75
75
|
"node-forge": "1.3.1",
|
|
76
76
|
"nodemon": "3.0.1",
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"style-loader": "4.0.0",
|
|
83
83
|
"terser-webpack-plugin": "5.3.14",
|
|
84
84
|
"tree-kill": "1.2.2",
|
|
85
|
-
"ts-jest": "29.4.
|
|
86
|
-
"ts-loader": "9.5.
|
|
85
|
+
"ts-jest": "29.4.1",
|
|
86
|
+
"ts-loader": "9.5.4",
|
|
87
87
|
"ts-node": "10.9.2",
|
|
88
|
-
"typescript": "5.
|
|
88
|
+
"typescript": "5.9.2",
|
|
89
89
|
"url-loader": "4.1.1",
|
|
90
90
|
"webpack": "5.99.9",
|
|
91
91
|
"webpack-cli": "6.0.1",
|
|
@@ -4,7 +4,7 @@ import * as ngrok from "@ngrok/ngrok";
|
|
|
4
4
|
import * as chalk from "chalk";
|
|
5
5
|
import * as Table from "cli-table3";
|
|
6
6
|
import * as nodemon from "nodemon";
|
|
7
|
-
import
|
|
7
|
+
import open from "open";
|
|
8
8
|
import * as webpack from "webpack";
|
|
9
9
|
import * as WebpackDevServer from "webpack-dev-server";
|
|
10
10
|
import { buildConfig } from "../../webpack.config";
|
|
@@ -45,7 +45,7 @@ To run it and authenticate with the Canva Connect API via OAuth you must first c
|
|
|
45
45
|
|
|
46
46
|
- If not already handled by the Canva CLI, you need to create an app.
|
|
47
47
|
Go to [Your Apps](https://www.canva.com/developers/apps) and create an app.
|
|
48
|
-
- On the **
|
|
48
|
+
- On the **Compatibility** page, enable the `Data Connector` intent.
|
|
49
49
|
|
|
50
50
|
### 1. Set up a Connect API Integration
|
|
51
51
|
|
|
@@ -31,24 +31,24 @@
|
|
|
31
31
|
"react-dom": "18.3.1",
|
|
32
32
|
"react-error-boundary": "6.0.0",
|
|
33
33
|
"react-intl": "6.8.7",
|
|
34
|
-
"react-router-dom": "7.
|
|
34
|
+
"react-router-dom": "7.8.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@canva/app-eslint-plugin": "^1.0.0-beta.
|
|
37
|
+
"@canva/app-eslint-plugin": "^1.0.0-beta.5",
|
|
38
38
|
"@canva/cli": ">= 0.0.1-beta.13",
|
|
39
39
|
"@formatjs/cli": "6.7.2",
|
|
40
40
|
"@formatjs/ts-transformer": "3.14.0",
|
|
41
|
-
"@ngrok/ngrok": "1.5.
|
|
41
|
+
"@ngrok/ngrok": "1.5.2",
|
|
42
42
|
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
43
43
|
"@svgr/webpack": "8.1.0",
|
|
44
44
|
"@testing-library/react": "16.3.0",
|
|
45
45
|
"@types/express": "4.17.21",
|
|
46
|
-
"@types/express-serve-static-core": "5.0.
|
|
46
|
+
"@types/express-serve-static-core": "5.0.7",
|
|
47
47
|
"@types/jest": "29.5.14",
|
|
48
48
|
"@types/jsonwebtoken": "9.0.10",
|
|
49
49
|
"@types/node": "20.19.2",
|
|
50
|
-
"@types/node-fetch": "2.6.
|
|
51
|
-
"@types/node-forge": "1.3.
|
|
50
|
+
"@types/node-fetch": "2.6.13",
|
|
51
|
+
"@types/node-forge": "1.3.14",
|
|
52
52
|
"@types/nodemon": "1.19.6",
|
|
53
53
|
"@types/react": "18.3.12",
|
|
54
54
|
"@types/react-dom": "18.3.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"cli-table3": "0.6.5",
|
|
58
58
|
"css-loader": "7.1.2",
|
|
59
59
|
"css-modules-typescript-loader": "4.0.1",
|
|
60
|
-
"cssnano": "7.
|
|
60
|
+
"cssnano": "7.1.1",
|
|
61
61
|
"debug": "4.4.1",
|
|
62
62
|
"dotenv": "16.6.0",
|
|
63
63
|
"express": "4.21.2",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"jest-environment-jsdom": "29.7.0",
|
|
68
68
|
"jsonwebtoken": "9.0.2",
|
|
69
69
|
"jwks-rsa": "3.2.0",
|
|
70
|
-
"mini-css-extract-plugin": "2.9.
|
|
70
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
71
71
|
"node-fetch": "3.3.2",
|
|
72
72
|
"node-forge": "1.3.1",
|
|
73
73
|
"nodemon": "3.0.1",
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
"style-loader": "4.0.0",
|
|
79
79
|
"terser-webpack-plugin": "5.3.14",
|
|
80
80
|
"tree-kill": "1.2.2",
|
|
81
|
-
"ts-jest": "29.4.
|
|
82
|
-
"ts-loader": "9.5.
|
|
81
|
+
"ts-jest": "29.4.1",
|
|
82
|
+
"ts-loader": "9.5.4",
|
|
83
83
|
"ts-node": "10.9.2",
|
|
84
|
-
"typescript": "5.
|
|
84
|
+
"typescript": "5.9.2",
|
|
85
85
|
"url-loader": "4.1.1",
|
|
86
86
|
"webpack": "5.99.9",
|
|
87
87
|
"webpack-cli": "6.0.1",
|
|
@@ -4,7 +4,7 @@ import * as ngrok from "@ngrok/ngrok";
|
|
|
4
4
|
import * as chalk from "chalk";
|
|
5
5
|
import * as Table from "cli-table3";
|
|
6
6
|
import * as nodemon from "nodemon";
|
|
7
|
-
import
|
|
7
|
+
import open from "open";
|
|
8
8
|
import * as webpack from "webpack";
|
|
9
9
|
import * as WebpackDevServer from "webpack-dev-server";
|
|
10
10
|
import { buildConfig } from "../../webpack.config";
|
|
@@ -27,31 +27,31 @@
|
|
|
27
27
|
"@canva/user": "^2.1.1",
|
|
28
28
|
"cookie-parser": "1.4.7",
|
|
29
29
|
"cors": "2.8.5",
|
|
30
|
-
"html-react-parser": "5.2.
|
|
30
|
+
"html-react-parser": "5.2.6",
|
|
31
31
|
"obscenity": "0.4.4",
|
|
32
32
|
"react": "18.3.1",
|
|
33
33
|
"react-dom": "18.3.1",
|
|
34
34
|
"react-error-boundary": "6.0.0",
|
|
35
35
|
"react-intl": "6.8.7",
|
|
36
|
-
"react-router-dom": "7.
|
|
36
|
+
"react-router-dom": "7.8.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@canva/app-eslint-plugin": "^1.0.0-beta.
|
|
39
|
+
"@canva/app-eslint-plugin": "^1.0.0-beta.5",
|
|
40
40
|
"@canva/cli": ">= 0.0.1-beta.13",
|
|
41
41
|
"@formatjs/cli": "6.7.2",
|
|
42
42
|
"@formatjs/ts-transformer": "3.14.0",
|
|
43
|
-
"@ngrok/ngrok": "1.5.
|
|
43
|
+
"@ngrok/ngrok": "1.5.2",
|
|
44
44
|
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
45
45
|
"@svgr/webpack": "8.1.0",
|
|
46
46
|
"@testing-library/react": "16.3.0",
|
|
47
47
|
"@types/debug": "4.1.12",
|
|
48
48
|
"@types/express": "4.17.21",
|
|
49
|
-
"@types/express-serve-static-core": "5.0.
|
|
49
|
+
"@types/express-serve-static-core": "5.0.7",
|
|
50
50
|
"@types/jest": "29.5.14",
|
|
51
51
|
"@types/jsonwebtoken": "9.0.10",
|
|
52
52
|
"@types/node": "20.19.2",
|
|
53
|
-
"@types/node-fetch": "2.6.
|
|
54
|
-
"@types/node-forge": "1.3.
|
|
53
|
+
"@types/node-fetch": "2.6.13",
|
|
54
|
+
"@types/node-forge": "1.3.14",
|
|
55
55
|
"@types/nodemon": "1.19.6",
|
|
56
56
|
"@types/prompts": "2.4.9",
|
|
57
57
|
"@types/react": "18.3.12",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"cli-table3": "0.6.5",
|
|
64
64
|
"css-loader": "7.1.2",
|
|
65
65
|
"css-modules-typescript-loader": "4.0.1",
|
|
66
|
-
"cssnano": "7.
|
|
66
|
+
"cssnano": "7.1.1",
|
|
67
67
|
"debug": "4.4.1",
|
|
68
68
|
"dotenv": "16.6.0",
|
|
69
69
|
"exponential-backoff": "3.1.2",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"jest-environment-jsdom": "29.7.0",
|
|
75
75
|
"jsonwebtoken": "9.0.2",
|
|
76
76
|
"jwks-rsa": "3.2.0",
|
|
77
|
-
"mini-css-extract-plugin": "2.9.
|
|
77
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
78
78
|
"node-fetch": "3.3.2",
|
|
79
79
|
"node-forge": "1.3.1",
|
|
80
80
|
"nodemon": "3.0.1",
|
|
@@ -86,10 +86,10 @@
|
|
|
86
86
|
"style-loader": "4.0.0",
|
|
87
87
|
"terser-webpack-plugin": "5.3.14",
|
|
88
88
|
"tree-kill": "1.2.2",
|
|
89
|
-
"ts-jest": "29.4.
|
|
90
|
-
"ts-loader": "9.5.
|
|
89
|
+
"ts-jest": "29.4.1",
|
|
90
|
+
"ts-loader": "9.5.4",
|
|
91
91
|
"ts-node": "10.9.2",
|
|
92
|
-
"typescript": "5.
|
|
92
|
+
"typescript": "5.9.2",
|
|
93
93
|
"url-loader": "4.1.1",
|
|
94
94
|
"webpack": "5.99.9",
|
|
95
95
|
"webpack-cli": "6.0.1",
|
|
@@ -4,7 +4,7 @@ import * as ngrok from "@ngrok/ngrok";
|
|
|
4
4
|
import * as chalk from "chalk";
|
|
5
5
|
import * as Table from "cli-table3";
|
|
6
6
|
import * as nodemon from "nodemon";
|
|
7
|
-
import
|
|
7
|
+
import open from "open";
|
|
8
8
|
import * as webpack from "webpack";
|
|
9
9
|
import * as WebpackDevServer from "webpack-dev-server";
|
|
10
10
|
import { buildConfig } from "../../webpack.config";
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"react-intl": "6.8.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@canva/app-eslint-plugin": "^1.0.0-beta.
|
|
34
|
+
"@canva/app-eslint-plugin": "^1.0.0-beta.5",
|
|
35
35
|
"@canva/cli": ">= 0.0.1-beta.13",
|
|
36
36
|
"@formatjs/cli": "6.7.2",
|
|
37
37
|
"@formatjs/ts-transformer": "3.14.0",
|
|
38
|
-
"@ngrok/ngrok": "1.5.
|
|
38
|
+
"@ngrok/ngrok": "1.5.2",
|
|
39
39
|
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
40
40
|
"@svgr/webpack": "8.1.0",
|
|
41
41
|
"@testing-library/react": "16.3.0",
|
|
42
42
|
"@types/express": "4.17.21",
|
|
43
|
-
"@types/express-serve-static-core": "5.0.
|
|
43
|
+
"@types/express-serve-static-core": "5.0.7",
|
|
44
44
|
"@types/jest": "29.5.14",
|
|
45
45
|
"@types/jsonwebtoken": "9.0.10",
|
|
46
46
|
"@types/node": "20.19.2",
|
|
47
|
-
"@types/node-fetch": "2.6.
|
|
48
|
-
"@types/node-forge": "1.3.
|
|
47
|
+
"@types/node-fetch": "2.6.13",
|
|
48
|
+
"@types/node-forge": "1.3.14",
|
|
49
49
|
"@types/nodemon": "1.19.6",
|
|
50
50
|
"@types/react": "18.3.12",
|
|
51
51
|
"@types/react-dom": "18.3.1",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"cli-table3": "0.6.5",
|
|
55
55
|
"css-loader": "7.1.2",
|
|
56
56
|
"css-modules-typescript-loader": "4.0.1",
|
|
57
|
-
"cssnano": "7.
|
|
57
|
+
"cssnano": "7.1.1",
|
|
58
58
|
"debug": "4.4.1",
|
|
59
59
|
"dotenv": "16.6.0",
|
|
60
60
|
"express": "4.21.2",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"jest-environment-jsdom": "29.7.0",
|
|
65
65
|
"jsonwebtoken": "9.0.2",
|
|
66
66
|
"jwks-rsa": "3.2.0",
|
|
67
|
-
"mini-css-extract-plugin": "2.9.
|
|
67
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
68
68
|
"node-fetch": "3.3.2",
|
|
69
69
|
"node-forge": "1.3.1",
|
|
70
70
|
"nodemon": "3.0.1",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"style-loader": "4.0.0",
|
|
76
76
|
"terser-webpack-plugin": "5.3.14",
|
|
77
77
|
"tree-kill": "1.2.2",
|
|
78
|
-
"ts-jest": "29.4.
|
|
79
|
-
"ts-loader": "9.5.
|
|
78
|
+
"ts-jest": "29.4.1",
|
|
79
|
+
"ts-loader": "9.5.4",
|
|
80
80
|
"ts-node": "10.9.2",
|
|
81
|
-
"typescript": "5.
|
|
81
|
+
"typescript": "5.9.2",
|
|
82
82
|
"url-loader": "4.1.1",
|
|
83
83
|
"webpack": "5.99.9",
|
|
84
84
|
"webpack-cli": "6.0.1",
|
|
@@ -4,7 +4,7 @@ import * as ngrok from "@ngrok/ngrok";
|
|
|
4
4
|
import * as chalk from "chalk";
|
|
5
5
|
import * as Table from "cli-table3";
|
|
6
6
|
import * as nodemon from "nodemon";
|
|
7
|
-
import
|
|
7
|
+
import open from "open";
|
|
8
8
|
import * as webpack from "webpack";
|
|
9
9
|
import * as WebpackDevServer from "webpack-dev-server";
|
|
10
10
|
import { buildConfig } from "../../webpack.config";
|