@mirai/core 0.4.648 → 0.4.650

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 (143) hide show
  1. package/build/components/Banner/__tests__/__snapshots__/Banner.skeleton.test.js.snap +278 -0
  2. package/build/components/Banner/__tests__/__snapshots__/Banner.test.js.snap +9 -0
  3. package/build/components/Booking/__tests__/__snapshots__/Booking.test.js.snap +3862 -0
  4. package/build/components/Booking/components/Field/__tests__/__snapshots__/Field.test.js.snap +139 -0
  5. package/build/components/Booking/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +28 -0
  6. package/build/components/Booking/components/Summary/__tests__/__snapshots__/Summary.test.js.snap +1683 -0
  7. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormCancel.test.js.snap +586 -0
  8. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormEdit.test.js.snap +46 -0
  9. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormEditDate.test.js.snap +1822 -0
  10. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormEditOccupation.test.js.snap +326 -0
  11. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.FormResend.test.js.snap +170 -0
  12. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Information.test.js.snap +110 -0
  13. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Menu.test.js.snap +82 -0
  14. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Modal.test.js.snap +208 -0
  15. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalAgency.test.js.snap +107 -0
  16. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalCalendar.test.js.snap +463 -0
  17. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalCesSurvey.test.js.snap +255 -0
  18. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.ModalOccupation.test.js.snap +491 -0
  19. package/build/components/Booking/partials/__tests__/__snapshots__/Booking.Payment.test.js.snap +418 -0
  20. package/build/components/BookingQuery/__tests__/__snapshots__/BookingQuery.test.js.snap +92 -0
  21. package/build/components/ButtonFinder/__tests__/__snapshots__/ButtonFinder.test.js.snap +65 -0
  22. package/build/components/Chat/__tests__/__snapshots__/Chat.constants.test.js.snap +101 -0
  23. package/build/components/Chat/components/Input/__tests__/__snapshots__/Input.test.jsx.snap +190 -0
  24. package/build/components/Chat/components/Message/__tests__/__snapshots__/Message.test.jsx.snap +204 -0
  25. package/build/components/Chat/components/Message/components/__tests__/__snapshots__/Environment.test.js.snap +44 -0
  26. package/build/components/Chat/helpers/__tests__/__snapshots__/getVerboseDate.test.js.snap +9 -0
  27. package/build/components/Checkout/__tests__/__snapshots__/Checkout.test.js.snap +4946 -0
  28. package/build/components/Checkout/components/InputRadio/__tests__/__snapshots__/InputRadio.test.js.snap +371 -0
  29. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Confirmation.test.js.snap +412 -0
  30. package/build/components/Checkout/partials/__tests__/__snapshots__/Checkout.Form.test.js.snap +6333 -0
  31. package/build/components/CookieBanner/__tests__/__snapshots__/CookieBanner.test.js.snap +7 -0
  32. package/build/components/Deals/__tests__/__mocks__/deal.json +25 -0
  33. package/build/components/Deals/__tests__/__snapshots__/Deals.test.js.snap +5527 -0
  34. package/build/components/Environment/__tests__/__snapshots__/Environment.State.test.js.snap +120 -0
  35. package/build/components/Environment/__tests__/__snapshots__/Environment.test.js.snap +1088 -0
  36. package/build/components/Finder/__tests__/__snapshots__/Finder.constants.test.js.snap +35 -0
  37. package/build/components/Finder/__tests__/__snapshots__/Finder.test.js.snap +21195 -0
  38. package/build/components/Finder/components/Calendar/__tests__/__mocks__/prices.json +11 -0
  39. package/build/components/Finder/components/Calendar/__tests__/__snapshots__/Calendar.test.js.snap +8546 -0
  40. package/build/components/Finder/components/Places/__tests__/__mocks__/places.json +44 -0
  41. package/build/components/Finder/components/Places/__tests__/__snapshots__/Places.test.js.snap +324 -0
  42. package/build/components/Finder/helpers/__tests__/__mocks__/dataSource.json +1382 -0
  43. package/build/components/Finder/helpers/__tests__/__snapshots__/getForwarderUrl.test.js.snap +7 -0
  44. package/build/components/Header/__tests__/__snapshots__/Header.test.js.snap +1105 -0
  45. package/build/components/Profile/components/Bookings/__tests__/__snapshots__/Bookings.test.js.snap +19 -0
  46. package/build/components/Rates/__tests__/__snapshots__/Rates.Content.test.js.snap +59 -0
  47. package/build/components/Rates/__tests__/__snapshots__/Rates.Footer.test.js.snap +50 -0
  48. package/build/components/Rates/__tests__/__snapshots__/Rates.Header.test.js.snap +3 -0
  49. package/build/components/Rates/__tests__/__snapshots__/Rates.RoomSelector.test.js.snap +3 -0
  50. package/build/components/Rates/__tests__/__snapshots__/Rates.Unavailability.test.js.snap +53 -0
  51. package/build/components/Rates/__tests__/__snapshots__/Rates.test.js.snap +9962 -0
  52. package/build/components/Rates/components/CardHotel/__tests__/__snapshots__/CardHotel.test.js.snap +116 -0
  53. package/build/components/Rates/components/Filters/__tests__/__snapshots__/FIlters.Button.test.js.snap +32 -0
  54. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.Amenity.test.js.snap +21 -0
  55. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.BookingOption.test.js.snap +32 -0
  56. package/build/components/Rates/components/Filters/__tests__/__snapshots__/Filters.test.js.snap +32 -0
  57. package/build/components/Rates/components/Hotelverse/__tests__/__snapshots__/Hotelverse.test.js.snap +3 -0
  58. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Preview.test.js.snap +93 -0
  59. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Rates.test.js.snap +9 -0
  60. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.Summary.test.js.snap +52 -0
  61. package/build/components/Rates/components/Item/__tests__/__snapshots__/Item.test.js.snap +150 -0
  62. package/build/components/Rates/components/Item/components/Amenities/__tests__/__snapshots__/Amenities.test.js.snap +3 -0
  63. package/build/components/Rates/components/Item/components/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +3 -0
  64. package/build/components/Rates/components/Item/components/Features/__tests__/__snapshots__/Features.test.js.snap +40 -0
  65. package/build/components/Rates/components/Item/components/ModalCancellationInfo/__tests__/__snapshots__/ModalCancellationInfo.test.js.snap +16 -0
  66. package/build/components/Rates/components/Item/components/ModalInfo/__tests__/__snapshots__/ModalInfo.test.js.snap +47 -0
  67. package/build/components/Rates/components/Item/components/ModalOfferInfo/__tests__/__snapshots__/ModalOfferInfo.test.js.snap +47 -0
  68. package/build/components/Rates/components/Item/components/ModalUrl/__tests__/__snapshots__/ModalUrl.test.js.snap +47 -0
  69. package/build/components/Rates/components/Item/components/Option/__tests__/__snapshots__/Option.test.js.snap +17 -0
  70. package/build/components/Rates/components/Item/components/PriceDetails/__tests__/__snapshots__/PriceDetails.test.js.snap +23 -0
  71. package/build/components/Rates/components/Item/components/RateDetails/__tests__/__snapshots__/RateDetails.test.js.snap +3 -0
  72. package/build/components/Rates/components/Item/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +27 -0
  73. package/build/components/Rates/components/Item/components/TooltipDates/__tests__/__snapshots__/TooltipDates.test.js.snap +3 -0
  74. package/build/components/Rates/components/ModalExtras/__tests__/__snapshots__/ModalExtras.test.js.snap +52 -0
  75. package/build/components/Rates/components/ModalMapView/__tests__/__snapshots__/ModalMapView.test.js.snap +16 -0
  76. package/build/components/Rates/components/ModalTwin/__tests__/__snapshots__/ModalTwin.test.js.snap +374 -0
  77. package/build/components/Rates/components/ModalTwin/components/__tests__/__snapshots__/CardExpanded.test.js.snap +133 -0
  78. package/build/components/Rates/components/ModalTwin/components/__tests__/__snapshots__/CardReduced.test.js.snap +50 -0
  79. package/build/components/Rates/components/ModalTwin/components/__tests__/__snapshots__/Slider.test.js.snap +40 -0
  80. package/build/components/Rates/components/OTAPrices/__tests__/__snapshots__/OTAPrices.test.js.snap +3 -0
  81. package/build/components/Rooms/__tests__/__mocks__/room.json +21 -0
  82. package/build/components/Rooms/__tests__/__snapshots__/Rooms.test.js.snap +5527 -0
  83. package/build/components/Session/__tests__/__snapshots__/Session.test.js.snap +264 -0
  84. package/build/components/Signup/__tests__/__snapshots__/Signup.test.js.snap +1040 -0
  85. package/build/components/__shared__/BookingDates/__tests__/__snapshots__/BookingDates.test.js.snap +208 -0
  86. package/build/components/__shared__/BookingDetails/__tests__/__snapshots__/BookingDetails.test.js.snap +2355 -0
  87. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.Row.test.js.snap +500 -0
  88. package/build/components/__shared__/BookingTable/__tests__/__snapshots__/BookingTable.test.js.snap +745 -0
  89. package/build/components/__shared__/BookingTerms/__tests__/__snapshots__/BookingTerms.test.js.snap +414 -0
  90. package/build/components/__shared__/ButtonMore/__tests__/__snapshots__/ButtonMore.test.js.snap +115 -0
  91. package/build/components/__shared__/ButtonPayment/__tests__/__snapshots__/ButtonPayment.test.js.snap +210 -0
  92. package/build/components/__shared__/ButtonPayment/components/Form/__tests__/__snapshots__/Form.test.js.snap +65 -0
  93. package/build/components/__shared__/ButtonPayment/components/FormAddon/__tests__/__snapshots__/FormAddon.test.js.snap +53 -0
  94. package/build/components/__shared__/ButtonPayment/components/FormGetnet/__tests__/__snapshots__/FormGetnet.test.js.snap +14 -0
  95. package/build/components/__shared__/ButtonPayment/components/FormHotelpay/__tests__/__snapshots__/FormHotelpay.test.js.snap +104 -0
  96. package/build/components/__shared__/ButtonPayment/components/FormNuvei/__tests__/__snapshots__/FormNuvei.test.js.snap +21 -0
  97. package/build/components/__shared__/ButtonPayment/components/FormPaybyrd/__tests__/__snapshots__/FormPaybyrd.test.js.snap +41 -0
  98. package/build/components/__shared__/ButtonPayment/components/FormPaycomet/__tests__/__snapshots__/FormPaycomet.test.js.snap +18 -0
  99. package/build/components/__shared__/ButtonPayment/components/InputField/__tests__/__snapshots__/InputField.test.js.snap +190 -0
  100. package/build/components/__shared__/Card/__tests__/__snapshots__/Card.test.js.snap +34 -0
  101. package/build/components/__shared__/Countdown/__tests__/__snapshots__/Countdown.test.js.snap +42 -0
  102. package/build/components/__shared__/Field/__tests__/__snapshots__/Field.test.js.snap +366 -0
  103. package/build/components/__shared__/FieldOccupation/__tests__/__snapshots__/FieldOccupation.test.js.snap +2242 -0
  104. package/build/components/__shared__/FieldPromocode/__tests__/__snapshots__/FieldPromocode.test.jsx.snap +308 -0
  105. package/build/components/__shared__/Footer/__tests__/__snapshots__/Footer.test.js.snap +186 -0
  106. package/build/components/__shared__/NotificationRequiredFields/__tests__/__snapshots__/NotificationRequiredFields.test.js.snap +82 -0
  107. package/build/components/__shared__/Occupation/__tests__/__mocks__/occupation.json +17 -0
  108. package/build/components/__shared__/Occupation/__tests__/__snapshots__/Occupation.test.js.snap +3754 -0
  109. package/build/components/__shared__/Payment/__tests__/__snapshots__/Payment.test.js.snap +1105 -0
  110. package/build/components/__shared__/Payment/components/Aplazame/__tests__/__snapshots__/Aplazame.test.js.snap +35 -0
  111. package/build/components/__shared__/Payment/components/Card/Card.js +2 -4
  112. package/build/components/__shared__/Payment/components/Card/Card.js.map +1 -1
  113. package/build/components/__shared__/Payment/components/Card/__tests__/__snapshots__/Card.test.js.snap +996 -0
  114. package/build/components/__shared__/Payment/components/LinkagePay/__tests__/__snapshots__/LinkagePay.test.js.snap +876 -0
  115. package/build/components/__shared__/Payment/components/Openpay/__tests__/__snapshots__/Openpay.test.js.snap +876 -0
  116. package/build/components/__shared__/Payment/components/PCI/__tests__/__snapshots__/PCI.test.js.snap +504 -0
  117. package/build/components/__shared__/Payment/components/Tpv/__tests__/__snapshots__/Tpv.test.js.snap +119 -0
  118. package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.Line.test.js.snap +49 -0
  119. package/build/components/__shared__/PriceBreakdown/__tests__/__snapshots__/PriceBreakdown.test.js.snap +337 -0
  120. package/build/components/__shared__/RatesExplorer/__tests__/__snapshots__/RatesExplorer.Calendar.test.js.snap +2841 -0
  121. package/build/components/__shared__/RatesExplorer/__tests__/__snapshots__/RatesExplorer.constants.js.snap +14 -0
  122. package/build/components/__shared__/RatesExplorer/__tests__/__snapshots__/RatesExplorer.test.js.snap +11053 -0
  123. package/build/components/__shared__/RatesExplorer/helpers/__tests__/__mocks__/deal.json +28 -0
  124. package/build/components/__shared__/SelectEnvironment/__tests__/__snapshots__/SelectEnvironment.test.js.snap +1352 -0
  125. package/build/components/__shared__/Skeleton/__tests__/__snapshots__/Skeleton.test.js.snap +67 -0
  126. package/build/components/__shared__/TextRequiredFields/__tests__/__snapshots__/TextRequiredFields.test.js.snap +41 -0
  127. package/build/components/helpers/__tests__/__mocks__/hotels.json +87 -0
  128. package/build/components/helpers/__tests__/__snapshots__/parseHtml.test.js.snap +331 -0
  129. package/build/components/helpers/escapeHtml.js +19 -0
  130. package/build/components/helpers/escapeHtml.js.map +1 -0
  131. package/build/components/helpers/template.js +5 -1
  132. package/build/components/helpers/template.js.map +1 -1
  133. package/build/helpers/fetchSession.js +13 -1
  134. package/build/helpers/fetchSession.js.map +1 -1
  135. package/package.json +4 -1
  136. package/.sentryclirc +0 -3
  137. package/AGENTS.md +0 -296
  138. package/Dockerfile +0 -16
  139. package/bitbucket-pipelines.yml +0 -12
  140. package/config/jest/fileMock.js +0 -1
  141. package/config/jest/setup.env.js +0 -20
  142. package/config/jest/setup.js +0 -3
  143. package/jest.config.js +0 -22
