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