bruce-cesium 6.7.2 → 6.7.4

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.
@@ -21002,6 +21002,7 @@
21002
21002
  this._element = element;
21003
21003
  }
21004
21004
  _updateBookmarks() {
21005
+ var _a;
21005
21006
  const bookmarks = this._widget.Bookmarks;
21006
21007
  this._element.style.display = bookmarks.length ? "flex" : "none";
21007
21008
  const api = this._widget._getApiGetters().GetBruceApi();
@@ -21016,11 +21017,11 @@
21016
21017
  const image = document.createElement("div");
21017
21018
  image.className = "NextspaceLeftPanelTabBookmarksListItemImageBoxImage";
21018
21019
  imageBox.appendChild(image);
21019
- const previewUrl = bookmark["Screenshot.ClientFile.ID"] ? BModels.ClientFile.GetUrl({
21020
+ const previewUrl = bookmark["Screenshot.ClientFile.ID"] ? ((_a = bookmark["Screenshot.URL"]) !== null && _a !== void 0 ? _a : BModels.ClientFile.GetUrl({
21020
21021
  fileId: bookmark["Screenshot.ClientFile.ID"],
21021
21022
  api,
21022
21023
  viaCdn: true
21023
- }) : "";
21024
+ })) : "";
21024
21025
  // TODO: Some nice empty image.
21025
21026
  const img = document.createElement("img");
21026
21027
  img.src = previewUrl;
@@ -24980,7 +24981,10 @@
24980
24981
  const item = document.createElement("div");
24981
24982
  item.className = "NextspaceBookmarksRowItem";
24982
24983
  let previewUrl = "";
24983
- if (bookmark["Screenshot.ClientFile.ID"]) {
24984
+ if (bookmark["Screenshot.URL"]) {
24985
+ previewUrl = bookmark["Screenshot.URL"];
24986
+ }
24987
+ else if (bookmark["Screenshot.ClientFile.ID"]) {
24984
24988
  previewUrl = BModels.ClientFile.GetUrl({
24985
24989
  fileId: bookmark["Screenshot.ClientFile.ID"],
24986
24990
  api,
@@ -28749,7 +28753,7 @@
28749
28753
  }
28750
28754
  }
28751
28755
  async _updateInfoView() {
28752
- var _b, _c, _d;
28756
+ var _b, _c, _d, _e;
28753
28757
  const selectedIds = this._manager.VisualsRegister.GetSelected();
28754
28758
  if (selectedIds.length <= 0) {
28755
28759
  this._element.style.display = "none";
@@ -28804,7 +28808,7 @@
28804
28808
  const defaultImage = images.length ? images[0] : null;
28805
28809
  if (defaultImage) {
28806
28810
  this._imageContainer.style.display = "flex";
28807
- const url = BModels.ClientFile.GetUrl({
28811
+ const url = (_c = defaultImage.URL) !== null && _c !== void 0 ? _c : BModels.ClientFile.GetUrl({
28808
28812
  fileId: defaultImage["ClientFile.ID"],
28809
28813
  api: api,
28810
28814
  viaCdn: true
@@ -28817,7 +28821,7 @@
28817
28821
  this._summary.appendChild(detailsTitle);
28818
28822
  // TODO: Selection for what mode instead of always doing "all".
28819
28823
  const attributes = gatherAttributes(EMode.ShowAll, entity, entityType);
28820
- const groups = groupAttributes(attributes, (_d = (_c = entityType.DataSchema) === null || _c === void 0 ? void 0 : _c.Structure) !== null && _d !== void 0 ? _d : []);
28824
+ const groups = groupAttributes(attributes, (_e = (_d = entityType.DataSchema) === null || _d === void 0 ? void 0 : _d.Structure) !== null && _e !== void 0 ? _e : []);
28821
28825
  for (const group of groups) {
28822
28826
  this._generateAttrGroup(entityType, entity, group);
28823
28827
  }
@@ -36218,7 +36222,7 @@
36218
36222
  }
36219
36223
  }
36220
36224
 
36221
- const VERSION = "6.7.2";
36225
+ const VERSION = "6.7.4";
36222
36226
  /**
36223
36227
  * Updates the environment instance used by bruce-cesium to one specified.
36224
36228
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.