@noirmd/previewer 2.0.2 → 2.0.4

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/react.d.cts CHANGED
@@ -27,6 +27,32 @@ interface NRpreviewerProps {
27
27
  */
28
28
  declare const NRpreviewer: React.FC<NRpreviewerProps>;
29
29
 
30
+ interface GuideProps {
31
+ open: boolean;
32
+ onClose: () => void;
33
+ initialDirective?: string;
34
+ search?: boolean;
35
+ }
36
+ /**
37
+ * Guide — in-editor syntax guide.
38
+ *
39
+ * Populated by guideData (generated from guide/**\/*.md at build time by
40
+ * guide/build.mjs). Each entry is rendered live with the same markdown
41
+ * engine used by the preview, so directives inside the guide are real
42
+ * working examples.
43
+ */
44
+ declare const Guide: React.FC<GuideProps>;
45
+
46
+ interface GuideEntry {
47
+ id: string;
48
+ category: string;
49
+ title: string;
50
+ icon?: string;
51
+ order: number;
52
+ md: string;
53
+ }
54
+ declare const guideData: GuideEntry[];
55
+
30
56
  interface CustomMarkdownRendererProps {
31
57
  content: string;
32
58
  }
@@ -193,4 +219,4 @@ interface DirectiveProps {
193
219
  }
194
220
  type DirectiveRendererFn = (props: DirectiveProps) => HTMLElement | DocumentFragment;
195
221
 
196
- export { type BlockquoteToken, type CSSProperties, type CodeblockToken, CustomMarkdownRenderer, type DirectiveProps, type DirectiveRendererFn, type DirectiveToken, type HeaderToken, type HrToken, type HtmlBlockToken, type HtmlToken, type ImageToken, type ListToken, NRpreviewer, type NRpreviewerProps, type ParagraphToken, RawHtmlRenderer, type TableToken, type TocToken, type Token, type VanillaRenderContext, parseMarkdown, preloadTailwindCDN, scanTailwindCDN, useDebounce, useLazyTailwindCDN };
222
+ export { type BlockquoteToken, type CSSProperties, type CodeblockToken, CustomMarkdownRenderer, type DirectiveProps, type DirectiveRendererFn, type DirectiveToken, Guide, type GuideEntry, type GuideProps, type HeaderToken, type HrToken, type HtmlBlockToken, type HtmlToken, type ImageToken, type ListToken, NRpreviewer, type NRpreviewerProps, type ParagraphToken, RawHtmlRenderer, type TableToken, type TocToken, type Token, type VanillaRenderContext, guideData, parseMarkdown, preloadTailwindCDN, scanTailwindCDN, useDebounce, useLazyTailwindCDN };
package/dist/react.d.ts CHANGED
@@ -27,6 +27,32 @@ interface NRpreviewerProps {
27
27
  */
28
28
  declare const NRpreviewer: React.FC<NRpreviewerProps>;
29
29
 
30
+ interface GuideProps {
31
+ open: boolean;
32
+ onClose: () => void;
33
+ initialDirective?: string;
34
+ search?: boolean;
35
+ }
36
+ /**
37
+ * Guide — in-editor syntax guide.
38
+ *
39
+ * Populated by guideData (generated from guide/**\/*.md at build time by
40
+ * guide/build.mjs). Each entry is rendered live with the same markdown
41
+ * engine used by the preview, so directives inside the guide are real
42
+ * working examples.
43
+ */
44
+ declare const Guide: React.FC<GuideProps>;
45
+
46
+ interface GuideEntry {
47
+ id: string;
48
+ category: string;
49
+ title: string;
50
+ icon?: string;
51
+ order: number;
52
+ md: string;
53
+ }
54
+ declare const guideData: GuideEntry[];
55
+
30
56
  interface CustomMarkdownRendererProps {
31
57
  content: string;
32
58
  }
@@ -193,4 +219,4 @@ interface DirectiveProps {
193
219
  }
194
220
  type DirectiveRendererFn = (props: DirectiveProps) => HTMLElement | DocumentFragment;
195
221
 
196
- export { type BlockquoteToken, type CSSProperties, type CodeblockToken, CustomMarkdownRenderer, type DirectiveProps, type DirectiveRendererFn, type DirectiveToken, type HeaderToken, type HrToken, type HtmlBlockToken, type HtmlToken, type ImageToken, type ListToken, NRpreviewer, type NRpreviewerProps, type ParagraphToken, RawHtmlRenderer, type TableToken, type TocToken, type Token, type VanillaRenderContext, parseMarkdown, preloadTailwindCDN, scanTailwindCDN, useDebounce, useLazyTailwindCDN };
222
+ export { type BlockquoteToken, type CSSProperties, type CodeblockToken, CustomMarkdownRenderer, type DirectiveProps, type DirectiveRendererFn, type DirectiveToken, Guide, type GuideEntry, type GuideProps, type HeaderToken, type HrToken, type HtmlBlockToken, type HtmlToken, type ImageToken, type ListToken, NRpreviewer, type NRpreviewerProps, type ParagraphToken, RawHtmlRenderer, type TableToken, type TocToken, type Token, type VanillaRenderContext, guideData, parseMarkdown, preloadTailwindCDN, scanTailwindCDN, useDebounce, useLazyTailwindCDN };