tf-checkout-react 1.0.102 → 1.0.105

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.
Files changed (80) hide show
  1. package/dist/components/common/RedirectModal.d.ts +7 -0
  2. package/dist/components/ticketsContainer/TicketsSection.d.ts +2 -1
  3. package/dist/components/ticketsContainer/index.d.ts +2 -1
  4. package/dist/images/done.svg +3 -3
  5. package/dist/index.d.ts +1 -0
  6. package/dist/tf-checkout-react.cjs.development.js +71 -25
  7. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  8. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  9. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  10. package/dist/tf-checkout-react.esm.js +71 -26
  11. package/dist/tf-checkout-react.esm.js.map +1 -1
  12. package/package.json +89 -89
  13. package/src/.d.ts +2 -2
  14. package/src/api/index.ts +293 -278
  15. package/src/assets/images/done.svg +3 -3
  16. package/src/components/billing-info-container/index.tsx +796 -796
  17. package/src/components/billing-info-container/style.css +105 -105
  18. package/src/components/billing-info-container/utils.ts +224 -224
  19. package/src/components/common/CheckboxField.tsx +41 -41
  20. package/src/components/common/CustomField.tsx +84 -84
  21. package/src/components/common/FormikPhoneNumberField.tsx +51 -51
  22. package/src/components/common/Loader.tsx +9 -9
  23. package/src/components/common/RadioField.tsx +35 -35
  24. package/src/components/common/RedirectModal.tsx +43 -0
  25. package/src/components/common/SelectField.tsx +80 -80
  26. package/src/components/common/SnackbarAlert.tsx +53 -53
  27. package/src/components/common/index.tsx +4 -4
  28. package/src/components/confirmModal/index.tsx +51 -51
  29. package/src/components/confirmModal/style.css +21 -21
  30. package/src/components/confirmationContainer/config.ts +72 -72
  31. package/src/components/confirmationContainer/index.tsx +197 -197
  32. package/src/components/confirmationContainer/social-buttons.tsx +94 -94
  33. package/src/components/confirmationContainer/style.css +202 -202
  34. package/src/components/countdown/index.tsx +89 -89
  35. package/src/components/countdown/style.css +9 -9
  36. package/src/components/index.ts +7 -7
  37. package/src/components/loginModal/index.tsx +209 -209
  38. package/src/components/loginModal/style.css +71 -71
  39. package/src/components/myTicketsContainer/index.tsx +196 -196
  40. package/src/components/myTicketsContainer/row.tsx +41 -41
  41. package/src/components/myTicketsContainer/style.css +39 -39
  42. package/src/components/myTicketsContainer/tableConfig.tsx +34 -34
  43. package/src/components/orderDetailsContainer/index.tsx +249 -249
  44. package/src/components/orderDetailsContainer/style.css +72 -72
  45. package/src/components/orderDetailsContainer/ticketsTable.tsx +124 -124
  46. package/src/components/paymentContainer/index.tsx +284 -284
  47. package/src/components/registerModal/index.tsx +190 -190
  48. package/src/components/stripePayment/index.tsx +253 -253
  49. package/src/components/stripePayment/style.css +59 -59
  50. package/src/components/ticketResale/index.tsx +56 -56
  51. package/src/components/ticketResaleModal/index.tsx +210 -210
  52. package/src/components/ticketResaleModal/style.css +28 -28
  53. package/src/components/ticketsContainer/PromoCodeSection.tsx +99 -99
  54. package/src/components/ticketsContainer/ReferralLogic.tsx +33 -33
  55. package/src/components/ticketsContainer/TicketRow.tsx +83 -83
  56. package/src/components/ticketsContainer/TicketsSection.tsx +85 -81
  57. package/src/components/ticketsContainer/index.tsx +430 -430
  58. package/src/components/ticketsContainer/style.css +181 -181
  59. package/src/components/ticketsContainer/utils.ts +11 -11
  60. package/src/components/timerWidget/index.tsx +70 -70
  61. package/src/components/timerWidget/style.css +26 -26
  62. package/src/components/waitingList/index.tsx +178 -178
  63. package/src/components/waitingList/style.css +26 -26
  64. package/src/env.ts +20 -20
  65. package/src/index.ts +14 -13
  66. package/src/normalizers/index.ts +45 -45
  67. package/src/types/billing-info-data.ts +37 -37
  68. package/src/types/payment-field.ts +7 -7
  69. package/src/types/referral-promotion.ts +7 -7
  70. package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +59 -59
  71. package/src/utils/downloadPDF.tsx +30 -30
  72. package/src/utils/formikErrorFocus.ts +24 -24
  73. package/src/utils/getImage.ts +14 -14
  74. package/src/utils/getQueryVariable.ts +13 -13
  75. package/src/utils/index.ts +5 -5
  76. package/src/utils/setConfigs.ts +26 -26
  77. package/src/utils/showZero.tsx +10 -10
  78. package/src/validators/index.ts +20 -20
  79. package/src/.DS_Store +0 -0
  80. package/src/components/.DS_Store +0 -0
