@tryghost/portal 2.13.1 → 2.14.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/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # Portal
2
2
 
3
- [![CI Status](https://github.com/TryGhost/portal/workflows/Test/badge.svg?branch=main)](https://github.com/TryGhost/portal/actions)
4
3
  [![npm version](https://badge.fury.io/js/%40tryghost%2Fportal.svg)](https://badge.fury.io/js/%40tryghost%2Fportal)
5
4
 
6
5
  [Drop-in script](https://ghost.org/help/setting-up-portal/) to make the bulk of Ghost membership features work on any theme.
@@ -21,7 +20,7 @@ The `data-ghost` attribute expects the URL for your Ghost site, which is the onl
21
20
 
22
21
  By default, the script adds a default floating trigger button on the bottom right of your page which is used to trigger the popup on screen.
23
22
 
24
- Its possible to add custom trigger button of your own by adding data attribute `data-portal` to any HTML tag on page, and also specify a specfic [page](https://github.com/TryGhost/Portal/blob/main/src/pages.js#L13-L22) to open from it by using it as `data-portal=signup`.
23
+ Its possible to add custom trigger button of your own by adding data attribute `data-portal` to any HTML tag on page, and also specify a specific [page](https://github.com/TryGhost/Ghost/blob/main/ghost/portal/src/pages.js#L13-L22) to open from it by using it as `data-portal=signup`.
25
24
 
26
25
  The script also adds custom class names to this element for open and close state of popup - `gh-portal-open` and `gh-portal-close`, allowing devs to update its UI based on popup state.
27
26
 
@@ -29,21 +28,6 @@ Refer the [docs](https://ghost.org/help/setup-members/#customize-portal-settings
29
28
 
30
29
  ## Basic Setup
31
30
 
32
- 1. Clone this repository:
33
-
34
- ```shell
35
- git@github.com:TryGhost/portal.git
36
- ```
37
-
38
- 2. Change into the new directory and install the dependencies:
39
-
40
- ```shell
41
- cd portal
42
- yarn
43
- ```
44
-
45
- ## For local development
46
-
47
31
  This section is mostly relevant for core team only for active Portal development. Always use the unpkg link for testing/using latest released portal script.
48
32
 
49
33
  - Run `yarn start:dev` to start Portal in development mode
@@ -89,7 +73,3 @@ Run `yarn ship` to publish new version of script.
89
73
 
90
74
  This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
91
75
  You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
92
-
93
- # Copyright & License
94
-
95
- Copyright (c) 2013-2022 Ghost Foundation - Released under the [MIT license](LICENSE).
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@tryghost/portal",
3
- "version": "2.13.1",
3
+ "version": "2.14.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git://github.com/TryGhost/Portal.git"
7
+ "url": "git://github.com/TryGhost/Ghost.git"
8
8
  },
9
9
  "author": "Ghost Foundation",
10
10
  "unpkg": "umd/portal.min.js",
@@ -18,14 +18,14 @@
18
18
  "registry": "https://registry.npmjs.org/"
19
19
  },
20
20
  "dependencies": {
21
- "@sentry/react": "7.13.0",
22
- "@sentry/tracing": "7.13.0",
23
- "@testing-library/jest-dom": "5.16.2",
24
- "@testing-library/react": "12.1.2",
25
- "@testing-library/user-event": "14.0.0",
21
+ "@sentry/react": "7.14.1",
22
+ "@sentry/tracing": "7.14.1",
23
+ "@testing-library/jest-dom": "5.16.5",
24
+ "@testing-library/react": "12.1.5",
25
+ "@testing-library/user-event": "14.4.3",
26
26
  "react": "17.0.2",
27
27
  "react-dom": "17.0.2",
28
- "react-scripts": "4.0.3"
28
+ "react-scripts": "5.0.1"
29
29
  },
30
30
  "scripts": {
31
31
  "start": "BROWSER=none react-scripts start",
@@ -38,10 +38,12 @@
38
38
  "build:bundle": "webpack --config webpack.config.js",
39
39
  "test": "react-scripts test",
40
40
  "test:ci": "yarn test --watchAll=false --coverage",
41
+ "test:unit": "yarn test:ci",
41
42
  "eject": "react-scripts eject",
42
43
  "lint": "eslint src --ext .js --cache",
43
44
  "preship": "yarn lint",
44
- "ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push ${GHOST_UPSTREAM:-upstream} main --follow-tags; fi",
45
+ "ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version; fi",
46
+ "postship": "git push ${GHOST_UPSTREAM:-origin} --follow-tags && yarn publish . --tag $npm_package_version",
45
47
  "posttest": "yarn lint",
46
48
  "analyze": "source-map-explorer 'umd/*.js'",
47
49
  "prepublishOnly": "yarn build"
@@ -78,7 +80,7 @@
78
80
  "chalk": "4.1.2",
79
81
  "chokidar": "3.5.3",
80
82
  "copy-webpack-plugin": "11.0.0",
81
- "eslint-plugin-ghost": "2.12.0",
83
+ "eslint-plugin-ghost": "2.15.1",
82
84
  "minimist": "1.2.6",
83
85
  "ora": "5.4.1",
84
86
  "rewire": "6.0.0",