@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.
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-28T09:02:57.076Z",
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,399 @@ 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
+ entity: {
50008
+ types: [
50009
+ "object"
50010
+ ],
50011
+ description: "The loaded record \u2014 supplies the id every commit event carries.",
50012
+ kind: "entity",
50013
+ cardinality: "record"
50014
+ },
50015
+ title: {
50016
+ types: [
50017
+ "string"
50018
+ ],
50019
+ description: 'Document title (falls back to "Untitled" for a blank draft)'
50020
+ },
50021
+ subtitle: {
50022
+ types: [
50023
+ "string"
50024
+ ],
50025
+ description: "Muted byline under the title; hidden when empty"
50026
+ },
50027
+ value: {
50028
+ types: [
50029
+ "string"
50030
+ ],
50031
+ description: "The document body as rich-text HTML"
50032
+ },
50033
+ actions: {
50034
+ types: [
50035
+ "array"
50036
+ ],
50037
+ 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.',
50038
+ kind: "event-list",
50039
+ eventField: "event",
50040
+ items: {
50041
+ types: [
50042
+ "object"
50043
+ ],
50044
+ properties: {
50045
+ label: {
50046
+ types: [
50047
+ "string"
50048
+ ]
50049
+ },
50050
+ event: {
50051
+ types: [
50052
+ "string"
50053
+ ]
50054
+ },
50055
+ icon: {
50056
+ types: [
50057
+ "icon",
50058
+ "string"
50059
+ ]
50060
+ },
50061
+ variant: {
50062
+ types: [
50063
+ "string"
50064
+ ],
50065
+ enumValues: [
50066
+ "primary",
50067
+ "secondary",
50068
+ "ghost",
50069
+ "danger"
50070
+ ]
50071
+ }
50072
+ },
50073
+ required: [
50074
+ "label"
50075
+ ]
50076
+ }
50077
+ },
50078
+ maxInlineActions: {
50079
+ types: [
50080
+ "number"
50081
+ ],
50082
+ description: "0 collapses even the primary action into the menu"
50083
+ },
50084
+ editing: {
50085
+ types: [
50086
+ "boolean"
50087
+ ],
50088
+ description: "false = read surface with click-to-edit body; true = live editor",
50089
+ default: false
50090
+ },
50091
+ titleCommitEvent: {
50092
+ types: [
50093
+ "string"
50094
+ ],
50095
+ description: "Emitted when the title commits: { title, id }",
50096
+ kind: "event-ref",
50097
+ emitPayloadSchema: [
50098
+ {
50099
+ name: "title",
50100
+ type: "string",
50101
+ required: true
50102
+ },
50103
+ {
50104
+ name: "id",
50105
+ type: "string",
50106
+ required: true
50107
+ }
50108
+ ]
50109
+ },
50110
+ contentChangeEvent: {
50111
+ types: [
50112
+ "string"
50113
+ ],
50114
+ description: "Forwarded to the embedded RichTextEditor's autosave stream: { value }",
50115
+ kind: "event-ref",
50116
+ emitPayloadSchema: [
50117
+ {
50118
+ name: "value",
50119
+ type: "string",
50120
+ required: true
50121
+ }
50122
+ ]
50123
+ },
50124
+ editEvent: {
50125
+ types: [
50126
+ "string"
50127
+ ],
50128
+ description: "Emitted by the header Edit affordance and a click on the read body: { id }",
50129
+ kind: "event-ref",
50130
+ emitPayloadSchema: [
50131
+ {
50132
+ name: "id",
50133
+ type: "string",
50134
+ required: true
50135
+ }
50136
+ ]
50137
+ },
50138
+ doneEvent: {
50139
+ types: [
50140
+ "string"
50141
+ ],
50142
+ description: "Emitted by the Done button that ends the editing session: { id }",
50143
+ kind: "event-ref",
50144
+ emitPayloadSchema: [
50145
+ {
50146
+ name: "id",
50147
+ type: "string",
50148
+ required: true
50149
+ }
50150
+ ]
50151
+ },
50152
+ editLabel: {
50153
+ types: [
50154
+ "string"
50155
+ ],
50156
+ description: "editLabel prop"
50157
+ },
50158
+ doneLabel: {
50159
+ types: [
50160
+ "string"
50161
+ ],
50162
+ description: "doneLabel prop"
50163
+ },
50164
+ autosaveHint: {
50165
+ types: [
50166
+ "string"
50167
+ ],
50168
+ description: "Muted caption beside Done telling the author work persists on its own"
50169
+ },
50170
+ placeholder: {
50171
+ types: [
50172
+ "string"
50173
+ ],
50174
+ description: "Placeholder for an empty body"
50175
+ },
50176
+ className: {
50177
+ types: [
50178
+ "string"
50179
+ ],
50180
+ description: "className prop"
50181
+ }
50182
+ }
50183
+ },
50184
+ "document-details": {
50185
+ type: "document-details",
50186
+ category: "display",
50187
+ tier: "molecules",
50188
+ family: "core",
50189
+ description: "DocumentDetails \u2014 the document's metadata as a compact settings card for the rail beside a DocumentPanel, each property committing in place.",
50190
+ capabilities: "document settings, page details, post settings sidebar, metadata panel, document properties, publish settings",
50191
+ suggestedFor: [
50192
+ "document",
50193
+ "details",
50194
+ "document details"
50195
+ ],
50196
+ typicalSize: "medium",
50197
+ propsSchema: {
50198
+ entity: {
50199
+ types: [
50200
+ "object"
50201
+ ],
50202
+ description: "The loaded record \u2014 supplies the id every commit carries and the values the rows read.",
50203
+ kind: "entity",
50204
+ cardinality: "record"
50205
+ },
50206
+ fields: {
50207
+ types: [
50208
+ "array"
50209
+ ],
50210
+ description: "The properties shown; empty renders nothing.",
50211
+ items: {
50212
+ types: [
50213
+ "object"
50214
+ ],
50215
+ properties: {
50216
+ name: {
50217
+ types: [
50218
+ "string"
50219
+ ]
50220
+ },
50221
+ key: {
50222
+ types: [
50223
+ "string"
50224
+ ]
50225
+ },
50226
+ label: {
50227
+ types: [
50228
+ "string"
50229
+ ]
50230
+ },
50231
+ header: {
50232
+ types: [
50233
+ "string"
50234
+ ]
50235
+ },
50236
+ icon: {
50237
+ types: [
50238
+ "icon",
50239
+ "string"
50240
+ ]
50241
+ },
50242
+ kind: {
50243
+ types: [
50244
+ "string"
50245
+ ],
50246
+ enumValues: [
50247
+ "text",
50248
+ "boolean",
50249
+ "select",
50250
+ "readonly"
50251
+ ]
50252
+ },
50253
+ options: {
50254
+ types: [
50255
+ "array"
50256
+ ],
50257
+ items: {
50258
+ types: [
50259
+ "string"
50260
+ ]
50261
+ }
50262
+ },
50263
+ format: {
50264
+ types: [
50265
+ "string"
50266
+ ],
50267
+ enumValues: [
50268
+ "date",
50269
+ "currency",
50270
+ "number",
50271
+ "boolean",
50272
+ "percent"
50273
+ ]
50274
+ }
50275
+ }
50276
+ }
50277
+ },
50278
+ metaCommitEvent: {
50279
+ types: [
50280
+ "string"
50281
+ ],
50282
+ description: "Emitted when a property commits: { id, patch } \u2014 patch carries the id plus the one changed field, ready for a partial persist update.",
50283
+ kind: "event-ref",
50284
+ emitPayloadSchema: [
50285
+ {
50286
+ name: "id",
50287
+ type: "string",
50288
+ required: true
50289
+ },
50290
+ {
50291
+ name: "patch",
50292
+ type: "object",
50293
+ required: true
50294
+ }
50295
+ ]
50296
+ },
50297
+ title: {
50298
+ types: [
50299
+ "string"
50300
+ ],
50301
+ description: 'Card heading (defaults to the localized "Details")'
50302
+ },
50303
+ className: {
50304
+ types: [
50305
+ "string"
50306
+ ],
50307
+ description: "className prop"
50308
+ }
50309
+ }
50002
50310
  }
