Commit Graph

2570 Commits

Author SHA1 Message Date
renovate[bot]
457623dc8c
Update dependency @tryghost/members-api to v5.0.4 (#14231)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-02 11:33:30 +02:00
Renovate Bot
11ce137571 Update dependency cssnano to v5.1.0 2022-03-02 08:06:14 +01:00
Renovate Bot
a17ef130f9 Update dependency @tryghost/validator to v0.1.14 2022-03-01 08:32:27 +01:00
Renovate Bot
54f8f46194 Update dependency @tryghost/root-utils to v0.3.11 2022-03-01 08:32:13 +01:00
Renovate Bot
8e48991e7d Update dependency @playwright/test to v1.19.2 2022-03-01 08:31:33 +01:00
Renovate Bot
b803aa1d8c Update dependency postcss to v8.4.7 2022-03-01 08:31:21 +01:00
Renovate Bot
121e76b0d5
Update dependency @sentry/node to v6.18.1 2022-02-28 17:54:56 +00:00
Renovate Bot
f9fccc43a2 Update dependency eslint to v8.10.0 2022-02-28 12:28:44 +00:00
Renovate Bot
d5400a5538
Update dependency @sentry/node to v6.18.0 2022-02-24 17:35:57 +00:00
Renovate Bot
6d648487fc
Update dependency luxon to v2.3.1 2022-02-23 20:51:21 +00:00
Fabien 'egg' O'Carroll
694721cbea
Added /tiers API to Admin API (#14200)
refs https://github.com/TryGhost/Team/issues/1313

Rather than removing the /products API we're adding a /tiers API as
a first step towards renaming "products" to "tiers". The initial idea was
to alias the URL's but out API framework doesn't easily allow for this so
we've duplicated it instead.
2022-02-23 17:00:18 +02:00
Renovate Bot
3c3ead8648
Update dependency fs-extra to v10.0.1 2022-02-22 19:57:01 +00:00
Renovate Bot
af1d1abd1d Update dependency @tryghost/logging to v2.0.4 2022-02-22 12:24:23 +01:00
Renovate Bot
688c353030 Update dependency @tryghost/nodemailer to v0.3.13 2022-02-22 12:20:40 +01:00
Renovate Bot
a0d248d18e Update dependency @tryghost/debug to v0.1.13 2022-02-22 12:20:27 +01:00
Renovate Bot
0ca6318f20 Update dependency @tryghost/errors to v1.2.3 2022-02-22 12:20:16 +01:00
Renovate Bot
d88770cc32 Update dependency @tryghost/tpl to v0.1.12 2022-02-22 12:19:20 +01:00
Renovate Bot
0e7eb4acd9 Update dependency @tryghost/version to v0.1.11 2022-02-22 12:17:30 +01:00
Naz
fd0a3e80ae Removed @tryghost/jest-snapshot dependency
refs https://github.com/TryGhost/Toolbox/issues/215

- Ghost tests had difficulty running sometimes when the versions for jest-snapshot package did not match in Ghost and @tryghost/express-test
- This is the error that was showing up: `IncorrectUsageError: Unable to run snapshot tests, current test was not configured`
- The reason why snapshot tests were misconfigured was multiple instances of SnapshotManager, which broke the singleton pattern
- Having jest-snapshot embeded within express-test makes sure the versions stay the same across the clients
- The version bump also introduces passing "queryParams" parameter into the Agent constructor - enables configuring query parameters that would appear in each agent's request. Example usecase - Content API authentication parameter "key" would be nice to "remember" and add to every request URL
2022-02-22 09:41:58 +07:00
Renovate Bot
63762afc49
Update dependency express-jwt to v6.1.1 2022-02-21 17:23:30 +00:00
Renovate Bot
b19bb35aca Update dependency mocha to v9.2.1 2022-02-21 12:53:22 +00:00
Hannah Wolfe
5bf12939e4
Updated eslint-plugin-ghost & fixed resulting failures
- I recently added a bunch of strict rules to our eslint plugin around returns: ca9af37866
- These mostly are issues that occur whilst writing code, that you spot and fix as you're developing, but they're annoying to notice/find and eslint can be used to flag them quickly
- There are of course, edge cases where you don't need to return from array fns, but this rule also suggests better patterns might be available
- For our excert helper and new assertEvent helper, I've updated the code to use simpler patterns that are easier to read, so as to avoid the warnings
- For our old API I've simply disabled the rule as we're about to delete this code
2022-02-21 12:30:12 +00:00
Renovate Bot
34fbed10bd Update dependency @tryghost/validator to v0.1.13 2022-02-18 14:33:31 +01:00
Renovate Bot
72fe844396 Update dependency @tryghost/nodemailer to v0.3.12 2022-02-18 14:28:29 +01:00
Renovate Bot
0a84bae1b8 Update dependency @tryghost/errors to v1.2.2 2022-02-18 14:13:57 +01:00
Naz
32884fa412 🐛 Fixed StripeAPI disconnection
refs https://github.com/TryGhost/Toolbox/issues/214

- After calling `DELETE /settings/stripe/connect/` Admin API endpoint, stripe did not fully disconnect causing other Member API endpoints to behave as if Stripe was still configured
2022-02-18 16:30:50 +07:00
Renovate Bot
c8105ea08f Update dependency @tryghost/html-to-mobiledoc to v1.8.5 2022-02-18 09:23:55 +01:00
Renovate Bot
39ab0baa82 Update dependency @tryghost/magic-link to v1.0.19 2022-02-18 09:21:38 +01:00
Renovate Bot
15572127fa Update dependency @tryghost/request to v0.1.15 2022-02-18 09:15:04 +01:00
Renovate Bot
2e7885f3a9 Update dependency @tryghost/bookshelf-plugins to v0.3.9 2022-02-18 09:14:51 +01:00
renovate[bot]
b807f12c44
Update dependency @tryghost/members-importer to v0.5.2 (#14169)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-17 18:18:02 +02:00
renovate[bot]
6a5e7f6ccb
Update dependency @tryghost/members-ssr to v1.0.21 (#14170)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-17 15:38:08 +02:00
renovate[bot]
fc0d679fa2
Update dependency @tryghost/members-api to v5.0.2 (#14168)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-17 15:37:42 +02:00
Fabien 'egg' O'Carroll
daa39bf4fe
🐛 Fixed error handling webhooks for unknown member (#14155)
https://github.com/TryGhost/Team/issues/1374

When we receive a web hook to update payment details for a customer
which is not associated with a Member, instead of proceeding and erroring
we now return early and respond to Stripe with a 200. A test has been 
added to ensure this
2022-02-17 14:51:40 +02:00
Renovate Bot
d2081059de Update dependency @playwright/test to v1.19.1 2022-02-17 12:32:55 +01:00
Daniel Lockyer
1a0362f3db Added demo E2E browser test
refs https://github.com/TryGhost/Toolbox/issues/207

- we want to start writing some E2E tests that involve automated
  pointing and clicking around the frontend of Ghost to test that
  members of Ghost sites can still do what we expect
- we've decided to look in to Playwright for this - it looks __really__
  nice
- this is a VERY basic first test - it'll check for a 200 on the
  homepage of whatever we provide as the TEST_URL env variable, or
  default to a (manually-run) Ghost instance on port 2368
- also adds a `yarn test:browser` command to run the tests using the
  Playwright CLI, and a sample GitHub Action workflow which we can
  manually run with a site URL
- there's a lot more to add here in terms of test framework but this
  gets us started
2022-02-17 12:16:58 +01:00
Renovate Bot
9b4d61ef2e
Update dependency express to v4.17.3 2022-02-17 04:02:30 +00:00
Naz
f0bda014ab Fixed misconfigured SnapshotManager in e2e tests
refs https://github.com/TryGhost/Toolbox/issues/210

- After updating to the newest `@tryghost/express-test`, it's dependency `@tryghost/jest-snapshot` was missmatched with the one used in Ghost itself. This caused multiple instances of SnapshotManager class in the system, which is meant to be a singleton!
- The issue was causing following error to appear: "IncorrectUsageError: Unable to run snapshot tests, current test was not configured"
2022-02-17 11:01:15 +07:00
Naz
d79dab94f5 Changed test-framework assertion execution order
refs https://github.com/TryGhost/Toolbox/issues/210

- Having assertions executed in the declaration order using superagent has lead to many frustrating developer experiences. For example when status code assertion fails there was usually no additional context to investigate the failure further. In this situation having a "response body" assertion executed usually would give many more clues on the actual problem at hand.
- The order of the assertions has been changed from the order in which they were declared to the following one based on assertion type:
1. `exect`
2. `expectHeader`
3. `expectStatus`

- For more on this topic check the documentation: cfd6e88fe2/packages/express-test (assertion-execution-order)
2022-02-17 11:01:15 +07:00
Renovate Bot
6537ed1485
Update dependency @sentry/node to v6.17.9 2022-02-16 15:26:45 +00:00
Kevin Ansfield
de644a25d4 🐛 Fixed "Invalid mobiledoc structure" errors the could occur when saving posts with header cards
refs https://github.com/TryGhost/Team/issues/1377

- bumped all packages that have a dependency on `@tryghost/kg-utils` to fix a bug in the `slugify()` utility that was throwing errors when the header or subheader was left blank in a header card
2022-02-16 14:44:33 +00:00
Renovate Bot
4ebbe90f17
Update dependency body-parser to v1.19.2 2022-02-16 05:19:22 +00:00
Renovate Bot
2b241b4e6a
Update dependency @sentry/node to v6.17.8 2022-02-15 16:28:10 +00:00
Daniel Lockyer
b2e04cce4b Bumped all Members packages
- we've just fixed up the use of `@tryghost/errors` and bumped some
  dependencies in all of our packages in Members
- this commit bumps all of those packages in Ghost so we can stay
  up-to-date
2022-02-15 13:58:55 +01:00
Naz
09bf5804ad Fixed e2e-framework to correctly compare headers
refs https://github.com/TryGhost/Toolbox/issues/209
refs https://github.com/TryGhost/Toolbox/issues/210

- Fixed request header processing by the e2e-framework where it failed to lowercase incoming header keys. This bug made it harder to test code paths which involve header checking, e.g. following code: `req.headers['stripe-signature']` would not get a correct value if the header was specified as Stripe-Signature
- Additional output to the status code assertions was added - this allows to have more context when an invalid response code comes back in a test.
2022-02-15 18:38:45 +07:00
Fabien "egg" O'Carroll
f88b6bd02f 🐛 Fixed Stripe checkout session urls being invalid
refs https://github.com/TryGhost/Team/issues/1322

Since the Members service is no longer started when Stripe is
reconfigured the url config used for checkout sessions was not updated.

This moves all of the default Stripe urls into the Stripe service, where
they will be updated as/when Stripe is connected/disconnected.
2022-02-15 12:50:07 +02:00
Renovate Bot
be5677cbd1
Update dependency eslint to v8.9.0 2022-02-14 02:20:41 +00:00
Renovate Bot
07ffe8fd94
Update dependency @sentry/node to v6.17.7 2022-02-11 18:01:11 +00:00
Renovate Bot
3681e1d86d Update dependency @tryghost/metrics to v1.0.5 2022-02-10 08:01:29 +01:00
Hannah Wolfe
c885dac30a
Removed chai + misc auth test cleanup
refs: https://github.com/TryGhost/Toolbox/issues/158

- We only use chai in a handful of places now, and it seems totally unnecessary
- Use assert instead
- Made other minor changes with a view to this being a reference aka "perfect" test suite
2022-02-09 21:14:31 +00:00
Hannah Wolfe
527cb01680 Updated members tests to use snapshot testing
refs: https://github.com/TryGhost/Toolbox/issues/158

- This is a reference suite - it shows how snapshot testing can be used on a larger suite
2022-02-09 20:15:58 +00:00
Fabien "egg" O'Carroll
21c43f3b10 🐛 Fixed 500 errors when cancelling subscriptions
no-issue

If Stripe subscriptions have manually been modified to contain more than
one price, then cancellation would fail, as Ghost/Members relies on
subscriptions only containing one price. This adds some handling so that
we do not error when cancelling.
2022-02-09 11:37:49 +02:00
Fabien 'egg' O'Carroll
88786f768b
Added validation for Tier prices
refs https://github.com/TryGhost/Team/issues/1319
refs https://github.com/TryGhost/Team/issues/521

This updates the members-api to explicitly validate Tier prices rather
than deferring to Stripe and using whichever errors they throw.
2022-02-09 11:04:58 +02:00
Renovate Bot
b1c2b923ce
Update dependency @sentry/node to v6.17.6 2022-02-08 20:37:28 +00:00
Hannah Wolfe
069c344495
Switched new e2e-framework to use our own snapshot lib (#14137)
refs TryGhost/Toolbox#158
refs TryGhost/Toolbox#129 (comment)

We now have @tryghost/jest-snapshot - a suite of utilities for using snapshots with mocha, should, etc
The @tryghost/express-test lib also uses it to provide chained snapshot assertions

This library was created because all the existing implementations I could find, including the in use @ethanresnick/chai-jest-snapshot
didn't properly support property matching. @ethanresnick/chai-jest-snapshot supposedly supported it, but the implementation was incorrect
and frequently lead to false test passes.

This library also has (after some back and forth) path resolution so that snapshots can live in a local __snapshots__ folder
2022-02-08 14:33:19 +00:00
Renovate Bot
0822a5b7a1 Update dependency @tryghost/request to v0.1.14 2022-02-08 11:08:48 +01:00
Renovate Bot
4cdc93ca3a
Lock file maintenance 2022-02-08 07:44:36 +00:00
Renovate Bot
91b5c09f5e Update dependency @sentry/node to v6.17.5 2022-02-08 07:43:00 +00:00
Renovate Bot
1852521fca Update dependency cssnano to v5.0.17 2022-02-07 20:00:45 +01:00
Kevin Ansfield
f410893f3e 🐛 Fixed header cards not being linkable with #header-title
refs https://github.com/TryGhost/Team/issues/1316

Updates header card renderer so the `<h2>` and `<h3>` elements have slugified titles set on their `id` attributes to allow in-page and external #header-title anchor links.

- bumps `@tryghost/kg-default-cards` including the header card id fix
- bumps other `@tryghost/kg-*` packages that were released simultaneously - contains dependency updates and switch to `slugify()` from `@tryghost/kg-utils`
2022-02-07 18:52:18 +00:00
Hannah Wolfe
efdae70cbc
Updated members regression tests to use e2e framework (#14130)
- This is an example refactor to the new framework
 - This does not yet include snapshot testing (coming SOON)
2022-02-07 17:15:55 +00:00
Renovate Bot
2a1201ab30 Update Test & linting packages 2022-02-07 13:16:05 +01:00
Renovate Bot
361a7fe27d Update dependency @tryghost/bookshelf-plugins to v0.3.8 2022-02-07 09:10:41 +01:00
Renovate Bot
4c6257c09a Update dependency expect to v27.5.0 2022-02-07 09:08:50 +01:00
Hannah Wolfe
c9ca388a9f
Added new express-test framework to our ref tests (#14117) 2022-02-06 16:18:12 +00:00
Renovate Bot
787d23ee5e Update dependency node-jose to v2.1.0 2022-02-05 10:38:26 +00:00
Renovate Bot
619f605c46
Update dependency nock to v13.2.4 2022-02-04 19:55:19 +00:00
Renovate Bot
c873e204ae
Update dependency sanitize-html to v2.7.0 2022-02-04 17:45:26 +00:00
Renovate Bot
3cebde7279 Update dependency @tryghost/version to v0.1.10 2022-02-04 15:45:20 +01:00
Renovate Bot
c47e48455e Update dependency @tryghost/request to v0.1.13 2022-02-04 15:37:26 +01:00
Renovate Bot
d41e980dba Update dependency @tryghost/job-manager to v0.8.19 2022-02-04 15:16:43 +01:00
Renovate Bot
8b5929138c Update dependency @tryghost/vhost-middleware to v1.0.21 2022-02-04 15:16:32 +01:00
Renovate Bot
5f0b7688ea Update dependency @tryghost/update-check-service to v0.3.1 2022-02-04 15:16:07 +01:00
Daniel Lockyer
d14757ec07
Updated lockfile
no issue
2022-02-04 14:49:42 +01:00
Renovate Bot
f3adacd6e2 Update dependency @tryghost/nodemailer to v0.3.11 2022-02-04 14:18:45 +01:00
Renovate Bot
1bff41d10b Update dependency @tryghost/logging to v2.0.3 2022-02-04 14:17:43 +01:00
Renovate Bot
d860948f93 Update dependency @tryghost/metrics to v1.0.4 2022-02-04 14:17:30 +01:00
Renovate Bot
c2fd374930 Update dependency @tryghost/validator to v0.1.12 2022-02-04 14:07:19 +01:00
Renovate Bot
440e8c5d38 Update dependency @tryghost/debug to v0.1.12 2022-02-04 14:07:08 +01:00
Rishabh
6309764f11 Fixed incorrect id used for updating portal product setting
no refs

- bumps members-api package to use correct id for setting while updating value for portal_products
2022-02-04 18:29:25 +05:30
renovate[bot]
9146e3c4c3
Update dependency @tryghost/verification-trigger to v0.1.3 (#14116)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-04 12:08:55 +00:00
Renovate Bot
c6458f8a2f Update dependency @tryghost/root-utils to v0.3.10 2022-02-04 13:03:58 +01:00
Renovate Bot
30d2995f14 Update dependency @tryghost/tpl to v0.1.11 2022-02-04 13:02:30 +01:00
Renovate Bot
6ac135d038
Update dependency nock to v13.2.3 2022-02-03 21:00:54 +00:00
Sam Lord
92c3e8d7ca Added source to the verification trigger
no issue

Helps us to tell the difference between a verification trigger caused by import vs API
2022-02-03 16:20:37 +00:00
Renovate Bot
5b76ae6ac5 Update dependency @tryghost/helpers to v1.1.56 2022-02-03 08:09:57 +00:00
Renovate Bot
bc17e6ac49 Update dependency postcss to v8.4.6 2022-02-03 08:09:33 +00:00
Renovate Bot
aa23f73074
Update dependency @sentry/node to v6.17.4 2022-02-02 16:05:19 +00:00
Matt Hanley
48bcb36adc Merged v4.34.3 into main
v4.34.3
2022-02-02 16:02:54 +00:00
Fabien "egg" O'Carroll
d00965df22 Disabled verification triggers from the API
no-issue

Due to a bug with the event filtering logic verification triggers were
happening when they shouldn't - for now we are disabling the trigger
until the bug is fixed
2022-02-02 17:16:15 +02:00
Thibaut Patel
ca2b078fcf Fixed a typo breaking the /members/events route
refs ac9c8c18a0

- This was a regression introduced by commit ac9c8c18a0
2022-02-02 13:31:53 +01:00
Renovate Bot
c95868a532
Update metascraper to v5.25.8 2022-02-02 01:02:13 +00:00
Fabien 'egg' O'Carroll
805c9f22f5
Added e2e test for comping Members (#14094)
no-issue
refs https://github.com/TryGhost/Members/commit/6860e3c1
refs https://github.com/TryGhost/Members/commit/03a6d694

This adds an e2e tests for the regression we had with comping members.

The stripe service imports the members service, which will instantiate
members-ssr once it is loaded, which will use the uninstantiated
settings cache resulting in errors due to a missing theme_session_secret.

For this reason we require the stripe service inside of the test function,
rather than at the top level of the file
2022-02-01 18:57:27 +02:00
Thibaut Patel
ac9c8c18a0
🐛 Fixed the event ordering in the member activity feed (#14093)
refs https://github.com/TryGhost/Team/issues/1299

- The email_delivered_event, email_opened_event and email_failed_event events weren't correctly ordered
- This has caused some of these events to not show
2022-02-01 16:37:51 +01:00
renovate[bot]
20b33dafa0
Update dependency @tryghost/members-api to v4.8.8 (#14059)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-01 15:07:19 +02:00
Thibaut Patel
9e5dd4a22b 🐛 Added missing payment events in the member activity feed
refs https://github.com/TryGhost/Team/issues/1297

- They were expected to be in the activity feed but were hidden
2022-02-01 13:30:34 +01:00
Fabien "egg" O'Carroll
db7ca3dedf Set default Tier name to Site Title
refs https://github.com/TryGhost/Team/issues/1289

The default Tier name is "Default Product" - this adds a check on
startup for this name, and will update it to the site title. This is so
that when Tiers is enabled, the user is presented with an expected value
for the Tier name.
2022-02-01 13:18:20 +02:00
Fabien "egg" O'Carroll
0040b6a441 Updated emails sending after paid signup
refs https://github.com/TryGhost/Team/issues/1168

This fixes the email being sent based on feedback from the welcome pages feature
2022-02-01 12:03:35 +02:00
Fabien "egg" O'Carroll
0c2922a23e Attached Tier to Subscriptions
refs https://github.com/TryGhost/Team/issues/1168

This will allow redirects to read the welcome page from the Tier object
of a members Subscription.
2022-02-01 11:45:16 +02:00
Rishabh
c530ac2a92 Updated admin api schema to include tiers for post/page
refs TryGhost/Team#1071

- new `tiers` key is now attached to posts/pages API response to include tiers visibility
- updates expected response for post/page in tests to include `tiers`
2022-02-01 11:13:51 +05:30
Fabien "egg" O'Carroll
354bb5c9a1 Allowed welcome_page_url to be set on Tiers
refs https://github.com/TryGhost/Team/issues/1168

This updates the underlying members service to handle the new
welcome_page_url properties
2022-01-31 15:55:40 +02:00
Fabien "egg" O'Carroll
52a841d567 Fixed Complimentary subscriptions
refs https://github.com/TryGhost/Ghost/issues/14079

The stripe_prices API whilst not used publicly is still used for handling
complimentary subscriptions in the old (pre-tiers) system. This was mistakenly
removed, and has been reinstated with this commit.
2022-01-31 13:11:31 +02:00
Renovate Bot
42e384ab6a Update dependency @tryghost/color-utils to v0.1.7 2022-01-31 08:44:55 +00:00
Renovate Bot
f43e823a6b
Lock file maintenance 2022-01-31 00:05:39 +00:00
Fabien "egg" O'Carroll
4f5257859d Added welcome_page_url to Products API
refs https://github.com/TryGhost/Team/issues/1168

This updates the JSON API Schema to allow for the welcome_page_url
property, as well as including the new column in API responses, so that
we can both read and write the value via the API.
2022-01-30 17:41:57 +02:00
Renovate Bot
b917c17ce8
Update dependency @sentry/node to v6.17.3 2022-01-28 17:48:36 +00:00
Sam Lord
08829a6f0c
Trigger email verification workflow on API usage
refs: TryGhost/Toolbox#166

The new VerificationTrigger listens to events form the members repository, and will cause the verification workflow to be triggered if the number of events is greater than the configured threshold in a rolling 30 day window.

The importer also no longer depends on the import threshold, so the threshold testing is now done in the processImport method in Ghost - seems sensible since we already had this wrapper and the logic is now tiny, since it's just relying on @tryghost/verification-trigger to handle the real stuff.
2022-01-27 14:06:29 +00:00
Daniel Lockyer
b79ca4188d
Merged v4.33.2 into main
v4.33.2
2022-01-27 10:29:30 +00:00
Renovate Bot
c2977bcbc4 Update dependency chai to v4.3.6 2022-01-27 10:19:45 +00:00
Fabien "egg" O'Carroll
5dd2e5bd84 🐛 Fixed sending emails for paid signups
refs https://github.com/TryGhost/Team/issues/1293

A mistake in the email sending code when handling webhooks meant that
emails were not sent to new paid signups - however the member would
still be logged in afterwards, so no loss of access was incurred.
2022-01-26 22:30:04 +02:00
Renovate Bot
9699e88bce Update dependency @tryghost/logging to v2.0.2 2022-01-26 10:33:49 +00:00
Renovate Bot
a1efc7994b Update dependency @tryghost/request to v0.1.12 2022-01-26 10:22:36 +00:00
Renovate Bot
bf59a83cf4 Update dependency @tryghost/tpl to v0.1.10 2022-01-26 09:53:03 +00:00
Renovate Bot
7fcfdc7e95 Update dependency @tryghost/metrics to v1.0.3 2022-01-26 09:52:36 +00:00
Renovate Bot
8e27280c03 Update dependency @tryghost/root-utils to v0.3.9 2022-01-26 09:52:25 +00:00
Renovate Bot
aaaab239f4 Update dependency @tryghost/version to v0.1.9 2022-01-26 09:52:10 +00:00
Renovate Bot
4984ed4ce0 Update dependency @tryghost/validator to v0.1.11 2022-01-26 09:11:46 +00:00
Renovate Bot
7ad538b3d0 Update dependency @sentry/node to v6.17.2 2022-01-26 00:32:06 +00:00
Renovate Bot
f0d3c403c6 Update dependency chai to v4.3.5 2022-01-25 19:04:25 +00:00
Renovate Bot
55255db33d Update dependency @tryghost/bookshelf-plugins to v0.3.7 2022-01-25 17:04:51 +00:00
Thibaut Patel
6b4c30fe6d Removed de-duplication of events in /members/events
refs https://github.com/TryGhost/Team/issues/1277

- When a user signs-up, two events are created, the api route was only returning one of these events.
- This was introduce in commit 120116e8a2 when the only usage of the api route was to extract the 5 most recent events. Any duplication was creating too much noise.
- This was creating issues now that we introduced event filtering. Some `newsletter_event` events would appear from nowhere we we were filtering-out `signup_event` events.
- We removed the deduplication when the `membersActivityFeed` flag is enabled.
2022-01-25 17:38:44 +01:00
Renovate Bot
d73c39e64d Update dependency @tryghost/debug to v0.1.11 2022-01-25 16:35:58 +00:00
Renovate Bot
91ed842410 Update dependency @tryghost/nodemailer to v0.3.10 2022-01-25 16:35:30 +00:00
Thibaut Patel
b55b9741e5 Updated the /members/events route to support filters
refs https://github.com/TryGhost/Team/issues/1277

- The filters `type`, `data.created_at` and `data.member_id` are available and working as expected
2022-01-25 12:40:38 +01:00
Renovate Bot
d3dfa1e5a1 Update dependency @tryghost/members-api to v4.7.1 2022-01-24 20:38:39 +00:00
Renovate Bot
ca4f6bdeda
Update dependency @sentry/node to v6.17.1 2022-01-24 18:29:58 +00:00
Daniel Lockyer
83fee77ed0
Re-added dependency after erroneous deletion
refs a2c44efa6a

- I accidentally removed the `@tryghost/members-importer` dependency during a release merge
- this commit re-adds the dependency
2022-01-24 16:07:28 +00:00
Daniel Lockyer
a2c44efa6a
Merged v4.33.1 into main
v4.33.1
2022-01-24 16:03:16 +00:00
Fabien "egg" O'Carroll
e556951dc9 🐛 Fixed webhook handling of Stripe Checkout
no-issue

Handling Stripe Checkout webhooks was failing to send emails to customers
because of a faulty reference. This updates the Webhook Controller to fix
that.
2022-01-24 17:50:55 +02:00
Renovate Bot
90ca56a4f4
Update dependency mocha to v9.2.0 2022-01-24 15:00:26 +00:00
Renovate Bot
287a2be115
Update dependency @sentry/node to v6.17.0 2022-01-24 12:26:10 +00:00
renovate[bot]
410c1d54cd
Update dependency @tryghost/members-offers to v0.10.6 (#14041)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-24 13:45:39 +02:00
Fabien "egg" O'Carroll
3ff3da1d99 Removed archived Tiers from Portal display
refs https://github.com/TryGhost/Team/issues/1252

In order to ensure that archived Tiers are not selected to be shown in
Portal, both after they archived, and after they've been un-archived -
we need to persist this information to storage. This is currently done
via the `portal_products` setting.

The reasoning behind this is so that un-archiving a Tier doesn't modify
Portal settings without the user being aware.
2022-01-24 13:15:46 +02:00
Fabien "egg" O'Carroll
69483e2917 Restricted archived Tiers from complementary subs
refs https://github.com/TryGhost/Team/issues/1252

Although Archived Tiers cannot be signed up to via Stripe, we also need
to stop them from being assigned through a complementary subscription.
2022-01-24 11:48:33 +02:00
renovate[bot]
4bff74823e
Update dependency @tryghost/members-ssr to v1.0.19 (#14042)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-24 11:24:50 +02:00
Renovate Bot
76a9a2f518 Update dependency cssnano to v5.0.16 2022-01-24 08:39:23 +00:00
Thibaut Patel
817e556ea6 Updated the /members/event filtering logic
refs https://github.com/TryGhost/Team/issues/1277

- Enabled the `filter` attribute on the route.
- The events are now filtered in-memory instead of in the database.
- This fixes a wrong logic where the API user would have to know the internal event structure.
2022-01-21 18:35:02 +01:00
renovate[bot]
b6c0f8bddd
Update dependency @tryghost/express-dynamic-redirects to v0.2.4 (#14023)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-21 15:56:51 +02:00
Thibaut Patel
bb24177149 Added the option to filter events from the /members/events endpoint
refs https://github.com/TryGhost/Team/issues/1277

- Filter events using the usual `filter` property
- Fixed a bug that was in `members-api@4.3.0`
2022-01-21 14:56:36 +01:00
Fabien "egg" O'Carroll
ca2a8ba464 Restricted updating Subscription to archived Tier
refs https://github.com/TryGhost/Team/issues/1252

Archived tiers should be restricted from _any_ "new" subscriptions,
including existing ones. They are essentially disabled.
2022-01-21 14:11:46 +02:00
renovate[bot]
1b1abe3005
Update dependency @tryghost/members-api to v4.3.0 (#14013)
refs https://github.com/TryGhost/Team/issues/1277
refs https://github.com/TryGhost/Team/issues/1252

- Restrict creating new checkout session with archived Tiers
- Allowed event timeline to have additional filters passed

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Thibaut Patel <thibaut@ghost.org>
2022-01-21 13:43:08 +02:00
Renovate Bot
a43dd4fe60 Update dependency @tryghost/settings-path-manager to v0.1.3 2022-01-21 11:03:28 +00:00
Renovate Bot
d0507467ad Update dependency @tryghost/social-urls to v0.1.28 2022-01-21 10:33:50 +00:00
Renovate Bot
d0b27d45bf Update dependency @tryghost/color-utils to v0.1.6 2022-01-21 10:07:48 +00:00
Renovate Bot
dcc9a57f6a Update dependency @tryghost/helpers to v1.1.55 2022-01-21 10:07:37 +00:00
Renovate Bot
91f2416ef1 Update dependency @tryghost/string to v0.1.22 2022-01-21 10:07:18 +00:00
Renovate Bot
2b9847a91f Update dependency @tryghost/url-utils to v2.0.5 2022-01-21 10:07:07 +00:00
renovate[bot]
7c76c429b1
Update dependency @tryghost/members-importer to v0.4.1 (#14027)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:56:13 +02:00
renovate[bot]
b21e1426de
Update dependency @tryghost/members-stripe-service to v0.6.3 (#14030)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:54:54 +02:00
renovate[bot]
e855c2d342
Update dependency @tryghost/members-ssr to v1.0.18 (#14029)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:53:56 +02:00
renovate[bot]
d4bd7568bc
Update dependency @tryghost/members-offers to v0.10.5 (#14028)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:52:34 +02:00
renovate[bot]
8923726df2
Update dependency @tryghost/members-csv to v1.2.3 (#14026)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-20 20:52:10 +02:00
Fabien "egg" O'Carroll
ce0e1b8b0c Added initial support for archiving Tiers
refs https://github.com/TryGhost/Team/issues/1252

This allows us to archive and unarchive tiers, but does not implement
any of the background behaviour like modifying portal settings. Or
disabling archived tiers from being used.

The two packages now allow the `active` flag to be passed, and will
update that in the database.
2022-01-20 17:57:47 +02:00
Renovate Bot
8ad20a8c69
Update dependency eslint-plugin-ghost to v2.12.0 2022-01-20 14:30:08 +00:00
Renovate Bot
cd21cd5fe8 Update dependency @tryghost/security to v0.2.14 2022-01-20 14:28:46 +00:00
Renovate Bot
9a15966ffb Update dependency @tryghost/promise to v0.1.14 2022-01-20 14:01:20 +00:00
Renovate Bot
c857606137 Update dependency @tryghost/config-url-helpers to v0.1.4 2022-01-20 13:59:44 +00:00
Renovate Bot
fa49adda58 Update dependency @tryghost/image-transform to v1.0.27 2022-01-20 13:58:30 +00:00
Renovate Bot
d9a379e453 Update dependency @tryghost/errors to v1.2.1 2022-01-20 13:53:57 +00:00
Renovate Bot
ecb67a5763 Update dependency @tryghost/vhost-middleware to v1.0.20 2022-01-20 13:53:24 +00:00
Renovate Bot
da3d3fd814 Update dependency @tryghost/bootstrap-socket to v0.2.16 2022-01-20 13:32:45 +00:00
Renovate Bot
8be58c2566 Update dependency @tryghost/limit-service to v1.0.9 2022-01-20 13:31:13 +00:00
Renovate Bot
8bcb90300e Update dependency @tryghost/session-service to v0.1.37 2022-01-20 13:30:43 +00:00
Renovate Bot
952a00760b Update dependency @tryghost/package-json to v1.0.15 2022-01-20 13:30:26 +00:00
Renovate Bot
55daa556d4 Update dependency @tryghost/constants to v1.0.1 2022-01-20 13:29:57 +00:00
Renovate Bot
de7bc9ca9c Update dependency @tryghost/job-manager to v0.8.18 2022-01-20 13:28:55 +00:00
Renovate Bot
dd8100ad8b Update dependency @tryghost/adapter-manager to v0.2.27 2022-01-20 13:27:54 +00:00
Renovate Bot
2d4406ab10 Update dependency @tryghost/zip to v1.1.19 2022-01-20 13:27:35 +00:00
Renovate Bot
0202c93726 Update dependency @tryghost/minifier to v0.1.10 2022-01-20 13:26:46 +00:00
Renovate Bot
81b86b8c39 Update dependency @tryghost/mw-session-from-token to v0.1.27 2022-01-20 13:26:24 +00:00
Renovate Bot
2cb12c647a Update dependency supertest to v6.2.2 2022-01-20 12:25:02 +00:00
Renovate Bot
3fd7ce6179 Update dependency @tryghost/mw-error-handler to v0.1.2 2022-01-20 11:58:52 +00:00
Fabien "egg" O'Carroll
54bdef0d20 Fixed stripe webhook creation params
no-issue

We were missing default parameters for webhook creation which cause an
error to throw if we attempted to read from them. This bumps the members
& stripe packages to add default params.
2022-01-20 11:02:54 +02:00
Thibaut Patel
a1af064f79 Added three email delivery events to the member/event endpoint
refs https://github.com/TryGhost/Team/issues/1277

- The new events types are: `email_delivered_event`, `email_opened_event` and `email_failed_event`.
- This makes existing data accessible to the admin dashboard
2022-01-19 14:43:29 +01:00
Fabien 'egg' O'Carroll
a565da06b2
🐛 Fixed Offer Redemptions being over counted (#13988)
refs https://github.com/TryGhost/Team/issues/1257

Offer Redemptions were being overcounted due to the way we were updating
Stripe configuration for the Members service. We would create a new
instance of the members-api, which would have event handlers for
creating Offer Redemptions - by creating a new instance each time Stripe
config changed, we would overcount them.

Here we've pulled out Stripe related logic into the Stripe service, and
updated it internally - rather than creating a new instance. This means
that we've been able to remove all of the logic for re-instantiating the
members-api.

- Bumped members-api & stripe-service
- Removed reinstantiation of members-api
- Used stripe service to execute migrations
- Updated Stripe Service to handle webhooks & migrations
- Used webhook controller from stripe service
- Used disconnect method from stripe service
- Removed unused stripe dependency
- Removed Stripe webhook config from members-api
2022-01-18 17:56:47 +02:00
Daniel Lockyer
eb68e8d339 Added library for extracting database information
refs https://github.com/TryGhost/Toolbox/issues/175

- we're going to be making some changes in v5 wrt supported databases
- we needed a way of detecting the difference between MySQL 5 + 8,
  MariaDB etc
- I've created `@tryghost/database-info`, which is a small wrapper
  around `knex`, which returns this information
- this commit:
  - adds the library to Ghost
  - initializes the DB info library upon boot
  - updates the Admin API /config/ endpoint and UpdateCheck to return
    the new string - `mysql5`, `mysql8` etc
2022-01-18 09:31:08 +00:00
Renovate Bot
7466ab340c
Update dependency bson-objectid to v2.0.2 2022-01-18 00:57:08 +00:00
Rishabh
018c96413d Handled new free product type in importer and member api
refs https://github.com/TryGhost/Team/issues/1037

- updates `members-api` to handle new free product and `type` column
- updates `members-importer` to handle default product usage as we have both free and paid default products now
2022-01-17 23:10:58 +05:30
Renovate Bot
da1d178768
Update dependency mocha to v9.1.4 2022-01-14 21:15:42 +00:00
Renovate Bot
02e4aeccd9 Update dependency @tryghost/validator to v0.1.10 2022-01-14 10:32:46 +00:00
Fabien "egg" O'Carroll
297b1a929f Added "api" source for MembersSubscribeEvents
refs https://github.com/TryGhost/Team/issues/1275

This will allow us to determine members which were added via the Admin
API for use in spam prevention.
2022-01-14 12:28:35 +02:00
renovate[bot]
5037517aad
🐛 Support inline partial execution in children partials
refs https://github.com/TryGhost/Ghost/issues/13844
refs https://github.com/TryGhost/Team/issues/1274

- This enables using inline partials to create layouts in Ghost themes.
- The support for inline partials was dropped when moving away from Handlebars compilation and using AST traversing instead.
2022-01-14 11:17:13 +01:00
Renovate Bot
935fef79d6 Update dependency @tryghost/kg-default-cards to v5.15.12 2022-01-14 10:13:35 +00:00
Renovate Bot
8dcae5f686 Update dependency @tryghost/magic-link to v1.0.15 2022-01-14 10:11:40 +00:00
Renovate Bot
ab51f9b59a Update dependency @tryghost/tpl to v0.1.9 2022-01-14 10:11:19 +00:00
Renovate Bot
04e894eef2 Update dependency @tryghost/request to v0.1.11 2022-01-14 10:01:00 +00:00
Renovate Bot
9e2c81a612 Update dependency @tryghost/nodemailer to v0.3.9 2022-01-14 09:59:50 +00:00
Renovate Bot
2787b0cf32 Update dependency @tryghost/bookshelf-plugins to v0.3.6 2022-01-14 09:59:01 +00:00
Renovate Bot
570bf892fe Update dependency @tryghost/metrics to v1.0.2 2022-01-14 09:57:39 +00:00
Renovate Bot
e0e1316d3d Update dependency @tryghost/version to v0.1.8 2022-01-14 09:57:18 +00:00
Renovate Bot
7614d79284 Update dependency @tryghost/html-to-mobiledoc to v1.8.3 2022-01-14 09:40:50 +00:00
Renovate Bot
a7b4a30a5e Update dependency @tryghost/express-dynamic-redirects to v0.2.3 2022-01-14 09:38:57 +00:00
Renovate Bot
2cae1ec585 Update dependency @tryghost/debug to v0.1.10 2022-01-14 09:36:23 +00:00
Renovate Bot
280642baef Update dependency @tryghost/logging to v2.0.1 2022-01-14 09:36:14 +00:00
Renovate Bot
b779aca831 Update dependency @tryghost/root-utils to v0.3.8 2022-01-14 09:35:59 +00:00
Thibaut Patel
8ef46f2291 🐛 Restored support for inline partials and dynamic partials
refs TryGhost/Team#1242
refs TryGhost/Team#1266

- Both inline and dynamic partials haven't been supported since gscan v4.
- You can now use [inline partials](https://handlebarsjs.com/guide/partials.html#inline-partials) in themes.
- One limitation is that the inline partials aren't available in the execution of other partials.
- You can now use [dynamic partials](https://handlebarsjs.com/guide/partials.html#dynamic-partials) in themes.
- When using dynamic partials, you can only use them as a partial block so that there is a fallback.
- Dynamic partial defined inline like `{{> (dynamicPartial) }}` are considered invalid by gscan to make sure a fallback is present.
2022-01-12 16:41:34 +01:00
Thibaut Patel
222e7a39fc Revert "Restored support for inline partials and dynamic partials"
This reverts commit 25002e99cf.
2022-01-12 16:40:34 +01:00
renovate[bot]
25002e99cf
🐛 Restored support for inline partials and dynamic partials
refs https://github.com/TryGhost/Team/issues/1242
refs https://github.com/TryGhost/Team/issues/1266
2022-01-12 16:31:28 +01:00
Renovate Bot
0477bd30dd Update dependency supertest to v6.2.1 2022-01-12 08:31:06 +00:00
Fabien "egg" O'Carroll
5c13726e06 🐛 Fixed imports ignoring subscribed_to_emails flag
no-issue

Due to a bug in the members-csv package we were losing information about
the subscribed_to_emails flag and effectively ignoring it, resulting in
all members beign imported with the default value of true.
2022-01-11 16:34:29 +02:00
renovate[bot]
b63d5f02ff
Update dependency @tryghost/members-importer to v0.3.6 (#13947)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 11:13:49 +02:00
renovate[bot]
ec5be213a4
Update dependency @tryghost/members-ssr to v1.0.17 (#13949)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 11:13:35 +02:00
Renovate Bot
c1b6614054 Update dependency supertest to v6.2.0 2022-01-11 09:05:41 +00:00
Renovate Bot
2aa908c3fa Update dependency nock to v13.2.2 2022-01-11 09:05:19 +00:00
Renovate Bot
735fbc3725 Update dependency image-size to v1.0.1 2022-01-11 09:04:43 +00:00
renovate[bot]
2a7cb1036d
Update dependency @tryghost/members-offers to v0.10.4 (#13948)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 10:28:55 +02:00
renovate[bot]
1c13cbe6ca
Update dependency @tryghost/members-csv to v1.2.1 (#13946)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-11 10:28:36 +02:00
Fabien 'egg' O'Carroll
68127cf4d4
Stopped reconfiguring MemberAPI on settings change (#13943)
refs https://github.com/TryGhost/Team/issues/1257
refs https://github.com/TryGhost/Team/issues/1261

Certain event listens are being added twice due to the way we "reload"
the MembersAPI which can cause duplicate counts of Offer Redemptions.

Rather than creating multiple instances of the MembersAPI we're moving
toward being able to reload the config in place or passing getters for
the config which will allows us to use the MembersAPI as a singleton,
and remove any bugs which come from creating multiple instances.

This also fixes a bug with the allowSelfSignup config not refreshing when
the portal_plans setting was changed.
2022-01-10 18:21:09 +02:00
Renovate Bot
4a3af368c5 Update dependency cssnano to v5.0.15 2022-01-10 11:16:15 +00:00
renovate[bot]
ddf7bf313e
Update dependency @tryghost/kg-markdown-html-renderer to v5.1.1 (#13936)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 09:46:58 +00:00
renovate[bot]
ec7b4b8283
Update dependency @tryghost/kg-default-atoms to v3.1.1 (#13934)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 09:46:19 +00:00
renovate[bot]
22a7ff6db6
Update dependency @tryghost/kg-card-factory to v3.1.1 (#13933)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 09:44:01 +00:00
renovate[bot]
6a2eae1376
🐛 Fixed missing spacing after blockquote sections in emails viewed on iPads with iOS Mail (#13937)
refs https://github.com/TryGhost/Team/issues/1268

- bumps `@tryghost/kg-mobiledoc-html-renderer` which changes email rendering for rich-text blockquote sections so the contents is wrapped in `<p>`. E.g. `<blockquote>Text</blockquote>` becomes `<blockquote><p>Text</p></blockquote>`
- in iOS Mail which has hardcoded/un-overridable `blockquote` styles that remove all margins it lets the `p` margins take effect to add back the missing vertical spacing. The change had no noticeable effect on other clients when testing

Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-10 09:43:06 +00:00
Renovate Bot
9d19472c36 Update dependency expect to v27.4.6 2022-01-06 10:06:32 +00:00
renovate[bot]
139a0713a5
Update dependency gscan to v4.20.2 (#13928)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 14:32:02 +00:00
Renovate Bot
9427886610
Update metascraper to v5.25.7 2022-01-04 18:01:36 +00:00
Kevin Ansfield
ebae98f538 Removed membersAutoLogin GA labs flag
refs https://github.com/TryGhost/Team/issues/1258

- members auto login after Stripe checkout feature is GA so labs flag is no longer necessary
- bumps `@tryghost/members-api` to version that does not use the labs flag
2022-01-04 14:54:11 +00:00
Renovate Bot
507ae42205 Lock file maintenance 2022-01-03 10:49:42 +00:00
Renovate Bot
bafc0981a9 Update dependency cssnano to v5.0.14 2022-01-03 08:30:07 +00:00
Renovate Bot
2ee061bb50 Update dependency c8 to v7.11.0 2022-01-03 08:29:36 +00:00
Renovate Bot
cb59fa0d3b
Update dependency luxon to v2.3.0 2022-01-03 00:30:52 +00:00
Renovate Bot
202b38ea98
Update metascraper to v5.25.6 2021-12-28 19:32:58 +00:00
Daniel Lockyer
a35be11bff
Added condition to main heading in header card
refs https://github.com/TryGhost/Team/issues/1253
refs b3ca368d24

- this commit bumps `@tryghost/kg-default-cards` to add a condition for
  the heading in the header card
2021-12-17 09:20:36 +01:00
Renovate Bot
2a018405b9 Update dependency passport to v0.5.2 2021-12-17 08:00:58 +01:00
Renovate Bot
f09833c6e9
Update dependency express to v4.17.2 2021-12-17 04:04:16 +00:00
Thibaut Patel
9f0e6cc26c Bumped html-to-mobiledoc
refs https://github.com/TryGhost/Koenig/pull/299
2021-12-16 22:14:52 +01:00
Thibaut Patel
1e9a2adf20 Updated the header card
refs https://github.com/TryGhost/Team/issues/1253
2021-12-16 19:16:34 +01:00
Thibaut Patel
4984223bf2 Renamed the header styles
refs https://github.com/TryGhost/Team/issues/1253

- The naming is easier to understand for theme developers
2021-12-16 18:22:16 +01:00
Thibaut Patel
2a97b2ab24 Added the header card parser plugin
refs https://github.com/TryGhost/Team/issues/1253
2021-12-16 17:45:03 +01:00
Thibaut Patel
e5ae8720ae Updated the header card
refs https://github.com/TryGhost/Team/issues/1253

- Applied the design simplification in the frontend rendering
2021-12-16 15:28:34 +01:00
Fabien 'egg' O'Carroll
0d457f231b
🐛Fixed 500 errors when signing up with invalid email (#13901)
refs https://github.com/TryGhost/Team/issues/1259

- We don't correctly handle Nodemailer's EENVELOPE error, which is thrown when Mailgun returns an error due to an invalid email recipient
- We don't want to default to returning a 400 for all mail exceptions because this would mask genuine errors - for example if Mailgun is unavailable
- We should catch `code: EENVELOPE` errors and return a 400 response
2021-12-16 12:32:15 +00:00
Renovate Bot
ceb66c1d85 Update dependency @tryghost/session-service to v0.1.36 2021-12-16 10:20:13 +01:00
Daniel Lockyer
0d5090bfcb
Added 'download' property to file link
refs https://github.com/TryGhost/Team/issues/1231
refs a7ef81bf95

- the referenced commit adds the `download` property to File cards
- this commit bumps the `@tryghost/kg-default-cards` package to include
  that change
2021-12-16 10:14:29 +01:00
Renovate Bot
acb3869fb5 Update dependency cssnano to v5.0.13 2021-12-16 08:58:41 +01:00
Renovate Bot
6cb2b25253 Update dependency @tryghost/image-transform to v1.0.26 2021-12-16 08:57:07 +01:00
Renovate Bot
12c528cf89 Update dependency @tryghost/limit-service to v1.0.8 2021-12-16 08:56:53 +01:00
Renovate Bot
af204fca99 Update dependency @tryghost/minifier to v0.1.9 2021-12-16 08:56:46 +01:00
Renovate Bot
66385729ed Update dependency @tryghost/adapter-manager to v0.2.26 2021-12-16 08:56:40 +01:00
Renovate Bot
9dbad381d6 Update dependency @tryghost/package-json to v1.0.14 2021-12-16 08:56:26 +01:00
Renovate Bot
b4a74cee5b Update dependency passport to v0.5.1 2021-12-16 08:55:51 +01:00
Rishabh
c3e2eddc86 Added css rules for file card
refs https://github.com/TryGhost/Team/issues/1231
2021-12-16 00:44:09 +05:30
Rishabh
f64cf70cc9 Refined frontend rendering for file cards
refs https://github.com/TryGhost/Team/issues/1231
2021-12-16 00:32:09 +05:30
Fabien egg O'Carroll
bdfce42413 Updated @tryghost/html-to-mobiledoc
no-issue

This includes updates to the html parsers for creating mobiledoc cards
and now works for the before/after cards, as well as fixes for
classnames of existing cards
2021-12-15 20:16:19 +02:00
Fabien egg O'Carroll
9db1c843c3 Updated Before/After card markup
refs https://github.com/TryGhost/Team/issues/1249

This removes some superfluous markup as well as renaming the slider
handle classname
2021-12-15 20:11:16 +02:00
Thibaut Patel
9198e2b0af Updated the headers card
refs https://github.com/TryGhost/Team/issues/1253

- Added configurable width
- Fixed css class names
2021-12-15 18:35:19 +01:00
Thibaut Patel
3aa60e1e00 Fixed the header card rendering
refs https://github.com/TryGhost/Team/issues/1253

- the card was failing to render without a subheader
- the subheader is optional so it needs to be rendering in that case
2021-12-15 16:19:55 +01:00
Thibaut Patel
49170e7ff2 Added a first version of the header card frontend rendering
refs https://github.com/TryGhost/Team/issues/1253

- Based on the editor card, the css isn't correct yet as it has undefined css variables
2021-12-15 14:46:00 +01:00
Fabien egg O'Carroll
a21a436f98 Added handle for before/after slider
refs https://github.com/TryGhost/Team/issues/1249

Using an input as the slider handle meant setting a width of 100% + px,
which could push width over the size of the screen - not good! This
takes the same approach as the CodePen linked below and uses a separate
element, which has the position of it updated by JS in realtime.

https://codepen.io/josephwong2004/pen/NWRGxdR
2021-12-15 15:16:29 +02:00
Peter Zimon
67d0059166 Updated file card markup
- @tryghost/kg-default-cards@5.14.7
2021-12-15 13:00:50 +01:00
Fabien egg O'Carroll
a1df1a8166 Updated gscan to check for before/after card CSS
refs https://github.com/TryGhost/Team/issues/1249

This ensures that themes which choose to omit default styles for
before/after card include their own.
2021-12-15 12:38:36 +02:00