@timum/booking 1.5.7 → 1.6.0

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 (71) hide show
  1. package/README.md +43 -43
  2. package/build/booking.js +70225 -7
  3. package/build/booking.umd.cjs +156 -156
  4. package/build/component/android-chrome-144x144.png +0 -0
  5. package/build/component/android-chrome-192x192.png +0 -0
  6. package/build/component/android-chrome-36x36.png +0 -0
  7. package/build/component/android-chrome-48x48.png +0 -0
  8. package/build/component/android-chrome-72x72.png +0 -0
  9. package/build/component/android-chrome-96x96.png +0 -0
  10. package/build/component/apple-touch-icon-114x114.png +0 -0
  11. package/build/component/apple-touch-icon-120x120.png +0 -0
  12. package/build/component/apple-touch-icon-144x144.png +0 -0
  13. package/build/component/apple-touch-icon-152x152.png +0 -0
  14. package/build/component/apple-touch-icon-180x180.png +0 -0
  15. package/build/component/apple-touch-icon-57x57.png +0 -0
  16. package/build/component/apple-touch-icon-60x60.png +0 -0
  17. package/build/component/apple-touch-icon-72x72.png +0 -0
  18. package/build/component/apple-touch-icon-76x76.png +0 -0
  19. package/build/component/apple-touch-icon-precomposed.png +0 -0
  20. package/build/component/apple-touch-icon.png +0 -0
  21. package/build/{index-b9c2cdb7.js → component/booking.js} +43979 -46409
  22. package/build/component/booking.umd.cjs +1454 -0
  23. package/build/component/browserconfig.xml +12 -0
  24. package/build/component/favicon-16x16.png +0 -0
  25. package/build/component/favicon-194x194.png +0 -0
  26. package/build/component/favicon-32x32.png +0 -0
  27. package/build/component/favicon-96x96.png +0 -0
  28. package/build/component/favicon.ico +0 -0
  29. package/build/component/logo192.png +0 -0
  30. package/build/component/logo512.png +0 -0
  31. package/build/component/manifest.json +46 -0
  32. package/build/component/mstile-144x144.png +0 -0
  33. package/build/component/mstile-150x150.png +0 -0
  34. package/build/component/mstile-310x150.png +0 -0
  35. package/build/component/mstile-310x310.png +0 -0
  36. package/build/component/mstile-70x70.png +0 -0
  37. package/build/component/robots.txt +3 -0
  38. package/build/component/timum-bg-large.png +0 -0
  39. package/build/component/timum-logo-bright.svg +63 -0
  40. package/build/component/timum-logo-white.svg +63 -0
  41. package/package.json +181 -173
  42. package/.eslintignore +0 -5
  43. package/.eslintrc +0 -30
  44. package/build/index-0a337bef.js +0 -6
  45. package/build/index-1733a1c8.js +0 -6
  46. package/build/index-27164277.js +0 -6
  47. package/build/index-2fca1232.js +0 -6
  48. package/build/index-61fde8ed.js +0 -6
  49. package/build/index-8c21f0a7.js +0 -45
  50. package/build/index-92a9e1b3.js +0 -6
  51. package/build/index-97b5a47c.js +0 -45
  52. package/build/index-ab4ea2aa.js +0 -6
  53. package/build/index-b70f40ff.js +0 -6
  54. package/build/mockServiceWorker.js +0 -303
  55. package/examples/callbacks.htm +0 -16
  56. package/examples/docuExample.htm +0 -113
  57. package/examples/fields.htm +0 -16
  58. package/examples/fullExample.htm +0 -533
  59. package/examples/list-view.htm +0 -16
  60. package/examples/local-language.htm +0 -16
  61. package/examples/local-preset.htm +0 -17
  62. package/examples/local-strings.htm +0 -16
  63. package/examples/multiple.htm +0 -153
  64. package/examples/selectable-product.htm +0 -16
  65. package/examples/usingChannelId.htm +0 -17
  66. package/examples/usingChannelKeyAndResourceRef.htm +0 -17
  67. package/examples/usingFullCalendar.htm +0 -17
  68. package/public/mockServiceWorker.js +0 -303
  69. package/remTags.bat +0 -14
  70. package/vite.config.js +0 -34
  71. package/yarn-error.log +0 -16276
