@macolmenerori/component-library 0.0.1 → 1.0.1
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/README.md +74 -12
- package/dist/index.cjs +29 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8757 -84
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/package.json +9 -5
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
|
|
3
|
+
export declare interface MarkdownProps {
|
|
4
|
+
/** The markdown string to render */
|
|
5
|
+
content: string;
|
|
6
|
+
/** Optional CSS class name for the container */
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A component that renders a markdown string as HTML.
|
|
12
|
+
* Supports GitHub Flavored Markdown (GFM) including tables,
|
|
13
|
+
* strikethrough, task lists, and autolinks.
|
|
14
|
+
*/
|
|
15
|
+
export declare const MarkdownRender: React.FC<MarkdownProps>;
|
|
16
|
+
|
|
3
17
|
/**
|
|
4
18
|
* ThemeSwitch Component
|
|
5
19
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@macolmenerori/component-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"react": "^
|
|
40
|
-
"react-dom": "^
|
|
39
|
+
"react": "^19.2.1",
|
|
40
|
+
"react-dom": "^19.2.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@eslint/js": "^9.39.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@testing-library/react": "^16.3.0",
|
|
47
47
|
"@testing-library/user-event": "^14.6.1",
|
|
48
48
|
"@types/jest": "^30.0.0",
|
|
49
|
-
"@types/node": "^
|
|
49
|
+
"@types/node": "^25.0.0",
|
|
50
50
|
"@types/react": "^19.2.2",
|
|
51
51
|
"@types/react-dom": "^19.2.2",
|
|
52
52
|
"@vitejs/plugin-react": "^5.1.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"eslint-plugin-testing-library": "^7.13.3",
|
|
62
62
|
"jest": "^30.2.0",
|
|
63
63
|
"jest-environment-jsdom": "^30.2.0",
|
|
64
|
-
"jest-fixed-jsdom": "^0.0.
|
|
64
|
+
"jest-fixed-jsdom": "^0.0.11",
|
|
65
65
|
"prettier": "^3.6.2",
|
|
66
66
|
"react": "^19.2.0",
|
|
67
67
|
"react-dom": "^19.2.0",
|
|
@@ -71,6 +71,10 @@
|
|
|
71
71
|
"vite-plugin-dts": "^4.5.4",
|
|
72
72
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
73
73
|
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"react-markdown": "^10.1.0",
|
|
76
|
+
"remark-gfm": "^4.0.1"
|
|
77
|
+
},
|
|
74
78
|
"scripts": {
|
|
75
79
|
"dev": "vite",
|
|
76
80
|
"build": "tsc --noEmit && vite build",
|