@interopio/groups-ui-react 2.7.0 → 2.7.1

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 (60) hide show
  1. package/dist/cjs/GroupWrapper.d.ts +2 -1
  2. package/dist/cjs/index.js +272 -177
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/tests/buttons/BaseButton.test.d.ts +1 -0
  5. package/dist/cjs/tests/buttons/CloneButton.test.d.ts +1 -0
  6. package/dist/cjs/tests/buttons/CloseButton.test.d.ts +1 -0
  7. package/dist/cjs/tests/buttons/CustomButton.test.d.ts +1 -0
  8. package/dist/cjs/tests/buttons/ExtractButton.test.d.ts +1 -0
  9. package/dist/cjs/tests/buttons/FeedbackButton.test.d.ts +1 -0
  10. package/dist/cjs/tests/buttons/LockButtons.test.d.ts +1 -0
  11. package/dist/cjs/tests/buttons/MaximizeButton.test.d.ts +1 -0
  12. package/dist/cjs/tests/buttons/MinimizeButton.test.d.ts +1 -0
  13. package/dist/cjs/tests/buttons/OverflowButton.test.d.ts +1 -0
  14. package/dist/cjs/tests/buttons/RestoreButton.test.d.ts +1 -0
  15. package/dist/cjs/tests/buttons/StickyButton.test.d.ts +1 -0
  16. package/dist/cjs/tests/buttons/UnlockButton.test.d.ts +1 -0
  17. package/dist/cjs/tests/captionEditor/CaptionEditor.test.d.ts +1 -0
  18. package/dist/cjs/tests/channelSelector/BaseChannelSelector.test.d.ts +1 -0
  19. package/dist/cjs/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +1 -0
  20. package/dist/cjs/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +1 -0
  21. package/dist/cjs/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +1 -0
  22. package/dist/cjs/tests/popups/TabOverflowPopup.test.d.ts +1 -0
  23. package/dist/cjs/tests/tabs/Tab.test.d.ts +1 -0
  24. package/dist/cjs/types/api.d.ts +10 -1
  25. package/dist/cjs/types/defaultComponents.d.ts +0 -1
  26. package/dist/cjs/types/internal.d.ts +21 -0
  27. package/dist/cjs/webGroupsManager.d.ts +4 -1
  28. package/dist/esm/GroupWrapper.d.ts +2 -1
  29. package/dist/esm/index.js +285 -190
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/esm/tests/buttons/BaseButton.test.d.ts +1 -0
  32. package/dist/esm/tests/buttons/CloneButton.test.d.ts +1 -0
  33. package/dist/esm/tests/buttons/CloseButton.test.d.ts +1 -0
  34. package/dist/esm/tests/buttons/CustomButton.test.d.ts +1 -0
  35. package/dist/esm/tests/buttons/ExtractButton.test.d.ts +1 -0
  36. package/dist/esm/tests/buttons/FeedbackButton.test.d.ts +1 -0
  37. package/dist/esm/tests/buttons/LockButtons.test.d.ts +1 -0
  38. package/dist/esm/tests/buttons/MaximizeButton.test.d.ts +1 -0
  39. package/dist/esm/tests/buttons/MinimizeButton.test.d.ts +1 -0
  40. package/dist/esm/tests/buttons/OverflowButton.test.d.ts +1 -0
  41. package/dist/esm/tests/buttons/RestoreButton.test.d.ts +1 -0
  42. package/dist/esm/tests/buttons/StickyButton.test.d.ts +1 -0
  43. package/dist/esm/tests/buttons/UnlockButton.test.d.ts +1 -0
  44. package/dist/esm/tests/captionEditor/CaptionEditor.test.d.ts +1 -0
  45. package/dist/esm/tests/channelSelector/BaseChannelSelector.test.d.ts +1 -0
  46. package/dist/esm/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +1 -0
  47. package/dist/esm/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +1 -0
  48. package/dist/esm/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +1 -0
  49. package/dist/esm/tests/popups/TabOverflowPopup.test.d.ts +1 -0
  50. package/dist/esm/tests/tabs/Tab.test.d.ts +1 -0
  51. package/dist/esm/types/api.d.ts +10 -1
  52. package/dist/esm/types/defaultComponents.d.ts +0 -1
  53. package/dist/esm/types/internal.d.ts +21 -0
  54. package/dist/esm/webGroupsManager.d.ts +4 -1
  55. package/package.json +33 -25
  56. package/dist/cjs/useGDWindow.d.ts +0 -2
  57. package/dist/esm/useGDWindow.d.ts +0 -2
  58. package/dist/styles/fonts.css +0 -2
  59. package/dist/styles/styles.css +0 -679
  60. package/dist/styles/themes.css +0 -155
package/dist/cjs/index.js CHANGED
@@ -9,7 +9,7 @@
9
9
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
10
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
11
11
 
12
- /*! *****************************************************************************
12
+ /******************************************************************************
13
13
  Copyright (c) Microsoft Corporation.
14
14
 
15
15
  Permission to use, copy, modify, and/or distribute this software for any
@@ -23,16 +23,18 @@
23
23
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24
24
  PERFORMANCE OF THIS SOFTWARE.
25
25
  ***************************************************************************** */
26
- /* global Reflect, Promise */
26
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
27
27
 
28
28
  var extendStatics = function(d, b) {
29
29
  extendStatics = Object.setPrototypeOf ||
30
30
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
31
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
32
32
  return extendStatics(d, b);
33
33
  };
34
34
 
35
35
  function __extends(d, b) {
36
+ if (typeof b !== "function" && b !== null)
37
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
36
38
  extendStatics(d, b);
37
39
  function __() { this.constructor = d; }
38
40
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -59,7 +61,12 @@
59
61
  t[p[i]] = s[p[i]];
60
62
  }
61
63
  return t;
62
- }
64
+ }
65
+
66
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
67
+ var e = new Error(message);
68
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
69
+ };
63
70
 
64
71
  var TargetType;
