@constela/start 1.2.25 → 1.2.26

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.
@@ -108,7 +108,9 @@ ${importMapJson}
108
108
  themeScript = `<script>
109
109
  (function() {
110
110
  try {
111
- var theme = localStorage.getItem('${options.themeStorageKey}');
111
+ var raw = localStorage.getItem('${options.themeStorageKey}');
112
+ var theme = raw;
113
+ try { theme = JSON.parse(raw); } catch (e) {}
112
114
  if (theme === 'dark') {
113
115
  document.documentElement.classList.add('dark');
114
116
  } else if (theme === 'light') {
@@ -2,7 +2,7 @@ import {
2
2
  generateHydrationScript,
3
3
  renderPage,
4
4
  wrapHtml
5
- } from "./chunk-GYIQEWAI.js";
5
+ } from "./chunk-CYMS3K6V.js";
6
6
 
7
7
  // src/router/file-router.ts
8
8
  import fg from "fast-glob";
package/dist/cli/index.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  createDevServer,
4
4
  loadConfig,
5
5
  resolveConfig
6
- } from "../chunk-NT7TXD5B.js";
7
- import "../chunk-GYIQEWAI.js";
6
+ } from "../chunk-KX2KFKH4.js";
7
+ import "../chunk-CYMS3K6V.js";
8
8
 
9
9
  // src/cli/index.ts
10
10
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -23,12 +23,12 @@ import {
23
23
  transformCsv,
24
24
  transformMdx,
25
25
  transformYaml
26
- } from "./chunk-NT7TXD5B.js";
26
+ } from "./chunk-KX2KFKH4.js";
27
27
  import {
28
28
  generateHydrationScript,
29
29
  renderPage,
30
30
  wrapHtml
31
- } from "./chunk-GYIQEWAI.js";
31
+ } from "./chunk-CYMS3K6V.js";
32
32
 
33
33
  // src/build/ssg.ts
34
34
  import { mkdir, writeFile } from "fs/promises";
@@ -2,7 +2,7 @@ import {
2
2
  generateHydrationScript,
3
3
  renderPage,
4
4
  wrapHtml
5
- } from "../chunk-GYIQEWAI.js";
5
+ } from "../chunk-CYMS3K6V.js";
6
6
  export {
7
7
  generateHydrationScript,
8
8
  renderPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/start",
3
- "version": "1.2.25",
3
+ "version": "1.2.26",
4
4
  "description": "Meta-framework for Constela applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,8 +46,8 @@
46
46
  "@constela/compiler": "0.8.0",
47
47
  "@constela/core": "0.8.0",
48
48
  "@constela/server": "4.1.0",
49
- "@constela/router": "9.0.0",
50
- "@constela/runtime": "0.11.0"
49
+ "@constela/runtime": "0.11.0",
50
+ "@constela/router": "9.0.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/mdast": "^4.0.4",