@vitrosoftware/common-ui-ts 1.1.84 → 1.1.85

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/dist/index.js CHANGED
@@ -412,7 +412,8 @@ var ScrollBar = function ScrollBar(props) {
412
412
  };
413
413
  }, []);
414
414
  return React__default.createElement("div", {
415
- ref: ref
415
+ ref: ref,
416
+ className: props.className || CTRL.EMPTY
416
417
  }, React__default.createElement("div", {
417
418
  className: styles$1['vitro-scrollbar-content']
418
419
  }, element && props.children));
@@ -432,6 +433,11 @@ var ScrollBar = function ScrollBar(props) {
432
433
  EVENT["CONTEXTMENU"] = "contextmenu";
433
434
  })(exports.EVENT || (exports.EVENT = {}));
434
435
 
436
+ var MOBILE_VIEW;
437
+ (function (MOBILE_VIEW) {
438
+ MOBILE_VIEW[MOBILE_VIEW["WIDTH"] = 800] = "WIDTH";
439
+ })(MOBILE_VIEW || (MOBILE_VIEW = {}));
440
+
435
441
  var ELEMENT_CANVAS = 'canvas';
436
442
  var CANVAS_CONTEXT = '2d';
437
443
  var Breadcrumbs = function Breadcrumbs(props) {
@@ -536,7 +542,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
536
542
  }, [containerWidth]);
537
543
  var updateBreadcrumbsView = function updateBreadcrumbsView() {
538
544
  if (windowWidth) {
539
- windowWidth < 800 ? setIsMobileView(true) : setIsMobileView(false);
545
+ windowWidth < MOBILE_VIEW.WIDTH ? setIsMobileView(true) : setIsMobileView(false);
540
546
  }
541
547
  };
542
548
  var updateItemList = function updateItemList(e) {
@@ -61353,7 +61359,8 @@ var FileVersionSelect = function FileVersionSelect(props) {
61353
61359
  className: styles$k['vitro-file-version-select'],
61354
61360
  ref: selectRef
61355
61361
  }, selectedVersion && React__default.createElement("div", {
61356
- className: styles$k['vitro-selected-version']
61362
+ className: styles$k['vitro-selected-version'],
61363
+ onClick: onCollapseButtonClick
61357
61364
  }, React__default.createElement("div", {
61358
61365
  ref: fileNameRef,
61359
61366
  onMouseOver: onMouseOver,
@@ -61367,7 +61374,6 @@ var FileVersionSelect = function FileVersionSelect(props) {
61367
61374
  }, React__default.createElement("div", {
61368
61375
  className: isCurrent ? styles$k['vitro-version-name-green'] : styles$k['vitro-version-name-red']
61369
61376
  }, VERSION_PREFIX$1 + selectedVersion.name)), React__default.createElement("div", {
61370
- onClick: onCollapseButtonClick,
61371
61377
  className: showValueList ? styles$k['vitro-button-collapse-up'] : styles$k['vitro-button-collapse-bottom']
61372
61378
  })), showValueList && React__default.createElement("ul", {
61373
61379
  className: styles$k['vitro-version-list']
@@ -61471,7 +61477,7 @@ var Viewer = function Viewer(props) {
61471
61477
  };
61472
61478
 
61473
61479
  var name = "@vitrosoftware/common-ui-ts";
61474
- var version$1 = "1.1.84";
61480
+ var version$1 = "1.1.85";
61475
61481
  var description = "vitro software common ui ts";
61476
61482
  var author = "";
61477
61483
  var license = "MIT";
@@ -61544,7 +61550,7 @@ var dependencies = {
61544
61550
  "rollup-plugin-postcss": "^3.1.3",
61545
61551
  inversify: "6.0.1",
61546
61552
  "inversify-react": "1.0.2",
61547
- "@vitrosoftware/common-ui": "1.1.32",
61553
+ "@vitrosoftware/common-ui": "1.1.33",
61548
61554
  "react-router-bootstrap": "^0.24.4",
61549
61555
  "m-react-splitters": "^1.2.0"
61550
61556
  };
@@ -64452,18 +64458,16 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
64452
64458
  }), props.children));
64453
64459
  };
64454
64460
 