@@ -1,153 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=0.6" />
7
- <title>timum single instance example</title>
8
- </head>
9
-
10
- <body>
11
- <div id="timumdiv" class="flex-container" style="display:flex; min-height: 500px; flex-flow: row wrap;">
12
- <div style="flex-direction:column; display:flex; flex: 1; min-width: 300px; min-height: 500px;">
13
- <h2 style="text-align: center">Frau Bauer</h2>
14
- <iframe width="100%" style="border-width: 0" height="100%" srcdoc="
15
- <div id='booking1js' style='margin: 0px 16px 0px 8px'></div>
16
- <script type='text/javascript' src='../build/booking.umd.cjs'></script>
17
- <script type='text/javascript'>
18
- const selectedItemValue = '';
19
- const calendarUI = 'fullCalendar'; //'pureListView';
20
- const formFields = {
21
- // For the feature 'custom fields', you need either an accounting plan 'professional' or 'managed calendar'
22
- // set default fields to 'undefined' explicitly in order to remove them, e.g. mobile: undefined,
23
- selectedItem: {
24
- index: 3,
25
- title: 'Bitte die Wohnungsnummer aus dem Angebot angeben',
26
- type: 'text',
27
- prefilled: ' ',
28
- preventRendering: false,
29
- },
30
- selectedItem2: {
31
- index: 4,
32
- title: 'Wohnungsnummer des Angebots',
33
- type: 'text',
34
- prefilled: selectedItemValue,
35
- preventRendering: false,
36
- },
37
- message: {
38
- index: 6,
39
- title: 'Ihre Nachricht (optional)',
40
- },
41
- agbs: {
42
- index: 7,
43
- title: '<a href=\'https://info.timum.de/datenschutz/\' target=\'_blanc\'>Datenschutzbestimmungen</a> gelesen und akzeptiert.',
44
- type: 'checkbox',
45
- validation: timum.yup
46
- .boolean()
47
- .required('validation.field_required')
48
- .test(
49
- 'privacyAccepted',
50
- 'validation.privacy_field_required',
51
- (value) => value === true
52
- ),
53
- },
54
-
55
- };
56
-
57
- timum.init(
58
- {
59
- rootElId: 'booking1js',
60
- ref: 'anna.bauer@e20c1fb0-f480-11ed-9731-0224b786672a@timum',
61
- calendarFrontend: calendarUI,
62
- fields: formFields,
63
- sendCustomValuesInMessage: true, // necessary to transmit custom field values as part of the customer message
64
-
65
- // the following callback consumes the customers input,
66
- // allowing you to act on the entered gender value.
67
- callback: {
68
- createBookingStarted: ({ data }) => {
69
- console.log(data.selectedItem);
70
- }
71
- }
72
- },
73
- {},
74
- {
75
- smallView: 'timeGridWeek',
76
- largeView: 'timeGridWeek',
77
- });
78
- </script>">
79
- </iframe>
80
- </div>
81
- <div style="flex-direction:column; display: flex; flex: 1; min-width: 300px; min-height: 500px;">
82
- <h2 style="text-align: center">Frau Huber</h2>
83
- <iframe width="100%" style="border-width: 0" height="100%" srcdoc="
84
- <div id='bookingTwojs' style='margin: 0px 8px 0px 16px'></div>
85
- <script type='text/javascript' src='../build/booking.umd.cjs'></script>
86
- <script type='text/javascript'>
87
- const selectedItemValue = '';
88
- const calendarUI = 'fullCalendar'; //'pureListView';
89
- const formFields = {
90
- // For the feature 'custom fields', you need either an accounting plan 'professional' or 'managed calendar'
91
- // set default fields to 'undefined' explicitly in order to remove them, e.g. mobile: undefined,
92
- selectedItem: {
93
- index: 3,
94
- title: 'Bitte die Wohnungsnummer aus dem Angebot angeben',
95
- type: 'text',
96
- prefilled: ' ',
97
- preventRendering: false,
98
- },
99
- selectedItem2: {
100
- index: 4,
101
- title: 'Wohnungsnummer des Angebots',
102
- type: 'text',
103
- prefilled: selectedItemValue,
104
- preventRendering: false,
105
- },
106
- message: {
107
- index: 6,
108
- title: 'Ihre Nachricht (optional)',
109
- },
110
- agbs: {
111
- index: 7,
112
- title: '<a href=\'https://info.timum.de/datenschutz/\' target=\'_blanc\'>Datenschutzbestimmungen</a> gelesen und akzeptiert.',
113
- type: 'checkbox',
114
- validation: timum.yup
115
- .boolean()
116
- .required('validation.field_required')
117
- .test(
118
- 'privacyAccepted',
119
- 'validation.privacy_field_required',
120
- (value) => value === true
121
- ),
122
- },
123
-
124
- };
125
-
126
- timum.init(
127
- {
128
- rootElId: 'bookingTwojs',
129
- ref: 'sabine.huber@e20c1fb0-f480-11ed-9731-0224b786672a@timum',
130
- calendarFrontend: calendarUI,
131
- fields: formFields,
132
- sendCustomValuesInMessage: true, // necessary to transmit custom field values as part of the customer message
133
-
134
- // the following callback consumes the customers input,
135
- // allowing you to act on the entered gender value.
136
- callback: {
137
- createBookingStarted: ({ data }) => {
138
- console.log(data.selectedItem);
139
- }
140
- }
141
- },
142
- {},
143
- {
144
- smallView: 'timeGridWeek',
145
- largeView: 'timeGridWeek',
146
- });
147
- </script>">
148
- </iframe>
149
- </div>
150
- </div>
151
- </body>
152
-
153
- </html>
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta
6
- name="viewport"
7
- content="initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=0.6"
8
- />
9
- <title>timum single instance example</title>
10
- </head>
11
- <body>
12
- <div id="bookingjs"></div>
13
- <script type="text/javascript" src="../build/booking.umd.js"></script>
14
- <script type="text/javascript"> timum.init({ref: "booking-widget-demo-resource@timum"}); </script>
15
- </body>
16
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=0.6" />
7
- <title>timum single instance example</title>
8
- </head>
9
-
10
- <body>
11
- <div id="bookingjs" style="margin: 15px"></div>
12
- <script type="text/javascript" src="../build/booking.umd.js"></script>
13
- <script
14
- type="text/javascript"> timum.init({ ref: "404d4a2d-915c-11e7-b89c-02dc63cec5f7" /* <- Resource exclusive*/ }); </script>
15
- </body>
16
-
17
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=0.6" />
7
- <title>timum single instance example</title>
8
- </head>
9
-
10
- <body>
11
- <div id="bookingjs" style="margin: 15px"></div>
12
- <script type="text/javascript" src="../build/booking.umd.js"></script>
13
- <script
14
- type="text/javascript"> timum.init({ ref: "booking-widget-demo-resource@timum", channelKey: "RESOURCE_EXCLUSIVE" }); </script>
15
- </body>
16
-
17
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=0.6" />
7
- <title>timum single instance example</title>
8
- </head>
9
-
10
- <body>
11
- <div id="bookingjs" style="margin: 15px"></div>
12
- <script type="text/javascript" src="../build/booking.umd.cjs"></script>
13
- <script
14
- type="text/javascript">timum.init({ ref: "39@b51c8a60-c607-11ec-9249-0239547cf090@onofficeEstate", calendarFrontend: "fullCalendar", height: 1000 }); </script>
15
- </body>
16
-
17
- </html>
@@ -1,303 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
-
4
- /**
5
- * Mock Service Worker (1.3.2).
6
- * @see https://github.com/mswjs/msw
7
- * - Please do NOT modify this file.
8
- * - Please do NOT serve this file on production.
9
- */
10
-
11
- const INTEGRITY_CHECKSUM = '3d6b9f06410d179a7f7404d4bf4c3c70'
12
- const activeClientIds = new Set()
13
-
14
- self.addEventListener('install', function () {
15
- self.skipWaiting()
16
- })
17
-
18
- self.addEventListener('activate', function (event) {
19
- event.waitUntil(self.clients.claim())
20
- })
21
-
22
- self.addEventListener('message', async function (event) {
23
- const clientId = event.source.id
24
-
25
- if (!clientId || !self.clients) {
26
- return
27
- }
28
-
29
- const client = await self.clients.get(clientId)
30
-
31
- if (!client) {
32
- return
33
- }
34
-
35
- const allClients = await self.clients.matchAll({
36
- type: 'window',
37
- })
38
-
39
- switch (event.data) {
40
- case 'KEEPALIVE_REQUEST': {
41
- sendToClient(client, {
42
- type: 'KEEPALIVE_RESPONSE',
43
- })
44
- break
45
- }
46
-
47
- case 'INTEGRITY_CHECK_REQUEST': {
48
- sendToClient(client, {
49
- type: 'INTEGRITY_CHECK_RESPONSE',
50
- payload: INTEGRITY_CHECKSUM,
51
- })
52
- break
53
- }
54
-
55
- case 'MOCK_ACTIVATE': {
56
- activeClientIds.add(clientId)
57
-
58
- sendToClient(client, {
59
- type: 'MOCKING_ENABLED',
60
- payload: true,
61
- })
62
- break
63
- }
64
-
65
- case 'MOCK_DEACTIVATE': {
66
- activeClientIds.delete(clientId)
67
- break
68
- }
69
-
70
- case 'CLIENT_CLOSED': {
71
- activeClientIds.delete(clientId)
72
-
73
- const remainingClients = allClients.filter((client) => {
74
- return client.id !== clientId
75
- })
76
-
77
- // Unregister itself when there are no more clients
78
- if (remainingClients.length === 0) {
79
- self.registration.unregister()
80
- }
81
-
82
- break
83
- }
84
- }
85
- })
86
-
87
- self.addEventListener('fetch', function (event) {
88
- const { request } = event
89
- const accept = request.headers.get('accept') || ''
90
-
91
- // Bypass server-sent events.
92
- if (accept.includes('text/event-stream')) {
93
- return
94
- }
95
-
96
- // Bypass navigation requests.
97
- if (request.mode === 'navigate') {
98
- return
99
- }
100
-
101
- // Opening the DevTools triggers the "only-if-cached" request
102
- // that cannot be handled by the worker. Bypass such requests.
103
- if (request.cache === 'only-if-cached' && request.mode !== 'same-origin') {
104
- return
105
- }
106
-
107
- // Bypass all requests when there are no active clients.
108
- // Prevents the self-unregistered worked from handling requests
109
- // after it's been deleted (still remains active until the next reload).
110
- if (activeClientIds.size === 0) {
111
- return
112
- }
113
-
114
- // Generate unique request ID.
115
- const requestId = Math.random().toString(16).slice(2)
116
-
117
- event.respondWith(
118
- handleRequest(event, requestId).catch((error) => {
119
- if (error.name === 'NetworkError') {
120
- console.warn(
121
- '[MSW] Successfully emulated a network error for the "%s %s" request.',
122
- request.method,
123
- request.url,
124
- )
125
- return
126
- }
127
-
128
- // At this point, any exception indicates an issue with the original request/response.
129
- console.error(
130
- `\
131
- [MSW] Caught an exception from the "%s %s" request (%s). This is probably not a problem with Mock Service Worker. There is likely an additional logging output above.`,
132
- request.method,
133
- request.url,
134
- `${error.name}: ${error.message}`,
135
- )
136
- }),
137
- )
138
- })
139
-
140
- async function handleRequest(event, requestId) {
141
- const client = await resolveMainClient(event)
142
- const response = await getResponse(event, client, requestId)
143
-
144
- // Send back the response clone for the "response:*" life-cycle events.
145
- // Ensure MSW is active and ready to handle the message, otherwise
146
- // this message will pend indefinitely.
147
- if (client && activeClientIds.has(client.id)) {
148
- ;(async function () {
149
- const clonedResponse = response.clone()
150
- sendToClient(client, {
151
- type: 'RESPONSE',
152
- payload: {
153
- requestId,
154
- type: clonedResponse.type,
155
- ok: clonedResponse.ok,
156
- status: clonedResponse.status,
157
- statusText: clonedResponse.statusText,
158
- body:
159
- clonedResponse.body === null ? null : await clonedResponse.text(),
160
- headers: Object.fromEntries(clonedResponse.headers.entries()),
161
- redirected: clonedResponse.redirected,
162
- },
163
- })
164
- })()
165
- }
166
-
167
- return response
168
- }
169
-
170
- // Resolve the main client for the given event.
171
- // Client that issues a request doesn't necessarily equal the client
172
- // that registered the worker. It's with the latter the worker should
173
- // communicate with during the response resolving phase.
174
- async function resolveMainClient(event) {
175
- const client = await self.clients.get(event.clientId)
176
-
177
- if (client?.frameType === 'top-level') {
178
- return client
179
- }
180
-
181
- const allClients = await self.clients.matchAll({
182
- type: 'window',
183
- })
184
-
185
- return allClients
186
- .filter((client) => {
187
- // Get only those clients that are currently visible.
188
- return client.visibilityState === 'visible'
189
- })
190
- .find((client) => {
191
- // Find the client ID that's recorded in the
192
- // set of clients that have registered the worker.
193
- return activeClientIds.has(client.id)
194
- })
195
- }
196
-
197
- async function getResponse(event, client, requestId) {
198
- const { request } = event
199
- const clonedRequest = request.clone()
200
-
201
- function passthrough() {
202
- // Clone the request because it might've been already used
203
- // (i.e. its body has been read and sent to the client).
204
- const headers = Object.fromEntries(clonedRequest.headers.entries())
205
-
206
- // Remove MSW-specific request headers so the bypassed requests
207
- // comply with the server's CORS preflight check.
208
- // Operate with the headers as an object because request "Headers"
209
- // are immutable.
210
- delete headers['x-msw-bypass']
211
-
212
- return fetch(clonedRequest, { headers })
213
- }
214
-
215
- // Bypass mocking when the client is not active.
216
- if (!client) {
217
- return passthrough()
218
- }
219
-
220
- // Bypass initial page load requests (i.e. static assets).
221
- // The absence of the immediate/parent client in the map of the active clients
222
- // means that MSW hasn't dispatched the "MOCK_ACTIVATE" event yet
223
- // and is not ready to handle requests.
224
- if (!activeClientIds.has(client.id)) {
225
- return passthrough()
226
- }
227
-
228
- // Bypass requests with the explicit bypass header.
229
- // Such requests can be issued by "ctx.fetch()".
230
- if (request.headers.get('x-msw-bypass') === 'true') {
231
- return passthrough()
232
- }
233
-
234
- // Notify the client that a request has been intercepted.
235
- const clientMessage = await sendToClient(client, {
236
- type: 'REQUEST',
237
- payload: {
238
- id: requestId,
239
- url: request.url,
240
- method: request.method,
241
- headers: Object.fromEntries(request.headers.entries()),
242
- cache: request.cache,
243
- mode: request.mode,
244
- credentials: request.credentials,
245
- destination: request.destination,
246
- integrity: request.integrity,
247
- redirect: request.redirect,
248
- referrer: request.referrer,
249
- referrerPolicy: request.referrerPolicy,
250
- body: await request.text(),
251
- bodyUsed: request.bodyUsed,
252
- keepalive: request.keepalive,
253
- },
254
- })
255
-
256
- switch (clientMessage.type) {
257
- case 'MOCK_RESPONSE': {
258
- return respondWithMock(clientMessage.data)
259
- }
260
-
261
- case 'MOCK_NOT_FOUND': {
262
- return passthrough()
263
- }
264
-
265
- case 'NETWORK_ERROR': {
266
- const { name, message } = clientMessage.data
267
- const networkError = new Error(message)
268
- networkError.name = name
269
-
270
- // Rejecting a "respondWith" promise emulates a network error.
271
- throw networkError
272
- }
273
- }
274
-
275
- return passthrough()
276
- }
277
-
278
- function sendToClient(client, message) {
279
- return new Promise((resolve, reject) => {
280
- const channel = new MessageChannel()
281
-
282
- channel.port1.onmessage = (event) => {
283
- if (event.data && event.data.error) {
284
- return reject(event.data.error)
285
- }
286
-
287
- resolve(event.data)
288
- }
289
-
290
- client.postMessage(message, [channel.port2])
291
- })
292
- }
293
-
294
- function sleep(timeMs) {
295
- return new Promise((resolve) => {
296
- setTimeout(resolve, timeMs)
297
- })
298
- }
299
-
300
- async function respondWithMock(response) {
301
- await sleep(response.delay)
302
- return new Response(response.body, response)
303
- }
package/remTags.bat DELETED
@@ -1,14 +0,0 @@
1
- @echo off
2
-
3
- rem Define the list of tags to be deleted
4
- setlocal enabledelayedexpansion
5
- set "tags=v1.0.0 v1.1.0 v1.10.0 v1.10.1 v1.2.0 v1.2.1 v1.2.2 v1.3.0 v1.4.0 v1.4.1 v1.4.2 v1.5.0 v1.5.1 v1.5.2 v1.6.0 v1.7.0 v1.7.1 v1.7.2 v1.8.0 v1.8.1 v1.8.2 v1.9.0 v1.9.1 v1.9.2 v1.9.3 v2.0.0-beta v1.11.0 v1.12.0 v1.13.0 v1.14.0 v1.15.0 v1.15.1 v1.15.2 v1.16.0 v1.17.0 v1.17.1 v1.18.0 v1.18.1 v1.18.2 v1.19.0 v1.19.1 v1.20.0 v1.21.0 v1.22.0 v1.22.1 v1.22.2 v1.22.3 v1.22.4 v1.23.0 v1.24.0 v1.24.1 v1.24.2 v1.24.3 v1.25.0 v2.0.0 v2.0.1 v2.0.2 v2.1.0 v2.2.0 v2.3.0 v2.3.1 v2.3.2 v2.4.0 v2.5.0 v2.5.1 v2.5.2 v2.5.3 v2.6.0 v2.7.0 v2.7.1 v2.8.0 v2.8.1 v2.8.2 v2.8.3 v2.8.4 v2.8.5 v2.9.0 v2.9.1 v2.9.2 v2.9.3 v2.9.4 v2.9.5 v2.9.6 v2.9.7 v2.9.8 v2.10.0 v2.10.1"
6
-
7
- rem Split the tags by spaces and loop through to delete
8
- for %%t in (%tags%) do (
9
- echo Deleting tag %%t
10
- git push origin :refs/tags/%%t
11
- )
12
-
13
- endlocal
14
- pause
package/vite.config.js DELETED
@@ -1,34 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import { resolve } from 'path';
3
- import react from '@vitejs/plugin-react';
4
- import svgrPlugin from 'vite-plugin-svgr';
5
- // import sourcemaps from 'rollup-plugin-sourcemaps';
6
-
7
- export default defineConfig({
8
- define: { 'process.env.NODE_ENV': '"production"' },
9
- plugins: [react(), svgrPlugin()],
10
- build: {
11
- outDir: 'build',
12
- lib: {
13
- entry: resolve(__dirname, './src/index.jsx'),
14
- name: 'timum',
15
- fileName: 'booking',
16
- },
17
- server: {
18
- open: true,
19
- },
20
- // sourcemap: true,
21
- // rollupOptions: {
22
- // plugins: [sourcemaps()],
23
- // },
24
- // rollupOptions: {
25
- // external: ['react', 'react-dom'],
26
- // output: {
27
- // globals: {
28
- // react: 'React',
29
- // 'react-dom': 'ReactDOM',
30
- // },
31
- // },
32
- // },
33
- },
34
- });