@almadar/patterns 2.20.2 → 2.20.3
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/component-mapping.json +1 -1
- package/dist/event-contracts.json +1 -1
- package/dist/index.d.ts +78 -0
- package/dist/index.js +62 -7
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +60 -5
- package/dist/registry.json +60 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-05-
|
|
3
|
+
"exportedAt": "2026-05-04T18:38:26.384Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -8711,7 +8711,7 @@
|
|
|
8711
8711
|
"types": [
|
|
8712
8712
|
"array"
|
|
8713
8713
|
],
|
|
8714
|
-
"description": "Navigation items"
|
|
8714
|
+
"description": "Navigation items. Apps that need a Settings page should add it as a navItems entry, not depend on baked-in chrome."
|
|
8715
8715
|
},
|
|
8716
8716
|
"user": {
|
|
8717
8717
|
"types": [
|
|
@@ -8723,19 +8723,74 @@
|
|
|
8723
8723
|
"types": [
|
|
8724
8724
|
"node"
|
|
8725
8725
|
],
|
|
8726
|
-
"description": "Header actions (
|
|
8726
|
+
"description": "Header actions (extra slots beyond bell/search/theme)."
|
|
8727
8727
|
},
|
|
8728
8728
|
"showSearch": {
|
|
8729
8729
|
"types": [
|
|
8730
8730
|
"boolean"
|
|
8731
8731
|
],
|
|
8732
|
-
"description": "Show search in
|
|
8732
|
+
"description": "Show the top-bar search box. Default `false` — opt in by setting `searchEvent` (any truthy value implies showSearch) or this flag."
|
|
8733
|
+
},
|
|
8734
|
+
"searchEvent": {
|
|
8735
|
+
"types": [
|
|
8736
|
+
"string"
|
|
8737
|
+
],
|
|
8738
|
+
"description": "Declarative search event — fires `UI:{searchEvent}` on the bus when the user submits the search box (Enter key). Setting this implies `showSearch=true`. Use `onSearchSubmit` for direct React usage instead.",
|
|
8739
|
+
"kind": "event-ref",
|
|
8740
|
+
"emitPayloadSchema": [
|
|
8741
|
+
{
|
|
8742
|
+
"name": "value",
|
|
8743
|
+
"type": "string",
|
|
8744
|
+
"required": true
|
|
8745
|
+
}
|
|
8746
|
+
]
|
|
8747
|
+
},
|
|
8748
|
+
"onSearchSubmit": {
|
|
8749
|
+
"types": [
|
|
8750
|
+
"function"
|
|
8751
|
+
],
|
|
8752
|
+
"description": "React-side search submit callback. Used when the host wires the layout directly (not via render-ui pattern resolution).",
|
|
8753
|
+
"kind": "callback",
|
|
8754
|
+
"callbackArgs": [
|
|
8755
|
+
{
|
|
8756
|
+
"name": "value",
|
|
8757
|
+
"type": "string"
|
|
8758
|
+
}
|
|
8759
|
+
]
|
|
8760
|
+
},
|
|
8761
|
+
"notifications": {
|
|
8762
|
+
"types": [
|
|
8763
|
+
"array"
|
|
8764
|
+
],
|
|
8765
|
+
"description": "Notification list. Pass an empty array to show the bell with no badge; omit / pass null to hide the bell entirely."
|
|
8766
|
+
},
|
|
8767
|
+
"notificationClickEvent": {
|
|
8768
|
+
"types": [
|
|
8769
|
+
"string"
|
|
8770
|
+
],
|
|
8771
|
+
"description": "Declarative bell click event — fires `UI:{notificationClickEvent}` on the bus with an empty payload when the user clicks the bell.",
|
|
8772
|
+
"kind": "event-ref",
|
|
8773
|
+
"emitPayloadSchema": []
|
|
8774
|
+
},
|
|
8775
|
+
"onNotificationClick": {
|
|
8776
|
+
"types": [
|
|
8777
|
+
"function"
|
|
8778
|
+
],
|
|
8779
|
+
"description": "React-side bell click callback.",
|
|
8780
|
+
"kind": "callback",
|
|
8781
|
+
"callbackArgs": []
|
|
8782
|
+
},
|
|
8783
|
+
"showThemeToggle": {
|
|
8784
|
+
"types": [
|
|
8785
|
+
"boolean"
|
|
8786
|
+
],
|
|
8787
|
+
"description": "Show the theme toggle button in the header. Default `true` — universally useful for a11y / dark mode."
|
|
8733
8788
|
},
|
|
8734
8789
|
"sidebarFooter": {
|
|
8735
8790
|
"types": [
|
|
8736
8791
|
"node"
|
|
8737
8792
|
],
|
|
8738
|
-
"description": "Custom sidebar footer"
|
|
8793
|
+
"description": "Custom sidebar footer (optional). When omitted, the sidebar has no footer — apps that need Settings/etc. add them via navItems."
|
|
8739
8794
|
},
|
|
8740
8795
|
"onSignOut": {
|
|
8741
8796
|
"types": [
|
package/dist/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-05-
|
|
3
|
+
"exportedAt": "2026-05-04T18:38:26.384Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -8711,7 +8711,7 @@
|
|
|
8711
8711
|
"types": [
|
|
8712
8712
|
"array"
|
|
8713
8713
|
],
|
|
8714
|
-
"description": "Navigation items"
|
|
8714
|
+
"description": "Navigation items. Apps that need a Settings page should add it as a navItems entry, not depend on baked-in chrome."
|
|
8715
8715
|
},
|
|
8716
8716
|
"user": {
|
|
8717
8717
|
"types": [
|
|
@@ -8723,19 +8723,74 @@
|
|
|
8723
8723
|
"types": [
|
|
8724
8724
|
"node"
|
|
8725
8725
|
],
|
|
8726
|
-
"description": "Header actions (
|
|
8726
|
+
"description": "Header actions (extra slots beyond bell/search/theme)."
|
|
8727
8727
|
},
|
|
8728
8728
|
"showSearch": {
|
|
8729
8729
|
"types": [
|
|
8730
8730
|
"boolean"
|
|
8731
8731
|
],
|
|
8732
|
-
"description": "Show search in
|
|
8732
|
+
"description": "Show the top-bar search box. Default `false` — opt in by setting `searchEvent` (any truthy value implies showSearch) or this flag."
|
|
8733
|
+
},
|
|
8734
|
+
"searchEvent": {
|
|
8735
|
+
"types": [
|
|
8736
|
+
"string"
|
|
8737
|
+
],
|
|
8738
|
+
"description": "Declarative search event — fires `UI:{searchEvent}` on the bus when the user submits the search box (Enter key). Setting this implies `showSearch=true`. Use `onSearchSubmit` for direct React usage instead.",
|
|
8739
|
+
"kind": "event-ref",
|
|
8740
|
+
"emitPayloadSchema": [
|
|
8741
|
+
{
|
|
8742
|
+
"name": "value",
|
|
8743
|
+
"type": "string",
|
|
8744
|
+
"required": true
|
|
8745
|
+
}
|
|
8746
|
+
]
|
|
8747
|
+
},
|
|
8748
|
+
"onSearchSubmit": {
|
|
8749
|
+
"types": [
|
|
8750
|
+
"function"
|
|
8751
|
+
],
|
|
8752
|
+
"description": "React-side search submit callback. Used when the host wires the layout directly (not via render-ui pattern resolution).",
|
|
8753
|
+
"kind": "callback",
|
|
8754
|
+
"callbackArgs": [
|
|
8755
|
+
{
|
|
8756
|
+
"name": "value",
|
|
8757
|
+
"type": "string"
|
|
8758
|
+
}
|
|
8759
|
+
]
|
|
8760
|
+
},
|
|
8761
|
+
"notifications": {
|
|
8762
|
+
"types": [
|
|
8763
|
+
"array"
|
|
8764
|
+
],
|
|
8765
|
+
"description": "Notification list. Pass an empty array to show the bell with no badge; omit / pass null to hide the bell entirely."
|
|
8766
|
+
},
|
|
8767
|
+
"notificationClickEvent": {
|
|
8768
|
+
"types": [
|
|
8769
|
+
"string"
|
|
8770
|
+
],
|
|
8771
|
+
"description": "Declarative bell click event — fires `UI:{notificationClickEvent}` on the bus with an empty payload when the user clicks the bell.",
|
|
8772
|
+
"kind": "event-ref",
|
|
8773
|
+
"emitPayloadSchema": []
|
|
8774
|
+
},
|
|
8775
|
+
"onNotificationClick": {
|
|
8776
|
+
"types": [
|
|
8777
|
+
"function"
|
|
8778
|
+
],
|
|
8779
|
+
"description": "React-side bell click callback.",
|
|
8780
|
+
"kind": "callback",
|
|
8781
|
+
"callbackArgs": []
|
|
8782
|
+
},
|
|
8783
|
+
"showThemeToggle": {
|
|
8784
|
+
"types": [
|
|
8785
|
+
"boolean"
|
|
8786
|
+
],
|
|
8787
|
+
"description": "Show the theme toggle button in the header. Default `true` — universally useful for a11y / dark mode."
|
|
8733
8788
|
},
|
|
8734
8789
|
"sidebarFooter": {
|
|
8735
8790
|
"types": [
|
|
8736
8791
|
"node"
|
|
8737
8792
|
],
|
|
8738
|
-
"description": "Custom sidebar footer"
|
|
8793
|
+
"description": "Custom sidebar footer (optional). When omitted, the sidebar has no footer — apps that need Settings/etc. add them via navItems."
|
|
8739
8794
|
},
|
|
8740
8795
|
"onSignOut": {
|
|
8741
8796
|
"types": [
|