@blazediff/react 1.6.3 → 1.6.5

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/README.md CHANGED
@@ -4,7 +4,7 @@ React components for blazediff image comparison.
4
4
 
5
5
  <div align="center">
6
6
 
7
- [![npm bundle size](https://img.shields.io/bundlephobia/min/%40blazediff%2Freact)](https://www.npmjs.com/package/@blazediff/react)
7
+ [![npm bundle size](https://img.shields.io/npm/unpacked-size/%40blazediff%2Freact)](https://www.npmjs.com/package/@blazediff/react)
8
8
  [![NPM Downloads](https://img.shields.io/npm/dy/%40blazediff%2Freact)](https://www.npmjs.com/package/@blazediff/react)
9
9
 
10
10
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/react",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "React components for blazediff image comparison",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9,7 +9,7 @@
9
9
  "dist"
10
10
  ],
11
11
  "dependencies": {
12
- "@blazediff/ui": "1.6.3"
12
+ "@blazediff/ui": "1.6.5"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
@@ -38,6 +38,7 @@
38
38
  },
39
39
  "license": "MIT",
40
40
  "scripts": {
41
+ "typecheck": "tsc --noEmit",
41
42
  "build": "tsup",
42
43
  "dev": "tsup --watch",
43
44
  "storybook": "storybook dev -p 6007",
package/dist/index.d.mts DELETED
@@ -1,76 +0,0 @@
1
- import React from 'react';
2
-
3
- interface BaseBlazeDiffProps {
4
- src1: string;
5
- src2: string;
6
- className?: string;
7
- containerClassName?: string;
8
- }
9
- interface DifferenceModeProps extends BaseBlazeDiffProps {
10
- threshold?: number;
11
- includeAA?: boolean;
12
- alpha?: number;
13
- canvasClassName?: string;
14
- onDiffComplete?: (detail: {
15
- diffCount: number;
16
- totalPixels: number;
17
- percentage: number;
18
- }) => void;
19
- onDiffError?: (error: unknown) => void;
20
- }
21
- interface SwipeModeProps extends BaseBlazeDiffProps {
22
- alt1?: string;
23
- alt2?: string;
24
- image1ClassName?: string;
25
- image2ClassName?: string;
26
- dividerClassName?: string;
27
- onPositionChange?: (position: number) => void;
28
- }
29
- interface TwoUpModeProps extends BaseBlazeDiffProps {
30
- containerInnerClassName?: string;
31
- panelClassName?: string;
32
- imageClassName?: string;
33
- dimensionInfoClassName?: string;
34
- onImagesLoaded?: (detail: {
35
- image1: {
36
- width: number;
37
- height: number;
38
- };
39
- image2: {
40
- width: number;
41
- height: number;
42
- };
43
- }) => void;
44
- onLoadError?: (error: unknown) => void;
45
- }
46
- interface OnionSkinModeProps extends BaseBlazeDiffProps {
47
- opacity?: number;
48
- imageContainerClassName?: string;
49
- imageClassName?: string;
50
- sliderContainerClassName?: string;
51
- sliderClassName?: string;
52
- sliderLabelClassName?: string;
53
- sliderLabelText?: string;
54
- onOpacityChange?: (opacity: number) => void;
55
- onImagesLoaded?: (detail: {
56
- image1: {
57
- width: number;
58
- height: number;
59
- };
60
- image2: {
61
- width: number;
62
- height: number;
63
- };
64
- }) => void;
65
- onLoadError?: (error: unknown) => void;
66
- }
67
-
68
- declare const DifferenceMode: React.FC<DifferenceModeProps>;
69
-
70
- declare const OnionSkinMode: React.FC<OnionSkinModeProps>;
71
-
72
- declare const SwipeMode: React.FC<SwipeModeProps>;
73
-
74
- declare const TwoUpMode: React.FC<TwoUpModeProps>;
75
-
76
- export { type BaseBlazeDiffProps, DifferenceMode, type DifferenceModeProps, OnionSkinMode, type OnionSkinModeProps, SwipeMode, type SwipeModeProps, TwoUpMode, type TwoUpModeProps };