@farming-labs/theme 0.0.55 → 0.0.57
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/mdx.mjs
CHANGED
|
@@ -51,7 +51,7 @@ function applyBuiltInComponentDefaults(options) {
|
|
|
51
51
|
const builtInDefaults = mdxComponentDefaults[name] ?? {};
|
|
52
52
|
const componentDefaults = typeof value === "function" ? value(builtInDefaults) : {
|
|
53
53
|
...builtInDefaults,
|
|
54
|
-
...value
|
|
54
|
+
...value
|
|
55
55
|
};
|
|
56
56
|
if (!componentDefaults || typeof componentDefaults !== "object") continue;
|
|
57
57
|
components[name] = function ThemedComponent(props) {
|
package/dist/serialize-icon.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { __require } from "./_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
|
|
3
1
|
//#region src/serialize-icon.ts
|
|
4
2
|
function serializeIcon(icon) {
|
|
5
3
|
if (!icon) return void 0;
|
|
6
4
|
if (typeof icon === "string") return icon;
|
|
7
5
|
try {
|
|
8
|
-
const
|
|
6
|
+
const runtimeRequire = eval("require");
|
|
7
|
+
const { renderToStaticMarkup } = runtimeRequire("react-dom/server");
|
|
9
8
|
return renderToStaticMarkup(icon);
|
|
10
9
|
} catch {
|
|
11
10
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farming-labs/theme",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"description": "Theme package for @farming-labs/docs — layout, provider, MDX components, and styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"tsdown": "^0.20.3",
|
|
116
116
|
"typescript": "^5.9.3",
|
|
117
117
|
"vitest": "^3.2.4",
|
|
118
|
-
"@farming-labs/docs": "0.0.
|
|
118
|
+
"@farming-labs/docs": "0.0.57"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
121
|
"@farming-labs/docs": ">=0.0.1",
|