@almadar/core 10.70.0 → 10.71.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-28T09:02:57.076Z",
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,399 @@ 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
+ entity: {
47761
+ types: [
47762
+ "object"
47763
+ ],
47764
+ description: "The loaded record \u2014 supplies the id every commit event carries.",
47765
+ kind: "entity",
47766
+ cardinality: "record"
47767
+ },
47768
+ title: {
47769
+ types: [
47770
+ "string"
47771
+ ],
47772
+ description: 'Document title (falls back to "Untitled" for a blank draft)'
47773
+ },
47774
+ subtitle: {
47775
+ types: [
47776
+ "string"
47777
+ ],
47778
+ description: "Muted byline under the title; hidden when empty"
47779
+ },
47780
+ value: {
47781
+ types: [
47782
+ "string"
47783
+ ],
47784
+ description: "The document body as rich-text HTML"
47785
+ },
47786
+ actions: {
47787
+ types: [
47788
+ "array"
47789
+ ],
47790
+ 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.',
47791
+ kind: "event-list",
47792
+ eventField: "event",
47793
+ items: {
47794
+ types: [
47795
+ "object"
47796
+ ],
47797
+ properties: {
47798
+ label: {
47799
+ types: [
47800
+ "string"
47801
+ ]
47802
+ },
47803
+ event: {
47804
+ types: [
47805
+ "string"
47806
+ ]
47807
+ },
47808
+ icon: {
47809
+ types: [
47810
+ "icon",
47811
+ "string"
47812
+ ]
47813
+ },
47814
+ variant: {
47815
+ types: [
47816
+ "string"
47817
+ ],
47818
+ enumValues: [
47819
+ "primary",
47820
+ "secondary",
47821
+ "ghost",
47822
+ "danger"
47823
+ ]
47824
+ }
47825
+ },
47826
+ required: [
47827
+ "label"
47828
+ ]
47829
+ }
47830
+ },
47831
+ maxInlineActions: {
47832
+ types: [
47833
+ "number"
47834
+ ],
47835
+ description: "0 collapses even the primary action into the menu"
47836
+ },
47837
+ editing: {
47838
+ types: [
47839
+ "boolean"
47840
+ ],
47841
+ description: "false = read surface with click-to-edit body; true = live editor",
47842
+ default: false
47843
+ },
47844
+ titleCommitEvent: {
47845
+ types: [
47846
+ "string"
47847
+ ],
47848
+ description: "Emitted when the title commits: { title, id }",
47849
+ kind: "event-ref",
47850
+ emitPayloadSchema: [
47851
+ {
47852
+ name: "title",
47853
+ type: "string",
47854
+ required: true
47855
+ },
47856
+ {
47857
+ name: "id",
47858
+ type: "string",
47859
+ required: true
47860
+ }
47861
+ ]
47862
+ },
47863
+ contentChangeEvent: {
47864
+ types: [
47865
+ "string"
47866
+ ],
47867
+ description: "Forwarded to the embedded RichTextEditor's autosave stream: { value }",
47868
+ kind: "event-ref",
47869
+ emitPayloadSchema: [
47870
+ {
47871
+ name: "value",
47872
+ type: "string",
47873
+ required: true
47874
+ }
47875
+ ]
47876
+ },
47877
+ editEvent: {
47878
+ types: [
47879
+ "string"
47880
+ ],
47881
+ description: "Emitted by the header Edit affordance and a click on the read body: { id }",
47882
+ kind: "event-ref",
47883
+ emitPayloadSchema: [
47884
+ {
47885
+ name: "id",
47886
+ type: "string",
47887
+ required: true
47888
+ }
47889
+ ]
47890
+ },
47891
+ doneEvent: {
47892
+ types: [
47893
+ "string"
47894
+ ],
47895
+ description: "Emitted by the Done button that ends the editing session: { id }",
47896
+ kind: "event-ref",
47897
+ emitPayloadSchema: [
47898
+ {
47899
+ name: "id",
47900
+ type: "string",
47901
+ required: true
47902
+ }
47903
+ ]
47904
+ },
47905
+ editLabel: {
47906
+ types: [
47907
+ "string"
47908
+ ],
47909
+ description: "editLabel prop"
47910
+ },
47911
+ doneLabel: {
47912
+ types: [
47913
+ "string"
47914
+ ],
47915
+ description: "doneLabel prop"
47916
+ },
47917
+ autosaveHint: {
47918
+ types: [
47919
+ "string"
47920
+ ],
47921
+ description: "Muted caption beside Done telling the author work persists on its own"
47922
+ },
47923
+ placeholder: {
47924
+ types: [
47925
+ "string"
47926
+ ],
47927
+ description: "Placeholder for an empty body"
47928
+ },
47929
+ className: {
47930
+ types: [
47931
+ "string"
47932
+ ],
47933
+ description: "className prop"
47934
+ }
47935
+ }
47936
+ },
47937
+ "document-details": {
47938
+ type: "document-details",
47939
+ category: "display",
47940
+ tier: "molecules",
47941
+ family: "core",
47942
+ description: "DocumentDetails \u2014 the document's metadata as a compact settings card for the rail beside a DocumentPanel, each property committing in place.",
47943
+ capabilities: "document settings, page details, post settings sidebar, metadata panel, document properties, publish settings",
47944
+ suggestedFor: [
47945
+ "document",
47946
+ "details",
47947
+ "document details"
47948
+ ],
47949
+ typicalSize: "medium",
47950
+ propsSchema: {
47951
+ entity: {
47952
+ types: [
47953
+ "object"
47954
+ ],
47955
+ description: "The loaded record \u2014 supplies the id every commit carries and the values the rows read.",
47956
+ kind: "entity",
47957
+ cardinality: "record"
47958
+ },
47959
+ fields: {
47960
+ types: [
47961
+ "array"
47962
+ ],
47963
+ description: "The properties shown; empty renders nothing.",
47964
+ items: {
47965
+ types: [
47966
+ "object"
47967
+ ],
47968
+ properties: {
47969
+ name: {
47970
+ types: [
47971
+ "string"
47972
+ ]
47973
+ },
47974
+ key: {
47975
+ types: [
47976
+ "string"
47977
+ ]
47978
+ },
47979
+ label: {
47980
+ types: [
47981
+ "string"
47982
+ ]
47983
+ },
47984
+ header: {
47985
+ types: [
47986
+ "string"
47987
+ ]
47988
+ },
47989
+ icon: {
47990
+ types: [
47991
+ "icon",
47992
+ "string"
47993
+ ]
47994
+ },
47995
+ kind: {
47996
+ types: [
47997
+ "string"
47998
+ ],
47999
+ enumValues: [
48000
+ "text",
48001
+ "boolean",
48002
+ "select",
48003
+ "readonly"
48004
+ ]
48005
+ },
48006
+ options: {
48007
+ types: [
48008
+ "array"
48009
+ ],
48010
+ items: {
48011
+ types: [
48012
+ "string"
48013
+ ]
48014
+ }
48015
+ },
48016
+ format: {
48017
+ types: [
48018
+ "string"
48019
+ ],
48020
+ enumValues: [
48021
+ "date",
48022
+ "currency",
48023
+ "number",
48024
+ "boolean",
48025
+ "percent"
48026
+ ]
48027
+ }
48028
+ }
48029
+ }
48030
+ },
48031
+ metaCommitEvent: {
48032
+ types: [
48033
+ "string"
48034
+ ],
48035
+ description: "Emitted when a property commits: { id, patch } \u2014 patch carries the id plus the one changed field, ready for a partial persist update.",
48036
+ kind: "event-ref",
48037
+ emitPayloadSchema: [
48038
+ {
48039
+ name: "id",
48040
+ type: "string",
48041
+ required: true
48042
+ },
48043
+ {
48044
+ name: "patch",
48045
+ type: "object",
48046
+ required: true
48047
+ }
48048
+ ]
48049
+ },
48050
+ title: {
48051
+ types: [
48052
+ "string"
48053
+ ],
48054
+ description: 'Card heading (defaults to the localized "Details")'
48055
+ },
48056
+ className: {
48057
+ types: [
48058
+ "string"
48059
+ ],
48060
+ description: "className prop"
48061
+ }
48062
+ }
47755
48063
  }
