@sakura-ui/sakura-ui 0.5.1 → 0.5.2
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/package.json +2 -2
- package/packages/core/package.json +1 -1
- package/packages/core/src/components/Card.tsx +52 -56
- package/packages/core/src/components/Code.tsx +6 -6
- package/packages/core/src/components/Faq.tsx +30 -26
- package/packages/core/src/components/Heading.tsx +50 -48
- package/packages/core/src/components/Icon.tsx +34 -34
- package/packages/core/src/components/Link.tsx +13 -12
- package/packages/core/src/components/LinkCard.tsx +87 -76
- package/packages/core/src/components/List.tsx +20 -13
- package/packages/core/src/components/OverflowContainer.tsx +9 -9
- package/packages/core/src/components/Pre.tsx +9 -9
- package/packages/core/src/components/Table.tsx +29 -24
- package/packages/core/src/components/index.ts +1 -0
- package/packages/core/src/components/styles.ts +42 -0
- package/packages/core/src/index.ts +2 -0
- package/packages/forms/.turbo/turbo-build.log +2 -2
- package/packages/helper/.turbo/turbo-build.log +1 -1
- package/packages/helper/node_modules/.bin/vitest +2 -2
- package/packages/markdown/.turbo/turbo-build.log +4 -4
- package/packages/markdown/README.md +240 -4
- package/packages/markdown/dist/index.cjs.js +71 -137
- package/packages/markdown/dist/index.es.js +2624 -16739
- package/packages/markdown/dist/types/components/Markdown.d.ts +15 -10
- package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -1
- package/packages/markdown/dist/types/components/index.d.ts +1 -1
- package/packages/markdown/dist/types/components/index.d.ts.map +1 -1
- package/packages/markdown/dist/types/decorate.d.ts +24 -0
- package/packages/markdown/dist/types/decorate.d.ts.map +1 -0
- package/packages/markdown/dist/types/index.d.ts +3 -1
- package/packages/markdown/dist/types/index.d.ts.map +1 -1
- package/packages/markdown/dist/types/marked/attributes.d.ts +31 -0
- package/packages/markdown/dist/types/marked/attributes.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/directives/card.d.ts +3 -0
- package/packages/markdown/dist/types/marked/directives/card.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/directives/context.d.ts +36 -0
- package/packages/markdown/dist/types/marked/directives/context.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/directives/faq.d.ts +11 -0
- package/packages/markdown/dist/types/marked/directives/faq.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/directives/grid.d.ts +9 -0
- package/packages/markdown/dist/types/marked/directives/grid.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/directives/index.d.ts +8 -0
- package/packages/markdown/dist/types/marked/directives/index.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/directives/linkButton.d.ts +6 -0
- package/packages/markdown/dist/types/marked/directives/linkButton.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/directives/youtube.d.ts +3 -0
- package/packages/markdown/dist/types/marked/directives/youtube.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/html.d.ts +15 -0
- package/packages/markdown/dist/types/marked/html.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/index.d.ts +13 -0
- package/packages/markdown/dist/types/marked/index.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/registry.d.ts +8 -0
- package/packages/markdown/dist/types/marked/registry.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/renderer.d.ts +16 -0
- package/packages/markdown/dist/types/marked/renderer.d.ts.map +1 -0
- package/packages/markdown/dist/types/marked/tokenizer.d.ts +40 -0
- package/packages/markdown/dist/types/marked/tokenizer.d.ts.map +1 -0
- package/packages/markdown/dist/types/render.d.ts +22 -0
- package/packages/markdown/dist/types/render.d.ts.map +1 -0
- package/packages/markdown/dist/types/sanitize.d.ts +11 -0
- package/packages/markdown/dist/types/sanitize.d.ts.map +1 -0
- package/packages/markdown/node_modules/.bin/marked +55 -0
- package/packages/markdown/package.json +6 -19
- package/packages/markdown/src/components/Markdown.tsx +44 -346
- package/packages/markdown/src/components/index.ts +1 -1
- package/packages/markdown/src/decorate.ts +164 -0
- package/packages/markdown/src/index.ts +3 -1
- package/packages/markdown/src/marked/attributes.ts +88 -0
- package/packages/markdown/src/marked/directives/card.ts +77 -0
- package/packages/markdown/src/marked/directives/context.ts +39 -0
- package/packages/markdown/src/marked/directives/faq.ts +29 -0
- package/packages/markdown/src/marked/directives/grid.ts +50 -0
- package/packages/markdown/src/marked/directives/index.ts +29 -0
- package/packages/markdown/src/marked/directives/linkButton.ts +20 -0
- package/packages/markdown/src/marked/directives/youtube.ts +46 -0
- package/packages/markdown/src/marked/html.ts +55 -0
- package/packages/markdown/src/marked/index.ts +45 -0
- package/packages/markdown/src/marked/registry.ts +34 -0
- package/packages/markdown/src/marked/renderer.ts +52 -0
- package/packages/markdown/src/marked/tokenizer.ts +175 -0
- package/packages/markdown/src/render.ts +55 -0
- package/packages/markdown/src/sanitize.ts +194 -0
- package/packages/markdown/tests/Markdown.test.tsx +122 -0
- package/packages/markdown/tests/__snapshots__/Markdown.test.tsx.snap +451 -0
- package/packages/markdown/tests/anchors.test.ts +108 -0
- package/packages/markdown/tests/fixtures.ts +100 -0
- package/packages/markdown/tests/sanitize.test.ts +168 -0
- package/packages/markdown/tests/server.test.tsx +51 -0
- package/packages/markdown/tests/vitest.setup.ts +4 -0
- package/packages/markdown/tsconfig.test.json +11 -0
- package/packages/markdown/vite.config.ts +5 -1
- package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +2 -2
- package/packages/markdown/dist/types/plugins/attr.d.ts +0 -3
- package/packages/markdown/dist/types/plugins/attr.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/card.d.ts +0 -3
- package/packages/markdown/dist/types/plugins/card.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/cell.d.ts +0 -3
- package/packages/markdown/dist/types/plugins/cell.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/faq.d.ts +0 -3
- package/packages/markdown/dist/types/plugins/faq.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/grid.d.ts +0 -3
- package/packages/markdown/dist/types/plugins/grid.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/headings.d.ts +0 -11
- package/packages/markdown/dist/types/plugins/headings.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/helper.d.ts +0 -9
- package/packages/markdown/dist/types/plugins/helper.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/index.d.ts +0 -9
- package/packages/markdown/dist/types/plugins/index.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/linkButton.d.ts +0 -3
- package/packages/markdown/dist/types/plugins/linkButton.d.ts.map +0 -1
- package/packages/markdown/dist/types/plugins/youtube.d.ts +0 -3
- package/packages/markdown/dist/types/plugins/youtube.d.ts.map +0 -1
- package/packages/markdown/src/plugins/attr.ts +0 -19
- package/packages/markdown/src/plugins/card.ts +0 -71
- package/packages/markdown/src/plugins/cell.ts +0 -47
- package/packages/markdown/src/plugins/faq.ts +0 -40
- package/packages/markdown/src/plugins/grid.ts +0 -54
- package/packages/markdown/src/plugins/headings.ts +0 -38
- package/packages/markdown/src/plugins/helper.ts +0 -27
- package/packages/markdown/src/plugins/index.ts +0 -8
- package/packages/markdown/src/plugins/linkButton.ts +0 -26
- package/packages/markdown/src/plugins/youtube.ts +0 -49
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type HeadingItem } from '../
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type HeadingItem } from '../render';
|
|
3
3
|
interface TocProps {
|
|
4
4
|
items: HeadingItem[];
|
|
5
5
|
}
|
|
6
|
-
export declare const TableOfContents: ({ items }: TocProps) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
export declare const TableOfContents: ({ items }: TocProps) => React.JSX.Element;
|
|
7
|
+
export declare namespace Markdown {
|
|
8
|
+
interface Props {
|
|
9
|
+
tocTitle?: string;
|
|
10
|
+
showToc?: boolean;
|
|
11
|
+
/** Moves every heading down by this many levels. */
|
|
12
|
+
shiftHeading?: number;
|
|
13
|
+
/** How deep the table of contents goes. Defaults to 2. */
|
|
14
|
+
tocMaxDepth?: number;
|
|
15
|
+
children: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export declare const Markdown: ({ children, showToc, tocTitle, shiftHeading, tocMaxDepth }: Markdown.Props) => React.JSX.Element;
|
|
14
19
|
export {};
|
|
15
20
|
//# sourceMappingURL=Markdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,KAAK,WAAW,EAA6B,MAAM,WAAW,CAAA;AASvE,UAAU,QAAQ;IAChB,KAAK,EAAE,WAAW,EAAE,CAAA;CACrB;AAED,eAAO,MAAM,eAAe,GAAI,WAAW,QAAQ,sBAelD,CAAA;AAED,yBAAiB,QAAQ,CAAC;IACxB,UAAiB,KAAK;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,oDAAoD;QACpD,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,0DAA0D;QAC1D,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,QAAQ,EAAE,MAAM,CAAA;KACjB;CACF;AAED,eAAO,MAAM,QAAQ,GAAI,4DAMtB,QAAQ,CAAC,KAAK,sBAoChB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Markdown } from './Markdown';
|
|
1
|
+
export { Markdown, TableOfContents } from './Markdown';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applies the look of the design system to the finished document.
|
|
3
|
+
*
|
|
4
|
+
* This runs over the sanitised DOM rather than inside the markdown renderer so
|
|
5
|
+
* that a table written as raw HTML — 56 of the guide's documents do — is styled
|
|
6
|
+
* the same as one written with pipes. The pipeline this replaces had the same
|
|
7
|
+
* property, because rehype-raw turned the raw HTML into real nodes before the
|
|
8
|
+
* tag to component mapping ran.
|
|
9
|
+
*/
|
|
10
|
+
export type HeadingItem = {
|
|
11
|
+
id?: string;
|
|
12
|
+
depth: number;
|
|
13
|
+
value?: string;
|
|
14
|
+
children?: HeadingItem[];
|
|
15
|
+
};
|
|
16
|
+
export type DecorateOptions = {
|
|
17
|
+
shiftHeading: number;
|
|
18
|
+
tocMaxDepth: number;
|
|
19
|
+
};
|
|
20
|
+
export type DecorateResult = {
|
|
21
|
+
headings: HeadingItem[];
|
|
22
|
+
};
|
|
23
|
+
export declare const decorate: (root: DocumentFragment | Element, document: Document, options: DecorateOptions) => DecorateResult;
|
|
24
|
+
//# sourceMappingURL=decorate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorate.d.ts","sourceRoot":"","sources":["../../src/decorate.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AAEH,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAA;CACzB,CAAA;AAsDD,MAAM,MAAM,eAAe,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,WAAW,EAAE,CAAA;CACxB,CAAA;AAID,eAAO,MAAM,QAAQ,GACnB,MAAM,gBAAgB,GAAG,OAAO,EAChC,UAAU,QAAQ,EAClB,SAAS,eAAe,KACvB,cA2EF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type Attrs = Record<string, string>;
|
|
2
|
+
/**
|
|
3
|
+
* Where `{#name}` is kept, apart from anything written as `key=value`.
|
|
4
|
+
*
|
|
5
|
+
* A sigil says something about the element itself and means the same on every
|
|
6
|
+
* directive; an attribute is the directive's own, and each reads the ones it
|
|
7
|
+
* knows. Keeping them in one place would let a directive that wanted an
|
|
8
|
+
* attribute called `id` take the anchor's place, which is how the video on a
|
|
9
|
+
* youtube embed came to be called `id` and stayed that way.
|
|
10
|
+
*
|
|
11
|
+
* A key beginning with `#` cannot be written as `key=value`, since an attribute
|
|
12
|
+
* name has to start with a letter, so there is nowhere for the two to meet.
|
|
13
|
+
*/
|
|
14
|
+
export declare const ANCHOR = "#id";
|
|
15
|
+
/** Parses the inside of `{...}`: `key=value key2="値 2" #id .cls` */
|
|
16
|
+
export declare const parseAttrs: (body: string | null) => Attrs;
|
|
17
|
+
/**
|
|
18
|
+
* Reads a delimited run, counting nesting. remark-directive accepts a label
|
|
19
|
+
* like `[a [b] c]`, so matching `\[([^\]]*)\]` would cut it in the wrong place.
|
|
20
|
+
*/
|
|
21
|
+
export declare const readDelimited: (src: string, start: number, open: string, close: string) => {
|
|
22
|
+
value: string;
|
|
23
|
+
end: number;
|
|
24
|
+
} | null;
|
|
25
|
+
/** An optional `[label]` followed by an optional `{attrs}`, starting at index i */
|
|
26
|
+
export declare const readTail: (src: string, i: number) => {
|
|
27
|
+
label: string | null;
|
|
28
|
+
attrs: Attrs;
|
|
29
|
+
end: number;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=attributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../src/marked/attributes.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE1C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,oEAAoE;AACpE,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,GAAG,IAAI,KAAG,KAkBhD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,GACxB,KAAK,MAAM,EACX,OAAO,MAAM,EACb,MAAM,MAAM,EACZ,OAAO,MAAM,KACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAkBnC,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,QAAQ,GACnB,KAAK,MAAM,EACX,GAAG,MAAM,KACR;IAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAcnD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../src/marked/directives/card.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAUlD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAgE3D,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Token } from '../../marked';
|
|
2
|
+
import type { Attrs } from '../attributes';
|
|
3
|
+
import type { AttrValue } from '../html';
|
|
4
|
+
import type { DirectiveToken } from '../tokenizer';
|
|
5
|
+
export interface Parser {
|
|
6
|
+
parse: (tokens: Token[]) => string;
|
|
7
|
+
parseInline: (tokens: Token[], renderer?: unknown) => string;
|
|
8
|
+
textRenderer: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface RendererOptions {
|
|
11
|
+
/** The element a card title renders as, already shifted. */
|
|
12
|
+
cardHeadingLevel: string;
|
|
13
|
+
}
|
|
14
|
+
type Values = Record<string, AttrValue>;
|
|
15
|
+
/**
|
|
16
|
+
* What each renderer is handed.
|
|
17
|
+
*
|
|
18
|
+
* `root` and `own` differ in one thing: `root` adds the id asked for by
|
|
19
|
+
* `{#name}`. It belongs on the element the directive **is**, and `own` on
|
|
20
|
+
* anything nested inside that, or the id would be written twice.
|
|
21
|
+
*/
|
|
22
|
+
export interface DirectiveContext {
|
|
23
|
+
token: DirectiveToken;
|
|
24
|
+
attrs: Attrs;
|
|
25
|
+
/** A newline after a block directive, nothing after an inline one. */
|
|
26
|
+
nl: string;
|
|
27
|
+
root: (values: Values) => string;
|
|
28
|
+
own: (values: Values) => string;
|
|
29
|
+
/** The children, rendered — inline for a leaf, block for a container. */
|
|
30
|
+
body: () => string;
|
|
31
|
+
parser: Parser;
|
|
32
|
+
options: RendererOptions;
|
|
33
|
+
}
|
|
34
|
+
export type DirectiveRenderer = (context: DirectiveContext) => string;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/marked/directives/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,MAAM,CAAA;IAClC,WAAW,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,MAAM,CAAA;IAC5D,YAAY,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;AAEvC;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,EAAE,KAAK,CAAA;IACZ,sEAAsE;IACtE,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;IAChC,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/B,yEAAyE;IACzE,IAAI,EAAE,MAAM,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,eAAe,CAAA;CACzB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,MAAM,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DirectiveRenderer } from './context';
|
|
2
|
+
/**
|
|
3
|
+
* A description list, which is what a run of questions and answers is. The Q
|
|
4
|
+
* and the A are decoration and are hidden from a screen reader, which is told
|
|
5
|
+
* the same thing by the <dt> and <dd>.
|
|
6
|
+
*
|
|
7
|
+
* No schema.org FAQPage markup here. Google discontinued the FAQ rich result in
|
|
8
|
+
* May 2026, so it is not implemented.
|
|
9
|
+
*/
|
|
10
|
+
export declare const faqRenderers: Record<string, DirectiveRenderer>;
|
|
11
|
+
//# sourceMappingURL=faq.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faq.d.ts","sourceRoot":"","sources":["../../../../src/marked/directives/faq.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAgB1D,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DirectiveRenderer } from './context';
|
|
2
|
+
/**
|
|
3
|
+
* `grid-cols-N` for any N the registry allows. A grid of cards is a `<ul>` and
|
|
4
|
+
* anything else a `<div>`; the tokenizer decides which, because by the time the
|
|
5
|
+
* children are rendered they are one string with no seams.
|
|
6
|
+
*/
|
|
7
|
+
export declare const grid: DirectiveRenderer;
|
|
8
|
+
export declare const cellRenderers: Record<string, DirectiveRenderer>;
|
|
9
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../src/marked/directives/grid.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAsBlD;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,iBASlB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAU3D,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DirectiveRenderer } from './context';
|
|
2
|
+
/**
|
|
3
|
+
* `grid-cols-N` is the one name that is not a name but a shape, so it is looked
|
|
4
|
+
* for after the others rather than listed among them.
|
|
5
|
+
*/
|
|
6
|
+
export declare const findRenderer: (name: string) => DirectiveRenderer | undefined;
|
|
7
|
+
export type { DirectiveContext, DirectiveRenderer, Parser, RendererOptions } from './context';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/marked/directives/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAclD;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,iBAAiB,GAAG,SACN,CAAA;AAE1D,YAAY,EACV,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,eAAe,EAChB,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linkButton.d.ts","sourceRoot":"","sources":["../../../../src/marked/directives/linkButton.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAQlD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAMjE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"youtube.d.ts","sourceRoot":"","sources":["../../../../src/marked/directives/youtube.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AA4BlD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAiB9D,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const escapeHtml: (value: unknown) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Rejects the schemes that turn a link into script. marked keeps its own
|
|
4
|
+
* version of this to itself, so a renderer writing href or src has to bring one.
|
|
5
|
+
*/
|
|
6
|
+
export declare const cleanUrl: (href: string | undefined) => string | undefined;
|
|
7
|
+
export type AttrValue = string | boolean | undefined | null;
|
|
8
|
+
/** `{a: 'x', b: true, c: undefined}` becomes ` a="x" b` */
|
|
9
|
+
export declare const attrsToHtml: (attrs: Record<string, AttrValue>) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Turns the multi-line class strings the components use into a single line, so
|
|
12
|
+
* that the markup this package produces does not carry their indentation.
|
|
13
|
+
*/
|
|
14
|
+
export declare const classNames: (...values: (string | undefined | false)[]) => string;
|
|
15
|
+
//# sourceMappingURL=html.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/marked/html.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,UAAU,GAAI,OAAO,OAAO,KAAG,MACe,CAAA;AAgB3D;;;GAGG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,MAAM,GAAG,SAS5D,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,IAAI,CAAA;AAE3D,2DAA2D;AAC3D,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,KAAG,MAIlD,CAAA;AAEb;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,SAAS,GAAG,KAAK,CAAC,EAAE,KAAG,MACE,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MarkedExtension } from '../marked';
|
|
2
|
+
import { type RendererOptions } from './renderer';
|
|
3
|
+
export type { DirectiveToken } from './tokenizer';
|
|
4
|
+
export type { RendererOptions } from './renderer';
|
|
5
|
+
/**
|
|
6
|
+
* The `:::name` syntax, as a marked extension.
|
|
7
|
+
*
|
|
8
|
+
* Both levels register under the same name because marked looks the renderer up
|
|
9
|
+
* by the token type, so a second name would mean a second renderer saying the
|
|
10
|
+
* same thing.
|
|
11
|
+
*/
|
|
12
|
+
export declare const directiveExtension: (options: RendererOptions) => MarkedExtension;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/marked/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAU,MAAM,QAAQ,CAAA;AACrD,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAA;AASpE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAEjD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,eAAe,KACvB,eAsBD,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const CONTAINER = "container";
|
|
2
|
+
export declare const LEAF = "leaf";
|
|
3
|
+
export declare const TEXT = "text";
|
|
4
|
+
export type DirectiveKind = typeof CONTAINER | typeof LEAF | typeof TEXT;
|
|
5
|
+
/** The one directive whose name carries a number. Shared with the renderer. */
|
|
6
|
+
export declare const GRID_RE: RegExp;
|
|
7
|
+
export declare const isKnown: (name: string, kind: DirectiveKind) => boolean;
|
|
8
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/marked/registry.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,cAAc,CAAA;AACpC,eAAO,MAAM,IAAI,SAAS,CAAA;AAC1B,eAAO,MAAM,IAAI,SAAS,CAAA;AAE1B,MAAM,MAAM,aAAa,GAAG,OAAO,SAAS,GAAG,OAAO,IAAI,GAAG,OAAO,IAAI,CAAA;AAyBxE,+EAA+E;AAC/E,eAAO,MAAM,OAAO,QAAiC,CAAA;AAErD,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,EAAE,MAAM,aAAa,KAAG,OACmB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DirectiveToken } from './tokenizer';
|
|
2
|
+
import { type Parser, type RendererOptions } from './directives';
|
|
3
|
+
/**
|
|
4
|
+
* Builds what a directive renderer is given, then hands the token to the one
|
|
5
|
+
* that knows it. The renderers themselves live in `directives/`, a file to a
|
|
6
|
+
* feature: `card.ts` holds the card and everything written inside one, because
|
|
7
|
+
* a title has to know whether the card gave it an href.
|
|
8
|
+
*
|
|
9
|
+
* A name with no renderer falls through to its own children, which is what a
|
|
10
|
+
* directive the registry allows but nobody has drawn yet looks like.
|
|
11
|
+
*/
|
|
12
|
+
export declare function directiveRenderer(this: {
|
|
13
|
+
parser: Parser;
|
|
14
|
+
}, token: DirectiveToken, options: RendererOptions): string;
|
|
15
|
+
export type { RendererOptions } from './directives';
|
|
16
|
+
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/marked/renderer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,eAAe,EACrB,MAAM,cAAc,CAAA;AAErB;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EACxB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,eAAe,GACvB,MAAM,CAyBR;AAED,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Token, Tokens } from '../marked';
|
|
2
|
+
import { type Attrs } from './attributes';
|
|
3
|
+
import { type DirectiveKind } from './registry';
|
|
4
|
+
export interface DirectiveToken extends Tokens.Generic {
|
|
5
|
+
type: 'directive';
|
|
6
|
+
kind: DirectiveKind;
|
|
7
|
+
name: string;
|
|
8
|
+
attrs: Attrs;
|
|
9
|
+
tokens: Token[];
|
|
10
|
+
raw: string;
|
|
11
|
+
/** A link card puts its href on the title; the tokenizer copies it down. */
|
|
12
|
+
inherited?: {
|
|
13
|
+
behavior: 'link';
|
|
14
|
+
href: string;
|
|
15
|
+
};
|
|
16
|
+
/** Set on a card once it is known to have a title to put its link on. */
|
|
17
|
+
linked?: boolean;
|
|
18
|
+
/** Set on a grid of cards, and on each of the cards in it. */
|
|
19
|
+
listed?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* marked passes src.slice(1) to start() and clips the paragraph it was about to
|
|
23
|
+
* take at the returned index plus one, so what is wanted here is the position of
|
|
24
|
+
* the newline before the directive. Without it a directive following a
|
|
25
|
+
* paragraph is swallowed by that paragraph.
|
|
26
|
+
*/
|
|
27
|
+
export declare const blockStart: (src: string) => number | undefined;
|
|
28
|
+
export declare const inlineStart: (src: string) => number | undefined;
|
|
29
|
+
export declare function blockTokenizer(this: {
|
|
30
|
+
lexer: {
|
|
31
|
+
blockTokens: (src: string) => Token[];
|
|
32
|
+
inline: (src: string, tokens: Token[]) => void;
|
|
33
|
+
};
|
|
34
|
+
}, src: string): DirectiveToken | undefined;
|
|
35
|
+
export declare function inlineTokenizer(this: {
|
|
36
|
+
lexer: {
|
|
37
|
+
inlineTokens: (src: string) => Token[];
|
|
38
|
+
};
|
|
39
|
+
}, src: string): DirectiveToken | undefined;
|
|
40
|
+
//# sourceMappingURL=tokenizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokenizer.d.ts","sourceRoot":"","sources":["../../../src/marked/tokenizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,cAAc,CAAA;AACnD,OAAO,EAAa,KAAK,aAAa,EAAuB,MAAM,YAAY,CAAA;AAE/E,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,OAAO;IACpD,IAAI,EAAE,WAAW,CAAA;IACjB,IAAI,EAAE,aAAa,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;IACZ,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,4EAA4E;IAC5E,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IAC9C,yEAAyE;IACzE,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AA4BD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAGjD,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,SAGlD,CAAA;AA+CD,wBAAgB,cAAc,CAC5B,IAAI,EAAE;IACJ,KAAK,EAAE;QACL,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,KAAK,EAAE,CAAA;QACrC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,IAAI,CAAA;KAC/C,CAAA;CACF,EACD,GAAG,EAAE,MAAM,GACV,cAAc,GAAG,SAAS,CAsC5B;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE;IAAE,KAAK,EAAE;QAAE,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,KAAK,EAAE,CAAA;KAAE,CAAA;CAAE,EAC3D,GAAG,EAAE,MAAM,GACV,cAAc,GAAG,SAAS,CAiB5B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type HeadingItem } from './decorate';
|
|
2
|
+
export type { HeadingItem } from './decorate';
|
|
3
|
+
export type RenderOptions = {
|
|
4
|
+
/** Moves every heading down by this many levels, as rehype-shift-heading did. */
|
|
5
|
+
shiftHeading?: number;
|
|
6
|
+
/** How deep the table of contents goes. Headings below this are still rendered. */
|
|
7
|
+
tocMaxDepth?: number;
|
|
8
|
+
};
|
|
9
|
+
export type RenderResult = {
|
|
10
|
+
html: string;
|
|
11
|
+
headings: HeadingItem[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Markdown to HTML, in three steps: marked writes the markup, DOMPurify takes
|
|
15
|
+
* out what must not reach the DOM, and decorate puts the design system on what
|
|
16
|
+
* is left.
|
|
17
|
+
*
|
|
18
|
+
* Styling last is what lets a table written as raw HTML look like one written
|
|
19
|
+
* with pipes, and it is why the heading ids are generated in one place.
|
|
20
|
+
*/
|
|
21
|
+
export declare const render: (markdown: string, options?: RenderOptions) => RenderResult;
|
|
22
|
+
//# sourceMappingURL=render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/render.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,YAAY,CAAA;AAIvD,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,MAAM,aAAa,GAAG;IAC1B,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,WAAW,EAAE,CAAA;CACxB,CAAA;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,GACjB,UAAU,MAAM,EAChB,UAAS,aAAkB,KAC1B,YAsBF,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a fragment rather than a string: the caller has to walk the result to
|
|
3
|
+
* put the design system on it, and going back through the parser would only
|
|
4
|
+
* throw away what has just been built.
|
|
5
|
+
*/
|
|
6
|
+
export declare const sanitize: (html: string) => DocumentFragment;
|
|
7
|
+
export declare const __testing: {
|
|
8
|
+
filterStyle: (style: string) => string;
|
|
9
|
+
ALLOWED_CSS_PROPERTIES: Set<string>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=sanitize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../src/sanitize.ts"],"names":[],"mappings":"AAkLA;;;;GAIG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,KAAG,gBAQvC,CAAA;AAED,eAAO,MAAM,SAAS;yBAlGM,MAAM,KAAG,MAAM;;CAkGqB,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Resolve $0 through symlinks so basedir is the shim's real directory.
|
|
3
|
+
# Cap hops at the kernel's ELOOP limit so a cycle cannot hang the shim.
|
|
4
|
+
link="$0"
|
|
5
|
+
hops=0
|
|
6
|
+
while [ -L "$link" ] && [ "$hops" -lt 40 ]; do
|
|
7
|
+
hops=$((hops+1))
|
|
8
|
+
target=$(readlink "$link")
|
|
9
|
+
case "$target" in
|
|
10
|
+
/*) link="$target" ;;
|
|
11
|
+
*) link="$(dirname "$link")/$target" ;;
|
|
12
|
+
esac
|
|
13
|
+
done
|
|
14
|
+
basedir=$(dirname "$(echo "$link" | sed -e 's,\\,/,g')")
|
|
15
|
+
basedir_win="$basedir"
|
|
16
|
+
exe=""
|
|
17
|
+
msys=""
|
|
18
|
+
|
|
19
|
+
case `uname -a` in
|
|
20
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
21
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
22
|
+
basedir_win=`cygpath -w "$basedir"`
|
|
23
|
+
fi
|
|
24
|
+
exe=".exe"
|
|
25
|
+
msys="true"
|
|
26
|
+
;;
|
|
27
|
+
*WSL2*)
|
|
28
|
+
if command -v wslpath > /dev/null 2>&1; then
|
|
29
|
+
basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
|
|
30
|
+
if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
|
|
31
|
+
basedir_win="$basedir"
|
|
32
|
+
else
|
|
33
|
+
exe=".exe"
|
|
34
|
+
fi
|
|
35
|
+
fi
|
|
36
|
+
;;
|
|
37
|
+
esac
|
|
38
|
+
|
|
39
|
+
if [ -z "$NODE_PATH" ]; then
|
|
40
|
+
export NODE_PATH="/home/runner/work/sakura-ui/sakura-ui/node_modules/.pnpm/marked@18.0.10/node_modules/marked/node_modules:/home/runner/work/sakura-ui/sakura-ui/node_modules/.pnpm/marked@18.0.10/node_modules:/home/runner/work/sakura-ui/sakura-ui/node_modules/.pnpm/node_modules"
|
|
41
|
+
else
|
|
42
|
+
export NODE_PATH="/home/runner/work/sakura-ui/sakura-ui/node_modules/.pnpm/marked@18.0.10/node_modules/marked/node_modules:/home/runner/work/sakura-ui/sakura-ui/node_modules/.pnpm/marked@18.0.10/node_modules:/home/runner/work/sakura-ui/sakura-ui/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
43
|
+
fi
|
|
44
|
+
if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
|
|
45
|
+
exec "$basedir/node.exe" "$basedir_win/../marked/bin/marked.js" "$@"
|
|
46
|
+
elif [ -x "$basedir/node" ]; then
|
|
47
|
+
exec "$basedir/node" "$basedir/../marked/bin/marked.js" "$@"
|
|
48
|
+
elif command -v node >/dev/null 2>&1; then
|
|
49
|
+
exec node "$basedir/../marked/bin/marked.js" "$@"
|
|
50
|
+
elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
|
|
51
|
+
exec node.exe "$basedir_win/../marked/bin/marked.js" "$@"
|
|
52
|
+
else
|
|
53
|
+
exec node "$basedir/../marked/bin/marked.js" "$@"
|
|
54
|
+
fi
|
|
55
|
+
# cmd-shim-target=/home/runner/work/sakura-ui/sakura-ui/packages/markdown/node_modules/marked/bin/marked.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sakura-ui/markdown",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown"
|
|
@@ -38,34 +38,20 @@
|
|
|
38
38
|
"build": "run-p build:*",
|
|
39
39
|
"build:scripts": "vite build",
|
|
40
40
|
"build:types": "tsc && tsc-alias",
|
|
41
|
-
"test": "vitest run --passWithNoTests",
|
|
41
|
+
"test": "tsc -p tsconfig.test.json && vitest run --passWithNoTests",
|
|
42
42
|
"test:watch": "vitest"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@sakura-ui/core": "^0.5.
|
|
45
|
+
"@sakura-ui/core": "^0.5.2",
|
|
46
46
|
"react": "^19.2.1",
|
|
47
47
|
"react-dom": "^19.2.1",
|
|
48
48
|
"tailwindcss": "^4.1.17"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@sakura-ui/helper": "workspace:*",
|
|
52
|
+
"dompurify": "^3.2.7",
|
|
52
53
|
"github-slugger": "^2.0.0",
|
|
53
|
-
"
|
|
54
|
-
"mdast-util-directive": "^3.1.0",
|
|
55
|
-
"mdast-util-to-string": "^4.0.0",
|
|
56
|
-
"rehype-external-links": "^3.0.0",
|
|
57
|
-
"rehype-raw": "^7.0.0",
|
|
58
|
-
"rehype-react": "^8.0.0",
|
|
59
|
-
"rehype-shift-heading": "^2.0.0",
|
|
60
|
-
"rehype-slug": "^6.0.0",
|
|
61
|
-
"remark": "^15.0.1",
|
|
62
|
-
"remark-breaks": "^4.0.0",
|
|
63
|
-
"remark-directive": "^3.0.1",
|
|
64
|
-
"remark-gfm": "^4.0.1",
|
|
65
|
-
"remark-parse": "^11.0.0",
|
|
66
|
-
"remark-rehype": "^11.1.2",
|
|
67
|
-
"unified": "^11.0.5",
|
|
68
|
-
"unist-util-visit": "^5.1.0"
|
|
54
|
+
"marked": "^18.0.10"
|
|
69
55
|
},
|
|
70
56
|
"devDependencies": {
|
|
71
57
|
"@sakura-ui/core": "workspace:*",
|
|
@@ -77,6 +63,7 @@
|
|
|
77
63
|
"@types/unist": "^3.0.3",
|
|
78
64
|
"autoprefixer": "catalog:",
|
|
79
65
|
"happy-dom": "catalog:",
|
|
66
|
+
"jsdom": "^30.0.1",
|
|
80
67
|
"postcss": "catalog:",
|
|
81
68
|
"react": "catalog:",
|
|
82
69
|
"react-dom": "catalog:",
|