@almadar/core 10.31.0 → 10.32.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.
@@ -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-21T09:54:57.379Z",
6
+ exportedAt: "2026-07-23T14:32:35.644Z",
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: "Event name to dispatch on search (schema metadata, wired by trait) This is metadata used by the trait generator, not by the component."
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
- "string"
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",
@@ -17264,7 +17308,7 @@ var patterns_registry_default = {
17264
17308
  types: [
17265
17309
  "function"
17266
17310
  ],
17267
- description: "Render prop for custom per-card content. When provided, `fields` and `itemActions` are ignored.",
17311
+ description: "Render prop for custom per-card content. When provided, `fields` are ignored; `itemActions` render as a footer beneath the custom content.",
17268
17312
  kind: "callback",
17269
17313
  callbackArgs: [
17270
17314
  {
@@ -34019,22 +34063,6 @@ var patterns_registry_default = {
34019
34063
  items: {
34020
34064
  types: [
34021
34065
  "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
34066
  ]
34039
34067
  }
34040
34068
  },
@@ -34054,34 +34082,7 @@ var patterns_registry_default = {
34054
34082
  types: [
34055
34083
  "object"
34056
34084
  ],
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
- }
34085
+ description: "User progress for restoring activation/reflection state"
34085
34086
  },
34086
34087
  onRunCodeSimulation: {
34087
34088
  types: [
@@ -34110,7 +34111,7 @@ var patterns_registry_default = {
34110
34111
  callbackArgs: [
34111
34112
  {
34112
34113
  name: "type",
34113
- type: "string"
34114
+ type: "object"
34114
34115
  },
34115
34116
  {
34116
34117
  name: "description",
@@ -40892,7 +40893,7 @@ var integrators_registry_default = {
40892
40893
  // src/patterns/component-mapping.json
40893
40894
  var component_mapping_default = {
40894
40895
  version: "1.0.0",
40895
- exportedAt: "2026-07-21T09:54:57.379Z",
40896
+ exportedAt: "2026-07-23T14:32:35.644Z",
40896
40897
  mappings: {
40897
40898
  "page-header": {
40898
40899
  component: "PageHeader",
@@ -42257,7 +42258,7 @@ var component_mapping_default = {
42257
42258
  // src/patterns/event-contracts.json
42258
42259
  var event_contracts_default = {
42259
42260
  version: "1.0.0",
42260
- exportedAt: "2026-07-21T09:54:57.379Z",
42261
+ exportedAt: "2026-07-23T14:32:35.644Z",
42261
42262
  contracts: {
42262
42263
  form: {
42263
42264
  emits: [
@@ -43394,6 +43395,19 @@ var event_contracts_default = {
43394
43395
  ],
43395
43396
  requires: [],
43396
43397
  entityAware: false
43398
+ },
43399
+ "data-grid": {
43400
+ emits: [
43401
+ {
43402
+ event: "NAVIGATE",
43403
+ trigger: "action",
43404
+ payload: {
43405
+ type: "object"
43406
+ }
43407
+ }
43408
+ ],
43409
+ requires: [],
43410
+ entityAware: true
43397
43411
  }
43398
43412
  }
43399
43413
  };
@@ -43668,6 +43682,22 @@ function isValidPatternType(type) {
43668
43682
  return PATTERN_TYPES.includes(type);
43669
43683
  }
43670
43684
 
43685
+ // src/patterns/content-grade.ts
43686
+ function isContentBodyPatternType(patternType) {
43687
+ const entry = patterns_registry_default.patterns?.[patternType];
43688
+ if (!entry?.propsSchema) return false;
43689
+ return Object.values(entry.propsSchema).some((def) => def.kind === "entity");
43690
+ }
43691
+ function isContentBodyPattern(pattern) {
43692
+ if (pattern === null) return false;
43693
+ if (typeof pattern === "string") return true;
43694
+ if ("children" in pattern && Array.isArray(pattern.children) && pattern.children.length > 0) return true;
43695
+ return isContentBodyPatternType(pattern.type);
43696
+ }
43697
+ function isMainSlotRenderUi(effect) {
43698
+ return Array.isArray(effect) && effect[0] === "render-ui" && effect[1] === "main";
43699
+ }
43700
+
43671
43701
  // src/patterns/helpers/prompt-helpers.ts
43672
43702
  function getPatternsGroupedByCategory() {
43673
43703
  const patterns = patterns_registry_default.patterns || {};
@@ -44128,6 +44158,6 @@ function propHostsDrawables(schema) {
44128
44158
  return false;
44129
44159
  }
44130
44160
 
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 };
44161
+ 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
44162
  //# sourceMappingURL=index.js.map
44133
44163
  //# sourceMappingURL=index.js.map