47756
48064
  },
47757
48065
  categories: [
@@ -50659,7 +50967,7 @@ var integrators_registry_default = {
50659
50967
  // src/patterns/component-mapping.json
50660
50968
  var component_mapping_default = {
50661
50969
  version: "1.0.0",
50662
- exportedAt: "2026-08-25T01:35:07.912Z",
50970
+ exportedAt: "2026-08-28T09:02:57.076Z",
50663
50971
  mappings: {
50664
50972
  "page-header": {
50665
50973
  component: "PageHeader",
@@ -51573,11 +51881,6 @@ var component_mapping_default = {
51573
51881
  importPath: "@/components/core/molecules/ReplyTree",
51574
51882
  category: "display"
51575
51883
  },
51576
- "rich-block-editor": {
51577
- component: "RichBlockEditor",
51578
- importPath: "@/components/core/molecules/RichBlockEditor",
51579
- category: "display"
51580
- },
51581
51884
  "version-diff": {
51582
51885
  component: "VersionDiff",
51583
51886
  importPath: "@/components/core/molecules/VersionDiff",
@@ -52062,6 +52365,21 @@ var component_mapping_default = {
52062
52365
  component: "DrawFxLayer",
52063
52366
  importPath: "@/components/game/molecules/DrawFxLayer",
52064
52367
  category: "game"
52368
+ },
52369
+ "rich-text-editor": {
52370
+ component: "RichTextEditor",
52371
+ importPath: "@/components/core/molecules/RichTextEditor",
52372
+ category: "component"
52373
+ },
52374
+ "document-panel": {
52375
+ component: "DocumentPanel",
52376
+ importPath: "@/components/core/molecules/DocumentPanel",
52377
+ category: "component"
52378
+ },
52379
+ "document-details": {
52380
+ component: "DocumentDetails",
52381
+ importPath: "@/components/core/molecules/DocumentDetails",
52382
+ category: "display"
52065
52383
  }
52066
52384
  }
52067
52385
  };
@@ -52069,7 +52387,7 @@ var component_mapping_default = {
52069
52387
  // src/patterns/event-contracts.json
52070
52388
  var event_contracts_default = {
52071
52389
  version: "1.0.0",
52072
- exportedAt: "2026-08-25T01:35:07.912Z",
52390
+ exportedAt: "2026-08-28T09:02:57.076Z",
52073
52391
  contracts: {
52074
52392
  form: {
52075
52393
  emits: [
@@ -53299,6 +53617,8 @@ var PATTERN_TYPES = [
53299
53617
  "doc-search",
53300
53618
  "doc-sidebar",
53301
53619
  "doc-toc",
53620
+ "document-details",
53621
+ "document-panel",
53302
53622
  "document-viewer",
53303
53623
  "draw-fx-layer",
53304
53624
  "draw-group",
@@ -53414,7 +53734,7 @@ var PATTERN_TYPES = [
53414
53734
  "relation-select",
53415
53735
  "repeatable-form-section",
53416
53736
  "reply-tree",
53417
- "rich-block-editor",
53737
+ "rich-text-editor",
53418
53738
  "runtime-debugger",
53419
53739
  "scaled-diagram",
53420
53740
  "score-display",