@beechcms/core 0.4.3 → 0.6.0-preview.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/auth/hash-provider.d.ts.map +1 -1
- package/dist/auth/hash-provider.js +2 -0
- package/dist/auth/password-reset-token.repository.d.ts.map +1 -1
- package/dist/auth/password-reset-token.repository.js +2 -0
- package/dist/auth/session.repository.d.ts.map +1 -1
- package/dist/auth/session.repository.js +2 -0
- package/dist/auth/token-service.d.ts +2 -0
- package/dist/auth/token-service.d.ts.map +1 -1
- package/dist/auth/token-service.js +2 -0
- package/dist/auth/user.repository.d.ts +4 -1
- package/dist/auth/user.repository.d.ts.map +1 -1
- package/dist/auth/user.repository.js +2 -0
- package/dist/automations-grammar-words.d.ts.map +1 -1
- package/dist/automations-grammar-words.js +2 -0
- package/dist/automations.repository.interface.d.ts.map +1 -1
- package/dist/automations.repository.interface.js +2 -0
- package/dist/automations.runner.interface.d.ts.map +1 -1
- package/dist/automations.runner.interface.js +2 -0
- package/dist/automations.runner.stub.d.ts.map +1 -1
- package/dist/automations.runner.stub.js +2 -0
- package/dist/automations.types.d.ts +2 -0
- package/dist/automations.types.d.ts.map +1 -1
- package/dist/automations.types.js +2 -0
- package/dist/clock.d.ts.map +1 -1
- package/dist/clock.js +2 -0
- package/dist/content-scan.repository.d.ts.map +1 -1
- package/dist/content-scan.repository.js +2 -0
- package/dist/content.repository.d.ts +62 -0
- package/dist/content.repository.d.ts.map +1 -1
- package/dist/content.repository.js +18 -0
- package/dist/define-seed.d.ts.map +1 -1
- package/dist/define-seed.js +2 -0
- package/dist/demo-data.repository.d.ts +5 -0
- package/dist/demo-data.repository.d.ts.map +1 -0
- package/dist/demo-data.repository.js +3 -0
- package/dist/engine.d.ts +76 -0
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +253 -8
- package/dist/file-types.d.ts +13 -0
- package/dist/file-types.d.ts.map +1 -0
- package/dist/file-types.js +85 -0
- package/dist/id-generator.d.ts +7 -0
- package/dist/id-generator.d.ts.map +1 -1
- package/dist/id-generator.js +5 -0
- package/dist/idempotency.repository.d.ts.map +1 -1
- package/dist/idempotency.repository.js +2 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -1
- package/dist/layout-permissions.d.ts +3 -0
- package/dist/layout-permissions.d.ts.map +1 -0
- package/dist/layout-permissions.js +11 -0
- package/dist/media.repository.d.ts.map +1 -1
- package/dist/media.repository.js +2 -0
- package/dist/notifications/notification-service.d.ts.map +1 -1
- package/dist/notifications/notification-service.js +2 -0
- package/dist/notifications/notification.repository.d.ts.map +1 -1
- package/dist/notifications/notification.repository.js +2 -9
- package/dist/observability/activity-log.repository.d.ts.map +1 -1
- package/dist/observability/activity-log.repository.js +2 -0
- package/dist/observability/activity-logger.d.ts +2 -2
- package/dist/observability/activity-logger.d.ts.map +1 -1
- package/dist/observability/activity-logger.js +2 -11
- package/dist/observability/analytics.repository.d.ts.map +1 -1
- package/dist/observability/analytics.repository.js +2 -0
- package/dist/policies.d.ts.map +1 -1
- package/dist/policies.js +2 -0
- package/dist/rate-limit/rate-limiter.d.ts.map +1 -1
- package/dist/rate-limit/rate-limiter.js +2 -0
- package/dist/relations.d.ts +28 -0
- package/dist/relations.d.ts.map +1 -0
- package/dist/relations.js +25 -0
- package/dist/richtext-render.d.ts.map +1 -1
- package/dist/richtext-render.js +2 -0
- package/dist/richtext.d.ts.map +1 -1
- package/dist/richtext.js +2 -0
- package/dist/scheduler.interface.d.ts.map +1 -1
- package/dist/scheduler.interface.js +2 -0
- package/dist/scheduler.stub.d.ts.map +1 -1
- package/dist/scheduler.stub.js +2 -0
- package/dist/schema-mutator.d.ts +22 -0
- package/dist/schema-mutator.d.ts.map +1 -0
- package/dist/schema-mutator.js +3 -0
- package/dist/search/search.repository.d.ts.map +1 -1
- package/dist/search/search.repository.js +2 -0
- package/dist/seed-ddl.d.ts +40 -0
- package/dist/seed-ddl.d.ts.map +1 -0
- package/dist/seed-ddl.js +100 -0
- package/dist/seed-layout.d.ts +117 -0
- package/dist/seed-layout.d.ts.map +1 -0
- package/dist/seed-layout.js +169 -0
- package/dist/seed-layout.repository.d.ts +18 -0
- package/dist/seed-layout.repository.d.ts.map +1 -0
- package/dist/seed-layout.repository.js +3 -0
- package/dist/seed-registry.d.ts +23 -1
- package/dist/seed-registry.d.ts.map +1 -1
- package/dist/seed-registry.js +105 -0
- package/dist/seed-validation.d.ts +23 -0
- package/dist/seed-validation.d.ts.map +1 -0
- package/dist/seed-validation.js +156 -0
- package/dist/seed.repository.d.ts +37 -0
- package/dist/seed.repository.d.ts.map +1 -0
- package/dist/seed.repository.js +3 -0
- package/dist/seeds.d.ts.map +1 -1
- package/dist/seeds.js +2 -0
- package/dist/site-settings.repository.d.ts +16 -0
- package/dist/site-settings.repository.d.ts.map +1 -0
- package/dist/site-settings.repository.js +3 -0
- package/dist/slug-utils.d.ts.map +1 -1
- package/dist/slug-utils.js +2 -0
- package/dist/storage.d.ts +12 -38
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +2 -0
- package/dist/types.d.ts +80 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -0
- package/dist/validation.d.ts +23 -17
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +495 -393
- package/dist/webhook-validation.d.ts +3 -0
- package/dist/webhook-validation.d.ts.map +1 -0
- package/dist/webhook-validation.js +6 -0
- package/dist/widget/widget.repository.d.ts.map +1 -1
- package/dist/widget/widget.repository.js +2 -0
- package/package.json +5 -4
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Persists in-app notifications (admin inbox) and exposes the aggregate stats
|
|
5
|
-
* the GET /notifications handler needs to build a strong ETag without reading
|
|
6
|
-
* every row.
|
|
7
|
-
*
|
|
8
|
-
* @module @beechcms/core/notifications/notification.repository
|
|
9
|
-
*/
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Copyright (c) 2024–2026 Flavio De Musso
|
|
10
3
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-log.repository.d.ts","sourceRoot":"","sources":["../../src/observability/activity-log.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activity-log.repository.d.ts","sourceRoot":"","sources":["../../src/observability/activity-log.repository.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,MAAM,EAAE,cAAc,CAAA;IACtB,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACvC,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,cAAc,CAAA;IACtB,UAAU,EAAE,UAAU,CAAA;IACtB,sEAAsE;IACtE,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAA;IAEnE;;;;;;;OAOG;IACH,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CACxD"}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module @beechcms/core/observability/activity-logger
|
|
11
11
|
*/
|
|
12
|
-
export type ActivityAction = 'create' | 'update' | 'delete' | 'upload';
|
|
13
|
-
export type EntityType = 'content' | 'media';
|
|
12
|
+
export type ActivityAction = 'create' | 'update' | 'delete' | 'upload' | 'bulk_update';
|
|
13
|
+
export type EntityType = 'content' | 'media' | 'seed';
|
|
14
14
|
/**
|
|
15
15
|
* Identifies the human (or machine) actor that triggered the event.
|
|
16
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-logger.d.ts","sourceRoot":"","sources":["../../src/observability/activity-logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activity-logger.d.ts","sourceRoot":"","sources":["../../src/observability/activity-logger.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,CAAA;AACtF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAErD;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,cAAc,CAAA;IACtB,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACjC,KAAK,EAAE,aAAa,CAAA;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,GAAG,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CACnD"}
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Records side-effect events ("a user did X to entity Y") for the audit trail
|
|
5
|
-
* displayed in the dashboard's settings activity tab and the recent activity
|
|
6
|
-
* feed. The interface is intentionally framework-agnostic so it can be
|
|
7
|
-
* fulfilled in production by a D1-backed implementation, in tests by an
|
|
8
|
-
* in-memory implementation, and in the future by remote sinks.
|
|
9
|
-
*
|
|
10
|
-
* @module @beechcms/core/observability/activity-logger
|
|
11
|
-
*/
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Copyright (c) 2024–2026 Flavio De Musso
|
|
12
3
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.repository.d.ts","sourceRoot":"","sources":["../../src/observability/analytics.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"analytics.repository.d.ts","sourceRoot":"","sources":["../../src/observability/analytics.repository.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,UAAU,CAAA;AAErD;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;OAMG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE9C;;;;OAIG;IACH,WAAW,CACT,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,CAAA;IAElB;;;;OAIG;IACH,aAAa,CACX,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CACnC"}
|
package/dist/policies.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../src/policies.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"policies.d.ts","sourceRoot":"","sources":["../src/policies.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAExC,wBAAsB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAK9D;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEzF;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAazF"}
|
package/dist/policies.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate-limiter.d.ts","sourceRoot":"","sources":["../../src/rate-limit/rate-limiter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rate-limiter.d.ts","sourceRoot":"","sources":["../../src/rate-limit/rate-limiter.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;CAClD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Back-reference helpers for the Beech CMS relation system.
|
|
3
|
+
*
|
|
4
|
+
* `buildBackrefMap` is a pure function that iterates the seed registry once
|
|
5
|
+
* and builds a lookup map: targetSlug → sources that point to it.
|
|
6
|
+
* Build this once at app factory time and cache it for the process lifetime.
|
|
7
|
+
*/
|
|
8
|
+
import type { Seed } from './types.js';
|
|
9
|
+
export interface BackrefSource {
|
|
10
|
+
/** Slug of the seed that owns the relation branch */
|
|
11
|
+
sourceSlug: string;
|
|
12
|
+
/** `branch.alias` — the FK column name (single) or join-table name suffix (multi) */
|
|
13
|
+
branchAlias: string;
|
|
14
|
+
/** `branch.label` — human label for UI grouping */
|
|
15
|
+
branchLabel: string;
|
|
16
|
+
/** 'single' for direct FK, 'multi' for many-to-many join table */
|
|
17
|
+
relationship: 'single' | 'multi';
|
|
18
|
+
/** True when branch.onDelete === 'RESTRICT' — used to disable Delete button */
|
|
19
|
+
restricts: boolean;
|
|
20
|
+
}
|
|
21
|
+
/** Map: targetSlug → every source that points to it */
|
|
22
|
+
export type BackrefMap = Map<string, BackrefSource[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Builds the back-reference map from an array of seeds.
|
|
25
|
+
* Pure function — no side-effects, safe to call at startup and cache forever.
|
|
26
|
+
*/
|
|
27
|
+
export declare function buildBackrefMap(seeds: Seed[]): BackrefMap;
|
|
28
|
+
//# sourceMappingURL=relations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../src/relations.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtC,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAA;IAClB,qFAAqF;IACrF,WAAW,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,WAAW,EAAE,MAAM,CAAA;IACnB,kEAAkE;IAClE,YAAY,EAAE,QAAQ,GAAG,OAAO,CAAA;IAChC,+EAA+E;IAC/E,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,uDAAuD;AACvD,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC,CAAA;AAErD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,CAoBzD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Copyright (c) 2024–2026 Flavio De Musso
|
|
3
|
+
/**
|
|
4
|
+
* Builds the back-reference map from an array of seeds.
|
|
5
|
+
* Pure function — no side-effects, safe to call at startup and cache forever.
|
|
6
|
+
*/
|
|
7
|
+
export function buildBackrefMap(seeds) {
|
|
8
|
+
const map = new Map();
|
|
9
|
+
for (const seed of seeds) {
|
|
10
|
+
for (const branch of seed.branches) {
|
|
11
|
+
if (branch.type !== 'relation' || !branch.targetSeed)
|
|
12
|
+
continue;
|
|
13
|
+
const existing = map.get(branch.targetSeed) ?? [];
|
|
14
|
+
existing.push({
|
|
15
|
+
sourceSlug: seed.slug,
|
|
16
|
+
branchAlias: branch.alias,
|
|
17
|
+
branchLabel: branch.label,
|
|
18
|
+
relationship: branch.multiple === true ? 'multi' : 'single',
|
|
19
|
+
restricts: branch.onDelete === 'RESTRICT',
|
|
20
|
+
});
|
|
21
|
+
map.set(branch.targetSeed, existing);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return map;
|
|
25
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"richtext-render.d.ts","sourceRoot":"","sources":["../src/richtext-render.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"richtext-render.d.ts","sourceRoot":"","sources":["../src/richtext-render.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAuD/C;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,GAAG,MAAM,GAAG,IAAI,CAatF;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAQrD"}
|
package/dist/richtext-render.js
CHANGED
package/dist/richtext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"richtext.d.ts","sourceRoot":"","sources":["../src/richtext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"richtext.d.ts","sourceRoot":"","sources":["../src/richtext.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAG,CAAU,CAAA;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,OAAO,uBAAuB,CAAA;IAC7C,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC7B,CAAA;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAIhF"}
|
package/dist/richtext.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.interface.d.ts","sourceRoot":"","sources":["../src/scheduler.interface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scheduler.interface.d.ts","sourceRoot":"","sources":["../src/scheduler.interface.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;CAC3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.stub.d.ts","sourceRoot":"","sources":["../src/scheduler.stub.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scheduler.stub.d.ts","sourceRoot":"","sources":["../src/scheduler.stub.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1D,qBAAa,aAAc,YAAW,UAAU;IAC9C,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI;CAG5C"}
|
package/dist/scheduler.stub.js
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Executes additive schema DDL against the live database and introspects columns.
|
|
2
|
+
* Implemented by D1SchemaMutator in apps/api/src/shared/schema-mutator.d1.ts.
|
|
3
|
+
* This is the ONLY sanctioned channel for runtime DDL — handlers never touch env.DB. */
|
|
4
|
+
export interface ISchemaMutator {
|
|
5
|
+
/** Column names currently on a table, or null if the table does not exist. */
|
|
6
|
+
getColumns(table: string): Promise<Set<string> | null>;
|
|
7
|
+
/** Runs the given DDL statements in order as a single D1 batch.
|
|
8
|
+
* All statements must be additive (CREATE … IF NOT EXISTS / ALTER … ADD COLUMN /
|
|
9
|
+
* CREATE INDEX IF NOT EXISTS). Throws on the first failing statement. */
|
|
10
|
+
execDdl(statements: string[]): Promise<void>;
|
|
11
|
+
/** `DROP TABLE IF EXISTS {table}`. */
|
|
12
|
+
dropTable(table: string): Promise<void>;
|
|
13
|
+
/** `ALTER TABLE {table} DROP COLUMN {column}`. */
|
|
14
|
+
dropColumn(table: string, column: string): Promise<void>;
|
|
15
|
+
/** `ALTER TABLE {table} RENAME COLUMN {from} TO {to}`. */
|
|
16
|
+
renameColumn(table: string, from: string, to: string): Promise<void>;
|
|
17
|
+
/** Runs a multi-statement destructive batch atomically (FTS rebuild,
|
|
18
|
+
* type-change column rebuild, full type drop). The caller assembles the
|
|
19
|
+
* statements; the impl validates identifiers and runs them as one D1 batch. */
|
|
20
|
+
execDestructive(statements: string[]): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=schema-mutator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-mutator.d.ts","sourceRoot":"","sources":["../src/schema-mutator.ts"],"names":[],"mappings":"AAGA;;yFAEyF;AACzF,MAAM,WAAW,cAAc;IAC7B,8EAA8E;IAC9E,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAA;IACtD;;8EAE0E;IAC1E,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAS5C,sCAAsC;IACtC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACvC,kDAAkD;IAClD,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACxD,0DAA0D;IAC1D,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACpE;;oFAEgF;IAChF,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.repository.d.ts","sourceRoot":"","sources":["../../src/search/search.repository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search.repository.d.ts","sourceRoot":"","sources":["../../src/search/search.repository.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;;OAOG;IACH,MAAM,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAAA;IAE9E;;;;OAIG;IACH,KAAK,CACH,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,EACrD,KAAK,EAAE,IAAI,EAAE,GACZ,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC9B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Seed } from './types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Full create-from-scratch statement set for a seed. Mirrors the CLI's buildStatements.
|
|
4
|
+
* Order: parent table → indexes → draft table → FTS table → FTS triggers →
|
|
5
|
+
* per multi-relation: junction table → junction indexes → junction draft table.
|
|
6
|
+
* Callers that create several seeds must order seeds with sortSeedsByDependencies
|
|
7
|
+
* first so relation FK targets exist.
|
|
8
|
+
*/
|
|
9
|
+
export declare function planCreateSeed(seed: Seed): string[];
|
|
10
|
+
export interface ExtendPlan {
|
|
11
|
+
statements: string[];
|
|
12
|
+
ftsRebuildNeeded: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Additive extension: given the columns that already exist on content_{slug}
|
|
16
|
+
* (from PRAGMA table_info, passed in by the caller), return ONLY the statements
|
|
17
|
+
* needed to add new branches — ADD COLUMN + indexes, plus junction tables for
|
|
18
|
+
* new multi-relation branches. Never drops or renames.
|
|
19
|
+
*
|
|
20
|
+
* FTS: SQLite cannot ALTER an fts5 table's columns. If a new text/richtext
|
|
21
|
+
* searchable branch was added, ftsRebuildNeeded=true signals the caller
|
|
22
|
+
* (sprint 03) to handle it — no DROP is emitted.
|
|
23
|
+
*/
|
|
24
|
+
export declare function planExtendSeed(seed: Seed, existingColumns: Set<string>): ExtendPlan;
|
|
25
|
+
/**
|
|
26
|
+
* Destructive FTS rebuild (sprint 06). SQLite cannot ALTER an fts5 table's
|
|
27
|
+
* columns, so when a searchable branch is added, renamed, retyped, or dropped
|
|
28
|
+
* the only correct fix is to drop and recreate the `fts_{slug}` virtual table
|
|
29
|
+
* (and its insert/update/delete triggers), then backfill from `content_{slug}`.
|
|
30
|
+
*
|
|
31
|
+
* Returns an empty array when the seed has no searchable branches — in that
|
|
32
|
+
* case the caller should instead drop any leftover FTS table via
|
|
33
|
+
* generateDropTable's FTS statements. The returned statements are destructive
|
|
34
|
+
* and must run through ISchemaMutator.execDestructive, never execDdl.
|
|
35
|
+
*
|
|
36
|
+
* Order: drop triggers → drop fts table → recreate table → recreate triggers →
|
|
37
|
+
* backfill existing rows.
|
|
38
|
+
*/
|
|
39
|
+
export declare function planFtsRebuild(seed: Seed): string[];
|
|
40
|
+
//# sourceMappingURL=seed-ddl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-ddl.d.ts","sourceRoot":"","sources":["../src/seed-ddl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AActC;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,CAanD;AAED,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,UAAU,CAqBnF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,CA0BnD"}
|
package/dist/seed-ddl.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MIT
|
|
2
|
+
// Copyright (c) 2024–2026 Flavio De Musso
|
|
3
|
+
import { generateCreateTable, generateDraftTable, generateIndexes, generateFtsTable, generateFtsTriggers, generateAddColumn, generateJunctionTable, generateJunctionIndexes, generateJunctionDraftTable, indexableSearchBranches, } from './engine.js';
|
|
4
|
+
/**
|
|
5
|
+
* Full create-from-scratch statement set for a seed. Mirrors the CLI's buildStatements.
|
|
6
|
+
* Order: parent table → indexes → draft table → FTS table → FTS triggers →
|
|
7
|
+
* per multi-relation: junction table → junction indexes → junction draft table.
|
|
8
|
+
* Callers that create several seeds must order seeds with sortSeedsByDependencies
|
|
9
|
+
* first so relation FK targets exist.
|
|
10
|
+
*/
|
|
11
|
+
export function planCreateSeed(seed) {
|
|
12
|
+
const stmts = [generateCreateTable(seed), ...generateIndexes(seed)];
|
|
13
|
+
const draft = generateDraftTable(seed);
|
|
14
|
+
if (draft)
|
|
15
|
+
stmts.push(draft);
|
|
16
|
+
const fts = generateFtsTable(seed);
|
|
17
|
+
if (fts)
|
|
18
|
+
stmts.push(fts, ...generateFtsTriggers(seed));
|
|
19
|
+
for (const branch of seed.branches) {
|
|
20
|
+
if (branch.type !== 'relation' || branch.multiple !== true)
|
|
21
|
+
continue;
|
|
22
|
+
stmts.push(generateJunctionTable(seed, branch), ...generateJunctionIndexes(seed, branch));
|
|
23
|
+
const dj = generateJunctionDraftTable(seed, branch);
|
|
24
|
+
if (dj)
|
|
25
|
+
stmts.push(dj);
|
|
26
|
+
}
|
|
27
|
+
return stmts;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Additive extension: given the columns that already exist on content_{slug}
|
|
31
|
+
* (from PRAGMA table_info, passed in by the caller), return ONLY the statements
|
|
32
|
+
* needed to add new branches — ADD COLUMN + indexes, plus junction tables for
|
|
33
|
+
* new multi-relation branches. Never drops or renames.
|
|
34
|
+
*
|
|
35
|
+
* FTS: SQLite cannot ALTER an fts5 table's columns. If a new text/richtext
|
|
36
|
+
* searchable branch was added, ftsRebuildNeeded=true signals the caller
|
|
37
|
+
* (sprint 03) to handle it — no DROP is emitted.
|
|
38
|
+
*/
|
|
39
|
+
export function planExtendSeed(seed, existingColumns) {
|
|
40
|
+
const statements = [];
|
|
41
|
+
let ftsRebuildNeeded = false;
|
|
42
|
+
for (const branch of seed.branches) {
|
|
43
|
+
if (branch.type === 'relation' && branch.multiple === true) {
|
|
44
|
+
// junction table is CREATE IF NOT EXISTS — safe to re-emit
|
|
45
|
+
statements.push(generateJunctionTable(seed, branch), ...generateJunctionIndexes(seed, branch));
|
|
46
|
+
const dj = generateJunctionDraftTable(seed, branch);
|
|
47
|
+
if (dj)
|
|
48
|
+
statements.push(dj);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (existingColumns.has(branch.alias))
|
|
52
|
+
continue;
|
|
53
|
+
statements.push(generateAddColumn(seed, branch));
|
|
54
|
+
if ((branch.type === 'text' || branch.type === 'richtext') && branch.policies?.search !== false) {
|
|
55
|
+
ftsRebuildNeeded = true;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// CREATE INDEX IF NOT EXISTS — idempotent, safe to re-run
|
|
59
|
+
statements.push(...generateIndexes(seed));
|
|
60
|
+
return { statements, ftsRebuildNeeded };
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Destructive FTS rebuild (sprint 06). SQLite cannot ALTER an fts5 table's
|
|
64
|
+
* columns, so when a searchable branch is added, renamed, retyped, or dropped
|
|
65
|
+
* the only correct fix is to drop and recreate the `fts_{slug}` virtual table
|
|
66
|
+
* (and its insert/update/delete triggers), then backfill from `content_{slug}`.
|
|
67
|
+
*
|
|
68
|
+
* Returns an empty array when the seed has no searchable branches — in that
|
|
69
|
+
* case the caller should instead drop any leftover FTS table via
|
|
70
|
+
* generateDropTable's FTS statements. The returned statements are destructive
|
|
71
|
+
* and must run through ISchemaMutator.execDestructive, never execDdl.
|
|
72
|
+
*
|
|
73
|
+
* Order: drop triggers → drop fts table → recreate table → recreate triggers →
|
|
74
|
+
* backfill existing rows.
|
|
75
|
+
*/
|
|
76
|
+
export function planFtsRebuild(seed) {
|
|
77
|
+
const branches = indexableSearchBranches(seed);
|
|
78
|
+
if (branches.length === 0)
|
|
79
|
+
return [];
|
|
80
|
+
const slug = seed.slug;
|
|
81
|
+
const ftsTable = `fts_${slug}`;
|
|
82
|
+
const contentTable = `content_${slug}`;
|
|
83
|
+
const cols = branches.map(b => b.alias);
|
|
84
|
+
const ftsTableDdl = generateFtsTable(seed);
|
|
85
|
+
const triggers = generateFtsTriggers(seed);
|
|
86
|
+
// generateFtsTable/Triggers return non-null here (branches.length > 0 checked).
|
|
87
|
+
if (!ftsTableDdl)
|
|
88
|
+
return [];
|
|
89
|
+
const ftsColList = ['entry_id', ...cols].join(', ');
|
|
90
|
+
const selectList = ['id', ...cols].join(', ');
|
|
91
|
+
return [
|
|
92
|
+
`DROP TRIGGER IF EXISTS fts_${slug}_insert;`,
|
|
93
|
+
`DROP TRIGGER IF EXISTS fts_${slug}_update;`,
|
|
94
|
+
`DROP TRIGGER IF EXISTS fts_${slug}_delete;`,
|
|
95
|
+
`DROP TABLE IF EXISTS ${ftsTable};`,
|
|
96
|
+
ftsTableDdl,
|
|
97
|
+
...triggers,
|
|
98
|
+
`INSERT INTO ${ftsTable}(${ftsColList}) SELECT ${selectList} FROM ${contentTable};`,
|
|
99
|
+
];
|
|
100
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Seed, Branch } from './types.js';
|
|
3
|
+
/** Reference to a Seed branch by its stable id (e.g. 'br_03').
|
|
4
|
+
* Aliases can be renamed — ids cannot. When the id does not match any
|
|
5
|
+
* branch on the Seed at read time, the field is silently stripped (auto-cleanup). */
|
|
6
|
+
export interface LayoutField {
|
|
7
|
+
branchId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LayoutColumn {
|
|
10
|
+
id: string;
|
|
11
|
+
fields: LayoutField[];
|
|
12
|
+
}
|
|
13
|
+
export interface LayoutSection {
|
|
14
|
+
id: string;
|
|
15
|
+
label?: string;
|
|
16
|
+
hideLabel?: boolean;
|
|
17
|
+
hideBorder?: boolean;
|
|
18
|
+
collapsible?: boolean;
|
|
19
|
+
/** Max 4 columns. Enforced by validator. */
|
|
20
|
+
columns: LayoutColumn[];
|
|
21
|
+
}
|
|
22
|
+
export interface LayoutTab {
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
sections: LayoutSection[];
|
|
26
|
+
}
|
|
27
|
+
export interface FormLayout {
|
|
28
|
+
/** Format version — bump when introducing breaking changes. */
|
|
29
|
+
version: 1;
|
|
30
|
+
tabs: LayoutTab[];
|
|
31
|
+
}
|
|
32
|
+
/** Branch types that must occupy a section alone, full width. */
|
|
33
|
+
export declare const FULL_WIDTH_BRANCH_TYPES: Set<import("./types.js").BranchType>;
|
|
34
|
+
/** Returns true when a branch is a gallery (file + multiple/asset-list). */
|
|
35
|
+
export declare function isGalleryBranch(branch: Branch): boolean;
|
|
36
|
+
/** Branch types currently unsupported in the Layout Builder. */
|
|
37
|
+
export declare const UNSUPPORTED_BRANCH_TYPES: Set<import("./types.js").BranchType>;
|
|
38
|
+
/** Aliases that are NEVER included in the editor form (handled by other UI). */
|
|
39
|
+
export declare const SYSTEM_ALIASES: Set<string>;
|
|
40
|
+
/** True when the branch is eligible to appear in the layout at all. */
|
|
41
|
+
export declare function isLayoutableBranch(branch: Branch): boolean;
|
|
42
|
+
/** True when the branch must occupy a dedicated full-width section. */
|
|
43
|
+
export declare function isFullWidthBranch(branch: Branch): boolean;
|
|
44
|
+
/** Branches considered SEO fields. Matches the existing rule in entry-editor.tsx. */
|
|
45
|
+
export declare function isSeoBranch(branch: Branch): boolean;
|
|
46
|
+
export declare const layoutFieldSchema: z.ZodObject<{
|
|
47
|
+
branchId: z.ZodString;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export declare const layoutColumnSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
52
|
+
branchId: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export declare const layoutSectionSchema: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
label: z.ZodOptional<z.ZodString>;
|
|
58
|
+
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
hideBorder: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
64
|
+
branchId: z.ZodString;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export declare const layoutTabSchema: z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
label: z.ZodString;
|
|
71
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
label: z.ZodOptional<z.ZodString>;
|
|
74
|
+
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
hideBorder: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
80
|
+
branchId: z.ZodString;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const formLayoutSchema: z.ZodObject<{
|
|
86
|
+
version: z.ZodLiteral<1>;
|
|
87
|
+
tabs: z.ZodArray<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
label: z.ZodString;
|
|
90
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
label: z.ZodOptional<z.ZodString>;
|
|
93
|
+
hideLabel: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
hideBorder: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
collapsible: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
97
|
+
id: z.ZodString;
|
|
98
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
99
|
+
branchId: z.ZodString;
|
|
100
|
+
}, z.core.$strip>>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
export declare function generateDefaultLayout(seed: Seed, opts?: {
|
|
106
|
+
newId: () => string;
|
|
107
|
+
}): FormLayout;
|
|
108
|
+
export type ValidateLayoutResult = {
|
|
109
|
+
ok: true;
|
|
110
|
+
cleaned: FormLayout;
|
|
111
|
+
} | {
|
|
112
|
+
ok: false;
|
|
113
|
+
errors: string[];
|
|
114
|
+
cleaned: FormLayout;
|
|
115
|
+
};
|
|
116
|
+
export declare function validateLayoutAgainstSeed(layout: FormLayout, seed: Seed): ValidateLayoutResult;
|
|
117
|
+
//# sourceMappingURL=seed-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seed-layout.d.ts","sourceRoot":"","sources":["../src/seed-layout.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAO9C;;sFAEsF;AACtF,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,WAAW,EAAE,CAAA;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4CAA4C;IAC5C,OAAO,EAAE,YAAY,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,aAAa,EAAE,CAAA;CAC1B;AAED,MAAM,WAAW,UAAU;IACzB,+DAA+D;IAC/D,OAAO,EAAE,CAAC,CAAA;IACV,IAAI,EAAE,SAAS,EAAE,CAAA;CAClB;AAMD,iEAAiE;AACjE,eAAO,MAAM,uBAAuB,sCAAwC,CAAA;AAE5E,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAGvD;AAED,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,sCAAoC,CAAA;AAEzE,gFAAgF;AAChF,eAAO,MAAM,cAAc,aAEzB,CAAA;AAEF,uEAAuE;AACvE,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAK1D;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,qFAAqF;AACrF,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEnD;AAMD,eAAO,MAAM,iBAAiB;;iBAAgE,CAAA;AAC9F,eAAO,MAAM,kBAAkB;;;;;iBAG7B,CAAA;AACF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAO9B,CAAA;AACF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;iBAI1B,CAAA;AACF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;iBAG3B,CAAA;AAiDF,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,IAAI,EACV,IAAI,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,MAAM,CAAA;CAAE,GAC7B,UAAU,CAmBZ;AAMD,MAAM,MAAM,oBAAoB,GAC5B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,UAAU,CAAA;CAAE,GACjC;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,UAAU,CAAA;CAAE,CAAA;AAExD,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,IAAI,GACT,oBAAoB,CAsDtB"}
|