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.
Files changed (151) hide show
  1. package/components/tryghost-adapter-cache-memory-ttl-5.89.2.tgz +0 -0
  2. package/components/{tryghost-adapter-cache-redis-5.89.1.tgz → tryghost-adapter-cache-redis-5.89.2.tgz} +0 -0
  3. package/components/{tryghost-adapter-manager-5.89.1.tgz → tryghost-adapter-manager-5.89.2.tgz} +0 -0
  4. package/components/{tryghost-announcement-bar-settings-5.89.1.tgz → tryghost-announcement-bar-settings-5.89.2.tgz} +0 -0
  5. package/components/{tryghost-api-framework-5.89.1.tgz → tryghost-api-framework-5.89.2.tgz} +0 -0
  6. package/components/{tryghost-api-version-compatibility-service-5.89.1.tgz → tryghost-api-version-compatibility-service-5.89.2.tgz} +0 -0
  7. package/components/tryghost-audience-feedback-5.89.2.tgz +0 -0
  8. package/components/tryghost-bookshelf-repository-5.89.2.tgz +0 -0
  9. package/components/{tryghost-bootstrap-socket-5.89.1.tgz → tryghost-bootstrap-socket-5.89.2.tgz} +0 -0
  10. package/components/tryghost-collections-5.89.2.tgz +0 -0
  11. package/components/tryghost-constants-5.89.2.tgz +0 -0
  12. package/components/{tryghost-custom-theme-settings-service-5.89.1.tgz → tryghost-custom-theme-settings-service-5.89.2.tgz} +0 -0
  13. package/components/{tryghost-data-generator-5.89.1.tgz → tryghost-data-generator-5.89.2.tgz} +0 -0
  14. package/components/tryghost-domain-events-5.89.2.tgz +0 -0
  15. package/components/tryghost-donations-5.89.2.tgz +0 -0
  16. package/components/tryghost-dynamic-routing-events-5.89.2.tgz +0 -0
  17. package/components/tryghost-email-addresses-5.89.2.tgz +0 -0
  18. package/components/tryghost-email-analytics-provider-mailgun-5.89.2.tgz +0 -0
  19. package/components/tryghost-email-analytics-service-5.89.2.tgz +0 -0
  20. package/components/{tryghost-email-content-generator-5.89.1.tgz → tryghost-email-content-generator-5.89.2.tgz} +0 -0
  21. package/components/tryghost-email-events-5.89.2.tgz +0 -0
  22. package/components/{tryghost-email-service-5.89.1.tgz → tryghost-email-service-5.89.2.tgz} +0 -0
  23. package/components/tryghost-email-suppression-list-5.89.2.tgz +0 -0
  24. package/components/tryghost-express-dynamic-redirects-5.89.2.tgz +0 -0
  25. package/components/tryghost-external-media-inliner-5.89.2.tgz +0 -0
  26. package/components/tryghost-extract-api-key-5.89.2.tgz +0 -0
  27. package/components/{tryghost-ghost-5.89.1.tgz → tryghost-ghost-5.89.2.tgz} +0 -0
  28. package/components/tryghost-html-to-plaintext-5.89.2.tgz +0 -0
  29. package/components/tryghost-i18n-5.89.2.tgz +0 -0
  30. package/components/tryghost-importer-handler-content-files-5.89.2.tgz +0 -0
  31. package/components/tryghost-importer-revue-5.89.2.tgz +0 -0
  32. package/components/tryghost-in-memory-repository-5.89.2.tgz +0 -0
  33. package/components/{tryghost-job-manager-5.89.1.tgz → tryghost-job-manager-5.89.2.tgz} +0 -0
  34. package/components/tryghost-link-redirects-5.89.2.tgz +0 -0
  35. package/components/tryghost-link-replacer-5.89.2.tgz +0 -0
  36. package/components/{tryghost-link-tracking-5.89.1.tgz → tryghost-link-tracking-5.89.2.tgz} +0 -0
  37. package/components/{tryghost-magic-link-5.89.1.tgz → tryghost-magic-link-5.89.2.tgz} +0 -0
  38. package/components/{tryghost-mail-events-5.89.1.tgz → tryghost-mail-events-5.89.2.tgz} +0 -0
  39. package/components/{tryghost-mailgun-client-5.89.1.tgz → tryghost-mailgun-client-5.89.2.tgz} +0 -0
  40. package/components/{tryghost-member-attribution-5.89.1.tgz → tryghost-member-attribution-5.89.2.tgz} +0 -0
  41. package/components/{tryghost-member-events-5.89.1.tgz → tryghost-member-events-5.89.2.tgz} +0 -0
  42. package/components/{tryghost-members-api-5.89.1.tgz → tryghost-members-api-5.89.2.tgz} +0 -0
  43. package/components/tryghost-members-csv-5.89.2.tgz +0 -0
  44. package/components/tryghost-members-events-service-5.89.2.tgz +0 -0
  45. package/components/{tryghost-members-importer-5.89.1.tgz → tryghost-members-importer-5.89.2.tgz} +0 -0
  46. package/components/{tryghost-members-offers-5.89.1.tgz → tryghost-members-offers-5.89.2.tgz} +0 -0
  47. package/components/tryghost-members-payments-5.89.2.tgz +0 -0
  48. package/components/{tryghost-members-ssr-5.89.1.tgz → tryghost-members-ssr-5.89.2.tgz} +0 -0
  49. package/components/{tryghost-members-stripe-service-5.89.1.tgz → tryghost-members-stripe-service-5.89.2.tgz} +0 -0
  50. package/components/{tryghost-mentions-email-report-5.89.1.tgz → tryghost-mentions-email-report-5.89.2.tgz} +0 -0
  51. package/components/{tryghost-milestones-5.89.1.tgz → tryghost-milestones-5.89.2.tgz} +0 -0
  52. package/components/{tryghost-minifier-5.89.1.tgz → tryghost-minifier-5.89.2.tgz} +0 -0
  53. package/components/{tryghost-model-to-domain-event-interceptor-5.89.1.tgz → tryghost-model-to-domain-event-interceptor-5.89.2.tgz} +0 -0
  54. package/components/tryghost-mw-api-version-mismatch-5.89.2.tgz +0 -0
  55. package/components/tryghost-mw-cache-control-5.89.2.tgz +0 -0
  56. package/components/tryghost-mw-error-handler-5.89.2.tgz +0 -0
  57. package/components/tryghost-mw-session-from-token-5.89.2.tgz +0 -0
  58. package/components/tryghost-mw-update-user-last-seen-5.89.2.tgz +0 -0
  59. package/components/tryghost-mw-version-match-5.89.2.tgz +0 -0
  60. package/components/tryghost-mw-vhost-5.89.2.tgz +0 -0
  61. package/components/{tryghost-nql-filter-expansions-5.89.1.tgz → tryghost-nql-filter-expansions-5.89.2.tgz} +0 -0
  62. package/components/{tryghost-oembed-service-5.89.1.tgz → tryghost-oembed-service-5.89.2.tgz} +0 -0
  63. package/components/{tryghost-package-json-5.89.1.tgz → tryghost-package-json-5.89.2.tgz} +0 -0
  64. package/components/{tryghost-post-events-5.89.1.tgz → tryghost-post-events-5.89.2.tgz} +0 -0
  65. package/components/tryghost-post-revisions-5.89.2.tgz +0 -0
  66. package/components/{tryghost-posts-service-5.89.1.tgz → tryghost-posts-service-5.89.2.tgz} +0 -0
  67. package/components/tryghost-recommendations-5.89.2.tgz +0 -0
  68. package/components/tryghost-referrers-5.89.2.tgz +0 -0
  69. package/components/{tryghost-security-5.89.1.tgz → tryghost-security-5.89.2.tgz} +0 -0
  70. package/components/tryghost-session-service-5.89.2.tgz +0 -0
  71. package/components/tryghost-settings-path-manager-5.89.2.tgz +0 -0
  72. package/components/{tryghost-slack-notifications-5.89.1.tgz → tryghost-slack-notifications-5.89.2.tgz} +0 -0
  73. package/components/tryghost-staff-service-5.89.2.tgz +0 -0
  74. package/components/{tryghost-stats-service-5.89.1.tgz → tryghost-stats-service-5.89.2.tgz} +0 -0
  75. package/components/{tryghost-tiers-5.89.1.tgz → tryghost-tiers-5.89.2.tgz} +0 -0
  76. package/components/tryghost-update-check-service-5.89.2.tgz +0 -0
  77. package/components/{tryghost-verification-trigger-5.89.1.tgz → tryghost-verification-trigger-5.89.2.tgz} +0 -0
  78. package/components/tryghost-version-notifications-data-service-5.89.2.tgz +0 -0
  79. package/components/tryghost-webmentions-5.89.2.tgz +0 -0
  80. package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +2 -2
  81. package/core/built/admin/assets/admin-x-activitypub/{index-980aeac1.mjs → index-e318fbcd.mjs} +16908 -17046
  82. package/core/built/admin/assets/admin-x-activitypub/modals-a6e383d4.mjs +422 -0
  83. package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
  84. package/core/built/admin/assets/admin-x-demo/{index-71687654.mjs → index-116afae1.mjs} +1972 -1953
  85. package/core/built/admin/assets/admin-x-demo/{modals-4b59bbd8.mjs → modals-c17f9071.mjs} +171 -166
  86. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-8dcd0ded.mjs → CodeEditorView-511c0703.mjs} +2 -2
  87. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
  88. package/core/built/admin/assets/admin-x-settings/{index-01e25660.mjs → index-5941f1da.mjs} +5734 -5702
  89. package/core/built/admin/assets/admin-x-settings/{index-541636a3.mjs → index-a33217a0.mjs} +2 -2
  90. package/core/built/admin/assets/admin-x-settings/{modals-172c4d1c.mjs → modals-434ac8fd.mjs} +3 -3
  91. package/core/built/admin/assets/{chunk.42.a0b3ca84230d788d0e11.js → chunk.42.90f279da5ca389af68b9.js} +424 -422
  92. package/core/built/admin/assets/{chunk.524.e09e59707739cbab5488.js → chunk.524.fb82017fc304c64f1cab.js} +5 -5
  93. package/core/built/admin/assets/{chunk.582.8aa2a0331d317e552bbe.js → chunk.582.a9620f67df902832f07e.js} +6 -6
  94. package/core/built/admin/assets/{ghost-b5e602d62644bd997ce54c647953f437.js → ghost-ab064d1be3ae3f712cf329fa5766eeb2.js} +162 -130
  95. package/core/built/admin/assets/{ghost-dark-f0b3a9ea961171ad4f736edbab905a0c.css → ghost-dark-f9c5f2aae7d01ae36bd6932c0abf683a.css} +1 -1
  96. package/core/built/admin/assets/{ghost-87438e5801b7bb0f2e3497a68572a529.css → ghost-f627cc6acd7574a7bdbf2f2988365c78.css} +1 -1
  97. package/core/built/admin/assets/koenig-lexical/index.css +1 -1
  98. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +19003 -18821
  99. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +138 -142
  100. package/core/built/admin/assets/{vendor-35f20b2f9b6201dcd4a00c8acac98aa6.js → vendor-eb806b4d193377b9b4bbf885840bfdc2.js} +23 -19
  101. package/core/built/admin/index.html +6 -6
  102. package/core/server/lib/lexical.js +5 -1
  103. package/core/shared/config/defaults.json +1 -1
  104. package/core/shared/labs.js +4 -3
  105. package/core/shared/settings-cache/public.js +2 -1
  106. package/package.json +156 -156
  107. package/yarn.lock +231 -226
  108. package/components/tryghost-adapter-cache-memory-ttl-5.89.1.tgz +0 -0
  109. package/components/tryghost-audience-feedback-5.89.1.tgz +0 -0
  110. package/components/tryghost-bookshelf-repository-5.89.1.tgz +0 -0
  111. package/components/tryghost-collections-5.89.1.tgz +0 -0
  112. package/components/tryghost-constants-5.89.1.tgz +0 -0
  113. package/components/tryghost-domain-events-5.89.1.tgz +0 -0
  114. package/components/tryghost-donations-5.89.1.tgz +0 -0
  115. package/components/tryghost-dynamic-routing-events-5.89.1.tgz +0 -0
  116. package/components/tryghost-email-addresses-5.89.1.tgz +0 -0
  117. package/components/tryghost-email-analytics-provider-mailgun-5.89.1.tgz +0 -0
  118. package/components/tryghost-email-analytics-service-5.89.1.tgz +0 -0
  119. package/components/tryghost-email-events-5.89.1.tgz +0 -0
  120. package/components/tryghost-email-suppression-list-5.89.1.tgz +0 -0
  121. package/components/tryghost-express-dynamic-redirects-5.89.1.tgz +0 -0
  122. package/components/tryghost-external-media-inliner-5.89.1.tgz +0 -0
  123. package/components/tryghost-extract-api-key-5.89.1.tgz +0 -0
  124. package/components/tryghost-html-to-plaintext-5.89.1.tgz +0 -0
  125. package/components/tryghost-i18n-5.89.1.tgz +0 -0
  126. package/components/tryghost-importer-handler-content-files-5.89.1.tgz +0 -0
  127. package/components/tryghost-importer-revue-5.89.1.tgz +0 -0
  128. package/components/tryghost-in-memory-repository-5.89.1.tgz +0 -0
  129. package/components/tryghost-link-redirects-5.89.1.tgz +0 -0
  130. package/components/tryghost-link-replacer-5.89.1.tgz +0 -0
  131. package/components/tryghost-members-csv-5.89.1.tgz +0 -0
  132. package/components/tryghost-members-events-service-5.89.1.tgz +0 -0
  133. package/components/tryghost-members-payments-5.89.1.tgz +0 -0
  134. package/components/tryghost-mw-api-version-mismatch-5.89.1.tgz +0 -0
  135. package/components/tryghost-mw-cache-control-5.89.1.tgz +0 -0
  136. package/components/tryghost-mw-error-handler-5.89.1.tgz +0 -0
  137. package/components/tryghost-mw-session-from-token-5.89.1.tgz +0 -0
  138. package/components/tryghost-mw-update-user-last-seen-5.89.1.tgz +0 -0
  139. package/components/tryghost-mw-version-match-5.89.1.tgz +0 -0
  140. package/components/tryghost-mw-vhost-5.89.1.tgz +0 -0
  141. package/components/tryghost-post-revisions-5.89.1.tgz +0 -0
  142. package/components/tryghost-recommendations-5.89.1.tgz +0 -0
  143. package/components/tryghost-referrers-5.89.1.tgz +0 -0
  144. package/components/tryghost-session-service-5.89.1.tgz +0 -0
  145. package/components/tryghost-settings-path-manager-5.89.1.tgz +0 -0
  146. package/components/tryghost-staff-service-5.89.1.tgz +0 -0
  147. package/components/tryghost-update-check-service-5.89.1.tgz +0 -0
  148. package/components/tryghost-version-notifications-data-service-5.89.1.tgz +0 -0
  149. package/components/tryghost-webmentions-5.89.1.tgz +0 -0
  150. package/core/built/admin/assets/admin-x-activitypub/modals-e013f67b.mjs +0 -654
  151. /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 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-71687654.mjs";
