@almadar/patterns 2.10.1 → 2.12.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-03-31T07:12:35.907Z",
3
+ "exportedAt": "2026-04-03T05:25:58.152Z",
4
4
  "mappings": {
5
5
  "page-header": {
6
6
  "component": "PageHeader",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-03-31T07:12:35.907Z",
3
+ "exportedAt": "2026-04-03T05:25:58.152Z",
4
4
  "contracts": {
5
5
  "form": {
6
6
  "emits": [
@@ -7,13 +7,11 @@
7
7
  * @packageDocumentation
8
8
  */
9
9
  import type { PatternType } from '../pattern-types.js';
10
+ import type { PatternPropDef } from '../types.js';
10
11
  type PatternEntry = {
11
12
  category?: string;
12
13
  description?: string;
13
- propsSchema?: Record<string, {
14
- types?: string[];
15
- required?: boolean;
16
- }>;
14
+ propsSchema?: Record<string, PatternPropDef>;
17
15
  entityAware?: boolean;
18
16
  };
19
17
  /**
package/dist/index.d.ts CHANGED
@@ -8910,6 +8910,10 @@ export declare const registry: {
8910
8910
  types: string[];
8911
8911
  description: string;
8912
8912
  };
8913
+ renderItem: {
8914
+ types: string[];
8915
+ description: string;
8916
+ };
8913
8917
  pageSize: {
8914
8918
  types: string[];
8915
8919
  description: string;
@@ -9017,6 +9021,10 @@ export declare const registry: {
9017
9021
  types: string[];
9018
9022
  description: string;
9019
9023
  };
9024
+ renderItem: {
9025
+ types: string[];
9026
+ description: string;
9027
+ };
9020
9028
  pageSize: {
9021
9029
  types: string[];
9022
9030
  description: string;
@@ -24407,6 +24415,10 @@ export declare const PATTERN_REGISTRY: {
24407
24415
  types: string[];
24408
24416
  description: string;
24409
24417
  };
24418
+ renderItem: {
24419
+ types: string[];
24420
+ description: string;
24421
+ };
24410
24422
  pageSize: {
24411
24423
  types: string[];
24412
24424
  description: string;
@@ -24514,6 +24526,10 @@ export declare const PATTERN_REGISTRY: {
24514
24526
  types: string[];
24515
24527
  description: string;
24516
24528
  };
24529
+ renderItem: {
24530
+ types: string[];
24531
+ description: string;
24532
+ };
24517
24533
  pageSize: {
24518
24534
  types: string[];
24519
24535
  description: string;
@@ -34092,16 +34108,15 @@ export declare const EVENT_CONTRACTS: {
34092
34108
  };
34093
34109
  };
34094
34110
  };
34111
+ import type { PatternPropDef } from './types.js';
34112
+ export type { PatternPropDef } from './types.js';
34095
34113
  type PatternEntry = {
34096
34114
  type: string;
34097
34115
  category: string;
34098
34116
  description?: string;
34099
34117
  suggestedFor?: string[];
34100
34118
  typicalSize?: string;
34101
- propsSchema?: Record<string, {
34102
- types?: string[];
34103
- required?: boolean;
34104
- }>;
34119
+ propsSchema?: Record<string, PatternPropDef>;
34105
34120
  entityAware?: boolean;
34106
34121
  };
34107
34122
  export declare function getPatternDefinition(patternType: string): PatternEntry | null;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/patterns-registry.json
2
2
  var patterns_registry_default = {
3
3
  version: "1.0.0",
4
- exportedAt: "2026-03-31T07:12:35.907Z",
4
+ exportedAt: "2026-04-03T05:25:58.152Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -13223,6 +13223,12 @@ var patterns_registry_default = {
13223
13223
  ],
13224
13224
  description: "Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored."
13225
13225
  },
13226
+ renderItem: {
13227
+ types: [
13228
+ "function"
13229
+ ],
13230
+ description: 'Per-item render function (schema-level alias for children render prop). In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }] The compiler converts this to the children render prop. @deprecated Use children render prop in React code. This prop exists for pattern registry sync.'
13231
+ },
13226
13232
  pageSize: {
13227
13233
  types: [
13228
13234
  "number"
@@ -13383,6 +13389,12 @@ var patterns_registry_default = {
13383
13389
  ],
13384
13390
  description: "Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored."
13385
13391
  },
13392
+ renderItem: {
13393
+ types: [
13394
+ "function"
13395
+ ],
13396
+ description: 'Per-item render function (schema-level alias for children render prop). In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }] The compiler converts this to the children render prop. @deprecated Use children render prop in React code. This prop exists for pattern registry sync.'
13397
+ },
13386
13398
  pageSize: {
13387
13399
  types: [
13388
13400
  "number"
@@ -23594,7 +23606,7 @@ var integrators_registry_default = {
23594
23606
  // src/component-mapping.json
23595
23607
  var component_mapping_default = {
23596
23608
  version: "1.0.0",
23597
- exportedAt: "2026-03-31T07:12:35.907Z",
23609
+ exportedAt: "2026-04-03T05:25:58.152Z",
23598
23610
  mappings: {
23599
23611
  "page-header": {
23600
23612
  component: "PageHeader",
@@ -25390,7 +25402,7 @@ var component_mapping_default = {
25390
25402
  // src/event-contracts.json
25391
25403
  var event_contracts_default = {
25392
25404
  version: "1.0.0",
25393
- exportedAt: "2026-03-31T07:12:35.907Z",
25405
+ exportedAt: "2026-04-03T05:25:58.152Z",
25394
25406
  contracts: {
25395
25407
  form: {
25396
25408
  emits: [
@@ -27157,7 +27169,8 @@ function getPatternDefinition(patternType) {
27157
27169
  return patterns_registry_default.patterns?.[patternType] ?? null;
27158
27170
  }
27159
27171
  function getComponentForPattern(patternType) {
27160
- return component_mapping_default.mappings?.[patternType] ?? null;
27172
+ const mapping = component_mapping_default;
27173
+ return mapping.mappings?.[patternType]?.component ?? null;
27161
27174
  }
27162
27175
  function isEntityAwarePattern(patternType) {
27163
27176
  const definition = getPatternDefinition(patternType);