@crvouga/mockingbird-notifications 0.14.0 → 0.15.1
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/README.md +1 -1
- package/dist/admin-gateway.js +2 -2
- package/dist/browser.bundle-CHF65ZZT.js +6 -0
- package/dist/{browser.bundle-MOA3BSWW.js.map → browser.bundle-CHF65ZZT.js.map} +1 -1
- package/dist/{chunk-5MRZJQ6J.js → chunk-DWOWEHXO.js} +3 -3
- package/dist/{chunk-ZIE3JCV6.js → chunk-RLWOOBXV.js} +2 -2
- package/dist/{chunk-ZIE3JCV6.js.map → chunk-RLWOOBXV.js.map} +1 -1
- package/dist/{chunk-NMW2EZL2.js → chunk-SPAPAHGT.js} +2 -2
- package/dist/{chunk-T6QHUV5K.js → chunk-UHOMT5RV.js} +3 -3
- package/dist/cli.js +4 -4
- package/dist/{client.bundle-YOZJSCGX.js → client.bundle-6XOKJ6BJ.js} +2 -2
- package/dist/{client.bundle-YOZJSCGX.js.map → client.bundle-6XOKJ6BJ.js.map} +1 -1
- package/dist/{document-JPNN2BT5.js → document-UDQU5ZAL.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{page-J3NUKUUA.js → page-X7KT2BPN.js} +302 -163
- package/dist/page-X7KT2BPN.js.map +7 -0
- package/dist/{server-Q5XLVMT2.js → server-32IZ5ZMR.js} +894 -893
- package/dist/{server-Q5XLVMT2.js.map → server-32IZ5ZMR.js.map} +2 -2
- package/dist/server.js +4 -4
- package/dist/ui.d.ts +12 -0
- package/dist/ui.js +8290 -8132
- package/dist/ui.js.map +2 -2
- package/package.json +13 -13
- package/dist/browser.bundle-MOA3BSWW.js +0 -6
- package/dist/page-J3NUKUUA.js.map +0 -7
- /package/dist/{chunk-5MRZJQ6J.js.map → chunk-DWOWEHXO.js.map} +0 -0
- /package/dist/{chunk-NMW2EZL2.js.map → chunk-SPAPAHGT.js.map} +0 -0
- /package/dist/{chunk-T6QHUV5K.js.map → chunk-UHOMT5RV.js.map} +0 -0
- /package/dist/{document-JPNN2BT5.js.map → document-UDQU5ZAL.js.map} +0 -0
package/dist/server.js
CHANGED
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
DEFAULT_PORT,
|
|
3
3
|
createServer,
|
|
4
4
|
manifestFile
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-UHOMT5RV.js";
|
|
6
|
+
import "./chunk-DWOWEHXO.js";
|
|
7
7
|
import {
|
|
8
8
|
ADMIN_BRANDS_URL,
|
|
9
9
|
adminGateway
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-SPAPAHGT.js";
|
|
11
|
+
import "./chunk-RLWOOBXV.js";
|
|
12
12
|
export {
|
|
13
13
|
ADMIN_BRANDS_URL,
|
|
14
14
|
DEFAULT_PORT,
|
package/dist/ui.d.ts
CHANGED
|
@@ -41,6 +41,12 @@ type AppOptions = {
|
|
|
41
41
|
motion?: MotionPreference;
|
|
42
42
|
/** Fill the host element and scroll inside it, for a tab or panel in another app. */
|
|
43
43
|
embedded?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Draw the shared app shell around the UI (the top bar with the title and the theme switch), as
|
|
46
|
+
* a full page in its own right: the same frame as the admin, the System screen and the example
|
|
47
|
+
* apps. The host scrolls. Overrides `embedded`.
|
|
48
|
+
*/
|
|
49
|
+
shell?: boolean;
|
|
44
50
|
/** Which devices to show. Default all of them: `sms`, `push`, `email` and `chat`. */
|
|
45
51
|
channels?: Channel[];
|
|
46
52
|
/**
|
|
@@ -60,6 +66,12 @@ type AppOptions = {
|
|
|
60
66
|
scale?: number;
|
|
61
67
|
/** Called with each batch of new notifications. */
|
|
62
68
|
onArrive?: (added: Notification[]) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Called with the address of a link clicked in a message (an email, a text, a chat message).
|
|
71
|
+
* Return true when the embedder followed it itself, such as a link back into its own app in
|
|
72
|
+
* the same page; otherwise the link opens in a new tab as usual.
|
|
73
|
+
*/
|
|
74
|
+
openLink?: (url: string) => boolean;
|
|
63
75
|
/** Fixed notifications to draw when not live. */
|
|
64
76
|
items?: Notification[];
|
|
65
77
|
sources?: SourceStatus[];
|