@phystack/gridapp-iframe-react 4.3.40-dev
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.
- package/CHANGELOG.md +977 -0
- package/dist/gridapp-iframe.d.ts +10 -0
- package/dist/gridapp-iframe.d.ts.map +1 -0
- package/dist/gridapp-iframe.js +163 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/package.json +28 -0
- package/src/gridapp-iframe.tsx +197 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +30 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,977 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## 4.1.34 (2025-02-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* html-entities 2 ([021c58e](https://github.com/ombori/gridapp/commit/021c58e6f1dd359d3f24cc0e5ed06d0afbab7635))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 4.1.33 (2025-02-26)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* merge ([70fd6cd](https://github.com/ombori/gridapp/commit/70fd6cd7afa56a3ebbfc6f718c6e75d4ae67cd2f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## 4.1.32 (2025-02-17)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* do not upload new browser device / screen ([a2c9e43](https://github.com/ombori/gridapp/commit/a2c9e43f1c5050d7a09fc9c43a8698e048c67548))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## 4.1.31 (2025-01-17)
|
|
40
|
+
|
|
41
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## 4.1.30 (2025-01-14)
|
|
48
|
+
|
|
49
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
## 4.1.29 (2025-01-14)
|
|
56
|
+
|
|
57
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
## 4.1.28 (2024-12-19)
|
|
64
|
+
|
|
65
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## 4.1.27 (2024-10-03)
|
|
72
|
+
|
|
73
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## 4.1.26 (2024-10-03)
|
|
80
|
+
|
|
81
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## 4.1.25 (2024-09-06)
|
|
88
|
+
|
|
89
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## 4.1.24 (2024-09-06)
|
|
96
|
+
|
|
97
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## 4.1.22 (2024-08-25)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Bug Fixes
|
|
107
|
+
|
|
108
|
+
* track active downloads ([75c0878](https://github.com/ombori/gridapp/commit/75c087891d0c6f23abfa79f9dfa42311d3616eb5))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
## 4.1.21 (2024-08-25)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
* attempt at new caching at app level ([7a34054](https://github.com/ombori/gridapp/commit/7a34054a04b4c6ab07d664582c14bc5e638956fe))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## 4.1.20 (2024-08-25)
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
### Bug Fixes
|
|
129
|
+
|
|
130
|
+
* es ([9fc1caa](https://github.com/ombori/gridapp/commit/9fc1caa7b63c25d841cdb63dc6adbb9c6704ee53))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## 4.1.19 (2024-08-25)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Bug Fixes
|
|
140
|
+
|
|
141
|
+
* revert settings mess ([a108198](https://github.com/ombori/gridapp/commit/a108198a394f49634d082b37ff53391f8542417f))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## 4.1.18 (2024-08-25)
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### Bug Fixes
|
|
151
|
+
|
|
152
|
+
* remove the blobs ([155d625](https://github.com/ombori/gridapp/commit/155d6250c8c3b4c7a630b08b3d29a2f06814ec24))
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## 4.1.17 (2024-08-25)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Bug Fixes
|
|
162
|
+
|
|
163
|
+
* attempt at unfiltered settings 3 ([a76bfc3](https://github.com/ombori/gridapp/commit/a76bfc3c974643291296853d60874196fc791980))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## 4.1.16 (2024-08-25)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Bug Fixes
|
|
173
|
+
|
|
174
|
+
* attempt at unfiltered settings 2 ([d073d75](https://github.com/ombori/gridapp/commit/d073d75714bff8559167fb0dd5fc5b9ae881f0d1))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
## 4.1.15 (2024-08-25)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Bug Fixes
|
|
184
|
+
|
|
185
|
+
* attempt at unfiltered settings ([843a0e1](https://github.com/ombori/gridapp/commit/843a0e102940ccae2356857a55f819da38f3528e))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
## 4.1.14 (2024-08-25)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
### Bug Fixes
|
|
195
|
+
|
|
196
|
+
* update ([e68dc51](https://github.com/ombori/gridapp/commit/e68dc51a92207cc1be4222543a7288fb5a17e86c))
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
## 4.1.13 (2024-08-25)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Bug Fixes
|
|
206
|
+
|
|
207
|
+
* include hash ([e1c87e9](https://github.com/ombori/gridapp/commit/e1c87e9e6d7a2a3b5fed45861c5f8f5b7fda5d16))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
## 4.1.12 (2024-08-25)
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Bug Fixes
|
|
217
|
+
|
|
218
|
+
* test ([f0ba5ae](https://github.com/ombori/gridapp/commit/f0ba5aeff3d29224bb376342ef4646c927d17ee4))
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
## 4.1.11 (2024-08-25)
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### Bug Fixes
|
|
228
|
+
|
|
229
|
+
* product fetch progress ([af6f143](https://github.com/ombori/gridapp/commit/af6f1433e21b7378c9a8465c4fd188fb056ad36f))
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## 4.1.10 (2024-08-25)
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
### Bug Fixes
|
|
239
|
+
|
|
240
|
+
* better total progress 2 ([284d21e](https://github.com/ombori/gridapp/commit/284d21eb8ea53883ee49946ba6040a64d55f7147))
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## 4.1.9 (2024-08-25)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### Bug Fixes
|
|
250
|
+
|
|
251
|
+
* better total progress ([17d3fc4](https://github.com/ombori/gridapp/commit/17d3fc416d8b8b07a46ac7c772cef10da340dd63))
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
## 4.1.8 (2024-08-25)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
### Bug Fixes
|
|
261
|
+
|
|
262
|
+
* better value 2 ([c588acc](https://github.com/ombori/gridapp/commit/c588acc6b6b264ae44e46b8b5801dc73dcac3ae7))
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
## 4.1.7 (2024-08-25)
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### Bug Fixes
|
|
272
|
+
|
|
273
|
+
* better value ([a5187af](https://github.com/ombori/gridapp/commit/a5187af09f02da1dd48099dfc9503dd1023733b3))
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
## 4.1.6 (2024-08-25)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
### Bug Fixes
|
|
283
|
+
|
|
284
|
+
* better ([2e88234](https://github.com/ombori/gridapp/commit/2e882348c9b741d0a5607ea8dc8cb5d92cb08455))
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
## 4.1.5 (2024-08-25)
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
### Bug Fixes
|
|
294
|
+
|
|
295
|
+
* yes 2 ([e13193e](https://github.com/ombori/gridapp/commit/e13193efd61fd460e12177843b19c68f029a88b3))
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## 4.1.4 (2024-08-25)
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Bug Fixes
|
|
305
|
+
|
|
306
|
+
* handle invalid manifest response ([7b61a7d](https://github.com/ombori/gridapp/commit/7b61a7d026ecdb2e1197815659762b0823d27c3f))
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
## 4.1.3 (2024-08-25)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
### Bug Fixes
|
|
316
|
+
|
|
317
|
+
* fuckup, need to keep container for the schema ([4f31201](https://github.com/ombori/gridapp/commit/4f31201958aece468428d785dcc5258f9fdd4354))
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## 4.1.2 (2024-08-25)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
### Bug Fixes
|
|
327
|
+
|
|
328
|
+
* fixes ([ece5813](https://github.com/ombori/gridapp/commit/ece5813ca8b9aef4c8f4a7354a2b591ba6936607))
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
## 4.1.1 (2024-08-25)
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
### Bug Fixes
|
|
338
|
+
|
|
339
|
+
* settings read from right localstorage ([9dcf45c](https://github.com/ombori/gridapp/commit/9dcf45cfb5016c4a5872f759914b928341130fc9))
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
# 4.1.0 (2024-08-25)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
### Features
|
|
349
|
+
|
|
350
|
+
* interesting new boot ([787d1bf](https://github.com/ombori/gridapp/commit/787d1bfad9837a55fab01b1f856648cd7b58ce88))
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
## 4.0.6 (2024-08-25)
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### Bug Fixes
|
|
360
|
+
|
|
361
|
+
* logging ([636df86](https://github.com/ombori/gridapp/commit/636df865515514734f5a0135803eccab87c695a7))
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
## 4.0.5 (2024-08-25)
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### Bug Fixes
|
|
371
|
+
|
|
372
|
+
* logging ([c7726c6](https://github.com/ombori/gridapp/commit/c7726c663608f9c15e54ea5d3bd4b2316c4fa7d5))
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
## 4.0.4 (2024-08-25)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
### Bug Fixes
|
|
382
|
+
|
|
383
|
+
* logging ([4934668](https://github.com/ombori/gridapp/commit/4934668dead37809297a0a4a78221711c8f4d982))
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
## 4.0.3 (2024-08-24)
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
### Bug Fixes
|
|
393
|
+
|
|
394
|
+
* es ([da88e20](https://github.com/ombori/gridapp/commit/da88e209c7bc5698d385b062aa8f5601f22944de))
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
## 4.0.2 (2024-08-24)
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
### Bug Fixes
|
|
404
|
+
|
|
405
|
+
* logging ([a4b6674](https://github.com/ombori/gridapp/commit/a4b6674dc83eb7bb2d85b15c260d94fdf3fa0907))
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
## 4.0.1 (2024-08-24)
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
### Bug Fixes
|
|
415
|
+
|
|
416
|
+
* deps ([b4f1925](https://github.com/ombori/gridapp/commit/b4f1925d08d3977d4d7dfdacddfad3696f0f8f65))
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
## 3.92.13 (2024-05-30)
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### Bug Fixes
|
|
426
|
+
|
|
427
|
+
* refactored ga-messaging ([0f1b527](https://github.com/ombori/gridapp/commit/0f1b527e66150611fd31f4cea72f10ee56503198))
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
## 3.92.12 (2024-05-29)
|
|
434
|
+
|
|
435
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
## 3.92.11 (2024-05-26)
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
### Bug Fixes
|
|
445
|
+
|
|
446
|
+
* scanner ([0550883](https://github.com/ombori/gridapp/commit/05508835d802344500028f297f4e0c3f25411aaa))
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
## 3.92.10 (2024-05-25)
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
### Bug Fixes
|
|
456
|
+
|
|
457
|
+
* reconnect ([5b8adac](https://github.com/ombori/gridapp/commit/5b8adacae1041fde922222da46b141e9eaee456f))
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
## 3.92.9 (2024-05-25)
|
|
464
|
+
|
|
465
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
## 3.92.8 (2024-05-24)
|
|
472
|
+
|
|
473
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
## 3.92.7 (2024-05-24)
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
### Bug Fixes
|
|
483
|
+
|
|
484
|
+
* ver ([a6b8c30](https://github.com/ombori/gridapp/commit/a6b8c307d841d1cd4f0574b754b29d06724002dd))
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
## 3.92.6 (2024-05-24)
|
|
491
|
+
|
|
492
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
## 3.92.5 (2024-05-20)
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
### Bug Fixes
|
|
502
|
+
|
|
503
|
+
* exit if it can not connect to phyedged timeout 2 ([ad402af](https://github.com/ombori/gridapp/commit/ad402af91d8a75f56578dbe9ad41b98e09ddbb3a))
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
## 3.92.4 (2024-05-20)
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
### Bug Fixes
|
|
513
|
+
|
|
514
|
+
* exit if it can not connect to phyedged timeout ([c45ca4a](https://github.com/ombori/gridapp/commit/c45ca4ae63ceba6773ef8d301db5e51f74fbda80))
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
## 3.92.3 (2024-05-20)
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
### Bug Fixes
|
|
524
|
+
|
|
525
|
+
* throw an error it connection fails ([5f61fc8](https://github.com/ombori/gridapp/commit/5f61fc8c4546a8c202128a023951288fc67e1bb4))
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
## 3.92.2 (2024-05-16)
|
|
532
|
+
|
|
533
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
## 3.92.1 (2024-05-16)
|
|
540
|
+
|
|
541
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
# 3.92.0 (2024-05-15)
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
### Features
|
|
551
|
+
|
|
552
|
+
* data matrix data source type ([bc47310](https://github.com/ombori/gridapp/commit/bc47310fec84b9fcf7b22a4d5261f7053f8877bd))
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
## 3.91.13 (2024-05-14)
|
|
559
|
+
|
|
560
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
## 3.91.12 (2024-05-14)
|
|
567
|
+
|
|
568
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
## 3.91.11 (2024-05-14)
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
### Bug Fixes
|
|
578
|
+
|
|
579
|
+
* new docker buildx local tag 2 ([4b63c84](https://github.com/ombori/gridapp/commit/4b63c8408ddb0264ced7a026f2658547f4fb2bba))
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
## 3.91.10 (2024-05-14)
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
### Bug Fixes
|
|
589
|
+
|
|
590
|
+
* new docker buildx local tag ([084f1a9](https://github.com/ombori/gridapp/commit/084f1a923ae16cd978d7a3a84036cf81ca07748a))
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
## 3.91.9 (2024-05-12)
|
|
597
|
+
|
|
598
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
## 3.91.8 (2024-05-12)
|
|
605
|
+
|
|
606
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
## 3.91.7 (2024-05-11)
|
|
613
|
+
|
|
614
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
## 3.91.6 (2024-05-03)
|
|
621
|
+
|
|
622
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
## 3.91.5 (2024-04-16)
|
|
629
|
+
|
|
630
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
## 3.91.4 (2024-04-15)
|
|
637
|
+
|
|
638
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
## 3.91.3 (2024-04-15)
|
|
645
|
+
|
|
646
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
## 3.91.2 (2024-04-15)
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
### Reverts
|
|
656
|
+
|
|
657
|
+
* format changes ([ac616fe](https://github.com/ombori/gridapp/commit/ac616feeaf79f3a57123cad0c87868b17880c635))
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
## 3.91.1 (2024-04-08)
|
|
664
|
+
|
|
665
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
# 3.91.0 (2024-04-08)
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
### Features
|
|
675
|
+
|
|
676
|
+
* override ai assistants ([1519ed6](https://github.com/ombori/gridapp/commit/1519ed6d3fdfafdc99a521c91e9efd1348dc976b))
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
## 3.90.12 (2024-03-14)
|
|
683
|
+
|
|
684
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
## 3.90.11 (2024-03-14)
|
|
691
|
+
|
|
692
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
## 3.90.10 (2024-03-11)
|
|
699
|
+
|
|
700
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
## 3.90.9 (2024-03-11)
|
|
707
|
+
|
|
708
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
## 3.90.8 (2024-03-11)
|
|
715
|
+
|
|
716
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
## 3.90.7 (2024-03-11)
|
|
723
|
+
|
|
724
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
## 3.90.6 (2024-03-08)
|
|
731
|
+
|
|
732
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
## 3.90.5 (2024-03-07)
|
|
739
|
+
|
|
740
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
## 3.90.3 (2024-03-07)
|
|
747
|
+
|
|
748
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
## 3.90.2 (2024-03-07)
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
### Bug Fixes
|
|
758
|
+
|
|
759
|
+
* update yarn.lock ([c68966c](https://github.com/ombori/gridapp/commit/c68966c4aaa68e9e217716723db0e3ed09d559f2))
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
## 3.90.1 (2024-03-06)
|
|
766
|
+
|
|
767
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
768
|
+
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
## [3.26.1](https://github.com/ombori/gridapp/compare/v3.26.0...v3.26.1) (2023-03-23)
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
### Bug Fixes
|
|
777
|
+
|
|
778
|
+
* allow iframe post messages to all ([8b63e28](https://github.com/ombori/gridapp/commit/8b63e2833747a70a906405c4039d2cbd5d8298d4))
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
# [3.22.0](https://github.com/ombori/gridapp/compare/v3.21.0...v3.22.0) (2023-02-22)
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
### Features
|
|
788
|
+
|
|
789
|
+
* qa and dev screen and boot ([3f4d1ad](https://github.com/ombori/gridapp/commit/3f4d1ad8f50689becf224d0130ced38cd86bf503))
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
# [2.233.0](https://github.com/ombori/gridapp/compare/v2.232.0...v2.233.0) (2022-10-20)
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
### Features
|
|
799
|
+
|
|
800
|
+
* add webkit-optimize-contrast option to images ([ff4968f](https://github.com/ombori/gridapp/commit/ff4968ff87d0ad8618159c5b71bc7e767cae6e0c))
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
## [2.197.5](https://github.com/ombori/gridapp/compare/v2.197.4...v2.197.5) (2022-04-18)
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
### Bug Fixes
|
|
810
|
+
|
|
811
|
+
* minor improvement on autoscale ([e006607](https://github.com/ombori/gridapp/commit/e006607416563caf6314520fa20a501cd0baa37b))
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
## [2.197.4](https://github.com/ombori/gridapp/compare/v2.197.3...v2.197.4) (2022-04-18)
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
### Bug Fixes
|
|
821
|
+
|
|
822
|
+
* do not autoscale mobile apps ([2d7e9ac](https://github.com/ombori/gridapp/commit/2d7e9aceb177bf2cbf5ddd5dd2496c47244db7c9))
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
## [2.197.3](https://github.com/ombori/gridapp/compare/v2.197.2...v2.197.3) (2022-04-17)
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
### Bug Fixes
|
|
832
|
+
|
|
833
|
+
* cleanup ([4945056](https://github.com/ombori/gridapp/commit/4945056642f83703003b9cff639f664f6b5943e6))
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
## [2.197.2](https://github.com/ombori/gridapp/compare/v2.197.1...v2.197.2) (2022-04-16)
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
### Bug Fixes
|
|
843
|
+
|
|
844
|
+
* handle resizes with the scaling ([4048be3](https://github.com/ombori/gridapp/commit/4048be3f8923bff0152a4ad3240eb7e4947a5b89))
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
|
|
850
|
+
## [2.197.1](https://github.com/ombori/gridapp/compare/v2.197.0...v2.197.1) (2022-04-16)
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
### Bug Fixes
|
|
854
|
+
|
|
855
|
+
* automatically adapt to equivalent of 1080p resolution ([74c4ffa](https://github.com/ombori/gridapp/commit/74c4ffad347efca7d3569e8be54bca549707176c))
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
# [2.166.0](https://github.com/ombori/gridapp/compare/v2.165.2...v2.166.0) (2022-02-02)
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
### Features
|
|
865
|
+
|
|
866
|
+
* set gridapp iframe z index to 1 ([47397ae](https://github.com/ombori/gridapp/commit/47397ae20aad72e4066f9af931391261ad54409b))
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
## [2.74.2](https://github.com/ombori/gridapp/compare/v2.74.1...v2.74.2) (2021-07-23)
|
|
873
|
+
|
|
874
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
## [2.74.1](https://github.com/ombori/gridapp/compare/v2.74.0...v2.74.1) (2021-07-22)
|
|
881
|
+
|
|
882
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
|
|
888
|
+
# [2.74.0](https://github.com/ombori/gridapp/compare/v2.73.2...v2.74.0) (2021-07-22)
|
|
889
|
+
|
|
890
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
## [2.73.2](https://github.com/ombori/gridapp/compare/v2.73.1...v2.73.2) (2021-07-22)
|
|
897
|
+
|
|
898
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
|
|
904
|
+
## [2.73.1](https://github.com/ombori/gridapp/compare/v2.73.0...v2.73.1) (2021-07-21)
|
|
905
|
+
|
|
906
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
## [2.72.1](https://github.com/ombori/gridapp/compare/v2.72.0...v2.72.1) (2021-07-18)
|
|
913
|
+
|
|
914
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
915
|
+
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
# [2.72.0](https://github.com/ombori/gridapp/compare/v2.71.0...v2.72.0) (2021-07-18)
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
### Features
|
|
924
|
+
|
|
925
|
+
* pass iframe messages for nested installations ([8809714](https://github.com/ombori/gridapp/commit/8809714bb4cd2d08fbeb476b398b80c16ff3c385))
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
## [2.65.11](https://github.com/ombori/gridapp/compare/v2.65.10...v2.65.11) (2021-06-09)
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
### Bug Fixes
|
|
935
|
+
|
|
936
|
+
* foward .grid to all child iframes ([597c6bf](https://github.com/ombori/gridapp/commit/597c6bfee67f56e88ef6091dfdb0121d1f5bdfdc))
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
## [2.65.10](https://github.com/ombori/gridapp/compare/v2.65.9...v2.65.10) (2021-06-09)
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
### Bug Fixes
|
|
946
|
+
|
|
947
|
+
* foward gridSocket to all child iframes ([5abb4f1](https://github.com/ombori/gridapp/commit/5abb4f11d939fda64a4817aa5628aa24958ce590))
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
# [2.3.0](https://github.com/ombori/gridapp/compare/v2.2.0...v2.3.0) (2020-09-09)
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
### Bug Fixes
|
|
957
|
+
|
|
958
|
+
* tsconfig uses strict mode ([30814aa](https://github.com/ombori/gridapp/commit/30814aaebe67207e2dcc8ea4aad58ab5d24dc601))
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
## [1.21.2](https://github.com/ombori/gridapp/compare/v1.21.1...v1.21.2) (2020-08-12)
|
|
965
|
+
|
|
966
|
+
**Note:** Version bump only for package @ombori/ga-gridapp-iframe
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
# [1.21.0](https://github.com/ombori/gridapp/compare/v1.20.0...v1.21.0) (2020-08-12)
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
### Features
|
|
976
|
+
|
|
977
|
+
* add gridapp iframe package ([c0c61b4](https://github.com/ombori/gridapp/commit/c0c61b434f627e1ac2015302a1381e21ac263bb6))
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface GridappIframeProps extends React.HTMLProps<HTMLIFrameElement> {
|
|
2
|
+
root: string;
|
|
3
|
+
id: string;
|
|
4
|
+
settings: any;
|
|
5
|
+
normalizeScaling: boolean;
|
|
6
|
+
onReady?: (frame: HTMLIFrameElement) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const GridappIframe: (props: GridappIframeProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default GridappIframe;
|
|
10
|
+
//# sourceMappingURL=gridapp-iframe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gridapp-iframe.d.ts","sourceRoot":"","sources":["../src/gridapp-iframe.tsx"],"names":[],"mappings":"AAGA,UAAU,kBAAmB,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,GAAG,CAAC;IACd,gBAAgB,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAC9C;AAED,QAAA,MAAM,aAAa,GAAI,OAAO,kBAAkB,4CA0H/C,CAAC;AA+DF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { useEffect, useRef, useState, useCallback } from 'react';
|
|
25
|
+
import { debounce } from 'lodash';
|
|
26
|
+
var GridappIframe = function (props) {
|
|
27
|
+
var root = props.root, id = props.id, settings = props.settings, src = props.src, _a = props.onReady, onReady = _a === void 0 ? null : _a, restProps = __rest(props, ["root", "id", "settings", "src", "onReady"]);
|
|
28
|
+
var disableScaling = !props.normalizeScaling;
|
|
29
|
+
var iframeRefContainer = useRef(null);
|
|
30
|
+
useEffect(function () {
|
|
31
|
+
var iframe = iframeRefContainer.current;
|
|
32
|
+
if (iframe) {
|
|
33
|
+
handleIframeReady(iframe, function () {
|
|
34
|
+
setTimeout(function () {
|
|
35
|
+
if ((iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) != null) {
|
|
36
|
+
var contentWindow = iframe.contentWindow;
|
|
37
|
+
contentWindow.onerror = function (err) {
|
|
38
|
+
console.error(err);
|
|
39
|
+
return false;
|
|
40
|
+
};
|
|
41
|
+
contentWindow.console = console;
|
|
42
|
+
var scriptElem = document.createElement('script');
|
|
43
|
+
scriptElem.src = "".concat(root, "/preload.js");
|
|
44
|
+
iframe.setAttribute('frameborder', '0');
|
|
45
|
+
contentWindow.gridParams = { id: id, settings: settings, root: root };
|
|
46
|
+
contentWindow.document.body.appendChild(scriptElem);
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
contentWindow.grid = window.grid;
|
|
49
|
+
onReady && onReady(iframe);
|
|
50
|
+
}
|
|
51
|
+
}, 100);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}, [iframeRefContainer, root, id, settings, onReady]);
|
|
55
|
+
// pass iframe message for nested installations
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
var messageHandler = function (event) {
|
|
58
|
+
var _a;
|
|
59
|
+
// Do we trust the sender of this message? (might be
|
|
60
|
+
// different from what we originally opened, for example).
|
|
61
|
+
var data = event.data;
|
|
62
|
+
if (iframeRefContainer.current) {
|
|
63
|
+
(_a = iframeRefContainer.current.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage(data, '*');
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
window.addEventListener('message', messageHandler, false);
|
|
67
|
+
// Cleanup function for React 18 strict mode compatibility
|
|
68
|
+
return function () {
|
|
69
|
+
window.removeEventListener('message', messageHandler);
|
|
70
|
+
};
|
|
71
|
+
}, []);
|
|
72
|
+
var _b = useState({
|
|
73
|
+
width: window.innerWidth,
|
|
74
|
+
height: window.innerHeight,
|
|
75
|
+
}), dimensions = _b[0], setDimensions = _b[1];
|
|
76
|
+
var handleResize = useCallback(debounce(function () {
|
|
77
|
+
setDimensions({
|
|
78
|
+
width: window.innerWidth,
|
|
79
|
+
height: window.innerHeight,
|
|
80
|
+
});
|
|
81
|
+
}, 300), []);
|
|
82
|
+
var width = dimensions.width, height = dimensions.height;
|
|
83
|
+
var isPortrait = width < height;
|
|
84
|
+
var iframeStyles = {
|
|
85
|
+
position: 'absolute',
|
|
86
|
+
transform: '',
|
|
87
|
+
transformOrigin: '0 0',
|
|
88
|
+
top: 0,
|
|
89
|
+
left: 0,
|
|
90
|
+
width: '100%',
|
|
91
|
+
height: '100%',
|
|
92
|
+
border: 0,
|
|
93
|
+
zIndex: 1,
|
|
94
|
+
};
|
|
95
|
+
if (!disableScaling) {
|
|
96
|
+
var scalingFactor = isPortrait ? width / 1080 : height / 1080;
|
|
97
|
+
var scaledHeight = isPortrait ? height / scalingFactor : 1080;
|
|
98
|
+
var scaledWidth = isPortrait ? 1080 : width / scalingFactor;
|
|
99
|
+
iframeStyles.width = scaledWidth;
|
|
100
|
+
iframeStyles.height = scaledHeight;
|
|
101
|
+
iframeStyles.transform = "scale(".concat(scalingFactor, ")");
|
|
102
|
+
useEffect(function () {
|
|
103
|
+
window.addEventListener('resize', handleResize, false);
|
|
104
|
+
// Cleanup function for React 18 strict mode compatibility
|
|
105
|
+
return function () {
|
|
106
|
+
window.removeEventListener('resize', handleResize);
|
|
107
|
+
};
|
|
108
|
+
}, [handleResize]);
|
|
109
|
+
}
|
|
110
|
+
return (_jsx("div", { children: _jsx("iframe", __assign({ style: iframeStyles, title: "Gridapp", scrolling: "no", ref: iframeRefContainer, src: src }, restProps)) }));
|
|
111
|
+
};
|
|
112
|
+
var handleIframeReady = function (iFrame, fn) {
|
|
113
|
+
var timer;
|
|
114
|
+
var fired = false;
|
|
115
|
+
function ready() {
|
|
116
|
+
if (!fired) {
|
|
117
|
+
fired = true;
|
|
118
|
+
window.clearTimeout(timer);
|
|
119
|
+
fn.call(this);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function readyState() {
|
|
123
|
+
if (this.readyState === 'complete') {
|
|
124
|
+
ready.call(this);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
// cross platform event handler for compatibility with older IE versions
|
|
128
|
+
function addEvent(elem, event, fn) {
|
|
129
|
+
if (elem.addEventListener) {
|
|
130
|
+
return elem.addEventListener(event, fn);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return elem.attachEvent('on' + event, function () {
|
|
134
|
+
return fn.call(elem, window.event);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
// use iFrame load as a backup - though the other events should occur first
|
|
139
|
+
addEvent(iFrame, 'load', function () {
|
|
140
|
+
ready.call(iFrame.contentDocument || iFrame.contentWindow.document);
|
|
141
|
+
});
|
|
142
|
+
function checkLoaded() {
|
|
143
|
+
var doc = iFrame.contentDocument || iFrame.contentWindow.document;
|
|
144
|
+
// We can tell if there is a dummy document installed because the dummy document
|
|
145
|
+
// will have an URL that starts with "about:". The real document will not have that URL
|
|
146
|
+
if (doc.URL.indexOf('about:') !== 0) {
|
|
147
|
+
if (doc.readyState === 'complete') {
|
|
148
|
+
ready.call(doc);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
// set event listener for DOMContentLoaded on the new document
|
|
152
|
+
addEvent(doc, 'DOMContentLoaded', ready);
|
|
153
|
+
addEvent(doc, 'readystatechange', readyState);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
// still same old original document, so keep looking for content or new document
|
|
158
|
+
timer = window.setTimeout(checkLoaded, 1);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
checkLoaded();
|
|
162
|
+
};
|
|
163
|
+
export default GridappIframe;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './gridapp-iframe';
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@phystack/gridapp-iframe-react",
|
|
3
|
+
"version": "4.3.40-dev",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"private": false,
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"build:watch": "tsc -w"
|
|
13
|
+
},
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"react": "18.3.1",
|
|
16
|
+
"react-dom": "18.3.1"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"lodash": "^4.17.21"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/lodash": "^4.14.202",
|
|
23
|
+
"@types/react": "^18.2.55",
|
|
24
|
+
"@types/react-dom": "^18.2.19",
|
|
25
|
+
"typescript": "^5.8.2"
|
|
26
|
+
},
|
|
27
|
+
"gitHead": "53c505b3ecad47ebd4f38819c07b0ec1227214a6"
|
|
28
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { useEffect, useRef, useState, useCallback } from 'react';
|
|
2
|
+
import { debounce } from 'lodash';
|
|
3
|
+
|
|
4
|
+
interface GridappIframeProps extends React.HTMLProps<HTMLIFrameElement> {
|
|
5
|
+
root: string;
|
|
6
|
+
id: string;
|
|
7
|
+
settings: any;
|
|
8
|
+
normalizeScaling: boolean;
|
|
9
|
+
onReady?: (frame: HTMLIFrameElement) => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const GridappIframe = (props: GridappIframeProps) => {
|
|
13
|
+
const { root, id, settings, src, onReady = null, ...restProps } = props;
|
|
14
|
+
|
|
15
|
+
const disableScaling = !props.normalizeScaling;
|
|
16
|
+
|
|
17
|
+
const iframeRefContainer = useRef<HTMLIFrameElement | null>(null);
|
|
18
|
+
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
const iframe = iframeRefContainer.current;
|
|
21
|
+
if (iframe) {
|
|
22
|
+
handleIframeReady(iframe, () => {
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
if (iframe?.contentWindow != null) {
|
|
25
|
+
const contentWindow = iframe.contentWindow as any;
|
|
26
|
+
contentWindow.onerror = (err: any) => {
|
|
27
|
+
console.error(err);
|
|
28
|
+
return false;
|
|
29
|
+
};
|
|
30
|
+
contentWindow.console = console;
|
|
31
|
+
const scriptElem = document.createElement('script');
|
|
32
|
+
scriptElem.src = `${root}/preload.js`;
|
|
33
|
+
iframe.setAttribute('frameborder', '0');
|
|
34
|
+
contentWindow.gridParams = { id, settings, root };
|
|
35
|
+
contentWindow.document.body.appendChild(scriptElem);
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
contentWindow.grid = window.grid;
|
|
38
|
+
onReady && onReady(iframe);
|
|
39
|
+
}
|
|
40
|
+
}, 100);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}, [iframeRefContainer, root, id, settings, onReady]);
|
|
44
|
+
|
|
45
|
+
// pass iframe message for nested installations
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
const messageHandler = (event: MessageEvent) => {
|
|
48
|
+
// Do we trust the sender of this message? (might be
|
|
49
|
+
// different from what we originally opened, for example).
|
|
50
|
+
const { data } = event;
|
|
51
|
+
if (iframeRefContainer.current) {
|
|
52
|
+
iframeRefContainer.current.contentWindow?.postMessage(data, '*');
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
window.addEventListener('message', messageHandler, false);
|
|
57
|
+
|
|
58
|
+
// Cleanup function for React 18 strict mode compatibility
|
|
59
|
+
return () => {
|
|
60
|
+
window.removeEventListener('message', messageHandler);
|
|
61
|
+
};
|
|
62
|
+
}, []);
|
|
63
|
+
|
|
64
|
+
const [dimensions, setDimensions] = useState({
|
|
65
|
+
width: window.innerWidth,
|
|
66
|
+
height: window.innerHeight,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const handleResize = useCallback(
|
|
70
|
+
debounce(() => {
|
|
71
|
+
setDimensions({
|
|
72
|
+
width: window.innerWidth,
|
|
73
|
+
height: window.innerHeight,
|
|
74
|
+
});
|
|
75
|
+
}, 300),
|
|
76
|
+
[]
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
const { width, height } = dimensions;
|
|
80
|
+
const isPortrait = width < height;
|
|
81
|
+
|
|
82
|
+
const iframeStyles: {
|
|
83
|
+
position: 'absolute';
|
|
84
|
+
transform: string;
|
|
85
|
+
transformOrigin: string;
|
|
86
|
+
top: number;
|
|
87
|
+
left: number;
|
|
88
|
+
width: number | string;
|
|
89
|
+
height: number | string;
|
|
90
|
+
border: number;
|
|
91
|
+
zIndex: number;
|
|
92
|
+
} = {
|
|
93
|
+
position: 'absolute',
|
|
94
|
+
transform: '',
|
|
95
|
+
transformOrigin: '0 0',
|
|
96
|
+
top: 0,
|
|
97
|
+
left: 0,
|
|
98
|
+
width: '100%',
|
|
99
|
+
height: '100%',
|
|
100
|
+
border: 0,
|
|
101
|
+
zIndex: 1,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
if (!disableScaling) {
|
|
105
|
+
const scalingFactor = isPortrait ? width / 1080 : height / 1080;
|
|
106
|
+
const scaledHeight = isPortrait ? height / scalingFactor : 1080;
|
|
107
|
+
const scaledWidth = isPortrait ? 1080 : width / scalingFactor;
|
|
108
|
+
iframeStyles.width = scaledWidth;
|
|
109
|
+
iframeStyles.height = scaledHeight;
|
|
110
|
+
iframeStyles.transform = `scale(${scalingFactor})`;
|
|
111
|
+
|
|
112
|
+
useEffect(() => {
|
|
113
|
+
window.addEventListener('resize', handleResize, false);
|
|
114
|
+
|
|
115
|
+
// Cleanup function for React 18 strict mode compatibility
|
|
116
|
+
return () => {
|
|
117
|
+
window.removeEventListener('resize', handleResize);
|
|
118
|
+
};
|
|
119
|
+
}, [handleResize]);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return (
|
|
123
|
+
<div>
|
|
124
|
+
<iframe
|
|
125
|
+
style={iframeStyles}
|
|
126
|
+
title="Gridapp"
|
|
127
|
+
scrolling="no"
|
|
128
|
+
ref={iframeRefContainer}
|
|
129
|
+
src={src}
|
|
130
|
+
{...restProps}
|
|
131
|
+
/>
|
|
132
|
+
</div>
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const handleIframeReady = (iFrame: any, fn: any) => {
|
|
137
|
+
let timer: number | undefined;
|
|
138
|
+
let fired = false;
|
|
139
|
+
|
|
140
|
+
function ready(this: any) {
|
|
141
|
+
if (!fired) {
|
|
142
|
+
fired = true;
|
|
143
|
+
window.clearTimeout(timer);
|
|
144
|
+
fn.call(this);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
function readyState(this: any) {
|
|
149
|
+
if (this.readyState === 'complete') {
|
|
150
|
+
ready.call(this);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// cross platform event handler for compatibility with older IE versions
|
|
155
|
+
function addEvent(
|
|
156
|
+
elem: {
|
|
157
|
+
addEventListener: (arg0: any, arg1: any) => any;
|
|
158
|
+
attachEvent: (arg0: string, arg1: () => any) => any;
|
|
159
|
+
},
|
|
160
|
+
event: string,
|
|
161
|
+
fn: { (): void; (): void; (): void; call?: any },
|
|
162
|
+
) {
|
|
163
|
+
if (elem.addEventListener) {
|
|
164
|
+
return elem.addEventListener(event, fn);
|
|
165
|
+
} else {
|
|
166
|
+
return elem.attachEvent('on' + event, function () {
|
|
167
|
+
return fn.call(elem, window.event);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// use iFrame load as a backup - though the other events should occur first
|
|
173
|
+
addEvent(iFrame, 'load', function () {
|
|
174
|
+
ready.call(iFrame.contentDocument || iFrame.contentWindow.document);
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
function checkLoaded() {
|
|
178
|
+
const doc = iFrame.contentDocument || iFrame.contentWindow.document;
|
|
179
|
+
// We can tell if there is a dummy document installed because the dummy document
|
|
180
|
+
// will have an URL that starts with "about:". The real document will not have that URL
|
|
181
|
+
if (doc.URL.indexOf('about:') !== 0) {
|
|
182
|
+
if (doc.readyState === 'complete') {
|
|
183
|
+
ready.call(doc);
|
|
184
|
+
} else {
|
|
185
|
+
// set event listener for DOMContentLoaded on the new document
|
|
186
|
+
addEvent(doc, 'DOMContentLoaded', ready);
|
|
187
|
+
addEvent(doc, 'readystatechange', readyState);
|
|
188
|
+
}
|
|
189
|
+
} else {
|
|
190
|
+
// still same old original document, so keep looking for content or new document
|
|
191
|
+
timer = window.setTimeout(checkLoaded, 1);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
checkLoaded();
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export default GridappIframe;
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './gridapp-iframe';
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"lib": [
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.iterable",
|
|
7
|
+
"esnext"
|
|
8
|
+
],
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"allowSyntheticDefaultImports": true,
|
|
13
|
+
"strict": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"module": "esnext",
|
|
16
|
+
"moduleResolution": "node",
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"jsx": "react-jsx",
|
|
20
|
+
"outDir": "dist",
|
|
21
|
+
"rootDir": "src",
|
|
22
|
+
"declarationDir": "dist",
|
|
23
|
+
"declarationMap": true,
|
|
24
|
+
"declaration": true,
|
|
25
|
+
"alwaysStrict": true
|
|
26
|
+
},
|
|
27
|
+
"include": [
|
|
28
|
+
"src"
|
|
29
|
+
]
|
|
30
|
+
}
|