ghost 5.87.0 → 5.87.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/LICENSE +1 -1
- package/README.md +6 -5
- package/components/tryghost-adapter-cache-memory-ttl-5.87.2.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.87.0.tgz → tryghost-adapter-cache-redis-5.87.2.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.87.0.tgz → tryghost-adapter-manager-5.87.2.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.87.2.tgz +0 -0
- package/components/{tryghost-api-framework-5.87.0.tgz → tryghost-api-framework-5.87.2.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.87.0.tgz → tryghost-api-version-compatibility-service-5.87.2.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.87.2.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.87.2.tgz +0 -0
- package/components/{tryghost-bootstrap-socket-5.87.0.tgz → tryghost-bootstrap-socket-5.87.2.tgz} +0 -0
- package/components/{tryghost-collections-5.87.0.tgz → tryghost-collections-5.87.2.tgz} +0 -0
- package/components/tryghost-constants-5.87.2.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.87.2.tgz +0 -0
- package/components/{tryghost-data-generator-5.87.0.tgz → tryghost-data-generator-5.87.2.tgz} +0 -0
- package/components/tryghost-domain-events-5.87.2.tgz +0 -0
- package/components/{tryghost-donations-5.87.0.tgz → tryghost-donations-5.87.2.tgz} +0 -0
- package/components/tryghost-dynamic-routing-events-5.87.2.tgz +0 -0
- package/components/tryghost-email-addresses-5.87.2.tgz +0 -0
- package/components/{tryghost-email-analytics-provider-mailgun-5.87.0.tgz → tryghost-email-analytics-provider-mailgun-5.87.2.tgz} +0 -0
- package/components/{tryghost-email-analytics-service-5.87.0.tgz → tryghost-email-analytics-service-5.87.2.tgz} +0 -0
- package/components/tryghost-email-content-generator-5.87.2.tgz +0 -0
- package/components/{tryghost-email-events-5.87.0.tgz → tryghost-email-events-5.87.2.tgz} +0 -0
- package/components/tryghost-email-service-5.87.2.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.87.2.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.87.2.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.87.2.tgz +0 -0
- package/components/tryghost-extract-api-key-5.87.2.tgz +0 -0
- package/components/tryghost-ghost-5.87.2.tgz +0 -0
- package/components/{tryghost-html-to-plaintext-5.87.0.tgz → tryghost-html-to-plaintext-5.87.2.tgz} +0 -0
- package/components/tryghost-i18n-5.87.2.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.87.2.tgz +0 -0
- package/components/{tryghost-importer-revue-5.87.0.tgz → tryghost-importer-revue-5.87.2.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.87.2.tgz +0 -0
- package/components/{tryghost-job-manager-5.87.0.tgz → tryghost-job-manager-5.87.2.tgz} +0 -0
- package/components/tryghost-link-redirects-5.87.2.tgz +0 -0
- package/components/{tryghost-link-replacer-5.87.0.tgz → tryghost-link-replacer-5.87.2.tgz} +0 -0
- package/components/tryghost-link-tracking-5.87.2.tgz +0 -0
- package/components/tryghost-magic-link-5.87.2.tgz +0 -0
- package/components/{tryghost-mail-events-5.87.0.tgz → tryghost-mail-events-5.87.2.tgz} +0 -0
- package/components/{tryghost-mailgun-client-5.87.0.tgz → tryghost-mailgun-client-5.87.2.tgz} +0 -0
- package/components/{tryghost-member-attribution-5.87.0.tgz → tryghost-member-attribution-5.87.2.tgz} +0 -0
- package/components/tryghost-member-events-5.87.2.tgz +0 -0
- package/components/tryghost-members-api-5.87.2.tgz +0 -0
- package/components/tryghost-members-csv-5.87.2.tgz +0 -0
- package/components/tryghost-members-events-service-5.87.2.tgz +0 -0
- package/components/{tryghost-members-importer-5.87.0.tgz → tryghost-members-importer-5.87.2.tgz} +0 -0
- package/components/{tryghost-members-offers-5.87.0.tgz → tryghost-members-offers-5.87.2.tgz} +0 -0
- package/components/tryghost-members-payments-5.87.2.tgz +0 -0
- package/components/tryghost-members-ssr-5.87.2.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.87.2.tgz +0 -0
- package/components/{tryghost-mentions-email-report-5.87.0.tgz → tryghost-mentions-email-report-5.87.2.tgz} +0 -0
- package/components/{tryghost-milestones-5.87.0.tgz → tryghost-milestones-5.87.2.tgz} +0 -0
- package/components/{tryghost-minifier-5.87.0.tgz → tryghost-minifier-5.87.2.tgz} +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.87.2.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.87.2.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.87.2.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.87.2.tgz +0 -0
- package/components/{tryghost-mw-session-from-token-5.87.0.tgz → tryghost-mw-session-from-token-5.87.2.tgz} +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.87.2.tgz +0 -0
- package/components/{tryghost-mw-version-match-5.87.0.tgz → tryghost-mw-version-match-5.87.2.tgz} +0 -0
- package/components/tryghost-mw-vhost-5.87.2.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.87.2.tgz +0 -0
- package/components/tryghost-oembed-service-5.87.2.tgz +0 -0
- package/components/{tryghost-package-json-5.87.0.tgz → tryghost-package-json-5.87.2.tgz} +0 -0
- package/components/tryghost-post-events-5.87.2.tgz +0 -0
- package/components/tryghost-post-revisions-5.87.2.tgz +0 -0
- package/components/tryghost-posts-service-5.87.2.tgz +0 -0
- package/components/tryghost-recommendations-5.87.2.tgz +0 -0
- package/components/tryghost-referrers-5.87.2.tgz +0 -0
- package/components/{tryghost-security-5.87.0.tgz → tryghost-security-5.87.2.tgz} +0 -0
- package/components/{tryghost-session-service-5.87.0.tgz → tryghost-session-service-5.87.2.tgz} +0 -0
- package/components/tryghost-settings-path-manager-5.87.2.tgz +0 -0
- package/components/tryghost-slack-notifications-5.87.2.tgz +0 -0
- package/components/tryghost-staff-service-5.87.2.tgz +0 -0
- package/components/tryghost-stats-service-5.87.2.tgz +0 -0
- package/components/{tryghost-tiers-5.87.0.tgz → tryghost-tiers-5.87.2.tgz} +0 -0
- package/components/{tryghost-update-check-service-5.87.0.tgz → tryghost-update-check-service-5.87.2.tgz} +0 -0
- package/components/tryghost-verification-trigger-5.87.2.tgz +0 -0
- package/components/{tryghost-version-notifications-data-service-5.87.0.tgz → tryghost-version-notifications-data-service-5.87.2.tgz} +0 -0
- package/components/{tryghost-webmentions-5.87.0.tgz → tryghost-webmentions-5.87.2.tgz} +0 -0
- package/content/themes/casper/assets/built/screen.css +1 -1
- package/content/themes/casper/assets/built/screen.css.map +1 -1
- package/content/themes/casper/assets/css/screen.css +12 -0
- package/content/themes/casper/package.json +1 -1
- package/content/themes/casper/post.hbs +1 -1
- package/content/themes/source/assets/built/screen.css +1 -1
- package/content/themes/source/assets/built/screen.css.map +1 -1
- package/content/themes/source/assets/css/screen.css +12 -45
- package/content/themes/source/default.hbs +3 -0
- package/content/themes/source/package.json +1 -1
- package/content/themes/source/partials/email-subscription.hbs +1 -1
- package/content/themes/source/partials/feature-image.hbs +8 -9
- package/content/themes/source/partials/typography/fonts.hbs +15 -0
- package/content/themes/source/partials/typography/mono.hbs +21 -0
- package/content/themes/source/partials/typography/sans.hbs +11 -0
- package/content/themes/source/partials/typography/serif.hbs +21 -0
- package/content/themes/source/post.hbs +2 -2
- package/core/boot.js +0 -4
- package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +3 -3
- package/core/built/admin/assets/admin-x-activitypub/index-b4a353e7.mjs +18739 -0
- package/core/built/admin/assets/admin-x-activitypub/modals-f64a65f9.mjs +514 -0
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
- package/core/built/admin/assets/admin-x-demo/index-5e68f89b.mjs +12341 -0
- package/core/built/admin/assets/admin-x-demo/{modals-0790023d.mjs → modals-f789a6c4.mjs} +109 -108
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-18434b62.mjs → CodeEditorView-e762149f.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-26c4c463.mjs → index-b5d002c9.mjs} +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-c8f7240c.mjs → index-e85d0dcf.mjs} +14001 -10336
- package/core/built/admin/assets/admin-x-settings/{modals-bef82301.mjs → modals-ccd29d36.mjs} +10876 -14498
- package/core/built/admin/assets/{chunk.216.1641331b33471771559d.js → chunk.42.0879e40a4de3db25b177.js} +6069 -6334
- package/core/built/admin/assets/{chunk.216.1641331b33471771559d.js.LICENSE.txt → chunk.42.0879e40a4de3db25b177.js.LICENSE.txt} +1 -44
- package/core/built/admin/assets/{chunk.524.d2e0fcb8c19f3c1a3b30.js → chunk.524.a026cb2ef64affe16853.js} +5 -5
- package/core/built/admin/assets/{chunk.582.21faf5b79ae545480852.js → chunk.582.87261633b6177d1a30a5.js} +11 -11
- package/core/built/admin/assets/{ghost-7cd5e5705abfd8aa74248fc44aec54b5.js → ghost-07422c98448d7259d957d65c6737a274.js} +451 -468
- package/core/built/admin/assets/ghost-cb98187b163a0d8b42d752ab890e039a.css +1 -0
- package/core/built/admin/assets/ghost-dark-0d78b0a11f5c2604992de20c1bfe396f.css +1 -0
- package/core/built/admin/assets/koenig-lexical/index.css +1 -1
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +6427 -6384
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +111 -110
- package/core/built/admin/assets/{vendor-104fd33edb243021ce2f1a3797d513ef.js → vendor-051d43ec47258b77ffd2fcc21a6d8c50.js} +564 -987
- package/core/built/admin/index.html +6 -6
- package/core/frontend/services/routing/controllers/unsubscribe.js +1 -2
- package/core/frontend/src/cards/css/bookmark.css +1 -1
- package/core/frontend/src/member-attribution/member-attribution.js +15 -1
- package/core/server/api/endpoints/utils/serializers/output/authentication.js +1 -1
- package/core/server/data/importer/importers/data/ProductsImporter.js +18 -0
- package/core/server/lib/image/ImageSize.js +15 -3
- package/core/server/lib/image/ImageUtils.js +2 -1
- package/core/server/services/custom-redirects/CustomRedirectsAPI.js +3 -4
- package/core/server/services/custom-redirects/validation.js +21 -3
- package/core/server/services/recommendations/RecommendationServiceWrapper.js +6 -11
- package/core/server/services/webhooks/WebhookTrigger.js +2 -1
- package/core/shared/labs.js +0 -7
- package/package.json +159 -161
- package/yarn.lock +1181 -935
- package/components/tryghost-adapter-cache-memory-ttl-5.87.0.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.87.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.87.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.87.0.tgz +0 -0
- package/components/tryghost-constants-5.87.0.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.87.0.tgz +0 -0
- package/components/tryghost-domain-events-5.87.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.87.0.tgz +0 -0
- package/components/tryghost-email-addresses-5.87.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.87.0.tgz +0 -0
- package/components/tryghost-email-service-5.87.0.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.87.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.87.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.87.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.87.0.tgz +0 -0
- package/components/tryghost-ghost-5.87.0.tgz +0 -0
- package/components/tryghost-i18n-5.87.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.87.0.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.87.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.87.0.tgz +0 -0
- package/components/tryghost-link-tracking-5.87.0.tgz +0 -0
- package/components/tryghost-magic-link-5.87.0.tgz +0 -0
- package/components/tryghost-member-events-5.87.0.tgz +0 -0
- package/components/tryghost-members-api-5.87.0.tgz +0 -0
- package/components/tryghost-members-csv-5.87.0.tgz +0 -0
- package/components/tryghost-members-events-service-5.87.0.tgz +0 -0
- package/components/tryghost-members-payments-5.87.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.87.0.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.87.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.87.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.87.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.87.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.87.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.87.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.87.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.87.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.87.0.tgz +0 -0
- package/components/tryghost-post-events-5.87.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.87.0.tgz +0 -0
- package/components/tryghost-posts-service-5.87.0.tgz +0 -0
- package/components/tryghost-recommendations-5.87.0.tgz +0 -0
- package/components/tryghost-referrers-5.87.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.87.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.87.0.tgz +0 -0
- package/components/tryghost-staff-service-5.87.0.tgz +0 -0
- package/components/tryghost-stats-service-5.87.0.tgz +0 -0
- package/components/tryghost-verification-trigger-5.87.0.tgz +0 -0
- package/core/built/admin/assets/admin-x-activitypub/index-adf6f50d.mjs +0 -15011
- package/core/built/admin/assets/admin-x-activitypub/modals-c796922a.mjs +0 -511
- package/core/built/admin/assets/admin-x-demo/index-ea257d67.mjs +0 -8664
- package/core/built/admin/assets/ghost-ce50e3eb300a8e297d8b1f8b372c25d6.css +0 -1
- package/core/built/admin/assets/ghost-dark-4b969016a590f3112196d4ba3da7843a.css +0 -1
- package/core/server/services/websockets/index.js +0 -1
- package/core/server/services/websockets/service.js +0 -38
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { c as e, j as s, u as O, a as
|
|
2
|
-
const
|
|
1
|
+
import { c as e, j as s, u as O, a as ae, b as P, d as D, B as K, e as le, H as T, N as B, f as oe } from "./index-5e68f89b.mjs";
|
|
2
|
+
const ne = ({
|
|
3
3
|
shiftY: l,
|
|
4
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
|
|
8
8
|
}) => {
|
|
9
|
-
const
|
|
9
|
+
const f = e(
|
|
10
10
|
"w-100 sticky bottom-[-24px] z-[297] m-0 box-border p-0"
|
|
11
|
-
),
|
|
11
|
+
), w = l ? `calc(${l} - 24px)` : "-24px", x = `${c + 24}px`, u = e(
|
|
12
12
|
"sticky z-[298] block h-[24px]",
|
|
13
13
|
i
|
|
14
|
-
),
|
|
14
|
+
), g = "0", h = e(
|
|
15
15
|
"sticky z-[299] mb-[-24px] flex items-center justify-between",
|
|
16
16
|
"h-[96px]",
|
|
17
17
|
n
|
|
18
|
-
), p = "0",
|
|
18
|
+
), p = "0", k = `${c}px`, j = "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)]", N = l ? `calc(${l} + ${c - 24}px)` : `${c - 24}px`;
|
|
19
19
|
return /* @__PURE__ */ s.jsxs(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
22
|
+
className: f,
|
|
23
23
|
style: {
|
|
24
|
-
bottom:
|
|
24
|
+
bottom: w,
|
|
25
25
|
height: x
|
|
26
26
|
},
|
|
27
27
|
children: [
|
|
@@ -30,17 +30,17 @@ const oe = ({
|
|
|
30
30
|
{
|
|
31
31
|
className: u,
|
|
32
32
|
style: {
|
|
33
|
-
bottom:
|
|
33
|
+
bottom: g
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
37
|
/* @__PURE__ */ s.jsx(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
40
|
+
className: h,
|
|
41
41
|
style: {
|
|
42
42
|
bottom: p,
|
|
43
|
-
height:
|
|
43
|
+
height: k
|
|
44
44
|
},
|
|
45
45
|
children: m
|
|
46
46
|
}
|
|
@@ -48,9 +48,9 @@ const oe = ({
|
|
|
48
48
|
/* @__PURE__ */ s.jsx(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
className:
|
|
51
|
+
className: j,
|
|
52
52
|
style: {
|
|
53
|
-
bottom:
|
|
53
|
+
bottom: N
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
)
|
|
@@ -59,7 +59,7 @@ const oe = ({
|
|
|
59
59
|
);
|
|
60
60
|
};
|
|
61
61
|
function F(l, n, i = {}) {
|
|
62
|
-
l ?
|
|
62
|
+
l ? B.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." }),
|
|
@@ -74,104 +74,105 @@ function F(l, n, i = {}) {
|
|
|
74
74
|
...i
|
|
75
75
|
}) : n();
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
78
78
|
size: l = "md",
|
|
79
79
|
width: n,
|
|
80
80
|
height: i,
|
|
81
81
|
testId: c,
|
|
82
82
|
title: m,
|
|
83
|
-
okLabel:
|
|
84
|
-
okLoading:
|
|
83
|
+
okLabel: f = "OK",
|
|
84
|
+
okLoading: w = !1,
|
|
85
85
|
cancelLabel: x = "Cancel",
|
|
86
86
|
footer: u,
|
|
87
|
-
header:
|
|
88
|
-
leftButtonProps:
|
|
87
|
+
header: g,
|
|
88
|
+
leftButtonProps: h,
|
|
89
89
|
buttonsDisabled: p,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
okDisabled: k,
|
|
91
|
+
padding: j = !0,
|
|
92
|
+
onOk: N,
|
|
93
|
+
okColor: W = "black",
|
|
94
|
+
onCancel: C,
|
|
95
|
+
topRightContent: v,
|
|
96
|
+
hideXOnMobile: X = !1,
|
|
97
|
+
afterClose: E,
|
|
98
|
+
children: q,
|
|
99
|
+
backDrop: J = !0,
|
|
100
|
+
backDropClick: Q = !0,
|
|
100
101
|
stickyFooter: z = !1,
|
|
101
|
-
stickyHeader:
|
|
102
|
-
scrolling:
|
|
103
|
-
dirty:
|
|
104
|
-
animate:
|
|
105
|
-
formSheet:
|
|
106
|
-
enableCMDS:
|
|
102
|
+
stickyHeader: R = !1,
|
|
103
|
+
scrolling: V = !0,
|
|
104
|
+
dirty: M = !1,
|
|
105
|
+
animate: Z = !0,
|
|
106
|
+
formSheet: A = !1,
|
|
107
|
+
enableCMDS: Y = !0
|
|
107
108
|
}) => {
|
|
108
|
-
const H = O(), { setGlobalDirtyState: I } =
|
|
109
|
-
|
|
110
|
-
I(
|
|
111
|
-
}, [
|
|
112
|
-
const r = (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
H.remove(),
|
|
109
|
+
const H = O(), { setGlobalDirtyState: I } = ae(), [G, ee] = P(!1);
|
|
110
|
+
D(() => {
|
|
111
|
+
I(M);
|
|
112
|
+
}, [M, I]), D(() => {
|
|
113
|
+
const r = (b) => {
|
|
114
|
+
b.key === "Escape" && (document.activeElement && document.activeElement instanceof HTMLElement && document.activeElement.blur(), setTimeout(() => {
|
|
115
|
+
C ? C() : F(M, () => {
|
|
116
|
+
H.remove(), E == null || E();
|
|
116
117
|
});
|
|
117
|
-
}),
|
|
118
|
+
}), b.stopPropagation());
|
|
118
119
|
};
|
|
119
120
|
return document.addEventListener("keydown", r), () => {
|
|
120
121
|
document.removeEventListener("keydown", r);
|
|
121
122
|
};
|
|
122
|
-
}, [H, E, C
|
|
123
|
+
}, [H, M, E, C]), D(() => {
|
|
123
124
|
const r = setTimeout(() => {
|
|
124
|
-
|
|
125
|
+
ee(!0);
|
|
125
126
|
}, 250);
|
|
126
127
|
return () => clearTimeout(r);
|
|
127
|
-
}, []),
|
|
128
|
-
if (
|
|
129
|
-
const r = (
|
|
130
|
-
(
|
|
128
|
+
}, []), D(() => {
|
|
129
|
+
if (N) {
|
|
130
|
+
const r = (b) => {
|
|
131
|
+
(b.metaKey || b.ctrlKey) && b.key === "s" && (b.preventDefault(), N());
|
|
131
132
|
};
|
|
132
|
-
if (
|
|
133
|
+
if (Y)
|
|
133
134
|
return window.addEventListener("keydown", r), () => {
|
|
134
135
|
window.removeEventListener("keydown", r);
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
138
|
});
|
|
138
139
|
const _ = [];
|
|
139
|
-
let
|
|
140
|
+
let L;
|
|
140
141
|
const S = () => {
|
|
141
|
-
F(
|
|
142
|
-
H.remove(),
|
|
142
|
+
F(M, () => {
|
|
143
|
+
H.remove(), E == null || E();
|
|
143
144
|
});
|
|
144
145
|
};
|
|
145
146
|
u || (x && _.push({
|
|
146
147
|
key: "cancel-modal",
|
|
147
148
|
label: x,
|
|
148
149
|
color: "outline",
|
|
149
|
-
onClick:
|
|
150
|
+
onClick: C || (() => {
|
|
150
151
|
S();
|
|
151
152
|
}),
|
|
152
153
|
disabled: p
|
|
153
|
-
}),
|
|
154
|
+
}), f && _.push({
|
|
154
155
|
key: "ok-modal",
|
|
155
|
-
label:
|
|
156
|
-
color:
|
|
156
|
+
label: f,
|
|
157
|
+
color: W,
|
|
157
158
|
className: "min-w-[80px]",
|
|
158
|
-
onClick:
|
|
159
|
-
disabled: p,
|
|
160
|
-
loading:
|
|
159
|
+
onClick: N,
|
|
160
|
+
disabled: p || k,
|
|
161
|
+
loading: w
|
|
161
162
|
}));
|
|
162
163
|
let a = e(
|
|
163
164
|
"relative z-50 mx-auto flex max-h-[100%] w-full flex-col justify-between overflow-x-hidden bg-white dark:bg-black",
|
|
164
165
|
l !== "bleed" && "rounded",
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
A ? "shadow-md" : "shadow-xl",
|
|
167
|
+
Z && !A && !G && "animate-modal-in",
|
|
168
|
+
A && !G && "animate-modal-in-reverse",
|
|
169
|
+
V ? "overflow-y-auto" : "overflow-y-hidden"
|
|
169
170
|
), o = e(
|
|
170
171
|
"fixed inset-0 z-[1000] h-[100vh] w-[100vw]"
|
|
171
172
|
), d = "", t = e(
|
|
172
|
-
!
|
|
173
|
+
!v || v === "close" ? "" : "flex items-center justify-between gap-5"
|
|
173
174
|
);
|
|
174
|
-
switch (
|
|
175
|
+
switch (R && (t = e(
|
|
175
176
|
t,
|
|
176
177
|
"sticky top-0 z-[200] -mb-4 bg-white !pb-4 dark:bg-black"
|
|
177
178
|
)), l) {
|
|
@@ -254,72 +255,72 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
254
255
|
);
|
|
255
256
|
break;
|
|
256
257
|
}
|
|
257
|
-
|
|
258
|
+
j || (d = "p-0"), a = e(
|
|
258
259
|
a
|
|
259
260
|
), t = e(
|
|
260
261
|
t,
|
|
261
262
|
d,
|
|
262
263
|
"pb-0"
|
|
263
|
-
),
|
|
264
|
+
), L = e(
|
|
264
265
|
d,
|
|
265
266
|
"py-0"
|
|
266
267
|
), o = e(
|
|
267
268
|
o,
|
|
268
269
|
"max-[800px]:!pb-20"
|
|
269
270
|
);
|
|
270
|
-
const
|
|
271
|
+
const se = e(
|
|
271
272
|
`${d} ${z ? "py-6" : ""}`,
|
|
272
273
|
"flex w-full items-center justify-between"
|
|
273
274
|
);
|
|
274
|
-
|
|
275
|
-
|
|
275
|
+
L = e(
|
|
276
|
+
L,
|
|
276
277
|
(l === "full" || l === "bleed" || i === "full" || typeof i == "number") && "grow"
|
|
277
278
|
);
|
|
278
|
-
const
|
|
279
|
-
r.target === r.currentTarget &&
|
|
280
|
-
},
|
|
281
|
-
typeof n == "number" ? (
|
|
279
|
+
const te = (r) => {
|
|
280
|
+
r.target === r.currentTarget && Q && S();
|
|
281
|
+
}, $ = {};
|
|
282
|
+
typeof n == "number" ? ($.width = "100%", $.maxWidth = n + "px") : n === "full" && (a = e(
|
|
282
283
|
a,
|
|
283
284
|
"w-full"
|
|
284
|
-
)), typeof i == "number" ? (
|
|
285
|
+
)), typeof i == "number" ? ($.height = "100%", $.maxHeight = i + "px") : i === "full" && (a = e(
|
|
285
286
|
a,
|
|
286
287
|
"h-full"
|
|
287
288
|
));
|
|
288
|
-
let
|
|
289
|
-
return u ?
|
|
290
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
291
|
-
/* @__PURE__ */ s.jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ s.jsx(
|
|
292
|
-
] }),
|
|
289
|
+
let y;
|
|
290
|
+
return u ? y = u : u === !1 ? L += " pb-0 " : y = /* @__PURE__ */ s.jsxs("div", { className: se, children: [
|
|
291
|
+
/* @__PURE__ */ s.jsx("div", { children: h && /* @__PURE__ */ s.jsx(K, { ...h }) }),
|
|
292
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ s.jsx(le, { buttons: _ }) })
|
|
293
|
+
] }), y = z ? /* @__PURE__ */ s.jsx(ne, { height: 84, children: y }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: y }), /* @__PURE__ */ s.jsxs("div", { className: o, id: "modal-backdrop", onMouseDown: te, children: [
|
|
293
294
|
/* @__PURE__ */ s.jsx("div", { className: e(
|
|
294
295
|
"pointer-events-none fixed inset-0 z-0",
|
|
295
|
-
|
|
296
|
-
|
|
296
|
+
J && !A && ie,
|
|
297
|
+
A && "bg-[rgba(98,109,121,0.08)]"
|
|
297
298
|
) }),
|
|
298
|
-
/* @__PURE__ */ s.jsxs("section", { className: a, "data-testid": c, style:
|
|
299
|
-
|
|
299
|
+
/* @__PURE__ */ s.jsxs("section", { className: a, "data-testid": c, style: $, children: [
|
|
300
|
+
g === !1 ? "" : !v || v === "close" ? /* @__PURE__ */ s.jsxs("header", { className: t, children: [
|
|
300
301
|
m && /* @__PURE__ */ s.jsx(T, { level: 3, children: m }),
|
|
301
|
-
/* @__PURE__ */ s.jsx("div", { className: `${
|
|
302
|
+
/* @__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
303
|
] }) : /* @__PURE__ */ s.jsxs("header", { className: t, children: [
|
|
303
304
|
m && /* @__PURE__ */ s.jsx(T, { level: 3, children: m }),
|
|
304
|
-
|
|
305
|
+
v
|
|
305
306
|
] }),
|
|
306
|
-
/* @__PURE__ */ s.jsx("div", { className:
|
|
307
|
-
|
|
307
|
+
/* @__PURE__ */ s.jsx("div", { className: L, children: q }),
|
|
308
|
+
y
|
|
308
309
|
] })
|
|
309
310
|
] });
|
|
310
|
-
},
|
|
311
|
+
}, ce = ({
|
|
311
312
|
title: l = "Are you sure?",
|
|
312
313
|
prompt: n,
|
|
313
314
|
cancelLabel: i = "Cancel",
|
|
314
315
|
okLabel: c = "OK",
|
|
315
316
|
okRunningLabel: m = "...",
|
|
316
|
-
okColor:
|
|
317
|
-
onCancel:
|
|
317
|
+
okColor: f = "black",
|
|
318
|
+
onCancel: w,
|
|
318
319
|
onOk: x,
|
|
319
320
|
customFooter: u,
|
|
320
|
-
formSheet:
|
|
321
|
+
formSheet: g = !0
|
|
321
322
|
}) => {
|
|
322
|
-
const
|
|
323
|
+
const h = O(), [p, k] = P("");
|
|
323
324
|
return /* @__PURE__ */ s.jsx(
|
|
324
325
|
U,
|
|
325
326
|
{
|
|
@@ -327,27 +328,27 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
327
328
|
buttonsDisabled: p === "running",
|
|
328
329
|
cancelLabel: i,
|
|
329
330
|
footer: u,
|
|
330
|
-
formSheet:
|
|
331
|
-
okColor:
|
|
331
|
+
formSheet: g,
|
|
332
|
+
okColor: f,
|
|
332
333
|
okLabel: p === "running" ? m : c,
|
|
333
334
|
testId: "confirmation-modal",
|
|
334
335
|
title: l,
|
|
335
336
|
width: 540,
|
|
336
|
-
onCancel:
|
|
337
|
+
onCancel: w,
|
|
337
338
|
onOk: async () => {
|
|
338
|
-
|
|
339
|
+
k("running");
|
|
339
340
|
try {
|
|
340
|
-
await (x == null ? void 0 : x(
|
|
341
|
-
} catch (
|
|
342
|
-
console.error("Unhandled Promise Rejection. Make sure you catch errors in your onOk handler.",
|
|
341
|
+
await (x == null ? void 0 : x(h));
|
|
342
|
+
} catch (j) {
|
|
343
|
+
console.error("Unhandled Promise Rejection. Make sure you catch errors in your onOk handler.", j);
|
|
343
344
|
}
|
|
344
|
-
|
|
345
|
+
k("");
|
|
345
346
|
},
|
|
346
347
|
children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children: n })
|
|
347
348
|
}
|
|
348
349
|
);
|
|
349
|
-
},
|
|
350
|
-
const { updateRoute: l } =
|
|
350
|
+
}, de = B.create(ce), re = B.create(() => {
|
|
351
|
+
const { updateRoute: l } = oe(), n = B.useModal();
|
|
351
352
|
return /* @__PURE__ */ s.jsx(
|
|
352
353
|
U,
|
|
353
354
|
{
|
|
@@ -374,8 +375,8 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
|
|
|
374
375
|
] })
|
|
375
376
|
}
|
|
376
377
|
);
|
|
377
|
-
}),
|
|
378
|
+
}), ue = { DemoModal: re };
|
|
378
379
|
export {
|
|
379
|
-
|
|
380
|
+
ue as default
|
|
380
381
|
};
|
|
381
|
-
//# sourceMappingURL=modals-
|
|
382
|
+
//# sourceMappingURL=modals-f789a6c4.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ce, b as _,
|
|
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-e85d0dcf.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-e762149f.mjs.map
|