@almadar/core 10.48.0 → 10.50.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 +1 -1
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DiHGegt9.d.ts → effect-DjMRX8sI.d.ts} +16 -8
- package/dist/entityAccess-dYpx6Ipw.d.ts +54 -0
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +1 -1
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +272 -7
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +19 -1
- 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 +518 -8
- package/dist/patterns/index.js +253 -6
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +225 -3
- package/dist/patterns/registry.json +225 -3
- package/dist/{schema-C0QwW3G2.d.ts → schema-1bzTH92n.d.ts} +2 -2
- package/dist/{trait-pw49W-zL.d.ts → trait-DkMVtmED.d.ts} +1 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-1DvdNPye.d.ts → types-CUdqUyzi.d.ts} +2 -2
- package/package.json +2 -2
- package/dist/entityAccess-OjD7XSBO.d.ts +0 -33
package/dist/patterns/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
|
3
3
|
// src/patterns/patterns-registry.json
|
|
4
4
|
var patterns_registry_default = {
|
|
5
5
|
version: "1.0.0",
|
|
6
|
-
exportedAt: "2026-
|
|
6
|
+
exportedAt: "2026-08-01T09:06:41.875Z",
|
|
7
7
|
patterns: {
|
|
8
8
|
"entity-table": {
|
|
9
9
|
type: "entity-table",
|
|
@@ -41813,6 +41813,126 @@ var patterns_registry_default = {
|
|
|
41813
41813
|
],
|
|
41814
41814
|
description: "Rotation in radians (painter units)."
|
|
41815
41815
|
},
|
|
41816
|
+
rotation: {
|
|
41817
|
+
types: [
|
|
41818
|
+
"array"
|
|
41819
|
+
],
|
|
41820
|
+
description: "Euler rotation `[x, y, z]` in radians (world axes) \u2014 per-axis joint rotation for the 3D backend; a group placed at a joint with children authored joint-local IS a bone. The 2D painter applies only the in-plane `z` component, after `rotate`.",
|
|
41821
|
+
items: {
|
|
41822
|
+
types: [
|
|
41823
|
+
"number"
|
|
41824
|
+
]
|
|
41825
|
+
}
|
|
41826
|
+
},
|
|
41827
|
+
bone: {
|
|
41828
|
+
types: [
|
|
41829
|
+
"string"
|
|
41830
|
+
],
|
|
41831
|
+
description: "Skeleton bone name. A named group is addressable by a `draw-mesh` `skin` block (smooth skinning): the skinned mesh deforms with this group's animated transform. Names resolve within the nearest enclosing `skeleton: true` group (falling back to the canvas), so multiple instances of one rig never collide. Distinct from `id` (the hit-test handle)."
|
|
41832
|
+
},
|
|
41833
|
+
skeleton: {
|
|
41834
|
+
types: [
|
|
41835
|
+
"boolean"
|
|
41836
|
+
],
|
|
41837
|
+
description: "Marks this group as a skeleton SCOPE: `bone` names and `skin` bindings in its subtree resolve against each other only \u2014 one scope per rig instance."
|
|
41838
|
+
},
|
|
41839
|
+
animation: {
|
|
41840
|
+
types: [
|
|
41841
|
+
"object"
|
|
41842
|
+
],
|
|
41843
|
+
description: "Keyframe animation over the group TRANSFORM tracks (`offsetX/Y/Z` in cells, `rotateX/Y/Z` in radians, `scale`; the 2D painter also honors `opacity`) \u2014 children inherit it, so nested animated groups form a joint chain. Material tracks belong on leaf meshes.",
|
|
41844
|
+
properties: {
|
|
41845
|
+
durationMs: {
|
|
41846
|
+
types: [
|
|
41847
|
+
"number"
|
|
41848
|
+
]
|
|
41849
|
+
},
|
|
41850
|
+
loop: {
|
|
41851
|
+
types: [
|
|
41852
|
+
"boolean"
|
|
41853
|
+
]
|
|
41854
|
+
},
|
|
41855
|
+
keyframes: {
|
|
41856
|
+
types: [
|
|
41857
|
+
"array"
|
|
41858
|
+
],
|
|
41859
|
+
items: {
|
|
41860
|
+
types: [
|
|
41861
|
+
"object"
|
|
41862
|
+
],
|
|
41863
|
+
properties: {
|
|
41864
|
+
at: {
|
|
41865
|
+
types: [
|
|
41866
|
+
"number"
|
|
41867
|
+
]
|
|
41868
|
+
},
|
|
41869
|
+
offsetX: {
|
|
41870
|
+
types: [
|
|
41871
|
+
"number"
|
|
41872
|
+
]
|
|
41873
|
+
},
|
|
41874
|
+
offsetY: {
|
|
41875
|
+
types: [
|
|
41876
|
+
"number"
|
|
41877
|
+
]
|
|
41878
|
+
},
|
|
41879
|
+
offsetZ: {
|
|
41880
|
+
types: [
|
|
41881
|
+
"number"
|
|
41882
|
+
]
|
|
41883
|
+
},
|
|
41884
|
+
rotateX: {
|
|
41885
|
+
types: [
|
|
41886
|
+
"number"
|
|
41887
|
+
]
|
|
41888
|
+
},
|
|
41889
|
+
rotateY: {
|
|
41890
|
+
types: [
|
|
41891
|
+
"number"
|
|
41892
|
+
]
|
|
41893
|
+
},
|
|
41894
|
+
rotateZ: {
|
|
41895
|
+
types: [
|
|
41896
|
+
"number"
|
|
41897
|
+
]
|
|
41898
|
+
},
|
|
41899
|
+
scale: {
|
|
41900
|
+
types: [
|
|
41901
|
+
"number"
|
|
41902
|
+
]
|
|
41903
|
+
},
|
|
41904
|
+
opacity: {
|
|
41905
|
+
types: [
|
|
41906
|
+
"number"
|
|
41907
|
+
]
|
|
41908
|
+
},
|
|
41909
|
+
emissiveIntensity: {
|
|
41910
|
+
types: [
|
|
41911
|
+
"number"
|
|
41912
|
+
]
|
|
41913
|
+
},
|
|
41914
|
+
color: {
|
|
41915
|
+
types: [
|
|
41916
|
+
"string"
|
|
41917
|
+
]
|
|
41918
|
+
},
|
|
41919
|
+
emissive: {
|
|
41920
|
+
types: [
|
|
41921
|
+
"string"
|
|
41922
|
+
]
|
|
41923
|
+
}
|
|
41924
|
+
},
|
|
41925
|
+
required: [
|
|
41926
|
+
"at"
|
|
41927
|
+
]
|
|
41928
|
+
}
|
|
41929
|
+
}
|
|
41930
|
+
},
|
|
41931
|
+
propertyRequired: [
|
|
41932
|
+
"durationMs",
|
|
41933
|
+
"keyframes"
|
|
41934
|
+
]
|
|
41935
|
+
},
|
|
41816
41936
|
opacity: {
|
|
41817
41937
|
types: [
|
|
41818
41938
|
"number"
|
|
@@ -41936,7 +42056,8 @@ var patterns_registry_default = {
|
|
|
41936
42056
|
"cone",
|
|
41937
42057
|
"torus",
|
|
41938
42058
|
"plane",
|
|
41939
|
-
"circle"
|
|
42059
|
+
"circle",
|
|
42060
|
+
"polyhedron"
|
|
41940
42061
|
]
|
|
41941
42062
|
},
|
|
41942
42063
|
position: {
|
|
@@ -42016,6 +42137,107 @@ var patterns_registry_default = {
|
|
|
42016
42137
|
],
|
|
42017
42138
|
description: "Curved-surface tessellation, clamped 3..64 (default 24). 4\u20138 + `flatShading` = low-poly."
|
|
42018
42139
|
},
|
|
42140
|
+
vertices: {
|
|
42141
|
+
types: [
|
|
42142
|
+
"array"
|
|
42143
|
+
],
|
|
42144
|
+
description: "`polyhedron` only: raw vertices as scene-frame `[x, y, z]` triples in cells, `z` = up.",
|
|
42145
|
+
items: {
|
|
42146
|
+
types: [
|
|
42147
|
+
"array"
|
|
42148
|
+
],
|
|
42149
|
+
items: {
|
|
42150
|
+
types: [
|
|
42151
|
+
"number"
|
|
42152
|
+
]
|
|
42153
|
+
}
|
|
42154
|
+
}
|
|
42155
|
+
},
|
|
42156
|
+
faces: {
|
|
42157
|
+
types: [
|
|
42158
|
+
"array"
|
|
42159
|
+
],
|
|
42160
|
+
description: "`polyhedron` only: triangle index triples into `vertices`, wound counter-clockwise seen from OUTSIDE in the scene frame.",
|
|
42161
|
+
items: {
|
|
42162
|
+
types: [
|
|
42163
|
+
"array"
|
|
42164
|
+
],
|
|
42165
|
+
items: {
|
|
42166
|
+
types: [
|
|
42167
|
+
"number"
|
|
42168
|
+
]
|
|
42169
|
+
}
|
|
42170
|
+
}
|
|
42171
|
+
},
|
|
42172
|
+
skin: {
|
|
42173
|
+
types: [
|
|
42174
|
+
"object"
|
|
42175
|
+
],
|
|
42176
|
+
description: "`polyhedron` only: smooth-skinning weights binding the vertices to named bone groups. Vertices must then be authored in BIND POSE model space; the bones' animated transforms deform them.",
|
|
42177
|
+
properties: {
|
|
42178
|
+
bones: {
|
|
42179
|
+
types: [
|
|
42180
|
+
"array"
|
|
42181
|
+
],
|
|
42182
|
+
items: {
|
|
42183
|
+
types: [
|
|
42184
|
+
"string"
|
|
42185
|
+
]
|
|
42186
|
+
}
|
|
42187
|
+
},
|
|
42188
|
+
inverseBindMatrices: {
|
|
42189
|
+
types: [
|
|
42190
|
+
"array"
|
|
42191
|
+
],
|
|
42192
|
+
items: {
|
|
42193
|
+
types: [
|
|
42194
|
+
"array"
|
|
42195
|
+
],
|
|
42196
|
+
items: {
|
|
42197
|
+
types: [
|
|
42198
|
+
"number"
|
|
42199
|
+
]
|
|
42200
|
+
}
|
|
42201
|
+
}
|
|
42202
|
+
},
|
|
42203
|
+
indices: {
|
|
42204
|
+
types: [
|
|
42205
|
+
"array"
|
|
42206
|
+
],
|
|
42207
|
+
items: {
|
|
42208
|
+
types: [
|
|
42209
|
+
"array"
|
|
42210
|
+
],
|
|
42211
|
+
items: {
|
|
42212
|
+
types: [
|
|
42213
|
+
"number"
|
|
42214
|
+
]
|
|
42215
|
+
}
|
|
42216
|
+
}
|
|
42217
|
+
},
|
|
42218
|
+
weights: {
|
|
42219
|
+
types: [
|
|
42220
|
+
"array"
|
|
42221
|
+
],
|
|
42222
|
+
items: {
|
|
42223
|
+
types: [
|
|
42224
|
+
"array"
|
|
42225
|
+
],
|
|
42226
|
+
items: {
|
|
42227
|
+
types: [
|
|
42228
|
+
"number"
|
|
42229
|
+
]
|
|
42230
|
+
}
|
|
42231
|
+
}
|
|
42232
|
+
}
|
|
42233
|
+
},
|
|
42234
|
+
propertyRequired: [
|
|
42235
|
+
"bones",
|
|
42236
|
+
"inverseBindMatrices",
|
|
42237
|
+
"indices",
|
|
42238
|
+
"weights"
|
|
42239
|
+
]
|
|
42240
|
+
},
|
|
42019
42241
|
rotation: {
|
|
42020
42242
|
types: [
|
|
42021
42243
|
"array"
|
|
@@ -42031,7 +42253,7 @@ var patterns_registry_default = {
|
|
|
42031
42253
|
types: [
|
|
42032
42254
|
"string"
|
|
42033
42255
|
],
|
|
42034
|
-
description: "`bottom` (default) rests the mesh on its position's ground plane; `center` centers it there.",
|
|
42256
|
+
description: "`bottom` (default) rests the mesh on its position's ground plane; `center` centers it there. For `polyhedron`, `bottom` lifts by \u2212min(z) and `center` applies no offset \u2014 the vertices are authoritative.",
|
|
42035
42257
|
enumValues: [
|
|
42036
42258
|
"bottom",
|
|
42037
42259
|
"center"
|
|
@@ -43167,7 +43389,7 @@ var integrators_registry_default = {
|
|
|
43167
43389
|
// src/patterns/component-mapping.json
|
|
43168
43390
|
var component_mapping_default = {
|
|
43169
43391
|
version: "1.0.0",
|
|
43170
|
-
exportedAt: "2026-
|
|
43392
|
+
exportedAt: "2026-08-01T09:06:41.875Z",
|
|
43171
43393
|
mappings: {
|
|
43172
43394
|
"page-header": {
|
|
43173
43395
|
component: "PageHeader",
|
|
@@ -44562,7 +44784,7 @@ var component_mapping_default = {
|
|
|
44562
44784
|
// src/patterns/event-contracts.json
|
|
44563
44785
|
var event_contracts_default = {
|
|
44564
44786
|
version: "1.0.0",
|
|
44565
|
-
exportedAt: "2026-
|
|
44787
|
+
exportedAt: "2026-08-01T09:06:41.875Z",
|
|
44566
44788
|
contracts: {
|
|
44567
44789
|
form: {
|
|
44568
44790
|
emits: [
|
|
@@ -46429,6 +46651,31 @@ function isEntityAwarePattern(patternType) {
|
|
|
46429
46651
|
if (!propsSchema) return false;
|
|
46430
46652
|
return "entity" in propsSchema;
|
|
46431
46653
|
}
|
|
46654
|
+
var EVENT_OUTLET_KINDS = /* @__PURE__ */ new Set(["event", "event-ref", "callback"]);
|
|
46655
|
+
var eventKeyPropsCache = /* @__PURE__ */ new Map();
|
|
46656
|
+
var eventListPropsCache = /* @__PURE__ */ new Map();
|
|
46657
|
+
function eventKeyPropsOf(patternType) {
|
|
46658
|
+
const cached = eventKeyPropsCache.get(patternType);
|
|
46659
|
+
if (cached) return cached;
|
|
46660
|
+
const propsSchema = getPatternDefinition(patternType)?.propsSchema;
|
|
46661
|
+
const out = /* @__PURE__ */ new Set();
|
|
46662
|
+
for (const [prop, def] of Object.entries(propsSchema ?? {})) {
|
|
46663
|
+
if (def.kind && EVENT_OUTLET_KINDS.has(def.kind)) out.add(prop);
|
|
46664
|
+
}
|
|
46665
|
+
eventKeyPropsCache.set(patternType, out);
|
|
46666
|
+
return out;
|
|
46667
|
+
}
|
|
46668
|
+
function eventListPropsOf(patternType) {
|
|
46669
|
+
const cached = eventListPropsCache.get(patternType);
|
|
46670
|
+
if (cached) return cached;
|
|
46671
|
+
const propsSchema = getPatternDefinition(patternType)?.propsSchema;
|
|
46672
|
+
const out = /* @__PURE__ */ new Map();
|
|
46673
|
+
for (const [prop, def] of Object.entries(propsSchema ?? {})) {
|
|
46674
|
+
if (def.kind === "event-list") out.set(prop, def.eventField ?? "event");
|
|
46675
|
+
}
|
|
46676
|
+
eventListPropsCache.set(patternType, out);
|
|
46677
|
+
return out;
|
|
46678
|
+
}
|
|
46432
46679
|
function isDrawablePattern(patternType) {
|
|
46433
46680
|
const definition = getPatternDefinition(patternType);
|
|
46434
46681
|
if (!definition) return false;
|
|
@@ -46468,6 +46715,6 @@ function propHostsDrawables(schema) {
|
|
|
46468
46715
|
return false;
|
|
46469
46716
|
}
|
|
46470
46717
|
|
|
46471
|
-
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
46718
|
+
export { COMPONENT_MAPPING, EVENT_CONTRACTS, INTEGRATORS_REGISTRY, PATTERN_REGISTRY, PATTERN_TYPES, buildRecommendationContext, collectRenderUiPatternTypes, component_mapping_default as componentMapping, event_contracts_default as eventContracts, eventKeyPropsOf, eventListPropsOf, findCompatiblePatterns, formatRecommendationsForPrompt, generatePatternDescription, getAllPatternTypes, getComponentForPattern, getEmittedEvents, getEntityCardinality, getOrbAllowedPatterns, getOrbAllowedPatternsCompact, getOrbAllowedPatternsFiltered, getOrbAllowedPatternsSlim, getPatternActionsRef, getPatternDefinition, getPatternMetadata, getPatternPropsCompact, getPatternsGroupedByCategory, integrators_registry_default as integratorsRegistry, isContentBodyPattern, isContentBodyPatternType, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isMainSlotRenderUi, isValidPatternType, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
46472
46719
|
//# sourceMappingURL=index.js.map
|
|
46473
46720
|
//# sourceMappingURL=index.js.map
|