2
- const ne = ({
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: n = "bg-white dark:bg-black",
5
- contentBgColorClass: i = "bg-white dark:bg-black",
6
- height: c = 96,
7
- children: m
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 f = e(
9
+ const m = e(
10
10
  "w-100 sticky bottom-[-24px] z-[297] m-0 box-border p-0"
11
- ), w = l ? `calc(${l} - 24px)` : "-24px", x = `${c + 24}px`, u = e(
11
+ ), f = l ? `calc(${l} - 24px)` : "-24px", h = `${o + 24}px`, k = e(
12
12
  "sticky z-[298] block h-[24px]",
13
- i
14
- ), g = "0", h = e(
13
+ d
14
+ ), u = "0", j = e(
15
15
  "sticky z-[299] mb-[-24px] flex items-center justify-between",
16
16
  "h-[96px]",
17
- n
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`;
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: f,
22
+ className: m,
23
23
  style: {
24
- bottom: w,
25
- height: x
24
+ bottom: f,
25
+ height: h
26
26
  },
27
27
  children: [
28
28
  /* @__PURE__ */ s.jsx(
29
29
  "div",
30
30
  {
31
- className: u,
31
+ className: k,
32
32
  style: {
33
- bottom: g
33
+ bottom: u
34
34
  }
35
35
  }
36
36
  ),
37
37
  /* @__PURE__ */ s.jsx(
38
38
  "div",
39
39
  {
40
- className: h,
40
+ className: j,
41
41
  style: {
42
- bottom: p,
43
- height: k
42
+ bottom: x,
43
+ height: p
44
44
  },
45
- children: m
45
+ children: g
46
46
  }
47
47
  ),
48
48
  /* @__PURE__ */ s.jsx(
49
49
  "div",
50
50
  {
51
- className: j,
51
+ className: N,
52
52
  style: {
53
- bottom: N
53
+ bottom: B
54
54
  }
55
55
  }
56
56
  )
@@ -58,8 +58,8 @@ const ne = ({
58
58
  }
59
59
  );
60
60
  };
61
- function F(l, n, i = {}) {
62
- l ? B.show(de, {
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: (c) => {
72
- n(), c == null || c.remove();
71
+ onOk: (o) => {
72
+ i(), o == null || o.remove();
73
73
  },
74
- ...i
75
- }) : n();
74
+ ...d
75
+ }) : i();
76
76
  }
77
- const ie = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", U = ({
77
+ const ce = "bg-[rgba(98,109,121,0.2)] backdrop-blur-[3px]", X = ({
78
78
  size: l = "md",
79
- width: n,
80
- height: i,
81
- testId: c,
79
+ align: i = "center",
80
+ width: d,
81
+ height: o,
82
+ testId: g,
82
83
  title: m,
83
84
  okLabel: f = "OK",
84
- okLoading: w = !1,
85
- cancelLabel: x = "Cancel",
85
+ okLoading: h = !1,
86
+ cancelLabel: k = "Cancel",
86
87
  footer: u,
87
- header: g,
88
- leftButtonProps: h,
88
+ header: j,
89
+ leftButtonProps: x,
89
90
  buttonsDisabled: p,
90
- okDisabled: k,
91
- padding: j = !0,
92
- onOk: N,
93
- okColor: W = "black",
91
+ okDisabled: N,
92
+ padding: B = !0,
93
+ onOk: H,
94
+ okColor: q = "black",
94
95
  onCancel: C,
95
96
  topRightContent: v,
96
- hideXOnMobile: X = !1,
97
+ hideXOnMobile: J = !1,
97
98
  afterClose: E,
98
- children: q,
99
- backDrop: J = !0,
100
- backDropClick: Q = !0,
101
- stickyFooter: z = !1,
102
- stickyHeader: R = !1,
103
- scrolling: V = !0,
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: Z = !0,
106
- formSheet: A = !1,
107
- enableCMDS: Y = !0
106
+ animate: K = !0,
107
+ formSheet: y = !1,
108
+ enableCMDS: ee = !0
108
109
  }) => {
109
- const H = O(), { setGlobalDirtyState: I } = ae(), [G, ee] = P(!1);
110
- D(() => {
111
- I(M);
112
- }, [M, I]), D(() => {
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() : F(M, () => {
116
- H.remove(), E == null || E();
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
- }, [H, M, E, C]), D(() => {
124
+ }, [_, M, E, C]), $(() => {
124
125
  const r = setTimeout(() => {
125
- ee(!0);
126
+ se(!0);
126
127
  }, 250);
127
128
  return () => clearTimeout(r);
128
- }, []), D(() => {
129
- if (N) {
129
+ }, []), $(() => {
130
+ if (H) {
130
131
  const r = (b) => {
131
- (b.metaKey || b.ctrlKey) && b.key === "s" && (b.preventDefault(), N());
132
+ (b.metaKey || b.ctrlKey) && b.key === "s" && (b.preventDefault(), H());
132
133
  };
133
- if (Y)
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 L;
141
- const S = () => {
142
- F(M, () => {
143
- H.remove(), E == null || E();
140
+ const z = [];
141
+ let A;
142
+ const I = () => {
143
+ P(M, () => {
144
+ _.remove(), E == null || E();
144
145
  });
145
146
  };
146
- u || (x && _.push({
147
+ u || (k && z.push({
147
148
  key: "cancel-modal",
148
- label: x,
149
+ label: k,
149
150
  color: "outline",
150
151
  onClick: C || (() => {
151
- S();
152
+ I();
152
153
  }),
153
154
  disabled: p
154
- }), f && _.push({
155
+ }), f && z.push({
155
156
  key: "ok-modal",
156
157
  label: f,
157
- color: W,
158
+ color: q,
158
159
  className: "min-w-[80px]",
159
- onClick: N,
160
- disabled: p || k,
161
- loading: w
160
+ onClick: H,
161
+ disabled: p || N,
162
+ loading: h
162
163
  }));
163
164
  let a = e(
164
- "relative z-50 mx-auto flex max-h-[100%] w-full flex-col justify-between overflow-x-hidden bg-white dark:bg-black",
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
- 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"
170
- ), o = e(
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
- ), d = "", t = e(
177
+ ), c = "", t = e(
173
178
  !v || v === "close" ? "" : "flex items-center justify-between gap-5"
174
179
  );
175
- switch (R && (t = e(
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
- ), o = e(
184
- o,
188
+ ), n = e(
189
+ n,
185
190
  "p-4 md:p-[8vmin]"
186
- ), d = "p-8", t = e(
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
- ), o = e(
196
- o,
200
+ ), n = e(
201
+ n,
197
202
  "p-4 md:p-[8vmin]"
198
- ), d = "p-8", t = e(
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
- ), o = e(
208
- o,
212
+ ), n = e(
213
+ n,
209
214
  "p-4 md:p-[4vmin]"
210
- ), d = "p-7", t = e(
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
- ), o = e(
220
- o,
224
+ ), n = e(
225
+ n,
221
226
  "p-4 md:p-[3vmin]"
222
- ), d = "p-10", t = e(
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
- ), o = e(
232
- o,
236
+ ), n = e(
237
+ n,
233
238
  "p-4 md:p-[3vmin]"
234
- ), d = "p-10", t = e(
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
- ), d = "p-10", t = e(
248
+ ), c = "p-10", t = e(
244
249
  t,
245
250
  "-inset-x-10"
246
251
  );
247
252
  break;
248
253
  default:
249
- o = e(
250
- o,
254
+ n = e(
255
+ n,
251
256
  "p-4 md:p-[8vmin]"
252
- ), d = "p-8", t = e(
257
+ ), c = "p-8", t = e(
253
258
  t,
254
259
  "-inset-x-8"
255
260
  );
256
261
  break;
257
262
  }
258
- j || (d = "p-0"), a = e(
263
+ B || (c = "p-0"), a = e(
259
264
  a
260
265
  ), t = e(
261
266
  t,
262
- d,
267
+ c,
263
268
  "pb-0"
264
- ), L = e(
265
- d,
269
+ ), A = e(
270
+ c,
266
271
  "py-0"
267
- ), o = e(
268
- o,
272
+ ), n = e(
273
+ n,
269
274
  "max-[800px]:!pb-20"
270
275
  );
271
- const se = e(
272
- `${d} ${z ? "py-6" : ""}`,
276
+ const te = e(
277
+ `${c} ${G ? "py-6" : ""}`,
273
278
  "flex w-full items-center justify-between"
274
279
  );
275
- L = e(
276
- L,
277
- (l === "full" || l === "bleed" || i === "full" || typeof i == "number") && "grow"
280
+ A = e(
281
+ A,
282
+ (l === "full" || l === "bleed" || o === "full" || typeof o == "number") && "grow"
278
283
  );
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(
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 i == "number" ? ($.height = "100%", $.maxHeight = i + "px") : i === "full" && (a = e(
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 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: [
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
- J && !A && ie,
297
- A && "bg-[rgba(98,109,121,0.08)]"
301
+ R && !y && ce,
302
+ y && "bg-[rgba(98,109,121,0.08)]"
298
303
  ) }),
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: [
301
- m && /* @__PURE__ */ s.jsx(T, { level: 3, children: m }),
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 }) })
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(T, { level: 3, children: m }),
309
+ m && /* @__PURE__ */ s.jsx(S, { level: 3, children: m }),
305
310
  v
306
311
  ] }),
307
- /* @__PURE__ */ s.jsx("div", { className: L, children: q }),
308
- y
312
+ /* @__PURE__ */ s.jsx("div", { className: A, children: Q }),
313
+ w
309
314
  ] })
310
315
  ] });
311
- }, ce = ({
316
+ }, re = ({
312
317
  title: l = "Are you sure?",
313
- prompt: n,
314
- cancelLabel: i = "Cancel",
315
- okLabel: c = "OK",
316
- okRunningLabel: m = "...",
317
- okColor: f = "black",
318
- onCancel: w,
319
- onOk: x,
320
- customFooter: u,
321
- formSheet: g = !0
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 h = O(), [p, k] = P("");
328
+ const j = U(), [x, p] = W("");
324
329
  return /* @__PURE__ */ s.jsx(
325
- U,
330
+ X,
326
331
  {
327
332
  backDropClick: !1,
328
- buttonsDisabled: p === "running",
329
- cancelLabel: i,
330
- footer: u,
331
- formSheet: g,
332
- okColor: f,
333
- okLabel: p === "running" ? m : c,
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: w,
342
+ onCancel: f,
338
343
  onOk: async () => {
339
- k("running");
344
+ p("running");
340
345
  try {
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);
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
- k("");
350
+ p("");
346
351
  },
347
- children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children: n })
352
+ children: /* @__PURE__ */ s.jsx("div", { className: "py-4 leading-9", children: i })
348
353
  }
349
354
  );
350
- }, de = B.create(ce), re = B.create(() => {
351
- const { updateRoute: l } = oe(), n = B.useModal();
355
+ }, de = D.create(re), me = D.create(() => {
356
+ const { updateRoute: l } = ne(), i = D.useModal();
352
357
  return /* @__PURE__ */ s.jsx(
353
- U,
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(""), n.remove();
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(T, { className: "-mb-2 mt-4", level: 5, children: "Contents" }),
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
- }), ue = { DemoModal: re };
383
+ }), xe = { DemoModal: me };
379
384
  export {
380
- ue as default
385
+ xe as default
381
386
  };
382
- //# sourceMappingURL=modals-4b59bbd8.mjs.map
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-01e25660.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-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-8dcd0ded.mjs.map
2365
+ //# sourceMappingURL=CodeEditorView-511c0703.mjs.map