Files
metabuilder/packages/notification_center/events/handlers.json
git af80a8e761 feat(form_builder): add contact form with validation and submission handling
- Created contact-form.json defining the structure and validation for the contact form.
- Added package.json for form_builder package with dependencies and exports.
- Implemented functions.json for form field handlers and validation functions.
- Configured storybook for form_builder with various form field stories.
- Established style tokens for form fields including colors and spacing.
- Defined validation patterns and functions for form fields in validators.json.

feat(notification_center): introduce notification components and event handling

- Added ui.json for notification components including summary, toast, and list.
- Created schema.json for Notification entity with fields and relations.
- Implemented event handlers for notification events in handlers.json.
- Established package.json for notification_center with components and scripts.
- Developed functions.json for notification management and display functions.
- Configured storybook for notification_center with various notification stories.
- Defined style tokens for notifications including colors and spacing.
2026-01-02 15:34:42 +00:00

49 lines
1.3 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/events.schema.json",
"schemaVersion": "1.0.0",
"package": "notification_center",
"description": "Notification event definitions and handlers",
"events": [
{
"name": "notification.created",
"version": "1.0.0",
"description": "Fired when a new notification is created",
"payload": "Notification"
},
{
"name": "notification.read",
"version": "1.0.0",
"description": "Fired when a notification is marked as read",
"payload": {
"notificationId": "string",
"userId": "string"
}
},
{
"name": "notification.dismissed",
"version": "1.0.0",
"description": "Fired when a notification is dismissed",
"payload": {
"notificationId": "string",
"userId": "string"
}
}
],
"subscribers": [
{
"id": "show_toast_on_create",
"name": "Show Toast on Notification",
"events": ["notification.created"],
"handler": "toast.showToast",
"description": "Display toast when new notification arrives"
},
{
"id": "update_count_on_read",
"name": "Update Count on Read",
"events": ["notification.read"],
"handler": "summary.prepareSummary",
"description": "Update notification count when marked as read"
}
]
}