@@ -0,0 +1,418 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<Booking> partial:<BookingPayment> inherit:className 1`] = `
4
+ <DocumentFragment>
5
+ <ui-notification-warning
6
+ class="view row notification warning outlined wide mirai"
7
+ >
8
+ <ui-icon
9
+ class="icon headline-3"
10
+ >
11
+ <svg
12
+ fill="currentColor"
13
+ height="1em"
14
+ stroke="currentColor"
15
+ stroke-width="0"
16
+ viewBox="0 0 24 24"
17
+ width="1em"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ >
20
+ <path
21
+ d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
22
+ />
23
+ </svg>
24
+ </ui-icon>
25
+ <ui-view
26
+ class="view texts"
27
+ >
28
+ <ui-text
29
+ class="text action"
30
+ >
31
+ <ui-view
32
+ class="view row"
33
+ />
34
+ </ui-text>
35
+ </ui-view>
36
+ </ui-notification-warning>
37
+ <ui-payment
38
+ class="view"
39
+ requiredtext="common.label.required"
40
+ >
41
+ <ui-view
42
+ class="view"
43
+ >
44
+ <ui-button
45
+ class="pressable button"
46
+ tabindex="0"
47
+ >
48
+ <ui-view
49
+ class="view busyContainer"
50
+ >
51
+ <ui-view
52
+ class="view spinner"
53
+ />
54
+ </ui-view>
55
+ <ui-view
56
+ class="view row children"
57
+ >
58
+ core.action.pay_now
59
+ </ui-view>
60
+ </ui-button>
61
+ <ui-modal-overflow
62
+ class="pressable container overflow"
63
+ style="height: 768px;"
64
+ tabindex="-1"
65
+ >
66
+ <ui-modal
67
+ class="view fit modal calcWidth"
68
+ inert=""
69
+ >
70
+ <ui-view
71
+ class="view row header hideBack"
72
+ >
73
+ <ui-button
74
+ class="pressable button small squared transparent"
75
+ tabindex="0"
76
+ >
77
+ <ui-icon
78
+ class="icon headline-3 icon"
79
+ >
80
+ <svg
81
+ fill="currentColor"
82
+ height="1em"
83
+ stroke="currentColor"
84
+ stroke-width="0"
85
+ viewBox="0 0 24 24"
86
+ width="1em"
87
+ xmlns="http://www.w3.org/2000/svg"
88
+ >
89
+ <path
90
+ d="M0 0h24v24H0V0z"
91
+ fill="none"
92
+ />
93
+ <path
94
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
95
+ />
96
+ </svg>
97
+ </ui-icon>
98
+ </ui-button>
99
+ </ui-view>
100
+ </ui-modal>
101
+ </ui-modal-overflow>
102
+ </ui-view>
103
+ </ui-payment>
104
+ </DocumentFragment>
105
+ `;
106
+
107
+ exports[`<Booking> partial:<BookingPayment> renders 1`] = `
108
+ <DocumentFragment>
109
+ <ui-notification-warning
110
+ class="view row notification warning outlined wide"
111
+ >
112
+ <ui-icon
113
+ class="icon headline-3"
114
+ >
115
+ <svg
116
+ fill="currentColor"
117
+ height="1em"
118
+ stroke="currentColor"
119
+ stroke-width="0"
120
+ viewBox="0 0 24 24"
121
+ width="1em"
122
+ xmlns="http://www.w3.org/2000/svg"
123
+ >
124
+ <path
125
+ d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
126
+ />
127
+ </svg>
128
+ </ui-icon>
129
+ <ui-view
130
+ class="view texts"
131
+ >
132
+ <ui-text
133
+ class="text action"
134
+ >
135
+ <ui-view
136
+ class="view row"
137
+ />
138
+ </ui-text>
139
+ </ui-view>
140
+ </ui-notification-warning>
141
+ <ui-payment
142
+ class="view"
143
+ requiredtext="common.label.required"
144
+ >
145
+ <ui-view
146
+ class="view"
147
+ >
148
+ <ui-button
149
+ class="pressable button"
150
+ tabindex="0"
151
+ >
152
+ <ui-view
153
+ class="view busyContainer"
154
+ >
155
+ <ui-view
156
+ class="view spinner"
157
+ />
158
+ </ui-view>
159
+ <ui-view
160
+ class="view row children"
161
+ >
162
+ core.action.pay_now
163
+ </ui-view>
164
+ </ui-button>
165
+ <ui-modal-overflow
166
+ class="pressable container overflow"
167
+ style="height: 768px;"
168
+ tabindex="-1"
169
+ >
170
+ <ui-modal
171
+ class="view fit modal calcWidth"
172
+ inert=""
173
+ >
174
+ <ui-view
175
+ class="view row header hideBack"
176
+ >
177
+ <ui-button
178
+ class="pressable button small squared transparent"
179
+ tabindex="0"
180
+ >
181
+ <ui-icon
182
+ class="icon headline-3 icon"
183
+ >
184
+ <svg
185
+ fill="currentColor"
186
+ height="1em"
187
+ stroke="currentColor"
188
+ stroke-width="0"
189
+ viewBox="0 0 24 24"
190
+ width="1em"
191
+ xmlns="http://www.w3.org/2000/svg"
192
+ >
193
+ <path
194
+ d="M0 0h24v24H0V0z"
195
+ fill="none"
196
+ />
197
+ <path
198
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
199
+ />
200
+ </svg>
201
+ </ui-icon>
202
+ </ui-button>
203
+ </ui-view>
204
+ </ui-modal>
205
+ </ui-modal-overflow>
206
+ </ui-view>
207
+ </ui-payment>
208
+ </DocumentFragment>
209
+ `;
210
+
211
+ exports[`<Booking> partial:<BookingPayment> testID 1`] = `
212
+ <DocumentFragment>
213
+ <ui-notification-warning
214
+ class="view row notification warning outlined wide"
215
+ data-testid="mirai"
216
+ >
217
+ <ui-icon
218
+ class="icon headline-3"
219
+ >
220
+ <svg
221
+ fill="currentColor"
222
+ height="1em"
223
+ stroke="currentColor"
224
+ stroke-width="0"
225
+ viewBox="0 0 24 24"
226
+ width="1em"
227
+ xmlns="http://www.w3.org/2000/svg"
228
+ >
229
+ <path
230
+ d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
231
+ />
232
+ </svg>
233
+ </ui-icon>
234
+ <ui-view
235
+ class="view texts"
236
+ >
237
+ <ui-text
238
+ class="text action"
239
+ >
240
+ <ui-view
241
+ class="view row"
242
+ />
243
+ </ui-text>
244
+ </ui-view>
245
+ </ui-notification-warning>
246
+ <ui-payment
247
+ class="view"
248
+ requiredtext="common.label.required"
249
+ >
250
+ <ui-view
251
+ class="view"
252
+ >
253
+ <ui-button
254
+ class="pressable button"
255
+ tabindex="0"
256
+ >
257
+ <ui-view
258
+ class="view busyContainer"
259
+ >
260
+ <ui-view
261
+ class="view spinner"
262
+ />
263
+ </ui-view>
264
+ <ui-view
265
+ class="view row children"
266
+ >
267
+ core.action.pay_now
268
+ </ui-view>
269
+ </ui-button>
270
+ <ui-modal-overflow
271
+ class="pressable container overflow"
272
+ style="height: 768px;"
273
+ tabindex="-1"
274
+ >
275
+ <ui-modal
276
+ class="view fit modal calcWidth"
277
+ inert=""
278
+ >
279
+ <ui-view
280
+ class="view row header hideBack"
281
+ >
282
+ <ui-button
283
+ class="pressable button small squared transparent"
284
+ tabindex="0"
285
+ >
286
+ <ui-icon
287
+ class="icon headline-3 icon"
288
+ >
289
+ <svg
290
+ fill="currentColor"
291
+ height="1em"
292
+ stroke="currentColor"
293
+ stroke-width="0"
294
+ viewBox="0 0 24 24"
295
+ width="1em"
296
+ xmlns="http://www.w3.org/2000/svg"
297
+ >
298
+ <path
299
+ d="M0 0h24v24H0V0z"
300
+ fill="none"
301
+ />
302
+ <path
303
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
304
+ />
305
+ </svg>
306
+ </ui-icon>
307
+ </ui-button>
308
+ </ui-view>
309
+ </ui-modal>
310
+ </ui-modal-overflow>
311
+ </ui-view>
312
+ </ui-payment>
313
+ </DocumentFragment>
314
+ `;
315
+
316
+ exports[`<Booking> partial:<BookingPayment> with a store 1`] = `
317
+ <DocumentFragment>
318
+ <ui-notification-warning
319
+ class="view row notification warning outlined wide"
320
+ >
321
+ <ui-icon
322
+ class="icon headline-3"
323
+ >
324
+ <svg
325
+ fill="currentColor"
326
+ height="1em"
327
+ stroke="currentColor"
328
+ stroke-width="0"
329
+ viewBox="0 0 24 24"
330
+ width="1em"
331
+ xmlns="http://www.w3.org/2000/svg"
332
+ >
333
+ <path
334
+ d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
335
+ />
336
+ </svg>
337
+ </ui-icon>
338
+ <ui-view
339
+ class="view texts"
340
+ >
341
+ <ui-text
342
+ class="text action"
343
+ >
344
+ <ui-view
345
+ class="view row"
346
+ />
347
+ </ui-text>
348
+ </ui-view>
349
+ </ui-notification-warning>
350
+ <ui-payment
351
+ class="view"
352
+ requiredtext="common.label.required"
353
+ >
354
+ <ui-view
355
+ class="view"
356
+ >
357
+ <ui-button
358
+ class="pressable button"
359
+ tabindex="0"
360
+ >
361
+ <ui-view
362
+ class="view busyContainer"
363
+ >
364
+ <ui-view
365
+ class="view spinner"
366
+ />
367
+ </ui-view>
368
+ <ui-view
369
+ class="view row children"
370
+ >
371
+ core.action.pay_now
372
+ </ui-view>
373
+ </ui-button>
374
+ <ui-modal-overflow
375
+ class="pressable container overflow"
376
+ style="height: 768px;"
377
+ tabindex="-1"
378
+ >
379
+ <ui-modal
380
+ class="view fit modal calcWidth"
381
+ inert=""
382
+ >
383
+ <ui-view
384
+ class="view row header hideBack"
385
+ >
386
+ <ui-button
387
+ class="pressable button small squared transparent"
388
+ tabindex="0"
389
+ >
390
+ <ui-icon
391
+ class="icon headline-3 icon"
392
+ >
393
+ <svg
394
+ fill="currentColor"
395
+ height="1em"
396
+ stroke="currentColor"
397
+ stroke-width="0"
398
+ viewBox="0 0 24 24"
399
+ width="1em"
400
+ xmlns="http://www.w3.org/2000/svg"
401
+ >
402
+ <path
403
+ d="M0 0h24v24H0V0z"
404
+ fill="none"
405
+ />
406
+ <path
407
+ d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
408
+ />
409
+ </svg>
410
+ </ui-icon>
411
+ </ui-button>
412
+ </ui-view>
413
+ </ui-modal>
414
+ </ui-modal-overflow>
415
+ </ui-view>
416
+ </ui-payment>
417
+ </DocumentFragment>
418
+ `;
@@ -0,0 +1,92 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<BookingQuery> Using ghost feature renders 1`] = `
4
+ <DocumentFragment>
5
+ <ui-pressable
6
+ class="pressable"
7
+ tabindex="0"
8
+ >
9
+ <div>
10
+ <button>
11
+ hello
12
+ </button>
13
+ </div>
14
+ </ui-pressable>
15
+ </DocumentFragment>
16
+ `;
17
+
18
+ exports[`<BookingQuery> Using ghost feature with a store using ghost feature 1`] = `
19
+ <DocumentFragment>
20
+ <ui-pressable
21
+ class="pressable"
22
+ tabindex="0"
23
+ >
24
+ <div>
25
+ <button>
26
+ hello
27
+ </button>
28
+ </div>
29
+ </ui-pressable>
30
+ </DocumentFragment>
31
+ `;
32
+
33
+ exports[`<BookingQuery> inherit:className 1`] = `
34
+ <DocumentFragment>
35
+ <ui-pressable
36
+ class="pressable"
37
+ tabindex="0"
38
+ >
39
+ <ui-text
40
+ class="text medium paragraph"
41
+ >
42
+ core.action.booking_query
43
+ </ui-text>
44
+ </ui-pressable>
45
+ </DocumentFragment>
46
+ `;
47
+
48
+ exports[`<BookingQuery> renders 1`] = `
49
+ <DocumentFragment>
50
+ <ui-pressable
51
+ class="pressable"
52
+ tabindex="0"
53
+ >
54
+ <ui-text
55
+ class="text medium paragraph"
56
+ >
57
+ core.action.booking_query
58
+ </ui-text>
59
+ </ui-pressable>
60
+ </DocumentFragment>
61
+ `;
62
+
63
+ exports[`<BookingQuery> testID 1`] = `
64
+ <DocumentFragment>
65
+ <ui-pressable
66
+ class="pressable"
67
+ data-testid="mirai-button-open-modal"
68
+ tabindex="0"
69
+ >
70
+ <ui-text
71
+ class="text medium paragraph"
72
+ >
73
+ core.action.booking_query
74
+ </ui-text>
75
+ </ui-pressable>
76
+ </DocumentFragment>
77
+ `;
78
+
79
+ exports[`<BookingQuery> with a store 1`] = `
80
+ <DocumentFragment>
81
+ <ui-pressable
82
+ class="pressable"
83
+ tabindex="0"
84
+ >
85
+ <ui-text
86
+ class="text medium paragraph"
87
+ >
88
+ core.action.booking_query
89
+ </ui-text>
90
+ </ui-pressable>
91
+ </DocumentFragment>
92
+ `;
@@ -0,0 +1,65 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<ButtonFinder> inherit:className 1`] = `
4
+ <DocumentFragment>
5
+ <ui-button
6
+ class="pressable button mirai"
7
+ data-testid="button-finder-button-modal"
8
+ tabindex="0"
9
+ >
10
+ common.action.reserve
11
+ </ui-button>
12
+ </DocumentFragment>
13
+ `;
14
+
15
+ exports[`<ButtonFinder> prop:ghost 1`] = `
16
+ <DocumentFragment>
17
+ <ui-pressable
18
+ class="pressable"
19
+ data-testid="button-finder-button-modal"
20
+ tabindex="0"
21
+ >
22
+ <div>
23
+ <button>
24
+ common.action.reserve
25
+ </button>
26
+ </div>
27
+ </ui-pressable>
28
+ </DocumentFragment>
29
+ `;
30
+
31
+ exports[`<ButtonFinder> prop:text 1`] = `
32
+ <DocumentFragment>
33
+ <ui-button
34
+ class="pressable button"
35
+ data-testid="button-finder-button-modal"
36
+ tabindex="0"
37
+ >
38
+ Start Search
39
+ </ui-button>
40
+ </DocumentFragment>
41
+ `;
42
+
43
+ exports[`<ButtonFinder> renders 1`] = `
44
+ <DocumentFragment>
45
+ <ui-button
46
+ class="pressable button"
47
+ data-testid="button-finder-button-modal"
48
+ tabindex="0"
49
+ >
50
+ common.action.reserve
51
+ </ui-button>
52
+ </DocumentFragment>
53
+ `;
54
+
55
+ exports[`<ButtonFinder> testID 1`] = `
56
+ <DocumentFragment>
57
+ <ui-button
58
+ class="pressable button"
59
+ data-testid="mirai-button-modal"
60
+ tabindex="0"
61
+ >
62
+ common.action.reserve
63
+ </ui-button>
64
+ </DocumentFragment>
65
+ `;
@@ -0,0 +1,101 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`<Chat>.constants should match the snapshot for constants 1`] = `
4
+ {
5
+ "BANNED_COMPONENTS": [
6
+ "checkout",
7
+ "booking",
8
+ ],
9
+ "CHAT_STORAGE_CACHE": 28800000,
10
+ "CHAT_STORAGE_KEY": "MIRAI:LISA:CHAT",
11
+ "DEFAULT_ACTIONS": [
12
+ {
13
+ "intent": "BOOKING_CREATE",
14
+ "options": [
15
+ {
16
+ "text": "I’d like to make a reservation for next weekend.",
17
+ },
18
+ {
19
+ "text": "Can I make a **reservation** for tomorrow?",
20
+ },
21
+ {
22
+ "text": "I need a booking for two adults.",
23
+ },
24
+ ],
25
+ "text": "I’d like to make a **reservation**",
26
+ },
27
+ {
28
+ "intent": "HOTEL_INFO",
29
+ "options": [
30
+ {
31
+ "text": "Where is the hotel located?",
32
+ },
33
+ {
34
+ "text": "What is the hotel’s email and phone number?",
35
+ },
36
+ {
37
+ "text": "What payment methods does the hotel accept?",
38
+ },
39
+ {
40
+ "text": "What time is the hotel’s check-in?",
41
+ },
42
+ ],
43
+ "text": "I would like to know more about the hotel.",
44
+ },
45
+ {
46
+ "intent": "LOGIN",
47
+ "options": [
48
+ {
49
+ "text": "How can I log into the membership?",
50
+ },
51
+ {
52
+ "text": "I want to change my personal details.",
53
+ },
54
+ {
55
+ "text": "How can I sign up for the membership?",
56
+ },
57
+ ],
58
+ "text": "I would like to manage my membership.",
59
+ },
60
+ {
61
+ "intent": "BOOKING_CANCEL",
62
+ "text": "I need to cancel my booking",
63
+ },
64
+ ],
65
+ "DEFAULT_NAME": "Sarai",
66
+ "DEFAULT_PRIVACY_ID": "100379008",
67
+ "DEFAULT_PRIVACY_URL": "https://reservation.mirai.com/MRE/MAgreement.do",
68
+ "DELAY_RESPONSE": 500,
69
+ "EVENT": {
70
+ "INPUT_COMPONENT": "EVENT_INPUT_COMPONENT",
71
+ },
72
+ "INPUT_MODE": {
73
+ "AUDIO": "audio",
74
+ "RATING": "rating",
75
+ "TEXT": "text",
76
+ "WHATSAPP": "whatsapp",
77
+ },
78
+ "INTENT": {
79
+ "BOOK": "BOOK",
80
+ "BOOKING_CANCEL": "BOOKING_CANCEL",
81
+ "BOOKING_CREATE": "BOOKING_CREATE",
82
+ "BOOKING_QUERY": "BOOKING_QUERY",
83
+ "BOOKING_SEND": "BOOKING_SEND",
84
+ "BOOKING_VIEW": "BOOKING_VIEW",
85
+ "FAREWELLS": "FAREWELLS",
86
+ "GREETINGS": "GREETINGS",
87
+ "HOTEL_INFO": "HOTEL_INFO",
88
+ "LOGIN": "LOGIN",
89
+ "OFFERS": "OFFERS",
90
+ "PROFILE": "PROFILE",
91
+ "SIGNUP": "SIGNUP",
92
+ },
93
+ "NAME": "Sarai",
94
+ "PRIVACY_FALLBACK_LOCALE": "en-GB",
95
+ "VERBOSE_DATE_FORMAT": {
96
+ "day": "numeric",
97
+ "month": "short",
98
+ "weekday": "short",
99
+ },
100
+ }
101
+ `;