publ-echo 0.0.17 → 0.0.18

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.
@@ -13,5 +13,5 @@ export type DraggableDefaultProps = {
13
13
  className?: string;
14
14
  style?: Object;
15
15
  } & DraggableCoreDefaultProps & DraggablePositionType;
16
- declare const Draggable: ({ children, axis, bounds, defaultClassName, defaultClassNameDragging, defaultClassNameDragged, defaultPosition, scale, ...props }: PropsWithChildren<DraggableDefaultProps>) => import("react/jsx-runtime").JSX.Element;
16
+ declare const Draggable: ({ children, axis, bounds, defaultClassName, defaultClassNameDragging, defaultClassNameDragged, defaultPosition, scale, ...props }: PropsWithChildren<DraggableDefaultProps>) => React.ReactElement;
17
17
  export default Draggable;
@@ -1,4 +1,4 @@
1
1
  import { ResponsiveGridLayoutProps } from "./types";
2
2
  import { PropsWithChildren } from "../types";
3
- export declare const ResponsiveGridLayout: ({ children, ...props }: PropsWithChildren<ResponsiveGridLayoutProps>) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ResponsiveGridLayout: ({ children, ...props }: PropsWithChildren<ResponsiveGridLayoutProps>) => React.ReactElement;
4
4
  export default ResponsiveGridLayout;
@@ -3,5 +3,5 @@ import { PropsWithChildren } from "../Draggable/types";
3
3
  type ResizableBoxProps = ResizableProps & {
4
4
  style?: Object;
5
5
  };
6
- declare const ResizableBox: ({ children, ...props }: PropsWithChildren<ResizableBoxProps>) => import("react/jsx-runtime").JSX.Element;
6
+ declare const ResizableBox: ({ children, ...props }: PropsWithChildren<ResizableBoxProps>) => React.ReactElement;
7
7
  export default ResizableBox;
@@ -20,7 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
24
  import { useState } from "react";
25
25
  import Resizable from "./Resizable";
26
26
  var ResizableBox = function (_a) {
@@ -52,6 +52,6 @@ var ResizableBox = function (_a) {
52
52
  propsHeight: height,
53
53
  });
54
54
  }
55
- return (_jsx(_Fragment, { children: _jsx(Resizable, { axis: axis, draggableOpts: draggableOpts, handle: handle, handleSize: handleSize, height: resizableBoxState.height, lockAspectRatio: lockAspectRatio, maxConstraints: maxConstraints, minConstraints: minConstraints, onResizeStart: onResizeStart, onResize: handleResize, onResizeStop: onResizeStop, resizeHandles: resizeHandles, transformScale: transformScale, width: resizableBoxState.width, children: _jsx("div", __assign({}, restProps, { style: __assign(__assign({}, style), { width: resizableBoxState.width + "px", height: resizableBoxState.height + "px" }) })) }) }));
55
+ return (_jsx(Resizable, { axis: axis, draggableOpts: draggableOpts, handle: handle, handleSize: handleSize, height: resizableBoxState.height, lockAspectRatio: lockAspectRatio, maxConstraints: maxConstraints, minConstraints: minConstraints, onResizeStart: onResizeStart, onResize: handleResize, onResizeStop: onResizeStop, resizeHandles: resizeHandles, transformScale: transformScale, width: resizableBoxState.width, children: _jsx("div", __assign({}, restProps, { style: __assign(__assign({}, style), { width: resizableBoxState.width + "px", height: resizableBoxState.height + "px" }) })) }));
56
56
  };
57
57
  export default ResizableBox;
@@ -5,5 +5,5 @@ type ComposedProps<Config> = {
5
5
  style?: Object;
6
6
  width?: number;
7
7
  } & Config;
8
- declare const WidthProvider: <Config>(ComposedComponent: React.ComponentType<Config>) => (props: ComposedProps<Config>) => import("react/jsx-runtime").JSX.Element;
8
+ declare const WidthProvider: <Config>(ComposedComponent: React.ComponentType<Config>) => (props: ComposedProps<Config>) => React.ReactElement;
9
9
  export default WidthProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "publ-echo",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.js",
@@ -52,9 +52,5 @@
52
52
  "styled-components": "^5.3.10",
53
53
  "typescript": "^5.1.6",
54
54
  "web-vitals": "^2.1.4"
55
- },
56
- "peerDependencies": {
57
- "react": "^18.2.0",
58
- "react-dom": "^18.2.0"
59
55
  }
60
56
  }