@voyantjs/notifications-react 0.108.0 → 0.110.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.
@@ -22,18 +22,8 @@ declare module "@voyantjs/admin" {
22
22
  };
23
23
  }
24
24
  }
25
- export { NotificationDeliveriesHost } from "./notification-deliveries-host.js";
26
- export { NotificationDeliveryDetailDialog } from "./notification-delivery-detail-dialog.js";
27
- export { NotificationReminderRuleDetailHost, type NotificationReminderRuleDetailHostProps, } from "./notification-reminder-rule-detail-host.js";
28
- export { NotificationReminderRuleDialog } from "./notification-reminder-rule-dialog.js";
29
- export { NotificationReminderRulesHost } from "./notification-reminder-rules-host.js";
30
- export { NotificationReminderRunsHost } from "./notification-reminder-runs-host.js";
31
- export { NotificationSettingsHost } from "./notification-settings-host.js";
32
- export { NotificationTemplateAuthoringHelp } from "./notification-template-authoring-help.js";
33
- export { NotificationTemplateDetailHost, type NotificationTemplateDetailHostProps, } from "./notification-template-detail-host.js";
34
- export { NotificationTemplateDialog } from "./notification-template-dialog.js";
35
- export { NotificationTemplatesHost } from "./notification-templates-host.js";
36
- export { RemindersPreviewHost } from "./reminders-preview-host.js";
25
+ export type { NotificationReminderRuleDetailHostProps } from "./notification-reminder-rule-detail-host.js";
26
+ export type { NotificationTemplateDetailHostProps } from "./notification-template-detail-host.js";
37
27
  export interface CreateNotificationsAdminExtensionOptions {
38
28
  /** Mount path of the notifications pages inside the admin workspace. Default `/notifications`. */
39
29
  basePath?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/admin/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA8C,MAAM,iBAAiB,CAAA;AAEjG;;;;;;GAMG;AACH,OAAO,QAAQ,iBAAiB,CAAC;IAC/B,UAAU,iBAAiB;QACzB,4CAA4C;QAC5C,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACl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CAA6C,GACrD,cAAc,CA2FhB"}
@@ -1,19 +1,4 @@
1
1
  import { adminRoutePageModule, defineAdminExtension } from "@voyantjs/admin";
2
- // Packaged admin hosts (packaged-admin RFC Phase 3): the operator-grade
3
- // notifications pages bound to their data wiring + semantic-destination
4
- // navigation. Host route files only bind route params onto these.
5
- export { NotificationDeliveriesHost } from "./notification-deliveries-host.js";
6
- export { NotificationDeliveryDetailDialog } from "./notification-delivery-detail-dialog.js";
7
- export { NotificationReminderRuleDetailHost, } from "./notification-reminder-rule-detail-host.js";
8
- export { NotificationReminderRuleDialog } from "./notification-reminder-rule-dialog.js";
9
- export { NotificationReminderRulesHost } from "./notification-reminder-rules-host.js";
10
- export { NotificationReminderRunsHost } from "./notification-reminder-runs-host.js";
11
- export { NotificationSettingsHost } from "./notification-settings-host.js";
12
- export { NotificationTemplateAuthoringHelp } from "./notification-template-authoring-help.js";
13
- export { NotificationTemplateDetailHost, } from "./notification-template-detail-host.js";
14
- export { NotificationTemplateDialog } from "./notification-template-dialog.js";
15
- export { NotificationTemplatesHost } from "./notification-templates-host.js";
16
- export { RemindersPreviewHost } from "./reminders-preview-host.js";
17
2
  /**
18
3
  * The notifications admin contribution (packaged-admin RFC Phase 3,
19
4
  * `@voyantjs/<domain>-ui/admin` convention).
@@ -53,24 +38,33 @@ export function createNotificationsAdminExtension(options = {}) {
53
38
  id: "notifications-templates-index",
54
39
  path: `${basePath}/templates`,
55
40
  title: templates,
41
+ // Route-backed destination (RFC §4.7 endgame): the key resolves by
42
+ // pure path interpolation of this route, so the host's resolver is
43
+ // generated (`voyant admin generate --destinations`).
44
+ destination: "notificationTemplate.list",
56
45
  page: () => import("./notification-templates-host.js").then((module) => adminRoutePageModule(module.NotificationTemplatesHost)),
57
46
  },
58
47
  {
59
48
  id: "notifications-templates-detail",
60
49
  path: `${basePath}/templates/$id`,
61
50
  title: templates,
51
+ destination: "notificationTemplate.detail",
52
+ destinationParams: { id: "templateId" },
62
53
  page: () => import("./pages/notification-template-detail-page.js"),
63
54
  },
64
55
  {
65
56
  id: "notifications-reminder-rules-index",
66
57
  path: `${basePath}/reminder-rules`,
67
58
  title: reminderRules,
59
+ destination: "notificationReminderRule.list",
68
60
  page: () => import("./notification-reminder-rules-host.js").then((module) => adminRoutePageModule(module.NotificationReminderRulesHost)),
69
61
  },
70
62
  {
71
63
  id: "notifications-reminder-rules-detail",
72
64
  path: `${basePath}/reminder-rules/$id`,
73
65
  title: reminderRules,
66
+ destination: "notificationReminderRule.detail",
67
+ destinationParams: { id: "ruleId" },
74
68
  page: () => import("./pages/notification-reminder-rule-detail-page.js"),
75
69
  },
76
70
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/notifications-react",
3
- "version": "0.108.0",
3
+ "version": "0.110.0",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -76,8 +76,8 @@
76
76
  "react-dom": "^19.0.0",
77
77
  "react-hook-form": "^7.60.0",
78
78
  "zod": "^4.0.0",
79
- "@voyantjs/admin": "^0.108.0",
80
- "@voyantjs/notifications": "^0.108.0",
79
+ "@voyantjs/admin": "^0.110.0",
80
+ "@voyantjs/notifications": "^0.110.0",
81
81
  "@voyantjs/ui": "^0.106.0"
82
82
  },
83
83
  "peerDependenciesMeta": {
@@ -112,9 +112,9 @@
112
112
  "typescript": "^6.0.2",
113
113
  "vitest": "^4.1.2",
114
114
  "zod": "^4.3.6",
115
- "@voyantjs/admin": "^0.108.0",
115
+ "@voyantjs/admin": "^0.110.0",
116
116
  "@voyantjs/i18n": "^0.106.0",
117
- "@voyantjs/notifications": "^0.108.0",
117
+ "@voyantjs/notifications": "^0.110.0",
118
118
  "@voyantjs/react": "^0.104.1",
119
119
  "@voyantjs/ui": "^0.106.0",
120
120
  "@voyantjs/voyant-typescript-config": "^0.1.0"