@ssgoi/react 2.5.4 → 2.5.6
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/dist/index.cjs +1 -1
- package/dist/index.js +12 -9
- package/dist/node_modules/.pnpm/@ssgoi_core@2.5.6/node_modules/@ssgoi/core/dist/types.cjs +1 -0
- package/dist/node_modules/.pnpm/@ssgoi_core@2.5.6/node_modules/@ssgoi/core/dist/types.js +25 -0
- package/dist/types.cjs +1 -1
- package/dist/types.js +6 -3
- package/package.json +2 -2
- package/dist/core/dist/types.cjs +0 -1
- package/dist/core/dist/types.js +0 -10
- /package/dist/{react → packages/react}/src/lib/context.cjs +0 -0
- /package/dist/{react → packages/react}/src/lib/context.js +0 -0
- /package/dist/{react → packages/react}/src/lib/ssgoi-transition.cjs +0 -0
- /package/dist/{react → packages/react}/src/lib/ssgoi-transition.js +0 -0
- /package/dist/{react → packages/react}/src/lib/ssgoi.cjs +0 -0
- /package/dist/{react → packages/react}/src/lib/ssgoi.js +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@ssgoi/core"),i=require("./node_modules/.pnpm/@ssgoi_core@2.5.6/node_modules/@ssgoi/core/dist/types.cjs"),e=require("./packages/react/src/lib/ssgoi.cjs"),s=require("./packages/react/src/lib/ssgoi-transition.cjs");Object.defineProperty(exports,"transition",{enumerable:!0,get:()=>n.transition});exports.isCssAnimation=i.isCssAnimation;exports.isMultiSpring=i.isMultiSpring;exports.isSingleSpring=i.isSingleSpring;exports.isTickAnimation=i.isTickAnimation;exports.validateAnimationMode=i.validateAnimationMode;exports.Ssgoi=e.Ssgoi;exports.SsgoiTransition=s.SsgoiTransition;
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { transition as
|
|
2
|
-
import { isMultiSpring as
|
|
3
|
-
import { Ssgoi as
|
|
4
|
-
import { SsgoiTransition as
|
|
1
|
+
import { transition as n } from "@ssgoi/core";
|
|
2
|
+
import { isCssAnimation as t, isMultiSpring as s, isSingleSpring as a, isTickAnimation as e, validateAnimationMode as m } from "./node_modules/.pnpm/@ssgoi_core@2.5.6/node_modules/@ssgoi/core/dist/types.js";
|
|
3
|
+
import { Ssgoi as g } from "./packages/react/src/lib/ssgoi.js";
|
|
4
|
+
import { SsgoiTransition as f } from "./packages/react/src/lib/ssgoi-transition.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
g as Ssgoi,
|
|
7
|
+
f as SsgoiTransition,
|
|
8
|
+
t as isCssAnimation,
|
|
9
|
+
s as isMultiSpring,
|
|
10
|
+
a as isSingleSpring,
|
|
11
|
+
e as isTickAnimation,
|
|
12
|
+
n as transition,
|
|
13
|
+
m as validateAnimationMode
|
|
11
14
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(i){return("tick"in i||"css"in i)&&!("springs"in i)}function o(i){return"springs"in i}function n(i){return"css"in i&&typeof i.css=="function"}function t(i){return"tick"in i&&typeof i.tick=="function"}function r(i){if(n(i)&&t(i))throw new Error("SingleSpringConfig cannot have both 'tick' and 'css' defined. Use one or the other.")}exports.isCssAnimation=n;exports.isMultiSpring=o;exports.isSingleSpring=e;exports.isTickAnimation=t;exports.validateAnimationMode=r;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
function s(i) {
|
|
2
|
+
return ("tick" in i || "css" in i) && !("springs" in i);
|
|
3
|
+
}
|
|
4
|
+
function o(i) {
|
|
5
|
+
return "springs" in i;
|
|
6
|
+
}
|
|
7
|
+
function n(i) {
|
|
8
|
+
return "css" in i && typeof i.css == "function";
|
|
9
|
+
}
|
|
10
|
+
function t(i) {
|
|
11
|
+
return "tick" in i && typeof i.tick == "function";
|
|
12
|
+
}
|
|
13
|
+
function r(i) {
|
|
14
|
+
if (n(i) && t(i))
|
|
15
|
+
throw new Error(
|
|
16
|
+
"SingleSpringConfig cannot have both 'tick' and 'css' defined. Use one or the other."
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
n as isCssAnimation,
|
|
21
|
+
o as isMultiSpring,
|
|
22
|
+
s as isSingleSpring,
|
|
23
|
+
t as isTickAnimation,
|
|
24
|
+
r as validateAnimationMode
|
|
25
|
+
};
|
package/dist/types.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./core/dist/types.cjs");exports.isMultiSpring=i.isMultiSpring;exports.isSingleSpring=i.isSingleSpring;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./node_modules/.pnpm/@ssgoi_core@2.5.6/node_modules/@ssgoi/core/dist/types.cjs");exports.isCssAnimation=i.isCssAnimation;exports.isMultiSpring=i.isMultiSpring;exports.isSingleSpring=i.isSingleSpring;exports.isTickAnimation=i.isTickAnimation;exports.validateAnimationMode=i.validateAnimationMode;
|
package/dist/types.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { isMultiSpring as
|
|
1
|
+
import { isCssAnimation as o, isMultiSpring as s, isSingleSpring as t, isTickAnimation as a, validateAnimationMode as e } from "./node_modules/.pnpm/@ssgoi_core@2.5.6/node_modules/@ssgoi/core/dist/types.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
o as isCssAnimation,
|
|
4
|
+
s as isMultiSpring,
|
|
5
|
+
t as isSingleSpring,
|
|
6
|
+
a as isTickAnimation,
|
|
7
|
+
e as validateAnimationMode
|
|
5
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssgoi/react",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"description": "React bindings for SSGOI - Native app-like page transitions for React applications",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@ssgoi/core": "^2.5.
|
|
48
|
+
"@ssgoi/core": "^2.5.6"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": "^19.0.0",
|
package/dist/core/dist/types.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(n){return"tick"in n&&!("springs"in n)}function r(n){return"springs"in n}exports.isMultiSpring=r;exports.isSingleSpring=i;
|
package/dist/core/dist/types.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|