65
72
  (function (TargetType) {
@@ -326,6 +333,15 @@
326
333
  WebGroupsManagerDecorator.prototype.requestCommitCaptionEditing = function (targetType, targetId) {
327
334
  this.registry.execute(targetType + "-" + targetId);
328
335
  };
336
+ WebGroupsManagerDecorator.prototype.updateTabHeaderStyles = function (styles) {
337
+ window.webGroupsManager.externalLibraryFactory.updateTabHeaderStyles(styles);
338
+ };
339
+ WebGroupsManagerDecorator.prototype.updateTabMoveAreaStyles = function (styles) {
340
+ window.webGroupsManager.externalLibraryFactory.updateTabMoveAreaStyles(styles);
341
+ };
342
+ WebGroupsManagerDecorator.prototype.updateFrameStyles = function (styles) {
343
+ window.webGroupsManager.externalLibraryFactory.updateFrameStyles(styles);
344
+ };
329
345
  WebGroupsManagerDecorator.prototype.selectTab = function (windowId) {
330
346
  window.webGroupsManager.externalLibraryFactory.selectTab(windowId);
331
347
  };
@@ -356,7 +372,7 @@
356
372
 
357
373
  var BaseButton = function (_a) {
358
374
  var outerElement = _a.outerElement, innerElement = _a.innerElement;
359
- return React__default["default"].createElement("li", __assign({}, outerElement, { className: webGroupsManager.skipFocusStyle + " " + outerElement.className }),
375
+ return React__default["default"].createElement("li", __assign({}, outerElement, { "data-testid": "outer-element", className: webGroupsManager.skipFocusStyle + " " + outerElement.className }),
360
376
  React__default["default"].createElement("div", __assign({}, innerElement)));
361
377
  };
362
378
 
@@ -380,9 +396,7 @@
380
396
  constructor(color) {
381
397
  super(`Failed to parse color: "${color}"`);
382
398
  }
383
-
384
399
  }
385
-
386
400
  var ColorError$1 = ColorError;
387
401
 
388
402
  /**
@@ -390,115 +404,94 @@
390
404
  *
391
405
  * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color
392
406
  */
393
-
394
407
  function parseToRgba(color) {
395
408
  if (typeof color !== 'string') throw new ColorError$1(color);
396
409
  if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];
397
410
  let normalizedColor = color.trim();
398
411
  normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;
399
412
  const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
400
-
401
413
  if (reducedHexMatch) {
402
414
  const arr = Array.from(reducedHexMatch).slice(1);
403
- return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];
415
+ return [...arr.slice(0, 3).map(x => parseInt(r$1(x, 2), 16)), parseInt(r$1(arr[3] || 'f', 2), 16) / 255];
404
416
  }
405
-
406
417
  const hexMatch = hexRegex.exec(normalizedColor);
407
-
408
418
  if (hexMatch) {
409
419
  const arr = Array.from(hexMatch).slice(1);
410
420
  return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];
411
421
  }
412
-
413
422
  const rgbaMatch = rgbaRegex.exec(normalizedColor);
414
-
415
423
  if (rgbaMatch) {
416
424
  const arr = Array.from(rgbaMatch).slice(1);
417
425
  return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];
418
426
  }
419
-
420
427
  const hslaMatch = hslaRegex.exec(normalizedColor);
421
-
422
428
  if (hslaMatch) {
423
429
  const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
424
430
  if (guard(0, 100, s) !== s) throw new ColorError$1(color);
425
431
  if (guard(0, 100, l) !== l) throw new ColorError$1(color);
426
- return [...hslToRgb(h, s, l), a || 1];
432
+ return [...hslToRgb(h, s, l), Number.isNaN(a) ? 1 : a];
427
433
  }
428
-
429
434
  throw new ColorError$1(color);
430
435
  }
431
-
432
436
  function hash(str) {
433
437
  let hash = 5381;
434
438
  let i = str.length;
435
-
436
439
  while (i) {
437
440
  hash = hash * 33 ^ str.charCodeAt(--i);
438
441
  }
442
+
439
443
  /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
440
444
  * integers. Since we want the results to be always positive, convert the
441
445
  * signed int to an unsigned by doing an unsigned bitshift. */
442
-
443
-
444
446
  return (hash >>> 0) % 2341;
445
447
  }
446
-
447
448
  const colorToInt = x => parseInt(x.replace(/_/g, ''), 36);
448
-
449
449
  const compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {
450
450
  const key = colorToInt(next.substring(0, 3));
451
- const hex = colorToInt(next.substring(3)).toString(16); // NOTE: padStart could be used here but it breaks Node 6 compat
452
- // https://github.com/ricokahler/color2k/issues/351
451
+ const hex = colorToInt(next.substring(3)).toString(16);
453
452
 
453
+ // NOTE: padStart could be used here but it breaks Node 6 compat
454
+ // https://github.com/ricokahler/color2k/issues/351
454
455
  let prefix = '';
455
-
456
456
  for (let i = 0; i < 6 - hex.length; i++) {
457
457
  prefix += '0';
458
458
  }
459
-
460
459
  acc[key] = `${prefix}${hex}`;
461
460
  return acc;
462
461
  }, {});
462
+
463
463
  /**
464
464
  * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
465
465
  */
466
-
467
466
  function nameToHex(color) {
468
467
  const normalizedColorName = color.toLowerCase().trim();
469
468
  const result = compressedColorMap[hash(normalizedColorName)];
470
469
  if (!result) throw new ColorError$1(color);
471
470
  return `#${result}`;
472
471
  }
