@pushwoosh/dumb-components 1.0.42 → 1.0.43

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.
@@ -15,8 +15,8 @@ export function PushPreview(props) {
15
15
  isLoading = false,
16
16
  width
17
17
  } = props;
18
- const title = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.title, language) || appTitle;
19
- const content = getLocalizedContent(pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.content, language);
18
+ const title = getLocalizedContent((pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.title) || (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.localizedTitle), language) || appTitle;
19
+ const content = getLocalizedContent((pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.content) || (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.localizedContent), language);
20
20
  const icon = content ? (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.icon) || appIcon : PREVIEW_ICON_URL;
21
21
  const isLocked = !pushPreset || !content || view === 'silent';
22
22
  if (isLoading) {
@@ -1,8 +1,9 @@
1
1
  export type PushPreviewView = 'compact' | 'extended' | 'silent';
2
2
  export interface PushBasicData {
3
3
  title?: Record<string, string>;
4
- subTitle?: Record<string, string>;
5
4
  content?: Record<string, string>;
5
+ localizedTitle?: Record<string, string>;
6
+ localizedContent?: Record<string, string>;
6
7
  icon?: string;
7
8
  }
8
9
  export interface PushPreviewProps<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",