@ssgoi/core 0.0.3 → 2.1.0

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.
Files changed (58) hide show
  1. package/README.md +252 -23
  2. package/dist/animator.d.ts +28 -17
  3. package/dist/animator.d.ts.map +1 -1
  4. package/dist/create-ssgoi-transition-context.d.ts.map +1 -1
  5. package/dist/create-transition-callback.d.ts +3 -32
  6. package/dist/create-transition-callback.d.ts.map +1 -1
  7. package/dist/index.cjs +1 -1
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +374 -213
  11. package/dist/presets/index.cjs +1 -0
  12. package/dist/presets/index.d.ts +16 -0
  13. package/dist/presets/index.d.ts.map +1 -0
  14. package/dist/presets/index.js +35 -0
  15. package/dist/transition-strategy.d.ts +60 -0
  16. package/dist/transition-strategy.d.ts.map +1 -0
  17. package/dist/transition.d.ts +55 -11
  18. package/dist/transition.d.ts.map +1 -1
  19. package/dist/transitions/blur.d.ts +5 -1
  20. package/dist/transitions/blur.d.ts.map +1 -1
  21. package/dist/transitions/bounce.d.ts +5 -0
  22. package/dist/transitions/bounce.d.ts.map +1 -1
  23. package/dist/transitions/fade.d.ts +3 -0
  24. package/dist/transitions/fade.d.ts.map +1 -1
  25. package/dist/transitions/fly.d.ts +30 -0
  26. package/dist/transitions/fly.d.ts.map +1 -0
  27. package/dist/transitions/index.cjs +1 -1
  28. package/dist/transitions/index.d.ts +1 -0
  29. package/dist/transitions/index.d.ts.map +1 -1
  30. package/dist/transitions/index.js +200 -120
  31. package/dist/transitions/none.d.ts +3 -0
  32. package/dist/transitions/none.d.ts.map +1 -1
  33. package/dist/transitions/rotate.d.ts +6 -0
  34. package/dist/transitions/rotate.d.ts.map +1 -1
  35. package/dist/transitions/scale.d.ts +6 -3
  36. package/dist/transitions/scale.d.ts.map +1 -1
  37. package/dist/transitions/slide.d.ts +6 -1
  38. package/dist/transitions/slide.d.ts.map +1 -1
  39. package/dist/types.d.ts +19 -7
  40. package/dist/types.d.ts.map +1 -1
  41. package/dist/utils-8Eptbv7c.cjs +2 -0
  42. package/dist/utils-DTRMUQW4.js +31 -0
  43. package/dist/utils.d.ts +11 -0
  44. package/dist/utils.d.ts.map +1 -1
  45. package/dist/view-transitions/drill.d.ts +9 -0
  46. package/dist/view-transitions/drill.d.ts.map +1 -0
  47. package/dist/view-transitions/fade.d.ts +3 -1
  48. package/dist/view-transitions/fade.d.ts.map +1 -1
  49. package/dist/view-transitions/hero.d.ts.map +1 -1
  50. package/dist/view-transitions/index.cjs +1 -1
  51. package/dist/view-transitions/index.d.ts +2 -1
  52. package/dist/view-transitions/index.d.ts.map +1 -1
  53. package/dist/view-transitions/index.js +233 -177
  54. package/dist/view-transitions/scroll.d.ts +8 -0
  55. package/dist/view-transitions/scroll.d.ts.map +1 -0
  56. package/package.json +28 -10
  57. package/dist/utils-BSgyev81.cjs +0 -1
  58. package/dist/utils-DR41YsAh.js +0 -16
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ssgoi/core",
3
- "version": "0.0.3",
4
- "description": "A smooth page transition library",
3
+ "version": "2.1.0",
4
+ "description": "Core animation engine for SSGOI - Native app-like page transitions with spring physics",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "main": "./dist/index.cjs",
@@ -31,6 +31,12 @@
31
31
  "import": "./dist/types.js",
32
32
  "require": "./dist/types.cjs",
33
33
  "default": "./dist/types.js"
34
+ },
35
+ "./presets": {
36
+ "types": "./dist/presets/index.d.ts",
37
+ "import": "./dist/presets/index.js",
38
+ "require": "./dist/presets/index.cjs",
39
+ "default": "./dist/presets/index.js"
34
40
  }
35
41
  },
36
42
  "files": [
@@ -38,6 +44,13 @@
38
44
  "!dist/**/*.test.*",
39
45
  "!dist/**/*.spec.*"
40
46
  ],
47
+ "scripts": {
48
+ "dev": "vite",
49
+ "watch": "vite build --watch",
50
+ "build": "tsc && vite build",
51
+ "preview": "vite preview",
52
+ "prepare": "pnpm run build"
53
+ },
41
54
  "keywords": [
42
55
  "page-transition",
43
56
  "animation",
@@ -46,13 +59,23 @@
46
59
  "spring-physics",
47
60
  "ssgoi"
48
61
  ],
49
- "author": "",
62
+ "author": "MeurSyphus <tmdeoans@snu.ac.kr>",
50
63
  "license": "MIT",
51
64
  "repository": {
52
65
  "type": "git",
53
- "url": "https://github.com/yourusername/ssgoi.git",
66
+ "url": "git+https://github.com/meursyphus/ssgoi.git",
54
67
  "directory": "packages/core"
55
68
  },
69
+ "homepage": "https://ssgoi.dev",
70
+ "bugs": {
71
+ "url": "https://github.com/meursyphus/ssgoi/issues"
72
+ },
73
+ "publishConfig": {
74
+ "access": "public"
75
+ },
76
+ "engines": {
77
+ "node": ">=18.0.0"
78
+ },
56
79
  "devDependencies": {
57
80
  "@types/node": "^22.10.6",
58
81
  "typescript": "^5.7.3",
@@ -61,10 +84,5 @@
61
84
  },
62
85
  "dependencies": {
63
86
  "popmotion": "^11.0.5"
64
- },
65
- "scripts": {
66
- "dev": "vite",
67
- "build": "tsc && vite build",
68
- "preview": "vite preview"
69
87
  }
70
- }
88
+ }
@@ -1 +0,0 @@
1
- "use strict";const n=e=>{e.style.position="absolute",e.style.width="100%",e.style.top="0",e.style.left="0"},r=e=>{let t=e.parentElement;for(;t&&t!==document.body;){const l=window.getComputedStyle(t),o=l.overflow+l.overflowY+l.overflowX;if(o.includes("auto")||o.includes("scroll")||t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.parentElement}return document.documentElement};exports.getScrollingElement=r;exports.prepareOutgoing=n;
@@ -1,16 +0,0 @@
1
- const n = (e) => {
2
- e.style.position = "absolute", e.style.width = "100%", e.style.top = "0", e.style.left = "0";
3
- }, r = (e) => {
4
- let t = e.parentElement;
5
- for (; t && t !== document.body; ) {
6
- const o = window.getComputedStyle(t), l = o.overflow + o.overflowY + o.overflowX;
7
- if (l.includes("auto") || l.includes("scroll") || t.scrollHeight > t.clientHeight || t.scrollWidth > t.clientWidth)
8
- return t;
9
- t = t.parentElement;
10
- }
11
- return document.documentElement;
12
- };
13
- export {
14
- r as g,
15
- n as p
16
- };