@umami/shiso 0.45.0 → 0.46.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/dist/index.css +50 -50
- package/dist/index.d.ts +56 -56
- package/dist/index.js +8 -9
- package/dist/index.mjs +8 -10
- package/package.json +1 -1
- package/server/index.d.ts +30 -30
- package/server/index.js +1 -1
- package/styles.css +1180 -1278
- package/dist/server.d.ts +0 -45
- package/dist/server.js +0 -159
package/dist/index.css
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
/* virtual-css:css:
|
|
2
|
-
.
|
|
1
|
+
/* virtual-css:css:e01d9571088b882a03b91eb2755da783 */
|
|
2
|
+
.PageLinks_links__NmJhO {
|
|
3
3
|
position: sticky;
|
|
4
4
|
top: var(--spacing-8);
|
|
5
5
|
height: max-content;
|
|
6
6
|
min-width: 240px;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
.PageLinks_links__NmJhO a.PageLinks_link__OGI3M {
|
|
9
9
|
display: block;
|
|
10
10
|
color: var(--font-color-muted);
|
|
11
11
|
font-size: var(--font-size);
|
|
12
12
|
text-decoration: none;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.PageLinks_links__NmJhO a.PageLinks_link__OGI3M:hover {
|
|
15
15
|
color: var(--primary-color);
|
|
16
16
|
text-decoration: none;
|
|
17
17
|
}
|
|
18
|
-
.PageLinks_indent-
|
|
18
|
+
.PageLinks_indent-1__M2IxZ {
|
|
19
19
|
margin-left: 0;
|
|
20
20
|
}
|
|
21
|
-
.PageLinks_indent-
|
|
21
|
+
.PageLinks_indent-2__YTBlM {
|
|
22
22
|
margin-left: 0;
|
|
23
23
|
}
|
|
24
|
-
.PageLinks_indent-
|
|
24
|
+
.PageLinks_indent-3__YzJlZ {
|
|
25
25
|
margin-left: 10px;
|
|
26
26
|
}
|
|
27
|
-
.PageLinks_indent-
|
|
27
|
+
.PageLinks_indent-4__NDg3Z {
|
|
28
28
|
margin-left: 20px;
|
|
29
29
|
}
|
|
30
|
-
.PageLinks_indent-
|
|
30
|
+
.PageLinks_indent-5__ZTE4M {
|
|
31
31
|
margin-left: 30px;
|
|
32
32
|
}
|
|
33
|
-
.PageLinks_indent-
|
|
33
|
+
.PageLinks_indent-6__NTRjM {
|
|
34
34
|
margin-left: 40px;
|
|
35
35
|
}
|
|
36
|
-
.
|
|
36
|
+
.PageLinks_links__NmJhO a.PageLinks_selected__ZjhkN {
|
|
37
37
|
color: var(--primary-color);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
/* virtual-css:css:
|
|
41
|
-
.
|
|
40
|
+
/* virtual-css:css:2dd9c1a25bf05a14c9a7ab7ce1da6aef */
|
|
41
|
+
.CodeBlock_container__ZTkxY {
|
|
42
42
|
position: relative;
|
|
43
|
-
background: var(--base-color-
|
|
43
|
+
background: var(--base-color-900);
|
|
44
44
|
padding: var(--spacing-5);
|
|
45
45
|
border-radius: 6px;
|
|
46
46
|
white-space: pre-wrap;
|
|
47
47
|
word-wrap: break-word;
|
|
48
48
|
}
|
|
49
|
-
pre.
|
|
49
|
+
pre.CodeBlock_container__ZTkxY code {
|
|
50
50
|
font-family: var(--font-family-code);
|
|
51
|
-
color: var(--base-color-
|
|
51
|
+
color: var(--base-color-300);
|
|
52
52
|
padding: 0;
|
|
53
53
|
border: 0;
|
|
54
54
|
background: transparent;
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.CodeBlock_button__MmZkO {
|
|
57
57
|
border: 0;
|
|
58
58
|
position: absolute;
|
|
59
59
|
right: var(--spacing-5);
|
|
@@ -61,127 +61,127 @@ pre.CodeBlock_container__MWNjM code {
|
|
|
61
61
|
cursor: pointer;
|
|
62
62
|
background: transparent;
|
|
63
63
|
}
|
|
64
|
-
.
|
|
65
|
-
color: var(--base-color-
|
|
64
|
+
.CodeBlock_copy__M2I0N {
|
|
65
|
+
color: var(--base-color-300);
|
|
66
66
|
}
|
|
67
|
-
.
|
|
68
|
-
color: var(--base-color-
|
|
67
|
+
.CodeBlock_copy__M2I0N:hover {
|
|
68
|
+
color: var(--base-color-50);
|
|
69
69
|
}
|
|
70
|
-
.
|
|
70
|
+
.CodeBlock_check__MjkzY {
|
|
71
71
|
color: var(--success-color);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
/* virtual-css:css:
|
|
75
|
-
.
|
|
74
|
+
/* virtual-css:css:62c31e195181c97259fa56b13d20ea6d */
|
|
75
|
+
.SideNav_nav__NTkxM {
|
|
76
76
|
overflow-y: auto;
|
|
77
77
|
min-width: 240px;
|
|
78
78
|
}
|
|
79
|
-
.
|
|
79
|
+
.SideNav_nav__NTkxM::-webkit-scrollbar {
|
|
80
80
|
width: 15px;
|
|
81
81
|
background: transparent;
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
84
|
-
.
|
|
84
|
+
.SideNav_nav__NTkxM:hover::-webkit-scrollbar {
|
|
85
85
|
display: block;
|
|
86
86
|
}
|
|
87
|
-
.
|
|
87
|
+
.SideNav_nav__NTkxM::-webkit-scrollbar-track {
|
|
88
88
|
border: 7px solid rgba(0, 0, 0, 0);
|
|
89
89
|
background-color: var(--border-color);
|
|
90
90
|
background-clip: padding-box;
|
|
91
91
|
}
|
|
92
|
-
.
|
|
92
|
+
.SideNav_nav__NTkxM::-webkit-scrollbar-thumb {
|
|
93
93
|
border: 7px solid rgba(0, 0, 0, 0);
|
|
94
94
|
background-color: var(--primary-color);
|
|
95
95
|
background-clip: padding-box;
|
|
96
96
|
}
|
|
97
|
-
.
|
|
97
|
+
.SideNav_nav__NTkxM::-webkit-scrollbar-thumb:hover {
|
|
98
98
|
border: 5px solid rgba(0, 0, 0, 0);
|
|
99
99
|
background-color: var(--primary-color);
|
|
100
100
|
background-clip: padding-box;
|
|
101
101
|
}
|
|
102
|
-
.
|
|
102
|
+
.SideNav_nav__NTkxM.SideNav_sticky__YTdmY {
|
|
103
103
|
position: sticky;
|
|
104
104
|
top: var(--spacing-8);
|
|
105
105
|
}
|
|
106
|
-
.
|
|
106
|
+
.SideNav_nav__NTkxM .SideNav_item__MDk5Z {
|
|
107
107
|
color: var(--font-color-muted);
|
|
108
108
|
border-left: 1px solid var(--border-color);
|
|
109
109
|
padding: var(--padding);
|
|
110
110
|
text-decoration: none;
|
|
111
111
|
}
|
|
112
|
-
.
|
|
112
|
+
.SideNav_nav__NTkxM .SideNav_item__MDk5Z:hover {
|
|
113
113
|
color: var(--primary-color);
|
|
114
114
|
}
|
|
115
|
-
.
|
|
115
|
+
.SideNav_nav__NTkxM .SideNav_item__MDk5Z.SideNav_selected__ZjVkZ {
|
|
116
116
|
color: var(--font-color);
|
|
117
117
|
font-weight: 500;
|
|
118
118
|
border-color: var(--primary-color);
|
|
119
119
|
background-color: var(--highlight-color);
|
|
120
120
|
}
|
|
121
|
-
.
|
|
121
|
+
.SideNav_header__Y2YyY {
|
|
122
122
|
padding: var(--padding-y) 0;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
/* virtual-css:css:
|
|
126
|
-
.
|
|
125
|
+
/* virtual-css:css:4d0931c84adfae5533b067ea199724f8 */
|
|
126
|
+
.Markdown_content__NmE1Z {
|
|
127
127
|
font-size: 16px;
|
|
128
128
|
margin-bottom: 60px;
|
|
129
129
|
}
|
|
130
|
-
.
|
|
130
|
+
.Markdown_content__NmE1Z > p {
|
|
131
131
|
color: var(--font-color);
|
|
132
132
|
line-height: 1.8;
|
|
133
133
|
}
|
|
134
|
-
.
|
|
134
|
+
.Markdown_content__NmE1Z a {
|
|
135
135
|
color: var(--font-color);
|
|
136
136
|
font-weight: 600;
|
|
137
137
|
text-decoration: underline var(--border-color);
|
|
138
138
|
text-underline-offset: 4px;
|
|
139
139
|
}
|
|
140
|
-
.
|
|
140
|
+
.Markdown_content__NmE1Z a:hover {
|
|
141
141
|
color: var(--font-color);
|
|
142
142
|
text-decoration: underline var(--primary-color);
|
|
143
143
|
}
|
|
144
|
-
.
|
|
144
|
+
.Markdown_content__NmE1Z img {
|
|
145
145
|
display: block;
|
|
146
146
|
max-width: 100%;
|
|
147
147
|
margin: 4rem auto;
|
|
148
148
|
box-shadow: 2px 2px 16px rgba(0, 0, 0, .1);
|
|
149
149
|
}
|
|
150
|
-
.
|
|
150
|
+
.Markdown_content__NmE1Z h1 {
|
|
151
151
|
font-size: var(--font-size-8);
|
|
152
152
|
letter-spacing: var(--letter-spacing-1);
|
|
153
153
|
margin: 0 0 var(--spacing-4) 0;
|
|
154
154
|
}
|
|
155
|
-
.
|
|
155
|
+
.Markdown_content__NmE1Z h2 {
|
|
156
156
|
font-size: var(--font-size-6);
|
|
157
157
|
letter-spacing: var(--letter-spacing-1);
|
|
158
158
|
margin: var(--spacing-8) 0 var(--spacing-4) 0;
|
|
159
159
|
}
|
|
160
|
-
.
|
|
160
|
+
.Markdown_content__NmE1Z h3 {
|
|
161
161
|
font-size: var(--font-size-5);
|
|
162
162
|
letter-spacing: var(--letter-spacing-1);
|
|
163
163
|
margin: var(--spacing-7) 0 var(--spacing-4) 0;
|
|
164
164
|
}
|
|
165
|
-
.
|
|
165
|
+
.Markdown_content__NmE1Z *[id] {
|
|
166
166
|
scroll-margin-top: var(--spacing-4);
|
|
167
167
|
}
|
|
168
|
-
.
|
|
168
|
+
.Markdown_content__NmE1Z ul {
|
|
169
169
|
list-style: disc;
|
|
170
170
|
}
|
|
171
|
-
.
|
|
171
|
+
.Markdown_content__NmE1Z ol {
|
|
172
172
|
list-style: decimal;
|
|
173
173
|
}
|
|
174
|
-
.
|
|
174
|
+
.Markdown_content__NmE1Z pre {
|
|
175
175
|
margin: var(--spacing-5) 0;
|
|
176
176
|
}
|
|
177
|
-
.
|
|
177
|
+
.Markdown_content__NmE1Z code {
|
|
178
178
|
font-size: 14px;
|
|
179
179
|
}
|
|
180
|
-
.
|
|
180
|
+
.Markdown_content__NmE1Z code:not([class]) {
|
|
181
181
|
font-family: var(--font-family-code);
|
|
182
182
|
color: var(--font-color);
|
|
183
183
|
padding: var(--spacing-1);
|
|
184
184
|
border-radius: var(--border-radius);
|
|
185
|
-
background: var(--base-color-
|
|
185
|
+
background: var(--base-color-50);
|
|
186
186
|
font-weight: var(--font-weight-bold);
|
|
187
187
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
// Generated by dts-bundle v0.7.3
|
|
2
|
-
// Dependencies for this module:
|
|
3
|
-
// ../../react
|
|
4
|
-
// ../../@/lib/types
|
|
5
|
-
|
|
6
|
-
declare module '@umami/shiso' {
|
|
7
|
-
import '@umami/react-zen/styles.css';
|
|
8
|
-
import 'highlight.js/styles/github-dark.css';
|
|
9
|
-
import { Blog } from '@umami/shiso/Blog';
|
|
10
|
-
import { Docs } from '@umami/shiso/Docs';
|
|
11
|
-
import { Shiso } from '@umami/shiso/Shiso';
|
|
12
|
-
export { Blog, Docs, Shiso };
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare module '@umami/shiso/Blog' {
|
|
16
|
-
export interface BlogProps {
|
|
17
|
-
title: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
code: string;
|
|
20
|
-
author?: string;
|
|
21
|
-
date?: string;
|
|
22
|
-
image?: string;
|
|
23
|
-
anchors?: any[];
|
|
24
|
-
}
|
|
25
|
-
export function Blog({ title, code, author, date, image, anchors }: BlogProps): import("react").JSX.Element;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare module '@umami/shiso/Docs' {
|
|
29
|
-
export function Docs({ content, config }: {
|
|
30
|
-
content: any;
|
|
31
|
-
config: any;
|
|
32
|
-
}): import("react").JSX.Element;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
declare module '@umami/shiso/Shiso' {
|
|
36
|
-
import { JSX } from 'react';
|
|
37
|
-
import type { ShisoConfig, ShisoContent } from '@/lib/types';
|
|
38
|
-
export interface ShisoProps {
|
|
39
|
-
type: string;
|
|
40
|
-
config: ShisoConfig;
|
|
41
|
-
content: ShisoContent;
|
|
42
|
-
components?: {
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
};
|
|
45
|
-
templates?: {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export type ShisoTemplateComponent = ({ content, config, }: {
|
|
50
|
-
content: any;
|
|
51
|
-
config: ShisoConfig;
|
|
52
|
-
}) => JSX.Element;
|
|
53
|
-
export const ShisoContext: import("react").Context<any>;
|
|
54
|
-
export function Shiso({ type, config, content, components, templates }: ShisoProps): JSX.Element;
|
|
55
|
-
}
|
|
56
|
-
|
|
1
|
+
// Generated by dts-bundle v0.7.3
|
|
2
|
+
// Dependencies for this module:
|
|
3
|
+
// ../../react
|
|
4
|
+
// ../../@/lib/types
|
|
5
|
+
|
|
6
|
+
declare module '@umami/shiso' {
|
|
7
|
+
import '@umami/react-zen/styles.css';
|
|
8
|
+
import 'highlight.js/styles/github-dark.css';
|
|
9
|
+
import { Blog } from '@umami/shiso/Blog';
|
|
10
|
+
import { Docs } from '@umami/shiso/Docs';
|
|
11
|
+
import { Shiso } from '@umami/shiso/Shiso';
|
|
12
|
+
export { Blog, Docs, Shiso };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare module '@umami/shiso/Blog' {
|
|
16
|
+
export interface BlogProps {
|
|
17
|
+
title: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
code: string;
|
|
20
|
+
author?: string;
|
|
21
|
+
date?: string;
|
|
22
|
+
image?: string;
|
|
23
|
+
anchors?: any[];
|
|
24
|
+
}
|
|
25
|
+
export function Blog({ title, code, author, date, image, anchors }: BlogProps): import("react").JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare module '@umami/shiso/Docs' {
|
|
29
|
+
export function Docs({ content, config }: {
|
|
30
|
+
content: any;
|
|
31
|
+
config: any;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare module '@umami/shiso/Shiso' {
|
|
36
|
+
import { JSX } from 'react';
|
|
37
|
+
import type { ShisoConfig, ShisoContent } from '@/lib/types';
|
|
38
|
+
export interface ShisoProps {
|
|
39
|
+
type: string;
|
|
40
|
+
config: ShisoConfig;
|
|
41
|
+
content: ShisoContent;
|
|
42
|
+
components?: {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
};
|
|
45
|
+
templates?: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export type ShisoTemplateComponent = ({ content, config, }: {
|
|
50
|
+
content: any;
|
|
51
|
+
config: ShisoConfig;
|
|
52
|
+
}) => JSX.Element;
|
|
53
|
+
export const ShisoContext: import("react").Context<any>;
|
|
54
|
+
export function Shiso({ type, config, content, components, templates }: ShisoProps): JSX.Element;
|
|
55
|
+
}
|
|
56
|
+
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
"use client";
|
|
3
2
|
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -46,8 +45,8 @@ var import_react = require("react");
|
|
|
46
45
|
var import_react_zen = require("@umami/react-zen");
|
|
47
46
|
var import_classnames = __toESM(require("classnames"));
|
|
48
47
|
|
|
49
|
-
// css-modules
|
|
50
|
-
var PageLinks_default = { "links": "
|
|
48
|
+
// css-modules:E:\dev\umami-shiso\src\components\PageLinks.module.css
|
|
49
|
+
var PageLinks_default = { "links": "PageLinks_links__NmJhO", "link": "PageLinks_link__OGI3M", "indent-1": "PageLinks_indent-1__M2IxZ", "indent-2": "PageLinks_indent-2__YTBlM", "indent-3": "PageLinks_indent-3__YzJlZ", "indent-4": "PageLinks_indent-4__NDg3Z", "indent-5": "PageLinks_indent-5__ZTE4M", "indent-6": "PageLinks_indent-6__NTRjM", "selected": "PageLinks_selected__ZjhkN" };
|
|
51
50
|
|
|
52
51
|
// src/components/PageLinks.tsx
|
|
53
52
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -99,8 +98,8 @@ var import_react_zen10 = require("@umami/react-zen");
|
|
|
99
98
|
var import_react2 = require("react");
|
|
100
99
|
var import_react_zen2 = require("@umami/react-zen");
|
|
101
100
|
|
|
102
|
-
// css-modules
|
|
103
|
-
var CodeBlock_default = { "container": "
|
|
101
|
+
// css-modules:E:\dev\umami-shiso\src\components\CodeBlock.module.css
|
|
102
|
+
var CodeBlock_default = { "container": "CodeBlock_container__ZTkxY", "button": "CodeBlock_button__MmZkO", "copy": "CodeBlock_copy__M2I0N", "check": "CodeBlock_check__MjkzY" };
|
|
104
103
|
|
|
105
104
|
// src/components/CodeBlock.tsx
|
|
106
105
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -130,8 +129,8 @@ var import_classnames2 = __toESM(require("classnames"));
|
|
|
130
129
|
var import_navigation = require("next/navigation");
|
|
131
130
|
var import_link = __toESM(require("next/link"));
|
|
132
131
|
|
|
133
|
-
// css-modules
|
|
134
|
-
var SideNav_default = { "nav": "
|
|
132
|
+
// css-modules:E:\dev\umami-shiso\src\components\SideNav.module.css
|
|
133
|
+
var SideNav_default = { "nav": "SideNav_nav__NTkxM", "sticky": "SideNav_sticky__YTdmY", "item": "SideNav_item__MDk5Z", "selected": "SideNav_selected__ZjVkZ", "header": "SideNav_header__Y2YyY" };
|
|
135
134
|
|
|
136
135
|
// src/components/SideNav.tsx
|
|
137
136
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
@@ -209,8 +208,8 @@ var import_mdx = require("@mdx-js/mdx");
|
|
|
209
208
|
var import_react4 = require("@mdx-js/react");
|
|
210
209
|
var runtime = __toESM(require("react/jsx-runtime"));
|
|
211
210
|
|
|
212
|
-
// css-modules
|
|
213
|
-
var Markdown_default = { "content": "
|
|
211
|
+
// css-modules:E:\dev\umami-shiso\src\components\Markdown.module.css
|
|
212
|
+
var Markdown_default = { "content": "Markdown_content__NmE1Z" };
|
|
214
213
|
|
|
215
214
|
// src/components/Markdown.tsx
|
|
216
215
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
1
|
// src/components/Blog.tsx
|
|
4
2
|
import { Heading as Heading5, Box as Box7, Text as Text6, Row as Row5, Column as Column5, Image as Image2 } from "@umami/react-zen";
|
|
5
3
|
import { format as format2 } from "date-fns";
|
|
@@ -9,8 +7,8 @@ import { useEffect, useState } from "react";
|
|
|
9
7
|
import { Column, Text, Box } from "@umami/react-zen";
|
|
10
8
|
import classNames from "classnames";
|
|
11
9
|
|
|
12
|
-
// css-modules
|
|
13
|
-
var PageLinks_default = { "links": "
|
|
10
|
+
// css-modules:E:\dev\umami-shiso\src\components\PageLinks.module.css
|
|
11
|
+
var PageLinks_default = { "links": "PageLinks_links__NmJhO", "link": "PageLinks_link__OGI3M", "indent-1": "PageLinks_indent-1__M2IxZ", "indent-2": "PageLinks_indent-2__YTBlM", "indent-3": "PageLinks_indent-3__YzJlZ", "indent-4": "PageLinks_indent-4__NDg3Z", "indent-5": "PageLinks_indent-5__ZTE4M", "indent-6": "PageLinks_indent-6__NTRjM", "selected": "PageLinks_selected__ZjhkN" };
|
|
14
12
|
|
|
15
13
|
// src/components/PageLinks.tsx
|
|
16
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -62,8 +60,8 @@ import { Code } from "@umami/react-zen";
|
|
|
62
60
|
import { useState as useState2, useRef } from "react";
|
|
63
61
|
import { Icon, Icons } from "@umami/react-zen";
|
|
64
62
|
|
|
65
|
-
// css-modules
|
|
66
|
-
var CodeBlock_default = { "container": "
|
|
63
|
+
// css-modules:E:\dev\umami-shiso\src\components\CodeBlock.module.css
|
|
64
|
+
var CodeBlock_default = { "container": "CodeBlock_container__ZTkxY", "button": "CodeBlock_button__MmZkO", "copy": "CodeBlock_copy__M2I0N", "check": "CodeBlock_check__MjkzY" };
|
|
67
65
|
|
|
68
66
|
// src/components/CodeBlock.tsx
|
|
69
67
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -104,8 +102,8 @@ import classNames2 from "classnames";
|
|
|
104
102
|
import { usePathname } from "next/navigation";
|
|
105
103
|
import Link from "next/link";
|
|
106
104
|
|
|
107
|
-
// css-modules
|
|
108
|
-
var SideNav_default = { "nav": "
|
|
105
|
+
// css-modules:E:\dev\umami-shiso\src\components\SideNav.module.css
|
|
106
|
+
var SideNav_default = { "nav": "SideNav_nav__NTkxM", "sticky": "SideNav_sticky__YTdmY", "item": "SideNav_item__MDk5Z", "selected": "SideNav_selected__ZjVkZ", "header": "SideNav_header__Y2YyY" };
|
|
109
107
|
|
|
110
108
|
// src/components/SideNav.tsx
|
|
111
109
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -183,8 +181,8 @@ import { runSync } from "@mdx-js/mdx";
|
|
|
183
181
|
import { useMDXComponents } from "@mdx-js/react";
|
|
184
182
|
import * as runtime from "react/jsx-runtime";
|
|
185
183
|
|
|
186
|
-
// css-modules
|
|
187
|
-
var Markdown_default = { "content": "
|
|
184
|
+
// css-modules:E:\dev\umami-shiso\src\components\Markdown.module.css
|
|
185
|
+
var Markdown_default = { "content": "Markdown_content__NmE1Z" };
|
|
188
186
|
|
|
189
187
|
// src/components/Markdown.tsx
|
|
190
188
|
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
package/package.json
CHANGED
package/server/index.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
// Generated by dts-bundle v0.7.3
|
|
2
|
-
// Dependencies for this module:
|
|
3
|
-
// ../../react
|
|
4
|
-
// ../../@/lib/types
|
|
5
|
-
|
|
6
|
-
declare module '@umami/shiso/server' {
|
|
7
|
-
import { ReactElement } from 'react';
|
|
8
|
-
import type { ShisoConfig, ShisoRenderProps, ShisoContent } from '@/lib/types';
|
|
9
|
-
export const parseFile: (file: string) => Promise<ShisoContent | null>;
|
|
10
|
-
export function next(type: string, config: ShisoConfig): {
|
|
11
|
-
generateMetadata: ({ params }: {
|
|
12
|
-
params: Promise<{
|
|
13
|
-
slug: string[];
|
|
14
|
-
}>;
|
|
15
|
-
}) => Promise<{
|
|
16
|
-
title: {
|
|
17
|
-
absolute: any;
|
|
18
|
-
default: any;
|
|
19
|
-
};
|
|
20
|
-
}>;
|
|
21
|
-
generateStaticParams: () => Promise<any>;
|
|
22
|
-
renderPage: (render: (props: ShisoRenderProps) => ReactElement) => ({ params }: {
|
|
23
|
-
params: Promise<{
|
|
24
|
-
slug: string[];
|
|
25
|
-
}>;
|
|
26
|
-
}) => Promise<ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>;
|
|
27
|
-
renderCollection: (render: (props: ShisoRenderProps) => ReactElement) => () => Promise<ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
1
|
+
// Generated by dts-bundle v0.7.3
|
|
2
|
+
// Dependencies for this module:
|
|
3
|
+
// ../../react
|
|
4
|
+
// ../../@/lib/types
|
|
5
|
+
|
|
6
|
+
declare module '@umami/shiso/server' {
|
|
7
|
+
import { ReactElement } from 'react';
|
|
8
|
+
import type { ShisoConfig, ShisoRenderProps, ShisoContent } from '@/lib/types';
|
|
9
|
+
export const parseFile: (file: string) => Promise<ShisoContent | null>;
|
|
10
|
+
export function next(type: string, config: ShisoConfig): {
|
|
11
|
+
generateMetadata: ({ params }: {
|
|
12
|
+
params: Promise<{
|
|
13
|
+
slug: string[];
|
|
14
|
+
}>;
|
|
15
|
+
}) => Promise<{
|
|
16
|
+
title: {
|
|
17
|
+
absolute: any;
|
|
18
|
+
default: any;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
generateStaticParams: () => Promise<any>;
|
|
22
|
+
renderPage: (render: (props: ShisoRenderProps) => ReactElement) => ({ params }: {
|
|
23
|
+
params: Promise<{
|
|
24
|
+
slug: string[];
|
|
25
|
+
}>;
|
|
26
|
+
}) => Promise<ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>;
|
|
27
|
+
renderCollection: (render: (props: ShisoRenderProps) => ReactElement) => () => Promise<ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
package/server/index.js
CHANGED
|
@@ -58,7 +58,7 @@ export var parseFile = cache(function (file) { return __awaiter(void 0, void 0,
|
|
|
58
58
|
var match = line.match(/^(#+)\s+(.*)/);
|
|
59
59
|
if (match) {
|
|
60
60
|
var num = match[1], name_1 = match[2];
|
|
61
|
-
var id = name_1.toLowerCase().replace(
|
|
61
|
+
var id = name_1.toLowerCase().replace(/\s+/g, '-');
|
|
62
62
|
var size = num.length;
|
|
63
63
|
anchors_1.push({ name: name_1, id: id, size: size });
|
|
64
64
|
}
|