@canva/cli 0.0.1-beta.6 → 0.0.1-beta.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canva/cli",
3
- "version": "0.0.1-beta.6",
3
+ "version": "0.0.1-beta.7",
4
4
  "description": "The official Canva CLI.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Canva Pty Ltd.",
@@ -6,9 +6,9 @@
6
6
  "license": "SEE LICENSE IN LICENSE.md",
7
7
  "author": "Canva Pty Ltd.",
8
8
  "dependencies": {
9
- "@canva/app-ui-kit": "^4.2.0",
9
+ "@canva/app-ui-kit": "^4.3.0",
10
10
  "@canva/asset": "^2.0.0",
11
- "@canva/design": "^2.1.0",
11
+ "@canva/design": "^2.2.1",
12
12
  "@canva/error": "^2.0.0",
13
13
  "@canva/platform": "^2.0.0",
14
14
  "@canva/user": "^2.0.0",
@@ -22,14 +22,14 @@
22
22
  "@types/debug": "4.1.12",
23
23
  "@types/express": "4.17.21",
24
24
  "@types/express-serve-static-core": "4.19.6",
25
- "@types/jest": "29.5.13",
25
+ "@types/jest": "29.5.14",
26
26
  "@types/jsonwebtoken": "9.0.7",
27
27
  "@types/node": "20.10.0",
28
28
  "@types/node-fetch": "2.6.11",
29
29
  "@types/node-forge": "1.3.11",
30
30
  "@types/nodemon": "1.19.6",
31
31
  "@types/prompts": "2.4.9",
32
- "@types/react": "18.3.11",
32
+ "@types/react": "18.3.12",
33
33
  "@types/react-dom": "18.3.1",
34
34
  "@types/webpack-env": "1.18.5",
35
35
  "chalk": "4.1.2",
@@ -45,7 +45,7 @@
45
45
  "jest": "29.7.0",
46
46
  "jsonwebtoken": "9.0.2",
47
47
  "jwks-rsa": "3.1.0",
48
- "mini-css-extract-plugin": "2.9.1",
48
+ "mini-css-extract-plugin": "2.9.2",
49
49
  "node-fetch": "3.3.2",
50
50
  "node-forge": "1.3.1",
51
51
  "nodemon": "3.0.1",
@@ -59,7 +59,7 @@
59
59
  "ts-node": "10.9.2",
60
60
  "typescript": "5.5.4",
61
61
  "url-loader": "4.1.1",
62
- "webpack": "5.95.0",
62
+ "webpack": "5.96.1",
63
63
  "webpack-cli": "5.1.4",
64
64
  "webpack-dev-server": "5.1.0",
65
65
  "yargs": "17.7.2"
@@ -3,7 +3,7 @@
3
3
  "name": "digital_asset_management",
4
4
  "description": "An example app leveraging @canva/app-components to develop a digital asset management (DAM) app.",
5
5
  "scripts": {
6
- "extract": "formatjs extract src/**/*.{ts,tsx} --out-file dist/messages_en.json",
6
+ "extract": "formatjs extract \"src/**/*.{ts,tsx}\" --out-file dist/messages_en.json",
7
7
  "build": "webpack --config webpack.config.cjs --mode production && npm run extract",
8
8
  "format": "prettier '**/*.{css,ts,tsx}' --no-config --write",
9
9
  "format:check": "prettier '**/*.{css,ts,tsx}' --no-config --check --ignore-path",
@@ -18,41 +18,41 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@canva/app-components": "^1.0.0-beta.29",
21
- "@canva/app-i18n-kit": "^1.0.0",
22
- "@canva/app-ui-kit": "^4.2.0",
21
+ "@canva/app-i18n-kit": "^1.0.1",
22
+ "@canva/app-ui-kit": "^4.3.0",
23
23
  "@canva/asset": "^2.0.0",
24
- "@canva/design": "^2.1.0",
24
+ "@canva/design": "^2.2.1",
25
25
  "@canva/platform": "^2.0.0",
26
26
  "@canva/user": "^2.0.0",
27
27
  "cookie-parser": "1.4.7",
28
28
  "cors": "2.8.5",
29
29
  "react": "18.3.1",
30
30
  "react-dom": "18.3.1",
31
- "react-intl": "6.6.8"
31
+ "react-intl": "6.8.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@eslint/eslintrc": "3.1.0",
35
- "@eslint/js": "9.12.0",
36
- "@formatjs/cli": "6.2.12",
37
- "@formatjs/ts-transformer": "3.13.14",
35
+ "@eslint/js": "9.14.0",
36
+ "@formatjs/cli": "6.3.8",
37
+ "@formatjs/ts-transformer": "3.13.22",
38
38
  "@ngrok/ngrok": "1.4.1",
39
39
  "@svgr/webpack": "8.1.0",
40
40
  "@types/cors": "2.8.17",
41
41
  "@types/debug": "4.1.12",
42
42
  "@types/express": "4.17.21",
43
43
  "@types/express-serve-static-core": "4.19.6",
44
- "@types/jest": "29.5.13",
44
+ "@types/jest": "29.5.14",
45
45
  "@types/jsonwebtoken": "9.0.7",
46
46
  "@types/node": "20.10.0",
47
47
  "@types/node-fetch": "2.6.11",
48
48
  "@types/node-forge": "1.3.11",
49
49
  "@types/nodemon": "1.19.6",
50
50
  "@types/prompts": "2.4.9",
51
- "@types/react": "18.3.11",
51
+ "@types/react": "18.3.12",
52
52
  "@types/react-dom": "18.3.1",
53
53
  "@types/webpack-env": "1.18.5",
54
- "@typescript-eslint/eslint-plugin": "8.9.0",
55
- "@typescript-eslint/parser": "8.9.0",
54
+ "@typescript-eslint/eslint-plugin": "8.13.0",
55
+ "@typescript-eslint/parser": "8.13.0",
56
56
  "chalk": "4.1.2",
57
57
  "cli-table3": "0.6.5",
58
58
  "css-loader": "7.1.2",
@@ -60,17 +60,17 @@
60
60
  "cssnano": "7.0.6",
61
61
  "debug": "4.3.7",
62
62
  "dotenv": "16.4.5",
63
- "eslint": "9.12.0",
64
- "eslint-plugin-formatjs": "5.0.0",
65
- "eslint-plugin-jest": "28.8.3",
66
- "eslint-plugin-react": "7.37.1",
63
+ "eslint": "9.14.0",
64
+ "eslint-plugin-formatjs": "5.2.2",
65
+ "eslint-plugin-jest": "28.9.0",
66
+ "eslint-plugin-react": "7.37.2",
67
67
  "exponential-backoff": "3.1.1",
68
68
  "express": "4.21.1",
69
69
  "express-basic-auth": "1.2.1",
70
70
  "jest": "29.7.0",
71
71
  "jsonwebtoken": "9.0.2",
72
72
  "jwks-rsa": "3.1.0",
73
- "mini-css-extract-plugin": "2.9.1",
73
+ "mini-css-extract-plugin": "2.9.2",
74
74
  "node-fetch": "3.3.2",
75
75
  "node-forge": "1.3.1",
76
76
  "nodemon": "3.0.1",
@@ -84,7 +84,7 @@
84
84
  "ts-node": "10.9.2",
85
85
  "typescript": "5.5.4",
86
86
  "url-loader": "4.1.1",
87
- "webpack": "5.95.0",
87
+ "webpack": "5.96.1",
88
88
  "webpack-cli": "5.1.4",
89
89
  "webpack-dev-server": "5.1.0",
90
90
  "yargs": "17.7.2"
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import * as fs from "fs";
3
+ import * as path from "path";
4
+
5
+ const envPath = path.resolve(__dirname, "..", ".env");
6
+ const templatePath = path.resolve(__dirname, "..", ".env.template");
7
+
8
+ if (!fs.existsSync(envPath)) {
9
+ fs.copyFileSync(templatePath, envPath);
10
+ }
@@ -3,7 +3,7 @@
3
3
  "name": "gen_ai",
4
4
  "description": "An example app demonstrating common patterns that you might use in a generative AI app.",
5
5
  "scripts": {
6
- "extract": "formatjs extract src/**/*.{ts,tsx} --out-file dist/messages_en.json",
6
+ "extract": "formatjs extract \"src/**/*.{ts,tsx}\" --out-file dist/messages_en.json",
7
7
  "build": "webpack --config webpack.config.cjs --mode production && npm run extract",
8
8
  "format": "prettier '**/*.{css,ts,tsx}' --no-config --write",
9
9
  "format:check": "prettier '**/*.{css,ts,tsx}' --no-config --check --ignore-path",
@@ -17,10 +17,10 @@
17
17
  "postinstall": "ts-node ./scripts/copy-env.ts"
18
18
  },
19
19
  "dependencies": {
20
- "@canva/app-i18n-kit": "^1.0.0",
21
- "@canva/app-ui-kit": "^4.2.0",
20
+ "@canva/app-i18n-kit": "^1.0.1",
21
+ "@canva/app-ui-kit": "^4.3.0",
22
22
  "@canva/asset": "^2.0.0",
23
- "@canva/design": "^2.1.0",
23
+ "@canva/design": "^2.2.1",
24
24
  "@canva/platform": "^2.0.0",
25
25
  "@canva/user": "^2.0.0",
26
26
  "cookie-parser": "1.4.7",
@@ -29,32 +29,32 @@
29
29
  "obscenity": "0.4.0",
30
30
  "react": "18.3.1",
31
31
  "react-dom": "18.3.1",
32
- "react-error-boundary": "4.0.13",
33
- "react-intl": "6.6.8",
34
- "react-router-dom": "6.27.0"
32
+ "react-error-boundary": "4.1.2",
33
+ "react-intl": "6.8.7",
34
+ "react-router-dom": "6.28.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@eslint/eslintrc": "3.1.0",
38
- "@eslint/js": "9.12.0",
39
- "@formatjs/cli": "6.2.12",
40
- "@formatjs/ts-transformer": "3.13.14",
38
+ "@eslint/js": "9.14.0",
39
+ "@formatjs/cli": "6.3.8",
40
+ "@formatjs/ts-transformer": "3.13.22",
41
41
  "@ngrok/ngrok": "1.4.1",
42
42
  "@svgr/webpack": "8.1.0",
43
43
  "@types/debug": "4.1.12",
44
44
  "@types/express": "4.17.21",
45
45
  "@types/express-serve-static-core": "4.19.6",
46
- "@types/jest": "29.5.13",
46
+ "@types/jest": "29.5.14",
47
47
  "@types/jsonwebtoken": "9.0.7",
48
48
  "@types/node": "20.10.0",
49
49
  "@types/node-fetch": "2.6.11",
50
50
  "@types/node-forge": "1.3.11",
51
51
  "@types/nodemon": "1.19.6",
52
52
  "@types/prompts": "2.4.9",
53
- "@types/react": "18.3.11",
53
+ "@types/react": "18.3.12",
54
54
  "@types/react-dom": "18.3.1",
55
55
  "@types/webpack-env": "1.18.5",
56
- "@typescript-eslint/eslint-plugin": "8.9.0",
57
- "@typescript-eslint/parser": "8.9.0",
56
+ "@typescript-eslint/eslint-plugin": "8.13.0",
57
+ "@typescript-eslint/parser": "8.13.0",
58
58
  "chalk": "4.1.2",
59
59
  "cli-table3": "0.6.5",
60
60
  "css-loader": "7.1.2",
@@ -62,17 +62,17 @@
62
62
  "cssnano": "7.0.6",
63
63
  "debug": "4.3.7",
64
64
  "dotenv": "16.4.5",
65
- "eslint": "9.12.0",
66
- "eslint-plugin-formatjs": "5.0.0",
67
- "eslint-plugin-jest": "28.8.3",
68
- "eslint-plugin-react": "7.37.1",
65
+ "eslint": "9.14.0",
66
+ "eslint-plugin-formatjs": "5.2.2",
67
+ "eslint-plugin-jest": "28.9.0",
68
+ "eslint-plugin-react": "7.37.2",
69
69
  "exponential-backoff": "3.1.1",
70
70
  "express": "4.21.1",
71
71
  "express-basic-auth": "1.2.1",
72
72
  "jest": "29.7.0",
73
73
  "jsonwebtoken": "9.0.2",
74
74
  "jwks-rsa": "3.1.0",
75
- "mini-css-extract-plugin": "2.9.1",
75
+ "mini-css-extract-plugin": "2.9.2",
76
76
  "node-fetch": "3.3.2",
77
77
  "node-forge": "1.3.1",
78
78
  "nodemon": "3.0.1",
@@ -86,7 +86,7 @@
86
86
  "ts-node": "10.9.2",
87
87
  "typescript": "5.5.4",
88
88
  "url-loader": "4.1.1",
89
- "webpack": "5.95.0",
89
+ "webpack": "5.96.1",
90
90
  "webpack-cli": "5.1.4",
91
91
  "webpack-dev-server": "5.1.0",
92
92
  "yargs": "17.7.2"
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import * as fs from "fs";
3
+ import * as path from "path";
4
+
5
+ const envPath = path.resolve(__dirname, "..", ".env");
6
+ const templatePath = path.resolve(__dirname, "..", ".env.template");
7
+
8
+ if (!fs.existsSync(envPath)) {
9
+ fs.copyFileSync(templatePath, envPath);
10
+ }
@@ -3,7 +3,7 @@
3
3
  "name": "empty-template",
4
4
  "description": "An empty Canva App",
5
5
  "scripts": {
6
- "extract": "formatjs extract src/**/*.{ts,tsx} --out-file dist/messages_en.json",
6
+ "extract": "formatjs extract \"src/**/*.{ts,tsx}\" --out-file dist/messages_en.json",
7
7
  "build": "webpack --config webpack.config.cjs --mode production && npm run extract",
8
8
  "format": "prettier '**/*.{css,ts,tsx}' --no-config --write",
9
9
  "format:check": "prettier '**/*.{css,ts,tsx}' --no-config --check --ignore-path",
@@ -17,32 +17,32 @@
17
17
  "postinstall": "ts-node ./scripts/copy-env.ts"
18
18
  },
19
19
  "dependencies": {
20
- "@canva/app-ui-kit": "^4.2.0",
21
- "@canva/app-i18n-kit": "^1.0.0",
22
- "@canva/design": "^2.1.0",
23
- "@canva/platform": "^2.0.0",
20
+ "@canva/app-i18n-kit": "^1.0.1",
21
+ "@canva/app-ui-kit": "^4.3.0",
22
+ "@canva/design": "^2.2.1",
24
23
  "@canva/error": "^2.0.0",
24
+ "@canva/platform": "^2.0.0",
25
25
  "react": "18.3.1",
26
26
  "react-dom": "18.3.1",
27
- "react-intl": "6.6.8"
27
+ "react-intl": "6.8.7"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@eslint/eslintrc": "3.1.0",
31
- "@eslint/js": "9.12.0",
32
- "@formatjs/cli": "6.2.12",
33
- "@formatjs/ts-transformer": "3.13.14",
31
+ "@eslint/js": "9.14.0",
32
+ "@formatjs/cli": "6.3.8",
33
+ "@formatjs/ts-transformer": "3.13.22",
34
34
  "@ngrok/ngrok": "1.4.1",
35
35
  "@svgr/webpack": "8.1.0",
36
- "@types/jest": "29.5.13",
36
+ "@types/jest": "29.5.14",
37
37
  "@types/node": "20.10.0",
38
38
  "@types/node-fetch": "2.6.11",
39
39
  "@types/node-forge": "1.3.11",
40
40
  "@types/nodemon": "1.19.6",
41
- "@types/react": "18.3.11",
41
+ "@types/react": "18.3.12",
42
42
  "@types/react-dom": "18.3.1",
43
43
  "@types/webpack-env": "1.18.5",
44
- "@typescript-eslint/eslint-plugin": "8.9.0",
45
- "@typescript-eslint/parser": "8.9.0",
44
+ "@typescript-eslint/eslint-plugin": "8.13.0",
45
+ "@typescript-eslint/parser": "8.13.0",
46
46
  "chalk": "4.1.2",
47
47
  "cli-table3": "0.6.5",
48
48
  "css-loader": "7.1.2",
@@ -50,12 +50,12 @@
50
50
  "cssnano": "7.0.6",
51
51
  "debug": "4.3.7",
52
52
  "dotenv": "16.4.5",
53
- "eslint": "9.12.0",
54
- "eslint-plugin-formatjs": "5.0.0",
55
- "eslint-plugin-jest": "28.8.3",
56
- "eslint-plugin-react": "7.37.1",
53
+ "eslint": "9.14.0",
54
+ "eslint-plugin-formatjs": "5.2.2",
55
+ "eslint-plugin-jest": "28.9.0",
56
+ "eslint-plugin-react": "7.37.2",
57
57
  "jest": "29.7.0",
58
- "mini-css-extract-plugin": "2.9.1",
58
+ "mini-css-extract-plugin": "2.9.2",
59
59
  "node-fetch": "3.3.2",
60
60
  "node-forge": "1.3.1",
61
61
  "nodemon": "3.0.1",
@@ -68,7 +68,7 @@
68
68
  "ts-node": "10.9.2",
69
69
  "typescript": "5.5.4",
70
70
  "url-loader": "4.1.1",
71
- "webpack": "5.95.0",
71
+ "webpack": "5.96.1",
72
72
  "webpack-cli": "5.1.4",
73
73
  "webpack-dev-server": "5.1.0",
74
74
  "yargs": "17.7.2"
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ import * as fs from "fs";
3
+ import * as path from "path";
4
+
5
+ const envPath = path.resolve(__dirname, "..", ".env");
6
+ const templatePath = path.resolve(__dirname, "..", ".env.template");
7
+
8
+ if (!fs.existsSync(envPath)) {
9
+ fs.copyFileSync(templatePath, envPath);
10
+ }
File without changes