@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.
package/dist/index.js CHANGED
@@ -2250,7 +2250,7 @@ function getInteractionModelForDomain(domain) {
2250
2250
  // src/patterns/patterns-registry.json
2251
2251
  var patterns_registry_default = {
2252
2252
  version: "1.0.0",
2253
- exportedAt: "2026-08-25T01:35:07.912Z",
2253
+ exportedAt: "2026-08-28T23:51:47.246Z",
2254
2254
  patterns: {
2255
2255
  "entity-table": {
2256
2256
  type: "entity-table",
@@ -28649,91 +28649,6 @@ var patterns_registry_default = {
28649
28649
  }
28650
28650
  }
28651
28651
  },
28652
- "rich-block-editor": {
28653
- type: "rich-block-editor",
28654
- category: "display",
28655
- tier: "molecules",
28656
- family: "core",
28657
- description: "RichBlockEditor component",
28658
- suggestedFor: [
28659
- "rich",
28660
- "block",
28661
- "editor",
28662
- "rich block editor"
28663
- ],
28664
- typicalSize: "large",
28665
- propsSchema: {
28666
- initialBlocks: {
28667
- types: [
28668
- "object",
28669
- "array"
28670
- ],
28671
- description: "Initial block payload \u2014 the rows that orb-bound traits emit. Items missing id/type are normalized into paragraph blocks at mount.",
28672
- kind: "entity",
28673
- cardinality: "collection"
28674
- },
28675
- onChange: {
28676
- types: [
28677
- "function"
28678
- ],
28679
- description: "onChange prop",
28680
- kind: "callback",
28681
- callbackArgs: [
28682
- {
28683
- name: "blocks",
28684
- type: "array"
28685
- }
28686
- ]
28687
- },
28688
- changeEvent: {
28689
- types: [
28690
- "string"
28691
- ],
28692
- description: "changeEvent prop",
28693
- kind: "event-ref",
28694
- emitPayloadSchema: [
28695
- {
28696
- name: "blocks",
28697
- type: "array",
28698
- required: true
28699
- }
28700
- ]
28701
- },
28702
- readOnly: {
28703
- types: [
28704
- "boolean"
28705
- ],
28706
- description: "readOnly prop",
28707
- default: false
28708
- },
28709
- placeholder: {
28710
- types: [
28711
- "string"
28712
- ],
28713
- description: "placeholder prop"
28714
- },
28715
- enableBlocks: {
28716
- types: [
28717
- "boolean"
28718
- ],
28719
- 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.",
28720
- default: true
28721
- },
28722
- showToolbar: {
28723
- types: [
28724
- "boolean"
28725
- ],
28726
- description: "showToolbar prop",
28727
- default: true
28728
- },
28729
- className: {
28730
- types: [
28731
- "string"
28732
- ],
28733
- description: "className prop"
28734
- }
28735
- }
28736
- },
28737
28652
  "version-diff": {
28738
28653
  type: "version-diff",
28739
28654
  category: "display",
@@ -49999,6 +49914,397 @@ var patterns_registry_default = {
49999
49914
  },
50000
49915
  drawable: true,
50001
49916
  drawHost: true
49917
+ },
49918
+ "rich-text-editor": {
49919
+ type: "rich-text-editor",
49920
+ category: "component",
49921
+ tier: "molecules",
49922
+ family: "core",
49923
+ description: "RichTextEditor component",
49924
+ suggestedFor: [
49925
+ "rich",
49926
+ "text",
49927
+ "editor",
49928
+ "rich text editor"
49929
+ ],
49930
+ typicalSize: "medium",
49931
+ propsSchema: {
49932
+ value: {
49933
+ types: [
49934
+ "string"
49935
+ ],
49936
+ description: "The rich text content as HTML. Sanitized before rendering and on every change."
49937
+ },
49938
+ onChange: {
49939
+ types: [
49940
+ "function"
49941
+ ],
49942
+ description: "onChange prop",
49943
+ kind: "callback",
49944
+ callbackArgs: [
49945
+ {
49946
+ name: "value",
49947
+ type: "string"
49948
+ }
49949
+ ]
49950
+ },
49951
+ changeEvent: {
49952
+ types: [
49953
+ "string"
49954
+ ],
49955
+ description: "changeEvent prop",
49956
+ kind: "event-ref",
49957
+ emitPayloadSchema: [
49958
+ {
49959
+ name: "value",
49960
+ type: "string",
49961
+ required: true
49962
+ }
49963
+ ]
49964
+ },
49965
+ readOnly: {
49966
+ types: [
49967
+ "boolean"
49968
+ ],
49969
+ description: "readOnly prop",
49970
+ default: false
49971
+ },
49972
+ placeholder: {
49973
+ types: [
49974
+ "string"
49975
+ ],
49976
+ description: "placeholder prop"
49977
+ },
49978
+ showToolbar: {
49979
+ types: [
49980
+ "boolean"
49981
+ ],
49982
+ description: "showToolbar prop",
49983
+ default: true
49984
+ },
49985
+ className: {
49986
+ types: [
49987
+ "string"
49988
+ ],
49989
+ description: "className prop"
49990
+ }
49991
+ }
49992
+ },
49993
+ "document-panel": {
49994
+ type: "document-panel",
49995
+ category: "component",
49996
+ tier: "molecules",
49997
+ family: "core",
49998
+ description: "DocumentPanel \u2014 a record rendered as one continuous document: editable title over the rich-text body, editing controls tucked into the header corner.",
49999
+ capabilities: "document page, note editor, wiki page, article editor, writing surface, rich text document, content editing canvas",
50000
+ suggestedFor: [
50001
+ "document",
50002
+ "panel",
50003
+ "document panel"
50004
+ ],
50005
+ typicalSize: "medium",
50006
+ propsSchema: {
50007
+ id: {
50008
+ types: [
50009
+ "string"
50010
+ ],
50011
+ description: "The record's id \u2014 carried on every commit and action event."
50012
+ },
50013
+ title: {
50014
+ types: [
50015
+ "string"
50016
+ ],
50017
+ description: 'Document title (falls back to "Untitled" for a blank draft)'
50018
+ },
50019
+ subtitle: {
50020
+ types: [
50021
+ "string"
50022
+ ],
50023
+ description: "Muted byline under the title; hidden when empty"
50024
+ },
50025
+ value: {
50026
+ types: [
50027
+ "string"
50028
+ ],
50029
+ description: "The document body as rich-text HTML"
50030
+ },
50031
+ actions: {
50032
+ types: [
50033
+ "array"
50034
+ ],
50035
+ 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.',
50036
+ kind: "event-list",
50037
+ eventField: "event",
50038
+ items: {
50039
+ types: [
50040
+ "object"
50041
+ ],
50042
+ properties: {
50043
+ label: {
50044
+ types: [
50045
+ "string"
50046
+ ]
50047
+ },
50048
+ event: {
50049
+ types: [
50050
+ "string"
50051
+ ]
50052
+ },
50053
+ icon: {
50054
+ types: [
50055
+ "icon",
50056
+ "string"
50057
+ ]
50058
+ },
50059
+ variant: {
50060
+ types: [
50061
+ "string"
50062
+ ],
50063
+ enumValues: [
50064
+ "primary",
50065
+ "secondary",
50066
+ "ghost",
50067
+ "danger"
50068
+ ]
50069
+ }
50070
+ },
50071
+ required: [
50072
+ "label"
50073
+ ]
50074
+ }
50075
+ },
50076
+ maxInlineActions: {
50077
+ types: [
50078
+ "number"
50079
+ ],
50080
+ description: "0 collapses even the primary action into the menu"
50081
+ },
50082
+ editing: {
50083
+ types: [
50084
+ "boolean"
50085
+ ],
50086
+ description: "false = read surface with click-to-edit body; true = live editor",
50087
+ default: false
50088
+ },
50089
+ titleCommitEvent: {
50090
+ types: [
50091
+ "string"
50092
+ ],
50093
+ description: "Emitted when the title commits: { title, id }",
50094
+ kind: "event-ref",
50095
+ emitPayloadSchema: [
50096
+ {
50097
+ name: "title",
50098
+ type: "string",
50099
+ required: true
50100
+ },
50101
+ {
50102
+ name: "id",
50103
+ type: "string",
50104
+ required: true
50105
+ }
50106
+ ]
50107
+ },
50108
+ contentChangeEvent: {
50109
+ types: [
50110
+ "string"
50111
+ ],
50112
+ description: "Forwarded to the embedded RichTextEditor's autosave stream: { value }",
50113
+ kind: "event-ref",
50114
+ emitPayloadSchema: [
50115
+ {
50116
+ name: "value",
50117
+ type: "string",
50118
+ required: true
50119
+ }
50120
+ ]
50121
+ },
50122
+ editEvent: {
50123
+ types: [
50124
+ "string"
50125
+ ],
50126
+ description: "Emitted by the header Edit affordance and a click on the read body: { id }",
50127
+ kind: "event-ref",
50128
+ emitPayloadSchema: [
50129
+ {
50130
+ name: "id",
50131
+ type: "string",
50132
+ required: true
50133
+ }
50134
+ ]
50135
+ },
50136
+ doneEvent: {
50137
+ types: [
50138
+ "string"
50139
+ ],
50140
+ description: "Emitted by the Done button that ends the editing session: { id }",
50141
+ kind: "event-ref",
50142
+ emitPayloadSchema: [
50143
+ {
50144
+ name: "id",
50145
+ type: "string",
50146
+ required: true
50147
+ }
50148
+ ]
50149
+ },
50150
+ editLabel: {
50151
+ types: [
50152
+ "string"
50153
+ ],
50154
+ description: "editLabel prop"
50155
+ },
50156
+ doneLabel: {
50157
+ types: [
50158
+ "string"
50159
+ ],
50160
+ description: "doneLabel prop"
50161
+ },
50162
+ autosaveHint: {
50163
+ types: [
50164
+ "string"
50165
+ ],
50166
+ description: "Muted caption beside Done telling the author work persists on its own"
50167
+ },
50168
+ placeholder: {
50169
+ types: [
50170
+ "string"
50171
+ ],
50172
+ description: "Placeholder for an empty body"
50173
+ },
50174
+ className: {
50175
+ types: [
50176
+ "string"
50177
+ ],
50178
+ description: "className prop"
50179
+ }
50180
+ }
50181
+ },
50182
+ "document-details": {
50183
+ type: "document-details",
50184
+ category: "display",
50185
+ tier: "molecules",
50186
+ family: "core",
50187
+ description: "DocumentDetails \u2014 the document's metadata as a compact settings card for the rail beside a DocumentPanel, each property committing in place.",
50188
+ capabilities: "document settings, page details, post settings sidebar, metadata panel, document properties, publish settings",
50189
+ suggestedFor: [
50190
+ "document",
50191
+ "details",
50192
+ "document details"
50193
+ ],
50194
+ typicalSize: "medium",
50195
+ propsSchema: {
50196
+ entity: {
50197
+ types: [
50198
+ "object"
50199
+ ],
50200
+ description: "The loaded record \u2014 supplies the id every commit carries and the values the rows read.",
50201
+ kind: "entity",
50202
+ cardinality: "record"
50203
+ },
50204
+ fields: {
50205
+ types: [
50206
+ "array"
50207
+ ],
50208
+ description: "The properties shown; empty renders nothing.",
50209
+ items: {
50210
+ types: [
50211
+ "object"
50212
+ ],
50213
+ properties: {
50214
+ name: {
50215
+ types: [
50216
+ "string"
50217
+ ]
50218
+ },
50219
+ key: {
50220
+ types: [
50221
+ "string"
50222
+ ]
50223
+ },
50224
+ label: {
50225
+ types: [
50226
+ "string"
50227
+ ]
50228
+ },
50229
+ header: {
50230
+ types: [
50231
+ "string"
50232
+ ]
50233
+ },
50234
+ icon: {
50235
+ types: [
50236
+ "icon",
50237
+ "string"
50238
+ ]
50239
+ },
50240
+ kind: {
50241
+ types: [
50242
+ "string"
50243
+ ],
50244
+ enumValues: [
50245
+ "text",
50246
+ "boolean",
50247
+ "select",
50248
+ "readonly"
50249
+ ]
50250
+ },
50251
+ options: {
50252
+ types: [
50253
+ "array"
50254
+ ],
50255
+ items: {
50256
+ types: [
50257
+ "string"
50258
+ ]
50259
+ }
50260
+ },
50261
+ format: {
50262
+ types: [
50263
+ "string"
50264
+ ],
50265
+ enumValues: [
50266
+ "date",
50267
+ "currency",
50268
+ "number",
50269
+ "boolean",
50270
+ "percent"
50271
+ ]
50272
+ }
50273
+ }
50274
+ }
50275
+ },
50276
+ metaCommitEvent: {
50277
+ types: [
50278
+ "string"
50279
+ ],
50280
+ description: "Emitted when a property commits: { id, patch } \u2014 patch carries the id plus the one changed field, ready for a partial persist update.",
50281
+ kind: "event-ref",
50282
+ emitPayloadSchema: [
50283
+ {
50284
+ name: "id",
50285
+ type: "string",
50286
+ required: true
50287
+ },
50288
+ {
50289
+ name: "patch",
50290
+ type: "object",
50291
+ required: true
50292
+ }
50293
+ ]
50294
+ },
50295
+ title: {
50296
+ types: [
50297
+ "string"
50298
+ ],
50299
+ description: 'Card heading (defaults to the localized "Details")'
50300
+ },
50301
+ className: {
50302
+ types: [
50303
+ "string"
50304
+ ],
50305
+ description: "className prop"
50306
+ }
50307
+ }
50002
50308
  }
50003
50309
  },
50004
50310
  categories: [
@@ -52906,7 +53212,7 @@ var integrators_registry_default = {
52906
53212
  // src/patterns/component-mapping.json
52907
53213
  var component_mapping_default = {
52908
53214
  version: "1.0.0",
52909
- exportedAt: "2026-08-25T01:35:07.912Z",
53215
+ exportedAt: "2026-08-28T23:51:47.246Z",
52910
53216
  mappings: {
52911
53217
  "page-header": {
52912
53218
  component: "PageHeader",
@@ -53820,11 +54126,6 @@ var component_mapping_default = {
53820
54126
  importPath: "@/components/core/molecules/ReplyTree",
53821
54127
  category: "display"
53822
54128
  },
53823
- "rich-block-editor": {
53824
- component: "RichBlockEditor",
53825
- importPath: "@/components/core/molecules/RichBlockEditor",
53826
- category: "display"
53827
- },
53828
54129
  "version-diff": {
53829
54130
  component: "VersionDiff",
53830
54131
  importPath: "@/components/core/molecules/VersionDiff",
@@ -54309,6 +54610,21 @@ var component_mapping_default = {
54309
54610
  component: "DrawFxLayer",
54310
54611
  importPath: "@/components/game/molecules/DrawFxLayer",
54311
54612
  category: "game"
54613
+ },
54614
+ "rich-text-editor": {
54615
+ component: "RichTextEditor",
54616
+ importPath: "@/components/core/molecules/RichTextEditor",
54617
+ category: "component"
54618
+ },
54619
+ "document-panel": {
54620
+ component: "DocumentPanel",
54621
+ importPath: "@/components/core/molecules/DocumentPanel",
54622
+ category: "component"
54623
+ },
54624
+ "document-details": {
54625
+ component: "DocumentDetails",
54626
+ importPath: "@/components/core/molecules/DocumentDetails",
54627
+ category: "display"
54312
54628
  }
54313
54629
  }
54314
54630
  };
@@ -54316,7 +54632,7 @@ var component_mapping_default = {
54316
54632
  // src/patterns/event-contracts.json
54317
54633
  var event_contracts_default = {
54318
54634
  version: "1.0.0",
54319
- exportedAt: "2026-08-25T01:35:07.912Z",
54635
+ exportedAt: "2026-08-28T23:51:47.246Z",
54320
54636
  contracts: {
54321
54637
  form: {
54322
54638
  emits: [
@@ -55546,6 +55862,8 @@ var PATTERN_TYPES = [
55546
55862
  "doc-search",
55547
55863
  "doc-sidebar",
55548
55864
  "doc-toc",
55865
+ "document-details",
55866
+ "document-panel",
55549
55867
  "document-viewer",
55550
55868
  "draw-fx-layer",
55551
55869
  "draw-group",
@@ -55661,7 +55979,7 @@ var PATTERN_TYPES = [
55661
55979
  "relation-select",
55662
55980
  "repeatable-form-section",
55663
55981
  "reply-tree",
55664
- "rich-block-editor",
55982
+ "rich-text-editor",
55665
55983
  "runtime-debugger",
55666
55984
  "scaled-diagram",
55667
55985
  "score-display",