@open-mercato/documents 0.7.1-develop.7113.1.9d83dca10c → 0.7.1-develop.7120.1.a0154ac412

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.
@@ -2,6 +2,7 @@ const notificationTypes = [
2
2
  {
3
3
  type: "documents.comment.mentioned",
4
4
  module: "documents",
5
+ channels: ["in_app", "email"],
5
6
  titleKey: "documents.notifications.comment.mentioned.title",
6
7
  bodyKey: "documents.notifications.comment.mentioned.body",
7
8
  icon: "at-sign",
@@ -15,6 +16,7 @@ const notificationTypes = [
15
16
  {
16
17
  type: "documents.watch.commented",
17
18
  module: "documents",
19
+ channels: ["in_app", "email"],
18
20
  titleKey: "documents.notifications.watch.commented.title",
19
21
  bodyKey: "documents.notifications.watch.commented.body",
20
22
  icon: "bell",
@@ -28,6 +30,7 @@ const notificationTypes = [
28
30
  {
29
31
  type: "documents.watch.changed",
30
32
  module: "documents",
33
+ channels: ["in_app", "email"],
31
34
  titleKey: "documents.notifications.watch.changed.title",
32
35
  bodyKey: "documents.notifications.watch.changed.body",
33
36
  icon: "bell",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/modules/documents/notifications.ts"],
4
- "sourcesContent": ["import type { NotificationTypeDefinition } from '@open-mercato/shared/modules/notifications/types'\n\nexport const notificationTypes: NotificationTypeDefinition[] = [\n {\n type: 'documents.comment.mentioned',\n module: 'documents',\n titleKey: 'documents.notifications.comment.mentioned.title',\n bodyKey: 'documents.notifications.comment.mentioned.body',\n icon: 'at-sign',\n severity: 'info',\n // sourceEntityId stores the comment id, so no {sourceEntityId} href template\n // can resolve to the document URL; creation always passes an explicit\n // document-scoped linkHref (see commands/interceptors.ts).\n actions: [],\n expiresAfterHours: 168,\n },\n {\n type: 'documents.watch.commented',\n module: 'documents',\n titleKey: 'documents.notifications.watch.commented.title',\n bodyKey: 'documents.notifications.watch.commented.body',\n icon: 'bell',\n severity: 'info',\n // sourceEntityId stores the comment id, so no {sourceEntityId} href template\n // can resolve to the document URL; creation always passes an explicit\n // document-scoped linkHref (see commands/interceptors.ts).\n actions: [],\n expiresAfterHours: 168,\n },\n {\n type: 'documents.watch.changed',\n module: 'documents',\n titleKey: 'documents.notifications.watch.changed.title',\n bodyKey: 'documents.notifications.watch.changed.body',\n icon: 'bell',\n severity: 'info',\n // sourceEntityId stores the changed resource id, so no {sourceEntityId}\n // href template can resolve to the document URL; creation always passes\n // an explicit document-scoped linkHref (see commands/interceptors.ts).\n actions: [],\n expiresAfterHours: 168,\n },\n]\n\nexport default notificationTypes\n"],
5
- "mappings": "AAEO,MAAM,oBAAkD;AAAA,EAC7D;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA;AAAA;AAAA;AAAA,IAIV,SAAS,CAAC;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA;AAAA;AAAA;AAAA,IAIV,SAAS,CAAC;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA;AAAA;AAAA;AAAA,IAIV,SAAS,CAAC;AAAA,IACV,mBAAmB;AAAA,EACrB;AACF;AAEA,IAAO,wBAAQ;",
4
+ "sourcesContent": ["import type { NotificationTypeDefinition } from '@open-mercato/shared/modules/notifications/types'\n\nexport const notificationTypes: NotificationTypeDefinition[] = [\n {\n type: 'documents.comment.mentioned',\n module: 'documents',\n channels: ['in_app', 'email'],\n titleKey: 'documents.notifications.comment.mentioned.title',\n bodyKey: 'documents.notifications.comment.mentioned.body',\n icon: 'at-sign',\n severity: 'info',\n // sourceEntityId stores the comment id, so no {sourceEntityId} href template\n // can resolve to the document URL; creation always passes an explicit\n // document-scoped linkHref (see commands/interceptors.ts).\n actions: [],\n expiresAfterHours: 168,\n },\n {\n type: 'documents.watch.commented',\n module: 'documents',\n channels: ['in_app', 'email'],\n titleKey: 'documents.notifications.watch.commented.title',\n bodyKey: 'documents.notifications.watch.commented.body',\n icon: 'bell',\n severity: 'info',\n // sourceEntityId stores the comment id, so no {sourceEntityId} href template\n // can resolve to the document URL; creation always passes an explicit\n // document-scoped linkHref (see commands/interceptors.ts).\n actions: [],\n expiresAfterHours: 168,\n },\n {\n type: 'documents.watch.changed',\n module: 'documents',\n channels: ['in_app', 'email'],\n titleKey: 'documents.notifications.watch.changed.title',\n bodyKey: 'documents.notifications.watch.changed.body',\n icon: 'bell',\n severity: 'info',\n // sourceEntityId stores the changed resource id, so no {sourceEntityId}\n // href template can resolve to the document URL; creation always passes\n // an explicit document-scoped linkHref (see commands/interceptors.ts).\n actions: [],\n expiresAfterHours: 168,\n },\n]\n\nexport default notificationTypes\n"],
5
+ "mappings": "AAEO,MAAM,oBAAkD;AAAA,EAC7D;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU,CAAC,UAAU,OAAO;AAAA,IAC5B,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA;AAAA;AAAA;AAAA,IAIV,SAAS,CAAC;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU,CAAC,UAAU,OAAO;AAAA,IAC5B,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA;AAAA;AAAA;AAAA,IAIV,SAAS,CAAC;AAAA,IACV,mBAAmB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU,CAAC,UAAU,OAAO;AAAA,IAC5B,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA;AAAA;AAAA;AAAA,IAIV,SAAS,CAAC;AAAA,IACV,mBAAmB;AAAA,EACrB;AACF;AAEA,IAAO,wBAAQ;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-mercato/documents",
3
- "version": "0.7.1-develop.7113.1.9d83dca10c",
3
+ "version": "0.7.1-develop.7120.1.a0154ac412",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -75,8 +75,8 @@
75
75
  "@hocuspocus/server": "^4.4.0",
76
76
  "@hocuspocus/transformer": "^4.3.0",
77
77
  "@mikro-orm/core": "^7.1.8",
78
- "@open-mercato/events": "0.7.1-develop.7113.1.9d83dca10c",
79
- "@open-mercato/ui": "0.7.1-develop.7113.1.9d83dca10c",
78
+ "@open-mercato/events": "0.7.1-develop.7120.1.a0154ac412",
79
+ "@open-mercato/ui": "0.7.1-develop.7120.1.a0154ac412",
80
80
  "@tiptap/core": "^3",
81
81
  "@tiptap/extension-bubble-menu": "^3",
82
82
  "@tiptap/extension-collaboration": "^3.27.3",
@@ -113,13 +113,13 @@
113
113
  },
114
114
  "peerDependencies": {
115
115
  "@mikro-orm/postgresql": "^7.0.14",
116
- "@open-mercato/shared": "0.7.1-develop.7113.1.9d83dca10c",
116
+ "@open-mercato/shared": "0.7.1-develop.7120.1.a0154ac412",
117
117
  "react": "^19.0.0",
118
118
  "react-dom": "^19.0.0"
119
119
  },
120
120
  "devDependencies": {
121
- "@open-mercato/core": "0.7.1-develop.7113.1.9d83dca10c",
122
- "@open-mercato/shared": "0.7.1-develop.7113.1.9d83dca10c",
121
+ "@open-mercato/core": "0.7.1-develop.7120.1.a0154ac412",
122
+ "@open-mercato/shared": "0.7.1-develop.7120.1.a0154ac412",
123
123
  "@types/jest": "^30.0.0",
124
124
  "@types/pg": "^8.20.0",
125
125
  "@types/react": "^19.2.16",
@@ -4,6 +4,7 @@ export const notificationTypes: NotificationTypeDefinition[] = [
4
4
  {
5
5
  type: 'documents.comment.mentioned',
6
6
  module: 'documents',
7
+ channels: ['in_app', 'email'],
7
8
  titleKey: 'documents.notifications.comment.mentioned.title',
8
9
  bodyKey: 'documents.notifications.comment.mentioned.body',
9
10
  icon: 'at-sign',
@@ -17,6 +18,7 @@ export const notificationTypes: NotificationTypeDefinition[] = [
17
18
  {
18
19
  type: 'documents.watch.commented',
19
20
  module: 'documents',
21
+ channels: ['in_app', 'email'],
20
22
  titleKey: 'documents.notifications.watch.commented.title',
21
23
  bodyKey: 'documents.notifications.watch.commented.body',
22
24
  icon: 'bell',
@@ -30,6 +32,7 @@ export const notificationTypes: NotificationTypeDefinition[] = [
30
32
  {
31
33
  type: 'documents.watch.changed',
32
34
  module: 'documents',
35
+ channels: ['in_app', 'email'],
33
36
  titleKey: 'documents.notifications.watch.changed.title',
34
37
  bodyKey: 'documents.notifications.watch.changed.body',
35
38
  icon: 'bell',