@tryghost/signup-form 0.1.3 → 0.1.5
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 +1 -1
- package/package.json +31 -35
- package/umd/signup-form.min.js +13 -13
- package/umd/signup-form.min.js.map +1 -1
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
|
|
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.
|
|
3
|
+
"version": "0.1.5",
|
|
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
|
|
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": "
|
|
39
|
-
"react-dom": "
|
|
38
|
+
"react": "18.3.1",
|
|
39
|
+
"react-dom": "18.3.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@playwright/test": "1.
|
|
43
|
-
"@storybook/addon-essentials": "7.
|
|
44
|
-
"@storybook/addon-interactions": "7.
|
|
45
|
-
"@storybook/addon-links": "7.
|
|
46
|
-
"@storybook/addon-styling": "1.3.
|
|
47
|
-
"@storybook/blocks": "7.
|
|
48
|
-
"@storybook/react": "7.
|
|
49
|
-
"@storybook/react-vite": "7.
|
|
50
|
-
"@storybook/testing-library": "0.2.
|
|
42
|
+
"@playwright/test": "1.38.1",
|
|
43
|
+
"@storybook/addon-essentials": "7.6.20",
|
|
44
|
+
"@storybook/addon-interactions": "7.6.20",
|
|
45
|
+
"@storybook/addon-links": "7.6.20",
|
|
46
|
+
"@storybook/addon-styling": "1.3.7",
|
|
47
|
+
"@storybook/blocks": "7.6.20",
|
|
48
|
+
"@storybook/react": "7.6.20",
|
|
49
|
+
"@storybook/react-vite": "7.6.4",
|
|
50
|
+
"@storybook/testing-library": "0.2.2",
|
|
51
51
|
"@tailwindcss/line-clamp": "0.4.4",
|
|
52
|
-
"@
|
|
53
|
-
"@types/react
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"
|
|
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
|
|
64
|
-
"eslint-plugin-tailwindcss": "3.
|
|
65
|
-
"
|
|
66
|
-
"postcss
|
|
59
|
+
"eslint-plugin-react-refresh": "0.4.3",
|
|
60
|
+
"eslint-plugin-tailwindcss": "3.13.0",
|
|
61
|
+
"jsdom": "24.1.0",
|
|
62
|
+
"postcss": "8.4.39",
|
|
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.
|
|
70
|
-
"stylelint": "15.
|
|
71
|
-
"tailwindcss": "3.
|
|
72
|
-
"
|
|
73
|
-
"vite": "
|
|
74
|
-
"vite-plugin-
|
|
75
|
-
"
|
|
76
|
-
"vitest": "0.32.2"
|
|
66
|
+
"storybook": "7.6.20",
|
|
67
|
+
"stylelint": "15.10.3",
|
|
68
|
+
"tailwindcss": "3.4.4",
|
|
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
|
}
|