ghost 5.80.1 → 5.80.3
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.80.3.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.80.1.tgz → tryghost-adapter-cache-redis-5.80.3.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.80.1.tgz → tryghost-adapter-manager-5.80.3.tgz} +0 -0
- package/components/tryghost-announcement-bar-settings-5.80.3.tgz +0 -0
- package/components/{tryghost-api-framework-5.80.1.tgz → tryghost-api-framework-5.80.3.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.80.1.tgz → tryghost-api-version-compatibility-service-5.80.3.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.80.3.tgz +0 -0
- package/components/{tryghost-bookshelf-repository-5.80.1.tgz → tryghost-bookshelf-repository-5.80.3.tgz} +0 -0
- package/components/{tryghost-bootstrap-socket-5.80.1.tgz → tryghost-bootstrap-socket-5.80.3.tgz} +0 -0
- package/components/tryghost-collections-5.80.3.tgz +0 -0
- package/components/{tryghost-constants-5.80.1.tgz → tryghost-constants-5.80.3.tgz} +0 -0
- package/components/tryghost-custom-theme-settings-service-5.80.3.tgz +0 -0
- package/components/{tryghost-data-generator-5.80.1.tgz → tryghost-data-generator-5.80.3.tgz} +0 -0
- package/components/tryghost-domain-events-5.80.3.tgz +0 -0
- package/components/tryghost-donations-5.80.3.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.80.3.tgz +0 -0
- package/components/tryghost-email-addresses-5.80.3.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.80.3.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.80.3.tgz +0 -0
- package/components/tryghost-email-content-generator-5.80.3.tgz +0 -0
- package/components/{tryghost-email-events-5.80.1.tgz → tryghost-email-events-5.80.3.tgz} +0 -0
- package/components/tryghost-email-service-5.80.3.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.80.3.tgz +0 -0
- package/components/{tryghost-express-dynamic-redirects-5.80.1.tgz → tryghost-express-dynamic-redirects-5.80.3.tgz} +0 -0
- package/components/tryghost-external-media-inliner-5.80.3.tgz +0 -0
- package/components/tryghost-extract-api-key-5.80.3.tgz +0 -0
- package/components/tryghost-ghost-5.80.3.tgz +0 -0
- package/components/{tryghost-html-to-plaintext-5.80.1.tgz → tryghost-html-to-plaintext-5.80.3.tgz} +0 -0
- package/components/tryghost-i18n-5.80.3.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.80.3.tgz +0 -0
- package/components/{tryghost-importer-revue-5.80.1.tgz → tryghost-importer-revue-5.80.3.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.80.3.tgz +0 -0
- package/components/tryghost-job-manager-5.80.3.tgz +0 -0
- package/components/tryghost-link-redirects-5.80.3.tgz +0 -0
- package/components/tryghost-link-replacer-5.80.3.tgz +0 -0
- package/components/tryghost-link-tracking-5.80.3.tgz +0 -0
- package/components/tryghost-magic-link-5.80.3.tgz +0 -0
- package/components/tryghost-mail-events-5.80.3.tgz +0 -0
- package/components/tryghost-mailgun-client-5.80.3.tgz +0 -0
- package/components/tryghost-member-attribution-5.80.3.tgz +0 -0
- package/components/{tryghost-member-events-5.80.1.tgz → tryghost-member-events-5.80.3.tgz} +0 -0
- package/components/tryghost-members-api-5.80.3.tgz +0 -0
- package/components/tryghost-members-csv-5.80.3.tgz +0 -0
- package/components/{tryghost-members-events-service-5.80.1.tgz → tryghost-members-events-service-5.80.3.tgz} +0 -0
- package/components/tryghost-members-importer-5.80.3.tgz +0 -0
- package/components/{tryghost-members-offers-5.80.1.tgz → tryghost-members-offers-5.80.3.tgz} +0 -0
- package/components/tryghost-members-payments-5.80.3.tgz +0 -0
- package/components/tryghost-members-ssr-5.80.3.tgz +0 -0
- package/components/{tryghost-members-stripe-service-5.80.1.tgz → tryghost-members-stripe-service-5.80.3.tgz} +0 -0
- package/components/tryghost-mentions-email-report-5.80.3.tgz +0 -0
- package/components/tryghost-milestones-5.80.3.tgz +0 -0
- package/components/tryghost-minifier-5.80.3.tgz +0 -0
- package/components/{tryghost-model-to-domain-event-interceptor-5.80.1.tgz → tryghost-model-to-domain-event-interceptor-5.80.3.tgz} +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.80.3.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.80.3.tgz +0 -0
- package/components/{tryghost-mw-error-handler-5.80.1.tgz → tryghost-mw-error-handler-5.80.3.tgz} +0 -0
- package/components/{tryghost-mw-session-from-token-5.80.1.tgz → tryghost-mw-session-from-token-5.80.3.tgz} +0 -0
- package/components/{tryghost-mw-update-user-last-seen-5.80.1.tgz → tryghost-mw-update-user-last-seen-5.80.3.tgz} +0 -0
- package/components/tryghost-mw-version-match-5.80.3.tgz +0 -0
- package/components/tryghost-mw-vhost-5.80.3.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.80.3.tgz +0 -0
- package/components/tryghost-oembed-service-5.80.3.tgz +0 -0
- package/components/tryghost-package-json-5.80.3.tgz +0 -0
- package/components/{tryghost-post-events-5.80.1.tgz → tryghost-post-events-5.80.3.tgz} +0 -0
- package/components/tryghost-post-revisions-5.80.3.tgz +0 -0
- package/components/tryghost-posts-service-5.80.3.tgz +0 -0
- package/components/tryghost-recommendations-5.80.3.tgz +0 -0
- package/components/tryghost-referrers-5.80.3.tgz +0 -0
- package/components/{tryghost-security-5.80.1.tgz → tryghost-security-5.80.3.tgz} +0 -0
- package/components/tryghost-session-service-5.80.3.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.80.3.tgz +0 -0
- package/components/tryghost-slack-notifications-5.80.3.tgz +0 -0
- package/components/{tryghost-staff-service-5.80.1.tgz → tryghost-staff-service-5.80.3.tgz} +0 -0
- package/components/{tryghost-stats-service-5.80.1.tgz → tryghost-stats-service-5.80.3.tgz} +0 -0
- package/components/tryghost-tiers-5.80.3.tgz +0 -0
- package/components/{tryghost-update-check-service-5.80.1.tgz → tryghost-update-check-service-5.80.3.tgz} +0 -0
- package/components/tryghost-verification-trigger-5.80.3.tgz +0 -0
- package/components/{tryghost-version-notifications-data-service-5.80.1.tgz → tryghost-version-notifications-data-service-5.80.3.tgz} +0 -0
- package/components/tryghost-webmentions-5.80.3.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 +4 -0
- package/content/themes/casper/default.hbs +3 -3
- package/content/themes/casper/package.json +1 -1
- package/content/themes/casper/partials/post-card.hbs +1 -1
- package/content/themes/casper/post.hbs +3 -3
- 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/built/source.js +1 -1
- package/content/themes/source/assets/built/source.js.map +1 -1
- package/content/themes/source/assets/css/screen.css +80 -33
- package/content/themes/source/assets/js/{casper.js → main.js} +14 -0
- package/content/themes/source/package.json +16 -1
- package/content/themes/source/partials/components/cta.hbs +1 -1
- package/content/themes/source/partials/components/footer.hbs +2 -2
- package/content/themes/source/partials/components/header-content.hbs +2 -2
- package/content/themes/source/partials/components/navigation.hbs +1 -1
- package/content/themes/source/partials/email-subscription.hbs +2 -2
- package/content/themes/source/partials/icons/lock.hbs +1 -5
- package/content/themes/source/partials/post-card.hbs +13 -3
- package/content/themes/source/post.hbs +18 -14
- package/core/boot.js +27 -0
- package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +1 -1
- package/core/built/admin/assets/admin-x-demo/{index-0722d3aa.mjs → index-771f4964.mjs} +2 -2
- package/core/built/admin/assets/admin-x-demo/{modals-969dbbd3.mjs → modals-4c390700.mjs} +46 -46
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-cd254a7a.mjs → CodeEditorView-00610c2f.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-b52632c4.mjs → index-2deb7a1f.mjs} +4273 -4908
- package/core/built/admin/assets/admin-x-settings/{index-613b352d.mjs → index-e308aac8.mjs} +2859 -2831
- package/core/built/admin/assets/admin-x-settings/{modals-99dbacc0.mjs → modals-e2ca767c.mjs} +13267 -10619
- package/core/built/admin/assets/{chunk.524.eecfc0cb2091306f132c.js → chunk.524.c6ed93ff44a9cb49235c.js} +6 -6
- package/core/built/admin/assets/{chunk.582.e04c74f002928b557602.js → chunk.582.4e31037f1eb4c88f017f.js} +4 -4
- package/core/built/admin/assets/{chunk.763.6b160e403073ecabbfa6.js → chunk.763.7849440ec6494d2449e9.js} +997 -1197
- package/core/built/admin/assets/{ghost-ea7a51891dfca9b7a04aacfffe7dea4e.js → ghost-594a7dd26bdb4fec210b285cab5555cb.js} +14 -14
- package/core/built/admin/assets/ghost-71cfcdf9410af9b3aec11a28f9a4130f.css +1 -0
- package/core/built/admin/assets/ghost-dark-1e5bec737be037b1b5cb2a423603271d.css +1 -0
- package/core/built/admin/assets/{vendor-6b83da0c6e6fede335947219c59e1543.js → vendor-43a631b7c834235c4ff0b2186b5ca27d.js} +7 -9
- package/core/built/admin/index.html +6 -6
- package/core/frontend/helpers/get.js +89 -2
- package/core/frontend/public/robots.txt +0 -1
- package/core/frontend/services/rendering/renderer.js +19 -1
- package/core/frontend/services/theme-engine/i18n/I18n.js +7 -6
- package/core/frontend/services/theme-engine/i18n/ThemeI18n.js +4 -3
- package/core/server/adapters/storage/LocalStorageBase.js +13 -1
- package/core/server/api/endpoints/images.js +14 -3
- package/core/server/api/endpoints/utils/serializers/input/tiers.js +30 -2
- package/core/server/services/auth/api-key/admin.js +92 -90
- package/core/server/services/members/service.js +3 -1
- package/core/server/services/slack-notifications/service.js +6 -3
- package/core/server/services/themes/installer.js +1 -1
- package/core/server/services/tiers/TierRepository.js +2 -1
- package/core/server/web/admin/app.js +18 -1
- package/core/server/web/api/endpoints/admin/app.js +10 -0
- package/core/shared/labs.js +1 -0
- package/package.json +152 -150
- package/yarn.lock +532 -324
- package/components/tryghost-adapter-cache-memory-ttl-5.80.1.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.80.1.tgz +0 -0
- package/components/tryghost-audience-feedback-5.80.1.tgz +0 -0
- package/components/tryghost-collections-5.80.1.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.80.1.tgz +0 -0
- package/components/tryghost-domain-events-5.80.1.tgz +0 -0
- package/components/tryghost-donations-5.80.1.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.80.1.tgz +0 -0
- package/components/tryghost-email-addresses-5.80.1.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.80.1.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.80.1.tgz +0 -0
- package/components/tryghost-email-content-generator-5.80.1.tgz +0 -0
- package/components/tryghost-email-service-5.80.1.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.80.1.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.80.1.tgz +0 -0
- package/components/tryghost-extract-api-key-5.80.1.tgz +0 -0
- package/components/tryghost-i18n-5.80.1.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.80.1.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.80.1.tgz +0 -0
- package/components/tryghost-job-manager-5.80.1.tgz +0 -0
- package/components/tryghost-link-redirects-5.80.1.tgz +0 -0
- package/components/tryghost-link-replacer-5.80.1.tgz +0 -0
- package/components/tryghost-link-tracking-5.80.1.tgz +0 -0
- package/components/tryghost-magic-link-5.80.1.tgz +0 -0
- package/components/tryghost-mail-events-5.80.1.tgz +0 -0
- package/components/tryghost-mailgun-client-5.80.1.tgz +0 -0
- package/components/tryghost-member-attribution-5.80.1.tgz +0 -0
- package/components/tryghost-members-api-5.80.1.tgz +0 -0
- package/components/tryghost-members-csv-5.80.1.tgz +0 -0
- package/components/tryghost-members-importer-5.80.1.tgz +0 -0
- package/components/tryghost-members-payments-5.80.1.tgz +0 -0
- package/components/tryghost-members-ssr-5.80.1.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.80.1.tgz +0 -0
- package/components/tryghost-milestones-5.80.1.tgz +0 -0
- package/components/tryghost-minifier-5.80.1.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.80.1.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.80.1.tgz +0 -0
- package/components/tryghost-mw-version-match-5.80.1.tgz +0 -0
- package/components/tryghost-mw-vhost-5.80.1.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.80.1.tgz +0 -0
- package/components/tryghost-oembed-service-5.80.1.tgz +0 -0
- package/components/tryghost-package-json-5.80.1.tgz +0 -0
- package/components/tryghost-post-revisions-5.80.1.tgz +0 -0
- package/components/tryghost-posts-service-5.80.1.tgz +0 -0
- package/components/tryghost-recommendations-5.80.1.tgz +0 -0
- package/components/tryghost-referrers-5.80.1.tgz +0 -0
- package/components/tryghost-session-service-5.80.1.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.80.1.tgz +0 -0
- package/components/tryghost-slack-notifications-5.80.1.tgz +0 -0
- package/components/tryghost-tiers-5.80.1.tgz +0 -0
- package/components/tryghost-verification-trigger-5.80.1.tgz +0 -0
- package/components/tryghost-webmentions-5.80.1.tgz +0 -0
- package/core/built/admin/assets/ghost-40f01556960b49381176bbfa19a89c9a.css +0 -1
- package/core/built/admin/assets/ghost-dark-a86f0499bf2697104213d035da3a3b4d.css +0 -1
- /package/core/built/admin/assets/{chunk.763.6b160e403073ecabbfa6.js.LICENSE.txt → chunk.763.7849440ec6494d2449e9.js.LICENSE.txt} +0 -0
|
@@ -8369,7 +8369,7 @@ const FI = () => {
|
|
|
8369
8369
|
paths: {
|
|
8370
8370
|
"demo-modal": "DemoModal"
|
|
8371
8371
|
},
|
|
8372
|
-
load: async () => import("./modals-
|
|
8372
|
+
load: async () => import("./modals-4c390700.mjs")
|
|
8373
8373
|
}, ej = ({ framework: t, designSystem: e }) => /* @__PURE__ */ d.jsx(YI, { ...t, children: /* @__PURE__ */ d.jsx(VI, { basePath: "demo-x", modals: qI, children: /* @__PURE__ */ d.jsx(bI, { className: "admin-x-demo", ...e, children: /* @__PURE__ */ d.jsx($I, {}) }) }) });
|
|
8374
8374
|
export {
|
|
8375
8375
|
ej as A,
|
|
@@ -8385,4 +8385,4 @@ export {
|
|
|
8385
8385
|
d as j,
|
|
8386
8386
|
so as u
|
|
8387
8387
|
};
|
|
8388
|
-
//# sourceMappingURL=index-
|
|
8388
|
+
//# sourceMappingURL=index-771f4964.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, j as s, u as O, a as te, b as
|
|
1
|
+
import { c as e, j as s, u as O, a as te, b as P, d as $, B as K, e as ae, H as T, N as D, f as le } from "./index-771f4964.mjs";
|
|
2
2
|
const oe = ({
|
|
3
3
|
shiftY: l,
|
|
4
4
|
footerBgColorClass: n = "bg-white dark:bg-black",
|
|
@@ -6,20 +6,20 @@ const oe = ({
|
|
|
6
6
|
height: c = 96,
|
|
7
7
|
children: m
|
|
8
8
|
}) => {
|
|
9
|
-
const
|
|
9
|
+
const h = e(
|
|
10
10
|
"w-100 sticky bottom-[-24px] z-[297] m-0 box-border p-0"
|
|
11
11
|
), g = l ? `calc(${l} - 24px)` : "-24px", x = `${c + 24}px`, u = e(
|
|
12
12
|
"sticky z-[298] block h-[24px]",
|
|
13
13
|
i
|
|
14
|
-
), j = "0",
|
|
14
|
+
), j = "0", k = 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", v = `${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",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
22
|
+
className: h,
|
|
23
23
|
style: {
|
|
24
24
|
bottom: g,
|
|
25
25
|
height: x
|
|
@@ -37,10 +37,10 @@ const oe = ({
|
|
|
37
37
|
/* @__PURE__ */ s.jsx(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
40
|
+
className: k,
|
|
41
41
|
style: {
|
|
42
42
|
bottom: p,
|
|
43
|
-
height:
|
|
43
|
+
height: v
|
|
44
44
|
},
|
|
45
45
|
children: m
|
|
46
46
|
}
|
|
@@ -74,29 +74,29 @@ function F(l, n, i = {}) {
|
|
|
74
74
|
...i
|
|
75
75
|
}) : n();
|
|
76
76
|
}
|
|
77
|
-
const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]",
|
|
77
|
+
const ne = "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:
|
|
83
|
+
okLabel: h = "OK",
|
|
84
84
|
okLoading: g = !1,
|
|
85
85
|
cancelLabel: x = "Cancel",
|
|
86
86
|
footer: u,
|
|
87
87
|
header: j,
|
|
88
|
-
leftButtonProps:
|
|
88
|
+
leftButtonProps: k,
|
|
89
89
|
buttonsDisabled: p,
|
|
90
|
-
padding:
|
|
90
|
+
padding: v = !0,
|
|
91
91
|
onOk: b,
|
|
92
92
|
okColor: B = "black",
|
|
93
93
|
onCancel: N,
|
|
94
|
-
topRightContent:
|
|
95
|
-
hideXOnMobile:
|
|
94
|
+
topRightContent: y,
|
|
95
|
+
hideXOnMobile: W = !1,
|
|
96
96
|
afterClose: C,
|
|
97
|
-
children:
|
|
98
|
-
backDrop:
|
|
99
|
-
backDropClick:
|
|
97
|
+
children: X,
|
|
98
|
+
backDrop: q = !0,
|
|
99
|
+
backDropClick: J = !0,
|
|
100
100
|
stickyFooter: z = !1,
|
|
101
101
|
stickyHeader: Q = !1,
|
|
102
102
|
scrolling: R = !0,
|
|
@@ -105,16 +105,16 @@ const ne = "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: I } = te(), [G, Y] =
|
|
108
|
+
const H = O(), { setGlobalDirtyState: I } = te(), [G, Y] = P(!1);
|
|
109
109
|
$(() => {
|
|
110
110
|
I(E);
|
|
111
111
|
}, [E, I]), $(() => {
|
|
112
|
-
const r = (
|
|
113
|
-
|
|
112
|
+
const r = (f) => {
|
|
113
|
+
f.key === "Escape" && (document.activeElement && document.activeElement instanceof HTMLElement && document.activeElement.blur(), setTimeout(() => {
|
|
114
114
|
N ? N() : F(E, () => {
|
|
115
115
|
H.remove(), C == null || C();
|
|
116
116
|
});
|
|
117
|
-
}));
|
|
117
|
+
}), f.stopPropagation());
|
|
118
118
|
};
|
|
119
119
|
return document.addEventListener("keydown", r), () => {
|
|
120
120
|
document.removeEventListener("keydown", r);
|
|
@@ -126,8 +126,8 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
126
126
|
return () => clearTimeout(r);
|
|
127
127
|
}, []), $(() => {
|
|
128
128
|
if (b) {
|
|
129
|
-
const r = (
|
|
130
|
-
(
|
|
129
|
+
const r = (f) => {
|
|
130
|
+
(f.metaKey || f.ctrlKey) && f.key === "s" && (f.preventDefault(), b());
|
|
131
131
|
};
|
|
132
132
|
if (Z)
|
|
133
133
|
return window.addEventListener("keydown", r), () => {
|
|
@@ -150,9 +150,9 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
150
150
|
S();
|
|
151
151
|
}),
|
|
152
152
|
disabled: p
|
|
153
|
-
}),
|
|
153
|
+
}), h && _.push({
|
|
154
154
|
key: "ok-modal",
|
|
155
|
-
label:
|
|
155
|
+
label: h,
|
|
156
156
|
color: B,
|
|
157
157
|
className: "min-w-[80px]",
|
|
158
158
|
onClick: b,
|
|
@@ -169,7 +169,7 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
169
169
|
), o = e(
|
|
170
170
|
"fixed inset-0 z-[1000] h-[100vh] w-[100vw]"
|
|
171
171
|
), d = "", t = e(
|
|
172
|
-
!
|
|
172
|
+
!y || y === "close" ? "" : "flex items-center justify-between gap-5"
|
|
173
173
|
);
|
|
174
174
|
switch (Q && (t = e(
|
|
175
175
|
t,
|
|
@@ -254,7 +254,7 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
254
254
|
);
|
|
255
255
|
break;
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
v || (d = "p-0"), a = e(
|
|
258
258
|
a
|
|
259
259
|
), t = e(
|
|
260
260
|
t,
|
|
@@ -276,7 +276,7 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
276
276
|
(l === "full" || l === "bleed" || i === "full" || typeof i == "number") && "grow"
|
|
277
277
|
);
|
|
278
278
|
const se = (r) => {
|
|
279
|
-
r.target === r.currentTarget &&
|
|
279
|
+
r.target === r.currentTarget && J && S();
|
|
280
280
|
}, L = {};
|
|
281
281
|
typeof n == "number" ? (L.width = "100%", L.maxWidth = n + "px") : n === "full" && (a = e(
|
|
282
282
|
a,
|
|
@@ -285,26 +285,26 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
285
285
|
a,
|
|
286
286
|
"h-full"
|
|
287
287
|
));
|
|
288
|
-
let
|
|
289
|
-
return u ?
|
|
290
|
-
/* @__PURE__ */ s.jsx("div", { children:
|
|
288
|
+
let w;
|
|
289
|
+
return u ? w = u : u === !1 ? A += " pb-0 " : w = /* @__PURE__ */ s.jsxs("div", { className: ee, children: [
|
|
290
|
+
/* @__PURE__ */ s.jsx("div", { children: k && /* @__PURE__ */ s.jsx(K, { ...k }) }),
|
|
291
291
|
/* @__PURE__ */ s.jsx("div", { className: "flex gap-3", children: /* @__PURE__ */ s.jsx(ae, { buttons: _ }) })
|
|
292
|
-
] }),
|
|
292
|
+
] }), w = z ? /* @__PURE__ */ s.jsx(oe, { height: 84, children: w }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: w }), /* @__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
|
-
|
|
295
|
+
q && !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
|
-
j === !1 ? "" : !
|
|
299
|
+
j === !1 ? "" : !y || y === "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: `${
|
|
301
|
+
/* @__PURE__ */ s.jsx("div", { className: `${y !== "close" && "md:!invisible md:!hidden"} ${W && "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
|
+
y
|
|
305
305
|
] }),
|
|
306
|
-
/* @__PURE__ */ s.jsx("div", { className: A, children:
|
|
307
|
-
|
|
306
|
+
/* @__PURE__ */ s.jsx("div", { className: A, children: X }),
|
|
307
|
+
w
|
|
308
308
|
] })
|
|
309
309
|
] });
|
|
310
310
|
}, ie = ({
|
|
@@ -313,35 +313,35 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
313
313
|
cancelLabel: i = "Cancel",
|
|
314
314
|
okLabel: c = "OK",
|
|
315
315
|
okRunningLabel: m = "...",
|
|
316
|
-
okColor:
|
|
316
|
+
okColor: h = "black",
|
|
317
317
|
onCancel: g,
|
|
318
318
|
onOk: x,
|
|
319
319
|
customFooter: u,
|
|
320
320
|
formSheet: j = !0
|
|
321
321
|
}) => {
|
|
322
|
-
const
|
|
322
|
+
const k = O(), [p, v] = P("");
|
|
323
323
|
return /* @__PURE__ */ s.jsx(
|
|
324
|
-
|
|
324
|
+
U,
|
|
325
325
|
{
|
|
326
326
|
backDropClick: !1,
|
|
327
327
|
buttonsDisabled: p === "running",
|
|
328
328
|
cancelLabel: i,
|
|
329
329
|
footer: u,
|
|
330
330
|
formSheet: j,
|
|
331
|
-
okColor:
|
|
331
|
+
okColor: h,
|
|
332
332
|
okLabel: p === "running" ? m : c,
|
|
333
333
|
testId: "confirmation-modal",
|
|
334
334
|
title: l,
|
|
335
335
|
width: 540,
|
|
336
336
|
onCancel: g,
|
|
337
337
|
onOk: async () => {
|
|
338
|
-
|
|
338
|
+
v("running");
|
|
339
339
|
try {
|
|
340
|
-
await (x == null ? void 0 : x(
|
|
340
|
+
await (x == null ? void 0 : x(k));
|
|
341
341
|
} catch (b) {
|
|
342
342
|
console.error("Unhandled Promise Rejection. Make sure you catch errors in your onOk handler.", b);
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
v("");
|
|
345
345
|
},
|
|
346
346
|
children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children: n })
|
|
347
347
|
}
|
|
@@ -349,7 +349,7 @@ const ne = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", W = ({
|
|
|
349
349
|
}, ce = D.create(ie), de = D.create(() => {
|
|
350
350
|
const { updateRoute: l } = le(), n = D.useModal();
|
|
351
351
|
return /* @__PURE__ */ s.jsx(
|
|
352
|
-
|
|
352
|
+
U,
|
|
353
353
|
{
|
|
354
354
|
afterClose: () => {
|
|
355
355
|
l("");
|
|
@@ -378,4 +378,4 @@ const ne = "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-4c390700.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-e308aac8.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);
|
|
@@ -2362,4 +2362,4 @@ const Ni = [
|
|
|
2362
2362
|
export {
|
|
2363
2363
|
Hi as default
|
|
2364
2364
|
};
|
|
2365
|
-
//# sourceMappingURL=CodeEditorView-
|
|
2365
|
+
//# sourceMappingURL=CodeEditorView-00610c2f.mjs.map
|