Commit Graph

502 Commits

Author SHA1 Message Date
Rish
3b8b2c3f2a Updated development mode to handle account pages
no issue

- Allows development mode to open account pages with dummy member for testing
2020-07-16 12:08:24 +05:30
Rish
9ccbef5db1 Fixed overflow for portal button
refs https://github.com/TryGhost/members.js/issues/66

- Portal button showed scrollbars in some OS/browsers combination
- Hides overflow for portal button as we don't show scroll for any case
2020-07-16 12:07:35 +05:30
Rish
322096db5a Fixed default plan selection for signup page
closes https://github.com/TryGhost/members.js/issues/68

Signup screen can have any combination of available plans out of 3 currently allowed - free, monthly, yearly. This fix

- Always sets a default plan on screen based on which plans are available
- Uses `Free` as default if all plans are available, falls back to first plan in list otherwise
2020-07-16 11:57:19 +05:30
Renovate Bot
792b698d87 Update dependency @testing-library/jest-dom to v5.11.1 2020-07-15 15:05:12 +00:00
Renovate Bot
629f910615 Update dependency @testing-library/react to v10.4.7 2020-07-15 14:05:01 +00:00
Renovate Bot
bb6de1c31d Update dependency @testing-library/react to v10.4.6 2020-07-13 19:04:57 +00:00
Rish
4c43a1bc9e Fixed member state for portal preview page
closes https://github.com/TryGhost/members.js/issues/67

- Portal preview state was incorrectly adding logged-in member state
- Updates member state to be used only for account pages
2020-07-13 17:48:34 +05:30
Rish
9da9c3a21e v0.8.8 2020-07-09 11:09:28 +05:30
Rish
e721d9242b Handled trailing slash for site url
no issue

- Site url might be added with trailing slash, which causes site apis to be called with double slash
- Removes trailing slash from siteUrl if present
2020-07-09 11:08:52 +05:30
Renovate Bot
db6e02b3fa Update dependency @testing-library/react to v10.4.5 2020-07-08 19:14:19 +00:00
Rish
797f784296 v0.8.7 2020-07-08 20:54:41 +05:30
Rish
a6ab7fd626 Fixed null checks for accent color
no issue

- Fixes null checks for accent color
2020-07-08 20:54:10 +05:30
Rish
4b28df8506 v0.8.6 2020-07-08 10:43:09 +05:30
Rish
01423f974b Fixed page path set for links
no issue

- Fixes incorrect page path set for different links
2020-07-08 10:42:28 +05:30
Rish
ad5d05c023 v0.8.5 2020-07-08 10:38:50 +05:30
Rish
9eb1df17d1 Fixed link page urls with extra slash
no issue

- Fixes extra slash in link values on Link page for popup states
2020-07-08 10:37:59 +05:30
Rish
9ac11c562e Added check for preview mode to allow mock pages
no issue

- By default, we have guards to allow pages based on logged in state
- For preview mode, we switch off this guard to allow signin/signup pages to open
2020-07-08 10:37:28 +05:30
Rish
df1952ba01 v0.8.4 2020-07-08 10:26:55 +05:30
Rish
2e0a3d87ad Updated readme
no issue

- Updated readme to reflect correct custom data attribute
2020-07-08 10:26:14 +05:30
Rish
c1eb4e6540 Updated custom data attribute name and value
no issue

- Adds guard to open right page based on member logged in state from data attribute
- Updated data attribute name to `data-portal` and values same as link handling
2020-07-08 10:25:57 +05:30
Rish
2ed7ebb03d Fixed path handling for direct page links
no issue

- Updates handling for direct links to open specific pages
- Added guard for member not logged in for account pages
2020-07-08 10:05:21 +05:30
Rish
439761e992 v0.8.3 2020-07-07 19:57:44 +05:30
Rish
14d92e1c52 Handled card info for complimentary plan
closes https://github.com/TryGhost/members.js/issues/52

