@marktiderman/genesis-notifications 0.4.3 → 0.4.5
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/blocks.d.ts +2 -2
- package/dist/blocks.js +1 -1
- package/dist/blocks.js.map +1 -1
- package/package.json +8 -8
- package/src/blocks.ts +1 -1
package/dist/blocks.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _marktiderman_genesis_config_blocks from '@marktiderman/genesis-config/blocks';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Notifications: the feed, push and email for every domain, on one notifier.
|
|
5
5
|
*
|
|
6
6
|
* @stability Beta
|
|
7
7
|
*/
|
|
8
|
-
declare const notificationsBlock:
|
|
8
|
+
declare const notificationsBlock: _marktiderman_genesis_config_blocks.BlockDef<"notifications", never>;
|
|
9
9
|
|
|
10
10
|
export { notificationsBlock };
|
package/dist/blocks.js
CHANGED
package/dist/blocks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/blocks.ts"],"names":[],"mappings":";;;AAQA,IAAM,OAAA,GAAU,qCAAA;AAOT,IAAM,qBAAqB,WAAA,CAAY;AAAA,EAC5C,EAAA,EAAI,eAAA;AAAA,EACJ,SAAA,EAAW,CAAC,KAAA,EAAO,QAAA,EAAU,QAAQ,CAAA;AAAA,EACrC,WAAA,EAAa;AAAA,IACX,GAAA,EAAK,CAAC,EAAE,EAAA,EAAI,eAAA,EAAiB,KAAA,EAAO,eAAA,EAAiB,IAAA,EAAM,gBAAA,EAAkB,IAAA,EAAM,MAAA,EAAQ,KAAA,EAAO,IAAI,CAAA;AAAA,IACtG,QAAA,EAAU,CAAC,EAAE,EAAA,EAAI,0BAAA,EAA4B,OAAA,EAAS,eAAA,EAAiB,KAAA,EAAO,eAAA,EAAiB,IAAA,EAAM,yBAAA,EAA2B,MAAA,EAAQ,kCAAkC,CAAA;AAAA,IAC1K,MAAA,EAAQ;AAAA,MACN,EAAE,IAAA,EAAM,gBAAA,EAAkB,WAAA,EAAa,uBAAA,EAAyB,UAAU,IAAA,EAAK;AAAA,MAC/E,EAAE,IAAA,EAAM,yBAAA,EAA2B,WAAA,EAAa,wEAAA,EAA0E,UAAU,IAAA,EAAK;AAAA,MACzI,EAAE,IAAA,EAAM,sBAAA,EAAwB,WAAA,EAAa,4DAAA,EAA8D,UAAU,IAAA;AAAK,KAC5H;AAAA,IACA,UAAA,EAAY,CAAC,EAAE,OAAA,EAAS,SAAS,IAAA,EAAM,2CAAA,EAA6C,IAAA,EAAM,sDAAA,EAAwD,CAAA;AAAA,IAClJ,OAAA,EAAS;AAAA,MACP,QAAA,EAAU;AAAA,QACR,EAAE,IAAA,EAAM,WAAA,EAAa,QAAA,EAAU,CAAC,mBAAmB,CAAA,EAAG,MAAA,EAAQ,IAAA,EAAM,QAAA,EAAU,KAAA,EAAM;AAAA,QACpF,EAAE,IAAA,EAAM,eAAA,EAAiB,QAAA,EAAU,CAAC,mBAAmB,CAAA,EAAG,MAAA,EAAQ,IAAA,EAAM,QAAA,EAAU,KAAA;AAAM,OAC1F;AAAA,MACA,KAAA,EAAO;AAAA,QACL,+HAAA;AAAA,QACA,4LAAA;AAAA,QACA,kHAAA;AAAA,QACA,qKAAA;AAAA,QACA;AAAA;AACF;AACF;AAEJ,CAAC","file":"blocks.js","sourcesContent":["/**\n * The notifications block, as a `defineBlock` declaration: what `genesis add\n * notifications` installs (the migration and its pgTAP test), the screens it\n * needs routed, its nav and Settings rows, and what it means for the stores'\n * privacy forms. Node-safe: no React, no Supabase client.\n */\nimport { defineBlock } from \"@marktiderman/genesis-
|
|
1
|
+
{"version":3,"sources":["../src/blocks.ts"],"names":[],"mappings":";;;AAQA,IAAM,OAAA,GAAU,qCAAA;AAOT,IAAM,qBAAqB,WAAA,CAAY;AAAA,EAC5C,EAAA,EAAI,eAAA;AAAA,EACJ,SAAA,EAAW,CAAC,KAAA,EAA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EJ,CAAC","file":"blocks.js","sourcesContent":["/**\n * The notifications block, as a `defineBlock` declaration: what `genesis add\n * notifications` installs (the migration and its pgTAP test), the screens it\n * needs routed, its nav and Settings rows, and what it means for the stores'\n * privacy forms. Node-safe: no React, no Supabase client.\n */\nimport { defineBlock } from \"@marktiderman/genesis-config/blocks\";\n\nconst PACKAGE = \"@marktiderman/genesis-notifications\";\n\n/**\n * Notifications: the feed, push and email for every domain, on one notifier.\n *\n * @stability Beta\n */\nexport const notificationsBlock = defineBlock({\n id: \"notifications\",\n platforms: [\"web\", \"native\", \"server\"],\n contributes: {\n nav: [{ id: \"notifications\", label: \"Notifications\", path: \"/notifications\", icon: \"bell\", order: 50 }],\n settings: [{ id: \"notification-preferences\", section: \"notifications\", title: \"Notifications\", href: \"/settings/notifications\", testID: \"genesis-notifications-settings\" }],\n routes: [\n { path: \"/notifications\", description: \"The notification feed\", signedIn: true },\n { path: \"/settings/notifications\", description: \"Notification preferences: categories by channel, quiet hours, previews\", signedIn: true },\n { path: \"/admin/notifications\", description: \"Admin: the delivery log, suppressed addresses, send a test\", signedIn: true },\n ],\n migrations: [{ package: PACKAGE, file: \"migrations/0001_genesis_notifications.sql\", test: \"migrations/tests/0001_genesis_notifications.test.sql\" }],\n privacy: {\n collects: [\n { type: \"device ID\", purposes: [\"app functionality\"], linked: true, tracking: false },\n { type: \"email address\", purposes: [\"app functionality\"], linked: true, tracking: false },\n ],\n notes: [\n \"Keeps each person's notifications (what the app told them), read and archived, until they are pruned or the person is erased.\",\n \"Keeps this device's push token against the signed-in person; forgotten on sign-out and account deletion. A token moves to another login only on the same phone, and each move is recorded.\",\n \"Keeps notification preferences per person: each category by channel, quiet hours with a time zone, and previews.\",\n \"Keeps a short delivery log (status and an error code, no content) and, for addresses that bounced, complained or unsubscribed with no login, a hash of the address.\",\n \"Erasing a person deletes their notifications, send jobs, devices and preferences, whether or not they have a login.\",\n ],\n },\n },\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marktiderman/genesis-notifications",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
"README.md"
|
|
94
94
|
],
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@marktiderman/genesis-
|
|
96
|
+
"@marktiderman/genesis-config": "^0.11.0"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
99
|
"@marktiderman/genesis-core": ">=1.17.0 <3.0.0",
|
|
100
100
|
"@marktiderman/genesis-native": ">=0.2.0 <1.0.0",
|
|
101
101
|
"@marktiderman/genesis-supabase": ">=0.7.0 <1.0.0",
|
|
102
|
-
"@marktiderman/genesis-ui": "
|
|
102
|
+
"@marktiderman/genesis-ui": ">=2.36.0 <4.0.0",
|
|
103
103
|
"@marktiderman/genesis-ui-native": ">=2.9.0 <4.0.0",
|
|
104
104
|
"@react-email/components": "^1.0.0",
|
|
105
105
|
"@tanstack/react-query": "^5.0.0",
|
|
@@ -133,11 +133,11 @@
|
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
"devDependencies": {
|
|
136
|
-
"@marktiderman/genesis-core": "^2.
|
|
137
|
-
"@marktiderman/genesis-native": "^0.
|
|
138
|
-
"@marktiderman/genesis-supabase": "^0.
|
|
139
|
-
"@marktiderman/genesis-ui": "^2.
|
|
140
|
-
"@marktiderman/genesis-ui-native": "^3.
|
|
136
|
+
"@marktiderman/genesis-core": "^2.19.0",
|
|
137
|
+
"@marktiderman/genesis-native": "^0.12.0",
|
|
138
|
+
"@marktiderman/genesis-supabase": "^0.16.0",
|
|
139
|
+
"@marktiderman/genesis-ui": "^3.2.0",
|
|
140
|
+
"@marktiderman/genesis-ui-native": "^3.14.0",
|
|
141
141
|
"@react-email/components": "1.0.12",
|
|
142
142
|
"@tanstack/react-query": "^5.105.0",
|
|
143
143
|
"@testing-library/react": "^16.3.2",
|
package/src/blocks.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* needs routed, its nav and Settings rows, and what it means for the stores'
|
|
5
5
|
* privacy forms. Node-safe: no React, no Supabase client.
|
|
6
6
|
*/
|
|
7
|
-
import { defineBlock } from "@marktiderman/genesis-
|
|
7
|
+
import { defineBlock } from "@marktiderman/genesis-config/blocks";
|
|
8
8
|
|
|
9
9
|
const PACKAGE = "@marktiderman/genesis-notifications";
|
|
10
10
|
|