64455
- var styles$x = {"vitro-icon-text":"_sidebar-item_vitro-icon-text_3ROhyLK","vitro-item-text":"_sidebar-item_vitro-item-text_1kK_aIZ","vitro-active":"_sidebar-item_vitro-active_7p5iOhY","vitro-hover":"_sidebar-item_vitro-hover_1mECzme","vitro-icon":"_sidebar-item_vitro-icon_2B88tow","vitro-item":"_sidebar-item_vitro-item_1BR_7F0"};
64461
+ var styles$x = {"vitro-item":"_sidebar-item_vitro-item_1BR_7F0","vitro-icon":"_sidebar-item_vitro-icon_2B88tow","vitro-active":"_sidebar-item_vitro-active_7p5iOhY","vitro-item-text":"_sidebar-item_vitro-item-text_1kK_aIZ","vitro-icon-text":"_sidebar-item_vitro-icon-text_3ROhyLK","vitro-hover":"_sidebar-item_vitro-hover_1mECzme","vitro-group-item":"_sidebar-item_vitro-group-item_ZADCctV","vitro-item-list":"_sidebar-item_vitro-item-list_17dWov1","vitro-expanded":"_sidebar-item_vitro-expanded_3qb1vOx","vitro-collapsed":"_sidebar-item_vitro-collapsed_2EhVmXL","vitro-display-none":"_sidebar-item_vitro-display-none_2WwKi5v","vitro-popup-container":"_sidebar-item_vitro-popup-container_2X7SVxe","vitro-scrollbar":"_sidebar-item_vitro-scrollbar___xylIx","vitro-popup-item-list":"_sidebar-item_vitro-popup-item-list_JUwcoZB","vitro-button-close":"_sidebar-item_vitro-button-close_2Kdf-ob"};
64456
64462
 
64457
64463
  var Item$2 = function Item(props) {
64458
- return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", null, React__default.createElement(Icon, {
64464
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", null, props.imageUrl && React__default.createElement(Icon, {
64459
64465
  defaultUrl: props.imageUrl,
64460
64466
  hoverUrl: props.imageHoverUrl,
64461
64467
  isHover: props.isHover,
64462
64468
  className: styles$x['vitro-icon']
64463
- }), React__default.createElement("span", {
64464
- className: styles$x['vitro-icon-text']
64465
- }, props.text)), React__default.createElement("span", {
64466
- className: styles$x['vitro-item-text']
64469
+ })), React__default.createElement("span", {
64470
+ className: styles$x['vitro-item-text'] + (!(props.isSidebarExpanded || props.isMobileView) ? CTRL.SPACE + styles$x['vitro-display-none'] : CTRL.EMPTY)
64467
64471
  }, props.text));
64468
64472
  };
64469
64473
 
@@ -64473,16 +64477,17 @@ var TARGET;
64473
64477
  TARGET["SELF"] = "_self";
64474
64478
  })(TARGET || (TARGET = {}));
64475
64479
 
64476
- var w$8 = window;
64477
64480
  var WIDTH_AUTO = 'auto';
