ghost 5.71.2 → 5.72.0

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 (165) hide show
  1. package/components/tryghost-adapter-cache-memory-ttl-5.72.0.tgz +0 -0
  2. package/components/tryghost-adapter-cache-redis-5.72.0.tgz +0 -0
  3. package/components/{tryghost-adapter-manager-5.71.2.tgz → tryghost-adapter-manager-5.72.0.tgz} +0 -0
  4. package/components/tryghost-announcement-bar-settings-5.72.0.tgz +0 -0
  5. package/components/tryghost-api-framework-5.72.0.tgz +0 -0
  6. package/components/tryghost-api-version-compatibility-service-5.72.0.tgz +0 -0
  7. package/components/tryghost-audience-feedback-5.72.0.tgz +0 -0
  8. package/components/tryghost-bookshelf-repository-5.72.0.tgz +0 -0
  9. package/components/tryghost-bootstrap-socket-5.72.0.tgz +0 -0
  10. package/components/tryghost-collections-5.72.0.tgz +0 -0
  11. package/components/tryghost-constants-5.72.0.tgz +0 -0
  12. package/components/{tryghost-custom-theme-settings-service-5.71.2.tgz → tryghost-custom-theme-settings-service-5.72.0.tgz} +0 -0
  13. package/components/{tryghost-data-generator-5.71.2.tgz → tryghost-data-generator-5.72.0.tgz} +0 -0
  14. package/components/tryghost-domain-events-5.72.0.tgz +0 -0
  15. package/components/tryghost-donations-5.72.0.tgz +0 -0
  16. package/components/tryghost-dynamic-routing-events-5.72.0.tgz +0 -0
  17. package/components/{tryghost-email-analytics-provider-mailgun-5.71.2.tgz → tryghost-email-analytics-provider-mailgun-5.72.0.tgz} +0 -0
  18. package/components/tryghost-email-analytics-service-5.72.0.tgz +0 -0
  19. package/components/tryghost-email-content-generator-5.72.0.tgz +0 -0
  20. package/components/{tryghost-email-events-5.71.2.tgz → tryghost-email-events-5.72.0.tgz} +0 -0
  21. package/components/tryghost-email-service-5.72.0.tgz +0 -0
  22. package/components/tryghost-email-suppression-list-5.72.0.tgz +0 -0
  23. package/components/tryghost-event-aware-cache-wrapper-5.72.0.tgz +0 -0
  24. package/components/{tryghost-express-dynamic-redirects-5.71.2.tgz → tryghost-express-dynamic-redirects-5.72.0.tgz} +0 -0
  25. package/components/{tryghost-external-media-inliner-5.71.2.tgz → tryghost-external-media-inliner-5.72.0.tgz} +0 -0
  26. package/components/{tryghost-extract-api-key-5.71.2.tgz → tryghost-extract-api-key-5.72.0.tgz} +0 -0
  27. package/components/{tryghost-html-to-plaintext-5.71.2.tgz → tryghost-html-to-plaintext-5.72.0.tgz} +0 -0
  28. package/components/tryghost-i18n-5.72.0.tgz +0 -0
  29. package/components/tryghost-importer-handler-content-files-5.72.0.tgz +0 -0
  30. package/components/tryghost-importer-revue-5.72.0.tgz +0 -0
  31. package/components/{tryghost-in-memory-repository-5.71.2.tgz → tryghost-in-memory-repository-5.72.0.tgz} +0 -0
  32. package/components/{tryghost-job-manager-5.71.2.tgz → tryghost-job-manager-5.72.0.tgz} +0 -0
  33. package/components/tryghost-link-redirects-5.72.0.tgz +0 -0
  34. package/components/tryghost-link-replacer-5.72.0.tgz +0 -0
  35. package/components/{tryghost-link-tracking-5.71.2.tgz → tryghost-link-tracking-5.72.0.tgz} +0 -0
  36. package/components/tryghost-magic-link-5.72.0.tgz +0 -0
  37. package/components/tryghost-mail-events-5.72.0.tgz +0 -0
  38. package/components/tryghost-mailgun-client-5.72.0.tgz +0 -0
  39. package/components/tryghost-member-attribution-5.72.0.tgz +0 -0
  40. package/components/{tryghost-member-events-5.71.2.tgz → tryghost-member-events-5.72.0.tgz} +0 -0
  41. package/components/tryghost-members-api-5.72.0.tgz +0 -0
  42. package/components/tryghost-members-csv-5.72.0.tgz +0 -0
  43. package/components/{tryghost-members-events-service-5.71.2.tgz → tryghost-members-events-service-5.72.0.tgz} +0 -0
  44. package/components/{tryghost-members-importer-5.71.2.tgz → tryghost-members-importer-5.72.0.tgz} +0 -0
  45. package/components/{tryghost-members-offers-5.71.2.tgz → tryghost-members-offers-5.72.0.tgz} +0 -0
  46. package/components/{tryghost-members-payments-5.71.2.tgz → tryghost-members-payments-5.72.0.tgz} +0 -0
  47. package/components/tryghost-members-ssr-5.72.0.tgz +0 -0
  48. package/components/{tryghost-members-stripe-service-5.71.2.tgz → tryghost-members-stripe-service-5.72.0.tgz} +0 -0
  49. package/components/tryghost-mentions-email-report-5.72.0.tgz +0 -0
  50. package/components/{tryghost-milestones-5.71.2.tgz → tryghost-milestones-5.72.0.tgz} +0 -0
  51. package/components/{tryghost-minifier-5.71.2.tgz → tryghost-minifier-5.72.0.tgz} +0 -0
  52. package/components/tryghost-model-to-domain-event-interceptor-5.72.0.tgz +0 -0
  53. package/components/tryghost-mw-api-version-mismatch-5.72.0.tgz +0 -0
  54. package/components/tryghost-mw-cache-control-5.72.0.tgz +0 -0
  55. package/components/tryghost-mw-error-handler-5.72.0.tgz +0 -0
  56. package/components/{tryghost-mw-session-from-token-5.71.2.tgz → tryghost-mw-session-from-token-5.72.0.tgz} +0 -0
  57. package/components/tryghost-mw-update-user-last-seen-5.72.0.tgz +0 -0
  58. package/components/tryghost-mw-version-match-5.72.0.tgz +0 -0
  59. package/components/tryghost-mw-vhost-5.72.0.tgz +0 -0
  60. package/components/tryghost-nql-filter-expansions-5.72.0.tgz +0 -0
  61. package/components/tryghost-oembed-service-5.72.0.tgz +0 -0
  62. package/components/tryghost-package-json-5.72.0.tgz +0 -0
  63. package/components/tryghost-post-events-5.72.0.tgz +0 -0
  64. package/components/tryghost-post-revisions-5.72.0.tgz +0 -0
  65. package/components/{tryghost-posts-service-5.71.2.tgz → tryghost-posts-service-5.72.0.tgz} +0 -0
  66. package/components/tryghost-recommendations-5.72.0.tgz +0 -0
  67. package/components/tryghost-referrers-5.72.0.tgz +0 -0
  68. package/components/tryghost-security-5.72.0.tgz +0 -0
  69. package/components/tryghost-session-service-5.72.0.tgz +0 -0
  70. package/components/tryghost-settings-path-manager-5.72.0.tgz +0 -0
  71. package/components/tryghost-slack-notifications-5.72.0.tgz +0 -0
  72. package/components/tryghost-staff-service-5.72.0.tgz +0 -0
  73. package/components/tryghost-stats-service-5.72.0.tgz +0 -0
  74. package/components/tryghost-tiers-5.72.0.tgz +0 -0
  75. package/components/{tryghost-update-check-service-5.71.2.tgz → tryghost-update-check-service-5.72.0.tgz} +0 -0
  76. package/components/{tryghost-verification-trigger-5.71.2.tgz → tryghost-verification-trigger-5.72.0.tgz} +0 -0
  77. package/components/tryghost-version-notifications-data-service-5.72.0.tgz +0 -0
  78. package/components/tryghost-webmentions-5.72.0.tgz +0 -0
  79. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-cf9b94da.mjs → CodeEditorView-75959772.mjs} +71 -71
  80. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
  81. package/core/built/admin/assets/admin-x-settings/{index-2cbdc6fc.mjs → index-af8eadff.mjs} +4872 -4797
  82. package/core/built/admin/assets/admin-x-settings/{limit-service-c2ca5332.mjs → index-fde81055.mjs} +6 -6
  83. package/core/built/admin/assets/admin-x-settings/{modals-3c8a0931.mjs → modals-bebf54a5.mjs} +8463 -8291
  84. package/core/built/admin/assets/{chunk.143.dd3ca5f62fa39254412e.js → chunk.143.19c0d2badc1bbc90b651.js} +5 -5
  85. package/core/built/admin/assets/{chunk.178.b44accb84bb38c10c7ba.js → chunk.178.fef47d5b9bd185402ddb.js} +4 -4
  86. package/core/built/admin/assets/{chunk.338.a23271afc734a6de1d3b.js → chunk.611.cbd29e2a43c5b8a0d83e.js} +3031 -3086
  87. package/core/built/admin/assets/{chunk.338.a23271afc734a6de1d3b.js.LICENSE.txt → chunk.611.cbd29e2a43c5b8a0d83e.js.LICENSE.txt} +15 -0
  88. package/core/built/admin/assets/{ghost-a43c6dbe8d871a5929a0c4ccb54d391e.js → ghost-f85471aad8d3f75d7024a9c2bf2f77bd.js} +1284 -1774
  89. package/core/built/admin/assets/koenig-lexical/index.css +1 -1
  90. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +68752 -68327
  91. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +186 -186
  92. package/core/built/admin/assets/{vendor-d4aa86641c6080ce3bc58e6d54252774.js → vendor-71d606e7533962f2cd721075ab56a66a.js} +1526 -2124
  93. package/core/built/admin/index.html +5 -5
  94. package/core/frontend/apps/private-blogging/lib/views/private.hbs +1 -1
  95. package/core/frontend/web/middleware/static-theme.js +1 -1
  96. package/core/server/api/endpoints/recommendations.js +18 -0
  97. package/core/server/data/migrations/utils/schema.js +18 -1
  98. package/core/server/data/migrations/versions/5.72/2023-10-31-11-06-00-members-created-attribution-id-index.js +3 -0
  99. package/core/server/data/migrations/versions/5.72/2023-10-31-11-06-01-members-subscription-created-attribution-id-index.js +3 -0
  100. package/core/server/data/schema/commands.js +56 -0
  101. package/core/server/data/schema/schema.js +2 -2
  102. package/core/server/services/custom-redirects/CustomRedirectsAPI.js +3 -7
  103. package/core/server/services/members/MembersConfigProvider.js +0 -4
  104. package/core/server/services/members/api.js +1 -1
  105. package/core/server/services/members/middleware.js +8 -0
  106. package/core/server/services/recommendations/RecommendationServiceWrapper.js +13 -2
  107. package/core/server/web/api/endpoints/admin/routes.js +1 -0
  108. package/core/shared/labs.js +2 -1
  109. package/core/shared/sentry.js +13 -1
  110. package/package.json +181 -181
  111. package/yarn.lock +977 -1039
  112. package/components/tryghost-adapter-cache-memory-ttl-5.71.2.tgz +0 -0
  113. package/components/tryghost-adapter-cache-redis-5.71.2.tgz +0 -0
  114. package/components/tryghost-announcement-bar-settings-5.71.2.tgz +0 -0
  115. package/components/tryghost-api-framework-5.71.2.tgz +0 -0
  116. package/components/tryghost-api-version-compatibility-service-5.71.2.tgz +0 -0
  117. package/components/tryghost-audience-feedback-5.71.2.tgz +0 -0
  118. package/components/tryghost-bookshelf-repository-5.71.2.tgz +0 -0
  119. package/components/tryghost-bootstrap-socket-5.71.2.tgz +0 -0
  120. package/components/tryghost-collections-5.71.2.tgz +0 -0
  121. package/components/tryghost-constants-5.71.2.tgz +0 -0
  122. package/components/tryghost-domain-events-5.71.2.tgz +0 -0
  123. package/components/tryghost-donations-5.71.2.tgz +0 -0
  124. package/components/tryghost-dynamic-routing-events-5.71.2.tgz +0 -0
  125. package/components/tryghost-email-analytics-service-5.71.2.tgz +0 -0
  126. package/components/tryghost-email-content-generator-5.71.2.tgz +0 -0
  127. package/components/tryghost-email-service-5.71.2.tgz +0 -0
  128. package/components/tryghost-email-suppression-list-5.71.2.tgz +0 -0
  129. package/components/tryghost-event-aware-cache-wrapper-5.71.2.tgz +0 -0
  130. package/components/tryghost-i18n-5.71.2.tgz +0 -0
  131. package/components/tryghost-importer-handler-content-files-5.71.2.tgz +0 -0
  132. package/components/tryghost-importer-revue-5.71.2.tgz +0 -0
  133. package/components/tryghost-link-redirects-5.71.2.tgz +0 -0
  134. package/components/tryghost-link-replacer-5.71.2.tgz +0 -0
  135. package/components/tryghost-magic-link-5.71.2.tgz +0 -0
  136. package/components/tryghost-mail-events-5.71.2.tgz +0 -0
  137. package/components/tryghost-mailgun-client-5.71.2.tgz +0 -0
  138. package/components/tryghost-member-attribution-5.71.2.tgz +0 -0
  139. package/components/tryghost-members-api-5.71.2.tgz +0 -0
  140. package/components/tryghost-members-csv-5.71.2.tgz +0 -0
  141. package/components/tryghost-members-ssr-5.71.2.tgz +0 -0
  142. package/components/tryghost-mentions-email-report-5.71.2.tgz +0 -0
  143. package/components/tryghost-model-to-domain-event-interceptor-5.71.2.tgz +0 -0
  144. package/components/tryghost-mw-api-version-mismatch-5.71.2.tgz +0 -0
  145. package/components/tryghost-mw-cache-control-5.71.2.tgz +0 -0
  146. package/components/tryghost-mw-error-handler-5.71.2.tgz +0 -0
  147. package/components/tryghost-mw-update-user-last-seen-5.71.2.tgz +0 -0
  148. package/components/tryghost-mw-version-match-5.71.2.tgz +0 -0
  149. package/components/tryghost-mw-vhost-5.71.2.tgz +0 -0
  150. package/components/tryghost-nql-filter-expansions-5.71.2.tgz +0 -0
  151. package/components/tryghost-oembed-service-5.71.2.tgz +0 -0
  152. package/components/tryghost-package-json-5.71.2.tgz +0 -0
  153. package/components/tryghost-post-events-5.71.2.tgz +0 -0
  154. package/components/tryghost-post-revisions-5.71.2.tgz +0 -0
  155. package/components/tryghost-recommendations-5.71.2.tgz +0 -0
  156. package/components/tryghost-referrers-5.71.2.tgz +0 -0
  157. package/components/tryghost-security-5.71.2.tgz +0 -0
  158. package/components/tryghost-session-service-5.71.2.tgz +0 -0
  159. package/components/tryghost-settings-path-manager-5.71.2.tgz +0 -0
  160. package/components/tryghost-slack-notifications-5.71.2.tgz +0 -0
  161. package/components/tryghost-staff-service-5.71.2.tgz +0 -0
  162. package/components/tryghost-stats-service-5.71.2.tgz +0 -0
  163. package/components/tryghost-tiers-5.71.2.tgz +0 -0
  164. package/components/tryghost-version-notifications-data-service-5.71.2.tgz +0 -0
  165. package/components/tryghost-webmentions-5.71.2.tgz +0 -0
