@pushwoosh/smart-components-kit 1.0.42 → 1.0.44

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.
@@ -25,11 +25,11 @@ export const OpenActionsSummary = ({
25
25
  const {
26
26
  rpcGateway
27
27
  } = useSPAContext();
28
- const applicationData = useAsync(() => rpcGateway.applications.Get({
28
+ const applicationData = useAsync(() => applicationCode ? rpcGateway.applications.Get({
29
29
  code: applicationCode
30
- }), [applicationCode]);
30
+ }) : Promise.resolve(undefined), [rpcGateway, applicationCode]);
31
31
  const hasCustomPlatformsDeeplink = Object.keys(platformsDeeplinkUrls).length > 0;
32
- const safariUrl = getSafariUrl(((_applicationData$valu = applicationData.value) === null || _applicationData$valu === void 0 ? void 0 : _applicationData$valu.application) || null, safariUrlArgs ?? '');
32
+ const safariUrl = getSafariUrl((applicationData === null || applicationData === void 0 || (_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",
package/package.json CHANGED
@@ -21,7 +21,8 @@
21
21
  "@pushwoosh/kit-constants": "^1.6.9",
22
22
  "@pushwoosh/kit-helpers": "^4.8.1",
23
23
  "@pushwoosh/kit-icons": "^2.1.6",
24
- "@pushwoosh/kit-typography": "^1.7.3"
24
+ "@pushwoosh/kit-typography": "^1.7.3",
25
+ "react-router-dom": "^5.3.4"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@pushwoosh/frontend-builder-engine": "^1.0.18",
@@ -35,7 +36,6 @@
35
36
  "pre-commit": "^1.2.2",
36
37
  "react": "^18.3.1",
37
38
  "react-dom": "^18.3.1",
38
- "react-router-dom": "^5.3.4",
39
39
  "styled-components": "^5.3.11"
40
40
  },
41
41
  "peerDependencies": {
@@ -49,5 +49,5 @@
49
49
  "engines": {
50
50
  "node": ">= 18"
51
51
  },
52
- "version": "1.0.42"
52
+ "version": "1.0.44"
53
53
  }