ghost 5.87.0 → 5.87.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +6 -5
  3. package/components/tryghost-adapter-cache-memory-ttl-5.87.2.tgz +0 -0
  4. package/components/{tryghost-adapter-cache-redis-5.87.0.tgz → tryghost-adapter-cache-redis-5.87.2.tgz} +0 -0
  5. package/components/{tryghost-adapter-manager-5.87.0.tgz → tryghost-adapter-manager-5.87.2.tgz} +0 -0
  6. package/components/tryghost-announcement-bar-settings-5.87.2.tgz +0 -0
  7. package/components/{tryghost-api-framework-5.87.0.tgz → tryghost-api-framework-5.87.2.tgz} +0 -0
  8. package/components/{tryghost-api-version-compatibility-service-5.87.0.tgz → tryghost-api-version-compatibility-service-5.87.2.tgz} +0 -0
  9. package/components/tryghost-audience-feedback-5.87.2.tgz +0 -0
  10. package/components/tryghost-bookshelf-repository-5.87.2.tgz +0 -0
  11. package/components/{tryghost-bootstrap-socket-5.87.0.tgz → tryghost-bootstrap-socket-5.87.2.tgz} +0 -0
  12. package/components/{tryghost-collections-5.87.0.tgz → tryghost-collections-5.87.2.tgz} +0 -0
  13. package/components/tryghost-constants-5.87.2.tgz +0 -0
  14. package/components/tryghost-custom-theme-settings-service-5.87.2.tgz +0 -0
  15. package/components/{tryghost-data-generator-5.87.0.tgz → tryghost-data-generator-5.87.2.tgz} +0 -0
  16. package/components/tryghost-domain-events-5.87.2.tgz +0 -0
  17. package/components/{tryghost-donations-5.87.0.tgz → tryghost-donations-5.87.2.tgz} +0 -0
  18. package/components/tryghost-dynamic-routing-events-5.87.2.tgz +0 -0
  19. package/components/tryghost-email-addresses-5.87.2.tgz +0 -0
  20. package/components/{tryghost-email-analytics-provider-mailgun-5.87.0.tgz → tryghost-email-analytics-provider-mailgun-5.87.2.tgz} +0 -0
  21. package/components/{tryghost-email-analytics-service-5.87.0.tgz → tryghost-email-analytics-service-5.87.2.tgz} +0 -0
  22. package/components/tryghost-email-content-generator-5.87.2.tgz +0 -0
  23. package/components/{tryghost-email-events-5.87.0.tgz → tryghost-email-events-5.87.2.tgz} +0 -0
  24. package/components/tryghost-email-service-5.87.2.tgz +0 -0
  25. package/components/tryghost-email-suppression-list-5.87.2.tgz +0 -0
  26. package/components/tryghost-express-dynamic-redirects-5.87.2.tgz +0 -0
  27. package/components/tryghost-external-media-inliner-5.87.2.tgz +0 -0
  28. package/components/tryghost-extract-api-key-5.87.2.tgz +0 -0
  29. package/components/tryghost-ghost-5.87.2.tgz +0 -0
  30. package/components/{tryghost-html-to-plaintext-5.87.0.tgz → tryghost-html-to-plaintext-5.87.2.tgz} +0 -0
  31. package/components/tryghost-i18n-5.87.2.tgz +0 -0
  32. package/components/tryghost-importer-handler-content-files-5.87.2.tgz +0 -0
  33. package/components/{tryghost-importer-revue-5.87.0.tgz → tryghost-importer-revue-5.87.2.tgz} +0 -0
  34. package/components/tryghost-in-memory-repository-5.87.2.tgz +0 -0
  35. package/components/{tryghost-job-manager-5.87.0.tgz → tryghost-job-manager-5.87.2.tgz} +0 -0
  36. package/components/tryghost-link-redirects-5.87.2.tgz +0 -0
  37. package/components/{tryghost-link-replacer-5.87.0.tgz → tryghost-link-replacer-5.87.2.tgz} +0 -0
  38. package/components/tryghost-link-tracking-5.87.2.tgz +0 -0
  39. package/components/tryghost-magic-link-5.87.2.tgz +0 -0
  40. package/components/{tryghost-mail-events-5.87.0.tgz → tryghost-mail-events-5.87.2.tgz} +0 -0
  41. package/components/{tryghost-mailgun-client-5.87.0.tgz → tryghost-mailgun-client-5.87.2.tgz} +0 -0
  42. package/components/{tryghost-member-attribution-5.87.0.tgz → tryghost-member-attribution-5.87.2.tgz} +0 -0
  43. package/components/tryghost-member-events-5.87.2.tgz +0 -0
  44. package/components/tryghost-members-api-5.87.2.tgz +0 -0
  45. package/components/tryghost-members-csv-5.87.2.tgz +0 -0
  46. package/components/tryghost-members-events-service-5.87.2.tgz +0 -0
  47. package/components/{tryghost-members-importer-5.87.0.tgz → tryghost-members-importer-5.87.2.tgz} +0 -0
  48. package/components/{tryghost-members-offers-5.87.0.tgz → tryghost-members-offers-5.87.2.tgz} +0 -0
  49. package/components/tryghost-members-payments-5.87.2.tgz +0 -0
  50. package/components/tryghost-members-ssr-5.87.2.tgz +0 -0
  51. package/components/tryghost-members-stripe-service-5.87.2.tgz +0 -0
  52. package/components/{tryghost-mentions-email-report-5.87.0.tgz → tryghost-mentions-email-report-5.87.2.tgz} +0 -0
  53. package/components/{tryghost-milestones-5.87.0.tgz → tryghost-milestones-5.87.2.tgz} +0 -0
  54. package/components/{tryghost-minifier-5.87.0.tgz → tryghost-minifier-5.87.2.tgz} +0 -0
  55. package/components/tryghost-model-to-domain-event-interceptor-5.87.2.tgz +0 -0
  56. package/components/tryghost-mw-api-version-mismatch-5.87.2.tgz +0 -0
  57. package/components/tryghost-mw-cache-control-5.87.2.tgz +0 -0
  58. package/components/tryghost-mw-error-handler-5.87.2.tgz +0 -0
  59. package/components/{tryghost-mw-session-from-token-5.87.0.tgz → tryghost-mw-session-from-token-5.87.2.tgz} +0 -0
  60. package/components/tryghost-mw-update-user-last-seen-5.87.2.tgz +0 -0
  61. package/components/{tryghost-mw-version-match-5.87.0.tgz → tryghost-mw-version-match-5.87.2.tgz} +0 -0
  62. package/components/tryghost-mw-vhost-5.87.2.tgz +0 -0
  63. package/components/tryghost-nql-filter-expansions-5.87.2.tgz +0 -0
  64. package/components/tryghost-oembed-service-5.87.2.tgz +0 -0
  65. package/components/{tryghost-package-json-5.87.0.tgz → tryghost-package-json-5.87.2.tgz} +0 -0
  66. package/components/tryghost-post-events-5.87.2.tgz +0 -0
  67. package/components/tryghost-post-revisions-5.87.2.tgz +0 -0
  68. package/components/tryghost-posts-service-5.87.2.tgz +0 -0
  69. package/components/tryghost-recommendations-5.87.2.tgz +0 -0
  70. package/components/tryghost-referrers-5.87.2.tgz +0 -0
  71. package/components/{tryghost-security-5.87.0.tgz → tryghost-security-5.87.2.tgz} +0 -0
  72. package/components/{tryghost-session-service-5.87.0.tgz → tryghost-session-service-5.87.2.tgz} +0 -0
  73. package/components/tryghost-settings-path-manager-5.87.2.tgz +0 -0
  74. package/components/tryghost-slack-notifications-5.87.2.tgz +0 -0
  75. package/components/tryghost-staff-service-5.87.2.tgz +0 -0
  76. package/components/tryghost-stats-service-5.87.2.tgz +0 -0
  77. package/components/{tryghost-tiers-5.87.0.tgz → tryghost-tiers-5.87.2.tgz} +0 -0
  78. package/components/{tryghost-update-check-service-5.87.0.tgz → tryghost-update-check-service-5.87.2.tgz} +0 -0
  79. package/components/tryghost-verification-trigger-5.87.2.tgz +0 -0
  80. package/components/{tryghost-version-notifications-data-service-5.87.0.tgz → tryghost-version-notifications-data-service-5.87.2.tgz} +0 -0
  81. package/components/{tryghost-webmentions-5.87.0.tgz → tryghost-webmentions-5.87.2.tgz} +0 -0
  82. package/content/themes/casper/assets/built/screen.css +1 -1
  83. package/content/themes/casper/assets/built/screen.css.map +1 -1
  84. package/content/themes/casper/assets/css/screen.css +12 -0
  85. package/content/themes/casper/package.json +1 -1
  86. package/content/themes/casper/post.hbs +1 -1
  87. package/content/themes/source/assets/built/screen.css +1 -1
  88. package/content/themes/source/assets/built/screen.css.map +1 -1
  89. package/content/themes/source/assets/css/screen.css +12 -45
  90. package/content/themes/source/default.hbs +3 -0
  91. package/content/themes/source/package.json +1 -1
  92. package/content/themes/source/partials/email-subscription.hbs +1 -1
  93. package/content/themes/source/partials/feature-image.hbs +8 -9
  94. package/content/themes/source/partials/typography/fonts.hbs +15 -0
  95. package/content/themes/source/partials/typography/mono.hbs +21 -0
  96. package/content/themes/source/partials/typography/sans.hbs +11 -0
  97. package/content/themes/source/partials/typography/serif.hbs +21 -0
  98. package/content/themes/source/post.hbs +2 -2
  99. package/core/boot.js +0 -4
  100. package/core/built/admin/assets/admin-x-activitypub/admin-x-activitypub.js +3 -3
  101. package/core/built/admin/assets/admin-x-activitypub/index-b4a353e7.mjs +18739 -0
  102. package/core/built/admin/assets/admin-x-activitypub/modals-f64a65f9.mjs +514 -0
  103. package/core/built/admin/assets/admin-x-demo/admin-x-demo.js +2 -2
  104. package/core/built/admin/assets/admin-x-demo/index-5e68f89b.mjs +12341 -0
  105. package/core/built/admin/assets/admin-x-demo/{modals-0790023d.mjs → modals-f789a6c4.mjs} +109 -108
  106. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-18434b62.mjs → CodeEditorView-e762149f.mjs} +2 -2
  107. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
  108. package/core/built/admin/assets/admin-x-settings/{index-26c4c463.mjs → index-b5d002c9.mjs} +2 -2
  109. package/core/built/admin/assets/admin-x-settings/{index-c8f7240c.mjs → index-e85d0dcf.mjs} +14001 -10336
  110. package/core/built/admin/assets/admin-x-settings/{modals-bef82301.mjs → modals-ccd29d36.mjs} +10876 -14498
  111. package/core/built/admin/assets/{chunk.216.1641331b33471771559d.js → chunk.42.0879e40a4de3db25b177.js} +6069 -6334
  112. package/core/built/admin/assets/{chunk.216.1641331b33471771559d.js.LICENSE.txt → chunk.42.0879e40a4de3db25b177.js.LICENSE.txt} +1 -44
  113. package/core/built/admin/assets/{chunk.524.d2e0fcb8c19f3c1a3b30.js → chunk.524.a026cb2ef64affe16853.js} +5 -5
  114. package/core/built/admin/assets/{chunk.582.21faf5b79ae545480852.js → chunk.582.87261633b6177d1a30a5.js} +11 -11
  115. package/core/built/admin/assets/{ghost-7cd5e5705abfd8aa74248fc44aec54b5.js → ghost-07422c98448d7259d957d65c6737a274.js} +451 -468
  116. package/core/built/admin/assets/ghost-cb98187b163a0d8b42d752ab890e039a.css +1 -0
  117. package/core/built/admin/assets/ghost-dark-0d78b0a11f5c2604992de20c1bfe396f.css +1 -0
  118. package/core/built/admin/assets/koenig-lexical/index.css +1 -1
  119. package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +6427 -6384
  120. package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +111 -110
  121. package/core/built/admin/assets/{vendor-104fd33edb243021ce2f1a3797d513ef.js → vendor-051d43ec47258b77ffd2fcc21a6d8c50.js} +564 -987
  122. package/core/built/admin/index.html +6 -6
  123. package/core/frontend/services/routing/controllers/unsubscribe.js +1 -2
  124. package/core/frontend/src/cards/css/bookmark.css +1 -1
  125. package/core/frontend/src/member-attribution/member-attribution.js +15 -1
  126. package/core/server/api/endpoints/utils/serializers/output/authentication.js +1 -1
  127. package/core/server/data/importer/importers/data/ProductsImporter.js +18 -0
  128. package/core/server/lib/image/ImageSize.js +15 -3
  129. package/core/server/lib/image/ImageUtils.js +2 -1
  130. package/core/server/services/custom-redirects/CustomRedirectsAPI.js +3 -4
  131. package/core/server/services/custom-redirects/validation.js +21 -3
  132. package/core/server/services/recommendations/RecommendationServiceWrapper.js +6 -11
  133. package/core/server/services/webhooks/WebhookTrigger.js +2 -1
  134. package/core/shared/labs.js +0 -7
  135. package/package.json +159 -161
  136. package/yarn.lock +1181 -935
  137. package/components/tryghost-adapter-cache-memory-ttl-5.87.0.tgz +0 -0
  138. package/components/tryghost-announcement-bar-settings-5.87.0.tgz +0 -0
  139. package/components/tryghost-audience-feedback-5.87.0.tgz +0 -0
  140. package/components/tryghost-bookshelf-repository-5.87.0.tgz +0 -0
  141. package/components/tryghost-constants-5.87.0.tgz +0 -0
  142. package/components/tryghost-custom-theme-settings-service-5.87.0.tgz +0 -0
  143. package/components/tryghost-domain-events-5.87.0.tgz +0 -0
  144. package/components/tryghost-dynamic-routing-events-5.87.0.tgz +0 -0
  145. package/components/tryghost-email-addresses-5.87.0.tgz +0 -0
  146. package/components/tryghost-email-content-generator-5.87.0.tgz +0 -0
  147. package/components/tryghost-email-service-5.87.0.tgz +0 -0
  148. package/components/tryghost-email-suppression-list-5.87.0.tgz +0 -0
  149. package/components/tryghost-express-dynamic-redirects-5.87.0.tgz +0 -0
  150. package/components/tryghost-external-media-inliner-5.87.0.tgz +0 -0
  151. package/components/tryghost-extract-api-key-5.87.0.tgz +0 -0
  152. package/components/tryghost-ghost-5.87.0.tgz +0 -0
  153. package/components/tryghost-i18n-5.87.0.tgz +0 -0
  154. package/components/tryghost-importer-handler-content-files-5.87.0.tgz +0 -0
  155. package/components/tryghost-in-memory-repository-5.87.0.tgz +0 -0
  156. package/components/tryghost-link-redirects-5.87.0.tgz +0 -0
  157. package/components/tryghost-link-tracking-5.87.0.tgz +0 -0
  158. package/components/tryghost-magic-link-5.87.0.tgz +0 -0
  159. package/components/tryghost-member-events-5.87.0.tgz +0 -0
  160. package/components/tryghost-members-api-5.87.0.tgz +0 -0
  161. package/components/tryghost-members-csv-5.87.0.tgz +0 -0
  162. package/components/tryghost-members-events-service-5.87.0.tgz +0 -0
  163. package/components/tryghost-members-payments-5.87.0.tgz +0 -0
  164. package/components/tryghost-members-ssr-5.87.0.tgz +0 -0
  165. package/components/tryghost-members-stripe-service-5.87.0.tgz +0 -0
  166. package/components/tryghost-model-to-domain-event-interceptor-5.87.0.tgz +0 -0
  167. package/components/tryghost-mw-api-version-mismatch-5.87.0.tgz +0 -0
  168. package/components/tryghost-mw-cache-control-5.87.0.tgz +0 -0
  169. package/components/tryghost-mw-error-handler-5.87.0.tgz +0 -0
  170. package/components/tryghost-mw-update-user-last-seen-5.87.0.tgz +0 -0
  171. package/components/tryghost-mw-vhost-5.87.0.tgz +0 -0
  172. package/components/tryghost-nql-filter-expansions-5.87.0.tgz +0 -0
  173. package/components/tryghost-oembed-service-5.87.0.tgz +0 -0
  174. package/components/tryghost-post-events-5.87.0.tgz +0 -0
  175. package/components/tryghost-post-revisions-5.87.0.tgz +0 -0
  176. package/components/tryghost-posts-service-5.87.0.tgz +0 -0
  177. package/components/tryghost-recommendations-5.87.0.tgz +0 -0
  178. package/components/tryghost-referrers-5.87.0.tgz +0 -0
  179. package/components/tryghost-settings-path-manager-5.87.0.tgz +0 -0
  180. package/components/tryghost-slack-notifications-5.87.0.tgz +0 -0
  181. package/components/tryghost-staff-service-5.87.0.tgz +0 -0
  182. package/components/tryghost-stats-service-5.87.0.tgz +0 -0
  183. package/components/tryghost-verification-trigger-5.87.0.tgz +0 -0
  184. package/core/built/admin/assets/admin-x-activitypub/index-adf6f50d.mjs +0 -15011
  185. package/core/built/admin/assets/admin-x-activitypub/modals-c796922a.mjs +0 -511
  186. package/core/built/admin/assets/admin-x-demo/index-ea257d67.mjs +0 -8664
  187. package/core/built/admin/assets/ghost-ce50e3eb300a8e297d8b1f8b372c25d6.css +0 -1
  188. package/core/built/admin/assets/ghost-dark-4b969016a590f3112196d4ba3da7843a.css +0 -1
  189. package/core/server/services/websockets/index.js +0 -1
  190. package/core/server/services/websockets/service.js +0 -38
