@soroush.tech/markdown 0.1.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.
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/dist/CodeBlock-CVlrvVPP.mjs +159 -0
- package/dist/CodeBlock-Cymx1ZAY.cjs +176 -0
- package/dist/CodeBlock.cjs +5 -0
- package/dist/CodeBlock.d.cts +2 -0
- package/dist/CodeBlock.d.mts +2 -0
- package/dist/CodeBlock.mjs +2 -0
- package/dist/Control.cjs +61 -0
- package/dist/Control.d.cts +18 -0
- package/dist/Control.d.mts +18 -0
- package/dist/Control.mjs +60 -0
- package/dist/Editor.cjs +129 -0
- package/dist/Editor.d.cts +40 -0
- package/dist/Editor.d.mts +40 -0
- package/dist/Editor.mjs +128 -0
- package/dist/MarkdownContext.cjs +13 -0
- package/dist/MarkdownContext.d.cts +2 -0
- package/dist/MarkdownContext.d.mts +2 -0
- package/dist/MarkdownContext.mjs +11 -0
- package/dist/Mermaid-BclI9A7e.mjs +231 -0
- package/dist/Mermaid-DqP2Q0bt.cjs +236 -0
- package/dist/Mermaid.cjs +3 -0
- package/dist/Mermaid.d.cts +2 -0
- package/dist/Mermaid.d.mts +2 -0
- package/dist/Mermaid.mjs +2 -0
- package/dist/Preview-BVT70uXa.cjs +276 -0
- package/dist/Preview-C1CwRDj5.mjs +246 -0
- package/dist/Preview.cjs +3 -0
- package/dist/Preview.d.cts +53 -0
- package/dist/Preview.d.mts +53 -0
- package/dist/Preview.mjs +2 -0
- package/dist/Toolbar-Ba3l-oBU.cjs +600 -0
- package/dist/Toolbar-C0SNI-JK.mjs +589 -0
- package/dist/Toolbar.cjs +4 -0
- package/dist/Toolbar.d.cts +13 -0
- package/dist/Toolbar.d.mts +13 -0
- package/dist/Toolbar.mjs +2 -0
- package/dist/applyAction-BDkgYhOd.cjs +120 -0
- package/dist/applyAction-BGWMbUYT.mjs +115 -0
- package/dist/index-BO0LyUUG.d.cts +27 -0
- package/dist/index-BO0LyUUG.d.mts +27 -0
- package/dist/index-BtMTBOcM.d.cts +48 -0
- package/dist/index-BtMTBOcM.d.mts +48 -0
- package/dist/index-rGZIhUgj.d.cts +76 -0
- package/dist/index-rGZIhUgj.d.mts +76 -0
- package/dist/index.cjs +19 -0
- package/dist/index.d.cts +50 -0
- package/dist/index.d.mts +50 -0
- package/dist/index.mjs +8 -0
- package/package.json +110 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MarkdownContext, useMarkdownContext } from "./MarkdownContext.mjs";
|
|
2
|
+
import { Control } from "./Control.mjs";
|
|
3
|
+
import { n as TablePicker, t as Toolbar } from "./Toolbar-C0SNI-JK.mjs";
|
|
4
|
+
import { Editor } from "./Editor.mjs";
|
|
5
|
+
import { n as syntaxLight, r as CodeBlock, t as syntaxDark } from "./CodeBlock-CVlrvVPP.mjs";
|
|
6
|
+
import { t as Mermaid } from "./Mermaid-BclI9A7e.mjs";
|
|
7
|
+
import { t as Preview } from "./Preview-C1CwRDj5.mjs";
|
|
8
|
+
export { CodeBlock, Control, Editor, MarkdownContext, Mermaid, Preview, TablePicker, Toolbar, syntaxDark, syntaxLight, useMarkdownContext };
|
package/package.json
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@soroush.tech/markdown",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Headless, composable markdown editor + renderer for @soroush.tech/design-system — Control, Toolbar, Editor, and Preview built on react-markdown, remark-gfm, and rehype-highlight.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"markdown",
|
|
7
|
+
"editor",
|
|
8
|
+
"renderer",
|
|
9
|
+
"react",
|
|
10
|
+
"design-system",
|
|
11
|
+
"remark",
|
|
12
|
+
"rehype",
|
|
13
|
+
"typescript"
|
|
14
|
+
],
|
|
15
|
+
"author": "Masoud Soroush <masoud@soroush.tech>",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"homepage": "https://soroush.tech",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/soroush-tech/core.git",
|
|
21
|
+
"directory": "packages/markdown"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/soroush-tech/core/issues"
|
|
25
|
+
},
|
|
26
|
+
"type": "module",
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/index.d.mts",
|
|
35
|
+
"default": "./dist/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/index.d.cts",
|
|
39
|
+
"default": "./dist/index.cjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./*": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/*.d.mts",
|
|
45
|
+
"default": "./dist/*.mjs"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/*.d.cts",
|
|
49
|
+
"default": "./dist/*.cjs"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"types": "./dist/index.d.mts",
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"mermaid": "^11.4.0",
|
|
59
|
+
"react-markdown": "^10.1.0",
|
|
60
|
+
"rehype-highlight": "^7.0.2",
|
|
61
|
+
"remark-gfm": "^4.0.1"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"react": "^19.0.0",
|
|
65
|
+
"react-dom": "^19.0.0",
|
|
66
|
+
"@soroush.tech/design-system": "^1.0.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@storybook/react-vite": "^10.5.0",
|
|
70
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
71
|
+
"@testing-library/react": "^16.3.2",
|
|
72
|
+
"@types/node": "^26.1.1",
|
|
73
|
+
"@types/react": "^19.2.17",
|
|
74
|
+
"@types/react-dom": "^19.2.3",
|
|
75
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
76
|
+
"eslint": "^10.7.0",
|
|
77
|
+
"eslint-plugin-react": "^7.37.5",
|
|
78
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
79
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
80
|
+
"eslint-plugin-storybook": "^10.5.0",
|
|
81
|
+
"globals": "^17.7.0",
|
|
82
|
+
"jsdom": "^29.1.1",
|
|
83
|
+
"react": "^19.2.7",
|
|
84
|
+
"react-dom": "^19.2.7",
|
|
85
|
+
"storybook": "^10.5.0",
|
|
86
|
+
"tsdown": "^0.22.7",
|
|
87
|
+
"typescript": "~6.0.3",
|
|
88
|
+
"vitest": "^4.1.10",
|
|
89
|
+
"@soroush.tech/hooks": "0.1.0",
|
|
90
|
+
"@soroush.tech/eslint-config": "0.0.0",
|
|
91
|
+
"@soroush.tech/design-system": "1.0.0"
|
|
92
|
+
},
|
|
93
|
+
"scripts": {
|
|
94
|
+
"build": "tsdown",
|
|
95
|
+
"lint": "eslint . --max-warnings 0",
|
|
96
|
+
"typecheck": "tsc --noEmit",
|
|
97
|
+
"test": "vitest run",
|
|
98
|
+
"test:coverage": "vitest run --coverage",
|
|
99
|
+
"test:types": "pnpm build && tsc -p type-tests/tsconfig.json"
|
|
100
|
+
},
|
|
101
|
+
"main": "./dist/index.cjs",
|
|
102
|
+
"module": "./dist/index.mjs",
|
|
103
|
+
"typesVersions": {
|
|
104
|
+
"*": {
|
|
105
|
+
"*": [
|
|
106
|
+
"./dist/*.d.cts"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|