@almadar/core 10.58.0 → 10.59.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-CK9fn56C.d.ts} +30 -7
- package/dist/{entityAccess-QAurFO7l.d.ts → entityAccess-pgfWacod.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-DMUBu17o.d.ts +3178 -0
- package/dist/index.d.ts +11 -98
- package/dist/index.js +841 -63
- 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 +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1720 -76
- package/dist/patterns/index.js +829 -60
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +827 -58
- package/dist/patterns/registry.json +827 -58
- package/dist/{schema-Sk_irLOY.d.ts → schema-CVTOy4at.d.ts} +506 -506
- package/dist/{trait-Bw4nWHu1.d.ts → trait-BjPraUgs.d.ts} +2 -2
- package/dist/types/index.d.ts +8 -3095
- package/dist/types/index.js +10 -3
- package/dist/types/index.js.map +1 -1
- package/dist/{types-D71hY_4A.d.ts → types-Dopw3s2O.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}`;
|
|
@@ -2555,7 +2558,11 @@ function inferTsType(schemaType) {
|
|
|
2555
2558
|
timestamp: "number",
|
|
2556
2559
|
array: "unknown[]",
|
|
2557
2560
|
object: "Record<string, unknown>",
|
|
2558
|
-
any: "unknown"
|
|
2561
|
+
any: "unknown",
|
|
2562
|
+
// Renderable UI content — the canonical pattern-tree type from
|
|
2563
|
+
// render-ui-edit.ts. Without this entry the raw tag `node` would leak
|
|
2564
|
+
// out as a (nonexistent) TS type name.
|
|
2565
|
+
node: "PatternNode | PatternNode[]"
|
|
2559
2566
|
};
|
|
2560
2567
|
if (schemaType.endsWith("[]")) {
|
|
2561
2568
|
const baseType = schemaType.slice(0, -2);
|