package/package.json CHANGED
@@ -1,89 +1,89 @@
1
- {
2
- "version": "1.0.102",
3
- "license": "MIT",
4
- "main": "dist/index.js",
5
- "typings": "dist/index.d.ts",
6
- "files": [
7
- "dist",
8
- "src"
9
- ],
10
- "engines": {
11
- "node": ">=10"
12
- },
13
- "scripts": {
14
- "start": "tsdx watch",
15
- "build": "tsdx build",
16
- "test": "tsdx test --passWithNoTests",
17
- "lint": "tsdx lint",
18
- "prepare": "tsdx build",
19
- "size": "size-limit",
20
- "analyze": "size-limit --why"
21
- },
22
- "peerDependencies": {
23
- "react": ">=16"
24
- },
25
- "husky": {
26
- "hooks": {
27
- "pre-commit": "tsdx lint"
28
- }
29
- },
30
- "prettier": {
31
- "printWidth": 80,
32
- "semi": false,
33
- "singleQuote": true,
34
- "trailingComma": "es5"
35
- },
36
- "name": "tf-checkout-react",
37
- "author": "ft-worker",
38
- "module": "dist/tf-checkout-react.esm.js",
39
- "size-limit": [
40
- {
41
- "path": "dist/tf-checkout-react.cjs.production.min.js",
42
- "limit": "10 KB"
43
- },
44
- {
45
- "path": "dist/tf-checkout-react.esm.js",
46
- "limit": "10 KB"
47
- }
48
- ],
49
- "devDependencies": {
50
- "@size-limit/preset-small-lib": "^6.0.4",
51
- "@types/lodash": "^4.14.176",
52
- "@types/react": "^17.0.34",
53
- "@types/react-dom": "^17.0.11",
54
- "@typescript-eslint/parser": "5.4.0",
55
- "husky": "^7.0.4",
56
- "react": "^17.0.2",
57
- "react-dom": "^17.0.2",
58
- "rollup-plugin-postcss": "^4.0.1",
59
- "rollup-plugin-static-files": "^0.2.0",
60
- "size-limit": "^6.0.4",
61
- "tsdx": "^0.14.1",
62
- "tslib": "^2.3.1",
63
- "typescript": "^4.4.4"
64
- },
65
- "dependencies": {
66
- "@emotion/react": "^11.7.0",
67
- "@emotion/styled": "^11.6.0",
68
- "@mui/lab": "^5.0.0-alpha.55",
69
- "@mui/material": "^5.2.2",
70
- "@mui/styles": "^5.2.2",
71
- "@stripe/react-stripe-js": "^1.6.0",
72
- "@stripe/stripe-js": "^1.21.1",
73
- "axios": "^0.24.0",
74
- "clsx": "^1.1.1",
75
- "formik": "^2.2.9",
76
- "jwt-decode": "^3.1.2",
77
- "lodash": "^4.17.21",
78
- "lodash-es": "^4.17.21",
79
- "material-ui-phone-number": "^3.0.0",
80
- "moment-timezone": "^0.5.34",
81
- "nanoid": "^3.1.30",
82
- "prop-types": "^15.7.2",
83
- "react-bootstrap": "^2.0.2",
84
- "react-countdown": "^2.3.2",
85
- "react-inlinesvg": "^2.3.0",
86
- "react-share": "^4.4.0",
87
- "yup": "^0.32.11"
88
- }
89
- }
1
+ {
2
+ "version": "1.0.105",
3
+ "license": "MIT",
4
+ "main": "dist/index.js",
5
+ "typings": "dist/index.d.ts",
6
+ "files": [
7
+ "dist",
8
+ "src"
9
+ ],
10
+ "engines": {
11
+ "node": ">=10"
12
+ },
13
+ "scripts": {
14
+ "start": "tsdx watch",
15
+ "build": "tsdx build",
16
+ "test": "tsdx test --passWithNoTests",
17
+ "lint": "tsdx lint",
18
+ "prepare": "tsdx build",
19
+ "size": "size-limit",
20
+ "analyze": "size-limit --why"
21
+ },
22
+ "peerDependencies": {
23
+ "react": ">=16"
24
+ },
25
+ "husky": {
26
+ "hooks": {
27
+ "pre-commit": "tsdx lint"
28
+ }
29
+ },
30
+ "prettier": {
31
+ "printWidth": 80,
32
+ "semi": false,
33
+ "singleQuote": true,
34
+ "trailingComma": "es5"
35
+ },
36
+ "name": "tf-checkout-react",
37
+ "author": "ft-worker",
38
+ "module": "dist/tf-checkout-react.esm.js",
39
+ "size-limit": [
40
+ {
41
+ "path": "dist/tf-checkout-react.cjs.production.min.js",
42
+ "limit": "10 KB"
43
+ },
44
+ {
45
+ "path": "dist/tf-checkout-react.esm.js",
46
+ "limit": "10 KB"
47
+ }
48
+ ],
49
+ "devDependencies": {
50
+ "@size-limit/preset-small-lib": "^6.0.4",
51
+ "@types/lodash": "^4.14.176",
52
+ "@types/react": "^17.0.34",
53
+ "@types/react-dom": "^17.0.11",
54
+ "@typescript-eslint/parser": "5.4.0",
55
+ "husky": "^7.0.4",
56
+ "react": "^17.0.2",
57
+ "react-dom": "^17.0.2",
58
+ "rollup-plugin-postcss": "^4.0.1",
59
+ "rollup-plugin-static-files": "^0.2.0",
60
+ "size-limit": "^6.0.4",
61
+ "tsdx": "^0.14.1",
62
+ "tslib": "^2.3.1",
63
+ "typescript": "^4.4.4"
64
+ },
65
+ "dependencies": {
66
+ "@emotion/react": "^11.7.0",
67
+ "@emotion/styled": "^11.6.0",
68
+ "@mui/lab": "^5.0.0-alpha.55",
69
+ "@mui/material": "^5.2.2",
70
+ "@mui/styles": "^5.2.2",
71
+ "@stripe/react-stripe-js": "^1.6.0",
72
+ "@stripe/stripe-js": "^1.21.1",
73
+ "axios": "^0.24.0",
74
+ "clsx": "^1.1.1",
75
+ "formik": "^2.2.9",
76
+ "jwt-decode": "^3.1.2",
77
+ "lodash": "^4.17.21",
78
+ "lodash-es": "^4.17.21",
79
+ "material-ui-phone-number": "^3.0.0",
80
+ "moment-timezone": "^0.5.34",
81
+ "nanoid": "^3.1.30",
82
+ "prop-types": "^15.7.2",
83
+ "react-bootstrap": "^2.0.2",
84
+ "react-countdown": "^2.3.2",
85
+ "react-inlinesvg": "^2.3.0",
86
+ "react-share": "^4.4.0",
87
+ "yup": "^0.32.11"
88
+ }
89
+ }
package/src/.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare module '*.css';
2
- declare module '*.png';
1
+ declare module '*.css';
2
+ declare module '*.png';