@almadar/core 10.37.0 → 10.38.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-CBdyt_gd.d.ts → builders-BoyWDFfH.d.ts} +89 -88
- package/dist/builders.d.ts +4 -3
- package/dist/builders.js +20 -16
- package/dist/builders.js.map +1 -1
- package/dist/{effect-Cd6ibbZc.d.ts → effect-5kg4MCeB.d.ts} +33 -1561
- package/dist/entity-CVylqnAf.d.ts +1559 -0
- package/dist/factory/index.d.ts +6 -5
- package/dist/factory/index.js +7 -0
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +4 -3
- package/dist/factory-runtime/index.js +20 -16
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.js +461 -21
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +119 -0
- package/dist/mock/index.js +695 -0
- package/dist/mock/index.js.map +1 -0
- package/dist/patterns/component-mapping.json +16 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +897 -6
- package/dist/patterns/index.js +396 -4
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +21 -1
- package/dist/patterns/patterns-registry.json +355 -1
- package/dist/patterns/registry.json +355 -1
- package/dist/patterns/services-registry.json +104 -0
- package/dist/{trait-CEO7o8Ne.d.ts → trait-Bnd3i_2G.d.ts} +38 -22
- package/dist/types/index.d.ts +11 -9
- package/dist/types/index.js +61 -17
- package/dist/types/index.js.map +1 -1
- package/dist/{types-1YGQKdbm.d.ts → types-BE598tvP.d.ts} +3 -3
- package/package.json +6 -1
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-26T06:18:13.545Z",
|
|
7
7
|
patterns: {
|
|
8
8
|
"entity-table": {
|
|
9
9
|
type: "entity-table",
|
|
@@ -40322,6 +40322,360 @@ var patterns_registry_default = {
|
|
|
40322
40322
|
description: "className prop"
|
|
40323
40323
|
}
|
|
40324
40324
|
}
|
|
40325
|
+
},
|
|
40326
|
+
"import-preview-tree": {
|
|
40327
|
+
type: "import-preview-tree",
|
|
40328
|
+
category: "component",
|
|
40329
|
+
tier: "molecules",
|
|
40330
|
+
family: "core",
|
|
40331
|
+
description: "ImportPreviewTree component",
|
|
40332
|
+
suggestedFor: [
|
|
40333
|
+
"import",
|
|
40334
|
+
"preview",
|
|
40335
|
+
"tree",
|
|
40336
|
+
"import preview tree"
|
|
40337
|
+
],
|
|
40338
|
+
typicalSize: "medium",
|
|
40339
|
+
propsSchema: {
|
|
40340
|
+
units: {
|
|
40341
|
+
types: [
|
|
40342
|
+
"array"
|
|
40343
|
+
],
|
|
40344
|
+
description: "Staged units to preview",
|
|
40345
|
+
required: true,
|
|
40346
|
+
items: {
|
|
40347
|
+
types: [
|
|
40348
|
+
"object"
|
|
40349
|
+
],
|
|
40350
|
+
properties: {
|
|
40351
|
+
ref: {
|
|
40352
|
+
types: [
|
|
40353
|
+
"string"
|
|
40354
|
+
]
|
|
40355
|
+
},
|
|
40356
|
+
targetEntity: {
|
|
40357
|
+
types: [
|
|
40358
|
+
"string"
|
|
40359
|
+
]
|
|
40360
|
+
},
|
|
40361
|
+
fields: {
|
|
40362
|
+
types: [
|
|
40363
|
+
"object"
|
|
40364
|
+
],
|
|
40365
|
+
mapValue: {
|
|
40366
|
+
types: [
|
|
40367
|
+
"object"
|
|
40368
|
+
],
|
|
40369
|
+
freeform: true
|
|
40370
|
+
}
|
|
40371
|
+
},
|
|
40372
|
+
parentRef: {
|
|
40373
|
+
types: [
|
|
40374
|
+
"string"
|
|
40375
|
+
]
|
|
40376
|
+
}
|
|
40377
|
+
},
|
|
40378
|
+
required: [
|
|
40379
|
+
"ref",
|
|
40380
|
+
"targetEntity",
|
|
40381
|
+
"fields"
|
|
40382
|
+
]
|
|
40383
|
+
}
|
|
40384
|
+
},
|
|
40385
|
+
skipped: {
|
|
40386
|
+
types: [
|
|
40387
|
+
"array"
|
|
40388
|
+
],
|
|
40389
|
+
description: "Elements skipped during extraction, with reasons",
|
|
40390
|
+
items: {
|
|
40391
|
+
types: [
|
|
40392
|
+
"object"
|
|
40393
|
+
],
|
|
40394
|
+
properties: {
|
|
40395
|
+
ref: {
|
|
40396
|
+
types: [
|
|
40397
|
+
"string"
|
|
40398
|
+
]
|
|
40399
|
+
},
|
|
40400
|
+
reason: {
|
|
40401
|
+
types: [
|
|
40402
|
+
"string"
|
|
40403
|
+
]
|
|
40404
|
+
}
|
|
40405
|
+
},
|
|
40406
|
+
required: [
|
|
40407
|
+
"ref",
|
|
40408
|
+
"reason"
|
|
40409
|
+
]
|
|
40410
|
+
},
|
|
40411
|
+
default: []
|
|
40412
|
+
},
|
|
40413
|
+
entityDisplay: {
|
|
40414
|
+
types: [
|
|
40415
|
+
"object"
|
|
40416
|
+
],
|
|
40417
|
+
description: "Entity name \u2192 display labels; falls back to the entity name",
|
|
40418
|
+
required: true,
|
|
40419
|
+
mapValue: {
|
|
40420
|
+
types: [
|
|
40421
|
+
"object"
|
|
40422
|
+
],
|
|
40423
|
+
properties: {
|
|
40424
|
+
singular: {
|
|
40425
|
+
types: [
|
|
40426
|
+
"string"
|
|
40427
|
+
]
|
|
40428
|
+
},
|
|
40429
|
+
plural: {
|
|
40430
|
+
types: [
|
|
40431
|
+
"string"
|
|
40432
|
+
]
|
|
40433
|
+
}
|
|
40434
|
+
},
|
|
40435
|
+
required: [
|
|
40436
|
+
"singular",
|
|
40437
|
+
"plural"
|
|
40438
|
+
]
|
|
40439
|
+
}
|
|
40440
|
+
},
|
|
40441
|
+
onConfirm: {
|
|
40442
|
+
types: [
|
|
40443
|
+
"function"
|
|
40444
|
+
],
|
|
40445
|
+
description: "Called when the user confirms the staged import",
|
|
40446
|
+
kind: "callback",
|
|
40447
|
+
callbackArgs: []
|
|
40448
|
+
},
|
|
40449
|
+
onCancel: {
|
|
40450
|
+
types: [
|
|
40451
|
+
"function"
|
|
40452
|
+
],
|
|
40453
|
+
description: "Called when the user cancels the staged import",
|
|
40454
|
+
kind: "callback",
|
|
40455
|
+
callbackArgs: []
|
|
40456
|
+
},
|
|
40457
|
+
confirmLabel: {
|
|
40458
|
+
types: [
|
|
40459
|
+
"string"
|
|
40460
|
+
],
|
|
40461
|
+
description: "Confirm button label",
|
|
40462
|
+
default: "Confirm import"
|
|
40463
|
+
},
|
|
40464
|
+
cancelLabel: {
|
|
40465
|
+
types: [
|
|
40466
|
+
"string"
|
|
40467
|
+
],
|
|
40468
|
+
description: "Cancel button label",
|
|
40469
|
+
default: "Cancel"
|
|
40470
|
+
},
|
|
40471
|
+
indent: {
|
|
40472
|
+
types: [
|
|
40473
|
+
"number"
|
|
40474
|
+
],
|
|
40475
|
+
description: "Indent per tree depth in px (default: 16)",
|
|
40476
|
+
default: 16
|
|
40477
|
+
},
|
|
40478
|
+
className: {
|
|
40479
|
+
types: [
|
|
40480
|
+
"string"
|
|
40481
|
+
],
|
|
40482
|
+
description: "Additional CSS classes"
|
|
40483
|
+
}
|
|
40484
|
+
}
|
|
40485
|
+
},
|
|
40486
|
+
"import-progress": {
|
|
40487
|
+
type: "import-progress",
|
|
40488
|
+
category: "component",
|
|
40489
|
+
tier: "molecules",
|
|
40490
|
+
family: "core",
|
|
40491
|
+
description: "ImportProgress component",
|
|
40492
|
+
suggestedFor: [
|
|
40493
|
+
"import",
|
|
40494
|
+
"progress",
|
|
40495
|
+
"import progress"
|
|
40496
|
+
],
|
|
40497
|
+
typicalSize: "medium",
|
|
40498
|
+
propsSchema: {
|
|
40499
|
+
step: {
|
|
40500
|
+
types: [
|
|
40501
|
+
"string"
|
|
40502
|
+
],
|
|
40503
|
+
description: "Current lifecycle step",
|
|
40504
|
+
required: true,
|
|
40505
|
+
enumValues: [
|
|
40506
|
+
"fetching",
|
|
40507
|
+
"mapping",
|
|
40508
|
+
"reviewing",
|
|
40509
|
+
"committing",
|
|
40510
|
+
"done",
|
|
40511
|
+
"failed"
|
|
40512
|
+
]
|
|
40513
|
+
},
|
|
40514
|
+
counts: {
|
|
40515
|
+
types: [
|
|
40516
|
+
"object"
|
|
40517
|
+
],
|
|
40518
|
+
description: "Unit counts",
|
|
40519
|
+
properties: {
|
|
40520
|
+
staged: {
|
|
40521
|
+
types: [
|
|
40522
|
+
"number"
|
|
40523
|
+
]
|
|
40524
|
+
},
|
|
40525
|
+
committed: {
|
|
40526
|
+
types: [
|
|
40527
|
+
"number"
|
|
40528
|
+
]
|
|
40529
|
+
},
|
|
40530
|
+
failed: {
|
|
40531
|
+
types: [
|
|
40532
|
+
"number"
|
|
40533
|
+
]
|
|
40534
|
+
}
|
|
40535
|
+
}
|
|
40536
|
+
},
|
|
40537
|
+
labels: {
|
|
40538
|
+
types: [
|
|
40539
|
+
"object"
|
|
40540
|
+
],
|
|
40541
|
+
description: "Step label overrides",
|
|
40542
|
+
mapValue: {
|
|
40543
|
+
types: [
|
|
40544
|
+
"string"
|
|
40545
|
+
]
|
|
40546
|
+
}
|
|
40547
|
+
},
|
|
40548
|
+
className: {
|
|
40549
|
+
types: [
|
|
40550
|
+
"string"
|
|
40551
|
+
],
|
|
40552
|
+
description: "Additional CSS classes"
|
|
40553
|
+
}
|
|
40554
|
+
}
|
|
40555
|
+
},
|
|
40556
|
+
"import-source-picker": {
|
|
40557
|
+
type: "import-source-picker",
|
|
40558
|
+
category: "component",
|
|
40559
|
+
tier: "molecules",
|
|
40560
|
+
family: "core",
|
|
40561
|
+
description: "ImportSourcePicker component",
|
|
40562
|
+
suggestedFor: [
|
|
40563
|
+
"import",
|
|
40564
|
+
"source",
|
|
40565
|
+
"picker",
|
|
40566
|
+
"import source picker"
|
|
40567
|
+
],
|
|
40568
|
+
typicalSize: "medium",
|
|
40569
|
+
propsSchema: {
|
|
40570
|
+
sources: {
|
|
40571
|
+
types: [
|
|
40572
|
+
"array"
|
|
40573
|
+
],
|
|
40574
|
+
description: "Source options to render",
|
|
40575
|
+
required: true,
|
|
40576
|
+
items: {
|
|
40577
|
+
types: [
|
|
40578
|
+
"object"
|
|
40579
|
+
],
|
|
40580
|
+
properties: {
|
|
40581
|
+
id: {
|
|
40582
|
+
types: [
|
|
40583
|
+
"string"
|
|
40584
|
+
]
|
|
40585
|
+
},
|
|
40586
|
+
label: {
|
|
40587
|
+
types: [
|
|
40588
|
+
"string"
|
|
40589
|
+
]
|
|
40590
|
+
},
|
|
40591
|
+
description: {
|
|
40592
|
+
types: [
|
|
40593
|
+
"string"
|
|
40594
|
+
]
|
|
40595
|
+
},
|
|
40596
|
+
icon: {
|
|
40597
|
+
types: [
|
|
40598
|
+
"icon",
|
|
40599
|
+
"string"
|
|
40600
|
+
]
|
|
40601
|
+
},
|
|
40602
|
+
kind: {
|
|
40603
|
+
types: [
|
|
40604
|
+
"string"
|
|
40605
|
+
],
|
|
40606
|
+
enumValues: [
|
|
40607
|
+
"action",
|
|
40608
|
+
"file"
|
|
40609
|
+
]
|
|
40610
|
+
},
|
|
40611
|
+
accept: {
|
|
40612
|
+
types: [
|
|
40613
|
+
"string"
|
|
40614
|
+
]
|
|
40615
|
+
},
|
|
40616
|
+
multiple: {
|
|
40617
|
+
types: [
|
|
40618
|
+
"boolean"
|
|
40619
|
+
]
|
|
40620
|
+
},
|
|
40621
|
+
disabled: {
|
|
40622
|
+
types: [
|
|
40623
|
+
"boolean"
|
|
40624
|
+
]
|
|
40625
|
+
}
|
|
40626
|
+
},
|
|
40627
|
+
required: [
|
|
40628
|
+
"id",
|
|
40629
|
+
"label"
|
|
40630
|
+
]
|
|
40631
|
+
}
|
|
40632
|
+
},
|
|
40633
|
+
onSelect: {
|
|
40634
|
+
types: [
|
|
40635
|
+
"function"
|
|
40636
|
+
],
|
|
40637
|
+
description: "Called with the source id when an 'action' option is picked",
|
|
40638
|
+
kind: "callback",
|
|
40639
|
+
callbackArgs: [
|
|
40640
|
+
{
|
|
40641
|
+
name: "sourceId",
|
|
40642
|
+
type: "string"
|
|
40643
|
+
}
|
|
40644
|
+
]
|
|
40645
|
+
},
|
|
40646
|
+
onFilesSelected: {
|
|
40647
|
+
types: [
|
|
40648
|
+
"function"
|
|
40649
|
+
],
|
|
40650
|
+
description: "Called with the chosen files when a 'file' option resolves",
|
|
40651
|
+
kind: "callback",
|
|
40652
|
+
callbackArgs: [
|
|
40653
|
+
{
|
|
40654
|
+
name: "files",
|
|
40655
|
+
type: "array"
|
|
40656
|
+
}
|
|
40657
|
+
],
|
|
40658
|
+
nonEmittable: true
|
|
40659
|
+
},
|
|
40660
|
+
title: {
|
|
40661
|
+
types: [
|
|
40662
|
+
"string"
|
|
40663
|
+
],
|
|
40664
|
+
description: "Optional heading above the options"
|
|
40665
|
+
},
|
|
40666
|
+
moreSources: {
|
|
40667
|
+
types: [
|
|
40668
|
+
"node"
|
|
40669
|
+
],
|
|
40670
|
+
description: "Generic slot for additional sources rendered below the options"
|
|
40671
|
+
},
|
|
40672
|
+
className: {
|
|
40673
|
+
types: [
|
|
40674
|
+
"string"
|
|
40675
|
+
],
|
|
40676
|
+
description: "Additional CSS classes"
|
|
40677
|
+
}
|
|
40678
|
+
}
|
|
40325
40679
|
}
|
|
40326
40680
|
},
|
|
40327
40681
|
categories: [
|
|
@@ -40971,15 +41325,35 @@ var integrators_registry_default = {
|
|
|
40971
41325
|
}
|
|
40972
41326
|
}
|
|
40973
41327
|
]
|
|
41328
|
+
},
|
|
41329
|
+
database: {
|
|
41330
|
+
name: "database",
|
|
41331
|
+
description: "Generic SQL database integration - read-only queries over external connections",
|
|
41332
|
+
category: "infrastructure",
|
|
41333
|
+
actions: [
|
|
41334
|
+
{
|
|
41335
|
+
name: "query",
|
|
41336
|
+
description: "Run a single read-only SELECT against a connection referenced by env var name",
|
|
41337
|
+
params: [
|
|
41338
|
+
{ name: "connectionRef", type: "string", required: true, description: "Name of the environment variable holding the connection string (never the secret itself)" },
|
|
41339
|
+
{ name: "sql", type: "string", required: true, description: "Single SELECT statement (read-only enforced)" },
|
|
41340
|
+
{ name: "params", type: "array", required: false, description: "Bind parameters for the query" }
|
|
41341
|
+
],
|
|
41342
|
+
responseShape: {
|
|
41343
|
+
rows: "array",
|
|
41344
|
+
rowCount: "number"
|
|
41345
|
+
}
|
|
41346
|
+
}
|
|
41347
|
+
]
|
|
40974
41348
|
}
|
|
40975
41349
|
},
|
|
40976
|
-
categories: ["media", "payment", "messaging", "ai", "devtools"]
|
|
41350
|
+
categories: ["media", "payment", "messaging", "ai", "devtools", "infrastructure"]
|
|
40977
41351
|
};
|
|
40978
41352
|
|
|
40979
41353
|
// src/patterns/component-mapping.json
|
|
40980
41354
|
var component_mapping_default = {
|
|
40981
41355
|
version: "1.0.0",
|
|
40982
|
-
exportedAt: "2026-07-
|
|
41356
|
+
exportedAt: "2026-07-26T06:18:13.545Z",
|
|
40983
41357
|
mappings: {
|
|
40984
41358
|
"page-header": {
|
|
40985
41359
|
component: "PageHeader",
|
|
@@ -42337,6 +42711,21 @@ var component_mapping_default = {
|
|
|
42337
42711
|
component: "PageTransition",
|
|
42338
42712
|
importPath: "@/components/core/molecules/PageTransition",
|
|
42339
42713
|
category: "component"
|
|
42714
|
+
},
|
|
42715
|
+
"import-preview-tree": {
|
|
42716
|
+
component: "ImportPreviewTree",
|
|
42717
|
+
importPath: "@/components/core/molecules/ImportPreviewTree",
|
|
42718
|
+
category: "component"
|
|
42719
|
+
},
|
|
42720
|
+
"import-progress": {
|
|
42721
|
+
component: "ImportProgress",
|
|
42722
|
+
importPath: "@/components/core/molecules/ImportProgress",
|
|
42723
|
+
category: "component"
|
|
42724
|
+
},
|
|
42725
|
+
"import-source-picker": {
|
|
42726
|
+
component: "ImportSourcePicker",
|
|
42727
|
+
importPath: "@/components/core/molecules/ImportSourcePicker",
|
|
42728
|
+
category: "component"
|
|
42340
42729
|
}
|
|
42341
42730
|
}
|
|
42342
42731
|
};
|
|
@@ -42344,7 +42733,7 @@ var component_mapping_default = {
|
|
|
42344
42733
|
// src/patterns/event-contracts.json
|
|
42345
42734
|
var event_contracts_default = {
|
|
42346
42735
|
version: "1.0.0",
|
|
42347
|
-
exportedAt: "2026-07-
|
|
42736
|
+
exportedAt: "2026-07-26T06:18:13.545Z",
|
|
42348
42737
|
contracts: {
|
|
42349
42738
|
form: {
|
|
42350
42739
|
emits: [
|
|
@@ -43623,6 +44012,9 @@ var PATTERN_TYPES = [
|
|
|
43623
44012
|
"hero-section",
|
|
43624
44013
|
"hstack",
|
|
43625
44014
|
"icon",
|
|
44015
|
+
"import-preview-tree",
|
|
44016
|
+
"import-progress",
|
|
44017
|
+
"import-source-picker",
|
|
43626
44018
|
"infinite-scroll-sentinel",
|
|
43627
44019
|
"input",
|
|
43628
44020
|
"input-group",
|