@pushwoosh/smart-components-kit 1.0.38 → 1.0.39

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.
@@ -29,7 +29,7 @@ export const OpenActionsSummary = ({
29
29
  code: applicationCode
30
30
  }), [applicationCode]);
31
31
  const hasCustomPlatformsDeeplink = Object.keys(platformsDeeplinkUrls).length > 0;
32
- const safariUrl = !hasCustomPlatformsDeeplink && getSafariUrl(((_applicationData$valu = applicationData.value) === null || _applicationData$valu === void 0 ? void 0 : _applicationData$valu.application) || null, safariUrlArgs ?? '');
32
+ const safariUrl = getSafariUrl(((_applicationData$valu = applicationData.value) === null || _applicationData$valu === void 0 ? void 0 : _applicationData$valu.application) || null, safariUrlArgs ?? '');
33
33
  const renderInfoBlock = (device, action, url = null) => React.createElement(Vertical, null, React.createElement("span", null, "For", ' ', React.createElement("strong", null, device), ' ', "subscribers:", ' ', React.createElement("strong", null, action)), url && React.createElement(LinkRow, null, React.createElement(Link, {
34
34
  as: Tag.A,
35
35
  rel: "noopener noreferrer",
@@ -1,7 +1,7 @@
1
1
  import { useCallback, useEffect, useState } from 'react';
2
2
  import { useToast } from '@pushwoosh/dumb-components';
3
3
  import { useSPAContext } from '../context';
4
- import { formatDeeplink } from './helpers';
4
+ import { formatDeeplink, isWebLink } from './helpers';
5
5
  const WEB_PLATFORM_KEY = 0;
6
6
  export const usePresetOpenActions = pushPreset => {
7
7
  const [openActions, setOpenActions] = useState(undefined);
@@ -31,7 +31,7 @@ export const usePresetOpenActions = pushPreset => {
31
31
  return;
32
32
  }
33
33
  const safariUrlArgs = ((_pushPreset$localized = pushPreset.localizedProperties.default) === null || _pushPreset$localized === void 0 || (_pushPreset$localized = _pushPreset$localized.safari) === null || _pushPreset$localized === void 0 || (_pushPreset$localized = _pushPreset$localized.urlArguments) === null || _pushPreset$localized === void 0 ? void 0 : _pushPreset$localized[0]) ?? null;
34
- const webPageUrl = pushPreset.url;
34
+ const webPageUrl = isWebLink(pushPreset.url) ? pushPreset.url : null;
35
35
  const {
36
36
  platformsDeeplinkUrls,
37
37
  showRichmedia
package/package.json CHANGED
@@ -51,5 +51,5 @@
51
51
  "engines": {
52
52
  "node": ">= 18"
53
53
  },
54
- "version": "1.0.38"
54
+ "version": "1.0.39"
55
55
  }