@umami/shiso 0.39.0 → 0.41.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.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;
@@ -28,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
27
  ));
29
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
29
 
31
- // src/components/index.ts
30
+ // src/index.ts
32
31
  var index_exports = {};
33
32
  __export(index_exports, {
34
33
  Blog: () => Blog,
@@ -36,8 +35,6 @@ __export(index_exports, {
36
35
  Shiso: () => Shiso
37
36
  });
38
37
  module.exports = __toCommonJS(index_exports);
39
- var import_styles = require("@umami/react-zen/styles.css");
40
- var import_github_dark = require("highlight.js/styles/github-dark.css");
41
38
 
42
39
  // src/components/Blog.tsx
43
40
  var import_react_zen11 = require("@umami/react-zen");
@@ -130,6 +127,7 @@ var import_react3 = require("react");
130
127
  var import_react_zen3 = require("@umami/react-zen");
131
128
  var import_classnames2 = __toESM(require("classnames"));
132
129
  var import_navigation = require("next/navigation");
130
+ var import_link = __toESM(require("next/link"));
133
131
 
134
132
  // css-modules:E:\dev\umami-shiso\src\components\SideNav.module.css
135
133
  var SideNav_default = { "nav": "SideNav_nav__NTkxM", "sticky": "SideNav_sticky__YTdmY", "item": "SideNav_item__MDk5Z", "selected": "SideNav_selected__ZjVkZ", "header": "SideNav_header__Y2YyY" };
@@ -169,7 +167,7 @@ function SideNav({
169
167
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_zen3.Text, { weight: "bold", className: SideNav_default.header, children: section }),
170
168
  pages.map(({ label: text, url }, index) => {
171
169
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
172
- "a",
170
+ import_link.default,
173
171
  {
174
172
  className: (0, import_classnames2.default)(SideNav_default.item, {
175
173
  [SideNav_default.selected]: url === pathname
@@ -189,19 +187,20 @@ function SideNav({
189
187
  // src/components/TopNav.tsx
190
188
  var import_navigation2 = require("next/navigation");
191
189
  var import_react_zen4 = require("@umami/react-zen");
190
+ var import_link2 = __toESM(require("next/link"));
192
191
  var import_jsx_runtime4 = require("react/jsx-runtime");
193
192
  function TopNav({ tabs }) {
194
193
  const pathname = (0, import_navigation2.usePathname)();
195
194
  const tab = tabs?.find(({ id, url }) => id !== "docs" ? pathname.startsWith(url) : false);
196
195
  const selected = tab?.id || "docs";
197
196
  return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_zen4.Tabs, { selectedKey: selected, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_zen4.TabList, { items: tabs, children: ({ id, label, url }) => {
198
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_zen4.Tab, { id, href: url, children: label });
197
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_zen4.Tab, { id, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_link2.default, { href: url, children: label }) });
199
198
  } }) });
200
199
  }
201
200
 
202
201
  // src/components/DocContent.tsx
203
202
  var import_react_zen6 = require("@umami/react-zen");
204
- var import_link = __toESM(require("next/link"));
203
+ var import_link3 = __toESM(require("next/link"));
205
204
 
206
205
  // src/components/Markdown.tsx
207
206
  var import_react_zen5 = require("@umami/react-zen");
@@ -263,7 +262,7 @@ var NavigationButton = ({
263
262
  if (!url || !label) {
264
263
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen6.Box, {});
265
264
  }
266
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_link.default, { href: url, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_zen6.Row, { alignItems: "center", gap: "3", marginY: "3", children: [
265
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_link3.default, { href: url, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_zen6.Row, { alignItems: "center", gap: "3", marginY: "3", children: [
267
266
  isPrev && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen6.Icon, { size: "sm", rotate: 180, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen6.Icons.Chevron, {}) }),
268
267
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen6.Text, { size: "3", weight: "bold", children: label }),
269
268
  !isPrev && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen6.Icon, { size: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_zen6.Icons.Chevron, {}) })
@@ -373,7 +372,7 @@ var import_react_zen9 = require("@umami/react-zen");
373
372
 
374
373
  // src/components/Card.tsx
375
374
  var import_react_zen8 = require("@umami/react-zen");
376
- var import_link2 = __toESM(require("next/link"));
375
+ var import_link4 = __toESM(require("next/link"));
377
376
  var import_date_fns = require("date-fns");
378
377
  var import_jsx_runtime8 = require("react/jsx-runtime");
379
378
  function Card({ title, description, date, author, url, image }) {
@@ -388,10 +387,10 @@ function Card({ title, description, date, author, url, image }) {
388
387
  ] })
389
388
  ] }),
390
389
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_react_zen8.Column, { gap: "4", flexGrow: "1", children: [
391
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Heading, { size: "4", as: "header", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_link2.default, { href: url, children: title }) }),
390
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Heading, { size: "4", as: "header", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_link4.default, { href: url, children: title }) }),
392
391
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Box, { marginY: "5", as: "p", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Text, { color: "muted", size: "3", children: description }) })
393
392
  ] }),