50003
50311
  },
50004
50312
  categories: [
@@ -52906,7 +53214,7 @@ var integrators_registry_default = {
52906
53214
  // src/patterns/component-mapping.json
52907
53215
  var component_mapping_default = {
52908
53216
  version: "1.0.0",
52909
- exportedAt: "2026-08-25T01:35:07.912Z",
53217
+ exportedAt: "2026-08-28T09:02:57.076Z",
52910
53218
  mappings: {
52911
53219
  "page-header": {
52912
53220
  component: "PageHeader",
@@ -53820,11 +54128,6 @@ var component_mapping_default = {
53820
54128
  importPath: "@/components/core/molecules/ReplyTree",
53821
54129
  category: "display"
53822
54130
  },
53823
- "rich-block-editor": {
53824
- component: "RichBlockEditor",
53825
- importPath: "@/components/core/molecules/RichBlockEditor",
53826
- category: "display"
53827
- },
53828
54131
  "version-diff": {
53829
54132
  component: "VersionDiff",
53830
54133
  importPath: "@/components/core/molecules/VersionDiff",
@@ -54309,6 +54612,21 @@ var component_mapping_default = {
54309
54612
  component: "DrawFxLayer",
54310
54613
  importPath: "@/components/game/molecules/DrawFxLayer",
54311
54614
  category: "game"
54615
+ },
54616
+ "rich-text-editor": {
54617
+ component: "RichTextEditor",
54618
+ importPath: "@/components/core/molecules/RichTextEditor",
54619
+ category: "component"
54620
+ },
54621
+ "document-panel": {
54622
+ component: "DocumentPanel",
54623
+ importPath: "@/components/core/molecules/DocumentPanel",
54624
+ category: "component"
54625
+ },
54626
+ "document-details": {
54627
+ component: "DocumentDetails",
54628
+ importPath: "@/components/core/molecules/DocumentDetails",
54629
+ category: "display"
54312
54630
  }
54313
54631
  }
54314
54632
  };
@@ -54316,7 +54634,7 @@ var component_mapping_default = {
54316
54634
  // src/patterns/event-contracts.json
54317
54635
  var event_contracts_default = {
54318
54636
  version: "1.0.0",
54319
- exportedAt: "2026-08-25T01:35:07.912Z",
54637
+ exportedAt: "2026-08-28T09:02:57.076Z",
54320
54638
  contracts: {
54321
54639
  form: {
54322
54640
  emits: [
@@ -55546,6 +55864,8 @@ var PATTERN_TYPES = [
55546
55864
  "doc-search",
55547
55865
  "doc-sidebar",
55548
55866
  "doc-toc",
55867
+ "document-details",
55868
+ "document-panel",
55549
55869
  "document-viewer",
55550
55870
  "draw-fx-layer",
55551
55871
  "draw-group",
@@ -55661,7 +55981,7 @@ var PATTERN_TYPES = [
55661
55981
  "relation-select",
55662
55982
  "repeatable-form-section",
55663
55983
  "reply-tree",
55664
- "rich-block-editor",
55984
+ "rich-text-editor",
55665
55985
  "runtime-debugger",
55666
55986
  "scaled-diagram",
55667
55987
  "score-display",