@blinkk/root-cms 2.4.10 → 2.5.2
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/ai-OZY3JXDH.js +19 -0
- package/dist/app.js +2 -2
- package/dist/{chunk-RYF3UTHQ.js → chunk-KDXHFMIH.js} +3 -3
- package/dist/chunk-MSJGHSR6.js +172 -0
- package/dist/{chunk-Y65VGJLE.js → chunk-QR62WMN3.js} +2 -2
- package/dist/{chunk-ZOEPOKGE.js → chunk-T5UK2H24.js} +131 -6
- package/dist/{chunk-62EVNFXB.js → chunk-XMR3KFP5.js} +264 -15
- package/dist/{chunk-SI44FG3H.js → chunk-YAQCD6SS.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{client-PhodvL2Q.d.ts → client-BZ03biQh.d.ts} +89 -3
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/core.js +14 -4
- package/dist/functions.js +2 -2
- package/dist/{generate-types-TQBCE2SG.js → generate-types-MHWSSOWV.js} +1 -1
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.js +84 -6
- package/dist/project.d.ts +9 -4
- package/dist/project.js +5 -3
- package/dist/{schema-Bux4PrV2.d.ts → schema-BKfPP_s9.d.ts} +78 -2
- package/dist/ui/ui.css +1 -1
- package/dist/ui/ui.js +153 -153
- package/dist/ui/ui.js.LEGAL.txt +16 -12
- package/package.json +3 -3
- package/dist/ai-DRQJXU4N.js +0 -13
- package/dist/chunk-377TGNX2.js +0 -82
package/dist/ui/ui.js.LEGAL.txt
CHANGED
|
@@ -295,6 +295,7 @@ react-is/cjs/react-is.production.min.js:
|
|
|
295
295
|
@tabler/icons-preact/dist/esm/defaultAttributes.mjs:
|
|
296
296
|
@tabler/icons-preact/dist/esm/createPreactComponent.mjs:
|
|
297
297
|
@tabler/icons-preact/dist/esm/icons/IconAlarmOff.mjs:
|
|
298
|
+
@tabler/icons-preact/dist/esm/icons/IconAlertTriangle.mjs:
|
|
298
299
|
@tabler/icons-preact/dist/esm/icons/IconAlignJustified.mjs:
|
|
299
300
|
@tabler/icons-preact/dist/esm/icons/IconArrowBackUp.mjs:
|
|
300
301
|
@tabler/icons-preact/dist/esm/icons/IconArrowBack.mjs:
|
|
@@ -347,19 +348,21 @@ react-is/cjs/react-is.production.min.js:
|
|
|
347
348
|
@tabler/icons-preact/dist/esm/icons/IconInfoCircle.mjs:
|
|
348
349
|
@tabler/icons-preact/dist/esm/icons/IconItalic.mjs:
|
|
349
350
|
@tabler/icons-preact/dist/esm/icons/IconJson.mjs:
|
|
351
|
+
@tabler/icons-preact/dist/esm/icons/IconLanguageOff.mjs:
|
|
350
352
|
@tabler/icons-preact/dist/esm/icons/IconLanguage.mjs:
|
|
351
353
|
@tabler/icons-preact/dist/esm/icons/IconLayoutSidebarRightCollapse.mjs:
|
|
352
354
|
@tabler/icons-preact/dist/esm/icons/IconLayoutSidebarRightExpand.mjs:
|
|
353
355
|
@tabler/icons-preact/dist/esm/icons/IconLink.mjs:
|
|
354
356
|
@tabler/icons-preact/dist/esm/icons/IconListNumbers.mjs:
|
|
355
357
|
@tabler/icons-preact/dist/esm/icons/IconList.mjs:
|
|
358
|
+
@tabler/icons-preact/dist/esm/icons/IconLoader2.mjs:
|
|
356
359
|
@tabler/icons-preact/dist/esm/icons/IconLockOpen.mjs:
|
|
357
360
|
@tabler/icons-preact/dist/esm/icons/IconLock.mjs:
|
|
358
361
|
@tabler/icons-preact/dist/esm/icons/IconLogout.mjs:
|
|
359
362
|
@tabler/icons-preact/dist/esm/icons/IconMapPin.mjs:
|
|
363
|
+
@tabler/icons-preact/dist/esm/icons/IconMessage.mjs:
|
|
360
364
|
@tabler/icons-preact/dist/esm/icons/IconMoodLookDown.mjs:
|
|
361
365
|
@tabler/icons-preact/dist/esm/icons/IconPaperclip.mjs:
|
|
362
|
-
@tabler/icons-preact/dist/esm/icons/IconPencil.mjs:
|
|
363
366
|
@tabler/icons-preact/dist/esm/icons/IconPhotoStar.mjs:
|
|
364
367
|
@tabler/icons-preact/dist/esm/icons/IconPhotoUp.mjs:
|
|
365
368
|
@tabler/icons-preact/dist/esm/icons/IconPhoto.mjs:
|
|
@@ -385,6 +388,7 @@ react-is/cjs/react-is.production.min.js:
|
|
|
385
388
|
@tabler/icons-preact/dist/esm/icons/IconTagMinus.mjs:
|
|
386
389
|
@tabler/icons-preact/dist/esm/icons/IconTagPlus.mjs:
|
|
387
390
|
@tabler/icons-preact/dist/esm/icons/IconTag.mjs:
|
|
391
|
+
@tabler/icons-preact/dist/esm/icons/IconTool.mjs:
|
|
388
392
|
@tabler/icons-preact/dist/esm/icons/IconTrash.mjs:
|
|
389
393
|
@tabler/icons-preact/dist/esm/icons/IconUnderline.mjs:
|
|
390
394
|
@tabler/icons-preact/dist/esm/icons/IconWorld.mjs:
|
|
@@ -400,17 +404,6 @@ react-is/cjs/react-is.production.min.js:
|
|
|
400
404
|
* See the LICENSE file in the root directory of this source tree.
|
|
401
405
|
*/
|
|
402
406
|
|
|
403
|
-
use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js:
|
|
404
|
-
/**
|
|
405
|
-
* @license React
|
|
406
|
-
* use-sync-external-store-with-selector.production.js
|
|
407
|
-
*
|
|
408
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
409
|
-
*
|
|
410
|
-
* This source code is licensed under the MIT license found in the
|
|
411
|
-
* LICENSE file in the root directory of this source tree.
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
407
|
normalize-wheel/src/isEventSupported.js:
|
|
415
408
|
/**
|
|
416
409
|
* Checks if an event is supported in the current execution environment.
|
|
@@ -427,6 +420,17 @@ normalize-wheel/src/isEventSupported.js:
|
|
|
427
420
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
428
421
|
*/
|
|
429
422
|
|
|
423
|
+
use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js:
|
|
424
|
+
/**
|
|
425
|
+
* @license React
|
|
426
|
+
* use-sync-external-store-with-selector.production.js
|
|
427
|
+
*
|
|
428
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
429
|
+
*
|
|
430
|
+
* This source code is licensed under the MIT license found in the
|
|
431
|
+
* LICENSE file in the root directory of this source tree.
|
|
432
|
+
*/
|
|
433
|
+
|
|
430
434
|
prismjs/prism.js:
|
|
431
435
|
/**
|
|
432
436
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blinkk/root-cms",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"author": "s@blinkk.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -148,10 +148,10 @@
|
|
|
148
148
|
"vite": "7.1.4",
|
|
149
149
|
"vitest": "4.0.10",
|
|
150
150
|
"yjs": "13.6.27",
|
|
151
|
-
"@blinkk/root": "2.
|
|
151
|
+
"@blinkk/root": "2.5.2"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|
|
154
|
-
"@blinkk/root": "2.
|
|
154
|
+
"@blinkk/root": "2.5.2",
|
|
155
155
|
"firebase-admin": ">=11",
|
|
156
156
|
"firebase-functions": ">=4",
|
|
157
157
|
"preact": ">=10",
|
package/dist/ai-DRQJXU4N.js
DELETED
package/dist/chunk-377TGNX2.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// core/project.ts
|
|
2
|
-
var SCHEMA_MODULES = import.meta.glob(
|
|
3
|
-
[
|
|
4
|
-
"/**/*.schema.ts",
|
|
5
|
-
"!/appengine/**/*.schema.ts",
|
|
6
|
-
"!/functions/**/*.schema.ts",
|
|
7
|
-
"!/gae/**/*.schema.ts"
|
|
8
|
-
],
|
|
9
|
-
{ eager: true }
|
|
10
|
-
);
|
|
11
|
-
async function getProjectSchemas() {
|
|
12
|
-
const schemas = {};
|
|
13
|
-
for (const fileId in SCHEMA_MODULES) {
|
|
14
|
-
const schemaModule = SCHEMA_MODULES[fileId];
|
|
15
|
-
if (schemaModule.default) {
|
|
16
|
-
schemas[fileId] = schemaModule.default;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return schemas;
|
|
20
|
-
}
|
|
21
|
-
async function getCollectionSchema(collectionId) {
|
|
22
|
-
if (!testValidCollectionId(collectionId)) {
|
|
23
|
-
throw new Error(`invalid collection id: ${collectionId}`);
|
|
24
|
-
}
|
|
25
|
-
const fileId = `/collections/${collectionId}.schema.ts`;
|
|
26
|
-
const module = SCHEMA_MODULES[fileId];
|
|
27
|
-
if (!module.default) {
|
|
28
|
-
console.warn(`collection schema not exported in: ${fileId}`);
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
31
|
-
const collection = module.default;
|
|
32
|
-
collection.id = collectionId;
|
|
33
|
-
return convertOneOfTypes(collection);
|
|
34
|
-
}
|
|
35
|
-
function testValidCollectionId(id) {
|
|
36
|
-
return /^[A-Za-z0-9_-]+$/.test(id);
|
|
37
|
-
}
|
|
38
|
-
function convertOneOfTypes(collection) {
|
|
39
|
-
const clone = structuredClone(collection);
|
|
40
|
-
const types = clone.types || {};
|
|
41
|
-
function handleOneOfField(field) {
|
|
42
|
-
const names = [];
|
|
43
|
-
(field.types || []).forEach((sub) => {
|
|
44
|
-
if (typeof sub === "string") {
|
|
45
|
-
names.push(sub);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
if (sub.name) {
|
|
49
|
-
names.push(sub.name);
|
|
50
|
-
if (!types[sub.name]) {
|
|
51
|
-
types[sub.name] = sub;
|
|
52
|
-
if (sub.fields) {
|
|
53
|
-
walk(sub);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
field.types = names;
|
|
59
|
-
}
|
|
60
|
-
function handleField(field) {
|
|
61
|
-
if (field.type === "oneof") {
|
|
62
|
-
handleOneOfField(field);
|
|
63
|
-
} else if (field.type === "object") {
|
|
64
|
-
walk(field);
|
|
65
|
-
} else if (field.type === "array" && field.of) {
|
|
66
|
-
handleField(field.of);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function walk(schema) {
|
|
70
|
-
const fields = schema?.fields || [];
|
|
71
|
-
fields.forEach(handleField);
|
|
72
|
-
}
|
|
73
|
-
walk(clone);
|
|
74
|
-
clone.types = types;
|
|
75
|
-
return clone;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export {
|
|
79
|
-
SCHEMA_MODULES,
|
|
80
|
-
getProjectSchemas,
|
|
81
|
-
getCollectionSchema
|
|
82
|
-
};
|