ghost 5.76.2 → 5.78.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/components/tryghost-adapter-cache-memory-ttl-5.78.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.78.0.tgz +0 -0
- package/components/{tryghost-adapter-manager-5.76.2.tgz → tryghost-adapter-manager-5.78.0.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.78.0.tgz +0 -0
- package/components/tryghost-api-framework-5.78.0.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.78.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.78.0.tgz +0 -0
- package/components/{tryghost-bookshelf-repository-5.76.2.tgz → tryghost-bookshelf-repository-5.78.0.tgz} +0 -0
- package/components/{tryghost-bootstrap-socket-5.76.2.tgz → tryghost-bootstrap-socket-5.78.0.tgz} +0 -0
- package/components/tryghost-collections-5.78.0.tgz +0 -0
- package/components/tryghost-constants-5.78.0.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.78.0.tgz +0 -0
- package/components/{tryghost-data-generator-5.76.2.tgz → tryghost-data-generator-5.78.0.tgz} +0 -0
- package/components/tryghost-domain-events-5.78.0.tgz +0 -0
- package/components/tryghost-donations-5.78.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.78.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.78.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.78.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.78.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.78.0.tgz +0 -0
- package/components/{tryghost-email-events-5.76.2.tgz → tryghost-email-events-5.78.0.tgz} +0 -0
- package/components/tryghost-email-service-5.78.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.78.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.78.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.78.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.78.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.78.0.tgz +0 -0
- package/components/tryghost-i18n-5.78.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.78.0.tgz +0 -0
- package/components/tryghost-importer-revue-5.78.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.78.0.tgz +0 -0
- package/components/{tryghost-job-manager-5.76.2.tgz → tryghost-job-manager-5.78.0.tgz} +0 -0
- package/components/tryghost-link-redirects-5.78.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.78.0.tgz +0 -0
- package/components/tryghost-link-tracking-5.78.0.tgz +0 -0
- package/components/{tryghost-magic-link-5.76.2.tgz → tryghost-magic-link-5.78.0.tgz} +0 -0
- package/components/tryghost-mail-events-5.78.0.tgz +0 -0
- package/components/{tryghost-mailgun-client-5.76.2.tgz → tryghost-mailgun-client-5.78.0.tgz} +0 -0
- package/components/{tryghost-member-attribution-5.76.2.tgz → tryghost-member-attribution-5.78.0.tgz} +0 -0
- package/components/{tryghost-member-events-5.76.2.tgz → tryghost-member-events-5.78.0.tgz} +0 -0
- package/components/tryghost-members-api-5.78.0.tgz +0 -0
- package/components/tryghost-members-csv-5.78.0.tgz +0 -0
- package/components/{tryghost-members-events-service-5.76.2.tgz → tryghost-members-events-service-5.78.0.tgz} +0 -0
- package/components/tryghost-members-importer-5.78.0.tgz +0 -0
- package/components/{tryghost-members-offers-5.76.2.tgz → tryghost-members-offers-5.78.0.tgz} +0 -0
- package/components/tryghost-members-payments-5.78.0.tgz +0 -0
- package/components/{tryghost-members-ssr-5.76.2.tgz → tryghost-members-ssr-5.78.0.tgz} +0 -0
- package/components/{tryghost-members-stripe-service-5.76.2.tgz → tryghost-members-stripe-service-5.78.0.tgz} +0 -0
- package/components/tryghost-mentions-email-report-5.78.0.tgz +0 -0
- package/components/tryghost-milestones-5.78.0.tgz +0 -0
- package/components/tryghost-minifier-5.78.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.78.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.78.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.78.0.tgz +0 -0
- package/components/{tryghost-mw-error-handler-5.76.2.tgz → tryghost-mw-error-handler-5.78.0.tgz} +0 -0
- package/components/tryghost-mw-session-from-token-5.78.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.78.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.78.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.78.0.tgz +0 -0
- package/components/{tryghost-nql-filter-expansions-5.76.2.tgz → tryghost-nql-filter-expansions-5.78.0.tgz} +0 -0
- package/components/tryghost-oembed-service-5.78.0.tgz +0 -0
- package/components/{tryghost-package-json-5.76.2.tgz → tryghost-package-json-5.78.0.tgz} +0 -0
- package/components/tryghost-post-events-5.78.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.78.0.tgz +0 -0
- package/components/tryghost-posts-service-5.78.0.tgz +0 -0
- package/components/{tryghost-recommendations-5.76.2.tgz → tryghost-recommendations-5.78.0.tgz} +0 -0
- package/components/{tryghost-referrers-5.76.2.tgz → tryghost-referrers-5.78.0.tgz} +0 -0
- package/components/{tryghost-security-5.76.2.tgz → tryghost-security-5.78.0.tgz} +0 -0
- package/components/{tryghost-session-service-5.76.2.tgz → tryghost-session-service-5.78.0.tgz} +0 -0
- package/components/tryghost-settings-path-manager-5.78.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.78.0.tgz +0 -0
- package/components/{tryghost-staff-service-5.76.2.tgz → tryghost-staff-service-5.78.0.tgz} +0 -0
- package/components/tryghost-stats-service-5.78.0.tgz +0 -0
- package/components/tryghost-tiers-5.78.0.tgz +0 -0
- package/components/tryghost-update-check-service-5.78.0.tgz +0 -0
- package/components/{tryghost-verification-trigger-5.76.2.tgz → tryghost-verification-trigger-5.78.0.tgz} +0 -0
- package/components/tryghost-version-notifications-data-service-5.78.0.tgz +0 -0
- package/components/{tryghost-webmentions-5.76.2.tgz → tryghost-webmentions-5.78.0.tgz} +0 -0
- package/core/boot.js +3 -1
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +1 -1
- package/core/built/admin/assets/admin-x-demo/{index-3d0e9e6b.mjs → index-eee22c84.mjs} +348 -346
- package/core/built/admin/assets/admin-x-demo/{modals-f20fa267.mjs → modals-e4b12fba.mjs} +38 -38
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-84bd3824.mjs → CodeEditorView-c3b34635.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-6cc60dce.mjs → index-28680861.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-c54bcc5d.mjs → index-8808e054.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-d65cac5f.mjs → index-99bd65a2.mjs} +2579 -2583
- package/core/built/admin/assets/admin-x-settings/{modals-2805e75e.mjs → modals-f491bd44.mjs} +4809 -4814
- package/core/built/admin/assets/{chunk.143.d41a3a112d0cf7035db0.js → chunk.143.6e73a50be0209a7256b6.js} +5 -5
- package/core/built/admin/assets/{chunk.178.28c881b3559706a13f57.js → chunk.178.75b9357c8d68006957a4.js} +4 -4
- package/core/built/admin/assets/{chunk.664.0bd9e83a6b03130112ae.js → chunk.664.99d0951b803d7ec00d8b.js} +2 -2
- package/core/built/admin/assets/{ghost-971615b195b524bf97f678a350865195.js → ghost-e4af0146175c424ff8b5bfbee8f04258.js} +74 -91
- package/core/built/admin/index.html +4 -4
- package/core/frontend/helpers/get.js +38 -22
- package/core/frontend/services/routing/controllers/previews.js +3 -2
- package/core/server/api/endpoints/newsletters.js +1 -2
- package/core/server/api/endpoints/stats.js +40 -5
- package/core/server/api/endpoints/utils/serializers/output/mappers/newsletters.js +12 -0
- package/core/server/data/db/ConnectionPoolInstrumentation.js +142 -0
- package/core/server/data/db/connection.js +6 -0
- package/core/server/data/db/index.js +9 -0
- package/core/server/services/explore/ExploreService.js +1 -1
- package/core/server/services/newsletters/NewslettersService.js +22 -3
- package/core/server/services/posts-public/service.js +4 -20
- package/core/server/services/segment/index.js +0 -14
- package/core/server/services/stats/service.js +26 -3
- package/core/server/services/tags-public/service.js +4 -19
- package/core/shared/labs.js +3 -3
- package/core/shared/sentry.js +28 -1
- package/package.json +150 -152
- package/yarn.lock +569 -1504
- package/components/tryghost-adapter-cache-memory-ttl-5.76.2.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.76.2.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.76.2.tgz +0 -0
- package/components/tryghost-api-framework-5.76.2.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.76.2.tgz +0 -0
- package/components/tryghost-audience-feedback-5.76.2.tgz +0 -0
- package/components/tryghost-collections-5.76.2.tgz +0 -0
- package/components/tryghost-constants-5.76.2.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.76.2.tgz +0 -0
- package/components/tryghost-domain-events-5.76.2.tgz +0 -0
- package/components/tryghost-donations-5.76.2.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.76.2.tgz +0 -0
- package/components/tryghost-email-addresses-5.76.2.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.76.2.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.76.2.tgz +0 -0
- package/components/tryghost-email-content-generator-5.76.2.tgz +0 -0
- package/components/tryghost-email-service-5.76.2.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.76.2.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.76.2.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.76.2.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.76.2.tgz +0 -0
- package/components/tryghost-extract-api-key-5.76.2.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.76.2.tgz +0 -0
- package/components/tryghost-i18n-5.76.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.76.2.tgz +0 -0
- package/components/tryghost-importer-revue-5.76.2.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.76.2.tgz +0 -0
- package/components/tryghost-link-redirects-5.76.2.tgz +0 -0
- package/components/tryghost-link-replacer-5.76.2.tgz +0 -0
- package/components/tryghost-link-tracking-5.76.2.tgz +0 -0
- package/components/tryghost-mail-events-5.76.2.tgz +0 -0
- package/components/tryghost-members-api-5.76.2.tgz +0 -0
- package/components/tryghost-members-csv-5.76.2.tgz +0 -0
- package/components/tryghost-members-importer-5.76.2.tgz +0 -0
- package/components/tryghost-members-payments-5.76.2.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.76.2.tgz +0 -0
- package/components/tryghost-milestones-5.76.2.tgz +0 -0
- package/components/tryghost-minifier-5.76.2.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.76.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.76.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.76.2.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.76.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.76.2.tgz +0 -0
- package/components/tryghost-mw-version-match-5.76.2.tgz +0 -0
- package/components/tryghost-mw-vhost-5.76.2.tgz +0 -0
- package/components/tryghost-oembed-service-5.76.2.tgz +0 -0
- package/components/tryghost-post-events-5.76.2.tgz +0 -0
- package/components/tryghost-post-revisions-5.76.2.tgz +0 -0
- package/components/tryghost-posts-service-5.76.2.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.76.2.tgz +0 -0
- package/components/tryghost-slack-notifications-5.76.2.tgz +0 -0
- package/components/tryghost-stats-service-5.76.2.tgz +0 -0
- package/components/tryghost-tiers-5.76.2.tgz +0 -0
- package/components/tryghost-update-check-service-5.76.2.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.76.2.tgz +0 -0
- package/core/server/services/segment/ModelEventsAnalytics.js +0 -108
- /package/core/built/admin/assets/{chunk.664.0bd9e83a6b03130112ae.js.LICENSE.txt → chunk.664.99d0951b803d7ec00d8b.js.LICENSE.txt} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as e, j as s, u as O, a as te, b as U, d as $, B as K, e as ae, H as T, N as D, f as le } from "./index-
|
|
2
|
-
const
|
|
1
|
+
import { c as e, j as s, u as O, a as te, b as U, d as $, B as K, e as ae, H as T, N as D, f as le } from "./index-eee22c84.mjs";
|
|
2
|
+
const oe = ({
|
|
3
3
|
shiftY: l,
|
|
4
|
-
footerBgColorClass:
|
|
4
|
+
footerBgColorClass: n = "bg-white dark:bg-black",
|
|
5
5
|
contentBgColorClass: i = "bg-white dark:bg-black",
|
|
6
6
|
height: c = 96,
|
|
7
7
|
children: m
|
|
@@ -14,7 +14,7 @@ const ne = ({
|
|
|
14
14
|
), j = "0", h = e(
|
|
15
15
|
"sticky z-[299] mb-[-24px] flex items-center justify-between",
|
|
16
16
|
"h-[96px]",
|
|
17
|
-
|
|
17
|
+
n
|
|
18
18
|
), p = "0", k = `${c}px`, b = "sticky mx-2 block h-[24px] rounded-full shadow-[0_0_0_1px_rgba(0,0,0,.025),0_-8px_16px_-3px_rgba(0,0,0,.08)]", B = l ? `calc(${l} + ${c - 24}px)` : `${c - 24}px`;
|
|
19
19
|
return /* @__PURE__ */ s.jsxs(
|
|
20
20
|
"div",
|
|
@@ -58,7 +58,7 @@ const ne = ({
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
};
|
|
61
|
-
function F(l,
|
|
61
|
+
function F(l, n, i = {}) {
|
|
62
62
|
l ? D.show(ce, {
|
|
63
63
|
title: "Are you sure you want to leave this page?",
|
|
64
64
|
prompt: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -69,14 +69,14 @@ function F(l, o, i = {}) {
|
|
|
69
69
|
cancelLabel: "Stay",
|
|
70
70
|
okColor: "red",
|
|
71
71
|
onOk: (c) => {
|
|
72
|
-
|
|
72
|
+
n(), c == null || c.remove();
|
|
73
73
|
},
|
|
74
74
|
...i
|
|
75
|
-
}) :
|
|
75
|
+
}) : n();
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
78
78
|
size: l = "md",
|
|
79
|
-
width:
|
|
79
|
+
width: n,
|
|
80
80
|
height: i,
|
|
81
81
|
testId: c,
|
|
82
82
|
title: m,
|
|
@@ -105,10 +105,10 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
105
105
|
formSheet: M = !1,
|
|
106
106
|
enableCMDS: Z = !0
|
|
107
107
|
}) => {
|
|
108
|
-
const H = O(), { setGlobalDirtyState:
|
|
108
|
+
const H = O(), { setGlobalDirtyState: I } = te(), [G, Y] = U(!1);
|
|
109
109
|
$(() => {
|
|
110
|
-
|
|
111
|
-
}, [E,
|
|
110
|
+
I(E);
|
|
111
|
+
}, [E, I]), $(() => {
|
|
112
112
|
const r = (w) => {
|
|
113
113
|
w.key === "Escape" && (document.activeElement && document.activeElement instanceof HTMLElement && document.activeElement.blur(), setTimeout(() => {
|
|
114
114
|
N ? N() : F(E, () => {
|
|
@@ -163,10 +163,10 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
163
163
|
"relative z-50 mx-auto flex max-h-[100%] w-full flex-col justify-between overflow-x-hidden bg-white dark:bg-black",
|
|
164
164
|
l !== "bleed" && "rounded",
|
|
165
165
|
M ? "shadow-md" : "shadow-xl",
|
|
166
|
-
V && !M && !
|
|
167
|
-
M && !
|
|
166
|
+
V && !M && !G && "animate-modal-in",
|
|
167
|
+
M && !G && "animate-modal-in-reverse",
|
|
168
168
|
R ? "overflow-y-auto" : "overflow-y-hidden"
|
|
169
|
-
),
|
|
169
|
+
), o = e(
|
|
170
170
|
"fixed inset-0 z-[1000] h-[100vh] w-[100vw]"
|
|
171
171
|
), d = "", t = e(
|
|
172
172
|
!v || v === "close" ? "" : "flex items-center justify-between gap-5"
|
|
@@ -179,8 +179,8 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
179
179
|
a = e(
|
|
180
180
|
a,
|
|
181
181
|
"max-w-[480px]"
|
|
182
|
-
),
|
|
183
|
-
|
|
182
|
+
), o = e(
|
|
183
|
+
o,
|
|
184
184
|
"p-4 md:p-[8vmin]"
|
|
185
185
|
), d = "p-8", t = e(
|
|
186
186
|
t,
|
|
@@ -191,8 +191,8 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
191
191
|
a = e(
|
|
192
192
|
a,
|
|
193
193
|
"max-w-[720px]"
|
|
194
|
-
),
|
|
195
|
-
|
|
194
|
+
), o = e(
|
|
195
|
+
o,
|
|
196
196
|
"p-4 md:p-[8vmin]"
|
|
197
197
|
), d = "p-8", t = e(
|
|
198
198
|
t,
|
|
@@ -203,8 +203,8 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
203
203
|
a = e(
|
|
204
204
|
a,
|
|
205
205
|
"max-w-[1020px]"
|
|
206
|
-
),
|
|
207
|
-
|
|
206
|
+
), o = e(
|
|
207
|
+
o,
|
|
208
208
|
"p-4 md:p-[4vmin]"
|
|
209
209
|
), d = "p-7", t = e(
|
|
210
210
|
t,
|
|
@@ -215,8 +215,8 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
215
215
|
a = e(
|
|
216
216
|
a,
|
|
217
217
|
"max-w-[1240px]0"
|
|
218
|
-
),
|
|
219
|
-
|
|
218
|
+
), o = e(
|
|
219
|
+
o,
|
|
220
220
|
"p-4 md:p-[3vmin]"
|
|
221
221
|
), d = "p-10", t = e(
|
|
222
222
|
t,
|
|
@@ -227,8 +227,8 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
227
227
|
a = e(
|
|
228
228
|
a,
|
|
229
229
|
"h-full"
|
|
230
|
-
),
|
|
231
|
-
|
|
230
|
+
), o = e(
|
|
231
|
+
o,
|
|
232
232
|
"p-4 md:p-[3vmin]"
|
|
233
233
|
), d = "p-10", t = e(
|
|
234
234
|
t,
|
|
@@ -245,8 +245,8 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
245
245
|
);
|
|
246
246
|
break;
|
|
247
247
|
default:
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
o = e(
|
|
249
|
+
o,
|
|
250
250
|
"p-4 md:p-[8vmin]"
|
|
251
251
|
), d = "p-8", t = e(
|
|
252
252
|
t,
|
|
@@ -263,8 +263,8 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
263
263
|
), A = e(
|
|
264
264
|
d,
|
|
265
265
|
"py-0"
|
|
266
|
-
),
|
|
267
|
-
|
|
266
|
+
), o = e(
|
|
267
|
+
o,
|
|
268
268
|
"max-[800px]:!pb-20"
|
|
269
269
|
);
|
|
270
270
|
const ee = e(
|
|
@@ -278,7 +278,7 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
278
278
|
const se = (r) => {
|
|
279
279
|
r.target === r.currentTarget && P && S();
|
|
280
280
|
}, L = {};
|
|
281
|
-
typeof
|
|
281
|
+
typeof n == "number" ? (L.width = "100%", L.maxWidth = n + "px") : n === "full" && (a = e(
|
|
282
282
|
a,
|
|
283
283
|
"w-full"
|
|
284
284
|
)), typeof i == "number" ? (L.height = "100%", L.maxHeight = i + "px") : i === "full" && (a = e(
|
|
@@ -289,16 +289,16 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
289
289
|
return u ? y = u : u === !1 ? A += " pb-0 " : y = /* @__PURE__ */ s.jsxs("div", { className: ee, children: [
|
|
290
290
|
/* @__PURE__ */ s.jsx("div", { children: h && /* @__PURE__ */ s.jsx(K, { ...h }) }),
|
|
291
291
|
/* @__PURE__ */ s.jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ s.jsx(ae, { buttons: _ }) })
|
|
292
|
-
] }), y = z ? /* @__PURE__ */ s.jsx(
|
|
292
|
+
] }), y = z ? /* @__PURE__ */ s.jsx(oe, { height: 84, children: y }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: y }), /* @__PURE__ */ s.jsxs("div", { className: o, id: "modal-backdrop", onMouseDown: se, children: [
|
|
293
293
|
/* @__PURE__ */ s.jsx("div", { className: e(
|
|
294
294
|
"pointer-events-none fixed inset-0 z-0",
|
|
295
|
-
J && !M &&
|
|
295
|
+
J && !M && ne,
|
|
296
296
|
M && "bg-[rgba(98,109,121,0.08)]"
|
|
297
297
|
) }),
|
|
298
298
|
/* @__PURE__ */ s.jsxs("section", { className: a, "data-testid": c, style: L, children: [
|
|
299
299
|
j === !1 ? "" : !v || v === "close" ? /* @__PURE__ */ s.jsxs("header", { className: t, children: [
|
|
300
300
|
m && /* @__PURE__ */ s.jsx(T, { level: 3, children: m }),
|
|
301
|
-
/* @__PURE__ */ s.jsx("div", { className: `${v !== "close" && "md:!invisible md:!hidden"} ${X && "hidden"} absolute right-6 top-6`, children: /* @__PURE__ */ s.jsx(K, { className: "-m-2 cursor-pointer p-2 opacity-50 hover:opacity-100", icon: "close", iconColorClass: "text-black dark:text-white", size: "sm", unstyled: !0, onClick: S }) })
|
|
301
|
+
/* @__PURE__ */ s.jsx("div", { className: `${v !== "close" && "md:!invisible md:!hidden"} ${X && "hidden"} absolute right-6 top-6`, children: /* @__PURE__ */ s.jsx(K, { className: "-m-2 cursor-pointer p-2 opacity-50 hover:opacity-100", icon: "close", iconColorClass: "text-black dark:text-white", size: "sm", testId: "close-modal", unstyled: !0, onClick: S }) })
|
|
302
302
|
] }) : /* @__PURE__ */ s.jsxs("header", { className: t, children: [
|
|
303
303
|
m && /* @__PURE__ */ s.jsx(T, { level: 3, children: m }),
|
|
304
304
|
v
|
|
@@ -309,7 +309,7 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
309
309
|
] });
|
|
310
310
|
}, ie = ({
|
|
311
311
|
title: l = "Are you sure?",
|
|
312
|
-
prompt:
|
|
312
|
+
prompt: n,
|
|
313
313
|
cancelLabel: i = "Cancel",
|
|
314
314
|
okLabel: c = "OK",
|
|
315
315
|
okRunningLabel: m = "...",
|
|
@@ -343,11 +343,11 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
343
343
|
}
|
|
344
344
|
k("");
|
|
345
345
|
},
|
|
346
|
-
children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children:
|
|
346
|
+
children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children: n })
|
|
347
347
|
}
|
|
348
348
|
);
|
|
349
349
|
}, ce = D.create(ie), de = D.create(() => {
|
|
350
|
-
const { updateRoute: l } = le(),
|
|
350
|
+
const { updateRoute: l } = le(), n = D.useModal();
|
|
351
351
|
return /* @__PURE__ */ s.jsx(
|
|
352
352
|
W,
|
|
353
353
|
{
|
|
@@ -359,7 +359,7 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
359
359
|
size: "sm",
|
|
360
360
|
title: "About",
|
|
361
361
|
onOk: () => {
|
|
362
|
-
l(""),
|
|
362
|
+
l(""), n.remove();
|
|
363
363
|
},
|
|
364
364
|
children: /* @__PURE__ */ s.jsxs("div", { className: "mt-3 flex flex-col gap-4", children: [
|
|
365
365
|
/* @__PURE__ */ s.jsx("p", { children: "You're looking at a React app inside Ghost Admin. It uses common AdminX framework and Design System packages, and works seamlessly with the current Admin's routing." }),
|
|
@@ -378,4 +378,4 @@ const oe = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
378
378
|
export {
|
|
379
379
|
me as default
|
|
380
380
|
};
|
|
381
|
-
//# sourceMappingURL=modals-
|
|
381
|
+
//# sourceMappingURL=modals-e4b12fba.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ce, b as q, bW as Rt, bX as qn, e as wt, bY as _n, j as N, bZ as Hn, u as Vn, R as zn, q as Un, d as $n, H as Gn, c as Kn } from "./index-
|
|
1
|
+
import { a as ce, b as q, bW as Rt, bX as qn, e as wt, bY as _n, j as N, bZ as Hn, u as Vn, R as zn, q as Un, d as $n, H as Gn, c as Kn } from "./index-99bd65a2.mjs";
|
|
2
2
|
import { E as p, F as de, v as Ee, S as Re, o as d, w as qe, C as Jn, x as jn, y as Tt, z as Ot, A as Se, B as It, G as Pt, H as Wt, J as Ue, K as Xe, M as w, O as Z, g as et, b as $e, Q as Qn, R as ee, V as Ft, U as x, W as Yn, X as Zn, Y as ue, Z as L, _ as Xn, $ as er, a0 as tt, a1 as he, a2 as tr, a3 as nr, a4 as rr, a5 as or, a6 as ir, a7 as sr, a8 as lr, a9 as ar, aa as cr, ab as ur, ac as hr, ad as fr, ae as dr, af as mr, ag as Nt, ah as gr, ai as pr, aj as yr, ak as xr, al as kr, am as br, an as qt, ao as Sr, ap as Cr, t as f, aq as vr } from "./index-9cc1df42.mjs";
|
|
3
3
|
const Ar = (t) => {
|
|
4
4
|
let { state: e } = t, r = e.doc.lineAt(e.selection.main.from), n = rt(t.state, r.from);
|
|
@@ -2361,4 +2361,4 @@ const Ni = [
|
|
|
2361
2361
|
export {
|
|
2362
2362
|
Hi as default
|
|
2363
2363
|
};
|
|
2364
|
-
//# sourceMappingURL=CodeEditorView-
|
|
2364
|
+
//# sourceMappingURL=CodeEditorView-c3b34635.mjs.map
|