@ssgoi/vue 2.1.1 → 2.2.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.
package/README.md CHANGED
@@ -78,12 +78,12 @@ Define different transitions for different routes:
78
78
  ```javascript
79
79
  const config = {
80
80
  transitions: [
81
- // Slide between tabs
82
- { from: '/home', to: '/about', transition: slide({ direction: 'left' }) },
83
- { from: '/about', to: '/home', transition: slide({ direction: 'right' }) },
81
+ // Scroll between tabs
82
+ { from: '/home', to: '/about', transition: scroll({ direction: 'up' }) },
83
+ { from: '/about', to: '/home', transition: scroll({ direction: 'down' }) },
84
84
 
85
- // Scale up when entering details
86
- { from: '/products', to: '/products/*', transition: scale() },
85
+ // Drill in when entering details
86
+ { from: '/products', to: '/products/*', transition: drill({ direction: 'enter' }) },
87
87
 
88
88
  // Pinterest-style image transitions
89
89
  { from: '/gallery', to: '/photo/*', transition: pinterest() }
@@ -100,7 +100,7 @@ Automatically create bidirectional transitions:
100
100
  {
101
101
  from: '/home',
102
102
  to: '/about',
103
- transition: slide({ direction: 'left' }),
103
+ transition: scroll({ direction: 'up' }),
104
104
  symmetric: true // Automatically creates reverse transition
105
105
  }
106
106
  ```
@@ -190,10 +190,10 @@ onUnmounted(() => {
190
190
 
191
191
  <script setup>
192
192
  import { Ssgoi } from '@ssgoi/vue';
193
- import { slide } from '@ssgoi/vue/view-transitions';
193
+ import { scroll } from '@ssgoi/vue/view-transitions';
194
194
 
195
195
  const config = {
196
- defaultTransition: slide({ direction: 'left' })
196
+ defaultTransition: scroll({ direction: 'up' })
197
197
  };
198
198
  </script>
199
199
 
@@ -280,11 +280,10 @@ const cleanup = transition({
280
280
 
281
281
  ### Page Transitions (`@ssgoi/vue/view-transitions`)
282
282
  - `fade()` - Smooth opacity transition
283
- - `slide()` - Directional sliding (left/right/up/down)
284
- - `scale()` - Zoom in/out effect
283
+ - `scroll()` - Vertical scrolling (up/down)
284
+ - `drill()` - Drill in/out effect (enter/exit)
285
285
  - `hero()` - Shared element transitions
286
286
  - `pinterest()` - Pinterest-style expand effect
287
- - `ripple()` - Material Design ripple effect
288
287
 
289
288
  ### Element Transitions (`@ssgoi/vue/transitions`)
290
289
  - `fadeIn()` / `fadeOut()`
@@ -2,7 +2,9 @@ import { transition as e } from "@ssgoi/core";
2
2
  const s = e, r = {
3
3
  mounted(n, t) {
4
4
  if (!t.value) {
5
- console.warn("[SSGOI] v-transition directive requires a configuration object");
5
+ console.warn(
6
+ "[SSGOI] v-transition directive requires a configuration object"
7
+ );
6
8
  return;
7
9
  }
8
10
  const o = t.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssgoi/vue",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Vue bindings for SSGOI - Native app-like page transitions for Vue applications",
5
5
  "private": false,
6
6
  "type": "module",
@@ -44,17 +44,8 @@
44
44
  "default": "./dist/presets/index.js"
45
45
  }
46
46
  },
47
- "scripts": {
48
- "dev": "vite build --watch",
49
- "build": "vue-tsc -b && vite build",
50
- "watch": "vite build --watch",
51
- "lint": "eslint .",
52
- "preview": "vite preview",
53
- "package": "vite build",
54
- "prepare": "pnpm run build"
55
- },
56
47
  "dependencies": {
57
- "@ssgoi/core": "^2.1.0"
48
+ "@ssgoi/core": "2.2.0"
58
49
  },
59
50
  "peerDependencies": {
60
51
  "vue": "^3.5.0"
@@ -66,6 +57,7 @@
66
57
  "eslint": "^9.30.1",
67
58
  "eslint-plugin-vue": "^9.33.0",
68
59
  "globals": "^16.3.0",
60
+ "prettier": "^3.6.2",
69
61
  "rollup-plugin-preserve-directives": "^0.4.0",
70
62
  "typescript": "~5.8.3",
71
63
  "typescript-eslint": "^8.35.1",
@@ -96,5 +88,13 @@
96
88
  },
97
89
  "engines": {
98
90
  "node": ">=18.0.0"
91
+ },
92
+ "scripts": {
93
+ "dev": "vite build --watch",
94
+ "build": "vue-tsc -b && vite build",
95
+ "watch": "vite build --watch",
96
+ "lint": "eslint .",
97
+ "preview": "vite preview",
98
+ "package": "vite build"
99
99
  }
100
- }
100
+ }