@tryghost/signup-form 0.1.2 → 0.1.4

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
@@ -23,7 +23,7 @@ Run `yarn dev` (in package folder) to start the development server to test/devel
23
23
 
24
24
  ### Using the UMD build during development
25
25
 
26
- Vite by default only supports HRM with an ESM output. But when loading a script on a site as a ESM module (`<script type="module" src="...">`), you don't have access to `document.currentScript` inside the script, which is required to determine the location to inject the iframe. In development mode we use a workaround for this to make the ESM HMR work. But this workaroudn is not suitable for production.
26
+ Vite by default only supports HRM with an ESM output. But when loading a script on a site as a ESM module (`<script type="module" src="...">`), you don't have access to `document.currentScript` inside the script, which is required to determine the location to inject the iframe. In development mode we use a workaround for this to make the ESM HMR work. But this workaround is not suitable for production.
27
27
 
28
28
  To test the real production behaviour without this hack, you can use http://localhost:6173/preview.html. This HTML page will use `http://localhost:6174/signup-form.min.js` directly.
29
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/signup-form",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  "dev": "concurrently \"vite --port 6173\" \"vite preview -l silent\" \"vite build --watch\"",
21
21
  "preview": "concurrently \"vite preview -l silent\" \"vite build --watch\"",
22
22
  "dev:test": "vite build && vite preview --port 6175",
23
- "build": "tsc && vite build",
23
+ "build": "concurrently \"tsc\" \"vite build\"",
24
24
  "lint": "yarn run lint:js",
25
25
  "lint:js": "eslint --ext .js,.ts,.cjs,.tsx --cache src test",
26
26
  "test:unit": "yarn build",
@@ -35,44 +35,40 @@
35
35
  "prepublishOnly": "yarn build"
36
36
  },
37
37
  "dependencies": {
38
- "react": "^18.2.0",
39
- "react-dom": "^18.2.0"
38
+ "react": "18.3.1",
39
+ "react-dom": "18.3.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@playwright/test": "1.35.1",
43
- "@storybook/addon-essentials": "7.0.21",
44
- "@storybook/addon-interactions": "7.0.21",
45
- "@storybook/addon-links": "7.0.21",
46
- "@storybook/addon-styling": "1.3.0",
47
- "@storybook/blocks": "7.0.21",
48
- "@storybook/react": "7.0.21",
49
- "@storybook/react-vite": "7.0.21",
50
- "@storybook/testing-library": "0.1.0",
42
+ "@playwright/test": "1.38.1",
43
+ "@storybook/addon-essentials": "7.6.19",
44
+ "@storybook/addon-interactions": "7.6.19",
45
+ "@storybook/addon-links": "7.6.19",
46
+ "@storybook/addon-styling": "1.3.7",
47
+ "@storybook/blocks": "7.6.19",
48
+ "@storybook/react": "7.6.19",
49
+ "@storybook/react-vite": "7.6.4",
50
+ "@storybook/testing-library": "0.2.2",
51
51
  "@tailwindcss/line-clamp": "0.4.4",
52
- "@types/react": "18.0.28",
53
- "@types/react-dom": "18.0.11",
54
- "@typescript-eslint/eslint-plugin": "5.57.1",
55
- "@typescript-eslint/parser": "5.57.1",
56
- "@vitejs/plugin-react": "4.0.0",
57
- "autoprefixer": "10.4.14",
58
- "concurrently": "8.2.0",
59
- "eslint": "8.38.0",
60
- "eslint-config-react-app": "7.0.1",
61
- "eslint-plugin-ghost": "3.1.0",
52
+ "@tryghost/i18n": "0.0.0",
53
+ "@types/react": "18.3.3",
54
+ "@types/react-dom": "18.3.0",
55
+ "@vitejs/plugin-react": "4.2.1",
56
+ "autoprefixer": "10.4.19",
57
+ "concurrently": "8.2.2",
62
58
  "eslint-plugin-react-hooks": "4.6.0",
63
- "eslint-plugin-react-refresh": "0.3.4",
64
- "eslint-plugin-tailwindcss": "3.11.0",
65
- "postcss": "8.4.24",
66
- "postcss-import": "^15.1.0",
59
+ "eslint-plugin-react-refresh": "0.4.3",
60
+ "eslint-plugin-tailwindcss": "3.13.0",
61
+ "jsdom": "24.1.0",
62
+ "postcss": "8.4.38",
63
+ "postcss-import": "16.1.0",
67
64
  "prop-types": "15.8.1",
68
65
  "rollup-plugin-node-builtins": "2.1.2",
69
- "storybook": "7.0.21",
70
- "stylelint": "15.6.1",
71
- "tailwindcss": "3.3.2",
72
- "typescript": "5.1.3",
73
- "vite": "4.3.9",
74
- "vite-plugin-commonjs": "0.7.1",
75
- "vite-plugin-svgr": "3.2.0",
76
- "vitest": "0.31.4"
66
+ "storybook": "7.6.19",
67
+ "stylelint": "15.10.3",
68
+ "tailwindcss": "3.4.3",
69
+ "vite": "4.5.3",
70
+ "vite-plugin-commonjs": "0.10.1",
71
+ "vite-plugin-svgr": "3.3.0",
72
+ "vitest": "0.34.3"
77
73
  }
78
74
  }