@ssgoi/solid 0.0.1
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/context.d.ts +3 -0
- package/dist/core/dist/types.cjs +1 -0
- package/dist/core/dist/types.js +77 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +19 -0
- package/dist/presets/index.cjs +1 -0
- package/dist/presets/index.d.ts +1 -0
- package/dist/presets/index.js +1 -0
- package/dist/solid/src/lib/context.cjs +1 -0
- package/dist/solid/src/lib/context.js +11 -0
- package/dist/solid/src/lib/ssgoi-transition.cjs +1 -0
- package/dist/solid/src/lib/ssgoi-transition.js +27 -0
- package/dist/solid/src/lib/ssgoi.cjs +1 -0
- package/dist/solid/src/lib/ssgoi.js +22 -0
- package/dist/solid/src/lib/transition-scope.cjs +1 -0
- package/dist/solid/src/lib/transition-scope.js +16 -0
- package/dist/solid/src/lib/transition.cjs +1 -0
- package/dist/solid/src/lib/transition.js +5 -0
- package/dist/ssgoi-transition.d.ts +9 -0
- package/dist/ssgoi.d.ts +8 -0
- package/dist/transition-scope.d.ts +28 -0
- package/dist/transition.d.ts +22 -0
- package/dist/transitions/index.cjs +1 -0
- package/dist/transitions/index.d.ts +1 -0
- package/dist/transitions/index.js +1 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +11 -0
- package/dist/view-transitions/index.cjs +1 -0
- package/dist/view-transitions/index.d.ts +1 -0
- package/dist/view-transitions/index.js +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function h(e){return("tick"in e||"css"in e)&&!("springs"in e)}function s(e){return"springs"in e}function o(e){return"css"in e&&typeof e.css=="function"}function a(e){return"tick"in e&&typeof e.tick=="function"}function c(e){if(o(e)&&a(e))throw new Error("SingleSpringConfig cannot have both 'tick' and 'css' defined. Use one or the other.")}function l(e){if(e.tick&&e.css)throw new Error("SpringItem cannot have both 'tick' and 'css' defined. Use one or the other.")}async function m(e){const n=await e;return s(n)?(n.springs.forEach(l),n):(c(n),{prepare:n.prepare,wait:n.wait,onStart:n.onStart,onEnd:n.onEnd,springs:[{spring:n.spring,tick:n.tick,css:n.css}],schedule:"parallel"})}function S(e,n){const u=e.schedule??"parallel",f=e.springs.map(r=>{let t;switch(u){case"parallel":t=0;break;case"sequential":t=1;break;case"stagger":t=Math.max(0,Math.min(1,r.offset??0));break;default:t=0}const{css:i,offset:w,...g}=r,d=i?typeof i=="function"?n?{element:n,style:i}:void 0:{element:i.element,style:i.style}:void 0;return{...g,css:d,normalizedOffset:t}}),{schedule:k,...p}=e;return{...p,springs:f}}exports.isCssAnimation=o;exports.isMultiSpring=s;exports.isSingleSpring=h;exports.isTickAnimation=a;exports.normalizeMultiSpringSchedule=S;exports.normalizeToMultiSpring=m;exports.validateAnimationMode=c;exports.validateSpringItem=l;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
function k(n) {
|
|
2
|
+
return ("tick" in n || "css" in n) && !("springs" in n);
|
|
3
|
+
}
|
|
4
|
+
function f(n) {
|
|
5
|
+
return "springs" in n;
|
|
6
|
+
}
|
|
7
|
+
function p(n) {
|
|
8
|
+
return "css" in n && typeof n.css == "function";
|
|
9
|
+
}
|
|
10
|
+
function u(n) {
|
|
11
|
+
return "tick" in n && typeof n.tick == "function";
|
|
12
|
+
}
|
|
13
|
+
function g(n) {
|
|
14
|
+
if (p(n) && u(n))
|
|
15
|
+
throw new Error(
|
|
16
|
+
"SingleSpringConfig cannot have both 'tick' and 'css' defined. Use one or the other."
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function d(n) {
|
|
20
|
+
if (n.tick && n.css)
|
|
21
|
+
throw new Error(
|
|
22
|
+
"SpringItem cannot have both 'tick' and 'css' defined. Use one or the other."
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
async function S(n) {
|
|
26
|
+
const e = await n;
|
|
27
|
+
return f(e) ? (e.springs.forEach(d), e) : (g(e), {
|
|
28
|
+
prepare: e.prepare,
|
|
29
|
+
wait: e.wait,
|
|
30
|
+
onStart: e.onStart,
|
|
31
|
+
onEnd: e.onEnd,
|
|
32
|
+
springs: [
|
|
33
|
+
{
|
|
34
|
+
spring: e.spring,
|
|
35
|
+
tick: e.tick,
|
|
36
|
+
css: e.css
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
schedule: "parallel"
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function w(n, e) {
|
|
43
|
+
const r = n.schedule ?? "parallel", a = n.springs.map(
|
|
44
|
+
(s) => {
|
|
45
|
+
let t;
|
|
46
|
+
switch (r) {
|
|
47
|
+
case "parallel":
|
|
48
|
+
t = 0;
|
|
49
|
+
break;
|
|
50
|
+
case "sequential":
|
|
51
|
+
t = 1;
|
|
52
|
+
break;
|
|
53
|
+
case "stagger":
|
|
54
|
+
t = Math.max(0, Math.min(1, s.offset ?? 0));
|
|
55
|
+
break;
|
|
56
|
+
default:
|
|
57
|
+
t = 0;
|
|
58
|
+
}
|
|
59
|
+
const { css: i, offset: m, ...c } = s, l = i ? typeof i == "function" ? e ? { element: e, style: i } : void 0 : { element: i.element, style: i.style } : void 0;
|
|
60
|
+
return { ...c, css: l, normalizedOffset: t };
|
|
61
|
+
}
|
|
62
|
+
), { schedule: h, ...o } = n;
|
|
63
|
+
return {
|
|
64
|
+
...o,
|
|
65
|
+
springs: a
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
p as isCssAnimation,
|
|
70
|
+
f as isMultiSpring,
|
|
71
|
+
k as isSingleSpring,
|
|
72
|
+
u as isTickAnimation,
|
|
73
|
+
w as normalizeMultiSpringSchedule,
|
|
74
|
+
S as normalizeToMultiSpring,
|
|
75
|
+
g as validateAnimationMode,
|
|
76
|
+
d as validateSpringItem
|
|
77
|
+
};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./solid/src/lib/transition.cjs"),i=require("./core/dist/types.cjs"),t=require("./solid/src/lib/ssgoi.cjs"),o=require("./solid/src/lib/ssgoi-transition.cjs"),e=require("./solid/src/lib/transition-scope.cjs");exports.transition=n.transition;exports.isCssAnimation=i.isCssAnimation;exports.isMultiSpring=i.isMultiSpring;exports.isSingleSpring=i.isSingleSpring;exports.isTickAnimation=i.isTickAnimation;exports.normalizeMultiSpringSchedule=i.normalizeMultiSpringSchedule;exports.normalizeToMultiSpring=i.normalizeToMultiSpring;exports.validateAnimationMode=i.validateAnimationMode;exports.validateSpringItem=i.validateSpringItem;exports.Ssgoi=t.Ssgoi;exports.SsgoiTransition=o.SsgoiTransition;exports.TransitionScope=e.TransitionScope;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { transition as n } from "./solid/src/lib/transition.js";
|
|
2
|
+
import { isCssAnimation as t, isMultiSpring as e, isSingleSpring as a, isTickAnimation as m, normalizeMultiSpringSchedule as p, normalizeToMultiSpring as s, validateAnimationMode as S, validateSpringItem as l } from "./core/dist/types.js";
|
|
3
|
+
import { Ssgoi as f } from "./solid/src/lib/ssgoi.js";
|
|
4
|
+
import { SsgoiTransition as d } from "./solid/src/lib/ssgoi-transition.js";
|
|
5
|
+
import { TransitionScope as M } from "./solid/src/lib/transition-scope.js";
|
|
6
|
+
export {
|
|
7
|
+
f as Ssgoi,
|
|
8
|
+
d as SsgoiTransition,
|
|
9
|
+
M as TransitionScope,
|
|
10
|
+
t as isCssAnimation,
|
|
11
|
+
e as isMultiSpring,
|
|
12
|
+
a as isSingleSpring,
|
|
13
|
+
m as isTickAnimation,
|
|
14
|
+
p as normalizeMultiSpringSchedule,
|
|
15
|
+
s as normalizeToMultiSpring,
|
|
16
|
+
n as transition,
|
|
17
|
+
S as validateAnimationMode,
|
|
18
|
+
l as validateSpringItem
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ssgoi/core/presets");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ssgoi/core/presets';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ssgoi/core/presets";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("solid-js"),t=o.createContext(null),s=t.Provider,r=()=>{const e=o.useContext(t);if(!e)throw new Error("useSsgoi must be used within SsgoiProvider");return e};exports.SsgoiProvider=s;exports.useSsgoi=r;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext as e, useContext as r } from "solid-js";
|
|
2
|
+
const t = e(null), n = t.Provider, i = () => {
|
|
3
|
+
const o = r(t);
|
|
4
|
+
if (!o)
|
|
5
|
+
throw new Error("useSsgoi must be used within SsgoiProvider");
|
|
6
|
+
return o;
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
n as SsgoiProvider,
|
|
10
|
+
i as useSsgoi
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("solid-js/web"),a=require("solid-js"),l=require("./transition.cjs"),u=require("./context.cjs"),d=r=>{const[t,s]=a.splitProps(r,["children","id","as","class"]),i=u.useSsgoi(),o=t.as||"div";return e.createComponent(e.Dynamic,e.mergeProps({component:o,ref(c){var n=l.transition(i(t.id));typeof n=="function"&&n(c)},get"data-ssgoi-transition"(){return t.id},get class(){return t.class}},s,{get children(){return t.children}}))};exports.SsgoiTransition=d;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createComponent as a, Dynamic as c, mergeProps as m } from "solid-js/web";
|
|
2
|
+
import { splitProps as p } from "solid-js";
|
|
3
|
+
import { transition as l } from "./transition.js";
|
|
4
|
+
import { useSsgoi as d } from "./context.js";
|
|
5
|
+
const v = (o) => {
|
|
6
|
+
const [r, n] = p(o, ["children", "id", "as", "class"]), i = d(), s = r.as || "div";
|
|
7
|
+
return a(c, m({
|
|
8
|
+
component: s,
|
|
9
|
+
ref(e) {
|
|
10
|
+
var t = l(i(r.id));
|
|
11
|
+
typeof t == "function" && t(e);
|
|
12
|
+
},
|
|
13
|
+
get "data-ssgoi-transition"() {
|
|
14
|
+
return r.id;
|
|
15
|
+
},
|
|
16
|
+
get class() {
|
|
17
|
+
return r.class;
|
|
18
|
+
}
|
|
19
|
+
}, n, {
|
|
20
|
+
get children() {
|
|
21
|
+
return r.children;
|
|
22
|
+
}
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
v as SsgoiTransition
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("solid-js/web"),o=require("solid-js"),n=require("./context.cjs"),i=require("@ssgoi/core"),c=e=>{const t=o.createMemo(()=>i.createSggoiTransitionContext(e.config,{outFirst:!1}));return r.createComponent(n.SsgoiProvider,{get value(){return t()},get children(){return e.children}})};exports.Ssgoi=c;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createComponent as e } from "solid-js/web";
|
|
2
|
+
import { createMemo as o } from "solid-js";
|
|
3
|
+
import { SsgoiProvider as i } from "./context.js";
|
|
4
|
+
import { createSggoiTransitionContext as n } from "@ssgoi/core";
|
|
5
|
+
const f = (r) => {
|
|
6
|
+
const t = o(() => n(r.config, {
|
|
7
|
+
// Solid uses MutationObserver for unmount detection,
|
|
8
|
+
// so OUT and IN can arrive in any order
|
|
9
|
+
outFirst: !1
|
|
10
|
+
}));
|
|
11
|
+
return e(i, {
|
|
12
|
+
get value() {
|
|
13
|
+
return t();
|
|
14
|
+
},
|
|
15
|
+
get children() {
|
|
16
|
+
return r.children;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
f as Ssgoi
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("solid-js/web"),i=require("solid-js"),c=require("@ssgoi/core");var s=r.template("<div style=display:contents>");function a(o){let t;return i.onMount(()=>{c.createTransitionScope()(t)}),(()=>{var e=s(),n=t;return typeof n=="function"?r.use(n,e):t=e,r.insert(e,()=>o.children),e})()}exports.TransitionScope=a;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { template as o, use as i, insert as p } from "solid-js/web";
|
|
2
|
+
import { onMount as a } from "solid-js";
|
|
3
|
+
import { createTransitionScope as c } from "@ssgoi/core";
|
|
4
|
+
var m = /* @__PURE__ */ o("<div style=display:contents>");
|
|
5
|
+
function u(n) {
|
|
6
|
+
let r;
|
|
7
|
+
return a(() => {
|
|
8
|
+
c()(r);
|
|
9
|
+
}), (() => {
|
|
10
|
+
var t = m(), e = r;
|
|
11
|
+
return typeof e == "function" ? i(e, t) : r = t, p(t, () => n.children), t;
|
|
12
|
+
})();
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
u as TransitionScope
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@ssgoi/core"),e=t=>r.transition(t,"auto");exports.transition=e;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { JSX, ValidComponent } from 'solid-js';
|
|
2
|
+
type SsgoiTransitionProps<T extends ValidComponent = "div"> = {
|
|
3
|
+
children: JSX.Element;
|
|
4
|
+
id: string;
|
|
5
|
+
as?: T;
|
|
6
|
+
class?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const SsgoiTransition: <T extends ValidComponent = "div">(props: SsgoiTransitionProps<T>) => JSX.Element;
|
|
9
|
+
export {};
|
package/dist/ssgoi.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
type TransitionScopeProps = {
|
|
3
|
+
children: JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* TransitionScope creates a boundary for local-scoped transitions.
|
|
7
|
+
*
|
|
8
|
+
* Child elements with `scope: 'local'` will:
|
|
9
|
+
* - Skip IN animation when mounted simultaneously with the scope
|
|
10
|
+
* - Skip OUT animation when unmounted simultaneously with the scope
|
|
11
|
+
*
|
|
12
|
+
* This is useful for:
|
|
13
|
+
* - Page transitions where child elements shouldn't animate individually
|
|
14
|
+
* - Modal/dialog content that appears/disappears with the container
|
|
15
|
+
* - List items that shouldn't animate when the entire list mounts/unmounts
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <TransitionScope>
|
|
20
|
+
* <div ref={transition(fadeIn(), { scope: 'local' })}>
|
|
21
|
+
* This will only animate when added/removed independently,
|
|
22
|
+
* not when the entire scope mounts/unmounts.
|
|
23
|
+
* </div>
|
|
24
|
+
* </TransitionScope>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare function TransitionScope(props: TransitionScopeProps): JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Transition, TransitionKey, TransitionScope } from '@ssgoi/core';
|
|
2
|
+
type TransitionOptions = Transition<undefined> & {
|
|
3
|
+
key?: TransitionKey;
|
|
4
|
+
scope?: TransitionScope;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Solid ref callback for element transitions
|
|
8
|
+
*
|
|
9
|
+
* OUT transition is automatically triggered by MutationObserver
|
|
10
|
+
* when the element is removed from the DOM
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* <div ref={transition({
|
|
15
|
+
* key: 'fade',
|
|
16
|
+
* in: (el) => ({ tick: (p) => el.style.opacity = String(p) }),
|
|
17
|
+
* out: (el) => ({ tick: (p) => el.style.opacity = String(p) }),
|
|
18
|
+
* })} />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare const transition: (options: TransitionOptions) => import('@ssgoi/core').RefCallback;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ssgoi/core/transitions");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ssgoi/core/transitions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ssgoi/core/transitions";
|
package/dist/types.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./core/dist/types.cjs");exports.isCssAnimation=i.isCssAnimation;exports.isMultiSpring=i.isMultiSpring;exports.isSingleSpring=i.isSingleSpring;exports.isTickAnimation=i.isTickAnimation;exports.normalizeMultiSpringSchedule=i.normalizeMultiSpringSchedule;exports.normalizeToMultiSpring=i.normalizeToMultiSpring;exports.validateAnimationMode=i.validateAnimationMode;exports.validateSpringItem=i.validateSpringItem;
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ssgoi/core/types';
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { isCssAnimation as e, isMultiSpring as t, isSingleSpring as a, isTickAnimation as l, normalizeMultiSpringSchedule as o, normalizeToMultiSpring as r, validateAnimationMode as m, validateSpringItem as S } from "./core/dist/types.js";
|
|
2
|
+
export {
|
|
3
|
+
e as isCssAnimation,
|
|
4
|
+
t as isMultiSpring,
|
|
5
|
+
a as isSingleSpring,
|
|
6
|
+
l as isTickAnimation,
|
|
7
|
+
o as normalizeMultiSpringSchedule,
|
|
8
|
+
r as normalizeToMultiSpring,
|
|
9
|
+
m as validateAnimationMode,
|
|
10
|
+
S as validateSpringItem
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@ssgoi/core/view-transitions");Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@ssgoi/core/view-transitions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ssgoi/core/view-transitions";
|
package/package.json
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ssgoi/solid",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Solid.js bindings for SSGOI - Native app-like page transitions for Solid applications",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"!dist/**/*.test.*",
|
|
10
|
+
"!dist/**/*.spec.*"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
|
+
"require": "./dist/index.cjs",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./transitions": {
|
|
23
|
+
"types": "./dist/transitions/index.d.ts",
|
|
24
|
+
"import": "./dist/transitions/index.js",
|
|
25
|
+
"require": "./dist/transitions/index.cjs",
|
|
26
|
+
"default": "./dist/transitions/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./view-transitions": {
|
|
29
|
+
"types": "./dist/view-transitions/index.d.ts",
|
|
30
|
+
"import": "./dist/view-transitions/index.js",
|
|
31
|
+
"require": "./dist/view-transitions/index.cjs",
|
|
32
|
+
"default": "./dist/view-transitions/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./types": {
|
|
35
|
+
"types": "./dist/types.d.ts",
|
|
36
|
+
"import": "./dist/types.js",
|
|
37
|
+
"require": "./dist/types.cjs",
|
|
38
|
+
"default": "./dist/types.js"
|
|
39
|
+
},
|
|
40
|
+
"./presets": {
|
|
41
|
+
"types": "./dist/presets/index.d.ts",
|
|
42
|
+
"import": "./dist/presets/index.js",
|
|
43
|
+
"require": "./dist/presets/index.cjs",
|
|
44
|
+
"default": "./dist/presets/index.js"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@ssgoi/core": "^3.2.2"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node": "^24.10.1",
|
|
52
|
+
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
53
|
+
"solid-js": "^1.9.10",
|
|
54
|
+
"typescript": "~5.9.3",
|
|
55
|
+
"vite": "^7.2.4",
|
|
56
|
+
"vite-plugin-dts": "^4.5.4",
|
|
57
|
+
"vite-plugin-solid": "^2.11.10"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"solid-js": "^1.0.0"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"solid",
|
|
64
|
+
"solidjs",
|
|
65
|
+
"page-transition",
|
|
66
|
+
"animation",
|
|
67
|
+
"ssgoi",
|
|
68
|
+
"spring-physics"
|
|
69
|
+
],
|
|
70
|
+
"author": "MeurSyphus <tmdeoans@snu.ac.kr>",
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "git+https://github.com/meursyphus/ssgoi.git",
|
|
75
|
+
"directory": "packages/solid"
|
|
76
|
+
},
|
|
77
|
+
"homepage": "https://ssgoi.dev",
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/meursyphus/ssgoi/issues"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public"
|
|
83
|
+
},
|
|
84
|
+
"engines": {
|
|
85
|
+
"node": ">=18.0.0"
|
|
86
|
+
},
|
|
87
|
+
"scripts": {
|
|
88
|
+
"dev": "vite build --watch",
|
|
89
|
+
"build": "tsc -b && vite build",
|
|
90
|
+
"watch": "vite build --watch",
|
|
91
|
+
"lint": "eslint .",
|
|
92
|
+
"preview": "vite preview",
|
|
93
|
+
"package": "vite build"
|
|
94
|
+
}
|
|
95
|
+
}
|