@tryghost/portal 2.24.1 → 2.26.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/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@tryghost/portal",
3
- "version": "2.24.1",
3
+ "version": "2.26.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git://github.com/TryGhost/Ghost.git"
8
8
  },
9
9
  "author": "Ghost Foundation",
10
- "unpkg": "umd/portal.min.js",
11
10
  "files": [
12
11
  "umd/",
13
12
  "LICENSE",
@@ -17,35 +16,18 @@
17
16
  "access": "public",
18
17
  "registry": "https://registry.npmjs.org/"
19
18
  },
20
- "dependencies": {
21
- "@sentry/react": "7.29.0",
22
- "@sentry/tracing": "7.29.0",
23
- "@testing-library/jest-dom": "5.16.5",
24
- "@testing-library/react": "12.1.5",
25
- "@testing-library/user-event": "14.4.3",
26
- "react": "17.0.2",
27
- "react-dom": "17.0.2",
28
- "react-scripts": "5.0.1"
29
- },
30
19
  "scripts": {
31
- "start": "BROWSER=none react-scripts start",
32
- "start:combined": "BROWSER=none node ./scripts/start-combined.js",
33
- "start:dev": "node ./scripts/start-mode.js",
34
- "dev": "node ./scripts/dev-mode.js",
35
- "build": "npm run build:combined",
36
- "build:original": "react-scripts build",
37
- "build:combined": "node ./scripts/build-combined.js",
38
- "build:bundle": "webpack --config webpack.config.js",
39
- "test": "react-scripts test",
40
- "test:ci": "yarn test --watchAll=false --coverage",
20
+ "dev": "concurrently \"vite\" \"yarn build:watch\"",
21
+ "build": "vite build",
22
+ "build:watch": "vite build --watch",
23
+ "preview": "vite preview",
24
+ "test": "vitest run",
25
+ "test:ci": "yarn test --coverage",
41
26
  "test:unit": "yarn test:ci",
42
- "eject": "react-scripts eject",
43
27
  "lint": "eslint src --ext .js --cache",
44
28
  "preship": "yarn lint",
45
29
  "ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn version; fi",
46
30
  "postship": "git push ${GHOST_UPSTREAM:-origin} --follow-tags && yarn publish . --tag $npm_package_version",
47
- "posttest": "yarn lint",
48
- "analyze": "source-map-explorer 'umd/*.js'",
49
31
  "prepublishOnly": "yarn build"
50
32
  },
51
33
  "eslintConfig": {
@@ -55,10 +37,7 @@
55
37
  ],
56
38
  "plugins": [
57
39
  "ghost"
58
- ],
59
- "rules": {
60
- "import/no-webpack-loader-syntax": "off"
61
- }
40
+ ]
62
41
  },
63
42
  "browserslist": {
64
43
  "production": [
@@ -77,26 +56,28 @@
77
56
  "cobertura",
78
57
  "text-summary",
79
58
  "html"
80
- ],
81
- "moduleNameMapper": {
82
- "^!!raw-loader!.*": "jest-raw-loader"
83
- }
59
+ ]
84
60
  },
85
61
  "devDependencies": {
86
- "chalk": "4.1.2",
87
- "chokidar": "3.5.3",
88
- "copy-webpack-plugin": "11.0.0",
89
- "jest-raw-loader": "1.0.1",
90
- "minimist": "1.2.7",
91
- "ora": "5.4.1",
92
- "raw-loader": "4.0.2",
93
- "rewire": "6.0.0",
94
- "serve-handler": "6.1.5",
95
- "source-map-explorer": "2.5.3",
96
- "webpack-cli": "4.10.0"
97
- },
98
- "resolutions": {
99
- "//": "See https://github.com/facebook/create-react-app/issues/11773",
100
- "react-error-overlay": "6.0.11"
62
+ "@babel/eslint-parser": "7.21.3",
63
+ "@sentry/react": "7.44.2",
64
+ "@sentry/tracing": "7.44.2",
65
+ "@testing-library/jest-dom": "5.16.5",
66
+ "@testing-library/react": "12.1.5",
67
+ "@tryghost/i18n": "0.0.0",
68
+ "@vitejs/plugin-react": "3.1.0",
69
+ "@vitest/coverage-c8": "0.29.7",
70
+ "@vitest/ui": "0.29.7",
71
+ "concurrently": "7.6.0",
72
+ "cross-fetch": "3.1.5",
73
+ "eslint": "8.36.0",
74
+ "eslint-config-react-app": "7.0.1",
75
+ "jsdom": "21.1.1",
76
+ "react": "17.0.2",
77
+ "react-dom": "17.0.2",
78
+ "vite": "4.2.1",
79
+ "vite-plugin-css-injected-by-js": "3.1.0",
80
+ "vite-plugin-svgr": "2.4.0",
81
+ "vitest": "0.29.7"
101
82
  }
102
83
  }