@pushwoosh/dumb-components 1.0.55 → 1.0.57

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.
@@ -17,7 +17,7 @@ export function PushPreview(props) {
17
17
  } = props;
18
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
19
  const content = getLocalizedContent((pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.content) || (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.localizedContent), language);
20
- const icon = content ? (pushPreset === null || pushPreset === void 0 ? void 0 : pushPreset.icon) || appIcon : PREVIEW_ICON_URL;
20
+ const icon = (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) {
23
23
  return React.createElement(PushBox, {
@@ -25,7 +25,7 @@ export const IconContainer = styled.div.withConfig({
25
25
  export const PushIcon = styled.img.withConfig({
26
26
  displayName: "PushIcon",
27
27
  componentId: "sc-185rvhg-2"
28
- })(["width:24px;height:24px;background:", ";border-radius:", ";"], Color.PHANTOM, ShapeRadius.CONTROL);
28
+ })(["width:24px;height:24px;border-radius:", ";"], ShapeRadius.CONTROL);
29
29
  export const PushTitle = styled.div.withConfig({
30
30
  displayName: "PushTitle",
31
31
  componentId: "sc-185rvhg-3"
@@ -56,7 +56,8 @@ export const RichMessageEditor = ({
56
56
  }]
57
57
  };
58
58
  Transforms.insertNodes(editor, newDC);
59
- Transforms.select(editor, editor.selection);
59
+ Transforms.move(editor);
60
+ setShowDrop(undefined);
60
61
  };
61
62
  const clickAwayHandler = usePersistentFunction(() => {
62
63
  setShowDrop(undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",