ghost 4.40.0 → 4.41.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/core/built/assets/{ghost-dark-498ff8339a89bb68c3f78f59bee4146e.css → ghost-dark-6fbe502f2bb2cde92e15b2f1a9da57a0.css} +1 -1
- package/core/built/assets/{ghost.min-77b93478f83b0def6ddc5a4f23ce963e.css → ghost.min-09301e5bd933cf6d24368e98a4d898a9.css} +1 -1
- package/core/built/assets/{ghost.min-88c665c3ba304b4f220d08b8bcf9d246.js → ghost.min-ee1d1d48a30dbd67513f647f360b39e3.js} +53 -52
- package/core/built/assets/img/themes/Headline-c5070cf549e797a6a72b87237caa1617.jpg +0 -0
- package/core/built/assets/{vendor.min-ed945ad80ea22f1d3ffeec6d5ae63aee.js → vendor.min-9094db77ba3190cb10876f8e42e1d90d.js} +112 -109
- package/core/server/api/canary/members.js +2 -6
- package/core/server/services/oembed.js +2 -1
- package/core/server/web/admin/views/default-prod.html +4 -4
- package/core/server/web/admin/views/default.html +4 -4
- package/core/server/web/api/app.js +3 -0
- package/core/shared/config/overrides.json +2 -2
- package/core/shared/labs.js +3 -3
- package/package.json +5 -5
- package/yarn.lock +135 -446
|
@@ -197,9 +197,7 @@ module.exports = {
|
|
|
197
197
|
}
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
|
-
let model = await membersService.api.
|
|
201
|
-
withRelated: ['labels', 'products', 'stripeSubscriptions', 'stripeSubscriptions.customer', 'stripeSubscriptions.stripePrice', 'stripeSubscriptions.stripePrice.stripeProduct']
|
|
202
|
-
});
|
|
200
|
+
let model = await membersService.api.memberBREADService.read({id: frame.options.id});
|
|
203
201
|
if (!model) {
|
|
204
202
|
throw new errors.NotFoundError({
|
|
205
203
|
message: tpl(messages.memberNotFound)
|
|
@@ -241,9 +239,7 @@ module.exports = {
|
|
|
241
239
|
stripe_price_id: frame.data.stripe_price_id
|
|
242
240
|
}
|
|
243
241
|
});
|
|
244
|
-
let model = await membersService.api.
|
|
245
|
-
withRelated: ['labels', 'products', 'stripeSubscriptions', 'stripeSubscriptions.customer', 'stripeSubscriptions.stripePrice', 'stripeSubscriptions.stripePrice.stripeProduct']
|
|
246
|
-
});
|
|
242
|
+
let model = await membersService.api.memberBREADService.read({id: frame.options.id});
|
|
247
243
|
if (!model) {
|
|
248
244
|
throw new errors.NotFoundError({
|
|
249
245
|
message: tpl(messages.memberNotFound)
|
|
@@ -9,7 +9,8 @@ const {CookieJar} = require('tough-cookie');
|
|
|
9
9
|
|
|
10
10
|
const messages = {
|
|
11
11
|
noUrlProvided: 'No url provided.',
|
|
12
|
-
insufficientMetadata: 'URL contains insufficient metadata.'
|
|
12
|
+
insufficientMetadata: 'URL contains insufficient metadata.',
|
|
13
|
+
unknownProvider: 'No provider found for supplied URL.'
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<title>Ghost Admin</title>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.
|
|
11
|
+
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.41%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22moment%22%3A%7B%22includeTimezone%22%3A%22all%22%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
12
12
|
|
|
13
13
|
<meta name="HandheldFriendly" content="True" />
|
|
14
14
|
<meta name="MobileOptimized" content="320" />
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
<link rel="stylesheet" href="assets/vendor.min-2c8ad32b7960bb605ebc20097fee5ebd.css">
|
|
41
|
-
<link rel="stylesheet" href="assets/ghost.min-
|
|
41
|
+
<link rel="stylesheet" href="assets/ghost.min-09301e5bd933cf6d24368e98a4d898a9.css" title="light">
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
<div id="ember-basic-dropdown-wormhole"></div>
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
<script src="assets/vendor.min-
|
|
60
|
-
<script src="assets/ghost.min-
|
|
59
|
+
<script src="assets/vendor.min-9094db77ba3190cb10876f8e42e1d90d.js"></script>
|
|
60
|
+
<script src="assets/ghost.min-ee1d1d48a30dbd67513f647f360b39e3.js"></script>
|
|
61
61
|
|
|
62
62
|
</body>
|
|
63
63
|
</html>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<title>Ghost Admin</title>
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.
|
|
11
|
+
<meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22rootURL%22%3A%22%2F%22%2C%22locationType%22%3A%22trailing-hash%22%2C%22EmberENV%22%3A%7B%22FEATURES%22%3A%7B%7D%2C%22EXTEND_PROTOTYPES%22%3A%7B%22Date%22%3Afalse%2C%22Array%22%3Atrue%2C%22String%22%3Atrue%2C%22Function%22%3Afalse%7D%2C%22_APPLICATION_TEMPLATE_WRAPPER%22%3Afalse%2C%22_JQUERY_INTEGRATION%22%3Atrue%2C%22_TEMPLATE_ONLY_GLIMMER_COMPONENTS%22%3Atrue%7D%2C%22APP%22%3A%7B%22version%22%3A%224.41%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%7D%2C%22moment%22%3A%7B%22includeTimezone%22%3A%22all%22%7D%2C%22%40sentry%2Fember%22%3A%7B%22disablePerformance%22%3Atrue%2C%22sentry%22%3A%7B%7D%7D%2C%22ember-cli-mirage%22%3A%7B%22usingProxy%22%3Afalse%2C%22useDefaultPassthroughs%22%3Atrue%7D%2C%22exportApplicationGlobal%22%3Afalse%2C%22ember-load%22%3A%7B%22loadingIndicatorClass%22%3A%22ember-load-indicator%22%7D%7D" />
|
|
12
12
|
|
|
13
13
|
<meta name="HandheldFriendly" content="True" />
|
|
14
14
|
<meta name="MobileOptimized" content="320" />
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
<link rel="stylesheet" href="assets/vendor.min-2c8ad32b7960bb605ebc20097fee5ebd.css">
|
|
41
|
-
<link rel="stylesheet" href="assets/ghost.min-
|
|
41
|
+
<link rel="stylesheet" href="assets/ghost.min-09301e5bd933cf6d24368e98a4d898a9.css" title="light">
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
<div id="ember-basic-dropdown-wormhole"></div>
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
<script src="assets/vendor.min-
|
|
60
|
-
<script src="assets/ghost.min-
|
|
59
|
+
<script src="assets/vendor.min-9094db77ba3190cb10876f8e42e1d90d.js"></script>
|
|
60
|
+
<script src="assets/ghost.min-ee1d1d48a30dbd67513f647f360b39e3.js"></script>
|
|
61
61
|
|
|
62
62
|
</body>
|
|
63
63
|
</html>
|
|
@@ -22,6 +22,9 @@ module.exports = function setupApiApp() {
|
|
|
22
22
|
apiApp.lazyUse(urlUtils.getVersionPath({version: 'v4', type: 'content'}), require('./canary/content/app'));
|
|
23
23
|
apiApp.lazyUse(urlUtils.getVersionPath({version: 'v4', type: 'admin'}), require('./canary/admin/app'));
|
|
24
24
|
|
|
25
|
+
apiApp.lazyUse(urlUtils.getVersionPath({version: 'v5', type: 'content'}), require('./canary/content/app'));
|
|
26
|
+
apiApp.lazyUse(urlUtils.getVersionPath({version: 'v5', type: 'admin'}), require('./canary/admin/app'));
|
|
27
|
+
|
|
25
28
|
apiApp.lazyUse(urlUtils.getVersionPath({version: 'canary', type: 'content'}), require('./canary/content/app'));
|
|
26
29
|
apiApp.lazyUse(urlUtils.getVersionPath({version: 'canary', type: 'admin'}), require('./canary/admin/app'));
|
|
27
30
|
|
package/core/shared/labs.js
CHANGED
|
@@ -20,7 +20,8 @@ const GA_FEATURES = [
|
|
|
20
20
|
'tierName',
|
|
21
21
|
'selectablePortalLinks',
|
|
22
22
|
'membersTableStatus',
|
|
23
|
-
'improvedOnboarding'
|
|
23
|
+
'improvedOnboarding',
|
|
24
|
+
'membersActivityFeed'
|
|
24
25
|
];
|
|
25
26
|
|
|
26
27
|
// NOTE: this allowlist is meant to be used to filter out any unexpected
|
|
@@ -34,8 +35,7 @@ const ALPHA_FEATURES = [
|
|
|
34
35
|
'membersActivity',
|
|
35
36
|
'urlCache',
|
|
36
37
|
'beforeAfterCard',
|
|
37
|
-
'tweetGridCard'
|
|
38
|
-
'membersActivityFeed'
|
|
38
|
+
'tweetGridCard'
|
|
39
39
|
];
|
|
40
40
|
|
|
41
41
|
module.exports.GA_KEYS = [...GA_FEATURES];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ghost",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.41.0",
|
|
4
4
|
"description": "The professional publishing platform",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"homepage": "https://ghost.org",
|
|
@@ -187,11 +187,11 @@
|
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
189
|
"@lodder/grunt-postcss": "3.1.1",
|
|
190
|
-
"@playwright/test": "1.
|
|
190
|
+
"@playwright/test": "1.20.0",
|
|
191
191
|
"@tryghost/express-test": "0.6.1",
|
|
192
192
|
"c8": "7.11.0",
|
|
193
193
|
"coffeescript": "2.6.1",
|
|
194
|
-
"cssnano": "5.1.
|
|
194
|
+
"cssnano": "5.1.4",
|
|
195
195
|
"eslint": "8.11.0",
|
|
196
196
|
"eslint-plugin-ghost": "2.13.0",
|
|
197
197
|
"grunt": "1.4.1",
|
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
"mocha-slow-test-reporter": "0.1.2",
|
|
211
211
|
"mock-knex": "0.4.10",
|
|
212
212
|
"nock": "13.2.4",
|
|
213
|
-
"papaparse": "5.3.
|
|
214
|
-
"postcss": "8.4.
|
|
213
|
+
"papaparse": "5.3.2",
|
|
214
|
+
"postcss": "8.4.12",
|
|
215
215
|
"rewire": "6.0.0",
|
|
216
216
|
"should": "13.2.3",
|
|
217
217
|
"sinon": "13.0.1",
|