@almadar/core 10.58.0 → 10.60.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/builders.d.ts +3 -3
- package/dist/builders.js +5 -2
- package/dist/builders.js.map +1 -1
- package/dist/{effect-BH2k4oK6.d.ts → effect-a1W_hXyG.d.ts} +96 -9
- package/dist/{entityAccess-QAurFO7l.d.ts → entityAccess-BTHElnAf.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +2 -0
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +5 -2
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index-D9aomsLC.d.ts +3178 -0
- package/dist/index.d.ts +11 -98
- package/dist/index.js +5481 -1309
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +8 -2
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +6 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +31751 -22732
- package/dist/patterns/index.js +5469 -1306
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +6105 -1948
- package/dist/patterns/registry.json +6105 -1948
- package/dist/{schema-Sk_irLOY.d.ts → schema-WnERh-P-.d.ts} +2259 -2259
- package/dist/{trait-Bw4nWHu1.d.ts → trait-DgZ5Exel.d.ts} +2 -2
- package/dist/types/index.d.ts +8 -3095
- package/dist/types/index.js +11 -3
- package/dist/types/index.js.map +1 -1
- package/dist/{types-D71hY_4A.d.ts → types-CGjZ7Odu.d.ts} +3 -3
- package/package.json +1 -1
package/dist/types/index.js
CHANGED
|
@@ -178,7 +178,8 @@ var FIELD_TYPES = [
|
|
|
178
178
|
"relation",
|
|
179
179
|
"trait",
|
|
180
180
|
"slot",
|
|
181
|
-
"pattern"
|
|
181
|
+
"pattern",
|
|
182
|
+
"node"
|
|
182
183
|
];
|
|
183
184
|
var SEMANTIC_STRING_TYPES = ["email", "url", "phone", "uuid", "image"];
|
|
184
185
|
function isSemanticStringType(type) {
|
|
@@ -297,6 +298,7 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
297
298
|
scalarVariant("trait"),
|
|
298
299
|
scalarVariant("slot"),
|
|
299
300
|
scalarVariant("pattern"),
|
|
301
|
+
scalarVariant("node"),
|
|
300
302
|
// Enum variant — REQUIRES non-empty values.
|
|
301
303
|
z.object({
|
|
302
304
|
...baseFieldShape,
|
|
@@ -439,7 +441,8 @@ var CameraSchema = z.object({
|
|
|
439
441
|
zoom: z.number().optional(),
|
|
440
442
|
fov: z.number().optional(),
|
|
441
443
|
mode: CameraModeSchema.optional(),
|
|
442
|
-
azimuth: z.number().optional()
|
|
444
|
+
azimuth: z.number().optional(),
|
|
445
|
+
elevation: z.number().optional()
|
|
443
446
|
});
|
|
444
447
|
function createAssetKey(role, category) {
|
|
445
448
|
return `${role}:${category}`;
|
|
@@ -2222,6 +2225,7 @@ var PATTERN_TYPES = [
|
|
|
2222
2225
|
"action-tile",
|
|
2223
2226
|
"activation-block",
|
|
2224
2227
|
"alert",
|
|
2228
|
+
"algo-graph-canvas",
|
|
2225
2229
|
"algorithm-canvas",
|
|
2226
2230
|
"animated-counter",
|
|
2227
2231
|
"animated-graphic",
|
|
@@ -2555,7 +2559,11 @@ function inferTsType(schemaType) {
|
|
|
2555
2559
|
timestamp: "number",
|
|
2556
2560
|
array: "unknown[]",
|
|
2557
2561
|
object: "Record<string, unknown>",
|
|
2558
|
-
any: "unknown"
|
|
2562
|
+
any: "unknown",
|
|
2563
|
+
// Renderable UI content — the canonical pattern-tree type from
|
|
2564
|
+
// render-ui-edit.ts. Without this entry the raw tag `node` would leak
|
|
2565
|
+
// out as a (nonexistent) TS type name.
|
|
2566
|
+
node: "PatternNode | PatternNode[]"
|
|
2559
2567
|
};
|
|
2560
2568
|
if (schemaType.endsWith("[]")) {
|
|
2561
2569
|
const baseType = schemaType.slice(0, -2);
|