@blinkk/root-cms 2.5.11 → 2.5.12-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 +4 -4
- package/dist/{chunk-QGLJ7BOU.js → chunk-LHKDOVL6.js} +4 -8
- package/dist/{client-CFCGhGA0.d.ts → client-B_x5Fbkq.d.ts} +4 -0
- package/dist/client.d.ts +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +3 -2
- package/dist/ui/ui.css +1 -1
- package/dist/ui/ui.js +87 -87
- package/package.json +5 -9
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getServerVersion
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LHKDOVL6.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 { 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 =
|
|
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 =
|
|
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.
|
|
4
|
+
version: "2.5.12-alpha.0",
|
|
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.
|
|
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.
|
|
169
|
+
"@blinkk/root": "2.5.12-alpha.0",
|
|
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": {
|
|
@@ -77,6 +77,10 @@ interface TranslationServiceContext {
|
|
|
77
77
|
slug: string;
|
|
78
78
|
/** The locales configured for the project. */
|
|
79
79
|
locales: string[];
|
|
80
|
+
/** The email of the user performing the action. */
|
|
81
|
+
user: {
|
|
82
|
+
email: string;
|
|
83
|
+
};
|
|
80
84
|
}
|
|
81
85
|
/** Result returned by an onExport handler. */
|
|
82
86
|
interface TranslationExportResult {
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@blinkk/root';
|
|
2
2
|
import 'firebase-admin/app';
|
|
3
3
|
import 'firebase-admin/firestore';
|
|
4
|
-
export { A as Action, r as ArrayObject, F as BatchRequest, B as BatchRequestOptions, y as BatchRequestQuery, z as BatchRequestQueryOptions, I as BatchResponse, C as CronUnit, d as DataSource, c as DataSourceCron, e as DataSourceData, f as DataSourceMode, b as Doc, D as DocMode, j as GetCountOptions, G as GetDocOptions, H as HttpMethod, m as ListActionsOptions, i as ListDocsOptions, L as LoadTranslationsOptions, a as LocaleTranslations, l as Release, R as RootCMSClient, g as SaveDraftOptions, S as SetDocOptions, k as Translation, E as TranslationsDoc, T as TranslationsMap, h as UpdateDraftOptions, U as UserRole, o as getCmsPlugin, n as isRichTextData, s as marshalArray, p as marshalData, q as normalizeData, x as parseDocId, t as toArrayObject, w as translationsForLocale, v as unmarshalArray, u as unmarshalData } from './client-
|
|
4
|
+
export { A as Action, r as ArrayObject, F as BatchRequest, B as BatchRequestOptions, y as BatchRequestQuery, z as BatchRequestQueryOptions, I as BatchResponse, C as CronUnit, d as DataSource, c as DataSourceCron, e as DataSourceData, f as DataSourceMode, b as Doc, D as DocMode, j as GetCountOptions, G as GetDocOptions, H as HttpMethod, m as ListActionsOptions, i as ListDocsOptions, L as LoadTranslationsOptions, a as LocaleTranslations, l as Release, R as RootCMSClient, g as SaveDraftOptions, S as SetDocOptions, k as Translation, E as TranslationsDoc, T as TranslationsMap, h as UpdateDraftOptions, U as UserRole, o as getCmsPlugin, n as isRichTextData, s as marshalArray, p as marshalData, q as normalizeData, x as parseDocId, t as toArrayObject, w as translationsForLocale, v as unmarshalArray, u as unmarshalData } from './client-B_x5Fbkq.js';
|
|
5
5
|
import './schema-D7MOj-YC.js';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RootCMSClient, D as DocMode, L as LoadTranslationsOptions, T as TranslationsMap, a as LocaleTranslations } from './client-
|
|
2
|
-
export { A as Action, r as ArrayObject, F as BatchRequest, B as BatchRequestOptions, y as BatchRequestQuery, z as BatchRequestQueryOptions, I as BatchResponse, C as CronUnit, d as DataSource, c as DataSourceCron, e as DataSourceData, f as DataSourceMode, b as Doc, j as GetCountOptions, G as GetDocOptions, H as HttpMethod, m as ListActionsOptions, i as ListDocsOptions, J as Locale, Q as MultiLocaleTranslationsMap, l as Release, g as SaveDraftOptions, S as SetDocOptions, V as SingleLocaleTranslationsMap, K as SourceString, M as TranslatedString, k as Translation, E as TranslationsDoc, N as TranslationsDocMode, P as TranslationsLocaleDocEntry, O as TranslationsLocaleDocHashMap, W as TranslationsManager, h as UpdateDraftOptions, U as UserRole, X as buildTranslationsDbPath, Y as buildTranslationsLocaleDocDbPath, o as getCmsPlugin, n as isRichTextData, s as marshalArray, p as marshalData, q as normalizeData, x as parseDocId, t as toArrayObject, w as translationsForLocale, v as unmarshalArray, u as unmarshalData } from './client-
|
|
1
|
+
import { R as RootCMSClient, D as DocMode, L as LoadTranslationsOptions, T as TranslationsMap, a as LocaleTranslations } from './client-B_x5Fbkq.js';
|
|
2
|
+
export { A as Action, r as ArrayObject, F as BatchRequest, B as BatchRequestOptions, y as BatchRequestQuery, z as BatchRequestQueryOptions, I as BatchResponse, C as CronUnit, d as DataSource, c as DataSourceCron, e as DataSourceData, f as DataSourceMode, b as Doc, j as GetCountOptions, G as GetDocOptions, H as HttpMethod, m as ListActionsOptions, i as ListDocsOptions, J as Locale, Q as MultiLocaleTranslationsMap, l as Release, g as SaveDraftOptions, S as SetDocOptions, V as SingleLocaleTranslationsMap, K as SourceString, M as TranslatedString, k as Translation, E as TranslationsDoc, N as TranslationsDocMode, P as TranslationsLocaleDocEntry, O as TranslationsLocaleDocHashMap, W as TranslationsManager, h as UpdateDraftOptions, U as UserRole, X as buildTranslationsDbPath, Y as buildTranslationsLocaleDocDbPath, o as getCmsPlugin, n as isRichTextData, s as marshalArray, p as marshalData, q as normalizeData, x as parseDocId, t as toArrayObject, w as translationsForLocale, v as unmarshalArray, u as unmarshalData } from './client-B_x5Fbkq.js';
|
|
3
3
|
import { Request, RootConfig, Response, RouteParams, GetStaticProps, GetStaticPaths } from '@blinkk/root';
|
|
4
4
|
import { Query } from 'firebase-admin/firestore';
|
|
5
5
|
export { s as schema } from './schema-D7MOj-YC.js';
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@blinkk/root';
|
|
2
2
|
import 'firebase-admin/app';
|
|
3
3
|
import 'firebase-admin/firestore';
|
|
4
|
-
export { $ as CMSAIConfig, Z as CMSBuiltInSidebarTool, a4 as CMSCheck, a2 as CMSPlugin, a1 as CMSPluginOptions, a0 as CMSSidebarTool, aa as CMSTranslationService, _ as CMSUser, a6 as CheckContext, a5 as CheckResult, a7 as CheckStatus, ab as TranslationExportResult, ac as TranslationRow, ad as TranslationServiceContext, a9 as TranslationsCheckOptions, a3 as cmsPlugin, a8 as translationsCheck } from './client-
|
|
4
|
+
export { $ as CMSAIConfig, Z as CMSBuiltInSidebarTool, a4 as CMSCheck, a2 as CMSPlugin, a1 as CMSPluginOptions, a0 as CMSSidebarTool, aa as CMSTranslationService, _ as CMSUser, a6 as CheckContext, a5 as CheckResult, a7 as CheckStatus, ab as TranslationExportResult, ac as TranslationRow, ad as TranslationServiceContext, a9 as TranslationsCheckOptions, a3 as cmsPlugin, a8 as translationsCheck } from './client-B_x5Fbkq.js';
|
|
5
5
|
import './schema-D7MOj-YC.js';
|
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-
|
|
7
|
+
} from "./chunk-LHKDOVL6.js";
|
|
8
8
|
import {
|
|
9
9
|
runCronJobs
|
|
10
10
|
} from "./chunk-PKD2TDSV.js";
|
|
@@ -594,7 +594,8 @@ function api(server, options) {
|
|
|
594
594
|
docId,
|
|
595
595
|
collectionId,
|
|
596
596
|
slug,
|
|
597
|
-
locales
|
|
597
|
+
locales,
|
|
598
|
+
user: { email: req.user.email }
|
|
598
599
|
},
|
|
599
600
|
data
|
|
600
601
|
);
|