@bigbinary/neeto-molecules 3.14.6 → 3.15.6-beta1

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.
@@ -1,4 +1,5 @@
1
1
  import { slugify, isPresent, noop } from '@bigbinary/neeto-cist';
2
+ import { omit } from 'ramda';
2
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
4
  import React__default, { useRef, useEffect, useState, createElement } from 'react';
4
5
  import ExternalLink from '@bigbinary/neeto-icons/ExternalLink';
@@ -27,7 +28,6 @@ import { Link as Link$1 } from 'react-router-dom';
27
28
  import '@babel/runtime/helpers/objectWithoutProperties';
28
29
  import '@bigbinary/neeto-icons/Copy';
29
30
  import '@bigbinary/neeto-icons/Check';
30
- import 'ramda';
31
31
  import '@bigbinary/neeto-icons/MenuHorizontal';
32
32
  import '@bigbinary/neeto-icons/MenuVertical';
33
33
  import '@bigbinary/neetoui/Dropdown';
@@ -1372,21 +1372,15 @@ var ShareViaLink = function ShareViaLink(_ref) {
1372
1372
  regenerate: false,
1373
1373
  edit: false
1374
1374
  } : _ref$enabledOptions,
1375
- _ref$editUrlProps = _ref.editUrlProps,
1376
- editUrlProps = _ref$editUrlProps === void 0 ? {
1377
- prefix: "",
1378
- editablePath: ""
1379
- } : _ref$editUrlProps,
1375
+ _ref$urls = _ref.urls,
1376
+ urls = _ref$urls === void 0 ? [] : _ref$urls,
1380
1377
  entity = _ref.entity,
1381
1378
  entityName = _ref.entityName,
1382
1379
  _ref$handleEdit = _ref.handleEdit,
1383
1380
  handleEdit = _ref$handleEdit === void 0 ? noop : _ref$handleEdit,
1384
1381
  _ref$handleRegenerate = _ref.handleRegenerate,
1385
1382
  handleRegenerate = _ref$handleRegenerate === void 0 ? noop : _ref$handleRegenerate,
1386
- _ref$previewUrl = _ref.previewUrl,
1387
- previewUrl = _ref$previewUrl === void 0 ? "" : _ref$previewUrl,
1388
1383
  socialMediaPostTitle = _ref.socialMediaPostTitle,
1389
- url = _ref.url,
1390
1384
  moreOptions = _ref.moreOptions,
1391
1385
  _ref$isOtherShareOpti = _ref.isOtherShareOptionsEnabled,
1392
1386
  isOtherShareOptionsEnabled = _ref$isOtherShareOpti === void 0 ? true : _ref$isOtherShareOpti,
@@ -1397,22 +1391,25 @@ var ShareViaLink = function ShareViaLink(_ref) {
1397
1391
  return /*#__PURE__*/jsxs("div", {
1398
1392
  className: "neeto-ui-border-gray-300 neeto-ui-rounded-lg neeto-ui-bg-white col-span-2 space-y-4 border p-6 sm:p-8",
1399
1393
  "data-testid": "share-via-link",
1400
- children: [/*#__PURE__*/jsx(Link, {
1401
- editUrlProps: editUrlProps,
1402
- enabledOptions: enabledOptions,
1403
- entityName: entityName,
1404
- handleEdit: handleEdit,
1405
- handleRegenerate: handleRegenerate,
1406
- isLoading: isLoading,
1407
- previewUrl: previewUrl,
1408
- url: url
1394
+ children: [urls.map(function (urlOption) {
1395
+ return /*#__PURE__*/createElement(Link, {
1396
+ enabledOptions: enabledOptions,
1397
+ entityName: entityName,
1398
+ handleEdit: handleEdit,
1399
+ handleRegenerate: handleRegenerate,
1400
+ isLoading: isLoading,
1401
+ editUrlProps: omit(["url"], urlOption),
1402
+ key: urlOption.url,
1403
+ previewUrl: urlOption.previewUrl,
1404
+ url: urlOption.url
1405
+ });
1409
1406
  }), isOtherShareOptionsEnabled && /*#__PURE__*/jsx(ShareBlock, {
1410
1407
  disableQRDownload: disableQRDownload,
1411
1408
  disableShareSocialMedia: disableShareSocialMedia,
1412
1409
  entity: entity,
1413
1410
  moreOptions: moreOptions,
1414
- url: url,
1415
- postTitle: socialMediaPostTitle
1411
+ postTitle: socialMediaPostTitle,
1412
+ url: urls[0].url
1416
1413
  })]
1417
1414
  });
1418
1415
  };