@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.
Files changed (53) hide show
  1. package/dist/NReditor.cjs +950 -913
  2. package/dist/NReditor.cjs.map +1 -1
  3. package/dist/NReditor.d.cts +6 -1
  4. package/dist/NReditor.d.ts +6 -1
  5. package/dist/NReditor.js +951 -914
  6. package/dist/NReditor.js.map +1 -1
  7. package/dist/admonition.css +55 -0
  8. package/dist/{markdown.css → base.css} +96 -126
  9. package/dist/blockquote.css +16 -0
  10. package/dist/button.css +32 -0
  11. package/dist/card.css +143 -0
  12. package/dist/codeblock.css +59 -0
  13. package/dist/core.cjs +9 -1
  14. package/dist/core.cjs.map +1 -1
  15. package/dist/core.js +9 -1
  16. package/dist/core.js.map +1 -1
  17. package/dist/details.css +45 -0
  18. package/dist/editor.css +226 -0
  19. package/dist/fonts/material-icons-round.woff2 +0 -0
  20. package/dist/index.cjs +852 -883
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +41 -70
  23. package/dist/index.d.ts +41 -70
  24. package/dist/index.js +851 -877
  25. package/dist/index.js.map +1 -1
  26. package/dist/list.css +18 -0
  27. package/dist/modal.css +82 -0
  28. package/dist/react.cjs +852 -886
  29. package/dist/react.cjs.map +1 -1
  30. package/dist/react.d.cts +44 -73
  31. package/dist/react.d.ts +44 -73
  32. package/dist/react.js +851 -880
  33. package/dist/react.js.map +1 -1
  34. package/dist/slide.css +21 -0
  35. package/dist/table.css +36 -0
  36. package/dist/toc.css +45 -0
  37. package/dist/vanilla.cjs +42 -28
  38. package/dist/vanilla.cjs.map +1 -1
  39. package/dist/vanilla.css +32 -677
  40. package/dist/vanilla.d.cts +8 -2
  41. package/dist/vanilla.d.ts +8 -2
  42. package/dist/vanilla.js +41 -28
  43. package/dist/vanilla.js.map +1 -1
  44. package/dist/variables.css +53 -0
  45. package/dist/vue.cjs +931 -1121
  46. package/dist/vue.cjs.map +1 -1
  47. package/dist/vue.d.cts +63 -214
  48. package/dist/vue.d.ts +63 -214
  49. package/dist/vue.js +930 -1120
  50. package/dist/vue.js.map +1 -1
  51. package/editor.css +226 -0
  52. package/package.json +6 -9
  53. package/markdown.css +0 -344
@@ -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/markdown.css';
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 />
@@ -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/markdown.css';
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 />