@almadar/core 10.70.0 → 10.72.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-08-25T01:35:07.912Z",
6
+ exportedAt: "2026-08-28T23:51:47.246Z",
7
7
  patterns: {
8
8
  "entity-table": {
9
9
  type: "entity-table",
@@ -26402,91 +26402,6 @@ var patterns_registry_default = {
26402
26402
  }
26403
26403
  }
26404
26404
  },
26405
- "rich-block-editor": {
26406
- type: "rich-block-editor",
26407
- category: "display",
26408
- tier: "molecules",
26409
- family: "core",
26410
- description: "RichBlockEditor component",
26411
- suggestedFor: [
26412
- "rich",
26413
- "block",
26414
- "editor",
26415
- "rich block editor"
26416
- ],
26417
- typicalSize: "large",
26418
- propsSchema: {
26419
- initialBlocks: {
26420
- types: [
26421
- "object",
26422
- "array"
26423
- ],
26424
- description: "Initial block payload \u2014 the rows that orb-bound traits emit. Items missing id/type are normalized into paragraph blocks at mount.",
26425
- kind: "entity",
26426
- cardinality: "collection"
26427
- },
26428
- onChange: {
26429
- types: [
26430
- "function"
26431
- ],
26432
- description: "onChange prop",
26433
- kind: "callback",
26434
- callbackArgs: [
26435
- {
26436
- name: "blocks",
26437
- type: "array"
26438
- }
26439
- ]
26440
- },
26441
- changeEvent: {
26442
- types: [
26443
- "string"
26444
- ],
26445
- description: "changeEvent prop",
26446
- kind: "event-ref",
26447
- emitPayloadSchema: [
26448
- {
26449
- name: "blocks",
26450
- type: "array",
26451
- required: true
26452
- }
26453
- ]
26454
- },
26455
- readOnly: {
26456
- types: [
26457
- "boolean"
26458
- ],
26459
- description: "readOnly prop",
26460
- default: false
26461
- },
26462
- placeholder: {
26463
- types: [
26464
- "string"
26465
- ],
26466
- description: "placeholder prop"
26467
- },
26468
- enableBlocks: {
26469
- types: [
26470
- "boolean"
26471
- ],
26472
- description: "Opt-in to the Notion-style block authoring chrome (insert toolbar, per-row +/menu gutter, turn-into menu). Off by default: the editor renders as a plain rich text surface that edits block content inline without any add-block affordances.",
26473
- default: true
26474
- },
26475
- showToolbar: {
26476
- types: [
26477
- "boolean"
26478
- ],
26479
- description: "showToolbar prop",
26480
- default: true
26481
- },
26482
- className: {
26483
- types: [
26484
- "string"
26485
- ],
26486
- description: "className prop"
26487
- }
26488
- }
26489
- },
26490
26405
  "version-diff": {
26491
26406
  type: "version-diff",
26492
26407
  category: "display",
@@ -47752,6 +47667,397 @@ var patterns_registry_default = {
47752
47667
  },
47753
47668
  drawable: true,
47754
47669
  drawHost: true
47670
+ },
47671
+ "rich-text-editor": {
47672
+ type: "rich-text-editor",
47673
+ category: "component",
47674
+ tier: "molecules",
47675
+ family: "core",
47676
+ description: "RichTextEditor component",
47677
+ suggestedFor: [
47678
+ "rich",
47679
+ "text",
47680
+ "editor",
47681
+ "rich text editor"
47682
+ ],
47683
+ typicalSize: "medium",
47684
+ propsSchema: {
47685
+ value: {
47686
+ types: [
47687
+ "string"
47688
+ ],
47689
+ description: "The rich text content as HTML. Sanitized before rendering and on every change."
47690
+ },
47691
+ onChange: {
47692
+ types: [
47693
+ "function"
47694
+ ],
47695
+ description: "onChange prop",
47696
+ kind: "callback",
47697
+ callbackArgs: [
47698
+ {
47699
+ name: "value",
47700
+ type: "string"
47701
+ }
47702
+ ]
47703
+ },
47704
+ changeEvent: {
47705
+ types: [
47706
+ "string"
47707
+ ],
47708
+ description: "changeEvent prop",
47709
+ kind: "event-ref",
47710
+ emitPayloadSchema: [
47711
+ {
47712
+ name: "value",
47713
+ type: "string",
47714
+ required: true
47715
+ }
47716
+ ]
47717
+ },
47718
+ readOnly: {
47719
+ types: [
47720
+ "boolean"
47721
+ ],
47722
+ description: "readOnly prop",
47723
+ default: false
47724
+ },
47725
+ placeholder: {
47726
+ types: [
47727
+ "string"
47728
+ ],
47729
+ description: "placeholder prop"
47730
+ },
47731
+ showToolbar: {
47732
+ types: [
47733
+ "boolean"
47734
+ ],
47735
+ description: "showToolbar prop",
47736
+ default: true
47737
+ },
47738
+ className: {
47739
+ types: [
47740
+ "string"
47741
+ ],
47742
+ description: "className prop"
47743
+ }
47744
+ }
47745
+ },
47746
+ "document-panel": {
47747
+ type: "document-panel",
47748
+ category: "component",
47749
+ tier: "molecules",
47750
+ family: "core",
47751
+ description: "DocumentPanel \u2014 a record rendered as one continuous document: editable title over the rich-text body, editing controls tucked into the header corner.",
47752
+ capabilities: "document page, note editor, wiki page, article editor, writing surface, rich text document, content editing canvas",
47753
+ suggestedFor: [
47754
+ "document",
47755
+ "panel",
47756
+ "document panel"
47757
+ ],
47758
+ typicalSize: "medium",
47759
+ propsSchema: {
47760
+ id: {
47761
+ types: [
47762
+ "string"
47763
+ ],
47764
+ description: "The record's id \u2014 carried on every commit and action event."
47765
+ },
47766
+ title: {
47767
+ types: [
47768
+ "string"
47769
+ ],
47770
+ description: 'Document title (falls back to "Untitled" for a blank draft)'
47771
+ },
47772
+ subtitle: {
47773
+ types: [
47774
+ "string"
47775
+ ],
47776
+ description: "Muted byline under the title; hidden when empty"
47777
+ },
47778
+ value: {
47779
+ types: [
47780
+ "string"
47781
+ ],
47782
+ description: "The document body as rich-text HTML"
47783
+ },
47784
+ actions: {
47785
+ types: [
47786
+ "array"
47787
+ ],
47788
+ description: 'Header actions (settings, history, \u2026). At most one explicit primary stays inline; the rest live under a single "\u22EF" menu \u2014 the title owns its row.',
47789
+ kind: "event-list",
47790
+ eventField: "event",
47791
+ items: {
47792
+ types: [
47793
+ "object"
47794
+ ],
47795
+ properties: {
47796
+ label: {
47797
+ types: [
47798
+ "string"
47799
+ ]
47800
+ },
47801
+ event: {
47802
+ types: [
47803
+ "string"
47804
+ ]
47805
+ },
47806
+ icon: {
47807
+ types: [
47808
+ "icon",
47809
+ "string"
47810
+ ]
47811
+ },
47812
+ variant: {
47813
+ types: [
47814
+ "string"
47815
+ ],
47816
+ enumValues: [
47817
+ "primary",
47818
+ "secondary",
47819
+ "ghost",
47820
+ "danger"
47821
+ ]
47822
+ }
47823
+ },
47824
+ required: [
47825
+ "label"
47826
+ ]
47827
+ }
47828
+ },
47829
+ maxInlineActions: {
47830
+ types: [
47831
+ "number"
47832
+ ],
47833
+ description: "0 collapses even the primary action into the menu"
47834
+ },
47835
+ editing: {
47836
+ types: [
47837
+ "boolean"
47838
+ ],
47839
+ description: "false = read surface with click-to-edit body; true = live editor",
47840
+ default: false
47841
+ },
47842
+ titleCommitEvent: {
47843
+ types: [
47844
+ "string"
47845
+ ],
47846
+ description: "Emitted when the title commits: { title, id }",
47847
+ kind: "event-ref",
47848
+ emitPayloadSchema: [
47849
+ {
47850
+ name: "title",
47851
+ type: "string",
47852
+ required: true
47853
+ },
47854
+ {
47855
+ name: "id",
47856
+ type: "string",
47857
+ required: true
47858
+ }
47859
+ ]
47860
+ },
47861
+ contentChangeEvent: {
47862
+ types: [
47863
+ "string"
47864
+ ],
47865
+ description: "Forwarded to the embedded RichTextEditor's autosave stream: { value }",
47866
+ kind: "event-ref",
47867
+ emitPayloadSchema: [
47868
+ {
47869
+ name: "value",
47870
+ type: "string",
47871
+ required: true
47872
+ }
47873
+ ]
47874
+ },
47875
+ editEvent: {
47876
+ types: [
47877
+ "string"
47878
+ ],
47879
+ description: "Emitted by the header Edit affordance and a click on the read body: { id }",
47880
+ kind: "event-ref",
47881
+ emitPayloadSchema: [
47882
+ {
47883
+ name: "id",
47884
+ type: "string",
47885
+ required: true
47886
+ }
47887
+ ]
47888
+ },
47889
+ doneEvent: {
47890
+ types: [
47891
+ "string"
47892
+ ],
47893
+ description: "Emitted by the Done button that ends the editing session: { id }",
47894
+ kind: "event-ref",
47895
+ emitPayloadSchema: [
47896
+ {
47897
+ name: "id",
47898
+ type: "string",
47899
+ required: true
47900
+ }
47901
+ ]
47902
+ },
47903
+ editLabel: {
47904
+ types: [
47905
+ "string"
47906
+ ],
47907
+ description: "editLabel prop"
47908
+ },
47909
+ doneLabel: {
47910
+ types: [
47911
+ "string"
47912
+ ],
47913
+ description: "doneLabel prop"
47914
+ },
47915
+ autosaveHint: {
47916
+ types: [
47917
+ "string"
47918
+ ],
47919
+ description: "Muted caption beside Done telling the author work persists on its own"
47920
+ },
47921
+ placeholder: {
47922
+ types: [
47923
+ "string"
47924
+ ],
47925
+ description: "Placeholder for an empty body"
47926
+ },
47927
+ className: {
47928
+ types: [
47929
+ "string"
47930
+ ],
47931
+ description: "className prop"
47932
+ }
47933
+ }
47934
+ },
47935
+ "document-details": {
47936
+ type: "document-details",
47937
+ category: "display",
47938
+ tier: "molecules",
47939
+ family: "core",
47940
+ description: "DocumentDetails \u2014 the document's metadata as a compact settings card for the rail beside a DocumentPanel, each property committing in place.",
47941
+ capabilities: "document settings, page details, post settings sidebar, metadata panel, document properties, publish settings",
47942
+ suggestedFor: [
47943
+ "document",
47944
+ "details",
47945
+ "document details"
47946
+ ],
47947
+ typicalSize: "medium",
47948
+ propsSchema: {
47949
+ entity: {
47950
+ types: [
47951
+ "object"
47952
+ ],
47953
+ description: "The loaded record \u2014 supplies the id every commit carries and the values the rows read.",
47954
+ kind: "entity",
47955
+ cardinality: "record"
47956
+ },
47957
+ fields: {
47958
+ types: [
47959
+ "array"
47960
+ ],
47961
+ description: "The properties shown; empty renders nothing.",
47962
+ items: {
47963
+ types: [
47964
+ "object"
47965
+ ],
47966
+ properties: {
47967
+ name: {
47968
+ types: [
47969
+ "string"
47970
+ ]
47971
+ },
47972
+ key: {
47973
+ types: [
47974
+ "string"
47975
+ ]
47976
+ },
47977
+ label: {
47978
+ types: [
47979
+ "string"
47980
+ ]
47981
+ },
47982
+ header: {
47983
+ types: [
47984
+ "string"
47985
+ ]
47986
+ },
47987
+ icon: {
47988
+ types: [
47989
+ "icon",
47990
+ "string"
47991
+ ]
47992
+ },
47993
+ kind: {
47994
+ types: [
47995
+ "string"
47996
+ ],
47997
+ enumValues: [
47998
+ "text",
47999
+ "boolean",
48000
+ "select",
48001
+ "readonly"
48002
+ ]
48003
+ },
48004
+ options: {
48005
+ types: [
48006
+ "array"
48007
+ ],
48008
+ items: {
48009
+ types: [
48010
+ "string"
48011
+ ]
48012
+ }
48013
+ },
48014
+ format: {
48015
+ types: [
48016
+ "string"
48017
+ ],
48018
+ enumValues: [
48019
+ "date",
48020
+ "currency",
48021
+ "number",
48022
+ "boolean",
48023
+ "percent"
48024
+ ]
48025
+ }
48026
+ }
48027
+ }
48028
+ },
48029
+ metaCommitEvent: {
48030
+ types: [
48031
+ "string"
48032
+ ],
48033
+ description: "Emitted when a property commits: { id, patch } \u2014 patch carries the id plus the one changed field, ready for a partial persist update.",
48034
+ kind: "event-ref",
48035
+ emitPayloadSchema: [
48036
+ {
48037
+ name: "id",
48038
+ type: "string",
48039
+ required: true
48040
+ },
48041
+ {
48042
+ name: "patch",
48043
+ type: "object",
48044
+ required: true
48045
+ }
48046
+ ]
48047
+ },
48048
+ title: {
48049
+ types: [
48050
+ "string"
48051
+ ],
48052
+ description: 'Card heading (defaults to the localized "Details")'
48053
+ },
48054
+ className: {
48055
+ types: [
48056
+ "string"
48057
+ ],
48058
+ description: "className prop"
48059
+ }
48060
+ }
47755
48061
  }
