@almadar/core 10.31.0 → 10.33.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-DDcCVboe.d.ts → builders-DFOj9_N8.d.ts} +3 -3
- package/dist/builders.d.ts +4 -4
- package/dist/{pattern-types-VDIr2TkX.d.ts → effect-D9WY6JgN.d.ts} +1457 -4
- package/dist/{expression-CB9R3KWk.d.ts → expression-DpAj1RzP.d.ts} +1 -1
- package/dist/factory/index.d.ts +6 -6
- package/dist/factory-runtime/index.d.ts +4 -4
- package/dist/index.d.ts +53 -10
- package/dist/index.js +246 -115
- package/dist/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +14 -1
- package/dist/patterns/index.d.ts +175 -144
- package/dist/patterns/index.js +116 -87
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +84 -84
- package/dist/patterns/registry.json +84 -84
- package/dist/state-machine/index.d.ts +13 -2
- package/dist/state-machine/index.js +48 -23
- package/dist/state-machine/index.js.map +1 -1
- package/dist/{trait-DE6VU4Cd.d.ts → trait-6_gs33fs.d.ts} +3 -1454
- package/dist/types/index.d.ts +16 -10
- package/dist/types/index.js.map +1 -1
- package/dist/{types-DSfz2mr5.d.ts → types-CeGT3YB1.d.ts} +2 -2
- package/package.json +2 -2
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-07-
|
|
6
|
+
exportedAt: "2026-07-24T05:10:33.187Z",
|
|
7
7
|
patterns: {
|
|
8
8
|
"entity-table": {
|
|
9
9
|
type: "entity-table",
|
|
@@ -3502,7 +3502,8 @@ var patterns_registry_default = {
|
|
|
3502
3502
|
types: [
|
|
3503
3503
|
"string"
|
|
3504
3504
|
],
|
|
3505
|
-
description: "
|
|
3505
|
+
description: "Declarative search event \u2014 emits UI:{event} via eventBus on query submit (alongside canonical UI:SEARCH)",
|
|
3506
|
+
kind: "event"
|
|
3506
3507
|
},
|
|
3507
3508
|
entity: {
|
|
3508
3509
|
types: [
|
|
@@ -3661,6 +3662,20 @@ var patterns_registry_default = {
|
|
|
3661
3662
|
"inline-column-header"
|
|
3662
3663
|
],
|
|
3663
3664
|
default: "toolbar"
|
|
3665
|
+
},
|
|
3666
|
+
event: {
|
|
3667
|
+
types: [
|
|
3668
|
+
"string"
|
|
3669
|
+
],
|
|
3670
|
+
description: "Declarative filter event \u2014 emits UI:{event} via eventBus on filter change (alongside canonical UI:FILTER)",
|
|
3671
|
+
kind: "event"
|
|
3672
|
+
},
|
|
3673
|
+
clearEvent: {
|
|
3674
|
+
types: [
|
|
3675
|
+
"string"
|
|
3676
|
+
],
|
|
3677
|
+
description: "Declarative clear event \u2014 emits UI:{clearEvent} via eventBus on clear-all (alongside canonical UI:CLEAR_FILTERS)",
|
|
3678
|
+
kind: "event"
|
|
3664
3679
|
}
|
|
3665
3680
|
}
|
|
3666
3681
|
},
|
|
@@ -5724,9 +5739,9 @@ var patterns_registry_default = {
|
|
|
5724
5739
|
},
|
|
5725
5740
|
title: {
|
|
5726
5741
|
types: [
|
|
5727
|
-
"
|
|
5742
|
+
"node"
|
|
5728
5743
|
],
|
|
5729
|
-
description: "Drawer title"
|
|
5744
|
+
description: "Drawer title (text or any node, e.g. a brand logo + name)."
|
|
5730
5745
|
},
|
|
5731
5746
|
children: {
|
|
5732
5747
|
types: [
|
|
@@ -9736,8 +9751,9 @@ var patterns_registry_default = {
|
|
|
9736
9751
|
types: [
|
|
9737
9752
|
"string"
|
|
9738
9753
|
],
|
|
9739
|
-
description: "Font weight override",
|
|
9754
|
+
description: "Font weight override \u2014 `none` = no override, the variant's baked weight applies",
|
|
9740
9755
|
enumValues: [
|
|
9756
|
+
"none",
|
|
9741
9757
|
"light",
|
|
9742
9758
|
"normal",
|
|
9743
9759
|
"medium",
|
|
@@ -9751,6 +9767,7 @@ var patterns_registry_default = {
|
|
|
9751
9767
|
],
|
|
9752
9768
|
description: "Font size override",
|
|
9753
9769
|
enumValues: [
|
|
9770
|
+
"none",
|
|
9754
9771
|
"xs",
|
|
9755
9772
|
"sm",
|
|
9756
9773
|
"md",
|
|
@@ -15222,37 +15239,7 @@ var patterns_registry_default = {
|
|
|
15222
15239
|
types: [
|
|
15223
15240
|
"string"
|
|
15224
15241
|
],
|
|
15225
|
-
description: "Programming language for syntax highlighting",
|
|
15226
|
-
enumValues: [
|
|
15227
|
-
"text",
|
|
15228
|
-
"json",
|
|
15229
|
-
"javascript",
|
|
15230
|
-
"js",
|
|
15231
|
-
"typescript",
|
|
15232
|
-
"ts",
|
|
15233
|
-
"jsx",
|
|
15234
|
-
"tsx",
|
|
15235
|
-
"css",
|
|
15236
|
-
"markdown",
|
|
15237
|
-
"md",
|
|
15238
|
-
"bash",
|
|
15239
|
-
"shell",
|
|
15240
|
-
"sh",
|
|
15241
|
-
"yaml",
|
|
15242
|
-
"yml",
|
|
15243
|
-
"rust",
|
|
15244
|
-
"python",
|
|
15245
|
-
"py",
|
|
15246
|
-
"sql",
|
|
15247
|
-
"diff",
|
|
15248
|
-
"toml",
|
|
15249
|
-
"go",
|
|
15250
|
-
"graphql",
|
|
15251
|
-
"html",
|
|
15252
|
-
"xml",
|
|
15253
|
-
"orb",
|
|
15254
|
-
"lolo"
|
|
15255
|
-
],
|
|
15242
|
+
description: "Programming language for syntax highlighting (any Prism id; loaded on demand if not pre-registered)",
|
|
15256
15243
|
default: "text"
|
|
15257
15244
|
},
|
|
15258
15245
|
showCopyButton: {
|
|
@@ -15453,6 +15440,58 @@ var patterns_registry_default = {
|
|
|
15453
15440
|
"graphql",
|
|
15454
15441
|
"html",
|
|
15455
15442
|
"xml",
|
|
15443
|
+
"clojure",
|
|
15444
|
+
"clj",
|
|
15445
|
+
"edn",
|
|
15446
|
+
"haskell",
|
|
15447
|
+
"hs",
|
|
15448
|
+
"lisp",
|
|
15449
|
+
"scheme",
|
|
15450
|
+
"scala",
|
|
15451
|
+
"elixir",
|
|
15452
|
+
"ex",
|
|
15453
|
+
"exs",
|
|
15454
|
+
"erlang",
|
|
15455
|
+
"erl",
|
|
15456
|
+
"elm",
|
|
15457
|
+
"fsharp",
|
|
15458
|
+
"fs",
|
|
15459
|
+
"fsx",
|
|
15460
|
+
"ocaml",
|
|
15461
|
+
"ml",
|
|
15462
|
+
"java",
|
|
15463
|
+
"c",
|
|
15464
|
+
"cpp",
|
|
15465
|
+
"c++",
|
|
15466
|
+
"cc",
|
|
15467
|
+
"cxx",
|
|
15468
|
+
"hpp",
|
|
15469
|
+
"h",
|
|
15470
|
+
"csharp",
|
|
15471
|
+
"cs",
|
|
15472
|
+
"objectivec",
|
|
15473
|
+
"objc",
|
|
15474
|
+
"php",
|
|
15475
|
+
"ruby",
|
|
15476
|
+
"rb",
|
|
15477
|
+
"swift",
|
|
15478
|
+
"kotlin",
|
|
15479
|
+
"kt",
|
|
15480
|
+
"lua",
|
|
15481
|
+
"r",
|
|
15482
|
+
"dart",
|
|
15483
|
+
"julia",
|
|
15484
|
+
"fortran",
|
|
15485
|
+
"f90",
|
|
15486
|
+
"f95",
|
|
15487
|
+
"perl",
|
|
15488
|
+
"pl",
|
|
15489
|
+
"powershell",
|
|
15490
|
+
"ps1",
|
|
15491
|
+
"makefile",
|
|
15492
|
+
"make",
|
|
15493
|
+
"nginx",
|
|
15494
|
+
"ini",
|
|
15456
15495
|
"orb",
|
|
15457
15496
|
"lolo"
|
|
15458
15497
|
]
|
|
@@ -17104,6 +17143,11 @@ var patterns_registry_default = {
|
|
|
17104
17143
|
"string"
|
|
17105
17144
|
]
|
|
17106
17145
|
},
|
|
17146
|
+
navigatesTo: {
|
|
17147
|
+
types: [
|
|
17148
|
+
"string"
|
|
17149
|
+
]
|
|
17150
|
+
},
|
|
17107
17151
|
icon: {
|
|
17108
17152
|
types: [
|
|
17109
17153
|
"icon",
|
|
@@ -17123,8 +17167,7 @@ var patterns_registry_default = {
|
|
|
17123
17167
|
}
|
|
17124
17168
|
},
|
|
17125
17169
|
required: [
|
|
17126
|
-
"label"
|
|
17127
|
-
"event"
|
|
17170
|
+
"label"
|
|
17128
17171
|
]
|
|
17129
17172
|
}
|
|
17130
17173
|
},
|
|
@@ -17264,7 +17307,7 @@ var patterns_registry_default = {
|
|
|
17264
17307
|
types: [
|
|
17265
17308
|
"function"
|
|
17266
17309
|
],
|
|
17267
|
-
description: "Render prop for custom per-card content. When provided, `fields`
|
|
17310
|
+
description: "Render prop for custom per-card content. When provided, `fields` are ignored; `itemActions` render as a footer beneath the custom content.",
|
|
17268
17311
|
kind: "callback",
|
|
17269
17312
|
callbackArgs: [
|
|
17270
17313
|
{
|
|
@@ -34019,22 +34062,6 @@ var patterns_registry_default = {
|
|
|
34019
34062
|
items: {
|
|
34020
34063
|
types: [
|
|
34021
34064
|
"object"
|
|
34022
|
-
],
|
|
34023
|
-
properties: {
|
|
34024
|
-
type: {
|
|
34025
|
-
types: [
|
|
34026
|
-
"unknown"
|
|
34027
|
-
]
|
|
34028
|
-
},
|
|
34029
|
-
content: {
|
|
34030
|
-
types: [
|
|
34031
|
-
"string"
|
|
34032
|
-
]
|
|
34033
|
-
}
|
|
34034
|
-
},
|
|
34035
|
-
required: [
|
|
34036
|
-
"type",
|
|
34037
|
-
"content"
|
|
34038
34065
|
]
|
|
34039
34066
|
}
|
|
34040
34067
|
},
|
|
@@ -34054,34 +34081,7 @@ var patterns_registry_default = {
|
|
|
34054
34081
|
types: [
|
|
34055
34082
|
"object"
|
|
34056
34083
|
],
|
|
34057
|
-
description: "User progress for restoring activation/reflection state"
|
|
34058
|
-
properties: {
|
|
34059
|
-
activationResponse: {
|
|
34060
|
-
types: [
|
|
34061
|
-
"string"
|
|
34062
|
-
]
|
|
34063
|
-
},
|
|
34064
|
-
reflectionNotes: {
|
|
34065
|
-
types: [
|
|
34066
|
-
"array"
|
|
34067
|
-
],
|
|
34068
|
-
items: {
|
|
34069
|
-
types: [
|
|
34070
|
-
"string"
|
|
34071
|
-
]
|
|
34072
|
-
}
|
|
34073
|
-
},
|
|
34074
|
-
bloomAnswered: {
|
|
34075
|
-
types: [
|
|
34076
|
-
"object"
|
|
34077
|
-
],
|
|
34078
|
-
mapValue: {
|
|
34079
|
-
types: [
|
|
34080
|
-
"boolean"
|
|
34081
|
-
]
|
|
34082
|
-
}
|
|
34083
|
-
}
|
|
34084
|
-
}
|
|
34084
|
+
description: "User progress for restoring activation/reflection state"
|
|
34085
34085
|
},
|
|
34086
34086
|
onRunCodeSimulation: {
|
|
34087
34087
|
types: [
|
|
@@ -34110,7 +34110,7 @@ var patterns_registry_default = {
|
|
|
34110
34110
|
callbackArgs: [
|
|
34111
34111
|
{
|
|
34112
34112
|
name: "type",
|
|
34113
|
-
type: "
|
|
34113
|
+
type: "object"
|
|
34114
34114
|
},
|
|
34115
34115
|
{
|
|
34116
34116
|
name: "description",
|
|
@@ -40892,7 +40892,7 @@ var integrators_registry_default = {
|
|
|
40892
40892
|
// src/patterns/component-mapping.json
|
|
40893
40893
|
var component_mapping_default = {
|
|
40894
40894
|
version: "1.0.0",
|
|
40895
|
-
exportedAt: "2026-07-
|
|
40895
|
+
exportedAt: "2026-07-24T05:10:33.187Z",
|
|
40896
40896
|
mappings: {
|
|
40897
40897
|
"page-header": {
|
|
40898
40898
|
component: "PageHeader",
|
|
@@ -42257,7 +42257,7 @@ var component_mapping_default = {
|
|
|
42257
42257
|
// src/patterns/event-contracts.json
|
|
42258
42258
|
var event_contracts_default = {
|
|
42259
42259
|
version: "1.0.0",
|
|
42260
|
-
exportedAt: "2026-07-
|
|
42260
|
+
exportedAt: "2026-07-24T05:10:33.187Z",
|
|
42261
42261
|
contracts: {
|
|
42262
42262
|
form: {
|
|
42263
42263
|
emits: [
|
|
@@ -43394,6 +43394,19 @@ var event_contracts_default = {
|
|
|
43394
43394
|
],
|
|
43395
43395
|
requires: [],
|
|
43396
43396
|
entityAware: false
|
|
43397
|
+
},
|
|
43398
|
+
"data-grid": {
|
|
43399
|
+
emits: [
|
|
43400
|
+
{
|
|
43401
|
+
event: "NAVIGATE",
|
|
43402
|
+
trigger: "action",
|
|
43403
|
+
payload: {
|
|
43404
|
+
type: "object"
|
|
43405
|
+
}
|
|
43406
|
+
}
|
|
43407
|
+
],
|
|
43408
|
+
requires: [],
|
|
43409
|
+
entityAware: true
|
|
43397
43410
|
}
|
|
43398
43411
|
}
|
|
43399
43412
|
};
|
|
@@ -43668,6 +43681,22 @@ function isValidPatternType(type) {
|
|
|
43668
43681
|
return PATTERN_TYPES.includes(type);
|
|
43669
43682
|
}
|
|
43670
43683
|
|
|
43684
|
+
// src/patterns/content-grade.ts
|
|
43685
|
+
function isContentBodyPatternType(patternType) {
|
|
43686
|
+
const entry = patterns_registry_default.patterns?.[patternType];
|
|
43687
|
+
if (!entry?.propsSchema) return false;
|
|
43688
|
+
return Object.values(entry.propsSchema).some((def) => def.kind === "entity");
|
|
43689
|
+
}
|
|
43690
|
+
function isContentBodyPattern(pattern) {
|
|
43691
|
+
if (pattern === null) return false;
|
|
43692
|
+
if (typeof pattern === "string") return true;
|
|
43693
|
+
if ("children" in pattern && Array.isArray(pattern.children) && pattern.children.length > 0) return true;
|
|
43694
|
+
return isContentBodyPatternType(pattern.type);
|
|
43695
|
+
}
|
|
43696
|
+
function isMainSlotRenderUi(effect) {
|
|
43697
|
+
return Array.isArray(effect) && effect[0] === "render-ui" && effect[1] === "main";
|
|
43698
|
+
}
|
|
43699
|
+
|
|
43671
43700
|
// src/patterns/helpers/prompt-helpers.ts
|
|
43672
43701
|
function getPatternsGroupedByCategory() {
|
|
43673
43702
|
const patterns = patterns_registry_default.patterns || {};
|
|
@@ -44128,6 +44157,6 @@ function propHostsDrawables(schema) {
|
|
|
44128
44157
|
return false;
|
|
44129
44158
|
}
|
|
44130
44159
|
|
|
44131
|
-
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, isDrawHostPattern, isDrawablePattern, isEntityAwarePattern, isValidPatternType, patterns_registry_default as patternsRegistry, recommendPatterns, registry, renderUiPatternTypesOf };
|
|
44160
|
+
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 };
|
|
44132
44161
|
//# sourceMappingURL=index.js.map
|
|
44133
44162
|
//# sourceMappingURL=index.js.map
|