@blinkk/root-cms 2.4.2 → 2.4.4
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 +15 -4
- package/dist/{client-DK623LL2.d.ts → client-DYO2WWlf.d.ts} +13 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +3 -0
- package/dist/core.d.ts +3 -3
- package/dist/core.js +3 -0
- package/dist/functions.js +3 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.js +349 -240
- package/dist/project.d.ts +1 -1
- package/dist/richtext.d.ts +25 -1
- package/dist/richtext.js +31 -0
- package/dist/{schema-sKTRRRSq.d.ts → schema-BxPmMeRc.d.ts} +9 -0
- package/dist/ui/ui.css +1 -1
- package/dist/ui/ui.js +327 -178
- package/dist/ui/ui.js.LEGAL.txt +194 -191
- package/package.json +15 -5
package/dist/app.js
CHANGED
|
@@ -83,7 +83,7 @@ function convertOneOfTypes(collection) {
|
|
|
83
83
|
// package.json
|
|
84
84
|
var package_default = {
|
|
85
85
|
name: "@blinkk/root-cms",
|
|
86
|
-
version: "2.4.
|
|
86
|
+
version: "2.4.4",
|
|
87
87
|
author: "s@blinkk.com",
|
|
88
88
|
license: "MIT",
|
|
89
89
|
engines: {
|
|
@@ -143,10 +143,15 @@ var package_default = {
|
|
|
143
143
|
"dev:core": "pnpm build:core --watch",
|
|
144
144
|
"dev:signin": "pnpm build:signin --watch",
|
|
145
145
|
"dev:ui": "pnpm build:ui --watch",
|
|
146
|
-
test: "pnpm build && firebase emulators:exec 'vitest run'",
|
|
146
|
+
test: "pnpm build && firebase emulators:exec 'vitest run --exclude=**/*.visual.test.tsx'",
|
|
147
|
+
"test:visual": "vitest run --config=vitest.config.visual.ts",
|
|
147
148
|
"test:watch": "pnpm build && firebase emulators:exec 'vitest'"
|
|
148
149
|
},
|
|
149
150
|
dependencies: {
|
|
151
|
+
"@ag-grid-community/client-side-row-model": "32.3.9",
|
|
152
|
+
"@ag-grid-community/core": "32.3.9",
|
|
153
|
+
"@ag-grid-community/react": "32.3.9",
|
|
154
|
+
"@ag-grid-community/styles": "32.3.9",
|
|
150
155
|
"@genkit-ai/ai": "1.18.0",
|
|
151
156
|
"@genkit-ai/core": "1.18.0",
|
|
152
157
|
"@genkit-ai/vertexai": "1.18.0",
|
|
@@ -190,6 +195,7 @@ var package_default = {
|
|
|
190
195
|
"@lexical/react": "0.33.1",
|
|
191
196
|
"@lexical/rich-text": "0.33.1",
|
|
192
197
|
"@lexical/selection": "0.33.1",
|
|
198
|
+
"@lexical/table": "0.33.1",
|
|
193
199
|
"@lexical/utils": "0.33.1",
|
|
194
200
|
"@mantine/core": "4.2.12",
|
|
195
201
|
"@mantine/hooks": "4.2.12",
|
|
@@ -198,6 +204,7 @@ var package_default = {
|
|
|
198
204
|
"@mantine/spotlight": "4.2.12",
|
|
199
205
|
"@preact/compat": "18.3.1",
|
|
200
206
|
"@tabler/icons-preact": "3.35.0",
|
|
207
|
+
"@testing-library/preact": "3.2.4",
|
|
201
208
|
"@types/body-parser": "1.19.3",
|
|
202
209
|
"@types/fnv-plus": "1.3.2",
|
|
203
210
|
"@types/gapi": "0.0.47",
|
|
@@ -206,6 +213,8 @@ var package_default = {
|
|
|
206
213
|
"@types/google.accounts": "0.0.14",
|
|
207
214
|
"@types/jsonwebtoken": "9.0.1",
|
|
208
215
|
"@types/node": "24.3.1",
|
|
216
|
+
"@vitest/browser": "4.0.10",
|
|
217
|
+
"@vitest/browser-playwright": "4.0.10",
|
|
209
218
|
concurrently: "7.6.0",
|
|
210
219
|
esbuild: "0.25.9",
|
|
211
220
|
firebase: "12.2.1",
|
|
@@ -219,6 +228,7 @@ var package_default = {
|
|
|
219
228
|
"mdast-util-from-markdown": "2.0.1",
|
|
220
229
|
"mdast-util-gfm": "3.0.0",
|
|
221
230
|
"micromark-extension-gfm": "3.0.0",
|
|
231
|
+
playwright: "1.56.1",
|
|
222
232
|
preact: "10.27.1",
|
|
223
233
|
"preact-render-to-string": "6.6.1",
|
|
224
234
|
"preact-router": "4.1.2",
|
|
@@ -228,11 +238,11 @@ var package_default = {
|
|
|
228
238
|
tsup: "8.5.0",
|
|
229
239
|
typescript: "5.9.2",
|
|
230
240
|
vite: "7.1.4",
|
|
231
|
-
vitest: "
|
|
241
|
+
vitest: "4.0.10",
|
|
232
242
|
yjs: "13.6.27"
|
|
233
243
|
},
|
|
234
244
|
peerDependencies: {
|
|
235
|
-
"@blinkk/root": "2.4.
|
|
245
|
+
"@blinkk/root": "2.4.4",
|
|
236
246
|
"firebase-admin": ">=11",
|
|
237
247
|
"firebase-functions": ">=4",
|
|
238
248
|
preact: ">=10",
|
|
@@ -375,6 +385,7 @@ function serializeCollection(collection) {
|
|
|
375
385
|
id: collection.id,
|
|
376
386
|
name: collection.name ?? collection.id,
|
|
377
387
|
description: collection.description,
|
|
388
|
+
group: collection.group,
|
|
378
389
|
domain: collection.domain,
|
|
379
390
|
url: collection.url,
|
|
380
391
|
previewUrl: collection.previewUrl,
|
|
@@ -492,6 +492,14 @@ interface Action<T = any> {
|
|
|
492
492
|
* Metadata for the action.
|
|
493
493
|
*/
|
|
494
494
|
metadata?: T;
|
|
495
|
+
/**
|
|
496
|
+
* Optional list of quick links to display in the UI.
|
|
497
|
+
*/
|
|
498
|
+
links?: {
|
|
499
|
+
label: string;
|
|
500
|
+
url: string;
|
|
501
|
+
target?: string;
|
|
502
|
+
}[];
|
|
495
503
|
}
|
|
496
504
|
interface ListActionsOptions {
|
|
497
505
|
/**
|
|
@@ -706,6 +714,11 @@ declare class RootCMSClient {
|
|
|
706
714
|
logAction(action: string, options?: {
|
|
707
715
|
by?: string;
|
|
708
716
|
metadata?: any;
|
|
717
|
+
links?: {
|
|
718
|
+
label: string;
|
|
719
|
+
url: string;
|
|
720
|
+
target?: string;
|
|
721
|
+
}[];
|
|
709
722
|
}): Promise<void>;
|
|
710
723
|
/**
|
|
711
724
|
* Creates a batch request that is capable of fetching one or more docs,
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@blinkk/root';
|
|
2
2
|
import 'firebase-admin/app';
|
|
3
3
|
import 'firebase-admin/firestore';
|
|
4
|
-
export { A as Action, p as ArrayObject, z as BatchRequest, B as BatchRequestOptions, w as BatchRequestQuery, x as BatchRequestQueryOptions, C as BatchResponse, c as DataSource, d as DataSourceData, e as DataSourceMode, b as Doc, D as DocMode, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, k as ListActionsOptions, g as ListDocsOptions, L as LoadTranslationsOptions, a as LocaleTranslations, j as Release, R as RootCMSClient, f as SaveDraftOptions, S as SetDocOptions, i as Translation, y as TranslationsDoc, T as TranslationsMap, U as UserRole, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r as unmarshalArray, u as unmarshalData } from './client-
|
|
4
|
+
export { A as Action, p as ArrayObject, z as BatchRequest, B as BatchRequestOptions, w as BatchRequestQuery, x as BatchRequestQueryOptions, C as BatchResponse, c as DataSource, d as DataSourceData, e as DataSourceMode, b as Doc, D as DocMode, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, k as ListActionsOptions, g as ListDocsOptions, L as LoadTranslationsOptions, a as LocaleTranslations, j as Release, R as RootCMSClient, f as SaveDraftOptions, S as SetDocOptions, i as Translation, y as TranslationsDoc, T as TranslationsMap, U as UserRole, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r as unmarshalArray, u as unmarshalData } from './client-DYO2WWlf.js';
|
package/dist/client.js
CHANGED
|
@@ -1136,6 +1136,9 @@ var RootCMSClient = class {
|
|
|
1136
1136
|
by: options?.by || "system",
|
|
1137
1137
|
metadata: options?.metadata || {}
|
|
1138
1138
|
};
|
|
1139
|
+
if (options?.links) {
|
|
1140
|
+
data.links = options.links;
|
|
1141
|
+
}
|
|
1139
1142
|
const colRef = this.db.collection(`Projects/${this.projectId}/ActionLogs`);
|
|
1140
1143
|
await colRef.add(data);
|
|
1141
1144
|
const metaStr = options?.metadata ? stringifyObj(options.metadata) : "";
|
package/dist/core.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as RootCMSClient, D as DocMode, L as LoadTranslationsOptions, T as TranslationsMap, a as LocaleTranslations } from './client-
|
|
2
|
-
export { A as Action, p as ArrayObject, z as BatchRequest, B as BatchRequestOptions, w as BatchRequestQuery, x as BatchRequestQueryOptions, C as BatchResponse, c as DataSource, d as DataSourceData, e as DataSourceMode, b as Doc, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, k as ListActionsOptions, g as ListDocsOptions, E as Locale, N as MultiLocaleTranslationsMap, j as Release, f as SaveDraftOptions, S as SetDocOptions, O as SingleLocaleTranslationsMap, F as SourceString, I as TranslatedString, i as Translation, y as TranslationsDoc, J as TranslationsDocMode, M as TranslationsLocaleDocEntry, K as TranslationsLocaleDocHashMap, P as TranslationsManager, U as UserRole, Q as buildTranslationsDbPath, V as buildTranslationsLocaleDocDbPath, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r 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-DYO2WWlf.js';
|
|
2
|
+
export { A as Action, p as ArrayObject, z as BatchRequest, B as BatchRequestOptions, w as BatchRequestQuery, x as BatchRequestQueryOptions, C as BatchResponse, c as DataSource, d as DataSourceData, e as DataSourceMode, b as Doc, h as GetCountOptions, G as GetDocOptions, H as HttpMethod, k as ListActionsOptions, g as ListDocsOptions, E as Locale, N as MultiLocaleTranslationsMap, j as Release, f as SaveDraftOptions, S as SetDocOptions, O as SingleLocaleTranslationsMap, F as SourceString, I as TranslatedString, i as Translation, y as TranslationsDoc, J as TranslationsDocMode, M as TranslationsLocaleDocEntry, K as TranslationsLocaleDocHashMap, P as TranslationsManager, U as UserRole, Q as buildTranslationsDbPath, V as buildTranslationsLocaleDocDbPath, m as getCmsPlugin, l as isRichTextData, q as marshalArray, n as marshalData, o as normalizeData, v as parseDocId, t as toArrayObject, s as translationsForLocale, r as unmarshalArray, u as unmarshalData } from './client-DYO2WWlf.js';
|
|
3
3
|
import { Request, RootConfig, Response, RouteParams, GetStaticProps, GetStaticPaths } from '@blinkk/root';
|
|
4
4
|
import { Query } from 'firebase-admin/firestore';
|
|
5
|
-
export { s as schema } from './schema-
|
|
5
|
+
export { s as schema } from './schema-BxPmMeRc.js';
|
|
6
6
|
import 'firebase-admin/app';
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/core.js
CHANGED
|
@@ -1142,6 +1142,9 @@ var RootCMSClient = class {
|
|
|
1142
1142
|
by: options?.by || "system",
|
|
1143
1143
|
metadata: options?.metadata || {}
|
|
1144
1144
|
};
|
|
1145
|
+
if (options?.links) {
|
|
1146
|
+
data.links = options.links;
|
|
1147
|
+
}
|
|
1145
1148
|
const colRef = this.db.collection(`Projects/${this.projectId}/ActionLogs`);
|
|
1146
1149
|
await colRef.add(data);
|
|
1147
1150
|
const metaStr = options?.metadata ? stringifyObj(options.metadata) : "";
|
package/dist/functions.js
CHANGED
|
@@ -1141,6 +1141,9 @@ var RootCMSClient = class {
|
|
|
1141
1141
|
by: options?.by || "system",
|
|
1142
1142
|
metadata: options?.metadata || {}
|
|
1143
1143
|
};
|
|
1144
|
+
if (options?.links) {
|
|
1145
|
+
data.links = options.links;
|
|
1146
|
+
}
|
|
1144
1147
|
const colRef = this.db.collection(`Projects/${this.projectId}/ActionLogs`);
|
|
1145
1148
|
await colRef.add(data);
|
|
1146
1149
|
const metaStr = options?.metadata ? stringifyObj(options.metadata) : "";
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '@blinkk/root';
|
|
2
2
|
import 'firebase-admin/app';
|
|
3
3
|
import 'firebase-admin/firestore';
|
|
4
|
-
export { Y as CMSAIConfig, W as CMSBuiltInSidebarTool, $ as CMSPlugin, _ as CMSPluginOptions, Z as CMSSidebarTool, X as CMSUser, a0 as cmsPlugin } from './client-
|
|
4
|
+
export { Y as CMSAIConfig, W as CMSBuiltInSidebarTool, $ as CMSPlugin, _ as CMSPluginOptions, Z as CMSSidebarTool, X as CMSUser, a0 as cmsPlugin } from './client-DYO2WWlf.js';
|