@umami/shiso 0.40.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");
@@ -423,7 +420,7 @@ function Shiso({ type, config, content, components, templates }) {
423
420
  if (!Component) {
424
421
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("h1", { children: `Component not found for type: ${type}` });
425
422
  }
426
- 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 }) }) });
427
424
  }
428
425
 
429
426
  // src/components/hooks/useShiso.ts
package/dist/index.mjs CHANGED
@@ -1,9 +1,3 @@
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
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";
@@ -398,7 +392,7 @@ function Shiso({ type, config, content, components, templates }) {
398
392
  if (!Component) {
399
393
  return /* @__PURE__ */ jsx10("h1", { children: `Component not found for type: ${type}` });
400
394
  }
401
- 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 }) }) });
402
396
  }
403
397
 
404
398
  // src/components/hooks/useShiso.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/shiso",
3
- "version": "0.40.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}": [