ghost 5.69.3 → 5.70.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/components/tryghost-adapter-cache-memory-ttl-5.70.0.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.70.0.tgz +0 -0
- package/components/tryghost-adapter-manager-5.70.0.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.70.0.tgz +0 -0
- package/components/{tryghost-api-framework-5.69.3.tgz → tryghost-api-framework-5.70.0.tgz} +0 -0
- package/components/tryghost-api-version-compatibility-service-5.70.0.tgz +0 -0
- package/components/tryghost-audience-feedback-5.70.0.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.70.0.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.70.0.tgz +0 -0
- package/components/tryghost-collections-5.70.0.tgz +0 -0
- package/components/tryghost-constants-5.70.0.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.70.0.tgz +0 -0
- package/components/tryghost-data-generator-5.70.0.tgz +0 -0
- package/components/tryghost-domain-events-5.70.0.tgz +0 -0
- package/components/tryghost-donations-5.70.0.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.70.0.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.70.0.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.70.0.tgz +0 -0
- package/components/tryghost-email-content-generator-5.70.0.tgz +0 -0
- package/components/tryghost-email-events-5.70.0.tgz +0 -0
- package/components/{tryghost-email-service-5.69.3.tgz → tryghost-email-service-5.70.0.tgz} +0 -0
- package/components/tryghost-email-suppression-list-5.70.0.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.70.0.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.70.0.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.70.0.tgz +0 -0
- package/components/tryghost-extract-api-key-5.70.0.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.70.0.tgz +0 -0
- package/components/tryghost-i18n-5.70.0.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.70.0.tgz +0 -0
- package/components/{tryghost-importer-revue-5.69.3.tgz → tryghost-importer-revue-5.70.0.tgz} +0 -0
- package/components/tryghost-in-memory-repository-5.70.0.tgz +0 -0
- package/components/tryghost-job-manager-5.70.0.tgz +0 -0
- package/components/tryghost-link-redirects-5.70.0.tgz +0 -0
- package/components/tryghost-link-replacer-5.70.0.tgz +0 -0
- package/components/tryghost-link-tracking-5.70.0.tgz +0 -0
- package/components/tryghost-magic-link-5.70.0.tgz +0 -0
- package/components/tryghost-mail-events-5.70.0.tgz +0 -0
- package/components/tryghost-mailgun-client-5.70.0.tgz +0 -0
- package/components/tryghost-member-attribution-5.70.0.tgz +0 -0
- package/components/tryghost-member-events-5.70.0.tgz +0 -0
- package/components/tryghost-members-api-5.70.0.tgz +0 -0
- package/components/tryghost-members-csv-5.70.0.tgz +0 -0
- package/components/tryghost-members-events-service-5.70.0.tgz +0 -0
- package/components/{tryghost-members-importer-5.69.3.tgz → tryghost-members-importer-5.70.0.tgz} +0 -0
- package/components/tryghost-members-offers-5.70.0.tgz +0 -0
- package/components/tryghost-members-payments-5.70.0.tgz +0 -0
- package/components/tryghost-members-ssr-5.70.0.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.70.0.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.70.0.tgz +0 -0
- package/components/tryghost-milestones-5.70.0.tgz +0 -0
- package/components/tryghost-minifier-5.70.0.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.70.0.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.70.0.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.70.0.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.70.0.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.70.0.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.70.0.tgz +0 -0
- package/components/tryghost-mw-version-match-5.70.0.tgz +0 -0
- package/components/tryghost-mw-vhost-5.70.0.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.70.0.tgz +0 -0
- package/components/tryghost-oembed-service-5.70.0.tgz +0 -0
- package/components/tryghost-package-json-5.70.0.tgz +0 -0
- package/components/tryghost-post-events-5.70.0.tgz +0 -0
- package/components/tryghost-post-revisions-5.70.0.tgz +0 -0
- package/components/tryghost-posts-service-5.70.0.tgz +0 -0
- package/components/tryghost-recommendations-5.70.0.tgz +0 -0
- package/components/tryghost-referrers-5.70.0.tgz +0 -0
- package/components/tryghost-security-5.70.0.tgz +0 -0
- package/components/tryghost-session-service-5.70.0.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.70.0.tgz +0 -0
- package/components/tryghost-slack-notifications-5.70.0.tgz +0 -0
- package/components/tryghost-staff-service-5.70.0.tgz +0 -0
- package/components/tryghost-stats-service-5.70.0.tgz +0 -0
- package/components/{tryghost-tiers-5.69.3.tgz → tryghost-tiers-5.70.0.tgz} +0 -0
- package/components/tryghost-update-check-service-5.70.0.tgz +0 -0
- package/components/tryghost-verification-trigger-5.70.0.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.70.0.tgz +0 -0
- package/components/tryghost-webmentions-5.70.0.tgz +0 -0
- package/content/themes/source/assets/built/source.js +1 -1
- package/content/themes/source/assets/built/source.js.map +1 -1
- package/content/themes/source/assets/js/casper.js +1 -1
- package/content/themes/source/package.json +1 -1
- package/core/built/admin/assets/admin-x-settings/{CodeEditorView-e32bebf3.mjs → CodeEditorView-0b0348c8.mjs} +291 -285
- package/core/built/admin/assets/admin-x-settings/admin-x-settings.js +2 -2
- package/core/built/admin/assets/admin-x-settings/{index-77509591.mjs → index-c0ec330d.mjs} +4200 -4174
- package/core/built/admin/assets/admin-x-settings/{limit-service-95f04656.mjs → limit-service-57764392.mjs} +5021 -4862
- package/core/built/admin/assets/admin-x-settings/{modals-ec963422.mjs → modals-073c681a.mjs} +15894 -15866
- package/core/built/admin/assets/{chunk.143.360ea59b1e3d7bf99d60.js → chunk.143.9a1f52ae55bbff8440e7.js} +5 -5
- package/core/built/admin/assets/{chunk.178.4c4e285ec8c8902f9167.js → chunk.178.f4436bcb49bd5416c591.js} +4 -4
- package/core/built/admin/assets/{chunk.649.1ce887e24e7688045296.js → chunk.334.3498cc12ebd02c179e3a.js} +939 -873
- package/core/built/admin/assets/ghost-33715d7968b8a38396450f28623b7a94.css +1 -0
- package/core/built/admin/assets/{ghost-831787c0c608f25507fb45807b60374c.js → ghost-71766888f233d8996c2171e03257c940.js} +5 -5
- package/core/built/admin/assets/ghost-dark-114b1812a92f63449e10acf799cd2664.css +1 -0
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.js +21192 -20951
- package/core/built/admin/assets/koenig-lexical/koenig-lexical.umd.js +155 -151
- package/core/built/admin/index.html +5 -5
- package/core/frontend/apps/private-blogging/lib/middleware.js +2 -1
- package/core/frontend/src/admin-auth/index.html +1 -0
- package/core/server/models/post.js +6 -3
- package/core/shared/settings-cache/CacheManager.js +12 -7
- package/package.json +154 -154
- package/yarn.lock +351 -370
- package/components/tryghost-adapter-cache-memory-ttl-5.69.3.tgz +0 -0
- package/components/tryghost-adapter-cache-redis-5.69.3.tgz +0 -0
- package/components/tryghost-adapter-manager-5.69.3.tgz +0 -0
- package/components/tryghost-announcement-bar-settings-5.69.3.tgz +0 -0
- package/components/tryghost-api-version-compatibility-service-5.69.3.tgz +0 -0
- package/components/tryghost-audience-feedback-5.69.3.tgz +0 -0
- package/components/tryghost-bookshelf-repository-5.69.3.tgz +0 -0
- package/components/tryghost-bootstrap-socket-5.69.3.tgz +0 -0
- package/components/tryghost-collections-5.69.3.tgz +0 -0
- package/components/tryghost-constants-5.69.3.tgz +0 -0
- package/components/tryghost-custom-theme-settings-service-5.69.3.tgz +0 -0
- package/components/tryghost-data-generator-5.69.3.tgz +0 -0
- package/components/tryghost-domain-events-5.69.3.tgz +0 -0
- package/components/tryghost-donations-5.69.3.tgz +0 -0
- package/components/tryghost-dynamic-routing-events-5.69.3.tgz +0 -0
- package/components/tryghost-email-analytics-provider-mailgun-5.69.3.tgz +0 -0
- package/components/tryghost-email-analytics-service-5.69.3.tgz +0 -0
- package/components/tryghost-email-content-generator-5.69.3.tgz +0 -0
- package/components/tryghost-email-events-5.69.3.tgz +0 -0
- package/components/tryghost-email-suppression-list-5.69.3.tgz +0 -0
- package/components/tryghost-event-aware-cache-wrapper-5.69.3.tgz +0 -0
- package/components/tryghost-express-dynamic-redirects-5.69.3.tgz +0 -0
- package/components/tryghost-external-media-inliner-5.69.3.tgz +0 -0
- package/components/tryghost-extract-api-key-5.69.3.tgz +0 -0
- package/components/tryghost-html-to-plaintext-5.69.3.tgz +0 -0
- package/components/tryghost-i18n-5.69.3.tgz +0 -0
- package/components/tryghost-importer-handler-content-files-5.69.3.tgz +0 -0
- package/components/tryghost-in-memory-repository-5.69.3.tgz +0 -0
- package/components/tryghost-job-manager-5.69.3.tgz +0 -0
- package/components/tryghost-link-redirects-5.69.3.tgz +0 -0
- package/components/tryghost-link-replacer-5.69.3.tgz +0 -0
- package/components/tryghost-link-tracking-5.69.3.tgz +0 -0
- package/components/tryghost-magic-link-5.69.3.tgz +0 -0
- package/components/tryghost-mail-events-5.69.3.tgz +0 -0
- package/components/tryghost-mailgun-client-5.69.3.tgz +0 -0
- package/components/tryghost-member-attribution-5.69.3.tgz +0 -0
- package/components/tryghost-member-events-5.69.3.tgz +0 -0
- package/components/tryghost-members-api-5.69.3.tgz +0 -0
- package/components/tryghost-members-csv-5.69.3.tgz +0 -0
- package/components/tryghost-members-events-service-5.69.3.tgz +0 -0
- package/components/tryghost-members-offers-5.69.3.tgz +0 -0
- package/components/tryghost-members-payments-5.69.3.tgz +0 -0
- package/components/tryghost-members-ssr-5.69.3.tgz +0 -0
- package/components/tryghost-members-stripe-service-5.69.3.tgz +0 -0
- package/components/tryghost-mentions-email-report-5.69.3.tgz +0 -0
- package/components/tryghost-milestones-5.69.3.tgz +0 -0
- package/components/tryghost-minifier-5.69.3.tgz +0 -0
- package/components/tryghost-model-to-domain-event-interceptor-5.69.3.tgz +0 -0
- package/components/tryghost-mw-api-version-mismatch-5.69.3.tgz +0 -0
- package/components/tryghost-mw-cache-control-5.69.3.tgz +0 -0
- package/components/tryghost-mw-error-handler-5.69.3.tgz +0 -0
- package/components/tryghost-mw-session-from-token-5.69.3.tgz +0 -0
- package/components/tryghost-mw-update-user-last-seen-5.69.3.tgz +0 -0
- package/components/tryghost-mw-version-match-5.69.3.tgz +0 -0
- package/components/tryghost-mw-vhost-5.69.3.tgz +0 -0
- package/components/tryghost-nql-filter-expansions-5.69.3.tgz +0 -0
- package/components/tryghost-oembed-service-5.69.3.tgz +0 -0
- package/components/tryghost-package-json-5.69.3.tgz +0 -0
- package/components/tryghost-post-events-5.69.3.tgz +0 -0
- package/components/tryghost-post-revisions-5.69.3.tgz +0 -0
- package/components/tryghost-posts-service-5.69.3.tgz +0 -0
- package/components/tryghost-recommendations-5.69.3.tgz +0 -0
- package/components/tryghost-referrers-5.69.3.tgz +0 -0
- package/components/tryghost-security-5.69.3.tgz +0 -0
- package/components/tryghost-session-service-5.69.3.tgz +0 -0
- package/components/tryghost-settings-path-manager-5.69.3.tgz +0 -0
- package/components/tryghost-slack-notifications-5.69.3.tgz +0 -0
- package/components/tryghost-staff-service-5.69.3.tgz +0 -0
- package/components/tryghost-stats-service-5.69.3.tgz +0 -0
- package/components/tryghost-update-check-service-5.69.3.tgz +0 -0
- package/components/tryghost-verification-trigger-5.69.3.tgz +0 -0
- package/components/tryghost-version-notifications-data-service-5.69.3.tgz +0 -0
- package/components/tryghost-webmentions-5.69.3.tgz +0 -0
- package/core/built/admin/assets/ghost-dark-074a63e61346f3533e60ceff7253f07d.css +0 -1
- package/core/built/admin/assets/ghost-de20b1dc1f76d9dd196738a479610681.css +0 -1
- /package/core/built/admin/assets/{chunk.649.1ce887e24e7688045296.js.LICENSE.txt → chunk.334.3498cc12ebd02c179e3a.js.LICENSE.txt} +0 -0
|
@@ -5616,7 +5616,7 @@ try{return JSON.parse(e)||{}}catch(t){return{}}}get accessibility(){let e=this.g
|
|
|
5616
5616
|
try{return JSON.parse(e)||{}}catch(t){return{}}}fetch(){return this.settings.fetch().then((()=>(this.set("_user",this.session.user),this._setAdminTheme().then((()=>!0)))))}update(e,t,i={}){let n=i.user?"accessibility":"labs",r=this.get(i.user?"_user":"settings"),a=this.get(n)
|
|
5617
5617
|
return Ember.set(a,e,t),i.requires&&!0===t&&i.requires.forEach((e=>{Ember.set(a,e,!0)})),r.set(n,JSON.stringify(a)),r.save().then((()=>(this.notifyPropertyChange(n),this.get(`${n}.${e}`)))).catch((t=>{if(r.rollbackAttributes(),this.notifyPropertyChange(n),!t)throw new Ember.Error(`Validation of the feature service ${i.user?"user":"settings"} model failed when updating ${n}.`)
|
|
5618
5618
|
return this.notifications.showAPIError(t),this.get(`${n}.${e}`)}))}_setAdminTheme(e){let i=e
|
|
5619
|
-
return void 0===i&&(i=e||this.nightShift),this.lazyLoader.loadStyle("dark","assets/ghost-dark-
|
|
5619
|
+
return void 0===i&&(i=e||this.nightShift),this.lazyLoader.loadStyle("dark","assets/ghost-dark-114b1812a92f63449e10acf799cd2664.css",!0).then((()=>{(0,t.default)("link[title=dark]").prop("disabled",!i)})).catch((()=>{(0,t.default)("link[title=dark]").prop("disabled",!0)}))}},M=oe(C.prototype,"lazyLoader",[n],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D=oe(C.prototype,"notifications",[r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=oe(C.prototype,"session",[a],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),I=oe(C.prototype,"settings",[s],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=oe(C.prototype,"store",[o],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=oe(C.prototype,"config",[i.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),R=oe(C.prototype,"emailAnalytics",[l],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=oe(C.prototype,"nightShift",[u],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=oe(C.prototype,"referralInviteDismissed",[c],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=oe(C.prototype,"urlCache",[d],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=oe(C.prototype,"lexicalMultiplayer",[p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),H=oe(C.prototype,"audienceFeedback",[m],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),q=oe(C.prototype,"webmentions",[h],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=oe(C.prototype,"websockets",[b],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Y=oe(C.prototype,"stripeAutomaticTax",[g],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),W=oe(C.prototype,"emailCustomization",[f],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),G=oe(C.prototype,"i18n",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=oe(C.prototype,"announcementBar",[y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=oe(C.prototype,"signupCard",[w],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),X=oe(C.prototype,"signupForm",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=oe(C.prototype,"collections",[E],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=oe(C.prototype,"mailEvents",[P],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ee=oe(C.prototype,"collectionsCard",[O],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),te=oe(C.prototype,"importMemberTier",[j],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ie=oe(C.prototype,"tipsAndDonations",[_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ne=oe(C.prototype,"recommendations",[T],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),re=oe(C.prototype,"lexicalIndicators",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oe(C.prototype,"labs",[x],Object.getOwnPropertyDescriptor(C.prototype,"labs"),C.prototype),oe(C.prototype,"accessibility",[S],Object.getOwnPropertyDescriptor(C.prototype,"accessibility"),C.prototype),C)
|
|
5620
5620
|
e.default=ue})),define("ghost-admin/services/frontend",["exports","fetch","validator","ghost-admin/decorators/inject"],(function(e,t,i,n){var r,a,s,o,l,u
|
|
5621
5621
|
function c(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function d(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
|
|
5622
5622
|
var i=e[Symbol.toPrimitive]
|
|
@@ -5812,7 +5812,7 @@ return t.navigation=this.settings,e.set("accessibility",JSON.stringify(t)),e.sav
|
|
|
5812
5812
|
e.default=p})),define("ghost-admin/services/notifications",["exports","@sentry/ember","tracked-built-ins","ghost-admin/decorators/inject","ghost-admin/services/ajax"],(function(e,t,i,n,r){var a,s,o,l,u,c,d,p
|
|
5813
5813
|
function m(e,t,i,n){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(n):void 0})}function h(e,t,i,n,r){var a={}
|
|
5814
5814
|
return Object.keys(n).forEach((function(e){a[e]=n[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce((function(i,n){return n(e,t,i)||i}),a),r&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(r):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GENERIC_ERROR_MESSAGE=void 0
|
|
5815
|
-
const b=["AggregateError","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],g="An unexpected error occurred, please try again."
|
|
5815
|
+
const b=["AggregateError","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","ServerError"],g="An unexpected error occurred, please try again."
|
|
5816
5816
|
e.GENERIC_ERROR_MESSAGE=g
|
|
5817
5817
|
let f=(a=Ember.inject.service,s=Ember._tracked,o=Ember._tracked,l=class extends Ember.Service{constructor(...e){super(...e),m(this,"upgradeStatus",u,this),m(this,"config",c,this),m(this,"delayedNotifications",d,this),m(this,"content",p,this)}get alerts(){return this.content.filter((e=>"alert"===e.status))}get notifications(){return this.content.filter((e=>"notification"===e.status))}handleNotification(e,t=!1){const n=(e.message.string||e.message).matchAll(/[a-z]+/gim)
|
|
5818
5818
|
for(const i of n)if(b.includes(i[0])){e.message=g
|
|
@@ -5821,7 +5821,7 @@ let r=e.message.string||e.message
|
|
|
5821
5821
|
this.content=new i.TrackedArray(this.content.reject((e=>(e.message.string||e.message)===r))),t?this.delayedNotifications.push(e):this.content.push(e)}showAlert(e,i={}){if(!((i=i||{}).isApiError||i.type&&"error"!==i.type)&&this.config.sentry_dsn){const n=e.string||e,r={ghost:{displayed_message:n,ghost_error_code:i.ghostErrorCode,full_error:e}}
|
|
5822
5822
|
t.captureMessage(n,{contexts:r,tags:{shown_to_user:!0,source:"showAlert"}})}this.handleNotification({message:e,status:"alert",description:i.description,icon:i.icon,type:i.type,key:i.key,actions:i.actions},i.delayed)}showNotification(e,t){t=t||{},this.handleNotification({message:e,status:"notification",description:t.description,icon:t.icon,type:t.type,key:t.key,actions:t.actions},t.delayed)}showAPIError(e,t){return(0,r.isVersionMismatchError)(e)?this.upgradeStatus.requireUpgrade():(0,r.isMaintenanceError)(e)?this.upgradeStatus.maintenanceAlert():Ember.isArray(e?.payload?.errors)?e.payload.errors.forEach((e=>{this._showAPIError(e,t)})):void this._showAPIError(e,t)}_showAPIError(e,i){(i=i||{}).type=i.type||"error",i.key||Ember.isBlank(e?.title)||(i.key=Ember.String.dasherize(e?.title)),i.key=["api-error",i.key].compact().join(".")
|
|
5823
5823
|
let n=i.defaultErrorText||g
|
|
5824
|
-
if(e?.name&&b.includes(e.name)?n=g:e instanceof String?n=e:Ember.isBlank(e?.message)||(n=e.message),Ember.isBlank(e?.context)||e?.context===n||(n=`${n} ${e.context}`),this.config.sentry_dsn){const i=e instanceof Error?e:n
|
|
5824
|
+
if(e?.name&&b.includes(e.name)||e?.constructor&&b.includes(e.constructor.name)?n=g:e instanceof String?n=e:Ember.isBlank(e?.message)||(n=e.message),Ember.isBlank(e?.context)||e?.context===n||(n=`${n} ${e.context}`),this.config.sentry_dsn){const i=e instanceof Error?e:n
|
|
5825
5825
|
t.captureException(i,{contexts:{ghost:{ghost_error_code:e.ghostErrorCode,displayed_message:n,full_error:e}},tags:{shown_to_user:!0,source:"showAPIError"}})}i.isApiError=!0,this.showAlert(n,i)}displayDelayed(){this.delayedNotifications.forEach((e=>{this.content.push(e)})),this.delayedNotifications=new i.TrackedArray([])}closeNotification(e){let t=this.content
|
|
5826
5826
|
"notification"===e.constructor.modelName?(e.deleteRecord(),e.save().finally((()=>{t.removeObject(e)}))):t.removeObject(e)}closeNotifications(e){this._removeItems("notification",e)}closeAlerts(e){this._removeItems("alert",e)}clearAll(){this.content=new i.TrackedArray([])}_removeItems(e,t){if(t){let n=this._getKeyBase(t).replace(".","\\."),r=new RegExp(`^${n}`)
|
|
5827
5827
|
this.content=new i.TrackedArray(this.content.reject((t=>{let i=t.key
|
|
@@ -6351,6 +6351,6 @@ e.default=n})),define("ghost-admin/views/application",["exports"],(function(e){O
|
|
|
6351
6351
|
var t=Ember.Component.extend({})
|
|
6352
6352
|
e.default=t}))
|
|
6353
6353
|
define("ghost-admin/config/environment",[],(function(){try{var e="ghost-admin/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),i={default:JSON.parse(decodeURIComponent(t))}
|
|
6354
|
-
return Object.defineProperty(i,"__esModule",{value:!0}),i}catch(n){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("ghost-admin/app").default.create({version:"5.
|
|
6354
|
+
return Object.defineProperty(i,"__esModule",{value:!0}),i}catch(n){throw new Error('Could not read config from meta tag with name "'+e+'".')}})),runningTests||require("ghost-admin/app").default.create({version:"5.70",name:"ghost-admin"})
|
|
6355
6355
|
|
|
6356
|
-
//# sourceMappingURL=ghost-
|
|
6356
|
+
//# sourceMappingURL=ghost-71766888f233d8996c2171e03257c940.map
|