@farming-labs/svelte-theme 0.1.47 → 0.1.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/svelte-theme",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "description": "Svelte UI components for @farming-labs/docs — layout, sidebar, TOC, search, and theme toggle",
5
5
  "keywords": [
6
6
  "docs",
@@ -112,8 +112,8 @@
112
112
  "dependencies": {
113
113
  "gray-matter": "^4.0.3",
114
114
  "sugar-high": "^0.9.5",
115
- "@farming-labs/docs": "0.1.47",
116
- "@farming-labs/svelte": "0.1.47"
115
+ "@farming-labs/docs": "0.1.48",
116
+ "@farming-labs/svelte": "0.1.48"
117
117
  },
118
118
  "peerDependencies": {
119
119
  "svelte": ">=5.0.0"
@@ -1,5 +1,4 @@
1
1
  <script>
2
- import { resolveReadingTimeOptions } from "@farming-labs/docs";
3
2
  import DocsPage from "./DocsPage.svelte";
4
3
  import { onMount, onDestroy } from "svelte";
5
4
 
@@ -125,11 +124,8 @@
125
124
  );
126
125
  let showActionsAbove = $derived(pageActionsPosition === "above-title" && showPageActions);
127
126
  let showActionsBelow = $derived(pageActionsPosition === "below-title" && showPageActions);
128
- let readingTimeConfig = $derived.by(() => {
129
- return resolveReadingTimeOptions(config?.readingTime);
130
- });
131
127
  let readingTimeValue = $derived(
132
- readingTimeConfig.enabled && typeof data.readingTime === "number"
128
+ typeof data.readingTime === "number"
133
129
  ? Math.max(1, Math.ceil(data.readingTime))
134
130
  : null
135
131
  );