@vitrosoftware/common-ui-ts 1.1.197 → 1.1.198

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
@@ -63128,7 +63128,7 @@ var Viewer = function Viewer(props) {
63128
63128
  };
63129
63129
 
63130
63130
  var name = "@vitrosoftware/common-ui-ts";
63131
- var version$1 = "1.1.197";
63131
+ var version$1 = "1.1.198";
63132
63132
  var description = "vitro software common ui ts";
63133
63133
  var author = "";
63134
63134
  var license = "MIT";
@@ -69344,6 +69344,13 @@ var LinkInput = React.forwardRef(function (props, ref) {
69344
69344
  link.remove();
69345
69345
  }
69346
69346
  };
69347
+ var getCopyValue = function getCopyValue(value) {
69348
+ if (props.isCopyOrigin && value.uri[0] === CTRL.SLASH) {
69349
+ var _props$value;
69350
+ return location.origin + ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.uri);
69351
+ }
69352
+ return value.uri;
69353
+ };
69347
69354
  var className = styles$1G['vitro-link-input'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY) + (props.isReadOnly ? CTRL.SPACE + styles$1G['vitro-read-only'] : CTRL.EMPTY) + (isEditMode ? CTRL.SPACE + styles$1G['vitro-edit-mode'] : CTRL.EMPTY);
69348
69355
  return React__default.createElement("div", {
69349
69356
  className: className
@@ -69369,7 +69376,7 @@ var LinkInput = React.forwardRef(function (props, ref) {
69369
69376
  tooltipText: localeService.create(LOCALE$a.TOOLTIP_EDIT),
69370
69377
  className: styles$1G['vitro-edit-button']
69371
69378
  }), props.isReadOnly && React__default.createElement(CopyButton, {
69372
- value: value.uri,
69379
+ value: getCopyValue(value),
69373
69380
  className: styles$1G['vitro-copy-button']
69374
69381
  }));
69375
69382
  });
@@ -85429,6 +85436,7 @@ var SharedItemLinkForm = function SharedItemLinkForm(props) {
85429
85436
  uri: props.uri
85430
85437
  },
85431
85438
  className: styles$1Z['vitro-link-input'],
85439
+ isCopyOrigin: true,
85432
85440
  isReadOnly: true
85433
85441
  })));
85434
85442
  };