@duffel/components 1.3.1-beta.0 → 2.0.2

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.
@@ -10,6 +10,22 @@ object-assign
10
10
  http://jedwatson.github.io/classnames
11
11
  */
12
12
 
13
+ /*!
14
+ * The buffer module from node.js, for the browser.
15
+ *
16
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
17
+ * @license MIT
18
+ */
19
+
20
+ /*!
21
+ * The buffer module from node.js, for the browser.
22
+ *
23
+ * @author Feross Aboukhadijeh <https://feross.org>
24
+ * @license MIT
25
+ */
26
+
27
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
28
+
13
29
  /** @license React v0.20.2
14
30
  * scheduler.production.min.js
15
31
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duffel/components",
3
- "version": "1.3.1-beta.0",
3
+ "version": "2.0.2",
4
4
  "description": "Set of pre-built UI, like seat selection, for building with Duffel API",
5
5
  "main": "dist/duffel-components.js",
6
6
  "module": "dist/duffel-components.esm.js",
@@ -9,11 +9,10 @@
9
9
  "unpkg:min": "dist/duffel-components.umd.min.js",
10
10
  "types": "dist/duffel-components.d.ts",
11
11
  "scripts": {
12
- "prebuild": "rimraf dist",
13
- "build": "webpack --mode production --config webpack.config.babel.js",
12
+ "build": "webpack --mode production --config webpack.config.babel.js && yarn create-dts",
14
13
  "lint": "eslint . --ext .ts,.tsx",
15
14
  "test": "jest",
16
- "pre-push-check": "yarn lint && yarn test --passWithNoTests && yarn build",
15
+ "pre-commit-check": "yarn lint-staged && yarn test --passWithNoTests && yarn build && yarn e2e",
17
16
  "prepare": "husky install",
18
17
  "get-version": "echo $npm_package_version",
19
18
  "release": "npx semantic-release",
@@ -21,19 +20,34 @@
21
20
  "commitlint": "commitlint",
22
21
  "storybook": "start-storybook -p 6006",
23
22
  "build-storybook": "build-storybook",
24
- "chromatic": "npx chromatic --project-token=d6bac49f47e3"
23
+ "chromatic": "npx chromatic",
24
+ "create-dts": "dts-bundle-generator -o dist/duffel-components.d.ts src/index.ts --no-check",
25
+ "server": "http-server -p 1234",
26
+ "e2e": "npx playwright test",
27
+ "e2e:debug": "PWDEBUG=1 npx playwright test",
28
+ "prettier": "prettier --write --loglevel=warn .",
29
+ "prettier-check": "prettier --check ."
25
30
  },
26
31
  "config": {
27
32
  "commitizen": {
28
33
  "path": "@commitlint/cz-commitlint"
29
34
  }
30
35
  },
36
+ "lint-staged": {
37
+ "*.{ts,tsx}": [
38
+ "eslint",
39
+ "prettier --write"
40
+ ],
41
+ "*.{js,jsx,md,yml,yaml}": [
42
+ "prettier --write"
43
+ ]
44
+ },
31
45
  "repository": {
32
46
  "type": "git",
33
47
  "url": "git+https://github.com/duffelhq/components-javascript.git"
34
48
  },
35
49
  "files": [
36
- "dist"
50
+ "dist/**"
37
51
  ],
38
52
  "peerDependencies": {
39
53
  "@popperjs/core": "^2.10.1",
@@ -61,51 +75,67 @@
61
75
  "smoothscroll-polyfill": "^0.4.4"
62
76
  },
63
77
  "devDependencies": {
64
- "@babel/core": "^7.15.5",
65
- "@babel/plugin-proposal-unicode-property-regex": "^7.14.5",
66
- "@babel/preset-env": "^7.15.4",
67
- "@babel/preset-react": "^7.14.5",
68
- "@babel/preset-typescript": "^7.14.5",
69
- "@commitlint/cli": "^13.1.0",
70
- "@commitlint/config-angular": "^13.2.0",
71
- "@commitlint/cz-commitlint": "^13.1.0",
72
- "@storybook/addon-actions": "^6.3.8",
73
- "@storybook/addon-controls": "^6.3.8",
74
- "@storybook/addon-essentials": "^6.3.8",
75
- "@storybook/addon-links": "^6.3.8",
78
+ "@babel/core": "^7.16.0",
79
+ "@babel/plugin-proposal-unicode-property-regex": "^7.16.0",
80
+ "@babel/preset-env": "^7.16.0",
81
+ "@babel/preset-react": "^7.16.0",
82
+ "@babel/register": "^7.16.0",
83
+ "@commitlint/cli": "^15.0.0",
84
+ "@commitlint/config-angular": "^15.0.0",
85
+ "@commitlint/cz-commitlint": "^15.0.0",
86
+ "@playwright/test": "^1.16.3",
87
+ "@storybook/addon-actions": "^6.4.9",
88
+ "@storybook/addon-controls": "^6.4.9",
89
+ "@storybook/addon-essentials": "^6.4.9",
90
+ "@storybook/addon-links": "^6.4.9",
76
91
  "@storybook/addon-postcss": "^2.0.0",
77
- "@storybook/react": "^6.3.8",
92
+ "@storybook/builder-webpack5": "^6.4.9",
93
+ "@storybook/manager-webpack5": "^6.4.9",
94
+ "@storybook/react": "^6.4.9",
78
95
  "@testing-library/jest-dom": "^5.14.1",
79
96
  "@testing-library/react": "^12.0.0",
80
97
  "@types/jest": "^27.0.1",
81
98
  "@types/lodash": "^4.14.170",
99
+ "@types/node": "^14.0.10",
82
100
  "@types/react-dom": "^17.0.7",
83
- "@typescript-eslint/eslint-plugin": "^4.30.0",
101
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
84
102
  "@typescript-eslint/parser": "^4.30.0",
85
103
  "babel-loader": "^8.2.2",
86
104
  "babel-plugin-module-resolver": "^4.1.0",
87
105
  "chromatic": "^6.0.4",
88
106
  "clean-webpack-plugin": "^4.0.0",
89
107
  "commitizen": "^4.2.4",
108
+ "css-loader": "^6.5.1",
90
109
  "dotenv": "^10.0.0",
110
+ "dts-bundle-generator": "^5.9.0",
91
111
  "eslint": "^7.26.0",
112
+ "eslint-config-prettier": "^8.3.0",
92
113
  "eslint-plugin-react-hooks": "^4.2.0",
93
114
  "eslint-plugin-spellcheck": "^0.0.19",
115
+ "eslint-plugin-storybook": "^0.5.3",
116
+ "fork-ts-checker-webpack-plugin": "^6.4.0",
117
+ "http-server": "^14.0.0",
94
118
  "husky": "^7.0.0",
119
+ "inquirer": "^8.0.0",
95
120
  "jest": "^26.6.3",
121
+ "lint-staged": "^12.0.1",
96
122
  "lodash": "^4.17.21",
123
+ "mini-css-extract-plugin": "^2.4.4",
124
+ "node-polyfill-webpack-plugin": "^1.1.4",
97
125
  "postcss": "^8.3.5",
126
+ "postcss-combine-duplicated-selectors": "^10.0.3",
98
127
  "postcss-discard-duplicates": "^5.0.1",
99
128
  "postcss-import": "^14.0.2",
100
129
  "postcss-loader": "^6.2.0",
101
130
  "postcss-nested": "^5.0.5",
131
+ "prettier": "^2.4.1",
102
132
  "prop-types": "^15.7.2",
103
- "rimraf": "^3.0.2",
104
133
  "ts-jest": "^26.5.6",
105
134
  "ts-loader": "^9.2.6",
135
+ "ts-node": "^10.4.0",
106
136
  "tslib": "^2.3.1",
107
137
  "types-webpack-bundler": "^1.0.2",
108
- "typescript": "^4.3.2",
138
+ "typescript": "^4.4.4",
109
139
  "webpack": "^5.61.0",
110
140
  "webpack-cli": "^4.9.1",
111
141
  "webpack-node-externals": "^3.0.0"
@@ -140,6 +170,14 @@
140
170
  "changelogFile": "CHANGELOG.md"
141
171
  }
142
172
  ],
173
+ [
174
+ "@semantic-release/git",
175
+ {
176
+ "assets": [
177
+ "CHANGELOG.md"
178
+ ]
179
+ }
180
+ ],
143
181
  "@semantic-release/npm",
144
182
  "@semantic-release/github"
145
183
  ],
@@ -160,7 +198,9 @@
160
198
  "duffel",
161
199
  "duffelhq",
162
200
  "seat",
163
- "seatmap"
201
+ "seatmap",
202
+ "payment",
203
+ "payments"
164
204
  ],
165
205
  "author": "Duffel Technology Limited <help@duffel.com> (http://duffel.com)",
166
206
  "license": "MIT",