ghost 6.52.0 → 6.52.1

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 (220) hide show
  1. package/components/tryghost-kg-card-factory-5.2.3.tgz +0 -0
  2. package/components/tryghost-kg-clean-basic-html-4.3.3.tgz +0 -0
  3. package/components/tryghost-kg-converters-1.2.3.tgz +0 -0
  4. package/components/tryghost-kg-default-cards-10.3.3.tgz +0 -0
  5. package/components/tryghost-kg-default-nodes-2.1.3.tgz +0 -0
  6. package/components/tryghost-kg-default-transforms-1.3.3.tgz +0 -0
  7. package/components/tryghost-kg-html-to-lexical-1.3.3.tgz +0 -0
  8. package/components/tryghost-kg-lexical-html-renderer-1.4.3.tgz +0 -0
  9. package/components/tryghost-kg-markdown-html-renderer-7.2.3.tgz +0 -0
  10. package/components/tryghost-kg-utils-1.1.3.tgz +0 -0
  11. package/core/built/admin/assets/Growth-CczbRexv.js +3 -0
  12. package/core/built/admin/assets/Newsletters-rFycX4x8.js +1 -0
  13. package/core/built/admin/assets/Overview-DFubBJaR.js +1 -0
  14. package/core/built/admin/assets/Web-BDE2lN4_.js +2 -0
  15. package/core/built/admin/assets/{account-migration-DiS76mRS.js → account-migration-gvH5a8ea.js} +1 -1
  16. package/core/built/admin/assets/audience-CMWMCxFS.js +1 -0
  17. package/core/built/admin/assets/{automated-emails-Cel18g7S.js → automated-emails-293Lcj5S.js} +1 -1
  18. package/core/built/admin/assets/automations-BxnjfCKn.js +1 -0
  19. package/core/built/admin/assets/automations-kPr44AmD.js +1 -0
  20. package/core/built/admin/assets/bluesky-sharing-Cww54F3Y.js +1 -0
  21. package/core/built/admin/assets/{chunk.912.9d6df5a6da679d905bbf.js → chunk.251.dd82df30188bb633b4ae.js} +9 -9
  22. package/core/built/admin/assets/{chunk.730.2457b7fede040aa52c88.js → chunk.341.20e7d2936dfa5877deea.js} +3 -3
  23. package/core/built/admin/assets/{chunk.524.d6d399b571454ea0234d.js → chunk.524.697bf0ded48e7c994fc3.js} +5 -5
  24. package/core/built/admin/assets/{chunk.582.50a9a5cbab6996daf0fe.js → chunk.582.6b742e9ba932688c442c.js} +6 -6
  25. package/core/built/admin/assets/{code-editor-view-BLGzcLub.js → code-editor-view-DSY5RHLf.js} +1 -1
  26. package/core/built/admin/assets/comments-BwNUmaNM.js +1 -0
  27. package/core/built/admin/assets/constants-c-JNF9c2.js +1 -0
  28. package/core/built/admin/assets/container-CD33Rm0u.js +1 -0
  29. package/core/built/admin/assets/content-helpers-CNBPrwsi.js +1 -0
  30. package/core/built/admin/assets/date-range-select-BkkNN98H.js +1 -0
  31. package/core/built/admin/assets/disabled-sources-indicator-ChHTF69d.js +1 -0
  32. package/core/built/admin/assets/{domain-2REz20SO.js → domain-CGk9SMa-.js} +1 -1
  33. package/core/built/admin/assets/dropzone-9zocztX0.js +5 -0
  34. package/core/built/admin/assets/{edit-profile-7QEh0VtN.js → edit-profile-C0B2Kbsl.js} +1 -1
  35. package/core/built/admin/assets/editor-Bz2Sm2O8.js +8 -0
  36. package/core/built/admin/assets/{esm-CEtFqV1y.js → esm-CsHLKmLh.js} +1 -1
  37. package/core/built/admin/assets/explore-CpRAMnx7.js +1 -0
  38. package/core/built/admin/assets/feed-BRoOWghO.js +1 -0
  39. package/core/built/admin/assets/filter-sources-DhxqZID1.js +1 -0
  40. package/core/built/admin/assets/{filters-DUy8rzI5.js → filters-B8nLLYGO.js} +1 -1
  41. package/core/built/admin/assets/{gh-chart-DdBGmBS8.js → gh-chart-Cqy9gGq7.js} +1 -1
  42. package/core/built/admin/assets/{gift-link-modal-CSgyxenA.js → gift-link-modal-v55u0VUL.js} +1 -1
  43. package/core/built/admin/assets/growth-BIfM3w1p.js +1 -0
  44. package/core/built/admin/assets/{inbox-CTD-ix6u.js → inbox-CDX57fXK.js} +11 -11
  45. package/core/built/admin/assets/index-B5yxmQNp.js +69 -0
  46. package/core/built/admin/assets/inline-DdrWe7D3.js +1 -0
  47. package/core/built/admin/assets/{input-group-DkR63-nk.js → input-group-DUPGQck1.js} +1 -1
  48. package/core/built/admin/assets/{koenig-lexical-D09TwwLs.js → koenig-lexical-CUVpp-dC.js} +1 -1
  49. package/core/built/admin/assets/{kpi-card-Fr_HJH78.js → kpi-card-DyDbok3h.js} +1 -1
  50. package/core/built/admin/assets/kpi-helpers-Bx9IHIMq.js +1 -0
  51. package/core/built/admin/assets/{kpi-tabs-Dc4Nt4a5.js → kpi-tabs-DmUcThFc.js} +1 -1
  52. package/core/built/admin/assets/labels-DLL8dl-7.js +1 -0
  53. package/core/built/admin/assets/layout-B7K3SmL0.js +1 -0
  54. package/core/built/admin/assets/{links-CfAB2Yeq.js → link-helpers-DHG_8GIT.js} +1 -1
  55. package/core/built/admin/assets/list-page-COAUFrmV.js +1 -0
  56. package/core/built/admin/assets/members-BxWs_mjq.js +10 -0
  57. package/core/built/admin/assets/{modals-Bu-1Uxdc.js → modals-DF2sECo6.js} +4 -4
  58. package/core/built/admin/assets/moderation-DYKTx5x0.js +1 -0
  59. package/core/built/admin/assets/newsletter-C-ZD1dI8.js +1 -0
  60. package/core/built/admin/assets/note-oaRdU_5z.js +1 -0
  61. package/core/built/admin/assets/notifications-BF4fAiP1.js +1 -0
  62. package/core/built/admin/assets/{nql-lang-CvCSOQG3.js → nql-lang-BoHzkNg5.js} +1 -1
  63. package/core/built/admin/assets/{onboarding-route-BDaa9hd3.js → onboarding-route-SS-e9Aeb.js} +1 -1
  64. package/core/built/admin/assets/overview-Cbn6bIoR.js +1 -0
  65. package/core/built/admin/assets/post-analytics-Bk9-KEgB.js +1 -0
  66. package/core/built/admin/assets/post-analytics-context-C8t_048I.js +1 -0
  67. package/core/built/admin/assets/post-analytics-header-xTjcg4H0.js +1 -0
  68. package/core/built/admin/assets/post-analytics-provider-CqnWwLMk.js +1 -0
  69. package/core/built/admin/assets/{post-share-modal-59Ujf4t1.js → post-share-modal-ZUCX7JZo.js} +1 -1
  70. package/core/built/admin/assets/preferences-BgjgxiBB.js +5 -0
  71. package/core/built/admin/assets/profile-qIwaxKTm.js +1 -0
  72. package/core/built/admin/assets/{router-provider-DcttGCQn.js → router-provider-S8Wf6jdu.js} +1 -1
  73. package/core/built/admin/assets/select-Cp27ScMR.js +1 -0
  74. package/core/built/admin/assets/{settings-dLraw6et.js → settings-CdDfyF90.js} +1 -1
  75. package/core/built/admin/assets/{settings-CIslWMfh.js → settings-CynBh-YN.js} +4 -4
  76. package/core/built/admin/assets/{share-modal-CI3E67kW.js → share-modal-DTIFYNI1.js} +1 -1
  77. package/core/built/admin/assets/social-urls-DVvRfwEp.js +16 -0
  78. package/core/built/admin/assets/{sort-button-BYwI0xdN.js → sort-button-BHh5Ba1K.js} +1 -1
  79. package/core/built/admin/assets/source-icon--egCE7iN.js +1 -0
  80. package/core/built/admin/assets/stats-DkqCtrPh.js +1 -0
  81. package/core/built/admin/assets/stats-view-BvWWxegf.js +1 -0
  82. package/core/built/admin/assets/step-1-DWjw7rIn.js +1 -0
  83. package/core/built/admin/assets/{step-2-CVOvLQ2n.js → step-2-D1LrETIB.js} +1 -1
  84. package/core/built/admin/assets/{step-3-BsVXcpWU.js → step-3-BAdJdZw4.js} +2 -2
  85. package/core/built/admin/assets/{tabs-Bw8aEqsd.js → tabs-DSrHPjWP.js} +1 -1
  86. package/core/built/admin/assets/tags-BWZqBj19.js +1 -0
  87. package/core/built/admin/assets/{textarea-CNaqhk5P.js → textarea-CUVQjsrM.js} +1 -1
  88. package/core/built/admin/assets/{toggle-group-CMp1taHd.js → toggle-group-CrFpl-Xz.js} +1 -1
  89. package/core/built/admin/assets/{topic-filter-D2_9eEw4.js → topic-filter-jAxwwd9I.js} +1 -1
  90. package/core/built/admin/assets/types-uYQ1HgqL.js +1 -0
  91. package/core/built/admin/assets/url-helpers-CCyfRrKj.js +1 -0
  92. package/core/built/admin/assets/use-analytics-data-DXG7mpgK.js +1 -0
  93. package/core/built/admin/assets/use-filter-params-EoQBXfP3.js +1 -0
  94. package/core/built/admin/assets/use-growth-stats-DJoXxVfD.js +1 -0
  95. package/core/built/admin/assets/use-post-referrers-B-onYbuS.js +1 -0
  96. package/core/built/admin/assets/use-reply-chain-data-D8IFALoz.js +1 -0
  97. package/core/built/admin/assets/{use-tinybird-query-CNCaUn39.js → use-tinybird-query-BSL3iVCc.js} +1 -1
  98. package/core/built/admin/assets/{use-tinybird-token-1T80Odca.js → use-tinybird-token-DHgOnrNu.js} +1 -1
  99. package/core/built/admin/assets/virtual-list-AQrbRAXP.js +1 -0
  100. package/core/built/admin/assets/web-zEFi98DS.js +1 -0
  101. package/core/built/admin/index.html +6 -6
  102. package/core/server/services/automations/automations-api.js +20 -0
  103. package/core/server/services/automations/automations-api.ts +31 -0
  104. package/core/server/services/automations/poll.js +7 -7
  105. package/core/server/services/automations/poll.ts +12 -9
  106. package/core/server/services/email-analytics/email-analytics-provider-mailgun.js +2 -2
  107. package/core/server/services/email-analytics/email-analytics-service-wrapper.js +1 -4
  108. package/core/server/services/email-analytics/email-analytics-service.js +5 -7
  109. package/core/server/services/webhooks/serialize.js +6 -5
  110. package/package.json +1 -1
  111. package/pnpm-lock.yaml +14 -14
  112. package/pnpm-workspace.yaml +5 -0
  113. package/core/built/admin/assets/Growth-Dx0vv-BS.js +0 -3
  114. package/core/built/admin/assets/Newsletters-v1GnbUjW.js +0 -1
  115. package/core/built/admin/assets/Overview-BgM7o-Z8.js +0 -1
  116. package/core/built/admin/assets/Web-DRv-83Ow.js +0 -2
  117. package/core/built/admin/assets/automations-DFLgH14-.js +0 -1
  118. package/core/built/admin/assets/automations-Dc4DUKBb.js +0 -1
  119. package/core/built/admin/assets/bluesky-sharing-Dk1RTUaz.js +0 -1
  120. package/core/built/admin/assets/comments-DgH1rC7w.js +0 -1
  121. package/core/built/admin/assets/constants-BlvYJTqz.js +0 -1
  122. package/core/built/admin/assets/content-helpers-BEgGpvyE.js +0 -1
  123. package/core/built/admin/assets/editor-u3BPqQed.js +0 -8
  124. package/core/built/admin/assets/en-DA2zVD_n.js +0 -1
  125. package/core/built/admin/assets/explore-BgHmdFVz.js +0 -1
  126. package/core/built/admin/assets/feed-Cs7-F3I5.js +0 -1
  127. package/core/built/admin/assets/filter-query-core-D6GjHUFB.js +0 -1
  128. package/core/built/admin/assets/growth-IkQZ1ZV9.js +0 -1
  129. package/core/built/admin/assets/index-BMhs4O3N.js +0 -69
  130. package/core/built/admin/assets/inline-C1CpHxuO.js +0 -1
  131. package/core/built/admin/assets/kpis-BTZ8cyw-.js +0 -1
  132. package/core/built/admin/assets/labels-sA9m188H.js +0 -5
  133. package/core/built/admin/assets/layout-szLkuQ88.js +0 -1
  134. package/core/built/admin/assets/list-page-DWkOdljb.js +0 -1
  135. package/core/built/admin/assets/main-layout-B-K8KliJ.js +0 -1
  136. package/core/built/admin/assets/members-PNNhalbu.js +0 -10
  137. package/core/built/admin/assets/moderation-DqnsNTiw.js +0 -1
  138. package/core/built/admin/assets/newsletter-BhuQeWFL.js +0 -1
  139. package/core/built/admin/assets/note-DFy2JTpP.js +0 -1
  140. package/core/built/admin/assets/notifications-BVu-JOkB.js +0 -1
  141. package/core/built/admin/assets/overview-Bhg8M7VS.js +0 -1
  142. package/core/built/admin/assets/pagemenu-C4paivNj.js +0 -1
  143. package/core/built/admin/assets/post-analytics-BhQUmZyA.js +0 -1
  144. package/core/built/admin/assets/post-analytics-context-Dy17HR1_.js +0 -1
  145. package/core/built/admin/assets/post-analytics-header-DAQep1VQ.js +0 -1
  146. package/core/built/admin/assets/posts/_react-dom-Blmuc0OL.js +0 -21
  147. package/core/built/admin/assets/posts/alert-dialog-DBJeQQTK.js +0 -154
  148. package/core/built/admin/assets/posts/app-provider-BJr9fdEC.js +0 -22
  149. package/core/built/admin/assets/posts/app-utils-9O53Czfw.js +0 -83
  150. package/core/built/admin/assets/posts/automations-BM0oBTjO.js +0 -275
  151. package/core/built/admin/assets/posts/automations-Dbp-gdHS.js +0 -223
  152. package/core/built/admin/assets/posts/avatar-kOk1tTvT.js +0 -144
  153. package/core/built/admin/assets/posts/badge-DnByIHe9.js +0 -25
  154. package/core/built/admin/assets/posts/button-Dd8Xreln.js +0 -40844
  155. package/core/built/admin/assets/posts/chunk-KS7C4IRE-ECXkcZq6.js +0 -7740
  156. package/core/built/admin/assets/posts/comments-D-7hbbdw.js +0 -8032
  157. package/core/built/admin/assets/posts/data-list-DdD_glQ-.js +0 -14219
  158. package/core/built/admin/assets/posts/dialog-DDkTy_np.js +0 -229
  159. package/core/built/admin/assets/posts/editor-D7-01KV_.js +0 -14633
  160. package/core/built/admin/assets/posts/empty-indicator-Ze-bwJ27.js +0 -38
  161. package/core/built/admin/assets/posts/filters-CmKfKtpS.js +0 -5611
  162. package/core/built/admin/assets/posts/get-site-timezone-DVbWc-NA.js +0 -39
  163. package/core/built/admin/assets/posts/growth-DlhFUzVg.js +0 -299
  164. package/core/built/admin/assets/posts/heading-BBl-8tMC.js +0 -92
  165. package/core/built/admin/assets/posts/hooks-gZAmj4Al.js +0 -5429
  166. package/core/built/admin/assets/posts/input-DuPLeCGW.js +0 -16
  167. package/core/built/admin/assets/posts/input-surface-ClwNIxfd.js +0 -17
  168. package/core/built/admin/assets/posts/jsx-runtime-BfZnKD4L.js +0 -95
  169. package/core/built/admin/assets/posts/koenig-lexical-DCHiJJou.js +0 -77579
  170. package/core/built/admin/assets/posts/kpis-Fsx0XmYK.js +0 -2061
  171. package/core/built/admin/assets/posts/label-D1wSl69p.js +0 -32
  172. package/core/built/admin/assets/posts/links-DLozzgMh.js +0 -1243
  173. package/core/built/admin/assets/posts/loading-indicator-BgU2kK3v.js +0 -44
  174. package/core/built/admin/assets/posts/main-layout-DDlTMrnF.js +0 -15
  175. package/core/built/admin/assets/posts/newsletter-DAQJ1GLe.js +0 -736
  176. package/core/built/admin/assets/posts/overview-G3MfRm-S.js +0 -426
  177. package/core/built/admin/assets/posts/page-header-CanFyB95.js +0 -284
  178. package/core/built/admin/assets/posts/popover-Cta8ZDHJ.js +0 -221
  179. package/core/built/admin/assets/posts/post-analytics-cS07-wo_.js +0 -121
  180. package/core/built/admin/assets/posts/post-analytics-context-D868SMoq.js +0 -150
  181. package/core/built/admin/assets/posts/post-analytics-header-CZYiuaEL.js +0 -42249
  182. package/core/built/admin/assets/posts/post-share-modal-BJfswZzf.js +0 -352
  183. package/core/built/admin/assets/posts/posts-CpusjBC0.js +0 -37
  184. package/core/built/admin/assets/posts/posts-app-context-CPC7dOlt.js +0 -26
  185. package/core/built/admin/assets/posts/posts.js +0 -145
  186. package/core/built/admin/assets/posts/router-provider-DrqpOc8m.js +0 -114
  187. package/core/built/admin/assets/posts/separator-DAZNzARU.js +0 -37
  188. package/core/built/admin/assets/posts/settings-CMfUn5Hq.js +0 -66
  189. package/core/built/admin/assets/posts/shade-app-DLbeExcd-NeEZjE3R.js +0 -4764
  190. package/core/built/admin/assets/posts/sheet-CEuv-0a5.js +0 -62
  191. package/core/built/admin/assets/posts/site-WJ6ldary.js +0 -10
  192. package/core/built/admin/assets/posts/skeleton-CO0qCdQF.js +0 -2426
  193. package/core/built/admin/assets/posts/source-icon-Bs6o84W3.js +0 -143
  194. package/core/built/admin/assets/posts/stats-B1Z8H0JT.js +0 -92
  195. package/core/built/admin/assets/posts/table-CbJ9bOpM.js +0 -77
  196. package/core/built/admin/assets/posts/tabs-BvzzwQ4P.js +0 -242
  197. package/core/built/admin/assets/posts/tags-D-4TwsD0.js +0 -462
  198. package/core/built/admin/assets/posts/tooltip-BI7VtFUY.js +0 -380
  199. package/core/built/admin/assets/posts/update-queries-DiUznIQ1.js +0 -60
  200. package/core/built/admin/assets/posts/users-UgRPrTKW.js +0 -83
  201. package/core/built/admin/assets/posts/value-DF_wOhJe.js +0 -415
  202. package/core/built/admin/assets/posts/virtual-list-window-DP63Onpm.js +0 -853
  203. package/core/built/admin/assets/posts/web-axp2l3kK.js +0 -8077
  204. package/core/built/admin/assets/preferences-ChOzBKcF.js +0 -5
  205. package/core/built/admin/assets/profile-DlcrYKay.js +0 -1
  206. package/core/built/admin/assets/select-BbtNHCBq.js +0 -1
  207. package/core/built/admin/assets/social-urls-DVzIHh2W.js +0 -16
  208. package/core/built/admin/assets/source-icon-Uuhttjun.js +0 -1
  209. package/core/built/admin/assets/source-utils-BchD0sF0.js +0 -1
  210. package/core/built/admin/assets/stats-CrlPzgdd.js +0 -1
  211. package/core/built/admin/assets/stats-view-UNMhTMCZ.js +0 -1
  212. package/core/built/admin/assets/step-1-C2HY6pyi.js +0 -1
  213. package/core/built/admin/assets/tags-DjCsJo0X.js +0 -1
  214. package/core/built/admin/assets/typeof-Ca-duI-z.js +0 -1
  215. package/core/built/admin/assets/url-helpers-DxA844rA.js +0 -1
  216. package/core/built/admin/assets/use-growth-stats-DNIGdI8h.js +0 -1
  217. package/core/built/admin/assets/use-reply-chain-data-DtEC2Azp.js +0 -1
  218. package/core/built/admin/assets/virtual-list-window-BTXGwpf5.js +0 -1
  219. package/core/built/admin/assets/web-Cj8VEw3s.js +0 -1
  220. /package/core/built/admin/assets/{chunk.912.9d6df5a6da679d905bbf.js.LICENSE.txt → chunk.251.dd82df30188bb633b4ae.js.LICENSE.txt} +0 -0
