@tenphi/renderer 0.21.2 → 0.22.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/client/code-copy.js +1 -1
- package/dist/client/heading-links.js +1 -1
- package/dist/client/page-copy.js +1 -1
- package/dist/components/Card.styles.js +6 -3
- package/dist/components/Document.styles.js +4 -3
- package/dist/components/HeaderFrame.styles.js +2 -1
- package/dist/components/Hero.styles.js +3 -2
- package/dist/components/MarkdownContent.styles.js +3 -1
- package/dist/components/MobileTableOfContents.styles.js +3 -2
- package/dist/components/PackageVersion.styles.js +1 -1
- package/dist/components/PageActions.styles.js +1 -1
- package/dist/components/Preview.styles.js +3 -1
- package/dist/components/Sidebar.styles.js +11 -7
- package/dist/components/SidebarList.astro +1 -5
- package/dist/components/SkipLink.styles.js +3 -2
- package/dist/components/TableOfContents.styles.js +2 -1
- package/dist/components/Tabs.styles.js +2 -1
- package/dist/components/ThemeSelect.styles.js +5 -3
- package/dist/components/TopNavigation.styles.js +3 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/localization.d.ts +2 -42
- package/dist/localization.d.ts.map +1 -1
- package/dist/localization.js +9 -89
- package/dist/localization.js.map +1 -1
- package/dist/messages-BqBGDIoP.js +143 -0
- package/dist/messages-BqBGDIoP.js.map +1 -0
- package/dist/messages-ClTf2nFf.d.ts +52 -0
- package/dist/messages-ClTf2nFf.d.ts.map +1 -0
- package/dist/{messages-B_3xUzUb.js → messages-bS8G9Pj8.js} +2 -2
- package/dist/{messages-B_3xUzUb.js.map → messages-bS8G9Pj8.js.map} +1 -1
- package/dist/navigation.d.ts +3 -1
- package/dist/navigation.d.ts.map +1 -1
- package/dist/navigation.js +30 -9
- package/dist/navigation.js.map +1 -1
- package/dist/route-context.d.ts +2 -10
- package/dist/route-context.d.ts.map +1 -1
- package/dist/route-context.js +4 -2
- package/dist/route-context.js.map +1 -1
- package/dist/ui.d.ts +2 -6
- package/dist/ui.js +1 -58
- package/package.json +5 -5
- package/dist/ui.d.ts.map +0 -1
- package/dist/ui.js.map +0 -1
package/dist/client/code-copy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as message } from "../messages-
|
|
1
|
+
import { t as message } from "../messages-bS8G9Pj8.js";
|
|
2
2
|
//#region src/client/heading-links.ts
|
|
3
3
|
/** Keep real fragment links as the no-JavaScript and modified-click fallback. */
|
|
4
4
|
function initializeHeadingLinks() {
|
package/dist/client/page-copy.js
CHANGED
|
@@ -16,7 +16,9 @@ export const CardRoot = defineComponent("Card", {
|
|
|
16
16
|
border: true,
|
|
17
17
|
radius: "1cr",
|
|
18
18
|
fill: "#surface-2",
|
|
19
|
-
shadow: "
|
|
19
|
+
"$resting-shadow-offset": "1px",
|
|
20
|
+
"$resting-shadow-blur": "2px",
|
|
21
|
+
shadow: "0 $resting-shadow-offset $resting-shadow-blur #shadow",
|
|
20
22
|
transition: "fill $transition, shadow $transition, translate $transition",
|
|
21
23
|
|
|
22
24
|
Heading2: {
|
|
@@ -52,12 +54,13 @@ export const CardLink = tasty(CardRoot, {
|
|
|
52
54
|
":active": "#surface-2-pressed",
|
|
53
55
|
},
|
|
54
56
|
shadow: {
|
|
55
|
-
"": "0
|
|
57
|
+
"": "0 $resting-shadow-offset $resting-shadow-blur #shadow",
|
|
56
58
|
":hover": "0 .75x 2x #shadow",
|
|
57
59
|
},
|
|
60
|
+
"$hover-offset": "-1px",
|
|
58
61
|
translate: {
|
|
59
62
|
"": "0",
|
|
60
|
-
":hover": "0 -
|
|
63
|
+
":hover": "0 $hover-offset",
|
|
61
64
|
":active": "0",
|
|
62
65
|
},
|
|
63
66
|
},
|
|
@@ -164,11 +164,12 @@ export default function DocumentStyles() {
|
|
|
164
164
|
},
|
|
165
165
|
ScreenReaderOnly: {
|
|
166
166
|
$: ".sr-only",
|
|
167
|
+
"$visually-hidden-size": "1px",
|
|
167
168
|
position: "absolute",
|
|
168
|
-
inlineSize: "
|
|
169
|
-
blockSize: "
|
|
169
|
+
inlineSize: "$visually-hidden-size",
|
|
170
|
+
blockSize: "$visually-hidden-size",
|
|
170
171
|
padding: "0",
|
|
171
|
-
margin: "-
|
|
172
|
+
margin: "($visually-hidden-size * -1)",
|
|
172
173
|
overflow: "hidden",
|
|
173
174
|
clip: "rect(0, 0, 0, 0)",
|
|
174
175
|
whiteSpace: "nowrap",
|
|
@@ -15,6 +15,7 @@ export const HeaderFrameRoot = defineComponent("HeaderFrame", {
|
|
|
15
15
|
padding: "0 $docs-nav-pad-x",
|
|
16
16
|
blockBorder: "$border-width solid #border end",
|
|
17
17
|
fill: "#header",
|
|
18
|
-
|
|
18
|
+
"$backdrop-blur": "16px",
|
|
19
|
+
backdropFilter: "blur($backdrop-blur)",
|
|
19
20
|
},
|
|
20
21
|
});
|
|
@@ -91,7 +91,7 @@ export const HeroRoot = defineComponent("Hero", {
|
|
|
91
91
|
gap: "$gap",
|
|
92
92
|
color: "#text",
|
|
93
93
|
border: true,
|
|
94
|
-
radius: "
|
|
94
|
+
radius: "round",
|
|
95
95
|
fill: "#surface-2",
|
|
96
96
|
preset: "navigation / strong",
|
|
97
97
|
textDecoration: "none",
|
|
@@ -99,8 +99,9 @@ export const HeroRoot = defineComponent("Hero", {
|
|
|
99
99
|
},
|
|
100
100
|
HoverAction: {
|
|
101
101
|
$: ".cookbook-link-button",
|
|
102
|
+
"$hover-offset": "-1px",
|
|
102
103
|
fill: { "": null, "@own(:hover)": "#surface-2-hover" },
|
|
103
|
-
translate: { "": null, "@own(:hover)": "0 -
|
|
104
|
+
translate: { "": null, "@own(:hover)": "0 $hover-offset" },
|
|
104
105
|
},
|
|
105
106
|
PrimaryAction: {
|
|
106
107
|
$: ".cookbook-link-button.primary",
|
|
@@ -130,13 +130,15 @@ export default function MarkdownStyles() {
|
|
|
130
130
|
},
|
|
131
131
|
Details: {
|
|
132
132
|
$: "details",
|
|
133
|
+
"$details-border-width": "2px",
|
|
133
134
|
inlinePadding: {
|
|
134
135
|
"": null,
|
|
135
136
|
"@own(!:is(.not-content *))": "($gap * 2) start",
|
|
136
137
|
},
|
|
137
138
|
inlineBorder: {
|
|
138
139
|
"": null,
|
|
139
|
-
"@own(!:is(.not-content *))":
|
|
140
|
+
"@own(!:is(.not-content *))":
|
|
141
|
+
"$details-border-width solid #border start",
|
|
140
142
|
},
|
|
141
143
|
// Change only color; border widths and styles belong to other rules or theme overrides.
|
|
142
144
|
// eslint-disable-next-line tasty/prefer-shorthand-property
|
|
@@ -24,11 +24,12 @@ export const MobileTableOfContentsRoot = defineComponent(
|
|
|
24
24
|
},
|
|
25
25
|
List: {
|
|
26
26
|
$: "ul",
|
|
27
|
+
"$item-gap": "2px",
|
|
27
28
|
listStyle: "none",
|
|
28
29
|
padding: "0",
|
|
29
30
|
margin: "0",
|
|
30
31
|
display: "grid",
|
|
31
|
-
gap: "
|
|
32
|
+
gap: "$item-gap",
|
|
32
33
|
},
|
|
33
34
|
NestedList: { $: "ul ul", inlinePadding: "($gap * 2) start" },
|
|
34
35
|
Item: { $: "li", listStyle: "none", margin: "0", padding: "0" },
|
|
@@ -51,7 +52,7 @@ export const MobileTableOfContentsRoot = defineComponent(
|
|
|
51
52
|
outline: {
|
|
52
53
|
"": null,
|
|
53
54
|
"@own(:is(a:focus-visible)) | @own(:is(summary:focus-visible))":
|
|
54
|
-
"
|
|
55
|
+
"$outline-width solid #focus / $outline-offset",
|
|
55
56
|
},
|
|
56
57
|
},
|
|
57
58
|
},
|
|
@@ -36,7 +36,7 @@ export const PageActionsRoot = defineComponent("PageActions", {
|
|
|
36
36
|
$: "button, a",
|
|
37
37
|
outline: {
|
|
38
38
|
"": null,
|
|
39
|
-
"@own(:focus-visible)": "
|
|
39
|
+
"@own(:focus-visible)": "$outline-width solid #focus / $outline-offset",
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
Pending: {
|
|
@@ -22,7 +22,9 @@ export const PreviewRoot = defineComponent("Preview", {
|
|
|
22
22
|
border: true,
|
|
23
23
|
radius: "1cr",
|
|
24
24
|
fill: "#surface",
|
|
25
|
-
shadow: "
|
|
25
|
+
"$resting-shadow-offset": "1px",
|
|
26
|
+
"$resting-shadow-blur": "2px",
|
|
27
|
+
shadow: "0 $resting-shadow-offset $resting-shadow-blur #shadow",
|
|
26
28
|
|
|
27
29
|
Caption: {
|
|
28
30
|
padding: "1.5x 2x",
|
|
@@ -198,6 +198,7 @@ export const SidebarRoot = defineComponent("Sidebar", {
|
|
|
198
198
|
display: "flex",
|
|
199
199
|
alignItems: "center",
|
|
200
200
|
inlineSize: "min 0",
|
|
201
|
+
flexGrow: "1",
|
|
201
202
|
gap: "0.25em",
|
|
202
203
|
},
|
|
203
204
|
GroupLabelText: {
|
|
@@ -291,14 +292,17 @@ export const SidebarRoot = defineComponent("Sidebar", {
|
|
|
291
292
|
},
|
|
292
293
|
},
|
|
293
294
|
Badge: {
|
|
294
|
-
$: "
|
|
295
|
+
$: "cookbook-sidebar Badge",
|
|
296
|
+
display: "inline-flex",
|
|
297
|
+
alignItems: "center",
|
|
295
298
|
flexShrink: "0",
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
radius: "
|
|
301
|
-
preset: "small",
|
|
299
|
+
inlineMargin: "auto start",
|
|
300
|
+
padding: "0.125em 0.625em",
|
|
301
|
+
color: "#accent-text",
|
|
302
|
+
fill: "#accent-surface-subtle",
|
|
303
|
+
radius: "round",
|
|
304
|
+
preset: "small / strong / tight",
|
|
305
|
+
whiteSpace: "nowrap",
|
|
302
306
|
},
|
|
303
307
|
TopLevelLink: {
|
|
304
308
|
$: "a.large",
|
|
@@ -27,11 +27,7 @@ const containsCurrent = (items: SidebarEntry[]): boolean =>
|
|
|
27
27
|
entry.type === "group" ? entry.entries.slice(groupLink ? 1 : 0) : [];
|
|
28
28
|
const open = Boolean(groupLink?.isCurrent) || containsCurrent(children);
|
|
29
29
|
const badge = entry.badge && (
|
|
30
|
-
<span
|
|
31
|
-
class:list={["sidebar-badge", entry.badge.variant, entry.badge.class]}
|
|
32
|
-
>
|
|
33
|
-
{entry.badge.text}
|
|
34
|
-
</span>
|
|
30
|
+
<span data-element="Badge">{entry.badge}</span>
|
|
35
31
|
);
|
|
36
32
|
const label = (
|
|
37
33
|
<span class="group-label">
|
|
@@ -7,6 +7,7 @@ export const SkipLinkRoot = defineComponent("SkipLink", {
|
|
|
7
7
|
as: "a",
|
|
8
8
|
"data-element": "SkipLink",
|
|
9
9
|
styles: {
|
|
10
|
+
"$visually-hidden-size": "1px",
|
|
10
11
|
zIndex: { "": null, ":focus": "20" },
|
|
11
12
|
color: { "": null, ":focus": "#accent-surface-text" },
|
|
12
13
|
fill: { "": null, ":focus": "#accent-surface" },
|
|
@@ -15,8 +16,8 @@ export const SkipLinkRoot = defineComponent("SkipLink", {
|
|
|
15
16
|
textDecoration: { "": null, ":focus": "none" },
|
|
16
17
|
position: "fixed",
|
|
17
18
|
inset: "($gap * 1.5) auto auto ($gap * 1.5)",
|
|
18
|
-
inlineSize: { "": "
|
|
19
|
-
blockSize: { "": "
|
|
19
|
+
inlineSize: { "": "$visually-hidden-size", ":focus": "auto" },
|
|
20
|
+
blockSize: { "": "$visually-hidden-size", ":focus": "auto" },
|
|
20
21
|
padding: { "": "0", ":focus": "$gap ($gap * 2)" },
|
|
21
22
|
overflow: { "": "hidden", ":focus": "visible" },
|
|
22
23
|
clip: { "": "rect(0, 0, 0, 0)", ":focus": "auto" },
|
|
@@ -19,10 +19,11 @@ export const TableOfContentsRoot = defineComponent("TableOfContents", {
|
|
|
19
19
|
},
|
|
20
20
|
List: {
|
|
21
21
|
$: "ul",
|
|
22
|
+
"$item-gap": "1px",
|
|
22
23
|
display: "grid",
|
|
23
24
|
gridColumns: "minmax(0, 1fr)",
|
|
24
25
|
inlineSize: "min 0",
|
|
25
|
-
gap: "
|
|
26
|
+
gap: "$item-gap",
|
|
26
27
|
margin: "0",
|
|
27
28
|
padding: "0",
|
|
28
29
|
listStyle: "none",
|
|
@@ -137,14 +137,16 @@ export const ThemeSelectRoot = defineComponent("ThemeSelect", {
|
|
|
137
137
|
$: "label",
|
|
138
138
|
outline: {
|
|
139
139
|
"": null,
|
|
140
|
-
"@own(:has(input:focus-visible))":
|
|
140
|
+
"@own(:has(input:focus-visible))":
|
|
141
|
+
"$outline-width solid #focus / ($outline-offset * -1)",
|
|
141
142
|
},
|
|
142
143
|
},
|
|
143
144
|
Input: {
|
|
144
145
|
$: "input",
|
|
146
|
+
"$visually-hidden-size": "1px",
|
|
145
147
|
position: "absolute",
|
|
146
|
-
inlineSize: "
|
|
147
|
-
blockSize: "0
|
|
148
|
+
inlineSize: "$visually-hidden-size",
|
|
149
|
+
blockSize: "0 $visually-hidden-size",
|
|
148
150
|
padding: "0",
|
|
149
151
|
margin: "0",
|
|
150
152
|
overflow: "hidden",
|
|
@@ -41,11 +41,12 @@ export const TopNavigationRoot = defineComponent("TopNavigation", {
|
|
|
41
41
|
// Tasty 3.9.3 appends @own states after pseudo-elements, producing invalid CSS.
|
|
42
42
|
// eslint-disable-next-line tasty/no-state-in-selector
|
|
43
43
|
$: 'a[aria-current="page"]::after',
|
|
44
|
+
"$indicator-height": "2px",
|
|
44
45
|
content: '""',
|
|
45
46
|
position: "absolute",
|
|
46
47
|
inset: "auto 0 0",
|
|
47
|
-
blockSize: "
|
|
48
|
-
radius: "
|
|
48
|
+
blockSize: "$indicator-height",
|
|
49
|
+
radius: "round",
|
|
49
50
|
fill: "#accent-surface",
|
|
50
51
|
},
|
|
51
52
|
},
|
package/dist/index.js
CHANGED
|
@@ -1165,13 +1165,14 @@ function configuredCookbook(options) {
|
|
|
1165
1165
|
let siteLogo;
|
|
1166
1166
|
async function loadGraph(refresh = false) {
|
|
1167
1167
|
if (!graph || refresh) {
|
|
1168
|
-
|
|
1168
|
+
const candidate = await createDocsGraph({
|
|
1169
1169
|
...projectRoot ? { root: projectRoot } : {},
|
|
1170
1170
|
...graphConfig ? { config: graphConfig } : {},
|
|
1171
1171
|
base: graphBase
|
|
1172
1172
|
});
|
|
1173
|
-
assertValidDocs(
|
|
1174
|
-
await validatePluginFrontmatter(
|
|
1173
|
+
assertValidDocs(candidate);
|
|
1174
|
+
await validatePluginFrontmatter(candidate.entries, options.frontmatterSchema);
|
|
1175
|
+
graph = candidate;
|
|
1175
1176
|
}
|
|
1176
1177
|
return graph;
|
|
1177
1178
|
}
|