react-magic-card 2.0.8 → 2.0.9

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.
@@ -14,7 +14,7 @@ const DetailImage = ({ onClick, classDetail, hasDetail, detailRef, detailKey, sr
14
14
  return (react_1.default.createElement(framer_motion_1.m.div, { role: "button", onClick: onClick, ref: detailRef, className: styles_module_css_1.default.full_size, animate: {
15
15
  zIndex: zIndex,
16
16
  backdropFilter: backdropFilter,
17
- WebkitBackdropFilter: backdropFilter,
17
+ ...{ WebkitBackdropFilter: backdropFilter },
18
18
  backgroundColor: backgroundColor,
19
19
  pointerEvents: hasDetail ? 'auto' : 'none'
20
20
  }, initial: false, transition: transition },
package/dist/types.d.ts CHANGED
@@ -20,7 +20,7 @@ type AnimationProperty = {
20
20
  type TransitionProperty = {
21
21
  duration?: number;
22
22
  type: undefined;
23
- ease: number[] | 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate';
23
+ ease: [number, number, number, number] | 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate';
24
24
  } | {
25
25
  duration?: number;
26
26
  type?: 'spring';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-magic-card",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "React Component library for images gallery using the framer motion animation.",
5
5
  "keywords": [
6
6
  "react",
@@ -11,6 +11,7 @@
11
11
  "circle",
12
12
  "infinity"
13
13
  ],
14
+ "funding": "https://github.com/sponsors/refirst11",
14
15
  "license": "MIT",
15
16
  "repository": {
16
17
  "type": "git",
@@ -31,11 +32,12 @@
31
32
  "test": "test"
32
33
  },
33
34
  "peerDependencies": {
34
- "framer-motion": "^11.3.21"
35
+ "framer-motion": ">=11.3.21"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@types/css-modules": "^1.0.5",
38
- "@types/react": "^18.3.31",
39
+ "@types/react": "^19.3.0",
40
+ "framer-motion": "^14.0.0",
39
41
  "typescript": "^6.0.3"
40
42
  }
41
43
  }