@flightdev/transitions 0.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/LICENSE +21 -0
- package/README.md +86 -0
- package/dist/adapters/react/index.d.ts +210 -0
- package/dist/adapters/react/index.js +261 -0
- package/dist/adapters/react/index.js.map +1 -0
- package/dist/adapters/solid/index.d.ts +5 -0
- package/dist/adapters/solid/index.js +9 -0
- package/dist/adapters/solid/index.js.map +1 -0
- package/dist/adapters/svelte/index.d.ts +5 -0
- package/dist/adapters/svelte/index.js +9 -0
- package/dist/adapters/svelte/index.js.map +1 -0
- package/dist/adapters/vue/index.d.ts +5 -0
- package/dist/adapters/vue/index.js +9 -0
- package/dist/adapters/vue/index.js.map +1 -0
- package/dist/chunk-DZC3OLDU.js +121 -0
- package/dist/chunk-DZC3OLDU.js.map +1 -0
- package/dist/chunk-GEYKSLH6.js +190 -0
- package/dist/chunk-GEYKSLH6.js.map +1 -0
- package/dist/chunk-N7U5LD4Z.js +70 -0
- package/dist/chunk-N7U5LD4Z.js.map +1 -0
- package/dist/chunk-OV3U5STU.js +252 -0
- package/dist/chunk-OV3U5STU.js.map +1 -0
- package/dist/chunk-QSB65CTV.js +438 -0
- package/dist/chunk-QSB65CTV.js.map +1 -0
- package/dist/chunk-SPUGO5I5.js +138 -0
- package/dist/chunk-SPUGO5I5.js.map +1 -0
- package/dist/chunk-W7HSR35B.js +3 -0
- package/dist/chunk-W7HSR35B.js.map +1 -0
- package/dist/chunk-X2A7XWYR.js +442 -0
- package/dist/chunk-X2A7XWYR.js.map +1 -0
- package/dist/chunk-XLVYHPII.js +3 -0
- package/dist/chunk-XLVYHPII.js.map +1 -0
- package/dist/chunk-ZI6E7GNQ.js +136 -0
- package/dist/chunk-ZI6E7GNQ.js.map +1 -0
- package/dist/component/index.d.ts +87 -0
- package/dist/component/index.js +5 -0
- package/dist/component/index.js.map +1 -0
- package/dist/config/index.d.ts +93 -0
- package/dist/config/index.js +5 -0
- package/dist/config/index.js.map +1 -0
- package/dist/core/index.d.ts +107 -0
- package/dist/core/index.js +5 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/index.d.ts +112 -0
- package/dist/layout/index.js +4 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/page/index.d.ts +87 -0
- package/dist/page/index.js +7 -0
- package/dist/page/index.js.map +1 -0
- package/dist/presets/index.d.ts +192 -0
- package/dist/presets/index.js +3 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/router/index.d.ts +104 -0
- package/dist/router/index.js +7 -0
- package/dist/router/index.js.map +1 -0
- package/dist/transition-manager-QWm4OSFw.d.ts +62 -0
- package/dist/types-BA4L37s4.d.ts +272 -0
- package/dist/view-transition-LSN_PSbm.d.ts +97 -0
- package/package.json +148 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @flightdev/transitions - Core Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Flight Transitions system.
|
|
5
|
+
* Following 2026 best practices with strict TypeScript.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Native ViewTransition interface (matches browser API)
|
|
9
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition
|
|
10
|
+
*/
|
|
11
|
+
interface ViewTransition {
|
|
12
|
+
/** Promise that resolves when the DOM update callback completes */
|
|
13
|
+
readonly updateCallbackDone: Promise<void>;
|
|
14
|
+
/** Promise that resolves when pseudo-element tree is ready to animate */
|
|
15
|
+
readonly ready: Promise<void>;
|
|
16
|
+
/** Promise that resolves when animation completes and new view is interactive */
|
|
17
|
+
readonly finished: Promise<void>;
|
|
18
|
+
/** Skip the transition animation */
|
|
19
|
+
skipTransition(): void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Options for starting a view transition
|
|
23
|
+
*/
|
|
24
|
+
interface ViewTransitionOptions {
|
|
25
|
+
/** Unique name for CSS targeting via view-transition-name */
|
|
26
|
+
name?: string;
|
|
27
|
+
/** Skip the transition entirely (instant swap) */
|
|
28
|
+
skipTransition?: boolean;
|
|
29
|
+
/** Custom CSS classes applied during transition phases */
|
|
30
|
+
classes?: {
|
|
31
|
+
/** Class added to old (leaving) snapshot */
|
|
32
|
+
old?: string;
|
|
33
|
+
/** Class added to new (entering) snapshot */
|
|
34
|
+
new?: string;
|
|
35
|
+
};
|
|
36
|
+
/** Types for the transition (used with @view-transition types) */
|
|
37
|
+
types?: string[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Result from startViewTransition wrapper
|
|
41
|
+
*/
|
|
42
|
+
interface ViewTransitionResult {
|
|
43
|
+
/** Promise resolving when ready to animate */
|
|
44
|
+
readonly ready: Promise<void>;
|
|
45
|
+
/** Promise resolving when animation finishes */
|
|
46
|
+
readonly finished: Promise<void>;
|
|
47
|
+
/** Promise resolving when DOM update callback completes */
|
|
48
|
+
readonly updateCallbackDone: Promise<void>;
|
|
49
|
+
/** Skip the remaining animation */
|
|
50
|
+
skipTransition(): void;
|
|
51
|
+
/** Whether native API was used */
|
|
52
|
+
readonly isNative: boolean;
|
|
53
|
+
}
|
|
54
|
+
/** Built-in transition preset names */
|
|
55
|
+
type TransitionPreset = 'fade' | 'fade-scale' | 'slide-left' | 'slide-right' | 'slide-up' | 'slide-down' | 'scale' | 'scale-fade' | 'morph' | 'flip' | 'none';
|
|
56
|
+
/** Direction for directional transitions */
|
|
57
|
+
type TransitionDirection = 'forward' | 'back' | 'auto';
|
|
58
|
+
/** CSS properties that can be animated */
|
|
59
|
+
type AnimatableProperty = 'opacity' | 'transform' | 'clip-path' | 'filter' | 'background-color' | 'color' | string;
|
|
60
|
+
/**
|
|
61
|
+
* Keyframe definition for a transition phase
|
|
62
|
+
*/
|
|
63
|
+
interface TransitionKeyframe {
|
|
64
|
+
/** Starting CSS values */
|
|
65
|
+
from: Partial<Record<AnimatableProperty, string>>;
|
|
66
|
+
/** Ending CSS values */
|
|
67
|
+
to: Partial<Record<AnimatableProperty, string>>;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Custom transition definition
|
|
71
|
+
*/
|
|
72
|
+
interface CustomTransition {
|
|
73
|
+
/** Name identifier for the transition */
|
|
74
|
+
name?: string;
|
|
75
|
+
/** Animation for the leaving element */
|
|
76
|
+
leave?: TransitionKeyframe;
|
|
77
|
+
/** Animation for the entering element */
|
|
78
|
+
enter?: TransitionKeyframe;
|
|
79
|
+
/** Duration in milliseconds */
|
|
80
|
+
duration?: number | {
|
|
81
|
+
leave?: number;
|
|
82
|
+
enter?: number;
|
|
83
|
+
};
|
|
84
|
+
/** Easing function(s) */
|
|
85
|
+
easing?: string | {
|
|
86
|
+
leave?: string;
|
|
87
|
+
enter?: string;
|
|
88
|
+
};
|
|
89
|
+
/** Delay before animation starts */
|
|
90
|
+
delay?: number | {
|
|
91
|
+
leave?: number;
|
|
92
|
+
enter?: number;
|
|
93
|
+
};
|
|
94
|
+
/** CSS fill mode */
|
|
95
|
+
fill?: FillMode;
|
|
96
|
+
}
|
|
97
|
+
/** Animation fill mode */
|
|
98
|
+
type FillMode = 'none' | 'forwards' | 'backwards' | 'both';
|
|
99
|
+
/**
|
|
100
|
+
* Resolved transition (preset or custom normalized to common format)
|
|
101
|
+
*/
|
|
102
|
+
interface ResolvedTransition {
|
|
103
|
+
name: string;
|
|
104
|
+
leave: {
|
|
105
|
+
keyframes: Keyframe[];
|
|
106
|
+
options: KeyframeAnimationOptions;
|
|
107
|
+
};
|
|
108
|
+
enter: {
|
|
109
|
+
keyframes: Keyframe[];
|
|
110
|
+
options: KeyframeAnimationOptions;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Configuration for page-level transitions
|
|
115
|
+
*/
|
|
116
|
+
interface PageTransitionConfig {
|
|
117
|
+
/** Default transition for all navigations */
|
|
118
|
+
default?: TransitionPreset | CustomTransition | false;
|
|
119
|
+
/** Transition for back navigation (overrides default) */
|
|
120
|
+
backTransition?: TransitionPreset | CustomTransition | false;
|
|
121
|
+
/** Duration override */
|
|
122
|
+
duration?: number;
|
|
123
|
+
/** Easing override */
|
|
124
|
+
easing?: string;
|
|
125
|
+
/** How to handle prefers-reduced-motion */
|
|
126
|
+
reduceMotion?: ReduceMotionBehavior;
|
|
127
|
+
/** Callback before transition starts */
|
|
128
|
+
onStart?: (context: TransitionContext) => void;
|
|
129
|
+
/** Callback after transition completes */
|
|
130
|
+
onComplete?: (context: TransitionContext) => void;
|
|
131
|
+
}
|
|
132
|
+
/** Behavior for users with reduced motion preference */
|
|
133
|
+
type ReduceMotionBehavior = 'respect-system' | 'always-reduce' | 'ignore';
|
|
134
|
+
/**
|
|
135
|
+
* Context passed to transition callbacks
|
|
136
|
+
*/
|
|
137
|
+
interface TransitionContext {
|
|
138
|
+
/** The URL being navigated from */
|
|
139
|
+
from: string;
|
|
140
|
+
/** The URL being navigated to */
|
|
141
|
+
to: string;
|
|
142
|
+
/** Navigation direction */
|
|
143
|
+
direction: TransitionDirection;
|
|
144
|
+
/** The transition being used */
|
|
145
|
+
transition: ResolvedTransition;
|
|
146
|
+
/** Timestamp when transition started */
|
|
147
|
+
startTime: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Configuration for layout-level transitions
|
|
151
|
+
*/
|
|
152
|
+
interface LayoutTransitionConfig {
|
|
153
|
+
/** Default layout transition */
|
|
154
|
+
default?: TransitionPreset | CustomTransition | false;
|
|
155
|
+
/** Whether layout persists during page transitions */
|
|
156
|
+
persist?: boolean;
|
|
157
|
+
/** Shared elements configuration */
|
|
158
|
+
sharedElements?: SharedElementConfig[];
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Shared element transition configuration
|
|
162
|
+
*/
|
|
163
|
+
interface SharedElementConfig {
|
|
164
|
+
/** Unique identifier matching elements across pages */
|
|
165
|
+
name: string;
|
|
166
|
+
/** Animation type for the shared element */
|
|
167
|
+
animation?: 'morph' | 'crossfade' | 'none';
|
|
168
|
+
/** Duration for the shared element animation */
|
|
169
|
+
duration?: number;
|
|
170
|
+
/** Easing for the shared element animation */
|
|
171
|
+
easing?: string;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Props for component-level transitions
|
|
175
|
+
*/
|
|
176
|
+
interface TransitionProps {
|
|
177
|
+
/** Whether the child should be shown */
|
|
178
|
+
show?: boolean;
|
|
179
|
+
/** Transition type */
|
|
180
|
+
type?: TransitionPreset | CustomTransition;
|
|
181
|
+
/** Duration override */
|
|
182
|
+
duration?: number;
|
|
183
|
+
/** Appear on initial mount */
|
|
184
|
+
appear?: boolean;
|
|
185
|
+
/** Mode for enter/leave sequencing */
|
|
186
|
+
mode?: 'in-out' | 'out-in' | 'simultaneous';
|
|
187
|
+
/** Callback when enter transition starts */
|
|
188
|
+
onEnterStart?: () => void;
|
|
189
|
+
/** Callback when enter transition completes */
|
|
190
|
+
onEnterComplete?: () => void;
|
|
191
|
+
/** Callback when leave transition starts */
|
|
192
|
+
onLeaveStart?: () => void;
|
|
193
|
+
/** Callback when leave transition completes */
|
|
194
|
+
onLeaveComplete?: () => void;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Props for transition groups (list animations)
|
|
198
|
+
*/
|
|
199
|
+
interface TransitionGroupProps {
|
|
200
|
+
/** Tag to render as container */
|
|
201
|
+
as?: keyof HTMLElementTagNameMap;
|
|
202
|
+
/** Transition for items */
|
|
203
|
+
type?: TransitionPreset | CustomTransition;
|
|
204
|
+
/** Duration for each item */
|
|
205
|
+
duration?: number;
|
|
206
|
+
/** Stagger delay between items */
|
|
207
|
+
stagger?: number;
|
|
208
|
+
/** Whether to animate on initial render */
|
|
209
|
+
appear?: boolean;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Global transitions configuration (for flight.config.ts)
|
|
213
|
+
*/
|
|
214
|
+
interface TransitionsConfig {
|
|
215
|
+
/** Enable transitions globally */
|
|
216
|
+
enabled?: boolean;
|
|
217
|
+
/** Use native View Transitions API when available */
|
|
218
|
+
viewTransitions?: boolean;
|
|
219
|
+
/** Default page transition */
|
|
220
|
+
pageTransition?: TransitionPreset | CustomTransition | false;
|
|
221
|
+
/** Default layout transition */
|
|
222
|
+
layoutTransition?: TransitionPreset | CustomTransition | false;
|
|
223
|
+
/** Global duration default */
|
|
224
|
+
duration?: number;
|
|
225
|
+
/** Global easing default */
|
|
226
|
+
easing?: string;
|
|
227
|
+
/** Reduced motion behavior */
|
|
228
|
+
reduceMotion?: ReduceMotionBehavior;
|
|
229
|
+
/** Enable cross-document (MPA) transitions */
|
|
230
|
+
crossDocument?: boolean;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Internal transition state
|
|
234
|
+
*/
|
|
235
|
+
interface TransitionState {
|
|
236
|
+
isTransitioning: boolean;
|
|
237
|
+
direction: TransitionDirection;
|
|
238
|
+
phase: 'idle' | 'leaving' | 'entering' | 'complete';
|
|
239
|
+
currentTransition: ResolvedTransition | null;
|
|
240
|
+
fromPath: string | null;
|
|
241
|
+
toPath: string | null;
|
|
242
|
+
}
|
|
243
|
+
/** Listener for transition state changes */
|
|
244
|
+
type TransitionListener = (state: TransitionState) => void;
|
|
245
|
+
/** Extract the resolved transition type from preset or custom */
|
|
246
|
+
type TransitionInput = TransitionPreset | CustomTransition | false;
|
|
247
|
+
/** Navigation options extended with transition support */
|
|
248
|
+
interface NavigateWithTransitionOptions {
|
|
249
|
+
/** Replace current history entry */
|
|
250
|
+
replace?: boolean;
|
|
251
|
+
/** Scroll to top after navigation */
|
|
252
|
+
scroll?: boolean;
|
|
253
|
+
/** State to pass to new route */
|
|
254
|
+
state?: Record<string, unknown>;
|
|
255
|
+
/** Transition to use (overrides page default) */
|
|
256
|
+
transition?: TransitionInput;
|
|
257
|
+
/** Force transition even if globally disabled */
|
|
258
|
+
forceTransition?: boolean;
|
|
259
|
+
}
|
|
260
|
+
/** Link props extended with transition support */
|
|
261
|
+
interface LinkWithTransitionProps {
|
|
262
|
+
/** Target URL */
|
|
263
|
+
href: string;
|
|
264
|
+
/** Transition for this link */
|
|
265
|
+
transition?: TransitionInput;
|
|
266
|
+
/** Prefetch transition assets on hover */
|
|
267
|
+
prefetchTransition?: boolean;
|
|
268
|
+
/** Replace instead of push */
|
|
269
|
+
replace?: boolean;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export type { AnimatableProperty as A, CustomTransition as C, FillMode as F, LayoutTransitionConfig as L, NavigateWithTransitionOptions as N, PageTransitionConfig as P, ResolvedTransition as R, SharedElementConfig as S, TransitionPreset as T, ViewTransition as V, ViewTransitionOptions as a, ViewTransitionResult as b, TransitionDirection as c, TransitionKeyframe as d, ReduceMotionBehavior as e, TransitionContext as f, TransitionProps as g, TransitionGroupProps as h, TransitionsConfig as i, TransitionState as j, TransitionListener as k, TransitionInput as l, LinkWithTransitionProps as m };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { V as ViewTransition, a as ViewTransitionOptions, b as ViewTransitionResult } from './types-BA4L37s4.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @flightdev/transitions - View Transition API Wrapper
|
|
5
|
+
*
|
|
6
|
+
* Provides a cross-browser wrapper for the View Transitions API with
|
|
7
|
+
* automatic fallback for unsupported browsers.
|
|
8
|
+
*
|
|
9
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Check if the browser supports the View Transitions API
|
|
14
|
+
* @returns true if startViewTransition is available
|
|
15
|
+
*/
|
|
16
|
+
declare function isViewTransitionSupported(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Check if cross-document view transitions are supported
|
|
19
|
+
* @returns true if @view-transition CSS at-rule is supported
|
|
20
|
+
*/
|
|
21
|
+
declare function isCrossDocumentTransitionSupported(): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Start a view transition with automatic fallback
|
|
24
|
+
*
|
|
25
|
+
* Uses the native View Transitions API when available, otherwise
|
|
26
|
+
* provides a compatible fallback that executes the callback immediately.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const transition = startViewTransition(() => {
|
|
31
|
+
* // Update the DOM
|
|
32
|
+
* document.getElementById('content').innerHTML = newContent;
|
|
33
|
+
* });
|
|
34
|
+
*
|
|
35
|
+
* // Wait for animation to be ready
|
|
36
|
+
* await transition.ready;
|
|
37
|
+
*
|
|
38
|
+
* // Wait for animation to complete
|
|
39
|
+
* await transition.finished;
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare function startViewTransition(updateCallback: () => void | Promise<void>, options?: ViewTransitionOptions): ViewTransitionResult;
|
|
43
|
+
/**
|
|
44
|
+
* Options for cross-document (MPA) transitions
|
|
45
|
+
*/
|
|
46
|
+
interface CrossDocumentTransitionOptions {
|
|
47
|
+
/** Enable transitions for same-origin navigations */
|
|
48
|
+
enabled?: boolean;
|
|
49
|
+
/** Types to apply to the transition */
|
|
50
|
+
types?: string[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Enable cross-document view transitions for MPA navigations
|
|
54
|
+
*
|
|
55
|
+
* This injects the necessary CSS and sets up event listeners for
|
|
56
|
+
* pagereveal and pageswap events.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```typescript
|
|
60
|
+
* enableCrossDocumentTransitions({
|
|
61
|
+
* enabled: true,
|
|
62
|
+
* types: ['slide-left']
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
declare function enableCrossDocumentTransitions(options?: CrossDocumentTransitionOptions): () => void;
|
|
67
|
+
interface PageRevealEvent extends Event {
|
|
68
|
+
readonly viewTransition: ViewTransition | null;
|
|
69
|
+
}
|
|
70
|
+
interface PageSwapEvent extends Event {
|
|
71
|
+
readonly viewTransition: ViewTransition | null;
|
|
72
|
+
readonly activation: NavigationActivation | null;
|
|
73
|
+
}
|
|
74
|
+
interface NavigationActivation {
|
|
75
|
+
readonly entry: NavigationHistoryEntry;
|
|
76
|
+
readonly from: NavigationHistoryEntry | null;
|
|
77
|
+
readonly navigationType: NavigationHistoryEntryType;
|
|
78
|
+
}
|
|
79
|
+
interface NavigationHistoryEntry {
|
|
80
|
+
readonly id: string;
|
|
81
|
+
readonly index: number;
|
|
82
|
+
readonly key: string;
|
|
83
|
+
readonly sameDocument: boolean;
|
|
84
|
+
readonly url: string | null;
|
|
85
|
+
}
|
|
86
|
+
type NavigationHistoryEntryType = 'push' | 'replace' | 'reload' | 'traverse';
|
|
87
|
+
declare global {
|
|
88
|
+
interface Document {
|
|
89
|
+
startViewTransition(callback: () => void | Promise<void>): ViewTransition;
|
|
90
|
+
}
|
|
91
|
+
interface WindowEventMap {
|
|
92
|
+
pagereveal: PageRevealEvent;
|
|
93
|
+
pageswap: PageSwapEvent;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { type CrossDocumentTransitionOptions as C, isCrossDocumentTransitionSupported as a, enableCrossDocumentTransitions as e, isViewTransitionSupported as i, startViewTransition as s };
|
package/package.json
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flightdev/transitions",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Smooth page, layout, and component transitions for Flight Framework",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"flight",
|
|
7
|
+
"transitions",
|
|
8
|
+
"view-transitions",
|
|
9
|
+
"animation",
|
|
10
|
+
"page-transition",
|
|
11
|
+
"layout-transition"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "Flight Contributors",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./core": {
|
|
22
|
+
"types": "./dist/core/index.d.ts",
|
|
23
|
+
"import": "./dist/core/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./page": {
|
|
26
|
+
"types": "./dist/page/index.d.ts",
|
|
27
|
+
"import": "./dist/page/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./layout": {
|
|
30
|
+
"types": "./dist/layout/index.d.ts",
|
|
31
|
+
"import": "./dist/layout/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./component": {
|
|
34
|
+
"types": "./dist/component/index.d.ts",
|
|
35
|
+
"import": "./dist/component/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./presets": {
|
|
38
|
+
"types": "./dist/presets/index.d.ts",
|
|
39
|
+
"import": "./dist/presets/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./css": "./dist/css/transitions.css",
|
|
42
|
+
"./css/view-transitions": "./dist/css/view-transitions.css",
|
|
43
|
+
"./react": {
|
|
44
|
+
"types": "./dist/adapters/react/index.d.ts",
|
|
45
|
+
"import": "./dist/adapters/react/index.js"
|
|
46
|
+
},
|
|
47
|
+
"./vue": {
|
|
48
|
+
"types": "./dist/adapters/vue/index.d.ts",
|
|
49
|
+
"import": "./dist/adapters/vue/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./svelte": {
|
|
52
|
+
"types": "./dist/adapters/svelte/index.d.ts",
|
|
53
|
+
"import": "./dist/adapters/svelte/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./solid": {
|
|
56
|
+
"types": "./dist/adapters/solid/index.d.ts",
|
|
57
|
+
"import": "./dist/adapters/solid/index.js"
|
|
58
|
+
},
|
|
59
|
+
"./router": {
|
|
60
|
+
"types": "./dist/router/index.d.ts",
|
|
61
|
+
"import": "./dist/router/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./config": {
|
|
64
|
+
"types": "./dist/config/index.d.ts",
|
|
65
|
+
"import": "./dist/config/index.js"
|
|
66
|
+
},
|
|
67
|
+
"./qwik": {
|
|
68
|
+
"types": "./dist/adapters/qwik/index.d.ts",
|
|
69
|
+
"import": "./dist/adapters/qwik/index.js"
|
|
70
|
+
},
|
|
71
|
+
"./angular": {
|
|
72
|
+
"types": "./dist/adapters/angular/index.d.ts",
|
|
73
|
+
"import": "./dist/adapters/angular/index.js"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"main": "./dist/index.js",
|
|
77
|
+
"types": "./dist/index.d.ts",
|
|
78
|
+
"files": [
|
|
79
|
+
"dist"
|
|
80
|
+
],
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@angular/animations": "^21.0.8",
|
|
83
|
+
"@angular/common": "^21.0.8",
|
|
84
|
+
"@angular/core": "^21.0.8",
|
|
85
|
+
"@angular/platform-browser": "^21.0.8",
|
|
86
|
+
"@angular/router": "^21.0.8",
|
|
87
|
+
"@builder.io/qwik": "^1.18.0",
|
|
88
|
+
"@types/node": "^22.0.0",
|
|
89
|
+
"@types/react": "^19.0.0",
|
|
90
|
+
"rimraf": "^6.0.0",
|
|
91
|
+
"tsup": "^8.0.0",
|
|
92
|
+
"typescript": "^5.7.0",
|
|
93
|
+
"vitest": "^2.0.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependencies": {
|
|
96
|
+
"@angular/animations": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
97
|
+
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
98
|
+
"@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
99
|
+
"@angular/platform-browser": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
100
|
+
"@angular/router": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
101
|
+
"@builder.io/qwik": "^1.0.0 || ^2.0.0",
|
|
102
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
103
|
+
"solid-js": "^1.0.0",
|
|
104
|
+
"svelte": "^4.0.0 || ^5.0.0",
|
|
105
|
+
"vue": "^3.0.0"
|
|
106
|
+
},
|
|
107
|
+
"peerDependenciesMeta": {
|
|
108
|
+
"react": {
|
|
109
|
+
"optional": true
|
|
110
|
+
},
|
|
111
|
+
"vue": {
|
|
112
|
+
"optional": true
|
|
113
|
+
},
|
|
114
|
+
"svelte": {
|
|
115
|
+
"optional": true
|
|
116
|
+
},
|
|
117
|
+
"solid-js": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
120
|
+
"@builder.io/qwik": {
|
|
121
|
+
"optional": true
|
|
122
|
+
},
|
|
123
|
+
"@angular/core": {
|
|
124
|
+
"optional": true
|
|
125
|
+
},
|
|
126
|
+
"@angular/common": {
|
|
127
|
+
"optional": true
|
|
128
|
+
},
|
|
129
|
+
"@angular/platform-browser": {
|
|
130
|
+
"optional": true
|
|
131
|
+
},
|
|
132
|
+
"@angular/animations": {
|
|
133
|
+
"optional": true
|
|
134
|
+
},
|
|
135
|
+
"@angular/router": {
|
|
136
|
+
"optional": true
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"scripts": {
|
|
140
|
+
"build": "tsup",
|
|
141
|
+
"dev": "tsup --watch",
|
|
142
|
+
"test": "vitest run",
|
|
143
|
+
"test:watch": "vitest",
|
|
144
|
+
"typecheck": "tsc --noEmit",
|
|
145
|
+
"lint": "eslint src/",
|
|
146
|
+
"clean": "rimraf dist"
|
|
147
|
+
}
|
|
148
|
+
}
|