@umami/shiso 1.12.0 → 1.14.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/bin/shiso.mjs +0 -0
- package/dist/chunks/App.js +166 -139
- package/dist/chunks/abnfDiagram-VCTEODGH.js +109 -0
- package/dist/chunks/arc.js +130 -0
- package/dist/chunks/architecture-7GRP2DOG.js +4 -0
- package/dist/chunks/architectureDiagram-5GKGNRK7.js +7466 -0
- package/dist/chunks/array.js +8 -0
- package/dist/chunks/blockDiagram-I7D4REHJ.js +2546 -0
- package/dist/chunks/c4Diagram-7LVT6UL2.js +3654 -0
- package/dist/chunks/channel.js +9 -0
- package/dist/chunks/chunk-2Q5K7J3B.js +21 -0
- package/dist/chunks/chunk-4HAMMTFA.js +6106 -0
- package/dist/chunks/chunk-5VM5RSS4.js +21 -0
- package/dist/chunks/chunk-75Z2AOVW.js +2185 -0
- package/dist/chunks/chunk-DU6HZSFF.js +8729 -0
- package/dist/chunks/chunk-F27PBJKO.js +95 -0
- package/dist/chunks/chunk-FOHPRMQF.js +27162 -0
- package/dist/chunks/chunk-GMAD6QVW.js +2369 -0
- package/dist/chunks/chunk-GVQU2GXP.js +58 -0
- package/dist/chunks/chunk-IMKFNOWR.js +2593 -0
- package/dist/chunks/chunk-JWPE2WC7.js +12 -0
- package/dist/chunks/chunk-L3NEJ4N5.js +420 -0
- package/dist/chunks/chunk-OSK3NFVY.js +1029 -0
- package/dist/chunks/chunk-P2QGCYS3.js +95 -0
- package/dist/chunks/chunk-POPQ4Y6H.js +33 -0
- package/dist/chunks/chunk-PWAF6VOD.js +467 -0
- package/dist/chunks/chunk-SHT3W25Y.js +4813 -0
- package/dist/chunks/chunk-SVP7TREG.js +686 -0
- package/dist/chunks/chunk-TICWLB2K.js +3800 -0
- package/dist/chunks/chunk-XXDRQBXY.js +12 -0
- package/dist/chunks/chunk-Y2CYZVJY.js +15 -0
- package/dist/chunks/classDiagram-ZZMXUADV.js +33 -0
- package/dist/chunks/classDiagram-v2-VYDZK3BY.js +33 -0
- package/dist/chunks/cose-bilkent-JH36ORCC.js +4268 -0
- package/dist/chunks/cynefin-OW5HDTMX.js +4 -0
- package/dist/chunks/cynefinDiagram-5FMLGOSQ.js +482 -0
- package/dist/chunks/cytoscape.esm.js +28282 -0
- package/dist/chunks/dagre-GXQ25YYZ.js +583 -0
- package/dist/chunks/dagre.js +4235 -0
- package/dist/chunks/defaultLocale.js +246 -0
- package/dist/chunks/diagram-S7CK7UJ4.js +402 -0
- package/dist/chunks/diagram-UQ7AKVKN.js +291 -0
- package/dist/chunks/diagram-VSXAHHWV.js +553 -0
- package/dist/chunks/diagram-VX7I27RA.js +798 -0
- package/dist/chunks/diagram-Z3DM3KII.js +186 -0
- package/dist/chunks/dist.js +92 -0
- package/dist/chunks/docs.js +1163 -347
- package/dist/chunks/ebnfDiagram-PWID7BFC.js +123 -0
- package/dist/chunks/erDiagram-RLTQ6QDP.js +2295 -0
- package/dist/chunks/eventmodeling-NTZA5JFV.js +4 -0
- package/dist/chunks/flowDiagram-HODETNUW.js +17 -0
- package/dist/chunks/ganttDiagram-EL5Y4UJY.js +3928 -0
- package/dist/chunks/gitGraph-4MIJSDKK.js +4 -0
- package/dist/chunks/gitGraphDiagram-WWUBYQGX.js +1153 -0
- package/dist/chunks/graphlib.js +4194 -0
- package/dist/chunks/info-A6RAGUB7.js +4 -0
- package/dist/chunks/infoDiagram-27XIBGKW.js +25 -0
- package/dist/chunks/init.js +14 -0
- package/dist/chunks/ishikawaDiagram-5VMMS53U.js +971 -0
- package/dist/chunks/journeyDiagram-3NMN7TZE.js +1226 -0
- package/dist/chunks/kanban-definition-UXKFOSKX.js +1241 -0
- package/dist/chunks/katex.js +26463 -0
- package/dist/chunks/line.js +48 -0
- package/dist/chunks/linear.js +391 -0
- package/dist/chunks/mermaid-parser.core.js +754 -0
- package/dist/chunks/mermaid.core.js +4898 -0
- package/dist/chunks/mindmap-definition-YA3MSWOX.js +1309 -0
- package/dist/chunks/ordinal.js +84 -0
- package/dist/chunks/packet-AYTQ26CC.js +4 -0
- package/dist/chunks/path.js +106 -0
- package/dist/chunks/pegDiagram-XKGWAZYB.js +115 -0
- package/dist/chunks/pie-WAS4IAKB.js +4 -0
- package/dist/chunks/pieDiagram-E7YTZNPT.js +297 -0
- package/dist/chunks/quadrantDiagram-AXDQQJYC.js +2234 -0
- package/dist/chunks/radar-RG4KPBEZ.js +4 -0
- package/dist/chunks/railroad-74A4TZTK.js +4 -0
- package/dist/chunks/railroad-abnf-HS5TGJTU.js +4 -0
- package/dist/chunks/railroad-ebnf-LZEXJU2U.js +4 -0
- package/dist/chunks/railroad-peg-WCYAUIDC.js +4 -0
- package/dist/chunks/railroadDiagram-O6MQD6OU.js +89 -0
- package/dist/chunks/requirementDiagram-BXWQKSXE.js +2464 -0
- package/dist/chunks/rough.esm.js +1396 -0
- package/dist/chunks/sankeyDiagram-P5KCCOFB.js +1308 -0
- package/dist/chunks/sequenceDiagram-WJ2MYXX4.js +5445 -0
- package/dist/chunks/sizeCapture-INFHLROL.js +56 -0
- package/dist/chunks/src.js +2653 -0
- package/dist/chunks/stateDiagram-D77RDMKH.js +368 -0
- package/dist/chunks/stateDiagram-v2-MP3YSRHH.js +33 -0
- package/dist/chunks/swimlanes-42K2YHIH.js +6925 -0
- package/dist/chunks/swimlanesDiagram-VR7AAH4N.js +32 -0
- package/dist/chunks/timeline-definition-24CTP7MA.js +1507 -0
- package/dist/chunks/treeView-Q6P3EWNA.js +4 -0
- package/dist/chunks/treemap-WGGIJYW6.js +4 -0
- package/dist/chunks/vennDiagram-4TSXK5OY.js +2803 -0
- package/dist/chunks/wardley-WFR3VGLG.js +4 -0
- package/dist/chunks/wardleyDiagram-VM6X3IG4.js +877 -0
- package/dist/chunks/xychartDiagram-S5SC5T6Z.js +2698 -0
- package/dist/components.js +2 -2
- package/dist/entry-client.js +1 -1
- package/dist/entry-server.js +2 -2
- package/docs.schema.json +1 -1
- package/package.json +2 -1
- package/scripts/expand-navigation-globs.mjs +77 -8
- package/scripts/lib/openapi.mjs +24 -13
- package/src/components/CodeBlock.tsx +36 -0
- package/src/components/Docs.tsx +44 -21
- package/src/components/OpenApiOperation.tsx +39 -52
- package/src/components/SideNav.tsx +8 -3
- package/src/components/docs/Changelog.tsx +163 -0
- package/src/components/docs/Mermaid.tsx +164 -0
- package/src/components/docs/Panel.tsx +23 -0
- package/src/components/docs/Param.tsx +6 -0
- package/src/components/docs/PropertiesTable.tsx +52 -36
- package/src/components/docs/Tiles.tsx +59 -0
- package/src/components/docs/Tree.tsx +359 -0
- package/src/components/docs/Update.tsx +72 -0
- package/src/components/docs/index.ts +8 -2
- package/src/components/docs/panel-context.tsx +25 -0
- package/src/components/docs/styles.ts +47 -6
- package/src/components/icons/index.ts +4 -0
- package/src/lib/openapi.ts +17 -1
- package/src/lib/rehype-shiki.ts +18 -1
- package/types/components.d.ts +83 -14
- package/src/components/docs/ParamField.tsx +0 -45
- package/src/components/docs/ResponseField.tsx +0 -36
package/types/components.d.ts
CHANGED
|
@@ -146,18 +146,6 @@ export interface IconProps {
|
|
|
146
146
|
|
|
147
147
|
export declare function Icon(props: IconProps): ReactElement | null;
|
|
148
148
|
|
|
149
|
-
export interface ParamFieldProps {
|
|
150
|
-
name?: string;
|
|
151
|
-
query?: string;
|
|
152
|
-
path?: string;
|
|
153
|
-
header?: string;
|
|
154
|
-
body?: string;
|
|
155
|
-
type?: string;
|
|
156
|
-
required?: boolean;
|
|
157
|
-
children?: ReactNode;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export declare function ParamField(props: ParamFieldProps): ReactElement;
|
|
161
149
|
export declare function Param(props: ChildrenProps): ReactElement;
|
|
162
150
|
|
|
163
151
|
export interface PropertiesTableProps {
|
|
@@ -168,7 +156,7 @@ export declare function PropertiesTable(props: PropertiesTableProps): ReactEleme
|
|
|
168
156
|
|
|
169
157
|
type FieldValue = string | number | boolean | null | undefined;
|
|
170
158
|
|
|
171
|
-
export interface
|
|
159
|
+
export interface PropertiesTableRowProps {
|
|
172
160
|
name: string;
|
|
173
161
|
type?: FieldValue;
|
|
174
162
|
default?: FieldValue;
|
|
@@ -177,7 +165,9 @@ export interface ResponseFieldProps {
|
|
|
177
165
|
children?: ReactNode;
|
|
178
166
|
}
|
|
179
167
|
|
|
180
|
-
export declare
|
|
168
|
+
export declare namespace PropertiesTable {
|
|
169
|
+
function Row(props: PropertiesTableRowProps): ReactElement;
|
|
170
|
+
}
|
|
181
171
|
|
|
182
172
|
export interface StepProps {
|
|
183
173
|
title?: ReactNode;
|
|
@@ -211,6 +201,85 @@ export interface TooltipProps {
|
|
|
211
201
|
|
|
212
202
|
export declare function Tooltip(props: TooltipProps): ReactElement;
|
|
213
203
|
|
|
204
|
+
export interface UpdateRss {
|
|
205
|
+
title?: string;
|
|
206
|
+
description?: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface UpdateProps {
|
|
210
|
+
label: string;
|
|
211
|
+
description?: ReactNode;
|
|
212
|
+
tags?: string[];
|
|
213
|
+
rss?: UpdateRss;
|
|
214
|
+
children?: ReactNode;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export declare function Update(props: UpdateProps): ReactElement;
|
|
218
|
+
|
|
219
|
+
export interface ChangelogProps {
|
|
220
|
+
children?: ReactNode;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export declare function Changelog(props: ChangelogProps): ReactElement;
|
|
224
|
+
|
|
225
|
+
export type MermaidPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
226
|
+
|
|
227
|
+
export interface MermaidProps {
|
|
228
|
+
chart?: string;
|
|
229
|
+
title?: ReactNode;
|
|
230
|
+
actions?: boolean;
|
|
231
|
+
placement?: MermaidPlacement;
|
|
232
|
+
children?: ReactNode;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export declare function Mermaid(props: MermaidProps): ReactElement;
|
|
236
|
+
|
|
237
|
+
export interface PanelProps {
|
|
238
|
+
children?: ReactNode;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export declare function Panel(props: PanelProps): ReactElement;
|
|
242
|
+
|
|
243
|
+
export interface TileProps {
|
|
244
|
+
href: string;
|
|
245
|
+
title?: ReactNode;
|
|
246
|
+
description?: ReactNode;
|
|
247
|
+
children: ReactNode;
|
|
248
|
+
target?: '_self' | '_blank';
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export interface TilesProps {
|
|
252
|
+
children?: ReactNode;
|
|
253
|
+
cols?: 1 | 2 | 3 | 4;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export declare function Tile(props: TileProps): ReactElement;
|
|
257
|
+
export declare function Tiles(props: TilesProps): ReactElement;
|
|
258
|
+
|
|
259
|
+
export interface TreeFolderProps {
|
|
260
|
+
name: string;
|
|
261
|
+
defaultOpen?: boolean;
|
|
262
|
+
openable?: boolean;
|
|
263
|
+
highlight?: boolean;
|
|
264
|
+
children?: ReactNode;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export interface TreeFileProps {
|
|
268
|
+
name: string;
|
|
269
|
+
highlight?: boolean;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface TreeProps {
|
|
273
|
+
children?: ReactNode;
|
|
274
|
+
style?: React.CSSProperties;
|
|
275
|
+
className?: string;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export declare function Tree(props: TreeProps): ReactElement;
|
|
279
|
+
export declare function FileTree(props: TreeProps): ReactElement;
|
|
280
|
+
export declare function TreeFolder(props: TreeFolderProps): ReactElement;
|
|
281
|
+
export declare function TreeFile(props: TreeFileProps): ReactElement;
|
|
282
|
+
|
|
214
283
|
export interface ZoomableImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
215
284
|
noZoom?: boolean;
|
|
216
285
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { Badge } from './Badge';
|
|
3
|
-
import { styles } from './styles';
|
|
4
|
-
import { decodeHtmlEntities } from './utils';
|
|
5
|
-
|
|
6
|
-
export interface ParamFieldProps {
|
|
7
|
-
name?: string;
|
|
8
|
-
query?: string;
|
|
9
|
-
path?: string;
|
|
10
|
-
header?: string;
|
|
11
|
-
body?: string;
|
|
12
|
-
type?: string;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function ParamField({
|
|
18
|
-
name,
|
|
19
|
-
query,
|
|
20
|
-
path,
|
|
21
|
-
header,
|
|
22
|
-
body,
|
|
23
|
-
type,
|
|
24
|
-
required,
|
|
25
|
-
children,
|
|
26
|
-
}: ParamFieldProps) {
|
|
27
|
-
const label = name || query || path || header || body || 'parameter';
|
|
28
|
-
const location = query ? 'query' : path ? 'path' : header ? 'header' : body ? 'body' : undefined;
|
|
29
|
-
|
|
30
|
-
return (
|
|
31
|
-
<div className={styles.paramField}>
|
|
32
|
-
<div className={styles.fieldHeader}>
|
|
33
|
-
<span className={styles.fieldName}>{label}</span>
|
|
34
|
-
{location ? <Badge>{location}</Badge> : null}
|
|
35
|
-
{type ? <span className={styles.fieldType}>{decodeHtmlEntities(type)}</span> : null}
|
|
36
|
-
{required ? <Badge tone="primary">required</Badge> : null}
|
|
37
|
-
</div>
|
|
38
|
-
{children ? <div className={styles.fieldBody}>{children}</div> : null}
|
|
39
|
-
</div>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function Param({ children }: { children?: ReactNode }) {
|
|
44
|
-
return <code className={styles.code}>{children}</code>;
|
|
45
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import { Badge } from './Badge';
|
|
3
|
-
import { styles } from './styles';
|
|
4
|
-
import { decodeHtmlEntities } from './utils';
|
|
5
|
-
|
|
6
|
-
type FieldValue = string | number | boolean | null | undefined;
|
|
7
|
-
|
|
8
|
-
export interface ResponseFieldProps {
|
|
9
|
-
name: string;
|
|
10
|
-
type?: FieldValue;
|
|
11
|
-
default?: FieldValue;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
deprecated?: boolean;
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function ResponseField({ name, type, required, deprecated, children }: ResponseFieldProps) {
|
|
18
|
-
const normalizedType =
|
|
19
|
-
typeof type === 'string'
|
|
20
|
-
? decodeHtmlEntities(type)
|
|
21
|
-
: type === undefined || type === null
|
|
22
|
-
? undefined
|
|
23
|
-
: String(type);
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<div className={styles.field}>
|
|
27
|
-
<div className={styles.fieldHeader}>
|
|
28
|
-
<span className={styles.fieldName}>{name}</span>
|
|
29
|
-
{normalizedType ? <span className={styles.fieldType}>{normalizedType}</span> : null}
|
|
30
|
-
{required ? <Badge tone="primary">required</Badge> : null}
|
|
31
|
-
{deprecated ? <Badge>deprecated</Badge> : null}
|
|
32
|
-
</div>
|
|
33
|
-
{children ? <div className={styles.fieldBody}>{children}</div> : null}
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
}
|