47756
48062
  },
47757
48063
  categories: [
@@ -50659,7 +50965,7 @@ var integrators_registry_default = {
50659
50965
  // src/patterns/component-mapping.json
50660
50966
  var component_mapping_default = {
50661
50967
  version: "1.0.0",
50662
- exportedAt: "2026-08-25T01:35:07.912Z",
50968
+ exportedAt: "2026-08-28T23:51:47.246Z",
50663
50969
  mappings: {
50664
50970
  "page-header": {
50665
50971
  component: "PageHeader",
@@ -51573,11 +51879,6 @@ var component_mapping_default = {
51573
51879
  importPath: "@/components/core/molecules/ReplyTree",
51574
51880
  category: "display"
51575
51881
  },
51576
- "rich-block-editor": {
51577
- component: "RichBlockEditor",
51578
- importPath: "@/components/core/molecules/RichBlockEditor",
51579
- category: "display"
51580
- },
51581
51882
  "version-diff": {
51582
51883
  component: "VersionDiff",
51583
51884
  importPath: "@/components/core/molecules/VersionDiff",
@@ -52062,6 +52363,21 @@ var component_mapping_default = {
52062
52363
  component: "DrawFxLayer",
52063
52364
  importPath: "@/components/game/molecules/DrawFxLayer",
52064
52365
  category: "game"
52366
+ },
52367
+ "rich-text-editor": {
52368
+ component: "RichTextEditor",
52369
+ importPath: "@/components/core/molecules/RichTextEditor",
52370
+ category: "component"
52371
+ },
52372
+ "document-panel": {
52373
+ component: "DocumentPanel",
52374
+ importPath: "@/components/core/molecules/DocumentPanel",
52375
+ category: "component"
52376
+ },
52377
+ "document-details": {
52378
+ component: "DocumentDetails",
52379
+ importPath: "@/components/core/molecules/DocumentDetails",
52380
+ category: "display"
52065
52381
  }
52066
52382
  }
52067
52383
  };
@@ -52069,7 +52385,7 @@ var component_mapping_default = {
52069
52385
  // src/patterns/event-contracts.json
52070
52386
  var event_contracts_default = {
52071
52387
  version: "1.0.0",
52072
- exportedAt: "2026-08-25T01:35:07.912Z",
52388
+ exportedAt: "2026-08-28T23:51:47.246Z",
52073
52389
  contracts: {
52074
52390
  form: {
52075
52391
  emits: [
@@ -53299,6 +53615,8 @@ var PATTERN_TYPES = [
53299
53615
  "doc-search",
53300
53616
  "doc-sidebar",
53301
53617
  "doc-toc",
53618
+ "document-details",
53619
+ "document-panel",
53302
53620
  "document-viewer",
53303
53621
  "draw-fx-layer",
53304
53622
  "draw-group",
@@ -53414,7 +53732,7 @@ var PATTERN_TYPES = [
53414
53732
  "relation-select",
53415
53733
  "repeatable-form-section",
53416
53734
  "reply-tree",
53417
- "rich-block-editor",
53735
+ "rich-text-editor",
53418
53736
  "runtime-debugger",
53419
53737
  "scaled-diagram",
53420
53738
  "score-display",