@@ -1,284 +0,0 @@
1
- import { p as e, s as t, t as n } from "./jsx-runtime-BfZnKD4L.js";
2
- import { a as r, r as i, u as a } from "./skeleton-CO0qCdQF.js";
3
- import { s as o } from "./shade-app-DLbeExcd-NeEZjE3R.js";
4
- import { i as s, t as c } from "./heading-BBl-8tMC.js";
5
- //#region ../shade/es/components/primitives/types.js
6
- var l = {
7
- none: "gap-0",
8
- xs: "gap-1",
9
- sm: "gap-2",
10
- md: "gap-3",
11
- lg: "gap-5",
12
- xl: "gap-6",
13
- "2xl": "gap-8"
14
- }, u = {
15
- start: "items-start",
16
- center: "items-center",
17
- end: "items-end",
18
- stretch: "items-stretch",
19
- baseline: "items-baseline"
20
- }, d = {
21
- start: "justify-start",
22
- center: "justify-center",
23
- end: "justify-end",
24
- between: "justify-between",
25
- around: "justify-around",
26
- evenly: "justify-evenly"
27
- };
28
- //#endregion
29
- //#region ../shade/es/components/primitives/inline.js
30
- e();
31
- var f = n(), p = t.forwardRef(function({ as: e = "div", className: t, gap: n = "md", align: r = "center", justify: i = "start", wrap: a = !1, ...s }, c) {
32
- return /* @__PURE__ */ (0, f.jsx)(e, {
33
- ref: c,
34
- className: o("flex flex-row", a ? "flex-wrap" : "flex-nowrap", l[n], u[r], d[i], t),
35
- ...s
36
- });
37
- });
38
- //#endregion
39
- //#region ../shade/es/components/primitives/stack.js
40
- p.displayName = "Inline", e();
41
- var m = t.forwardRef(function({ className: e, gap: t = "md", align: n = "stretch", justify: r = "start", ...i }, a) {
42
- return /* @__PURE__ */ (0, f.jsx)("div", {
43
- ref: a,
44
- className: o("flex flex-col", l[t], u[n], d[r], e),
45
- ...i
46
- });
47
- });
48
- //#endregion
49
- //#region ../shade/es/components/page-templates/list-page.js
50
- m.displayName = "Stack", e();
51
- function h({ className: e, children: t, ...n }) {
52
- return /* @__PURE__ */ (0, f.jsx)(m, {
53
- className: o("-mx-4 px-4 lg:-mx-5 lg:px-5", "sticky top-0 z-50", "bg-gradient-to-b from-background via-background/70 to-background/70 backdrop-blur-md dark:bg-black", "py-5", e),
54
- "data-list-page": "header",
55
- gap: "lg",
56
- ...n,
57
- children: t
58
- });
59
- }
60
- function g({ className: e, children: t, ...n }) {
61
- return /* @__PURE__ */ (0, f.jsx)(m, {
62
- className: o("min-h-0 min-w-0 grow pb-4 lg:pb-8", e),
63
- "data-list-page": "body",
64
- gap: "none",
65
- ...n,
66
- children: t
67
- });
68
- }
69
- var _ = Object.assign(function({ className: e, children: t, ...n }) {
70
- return /* @__PURE__ */ (0, f.jsx)(m, {
71
- className: o("h-full min-h-0 grow px-4 lg:px-6", e),
72
- "data-list-page": "list-page",
73
- gap: "none",
74
- ...n,
75
- children: t
76
- });
77
- }, {
78
- Header: h,
79
- Body: g
80
- });
81
- //#endregion
82
- //#region ../shade/es/components/patterns/page-header.js
83
- e();
84
- function v({ className: e, children: t }) {
85
- return /* @__PURE__ */ (0, f.jsx)(p, {
86
- align: "center",
87
- className: o("pt-1 text-sm text-muted-foreground", e),
88
- "data-page-header": "breadcrumb",
89
- gap: "sm",
90
- children: t
91
- });
92
- }
93
- function y({ className: e, children: t }) {
94
- return /* @__PURE__ */ (0, f.jsx)(s, {
95
- as: "span",
96
- className: o("ml-1 text-base tabular-nums", e),
97
- "data-page-header": "count",
98
- tone: "secondary",
99
- weight: "regular",
100
- children: t
101
- });
102
- }
103
- function b({ className: e, children: t }) {
104
- return /* @__PURE__ */ (0, f.jsx)(s, {
105
- as: "p",
106
- className: e,
107
- "data-page-header": "description",
108
- size: "sm",
109
- tone: "secondary",
110
- children: t
111
- });
112
- }
113
- function x({ className: e, children: t }) {
114
- return /* @__PURE__ */ (0, f.jsx)(s, {
115
- as: "p",
116
- className: o("mt-0.5", e),
117
- "data-page-header": "meta",
118
- size: "sm",
119
- tone: "secondary",
120
- children: t
121
- });
122
- }
123
- function S({ className: e, children: n }) {
124
- let r = [], i = [];
125
- t.Children.forEach(n, (e) => {
126
- if (!t.isValidElement(e)) {
127
- r.push(e);
128
- return;
129
- }
130
- switch (e.type) {
131
- case b:
132
- case x:
133
- i.push(e);
134
- break;
135
- default: r.push(e);
136
- }
137
- });
138
- let a = /* @__PURE__ */ (0, f.jsx)(c, {
139
- className: o("text-lg font-semibold tracking-[0.1px] whitespace-nowrap", e),
140
- "data-page-header": "title",
141
- children: r
142
- });
143
- return i.length > 0 ? /* @__PURE__ */ (0, f.jsxs)(m, {
144
- "data-page-header": "title-body",
145
- gap: "none",
146
- children: [a, i]
147
- }) : a;
148
- }
149
- function C({ className: e, children: t }) {
150
- return /* @__PURE__ */ (0, f.jsx)(m, {
151
- className: o("h-full min-h-(--control-height) min-w-0", e),
152
- "data-page-header": "left",
153
- gap: "xs",
154
- justify: "center",
155
- children: t
156
- });
157
- }
158
- function w({ children: e }) {
159
- return /* @__PURE__ */ (0, f.jsx)(f.Fragment, { children: e });
160
- }
161
- function T({ children: e }) {
162
- return /* @__PURE__ */ (0, f.jsx)(i, { children: e });
163
- }
164
- function E({ children: e, ...t }) {
165
- return /* @__PURE__ */ (0, f.jsx)(a, {
166
- asChild: !0,
167
- ...t,
168
- children: e
169
- });
170
- }
171
- function D({ children: e, ...t }) {
172
- return /* @__PURE__ */ (0, f.jsx)(r, {
173
- align: "end",
174
- sideOffset: 8,
175
- ...t,
176
- children: e
177
- });
178
- }
179
- var O = 640, k = (e) => typeof window > "u" ? !1 : window.innerWidth < e, A = (e) => {
180
- let [n, r] = t.useState(() => k(e));
181
- return t.useEffect(() => {
182
- let t = () => {
183
- r(k(e));
184
- };
185
- return t(), window.addEventListener("resize", t), () => {
186
- window.removeEventListener("resize", t);
187
- };
188
- }, [e]), n;
189
- }, j = Object.assign(function({ className: e, children: n, mobileMenuBreakpoint: r = O }) {
190
- let i = t.Children.toArray(n), a = [], o = null, s = null, c = A(r);
191
- return i.forEach((e) => {
192
- if (!t.isValidElement(e)) {
193
- a.push(e);
194
- return;
195
- }
196
- let n = e;
197
- if (n.type === T) {
198
- o = n;
199
- return;
200
- }
201
- if (n.type === w) {
202
- s = n.props.children ?? null, a.push(n.props.children ?? null);
203
- return;
204
- }
205
- a.push(n);
206
- }), o ? c ? /* @__PURE__ */ (0, f.jsx)(p, {
207
- align: "center",
208
- className: e,
209
- "data-page-header": "action-group",
210
- gap: "sm",
211
- justify: "end",
212
- children: /* @__PURE__ */ (0, f.jsxs)(p, {
213
- align: "center",
214
- className: "ml-auto",
215
- "data-page-header": "action-group-mobile",
216
- gap: "sm",
217
- children: [o, s && /* @__PURE__ */ (0, f.jsx)("div", {
218
- "data-page-header": "action-group-mobile-primary",
219
- children: s
220
- })]
221
- })
222
- }) : /* @__PURE__ */ (0, f.jsx)(p, {
223
- align: "center",
224
- className: e,
225
- "data-page-header": "action-group",
226
- gap: "sm",
227
- justify: "end",
228
- children: /* @__PURE__ */ (0, f.jsx)(p, {
229
- align: "center",
230
- "data-page-header": "action-group-desktop",
231
- gap: "sm",
232
- justify: "end",
233
- children: a
234
- })
235
- }) : /* @__PURE__ */ (0, f.jsx)(p, {
236
- align: "center",
237
- className: e,
238
- "data-page-header": "action-group",
239
- gap: "sm",
240
- justify: "end",
241
- children: n
242
- });
243
- }, {
244
- Primary: w,
245
- MobileMenu: T,
246
- MobileMenuTrigger: E,
247
- MobileMenuContent: D
248
- });
249
- function M({ className: e, children: t }) {
250
- return /* @__PURE__ */ (0, f.jsx)(p, {
251
- align: "center",
252
- className: o("min-h-(--control-height) shrink-0", e),
253
- "data-page-header": "actions",
254
- gap: "lg",
255
- children: t
256
- });
257
- }
258
- var N = Object.assign(function({ className: e, children: t, sticky: n = !0, blurredBackground: r = !0 }) {
259
- return /* @__PURE__ */ (0, f.jsx)("header", {
260
- className: o("flex flex-col", n && "sticky top-0 z-50", r && "bg-gradient-to-b from-background via-background/70 to-background/70 backdrop-blur-md dark:bg-black", e),
261
- "data-page-header": "page-header",
262
- children: /* @__PURE__ */ (0, f.jsx)(p, {
263
- align: "start",
264
- className: "w-full",
265
- "data-page-header": "main",
266
- gap: "lg",
267
- justify: "between",
268
- children: t
269
- })
270
- });
271
- }, {
272
- Left: C,
273
- Breadcrumb: v,
274
- Title: S,
275
- Count: y,
276
- Description: b,
277
- Meta: x,
278
- Actions: M,
279
- ActionGroup: j
280
- });
281
- //#endregion
282
- export { _ as n, p as r, N as t };
283
-
284
- //# sourceMappingURL=page-header-CanFyB95.js.map
@@ -1,221 +0,0 @@
1
- import { D as e, E as t, _ as n, b as r, f as i, p as a, t as o } from "./jsx-runtime-BfZnKD4L.js";
2
- import { Ct as s, Et as c, Ft as l, Nt as u, Ot as d, Pt as f, Rt as p, St as m, Tt as h, Vt as g, jt as _, kt as v, wt as y, yt as b } from "./button-Dd8Xreln.js";
3
- import { A as x, M as S, O as C, j as w, k as T } from "./skeleton-CO0qCdQF.js";
4
- import { s as E, t as ee } from "./shade-app-DLbeExcd-NeEZjE3R.js";
5
- //#region ../../node_modules/.pnpm/@radix-ui+react-popover@1.1.18_@types+react-dom@18.3.7_@types+react@18.3.31__@types+rea_8a3b109e72d032b35181788743af8841/node_modules/@radix-ui/react-popover/dist/index.mjs
6
- a();
7
- var D = o(), O = "Popover", [k, te] = u(O, [S]), A = S(), [j, M] = k(O), N = (r) => {
8
- let { __scopePopover: i, children: a, open: o, defaultOpen: s, onOpenChange: c, modal: l = !1 } = r, u = A(i), d = t(null), [f, p] = e(!1), [m, h] = v({
9
- prop: o,
10
- defaultProp: s ?? !1,
11
- onChange: c,
12
- caller: O
13
- });
14
- return /* @__PURE__ */ (0, D.jsx)(w, {
15
- ...u,
16
- children: /* @__PURE__ */ (0, D.jsx)(j, {
17
- scope: i,
18
- contentId: _(),
19
- triggerRef: d,
20
- open: m,
21
- onOpenChange: h,
22
- onOpenToggle: n(() => h((e) => !e), [h]),
23
- hasCustomAnchor: f,
24
- onCustomAnchorAdd: n(() => p(!0), []),
25
- onCustomAnchorRemove: n(() => p(!1), []),
26
- modal: l,
27
- children: a
28
- })
29
- });
30
- };
31
- N.displayName = O;
32
- var P = "PopoverAnchor", ne = i((e, t) => {
33
- let { __scopePopover: n, ...i } = e, a = M(P, n), o = A(n), { onCustomAnchorAdd: s, onCustomAnchorRemove: c } = a;
34
- return r(() => (s(), () => c()), [s, c]), /* @__PURE__ */ (0, D.jsx)(C, {
35
- ...o,
36
- ...i,
37
- ref: t
38
- });
39
- });
40
- ne.displayName = P;
41
- var F = "PopoverTrigger", I = i((e, t) => {
42
- let { __scopePopover: n, ...r } = e, i = M(F, n), a = A(n), o = g(t, i.triggerRef), s = /* @__PURE__ */ (0, D.jsx)(l.button, {
43
- type: "button",
44
- "aria-haspopup": "dialog",
45
- "aria-expanded": i.open,
46
- "aria-controls": i.open ? i.contentId : void 0,
47
- "data-state": Z(i.open),
48
- ...r,
49
- ref: o,
50
- onClick: f(e.onClick, i.onOpenToggle)
51
- });
52
- return i.hasCustomAnchor ? s : /* @__PURE__ */ (0, D.jsx)(C, {
53
- asChild: !0,
54
- ...a,
55
- children: s
56
- });
57
- });
58
- I.displayName = F;
59
- var L = "PopoverPortal", [R, z] = k(L, { forceMount: void 0 }), B = (e) => {
60
- let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = M(L, t);
61
- return /* @__PURE__ */ (0, D.jsx)(R, {
62
- scope: t,
63
- forceMount: n,
64
- children: /* @__PURE__ */ (0, D.jsx)(d, {
65
- present: n || a.open,
66
- children: /* @__PURE__ */ (0, D.jsx)(s, {
67
- asChild: !0,
68
- container: i,
69
- children: r
70
- })
71
- })
72
- });
73
- };
74
- B.displayName = L;
75
- var V = "PopoverContent", H = i((e, t) => {
76
- let n = z(V, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = M(V, e.__scopePopover);
77
- return /* @__PURE__ */ (0, D.jsx)(d, {
78
- present: r || a.open,
79
- children: a.modal ? /* @__PURE__ */ (0, D.jsx)(W, {
80
- ...i,
81
- ref: t
82
- }) : /* @__PURE__ */ (0, D.jsx)(G, {
83
- ...i,
84
- ref: t
85
- })
86
- });
87
- });
88
- H.displayName = V;
89
- var U = p("PopoverContent.RemoveScroll"), W = i((e, n) => {
90
- let i = M(V, e.__scopePopover), a = t(null), o = g(n, a), s = t(!1);
91
- return r(() => {
92
- let e = a.current;
93
- if (e) return m(e);
94
- }, []), /* @__PURE__ */ (0, D.jsx)(b, {
95
- as: U,
96
- allowPinchZoom: !0,
97
- children: /* @__PURE__ */ (0, D.jsx)(K, {
98
- ...e,
99
- ref: o,
100
- trapFocus: i.open,
101
- disableOutsidePointerEvents: !0,
102
- onCloseAutoFocus: f(e.onCloseAutoFocus, (e) => {
103
- e.preventDefault(), s.current || i.triggerRef.current?.focus();
104
- }),
105
- onPointerDownOutside: f(e.onPointerDownOutside, (e) => {
106
- let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
107
- s.current = r;
108
- }, { checkForDefaultPrevented: !1 }),
109
- onFocusOutside: f(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
110
- })
111
- });
112
- }), G = i((e, n) => {
113
- let r = M(V, e.__scopePopover), i = t(!1), a = t(!1);
114
- return /* @__PURE__ */ (0, D.jsx)(K, {
115
- ...e,
116
- ref: n,
117
- trapFocus: !1,
118
- disableOutsidePointerEvents: !1,
119
- onCloseAutoFocus: (t) => {
120
- e.onCloseAutoFocus?.(t), t.defaultPrevented || (i.current || r.triggerRef.current?.focus(), t.preventDefault()), i.current = !1, a.current = !1;
121
- },
122
- onInteractOutside: (t) => {
123
- e.onInteractOutside?.(t), t.defaultPrevented || (i.current = !0, t.detail.originalEvent.type === "pointerdown" && (a.current = !0));
124
- let n = t.target;
125
- r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
126
- }
127
- });
128
- }), K = i((e, t) => {
129
- let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: l, onFocusOutside: u, onInteractOutside: d, ...f } = e, p = M(V, n), m = A(n);
130
- return h(), /* @__PURE__ */ (0, D.jsx)(y, {
131
- asChild: !0,
132
- loop: !0,
133
- trapped: r,
134
- onMountAutoFocus: i,
135
- onUnmountAutoFocus: a,
136
- children: /* @__PURE__ */ (0, D.jsx)(c, {
137
- asChild: !0,
138
- disableOutsidePointerEvents: o,
139
- onInteractOutside: d,
140
- onEscapeKeyDown: s,
141
- onPointerDownOutside: l,
142
- onFocusOutside: u,
143
- onDismiss: () => p.onOpenChange(!1),
144
- deferPointerDownOutside: !0,
145
- children: /* @__PURE__ */ (0, D.jsx)(x, {
146
- "data-state": Z(p.open),
147
- role: "dialog",
148
- id: p.contentId,
149
- ...m,
150
- ...f,
151
- ref: t,
152
- style: {
153
- ...f.style,
154
- "--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
155
- "--radix-popover-content-available-width": "var(--radix-popper-available-width)",
156
- "--radix-popover-content-available-height": "var(--radix-popper-available-height)",
157
- "--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
158
- "--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
159
- }
160
- })
161
- })
162
- });
163
- }), q = "PopoverClose", J = i((e, t) => {
164
- let { __scopePopover: n, ...r } = e, i = M(q, n);
165
- return /* @__PURE__ */ (0, D.jsx)(l.button, {
166
- type: "button",
167
- ...r,
168
- ref: t,
169
- onClick: f(e.onClick, () => i.onOpenChange(!1))
170
- });
171
- });
172
- J.displayName = q;
173
- var Y = "PopoverArrow", X = i((e, t) => {
174
- let { __scopePopover: n, ...r } = e, i = A(n);
175
- return /* @__PURE__ */ (0, D.jsx)(T, {
176
- ...i,
177
- ...r,
178
- ref: t
179
- });
180
- });
181
- X.displayName = Y;
182
- function Z(e) {
183
- return e ? "open" : "closed";
184
- }
185
- var re = N, ie = I, ae = B, Q = H;
186
- //#endregion
187
- //#region ../shade/es/components/ui/popover.js
188
- a();
189
- var oe = ({ open: i, defaultOpen: a, onOpenChange: o, children: s, ...c }) => {
190
- let l = i !== void 0, [u, d] = e(a ?? !1), f = l ? i : u, p = n((e) => {
191
- l || d(e), o?.(e);
192
- }, [l, o]), m = t(p);
193
- return r(() => {
194
- m.current = p;
195
- }, [p]), r(() => {
196
- if (!f) return;
197
- let e = (e) => {
198
- e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), m.current(!1));
199
- };
200
- return document.addEventListener("keydown", e, { capture: !0 }), () => document.removeEventListener("keydown", e, { capture: !0 });
201
- }, [f]), /* @__PURE__ */ (0, D.jsx)(re, {
202
- ...c,
203
- open: f,
204
- onOpenChange: p,
205
- children: s
206
- });
207
- }, se = ie, $ = i(({ className: e, align: t = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ (0, D.jsx)(ae, { children: /* @__PURE__ */ (0, D.jsx)("div", {
208
- className: ee,
209
- children: /* @__PURE__ */ (0, D.jsx)(Q, {
210
- ref: i,
211
- align: t,
212
- className: E("z-50 origin-(--radix-popover-content-transform-origin) rounded-md border border-border/60 bg-surface-elevated-2 p-5 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 dark:border-border/30", e),
213
- sideOffset: n,
214
- ...r
215
- })
216
- }) }));
217
- $.displayName = Q.displayName;
218
- //#endregion
219
- export { $ as n, se as r, oe as t };
220
-
221
- //# sourceMappingURL=popover-Cta8ZDHJ.js.map
@@ -1,121 +0,0 @@
1
- import { D as e, b as t, p as n, s as r, t as i, w as a } from "./jsx-runtime-BfZnKD4L.js";
2
- import { r as o } from "./chunk-KS7C4IRE-ECXkcZq6.js";
3
- import { n as s } from "./post-analytics-context-D868SMoq.js";
4
- import { n as c } from "./posts-CpusjBC0.js";
5
- import { r as l, t as u } from "./post-share-modal-BJfswZzf.js";
6
- import { t as d } from "./main-layout-DDlTMrnF.js";
7
- //#region src/views/PostAnalytics/components/layout/post-analytics-layout.tsx
8
- n();
9
- var f = i(), p = ({ children: e }) => /* @__PURE__ */ (0, f.jsx)(d, { children: /* @__PURE__ */ (0, f.jsx)("div", {
10
- className: "grid w-full grow",
11
- children: /* @__PURE__ */ (0, f.jsx)("div", {
12
- className: "flex h-full flex-col px-8",
13
- children: e
14
- })
15
- }) });
16
- //#endregion
17
- //#region src/hooks/use-post-success-modal.ts
18
- n();
19
- var m = () => {
20
- let [n, i] = e(!1), [o, l] = e(null), [u, d] = e(null), { site: f } = s(), { data: p } = c({
21
- searchParams: o ? {
22
- filter: `id:${o.id}`,
23
- include: "authors,newsletter,email"
24
- } : {},
25
- enabled: !!o
26
- }), { data: m } = c({
27
- searchParams: {
28
- filter: "status:[published,sent]",
29
- limit: "1",
30
- fields: "id"
31
- },
32
- enabled: !!o
33
- }), h = p?.posts?.[0], g = (e) => `${e.toLocaleString()} subscriber${e === 1 ? "" : "s"}`, _ = (e) => new Date(e).toLocaleTimeString("en-US", {
34
- hour: "2-digit",
35
- minute: "2-digit",
36
- hour12: !1
37
- }), v = (e) => e?.map((e) => e.name).join(", ") || "", y = a(() => {
38
- if (!h) return null;
39
- let e = !!u, t = () => {
40
- let e = [];
41
- if (h.email_only ? e.push("Your email was sent to") : h.email?.email_count ? e.push("Your post was published on your site and sent to") : e.push("Your post was published on your site"), h.email?.email_count) {
42
- let t = g(h.email.email_count);
43
- e.push(" "), e.push(r.createElement("strong", { key: "subscriber-count" }, t)), h.newsletter?.name && (e.push(" of "), e.push(r.createElement("strong", { key: "newsletter-name" }, h.newsletter.name))), e.push(",");
44
- }
45
- if (h.published_at) {
46
- let t = new Date(h.published_at);
47
- t.toDateString() === (/* @__PURE__ */ new Date()).toDateString() ? (e.push(" "), e.push(r.createElement("strong", { key: "today" }, "today"))) : (e.push(" on "), e.push(r.createElement("strong", { key: "date" }, t.toLocaleDateString("en-US", {
48
- month: "long",
49
- day: "numeric"
50
- })))), e.push(" at "), e.push(r.createElement("strong", { key: "time" }, _(h.published_at)));
51
- }
52
- return e.push("."), r.createElement("span", {}, ...e);
53
- }, a = () => {
54
- i(!1), l(null), d(null);
55
- };
56
- return {
57
- open: n,
58
- onOpenChange: (e) => {
59
- e || a();
60
- },
61
- emailOnly: h.email_only,
62
- postURL: h.url || "",
63
- primaryTitle: "Boom! It's out there.",
64
- secondaryTitle: e && u ? `That's ${u.toLocaleString()} post${u === 1 ? "" : "s"} published.` : "Spread the word!",
65
- description: t(),
66
- featureImageURL: h.feature_image || "",
67
- postTitle: h.title || "",
68
- postExcerpt: h.excerpt || "",
69
- faviconURL: f?.icon || "",
70
- siteTitle: f?.title || "",
71
- author: v(h.authors),
72
- onClose: a
73
- };
74
- }, [
75
- h,
76
- n,
77
- u,
78
- f?.title
79
- ]);
80
- return t(() => {
81
- let e = () => {
82
- try {
83
- let e = localStorage.getItem("ghost-last-published-post");
84
- if (e) {
85
- let t = JSON.parse(e);
86
- l(t), i(!0), localStorage.removeItem("ghost-last-published-post");
87
- }
88
- } catch {}
89
- };
90
- e();
91
- let t = setTimeout(e, 100);
92
- return () => clearTimeout(t);
93
- }, []), t(() => {
94
- m?.meta?.pagination?.total && d(m.meta.pagination.total);
95
- }, [m]), {
96
- isModalOpen: n,
97
- post: h,
98
- postCount: u,
99
- showPostCount: !!u,
100
- closeModal: () => {
101
- i(!1), l(null), d(null);
102
- },
103
- modalProps: y
104
- };
105
- };
106
- //#endregion
107
- //#region src/views/PostAnalytics/post-analytics.tsx
108
- n();
109
- var h = () => {
110
- let { isModalOpen: e, modalProps: n } = m(), r = e && !!n;
111
- return t(() => {
112
- r && l("Share Modal Opened", {
113
- giftLinkShown: !1,
114
- source: "publish-flow"
115
- });
116
- }, [r]), /* @__PURE__ */ (0, f.jsxs)(p, { children: [/* @__PURE__ */ (0, f.jsx)(o, {}), e && n && /* @__PURE__ */ (0, f.jsx)(u, { ...n })] });
117
- };
118
- //#endregion
119
- export { h as default };
120
-
121
- //# sourceMappingURL=post-analytics-cS07-wo_.js.map