@blinkk/root-cms 2.4.10 → 2.5.1
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-Y65VGJLE.js → chunk-KTUENARU.js} +2 -2
- package/dist/{chunk-62EVNFXB.js → chunk-NUUABQRN.js} +61 -0
- package/dist/{chunk-SI44FG3H.js → chunk-RIJF2AHU.js} +1 -1
- package/dist/chunk-RNDSZKAW.js +171 -0
- package/dist/{chunk-ZOEPOKGE.js → chunk-T5UK2H24.js} +131 -6
- package/dist/cli.js +1 -1
- package/dist/{client-PhodvL2Q.d.ts → client-ROwBDNeR.d.ts} +8 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +1 -1
- package/dist/core.d.ts +3 -3
- package/dist/core.js +10 -1
- package/dist/functions.js +2 -2
- package/dist/plugin.d.ts +2 -2
- package/dist/plugin.js +83 -5
- package/dist/project.d.ts +1 -1
- package/dist/project.js +1 -1
- 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 +150 -150
- package/dist/ui/ui.js.LEGAL.txt +14 -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
|
@@ -347,19 +347,21 @@ react-is/cjs/react-is.production.min.js:
|
|
|
347
347
|
@tabler/icons-preact/dist/esm/icons/IconInfoCircle.mjs:
|
|
348
348
|
@tabler/icons-preact/dist/esm/icons/IconItalic.mjs:
|
|
349
349
|
@tabler/icons-preact/dist/esm/icons/IconJson.mjs:
|
|
350
|
+
@tabler/icons-preact/dist/esm/icons/IconLanguageOff.mjs:
|
|
350
351
|
@tabler/icons-preact/dist/esm/icons/IconLanguage.mjs:
|
|
351
352
|
@tabler/icons-preact/dist/esm/icons/IconLayoutSidebarRightCollapse.mjs:
|
|
352
353
|
@tabler/icons-preact/dist/esm/icons/IconLayoutSidebarRightExpand.mjs:
|
|
353
354
|
@tabler/icons-preact/dist/esm/icons/IconLink.mjs:
|
|
354
355
|
@tabler/icons-preact/dist/esm/icons/IconListNumbers.mjs:
|
|
355
356
|
@tabler/icons-preact/dist/esm/icons/IconList.mjs:
|
|
357
|
+
@tabler/icons-preact/dist/esm/icons/IconLoader2.mjs:
|
|
356
358
|
@tabler/icons-preact/dist/esm/icons/IconLockOpen.mjs:
|
|
357
359
|
@tabler/icons-preact/dist/esm/icons/IconLock.mjs:
|
|
358
360
|
@tabler/icons-preact/dist/esm/icons/IconLogout.mjs:
|
|
359
361
|
@tabler/icons-preact/dist/esm/icons/IconMapPin.mjs:
|
|
362
|
+
@tabler/icons-preact/dist/esm/icons/IconMessage.mjs:
|
|
360
363
|
@tabler/icons-preact/dist/esm/icons/IconMoodLookDown.mjs:
|
|
361
364
|
@tabler/icons-preact/dist/esm/icons/IconPaperclip.mjs:
|
|
362
|
-
@tabler/icons-preact/dist/esm/icons/IconPencil.mjs:
|
|
363
365
|
@tabler/icons-preact/dist/esm/icons/IconPhotoStar.mjs:
|
|
364
366
|
@tabler/icons-preact/dist/esm/icons/IconPhotoUp.mjs:
|
|
365
367
|
@tabler/icons-preact/dist/esm/icons/IconPhoto.mjs:
|
|
@@ -400,17 +402,6 @@ react-is/cjs/react-is.production.min.js:
|
|
|
400
402
|
* See the LICENSE file in the root directory of this source tree.
|
|
401
403
|
*/
|
|
402
404
|
|
|
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
405
|
normalize-wheel/src/isEventSupported.js:
|
|
415
406
|
/**
|
|
416
407
|
* Checks if an event is supported in the current execution environment.
|
|
@@ -427,6 +418,17 @@ normalize-wheel/src/isEventSupported.js:
|
|
|
427
418
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
428
419
|
*/
|
|
429
420
|
|
|
421
|
+
use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js:
|
|
422
|
+
/**
|
|
423
|
+
* @license React
|
|
424
|
+
* use-sync-external-store-with-selector.production.js
|
|
425
|
+
*
|
|
426
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
427
|
+
*
|
|
428
|
+
* This source code is licensed under the MIT license found in the
|
|
429
|
+
* LICENSE file in the root directory of this source tree.
|
|
430
|
+
*/
|
|
431
|
+
|
|
430
432
|
prismjs/prism.js:
|
|
431
433
|
/**
|
|
432
434
|
* 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.1",
|
|
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.1"
|
|
152
152
|
},
|
|
153
153
|
"peerDependencies": {
|
|
154
|
-
"@blinkk/root": "2.
|
|
154
|
+
"@blinkk/root": "2.5.1",
|
|
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
|
-
};
|