@@ -1 +0,0 @@
1
- module.exports = require('./service');
@@ -1,38 +0,0 @@
1
- const {Server} = require('socket.io');
2
- const debug = require('@tryghost/debug')('websockets');
3
- const logging = require('@tryghost/logging');
4
-
5
- const labs = require('../../../shared/labs');
6
-
7
- module.exports = {
8
- async init(ghostServer) {
9
- debug(`[Websockets] Is labs set? ${labs.isSet('websockets')}`);
10
-
11
- if (labs.isSet('websockets')) {
12
- logging.info(`Starting websockets service`);
13
-
14
- const io = new Server(ghostServer.httpServer);
15
- let count = 0;
16
-
17
- io.on(`connection`, (socket) => {
18
- logging.info(`Websockets client connected (id: ${socket.id})`);
19
-
20
- // on connect, send current value
21
- socket.emit('addCount', count);
22
- // listen to to changes in value from client
23
- socket.on('addCount', () => {
24
- count = count + 1;
25
- debug(`[Websockets] received addCount from client, count is now ${count}`);
26
- socket.broadcast.emit('addCount', count);
27
- });
28
- });
29
-
30
- ghostServer.registerCleanupTask(async () => {
31
- logging.warn(`Stopping websockets service`);
32
- await new Promise((resolve) => {
33
- io.close(resolve);
34
- });
35
- });
36
- }
37
- }
38
- };