@vaneui/md 0.0.3-alpha.20250730172254.8352948 → 0.0.3-alpha.20250803114402.e1ef256

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.
Files changed (66) hide show
  1. package/dist/components/blocks/MdBlockquote.d.ts +2 -0
  2. package/dist/components/blocks/MdHr.d.ts +2 -0
  3. package/dist/components/breaks/MdHardbreak.d.ts +2 -0
  4. package/dist/components/breaks/MdSoftbreak.d.ts +2 -0
  5. package/dist/components/code/MdFence.d.ts +2 -0
  6. package/dist/components/errors/MdError.d.ts +2 -0
  7. package/dist/components/headings/MdHeading.d.ts +2 -0
  8. package/dist/components/links/MdLink.d.ts +2 -0
  9. package/dist/components/lists/MdItem.d.ts +2 -0
  10. package/dist/components/lists/MdList.d.ts +2 -0
  11. package/dist/components/md-components.d.ts +25 -0
  12. package/dist/components/md.d.ts +2 -6
  13. package/dist/components/media/MdImage.d.ts +2 -0
  14. package/dist/components/structure/MdDocument.d.ts +2 -0
  15. package/dist/components/structure/MdInline.d.ts +2 -0
  16. package/dist/components/tables/MdTable.d.ts +2 -0
  17. package/dist/components/tables/MdTbody.d.ts +2 -0
  18. package/dist/components/tables/MdTd.d.ts +2 -0
  19. package/dist/components/tables/MdTh.d.ts +2 -0
  20. package/dist/components/tables/MdThead.d.ts +2 -0
  21. package/dist/components/tables/MdTr.d.ts +2 -0
  22. package/dist/components/text/MdCode.d.ts +2 -0
  23. package/dist/components/text/MdEm.d.ts +2 -0
  24. package/dist/components/text/MdParagraph.d.ts +2 -0
  25. package/dist/components/text/MdS.d.ts +2 -0
  26. package/dist/components/text/MdStrong.d.ts +2 -0
  27. package/dist/components/text/MdText.d.ts +2 -0
  28. package/dist/config/default-config.d.ts +3 -0
  29. package/dist/index.d.ts +4 -1
  30. package/dist/index.esm.js +285 -54
  31. package/dist/index.esm.js.map +1 -1
  32. package/dist/index.js +310 -52
  33. package/dist/index.js.map +1 -1
  34. package/dist/styles/index.css +2425 -0
  35. package/dist/tests/components/MdBlockquote.test.d.ts +1 -0
  36. package/dist/tests/components/MdCode.test.d.ts +1 -0
  37. package/dist/tests/components/MdDocument.test.d.ts +1 -0
  38. package/dist/tests/components/MdEm.test.d.ts +1 -0
  39. package/dist/tests/components/MdError.test.d.ts +1 -0
  40. package/dist/tests/components/MdFence.test.d.ts +1 -0
  41. package/dist/tests/components/MdHardbreak.test.d.ts +1 -0
  42. package/dist/tests/components/MdHeading.test.d.ts +1 -0
  43. package/dist/tests/components/MdHr.test.d.ts +1 -0
  44. package/dist/tests/components/MdImage.test.d.ts +1 -0
  45. package/dist/tests/components/MdInline.test.d.ts +1 -0
  46. package/dist/tests/components/MdItem.test.d.ts +1 -0
  47. package/dist/tests/components/MdLink.test.d.ts +1 -0
  48. package/dist/tests/components/MdList.test.d.ts +1 -0
  49. package/dist/tests/components/MdParagraph.test.d.ts +1 -0
  50. package/dist/tests/components/MdS.test.d.ts +1 -0
  51. package/dist/tests/components/MdSoftbreak.test.d.ts +1 -0
  52. package/dist/tests/components/MdStrong.test.d.ts +1 -0
  53. package/dist/tests/components/MdTable.test.d.ts +1 -0
  54. package/dist/tests/components/MdTbody.test.d.ts +1 -0
  55. package/dist/tests/components/MdTd.test.d.ts +1 -0
  56. package/dist/tests/components/MdText.test.d.ts +1 -0
  57. package/dist/tests/components/MdTh.test.d.ts +1 -0
  58. package/dist/tests/components/MdThead.test.d.ts +1 -0
  59. package/dist/tests/components/MdTr.test.d.ts +1 -0
  60. package/dist/tests/md-nodes.test.d.ts +1 -0
  61. package/dist/types/index.d.ts +79 -0
  62. package/package.json +17 -9
  63. /package/dist/{components/tests → tests}/md.test.d.ts +0 -0
  64. /package/dist/{components/tests → tests}/md.theme-defaults.test.d.ts +0 -0
  65. /package/dist/{components/tests → tests}/md.theme-override.test.d.ts +0 -0
  66. /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.20250730172254.8352948",
3
+ "version": "0.0.3-alpha.20250803114402.e1ef256",
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
- "types": "./dist/index.d.ts"
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": "npm run clean && npm run build:js",
43
- "test": "npm run type-check && node node_modules/jest/bin/jest.js"
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