@stigg/react-sdk 4.3.1 → 4.3.3
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/dist/react-sdk.cjs.development.js +2 -2
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +2 -2
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +25 -17
- package/src/components/customerPortal/paywall/CustomerPortalPaywall.style.ts +4 -3
- package/src/stories/CustomerPortal.stories.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.3.
|
|
2
|
+
"version": "4.3.3",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"analyze": "size-limit --why",
|
|
20
20
|
"storybook": "start-storybook -p 6006",
|
|
21
21
|
"build-storybook": "build-storybook",
|
|
22
|
+
"prepare": "husky install",
|
|
22
23
|
"docs": "typedoc",
|
|
23
24
|
"link-sdk": "yarn link && cd node_modules/react && yarn link && cd ../../node_modules/react-dom && yarn link && cd ../../",
|
|
24
25
|
"publish-storybook": "export NODE_OPTIONS=--openssl-legacy-provider && yarn build-storybook && npx chromatic --project-token=cbd1660d8132"
|
|
@@ -31,6 +32,12 @@
|
|
|
31
32
|
"pre-commit": "yarn lint"
|
|
32
33
|
}
|
|
33
34
|
},
|
|
35
|
+
"lint-staged": {
|
|
36
|
+
"src/**/*.{js,jsx,ts,tsx}": [
|
|
37
|
+
"prettier --check",
|
|
38
|
+
"eslint --cache --max-warnings=0 --fix"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
34
41
|
"name": "@stigg/react-sdk",
|
|
35
42
|
"author": "Stigg",
|
|
36
43
|
"module": "dist/react-sdk.esm.js",
|
|
@@ -50,6 +57,7 @@
|
|
|
50
57
|
"@commitlint/config-conventional": "^17.0.3",
|
|
51
58
|
"@rollup/plugin-image": "^2.1.1",
|
|
52
59
|
"@size-limit/preset-small-lib": "^7.0.8",
|
|
60
|
+
"@stigg/eslint-config-stigg": "^0.0.7",
|
|
53
61
|
"@storybook/addon-actions": "^6.5.9",
|
|
54
62
|
"@storybook/addon-essentials": "^6.5.9",
|
|
55
63
|
"@storybook/addon-interactions": "^6.5.9",
|
|
@@ -63,13 +71,28 @@
|
|
|
63
71
|
"@types/color": "^3.0.3",
|
|
64
72
|
"@types/react": "^18.0.6",
|
|
65
73
|
"@types/react-dom": "^18.0.2",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
75
|
+
"@typescript-eslint/parser": "^5.0.0",
|
|
66
76
|
"autoprefixer": "^10.4.14",
|
|
67
77
|
"babel-jest": "^28.1.2",
|
|
68
78
|
"babel-loader": "^8.2.5",
|
|
69
79
|
"chromatic": "^6.11.4",
|
|
70
80
|
"cssnano": "^6.0.1",
|
|
81
|
+
"eslint": "^7.11.0",
|
|
82
|
+
"eslint-config-airbnb": "^18.0.4",
|
|
83
|
+
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
84
|
+
"eslint-config-prettier": "^8.3.0",
|
|
85
|
+
"eslint-plugin-import": "^2.28.1",
|
|
86
|
+
"eslint-plugin-jest": "^25.3.2",
|
|
87
|
+
"eslint-plugin-jsx-a11y": "^6.3.1",
|
|
88
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
89
|
+
"eslint-plugin-react": "^7.28.0",
|
|
90
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
91
|
+
"eslint-plugin-unused-imports": "^2.0.0",
|
|
71
92
|
"husky": "^7.0.4",
|
|
93
|
+
"lint-staged": "^14.0.1",
|
|
72
94
|
"postcss": "^8.4.24",
|
|
95
|
+
"prettier": "^3.0.2",
|
|
73
96
|
"react": "^18.0.0",
|
|
74
97
|
"react-dom": "^18.0.0",
|
|
75
98
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -78,22 +101,7 @@
|
|
|
78
101
|
"tsdx": "^0.14.1",
|
|
79
102
|
"tslib": "^2.4.0",
|
|
80
103
|
"typedoc": "^0.23.7",
|
|
81
|
-
"typescript": "^4.6.3"
|
|
82
|
-
"prettier": "^3.0.2",
|
|
83
|
-
"eslint": "^7.11.0",
|
|
84
|
-
"@stigg/eslint-config-stigg": "^0.0.7",
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
86
|
-
"@typescript-eslint/parser": "^5.0.0",
|
|
87
|
-
"eslint-config-airbnb": "^18.0.4",
|
|
88
|
-
"eslint-config-airbnb-typescript": "^16.1.0",
|
|
89
|
-
"eslint-config-prettier": "^8.3.0",
|
|
90
|
-
"eslint-plugin-jsx-a11y": "^6.3.1",
|
|
91
|
-
"eslint-plugin-import": "^2.28.1",
|
|
92
|
-
"eslint-plugin-jest": "^25.3.2",
|
|
93
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
94
|
-
"eslint-plugin-react": "^7.28.0",
|
|
95
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
96
|
-
"eslint-plugin-unused-imports": "^2.0.0"
|
|
104
|
+
"typescript": "^4.6.3"
|
|
97
105
|
},
|
|
98
106
|
"dependencies": {
|
|
99
107
|
"@emotion/react": "^11.10.5",
|
|
@@ -13,14 +13,15 @@ export const CustomerPortalPaywallLayout = styled(SectionContainer)<{
|
|
|
13
13
|
.stigg-paywall-layout {
|
|
14
14
|
width: 100%;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
.stigg-paywall-plans-layout {
|
|
18
18
|
flex-wrap: nowrap;
|
|
19
19
|
width: 100%;
|
|
20
20
|
overflow-x: auto;
|
|
21
21
|
justify-content: unset;
|
|
22
|
-
padding:
|
|
22
|
+
padding: 10px 0px 0px 0px;
|
|
23
23
|
}
|
|
24
|
+
|
|
24
25
|
.stigg-paywall-plans-layout .stigg-plan-offering-container:first-of-type {
|
|
25
26
|
margin-left: auto;
|
|
26
27
|
}
|
|
@@ -37,6 +38,6 @@ export const CustomerPortalPaywallLayout = styled(SectionContainer)<{
|
|
|
37
38
|
`}
|
|
38
39
|
|
|
39
40
|
.${STIGG_WATERMARK_CLASSNAME} {
|
|
40
|
-
display: none
|
|
41
|
+
display: none;
|
|
41
42
|
}
|
|
42
43
|
`;
|
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
baseUri={args.baseUri}
|
|
36
|
-
enableEdge={args.disableEdge}>
|
|
36
|
+
enableEdge={!args.disableEdge}>
|
|
37
37
|
<Story />
|
|
38
38
|
</StiggProvider>
|
|
39
39
|
),
|
|
@@ -70,7 +70,7 @@ const Template: ComponentStory<any> = (args) => {
|
|
|
70
70
|
onPlanSelected={(...args) => {
|
|
71
71
|
console.log('onPlanSelected', args);
|
|
72
72
|
}}
|
|
73
|
-
highlightedPlanId="plan-revvenu-
|
|
73
|
+
highlightedPlanId="plan-revvenu-essentials"
|
|
74
74
|
/>
|
|
75
75
|
}
|
|
76
76
|
theme={customerPortalTheme}
|