@gild-ui/vue-markdown 0.0.0-stage → 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +71 -2
- package/dist/CodeBlock-C-5omHoJ.mjs +216 -0
- package/dist/CodeBlock-NGTCYbfS.cjs +245 -0
- package/dist/CodeBlock.cjs +5 -0
- package/dist/CodeBlock.d.cts +2 -0
- package/dist/CodeBlock.d.mts +2 -0
- package/dist/CodeBlock.mjs +1 -0
- package/dist/Preview-CDeDFn2m.mjs +530 -0
- package/dist/Preview-D5Xn7LOO.cjs +561 -0
- package/dist/Preview.cjs +3 -0
- package/dist/Preview.d.cts +2 -0
- package/dist/Preview.d.mts +2 -0
- package/dist/Preview.mjs +1 -0
- package/dist/index-B5H8ATjj.d.cts +71 -0
- package/dist/index-B8VJeFJ1.d.cts +81 -0
- package/dist/index-DTkt5qf4.d.mts +82 -0
- package/dist/index-KyNhFQ61.d.mts +71 -0
- package/dist/index.cjs +7 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +110 -3
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { n as CodeBlockProps } from "./index-B5H8ATjj.cjs";
|
|
2
|
+
import { SlotProps, StyleOverride } from "@gild-ui/vue";
|
|
3
|
+
import { SlotsType, VNodeChild } from "vue";
|
|
4
|
+
import { ViewProps } from "@gild-ui/vue/View";
|
|
5
|
+
import { TypographyProps } from "@gild-ui/vue/Typography";
|
|
6
|
+
type CellAlign = 'left' | 'center' | 'right';
|
|
7
|
+
type LinkUnderline = 'always' | 'hover' | 'none';
|
|
8
|
+
/** The props of a link: those of `Typography`, the attributes of an anchor, and how it is underlined. */
|
|
9
|
+
type LinkProps = TypographyProps & {
|
|
10
|
+
href?: string;
|
|
11
|
+
target?: string;
|
|
12
|
+
rel?: string;
|
|
13
|
+
underline?: LinkUnderline;
|
|
14
|
+
};
|
|
15
|
+
/** The props of an image. */
|
|
16
|
+
type ImageProps = ViewProps & {
|
|
17
|
+
src?: string;
|
|
18
|
+
alt?: string;
|
|
19
|
+
};
|
|
20
|
+
/** The props of a table cell, with the alignment of its column. */
|
|
21
|
+
type TableCellProps = ViewProps & {
|
|
22
|
+
align?: CellAlign;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Per-element prop overrides, merged over the defaults (the caller's props win). Keyed by markdown
|
|
26
|
+
* element - e.g. `:slot-props="{ p: { color: 'primary' }, h1: { variant: 'h2' } }"` - and by the one slot
|
|
27
|
+
* a theme can style, `root`, which takes a `style`, a `className` and `data-*` and `aria-*` attributes.
|
|
28
|
+
* No markdown element is named `root`. Mermaid diagrams are not in this release, so there is no `mermaid`.
|
|
29
|
+
*/
|
|
30
|
+
interface PreviewSlotProps extends SlotProps<'root'> {
|
|
31
|
+
h1?: TypographyProps;
|
|
32
|
+
h2?: TypographyProps;
|
|
33
|
+
h3?: TypographyProps;
|
|
34
|
+
h4?: TypographyProps;
|
|
35
|
+
h5?: TypographyProps;
|
|
36
|
+
h6?: TypographyProps;
|
|
37
|
+
p?: TypographyProps;
|
|
38
|
+
strong?: TypographyProps;
|
|
39
|
+
em?: TypographyProps;
|
|
40
|
+
li?: TypographyProps;
|
|
41
|
+
code?: TypographyProps;
|
|
42
|
+
a?: LinkProps;
|
|
43
|
+
ul?: ViewProps;
|
|
44
|
+
ol?: ViewProps;
|
|
45
|
+
hr?: ViewProps;
|
|
46
|
+
blockquote?: ViewProps;
|
|
47
|
+
img?: ImageProps;
|
|
48
|
+
th?: TableCellProps;
|
|
49
|
+
td?: TableCellProps;
|
|
50
|
+
pre?: CodeBlockProps;
|
|
51
|
+
input?: ViewProps;
|
|
52
|
+
table?: ViewProps;
|
|
53
|
+
thead?: ViewProps;
|
|
54
|
+
tbody?: ViewProps;
|
|
55
|
+
tr?: ViewProps;
|
|
56
|
+
}
|
|
57
|
+
/** The props of `Preview`: the markdown source is the default slot. */
|
|
58
|
+
interface PreviewProps {
|
|
59
|
+
/** Per-element prop overrides, merged over the defaults. */
|
|
60
|
+
slotProps?: PreviewSlotProps;
|
|
61
|
+
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
62
|
+
style?: StyleOverride;
|
|
63
|
+
}
|
|
64
|
+
/** The slots of the `Preview` component: the markdown source, as text. */
|
|
65
|
+
interface PreviewSlots {
|
|
66
|
+
default?: () => VNodeChild;
|
|
67
|
+
}
|
|
68
|
+
/** The props of `Preview`. The markdown source is the default slot. */
|
|
69
|
+
interface PreviewProps {
|
|
70
|
+
/** Per-element prop overrides, merged over the defaults. */
|
|
71
|
+
slotProps?: PreviewSlotProps;
|
|
72
|
+
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
73
|
+
style?: StyleOverride;
|
|
74
|
+
}
|
|
75
|
+
/** The slots of the `Preview` component: the markdown source, as text. */
|
|
76
|
+
interface PreviewSlots {
|
|
77
|
+
default?: () => VNodeChild;
|
|
78
|
+
}
|
|
79
|
+
/** Renders a markdown string - the default slot - with every element drawn by a primitive of the design system. */
|
|
80
|
+
declare const Preview: import("vue").DefineSetupFnComponent<PreviewProps, Record<never, never>, SlotsType<PreviewSlots>, PreviewProps & {}, import("vue").PublicProps>;
|
|
81
|
+
export { PreviewSlotProps as a, PreviewProps as i, ImageProps as n, PreviewSlots as o, LinkProps as r, TableCellProps as s, Preview as t };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { n as CodeBlockProps } from "./index-KyNhFQ61.mjs";
|
|
2
|
+
import { SlotsType, VNodeChild } from "vue";
|
|
3
|
+
import { SlotProps, StyleOverride } from "@gild-ui/vue";
|
|
4
|
+
import { ViewProps } from "@gild-ui/vue/View";
|
|
5
|
+
import { TypographyProps } from "@gild-ui/vue/Typography";
|
|
6
|
+
import "hast";
|
|
7
|
+
type CellAlign = 'left' | 'center' | 'right';
|
|
8
|
+
type LinkUnderline = 'always' | 'hover' | 'none';
|
|
9
|
+
/** The props of a link: those of `Typography`, the attributes of an anchor, and how it is underlined. */
|
|
10
|
+
type LinkProps = TypographyProps & {
|
|
11
|
+
href?: string;
|
|
12
|
+
target?: string;
|
|
13
|
+
rel?: string;
|
|
14
|
+
underline?: LinkUnderline;
|
|
15
|
+
};
|
|
16
|
+
/** The props of an image. */
|
|
17
|
+
type ImageProps = ViewProps & {
|
|
18
|
+
src?: string;
|
|
19
|
+
alt?: string;
|
|
20
|
+
};
|
|
21
|
+
/** The props of a table cell, with the alignment of its column. */
|
|
22
|
+
type TableCellProps = ViewProps & {
|
|
23
|
+
align?: CellAlign;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Per-element prop overrides, merged over the defaults (the caller's props win). Keyed by markdown
|
|
27
|
+
* element - e.g. `:slot-props="{ p: { color: 'primary' }, h1: { variant: 'h2' } }"` - and by the one slot
|
|
28
|
+
* a theme can style, `root`, which takes a `style`, a `className` and `data-*` and `aria-*` attributes.
|
|
29
|
+
* No markdown element is named `root`. Mermaid diagrams are not in this release, so there is no `mermaid`.
|
|
30
|
+
*/
|
|
31
|
+
interface PreviewSlotProps extends SlotProps<'root'> {
|
|
32
|
+
h1?: TypographyProps;
|
|
33
|
+
h2?: TypographyProps;
|
|
34
|
+
h3?: TypographyProps;
|
|
35
|
+
h4?: TypographyProps;
|
|
36
|
+
h5?: TypographyProps;
|
|
37
|
+
h6?: TypographyProps;
|
|
38
|
+
p?: TypographyProps;
|
|
39
|
+
strong?: TypographyProps;
|
|
40
|
+
em?: TypographyProps;
|
|
41
|
+
li?: TypographyProps;
|
|
42
|
+
code?: TypographyProps;
|
|
43
|
+
a?: LinkProps;
|
|
44
|
+
ul?: ViewProps;
|
|
45
|
+
ol?: ViewProps;
|
|
46
|
+
hr?: ViewProps;
|
|
47
|
+
blockquote?: ViewProps;
|
|
48
|
+
img?: ImageProps;
|
|
49
|
+
th?: TableCellProps;
|
|
50
|
+
td?: TableCellProps;
|
|
51
|
+
pre?: CodeBlockProps;
|
|
52
|
+
input?: ViewProps;
|
|
53
|
+
table?: ViewProps;
|
|
54
|
+
thead?: ViewProps;
|
|
55
|
+
tbody?: ViewProps;
|
|
56
|
+
tr?: ViewProps;
|
|
57
|
+
}
|
|
58
|
+
/** The props of `Preview`: the markdown source is the default slot. */
|
|
59
|
+
interface PreviewProps {
|
|
60
|
+
/** Per-element prop overrides, merged over the defaults. */
|
|
61
|
+
slotProps?: PreviewSlotProps;
|
|
62
|
+
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
63
|
+
style?: StyleOverride;
|
|
64
|
+
}
|
|
65
|
+
/** The slots of the `Preview` component: the markdown source, as text. */
|
|
66
|
+
interface PreviewSlots {
|
|
67
|
+
default?: () => VNodeChild;
|
|
68
|
+
}
|
|
69
|
+
/** The props of `Preview`. The markdown source is the default slot. */
|
|
70
|
+
interface PreviewProps {
|
|
71
|
+
/** Per-element prop overrides, merged over the defaults. */
|
|
72
|
+
slotProps?: PreviewSlotProps;
|
|
73
|
+
/** Overrides the CSS of the root: an entry of `StyleSheet.create`, or a list of them. It wins over `slotProps.root.style`. */
|
|
74
|
+
style?: StyleOverride;
|
|
75
|
+
}
|
|
76
|
+
/** The slots of the `Preview` component: the markdown source, as text. */
|
|
77
|
+
interface PreviewSlots {
|
|
78
|
+
default?: () => VNodeChild;
|
|
79
|
+
}
|
|
80
|
+
/** Renders a markdown string - the default slot - with every element drawn by a primitive of the design system. */
|
|
81
|
+
declare const Preview: import("vue").DefineSetupFnComponent<PreviewProps, Record<never, never>, SlotsType<PreviewSlots>, PreviewProps & {}, import("vue").PublicProps>;
|
|
82
|
+
export { PreviewSlotProps as a, PreviewProps as i, ImageProps as n, PreviewSlots as o, LinkProps as r, TableCellProps as s, Preview as t };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { SlotsType, VNodeChild } from "vue";
|
|
2
|
+
import { ComponentConfig, SlotProps } from "@gild-ui/vue";
|
|
3
|
+
import { ViewProps } from "@gild-ui/vue/View";
|
|
4
|
+
/**
|
|
5
|
+
* Syntax-highlighting tokens for `CodeBlock` - mapped onto highlight.js token classes.
|
|
6
|
+
* Not part of design-system's own scales; `../themeTypes.ts` augments
|
|
7
|
+
* `@gild-ui/core/theme` so `theme.syntax` is available wherever this
|
|
8
|
+
* package is imported. Merge one of the presets below into your theme via
|
|
9
|
+
* `createTheme(baseTheme, { syntax: syntaxDark })`, or supply your own.
|
|
10
|
+
*/
|
|
11
|
+
interface ThemeSyntax {
|
|
12
|
+
/** Default code text - plain identifiers, operators, punctuation. */
|
|
13
|
+
base: string;
|
|
14
|
+
/** Keywords, built-ins, types, literals, selector tags. */
|
|
15
|
+
keyword: string;
|
|
16
|
+
/** Strings, template literals, regular expressions. */
|
|
17
|
+
string: string;
|
|
18
|
+
/** Numbers, symbols, links. */
|
|
19
|
+
number: string;
|
|
20
|
+
/** Function / class titles, section headings, attributes. */
|
|
21
|
+
title: string;
|
|
22
|
+
/** Fields, constants, and property keys. */
|
|
23
|
+
constant: string;
|
|
24
|
+
/** Type and class names. */
|
|
25
|
+
type: string;
|
|
26
|
+
/** Comments and quotes - rendered dimmed and italic. */
|
|
27
|
+
comment: string;
|
|
28
|
+
/** Markup tags/names, meta, variables, deletions. */
|
|
29
|
+
tag: string;
|
|
30
|
+
/** Font family for the code surface - independent of `theme.fonts.mono`. */
|
|
31
|
+
font: string;
|
|
32
|
+
}
|
|
33
|
+
/** Matched to the JetBrains "Islands Dark" editor scheme. */
|
|
34
|
+
declare const syntaxDark: ThemeSyntax;
|
|
35
|
+
/** Matched to the JetBrains "Islands Light" editor scheme. */
|
|
36
|
+
declare const syntaxLight: ThemeSyntax;
|
|
37
|
+
/** The slots of `CodeBlock` a theme can style, and `slotProps` can override. */
|
|
38
|
+
type CodeBlockSlot = 'root' | 'surface';
|
|
39
|
+
declare module '@gild-ui/vue' {
|
|
40
|
+
interface ThemeComponents {
|
|
41
|
+
MarkdownPreview?: ComponentConfig;
|
|
42
|
+
CodeBlock?: ComponentConfig<Record<string, unknown>, CodeBlockSlot>;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
declare module '@gild-ui/core/theme' {
|
|
46
|
+
interface Theme {
|
|
47
|
+
/**
|
|
48
|
+
* Syntax-highlighting tokens for `CodeBlock` - see `syntaxDark`/`syntaxLight`. Optional only so the
|
|
49
|
+
* base theme still satisfies `Theme`; `CodeBlock` requires it in practice (no fallback).
|
|
50
|
+
*/
|
|
51
|
+
syntax?: ThemeSyntax;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** The props of `CodeBlock`: those of `View`, and the slots a theme can style. */
|
|
55
|
+
type CodeBlockProps = Omit<ViewProps, 'slotProps'> & {
|
|
56
|
+
/** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
57
|
+
slotProps?: SlotProps<CodeBlockSlot>;
|
|
58
|
+
};
|
|
59
|
+
/** The slots of the `CodeBlock` component: the code. */
|
|
60
|
+
interface CodeBlockSlots {
|
|
61
|
+
default?: () => VNodeChild;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Fenced-code block: a horizontally scrollable, syntax-highlighted surface with a copy-to-clipboard
|
|
65
|
+
* button that sticks to the top-right while the block is in view.
|
|
66
|
+
*/
|
|
67
|
+
declare const CodeBlock: import("vue").DefineSetupFnComponent<CodeBlockProps, Record<never, never>, SlotsType<CodeBlockSlots>, Omit<ViewProps, "slotProps"> & {
|
|
68
|
+
/** Overrides for the slots a theme can style: `style`, `className`, `data-*` and `aria-*`. */
|
|
69
|
+
slotProps?: SlotProps<CodeBlockSlot>;
|
|
70
|
+
} & {}, import("vue").PublicProps>;
|
|
71
|
+
export { ThemeSyntax as a, CodeBlockSlot as i, CodeBlockProps as n, syntaxDark as o, CodeBlockSlots as r, syntaxLight as s, CodeBlock as t };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_Preview = require("./Preview-D5Xn7LOO.cjs");
|
|
3
|
+
const require_CodeBlock = require("./CodeBlock-NGTCYbfS.cjs");
|
|
4
|
+
exports.CodeBlock = require_CodeBlock.CodeBlock;
|
|
5
|
+
exports.Preview = require_Preview.Preview;
|
|
6
|
+
exports.syntaxDark = require_CodeBlock.syntaxDark;
|
|
7
|
+
exports.syntaxLight = require_CodeBlock.syntaxLight;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as ThemeSyntax, i as CodeBlockSlot, n as CodeBlockProps, o as syntaxDark, r as CodeBlockSlots, s as syntaxLight, t as CodeBlock } from "./index-B5H8ATjj.cjs";
|
|
2
|
+
import { a as PreviewSlotProps, i as PreviewProps, n as ImageProps, o as PreviewSlots, r as LinkProps, s as TableCellProps, t as Preview } from "./index-B8VJeFJ1.cjs";
|
|
3
|
+
export { CodeBlock, CodeBlockProps, type CodeBlockSlot, CodeBlockSlots, type ImageProps, type LinkProps, Preview, type PreviewProps, type PreviewSlotProps, type PreviewSlots, type TableCellProps, ThemeSyntax, syntaxDark, syntaxLight };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { a as ThemeSyntax, i as CodeBlockSlot, n as CodeBlockProps, o as syntaxDark, r as CodeBlockSlots, s as syntaxLight, t as CodeBlock } from "./index-KyNhFQ61.mjs";
|
|
2
|
+
import { a as PreviewSlotProps, i as PreviewProps, n as ImageProps, o as PreviewSlots, r as LinkProps, s as TableCellProps, t as Preview } from "./index-DTkt5qf4.mjs";
|
|
3
|
+
export { CodeBlock, CodeBlockProps, type CodeBlockSlot, CodeBlockSlots, type ImageProps, type LinkProps, Preview, type PreviewProps, type PreviewSlotProps, type PreviewSlots, type TableCellProps, ThemeSyntax, syntaxDark, syntaxLight };
|
package/dist/index.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,113 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gild-ui/vue-markdown",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0-alpha.0",
|
|
4
|
+
"description": "The markdown viewer of Gild UI for Vue, with the names, props and theme of @gild-ui/react-markdown - Preview and CodeBlock.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"markdown",
|
|
7
|
+
"renderer",
|
|
8
|
+
"vue",
|
|
9
|
+
"vue3",
|
|
10
|
+
"design-system",
|
|
11
|
+
"remark",
|
|
12
|
+
"rehype",
|
|
13
|
+
"typescript"
|
|
14
|
+
],
|
|
15
|
+
"author": "Masoud Soroush <masoud@soroush.tech>",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"homepage": "https://gild-ui.soroush.design/vue/markdown/",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/soroush-tech/gild-ui.git",
|
|
21
|
+
"directory": "packages/vue-markdown"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/soroush-tech/gild-ui/issues"
|
|
25
|
+
},
|
|
26
|
+
"type": "module",
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/index.d.mts",
|
|
35
|
+
"default": "./dist/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/index.d.cts",
|
|
39
|
+
"default": "./dist/index.cjs"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"./CodeBlock": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/CodeBlock.d.mts",
|
|
45
|
+
"default": "./dist/CodeBlock.mjs"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/CodeBlock.d.cts",
|
|
49
|
+
"default": "./dist/CodeBlock.cjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"./Preview": {
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/Preview.d.mts",
|
|
55
|
+
"default": "./dist/Preview.mjs"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./dist/Preview.d.cts",
|
|
59
|
+
"default": "./dist/Preview.cjs"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@soroush.tech/styled-system": "6.1.0",
|
|
68
|
+
"@types/hast": "^3.0.4",
|
|
69
|
+
"property-information": "^7.2.0",
|
|
70
|
+
"rehype-highlight": "^7.0.2",
|
|
71
|
+
"rehype-slug": "^6.0.0",
|
|
72
|
+
"remark-gfm": "^4.0.1",
|
|
73
|
+
"remark-parse": "^11.0.0",
|
|
74
|
+
"remark-rehype": "^11.1.2",
|
|
75
|
+
"unified": "^11.0.5",
|
|
76
|
+
"@gild-ui/core": "^0.1.0-alpha.1"
|
|
77
|
+
},
|
|
78
|
+
"peerDependencies": {
|
|
79
|
+
"@gild-ui/vue": "^0.1.0",
|
|
80
|
+
"vue": "^3.5.0"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@types/node": "^26.6.11",
|
|
84
|
+
"@types/react": "^19.3.3",
|
|
85
|
+
"@types/react-dom": "^19.3.0",
|
|
86
|
+
"@umber-style/vue": "0.9.3",
|
|
87
|
+
"@vitest/coverage-v8": "^5.1.2",
|
|
88
|
+
"@vue/test-utils": "^2.6.0",
|
|
89
|
+
"jsdom": "^31.0.1",
|
|
90
|
+
"oxlint": "^1.96.0",
|
|
91
|
+
"react": "^19.3.1",
|
|
92
|
+
"react-dom": "^19.3.1",
|
|
93
|
+
"tsdown": "^0.23.7",
|
|
94
|
+
"typescript": "~7.0.2",
|
|
95
|
+
"vitest": "^5.1.2",
|
|
96
|
+
"vue": "^3.5.46",
|
|
97
|
+
"@gild-ui/react": "0.1.0-alpha.1",
|
|
98
|
+
"@gild-ui/vue": "0.1.0-alpha.0",
|
|
99
|
+
"@gild-ui/react-markdown": "0.1.0-alpha.1",
|
|
100
|
+
"@soroush.tech/eslint-config": "0.0.0"
|
|
101
|
+
},
|
|
102
|
+
"scripts": {
|
|
103
|
+
"build": "tsdown",
|
|
104
|
+
"lint": "oxlint --deny-warnings",
|
|
105
|
+
"typecheck": "tsc --noEmit",
|
|
106
|
+
"test": "vitest run",
|
|
107
|
+
"test:coverage": "vitest run --coverage",
|
|
108
|
+
"test:types": "pnpm --filter @gild-ui/core build && pnpm --filter @gild-ui/hooks build && pnpm --filter @gild-ui/react build && pnpm --filter @gild-ui/react-markdown build && pnpm --filter @gild-ui/vue build && pnpm build && tsc -p type-tests/tsconfig.json"
|
|
109
|
+
},
|
|
110
|
+
"main": "./dist/index.cjs",
|
|
111
|
+
"module": "./dist/index.mjs",
|
|
112
|
+
"types": "./dist/index.d.mts"
|
|
6
113
|
}
|