@blinkk/root-cms 2.5.12-alpha.0 → 2.5.13
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 +4 -4
- package/dist/{chunk-LHKDOVL6.js → chunk-EKLY6WLD.js} +8 -4
- package/dist/plugin.js +1 -1
- package/dist/ui/ui.css +1 -1
- package/dist/ui/ui.js +144 -144
- package/dist/ui/ui.js.LEGAL.txt +1 -0
- package/package.json +9 -5
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getServerVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EKLY6WLD.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 {
|
|
13
|
+
import { render as renderToString } from "preact-render-to-string";
|
|
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 =
|
|
142
|
+
const mainHtml = renderToString(
|
|
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 =
|
|
237
|
+
const mainHtml = renderToString(
|
|
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.
|
|
4
|
+
version: "2.5.13",
|
|
5
5
|
author: "s@blinkk.com",
|
|
6
6
|
license: "MIT",
|
|
7
7
|
engines: {
|
|
@@ -12,6 +12,9 @@ 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
|
+
},
|
|
15
18
|
files: [
|
|
16
19
|
"dist/**/*"
|
|
17
20
|
],
|
|
@@ -154,7 +157,7 @@ var package_default = {
|
|
|
154
157
|
playwright: "1.56.1",
|
|
155
158
|
preact: "10.27.1",
|
|
156
159
|
"preact-iso": "2.11.1",
|
|
157
|
-
"preact-render-to-string": "6.6.
|
|
160
|
+
"preact-render-to-string": "6.6.1",
|
|
158
161
|
react: "npm:@preact/compat@18.3.1",
|
|
159
162
|
"react-dom": "npm:@preact/compat@18.3.1",
|
|
160
163
|
"react-easy-crop": "5.5.6",
|
|
@@ -166,10 +169,11 @@ var package_default = {
|
|
|
166
169
|
yjs: "13.6.27"
|
|
167
170
|
},
|
|
168
171
|
peerDependencies: {
|
|
169
|
-
"@blinkk/root": "2.5.
|
|
172
|
+
"@blinkk/root": "2.5.13",
|
|
170
173
|
"firebase-admin": ">=11",
|
|
171
174
|
"firebase-functions": ">=4",
|
|
172
|
-
preact: ">=10"
|
|
175
|
+
preact: ">=10",
|
|
176
|
+
"preact-render-to-string": ">=5"
|
|
173
177
|
},
|
|
174
178
|
peerDependenciesMeta: {
|
|
175
179
|
"firebase-functions": {
|