473
-
474
- const r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');
475
-
476
- const reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');
477
- const hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');
478
- const rgbaRegex = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r(',\\s*(\\d+)\\s*', 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, 'i');
472
+ const r$1 = (str, amount) => Array.from(Array(amount)).map(() => str).join('');
473
+ const reducedHexRegex = new RegExp(`^#${r$1('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');
474
+ const hexRegex = new RegExp(`^#${r$1('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');
475
+ const rgbaRegex = new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r$1(',\\s*(\\d+)\\s*', 2)}(?:,\\s*([\\d.]+))?\\s*\\)$`, 'i');
479
476
  const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
480
477
  const namedColorRegex = /^[a-z]+$/i;
481
-
482
478
  const roundColor = color => {
483
479
  return Math.round(color * 255);
484
480
  };
485
-
486
481
  const hslToRgb = (hue, saturation, lightness) => {
487
482
  let l = lightness / 100;
488
-
489
483
  if (saturation === 0) {
490
484
  // achromatic
491
485
  return [l, l, l].map(roundColor);
492
- } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
493
-
486
+ }
494
487
 
488
+ // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
495
489
  const huePrime = (hue % 360 + 360) % 360 / 60;
496
490
  const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);
497
491
  const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
498
492
  let red = 0;
499
493
  let green = 0;
500
494
  let blue = 0;
501
-
502
495
  if (huePrime >= 0 && huePrime < 1) {
503
496
  red = chroma;
504
497
  green = secondComponent;
@@ -518,7 +511,6 @@
518
511
  red = chroma;
519
512
  blue = secondComponent;
520
513
  }
521
-
522
514
  const lightnessModification = l - chroma / 2;
523
515
  const finalRed = red + lightnessModification;
524
516
  const finalGreen = green + lightnessModification;
@@ -526,20 +518,18 @@
526
518
  return [finalRed, finalGreen, finalBlue].map(roundColor);
527
519
  };
528
520
 
521
+ // taken from:
529
522
  // https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js
530
523
 
531
524
  /**
532
525
  * Returns a number (float) representing the luminance of a color.
533
526
  */
534
-
535
527
  function getLuminance(color) {
536
528
  if (color === 'transparent') return 0;
537
-
538
529
  function f(x) {
539
530
  const channel = x / 255;
540
- return channel <= 0.03928 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);
531
+ return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);
541
532
  }
542
-
543
533
  const [r, g, b] = parseToRgba(color);
544
534
  return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);
545
535
  }
@@ -549,7 +539,6 @@
549
539
  * readable color (i.e. the color to be place on top the input color) should be
550
540
  * black.
551
541
  */
552
-
553
542
  function readableColorIsBlack(color) {
554
543
  return getLuminance(color) > 0.179;
555
544
  }
@@ -1988,156 +1977,246 @@
1988
1977
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
1989
1978
  }
1990
1979
 
1980
+ function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=React__default["default"].useState,m=React__default["default"].useEffect,n=React__default["default"].useLayoutEffect,p=React__default["default"].useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
1981
+ function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;var useSyncExternalStore=void 0!==React__default["default"].useSyncExternalStore?React__default["default"].useSyncExternalStore:u;
1982
+
1983
+ var useSyncExternalStoreShim_production_min = {
1984
+ useSyncExternalStore: useSyncExternalStore
1985
+ };
1986
+
1987
+ var useSyncExternalStoreShim_development = createCommonjsModule(function (module, exports) {
1988
+
1989
+ if (process.env.NODE_ENV !== "production") {
1990
+ (function() {
1991
+
1992
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
1993
+ if (
1994
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
1995
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
1996
+ 'function'
1997
+ ) {
1998
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
1999
+ }
2000
+ var React = React__default["default"];
2001
+
2002
+ var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2003
+
2004
+ function error(format) {
2005
+ {
2006
+ {
2007
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2008
+ args[_key2 - 1] = arguments[_key2];
2009
+ }
2010
+
2011
+ printWarning('error', format, args);
2012
+ }
2013
+ }
2014
+ }
2015
+
2016
+ function printWarning(level, format, args) {
2017
+ // When changing this logic, you might want to also
2018
+ // update consoleWithStackDev.www.js as well.
2019
+ {
2020
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2021
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
2022
+
2023
+ if (stack !== '') {
2024
+ format += '%s';
2025
+ args = args.concat([stack]);
2026
+ } // eslint-disable-next-line react-internal/safe-string-coercion
2027
+
2028
+
2029
+ var argsWithFormat = args.map(function (item) {
2030
+ return String(item);
2031
+ }); // Careful: RN currently depends on this prefix
2032
+
2033
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
2034
+ // breaks IE9: https://github.com/facebook/react/issues/13610
2035
+ // eslint-disable-next-line react-internal/no-production-logging
2036
+
2037
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
2038
+ }
2039
+ }
2040
+
2041
+ /**
2042
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
2043
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
2044
+ */
1991
2045
  function is(x, y) {
1992
- return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
2046
+ return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
2047
+ ;
1993
2048
  }
1994
- var objectIs = "function" === typeof Object.is ? Object.is : is,
1995
- useState = React__default["default"].useState,
1996
- useEffect = React__default["default"].useEffect,
1997
- useLayoutEffect = React__default["default"].useLayoutEffect,
1998
- useDebugValue = React__default["default"].useDebugValue;
1999
- function useSyncExternalStore$2(subscribe, getSnapshot) {
2000
- var value = getSnapshot(),
2001
- _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
2002
- inst = _useState[0].inst,
2003
- forceUpdate = _useState[1];
2004
- useLayoutEffect(
2005
- function () {
2006
- inst.value = value;
2007
- inst.getSnapshot = getSnapshot;
2008
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
2009
- },
2010
- [subscribe, value, getSnapshot]
2011
- );
2012
- useEffect(
2013
- function () {
2014
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
2015
- return subscribe(function () {
2016
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
2049
+
2050
+ var objectIs = typeof Object.is === 'function' ? Object.is : is;
2051
+
2052
+ // dispatch for CommonJS interop named imports.
2053
+
2054
+ var useState = React.useState,
2055
+ useEffect = React.useEffect,
2056
+ useLayoutEffect = React.useLayoutEffect,
2057
+ useDebugValue = React.useDebugValue;
2058
+ var didWarnOld18Alpha = false;
2059
+ var didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works
2060
+ // because of a very particular set of implementation details and assumptions
2061
+ // -- change any one of them and it will break. The most important assumption
2062
+ // is that updates are always synchronous, because concurrent rendering is
2063
+ // only available in versions of React that also have a built-in
2064
+ // useSyncExternalStore API. And we only use this shim when the built-in API
2065
+ // does not exist.
2066
+ //
2067
+ // Do not assume that the clever hacks used by this hook also work in general.
2068
+ // The point of this shim is to replace the need for hacks by other libraries.
2069
+
2070
+ function useSyncExternalStore(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of
2071
+ // React do not expose a way to check if we're hydrating. So users of the shim
2072
+ // will need to track that themselves and return the correct value
2073
+ // from `getSnapshot`.
2074
+ getServerSnapshot) {
2075
+ {
2076
+ if (!didWarnOld18Alpha) {
2077
+ if (React.startTransition !== undefined) {
2078
+ didWarnOld18Alpha = true;
2079
+
2080
+ error('You are using an outdated, pre-release alpha of React 18 that ' + 'does not support useSyncExternalStore. The ' + 'use-sync-external-store shim will not work correctly. Upgrade ' + 'to a newer pre-release.');
2081
+ }
2082
+ }
2083
+ } // Read the current snapshot from the store on every render. Again, this
2084
+ // breaks the rules of React, and only works here because of specific
2085
+ // implementation details, most importantly that updates are
2086
+ // always synchronous.
2087
+
2088
+
2089
+ var value = getSnapshot();
2090
+
2091
+ {
2092
+ if (!didWarnUncachedGetSnapshot) {
2093
+ var cachedValue = getSnapshot();
2094
+
2095
+ if (!objectIs(value, cachedValue)) {
2096
+ error('The result of getSnapshot should be cached to avoid an infinite loop');
2097
+
2098
+ didWarnUncachedGetSnapshot = true;
2099
+ }
2100
+ }
2101
+ } // Because updates are synchronous, we don't queue them. Instead we force a
2102
+ // re-render whenever the subscribed state changes by updating an some
2103
+ // arbitrary useState hook. Then, during render, we call getSnapshot to read
2104
+ // the current value.
2105
+ //
2106
+ // Because we don't actually use the state returned by the useState hook, we
2107
+ // can save a bit of memory by storing other stuff in that slot.
2108
+ //
2109
+ // To implement the early bailout, we need to track some things on a mutable
2110
+ // object. Usually, we would put that in a useRef hook, but we can stash it in
2111
+ // our useState hook instead.
2112
+ //
2113
+ // To force a re-render, we call forceUpdate({inst}). That works because the
2114
+ // new object always fails an equality check.
2115
+
2116
+
2117
+ var _useState = useState({
2118
+ inst: {
2119
+ value: value,
2120
+ getSnapshot: getSnapshot
2121
+ }
2122
+ }),
2123
+ inst = _useState[0].inst,
2124
+ forceUpdate = _useState[1]; // Track the latest getSnapshot function with a ref. This needs to be updated
2125
+ // in the layout phase so we can access it during the tearing check that
2126
+ // happens on subscribe.
2127
+
2128
+
2129
+ useLayoutEffect(function () {
2130
+ inst.value = value;
2131
+ inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the
2132
+ // commit phase if there was an interleaved mutation. In concurrent mode
2133
+ // this can happen all the time, but even in synchronous mode, an earlier
2134
+ // effect may have mutated the store.
2135
+
2136
+ if (checkIfSnapshotChanged(inst)) {
2137
+ // Force a re-render.
2138
+ forceUpdate({
2139
+ inst: inst
2017
2140
  });
2018
- },
2019
- [subscribe]
2020
- );
2141
+ }
2142
+ }, [subscribe, value, getSnapshot]);
2143
+ useEffect(function () {
2144
+ // Check for changes right before subscribing. Subsequent changes will be
2145
+ // detected in the subscription handler.
2146
+ if (checkIfSnapshotChanged(inst)) {
2147
+ // Force a re-render.
2148
+ forceUpdate({
2149
+ inst: inst
2150
+ });
2151
+ }
2152
+
2153
+ var handleStoreChange = function () {
2154
+ // TODO: Because there is no cross-renderer API for batching updates, it's
2155
+ // up to the consumer of this library to wrap their subscription event
2156
+ // with unstable_batchedUpdates. Should we try to detect when this isn't
2157
+ // the case and print a warning in development?
2158
+ // The store changed. Check if the snapshot changed since the last time we
2159
+ // read from the store.
2160
+ if (checkIfSnapshotChanged(inst)) {
2161
+ // Force a re-render.
2162
+ forceUpdate({
2163
+ inst: inst
2164
+ });
2165
+ }
2166
+ }; // Subscribe to the store and return a clean-up function.
2167
+
2168
+
2169
+ return subscribe(handleStoreChange);
2170
+ }, [subscribe]);
2021
2171
  useDebugValue(value);
2022
2172
  return value;
2023
2173
  }
2174
+
2024
2175
  function checkIfSnapshotChanged(inst) {
2025
2176
  var latestGetSnapshot = inst.getSnapshot;
2026
- inst = inst.value;
2177
+ var prevValue = inst.value;
2178
+
2027
2179
  try {
2028
2180
  var nextValue = latestGetSnapshot();
2029
- return !objectIs(inst, nextValue);
2181
+ return !objectIs(prevValue, nextValue);
2030
2182
  } catch (error) {
2031
- return !0;
2183
+ return true;
2032
2184
  }
2033
2185
  }
2034
- function useSyncExternalStore$1(subscribe, getSnapshot) {
2186
+
2187
+ function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
2188
+ // Note: The shim does not use getServerSnapshot, because pre-18 versions of
2189
+ // React do not expose a way to check if we're hydrating. So users of the shim
2190
+ // will need to track that themselves and return the correct value
2191
+ // from `getSnapshot`.
2035
2192
  return getSnapshot();
2036
2193
  }
2037
- var shim$1 =
2038
- "undefined" === typeof window ||
2039
- "undefined" === typeof window.document ||
2040
- "undefined" === typeof window.document.createElement
2041
- ? useSyncExternalStore$1
2042
- : useSyncExternalStore$2;
2043
- var useSyncExternalStore =
2044
- void 0 !== React__default["default"].useSyncExternalStore ? React__default["default"].useSyncExternalStore : shim$1;
2045
-
2046
- var useSyncExternalStoreShim_production = {
2047
- useSyncExternalStore: useSyncExternalStore
2048
- };
2049
2194
 
2050
- var useSyncExternalStoreShim_development = createCommonjsModule(function (module, exports) {
2051
- "production" !== process.env.NODE_ENV &&
2052
- (function () {
2053
- function is(x, y) {
2054
- return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
2055
- }
2056
- function useSyncExternalStore$2(subscribe, getSnapshot) {
2057
- didWarnOld18Alpha ||
2058
- void 0 === React.startTransition ||
2059
- ((didWarnOld18Alpha = !0),
2060
- console.error(
2061
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
2062
- ));
2063
- var value = getSnapshot();
2064
- if (!didWarnUncachedGetSnapshot) {
2065
- var cachedValue = getSnapshot();
2066
- objectIs(value, cachedValue) ||
2067
- (console.error(
2068
- "The result of getSnapshot should be cached to avoid an infinite loop"
2069
- ),
2070
- (didWarnUncachedGetSnapshot = !0));
2071
- }
2072
- cachedValue = useState({
2073
- inst: { value: value, getSnapshot: getSnapshot }
2074
- });
2075
- var inst = cachedValue[0].inst,
2076
- forceUpdate = cachedValue[1];
2077
- useLayoutEffect(
2078
- function () {
2079
- inst.value = value;
2080
- inst.getSnapshot = getSnapshot;
2081
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
2082
- },
2083
- [subscribe, value, getSnapshot]
2084
- );
2085
- useEffect(
2086
- function () {
2087
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
2088
- return subscribe(function () {
2089
- checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
2090
- });
2091
- },
2092
- [subscribe]
2093
- );
2094
- useDebugValue(value);
2095
- return value;
2096
- }
2097
- function checkIfSnapshotChanged(inst) {
2098
- var latestGetSnapshot = inst.getSnapshot;
2099
- inst = inst.value;
2100
- try {
2101
- var nextValue = latestGetSnapshot();
2102
- return !objectIs(inst, nextValue);
2103
- } catch (error) {
2104
- return !0;
2105
- }
2106
- }
2107
- function useSyncExternalStore$1(subscribe, getSnapshot) {
2108
- return getSnapshot();
2109
- }
2110
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2111
- "function" ===
2112
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
2113
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
2114
- var React = React__default["default"],
2115
- objectIs = "function" === typeof Object.is ? Object.is : is,
2116
- useState = React.useState,
2117
- useEffect = React.useEffect,
2118
- useLayoutEffect = React.useLayoutEffect,
2119
- useDebugValue = React.useDebugValue,
2120
- didWarnOld18Alpha = !1,
2121
- didWarnUncachedGetSnapshot = !1,
2122
- shim =
2123
- "undefined" === typeof window ||
2124
- "undefined" === typeof window.document ||
2125
- "undefined" === typeof window.document.createElement
2126
- ? useSyncExternalStore$1
2127
- : useSyncExternalStore$2;
2128
- exports.useSyncExternalStore =
2129
- void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
2130
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2131
- "function" ===
2132
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
2133
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
2195
+ var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
2196
+
2197
+ var isServerEnvironment = !canUseDOM;
2198
+
2199
+ var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
2200
+ var useSyncExternalStore$2 = React.useSyncExternalStore !== undefined ? React.useSyncExternalStore : shim;
2201
+
2202
+ exports.useSyncExternalStore = useSyncExternalStore$2;
2203
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2204
+ if (
2205
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2206
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2207
+ 'function'
2208
+ ) {
2209
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2210
+ }
2211
+
2134
2212
  })();
2213
+ }
2135
2214
  });
2136
2215
 
2137
2216
  var shim = createCommonjsModule(function (module) {
2138
2217
 
2139
2218
  if (process.env.NODE_ENV === 'production') {
2140
- module.exports = useSyncExternalStoreShim_production;
2219
+ module.exports = useSyncExternalStoreShim_production_min;
2141
2220
  } else {
2142
2221
  module.exports = useSyncExternalStoreShim_development;
2143
2222
  }
@@ -2149,6 +2228,7 @@
2149
2228
  return _super !== null && _super.apply(this, arguments) || this;
2150
2229
  }
2151
2230
  GroupWrapper.prototype.componentDidMount = function () {
2231
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
2152
2232
  var componentFactory = {
2153
2233
  createGroupCaptionBar: this.props.onCreateGroupCaptionBarRequested,
2154
2234
  updateGroupCaptionBar: this.props.onUpdateGroupCaptionBarRequested,
@@ -2198,6 +2278,21 @@
2198
2278
  hideLoadingAnimation: this.props.onHideLoadingAnimationRequested,
2199
2279
  };
2200
2280
  webGroupsManager.init(undefined, componentFactory);
2281
+ webGroupsManager.updateTabHeaderStyles((_c = (_b = (_a = this.props.styles) === null || _a === void 0 ? void 0 : _a.tabs) === null || _b === void 0 ? void 0 : _b.header) !== null && _c !== void 0 ? _c : {});
2282
+ webGroupsManager.updateTabMoveAreaStyles((_f = (_e = (_d = this.props.styles) === null || _d === void 0 ? void 0 : _d.tabs) === null || _e === void 0 ? void 0 : _e.moveArea) !== null && _f !== void 0 ? _f : {});
2283
+ webGroupsManager.updateFrameStyles((_j = (_h = (_g = this.props.styles) === null || _g === void 0 ? void 0 : _g.frame) === null || _h === void 0 ? void 0 : _h.element) !== null && _j !== void 0 ? _j : {});
2284
+ };
2285
+ GroupWrapper.prototype.componentDidUpdate = function (prevProps, prevState, snapshot) {
2286
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
2287
+ if (((_b = (_a = this.props.styles) === null || _a === void 0 ? void 0 : _a.tabs) === null || _b === void 0 ? void 0 : _b.header) !== ((_d = (_c = prevProps.styles) === null || _c === void 0 ? void 0 : _c.tabs) === null || _d === void 0 ? void 0 : _d.header)) {
2288
+ webGroupsManager.updateTabHeaderStyles((_g = (_f = (_e = this.props.styles) === null || _e === void 0 ? void 0 : _e.tabs) === null || _f === void 0 ? void 0 : _f.header) !== null && _g !== void 0 ? _g : {});
2289
+ }
2290
+ if (((_j = (_h = this.props.styles) === null || _h === void 0 ? void 0 : _h.tabs) === null || _j === void 0 ? void 0 : _j.moveArea) !== ((_l = (_k = prevProps.styles) === null || _k === void 0 ? void 0 : _k.tabs) === null || _l === void 0 ? void 0 : _l.moveArea)) {
2291
+ webGroupsManager.updateTabMoveAreaStyles((_p = (_o = (_m = this.props.styles) === null || _m === void 0 ? void 0 : _m.tabs) === null || _o === void 0 ? void 0 : _o.moveArea) !== null && _p !== void 0 ? _p : {});
2292
+ }
2293
+ if (((_r = (_q = this.props.styles) === null || _q === void 0 ? void 0 : _q.frame) === null || _r === void 0 ? void 0 : _r.element) !== ((_t = (_s = prevProps.styles) === null || _s === void 0 ? void 0 : _s.frame) === null || _t === void 0 ? void 0 : _t.element)) {
2294
+ webGroupsManager.updateFrameStyles((_w = (_v = (_u = this.props.styles) === null || _u === void 0 ? void 0 : _u.frame) === null || _v === void 0 ? void 0 : _v.element) !== null && _w !== void 0 ? _w : {});
2295
+ }
2201
2296
  };
2202
2297
  GroupWrapper.prototype.componentWillUnmount = function () {
2203
2298
  // TODO
@@ -2915,7 +3010,7 @@
2915
3010
 
2916
3011
  var GroupElementCreationWrapper = function (_a) {
2917
3012
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
2918
- var components = _a.components;
3013
+ var components = _a.components, styles = _a.styles;
2919
3014
  var state = shim.useSyncExternalStore(webGroupsStore.subscribe, webGroupsStore.getSnapshot);
2920
3015
  var LoadingAnimation = (_c = (_b = components === null || components === void 0 ? void 0 : components.frame) === null || _b === void 0 ? void 0 : _b.LoadingAnimation) !== null && _c !== void 0 ? _c : FrameLoadingAnimation;
2921
3016
  var renderGroupCaptionBar = function () {
@@ -3345,7 +3440,7 @@
3345
3440
  renderTabOverflowPopups(),
3346
3441
  renderBelowTabs(),
3347
3442
  renderHtmlButtons(),
3348
- React__default["default"].createElement(GroupWrapper, { onCreateGroupCaptionBarRequested: ((_d = components === null || components === void 0 ? void 0 : components.group) === null || _d === void 0 ? void 0 : _d.CaptionBar) ? webGroupsStore.onCreateGroupCaptionBarRequested : undefined, onCreateGroupOverlayRequested: ((_e = components === null || components === void 0 ? void 0 : components.group) === null || _e === void 0 ? void 0 : _e.Overlay) ? webGroupsStore.onCreateGroupOverlayRequested : undefined, onCreateFrameCaptionBarRequested: ((_f = components === null || components === void 0 ? void 0 : components.flat) === null || _f === void 0 ? void 0 : _f.CaptionBar) ? webGroupsStore.onCreateFrameCaptionBarRequested : undefined, onCreateFrameWindowOverlayRequested: ((_g = components === null || components === void 0 ? void 0 : components.frame) === null || _g === void 0 ? void 0 : _g.Overlay) ? webGroupsStore.onCreateFrameWindowOverlayRequested : undefined, onCreateAboveWindowRequested: ((_h = components === null || components === void 0 ? void 0 : components.frame) === null || _h === void 0 ? void 0 : _h.AboveWindow) ? webGroupsStore.onCreateAboveWindowRequested : undefined, onCreateWindowContentOverlayRequested: ((_j = components === null || components === void 0 ? void 0 : components.frame) === null || _j === void 0 ? void 0 : _j.WindowContentOverlay) ? webGroupsStore.onCreateWindowContentOverlayRequested : undefined, onCreateFrameLoadingAnimationRequested: LoadingAnimation ? webGroupsStore.onCreateFrameLoadingAnimationRequested : undefined, onCreateBelowWindowRequested: ((_k = components === null || components === void 0 ? void 0 : components.frame) === null || _k === void 0 ? void 0 : _k.BelowWindow) ? webGroupsStore.onCreateBelowWindowRequested : undefined, onCreateAboveTabsRequested: ((_l = components === null || components === void 0 ? void 0 : components.tabs) === null || _l === void 0 ? void 0 : _l.Above) ? webGroupsStore.onCreateAboveTabsComponentRequested : undefined, onCreateBeforeTabsComponentRequested: ((_m = components === null || components === void 0 ? void 0 : components.tabs) === null || _m === void 0 ? void 0 : _m.Before) ? webGroupsStore.onCreateBeforeTabsComponentRequested : undefined, onCreateTabRequested: ((_o = components === null || components === void 0 ? void 0 : components.tabs) === null || _o === void 0 ? void 0 : _o.Element) ? webGroupsStore.onCreateTabElementRequested : undefined, onCreateAfterTabsComponentRequested: ((_p = components === null || components === void 0 ? void 0 : components.tabs) === null || _p === void 0 ? void 0 : _p.After) ? webGroupsStore.onCreateAfterTabsComponentRequested : undefined, onCreateTabHeaderButtonsRequested: ((_q = components === null || components === void 0 ? void 0 : components.tabs) === null || _q === void 0 ? void 0 : _q.Buttons) ? webGroupsStore.onCreateTabHeaderButtonsRequested : undefined, onCreateBelowTabsRequested: ((_r = components === null || components === void 0 ? void 0 : components.tabs) === null || _r === void 0 ? void 0 : _r.Below) ? webGroupsStore.onCreateBelowTabsComponentRequested : undefined, onCreateHtmlButtonsRequested: ((_s = components === null || components === void 0 ? void 0 : components.html) === null || _s === void 0 ? void 0 : _s.Buttons) ? webGroupsStore.onCreateHtmlButtonsRequested : undefined, onCreateTabOverflowPopupRequested: ((_t = components === null || components === void 0 ? void 0 : components.tabs) === null || _t === void 0 ? void 0 : _t.OverflowPopup) ? webGroupsStore.onCreateTabOverflowPopupRequested : undefined, onUpdateGroupCaptionBarRequested: ((_u = components === null || components === void 0 ? void 0 : components.group) === null || _u === void 0 ? void 0 : _u.CaptionBar) ? webGroupsStore.onUpdateGroupCaptionBarRequested : undefined, onUpdateFrameWindowOverlayRequested: ((_v = components === null || components === void 0 ? void 0 : components.group) === null || _v === void 0 ? void 0 : _v.Overlay) ? webGroupsStore.onUpdateFrameWindowOverlayRequested : undefined, onUpdateFrameCaptionBarRequested: ((_w = components === null || components === void 0 ? void 0 : components.flat) === null || _w === void 0 ? void 0 : _w.CaptionBar) ? webGroupsStore.onUpdateFrameCaptionBarRequested : undefined, onUpdateFrameRequested: webGroupsStore.onUpdateFrame, onUpdateStandardButtonRequested: webGroupsStore.onUpdateStandardButton, onUpdateCustomButtonsRequested: webGroupsStore.onUpdateCustomButtons, onUpdateAboveTabsRequested: ((_x = components === null || components === void 0 ? void 0 : components.tabs) === null || _x === void 0 ? void 0 : _x.Above) ? webGroupsStore.onUpdateAboveTabsRequested : undefined, onUpdateBeforeTabsComponentRequested: ((_y = components === null || components === void 0 ? void 0 : components.tabs) === null || _y === void 0 ? void 0 : _y.Before) ? webGroupsStore.onUpdateBeforeTabsRequested : undefined, onUpdateTabRequested: ((_z = components === null || components === void 0 ? void 0 : components.tabs) === null || _z === void 0 ? void 0 : _z.Element) ? webGroupsStore.onUpdateTabElementRequested : undefined, onUpdateAfterTabsComponentRequested: ((_0 = components === null || components === void 0 ? void 0 : components.tabs) === null || _0 === void 0 ? void 0 : _0.After) ? webGroupsStore.onUpdateAfterTabsRequested : undefined, onUpdateBelowTabsRequested: ((_1 = components === null || components === void 0 ? void 0 : components.tabs) === null || _1 === void 0 ? void 0 : _1.Below) ? webGroupsStore.onUpdateBelowTabsRequested : undefined, onRemoveFrameCaptionBarRequested: webGroupsStore.onRemoveFrameCaptionBarRequested, onRemoveFrameWindowOverlayRequested: webGroupsStore.onRemoveFrameWindowOverlayRequested, onRemoveAboveWindowRequested: webGroupsStore.onRemoveAboveWindowRequested, onRemoveWindowContentOverlayRequested: webGroupsStore.onRemoveWindowContentOverlayRequested, onRemoveFrameLoadingAnimationRequested: webGroupsStore.onRemoveFrameLoadingAnimationRequested, onRemoveBelowWindowRequested: webGroupsStore.onRemoveBelowWindowRequested, onRemoveAboveTabsRequested: webGroupsStore.onRemoveAboveTabsRequested, onRemoveBeforeTabsComponentRequested: webGroupsStore.onRemoveBeforeTabsComponentRequested, onRemoveTabRequested: webGroupsStore.onRemoveTabElementRequested, onRemoveAfterTabsComponentRequested: webGroupsStore.onRemoveAfterTabsComponentRequested, onRemoveTabHeaderButtonsRequested: webGroupsStore.onRemoveTabHeaderButtonsRequested, onRemoveBelowTabsRequested: webGroupsStore.onRemoveBelowTabsRequested, onRemoveHtmlButtonsRequested: webGroupsStore.onRemoveHtmlButtonsRequested, onRemoveTabOverflowPopupRequested: webGroupsStore.onRemoveTabOverflowPopupRequested, onShowCaptionEditorRequested: webGroupsStore.onShowCaptionEditorRequested, onCommitCaptionEditingRequested: webGroupsStore.onCommitCaptionEditingRequested, onHideCaptionEditorRequested: webGroupsStore.onHideCaptionEditorRequested, onShowLoadingAnimationRequested: webGroupsStore.onShowLoadingAnimationRequested, onHideLoadingAnimationRequested: webGroupsStore.onHideLoadingAnimationRequested }));
3443
+ React__default["default"].createElement(GroupWrapper, { onCreateGroupCaptionBarRequested: ((_d = components === null || components === void 0 ? void 0 : components.group) === null || _d === void 0 ? void 0 : _d.CaptionBar) ? webGroupsStore.onCreateGroupCaptionBarRequested : undefined, onCreateGroupOverlayRequested: ((_e = components === null || components === void 0 ? void 0 : components.group) === null || _e === void 0 ? void 0 : _e.Overlay) ? webGroupsStore.onCreateGroupOverlayRequested : undefined, onCreateFrameCaptionBarRequested: ((_f = components === null || components === void 0 ? void 0 : components.flat) === null || _f === void 0 ? void 0 : _f.CaptionBar) ? webGroupsStore.onCreateFrameCaptionBarRequested : undefined, onCreateFrameWindowOverlayRequested: ((_g = components === null || components === void 0 ? void 0 : components.frame) === null || _g === void 0 ? void 0 : _g.Overlay) ? webGroupsStore.onCreateFrameWindowOverlayRequested : undefined, onCreateAboveWindowRequested: ((_h = components === null || components === void 0 ? void 0 : components.frame) === null || _h === void 0 ? void 0 : _h.AboveWindow) ? webGroupsStore.onCreateAboveWindowRequested : undefined, onCreateWindowContentOverlayRequested: ((_j = components === null || components === void 0 ? void 0 : components.frame) === null || _j === void 0 ? void 0 : _j.WindowContentOverlay) ? webGroupsStore.onCreateWindowContentOverlayRequested : undefined, onCreateFrameLoadingAnimationRequested: LoadingAnimation ? webGroupsStore.onCreateFrameLoadingAnimationRequested : undefined, onCreateBelowWindowRequested: ((_k = components === null || components === void 0 ? void 0 : components.frame) === null || _k === void 0 ? void 0 : _k.BelowWindow) ? webGroupsStore.onCreateBelowWindowRequested : undefined, onCreateAboveTabsRequested: ((_l = components === null || components === void 0 ? void 0 : components.tabs) === null || _l === void 0 ? void 0 : _l.Above) ? webGroupsStore.onCreateAboveTabsComponentRequested : undefined, onCreateBeforeTabsComponentRequested: ((_m = components === null || components === void 0 ? void 0 : components.tabs) === null || _m === void 0 ? void 0 : _m.Before) ? webGroupsStore.onCreateBeforeTabsComponentRequested : undefined, onCreateTabRequested: ((_o = components === null || components === void 0 ? void 0 : components.tabs) === null || _o === void 0 ? void 0 : _o.Element) ? webGroupsStore.onCreateTabElementRequested : undefined, onCreateAfterTabsComponentRequested: ((_p = components === null || components === void 0 ? void 0 : components.tabs) === null || _p === void 0 ? void 0 : _p.After) ? webGroupsStore.onCreateAfterTabsComponentRequested : undefined, onCreateTabHeaderButtonsRequested: ((_q = components === null || components === void 0 ? void 0 : components.tabs) === null || _q === void 0 ? void 0 : _q.Buttons) ? webGroupsStore.onCreateTabHeaderButtonsRequested : undefined, onCreateBelowTabsRequested: ((_r = components === null || components === void 0 ? void 0 : components.tabs) === null || _r === void 0 ? void 0 : _r.Below) ? webGroupsStore.onCreateBelowTabsComponentRequested : undefined, onCreateHtmlButtonsRequested: ((_s = components === null || components === void 0 ? void 0 : components.html) === null || _s === void 0 ? void 0 : _s.Buttons) ? webGroupsStore.onCreateHtmlButtonsRequested : undefined, onCreateTabOverflowPopupRequested: ((_t = components === null || components === void 0 ? void 0 : components.tabs) === null || _t === void 0 ? void 0 : _t.OverflowPopup) ? webGroupsStore.onCreateTabOverflowPopupRequested : undefined, onUpdateGroupCaptionBarRequested: ((_u = components === null || components === void 0 ? void 0 : components.group) === null || _u === void 0 ? void 0 : _u.CaptionBar) ? webGroupsStore.onUpdateGroupCaptionBarRequested : undefined, onUpdateFrameWindowOverlayRequested: ((_v = components === null || components === void 0 ? void 0 : components.group) === null || _v === void 0 ? void 0 : _v.Overlay) ? webGroupsStore.onUpdateFrameWindowOverlayRequested : undefined, onUpdateFrameCaptionBarRequested: ((_w = components === null || components === void 0 ? void 0 : components.flat) === null || _w === void 0 ? void 0 : _w.CaptionBar) ? webGroupsStore.onUpdateFrameCaptionBarRequested : undefined, onUpdateFrameRequested: webGroupsStore.onUpdateFrame, onUpdateStandardButtonRequested: webGroupsStore.onUpdateStandardButton, onUpdateCustomButtonsRequested: webGroupsStore.onUpdateCustomButtons, onUpdateAboveTabsRequested: ((_x = components === null || components === void 0 ? void 0 : components.tabs) === null || _x === void 0 ? void 0 : _x.Above) ? webGroupsStore.onUpdateAboveTabsRequested : undefined, onUpdateBeforeTabsComponentRequested: ((_y = components === null || components === void 0 ? void 0 : components.tabs) === null || _y === void 0 ? void 0 : _y.Before) ? webGroupsStore.onUpdateBeforeTabsRequested : undefined, onUpdateTabRequested: ((_z = components === null || components === void 0 ? void 0 : components.tabs) === null || _z === void 0 ? void 0 : _z.Element) ? webGroupsStore.onUpdateTabElementRequested : undefined, onUpdateAfterTabsComponentRequested: ((_0 = components === null || components === void 0 ? void 0 : components.tabs) === null || _0 === void 0 ? void 0 : _0.After) ? webGroupsStore.onUpdateAfterTabsRequested : undefined, onUpdateBelowTabsRequested: ((_1 = components === null || components === void 0 ? void 0 : components.tabs) === null || _1 === void 0 ? void 0 : _1.Below) ? webGroupsStore.onUpdateBelowTabsRequested : undefined, onRemoveFrameCaptionBarRequested: webGroupsStore.onRemoveFrameCaptionBarRequested, onRemoveFrameWindowOverlayRequested: webGroupsStore.onRemoveFrameWindowOverlayRequested, onRemoveAboveWindowRequested: webGroupsStore.onRemoveAboveWindowRequested, onRemoveWindowContentOverlayRequested: webGroupsStore.onRemoveWindowContentOverlayRequested, onRemoveFrameLoadingAnimationRequested: webGroupsStore.onRemoveFrameLoadingAnimationRequested, onRemoveBelowWindowRequested: webGroupsStore.onRemoveBelowWindowRequested, onRemoveAboveTabsRequested: webGroupsStore.onRemoveAboveTabsRequested, onRemoveBeforeTabsComponentRequested: webGroupsStore.onRemoveBeforeTabsComponentRequested, onRemoveTabRequested: webGroupsStore.onRemoveTabElementRequested, onRemoveAfterTabsComponentRequested: webGroupsStore.onRemoveAfterTabsComponentRequested, onRemoveTabHeaderButtonsRequested: webGroupsStore.onRemoveTabHeaderButtonsRequested, onRemoveBelowTabsRequested: webGroupsStore.onRemoveBelowTabsRequested, onRemoveHtmlButtonsRequested: webGroupsStore.onRemoveHtmlButtonsRequested, onRemoveTabOverflowPopupRequested: webGroupsStore.onRemoveTabOverflowPopupRequested, onShowCaptionEditorRequested: webGroupsStore.onShowCaptionEditorRequested, onCommitCaptionEditingRequested: webGroupsStore.onCommitCaptionEditingRequested, onHideCaptionEditorRequested: webGroupsStore.onHideCaptionEditorRequested, onShowLoadingAnimationRequested: webGroupsStore.onShowLoadingAnimationRequested, onHideLoadingAnimationRequested: webGroupsStore.onHideLoadingAnimationRequested, styles: styles }));
3349
3444
  };
3350
3445
 
3351
3446
  function useIOConnectWindow(windowId) {