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