ghost 5.130.2 → 5.130.3

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 (21) hide show
  1. package/components/tryghost-i18n-5.130.3.tgz +0 -0
  2. package/core/built/admin/assets/admin-x-settings/{CodeEditorView-CAtv7MlN.mjs → CodeEditorView-DaQbEVUf.mjs} +2 -2
  3. package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +1 -1
  4. package/core/built/admin/assets/admin-x-settings/{index-BVxh86CD.mjs → index-Cmiy56KV.mjs} +4 -4
  5. package/core/built/admin/assets/admin-x-settings/{index-DUhmXSBR.mjs → index-zBk55R7z.mjs} +2 -2
  6. package/core/built/admin/assets/admin-x-settings/{modals-B5dtfzsB.mjs → modals-tqVrPtPy.mjs} +8130 -8122
  7. package/core/built/admin/assets/{chunk.524.1f2faf572078e5b86b09.js → chunk.524.d4dce2126c430c48812b.js} +7 -7
  8. package/core/built/admin/assets/{chunk.582.675905fe8f9be138fb19.js → chunk.582.7031dee8f98fced7de40.js} +10 -10
  9. package/core/built/admin/assets/{ghost-280b83af263b51bc4d6ce5bd8f536096.js → ghost-bf886dc6db7f0d5d41ebe6a468fadc90.js} +3 -3
  10. package/core/built/admin/assets/ghost-dark-a6901b9bab812b089d0c87e14735d69e.css +1 -0
  11. package/core/built/admin/assets/ghost-e474a058646b6df157de25ea1cd978d5.css +1 -0
  12. package/core/built/admin/index.html +4 -4
  13. package/core/server/services/explore-ping/ExplorePingService.js +3 -1
  14. package/core/server/services/settings/SettingsBREADService.js +5 -1
  15. package/core/server/services/settings/settings-service.js +2 -0
  16. package/package.json +4 -4
  17. package/tsconfig.tsbuildinfo +1 -1
  18. package/yarn.lock +4 -4
  19. package/components/tryghost-i18n-5.130.2.tgz +0 -0
  20. package/core/built/admin/assets/ghost-3d0ad0c58f433d5735532bf25d4fd423.css +0 -1
  21. package/core/built/admin/assets/ghost-dark-f19869a3fd0ef48c525149b9c87e4241.css +0 -1
@@ -6,7 +6,7 @@
6
6
  <title>Ghost</title>
7
7
 
8
8
 
9
- <meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22cdnUrl%22%3A%22%22%2C%22editorUrl%22%3A%22%22%2C%22rootURL%22%3A%22%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%225.130%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%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%2C%22editorFilename%22%3A%22koenig-lexical.umd.js%22%2C%22editorHash%22%3A%2237bd1e3e4d%22%2C%22adminXSettingsFilename%22%3A%22admin-x-settings.js%22%2C%22adminXSettingsHash%22%3A%223291c981c1%22%2C%22adminXActivitypubFilename%22%3A%22admin-x-activitypub.js%22%2C%22adminXActivitypubHash%22%3A%22b38d27bb5e%22%2C%22postsFilename%22%3A%22posts.js%22%2C%22postsHash%22%3A%229a7e1b885b%22%2C%22statsFilename%22%3A%22stats.js%22%2C%22statsHash%22%3A%225445ed6ca9%22%2C%22adminXActivitypubCustomUrl%22%3A%22https%3A%2F%2Fcdn.jsdelivr.net%2Fghost%2Fadmin-x-activitypub%400%2Fdist%2Fadmin-x-activitypub.js%22%7D" />
9
+ <meta name="ghost-admin/config/environment" content="%7B%22modulePrefix%22%3A%22ghost-admin%22%2C%22environment%22%3A%22production%22%2C%22cdnUrl%22%3A%22%22%2C%22editorUrl%22%3A%22%22%2C%22rootURL%22%3A%22%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%225.130%22%2C%22name%22%3A%22ghost-admin%22%7D%2C%22ember-simple-auth%22%3A%7B%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%2C%22editorFilename%22%3A%22koenig-lexical.umd.js%22%2C%22editorHash%22%3A%2237bd1e3e4d%22%2C%22adminXSettingsFilename%22%3A%22admin-x-settings.js%22%2C%22adminXSettingsHash%22%3A%22575f27df11%22%2C%22adminXActivitypubFilename%22%3A%22admin-x-activitypub.js%22%2C%22adminXActivitypubHash%22%3A%22b38d27bb5e%22%2C%22postsFilename%22%3A%22posts.js%22%2C%22postsHash%22%3A%229a7e1b885b%22%2C%22statsFilename%22%3A%22stats.js%22%2C%22statsHash%22%3A%225445ed6ca9%22%2C%22adminXActivitypubCustomUrl%22%3A%22https%3A%2F%2Fcdn.jsdelivr.net%2Fghost%2Fadmin-x-activitypub%400%2Fdist%2Fadmin-x-activitypub.js%22%7D" />
10
10
 
11
11
  <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1, minimal-ui, viewport-fit=cover" />
12
12
  <meta name="pinterest" content="nopin" />
@@ -28,7 +28,7 @@
28
28
  </style>
29
29
 
30
30
  <link integrity="" rel="stylesheet" href="assets/vendor-0ede59da8efb5e28fa929557f7ff7154.css">
