@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/NReditor.cjs +1080 -96
- package/dist/NReditor.cjs.map +1 -1
- package/dist/NReditor.d.cts +3 -1
- package/dist/NReditor.d.ts +3 -1
- package/dist/NReditor.js +1080 -96
- package/dist/NReditor.js.map +1 -1
- package/dist/accordion.css +85 -0
- package/dist/carousel.css +121 -0
- package/dist/chat.css +182 -0
- package/dist/countdown.css +83 -0
- package/dist/diff.css +94 -0
- package/dist/editor.css +218 -4
- package/dist/hover3d.css +157 -0
- package/dist/hovergallery.css +110 -0
- package/dist/index.cjs +572 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +572 -4
- package/dist/index.js.map +1 -1
- package/dist/kbd.css +63 -0
- package/dist/react.cjs +968 -7
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +27 -1
- package/dist/react.d.ts +27 -1
- package/dist/react.js +966 -7
- package/dist/react.js.map +1 -1
- package/dist/richlist.css +110 -0
- package/dist/stat.css +107 -0
- package/dist/vanilla.cjs +572 -4
- package/dist/vanilla.cjs.map +1 -1
- package/dist/vanilla.css +11 -1
- package/dist/vanilla.js +572 -4
- package/dist/vanilla.js.map +1 -1
- package/dist/variables.css +2 -0
- package/dist/vue.cjs +572 -4
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.js +572 -4
- package/dist/vue.js.map +1 -1
- package/editor.css +218 -4
- package/package.json +5 -1
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 };
|