@drupal-canvas/cli 0.2.0 → 0.4.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.
@@ -10,16 +10,16 @@ props:
10
10
  description: The greeting to display
11
11
  examples:
12
12
  - Hello World
13
- cta:
13
+ ctaDisplayText:
14
14
  type: string
15
- title: CTA display text
15
+ title: CTA Display Text
16
16
  description: The text for the call to action button
17
17
  examples:
18
18
  - Click me!
19
- ctaHref:
19
+ ctaLink:
20
20
  type: string
21
21
  format: uri
22
- title: CTA link
22
+ title: CTA Link
23
23
  examples:
24
24
  - https://example.com
25
25
  slots:
@@ -3,8 +3,8 @@
3
3
  */
4
4
  const HelloWorld = ({
5
5
  greeting = 'Hello world!',
6
- cta = 'Click me!',
7
- ctaRef = 'https://example.com',
6
+ ctaDisplayText = 'Click me!',
7
+ ctaLink = 'https://example.com',
8
8
  content,
9
9
  }) => {
10
10
  return (
@@ -12,7 +12,7 @@ const HelloWorld = ({
12
12
  <h2 className="greeting">{greeting}</h2>
13
13
  <div className="content">{content}</div>
14
14
  <button type="button" className="cta">
15
- <a href={ctaRef}>{cta}</a>
15
+ <a href={ctaLink}>{ctaDisplayText}</a>
16
16
  </button>
17
17
  </div>
18
18
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drupal-canvas/cli",
3
+ "version": "0.4.0",
3
4
  "description": "CLI tool for managing Drupal Canvas code components",
4
- "version": "0.2.0",
5
5
  "license": "GPL-2.0-or-later",
6
6
  "repository": {
7
7
  "type": "git",
@@ -38,28 +38,29 @@
38
38
  "@types/node": "^24.0.0",
39
39
  "@typescript-eslint/eslint-plugin": "^8.31.1",
40
40
  "@typescript-eslint/parser": "^8.31.1",
41
- "eslint": "^9.22.0",
42
41
  "eslint-config-prettier": "^9.1.0",
43
42
  "eslint-formatter-junit": "^8.40.0",
44
43
  "eslint-plugin-prettier": "^5.1.3",
45
44
  "globals": "^16.0.0",
46
45
  "msw": "^2.10.2",
47
46
  "prettier": "^3.2.1",
48
- "tsup": "^8.5.0",
47
+ "tsup": "^8.5.1",
49
48
  "typescript": "^5.8.3",
50
49
  "vitest": "^3.2.3"
51
50
  },
52
51
  "dependencies": {
52
+ "@babel/parser": "^7.26.9",
53
53
  "@clack/prompts": "^0.11.0",
54
+ "@drupal-canvas/eslint-config": "^0.0.1",
54
55
  "@swc/wasm": "^1.12.1",
55
56
  "axios": "^1.9.0",
56
57
  "chalk": "^5.4.1",
57
58
  "commander": "^14.0.0",
58
59
  "dotenv": "^16.5.0",
60
+ "eslint": "^9.22.0",
59
61
  "js-yaml": "^4.1.0",
60
62
  "lightningcss": "^1.30.1",
61
63
  "table": "^6.9.0",
62
- "tailwindcss-in-browser": "^0.4.0",
63
- "@babel/parser": "^7.26.9"
64
+ "tailwindcss-in-browser": "^0.4.0"
64
65
  }
65
66
  }