@blinkk/root-cms 2.5.12 → 2.5.14-alpha.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/app.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getServerVersion
3
- } from "./chunk-IGRNAKHD.js";
3
+ } from "./chunk-XNGSOET2.js";
4
4
  import {
5
5
  getCollectionSchema,
6
6
  getProjectSchemas
@@ -10,7 +10,7 @@ import "./chunk-MLKGABMK.js";
10
10
  // core/app.tsx
11
11
  import crypto from "crypto";
12
12
  import path from "path";
13
- import { render as renderToString } from "preact-render-to-string";
13
+ import { renderJsxToString } from "@blinkk/root/jsx";
14
14
  import { jsx, jsxs } from "preact/jsx-runtime";
15
15
  var DEFAULT_FAVICON_URL = "https://lh3.googleusercontent.com/ijK50TfQlV_yJw3i-CMlnD6osH4PboZBILZrJcWhoNMEmoyCD5e1bAxXbaOPe5w4gG_Scf37EXrmZ6p8sP2lue5fLZ419m5JyLMs=e385-w256";
16
16
  function App(props) {
@@ -139,7 +139,7 @@ async function renderApp(req, res, options) {
139
139
  };
140
140
  const projectName = cmsConfig.name || cmsConfig.id || "";
141
141
  const title = getCmsTitle(projectName, cmsConfig.minimalBranding);
142
- const mainHtml = renderToString(
142
+ const mainHtml = renderJsxToString(
143
143
  /* @__PURE__ */ jsx(App, { title, ctx, favicon: cmsConfig.favicon })
144
144
  );
145
145
  const nonce = generateNonce();
@@ -234,7 +234,7 @@ async function renderSignIn(req, res, options) {
234
234
  ctx.warning = "Dev warning: Server may be misconfigured. See logs for more information.";
235
235
  }
236
236
  }
237
- const mainHtml = renderToString(
237
+ const mainHtml = renderJsxToString(
238
238
  /* @__PURE__ */ jsx(SignIn, { title: "Sign in", ctx, favicon: options.cmsConfig.favicon })
239
239
  );
240
240
  const nonce = generateNonce();
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@blinkk/root-cms",
4
- version: "2.5.12",
4
+ version: "2.5.13",
5
5
  author: "s@blinkk.com",
6
6
  license: "MIT",
7
7
  engines: {
@@ -12,9 +12,6 @@ var package_default = {
12
12
  url: "git+https://github.com/blinkk/rootjs.git",
13
13
  directory: "packages/root-cms"
14
14
  },
15
- publishConfig: {
16
- provenance: true
17
- },
18
15
  files: [
19
16
  "dist/**/*"
20
17
  ],
@@ -157,7 +154,7 @@ var package_default = {
157
154
  playwright: "1.56.1",
158
155
  preact: "10.27.1",
159
156
  "preact-iso": "2.11.1",
160
- "preact-render-to-string": "6.6.1",
157
+ "preact-render-to-string": "6.6.7",
161
158
  react: "npm:@preact/compat@18.3.1",
162
159
  "react-dom": "npm:@preact/compat@18.3.1",
163
160
  "react-easy-crop": "5.5.6",
@@ -169,11 +166,10 @@ var package_default = {
169
166
  yjs: "13.6.27"
170
167
  },
171
168
  peerDependencies: {
172
- "@blinkk/root": "2.5.12",
169
+ "@blinkk/root": "2.5.13",
173
170
  "firebase-admin": ">=11",
174
171
  "firebase-functions": ">=4",
175
- preact: ">=10",
176
- "preact-render-to-string": ">=5"
172
+ preact: ">=10"
177
173
  },
178
174
  peerDependenciesMeta: {
179
175
  "firebase-functions": {
package/dist/plugin.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-T5UK2H24.js";
5
5
  import {
6
6
  getServerVersion
7
- } from "./chunk-IGRNAKHD.js";
7
+ } from "./chunk-XNGSOET2.js";
8
8
  import {
9
9
  runCronJobs
10
10
  } from "./chunk-PKD2TDSV.js";