@noirmd/previewer 1.1.1 → 2.0.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/dist/NReditor.cjs +950 -913
- package/dist/NReditor.cjs.map +1 -1
- package/dist/NReditor.d.cts +6 -1
- package/dist/NReditor.d.ts +6 -1
- package/dist/NReditor.js +951 -914
- package/dist/NReditor.js.map +1 -1
- package/dist/admonition.css +55 -0
- package/dist/{markdown.css → base.css} +96 -126
- package/dist/blockquote.css +16 -0
- package/dist/button.css +32 -0
- package/dist/card.css +143 -0
- package/dist/codeblock.css +59 -0
- package/dist/core.cjs +9 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +9 -1
- package/dist/core.js.map +1 -1
- package/dist/details.css +45 -0
- package/dist/editor.css +226 -0
- package/dist/fonts/material-icons-round.woff2 +0 -0
- package/dist/index.cjs +852 -883
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -70
- package/dist/index.d.ts +41 -70
- package/dist/index.js +851 -877
- package/dist/index.js.map +1 -1
- package/dist/list.css +18 -0
- package/dist/modal.css +82 -0
- package/dist/react.cjs +852 -886
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +44 -73
- package/dist/react.d.ts +44 -73
- package/dist/react.js +851 -880
- package/dist/react.js.map +1 -1
- package/dist/slide.css +21 -0
- package/dist/table.css +36 -0
- package/dist/toc.css +45 -0
- package/dist/vanilla.cjs +42 -28
- package/dist/vanilla.cjs.map +1 -1
- package/dist/vanilla.css +32 -677
- package/dist/vanilla.d.cts +8 -2
- package/dist/vanilla.d.ts +8 -2
- package/dist/vanilla.js +41 -28
- package/dist/vanilla.js.map +1 -1
- package/dist/variables.css +53 -0
- package/dist/vue.cjs +931 -1121
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.d.cts +63 -214
- package/dist/vue.d.ts +63 -214
- package/dist/vue.js +930 -1120
- package/dist/vue.js.map +1 -1
- package/editor.css +226 -0
- package/package.json +6 -9
- package/markdown.css +0 -344
package/dist/NReditor.d.cts
CHANGED
|
@@ -10,6 +10,10 @@ interface NReditorProps extends ReactCodeMirrorProps {
|
|
|
10
10
|
debounceMs?: number;
|
|
11
11
|
/** Inject Tailwind v4 browser CDN for preview. Default: false */
|
|
12
12
|
tailwindCDN?: boolean;
|
|
13
|
+
/** Called when user clicks Guía */
|
|
14
|
+
onGuide?: () => void;
|
|
15
|
+
/** Called when user clicks Configurar */
|
|
16
|
+
onConfig?: () => void;
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
19
|
* NReditor — CodeMirror 6 editor with live markdown preview.
|
|
@@ -18,7 +22,8 @@ interface NReditorProps extends ReactCodeMirrorProps {
|
|
|
18
22
|
* @example
|
|
19
23
|
* ```tsx
|
|
20
24
|
* import NReditor from '@noirmd/previewer/editor';
|
|
21
|
-
* import '@noirmd/previewer/
|
|
25
|
+
* import '@noirmd/previewer/editor.css';
|
|
26
|
+
* import '@noirmd/previewer/vanilla/vanilla.css';
|
|
22
27
|
*
|
|
23
28
|
* <NReditor value={md} onChange={setMd} />
|
|
24
29
|
* <NReditor value={md} onChange={setMd} tailwindCDN />
|
package/dist/NReditor.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ interface NReditorProps extends ReactCodeMirrorProps {
|
|
|
10
10
|
debounceMs?: number;
|
|
11
11
|
/** Inject Tailwind v4 browser CDN for preview. Default: false */
|
|
12
12
|
tailwindCDN?: boolean;
|
|
13
|
+
/** Called when user clicks Guía */
|
|
14
|
+
onGuide?: () => void;
|
|
15
|
+
/** Called when user clicks Configurar */
|
|
16
|
+
onConfig?: () => void;
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
19
|
* NReditor — CodeMirror 6 editor with live markdown preview.
|
|
@@ -18,7 +22,8 @@ interface NReditorProps extends ReactCodeMirrorProps {
|
|
|
18
22
|
* @example
|
|
19
23
|
* ```tsx
|
|
20
24
|
* import NReditor from '@noirmd/previewer/editor';
|
|
21
|
-
* import '@noirmd/previewer/
|
|
25
|
+
* import '@noirmd/previewer/editor.css';
|
|
26
|
+
* import '@noirmd/previewer/vanilla/vanilla.css';
|
|
22
27
|
*
|
|
23
28
|
* <NReditor value={md} onChange={setMd} />
|
|
24
29
|
* <NReditor value={md} onChange={setMd} tailwindCDN />
|