@@ -1,5 +1,5 @@
1
- import { e as ke, f as N, b2 as wt, bL as qn, J as Rt, bM as _n, j as F, bN as Vn, O as Hn, C as Un, _ as zn, U as $n, P as Gn, Q as Kn } from "./index-2cbdc6fc.mjs";
2
- import { E as p, F as fe, v as Ee, S as we, 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 ze, K as Xe, M as R, 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 ce, Z as M, _ 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 hr, ac as ur, 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";
1
+ import { e as ke, f as N, b2 as wt, bK as qn, W as Rt, bL as _n, j as F, bM as Hn, Y as Vn, L as zn, a3 as Un, x as $n, H as Gn, Z as Kn } from "./index-af8eadff.mjs";
2
+ import { E as p, F as fe, v as Ee, S as we, 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 R, 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 ce, Z as M, _ 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 hr, ac as ur, 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);
5
5
  return n.line ? Mr(t) : n.block ? Dr(t) : !1;
@@ -114,7 +114,7 @@ function wr(t, e, r = e.selection.ranges) {
114
114
  }
115
115
  return null;
116
116
  }
117
- const Ge = /* @__PURE__ */ Xe.define(), Rr = /* @__PURE__ */ Xe.define(), Tr = /* @__PURE__ */ fe.define(), Vt = /* @__PURE__ */ fe.define({
117
+ const Ge = /* @__PURE__ */ Xe.define(), Rr = /* @__PURE__ */ Xe.define(), Tr = /* @__PURE__ */ fe.define(), Ht = /* @__PURE__ */ fe.define({
118
118
  combine(t) {
119
119
  return Ee(t, {
120
120
  minDepth: 100,
@@ -131,12 +131,12 @@ function Or(t) {
131
131
  let e = 0;
132
132
  return t.iterChangedRanges((r, n) => e = n), e;
133
133
  }
134
- const Ht = /* @__PURE__ */ we.define({
134
+ const Vt = /* @__PURE__ */ we.define({
135
135
  create() {
136
136
  return O.empty;
137
137
  },
138
138
  update(t, e) {
139
- let r = e.state.facet(Vt), n = e.annotation(Ge);
139
+ let r = e.state.facet(Ht), n = e.annotation(Ge);
140
140
  if (n) {
141
141
  let a = e.docChanged ? d.single(Or(e.changes)) : void 0, c = C.fromTransaction(e, a), h = n.side, u = h == 0 ? t.undone : t.done;
142
142
  return c ? u = Ce(u, u.length, r.minDepth, c) : u = $t(u, e.startState.selection), new O(h == 0 ? n.rest : u, h == 0 ? u : n.rest);
@@ -156,11 +156,11 @@ const Ht = /* @__PURE__ */ we.define({
156
156
  });
157
157
  function Ir(t = {}) {
158
158
  return [
159
- Ht,
160
- Vt.of(t),
159
+ Vt,
160
+ Ht.of(t),
161
161
  p.domEventHandlers({
162
162
  beforeinput(e, r) {
163
- let n = e.inputType == "historyUndo" ? Ut : e.inputType == "historyRedo" ? Ke : null;
163
+ let n = e.inputType == "historyUndo" ? zt : e.inputType == "historyRedo" ? Ke : null;
164
164
  return n ? (e.preventDefault(), n(r)) : !1;
165
165
  }
166
166
  })
@@ -170,14 +170,14 @@ function Re(t, e) {
170
170
  return function({ state: r, dispatch: n }) {
171
171
  if (!e && r.readOnly)
172
172
  return !1;
173
- let o = r.field(Ht, !1);
173
+ let o = r.field(Vt, !1);
174
174
  if (!o)
175
175
  return !1;
176
176
  let i = o.pop(t, r, e);
177
177
  return i ? (n(i), !0) : !1;
178
178
  };
179
179
  }
180
- const Ut = /* @__PURE__ */ Re(0, !1), Ke = /* @__PURE__ */ Re(1, !1), Pr = /* @__PURE__ */ Re(0, !0), Wr = /* @__PURE__ */ Re(1, !0);
180
+ const zt = /* @__PURE__ */ Re(0, !1), Ke = /* @__PURE__ */ Re(1, !1), Pr = /* @__PURE__ */ Re(0, !0), Wr = /* @__PURE__ */ Re(1, !0);
181
181
  class C {
182
182
  constructor(e, r, n, o, i) {
183
183
  this.changes = e, this.effects = r, this.mapped = n, this.startSelection = o, this.selectionsAfter = i;
@@ -228,7 +228,7 @@ function Fr(t, e) {
228
228
  function Nr(t, e) {
229
229
  return t.ranges.length == e.ranges.length && t.ranges.filter((r, n) => r.empty != e.ranges[n].empty).length === 0;
230
230
  }
231
- function zt(t, e) {
231
+ function Ut(t, e) {
232
232
  return t.length ? e.length ? t.concat(e) : t : e;
233
233
  }
234
234
  const L = [], qr = 200;
@@ -248,7 +248,7 @@ function _e(t, e) {
248
248
  return t;
249
249
  let r = t.length, n = L;
250
250
  for (; r; ) {
251
- let o = Vr(t[r - 1], e, n);
251
+ let o = Hr(t[r - 1], e, n);
252
252
  if (o.changes && !o.changes.empty || o.effects.length) {
253
253
  let i = t.slice(0, r);
254
254
  return i[r - 1] = o, i;
@@ -257,14 +257,14 @@ function _e(t, e) {
257
257
  }
258
258
  return n.length ? [C.selection(n)] : L;
259
259
  }
260
- function Vr(t, e, r) {
261
- let n = zt(t.selectionsAfter.length ? t.selectionsAfter.map((l) => l.map(e)) : L, r);
260
+ function Hr(t, e, r) {
261
+ let n = Ut(t.selectionsAfter.length ? t.selectionsAfter.map((l) => l.map(e)) : L, r);
262
262
  if (!t.changes)
263
263
  return C.selection(n);
264
264
  let o = t.changes.map(e), i = e.mapDesc(t.changes, !0), s = t.mapped ? t.mapped.composeDesc(i) : i;
265
265
  return new C(o, R.mapEffects(t.effects, e), s, t.startSelection.map(i), n);
266
266
  }
267
- const Hr = /^(input\.type|delete)($|\.)/;
267
+ const Vr = /^(input\.type|delete)($|\.)/;
268
268
  class O {
269
269
  constructor(e, r, n = 0, o = void 0) {
270
270
  this.done = e, this.undone = r, this.prevTime = n, this.prevUserEvent = o;
@@ -274,8 +274,8 @@ class O {
274
274
  }
275
275
  addChanges(e, r, n, o, i) {
276
276
  let s = this.done, l = s[s.length - 1];
277
- return l && l.changes && !l.changes.empty && e.changes && (!n || Hr.test(n)) && (!l.selectionsAfter.length && r - this.prevTime < o.newGroupDelay && o.joinToEvent(i, Fr(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
278
- n == "input.type.compose") ? s = Ce(s, s.length - 1, o.minDepth, new C(e.changes.compose(l.changes), zt(e.effects, l.effects), l.mapped, l.startSelection, L)) : s = Ce(s, s.length, o.minDepth, e), new O(s, L, r, n);
277
+ return l && l.changes && !l.changes.empty && e.changes && (!n || Vr.test(n)) && (!l.selectionsAfter.length && r - this.prevTime < o.newGroupDelay && o.joinToEvent(i, Fr(l.changes, e.changes)) || // For compose (but not compose.start) events, always join with previous event
278
+ n == "input.type.compose") ? s = Ce(s, s.length - 1, o.minDepth, new C(e.changes.compose(l.changes), Ut(e.effects, l.effects), l.mapped, l.startSelection, L)) : s = Ce(s, s.length, o.minDepth, e), new O(s, L, r, n);
279
279
  }
280
280
  addSelection(e, r, n, o) {
281
281
  let i = this.done.length ? this.done[this.done.length - 1].selectionsAfter : L;
@@ -312,8 +312,8 @@ class O {
312
312
  }
313
313
  }
314
314
  O.empty = /* @__PURE__ */ new O(L, L);
315
- const Ur = [
316
- { key: "Mod-z", run: Ut, preventDefault: !0 },
315
+ const zr = [
316
+ { key: "Mod-z", run: zt, preventDefault: !0 },
317
317
  { key: "Mod-y", mac: "Mod-Shift-z", run: Ke, preventDefault: !0 },
318
318
  { linux: "Ctrl-Shift-z", run: Ke, preventDefault: !0 },
319
319
  { key: "Mod-u", run: Pr, preventDefault: !0 },
@@ -342,7 +342,7 @@ const Kt = (t) => Gt(t, !b(t)), Jt = (t) => Gt(t, b(t));
342
342
  function jt(t, e) {
343
343
  return T(t, (r) => r.empty ? t.moveByGroup(r, e) : Te(r, e));
344
344
  }
345
- const zr = (t) => jt(t, !b(t)), $r = (t) => jt(t, b(t));
345
+ const Ur = (t) => jt(t, !b(t)), $r = (t) => jt(t, b(t));
346
346
  function Gr(t, e, r) {
347
347
  if (e.type.prop(r))
348
348
  return !0;
@@ -489,7 +489,7 @@ const hn = (t, e) => Ie(t, (r) => {
489
489
  if (!e && r > o.from && r < o.from + 200 && !/[^ \t]/.test(i = o.text.slice(0, r - o.from))) {
490
490
  if (i[i.length - 1] == " ")
491
491
  return r - 1;
492
- let l = Wt(i, n.tabSize), a = l % ze(n) || ze(n);
492
+ let l = Wt(i, n.tabSize), a = l % Ue(n) || Ue(n);
493
493
  for (let c = 0; c < a && i[i.length - 1 - c] == " "; c++)
494
494
  r--;
495
495
  s = r;
@@ -653,7 +653,7 @@ const wo = ({ state: t, dispatch: e }) => {
653
653
  let o = /^\s*/.exec(r.text)[0];
654
654
  if (!o)
655
655
  return;
656
- let i = Wt(o, t.tabSize), s = 0, l = Se(t, Math.max(0, i - ze(t)));
656
+ let i = Wt(o, t.tabSize), s = 0, l = Se(t, Math.max(0, i - Ue(t)));
657
657
  for (; s < o.length && s < l.length && o.charCodeAt(s) == l.charCodeAt(s); )
658
658
  s++;
659
659
  n.push({ from: r.from + s, to: r.from + o.length, insert: l.slice(s) });
@@ -673,7 +673,7 @@ const wo = ({ state: t, dispatch: e }) => {
673
673
  { key: "Ctrl-v", run: Je }
674
674
  ], To = /* @__PURE__ */ [
675
675
  { key: "ArrowLeft", run: Kt, shift: nn, preventDefault: !0 },
676
- { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: zr, shift: ro, preventDefault: !0 },
676
+ { key: "Mod-ArrowLeft", mac: "Alt-ArrowLeft", run: Ur, shift: ro, preventDefault: !0 },
677
677
  { mac: "Cmd-ArrowLeft", run: Yr, shift: co, preventDefault: !0 },
678
678
  { key: "ArrowRight", run: Jt, shift: rn, preventDefault: !0 },
679
679
  { key: "Mod-ArrowRight", mac: "Alt-ArrowRight", run: $r, shift: oo, preventDefault: !0 },
@@ -857,7 +857,7 @@ class Cn {
857
857
  }
858
858
  }
859
859
  }
860
- const Ve = /* @__PURE__ */ new WeakMap();
860
+ const He = /* @__PURE__ */ new WeakMap();
861
861
  class X {
862
862
  constructor(e, r) {
863
863
  this.from = e, this.text = r;
@@ -866,15 +866,15 @@ class X {
866
866
  return this.from + this.text.length;
867
867
  }
868
868
  static get(e, r, n) {
869
- let o = Ve.get(e);
869
+ let o = He.get(e);
870
870
  if (!o || o.from >= n || o.to <= r) {
871
871
  let l = new X(r, e.sliceString(r, n));
872
- return Ve.set(e, l), l;
872
+ return He.set(e, l), l;
873
873
  }
874
874
  if (o.from == r && o.to == n)
875
875
  return o;
876
876
  let { text: i, from: s } = o;
877
- return s > r && (i = e.sliceString(r, s) + i, s = r), o.to < n && (i += e.sliceString(o.to, n)), Ve.set(e, new X(s, i)), new X(r, i.slice(r - s, n - s));
877
+ return s > r && (i = e.sliceString(r, s) + i, s = r), o.to < n && (i += e.sliceString(o.to, n)), He.set(e, new X(s, i)), new X(r, i.slice(r - s, n - s));
878
878
  }
879
879
  }
880
880
  class vn {
@@ -984,17 +984,17 @@ const Ae = /* @__PURE__ */ R.define(), xt = /* @__PURE__ */ we.define({
984
984
  }
985
985
  });
986
986
  function qo(t) {
987
- let e = [zo, Uo];
987
+ let e = [Uo, zo];
988
988
  return t && e.push(An.of(t)), e;
989
989
  }
990
- const _o = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch" }), Vo = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
990
+ const _o = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch" }), Ho = /* @__PURE__ */ x.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
991
991
  function kt(t, e, r, n) {
992
992
  return (r == 0 || t(e.sliceDoc(r - 1, r)) != M.Word) && (n == e.doc.length || t(e.sliceDoc(n, n + 1)) != M.Word);
993
993
  }
994
- function Ho(t, e, r, n) {
994
+ function Vo(t, e, r, n) {
995
995
  return t(e.sliceDoc(r, r + 1)) == M.Word && t(e.sliceDoc(n - 1, n)) == M.Word;
996
996
  }
997
- const Uo = /* @__PURE__ */ Ft.fromClass(class {
997
+ const zo = /* @__PURE__ */ Ft.fromClass(class {
998
998
  constructor(t) {
999
999
  this.decorations = this.getDeco(t);
1000
1000
  }
@@ -1018,7 +1018,7 @@ const Uo = /* @__PURE__ */ Ft.fromClass(class {
1018
1018
  if (a < e.minSelectionLength || a > 200)
1019
1019
  return x.none;
1020
1020
  if (e.wholeWords) {
1021
- if (i = r.sliceDoc(o.from, o.to), s = r.charCategorizer(o.head), !(kt(s, r, o.from, o.to) && Ho(s, r, o.from, o.to)))
1021
+ if (i = r.sliceDoc(o.from, o.to), s = r.charCategorizer(o.head), !(kt(s, r, o.from, o.to) && Vo(s, r, o.from, o.to)))
1022
1022
  return x.none;
1023
1023
  } else if (i = r.sliceDoc(o.from, o.to).trim(), !i)
1024
1024
  return x.none;
@@ -1028,7 +1028,7 @@ const Uo = /* @__PURE__ */ Ft.fromClass(class {
1028
1028
  let c = new te(r.doc, i, a.from, a.to);
1029
1029
  for (; !c.next().done; ) {
1030
1030
  let { from: h, to: u } = c.value;
1031
- if ((!s || kt(s, r, h, u)) && (o.empty && h <= o.from && u >= o.to ? l.push(Vo.range(h, u)) : (h >= o.to || u <= o.from) && l.push(_o.range(h, u)), l.length > e.maxMatches))
1031
+ if ((!s || kt(s, r, h, u)) && (o.empty && h <= o.from && u >= o.to ? l.push(Ho.range(h, u)) : (h >= o.to || u <= o.from) && l.push(_o.range(h, u)), l.length > e.maxMatches))
1032
1032
  return x.none;
1033
1033
  }
1034
1034
  }
@@ -1036,7 +1036,7 @@ const Uo = /* @__PURE__ */ Ft.fromClass(class {
1036
1036
  }
1037
1037
  }, {
1038
1038
  decorations: (t) => t.decorations
1039
- }), zo = /* @__PURE__ */ p.baseTheme({
1039
+ }), Uo = /* @__PURE__ */ p.baseTheme({
1040
1040
  ".cm-selectionMatch": { backgroundColor: "#99ff7780" },
1041
1041
  ".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
1042
1042
  }), $o = ({ state: t, dispatch: e }) => {
@@ -1237,16 +1237,16 @@ class Yo extends Ln {
1237
1237
  }
1238
1238
  const ue = /* @__PURE__ */ R.define(), st = /* @__PURE__ */ R.define(), q = /* @__PURE__ */ we.define({
1239
1239
  create(t) {
1240
- return new He(Ye(t).create(), null);
1240
+ return new Ve(Ye(t).create(), null);
1241
1241
  },
1242
1242
  update(t, e) {
1243
1243
  for (let r of e.effects)
1244
- r.is(ue) ? t = new He(r.value.create(), t.panel) : r.is(st) && (t = new He(t.query, r.value ? lt : null));
1244
+ r.is(ue) ? t = new Ve(r.value.create(), t.panel) : r.is(st) && (t = new Ve(t.query, r.value ? lt : null));
1245
1245
  return t;
1246
1246
  },
1247
1247
  provide: (t) => tt.from(t, (e) => e.panel)
1248
1248
  });
1249
- class He {
1249
+ class Ve {
1250
1250
  constructor(e, r) {
1251
1251
  this.query = e, this.panel = r;
1252
1252
  }
@@ -1570,7 +1570,7 @@ class ai {
1570
1570
  this.from = e, this.to = r, this.diagnostic = n;
1571
1571
  }
1572
1572
  }
1573
- class z {
1573
+ class U {
1574
1574
  constructor(e, r, n) {
1575
1575
  this.diagnostics = e, this.panel = r, this.selected = n;
1576
1576
  }
@@ -1584,7 +1584,7 @@ class z {
1584
1584
  attributes: { class: "cm-lintRange cm-lintRange-" + l.severity + (l.markClass ? " " + l.markClass : "") },
1585
1585
  diagnostic: l
1586
1586
  }).range(l.from, l.to)), !0);
1587
- return new z(s, r, ne(s));
1587
+ return new U(s, r, ne(s));
1588
1588
  }
1589
1589
  }
1590
1590
  function ne(t, e = null, r = 0) {
@@ -1603,7 +1603,7 @@ function hi(t, e) {
1603
1603
  }
1604
1604
  const Rn = /* @__PURE__ */ R.define(), ct = /* @__PURE__ */ R.define(), Tn = /* @__PURE__ */ R.define(), A = /* @__PURE__ */ we.define({
1605
1605
  create() {
1606
- return new z(x.none, null, null);
1606
+ return new U(x.none, null, null);
1607
1607
  },
1608
1608
  update(t, e) {
1609
1609
  if (e.docChanged) {
@@ -1612,10 +1612,10 @@ const Rn = /* @__PURE__ */ R.define(), ct = /* @__PURE__ */ R.define(), Tn = /*
1612
1612
  let o = e.changes.mapPos(t.selected.from, 1);
1613
1613
  n = ne(r, t.selected.diagnostic, o) || ne(r, null, o);
1614
1614
  }
1615
- t = new z(r, t.panel, n);
1615
+ t = new U(r, t.panel, n);
1616
1616
  }
1617
1617
  for (let r of e.effects)
1618
- r.is(Rn) ? t = z.init(r.value, t.panel, e.state) : r.is(ct) ? t = new z(t.diagnostics, r.value ? We.open : null, t.selected) : r.is(Tn) && (t = new z(t.diagnostics, t.panel, r.value));
1618
+ r.is(Rn) ? t = U.init(r.value, t.panel, e.state) : r.is(ct) ? t = new U(t.diagnostics, r.value ? We.open : null, t.selected) : r.is(Tn) && (t = new U(t.diagnostics, t.panel, r.value));
1619
1619
  return t;
1620
1620
  },
1621
1621
  provide: (t) => [
@@ -1945,13 +1945,13 @@ var vt = function(e) {
1945
1945
  var {
1946
1946
  crosshairCursor: r = !1
1947
1947
  } = e, n = [];
1948
- e.closeBracketsKeymap !== !1 && (n = n.concat(ir)), e.defaultKeymap !== !1 && (n = n.concat(Oo)), e.searchKeymap !== !1 && (n = n.concat(oi)), e.historyKeymap !== !1 && (n = n.concat(Ur)), e.foldKeymap !== !1 && (n = n.concat(sr)), e.completionKeymap !== !1 && (n = n.concat(lr)), e.lintKeymap !== !1 && (n = n.concat(pi));
1948
+ e.closeBracketsKeymap !== !1 && (n = n.concat(ir)), e.defaultKeymap !== !1 && (n = n.concat(Oo)), e.searchKeymap !== !1 && (n = n.concat(oi)), e.historyKeymap !== !1 && (n = n.concat(zr)), e.foldKeymap !== !1 && (n = n.concat(sr)), e.completionKeymap !== !1 && (n = n.concat(lr)), e.lintKeymap !== !1 && (n = n.concat(pi));
1949
1949
  var o = [];
1950
1950
  return e.lineNumbers !== !1 && o.push(ar()), e.highlightActiveLineGutter !== !1 && o.push(cr()), e.highlightSpecialChars !== !1 && o.push(hr()), e.history !== !1 && o.push(Ir()), e.foldGutter !== !1 && o.push(ur()), e.drawSelection !== !1 && o.push(fr()), e.dropCursor !== !1 && o.push(dr()), e.allowMultipleSelections !== !1 && o.push(he.allowMultipleSelections.of(!0)), e.indentOnInput !== !1 && o.push(mr()), e.syntaxHighlighting !== !1 && o.push(Nt(Sr, {
1951
1951
  fallback: !0
1952
1952
  })), e.bracketMatching !== !1 && o.push(gr()), e.closeBrackets !== !1 && o.push(pr()), e.autocompletion !== !1 && o.push(yr()), e.rectangularSelection !== !1 && o.push(xr()), r !== !1 && o.push(kr()), e.highlightActiveLine !== !1 && o.push(br()), e.highlightSelectionMatches !== !1 && o.push(qo()), e.tabSize && typeof e.tabSize == "number" && o.push(Pt.of(" ".repeat(e.tabSize))), o.concat([qt.of(n.flat())]).filter(Boolean);
1953
1953
  };
1954
- const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb2bf", Ze = "#7d8799", Ai = "#61afef", Mi = "#98c379", Mt = "#d19a66", Li = "#c678dd", Di = "#21252b", Lt = "#2c313a", Dt = "#282c34", Ue = "#353a42", Bi = "#3E4451", Bt = "#528bff", Ei = /* @__PURE__ */ p.theme({
1954
+ const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb2bf", Ze = "#7d8799", Ai = "#61afef", Mi = "#98c379", Mt = "#d19a66", Li = "#c678dd", Di = "#21252b", Lt = "#2c313a", Dt = "#282c34", ze = "#353a42", Bi = "#3E4451", Bt = "#528bff", Ei = /* @__PURE__ */ p.theme({
1955
1955
  "&": {
1956
1956
  color: be,
1957
1957
  backgroundColor: Dt
@@ -1991,15 +1991,15 @@ const Si = "#e5c07b", At = "#e06c75", Ci = "#56b6c2", vi = "#ffffff", be = "#abb
1991
1991
  },
1992
1992
  ".cm-tooltip": {
1993
1993
  border: "none",
1994
- backgroundColor: Ue
1994
+ backgroundColor: ze
1995
1995
  },
1996
1996
  ".cm-tooltip .cm-tooltip-arrow:before": {
1997
1997
  borderTopColor: "transparent",
1998
1998
  borderBottomColor: "transparent"
1999
1999
  },
2000
2000
  ".cm-tooltip .cm-tooltip-arrow:after": {
2001
- borderTopColor: Ue,
2002
- borderBottomColor: Ue
2001
+ borderTopColor: ze,
2002
+ borderBottomColor: ze
2003
2003
  },
2004
2004
  ".cm-tooltip-autocomplete": {
2005
2005
  "& > ul > li[aria-selected]": {
@@ -2138,11 +2138,11 @@ function Wi(t) {
2138
2138
  maxWidth: B = null,
2139
2139
  placeholder: $ = "",
2140
2140
  editable: G = !0,
2141
- readOnly: V = !1,
2141
+ readOnly: H = !1,
2142
2142
  indentWithTab: K = !0,
2143
- basicSetup: H = !0,
2143
+ basicSetup: V = !0,
2144
2144
  root: ie,
2145
- initialState: U
2145
+ initialState: z
2146
2146
  } = t, [W, E] = ke(), [y, P] = ke(), [J, j] = ke(), Fe = p.theme({
2147
2147
  "&": {
2148
2148
  height: h,
@@ -2166,10 +2166,10 @@ function Wi(t) {
2166
2166
  }), Fn = Oi({
2167
2167
  theme: c,
2168
2168
  editable: G,
2169
- readOnly: V,
2169
+ readOnly: H,
2170
2170
  placeholder: $,
2171
2171
  indentWithTab: K,
2172
- basicSetup: H
2172
+ basicSetup: V
2173
2173
  }), se = [Ne, Fe, ...Fn];
2174
2174
  return s && typeof s == "function" && se.push(p.updateListener.of(s)), se = se.concat(l), N(() => {
2175
2175
  if (W && !J) {
@@ -2177,7 +2177,7 @@ function Wi(t) {
2177
2177
  doc: e,
2178
2178
  selection: r,
2179
2179
  extensions: se
2180
- }, le = U ? he.fromJSON(U.json, w, U.fields) : he.create(w);
2180
+ }, le = z ? he.fromJSON(z.json, w, z.fields) : he.create(w);
2181
2181
  if (j(le), !y) {
2182
2182
  var me = new p({
2183
2183
  state: le,
@@ -2198,7 +2198,7 @@ function Wi(t) {
2198
2198
  y && y.dispatch({
2199
2199
  effects: R.reconfigure.of(se)
2200
2200
  });
2201
- }, [c, l, h, u, m, k, S, B, $, G, V, K, H, n, s]), N(() => {
2201
+ }, [c, l, h, u, m, k, S, B, $, G, H, K, V, n, s]), N(() => {
2202
2202
  if (e !== void 0) {
2203
2203
  var w = y ? y.state.doc.toString() : "";
2204
2204
  y && e !== w && y.dispatch({
@@ -2237,11 +2237,11 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2237
2237
  width: B,
2238
2238
  minWidth: $,
2239
2239
  maxWidth: G,
2240
- basicSetup: V,
2240
+ basicSetup: H,
2241
2241
  placeholder: K,
2242
- indentWithTab: H,
2242
+ indentWithTab: V,
2243
2243
  editable: ie,
2244
- readOnly: U,
2244
+ readOnly: z,
2245
2245
  root: W,
2246
2246
  initialState: E
2247
2247
  } = t, y = qn(t, Fi), P = Rt(null), {
@@ -2260,11 +2260,11 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2260
2260
  width: B,
2261
2261
  minWidth: $,
2262
2262
  maxWidth: G,
2263
- basicSetup: V,
2263
+ basicSetup: H,
2264
2264
  placeholder: K,
2265
- indentWithTab: H,
2265
+ indentWithTab: V,
2266
2266
  editable: ie,
2267
- readOnly: U,
2267
+ readOnly: z,
2268
2268
  selection: o,
2269
2269
  onChange: s,
2270
2270
  onStatistics: l,
@@ -2280,7 +2280,7 @@ var Fi = ["className", "value", "selection", "extensions", "onChange", "onStatis
2280
2280
  }), [P, Fe, J, j]), typeof n != "string")
2281
2281
  throw new Error("value must be typeof string but got " + typeof n);
2282
2282
  var Ne = typeof u == "string" ? "cm-theme-" + u : "cm-theme";
2283
- return /* @__PURE__ */ F.jsx("div", Vn({
2283
+ return /* @__PURE__ */ F.jsx("div", Hn({
2284
2284
  ref: P,
2285
2285
  className: "" + Ne + (r ? " " + r : "")
2286
2286
  }, y));
@@ -2297,7 +2297,7 @@ const Ni = [
2297
2297
  "[&_.cm-gutters]:text-grey-600 dark:[&_.cm-gutters]:text-grey-500",
2298
2298
  "[&_.cm-gutters]:border-grey-500 dark:[&_.cm-gutters]:border-grey-800",
2299
2299
  "[&_.cm-cursor]:border-grey-900 dark:[&_.cm-cursor]:border-grey-75"
2300
- ].join(" "), Vi = wt(function({
2300
+ ].join(" "), Hi = wt(function({
2301
2301
  title: e,
2302
2302
  value: r,
2303
2303
  height: n = "200px",
@@ -2311,10 +2311,10 @@ const Ni = [
2311
2311
  className: u,
2312
2312
  ...m
2313
2313
  }, k) {
2314
- const S = Hn(), B = Rt(null), [$, G] = ke(100), [V, K] = Un.useState(null), { setFocusState: H } = zn(), ie = (E) => {
2315
- c == null || c(E), H(!0);
2316
- }, U = (E) => {
2317
- h == null || h(E), H(!1);
2314
+ const S = Vn(), B = Rt(null), [$, G] = ke(100), [H, K] = zn.useState(null), { setFocusState: V } = Un(), ie = (E) => {
2315
+ c == null || c(E), V(!0);
2316
+ }, z = (E) => {
2317
+ h == null || h(E), V(!1);
2318
2318
  };
2319
2319
  N(() => {
2320
2320
  Promise.all(l).then(K);
@@ -2335,16 +2335,16 @@ const Ni = [
2335
2335
  );
2336
2336
  return /* @__PURE__ */ F.jsxs(F.Fragment, { children: [
2337
2337
  /* @__PURE__ */ F.jsx("div", { ref: B }),
2338
- V && /* @__PURE__ */ F.jsxs("div", { className: n === "full" ? "h-full" : "", style: { width: $ }, children: [
2338
+ H && /* @__PURE__ */ F.jsxs("div", { className: n === "full" ? "h-full" : "", style: { width: $ }, children: [
2339
2339
  /* @__PURE__ */ F.jsx(
2340
2340
  Wn,
2341
2341
  {
2342
2342
  ref: k,
2343
2343
  className: W,
2344
- extensions: V,
2344
+ extensions: H,
2345
2345
  height: n === "full" ? "100%" : n,
2346
2346
  value: r,
2347
- onBlur: U,
2347
+ onBlur: z,
2348
2348
  onChange: a,
2349
2349
  onFocus: ie,
2350
2350
  ...m
@@ -2356,6 +2356,6 @@ const Ni = [
2356
2356
  ] });
2357
2357
  });
2358
2358
  export {
2359
- Vi as default
2359
+ Hi as default
2360
2360
  };
2361
- //# sourceMappingURL=CodeEditorView-cf9b94da.mjs.map
2361
+ //# sourceMappingURL=CodeEditorView-75959772.mjs.map