@vaneui/md 0.0.3-alpha.20250730172254.8352948 → 0.0.3-alpha.20250803164622.cc5ccbc
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/dist/components/blocks/MdBlockquote.d.ts +2 -0
- package/dist/components/blocks/MdHr.d.ts +2 -0
- package/dist/components/breaks/MdHardbreak.d.ts +2 -0
- package/dist/components/breaks/MdSoftbreak.d.ts +2 -0
- package/dist/components/code/MdFence.d.ts +2 -0
- package/dist/components/errors/MdError.d.ts +2 -0
- package/dist/components/headings/MdHeading.d.ts +2 -0
- package/dist/components/links/MdLink.d.ts +2 -0
- package/dist/components/lists/MdItem.d.ts +2 -0
- package/dist/components/lists/MdList.d.ts +2 -0
- package/dist/components/md-components.d.ts +25 -0
- package/dist/components/md.d.ts +2 -6
- package/dist/components/media/MdImage.d.ts +2 -0
- package/dist/components/structure/MdDocument.d.ts +2 -0
- package/dist/components/structure/MdInline.d.ts +2 -0
- package/dist/components/tables/MdTable.d.ts +2 -0
- package/dist/components/tables/MdTbody.d.ts +2 -0
- package/dist/components/tables/MdTd.d.ts +2 -0
- package/dist/components/tables/MdTh.d.ts +2 -0
- package/dist/components/tables/MdThead.d.ts +2 -0
- package/dist/components/tables/MdTr.d.ts +2 -0
- package/dist/components/text/MdCode.d.ts +2 -0
- package/dist/components/text/MdEm.d.ts +2 -0
- package/dist/components/text/MdParagraph.d.ts +2 -0
- package/dist/components/text/MdS.d.ts +2 -0
- package/dist/components/text/MdStrong.d.ts +2 -0
- package/dist/components/text/MdText.d.ts +2 -0
- package/dist/config/default-config.d.ts +3 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.esm.js +285 -54
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +310 -52
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +2425 -0
- package/dist/tests/components/MdBlockquote.test.d.ts +1 -0
- package/dist/tests/components/MdCode.test.d.ts +1 -0
- package/dist/tests/components/MdDocument.test.d.ts +1 -0
- package/dist/tests/components/MdEm.test.d.ts +1 -0
- package/dist/tests/components/MdError.test.d.ts +1 -0
- package/dist/tests/components/MdFence.test.d.ts +1 -0
- package/dist/tests/components/MdHardbreak.test.d.ts +1 -0
- package/dist/tests/components/MdHeading.test.d.ts +1 -0
- package/dist/tests/components/MdHr.test.d.ts +1 -0
- package/dist/tests/components/MdImage.test.d.ts +1 -0
- package/dist/tests/components/MdInline.test.d.ts +1 -0
- package/dist/tests/components/MdItem.test.d.ts +1 -0
- package/dist/tests/components/MdLink.test.d.ts +1 -0
- package/dist/tests/components/MdList.test.d.ts +1 -0
- package/dist/tests/components/MdParagraph.test.d.ts +1 -0
- package/dist/tests/components/MdS.test.d.ts +1 -0
- package/dist/tests/components/MdSoftbreak.test.d.ts +1 -0
- package/dist/tests/components/MdStrong.test.d.ts +1 -0
- package/dist/tests/components/MdTable.test.d.ts +1 -0
- package/dist/tests/components/MdTbody.test.d.ts +1 -0
- package/dist/tests/components/MdTd.test.d.ts +1 -0
- package/dist/tests/components/MdText.test.d.ts +1 -0
- package/dist/tests/components/MdTh.test.d.ts +1 -0
- package/dist/tests/components/MdThead.test.d.ts +1 -0
- package/dist/tests/components/MdTr.test.d.ts +1 -0
- package/dist/tests/md-nodes.test.d.ts +1 -0
- package/dist/types/index.d.ts +79 -0
- package/package.json +17 -9
- /package/dist/{components/tests → tests}/md.test.d.ts +0 -0
- /package/dist/{components/tests → tests}/md.theme-defaults.test.d.ts +0 -0
- /package/dist/{components/tests → tests}/md.theme-override.test.d.ts +0 -0
- /package/dist/{components/tests → tests}/md.theme-structure.test.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type MdComponent = React.FC<any>;
|
|
3
|
+
export interface MdNodeConfig {
|
|
4
|
+
render?: string;
|
|
5
|
+
attributes?: Record<string, {
|
|
6
|
+
type: any;
|
|
7
|
+
default?: any;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
children?: string[];
|
|
11
|
+
transform?: (node: any, config: any) => any;
|
|
12
|
+
}
|
|
13
|
+
export interface MdNodesConfig {
|
|
14
|
+
document?: MdNodeConfig;
|
|
15
|
+
heading?: MdNodeConfig;
|
|
16
|
+
paragraph?: MdNodeConfig;
|
|
17
|
+
hr?: MdNodeConfig;
|
|
18
|
+
image?: MdNodeConfig;
|
|
19
|
+
fence?: MdNodeConfig;
|
|
20
|
+
blockquote?: MdNodeConfig;
|
|
21
|
+
list?: MdNodeConfig;
|
|
22
|
+
item?: MdNodeConfig;
|
|
23
|
+
table?: MdNodeConfig;
|
|
24
|
+
thead?: MdNodeConfig;
|
|
25
|
+
tbody?: MdNodeConfig;
|
|
26
|
+
tr?: MdNodeConfig;
|
|
27
|
+
td?: MdNodeConfig;
|
|
28
|
+
th?: MdNodeConfig;
|
|
29
|
+
inline?: MdNodeConfig;
|
|
30
|
+
strong?: MdNodeConfig;
|
|
31
|
+
em?: MdNodeConfig;
|
|
32
|
+
s?: MdNodeConfig;
|
|
33
|
+
link?: MdNodeConfig;
|
|
34
|
+
code?: MdNodeConfig;
|
|
35
|
+
text?: MdNodeConfig;
|
|
36
|
+
hardbreak?: MdNodeConfig;
|
|
37
|
+
softbreak?: MdNodeConfig;
|
|
38
|
+
error?: MdNodeConfig;
|
|
39
|
+
}
|
|
40
|
+
export interface MdComponents {
|
|
41
|
+
MdDocument?: MdComponent;
|
|
42
|
+
MdHeading?: MdComponent;
|
|
43
|
+
MdParagraph?: MdComponent;
|
|
44
|
+
MdHr?: MdComponent;
|
|
45
|
+
MdImage?: MdComponent;
|
|
46
|
+
MdFence?: MdComponent;
|
|
47
|
+
MdBlockquote?: MdComponent;
|
|
48
|
+
MdList?: MdComponent;
|
|
49
|
+
MdItem?: MdComponent;
|
|
50
|
+
MdTable?: MdComponent;
|
|
51
|
+
MdThead?: MdComponent;
|
|
52
|
+
MdTbody?: MdComponent;
|
|
53
|
+
MdTr?: MdComponent;
|
|
54
|
+
MdTd?: MdComponent;
|
|
55
|
+
MdTh?: MdComponent;
|
|
56
|
+
MdInline?: MdComponent;
|
|
57
|
+
MdStrong?: MdComponent;
|
|
58
|
+
MdEm?: MdComponent;
|
|
59
|
+
MdS?: MdComponent;
|
|
60
|
+
MdLink?: MdComponent;
|
|
61
|
+
MdCode?: MdComponent;
|
|
62
|
+
MdText?: MdComponent;
|
|
63
|
+
MdHardbreak?: MdComponent;
|
|
64
|
+
MdSoftbreak?: MdComponent;
|
|
65
|
+
MdError?: MdComponent;
|
|
66
|
+
[key: string]: MdComponent | undefined;
|
|
67
|
+
}
|
|
68
|
+
export interface MdConfig {
|
|
69
|
+
nodes?: MdNodesConfig;
|
|
70
|
+
components?: MdComponents;
|
|
71
|
+
variables?: Record<string, any>;
|
|
72
|
+
tags?: Record<string, any>;
|
|
73
|
+
functions?: Record<string, any>;
|
|
74
|
+
}
|
|
75
|
+
export interface MdProps {
|
|
76
|
+
content: string;
|
|
77
|
+
frontmatter?: Record<string, unknown>;
|
|
78
|
+
config?: MdConfig;
|
|
79
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaneui/md",
|
|
3
|
-
"version": "0.0.3-alpha.
|
|
3
|
+
"version": "0.0.3-alpha.20250803164622.cc5ccbc",
|
|
4
4
|
"description": "Markdown component for VaneUI - A React component that renders markdown using @vaneui/ui components",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -30,20 +30,25 @@
|
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
33
34
|
"import": "./dist/index.esm.js",
|
|
34
|
-
"require": "./dist/index.js"
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
"require": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./styles": "./dist/styles/index.css"
|
|
37
38
|
},
|
|
38
39
|
"scripts": {
|
|
39
40
|
"clean": "rimraf dist",
|
|
40
41
|
"type-check": "tsc --noEmit",
|
|
41
42
|
"build:js": "npm run type-check && npm run clean && rollup -c --bundleConfigAsCjs",
|
|
42
|
-
"build": "
|
|
43
|
-
"
|
|
43
|
+
"build:css": "postcss src/styles/index.css -o dist/styles/index.css --no-map",
|
|
44
|
+
"build": "npm run clean && npm run build:js && npm run build:css",
|
|
45
|
+
"test": "npm run type-check && node node_modules/jest/bin/jest.js",
|
|
46
|
+
"playground:install": "cd playground && npm install",
|
|
47
|
+
"playground:dev": "cd playground && npm run dev",
|
|
48
|
+
"playground": "npm run playground:install && npm run playground:dev"
|
|
44
49
|
},
|
|
45
50
|
"peerDependencies": {
|
|
46
|
-
"@vaneui/ui": "
|
|
51
|
+
"@vaneui/ui": "^0.2.1-alpha.20250803110906.442fb81",
|
|
47
52
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
48
53
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
49
54
|
},
|
|
@@ -58,7 +63,7 @@
|
|
|
58
63
|
"@types/jest": "^29.5.14",
|
|
59
64
|
"@types/react": "^19.1.0",
|
|
60
65
|
"@types/react-dom": "^19.1.0",
|
|
61
|
-
"@vaneui/ui": "
|
|
66
|
+
"@vaneui/ui": "^0.2.1-alpha.20250803110906.442fb81",
|
|
62
67
|
"jest": "^29.7.0",
|
|
63
68
|
"jest-environment-jsdom": "^30.0.4",
|
|
64
69
|
"jsdom": "^26.1.0",
|
|
@@ -70,6 +75,9 @@
|
|
|
70
75
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
71
76
|
"ts-jest": "^29.3.1",
|
|
72
77
|
"tslib": "^2.8.1",
|
|
73
|
-
"typescript": "^5.8.2"
|
|
78
|
+
"typescript": "^5.8.2",
|
|
79
|
+
"postcss": "^8.4.47",
|
|
80
|
+
"postcss-cli": "^11.0.0",
|
|
81
|
+
"postcss-import": "^16.1.0"
|
|
74
82
|
}
|
|
75
83
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|