- No card details are on file for complimentary plan, show Complimentary instead
2020-07-07 19:56:53 +05:30
renovate[bot]
6106219123 Lock file maintenance (#62)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-07-07 19:53:48 +05:30
Rishabh Garg
fb6a2c950f Added links page and look feel settings handling (#64)
no issue

- Handles new look feel settings for portal icon button
- Adds auto width calculation for portal button based on text
- Adds new link page for portal links and data attributes
- Added contrast color calculation for accent color complimentary text
- Added copy text utility for allowing copy to clipboard
2020-07-07 19:53:26 +05:30
Renovate Bot
c1f6545915 Update dependency @testing-library/react to v10.4.4 2020-07-06 01:05:38 +00:00
Rish
b776af6a7c v0.8.2 2020-07-01 15:36:49 +05:30
Rish
2e5ddfa05c Removed unused top level css
no issue

- CSS was added as part of App initialization and not used in project
- Top-level css leaks through on the page when script is added unlike the frame's css/inline-style
2020-07-01 15:36:13 +05:30
Rish
79666590e2 v0.8.1 2020-06-26 02:12:38 +05:30
Rishabh Garg
679ee80c81 Added setup to handle preview mode from URL (#60)
no issue

- Adds handling of preview URL used in Admin for showing popup state
- Updates popup state based on url hash changes
2020-06-26 02:11:57 +05:30
Renovate Bot
f6ee798a95 Update dependency @testing-library/jest-dom to v5.11.0 2020-06-25 17:16:18 +00:00
Renovate Bot
f623c8aa1c Update dependency @testing-library/react to v10.4.3 2020-06-25 05:01:13 +00:00
Renovate Bot
eef3726578 Update dependency @testing-library/react to v10.4.2 2020-06-24 20:33:46 +00:00
Rish
fb00813f2e v0.8.0 2020-06-25 00:25:19 +05:30
Renovate Bot
66b073feca Update dependency @testing-library/react to v10.4.1 2020-06-23 23:21:14 +00:00
Renovate Bot
0759eb52da Update dependency @testing-library/react to v10.4.0 2020-06-23 17:20:29 +00:00
Rish
7a9d7497fb Updated site url fetch from data attribute
closes https://github.com/TryGhost/members.js/issues/54

- Site url is added as data attribute on script tag load in Ghost head
- was previously fetched via meta tag which was inserted on site
2020-06-22 17:46:40 +05:30
Rish
aaa8fd3535 Updated new portal settings naming
no issue

- Previously, the settings used for customization were `show_beacon`, `show_signup_name` and `allowed_plans`
- These settings were renamed to `portal_button`, `portal_name` and `portal_plans` respectively
- Updates usage of settings to new names
2020-06-19 21:37:22 +05:30
Renovate Bot
affc000be5 Update dependency webpack-cli to v3.3.12 2020-06-18 13:22:40 +00:00
Rish
8361cfabc2 v0.7.0 2020-06-18 17:50:31 +05:30
Rish
6c8c77de5d Handled new modal settings for basic customization
no issue

- Uses `show_beacon` setting to show/hide the default beacon
- Uses `show_signup_name` setting to show/hide the signup name
- Uses `allowed_plans` to show/hide the plans
2020-06-18 17:16:05 +05:30
Rish
905bc30a90 Added dynamic height calculation for popup
no issue

- So far, we had to specify fixed height to iframe based on content of page, but this was not dynamic
- Calculates height of popup dynamically with refs and assigns to iframe to allow dynamic updates as content changes
- Allows configuration and different case handling for popup without worrying about proper height
2020-06-18 11:35:53 +05:30
Renovate Bot
20b637e404 Update dependency @testing-library/react to v10.3.0 2020-06-18 01:19:17 +00:00
Renovate Bot
6bb146abcc Update dependency @testing-library/jest-dom to v5.10.1 2020-06-15 01:21:06 +00:00
Rish
c0fa057533 v0.6.3 2020-06-12 18:53:06 +05:30
Rish
3a4c93b82d Fixed default page value
no issue

- Fixes Incorrect assignment of default page in case of missing data set
2020-06-12 18:52:05 +05:30
Rish
a873554be3 v0.6.2 2020-06-12 18:48:16 +05:30
Rish
3e06a71dc8 Fixed empty page from custom trigger button
no issue

- Custom trigger button with empty page value was not setting the default page
- Adds default page in case of no value
2020-06-12 18:47:29 +05:30
Rish
e376c60764 v0.6.1 2020-06-12 17:50:19 +05:30
Rish
432caae79c Updated site url to read from ghost:site meta tag on theme
closes https://github.com/TryGhost/members.js/issues/39

- Script needs correct ghost site url to initialize correct API endpoints for fetching site/members data
- `window.location.origin` won't work as correct ghost site url in all cases, specially for sites using subdirectory setup
- New meta tag `ghost:site` is inserted on themes with correct `siteUrl`, which is used to initialize api
2020-06-12 16:59:44 +05:30