pixedi 1.10.1 → 1.10.2
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/CHANGELOG.md +5 -0
- package/dist/lib/Pixedi.d.ts +10 -0
- package/dist/lib/assets/icons.d.ts +27 -0
- package/dist/lib/constants.d.ts +6 -0
- package/dist/lib/crop/CropButtonGroup.d.ts +6 -0
- package/dist/lib/crop/CropInfo.d.ts +1 -0
- package/dist/lib/crop/CropInteractBox.d.ts +1 -0
- package/dist/lib/crop/CropLines.d.ts +1 -0
- package/dist/lib/crop/CropPointer.d.ts +7 -0
- package/dist/lib/crop/CropPointers.d.ts +6 -0
- package/dist/lib/crop/CropTools.d.ts +1 -0
- package/dist/lib/crop/index.d.ts +7 -0
- package/dist/lib/crop/useCrop.d.ts +7 -0
- package/dist/lib/crop/useCropInteraction.d.ts +9 -0
- package/dist/lib/eventBus.d.ts +6 -0
- package/dist/lib/filters/DefaultFilterValues.d.ts +2 -0
- package/dist/lib/filters/FilterInteractBox.d.ts +1 -0
- package/dist/lib/filters/FilterTools.d.ts +1 -0
- package/dist/lib/filters/UrlFilters.d.ts +1 -0
- package/dist/lib/filters/index.d.ts +3 -0
- package/dist/lib/filters/useFilterInteraction.d.ts +7 -0
- package/dist/lib/filters/useFilters.d.ts +20 -0
- package/dist/lib/flip/FlipTools.d.ts +1 -0
- package/dist/lib/flip/index.d.ts +1 -0
- package/dist/lib/flip/useFlip.d.ts +9 -0
- package/dist/lib/frame/Frame.d.ts +1 -0
- package/dist/lib/frame/index.d.ts +1 -0
- package/dist/lib/header/Header.d.ts +5 -0
- package/dist/lib/header/index.d.ts +1 -0
- package/dist/lib/hooks/index.d.ts +6 -0
- package/dist/lib/hooks/useAbove.d.ts +2 -0
- package/dist/lib/hooks/useBellow.d.ts +2 -0
- package/dist/lib/hooks/useImageLoader.d.ts +16 -0
- package/dist/lib/hooks/useImageSaving.d.ts +6 -0
- package/dist/lib/hooks/useMobile.d.ts +3 -0
- package/dist/lib/hooks/useToolCommit.d.ts +7 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +715 -892
- package/dist/lib/index.umd.cjs +11 -16
- package/dist/lib/infobar/Infobar.d.ts +1 -0
- package/dist/lib/infobar/index.d.ts +1 -0
- package/dist/lib/preset/PresetTools.d.ts +1 -0
- package/dist/lib/preset/index.d.ts +1 -0
- package/dist/lib/preset/usePreset.d.ts +8 -0
- package/dist/lib/preview/Preview.d.ts +8 -0
- package/dist/lib/preview/index.d.ts +1 -0
- package/dist/lib/preview/usePreview.d.ts +28 -0
- package/dist/lib/provider/PixediProvider.d.ts +15 -0
- package/dist/lib/provider/StoreContext.d.ts +20 -0
- package/dist/lib/provider/initialState.d.ts +16 -0
- package/dist/lib/provider/usePixediContext.d.ts +16 -0
- package/dist/lib/resize/ResizeTools.d.ts +1 -0
- package/dist/lib/resize/index.d.ts +1 -0
- package/dist/lib/resize/useResize.d.ts +15 -0
- package/dist/lib/rotate/RotateTools.d.ts +1 -0
- package/dist/lib/rotate/index.d.ts +1 -0
- package/dist/lib/rotate/useRotate.d.ts +6 -0
- package/dist/lib/sidebar/Sidebar.d.ts +5 -0
- package/dist/lib/sidebar/index.d.ts +1 -0
- package/dist/lib/sidebar/useSidebar.d.ts +11 -0
- package/dist/lib/types.d.ts +129 -0
- package/dist/lib/ui/button/Button.d.ts +7 -0
- package/dist/lib/ui/index.d.ts +10 -0
- package/dist/lib/ui/input/Input.d.ts +4 -0
- package/dist/lib/ui/input-pixel/InputPixel.d.ts +6 -0
- package/dist/lib/ui/save-close-group/SaveCloseGroup.d.ts +8 -0
- package/dist/lib/ui/select/Select.d.ts +11 -0
- package/dist/lib/ui/select/useSelect.d.ts +22 -0
- package/dist/lib/ui/separator/Separator.d.ts +4 -0
- package/dist/lib/ui/slider/Slider.d.ts +19 -0
- package/dist/lib/ui/surface-tool/SurfaceTool.d.ts +8 -0
- package/dist/lib/ui/surface-tool/SurfaceToolContext.d.ts +6 -0
- package/dist/lib/ui/surface-tool/SurfaceToolOffsetProvider.d.ts +5 -0
- package/dist/lib/ui/surface-tool/useSurfaceTool.d.ts +7 -0
- package/dist/lib/ui/tooltip/Tooltip.d.ts +11 -0
- package/dist/lib/ui/tooltip/useTooltip.d.ts +14 -0
- package/dist/lib/utils/canvas.d.ts +7 -0
- package/dist/lib/utils/crop.d.ts +10 -0
- package/dist/lib/utils/imageProcessor.d.ts +10 -0
- package/dist/lib/utils/preview.d.ts +42 -0
- package/dist/lib/workers/imageLoad.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type Tools } from "../types";
|
|
3
|
+
type MappedTool = {
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const getToolData: (tool: Tools) => MappedTool | null;
|
|
8
|
+
export declare const useSidebar: () => {
|
|
9
|
+
click: (tool: Tools) => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
export declare const breakpoints: {
|
|
2
|
+
readonly sm: 480;
|
|
3
|
+
readonly md: 768;
|
|
4
|
+
readonly lg: 1024;
|
|
5
|
+
readonly xl: 1280;
|
|
6
|
+
};
|
|
7
|
+
export type Breakpoint = keyof typeof breakpoints;
|
|
8
|
+
export type Direction = "tl" | "tr" | "bl" | "br";
|
|
9
|
+
export type ActionWithVal = {
|
|
10
|
+
val: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const ActionName: {
|
|
13
|
+
readonly INITIAL: "initial";
|
|
14
|
+
readonly RESIZE: "resize";
|
|
15
|
+
readonly CROP: "crop";
|
|
16
|
+
readonly PRESET_CROP: "presetCrop";
|
|
17
|
+
readonly FLIP: "flip";
|
|
18
|
+
readonly ROTATE: "rotate";
|
|
19
|
+
readonly FILTERS: "filters";
|
|
20
|
+
};
|
|
21
|
+
export type Tools = Exclude<(typeof ActionName)[keyof typeof ActionName], "initial">;
|
|
22
|
+
export type Sizes = {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
export type ActionFlip = {
|
|
27
|
+
horizontal: boolean;
|
|
28
|
+
vertical: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type ActionCrop = {
|
|
31
|
+
id: string;
|
|
32
|
+
ratio: number;
|
|
33
|
+
isFree: boolean;
|
|
34
|
+
preset?: Sizes;
|
|
35
|
+
} & Partial<CropRect>;
|
|
36
|
+
export type CropRect = {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
w: number;
|
|
40
|
+
h: number;
|
|
41
|
+
};
|
|
42
|
+
export type CropRectExtended = CropRect & {
|
|
43
|
+
xP: number;
|
|
44
|
+
yP: number;
|
|
45
|
+
wP: number;
|
|
46
|
+
hP: number;
|
|
47
|
+
};
|
|
48
|
+
export type ActionRotate = {
|
|
49
|
+
degrees: number;
|
|
50
|
+
};
|
|
51
|
+
export type CssFilters = {
|
|
52
|
+
brightness: number;
|
|
53
|
+
contrast: number;
|
|
54
|
+
grayscale: number;
|
|
55
|
+
hueRotate: number;
|
|
56
|
+
invert: number;
|
|
57
|
+
saturate: number;
|
|
58
|
+
sepia: number;
|
|
59
|
+
};
|
|
60
|
+
export type UrlFilter = {
|
|
61
|
+
url: string;
|
|
62
|
+
};
|
|
63
|
+
export type ActionFilter = UrlFilter | CssFilters;
|
|
64
|
+
export type Action = {
|
|
65
|
+
name: typeof ActionName.INITIAL;
|
|
66
|
+
args: null;
|
|
67
|
+
} | {
|
|
68
|
+
name: typeof ActionName.RESIZE;
|
|
69
|
+
args: Sizes;
|
|
70
|
+
} | {
|
|
71
|
+
name: typeof ActionName.CROP;
|
|
72
|
+
args: ActionCrop;
|
|
73
|
+
} | {
|
|
74
|
+
name: typeof ActionName.PRESET_CROP;
|
|
75
|
+
args: ActionCrop;
|
|
76
|
+
} | {
|
|
77
|
+
name: typeof ActionName.FLIP;
|
|
78
|
+
args: ActionFlip;
|
|
79
|
+
} | {
|
|
80
|
+
name: typeof ActionName.ROTATE;
|
|
81
|
+
args: ActionRotate;
|
|
82
|
+
} | {
|
|
83
|
+
name: typeof ActionName.FILTERS;
|
|
84
|
+
args: ActionFilter;
|
|
85
|
+
};
|
|
86
|
+
export type HistoryItem = Sizes & {
|
|
87
|
+
action: Action;
|
|
88
|
+
};
|
|
89
|
+
export type History = {
|
|
90
|
+
pointer: number;
|
|
91
|
+
items: Array<HistoryItem>;
|
|
92
|
+
};
|
|
93
|
+
export type FuncSaveArgs = (payload: Blob | string) => Promise<void> | void;
|
|
94
|
+
export type Theme = "light" | "dark";
|
|
95
|
+
export type Option<T = string> = {
|
|
96
|
+
value: T;
|
|
97
|
+
label: string;
|
|
98
|
+
rightLabel?: string;
|
|
99
|
+
};
|
|
100
|
+
export type PresetOption = Option & {
|
|
101
|
+
w: number;
|
|
102
|
+
h: number;
|
|
103
|
+
};
|
|
104
|
+
export type Preset = Option & {
|
|
105
|
+
options: Array<PresetOption>;
|
|
106
|
+
};
|
|
107
|
+
export type FilterData = Option & {
|
|
108
|
+
min: number;
|
|
109
|
+
max: number;
|
|
110
|
+
step: number;
|
|
111
|
+
unit: string;
|
|
112
|
+
sliderValue: number;
|
|
113
|
+
};
|
|
114
|
+
export type ProcessedImage = {
|
|
115
|
+
newBlob: Blob;
|
|
116
|
+
previewBlob: Blob;
|
|
117
|
+
mimeType: string;
|
|
118
|
+
width: number;
|
|
119
|
+
height: number;
|
|
120
|
+
isAlpha: boolean;
|
|
121
|
+
};
|
|
122
|
+
export type Settings = {
|
|
123
|
+
tools?: Tools[];
|
|
124
|
+
infobar?: boolean;
|
|
125
|
+
quality?: number;
|
|
126
|
+
saveAsWEBP?: boolean;
|
|
127
|
+
exportAs?: "blob" | "base64";
|
|
128
|
+
background?: "circled" | "diagonals" | "rhombus";
|
|
129
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type ButtonProps = React.ComponentPropsWithRef<"button"> & {
|
|
2
|
+
variant?: "default" | "outline" | "ghost";
|
|
3
|
+
className?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const Button: ({ className, variant, children, ref, ...props }: ButtonProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Button } from "./button/Button";
|
|
2
|
+
export { Separator } from "./separator/Separator";
|
|
3
|
+
export { Select } from "./select/Select";
|
|
4
|
+
export { Input } from "./input/Input";
|
|
5
|
+
export { InputPixel } from "./input-pixel/InputPixel";
|
|
6
|
+
export { SaveCloseGroup } from "./save-close-group/SaveCloseGroup";
|
|
7
|
+
export { Slider } from "./slider/Slider";
|
|
8
|
+
export { Tooltip } from "./tooltip/Tooltip";
|
|
9
|
+
export { SurfaceTool } from "./surface-tool/SurfaceTool";
|
|
10
|
+
export { SurfaceToolOffsetProvider } from "./surface-tool/SurfaceToolOffsetProvider";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type SaveCloseGroupProps = {
|
|
2
|
+
onSave: () => void;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
saving?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const SaveCloseGroup: ({ onSave, onClose, saving, disabled, }: SaveCloseGroupProps) => import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SelectOption } from "./useSelect";
|
|
2
|
+
export type { SelectOption } from "./useSelect";
|
|
3
|
+
type SelectProps = {
|
|
4
|
+
items: SelectOption[];
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
renderOption?: (option: SelectOption) => React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const Select: ({ items, value, onChange, placeholder, className, renderOption, }: SelectProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type SelectOption = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
options?: SelectOption[];
|
|
5
|
+
rightLabel?: string;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
};
|
|
8
|
+
type UseSelectArgs = {
|
|
9
|
+
items: SelectOption[];
|
|
10
|
+
value: string;
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const useSelect: ({ items, value, onChange }: UseSelectArgs) => {
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
selectedLabel: string | undefined;
|
|
16
|
+
containerRef: import("react").RefObject<HTMLDivElement | null>;
|
|
17
|
+
triggerRef: import("react").RefObject<HTMLButtonElement | null>;
|
|
18
|
+
contentRef: import("react").RefObject<HTMLDivElement | null>;
|
|
19
|
+
handleSelectItem: (nextValue: string) => void;
|
|
20
|
+
toggleOpen: () => void;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Separator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
2
|
+
orientation?: "horizontal" | "vertical";
|
|
3
|
+
className?: string;
|
|
4
|
+
} & import("react").RefAttributes<HTMLHRElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Ref } from "react";
|
|
2
|
+
export type SliderHandle = {
|
|
3
|
+
getValue: () => number;
|
|
4
|
+
};
|
|
5
|
+
type SliderProps = {
|
|
6
|
+
min: number;
|
|
7
|
+
max: number;
|
|
8
|
+
value?: number;
|
|
9
|
+
step?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
isTooltip?: boolean;
|
|
12
|
+
unit?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
onChange?: (value: number) => void;
|
|
15
|
+
onInput?: (value: number) => void;
|
|
16
|
+
ref?: Ref<SliderHandle>;
|
|
17
|
+
};
|
|
18
|
+
export declare const Slider: ({ min, max, value, step, disabled, isTooltip, unit, className, onChange, onInput, ref, }: SliderProps) => import("react").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
type SurfaceToolProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
6
|
+
};
|
|
7
|
+
export declare const SurfaceTool: ({ children, className, ref, }: SurfaceToolProps) => import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type SurfaceToolOffset = {
|
|
2
|
+
dx: number;
|
|
3
|
+
dy: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const SurfaceToolOffsetContext: import("react").Context<import("react").RefObject<SurfaceToolOffset> | undefined>;
|
|
6
|
+
export declare const useSurfaceToolOffset: () => React.RefObject<SurfaceToolOffset>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TooltipPosition } from "./useTooltip";
|
|
3
|
+
type TooltipProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
position?: TooltipPosition;
|
|
6
|
+
className?: string;
|
|
7
|
+
classNameTitle?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
};
|
|
10
|
+
export declare const Tooltip: ({ children, position, className, classNameTitle, style, }: TooltipProps) => import("react").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode, CSSProperties } from "react";
|
|
2
|
+
export type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
3
|
+
export declare const useTooltip: (children: ReactNode, position?: TooltipPosition) => {
|
|
4
|
+
containerRef: import("react").RefObject<HTMLDivElement | null>;
|
|
5
|
+
trackRef: import("react").RefObject<HTMLDivElement | null>;
|
|
6
|
+
titleRefs: import("react").RefObject<(HTMLDivElement | null)[]>;
|
|
7
|
+
titles: string[];
|
|
8
|
+
position: TooltipPosition;
|
|
9
|
+
isVisible: boolean;
|
|
10
|
+
isAnimated: boolean;
|
|
11
|
+
cssVars: CSSProperties;
|
|
12
|
+
handleMouseMove: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
13
|
+
handleMouseLeave: () => void;
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function Canvas(base64Str: string, alpha?: boolean, mimeType?: string): {
|
|
2
|
+
resize(width: number, height: number): /*elided*/ any;
|
|
3
|
+
crop(x: number, y: number, width: number, height: number): /*elided*/ any;
|
|
4
|
+
flip(horizontal: boolean, vertical: boolean): /*elided*/ any;
|
|
5
|
+
rotate(angle: number): /*elided*/ any;
|
|
6
|
+
getBase64(): Promise<string>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CropRect, CropRectExtended, Direction, Sizes } from "../types";
|
|
2
|
+
export declare const getCropPoints: (dir: Direction, isFree: boolean, ratio: number, startX: number, startY: number, clientX: number, clientY: number, width: number, height: number, crop: CropRect, fallback: CropRect) => CropRect;
|
|
3
|
+
export declare const getInitalCrop: (cropRatio: number, width: number, height: number) => CropRectExtended;
|
|
4
|
+
export declare const snapRectToRatio: (crop: CropRect, ratio: number, width: number, height: number) => CropRect;
|
|
5
|
+
export declare const getCropByNewSizes: (crop: CropRect, width: number, height: number, frameWidth: number) => CropRect;
|
|
6
|
+
export declare const degree2Rad: (degree: number) => number;
|
|
7
|
+
export declare const isQuarterTurn: (degrees: number) => boolean;
|
|
8
|
+
export declare const getOrientedSizes: (width: number, height: number, fromDegrees: number, toDegrees: number) => Sizes;
|
|
9
|
+
export declare const createPreviewBlob: (bitmap: ImageBitmap) => Promise<Blob>;
|
|
10
|
+
export declare function hasAlphaChannel(bitmap: ImageBitmap): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ActionFilter, ProcessedImage, Settings } from "../types";
|
|
2
|
+
export declare const blobToBase64: (blob: Blob) => Promise<string>;
|
|
3
|
+
export declare function imageProcessor(blob: Blob): Promise<{
|
|
4
|
+
crop: (x: number, y: number, w: number, h: number) => void;
|
|
5
|
+
flip: (horizontal: boolean, vertical: boolean) => void;
|
|
6
|
+
rotate: (angle: number) => void;
|
|
7
|
+
resize: (width: number, height: number) => void;
|
|
8
|
+
filters: (args: ActionFilter) => void;
|
|
9
|
+
get: (settings: Settings) => Promise<ProcessedImage>;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ActionFilter, type HistoryItem } from "../types";
|
|
2
|
+
export type Preview = {
|
|
3
|
+
box: {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
w: number;
|
|
7
|
+
h: number;
|
|
8
|
+
};
|
|
9
|
+
boxWidth: number;
|
|
10
|
+
boxHeight: number;
|
|
11
|
+
newWidth: number;
|
|
12
|
+
newHeight: number;
|
|
13
|
+
initWidth: number;
|
|
14
|
+
initHeight: number;
|
|
15
|
+
viewWidth: number;
|
|
16
|
+
viewHeight: number;
|
|
17
|
+
rotation: number;
|
|
18
|
+
flipH: boolean;
|
|
19
|
+
flipV: boolean;
|
|
20
|
+
filters: string[];
|
|
21
|
+
};
|
|
22
|
+
export declare const getPreview: (items: HistoryItem[]) => Preview;
|
|
23
|
+
export declare const getActions: (items: HistoryItem[]) => {
|
|
24
|
+
filters?: ActionFilter | undefined;
|
|
25
|
+
resize?: {
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
} | undefined;
|
|
29
|
+
flip?: {
|
|
30
|
+
horizontal: boolean;
|
|
31
|
+
vertical: boolean;
|
|
32
|
+
} | undefined;
|
|
33
|
+
rotate?: {
|
|
34
|
+
degrees: number;
|
|
35
|
+
} | undefined;
|
|
36
|
+
crop?: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
w: number;
|
|
40
|
+
h: number;
|
|
41
|
+
} | undefined;
|
|
42
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixedi",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A lightweight, embeddable React image editor component.",
|
|
6
6
|
"type": "module",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"types": "./dist/lib/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
+
"types": "./dist/lib/index.d.ts",
|
|
12
13
|
"import": "./dist/lib/index.js",
|
|
13
|
-
"require": "./dist/lib/index.umd.cjs"
|
|
14
|
-
"types": "./dist/lib/index.d.ts"
|
|
14
|
+
"require": "./dist/lib/index.umd.cjs"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"lint": "eslint .",
|
|
62
62
|
"storybook": "storybook dev -p 6006",
|
|
63
63
|
"build-storybook": "storybook build",
|
|
64
|
-
"type-check": "tsc -
|
|
64
|
+
"type-check": "tsc -p tsconfig.lib.json --noEmit",
|
|
65
65
|
"test": "vitest run",
|
|
66
66
|
"test:watch": "vitest"
|
|
67
67
|
}
|