@umami/shiso 0.52.0 → 0.53.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 +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +16 -20
package/dist/index.js
CHANGED
|
@@ -97,16 +97,14 @@ var import_react_zen10 = require("@umami/react-zen");
|
|
|
97
97
|
|
|
98
98
|
// src/components/CodeBlock.tsx
|
|
99
99
|
var import_react2 = require("react");
|
|
100
|
+
var import_classnames2 = __toESM(require("classnames"));
|
|
100
101
|
var import_react_zen2 = require("@umami/react-zen");
|
|
101
|
-
var import_google = require("next/font/google");
|
|
102
102
|
|
|
103
103
|
// css-modules:E:\dev\umami-shiso\src\components\CodeBlock.module.css
|
|
104
104
|
var CodeBlock_default = { "container": "CodeBlock_container__OGZlM", "button": "CodeBlock_button__Y2Y2Z", "copy": "CodeBlock_copy__NWI2Y", "check": "CodeBlock_check__YzQzO" };
|
|
105
105
|
|
|
106
106
|
// src/components/CodeBlock.tsx
|
|
107
|
-
var import_classnames2 = __toESM(require("classnames"));
|
|
108
107
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
109
|
-
var mono = (0, import_google.JetBrains_Mono)({ subsets: ["latin"] });
|
|
110
108
|
function CodeBlock(props) {
|
|
111
109
|
const textInput = (0, import_react2.useRef)(null);
|
|
112
110
|
const [copied, setCopied] = (0, import_react2.useState)(false);
|
|
@@ -117,7 +115,7 @@ function CodeBlock(props) {
|
|
|
117
115
|
setCopied(false);
|
|
118
116
|
}, 1e3);
|
|
119
117
|
};
|
|
120
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("pre", { ref: textInput, className: (0, import_classnames2.default)(CodeBlock_default.container,
|
|
118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("pre", { ref: textInput, className: (0, import_classnames2.default)(CodeBlock_default.container, "dark-theme"), children: [
|
|
121
119
|
props.children,
|
|
122
120
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { "aria-label": "Copy code", className: CodeBlock_default.button, onClick: handleCopy, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_zen2.Icon, { size: "sm", className: copied ? CodeBlock_default.check : CodeBlock_default.copy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_zen2.Icons.Check, {}) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_zen2.Icons.Copy, {}) }) })
|
|
123
121
|
] });
|
package/dist/index.mjs
CHANGED
|
@@ -60,16 +60,14 @@ import { Code } from "@umami/react-zen";
|
|
|
60
60
|
|
|
61
61
|
// src/components/CodeBlock.tsx
|
|
62
62
|
import { useState as useState2, useRef } from "react";
|
|
63
|
+
import classNames2 from "classnames";
|
|
63
64
|
import { Icon, Icons } from "@umami/react-zen";
|
|
64
|
-
import { JetBrains_Mono } from "next/font/google";
|
|
65
65
|
|
|
66
66
|
// css-modules:E:\dev\umami-shiso\src\components\CodeBlock.module.css
|
|
67
67
|
var CodeBlock_default = { "container": "CodeBlock_container__OGZlM", "button": "CodeBlock_button__Y2Y2Z", "copy": "CodeBlock_copy__NWI2Y", "check": "CodeBlock_check__YzQzO" };
|
|
68
68
|
|
|
69
69
|
// src/components/CodeBlock.tsx
|
|
70
|
-
import classNames2 from "classnames";
|
|
71
70
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
72
|
-
var mono = JetBrains_Mono({ subsets: ["latin"] });
|
|
73
71
|
function CodeBlock(props) {
|
|
74
72
|
const textInput = useRef(null);
|
|
75
73
|
const [copied, setCopied] = useState2(false);
|
|
@@ -80,7 +78,7 @@ function CodeBlock(props) {
|
|
|
80
78
|
setCopied(false);
|
|
81
79
|
}, 1e3);
|
|
82
80
|
};
|
|
83
|
-
return /* @__PURE__ */ jsxs2("pre", { ref: textInput, className: classNames2(CodeBlock_default.container,
|
|
81
|
+
return /* @__PURE__ */ jsxs2("pre", { ref: textInput, className: classNames2(CodeBlock_default.container, "dark-theme"), children: [
|
|
84
82
|
props.children,
|
|
85
83
|
/* @__PURE__ */ jsx2("button", { "aria-label": "Copy code", className: CodeBlock_default.button, onClick: handleCopy, children: /* @__PURE__ */ jsx2(Icon, { size: "sm", className: copied ? CodeBlock_default.check : CodeBlock_default.copy, children: copied ? /* @__PURE__ */ jsx2(Icons.Check, {}) : /* @__PURE__ */ jsx2(Icons.Copy, {}) }) })
|
|
86
84
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umami/shiso",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "A content layer for Next.js",
|
|
5
5
|
"homepage": "https://shiso.umami.is",
|
|
6
6
|
"repository": {
|
|
@@ -18,19 +18,6 @@
|
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"dev": "next dev --port 8001 --turbo",
|
|
23
|
-
"build": "next build",
|
|
24
|
-
"start": "next start",
|
|
25
|
-
"lint": "next lint",
|
|
26
|
-
"icons": "svgr ./src/assets --out-dir src/components/svg --typescript",
|
|
27
|
-
"components": "tsc -p tsconfig.components.json",
|
|
28
|
-
"server": "tsc -p tsconfig.server.json",
|
|
29
|
-
"esbuild": "node esbuild.mjs",
|
|
30
|
-
"dts": "node dts.mjs",
|
|
31
|
-
"css": "node css.mjs",
|
|
32
|
-
"bundle": "npm-run-all components server dts esbuild css"
|
|
33
|
-
},
|
|
34
21
|
"lint-staged": {
|
|
35
22
|
"**/*.{js,jsx,ts,tsx}": [
|
|
36
23
|
"prettier --write",
|
|
@@ -45,6 +32,8 @@
|
|
|
45
32
|
]
|
|
46
33
|
},
|
|
47
34
|
"dependencies": {
|
|
35
|
+
"@fontsource/inter": "^5.2.5",
|
|
36
|
+
"@fontsource/jetbrains-mono": "^5.2.5",
|
|
48
37
|
"@mdx-js/loader": "^3.0.0",
|
|
49
38
|
"@mdx-js/mdx": "^3.1.0",
|
|
50
39
|
"@mdx-js/react": "^3.0.0",
|
|
@@ -92,10 +81,17 @@
|
|
|
92
81
|
"stylelint-config-recommended": "^14.0.1",
|
|
93
82
|
"typescript": "^5.8.3"
|
|
94
83
|
},
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
84
|
+
"scripts": {
|
|
85
|
+
"dev": "next dev --port 8001 --turbo",
|
|
86
|
+
"build": "next build",
|
|
87
|
+
"start": "next start",
|
|
88
|
+
"lint": "next lint",
|
|
89
|
+
"icons": "svgr ./src/assets --out-dir src/components/svg --typescript",
|
|
90
|
+
"components": "tsc -p tsconfig.components.json",
|
|
91
|
+
"server": "tsc -p tsconfig.server.json",
|
|
92
|
+
"esbuild": "node esbuild.mjs",
|
|
93
|
+
"dts": "node dts.mjs",
|
|
94
|
+
"css": "node css.mjs",
|
|
95
|
+
"bundle": "npm-run-all components server dts esbuild css"
|
|
100
96
|
}
|
|
101
|
-
}
|
|
97
|
+
}
|