ghost 5.53.4 → 5.54.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.
- package/README.md +1 -1
- package/components/tryghost-adapter-cache-memory-ttl-5.54.0.tgz +0 -0
- package/components/{tryghost-adapter-cache-redis-5.53.4.tgz → tryghost-adapter-cache-redis-5.54.0.tgz} +0 -0
- package/components/{tryghost-adapter-manager-5.53.4.tgz → tryghost-adapter-manager-5.54.0.tgz} +0 -0
- package/components/{tryghost-announcement-bar-settings-5.53.4.tgz → tryghost-announcement-bar-settings-5.54.0.tgz} +0 -0
- package/components/{tryghost-api-framework-5.53.4.tgz → tryghost-api-framework-5.54.0.tgz} +0 -0
- package/components/{tryghost-api-version-compatibility-service-5.53.4.tgz → tryghost-api-version-compatibility-service-5.54.0.tgz} +0 -0
- package/components/tryghost-audience-feedback-5.54.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.54.0.tgz +0 -0
- package/components/tryghost-collections-5.54.0.tgz +0 -0
- package/components/tryghost-constants-5.54.0.tgz +0 -0
- package/components/{tryghost-custom-theme-settings-service-5.53.4.tgz → tryghost-custom-theme-settings-service-5.54.0.tgz} +0 -0
- package/components/{tryghost-data-generator-5.53.4.tgz → tryghost-data-generator-5.54.0.tgz} +0 -0
- package/components/tryghost-domain-events-5.54.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.54.0.tgz +0 -0
- package/components/{tryghost-email-analytics-provider-mailgun-5.53.4.tgz → tryghost-email-analytics-provider-mailgun-5.54.0.tgz} +0 -0
- package/components/{tryghost-email-analytics-service-5.53.4.tgz → tryghost-email-analytics-service-5.54.0.tgz} +0 -0
- package/components/tryghost-email-content-generator-5.54.0.tgz +0 -0
- package/components/{tryghost-email-events-5.53.4.tgz → tryghost-email-events-5.54.0.tgz} +0 -0
- package/components/tryghost-email-service-5.54.0.tgz +0 -0
- package/components/{tryghost-email-suppression-list-5.53.4.tgz → tryghost-email-suppression-list-5.54.0.tgz} +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.54.0.tgz +0 -0
- package/components/{tryghost-express-dynamic-redirects-5.53.4.tgz → tryghost-express-dynamic-redirects-5.54.0.tgz} +0 -0
- package/components/tryghost-external-media-inliner-5.54.0.tgz +0 -0
- package/components/{tryghost-extract-api-key-5.53.4.tgz → tryghost-extract-api-key-5.54.0.tgz} +0 -0
- package/components/tryghost-html-to-plaintext-5.54.0.tgz +0 -0
- package/components/tryghost-i18n-5.54.0.tgz +0 -0
- package/components/{tryghost-importer-handler-content-files-5.53.4.tgz → tryghost-importer-handler-content-files-5.54.0.tgz} +0 -0
- package/components/{tryghost-importer-revue-5.53.4.tgz → tryghost-importer-revue-5.54.0.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.54.0.tgz +0 -0
- package/components/{tryghost-job-manager-5.53.4.tgz → tryghost-job-manager-5.54.0.tgz} +0 -0
- package/components/tryghost-link-redirects-5.54.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.54.0.tgz +0 -0
- package/components/{tryghost-link-tracking-5.53.4.tgz → tryghost-link-tracking-5.54.0.tgz} +0 -0
- package/components/{tryghost-magic-link-5.53.4.tgz → tryghost-magic-link-5.54.0.tgz} +0 -0
- package/components/{tryghost-mail-events-5.53.4.tgz → tryghost-mail-events-5.54.0.tgz} +0 -0
- package/components/tryghost-mailgun-client-5.54.0.tgz +0 -0
- package/components/tryghost-member-attribution-5.54.0.tgz +0 -0
- package/components/tryghost-member-events-5.54.0.tgz +0 -0
- package/components/{tryghost-members-api-5.53.4.tgz → tryghost-members-api-5.54.0.tgz} +0 -0
- package/components/{tryghost-members-csv-5.53.4.tgz → tryghost-members-csv-5.54.0.tgz} +0 -0
- package/components/{tryghost-members-events-service-5.53.4.tgz → tryghost-members-events-service-5.54.0.tgz} +0 -0
- package/components/tryghost-members-importer-5.54.0.tgz +0 -0
- package/components/tryghost-members-offers-5.54.0.tgz +0 -0
- package/components/tryghost-members-payments-5.54.0.tgz +0 -0
- package/components/{tryghost-members-ssr-5.53.4.tgz → tryghost-members-ssr-5.54.0.tgz} +0 -0
- package/components/{tryghost-members-stripe-service-5.53.4.tgz → tryghost-members-stripe-service-5.54.0.tgz} +0 -0
- package/components/{tryghost-mentions-email-report-5.53.4.tgz → tryghost-mentions-email-report-5.54.0.tgz} +0 -0
- package/components/{tryghost-milestones-5.53.4.tgz → tryghost-milestones-5.54.0.tgz} +0 -0
- package/components/{tryghost-minifier-5.53.4.tgz → tryghost-minifier-5.54.0.tgz} +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.54.0.tgz +0 -0
- package/components/{tryghost-mw-api-version-mismatch-5.53.4.tgz → tryghost-mw-api-version-mismatch-5.54.0.tgz} +0 -0
- package/components/tryghost-mw-cache-control-5.54.0.tgz +0 -0
- package/components/{tryghost-mw-error-handler-5.53.4.tgz → tryghost-mw-error-handler-5.54.0.tgz} +0 -0
- package/components/tryghost-mw-session-from-token-5.54.0.tgz +0 -0
- package/components/{tryghost-mw-update-user-last-seen-5.53.4.tgz → tryghost-mw-update-user-last-seen-5.54.0.tgz} +0 -0
- package/components/{tryghost-mw-version-match-5.53.4.tgz → tryghost-mw-version-match-5.54.0.tgz} +0 -0
- package/components/tryghost-mw-vhost-5.54.0.tgz +0 -0
- package/components/{tryghost-oembed-service-5.53.4.tgz → tryghost-oembed-service-5.54.0.tgz} +0 -0
- package/components/{tryghost-package-json-5.53.4.tgz → tryghost-package-json-5.54.0.tgz} +0 -0
- package/components/tryghost-post-revisions-5.54.0.tgz +0 -0
- package/components/tryghost-posts-service-5.54.0.tgz +0 -0
- package/components/tryghost-referrers-5.54.0.tgz +0 -0
- package/components/{tryghost-security-5.53.4.tgz → tryghost-security-5.54.0.tgz} +0 -0
- package/components/tryghost-session-service-5.54.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.54.0.tgz +0 -0
- package/components/{tryghost-slack-notifications-5.53.4.tgz → tryghost-slack-notifications-5.54.0.tgz} +0 -0
- package/components/{tryghost-staff-service-5.53.4.tgz → tryghost-staff-service-5.54.0.tgz} +0 -0
- package/components/{tryghost-stats-service-5.53.4.tgz → tryghost-stats-service-5.54.0.tgz} +0 -0
- package/components/{tryghost-tiers-5.53.4.tgz → tryghost-tiers-5.54.0.tgz} +0 -0
- package/components/tryghost-update-check-service-5.54.0.tgz +0 -0
- package/components/{tryghost-verification-trigger-5.53.4.tgz → tryghost-verification-trigger-5.54.0.tgz} +0 -0
- package/components/{tryghost-version-notifications-data-service-5.53.4.tgz → tryghost-version-notifications-data-service-5.54.0.tgz} +0 -0
- package/components/{tryghost-webmentions-5.53.4.tgz → tryghost-webmentions-5.54.0.tgz} +0 -0
- package/content/themes/casper/assets/built/global.css +1 -1
- package/content/themes/casper/assets/built/global.css.map +1 -1
- package/content/themes/casper/assets/built/screen.css +1 -1
- package/content/themes/casper/assets/built/screen.css.map +1 -1
- package/content/themes/casper/assets/css/global.css +1 -13
- package/content/themes/casper/assets/css/screen.css +13 -0
- package/content/themes/casper/default.hbs +4 -0
- package/content/themes/casper/package.json +1 -1
- package/core/boot.js +0 -8
- package/core/built/admin/assets/{chunk.143.f2d9c8138f58822ff602.js → chunk.143.8efdcfa0b261cebe27ff.js} +5 -5
- package/core/built/admin/assets/{chunk.178.61bd07fdecafaa04e917.js → chunk.178.477f1722cea0a8238b37.js} +4 -4
- package/core/built/admin/assets/{ghost-7ed28c8f2ec8aaa157a0d8e693c4173d.css → ghost-792c3ca38b2564ec779a4513eeb4d10c.css} +1 -1
- package/core/built/admin/assets/{ghost-69a3b39781fc4aca282abd2ebf232e60.js → ghost-8b412e593aa2ccde5e17f6a738f66fa4.js} +3715 -3712
- package/core/built/admin/assets/{ghost-dark-d8ff14f0db8a03f04d342792d7126348.css → ghost-dark-0ac006215fbff8210f7bb6d3a8c9a1f9.css} +1 -1
- package/core/built/admin/assets/{vendor-c85ef50819caa584c404a0e3dcaa4e69.js → vendor-4b645d0063c36a91810fae5aefcd4dd1.js} +40 -38
- package/core/built/admin/index.html +5 -5
- package/core/server/api/endpoints/utils/serializers/output/mappers/posts.js +1 -1
- package/core/server/api/endpoints/utils/serializers/output/utils/clean.js +4 -0
- package/core/server/data/importer/importers/data/PostsImporter.js +2 -2
- package/core/server/data/migrations/versions/5.54/2023-07-07-11-57-add-show-title-and-feature-image-column-to-posts.js +7 -0
- package/core/server/data/schema/schema.js +1 -0
- package/core/server/models/post.js +2 -1
- package/core/server/services/collections/intercept-events.js +10 -0
- package/core/server/services/collections/service.js +7 -7
- package/core/shared/labs.js +2 -0
- package/package.json +143 -141
- package/yarn.lock +507 -513
- package/components/tryghost-adapter-cache-memory-ttl-5.53.4.tgz +0 -0
- package/components/tryghost-audience-feedback-5.53.4.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.53.4.tgz +0 -0
- package/components/tryghost-collections-5.53.4.tgz +0 -0
- package/components/tryghost-constants-5.53.4.tgz +0 -0
- package/components/tryghost-domain-events-5.53.4.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.53.4.tgz +0 -0
- package/components/tryghost-email-content-generator-5.53.4.tgz +0 -0
- package/components/tryghost-email-service-5.53.4.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.53.4.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.53.4.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.53.4.tgz +0 -0
- package/components/tryghost-i18n-5.53.4.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.53.4.tgz +0 -0
- package/components/tryghost-link-redirects-5.53.4.tgz +0 -0
- package/components/tryghost-link-replacer-5.53.4.tgz +0 -0
- package/components/tryghost-mailgun-client-5.53.4.tgz +0 -0
- package/components/tryghost-member-attribution-5.53.4.tgz +0 -0
- package/components/tryghost-member-events-5.53.4.tgz +0 -0
- package/components/tryghost-members-importer-5.53.4.tgz +0 -0
- package/components/tryghost-members-offers-5.53.4.tgz +0 -0
- package/components/tryghost-members-payments-5.53.4.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.53.4.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.53.4.tgz +0 -0
- package/components/tryghost-mw-vhost-5.53.4.tgz +0 -0
- package/components/tryghost-post-revisions-5.53.4.tgz +0 -0
- package/components/tryghost-posts-service-5.53.4.tgz +0 -0
- package/components/tryghost-referrers-5.53.4.tgz +0 -0
- package/components/tryghost-session-service-5.53.4.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.53.4.tgz +0 -0
- package/components/tryghost-update-check-service-5.53.4.tgz +0 -0
- package/core/server/services/collections/model-to-domain-events-bridge.js +0 -74
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
const DomainEvents = require('@tryghost/domain-events');
|
|
2
|
-
const {
|
|
3
|
-
CollectionResourceChangeEvent,
|
|
4
|
-
PostDeletedEvent,
|
|
5
|
-
PostAddedEvent,
|
|
6
|
-
PostEditedEvent
|
|
7
|
-
} = require('@tryghost/collections');
|
|
8
|
-
|
|
9
|
-
const domainEventDispatcher = (modelEventName, data) => {
|
|
10
|
-
const change = Object.assign({}, {
|
|
11
|
-
id: data.id,
|
|
12
|
-
resource: modelEventName.split('.')[0]
|
|
13
|
-
}, data._changed);
|
|
14
|
-
|
|
15
|
-
let event;
|
|
16
|
-
if (modelEventName === 'post.deleted') {
|
|
17
|
-
event = PostDeletedEvent.create({id: data.id});
|
|
18
|
-
} if (modelEventName === 'post.added') {
|
|
19
|
-
event = PostAddedEvent.create({
|
|
20
|
-
id: data.id,
|
|
21
|
-
featured: data.featured,
|
|
22
|
-
status: data.attributes.status,
|
|
23
|
-
published_at: data.published_at
|
|
24
|
-
});
|
|
25
|
-
} if (modelEventName === 'post.edited') {
|
|
26
|
-
event = PostEditedEvent.create({
|
|
27
|
-
id: data.id,
|
|
28
|
-
current: {
|
|
29
|
-
id: data.id,
|
|
30
|
-
title: data.attributes.title,
|
|
31
|
-
status: data.attributes.status,
|
|
32
|
-
featured: data.attributes.featured,
|
|
33
|
-
published_at: data.attributes.published_at
|
|
34
|
-
},
|
|
35
|
-
// @NOTE: this will need to represent the previous state of the post
|
|
36
|
-
// will be needed to optimize the query for the collection
|
|
37
|
-
previous: {
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
} else {
|
|
41
|
-
event = CollectionResourceChangeEvent.create(modelEventName, change);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
DomainEvents.dispatch(event);
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const translateModelEventsToDomainEvents = () => {
|
|
48
|
-
const events = require('../../lib/common/events');
|
|
49
|
-
const ghostModelUpdateEvents = [
|
|
50
|
-
'post.added',
|
|
51
|
-
'post.deleted',
|
|
52
|
-
'post.edited',
|
|
53
|
-
|
|
54
|
-
// 'tag.added',
|
|
55
|
-
// 'tag.edited',
|
|
56
|
-
// 'tag.attached',
|
|
57
|
-
// 'tag.detached',
|
|
58
|
-
// 'tag.deleted',
|
|
59
|
-
|
|
60
|
-
// 'user.activated',
|
|
61
|
-
'user.activated.edited'
|
|
62
|
-
// 'user.attached',
|
|
63
|
-
// 'user.detached',
|
|
64
|
-
// 'user.deleted'
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
for (const modelEvent of ghostModelUpdateEvents) {
|
|
68
|
-
if (!events.hasRegisteredListener(modelEvent, 'collectionListener')) {
|
|
69
|
-
events.on(modelEvent, data => domainEventDispatcher(modelEvent, data));
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
module.exports = translateModelEventsToDomainEvents;
|