64478
64481
  var LinkItem$1 = function LinkItem(props) {
64479
64482
  var _useState = React.useState(false),
64480
64483
  isHover = _useState[0],
64481
64484
  setIsHover = _useState[1];
64482
- var isActive = props.link === props.currentUrl || props.activeItem === props.id || props.altUrlList && props.altUrlList.includes(props.currentUrl);
64485
+ var isActive = !!props.link && (props.link === props.currentUrl || props.activeItem === props.id || props.altUrlList && props.altUrlList.includes(props.currentUrl));
64483
64486
  var className = isActive ? styles$x['vitro-active'] : isHover ? styles$x['vitro-hover'] : CTRL.EMPTY;
64484
64487
  var onClick = function onClick(e) {
64485
- if (props.link) {
64488
+ if (props.onClick) {
64489
+ props.onClick(e);
64490
+ } else if (props.link) {
64486
64491
  var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
64487
64492
  detail: {
64488
64493
  pathname: props.link
@@ -64492,29 +64497,40 @@ var LinkItem$1 = function LinkItem(props) {
64492
64497
  }
64493
64498
  };
64494
64499
  return React__default.createElement("li", {
64500
+ style: {
64501
+ width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO
64502
+ },
64503
+ className: styles$x['vitro-item']
64504
+ }, (props.link || props.onClick) && React__default.createElement("button", {
64495
64505
  onMouseEnter: function onMouseEnter() {
64496
64506
  return setIsHover(true);
64497
64507
  },
64498
64508
  onMouseLeave: function onMouseLeave() {
64499
64509
  return setIsHover(false);
64500
64510
  },
64501
- style: {
64502
- width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO
64511
+ onFocus: function onFocus() {
64512
+ return setIsHover(true);
64503
64513
  },
64504
- className: styles$x['vitro-item']
64505
- }, props.link && React__default.createElement("a", {
64506
- onClick: onClick,
64507
- className: className
64508
- }, React__default.createElement(Item$2, Object.assign({}, props, {
64509
- isHover: isHover || isActive
64510
- }))), props.onClick && React__default.createElement("a", {
64511
- onClick: function onClick() {
64512
- return w$8[props.onClick || CTRL.EMPTY]();
64514
+ onBlur: function onBlur() {
64515
+ return setIsHover(false);
64513
64516
  },
64517
+ onClick: onClick,
64514
64518
  className: className
64515
64519
  }, React__default.createElement(Item$2, Object.assign({}, props, {
64516
64520
  isHover: isHover || isActive
64517
64521
  }))), props.href && React__default.createElement("a", {
64522
+ onMouseEnter: function onMouseEnter() {
64523
+ return setIsHover(true);
64524
+ },
64525
+ onMouseLeave: function onMouseLeave() {
64526
+ return setIsHover(false);
64527
+ },
64528
+ onFocus: function onFocus() {
64529
+ return setIsHover(true);
64530
+ },
64531
+ onBlur: function onBlur() {
64532
+ return setIsHover(false);
64533
+ },
64518
64534
  href: props.href,
64519
64535
  target: props.isExternal ? TARGET.BLANK : TARGET.SELF,
64520
64536
  className: className
@@ -64523,34 +64539,212 @@ var LinkItem$1 = function LinkItem(props) {
64523
64539
  }))));
64524
64540
  };
64525
64541
 
64542
+ var WIDTH_AUTO$1 = 'auto';
64543
+ var GroupItem = function GroupItem(props) {
64544
+ var _useState = React.useState(false),
64545
+ isHover = _useState[0],
64546
+ setIsHover = _useState[1];
64547
+ var _useState2 = React.useState(false),
64548
+ isActive = _useState2[0],
64549
+ setIsActive = _useState2[1];
64550
+ var _useState3 = React.useState(false),
64551
+ isExpanded = _useState3[0],
64552
+ setIsExpanded = _useState3[1];
64553
+ var _useState4 = React.useState(false),
64554
+ isActiveChildItem = _useState4[0],
64555
+ setIsActiveChildItem = _useState4[1];
64556
+ var _useState5 = React.useState({
64557
+ start: 0,
64558
+ end: 0
64559
+ }),
64560
+ swipePosition = _useState5[0],
64561
+ setSwipePosition = _useState5[1];
64562
+ var itemListRef = React.useRef(null);
64563
+ var buttonRef = React.useRef(null);
64564
+ React.useEffect(function () {
64565
+ updateState();
64566
+ }, [props.isSidebarExpanded, props.activeItem, props.currentUrl, isExpanded]);
64567
+ React.useEffect(function () {
64568
+ if (props.isMobileView) {
64569
+ setIsExpanded(false);
64570
+ }
64571
+ }, [props.currentUrl]);
64572
+ var className = isActive ? styles$x['vitro-active'] : isHover ? styles$x['vitro-hover'] : CTRL.EMPTY;
64573
+ var onClick = function onClick(e) {
64574
+ setIsExpanded(!isExpanded);
64575
+ };
64576
+ var getIsActiveChildItem = function getIsActiveChildItem() {
64577
+ if (props.itemList.find(function (x) {
64578
+ return x.link === props.currentUrl;
64579
+ })) {
64580
+ return true;
64581
+ }
64582
+ return false;
64583
+ };
64584
+ var updateState = function updateState() {
64585
+ var isActiveChildItem = getIsActiveChildItem();
64586
+ setIsActiveChildItem(isActiveChildItem);
64587
+ if (props.isSidebarExpanded) {
64588
+ if (isActiveChildItem) {
64589
+ if (isExpanded) {
64590
+ setIsHover(true);
64591
+ setIsActive(false);
64592
+ } else {
64593
+ setIsActive(true);
64594
+ }
64595
+ } else {
64596
+ setIsActive(false);
64597
+ setIsHover(false);
64598
+ }
64599
+ } else {
64600
+ if (isActiveChildItem) {
64601
+ setIsActive(true);
64602
+ } else {
64603
+ setIsActive(false);
64604
+ }
64605
+ }
64606
+ };
64607
+ var _onFocus = function onFocus(focus) {
64608
+ if (!isActiveChildItem) {
64609
+ setIsHover(focus);
64610
+ }
64611
+ };
64612
+ var onTouchStart = function onTouchStart(e) {
64613
+ setSwipePosition(_extends({}, swipePosition, {
64614
+ start: e.changedTouches[0].clientY
64615
+ }));
64616
+ };
64617
+ var onTouchEnd = function onTouchEnd(e) {
64618
+ setSwipePosition(_extends({}, swipePosition, {
64619
+ end: e.changedTouches[0].clientY
64620
+ }));
64621
+ if (swipePosition.start < e.changedTouches[0].clientY) {
64622
+ setIsExpanded(false);
64623
+ }
64624
+ };
64625
+ var onTouchMove = function onTouchMove(e) {
64626
+ var inset = swipePosition.start - e.changedTouches[0].clientY;
64627
+ if (itemListRef.current && inset < 0) {
64628
+ var height = itemListRef.current.getBoundingClientRect().height + inset;
64629
+ itemListRef.current.style.height = height + UNIT.PX;
64630
+ }
64631
+ };
64632
+ var content = React__default.createElement(React__default.Fragment, null, props.itemList && props.itemList.map(function (i) {
64633
+ return i.link || i.onClick ? React__default.createElement(LinkItem$1, Object.assign({
64634
+ link: i.link,
64635
+ linkItemWidth: props.linkItemWidth,
64636
+ activeItem: props.activeItem,
64637
+ key: i.text,
64638
+ currentUrl: props.currentUrl,
64639
+ isSidebarExpanded: props.isSidebarExpanded,
64640
+ isMobileView: props.isMobileView
64641
+ }, i)) : i.itemList ? React__default.createElement(GroupItem, {
64642
+ isSidebarExpanded: props.isSidebarExpanded,
64643
+ id: i.id,
64644
+ text: i.text,
64645
+ link: i.link,
64646
+ itemList: i.itemList,
64647
+ linkItemWidth: props.linkItemWidth,
64648
+ activeItem: props.activeItem,
64649
+ key: i.text,
64650
+ currentUrl: props.currentUrl,
64651
+ isMobileView: props.isMobileView
64652
+ }) : null;
64653
+ }));
64654
+ return React__default.createElement(React__default.Fragment, null, React__default.createElement("li", {
64655
+ style: {
64656
+ width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO$1
64657
+ },
64658
+ className: styles$x['vitro-item'] + CTRL.SPACE + styles$x['vitro-group-item']
64659
+ }, React__default.createElement("button", {
64660
+ onMouseEnter: function onMouseEnter() {
64661
+ return _onFocus(true);
64662
+ },
64663
+ onMouseLeave: function onMouseLeave() {
64664
+ return _onFocus(false);
64665
+ },
64666
+ onFocus: function onFocus() {
64667
+ return _onFocus(true);
64668
+ },
64669
+ onBlur: function onBlur() {
64670
+ return _onFocus(false);
64671
+ },
64672
+ onClick: onClick,
64673
+ className: className
64674
+ }, React__default.createElement(Item$2, Object.assign({}, props, {
64675
+ isHover: isHover || isActive
64676
+ })), props.isSidebarExpanded && React__default.createElement("span", {
64677
+ className: isExpanded ? styles$x['vitro-expanded'] : styles$x['vitro-collapsed']
64678
+ })), props.isMobileView ? React__default.createElement(Overlay$1, {
64679
+ show: isExpanded,
64680
+ target: props.container,
64681
+ placement: PLACEMENT$2.TOP
64682
+ }, React__default.createElement("div", {
64683
+ className: styles$x['vitro-popup-container']
64684
+ }, React__default.createElement("ul", {
64685
+ className: styles$x['vitro-popup-item-list'],
64686
+ ref: itemListRef
64687
+ }, React__default.createElement("button", {
64688
+ ref: buttonRef,
64689
+ className: styles$x['vitro-button-close'],
64690
+ onTouchStart: onTouchStart,
64691
+ onTouchEnd: onTouchEnd,
64692
+ onTouchMove: onTouchMove,
64693
+ onClick: function onClick() {
64694
+ return setIsExpanded(false);
64695
+ }
64696
+ }), React__default.createElement(ScrollBar, {
64697
+ className: styles$x['vitro-scrollbar']
64698
+ }, content)))) : React__default.createElement("ul", {
64699
+ className: styles$x['vitro-item-list'] + CTRL.SPACE + (props.isSidebarExpanded ? !isExpanded ? styles$x['vitro-display-none'] : CTRL.EMPTY : styles$x['vitro-display-none'])
64700
+ }, content)));
64701
+ };
64702
+
64526
64703
  var Section = function Section(props) {
64527
64704
  return React__default.createElement("li", null, props.text && React__default.createElement("span", null, props.text), React__default.createElement("ul", null, props.itemList && props.itemList.map(function (i) {
64528
- return React__default.createElement(LinkItem$1, Object.assign({
64705
+ return i.link || i.onClick ? React__default.createElement(LinkItem$1, Object.assign({
64706
+ link: i.link,
64529
64707
  linkItemWidth: props.linkItemWidth,
64530
64708
  activeItem: props.activeItem,
64531
64709
  key: i.text,
64532
- currentUrl: props.currentUrl
64533
- }, i));
64710
+ currentUrl: props.currentUrl,
64711
+ isSidebarExpanded: props.isExpanded,
64712
+ isMobileView: props.isMobileView
64713
+ }, i)) : i.itemList ? React__default.createElement(GroupItem, {
64714
+ isSidebarExpanded: props.isExpanded,
64715
+ id: i.id,
64716
+ text: i.text,
64717
+ itemList: i.itemList,
64718
+ linkItemWidth: props.linkItemWidth,
64719
+ activeItem: props.activeItem,
64720
+ key: i.text,
64721
+ currentUrl: props.currentUrl,
64722
+ isMobileView: props.isMobileView
64723
+ }) : React__default.createElement("div", null);
64534
64724
  })));
64535
64725
  };
64536
64726
 
64727
+ var styles$y = {"vitro-sidebar":"_sidebar_vitro-sidebar_1IxGYiU","vitro-scrollbar":"_sidebar_vitro-scrollbar_2PtQGQD","vitro-sidebar-section-list":"_sidebar_vitro-sidebar-section-list_1nGto5m","vitro-scroll-container":"_sidebar_vitro-scroll-container_3K-iJy8","vitro-button-more":"_sidebar_vitro-button-more_3s9oZY9"};
64728
+
64537
64729
  var SectionList = React.forwardRef(function (props, ref) {
64538
64730
  if (!props.itemList || props.itemList.length === 0) {
64539
64731
  return null;
64540
64732
  }
64541
64733
  return React__default.createElement("ul", {
64542
- ref: ref
64734
+ ref: ref,
64735
+ className: styles$y['vitro-sidebar-section-list']
64543
64736
  }, props.itemList.map(function (section) {
64544
64737
  return React__default.createElement(Section, Object.assign({
64738
+ isExpanded: props.isExpanded,
64545
64739
  linkItemWidth: props.linkItemWidth,
64546
64740
  currentUrl: props.currentUrl,
64547
- activeItem: props.activeItem
64741
+ activeItem: props.activeItem,
64742
+ isMobileView: props.isMobileView,
64743
+ container: props.container
64548
64744
  }, section));
64549
64745
  }));
64550
64746
  });
64551
64747
 
64552
- var styles$y = {"vitro-sidebar":"_sidebar_vitro-sidebar_1IxGYiU","vitro-scroll-container":"_sidebar_vitro-scroll-container_3K-iJy8","vitro-button-more":"_sidebar_vitro-button-more_3s9oZY9"};
64553
-
64554
64748
  var Sidebar = function Sidebar(props) {
64555
64749
  var _useState = React.useState(window.location.pathname),
64556
64750
  currentUrl = _useState[0],
@@ -64595,8 +64789,8 @@ var Sidebar = function Sidebar(props) {
64595
64789
  handleResize();
64596
64790
  }, [window.innerWidth]);
64597
64791
  var handleResize = function handleResize() {
64598
- window.innerWidth < 800 ? setIsMobileView(true) : setIsMobileView(false);
64599
- if (window.innerWidth < 800 && menuRef.current) {
64792
+ window.innerWidth < MOBILE_VIEW.WIDTH ? setIsMobileView(true) : setIsMobileView(false);
64793
+ if (window.innerWidth < MOBILE_VIEW.WIDTH && menuRef.current) {
64600
64794
  var info = menuRef.current.getBoundingClientRect();
64601
64795
  var width = info.right - info.left;
64602
64796
  updateLinkItemWidth(width);
@@ -64628,23 +64822,32 @@ var Sidebar = function Sidebar(props) {
64628
64822
  return React__default.createElement("div", {
64629
64823
  className: className,
64630
64824
  id: 'vitro-sidebar'
64631
- }, !isMobileView ? React__default.createElement(React__default.Fragment, null, React__default.createElement(SectionList, {
64825
+ }, !isMobileView ? React__default.createElement(ScrollBar, {
64826
+ className: styles$y['vitro-scrollbar']
64827
+ }, React__default.createElement(SectionList, {
64632
64828
  itemList: itemList,
64633
64829
  currentUrl: currentUrl,
64634
- activeItem: props.activeItem
64830
+ activeItem: props.activeItem,
64831
+ isExpanded: !props.sidebar,
64832
+ isMobileView: isMobileView
64635
64833
  }), props.bottomItemList && React__default.createElement(SectionList, {
64636
64834
  itemList: props.bottomItemList,
64637
64835
  currentUrl: currentUrl,
64638
- activeItem: props.activeItem
64836
+ activeItem: props.activeItem,
64837
+ isExpanded: !props.sidebar,
64838
+ isMobileView: isMobileView
64639
64839
  })) : React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
64640
64840
  className: styles$y['vitro-scroll-container'],
64641
64841
  ref: menuRef
64642
64842
  }, React__default.createElement(SectionList, {
64843
+ container: menuRef.current,
64643
64844
  itemList: itemList,
64644
64845
  currentUrl: currentUrl,
64645
64846
  activeItem: props.activeItem,
64646
64847
  ref: scrollableListRef,
64647
- linkItemWidth: linkItemWidth
64848
+ linkItemWidth: linkItemWidth,
64849
+ isExpanded: !props.sidebar,
64850
+ isMobileView: isMobileView
64648
64851
  })), React__default.createElement("button", {
64649
64852
  onClick: scroll,
64650
64853
  className: styles$y['vitro-button-more']
@@ -66104,7 +66307,7 @@ var Search = function Search(props) {
66104
66307
  }
66105
66308
  }, [props.searchCriterionList]);
66106
66309
  var handleResize = function handleResize() {
66107
- window.innerWidth < 800 ? setIsMobileView(true) : setIsMobileView(false);
66310
+ window.innerWidth < MOBILE_VIEW.WIDTH ? setIsMobileView(true) : setIsMobileView(false);
66108
66311
  };
66109
66312
  var onSettingsClick = function onSettingsClick() {
66110
66313
  setIsShowDialog(!isShowDialog);
@@ -66371,7 +66574,7 @@ var RouteItem = function RouteItem(props) {
66371
66574
  }, props.children)));
66372
66575
  };
66373
66576
 
66374
- var w$9 = window;
66577
+ var w$8 = window;
66375
66578
  var ID_FILE_VERSION_SELECT$1 = 'fileVersionSelect';
66376
66579
  var Viewer$1 = function Viewer(props) {
66377
66580
  React.useEffect(function () {
@@ -66381,11 +66584,11 @@ var Viewer$1 = function Viewer(props) {
66381
66584
  }, [props.context]);
66382
66585
  var init = function init() {
66383
66586
  var initViewer = function initViewer() {
66384
- if (w$9.initBimViewer) {
66587
+ if (w$8.initBimViewer) {
66385
66588
  var context = _extends({}, props.context, {
66386
66589
  initIssueList: initIssueList
66387
66590
  });
66388
- w$9.initBimViewer(context);
66591
+ w$8.initBimViewer(context);
66389
66592
  initFileVersionSelect();
66390
66593
  } else {
66391
66594
  setTimeout(initViewer, 100);