@pushwoosh/dumb-components 1.0.63 → 1.0.65

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.
package/Chip/Chip.d.ts CHANGED
@@ -3,6 +3,7 @@ export declare const Chip: React.ForwardRefExoticComponent<{
3
3
  $variant?: import("./Chip.types").ChipVariant;
4
4
  $selected?: boolean;
5
5
  $onClose?: React.HTMLAttributes<HTMLDivElement>["onClick"];
6
+ as?: string;
6
7
  } & {
7
8
  children?: React.ReactNode | undefined;
8
9
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
package/Chip/Chip.js CHANGED
@@ -6,6 +6,7 @@ export const Chip = forwardRef(({
6
6
  $selected,
7
7
  $onClose,
8
8
  children,
9
+ as,
9
10
  ...rest
10
11
  }, ref) => {
11
12
  return React.createElement(ChipStyled, {
@@ -13,6 +14,7 @@ export const Chip = forwardRef(({
13
14
  "$variant": $variant,
14
15
  "$selected": $selected,
15
16
  "$closeable": !!$onClose,
17
+ as: as,
16
18
  ...rest
17
19
  }, children, $onClose && React.createElement(CloseIcon, {
18
20
  size: "small",
@@ -4,4 +4,5 @@ export type ChipProps = PropsWithChildren<{
4
4
  $variant?: ChipVariant;
5
5
  $selected?: boolean;
6
6
  $onClose?: HTMLAttributes<HTMLDivElement>['onClick'];
7
+ as?: string;
7
8
  }> & HTMLAttributes<HTMLDivElement>;
@@ -28,8 +28,9 @@ export const RichMessageEditor = ({
28
28
  floatingStyles,
29
29
  update
30
30
  } = useFloating({
31
+ strategy: 'fixed',
31
32
  middleware: [offset(8), autoPlacement({
32
- allowedPlacements: ['left', 'left-start', 'left-end', 'right', 'right-start', 'right-end']
33
+ allowedPlacements: ['right', 'right-start', 'right-end', 'left', 'left-start', 'left-end']
33
34
  })]
34
35
  });
35
36
  const onSelectionChange = selection => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",