@duffel/components 3.1.3 → 3.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.
Files changed (330) hide show
  1. package/components/DuffelAncillaries/Card.d.ts +14 -0
  2. package/components/DuffelAncillaries/Counter.d.ts +10 -0
  3. package/components/DuffelAncillaries/DuffelAncillaries.d.ts +3 -0
  4. package/components/DuffelAncillaries/DuffelAncillariesCustomElement.d.ts +12 -0
  5. package/components/DuffelAncillaries/bags/BaggageSelectionCard.d.ts +11 -0
  6. package/components/DuffelAncillaries/bags/BaggageSelectionController.d.ts +13 -0
  7. package/components/DuffelAncillaries/bags/BaggageSelectionModal.d.ts +11 -0
  8. package/components/DuffelAncillaries/bags/BaggageSelectionModalBody.d.ts +11 -0
  9. package/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.d.ts +13 -0
  10. package/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.d.ts +14 -0
  11. package/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.d.ts +9 -0
  12. package/components/DuffelAncillaries/bags/IncludedBaggageBanner.d.ts +7 -0
  13. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.d.ts +10 -0
  14. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.d.ts +11 -0
  15. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.d.ts +7 -0
  16. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.d.ts +4 -0
  17. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.d.ts +11 -0
  18. package/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.d.ts +2 -0
  19. package/components/DuffelAncillaries/seats/Amenity.d.ts +6 -0
  20. package/components/DuffelAncillaries/seats/DeckSelect.d.ts +15 -0
  21. package/components/DuffelAncillaries/seats/Element.d.ts +15 -0
  22. package/components/DuffelAncillaries/seats/EmptyElement.d.ts +2 -0
  23. package/components/DuffelAncillaries/seats/ExitElement.d.ts +6 -0
  24. package/components/DuffelAncillaries/seats/Legend.d.ts +12 -0
  25. package/components/DuffelAncillaries/seats/Row.d.ts +13 -0
  26. package/components/DuffelAncillaries/seats/RowSection.d.ts +17 -0
  27. package/components/DuffelAncillaries/seats/SeatElement.d.ts +13 -0
  28. package/components/DuffelAncillaries/seats/SeatInfo.d.ts +7 -0
  29. package/components/DuffelAncillaries/seats/SeatMap.d.ts +12 -0
  30. package/components/DuffelAncillaries/seats/SeatMapUnavailable.d.ts +2 -0
  31. package/components/DuffelAncillaries/seats/SeatSelectionCard.d.ts +13 -0
  32. package/components/DuffelAncillaries/seats/SeatSelectionModal.d.ts +13 -0
  33. package/components/DuffelAncillaries/seats/SeatSelectionModalBody.d.ts +4 -0
  34. package/components/DuffelAncillaries/seats/SeatSelectionModalFooter.d.ts +16 -0
  35. package/components/DuffelAncillaries/seats/SeatSelectionModalHeader.d.ts +10 -0
  36. package/components/DuffelAncillaries/seats/SeatUnavailable.d.ts +5 -0
  37. package/components/DuffelPayments/DuffelPayments.d.ts +11 -0
  38. package/components/DuffelPayments/DuffelPaymentsCustomElement.d.ts +13 -0
  39. package/components/PlacesLookup/PlacesLookup.d.ts +20 -0
  40. package/components/shared/AnimatedLoaderEllipsis.d.ts +2 -0
  41. package/components/shared/Button.d.ts +23 -0
  42. package/components/shared/ErrorBoundary.d.ts +13 -0
  43. package/components/shared/FetchOfferErrorState.d.ts +5 -0
  44. package/components/shared/Icon.d.ts +46 -0
  45. package/components/shared/IconButton.d.ts +16 -0
  46. package/components/shared/Modal.d.ts +11 -0
  47. package/components/shared/NonIdealState.d.ts +4 -0
  48. package/components/shared/Stamp.d.ts +7 -0
  49. package/components/shared/Tabs.d.ts +16 -0
  50. package/custom-elements.d.ts +6 -0
  51. package/custom-elements.js +40 -0
  52. package/custom-elements.js.map +7 -0
  53. package/index.js +40 -0
  54. package/index.js.map +7 -0
  55. package/lib/captureErrorInSentry.d.ts +1 -0
  56. package/lib/compileCreateOrderPayload.d.ts +14 -0
  57. package/lib/createPriceFormatters.d.ts +12 -0
  58. package/lib/fetchFromDuffelAPI.d.ts +8 -0
  59. package/lib/fetchFromFixtures.d.ts +4 -0
  60. package/lib/formatAvailableServices.d.ts +12 -0
  61. package/lib/formatDate.d.ts +2 -0
  62. package/lib/formatSeatMaps.d.ts +4 -0
  63. package/lib/getBaggageServiceDescription.d.ts +2 -0
  64. package/lib/getCabinsForSegmentAndDeck.d.ts +2 -0
  65. package/lib/getCurrencyForSeatMaps.d.ts +10 -0
  66. package/lib/getCurrencyForServices.d.ts +11 -0
  67. package/lib/getFirstSeatElementMatchingCriteria.d.ts +3 -0
  68. package/lib/getPassengerBySegmentList.d.ts +6 -0
  69. package/lib/getPassengerInitials.d.ts +1 -0
  70. package/lib/getPassengerMapById.d.ts +3 -0
  71. package/lib/getPassengerName.d.ts +3 -0
  72. package/lib/getRowNumber.d.ts +2 -0
  73. package/lib/getSegmentList.d.ts +2 -0
  74. package/lib/getServicePriceMapById.d.ts +3 -0
  75. package/lib/getSymbols.d.ts +2 -0
  76. package/lib/getTotalAmountForServices.d.ts +6 -0
  77. package/lib/getTotalQuantity.d.ts +2 -0
  78. package/lib/hasHighLuminance.d.ts +1 -0
  79. package/lib/hasService.d.ts +2 -0
  80. package/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.d.ts +3 -0
  81. package/lib/hasWings.d.ts +2 -0
  82. package/lib/isBaggageService.d.ts +2 -0
  83. package/lib/isCancelForAnyReasonService.d.ts +2 -0
  84. package/lib/isFixtureOfferId.d.ts +2 -0
  85. package/lib/isPayloadComplete.d.ts +2 -0
  86. package/lib/isSeatElement.d.ts +2 -0
  87. package/lib/logging.d.ts +46 -0
  88. package/lib/moneyStringFormatter.d.ts +8 -0
  89. package/lib/offerIsExpired.d.ts +2 -0
  90. package/lib/retrieveOffer.d.ts +2 -0
  91. package/lib/retrieveOfferFromDuffelAPI.d.ts +1 -0
  92. package/lib/retrieveSeatMaps.d.ts +2 -0
  93. package/lib/retrieveSeatMapsFromDuffelAPI.d.ts +1 -0
  94. package/lib/setBodyScrollability.d.ts +1 -0
  95. package/lib/validateProps.d.ts +7 -0
  96. package/lib/withPlural.d.ts +1 -0
  97. package/package.json +84 -134
  98. package/tsconfig.tsbuildinfo +1 -0
  99. package/types/Aircraft.d.ts +14 -0
  100. package/types/Airline.d.ts +14 -0
  101. package/types/Airport.d.ts +44 -0
  102. package/types/City.d.ts +18 -0
  103. package/types/CreateOrderPayload.d.ts +72 -0
  104. package/types/CurrencyConversion.d.ts +10 -0
  105. package/types/DuffelAncillariesProps.d.ts +70 -0
  106. package/types/Offer.d.ts +711 -0
  107. package/types/Order.d.ts +8 -0
  108. package/types/Place.d.ts +8 -0
  109. package/types/SeatMap.d.ts +190 -0
  110. package/.circleci/config.yml +0 -67
  111. package/.eslintrc.js +0 -47
  112. package/.github/CODEOWNERS +0 -4
  113. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -29
  114. package/.github/renovate.json +0 -12
  115. package/.github/workflows/autoapprove.yml +0 -18
  116. package/.github/workflows/release.yml +0 -89
  117. package/.husky/post-commit +0 -4
  118. package/.husky/pre-commit +0 -4
  119. package/.nvmrc +0 -1
  120. package/.prettierignore +0 -2
  121. package/.storybook/Storyshots.test.js +0 -3
  122. package/.storybook/__snapshots__/Storyshots.test.js.snap +0 -67984
  123. package/.storybook/main.ts +0 -33
  124. package/.storybook/preview.tsx +0 -28
  125. package/.tool-versions +0 -1
  126. package/CONTRIBUTING.md +0 -83
  127. package/README.md +0 -68
  128. package/__mocks__/styleMock.js +0 -6
  129. package/babel.config.js +0 -20
  130. package/commitlint.config.js +0 -4
  131. package/config/esbuild.base.config.js +0 -18
  132. package/config/esbuild.cdn.config.js +0 -51
  133. package/config/esbuild.dev.config.js +0 -46
  134. package/config/esbuild.react.config.js +0 -42
  135. package/data/airports.csv +0 -9084
  136. package/data/cities.csv +0 -256
  137. package/jest.config.ts +0 -14
  138. package/react-dist/index.js +0 -37
  139. package/scripts/generate-fixture.ts +0 -200
  140. package/scripts/setup-suggestion-data.ts +0 -100
  141. package/scripts/upload-to-cdn.sh +0 -34
  142. package/scripts.tsconfig.json +0 -11
  143. package/src/components/DuffelAncillaries/Card.tsx +0 -126
  144. package/src/components/DuffelAncillaries/Counter.tsx +0 -40
  145. package/src/components/DuffelAncillaries/DuffelAncillaries.tsx +0 -350
  146. package/src/components/DuffelAncillaries/DuffelAncillariesCustomElement.tsx +0 -124
  147. package/src/components/DuffelAncillaries/bags/BaggageSelectionCard.tsx +0 -101
  148. package/src/components/DuffelAncillaries/bags/BaggageSelectionController.tsx +0 -88
  149. package/src/components/DuffelAncillaries/bags/BaggageSelectionModal.tsx +0 -81
  150. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBody.tsx +0 -60
  151. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalBodyPassenger.tsx +0 -122
  152. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalFooter.tsx +0 -88
  153. package/src/components/DuffelAncillaries/bags/BaggageSelectionModalHeader.tsx +0 -82
  154. package/src/components/DuffelAncillaries/bags/IncludedBaggageBanner.tsx +0 -51
  155. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionCard.tsx +0 -90
  156. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModal.tsx +0 -63
  157. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBody.tsx +0 -56
  158. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalBodyListItem.tsx +0 -11
  159. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalFooter.tsx +0 -74
  160. package/src/components/DuffelAncillaries/cancel_for_any_reason/CfarSelectionModalHeader.tsx +0 -9
  161. package/src/components/DuffelAncillaries/seats/Amenity.tsx +0 -21
  162. package/src/components/DuffelAncillaries/seats/DeckSelect.tsx +0 -27
  163. package/src/components/DuffelAncillaries/seats/Element.tsx +0 -52
  164. package/src/components/DuffelAncillaries/seats/EmptyElement.tsx +0 -5
  165. package/src/components/DuffelAncillaries/seats/ExitElement.tsx +0 -17
  166. package/src/components/DuffelAncillaries/seats/Legend.tsx +0 -60
  167. package/src/components/DuffelAncillaries/seats/Row.tsx +0 -47
  168. package/src/components/DuffelAncillaries/seats/RowSection.tsx +0 -78
  169. package/src/components/DuffelAncillaries/seats/SeatElement.tsx +0 -120
  170. package/src/components/DuffelAncillaries/seats/SeatInfo.tsx +0 -32
  171. package/src/components/DuffelAncillaries/seats/SeatMap.tsx +0 -85
  172. package/src/components/DuffelAncillaries/seats/SeatMapUnavailable.tsx +0 -21
  173. package/src/components/DuffelAncillaries/seats/SeatSelectionCard.tsx +0 -103
  174. package/src/components/DuffelAncillaries/seats/SeatSelectionModal.tsx +0 -142
  175. package/src/components/DuffelAncillaries/seats/SeatSelectionModalBody.tsx +0 -13
  176. package/src/components/DuffelAncillaries/seats/SeatSelectionModalFooter.tsx +0 -89
  177. package/src/components/DuffelAncillaries/seats/SeatSelectionModalHeader.tsx +0 -97
  178. package/src/components/DuffelAncillaries/seats/SeatUnavailable.tsx +0 -14
  179. package/src/components/DuffelPayments/DuffelPayments.tsx +0 -224
  180. package/src/components/DuffelPayments/DuffelPaymentsCustomElement.tsx +0 -130
  181. package/src/components/PlacesLookup/PlacesLookup.tsx +0 -123
  182. package/src/components/shared/AnimatedLoaderEllipsis.tsx +0 -5
  183. package/src/components/shared/Button.tsx +0 -63
  184. package/src/components/shared/ErrorBoundary.tsx +0 -54
  185. package/src/components/shared/FetchOfferErrorState.tsx +0 -35
  186. package/src/components/shared/Icon.tsx +0 -151
  187. package/src/components/shared/IconButton.tsx +0 -42
  188. package/src/components/shared/Modal.tsx +0 -40
  189. package/src/components/shared/NonIdealState.tsx +0 -28
  190. package/src/components/shared/Stamp.tsx +0 -29
  191. package/src/components/shared/Tabs.tsx +0 -36
  192. package/src/custom-elements.ts +0 -13
  193. package/src/examples/client-side/README.md +0 -30
  194. package/src/examples/client-side/index.html +0 -57
  195. package/src/examples/full-stack/README.md +0 -34
  196. package/src/examples/full-stack/index.html +0 -48
  197. package/src/examples/full-stack/server.mjs +0 -158
  198. package/src/examples/just-typescript/README.md +0 -37
  199. package/src/examples/just-typescript/package.json +0 -16
  200. package/src/examples/just-typescript/src/index.html +0 -23
  201. package/src/examples/just-typescript/src/index.ts +0 -36
  202. package/src/examples/next/README.md +0 -28
  203. package/src/examples/next/next-env.d.ts +0 -5
  204. package/src/examples/next/next.config.js +0 -4
  205. package/src/examples/next/package.json +0 -24
  206. package/src/examples/next/src/app/DuffelComponents.tsx +0 -40
  207. package/src/examples/next/src/app/layout.tsx +0 -18
  208. package/src/examples/next/src/app/page.tsx +0 -9
  209. package/src/examples/next/tsconfig.json +0 -27
  210. package/src/examples/payments-custom-element/README.md +0 -17
  211. package/src/examples/payments-custom-element/index.html +0 -43
  212. package/src/examples/payments-just-typescript/README.md +0 -37
  213. package/src/examples/payments-just-typescript/package.json +0 -16
  214. package/src/examples/payments-just-typescript/src/index.html +0 -23
  215. package/src/examples/payments-just-typescript/src/index.ts +0 -18
  216. package/src/examples/react-app/README.md +0 -37
  217. package/src/examples/react-app/package.json +0 -20
  218. package/src/examples/react-app/src/index.html +0 -19
  219. package/src/examples/react-app/src/index.tsx +0 -48
  220. package/src/fixtures/offers/off_0000AUde3KwTztSRK1cznH.json +0 -497
  221. package/src/fixtures/offers/off_0000AVx4lUFFKW8PsPeQeQ.json +0 -307
  222. package/src/fixtures/offers/off_1.json +0 -488
  223. package/src/fixtures/passengers/mock_passengers.ts +0 -26
  224. package/src/fixtures/seat-maps/off_0000AUde3KwTztSRK1cznH.json +0 -6852
  225. package/src/fixtures/seat-maps/off_0000AVx4lUFFKW8PsPeQeQ.json +0 -1
  226. package/src/fixtures/seat-maps/off_1.json +0 -6852
  227. package/src/lib/captureErrorInSentry.ts +0 -42
  228. package/src/lib/compileCreateOrderPayload.ts +0 -63
  229. package/src/lib/createPriceFormatters.ts +0 -73
  230. package/src/lib/fetchFromDuffelAPI.ts +0 -54
  231. package/src/lib/fetchFromFixtures.ts +0 -18
  232. package/src/lib/formatAvailableServices.ts +0 -91
  233. package/src/lib/formatDate.ts +0 -20
  234. package/src/lib/formatSeatMaps.ts +0 -81
  235. package/src/lib/getBaggageServiceDescription.ts +0 -39
  236. package/src/lib/getCabinsForSegmentAndDeck.ts +0 -4
  237. package/src/lib/getCurrencyForSeatMaps.ts +0 -22
  238. package/src/lib/getCurrencyForServices.ts +0 -24
  239. package/src/lib/getFirstSeatElementMatchingCriteria.ts +0 -22
  240. package/src/lib/getPassengerBySegmentList.ts +0 -10
  241. package/src/lib/getPassengerInitials.ts +0 -6
  242. package/src/lib/getPassengerMapById.ts +0 -17
  243. package/src/lib/getPassengerName.ts +0 -41
  244. package/src/lib/getRowNumber.ts +0 -16
  245. package/src/lib/getSegmentList.ts +0 -7
  246. package/src/lib/getServicePriceMapById.ts +0 -20
  247. package/src/lib/getSymbols.ts +0 -22
  248. package/src/lib/getTotalAmountForServices.ts +0 -72
  249. package/src/lib/getTotalQuantity.ts +0 -5
  250. package/src/lib/hasHighLuminance.ts +0 -9
  251. package/src/lib/hasService.ts +0 -24
  252. package/src/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.ts +0 -35
  253. package/src/lib/hasWings.ts +0 -8
  254. package/src/lib/isBaggageService.ts +0 -8
  255. package/src/lib/isCancelForAnyReasonService.ts +0 -9
  256. package/src/lib/isFixtureOfferId.ts +0 -4
  257. package/src/lib/isPayloadComplete.ts +0 -11
  258. package/src/lib/isSeatElement.ts +0 -10
  259. package/src/lib/logging.ts +0 -120
  260. package/src/lib/moneyStringFormatter.ts +0 -34
  261. package/src/lib/offerIsExpired.ts +0 -5
  262. package/src/lib/retrieveOffer.ts +0 -56
  263. package/src/lib/retrieveOfferFromDuffelAPI.ts +0 -13
  264. package/src/lib/retrieveSeatMaps.ts +0 -55
  265. package/src/lib/retrieveSeatMapsFromDuffelAPI.ts +0 -13
  266. package/src/lib/setBodyScrollability.ts +0 -7
  267. package/src/lib/validateProps.ts +0 -37
  268. package/src/lib/withPlural.ts +0 -8
  269. package/src/stories/BaggageSelectionModalHeader.stories.tsx +0 -21
  270. package/src/stories/Button.stories.tsx +0 -91
  271. package/src/stories/DuffelAncillaries.stories.tsx +0 -166
  272. package/src/stories/DuffelPayments.stories.tsx +0 -34
  273. package/src/stories/Icon.stories.tsx +0 -35
  274. package/src/stories/IconButton.stories.tsx +0 -25
  275. package/src/stories/PlacesLookup.stories.tsx +0 -22
  276. package/src/styles/colors.css +0 -22
  277. package/src/styles/components/Amenity.css +0 -23
  278. package/src/styles/components/BaggageDisplay.css +0 -25
  279. package/src/styles/components/Button.css +0 -169
  280. package/src/styles/components/Card.css +0 -52
  281. package/src/styles/components/CfarSelectionModal.css +0 -34
  282. package/src/styles/components/Counter.css +0 -18
  283. package/src/styles/components/DuffelPayments.css +0 -42
  284. package/src/styles/components/IconButton.css +0 -63
  285. package/src/styles/components/Legend.css +0 -62
  286. package/src/styles/components/Loader.css +0 -37
  287. package/src/styles/components/LoadingState.css +0 -87
  288. package/src/styles/components/Modal.css +0 -84
  289. package/src/styles/components/PassengerSelect.css +0 -99
  290. package/src/styles/components/PassengersLayout.css +0 -90
  291. package/src/styles/components/PlacesLookup.css +0 -36
  292. package/src/styles/components/Row.css +0 -70
  293. package/src/styles/components/Seat.css +0 -59
  294. package/src/styles/components/SeatInfo.css +0 -61
  295. package/src/styles/components/SeatMap.css +0 -24
  296. package/src/styles/components/SeatSelect.css +0 -92
  297. package/src/styles/components/Segment.css +0 -17
  298. package/src/styles/components/SelectionSegment.css +0 -10
  299. package/src/styles/components/Summary.css +0 -70
  300. package/src/styles/components/Tabs.css +0 -52
  301. package/src/styles/flex.css +0 -5
  302. package/src/styles/font-families.css +0 -47
  303. package/src/styles/global.css +0 -52
  304. package/src/styles/margin.css +0 -3
  305. package/src/styles/spacing.css +0 -18
  306. package/src/styles/transitions.css +0 -3
  307. package/src/styles/typography.css +0 -13
  308. package/src/tests/components/DuffelAncillaries.test.tsx +0 -342
  309. package/src/tests/lib/createPriceFormatters.test.tsx +0 -152
  310. package/src/tests/lib/formatAvailableServices.test.tsx +0 -79
  311. package/src/tests/lib/formatSeatMaps.test.tsx +0 -49
  312. package/src/tests/lib/getCurrencyForServices.test.tsx +0 -44
  313. package/src/tests/lib/hasServiceOfSameMetadataTypeAlreadyBeenSelected.test.ts +0 -86
  314. package/src/tests/lib/logging.test.tsx +0 -32
  315. package/src/tests/lib/moneyStringFormatter.test.tsx +0 -12
  316. package/src/tests/lib/validateProps.test.tsx +0 -57
  317. package/src/types/Aircraft.ts +0 -16
  318. package/src/types/Airline.ts +0 -16
  319. package/src/types/Airport.ts +0 -54
  320. package/src/types/City.ts +0 -21
  321. package/src/types/CreateOrderPayload.ts +0 -99
  322. package/src/types/CurrencyConversion.ts +0 -10
  323. package/src/types/DuffelAncillariesProps.ts +0 -108
  324. package/src/types/Offer.ts +0 -851
  325. package/src/types/Order.ts +0 -6
  326. package/src/types/Place.ts +0 -6
  327. package/src/types/SeatMap.ts +0 -231
  328. package/tsconfig.json +0 -52
  329. /package/{src/index.ts → index.d.ts} +0 -0
  330. /package/{src/types/index.ts → types/index.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ export declare const captureErrorInSentry: (error: Error) => string;
@@ -0,0 +1,14 @@
1
+ import { CreateOrderPayload, CreateOrderPayloadServices } from "../types/CreateOrderPayload";
2
+ import { DuffelAncillariesProps } from "../types/DuffelAncillariesProps";
3
+ import { Offer } from "../types/Offer";
4
+ import { SeatMap } from "../types/SeatMap";
5
+ interface CompileCreateOrderPayloadInput {
6
+ offer: Offer;
7
+ passengers: DuffelAncillariesProps["passengers"];
8
+ baggageSelectedServices: CreateOrderPayloadServices;
9
+ seatSelectedServices: CreateOrderPayloadServices;
10
+ cfarSelectedServices: CreateOrderPayloadServices;
11
+ seatMaps?: SeatMap[];
12
+ }
13
+ export declare const compileCreateOrderPayload: ({ baggageSelectedServices, seatSelectedServices, cfarSelectedServices, offer, seatMaps, passengers, }: CompileCreateOrderPayloadInput) => Partial<CreateOrderPayload>;
14
+ export {};
@@ -0,0 +1,12 @@
1
+ import { DuffelAncillariesMarkup, DuffelAncillariesPriceFormatters } from "../types/DuffelAncillariesProps";
2
+ /**
3
+ * Creates price formatters from the markup and priceFormatters passed in.
4
+ * Throws an error if both are supplied.
5
+ * If neither are supplied, the priceFormatters will be undefined.
6
+ *
7
+ * @param markup The markup to be applied to the prices of the available services of an offer.
8
+ * @param priceFormatters Price formatters to apply to the prices of the available services of an offer.
9
+ * @returns
10
+ */
11
+ declare const createPriceFormatters: (markup?: DuffelAncillariesMarkup, priceFormatters?: DuffelAncillariesPriceFormatters) => DuffelAncillariesPriceFormatters;
12
+ export { createPriceFormatters };
@@ -0,0 +1,8 @@
1
+ export interface ErrorResponse extends Response {
2
+ data: {
3
+ meta: any;
4
+ errors: any[];
5
+ };
6
+ }
7
+ export declare const isErrorResponse: (response: any) => response is ErrorResponse;
8
+ export declare function fetchFromDuffelAPI(withClientKey: string, path: string, method?: string, body?: string): Promise<any>;
@@ -0,0 +1,4 @@
1
+ import { Offer } from "../types/Offer";
2
+ import { SeatMap } from "../types/SeatMap";
3
+ export declare const importFromOfferFixtures: (offerId: string) => Promise<Offer>;
4
+ export declare const importFromSeatMapsFixtures: (offerId: string) => Promise<SeatMap[]>;
@@ -0,0 +1,12 @@
1
+ import { DuffelAncillariesPriceFormatters } from "../types/DuffelAncillariesProps";
2
+ import { Offer } from "../types/Offer";
3
+ /**
4
+ * Formats the prices of the available services of an offer according to the
5
+ * priceFormatters passed in.
6
+ *
7
+ * @param offer An offer from the Duffel API
8
+ * @param priceFormatters Optional price formatting functions. If not passed in, the offer will be returned unchanged.
9
+ * @returns An offer with the prices of its available services formatted according to the priceFormatters passed in.
10
+ */
11
+ declare const formatAvailableServices: (offer: Offer, priceFormatters?: DuffelAncillariesPriceFormatters) => Offer;
12
+ export { formatAvailableServices };
@@ -0,0 +1,2 @@
1
+ export declare const formatDateString: (dateString: string) => string | undefined;
2
+ export declare const formatDate: (date: Date) => string;
@@ -0,0 +1,4 @@
1
+ import { DuffelAncillariesPriceFormatterForSeats } from "../types/DuffelAncillariesProps";
2
+ import { SeatMap } from "../types/SeatMap";
3
+ declare const formatSeatMaps: (seatMaps: SeatMap[], priceFormatter?: DuffelAncillariesPriceFormatterForSeats) => SeatMap[];
4
+ export { formatSeatMaps };
@@ -0,0 +1,2 @@
1
+ import { OfferAvailableServiceBaggageMetadata } from "../types/Offer";
2
+ export declare const getBaggageServiceDescription: (metadata: OfferAvailableServiceBaggageMetadata) => string | null;
@@ -0,0 +1,2 @@
1
+ import { SeatMap } from "../types/SeatMap";
2
+ export declare const getCabinsForSegmentAndDeck: (forDeck: number, seatMap: SeatMap) => import("../types/SeatMap").SeatMapCabin[];
@@ -0,0 +1,10 @@
1
+ import { SeatMap } from "../types/SeatMap";
2
+ /**
3
+ *
4
+ * Returns the currency of the first service of the given seat maps.
5
+ *
6
+ * @param seatMaps[] Array of seat maps
7
+ * @returns A string representing the currency of the seat maps in the offer.
8
+ */
9
+ declare const getCurrencyForSeatMaps: (seatMaps: SeatMap[]) => string | undefined;
10
+ export { getCurrencyForSeatMaps };
@@ -0,0 +1,11 @@
1
+ import { Offer } from "../types/Offer";
2
+ /**
3
+ *
4
+ * Returns the currency of the first service of the given type in the offer.
5
+ *
6
+ * @param offer An offer
7
+ * @returns A string representing the currency of the services in the offer.
8
+ * @throws If there are no services, or none of the services are of the given type.
9
+ */
10
+ declare const getCurrencyForServices: (offer: Offer, serviceType: string) => string;
11
+ export { getCurrencyForServices };
@@ -0,0 +1,3 @@
1
+ import { SeatMap, SeatMapCabinRowSectionElement } from "../types/SeatMap";
2
+ declare const getFirstSeatElementMatchingCriteria: (seatMaps: SeatMap[], matcher: (element: SeatMapCabinRowSectionElement) => boolean) => SeatMapCabinRowSectionElement | undefined;
3
+ export { getFirstSeatElementMatchingCriteria };
@@ -0,0 +1,6 @@
1
+ import { OfferSliceSegment } from "../types/Offer";
2
+ export declare const getPassengerBySegmentList: (segments: OfferSliceSegment[]) => {
3
+ passenger: import("../types/Offer").OfferSliceSegmentPassenger;
4
+ passengerIndex: number;
5
+ segment: OfferSliceSegment;
6
+ }[];
@@ -0,0 +1 @@
1
+ export declare const getPassengerInitials: (passengerName?: string) => string;
@@ -0,0 +1,3 @@
1
+ import { CreateOrderPayloadPassenger, CreateOrderPayloadPassengers } from "../types/CreateOrderPayload";
2
+ export type PassengerMapById = Record<CreateOrderPayloadPassenger["id"], CreateOrderPayloadPassenger>;
3
+ export declare const getPassengerMapById: (passengers: CreateOrderPayloadPassengers) => PassengerMapById;
@@ -0,0 +1,3 @@
1
+ import { CreateOrderPayloadPassenger } from "../types/CreateOrderPayload";
2
+ import { OfferPassenger } from "../types/Offer";
3
+ export declare const getPassengerName: (createOrderPayloadPassenger: CreateOrderPayloadPassenger, offerPassenger: OfferPassenger | undefined, fallbackIndex: number) => string;
@@ -0,0 +1,2 @@
1
+ import { SeatMapCabinRow } from "../types/SeatMap";
2
+ export declare const getRowNumber: (row: SeatMapCabinRow) => string | null;
@@ -0,0 +1,2 @@
1
+ import { Offer, OfferSliceSegment } from "../types/Offer";
2
+ export declare const getSegmentList: (offer: Offer) => OfferSliceSegment[];
@@ -0,0 +1,3 @@
1
+ import { OfferAvailableService } from "../types/Offer";
2
+ export type ServicePriceMapById = Record<OfferAvailableService["id"], Pick<OfferAvailableService, "total_amount" | "total_currency">>;
3
+ export declare const getServicePriceMapById: (availableServices: OfferAvailableService[]) => ServicePriceMapById;
@@ -0,0 +1,2 @@
1
+ import { SeatMapCabin, SeatMapCabinRowSectionElementAmenity } from "../types/SeatMap";
2
+ export declare const getSymbols: (cabins: SeatMapCabin[]) => Set<SeatMapCabinRowSectionElementAmenity>;
@@ -0,0 +1,6 @@
1
+ import { CreateOrderPayloadServices } from "../types/CreateOrderPayload";
2
+ import { Offer } from "../types/Offer";
3
+ import { SeatMap } from "../types/SeatMap";
4
+ import { ServicePriceMapById } from "./getServicePriceMapById";
5
+ export declare const getTotalAmountForServices: (offer: Offer, selectedServices: CreateOrderPayloadServices, seatMaps?: SeatMap[]) => number;
6
+ export declare const getTotalAmountForServicesWithPriceMap: (servicePriceMap: ServicePriceMapById, selectedServices: CreateOrderPayloadServices, seatMaps?: SeatMap[]) => number;
@@ -0,0 +1,2 @@
1
+ import { CreateOrderPayloadServices } from "../types/CreateOrderPayload";
2
+ export declare const getTotalQuantity: (fromSelectedServices: CreateOrderPayloadServices) => number;
@@ -0,0 +1 @@
1
+ export declare const hasHighLuminance: (accentColor: string) => boolean;
@@ -0,0 +1,2 @@
1
+ import { Offer, OfferAvailableServiceType } from "../types/Offer";
2
+ export declare const hasService: (offer: Offer | undefined, type: OfferAvailableServiceType) => boolean | undefined;
@@ -0,0 +1,3 @@
1
+ import { CreateOrderPayloadServices } from "../types/CreateOrderPayload";
2
+ import { OfferAvailableServiceBaggage } from "../types/Offer";
3
+ export declare const hasServiceOfSameMetadataTypeAlreadyBeenSelected: (selectedServices: CreateOrderPayloadServices, segmentId: string, passengerId: string, availableService: OfferAvailableServiceBaggage) => boolean;
@@ -0,0 +1,2 @@
1
+ import { SeatMapCabin } from "../types/SeatMap";
2
+ export declare const hasWings: (cabin: SeatMapCabin, rowIndex: number) => boolean;
@@ -0,0 +1,2 @@
1
+ import { OfferAvailableBaggageService, OfferAvailableService } from "../types/Offer";
2
+ export declare const isBaggageService: (service: OfferAvailableService) => service is OfferAvailableBaggageService;
@@ -0,0 +1,2 @@
1
+ import { OfferAvailableService, OfferAvailableServiceCancelForAnyReason } from "../types/Offer";
2
+ export declare const isCancelForAnyReasonService: (service: OfferAvailableService) => service is OfferAvailableServiceCancelForAnyReason;
@@ -0,0 +1,2 @@
1
+ import { Offer } from "../types/Offer";
2
+ export declare const isFixtureOfferId: (offerId: Offer["id"]) => boolean;
@@ -0,0 +1,2 @@
1
+ import { CreateOrderPayload } from "../types/CreateOrderPayload";
2
+ export declare const isPayloadComplete: (payload: Partial<CreateOrderPayload>) => payload is CreateOrderPayload;
@@ -0,0 +1,2 @@
1
+ import { SeatMapCabinRowSectionElement, SeatMapCabinRowSectionElementSeat } from "../types/SeatMap";
2
+ export declare function isSeatElement(element: SeatMapCabinRowSectionElement): element is SeatMapCabinRowSectionElementSeat;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * The functions in this file are used to enable logging.
3
+ *
4
+ * Usage:
5
+ *
6
+ * In your app's outermost container, import the LogContext and wrap your app in it:
7
+ *
8
+ * ```jsx
9
+ * import { LogContext, initializeLogger } from '@lib/logging'
10
+ *
11
+ * const logger = initializeLogger(props.debugMode || false)
12
+ *
13
+ * <LogContext.Provider value={logger}>
14
+ * ...
15
+ * </LogContext.Provider>
16
+ * ```
17
+ *
18
+ * Then in your components nested within the above container, import the useLog hook and use it:
19
+ *
20
+ * import { useLog } from '@lib/logging'
21
+ *
22
+ * const { log, logGroup } = useLog()
23
+ * log('This is a log message')
24
+ * logGroup('These messages will be grouped together', ['This is a log message', 'This is another log message'])
25
+ */
26
+ declare const initializeLogger: (debugMode: boolean) => void;
27
+ /**
28
+ * Log a message to the console. Messages will be prefixed with "[Duffel Ancillaries]".
29
+ * @param message The message to print to the console.
30
+ */
31
+ declare const log: (message: any) => void;
32
+ /**
33
+ * Log a series of messages to the console inside a collapsible group.
34
+ * @param groupName The name of the group of messages. This will be prefixed with "[Duffel Ancillaries]".
35
+ * @param messages An array of messages to print to the console, inside the group.
36
+ */
37
+ declare function logGroup(groupName: string, messages: any[]): void;
38
+ /**
39
+ * Log a series of messages to the console inside a collapsible group.
40
+ * @param groupName The name of the group of messages. This will be prefixed with "[Duffel Ancillaries]".
41
+ * @param object An object to print to the console, inside the group.
42
+ */
43
+ declare function logGroup(groupName: string, object: {
44
+ [key: string]: any;
45
+ }): void;
46
+ export { initializeLogger, log, logGroup };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Return a function to format a number into a money amount for a given currency
3
+ *
4
+ * @param currency The ISO-4217 currency code to be used by the formatter
5
+ */
6
+ export declare const moneyStringFormatter: (currency: string, locale?: string, options?: {
7
+ [option: string]: string;
8
+ }) => (value: number) => string;
@@ -0,0 +1,2 @@
1
+ import { Offer } from "../types/Offer";
2
+ export declare const offerIsExpired: (offer: Offer) => boolean | "";
@@ -0,0 +1,2 @@
1
+ import { Offer } from "../types/Offer";
2
+ export declare function retrieveOffer(offer_id: string, client_key: string | null, onError: (error: string) => void, setIsLoading: (isLoading: boolean) => void, onOfferReady: (offer: Offer) => void): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function retrieveOfferFromDuffelAPI(offer_id: string, client_key: string): Promise<any>;
@@ -0,0 +1,2 @@
1
+ import { SeatMap } from "../types/SeatMap";
2
+ export declare function retrieveSeatMaps(offer_id: string, client_key: string | null, onError: () => void, setIsLoading: (isLoading: boolean) => void, onSeatMapReady: (seatMaps: SeatMap[]) => void): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function retrieveSeatMapsFromDuffelAPI(offer_id: string, client_key: string): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare const setBodyScrollability: (shouldScroll: boolean) => void;
@@ -0,0 +1,7 @@
1
+ import { DuffelAncillariesProps, DuffelAncillariesPropsWithClientKeyAndOfferId, DuffelAncillariesPropsWithOfferIdForFixture, DuffelAncillariesPropsWithOffersAndSeatMaps, DuffelAncillariesPropWithOfferAndClientKey } from "../types/DuffelAncillariesProps";
2
+ export declare const areDuffelAncillariesPropsValid: (props: DuffelAncillariesProps) => boolean;
3
+ export declare const hasCommonRequiredProps: (props: DuffelAncillariesProps) => boolean;
4
+ export declare const isDuffelAncillariesPropsWithOfferIdForFixture: (props: DuffelAncillariesProps) => props is DuffelAncillariesPropsWithOfferIdForFixture;
5
+ export declare const isDuffelAncillariesPropsWithClientKeyAndOfferId: (props: DuffelAncillariesProps) => props is DuffelAncillariesPropsWithClientKeyAndOfferId;
6
+ export declare const isDuffelAncillariesPropsWithOfferAndSeatMaps: (props: DuffelAncillariesProps) => props is DuffelAncillariesPropsWithOffersAndSeatMaps;
7
+ export declare const isDuffelAncillariesPropsWithOfferAndClientKey: (props: DuffelAncillariesProps) => props is DuffelAncillariesPropWithOfferAndClientKey;
@@ -0,0 +1 @@
1
+ export declare const withPlural: (totalQuantity: number, singular: string, plural: string) => string;
package/package.json CHANGED
@@ -1,13 +1,24 @@
1
1
  {
2
2
  "name": "@duffel/components",
3
- "version": "3.1.3",
4
- "private": false,
5
- "license": "MIT",
6
- "main": "react-dist/index.js",
7
- "exports": {
8
- ".": "./react-dist/index.js",
9
- "./custom-elements": "./react-dist/custom-elements.js"
3
+ "version": "3.1.4",
4
+ "description": "Component library to build your travel product with Duffel.",
5
+ "keywords": [
6
+ "Duffel",
7
+ "ancillaries",
8
+ "seats",
9
+ "seat maps",
10
+ "baggage",
11
+ "travel"
12
+ ],
13
+ "homepage": "https://github.com/duffelhq/duffel-checkout#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/duffelhq/duffel-checkout/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/duffelhq/duffel-checkout.git"
10
20
  },
21
+ "license": "MIT",
11
22
  "maintainers": [
12
23
  {
13
24
  "name": "Duffel",
@@ -15,44 +26,22 @@
15
26
  "url": "https://duffel.com"
16
27
  }
17
28
  ],
29
+ "exports": {
30
+ ".": "./index.js",
31
+ "./custom-elements": "./custom-elements.js"
32
+ },
33
+ "main": "./index.js",
18
34
  "scripts": {
19
- "precdn-build": "rm -rf ./cdn-dist",
20
- "cdn-build": "node config/esbuild.cdn.config.js",
35
+ "build-and-publish": "bash ./scripts/build-and-publish.sh",
21
36
  "build-storybook": "storybook build",
22
37
  "check-types": "tsc --project tsconfig.json --noEmit --emitDeclarationOnly false",
23
38
  "dev": "node config/esbuild.dev.config.js",
24
- "generate-fixture": "esbuild ./scripts/generate-fixture.ts --outfile=dist/scripts/generate-fixture.cjs --format=cjs --platform=node --bundle --tsconfig=scripts.tsconfig.json",
25
- "postgenerate-fixture": "node dist/scripts/generate-fixture.cjs",
26
- "setup-suggestion-data": "esbuild ./scripts/setup-suggestion-data.ts --outfile=dist/scripts/setup-suggestion-data.cjs --format=cjs --platform=node --bundle --tsconfig=scripts.tsconfig.json",
27
- "postsetup-suggestion-data": "node dist/scripts/setup-suggestion-data.cjs",
28
- "generate-type-declarations": "tsc --project tsconfig.json",
29
- "commit": "cz",
39
+ "generate-fixture": "esbuild ./scripts/generate-fixture.ts --outfile=dist/scripts/generate-fixture.cjs --format=cjs --platform=node --bundle --tsconfig=scripts.tsconfig.json && node dist/scripts/generate-fixture.cjs",
30
40
  "lint": "eslint . --ext .ts,.tsx,.mjs,.js --max-warnings=0",
31
- "pre-commit-check": "concurrently --raw \"yarn check-types\" \"yarn lint-staged\"",
32
- "post-commit-check": "yarn commitlint --from main",
33
- "prepare": "husky install",
34
41
  "prettier": "prettier --write --loglevel=warn .",
35
42
  "prettier-check": "prettier --check .",
36
- "prereact-build": "rm -rf ./react-dist",
37
- "react-build": "node config/esbuild.react.config.js",
38
- "postreact-build": "yarn generate-type-declarations",
39
- "run-client-side-server": "http-server src/examples/client-side --port=6262",
40
- "run-example:client-side": "concurrently \"yarn dev\" \"yarn run-client-side-server\"",
41
- "run-example:full-stack": "concurrently \"yarn dev\" \"yarn run-full-stack-server\"",
42
- "run-full-stack-server": "node src/examples/full-stack/server.mjs",
43
43
  "storybook": "storybook dev -p 6006",
44
- "test": "LANG='en_US' TZ=UTC yarn jest",
45
- "preupload-to-cdn": "yarn cdn-build",
46
- "upload-to-cdn": "bash ./scripts/upload-to-cdn.sh",
47
- "prerelease": "yarn react-build",
48
- "release": "yarn semantic-release",
49
- "get-version": "cat package.json | jq '.version'"
50
- },
51
- "husky": {
52
- "hooks": {
53
- "pre-commit": "yarn pre-commit-check",
54
- "post-commit": "yarn post-commit"
55
- }
44
+ "test": "LANG='en_US' TZ=UTC yarn jest"
56
45
  },
57
46
  "lint-staged": {
58
47
  "*.{ts,tsx,mjs,js}": [
@@ -61,111 +50,72 @@
61
50
  ]
62
51
  },
63
52
  "resolutions": {
64
- "semver": "^7.5.3",
65
- "word-wrap": "npm:@aashutoshrathi/word-wrap"
53
+ "@babel/traverse": "7.23.2",
54
+ "semver": "7.5.3"
66
55
  },
67
56
  "dependencies": {
68
- "@sentry/browser": "^7.43.0",
69
- "@stripe/react-stripe-js": "^2.1.0",
70
- "@stripe/stripe-js": "^1.54.0",
71
- "classnames": "^2.3.2",
72
- "fuse.js": "^6.6.2",
73
- "lodash": "^4.17.21",
57
+ "@duffel/components": "3.1.3--prototype.14",
58
+ "@sentry/browser": "7.77.0",
59
+ "@stripe/react-stripe-js": "2.1.0",
60
+ "@stripe/stripe-js": "1.54.0",
61
+ "classnames": "2.3.2",
62
+ "fuse.js": "6.6.2",
63
+ "lodash": "4.17.21",
74
64
  "react": "18.2.0",
75
65
  "react-dom": "18.2.0"
76
66
  },
77
67
  "devDependencies": {
78
- "@babel/core": "^7.21.4",
79
- "@babel/preset-env": "^7.21.4",
80
- "@babel/preset-react": "^7.18.6",
81
- "@babel/preset-typescript": "^7.21.4",
82
- "@commitlint/cli": "^17.6.5",
83
- "@commitlint/config-conventional": "^17.6.5",
84
- "@duffel/api": "^1.26.0",
85
- "@sentry/esbuild-plugin": "^0.7.0",
86
- "@storybook/addon-essentials": "^7.0.2",
87
- "@storybook/addon-interactions": "^7.0.2",
88
- "@storybook/addon-links": "^7.0.2",
89
- "@storybook/addon-storyshots": "^7.0.4",
90
- "@storybook/blocks": "^7.0.2",
91
- "@storybook/react": "^7.0.2",
92
- "@storybook/react-webpack5": "^7.0.2",
93
- "@storybook/testing-library": "^0.1.0",
94
- "@testing-library/react": "^14.0.0",
95
- "@types/jest": "^29.5.0",
96
- "@types/node": "^18.15.11",
97
- "@types/prompts": "^2.4.4",
98
- "@types/react": "^18.0.32",
99
- "@types/react-dom": "^18.0.11",
100
- "@typescript-eslint/eslint-plugin": "^5.43.0",
101
- "@typescript-eslint/parser": "^5.57.0",
102
- "babel-jest": "^29.5.0",
103
- "commitizen": "^4.3.0",
104
- "concurrently": "^8.0.0",
105
- "cz-conventional-changelog": "^3.3.0",
106
- "dotenv": "^16.0.3",
68
+ "@aashutoshrathi/word-wrap": "1.2.6",
69
+ "@babel/core": "7.21.4",
70
+ "@babel/preset-env": "7.21.4",
71
+ "@babel/preset-react": "7.18.6",
72
+ "@babel/preset-typescript": "7.21.4",
73
+ "@duffel/api": "1.26.0",
74
+ "@sentry/cli": "2.21.2",
75
+ "@sentry/esbuild-plugin": "0.7.0",
76
+ "@storybook/addon-essentials": "7.0.2",
77
+ "@storybook/addon-interactions": "7.0.2",
78
+ "@storybook/addon-links": "7.0.2",
79
+ "@storybook/blocks": "7.0.2",
80
+ "@storybook/react": "7.0.2",
81
+ "@storybook/react-webpack5": "7.0.2",
82
+ "@storybook/testing-library": "0.1.0",
83
+ "@testing-library/react": "14.0.0",
84
+ "@types/jest": "29.5.7",
85
+ "@types/lodash": "4.14.200",
86
+ "@types/node": "18.18.8",
87
+ "@types/prompts": "2.4.7",
88
+ "@types/react": "18.2.33",
89
+ "@types/react-dom": "18.2.14",
90
+ "@typescript-eslint/eslint-plugin": "6.9.1",
91
+ "@typescript-eslint/parser": "6.9.1",
92
+ "babel-jest": "29.7.0",
93
+ "concurrently": "8.0.0",
94
+ "dotenv": "16.0.3",
107
95
  "esbuild": "0.17.19",
108
- "esbuild-copy-static-files": "^0.1.0",
109
- "eslint": "^8.0.1",
110
- "eslint-config-prettier": "^8.8.0",
111
- "eslint-plugin-import": "^2.25.2",
112
- "eslint-plugin-jsx-a11y": "^6.7.1",
113
- "eslint-plugin-react": "^7.32.2",
114
- "eslint-plugin-react-hooks": "^4.6.0",
115
- "eslint-plugin-storybook": "^0.6.11",
116
- "http-server": "^14.1.1",
117
- "husky": "^8.0.3",
118
- "jest": "^29.5.0",
119
- "jest-environment-jsdom": "^29.5.0",
120
- "lint-staged": "^13.2.0",
121
- "prettier": "^2.8.7",
122
- "prettier-plugin-organize-imports": "^3.2.2",
123
- "prompts": "^2.4.2",
124
- "prop-types": "^15.8.1",
125
- "semantic-release": "^21.0.3",
126
- "storybook": "^7.0.2",
127
- "ts-node": "^10.9.1",
128
- "tsconfig-paths-webpack-plugin": "^4.0.1",
129
- "typescript": "5.0.4"
96
+ "esbuild-copy-static-files": "0.1.0",
97
+ "eslint": "8.52.0",
98
+ "eslint-config-prettier": "9.0.0",
99
+ "eslint-plugin-import": "2.29.0",
100
+ "eslint-plugin-jsx-a11y": "6.7.1",
101
+ "eslint-plugin-react": "7.33.2",
102
+ "eslint-plugin-react-hooks": "4.6.0",
103
+ "eslint-plugin-storybook": "0.6.15",
104
+ "http-server": "14.1.1",
105
+ "jest": "29.7.0",
106
+ "jest-environment-jsdom": "29.7.0",
107
+ "lint-staged": "13.2.0",
108
+ "prettier": "2.8.7",
109
+ "prettier-plugin-organize-imports": "3.2.2",
110
+ "prompts": "2.4.2",
111
+ "prop-types": "15.8.1",
112
+ "storybook": "7.0.2",
113
+ "ts-node": "10.9.1",
114
+ "tsconfig-paths-webpack-plugin": "4.0.1",
115
+ "typescript": "5.2.2"
130
116
  },
117
+ "packageManager": "yarn@4.0.1",
131
118
  "engines": {
132
119
  "node": "~18.*"
133
- },
134
- "config": {
135
- "commitizen": {
136
- "path": "./node_modules/cz-conventional-changelog"
137
- }
138
- },
139
- "plugins": [
140
- [
141
- "@semantic-release/commit-analyzer"
142
- ],
143
- [
144
- "@semantic-release/release-notes-generator"
145
- ],
146
- "@semantic-release/npm",
147
- "@semantic-release/github"
148
- ],
149
- "release": {
150
- "branches": [
151
- "main"
152
- ]
153
- },
154
- "description": "Component library to build your travel product with Duffel.",
155
- "repository": {
156
- "type": "git",
157
- "url": "git+https://github.com/duffelhq/duffel-checkout.git"
158
- },
159
- "keywords": [
160
- "Duffel",
161
- "ancillaries",
162
- "seats",
163
- "seat maps",
164
- "baggage",
165
- "travel"
166
- ],
167
- "bugs": {
168
- "url": "https://github.com/duffelhq/duffel-checkout/issues"
169
- },
170
- "homepage": "https://github.com/duffelhq/duffel-checkout#readme"
120
+ }
171
121
  }