394
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Button, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_link2.default, { href: url, children: [
393
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Button, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_link4.default, { href: url, children: [
395
394
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Text, { children: "Read more" }),
396
395
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_zen8.Icons.Arrow, {}) })
397
396
  ] }) })
@@ -406,7 +405,6 @@ function Blogs({ content, config }) {
406
405
  const { meta, code, anchors, slug } = content;
407
406
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Blog, { ...meta, code, anchors });
408
407
  }
409
- console.log({ content });
410
408
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_zen9.Grid, { gap: "5", columns: "repeat(auto-fit, minmax(400px, 1fr)", children: content?.sort((a, b) => new Date(b.meta.date).getTime() - new Date(a.meta.date).getTime()).map(({ meta, slug }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Card, { url: `/blog/${slug}`, ...meta }, slug)) });
411
409
  }
412
410
 
@@ -422,7 +420,7 @@ function Shiso({ type, config, content, components, templates }) {
422
420
  if (!Component) {
423
421
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h1", { children: `Component not found for type: ${type}` });
424
422
  }
425
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ShisoContext.Provider, { value: { type, config, content, components, templates }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react6.MDXProvider, { components: { ...components, pre: CodeBlock, code: import_react_zen10.Code }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Component, { config, content }) }) });
423
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ShisoContext.Provider, { value: { type, config, content, components, templates }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react6.MDXProvider, { components: { pre: CodeBlock, code: import_react_zen10.Code, ...components }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Component, { config, content }) }) });
426
424
  }
427
425
 
428
426
  // src/components/hooks/useShiso.ts
package/dist/index.mjs CHANGED
@@ -1,11 +1,5 @@
1
- "use client";
2
-
3
- // src/components/index.ts
4
- import "@umami/react-zen/styles.css";
5
- import "highlight.js/styles/github-dark.css";
6
-
7
1
  // src/components/Blog.tsx
8
- import { Heading as Heading5, Box as Box8, Text as Text6, Row as Row5, Column as Column5, Image as Image2 } from "@umami/react-zen";
2
+ import { Heading as Heading5, Box as Box7, Text as Text6, Row as Row5, Column as Column5, Image as Image2 } from "@umami/react-zen";
9
3
  import { format as format2 } from "date-fns";
10
4
 
11
5
  // src/components/PageLinks.tsx
