@sit-onyx/comark 0.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.
- package/README.md +96 -0
- package/dist/components/comark.d.ts +378 -0
- package/dist/components/prose/ProseA.d.vue.ts +19 -0
- package/dist/components/prose/ProseBr.d.vue.ts +3 -0
- package/dist/components/prose/ProseCode.d.vue.ts +12 -0
- package/dist/components/prose/ProseDetails.d.vue.ts +12 -0
- package/dist/components/prose/ProseH1.d.vue.ts +15 -0
- package/dist/components/prose/ProseH2.d.vue.ts +15 -0
- package/dist/components/prose/ProseH3.d.vue.ts +15 -0
- package/dist/components/prose/ProseH4.d.vue.ts +15 -0
- package/dist/components/prose/ProseH5.d.vue.ts +15 -0
- package/dist/components/prose/ProseH6.d.vue.ts +15 -0
- package/dist/components/prose/ProseHr.d.vue.ts +3 -0
- package/dist/components/prose/ProseImg.d.vue.ts +12 -0
- package/dist/components/prose/ProseOl.d.vue.ts +12 -0
- package/dist/components/prose/ProseP.d.vue.ts +12 -0
- package/dist/components/prose/ProsePre.d.vue.ts +34 -0
- package/dist/components/prose/ProseSummary.d.vue.ts +12 -0
- package/dist/components/prose/ProseTable.d.vue.ts +12 -0
- package/dist/components/prose/ProseTbody.d.vue.ts +12 -0
- package/dist/components/prose/ProseThead.d.vue.ts +12 -0
- package/dist/components/prose/ProseUl.d.vue.ts +12 -0
- package/dist/components/prose/utils.d.ts +20 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +271 -0
- package/dist/style.css +2 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<div align="center" style="text-align: center">
|
|
2
|
+
<img alt="Onyx logo" src="https://raw.githubusercontent.com/SchwarzIT/onyx/main/packages/assets/src/onyx-brand/signet.svg" height="96px">
|
|
3
|
+
</div>
|
|
4
|
+
|
|
5
|
+
<br>
|
|
6
|
+
|
|
7
|
+
# @sit-onyx/comark
|
|
8
|
+
|
|
9
|
+
Render markdown content with [onyx](https://onyx.schwarz/) components.
|
|
10
|
+
|
|
11
|
+
It's a wrapper for the [@comark/vue](https://www.npmjs.com/package/@comark/vue) package using the onyx design system created by [Schwarz Digits](https://schwarz-digits.de).
|
|
12
|
+
|
|
13
|
+
For runtime parsing and rendering of markdown use the [`OnyxComark`](#onyxcomark) component.
|
|
14
|
+
Otherwise use the [`OnyxComarkRenderer`](#onyxcomarkrenderer) for server and build-time parsing with less client code required.
|
|
15
|
+
|
|
16
|
+
## Getting Started
|
|
17
|
+
|
|
18
|
+
### Step 1: Install package
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
pnpm add @sit-onyx/comark
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Step 2: Import styles
|
|
25
|
+
|
|
26
|
+
Import the CSS file, either globally or in a single component:
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
// make sure to import the MDC styles AFTER the general "sit-onyx" styles
|
|
30
|
+
// import "sit-onyx/style.css";
|
|
31
|
+
import "@sit-onyx/comark/style.css";
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## `OnyxComark`
|
|
35
|
+
|
|
36
|
+
Simple runtime parser and renderer component for markdown.
|
|
37
|
+
Just pass your markdown string:
|
|
38
|
+
|
|
39
|
+
```vue
|
|
40
|
+
<!-- App.vue -->
|
|
41
|
+
<script setup lang="ts">
|
|
42
|
+
import { OnyxComark } from "@sit-onyx/comark";
|
|
43
|
+
|
|
44
|
+
const content = `# Hello World
|
|
45
|
+
|
|
46
|
+
This is **markdown** with Comark components.
|
|
47
|
+
`;
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<template>
|
|
51
|
+
<!-- It is required to wrap OnyxComark in a Suspense block! -->
|
|
52
|
+
<Suspense>
|
|
53
|
+
<OnyxComark>{{ content }}</OnyxComark>
|
|
54
|
+
</Suspense>
|
|
55
|
+
</template>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
For more details check the [documentation for the `Comark` component](https://comark.dev/rendering/vue#code-comark).
|
|
59
|
+
|
|
60
|
+
## `OnyxComarkRenderer`
|
|
61
|
+
|
|
62
|
+
Renders a pre-parsed ComarkTree without any parsing. Use it when you parse on the server, in a build step, or via an API, so no parser or plugin code is shipped to the browser.
|
|
63
|
+
|
|
64
|
+
### 1. Parse on the server/buildtime
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
// server.ts
|
|
68
|
+
|
|
69
|
+
import { createParse } from "comark";
|
|
70
|
+
import { readFile } from "node:fs/promises";
|
|
71
|
+
|
|
72
|
+
const parse = createParse();
|
|
73
|
+
|
|
74
|
+
// In your server handler
|
|
75
|
+
export async function getContentTree(slug: string) {
|
|
76
|
+
const markdown = await readFile(`content/${slug}.md`, "utf-8");
|
|
77
|
+
return parse(markdown);
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 2. Render the parsed tree
|
|
82
|
+
|
|
83
|
+
```vue
|
|
84
|
+
<!-- ContentPage.vue -->
|
|
85
|
+
<script setup lang="ts">
|
|
86
|
+
import { OnyxComarkRenderer } from "@sit-onyx/comark";
|
|
87
|
+
const { slug } = defineProps<{ slug: string }>();
|
|
88
|
+
|
|
89
|
+
const res = await fetch(`/api/content/${slug}`);
|
|
90
|
+
const tree = await res.json();
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<template>
|
|
94
|
+
<OnyxComarkRenderer :tree="tree" />
|
|
95
|
+
</template>
|
|
96
|
+
```
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
export declare const components: {
|
|
2
|
+
a: {
|
|
3
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
4
|
+
href?: string;
|
|
5
|
+
target?: import('sit-onyx').LinkTarget;
|
|
6
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
7
|
+
href: string;
|
|
8
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
|
+
P: {};
|
|
10
|
+
B: {};
|
|
11
|
+
D: {};
|
|
12
|
+
C: {};
|
|
13
|
+
M: {};
|
|
14
|
+
Defaults: {};
|
|
15
|
+
}, Readonly<{
|
|
16
|
+
href?: string;
|
|
17
|
+
target?: import('sit-onyx').LinkTarget;
|
|
18
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
19
|
+
href: string;
|
|
20
|
+
}>;
|
|
21
|
+
__isFragment?: never;
|
|
22
|
+
__isTeleport?: never;
|
|
23
|
+
__isSuspense?: never;
|
|
24
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
25
|
+
href?: string;
|
|
26
|
+
target?: import('sit-onyx').LinkTarget;
|
|
27
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
28
|
+
href: string;
|
|
29
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
30
|
+
$slots: {
|
|
31
|
+
default(): unknown;
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
br: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
code: {
|
|
36
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
48
|
+
$slots: {
|
|
49
|
+
default(): unknown;
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
details: {
|
|
53
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
54
|
+
P: {};
|
|
55
|
+
B: {};
|
|
56
|
+
D: {};
|
|
57
|
+
C: {};
|
|
58
|
+
M: {};
|
|
59
|
+
Defaults: {};
|
|
60
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
61
|
+
__isFragment?: never;
|
|
62
|
+
__isTeleport?: never;
|
|
63
|
+
__isSuspense?: never;
|
|
64
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
65
|
+
$slots: {
|
|
66
|
+
default(): unknown;
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
h1: {
|
|
70
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
71
|
+
id?: string;
|
|
72
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
73
|
+
P: {};
|
|
74
|
+
B: {};
|
|
75
|
+
D: {};
|
|
76
|
+
C: {};
|
|
77
|
+
M: {};
|
|
78
|
+
Defaults: {};
|
|
79
|
+
}, Readonly<{
|
|
80
|
+
id?: string;
|
|
81
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
82
|
+
__isFragment?: never;
|
|
83
|
+
__isTeleport?: never;
|
|
84
|
+
__isSuspense?: never;
|
|
85
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
86
|
+
id?: string;
|
|
87
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
88
|
+
$slots: {
|
|
89
|
+
default(): unknown;
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
h2: {
|
|
93
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
94
|
+
id?: string;
|
|
95
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
96
|
+
P: {};
|
|
97
|
+
B: {};
|
|
98
|
+
D: {};
|
|
99
|
+
C: {};
|
|
100
|
+
M: {};
|
|
101
|
+
Defaults: {};
|
|
102
|
+
}, Readonly<{
|
|
103
|
+
id?: string;
|
|
104
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
105
|
+
__isFragment?: never;
|
|
106
|
+
__isTeleport?: never;
|
|
107
|
+
__isSuspense?: never;
|
|
108
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
109
|
+
id?: string;
|
|
110
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
111
|
+
$slots: {
|
|
112
|
+
default(): unknown;
|
|
113
|
+
};
|
|
114
|
+
});
|
|
115
|
+
h3: {
|
|
116
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
117
|
+
id?: string;
|
|
118
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
119
|
+
P: {};
|
|
120
|
+
B: {};
|
|
121
|
+
D: {};
|
|
122
|
+
C: {};
|
|
123
|
+
M: {};
|
|
124
|
+
Defaults: {};
|
|
125
|
+
}, Readonly<{
|
|
126
|
+
id?: string;
|
|
127
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
128
|
+
__isFragment?: never;
|
|
129
|
+
__isTeleport?: never;
|
|
130
|
+
__isSuspense?: never;
|
|
131
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
132
|
+
id?: string;
|
|
133
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
134
|
+
$slots: {
|
|
135
|
+
default(): unknown;
|
|
136
|
+
};
|
|
137
|
+
});
|
|
138
|
+
h4: {
|
|
139
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
140
|
+
id?: string;
|
|
141
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
142
|
+
P: {};
|
|
143
|
+
B: {};
|
|
144
|
+
D: {};
|
|
145
|
+
C: {};
|
|
146
|
+
M: {};
|
|
147
|
+
Defaults: {};
|
|
148
|
+
}, Readonly<{
|
|
149
|
+
id?: string;
|
|
150
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
151
|
+
__isFragment?: never;
|
|
152
|
+
__isTeleport?: never;
|
|
153
|
+
__isSuspense?: never;
|
|
154
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
155
|
+
id?: string;
|
|
156
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
157
|
+
$slots: {
|
|
158
|
+
default(): unknown;
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
h5: {
|
|
162
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
163
|
+
id?: string;
|
|
164
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
165
|
+
P: {};
|
|
166
|
+
B: {};
|
|
167
|
+
D: {};
|
|
168
|
+
C: {};
|
|
169
|
+
M: {};
|
|
170
|
+
Defaults: {};
|
|
171
|
+
}, Readonly<{
|
|
172
|
+
id?: string;
|
|
173
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
174
|
+
__isFragment?: never;
|
|
175
|
+
__isTeleport?: never;
|
|
176
|
+
__isSuspense?: never;
|
|
177
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
178
|
+
id?: string;
|
|
179
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
180
|
+
$slots: {
|
|
181
|
+
default(): unknown;
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
h6: {
|
|
185
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
186
|
+
id?: string;
|
|
187
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
188
|
+
P: {};
|
|
189
|
+
B: {};
|
|
190
|
+
D: {};
|
|
191
|
+
C: {};
|
|
192
|
+
M: {};
|
|
193
|
+
Defaults: {};
|
|
194
|
+
}, Readonly<{
|
|
195
|
+
id?: string;
|
|
196
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
197
|
+
__isFragment?: never;
|
|
198
|
+
__isTeleport?: never;
|
|
199
|
+
__isSuspense?: never;
|
|
200
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
201
|
+
id?: string;
|
|
202
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
203
|
+
$slots: {
|
|
204
|
+
default(): unknown;
|
|
205
|
+
};
|
|
206
|
+
});
|
|
207
|
+
hr: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
208
|
+
ol: {
|
|
209
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
210
|
+
P: {};
|
|
211
|
+
B: {};
|
|
212
|
+
D: {};
|
|
213
|
+
C: {};
|
|
214
|
+
M: {};
|
|
215
|
+
Defaults: {};
|
|
216
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
217
|
+
__isFragment?: never;
|
|
218
|
+
__isTeleport?: never;
|
|
219
|
+
__isSuspense?: never;
|
|
220
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
221
|
+
$slots: {
|
|
222
|
+
default(): unknown;
|
|
223
|
+
};
|
|
224
|
+
});
|
|
225
|
+
p: {
|
|
226
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
227
|
+
P: {};
|
|
228
|
+
B: {};
|
|
229
|
+
D: {};
|
|
230
|
+
C: {};
|
|
231
|
+
M: {};
|
|
232
|
+
Defaults: {};
|
|
233
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
234
|
+
__isFragment?: never;
|
|
235
|
+
__isTeleport?: never;
|
|
236
|
+
__isSuspense?: never;
|
|
237
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
238
|
+
$slots: {
|
|
239
|
+
default(): unknown;
|
|
240
|
+
};
|
|
241
|
+
});
|
|
242
|
+
pre: {
|
|
243
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
244
|
+
language?: string;
|
|
245
|
+
filename?: string;
|
|
246
|
+
highlights?: number[];
|
|
247
|
+
meta?: string;
|
|
248
|
+
class?: string;
|
|
249
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
250
|
+
P: {};
|
|
251
|
+
B: {};
|
|
252
|
+
D: {};
|
|
253
|
+
C: {};
|
|
254
|
+
M: {};
|
|
255
|
+
Defaults: {};
|
|
256
|
+
}, Readonly<{
|
|
257
|
+
language?: string;
|
|
258
|
+
filename?: string;
|
|
259
|
+
highlights?: number[];
|
|
260
|
+
meta?: string;
|
|
261
|
+
class?: string;
|
|
262
|
+
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
263
|
+
__isFragment?: never;
|
|
264
|
+
__isTeleport?: never;
|
|
265
|
+
__isSuspense?: never;
|
|
266
|
+
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
267
|
+
language?: string;
|
|
268
|
+
filename?: string;
|
|
269
|
+
highlights?: number[];
|
|
270
|
+
meta?: string;
|
|
271
|
+
class?: string;
|
|
272
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
273
|
+
$slots: {
|
|
274
|
+
default(): unknown;
|
|
275
|
+
};
|
|
276
|
+
});
|
|
277
|
+
summary: {
|
|
278
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
279
|
+
P: {};
|
|
280
|
+
B: {};
|
|
281
|
+
D: {};
|
|
282
|
+
C: {};
|
|
283
|
+
M: {};
|
|
284
|
+
Defaults: {};
|
|
285
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
286
|
+
__isFragment?: never;
|
|
287
|
+
__isTeleport?: never;
|
|
288
|
+
__isSuspense?: never;
|
|
289
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
290
|
+
$slots: {
|
|
291
|
+
default(): unknown;
|
|
292
|
+
};
|
|
293
|
+
});
|
|
294
|
+
table: {
|
|
295
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
296
|
+
P: {};
|
|
297
|
+
B: {};
|
|
298
|
+
D: {};
|
|
299
|
+
C: {};
|
|
300
|
+
M: {};
|
|
301
|
+
Defaults: {};
|
|
302
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
303
|
+
__isFragment?: never;
|
|
304
|
+
__isTeleport?: never;
|
|
305
|
+
__isSuspense?: never;
|
|
306
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
307
|
+
$slots: {
|
|
308
|
+
default(): unknown;
|
|
309
|
+
};
|
|
310
|
+
});
|
|
311
|
+
thead: {
|
|
312
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
313
|
+
P: {};
|
|
314
|
+
B: {};
|
|
315
|
+
D: {};
|
|
316
|
+
C: {};
|
|
317
|
+
M: {};
|
|
318
|
+
Defaults: {};
|
|
319
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
320
|
+
__isFragment?: never;
|
|
321
|
+
__isTeleport?: never;
|
|
322
|
+
__isSuspense?: never;
|
|
323
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
324
|
+
$slots: {
|
|
325
|
+
default(): unknown;
|
|
326
|
+
};
|
|
327
|
+
});
|
|
328
|
+
tbody: {
|
|
329
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
330
|
+
P: {};
|
|
331
|
+
B: {};
|
|
332
|
+
D: {};
|
|
333
|
+
C: {};
|
|
334
|
+
M: {};
|
|
335
|
+
Defaults: {};
|
|
336
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
337
|
+
__isFragment?: never;
|
|
338
|
+
__isTeleport?: never;
|
|
339
|
+
__isSuspense?: never;
|
|
340
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
341
|
+
$slots: {
|
|
342
|
+
default(): unknown;
|
|
343
|
+
};
|
|
344
|
+
});
|
|
345
|
+
ul: {
|
|
346
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
347
|
+
P: {};
|
|
348
|
+
B: {};
|
|
349
|
+
D: {};
|
|
350
|
+
C: {};
|
|
351
|
+
M: {};
|
|
352
|
+
Defaults: {};
|
|
353
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
354
|
+
__isFragment?: never;
|
|
355
|
+
__isTeleport?: never;
|
|
356
|
+
__isSuspense?: never;
|
|
357
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
358
|
+
$slots: {
|
|
359
|
+
default(): unknown;
|
|
360
|
+
};
|
|
361
|
+
});
|
|
362
|
+
img: import('vue').DefineComponent<{
|
|
363
|
+
src?: string;
|
|
364
|
+
alt?: string;
|
|
365
|
+
width?: string | number;
|
|
366
|
+
height?: string | number;
|
|
367
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
368
|
+
src?: string;
|
|
369
|
+
alt?: string;
|
|
370
|
+
width?: string | number;
|
|
371
|
+
height?: string | number;
|
|
372
|
+
}> & Readonly<{}>, {
|
|
373
|
+
src: string;
|
|
374
|
+
alt: string;
|
|
375
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
376
|
+
};
|
|
377
|
+
export declare const OnyxComark: import('vue').DefineComponent<import('@comark/vue/components/Comark').ComarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@comark/vue/components/Comark').ComarkProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
378
|
+
export declare const OnyxComarkRenderer: import('vue').DefineComponent<import('@comark/vue/components/ComarkRenderer').ComarkRendererProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@comark/vue/components/ComarkRenderer').ComarkRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LinkTarget } from 'sit-onyx';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
href?: string;
|
|
4
|
+
target?: LinkTarget;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_Slots = {
|
|
7
|
+
default(): unknown;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
href: string;
|
|
11
|
+
}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default(): unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default(): unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default(): unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default(): unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default(): unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_Slots = {
|
|
5
|
+
default(): unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src?: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
src: string;
|
|
9
|
+
alt: string;
|
|
10
|
+
}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* Code language
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* js, ts, html, css, etc.
|
|
7
|
+
*/
|
|
8
|
+
language?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Filename.
|
|
11
|
+
*/
|
|
12
|
+
filename?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Highlighted code line numbers.
|
|
15
|
+
*/
|
|
16
|
+
highlights?: number[];
|
|
17
|
+
meta?: string;
|
|
18
|
+
class?: string;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Slots = {
|
|
21
|
+
/**
|
|
22
|
+
* Renderer code snippet.
|
|
23
|
+
*/
|
|
24
|
+
default(): unknown;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Slots = {
|
|
2
|
+
default(): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_base: import('@vue/runtime-core').DefineComponent<{}, {}, {}, {}, {}, import('@vue/runtime-core').ComponentOptionsMixin, import('@vue/runtime-core').ComponentOptionsMixin, {}, string, import('@vue/runtime-core').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('@vue/runtime-core').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { InjectionKey, TemplateRef } from 'vue';
|
|
2
|
+
export declare const PROSE_TABLE_INJECTION_KEY: InjectionKey<{
|
|
3
|
+
/**
|
|
4
|
+
* Vue template ref for the table head (`<thead>`) element.
|
|
5
|
+
* Should be used by the `ProseThead` to teleport the head content to the `ProseTable`.
|
|
6
|
+
*/
|
|
7
|
+
headRef: TemplateRef;
|
|
8
|
+
/**
|
|
9
|
+
* Vue template ref for the table body (`<tbody>`) element.
|
|
10
|
+
* Should be used by the `ProseTbody` to teleport the head content to the `ProseTable`.
|
|
11
|
+
*/
|
|
12
|
+
bodyRef: TemplateRef;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const PROSE_DETAILS_INJECTION_KEY: InjectionKey<{
|
|
15
|
+
/**
|
|
16
|
+
* Vue template ref for the details / accordion header.
|
|
17
|
+
* Should be used by the `ProseSummary` to teleport the summary content to the `ProseDetails`.
|
|
18
|
+
*/
|
|
19
|
+
headerRef: TemplateRef;
|
|
20
|
+
}>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { default as ProseA } from './components/prose/ProseA.vue';
|
|
2
|
+
export { default as ProseBr } from './components/prose/ProseBr.vue';
|
|
3
|
+
export { default as ProseCode } from './components/prose/ProseCode.vue';
|
|
4
|
+
export { default as ProseDetails } from './components/prose/ProseDetails.vue';
|
|
5
|
+
export { default as ProseH1 } from './components/prose/ProseH1.vue';
|
|
6
|
+
export { default as ProseH2 } from './components/prose/ProseH2.vue';
|
|
7
|
+
export { default as ProseH3 } from './components/prose/ProseH3.vue';
|
|
8
|
+
export { default as ProseH4 } from './components/prose/ProseH4.vue';
|
|
9
|
+
export { default as ProseH5 } from './components/prose/ProseH5.vue';
|
|
10
|
+
export { default as ProseH6 } from './components/prose/ProseH6.vue';
|
|
11
|
+
export { default as ProseHr } from './components/prose/ProseHr.vue';
|
|
12
|
+
export { default as ProseImg } from './components/prose/ProseImg.vue';
|
|
13
|
+
export { default as ProseOl } from './components/prose/ProseOl.vue';
|
|
14
|
+
export { default as ProseP } from './components/prose/ProseP.vue';
|
|
15
|
+
export { default as ProsePre } from './components/prose/ProsePre.vue';
|
|
16
|
+
export { default as ProseSummary } from './components/prose/ProseSummary.vue';
|
|
17
|
+
export { default as ProseTable } from './components/prose/ProseTable.vue';
|
|
18
|
+
export { default as ProseTbody } from './components/prose/ProseTbody.vue';
|
|
19
|
+
export { default as ProseThead } from './components/prose/ProseThead.vue';
|
|
20
|
+
export { default as ProseUl } from './components/prose/ProseUl.vue';
|
|
21
|
+
export { OnyxComark, OnyxComarkRenderer } from './components/comark.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { Teleport as e, computed as t, createBlock as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, guardReactiveProps as s, inject as c, normalizeClass as l, normalizeProps as ee, openBlock as u, provide as d, renderSlot as f, toDisplayString as p, unref as m, useId as te, useTemplateRef as h, withCtx as g } from "vue";
|
|
2
|
+
import { OnyxAccordion as _, OnyxAccordionItem as ne, OnyxCodeTab as re, OnyxCodeTabs as ie, OnyxHeadline as v, OnyxLink as y, OnyxSeparator as b, OnyxTable as x, injectI18n as S } from "sit-onyx";
|
|
3
|
+
import { defineComarkComponent as C, defineComarkRendererComponent as w } from "@comark/vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/components/prose/ProseA.vue
|
|
6
|
+
var T = /* @__PURE__ */ o({
|
|
7
|
+
__name: "ProseA",
|
|
8
|
+
props: {
|
|
9
|
+
href: { default: "" },
|
|
10
|
+
target: {}
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
let t = e;
|
|
14
|
+
return (e, r) => (u(), n(m(y), ee(s(t)), {
|
|
15
|
+
default: g(() => [f(e.$slots, "default")]),
|
|
16
|
+
_: 3
|
|
17
|
+
}, 16));
|
|
18
|
+
}
|
|
19
|
+
}), E = (e, t) => {
|
|
20
|
+
let n = e.__vccOpts || e;
|
|
21
|
+
for (let [e, r] of t) n[e] = r;
|
|
22
|
+
return n;
|
|
23
|
+
}, D = {}, ae = { "aria-hidden": "true" };
|
|
24
|
+
function oe(e, t) {
|
|
25
|
+
return u(), r("br", ae);
|
|
26
|
+
}
|
|
27
|
+
var O = /*#__PURE__*/ E(D, [["render", oe], ["__scopeId", "data-v-d52859e7"]]), se = { class: "onyx-text--small" }, k = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
28
|
+
__name: "ProseCode",
|
|
29
|
+
setup(e) {
|
|
30
|
+
return (e, t) => (u(), r("code", se, [f(e.$slots, "default", {}, void 0, !0)]));
|
|
31
|
+
}
|
|
32
|
+
}), [["__scopeId", "data-v-3d53c5e9"]]), A = Symbol(), j = Symbol(), ce = { class: "header" }, M = { class: "header__placeholder" }, N = {
|
|
33
|
+
ref: "header",
|
|
34
|
+
class: "header__content"
|
|
35
|
+
}, P = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
36
|
+
__name: "ProseDetails",
|
|
37
|
+
setup(e) {
|
|
38
|
+
let { t } = S(), r = te();
|
|
39
|
+
return d(j, { headerRef: h("header") }), (e, o) => (u(), n(m(_), {
|
|
40
|
+
class: "accordion",
|
|
41
|
+
type: "card"
|
|
42
|
+
}, {
|
|
43
|
+
default: g(() => [a(m(ne), { value: m(r) }, {
|
|
44
|
+
header: g(() => [i("div", ce, [i("span", M, p(m(t)("accordion.toggle")), 1), i("span", N, null, 512)])]),
|
|
45
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
46
|
+
_: 3
|
|
47
|
+
}, 8, ["value"])]),
|
|
48
|
+
_: 3
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
}), [["__scopeId", "data-v-4178c16e"]]), F = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
52
|
+
__name: "ProseH1",
|
|
53
|
+
props: { id: {} },
|
|
54
|
+
setup(e) {
|
|
55
|
+
let t = e;
|
|
56
|
+
return (e, r) => (u(), n(m(v), {
|
|
57
|
+
is: "h1",
|
|
58
|
+
hash: t.id
|
|
59
|
+
}, {
|
|
60
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
61
|
+
_: 3
|
|
62
|
+
}, 8, ["hash"]));
|
|
63
|
+
}
|
|
64
|
+
}), [["__scopeId", "data-v-c5760f34"]]), I = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
65
|
+
__name: "ProseH2",
|
|
66
|
+
props: { id: {} },
|
|
67
|
+
setup(e) {
|
|
68
|
+
let t = e;
|
|
69
|
+
return (e, r) => (u(), n(m(v), {
|
|
70
|
+
is: "h2",
|
|
71
|
+
hash: t.id
|
|
72
|
+
}, {
|
|
73
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
74
|
+
_: 3
|
|
75
|
+
}, 8, ["hash"]));
|
|
76
|
+
}
|
|
77
|
+
}), [["__scopeId", "data-v-ca207127"]]), L = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
78
|
+
__name: "ProseH3",
|
|
79
|
+
props: { id: {} },
|
|
80
|
+
setup(e) {
|
|
81
|
+
let t = e;
|
|
82
|
+
return (e, r) => (u(), n(m(v), {
|
|
83
|
+
is: "h3",
|
|
84
|
+
hash: t.id
|
|
85
|
+
}, {
|
|
86
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
87
|
+
_: 3
|
|
88
|
+
}, 8, ["hash"]));
|
|
89
|
+
}
|
|
90
|
+
}), [["__scopeId", "data-v-bd6aac0c"]]), R = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
91
|
+
__name: "ProseH4",
|
|
92
|
+
props: { id: {} },
|
|
93
|
+
setup(e) {
|
|
94
|
+
let t = e;
|
|
95
|
+
return (e, r) => (u(), n(m(v), {
|
|
96
|
+
is: "h4",
|
|
97
|
+
hash: t.id
|
|
98
|
+
}, {
|
|
99
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 8, ["hash"]));
|
|
102
|
+
}
|
|
103
|
+
}), [["__scopeId", "data-v-2fae4049"]]), z = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
104
|
+
__name: "ProseH5",
|
|
105
|
+
props: { id: {} },
|
|
106
|
+
setup(e) {
|
|
107
|
+
let t = e;
|
|
108
|
+
return (e, r) => (u(), n(m(v), {
|
|
109
|
+
is: "h5",
|
|
110
|
+
hash: t.id
|
|
111
|
+
}, {
|
|
112
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
113
|
+
_: 3
|
|
114
|
+
}, 8, ["hash"]));
|
|
115
|
+
}
|
|
116
|
+
}), [["__scopeId", "data-v-be90357a"]]), B = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
117
|
+
__name: "ProseH6",
|
|
118
|
+
props: { id: {} },
|
|
119
|
+
setup(e) {
|
|
120
|
+
let t = e;
|
|
121
|
+
return (e, r) => (u(), n(m(v), {
|
|
122
|
+
is: "h6",
|
|
123
|
+
hash: t.id
|
|
124
|
+
}, {
|
|
125
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
126
|
+
_: 3
|
|
127
|
+
}, 8, ["hash"]));
|
|
128
|
+
}
|
|
129
|
+
}), [["__scopeId", "data-v-e10c9588"]]), V = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
130
|
+
__name: "ProseHr",
|
|
131
|
+
setup(e) {
|
|
132
|
+
return (e, t) => (u(), n(m(b), { class: "separator" }));
|
|
133
|
+
}
|
|
134
|
+
}), [["__scopeId", "data-v-88aee9af"]]), H = [
|
|
135
|
+
"src",
|
|
136
|
+
"alt",
|
|
137
|
+
"width",
|
|
138
|
+
"height"
|
|
139
|
+
], U = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
140
|
+
__name: "ProseImg",
|
|
141
|
+
props: {
|
|
142
|
+
src: { default: "" },
|
|
143
|
+
alt: { default: "" },
|
|
144
|
+
width: {},
|
|
145
|
+
height: {}
|
|
146
|
+
},
|
|
147
|
+
setup(e) {
|
|
148
|
+
let t = e;
|
|
149
|
+
return (e, n) => (u(), r("img", {
|
|
150
|
+
src: t.src,
|
|
151
|
+
alt: t.alt,
|
|
152
|
+
width: t.width,
|
|
153
|
+
height: t.height,
|
|
154
|
+
loading: "lazy"
|
|
155
|
+
}, null, 8, H));
|
|
156
|
+
}
|
|
157
|
+
}), [["__scopeId", "data-v-f39db070"]]), W = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
158
|
+
__name: "ProseOl",
|
|
159
|
+
setup(e) {
|
|
160
|
+
return (e, t) => (u(), r("ol", null, [f(e.$slots, "default", {}, void 0, !0)]));
|
|
161
|
+
}
|
|
162
|
+
}), [["__scopeId", "data-v-5adc6f71"]]), G = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
163
|
+
__name: "ProseP",
|
|
164
|
+
setup(e) {
|
|
165
|
+
return (e, t) => (u(), r("p", null, [f(e.$slots, "default", {}, void 0, !0)]));
|
|
166
|
+
}
|
|
167
|
+
}), [["__scopeId", "data-v-8d5bfaf8"]]), K = "code", q = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
168
|
+
__name: "ProsePre",
|
|
169
|
+
props: {
|
|
170
|
+
language: {},
|
|
171
|
+
filename: {},
|
|
172
|
+
highlights: {},
|
|
173
|
+
meta: {},
|
|
174
|
+
class: {}
|
|
175
|
+
},
|
|
176
|
+
setup(e) {
|
|
177
|
+
let t = e;
|
|
178
|
+
return (e, r) => (u(), n(m(ie), {
|
|
179
|
+
class: "code",
|
|
180
|
+
"model-value": K
|
|
181
|
+
}, {
|
|
182
|
+
default: g(() => [a(m(re), {
|
|
183
|
+
value: K,
|
|
184
|
+
code: "",
|
|
185
|
+
language: t.language,
|
|
186
|
+
label: t.filename
|
|
187
|
+
}, {
|
|
188
|
+
default: g(() => [i("pre", { class: l(t.class) }, [f(e.$slots, "default", {}, void 0, !0)], 2)]),
|
|
189
|
+
_: 3
|
|
190
|
+
}, 8, ["language", "label"])]),
|
|
191
|
+
_: 3
|
|
192
|
+
}));
|
|
193
|
+
}
|
|
194
|
+
}), [["__scopeId", "data-v-ddb4756f"]]), J = /* @__PURE__ */ o({
|
|
195
|
+
__name: "ProseSummary",
|
|
196
|
+
setup(r) {
|
|
197
|
+
let i = c(j, void 0), a = t(() => i?.headerRef.value);
|
|
198
|
+
return (t, r) => a.value ? (u(), n(e, {
|
|
199
|
+
key: 0,
|
|
200
|
+
to: a.value
|
|
201
|
+
}, [f(t.$slots, "default")], 8, ["to"])) : f(t.$slots, "default", {}, void 0, void 0, 1);
|
|
202
|
+
}
|
|
203
|
+
}), Y = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
204
|
+
__name: "ProseTable",
|
|
205
|
+
setup(e) {
|
|
206
|
+
return d(A, {
|
|
207
|
+
headRef: h("head"),
|
|
208
|
+
bodyRef: h("body")
|
|
209
|
+
}), (e, t) => (u(), n(m(x), {
|
|
210
|
+
class: "table",
|
|
211
|
+
striped: "",
|
|
212
|
+
"with-vertical-borders": ""
|
|
213
|
+
}, {
|
|
214
|
+
head: g(() => [...t[0] ||= []]),
|
|
215
|
+
default: g(() => [f(e.$slots, "default", {}, void 0, !0)]),
|
|
216
|
+
_: 3
|
|
217
|
+
}));
|
|
218
|
+
}
|
|
219
|
+
}), [["__scopeId", "data-v-52d1d2c2"]]), X = /* @__PURE__ */ o({
|
|
220
|
+
__name: "ProseTbody",
|
|
221
|
+
setup(t) {
|
|
222
|
+
let r = c(A, void 0);
|
|
223
|
+
return (t, i) => m(r)?.bodyRef.value ? (u(), n(e, {
|
|
224
|
+
key: 0,
|
|
225
|
+
to: m(r).bodyRef.value
|
|
226
|
+
}, [f(t.$slots, "default")], 8, ["to"])) : f(t.$slots, "default", {}, void 0, void 0, 1);
|
|
227
|
+
}
|
|
228
|
+
}), Z = /* @__PURE__ */ o({
|
|
229
|
+
__name: "ProseThead",
|
|
230
|
+
setup(t) {
|
|
231
|
+
let r = c(A, void 0);
|
|
232
|
+
return (t, i) => m(r)?.headRef.value ? (u(), n(e, {
|
|
233
|
+
key: 0,
|
|
234
|
+
to: m(r).headRef.value
|
|
235
|
+
}, [f(t.$slots, "default")], 8, ["to"])) : f(t.$slots, "default", {}, void 0, void 0, 1);
|
|
236
|
+
}
|
|
237
|
+
}), Q = /*#__PURE__*/ E(/* @__PURE__ */ o({
|
|
238
|
+
__name: "ProseUl",
|
|
239
|
+
setup(e) {
|
|
240
|
+
return (e, t) => (u(), r("ul", null, [f(e.$slots, "default", {}, void 0, !0)]));
|
|
241
|
+
}
|
|
242
|
+
}), [["__scopeId", "data-v-17a11577"]]), $ = {
|
|
243
|
+
a: T,
|
|
244
|
+
br: O,
|
|
245
|
+
code: k,
|
|
246
|
+
details: P,
|
|
247
|
+
h1: F,
|
|
248
|
+
h2: I,
|
|
249
|
+
h3: L,
|
|
250
|
+
h4: R,
|
|
251
|
+
h5: z,
|
|
252
|
+
h6: B,
|
|
253
|
+
hr: V,
|
|
254
|
+
ol: W,
|
|
255
|
+
p: G,
|
|
256
|
+
pre: q,
|
|
257
|
+
summary: J,
|
|
258
|
+
table: Y,
|
|
259
|
+
thead: Z,
|
|
260
|
+
tbody: X,
|
|
261
|
+
ul: Q,
|
|
262
|
+
img: U
|
|
263
|
+
}, le = C({
|
|
264
|
+
components: $,
|
|
265
|
+
class: "onyx-component onyx-comark"
|
|
266
|
+
}), ue = w({
|
|
267
|
+
components: $,
|
|
268
|
+
class: "onyx-component onyx-comark-renderer"
|
|
269
|
+
});
|
|
270
|
+
//#endregion
|
|
271
|
+
export { le as OnyxComark, ue as OnyxComarkRenderer, T as ProseA, O as ProseBr, k as ProseCode, P as ProseDetails, F as ProseH1, I as ProseH2, L as ProseH3, R as ProseH4, z as ProseH5, B as ProseH6, V as ProseHr, U as ProseImg, W as ProseOl, G as ProseP, q as ProsePre, J as ProseSummary, Y as ProseTable, X as ProseTbody, Z as ProseThead, Q as ProseUl };
|
package/dist/style.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@layer onyx.component{:root{--onyx-markdown-renderer-margin-block:var(--onyx-density-md)}.onyx-comark,.onyx-comark-renderer{font-family:var(--onyx-font-family-paragraph)}}br[data-v-d52859e7]{height:1lh;display:block}code[data-v-3d53c5e9]{background-color:var(--onyx-color-base-background-blank);border:var(--onyx-1px-in-rem) solid var(--onyx-color-component-border-neutral);border-radius:var(--onyx-radius-sm);padding:var(--onyx-density-3xs) var(--onyx-density-2xs)}.accordion[data-v-4178c16e]{margin-block:var(--onyx-markdown-renderer-margin-block)}.header:has(.header__content:not(:empty)) .header__placeholder[data-v-4178c16e]{display:none}.onyx-headline[data-v-c5760f34]{margin-bottom:var(--onyx-density-lg)}.onyx-headline[data-v-ca207127]{margin-top:var(--onyx-density-2xl);margin-bottom:var(--onyx-density-xs)}.onyx-headline[data-v-bd6aac0c]{margin-top:var(--onyx-density-xl);margin-bottom:var(--onyx-density-2xs)}.onyx-headline[data-v-2fae4049],.onyx-headline[data-v-be90357a],.onyx-headline[data-v-e10c9588]{margin-top:var(--onyx-density-lg);margin-bottom:var(--onyx-density-3xs)}.separator[data-v-88aee9af]{margin-block:var(--onyx-markdown-renderer-margin-block)}img[data-v-f39db070]{max-width:100%;display:inline-block}ol[data-v-5adc6f71]{margin-block:var(--onyx-density-xs)}p[data-v-8d5bfaf8],.code[data-v-ddb4756f],.table[data-v-52d1d2c2]{margin-block:var(--onyx-markdown-renderer-margin-block)}ul[data-v-17a11577]{margin-block:var(--onyx-density-xs)}
|
|
2
|
+
/*$vite$:1*/
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sit-onyx/comark",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Wrapper for the comark package using the onyx design system created by Schwarz Digits",
|
|
5
|
+
"bugs": {
|
|
6
|
+
"url": "https://github.com/SchwarzIT/onyx/issues"
|
|
7
|
+
},
|
|
8
|
+
"license": "Apache-2.0",
|
|
9
|
+
"author": "Schwarz Digits IT KG",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/SchwarzIT/onyx",
|
|
13
|
+
"directory": "packages/comark"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"type": "module",
|
|
19
|
+
"module": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"node": "./dist/index.js",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./style.css": "./dist/style.css"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "vite build",
|
|
31
|
+
"test:playwright": "playwright install && playwright test"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@comark/vue": "^0.5.1",
|
|
35
|
+
"@playwright/experimental-ct-vue": "catalog:",
|
|
36
|
+
"@playwright/test": "catalog:",
|
|
37
|
+
"@sit-onyx/playwright-utils": "workspace:^",
|
|
38
|
+
"@sit-onyx/shared": "workspace:^",
|
|
39
|
+
"@vue/compiler-dom": "catalog:",
|
|
40
|
+
"sit-onyx": "workspace:^",
|
|
41
|
+
"unplugin-dts": "catalog:",
|
|
42
|
+
"vite": "catalog:",
|
|
43
|
+
"vue": "catalog:"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@comark/vue": ">=0.5.0",
|
|
47
|
+
"sit-onyx": "workspace:^",
|
|
48
|
+
"vue": ">= 3.5.0"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=20"
|
|
52
|
+
}
|
|
53
|
+
}
|