diff options
author | 2022-03-28 23:37:15 +0200 | |
---|---|---|
committer | 2022-05-16 00:54:56 +0200 | |
commit | 04555cc62c9cded08c3090288fa372d961c50737 (patch) | |
tree | 4566893892216446dfe24490c98881316b97cb41 /packages/shared/src/schemas | |
parent | design: Increase location bar UI density (diff) | |
download | sophie-04555cc62c9cded08c3090288fa372d961c50737.tar.gz sophie-04555cc62c9cded08c3090288fa372d961c50737.tar.zst sophie-04555cc62c9cded08c3090288fa372d961c50737.zip |
feat: New window banner
* Add renderer code for notification banners with buttons
* Handle new window open requests by denying them and displaying
a notification
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'packages/shared/src/schemas')
-rw-r--r-- | packages/shared/src/schemas/ServiceAction.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/shared/src/schemas/ServiceAction.ts b/packages/shared/src/schemas/ServiceAction.ts index da0b96b..cfaba08 100644 --- a/packages/shared/src/schemas/ServiceAction.ts +++ b/packages/shared/src/schemas/ServiceAction.ts | |||
@@ -49,6 +49,24 @@ export const ServiceAction = /* @__PURE__ */ (() => | |||
49 | z.object({ | 49 | z.object({ |
50 | action: z.literal('open-current-url-in-external-browser'), | 50 | action: z.literal('open-current-url-in-external-browser'), |
51 | }), | 51 | }), |
52 | z.object({ | ||
53 | action: z.literal('follow-popup'), | ||
54 | url: z.string(), | ||
55 | }), | ||
56 | z.object({ | ||
57 | action: z.literal('open-popup-in-external-browser'), | ||
58 | url: z.string(), | ||
59 | }), | ||
60 | z.object({ | ||
61 | action: z.literal('open-all-popups-in-external-browser'), | ||
62 | }), | ||
63 | z.object({ | ||
64 | action: z.literal('dismiss-popup'), | ||
65 | url: z.string(), | ||
66 | }), | ||
67 | z.object({ | ||
68 | action: z.literal('dismiss-all-popups'), | ||
69 | }), | ||
52 | ]))(); | 70 | ]))(); |
53 | 71 | ||
54 | /* | 72 | /* |