ghost 5.89.1 → 5.89.2
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.89.2.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.89.1.tgz → tryghost-adapter-cache-redis-5.89.2.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.89.1.tgz → tryghost-adapter-manager-5.89.2.tgz} +0 -0
- package/components/{tryghost-announcement-bar-settings-5.89.1.tgz → tryghost-announcement-bar-settings-5.89.2.tgz} +0 -0
- package/components/{tryghost-api-framework-5.89.1.tgz → tryghost-api-framework-5.89.2.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.89.1.tgz → tryghost-api-version-compatibility-service-5.89.2.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.89.2.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.89.2.tgz +0 -0
- package/components/{tryghost-bootstrap-socket-5.89.1.tgz → tryghost-bootstrap-socket-5.89.2.tgz} +0 -0
- package/components/tryghost-collections-5.89.2.tgz +0 -0
- package/components/tryghost-constants-5.89.2.tgz +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.89.1.tgz → tryghost-custom-theme-settings-service-5.89.2.tgz} +0 -0
- package/components/{tryghost-data-generator-5.89.1.tgz → tryghost-data-generator-5.89.2.tgz} +0 -0
- package/components/tryghost-domain-events-5.89.2.tgz +0 -0
- package/components/tryghost-donations-5.89.2.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.89.2.tgz +0 -0
- package/components/tryghost-email-addresses-5.89.2.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.89.2.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.89.2.tgz +0 -0
- package/components/{tryghost-email-content-generator-5.89.1.tgz → tryghost-email-content-generator-5.89.2.tgz} +0 -0
- package/components/tryghost-email-events-5.89.2.tgz +0 -0
- package/components/{tryghost-email-service-5.89.1.tgz → tryghost-email-service-5.89.2.tgz} +0 -0
- package/components/tryghost-email-suppression-list-5.89.2.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.89.2.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.89.2.tgz +0 -0
- package/components/tryghost-extract-api-key-5.89.2.tgz +0 -0
- package/components/{tryghost-ghost-5.89.1.tgz → tryghost-ghost-5.89.2.tgz} +0 -0
- package/components/tryghost-html-to-plaintext-5.89.2.tgz +0 -0
- package/components/tryghost-i18n-5.89.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.89.2.tgz +0 -0
- package/components/tryghost-importer-revue-5.89.2.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.89.2.tgz +0 -0
- package/components/{tryghost-job-manager-5.89.1.tgz → tryghost-job-manager-5.89.2.tgz} +0 -0
- package/components/tryghost-link-redirects-5.89.2.tgz +0 -0
- package/components/tryghost-link-replacer-5.89.2.tgz +0 -0
- package/components/{tryghost-link-tracking-5.89.1.tgz → tryghost-link-tracking-5.89.2.tgz} +0 -0
- package/components/{tryghost-magic-link-5.89.1.tgz → tryghost-magic-link-5.89.2.tgz} +0 -0
- package/components/{tryghost-mail-events-5.89.1.tgz → tryghost-mail-events-5.89.2.tgz} +0 -0
- package/components/{tryghost-mailgun-client-5.89.1.tgz → tryghost-mailgun-client-5.89.2.tgz} +0 -0
- package/components/{tryghost-member-attribution-5.89.1.tgz → tryghost-member-attribution-5.89.2.tgz} +0 -0
- package/components/{tryghost-member-events-5.89.1.tgz → tryghost-member-events-5.89.2.tgz} +0 -0
- package/components/{tryghost-members-api-5.89.1.tgz → tryghost-members-api-5.89.2.tgz} +0 -0
- package/components/tryghost-members-csv-5.89.2.tgz +0 -0
- package/components/tryghost-members-events-service-5.89.2.tgz +0 -0
- package/components/{tryghost-members-importer-5.89.1.tgz → tryghost-members-importer-5.89.2.tgz} +0 -0
- package/components/{tryghost-members-offers-5.89.1.tgz → tryghost-members-offers-5.89.2.tgz} +0 -0
- package/components/tryghost-members-payments-5.89.2.tgz +0 -0
- package/components/{tryghost-members-ssr-5.89.1.tgz → tryghost-members-ssr-5.89.2.tgz} +0 -0
- package/components/{tryghost-members-stripe-service-5.89.1.tgz → tryghost-members-stripe-service-5.89.2.tgz} +0 -0
- package/components/{tryghost-mentions-email-report-5.89.1.tgz → tryghost-mentions-email-report-5.89.2.tgz} +0 -0
- package/components/{tryghost-milestones-5.89.1.tgz → tryghost-milestones-5.89.2.tgz} +0 -0
- package/components/{tryghost-minifier-5.89.1.tgz → tryghost-minifier-5.89.2.tgz} +0 -0
- package/components/{tryghost-model-to-domain-event-interceptor-5.89.1.tgz → tryghost-model-to-domain-event-interceptor-5.89.2.tgz} +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.89.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.89.2.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.89.2.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.89.2.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.89.2.tgz +0 -0
- package/components/tryghost-mw-version-match-5.89.2.tgz +0 -0
- package/components/tryghost-mw-vhost-5.89.2.tgz +0 -0
- package/components/{tryghost-nql-filter-expansions-5.89.1.tgz → tryghost-nql-filter-expansions-5.89.2.tgz} +0 -0
- package/components/{tryghost-oembed-service-5.89.1.tgz → tryghost-oembed-service-5.89.2.tgz} +0 -0
- package/components/{tryghost-package-json-5.89.1.tgz → tryghost-package-json-5.89.2.tgz} +0 -0
- package/components/{tryghost-post-events-5.89.1.tgz → tryghost-post-events-5.89.2.tgz} +0 -0
- package/components/tryghost-post-revisions-5.89.2.tgz +0 -0
- package/components/{tryghost-posts-service-5.89.1.tgz → tryghost-posts-service-5.89.2.tgz} +0 -0
- package/components/tryghost-recommendations-5.89.2.tgz +0 -0
- package/components/tryghost-referrers-5.89.2.tgz +0 -0
- package/components/{tryghost-security-5.89.1.tgz → tryghost-security-5.89.2.tgz} +0 -0
- package/components/tryghost-session-service-5.89.2.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.89.2.tgz +0 -0
- package/components/{tryghost-slack-notifications-5.89.1.tgz → tryghost-slack-notifications-5.89.2.tgz} +0 -0
- package/components/tryghost-staff-service-5.89.2.tgz +0 -0
- package/components/{tryghost-stats-service-5.89.1.tgz → tryghost-stats-service-5.89.2.tgz} +0 -0
- package/components/{tryghost-tiers-5.89.1.tgz → tryghost-tiers-5.89.2.tgz} +0 -0
- package/components/tryghost-update-check-service-5.89.2.tgz +0 -0
- package/components/{tryghost-verification-trigger-5.89.1.tgz → tryghost-verification-trigger-5.89.2.tgz} +0 -0
- package/components/tryghost-version-notifications-data-service-5.89.2.tgz +0 -0
- package/components/tryghost-webmentions-5.89.2.tgz +0 -0
- package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +2 -2
- package/core/built/admin/assets/admin-x-activitypub/{index-980aeac1.mjs → index-e318fbcd.mjs} +16908 -17046
- package/core/built/admin/assets/admin-x-activitypub/modals-a6e383d4.mjs +422 -0
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
- package/core/built/admin/assets/admin-x-demo/{index-71687654.mjs → index-116afae1.mjs} +1972 -1953
- package/core/built/admin/assets/admin-x-demo/{modals-4b59bbd8.mjs → modals-c17f9071.mjs} +171 -166
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-8dcd0ded.mjs → CodeEditorView-511c0703.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-01e25660.mjs → index-5941f1da.mjs} +5734 -5702
- package/core/built/admin/assets/admin-x-settings/{index-541636a3.mjs → index-a33217a0.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{modals-172c4d1c.mjs → modals-434ac8fd.mjs} +3 -3
- package/core/built/admin/assets/{chunk.42.a0b3ca84230d788d0e11.js → chunk.42.90f279da5ca389af68b9.js} +424 -422
- package/core/built/admin/assets/{chunk.524.e09e59707739cbab5488.js → chunk.524.fb82017fc304c64f1cab.js} +5 -5
- package/core/built/admin/assets/{chunk.582.8aa2a0331d317e552bbe.js → chunk.582.a9620f67df902832f07e.js} +6 -6
- package/core/built/admin/assets/{ghost-b5e602d62644bd997ce54c647953f437.js → ghost-ab064d1be3ae3f712cf329fa5766eeb2.js} +162 -130
- package/core/built/admin/assets/{ghost-dark-f0b3a9ea961171ad4f736edbab905a0c.css → ghost-dark-f9c5f2aae7d01ae36bd6932c0abf683a.css} +1 -1
- package/core/built/admin/assets/{ghost-87438e5801b7bb0f2e3497a68572a529.css → ghost-f627cc6acd7574a7bdbf2f2988365c78.css} +1 -1
- package/core/built/admin/assets/koenig-lexical/index.css +1 -1
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +19003 -18821
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +138 -142
- package/core/built/admin/assets/{vendor-35f20b2f9b6201dcd4a00c8acac98aa6.js → vendor-eb806b4d193377b9b4bbf885840bfdc2.js} +23 -19
- package/core/built/admin/index.html +6 -6
- package/core/server/lib/lexical.js +5 -1
- package/core/shared/config/defaults.json +1 -1
- package/core/shared/labs.js +4 -3
- package/core/shared/settings-cache/public.js +2 -1
- package/package.json +156 -156
- package/yarn.lock +231 -226
- package/components/tryghost-adapter-cache-memory-ttl-5.89.1.tgz +0 -0
- package/components/tryghost-audience-feedback-5.89.1.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.89.1.tgz +0 -0
- package/components/tryghost-collections-5.89.1.tgz +0 -0
- package/components/tryghost-constants-5.89.1.tgz +0 -0
- package/components/tryghost-domain-events-5.89.1.tgz +0 -0
- package/components/tryghost-donations-5.89.1.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.89.1.tgz +0 -0
- package/components/tryghost-email-addresses-5.89.1.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.89.1.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.89.1.tgz +0 -0
- package/components/tryghost-email-events-5.89.1.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.89.1.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.89.1.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.89.1.tgz +0 -0
- package/components/tryghost-extract-api-key-5.89.1.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.89.1.tgz +0 -0
- package/components/tryghost-i18n-5.89.1.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.89.1.tgz +0 -0
- package/components/tryghost-importer-revue-5.89.1.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.89.1.tgz +0 -0
- package/components/tryghost-link-redirects-5.89.1.tgz +0 -0
- package/components/tryghost-link-replacer-5.89.1.tgz +0 -0
- package/components/tryghost-members-csv-5.89.1.tgz +0 -0
- package/components/tryghost-members-events-service-5.89.1.tgz +0 -0
- package/components/tryghost-members-payments-5.89.1.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.89.1.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.89.1.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.89.1.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.89.1.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.89.1.tgz +0 -0
- package/components/tryghost-mw-version-match-5.89.1.tgz +0 -0
- package/components/tryghost-mw-vhost-5.89.1.tgz +0 -0
- package/components/tryghost-post-revisions-5.89.1.tgz +0 -0
- package/components/tryghost-recommendations-5.89.1.tgz +0 -0
- package/components/tryghost-referrers-5.89.1.tgz +0 -0
- package/components/tryghost-session-service-5.89.1.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.89.1.tgz +0 -0
- package/components/tryghost-staff-service-5.89.1.tgz +0 -0
- package/components/tryghost-update-check-service-5.89.1.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.89.1.tgz +0 -0
- package/components/tryghost-webmentions-5.89.1.tgz +0 -0
- package/core/built/admin/assets/admin-x-activitypub/modals-e013f67b.mjs +0 -654
- /package/core/built/admin/assets/{chunk.42.a0b3ca84230d788d0e11.js.LICENSE.txt → chunk.42.90f279da5ca389af68b9.js.LICENSE.txt} +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { c as e, j as s, u as
|
|
2
|
-
const
|
|
1
|
+
import { c as e, j as s, u as U, a as le, b as W, d as $, B as O, e as oe, H as S, N as D, f as ne } from "./index-116afae1.mjs";
|
|
2
|
+
const ie = ({
|
|
3
3
|
shiftY: l,
|
|
4
|
-
footerBgColorClass:
|
|
5
|
-
contentBgColorClass:
|
|
6
|
-
height:
|
|
7
|
-
children:
|
|
4
|
+
footerBgColorClass: i = "bg-white dark:bg-black",
|
|
5
|
+
contentBgColorClass: d = "bg-white dark:bg-black",
|
|
6
|
+
height: o = 96,
|
|
7
|
+
children: g
|
|
8
8
|
}) => {
|
|
9
|
-
const
|
|
9
|
+
const m = e(
|
|
10
10
|
"w-100 sticky bottom-[-24px] z-[297] m-0 box-border p-0"
|
|
11
|
-
),
|
|
11
|
+
), f = l ? `calc(${l} - 24px)` : "-24px", h = `${o + 24}px`, k = e(
|
|
12
12
|
"sticky z-[298] block h-[24px]",
|
|
13
|
-
|
|
14
|
-
),
|
|
13
|
+
d
|
|
14
|
+
), u = "0", j = e(
|
|
15
15
|
"sticky z-[299] mb-[-24px] flex items-center justify-between",
|
|
16
16
|
"h-[96px]",
|
|
17
|
-
|
|
18
|
-
),
|
|
17
|
+
i
|
|
18
|
+
), x = "0", p = `${o}px`, N = "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} + ${o - 24}px)` : `${o - 24}px`;
|
|
19
19
|
return /* @__PURE__ */ s.jsxs(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
22
|
+
className: m,
|
|
23
23
|
style: {
|
|
24
|
-
bottom:
|
|
25
|
-
height:
|
|
24
|
+
bottom: f,
|
|
25
|
+
height: h
|
|
26
26
|
},
|
|
27
27
|
children: [
|
|
28
28
|
/* @__PURE__ */ s.jsx(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className:
|
|
31
|
+
className: k,
|
|
32
32
|
style: {
|
|
33
|
-
bottom:
|
|
33
|
+
bottom: u
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
37
|
/* @__PURE__ */ s.jsx(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
40
|
+
className: j,
|
|
41
41
|
style: {
|
|
42
|
-
bottom:
|
|
43
|
-
height:
|
|
42
|
+
bottom: x,
|
|
43
|
+
height: p
|
|
44
44
|
},
|
|
45
|
-
children:
|
|
45
|
+
children: g
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
48
|
/* @__PURE__ */ s.jsx(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
className:
|
|
51
|
+
className: N,
|
|
52
52
|
style: {
|
|
53
|
-
bottom:
|
|
53
|
+
bottom: B
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
)
|
|
@@ -58,8 +58,8 @@ const ne = ({
|
|
|
58
58
|
}
|
|
59
59
|
);
|
|
60
60
|
};
|
|
61
|
-
function
|
|
62
|
-
l ?
|
|
61
|
+
function P(l, i, d = {}) {
|
|
62
|
+
l ? D.show(de, {
|
|
63
63
|
title: "Are you sure you want to leave this page?",
|
|
64
64
|
prompt: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
65
65
|
/* @__PURE__ */ s.jsx("p", { children: "Hey there! It looks like you didn't save the changes you made." }),
|
|
@@ -68,111 +68,116 @@ function F(l, n, i = {}) {
|
|
|
68
68
|
okLabel: "Leave",
|
|
69
69
|
cancelLabel: "Stay",
|
|
70
70
|
okColor: "red",
|
|
71
|
-
onOk: (
|
|
72
|
-
|
|
71
|
+
onOk: (o) => {
|
|
72
|
+
i(), o == null || o.remove();
|
|
73
73
|
},
|
|
74
|
-
...
|
|
75
|
-
}) :
|
|
74
|
+
...d
|
|
75
|
+
}) : i();
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const ce = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", X = ({
|
|
78
78
|
size: l = "md",
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
align: i = "center",
|
|
80
|
+
width: d,
|
|
81
|
+
height: o,
|
|
82
|
+
testId: g,
|
|
82
83
|
title: m,
|
|
83
84
|
okLabel: f = "OK",
|
|
84
|
-
okLoading:
|
|
85
|
-
cancelLabel:
|
|
85
|
+
okLoading: h = !1,
|
|
86
|
+
cancelLabel: k = "Cancel",
|
|
86
87
|
footer: u,
|
|
87
|
-
header:
|
|
88
|
-
leftButtonProps:
|
|
88
|
+
header: j,
|
|
89
|
+
leftButtonProps: x,
|
|
89
90
|
buttonsDisabled: p,
|
|
90
|
-
okDisabled:
|
|
91
|
-
padding:
|
|
92
|
-
onOk:
|
|
93
|
-
okColor:
|
|
91
|
+
okDisabled: N,
|
|
92
|
+
padding: B = !0,
|
|
93
|
+
onOk: H,
|
|
94
|
+
okColor: q = "black",
|
|
94
95
|
onCancel: C,
|
|
95
96
|
topRightContent: v,
|
|
96
|
-
hideXOnMobile:
|
|
97
|
+
hideXOnMobile: J = !1,
|
|
97
98
|
afterClose: E,
|
|
98
|
-
children:
|
|
99
|
-
backDrop:
|
|
100
|
-
backDropClick:
|
|
101
|
-
stickyFooter:
|
|
102
|
-
stickyHeader:
|
|
103
|
-
scrolling:
|
|
99
|
+
children: Q,
|
|
100
|
+
backDrop: R = !0,
|
|
101
|
+
backDropClick: V = !0,
|
|
102
|
+
stickyFooter: G = !1,
|
|
103
|
+
stickyHeader: Z = !1,
|
|
104
|
+
scrolling: Y = !0,
|
|
104
105
|
dirty: M = !1,
|
|
105
|
-
animate:
|
|
106
|
-
formSheet:
|
|
107
|
-
enableCMDS:
|
|
106
|
+
animate: K = !0,
|
|
107
|
+
formSheet: y = !1,
|
|
108
|
+
enableCMDS: ee = !0
|
|
108
109
|
}) => {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}, [M,
|
|
110
|
+
const _ = U(), { setGlobalDirtyState: F } = le(), [T, se] = W(!1);
|
|
111
|
+
$(() => {
|
|
112
|
+
F(M);
|
|
113
|
+
}, [M, F]), $(() => {
|
|
113
114
|
const r = (b) => {
|
|
114
115
|
b.key === "Escape" && (document.activeElement && document.activeElement instanceof HTMLElement && document.activeElement.blur(), setTimeout(() => {
|
|
115
|
-
C ? C() :
|
|
116
|
-
|
|
116
|
+
C ? C() : P(M, () => {
|
|
117
|
+
_.remove(), E == null || E();
|
|
117
118
|
});
|
|
118
119
|
}), b.stopPropagation());
|
|
119
120
|
};
|
|
120
121
|
return document.addEventListener("keydown", r), () => {
|
|
121
122
|
document.removeEventListener("keydown", r);
|
|
122
123
|
};
|
|
123
|
-
}, [
|
|
124
|
+
}, [_, M, E, C]), $(() => {
|
|
124
125
|
const r = setTimeout(() => {
|
|
125
|
-
|
|
126
|
+
se(!0);
|
|
126
127
|
}, 250);
|
|
127
128
|
return () => clearTimeout(r);
|
|
128
|
-
}, []),
|
|
129
|
-
if (
|
|
129
|
+
}, []), $(() => {
|
|
130
|
+
if (H) {
|
|
130
131
|
const r = (b) => {
|
|
131
|
-
(b.metaKey || b.ctrlKey) && b.key === "s" && (b.preventDefault(),
|
|
132
|
+
(b.metaKey || b.ctrlKey) && b.key === "s" && (b.preventDefault(), H());
|
|
132
133
|
};
|
|
133
|
-
if (
|
|
134
|
+
if (ee)
|
|
134
135
|
return window.addEventListener("keydown", r), () => {
|
|
135
136
|
window.removeEventListener("keydown", r);
|
|
136
137
|
};
|
|
137
138
|
}
|
|
138
139
|
});
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
const z = [];
|
|
141
|
+
let A;
|
|
142
|
+
const I = () => {
|
|
143
|
+
P(M, () => {
|
|
144
|
+
_.remove(), E == null || E();
|
|
144
145
|
});
|
|
145
146
|
};
|
|
146
|
-
u || (
|
|
147
|
+
u || (k && z.push({
|
|
147
148
|
key: "cancel-modal",
|
|
148
|
-
label:
|
|
149
|
+
label: k,
|
|
149
150
|
color: "outline",
|
|
150
151
|
onClick: C || (() => {
|
|
151
|
-
|
|
152
|
+
I();
|
|
152
153
|
}),
|
|
153
154
|
disabled: p
|
|
154
|
-
}), f &&
|
|
155
|
+
}), f && z.push({
|
|
155
156
|
key: "ok-modal",
|
|
156
157
|
label: f,
|
|
157
|
-
color:
|
|
158
|
+
color: q,
|
|
158
159
|
className: "min-w-[80px]",
|
|
159
|
-
onClick:
|
|
160
|
-
disabled: p ||
|
|
161
|
-
loading:
|
|
160
|
+
onClick: H,
|
|
161
|
+
disabled: p || N,
|
|
162
|
+
loading: h
|
|
162
163
|
}));
|
|
163
164
|
let a = e(
|
|
164
|
-
"relative z-50
|
|
165
|
+
"relative z-50 flex max-h-[100%] w-full flex-col justify-between overflow-x-hidden bg-white dark:bg-black",
|
|
166
|
+
i === "center" && "mx-auto",
|
|
167
|
+
i === "left" && "mr-auto",
|
|
168
|
+
i === "right" && "ml-auto",
|
|
165
169
|
l !== "bleed" && "rounded",
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
y ? "shadow-md" : "shadow-xl",
|
|
171
|
+
K && !y && !T && i === "center" && "animate-modal-in",
|
|
172
|
+
K && !y && !T && i === "right" && "animate-modal-in-from-right",
|
|
173
|
+
y && !T && "animate-modal-in-reverse",
|
|
174
|
+
Y ? "overflow-y-auto" : "overflow-y-hidden"
|
|
175
|
+
), n = e(
|
|
171
176
|
"fixed inset-0 z-[1000] h-[100vh] w-[100vw]"
|
|
172
|
-
),
|
|
177
|
+
), c = "", t = e(
|
|
173
178
|
!v || v === "close" ? "" : "flex items-center justify-between gap-5"
|
|
174
179
|
);
|
|
175
|
-
switch (
|
|
180
|
+
switch (Z && (t = e(
|
|
176
181
|
t,
|
|
177
182
|
"sticky top-0 z-[200] -mb-4 bg-white !pb-4 dark:bg-black"
|
|
178
183
|
)), l) {
|
|
@@ -180,10 +185,10 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
180
185
|
a = e(
|
|
181
186
|
a,
|
|
182
187
|
"max-w-[480px]"
|
|
183
|
-
),
|
|
184
|
-
|
|
188
|
+
), n = e(
|
|
189
|
+
n,
|
|
185
190
|
"p-4 md:p-[8vmin]"
|
|
186
|
-
),
|
|
191
|
+
), c = "p-8", t = e(
|
|
187
192
|
t,
|
|
188
193
|
"-inset-x-8"
|
|
189
194
|
);
|
|
@@ -192,10 +197,10 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
192
197
|
a = e(
|
|
193
198
|
a,
|
|
194
199
|
"max-w-[720px]"
|
|
195
|
-
),
|
|
196
|
-
|
|
200
|
+
), n = e(
|
|
201
|
+
n,
|
|
197
202
|
"p-4 md:p-[8vmin]"
|
|
198
|
-
),
|
|
203
|
+
), c = "p-8", t = e(
|
|
199
204
|
t,
|
|
200
205
|
"-inset-x-8"
|
|
201
206
|
);
|
|
@@ -204,10 +209,10 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
204
209
|
a = e(
|
|
205
210
|
a,
|
|
206
211
|
"max-w-[1020px]"
|
|
207
|
-
),
|
|
208
|
-
|
|
212
|
+
), n = e(
|
|
213
|
+
n,
|
|
209
214
|
"p-4 md:p-[4vmin]"
|
|
210
|
-
),
|
|
215
|
+
), c = "p-7", t = e(
|
|
211
216
|
t,
|
|
212
217
|
"-inset-x-8"
|
|
213
218
|
);
|
|
@@ -216,10 +221,10 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
216
221
|
a = e(
|
|
217
222
|
a,
|
|
218
223
|
"max-w-[1240px]0"
|
|
219
|
-
),
|
|
220
|
-
|
|
224
|
+
), n = e(
|
|
225
|
+
n,
|
|
221
226
|
"p-4 md:p-[3vmin]"
|
|
222
|
-
),
|
|
227
|
+
), c = "p-10", t = e(
|
|
223
228
|
t,
|
|
224
229
|
"-inset-x-10 -top-10"
|
|
225
230
|
);
|
|
@@ -228,10 +233,10 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
228
233
|
a = e(
|
|
229
234
|
a,
|
|
230
235
|
"h-full"
|
|
231
|
-
),
|
|
232
|
-
|
|
236
|
+
), n = e(
|
|
237
|
+
n,
|
|
233
238
|
"p-4 md:p-[3vmin]"
|
|
234
|
-
),
|
|
239
|
+
), c = "p-10", t = e(
|
|
235
240
|
t,
|
|
236
241
|
"-inset-x-10"
|
|
237
242
|
);
|
|
@@ -240,117 +245,117 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
240
245
|
a = e(
|
|
241
246
|
a,
|
|
242
247
|
"h-full"
|
|
243
|
-
),
|
|
248
|
+
), c = "p-10", t = e(
|
|
244
249
|
t,
|
|
245
250
|
"-inset-x-10"
|
|
246
251
|
);
|
|
247
252
|
break;
|
|
248
253
|
default:
|
|
249
|
-
|
|
250
|
-
|
|
254
|
+
n = e(
|
|
255
|
+
n,
|
|
251
256
|
"p-4 md:p-[8vmin]"
|
|
252
|
-
),
|
|
257
|
+
), c = "p-8", t = e(
|
|
253
258
|
t,
|
|
254
259
|
"-inset-x-8"
|
|
255
260
|
);
|
|
256
261
|
break;
|
|
257
262
|
}
|
|
258
|
-
|
|
263
|
+
B || (c = "p-0"), a = e(
|
|
259
264
|
a
|
|
260
265
|
), t = e(
|
|
261
266
|
t,
|
|
262
|
-
|
|
267
|
+
c,
|
|
263
268
|
"pb-0"
|
|
264
|
-
),
|
|
265
|
-
|
|
269
|
+
), A = e(
|
|
270
|
+
c,
|
|
266
271
|
"py-0"
|
|
267
|
-
),
|
|
268
|
-
|
|
272
|
+
), n = e(
|
|
273
|
+
n,
|
|
269
274
|
"max-[800px]:!pb-20"
|
|
270
275
|
);
|
|
271
|
-
const
|
|
272
|
-
`${
|
|
276
|
+
const te = e(
|
|
277
|
+
`${c} ${G ? "py-6" : ""}`,
|
|
273
278
|
"flex w-full items-center justify-between"
|
|
274
279
|
);
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
(l === "full" || l === "bleed" ||
|
|
280
|
+
A = e(
|
|
281
|
+
A,
|
|
282
|
+
(l === "full" || l === "bleed" || o === "full" || typeof o == "number") && "grow"
|
|
278
283
|
);
|
|
279
|
-
const
|
|
280
|
-
r.target === r.currentTarget &&
|
|
281
|
-
},
|
|
282
|
-
typeof
|
|
284
|
+
const ae = (r) => {
|
|
285
|
+
r.target === r.currentTarget && V && I();
|
|
286
|
+
}, L = {};
|
|
287
|
+
typeof d == "number" ? (L.width = "100%", L.maxWidth = d + "px") : d === "full" && (a = e(
|
|
283
288
|
a,
|
|
284
289
|
"w-full"
|
|
285
|
-
)), typeof
|
|
290
|
+
)), typeof o == "number" ? (L.height = "100%", L.maxHeight = o + "px") : o === "full" && (a = e(
|
|
286
291
|
a,
|
|
287
292
|
"h-full"
|
|
288
293
|
));
|
|
289
|
-
let
|
|
290
|
-
return u ?
|
|
291
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
292
|
-
/* @__PURE__ */ s.jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ s.jsx(
|
|
293
|
-
] }),
|
|
294
|
+
let w;
|
|
295
|
+
return u ? w = u : u === !1 ? A += " pb-0 " : w = /* @__PURE__ */ s.jsxs("div", { className: te, children: [
|
|
296
|
+
/* @__PURE__ */ s.jsx("div", { children: x && /* @__PURE__ */ s.jsx(O, { ...x }) }),
|
|
297
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ s.jsx(oe, { buttons: z }) })
|
|
298
|
+
] }), w = G ? /* @__PURE__ */ s.jsx(ie, { height: 84, children: w }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: w }), /* @__PURE__ */ s.jsxs("div", { className: n, id: "modal-backdrop", onMouseDown: ae, children: [
|
|
294
299
|
/* @__PURE__ */ s.jsx("div", { className: e(
|
|
295
300
|
"pointer-events-none fixed inset-0 z-0",
|
|
296
|
-
|
|
297
|
-
|
|
301
|
+
R && !y && ce,
|
|
302
|
+
y && "bg-[rgba(98,109,121,0.08)]"
|
|
298
303
|
) }),
|
|
299
|
-
/* @__PURE__ */ s.jsxs("section", { className: a, "data-testid":
|
|
300
|
-
|
|
301
|
-
m && /* @__PURE__ */ s.jsx(
|
|
302
|
-
/* @__PURE__ */ s.jsx("div", { className: `${v !== "close" && "md:!invisible md:!hidden"} ${
|
|
304
|
+
/* @__PURE__ */ s.jsxs("section", { className: a, "data-testid": g, style: L, children: [
|
|
305
|
+
j === !1 ? "" : !v || v === "close" ? /* @__PURE__ */ s.jsxs("header", { className: t, children: [
|
|
306
|
+
m && /* @__PURE__ */ s.jsx(S, { level: 3, children: m }),
|
|
307
|
+
/* @__PURE__ */ s.jsx("div", { className: `${v !== "close" && "md:!invisible md:!hidden"} ${J && "hidden"} absolute right-6 top-6`, children: /* @__PURE__ */ s.jsx(O, { 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: I }) })
|
|
303
308
|
] }) : /* @__PURE__ */ s.jsxs("header", { className: t, children: [
|
|
304
|
-
m && /* @__PURE__ */ s.jsx(
|
|
309
|
+
m && /* @__PURE__ */ s.jsx(S, { level: 3, children: m }),
|
|
305
310
|
v
|
|
306
311
|
] }),
|
|
307
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
308
|
-
|
|
312
|
+
/* @__PURE__ */ s.jsx("div", { className: A, children: Q }),
|
|
313
|
+
w
|
|
309
314
|
] })
|
|
310
315
|
] });
|
|
311
|
-
},
|
|
316
|
+
}, re = ({
|
|
312
317
|
title: l = "Are you sure?",
|
|
313
|
-
prompt:
|
|
314
|
-
cancelLabel:
|
|
315
|
-
okLabel:
|
|
316
|
-
okRunningLabel:
|
|
317
|
-
okColor:
|
|
318
|
-
onCancel:
|
|
319
|
-
onOk:
|
|
320
|
-
customFooter:
|
|
321
|
-
formSheet:
|
|
318
|
+
prompt: i,
|
|
319
|
+
cancelLabel: d = "Cancel",
|
|
320
|
+
okLabel: o = "OK",
|
|
321
|
+
okRunningLabel: g = "...",
|
|
322
|
+
okColor: m = "black",
|
|
323
|
+
onCancel: f,
|
|
324
|
+
onOk: h,
|
|
325
|
+
customFooter: k,
|
|
326
|
+
formSheet: u = !0
|
|
322
327
|
}) => {
|
|
323
|
-
const
|
|
328
|
+
const j = U(), [x, p] = W("");
|
|
324
329
|
return /* @__PURE__ */ s.jsx(
|
|
325
|
-
|
|
330
|
+
X,
|
|
326
331
|
{
|
|
327
332
|
backDropClick: !1,
|
|
328
|
-
buttonsDisabled:
|
|
329
|
-
cancelLabel:
|
|
330
|
-
footer:
|
|
331
|
-
formSheet:
|
|
332
|
-
okColor:
|
|
333
|
-
okLabel:
|
|
333
|
+
buttonsDisabled: x === "running",
|
|
334
|
+
cancelLabel: d,
|
|
335
|
+
footer: k,
|
|
336
|
+
formSheet: u,
|
|
337
|
+
okColor: m,
|
|
338
|
+
okLabel: x === "running" ? g : o,
|
|
334
339
|
testId: "confirmation-modal",
|
|
335
340
|
title: l,
|
|
336
341
|
width: 540,
|
|
337
|
-
onCancel:
|
|
342
|
+
onCancel: f,
|
|
338
343
|
onOk: async () => {
|
|
339
|
-
|
|
344
|
+
p("running");
|
|
340
345
|
try {
|
|
341
|
-
await (
|
|
342
|
-
} catch (
|
|
343
|
-
console.error("Unhandled Promise Rejection. Make sure you catch errors in your onOk handler.",
|
|
346
|
+
await (h == null ? void 0 : h(j));
|
|
347
|
+
} catch (N) {
|
|
348
|
+
console.error("Unhandled Promise Rejection. Make sure you catch errors in your onOk handler.", N);
|
|
344
349
|
}
|
|
345
|
-
|
|
350
|
+
p("");
|
|
346
351
|
},
|
|
347
|
-
children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children:
|
|
352
|
+
children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children: i })
|
|
348
353
|
}
|
|
349
354
|
);
|
|
350
|
-
}, de =
|
|
351
|
-
const { updateRoute: l } =
|
|
355
|
+
}, de = D.create(re), me = D.create(() => {
|
|
356
|
+
const { updateRoute: l } = ne(), i = D.useModal();
|
|
352
357
|
return /* @__PURE__ */ s.jsx(
|
|
353
|
-
|
|
358
|
+
X,
|
|
354
359
|
{
|
|
355
360
|
afterClose: () => {
|
|
356
361
|
l("");
|
|
@@ -360,12 +365,12 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
360
365
|
size: "sm",
|
|
361
366
|
title: "About",
|
|
362
367
|
onOk: () => {
|
|
363
|
-
l(""),
|
|
368
|
+
l(""), i.remove();
|
|
364
369
|
},
|
|
365
370
|
children: /* @__PURE__ */ s.jsxs("div", { className: "mt-3 flex flex-col gap-4", children: [
|
|
366
371
|
/* @__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." }),
|
|
367
372
|
/* @__PURE__ */ s.jsx("p", { children: "At the moment the look and feel follows the current Admin's style to blend in with existing pages. However the system is built in a very flexible way to allow easy updates in the future." }),
|
|
368
|
-
/* @__PURE__ */ s.jsx(
|
|
373
|
+
/* @__PURE__ */ s.jsx(S, { className: "-mb-2 mt-4", level: 5, children: "Contents" }),
|
|
369
374
|
/* @__PURE__ */ s.jsxs("p", { children: [
|
|
370
375
|
"The demo uses a mocked list of members — it's ",
|
|
371
376
|
/* @__PURE__ */ s.jsx("strong", { children: "not" }),
|
|
@@ -375,8 +380,8 @@ const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
375
380
|
] })
|
|
376
381
|
}
|
|
377
382
|
);
|
|
378
|
-
}),
|
|
383
|
+
}), xe = { DemoModal: me };
|
|
379
384
|
export {
|
|
380
|
-
|
|
385
|
+
xe as default
|
|
381
386
|
};
|
|
382
|
-
//# sourceMappingURL=modals-
|
|
387
|
+
//# sourceMappingURL=modals-c17f9071.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ce, b as _, b_ as Rt, b$ as _n, e as wt, c0 as qn, j as N, c1 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 _, b_ as Rt, b$ as _n, e as wt, c0 as qn, j as N, c1 as Hn, u as Vn, R as zn, q as Un, d as $n, H as Gn, c as Kn } from "./index-5941f1da.mjs";
|
|
2
2
|
import { E as p, F as de, v as Ee, S as Re, o as d, w as _e, 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 _t, 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);
|
|
@@ -2362,4 +2362,4 @@ const Ni = [
|
|
|
2362
2362
|
export {
|
|
2363
2363
|
Hi as default
|
|
2364
2364
|
};
|
|
2365
|
-
//# sourceMappingURL=CodeEditorView-
|
|
2365
|
+
//# sourceMappingURL=CodeEditorView-511c0703.mjs.map
|