@canonical/summon-component 0.35.0 → 0.37.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.
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
type OwnProps = {
|
|
4
4
|
/** Content to render inside the component */
|
|
5
5
|
children?: ReactNode;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Props extend the native props of the component's root element, so every
|
|
10
|
+
* attribute that element accepts (data-*, aria-*, event handlers, …) reaches
|
|
11
|
+
* the DOM. Change "div" to the component's actual root element tag.
|
|
12
|
+
*/
|
|
13
|
+
export type <%= name %>Props = OwnProps &
|
|
14
|
+
Omit<ComponentProps<"div">, keyof OwnProps>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/summon-component",
|
|
3
3
|
"description": "Component generators for Summon - React, Svelte and Lit component scaffolding",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.37.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -46,20 +46,20 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@biomejs/biome": "2.4.9",
|
|
49
|
-
"@canonical/biome-config": "^0.
|
|
50
|
-
"@canonical/typescript-config": "^0.
|
|
51
|
-
"@canonical/webarchitect": "^0.
|
|
49
|
+
"@canonical/biome-config": "^0.37.0",
|
|
50
|
+
"@canonical/typescript-config": "^0.37.0",
|
|
51
|
+
"@canonical/webarchitect": "^0.37.0",
|
|
52
52
|
"@types/bun": "^1.3.10",
|
|
53
53
|
"@types/node": "^26.0.0",
|
|
54
54
|
"typescript": "^5.9.3",
|
|
55
55
|
"vitest": "^4.0.18"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@canonical/utils": "^0.
|
|
58
|
+
"@canonical/utils": "^0.37.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@canonical/summon-core": "^0.
|
|
62
|
-
"@canonical/task": "^0.
|
|
61
|
+
"@canonical/summon-core": "^0.37.0",
|
|
62
|
+
"@canonical/task": "^0.37.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "ac8383bdb4be1bcd6fa6c4960a1e3d78c0279688"
|
|
65
65
|
}
|