@@ -89,7 +83,7 @@ function CodeBlock(props) {
89
83
 
90
84
  // src/components/Docs.tsx
91
85
  import {
92
- Box as Box5,
86
+ Box as Box4,
93
87
  Heading as Heading2,
94
88
  Button,
95
89
  Icon as Icon3,
@@ -106,6 +100,7 @@ import { useEffect as useEffect2, useState as useState3 } from "react";
106
100
  import { Text as Text2, Column as Column2 } from "@umami/react-zen";
107
101
  import classNames2 from "classnames";
108
102
  import { usePathname } from "next/navigation";
103
+ import Link from "next/link";
109
104
 
110
105
  // css-modules:E:\dev\umami-shiso\src\components\SideNav.module.css
111
106
  var SideNav_default = { "nav": "SideNav_nav__NTkxM", "sticky": "SideNav_sticky__YTdmY", "item": "SideNav_item__MDk5Z", "selected": "SideNav_selected__ZjVkZ", "header": "SideNav_header__Y2YyY" };
@@ -145,7 +140,7 @@ function SideNav({
145
140
  /* @__PURE__ */ jsx3(Text2, { weight: "bold", className: SideNav_default.header, children: section }),
146
141
  pages.map(({ label: text, url }, index) => {
147
142
  return /* @__PURE__ */ jsx3(
148
- "a",
143
+ Link,
149
144
  {
150
145
  className: classNames2(SideNav_default.item, {
151
146
  [SideNav_default.selected]: url === pathname
@@ -165,22 +160,23 @@ function SideNav({
165
160
  // src/components/TopNav.tsx
166
161
  import { usePathname as usePathname2 } from "next/navigation";
167
162
  import { Tabs, TabList, Tab } from "@umami/react-zen";
163
+ import Link2 from "next/link";
168
164
  import { jsx as jsx4 } from "react/jsx-runtime";
169
165
  function TopNav({ tabs }) {
170
166
  const pathname = usePathname2();
171
167
  const tab = tabs?.find(({ id, url }) => id !== "docs" ? pathname.startsWith(url) : false);
172
168
  const selected = tab?.id || "docs";
173
169
  return /* @__PURE__ */ jsx4(Tabs, { selectedKey: selected, children: /* @__PURE__ */ jsx4(TabList, { items: tabs, children: ({ id, label, url }) => {
174
- return /* @__PURE__ */ jsx4(Tab, { id, href: url, children: label });
170
+ return /* @__PURE__ */ jsx4(Tab, { id, children: /* @__PURE__ */ jsx4(Link2, { href: url, children: label }) });
175
171
  } }) });
176
172
  }
177
173
 
178
174
  // src/components/DocContent.tsx
179
- import { Heading, Box as Box4, Text as Text3, Row, Icon as Icon2, Icons as Icons2 } from "@umami/react-zen";
180
- import Link from "next/link";
175
+ import { Heading, Box as Box3, Text as Text3, Row, Icon as Icon2, Icons as Icons2 } from "@umami/react-zen";
176
+ import Link3 from "next/link";
181
177
 
182
178
  // src/components/Markdown.tsx
183
- import { Box as Box3 } from "@umami/react-zen";
179
+ import { Box as Box2 } from "@umami/react-zen";
184
180
  import { runSync } from "@mdx-js/mdx";
185
181
  import { useMDXComponents } from "@mdx-js/react";
186
182
  import * as runtime from "react/jsx-runtime";
@@ -213,13 +209,13 @@ function Markdown({ code }) {
213
209
  if (!Component) {
214
210
  return null;
215
211
  }
216
- return /* @__PURE__ */ jsx5(Box3, { className: Markdown_default.content, children: /* @__PURE__ */ jsx5(Component, { components }) });
212
+ return /* @__PURE__ */ jsx5(Box2, { className: Markdown_default.content, children: /* @__PURE__ */ jsx5(Component, { components }) });
217
213
  }
218
214
 
219
215
  // src/components/DocContent.tsx
220
216
  import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
221
217
  function DocContent({ section, title, description, code, next, prev }) {
222
- return /* @__PURE__ */ jsxs5(Box4, { flexGrow: "1", children: [
218
+ return /* @__PURE__ */ jsxs5(Box3, { flexGrow: "1", children: [
223
219
  section && /* @__PURE__ */ jsx6(Text3, { color: "primary", weight: "bold", children: section }),
224
220
  title && /* @__PURE__ */ jsx6(Heading, { size: "2", as: "h1", marginY: "3", children: title }),
225
221
  description && /* @__PURE__ */ jsx6(Text3, { color: "muted", size: "3", children: description }),
@@ -236,9 +232,9 @@ var NavigationButton = ({
236
232
  isPrev
237
233
  }) => {
238
234
  if (!url || !label) {
239
- return /* @__PURE__ */ jsx6(Box4, {});
235
+ return /* @__PURE__ */ jsx6(Box3, {});
240
236
  }
241
- return /* @__PURE__ */ jsx6(Link, { href: url, children: /* @__PURE__ */ jsxs5(Row, { alignItems: "center", gap: "3", marginY: "3", children: [
237
+ return /* @__PURE__ */ jsx6(Link3, { href: url, children: /* @__PURE__ */ jsxs5(Row, { alignItems: "center", gap: "3", marginY: "3", children: [
242
238
  isPrev && /* @__PURE__ */ jsx6(Icon2, { size: "sm", rotate: 180, children: /* @__PURE__ */ jsx6(Icons2.Chevron, {}) }),
243
239
  /* @__PURE__ */ jsx6(Text3, { size: "3", weight: "bold", children: label }),
244
240
  !isPrev && /* @__PURE__ */ jsx6(Icon2, { size: "sm", children: /* @__PURE__ */ jsx6(Icons2.Chevron, {}) })
@@ -308,11 +304,11 @@ function Docs({ content, config }) {
308
304
  /* @__PURE__ */ jsx7(Modal, { position: "bottom", offset: "40px", children: /* @__PURE__ */ jsx7(Dialog, { variant: "sheet", children: ({ close }) => {
309
305
  return /* @__PURE__ */ jsxs6(Fragment, { children: [
310
306
  /* @__PURE__ */ jsx7(Row2, { justifyContent: "flex-end", children: /* @__PURE__ */ jsx7(Button, { onPress: () => close(), variant: "quiet", children: /* @__PURE__ */ jsx7(Icon3, { size: "sm", children: /* @__PURE__ */ jsx7(Icons3.Close, {}) }) }) }),
311
- /* @__PURE__ */ jsx7(Box5, { height: "100%", overflow: "auto", children: /* @__PURE__ */ jsx7(SideNav, { tabs, navigation }) })
307
+ /* @__PURE__ */ jsx7(Box4, { height: "100%", overflow: "auto", children: /* @__PURE__ */ jsx7(SideNav, { tabs, navigation }) })
312
308
  ] });
313
309
  } }) })
314
310
  ] });
315
- return /* @__PURE__ */ jsxs6(Box5, { flexGrow: "1", children: [
311
+ return /* @__PURE__ */ jsxs6(Box4, { flexGrow: "1", children: [
316
312
  /* @__PURE__ */ jsx7(Row2, { display: menuDisplay, justifyContent: "flex-end", children: /* @__PURE__ */ jsx7(MobileMenuButton, {}) }),
317
313
  tabs && /* @__PURE__ */ jsx7(TopNav, { tabs }),
318
314
  /* @__PURE__ */ jsxs6(Row2, { gap: "6", children: [
@@ -347,13 +343,13 @@ function Docs({ content, config }) {
347
343
  import { Grid } from "@umami/react-zen";
348
344
 
349
345
  // src/components/Card.tsx
350
- import { Box as Box6, Image, Column as Column3, Row as Row3, Heading as Heading3, Text as Text5, Button as Button2, Icon as Icon4, Icons as Icons4 } from "@umami/react-zen";
351
- import Link2 from "next/link";
346
+ import { Box as Box5, Image, Column as Column3, Row as Row3, Heading as Heading3, Text as Text5, Button as Button2, Icon as Icon4, Icons as Icons4 } from "@umami/react-zen";
347
+ import Link4 from "next/link";
352
348
  import { format } from "date-fns";
353
349
  import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
354
350
  function Card({ title, description, date, author, url, image }) {
355
351
  return /* @__PURE__ */ jsxs7(Column3, { borderSize: "1", borderRadius: "3", overflow: "hidden", children: [
356
- image && /* @__PURE__ */ jsx8(Box6, { height: "240px", children: /* @__PURE__ */ jsx8(Image, { src: image, alt: title, objectFit: "cover" }) }),
352
+ image && /* @__PURE__ */ jsx8(Box5, { height: "240px", children: /* @__PURE__ */ jsx8(Image, { src: image, alt: title, objectFit: "cover" }) }),
357
353
  /* @__PURE__ */ jsxs7(Column3, { padding: "6", gap: "4", flexGrow: "1", children: [
358
354
  /* @__PURE__ */ jsxs7(Row3, { justifyContent: "space-between", children: [
359
355
  /* @__PURE__ */ jsx8(Text5, { color: "muted", children: date && format(new Date(date), "PP") }),
@@ -363,10 +359,10 @@ function Card({ title, description, date, author, url, image }) {
363
359
  ] })
364
360
  ] }),
365
361
  /* @__PURE__ */ jsxs7(Column3, { gap: "4", flexGrow: "1", children: [
366
- /* @__PURE__ */ jsx8(Heading3, { size: "4", as: "header", children: /* @__PURE__ */ jsx8(Link2, { href: url, children: title }) }),
367
- /* @__PURE__ */ jsx8(Box6, { marginY: "5", as: "p", children: /* @__PURE__ */ jsx8(Text5, { color: "muted", size: "3", children: description }) })
362
+ /* @__PURE__ */ jsx8(Heading3, { size: "4", as: "header", children: /* @__PURE__ */ jsx8(Link4, { href: url, children: title }) }),
363
+ /* @__PURE__ */ jsx8(Box5, { marginY: "5", as: "p", children: /* @__PURE__ */ jsx8(Text5, { color: "muted", size: "3", children: description }) })
368
364
  ] }),
369
- /* @__PURE__ */ jsx8(Button2, { asChild: true, children: /* @__PURE__ */ jsxs7(Link2, { href: url, children: [
365
+ /* @__PURE__ */ jsx8(Button2, { asChild: true, children: /* @__PURE__ */ jsxs7(Link4, { href: url, children: [
370
366
  /* @__PURE__ */ jsx8(Text5, { children: "Read more" }),
371
367
  /* @__PURE__ */ jsx8(Icon4, { children: /* @__PURE__ */ jsx8(Icons4.Arrow, {}) })
372
368
  ] }) })
@@ -381,7 +377,6 @@ function Blogs({ content, config }) {
381
377
  const { meta, code, anchors, slug } = content;
382
378
  return /* @__PURE__ */ jsx9(Blog, { ...meta, code, anchors });
383
379
  }
384
- console.log({ content });
385
380
  return /* @__PURE__ */ jsx9(Grid, { gap: "5", columns: "repeat(auto-fit, minmax(400px, 1fr)", children: content?.sort((a, b) => new Date(b.meta.date).getTime() - new Date(a.meta.date).getTime()).map(({ meta, slug }) => /* @__PURE__ */ jsx9(Card, { url: `/blog/${slug}`, ...meta }, slug)) });
386
381
  }
387
382
 
@@ -397,7 +392,7 @@ function Shiso({ type, config, content, components, templates }) {
397
392
  if (!Component) {
398
393
  return /* @__PURE__ */ jsx10("h1", { children: `Component not found for type: ${type}` });
399
394
  }
400
- return /* @__PURE__ */ jsx10(ShisoContext.Provider, { value: { type, config, content, components, templates }, children: /* @__PURE__ */ jsx10(MDXProvider, { components: { ...components, pre: CodeBlock, code: Code }, children: /* @__PURE__ */ jsx10(Component, { config, content }) }) });
395
+ return /* @__PURE__ */ jsx10(ShisoContext.Provider, { value: { type, config, content, components, templates }, children: /* @__PURE__ */ jsx10(MDXProvider, { components: { pre: CodeBlock, code: Code, ...components }, children: /* @__PURE__ */ jsx10(Component, { config, content }) }) });
401
396
  }
402
397
 
403
398
  // src/components/hooks/useShiso.ts
@@ -420,7 +415,7 @@ function Blog({ title, code, author, date, image, anchors }) {
420
415
  xl: "block"
421
416
  };
422
417
  return /* @__PURE__ */ jsxs8(Column5, { gap: "8", maxWidth: "960px", style: { margin: "0 auto" }, children: [
423
- /* @__PURE__ */ jsx11(Box8, { flexGrow: "1", paddingY: "6", children: title && /* @__PURE__ */ jsx11(Heading5, { size: "1", as: "h1", align: "center", children: title }) }),
418
+ /* @__PURE__ */ jsx11(Box7, { flexGrow: "1", paddingY: "6", children: title && /* @__PURE__ */ jsx11(Heading5, { size: "1", as: "h1", align: "center", children: title }) }),
424
419
  /* @__PURE__ */ jsxs8(Row5, { justifyContent: "space-between", children: [
425
420
  /* @__PURE__ */ jsx11(Text6, { color: "muted", children: date && format2(new Date(date), "PPP") }),
426
421
  /* @__PURE__ */ jsxs8(Text6, { color: "muted", children: [
@@ -428,7 +423,7 @@ function Blog({ title, code, author, date, image, anchors }) {
428
423
  author
429
424
  ] })
430
425
  ] }),
431
- image && /* @__PURE__ */ jsx11(Box8, { height: "480px", children: /* @__PURE__ */ jsx11(Image2, { src: image, alt: title, objectFit: "cover", borderRadius: "3" }) }),
426
+ image && /* @__PURE__ */ jsx11(Box7, { height: "480px", children: /* @__PURE__ */ jsx11(Image2, { src: image, alt: title, objectFit: "cover", borderRadius: "3" }) }),
432
427
  /* @__PURE__ */ jsxs8(Row5, { gap: "6", children: [
433
428
  /* @__PURE__ */ jsx11(Markdown, { code }),
434
429
  /* @__PURE__ */ jsx11(PageLinks, { display: linksDisplay, items: anchors, style: { top } })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "description": "A content layer for Next.js",
5
5
  "homepage": "https://umami.is/shiso",
6
6
  "repository": {
@@ -27,7 +27,8 @@
27
27
  "server": "tsc -p tsconfig.server.json",
28
28
  "esbuild": "node esbuild.mjs",
29
29
  "dts": "node dts.mjs",
30
- "bundle": "npm-run-all components server dts esbuild"
30
+ "css": "node css.mjs",
31
+ "bundle": "npm-run-all components server dts esbuild css"
31
32
  },
32
33
  "lint-staged": {
33
34
  "**/*.{js,jsx,ts,tsx}": [