emailengine-app 2.89.0 → 2.90.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.
- package/.ncurc.js +19 -8
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +44 -0
- package/Dockerfile +5 -1
- package/bin/healthcheck.js +1 -1
- package/copy-static-files.sh +0 -8
- package/data/google-crawlers.json +1 -1
- package/encrypt.js +1 -4
- package/lib/account/field-codec.js +396 -0
- package/lib/account.js +158 -453
- package/lib/api-routes/account-routes.js +42 -6
- package/lib/api-routes/route-metadata.js +5 -2
- package/lib/api-routes/submit-routes.js +15 -2
- package/lib/api-token-auth.js +342 -274
- package/lib/arf-detect.js +174 -149
- package/lib/attachment-size.js +29 -0
- package/lib/autodetect-imap-settings.js +83 -234
- package/lib/consts.js +1 -5
- package/lib/db.js +1 -4
- package/lib/email-client/base-client.js +907 -780
- package/lib/email-client/gmail-client.js +557 -450
- package/lib/email-client/imap/cid-parts.js +61 -0
- package/lib/email-client/imap/mailbox.js +376 -422
- package/lib/email-client/imap/sync-operations.js +239 -178
- package/lib/email-client/new-message-steps.js +168 -2
- package/lib/email-client/outlook/graph-message.js +266 -0
- package/lib/email-client/outlook/subscription-expiry.js +30 -0
- package/lib/email-client/outlook-client.js +652 -808
- package/lib/get-raw-email.js +338 -232
- package/lib/get-secret.js +1 -4
- package/lib/license-subscription.js +60 -0
- package/lib/load-env.js +48 -0
- package/lib/logger.js +1 -4
- package/lib/mcp/tools.js +244 -207
- package/lib/metric-values.js +76 -0
- package/lib/metrics.js +320 -0
- package/lib/oauth/gmail.js +39 -120
- package/lib/oauth/http-request.js +195 -0
- package/lib/oauth/mail-ru.js +24 -58
- package/lib/oauth/outlook.js +37 -137
- package/lib/oauth/pubsub/google.js +176 -117
- package/lib/oauth2-apps.js +440 -463
- package/lib/openapi/build-document.js +10 -10
- package/lib/read-env-value.js +1 -1
- package/lib/route-descriptors.js +78 -0
- package/lib/schemas.js +10 -1
- package/lib/sentry-integrations.js +299 -0
- package/lib/sentry.js +75 -27
- package/lib/sso-routes.js +249 -0
- package/lib/sso.js +29 -6
- package/lib/ui-routes/account-edit-form.js +198 -0
- package/lib/ui-routes/account-page.js +241 -0
- package/lib/ui-routes/account-routes.js +12 -318
- package/lib/ui-routes/auth-routes.js +10 -10
- package/lib/ui-view-context.js +328 -0
- package/lib/utils/public-suffix.js +22 -101
- package/lib/web-safe-html.js +20 -7
- package/lib/worker-metrics.js +82 -0
- package/list-generate.js +2 -5
- package/package.json +23 -19
- package/sbom.json +267 -908
- package/scripts/refresh-test-tokens.js +1 -1
- package/server.js +320 -676
- package/static/css/flyonui.css +1 -1
- package/static/css/src/app.tailwind.css +18 -0
- package/static/js/ee-client.js +2619 -645
- package/static/js/ui.js +12 -2
- package/static/licenses.html +219 -737
- package/translations/messages.pot +64 -53
- package/views/accounts/browse.hbs +19 -1
- package/workers/api.js +20 -451
- package/data/public_suffix_list.dat +0 -16698
package/static/js/ui.js
CHANGED
|
@@ -116,15 +116,23 @@ document.addEventListener(
|
|
|
116
116
|
// way out, which on a confirmation is the worst failure available.
|
|
117
117
|
//
|
|
118
118
|
// Callers fill in their own text first; only the answer is shared.
|
|
119
|
-
|
|
119
|
+
//
|
|
120
|
+
// With `cancelSelector`, a dialog closed without either button (the corner close, Escape, a
|
|
121
|
+
// backdrop click) resolves null instead of false, for a question whose cancel button is itself
|
|
122
|
+
// an action - the message browser's "Save the message you are writing as a draft?", where
|
|
123
|
+
// Cancel means discard and a stray click must not.
|
|
124
|
+
window.uiConfirmModal = (target, okSelector, cancelSelector) => {
|
|
120
125
|
const modal = typeof target === 'string' ? document.querySelector(target) : target;
|
|
121
126
|
const ok = modal && modal.querySelector(okSelector);
|
|
122
127
|
if (!ok) {
|
|
123
128
|
return Promise.resolve(false);
|
|
124
129
|
}
|
|
130
|
+
const cancel = cancelSelector ? modal.querySelector(cancelSelector) : null;
|
|
125
131
|
|
|
126
132
|
return new Promise(resolve => {
|
|
127
|
-
|
|
133
|
+
// null until a button answers; without a cancel button to tell apart, every way out but
|
|
134
|
+
// OK is a plain false
|
|
135
|
+
let confirmed = cancel ? null : false;
|
|
128
136
|
// Recorded in the capture phase on the dialog, which runs before any listener on the
|
|
129
137
|
// button itself. HSOverlay's own handler on the OK button closes the dialog, and when
|
|
130
138
|
// nothing transitions (no fade, or a reader whose browser skips it) the close completes
|
|
@@ -133,6 +141,8 @@ window.uiConfirmModal = (target, okSelector) => {
|
|
|
133
141
|
const onConfirm = e => {
|
|
134
142
|
if (ok.contains(e.target)) {
|
|
135
143
|
confirmed = true;
|
|
144
|
+
} else if (cancel && cancel.contains(e.target)) {
|
|
145
|
+
confirmed = false;
|
|
136
146
|
}
|
|
137
147
|
};
|
|
138
148
|
|