31
- <link integrity="" rel="stylesheet" href="assets/ghost-3d0ad0c58f433d5735532bf25d4fd423.css" title="light">
31
+ <link integrity="" rel="stylesheet" href="assets/ghost-e474a058646b6df157de25ea1cd978d5.css" title="light">
32
32
 
33
33
 
34
34
  </head>
@@ -49,7 +49,7 @@
49
49
 
50
50
  <script src="assets/vendor-aed0068cf9b67d042dd23a6343545b7b.js"></script>
51
51
  <script src="assets/chunk.728.985c45ad584b4b91ca60.js"></script>
52
- <script src="assets/chunk.524.1f2faf572078e5b86b09.js"></script>
53
- <script src="assets/ghost-280b83af263b51bc4d6ce5bd8f536096.js"></script>
52
+ <script src="assets/chunk.524.d4dce2126c430c48812b.js"></script>
53
+ <script src="assets/ghost-bf886dc6db7f0d5d41ebe6a468fadc90.js"></script>
54
54
  </body>
55
55
  </html>
@@ -33,7 +33,9 @@ module.exports = class ExplorePingService {
33
33
  ghost: this.ghostVersion.full,
34
34
  site_uuid: this.settingsCache.get('site_uuid'),
35
35
  url: this.config.get('url'),
36
- theme: this.settingsCache.get('active_theme')
36
+ theme: this.settingsCache.get('active_theme'),
37
+ facebook: this.settingsCache.get('facebook'),
38
+ twitter: this.settingsCache.get('twitter')
37
39
  };
38
40
 
39
41
  try {
@@ -24,12 +24,14 @@ class SettingsBREADService {
24
24
  * @param {Object} options.singleUseTokenProvider
25
25
  * @param {Object} options.urlUtils
26
26
  * @param {Object} options.labsService - labs service instance
27
+ * @param {Object} options.limitsService - limits service instance
27
28
  * @param {{service: Object}} options.emailAddressService
28
29
  */
29
- constructor({SettingsModel, settingsCache, labsService, mail, singleUseTokenProvider, urlUtils, emailAddressService}) {
30
+ constructor({SettingsModel, settingsCache, labsService, limitsService, mail, singleUseTokenProvider, urlUtils, emailAddressService}) {
30
31
  this.SettingsModel = SettingsModel;
31
32
  this.settingsCache = settingsCache;
32
33
  this.labs = labsService;
34
+ this.limitsService = limitsService;
33
35
  this.emailAddressService = emailAddressService;
34
36
 
35
37
  /* email verification setup */
@@ -194,6 +196,8 @@ class SettingsBREADService {
194
196
  }
195
197
 
196
198
  if (stripeConnectData) {
199
+ await this.limitsService.errorIfWouldGoOverLimit('limitStripeConnect');
200
+
197
201
  filteredSettings.push({
198
202
  key: 'stripe_connect_publishable_key',
199
203
  value: stripeConnectData.public_key
@@ -5,6 +5,7 @@
5
5
  const events = require('../../lib/common/events');
6
6
  const models = require('../../models');
7
7
  const labs = require('../../../shared/labs');
8
+ const limits = require('../limits');
8
9
  const config = require('../../../shared/config');
9
10
  const adapterManager = require('../adapter-manager');
10
11
  const SettingsCache = require('../../../shared/settings-cache');
@@ -30,6 +31,7 @@ const getSettingsBREADServiceInstance = () => {
30
31
  SettingsModel: models.Settings,
31
32
  settingsCache: SettingsCache,
32
33
  labsService: labs,
34
+ limitsService: limits,
33
35
  mail,
34
36
  singleUseTokenProvider: new SingleUseTokenProvider({
35
37
  SingleUseTokenModel: models.SingleUseToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghost",
3
- "version": "5.130.2",
3
+ "version": "5.130.3",
4
4
  "description": "The professional publishing platform",
5
5
  "author": "Ghost Foundation",
6
6
  "homepage": "https://ghost.org",
@@ -86,7 +86,7 @@
86
86
  "@tryghost/helpers": "1.1.97",
87
87
  "@tryghost/html-to-plaintext": "1.0.4",
88
88
  "@tryghost/http-cache-utils": "0.1.20",
89
- "@tryghost/i18n": "file:components/tryghost-i18n-5.130.2.tgz",
89
+ "@tryghost/i18n": "file:components/tryghost-i18n-5.130.3.tgz",
90
90
  "@tryghost/image-transform": "1.4.6",
91
91
  "@tryghost/job-manager": "1.0.3",
92
92
  "@tryghost/kg-card-factory": "5.1.2",
@@ -233,7 +233,7 @@
233
233
  "@types/bookshelf": "1.2.9",
234
234
  "@types/common-tags": "1.8.4",
235
235
  "@types/jsonwebtoken": "9.0.10",
236
- "@types/node": "22.16.4",
236
+ "@types/node": "22.16.5",
237
237
  "@types/node-jose": "1.1.13",
238
238
  "@types/nodemailer": "6.4.17",
239
239
  "@types/sinon": "17.0.4",
@@ -274,7 +274,7 @@
274
274
  "jackspeak": "2.3.6",
275
275
  "moment": "2.24.0",
276
276
  "moment-timezone": "0.5.45",
277
- "@tryghost/i18n": "file:components/tryghost-i18n-5.130.2.tgz"
277
+ "@tryghost/i18n": "file:components/tryghost-i18n-5.130.3.tgz"
278
278
  },
279
279
  "nx": {
280
280
  "targets": {