@atom.io/spa 0.0.5 → 0.0.7
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 +381 -10
- package/README.mdx +101 -5
- package/dist/astro-application.d.ts +1 -1
- package/dist/astro-client.d.ts +1 -1
- package/dist/astro-client.js +2 -2
- package/dist/astro-request-DRKvDjsO.js.map +1 -1
- package/dist/astro-resumability-client.d.ts +1 -1
- package/dist/astro-server.js +1 -1
- package/dist/{astro-shared-DHIpjNIG.d.ts → astro-shared-DZp1x8RQ.d.ts} +2 -2
- package/dist/{astro-shared-DHIpjNIG.d.ts.map → astro-shared-DZp1x8RQ.d.ts.map} +1 -1
- package/dist/astro.d.ts +1 -1
- package/dist/astro.js +1 -1
- package/dist/{capabilities-BCtBG-ni.d.ts → capabilities-DNcnGRv_.d.ts} +11 -5
- package/dist/capabilities-DNcnGRv_.d.ts.map +1 -0
- package/dist/{capabilities-BkQ2i0vV.js → capabilities-nOIitQ-_.js} +6 -4
- package/dist/capabilities-nOIitQ-_.js.map +1 -0
- package/dist/client.min.js +1 -1
- package/dist/{core-DjFJ0aIJ.js → core-B4rJ0xdc.js} +22 -12
- package/dist/core-B4rJ0xdc.js.map +1 -0
- package/dist/development/astro-client.js +2 -2
- package/dist/development/astro-request-DRKvDjsO.js.map +1 -1
- package/dist/development/astro-server.js +1 -1
- package/dist/development/astro.js +1 -1
- package/dist/development/{capabilities-BkQ2i0vV.js → capabilities-nOIitQ-_.js} +6 -4
- package/dist/development/capabilities-nOIitQ-_.js.map +1 -0
- package/dist/development/{core-DxPiKryn.js → core-BHA7I1nf.js} +24 -14
- package/dist/development/core-BHA7I1nf.js.map +1 -0
- package/dist/development/{dom-BytVV6Rp.js → dom-DQ0M3rLL.js} +11 -10
- package/dist/development/{dom-BytVV6Rp.js.map → dom-DQ0M3rLL.js.map} +1 -1
- package/dist/development/floating.js +148 -0
- package/dist/development/floating.js.map +1 -0
- package/dist/development/index.js +4 -4
- package/dist/development/jsx-runtime.js +2 -2
- package/dist/development/jsx-runtime.js.map +1 -1
- package/dist/development/konva.js +2 -2
- package/dist/development/motion.js +419 -25
- package/dist/development/motion.js.map +1 -1
- package/dist/development/renderer.js +2 -2
- package/dist/development/{server-renderer-CUQXh9oF.js → server-renderer-DCLoMdOX.js} +3 -3
- package/dist/development/{server-renderer-CUQXh9oF.js.map → server-renderer-DCLoMdOX.js.map} +1 -1
- package/dist/development/server.js +1 -1
- package/dist/{src-DWIqXCiz.js → development/src-DoQgCX-O.js} +2 -2
- package/dist/development/{src-WSHJxR9b.js.map → src-DoQgCX-O.js.map} +1 -1
- package/dist/development/three.js +87 -31
- package/dist/development/three.js.map +1 -1
- package/dist/development/{vite-CSHoxzXU.js → vite-Bmyb6P5w.js} +32 -7
- package/dist/development/vite-Bmyb6P5w.js.map +1 -0
- package/dist/development/vite.js +1 -1
- package/dist/{dom-B5OxgHkr.js → dom-D8g3roX9.js} +11 -10
- package/dist/{dom-B5OxgHkr.js.map → dom-D8g3roX9.js.map} +1 -1
- package/dist/floating.d.ts +16 -0
- package/dist/floating.d.ts.map +1 -0
- package/dist/floating.js +148 -0
- package/dist/floating.js.map +1 -0
- package/dist/{index-DufwkB6W.d.ts → index-BFnXIfOj.d.ts} +3 -3
- package/dist/{index-DufwkB6W.d.ts.map → index-BFnXIfOj.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/{jsx-runtime-DMDVr7A5.d.ts → jsx-runtime-DQnpyT_g.d.ts} +2 -2
- package/dist/{jsx-runtime-DMDVr7A5.d.ts.map → jsx-runtime-DQnpyT_g.d.ts.map} +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +2 -2
- package/dist/jsx-runtime.js.map +1 -1
- package/dist/konva.d.ts +3 -3
- package/dist/konva.js +2 -2
- package/dist/motion.d.ts +39 -16
- package/dist/motion.d.ts.map +1 -1
- package/dist/motion.js +419 -25
- package/dist/motion.js.map +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +2 -2
- package/dist/{server-renderer-DcU55e6s.js → server-renderer-D0rsFL_-.js} +3 -3
- package/dist/{server-renderer-DcU55e6s.js.map → server-renderer-D0rsFL_-.js.map} +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +1 -1
- package/dist/size.json +12 -12
- package/dist/{development/src-WSHJxR9b.js → src-Bme1kz2b.js} +2 -2
- package/dist/{src-DWIqXCiz.js.map → src-Bme1kz2b.js.map} +1 -1
- package/dist/three.d.ts +27 -8
- package/dist/three.d.ts.map +1 -1
- package/dist/three.js +87 -31
- package/dist/three.js.map +1 -1
- package/dist/{vite-CSHoxzXU.js → vite-Bmyb6P5w.js} +32 -7
- package/dist/vite-Bmyb6P5w.js.map +1 -0
- package/dist/vite.js +1 -1
- package/package.json +18 -5
- package/src/astro-request.ts +1 -1
- package/src/capabilities.ts +11 -4
- package/src/compiler.ts +28 -9
- package/src/core.ts +26 -12
- package/src/dom.ts +12 -11
- package/src/floating.ts +234 -0
- package/src/index.ts +1 -0
- package/src/jsx-runtime.ts +4 -1
- package/src/motion-layout.ts +363 -0
- package/src/motion-transition.ts +92 -0
- package/src/motion-tween.ts +19 -2
- package/src/motion.ts +215 -77
- package/src/presence.ts +1 -1
- package/src/three-events.ts +14 -10
- package/src/three.ts +134 -39
- package/dist/capabilities-BCtBG-ni.d.ts.map +0 -1
- package/dist/capabilities-BkQ2i0vV.js.map +0 -1
- package/dist/core-DjFJ0aIJ.js.map +0 -1
- package/dist/development/capabilities-BkQ2i0vV.js.map +0 -1
- package/dist/development/core-DxPiKryn.js.map +0 -1
- package/dist/development/vite-CSHoxzXU.js.map +0 -1
- package/dist/vite-CSHoxzXU.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Children, i as Accessor, s as RootOptions } from "./capabilities-
|
|
2
|
-
import "./jsx-runtime-
|
|
1
|
+
import { a as Children, i as Accessor, s as RootOptions } from "./capabilities-DNcnGRv_.js";
|
|
2
|
+
import "./jsx-runtime-DQnpyT_g.js";
|
|
3
3
|
import { Loadable, ReadableFamilyToken, ReadableToken, ViewOf } from "atom.io";
|
|
4
4
|
import { Canonical } from "atom.io/foundations/canonical";
|
|
5
5
|
interface SpaRoot {
|
|
@@ -21,4 +21,4 @@ declare function useLoadable<T, K extends Canonical, E>(token: ReadableFamilyTok
|
|
|
21
21
|
error?: E;
|
|
22
22
|
}>;
|
|
23
23
|
export { render as a, hydrate as i, useLoadable as n, SpaRoot as r, LoadableValue as t };
|
|
24
|
-
//# sourceMappingURL=index-
|
|
24
|
+
//# sourceMappingURL=index-BFnXIfOj.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-BFnXIfOj.d.ts","names":[],"sources":["../src/dom.ts","../src/use-loadable.ts"],"mappings":";;;;UA6XiB;EAChB;EACA;;iBAyDe,OACf,aAAa,UACb,MAAM,SACN,UAAS,cACP;iBAGa,QACf,aAAa,UACb,MAAM,SACN,UAAS,cACP;KCxbS,cAAc;EAAO;EAAkB,OAAO;;iBAE1C,YAAY,GAAG,GAC9B,OAAO,cAAc,SAAS,SAAS,KACrC,qBAAqB,cAAc,OAAO,IAAI;iBACjC,YAAY,GAAG,UAAU,WAAW,GACnD,OAAO,oBAAoB,SAAS,IAAI,GAAG,IAC3C,KAAK,QAAQ,KACX,qBAAqB,cAAc,OAAO,IAAI;iBACjC,YAAY,GAAG,GAC9B,OAAO,cAAc,SAAS,SAAS,IACvC,UAAU,QAAQ,KAChB,SAAS,cAAc,OAAO;EAAQ,QAAQ;;iBACjC,YAAY,GAAG,UAAU,WAAW,GACnD,OAAO,oBAAoB,SAAS,IAAI,GAAG,IAC3C,KAAK,QAAQ,IACb,UAAU,QAAQ,KAChB,SAAS,cAAc,OAAO;EAAQ,QAAQ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { a as render, i as hydrate, n as useLoadable, r as SpaRoot, t as LoadableValue } from "./index-
|
|
3
|
-
import { n as Fragment } from "./jsx-runtime-
|
|
4
|
-
export { type Accessor, type Capability, type CapabilityBinding, type CapabilityTarget, type Children, type Component, Fragment, type LoadableValue, type RootOptions, type SpaElement, type SpaRoot, type TimelineControls, hydrate, onCleanup, onMount, render, useGetter, useId, useLoadable, useRef, useSetter, useStore, useTimeline, useTransaction };
|
|
1
|
+
import { _ as useStore, a as Children, c as SpaElement, d as onMount, f as useDisposal, g as useSetter, h as useRef, i as Accessor, l as TimelineControls, m as useId, n as CapabilityBinding, o as Component, p as useGetter, r as CapabilityTarget, s as RootOptions, t as Capability, u as onCleanup, v as useTimeline, y as useTransaction } from "./capabilities-DNcnGRv_.js";
|
|
2
|
+
import { a as render, i as hydrate, n as useLoadable, r as SpaRoot, t as LoadableValue } from "./index-BFnXIfOj.js";
|
|
3
|
+
import { n as Fragment } from "./jsx-runtime-DQnpyT_g.js";
|
|
4
|
+
export { type Accessor, type Capability, type CapabilityBinding, type CapabilityTarget, type Children, type Component, Fragment, type LoadableValue, type RootOptions, type SpaElement, type SpaRoot, type TimelineControls, hydrate, onCleanup, onMount, render, useDisposal, useGetter, useId, useLoadable, useRef, useSetter, useStore, useTimeline, useTransaction };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as useRef, b as useTimeline, c as onCleanup, g as useId, h as useGetter, l as onMount, m as useDisposal, v as useSetter, x as useTransaction, y as useStore } from "./core-B4rJ0xdc.js";
|
|
2
2
|
import { Fragment } from "./jsx-runtime.js";
|
|
3
|
-
import { n as render, t as hydrate } from "./dom-
|
|
4
|
-
import { t as useLoadable } from "./src-
|
|
5
|
-
export { Fragment, hydrate, onCleanup, onMount, render, useGetter, useId, useLoadable, useRef, useSetter, useStore, useTimeline, useTransaction };
|
|
3
|
+
import { n as render, t as hydrate } from "./dom-D8g3roX9.js";
|
|
4
|
+
import { t as useLoadable } from "./src-Bme1kz2b.js";
|
|
5
|
+
export { Fragment, hydrate, onCleanup, onMount, render, useDisposal, useGetter, useId, useLoadable, useRef, useSetter, useStore, useTimeline, useTransaction };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Children, c as SpaElement, o as Component } from "./capabilities-
|
|
1
|
+
import { a as Children, c as SpaElement, o as Component } from "./capabilities-DNcnGRv_.js";
|
|
2
2
|
/** Native events retain their target; only currentTarget is the attached element. */
|
|
3
3
|
type TargetedEvent<E extends Element, T extends Event = Event> = Omit<T, `currentTarget`> & {
|
|
4
4
|
readonly currentTarget: E;
|
|
@@ -964,4 +964,4 @@ declare namespace JSX {
|
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
export { jsxDEV as a, AriaAttributes as c, EventHandler as d, HTMLAttributes as f, TargetedEvent as h, jsx as i, DOMAttributes as l, SVGAttributes as m, Fragment as n, jsxs as o, Ref as p, JSX as r, merge as s, CapabilityAttributes as t, EventAttributes as u };
|
|
967
|
-
//# sourceMappingURL=jsx-runtime-
|
|
967
|
+
//# sourceMappingURL=jsx-runtime-DQnpyT_g.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime-
|
|
1
|
+
{"version":3,"file":"jsx-runtime-DQnpyT_g.d.ts","names":[],"sources":["../src/jsx-types.d.ts","../src/jsx-runtime.ts"],"mappings":";;KAIY,cAAc,UAAU,SAAS,UAAU,QAAQ,SAAS,KACvE;WAEc,eAAe;;KAClB,aAAa,UAAU,SAAS,UAAU,QAAQ,UAC7D,OAAO,cAAc,GAAG;KAEb,IAAI,UAAU,YAAY,SAAS;KAE1C,WAAW,QAAQ,WAAW,KAAK,EAAE;;UAGhC;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAEI,UAAU,oBACZ,IACA,WAAW,MACV,gBAAgB,aAAa,WAAW;KACvC,cAAc,UAAU,WAAW,UAAU,mBAC/C,2BACA,UAAU,mBACT,2BACA,UAAU,kBACT,0BACA,UAAU,sBACT,8BACA,UAAU,gBACT,wBACA,UAAU,aACT,qBACA;KACI,gBAAgB,UAAU,cAEpC,WAAW,cAAc,oBAAoB,UAAU,yBACpD,aAAa,GAAG,QAAQ,cAAc,GAAG,IAAI;KAG7C;KACO,iBAAiB;GAC3B;GACA,gBAAgB;GAChB;GACA;GACA;GACA,cAAc;GACd,iBAAiB;GACjB;GACA;GACA;GACA;GACA;GACA,iBAAiB;GACjB;GACA;GACA;GACA,kBAAkB;GAClB;GACA;GACA,kBAAkB;GAClB;GACA,iBAAiB;GACjB,kBAAkB;GAClB,gBAAgB;GAChB,iBAAiB;GACjB;GACA;GACA;GACA;GACA;GACA,eAAe;GACf,mBAAmB;GACnB,yBAAyB;GACzB;GACA;GACA;GACA;GACA,iBAAiB;GACjB,kBAAkB;GAClB;GAWA,kBAAkB;GAClB;GACA;GACA;GACA;GACA;GACA,kBAAkB;GAClB;GACA;GACA;GACA;GACA;GACA;;KAGU,cAAc,UAAU,WAAW,8BAC9C,gBAAgB,KAChB,iBACA;EACC,UAAU;EACV;EACA,KAAK,IAAI;EACT;EACA;EACA;EACA;EACA;EACA;EACA;EACA;QACO;;;KAIJ,YAAY,KAAK,WAAW,QAC/B,WAAW,KAAK,mBAAmB,UAAU,cAC3C,EAAE;KAIM,eAAe,UAAU,cAAc,eAClD,cAAc,KACb;EACC;EACA;EAOA;EACA;EACA;EACA;EACA;EACA;EAQA;EACA;EACA;EACA;EASA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;KAGE;KACA;KAUA;KACA;EACJ;EACA;EACA;EACA;EACA;EACA;;KAEI;EACJ;EACA;EACA;EACA,aAAa;EACb;EACA;EACA;EACA;EACA;;KAEI;EACJ;EACA;EACA;EACA;EACA,gBAAgB;EAChB;EACA;EACA;;KAEI;EACJ;EACA;EACA;EACA;EACA;;;UAIS;EACT,GAAG;EACH,MAAM;IACL;IACA;IACA;;EAED,OAAO;EACP;IAAQ;IAAc;;EACtB;IAAc;;EACd,QAAQ;IACP;IACA;IACA;IACA,OAAO;IACP;IACA;IACA;IACA;;EAED;IAAU,QAAQ;IAAgB,OAAO;;EACzC;IAAO;;EACP;IAAY;;EACZ;IAAQ,OAAO;;EACf;IAAO;IAAc;;EACrB;IAAW;IAAc;;EACzB;IAAU;IAAe;;EACzB;IACC,QAAQ;IACR;IACA;IACA,OAAO;;EAER;IAAY;IAAmB;IAAc;;EAC7C;IACC;KACC;IACD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAED;IAAQ;;EACR;IACC;IACA;IACA;IACA,QAAQ;IACR;IACA;IACA,gBAAgB;IAChB;IACA;IACA;IACA,OAAO;;EAER;IACC;IACA,aAAa;IACb;IACA;IACA,QAAQ;IACR;IACA;IACA,gBAAgB;IAChB;IACA;IACA;IACA;IACA,OAAO;;EAER,OAAO;IACN;IACA;IACA;IACA;IACA;IACA;IACA,cAAc;IACd;IACA;IACA,QAAQ;IACR;IACA,KAAK;IACL;IACA,KAAK;IACL;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,MAAM;IACN;IACA,OAAO;IACP,OAAO;;EAER;IAAO;IAAc;;EACrB;IAAS;IAAa;IAAiB;;EACvC;IAAM;;EACN;IACC;IACA;IACA,aAAa;IACb;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,gBAAgB;IAChB;IACA;IACA;;EAED;IAAO;;EACP;IACC;IACA;IACA;KACC;IACD;IACA;;EAED;IACC;IACA;IACA;IACA;IACA;IACA;;EAED;IACC;IACA;IACA,QAAQ;IACR;IACA;IACA;IACA,OAAO;;EAER;IAAM;IAAmB;IAAe;;EACxC;IAAY;IAAmB;;EAC/B;IACC;IACA;IACA;IACA,OAAO;;EAER;IAAU;IAAa;IAAiB;IAAc;;EACtD;IAAY;IAAa;;EACzB;IAAK;;EACL;IACC;IACA;IACA;IACA,aAAa;IACb;IACA;IACA;IACA;IACA,gBAAgB;IAChB;IACA;;EAED;IACC;IACA;IACA;IACA;IACA;IACA;IACA;IACA,OAAO;;EAER;IAAQ;;EACR;IACC,QAAQ;IACR;IACA;IACA;IACA;IACA;IACA,OAAO;;EAER;IAAS;IAAkB;IAAe;IAAe;;EACzD;IAAS,aAAa;IAAgB,aAAa;;EACnD,IAAI;EACJ;IACC;IACA;IACA;IACA;;EAED;IACC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAED,IAAI;EACJ;IAAQ;;EACR;IACC;IACA;IACA;IACA;IACA;;EAED,OAAO;IACN;IACA,QAAQ;IACR;IACA;IACA,OAAO;;;KAIG,2BACV,aAAa,wBAAwB,eACrC,sBAAsB,SAErB,kBAAkB,oBAChB,YAAY,kBAAkB;;KAKvB,cAAc,UAAU,aAAa,cAAc,cAAc,KAC5E;EACC;GACC;GACA;EACD;GACC;GACA;GACA,mBAAmB;EACpB;GACC;GACA;EACD;GACC;GACA;GACA;EACD;EACA;EACA;GACC;EACD;GACC,iBAAiB;GACjB;EACD;GACC;GACA,kBAAkB;GAClB;GACA,cAAc;GACd,qBAAqB;GACrB;GACA;GACA;GACA,gBAAgB;GAChB;GACA,mBAAmB;GACnB;GACA;GACA;GACA;EACD;EACA,SAAS;EACT;GACC;GACA;GACA;GACA;GACA,iBAAiB;EAClB;GACC,qBAAqB;GACrB,sBAAsB;GACtB;GACA;GACA,sBAAsB;GACtB,mBAAmB;GACnB,iBAAiB;GACjB;GACA;GACA;EACD;GACC;GACA;GACA;EACD;GACC,iBAAiB;GACjB;;KAGE;EACJ,GAAG;EACH,GAAG;EACH,OAAO;EACP,QAAQ;;KAEJ;EAAe;EAAiB;;KAChC;EAAY;GAAe;;KAC3B,qBAAqB;EAAW;;KAChC,eAAe;EACnB;EACA;EACA,OAAO;EACP,KAAK;EACL,KAAK;EACL,KAAK;EACL,KAAK;EACL;EACA,aAAa;EACb,WAAW;EACX;EACA;EACA;EACA;EACA,MAAM;EACN,IAAI;EACJ,IAAI;EACJ;EACA;;KAEI;EACJ,GAAG;EACH,GAAG;EACH,IAAI;EACJ,IAAI;EACJ,QAAQ;EACR,YAAY;EACZ;;UAES;EACT,GAAG;IACF;IACA;IACA;IACA;IACA;;EAED,SAAS;EACT,eAAe;IACd;IACA;IACA,QAAQ;IACR;;EAED,kBAAkB;IACjB;;EAED;IACC,IAAI;IACJ,IAAI;IACJ,GAAG;IACH;;EAED;IAAY;;EACZ;IACC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ;;EAED,SAAS;IAAuB;IAAY;IAAa;;EACzD,eAAe;IACd;IACA;IACA;;EAED,qBAAqB;IAAuB;;EAC5C,aAAa;IACZ;IACA;IACA;IACA;IACA;IACA;IACA;;EAED,kBAAkB;IACjB;IACA,OAAO;IACP;IACA;IACA;IACA;IACA;IACA;IACA,eAAe;;EAEhB,mBAAmB;IAClB;IACA;IACA;IACA,kBAAkB;;EAEnB,mBAAmB;IAClB;IACA;IACA;IACA;IACA;;EAED;IAAkB;IAAiB;;EACnC,cAAc;IACb,IAAI;IACJ,IAAI;IACJ,cAAc;;EAEf,SAAS;EACT;IACC;IACA;IACA;IACA;IACA;IACA;IACA;;EAED,SAAS;EACT,SAAS;EACT,SAAS;EACT,gBAAgB;IACf;IACA,cAAc;IACd;;EAED,SAAS,qBACR;IAAY;IAA6B,aAAa;;EACvD,SAAS;EACT;IAAe;;EACf,cAAc;IACb;IACA;IACA,QAAQ;;EAET,UAAU;IACT;IACA,IAAI;IACJ,IAAI;;EAEL;IAAgB;IAAW;IAAW;;EACtC,oBAAoB;IACnB;IACA;IACA;IACA;IACA,kBAAkB;;EAEnB;IACC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAED,QAAQ;IAAuB;;EAC/B,cAAc;IACb,eAAe;IACf;IACA;IACA;IACA;;EAED,QAAQ;IAAW;IAAqB;;EACxC,eAAe;EACf,OAAO,SACN;IACC;IACA,aAAa;IACb;;EAEF;IACC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ;;EAED,gBAAgB;IACf,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ;IACA;IACA;;EAED,QAAQ;IACP,MAAM;IACN,MAAM;IACN,aAAa;IACb,cAAc;IACd;IACA,QAAQ;;EAET,MAAM;IAAW;IAAmB;;EACpC,OAAO;EACP;IAAQ;IAAW;;EACnB,SAAS,SACR,aACA;IACC;IACA;IACA;;EAEF;IAAW;IAAgB;;EAC3B,UAAU;EACV,gBAAgB;IACf,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ;IACA;IACA;;EAED,MAAM;IAAW,IAAI;IAAgB,IAAI;IAAgB;;EACzD,QAAQ;IAAY;IAAc,aAAa;;EAC/C,KAAK;EACL;IAAQ,QAAQ;;EAChB;IAAS;IAAc;IAAe;;EACtC,KAAK,SAAS;IAAe;;EAC7B,QAAQ,SAAS;IAAe,MAAM;IAAgB,MAAM;;EAC5D,MAAM;EACN,UAAU;IACT,aAAa;IACb;IACA;IACA;IACA,YAAY;IACZ;;EAED,OAAO;EACP,KAAK,SAAS;EACd,MAAM;IAAe;;;KAEV,0BACV,aAAa,uBAAuB,cAAc,qBAAqB,SACtE,kBAAkB,mBAAmB,WAAW,iBAAiB;;;KAKxD,iBAAiB,wBAC5B,KAAK,4BAA4B;;UC93BjB,qBAAqB;cAEzB,WAAQ;EAAa,WAAW;MAAa;iBAE1C,IACf,MAAM,oBACN,OAAO,4BACP,gBACE;cAMU,aAAI;cACJ,eAAM;;iBAGH,SACZ,UAAU,6BAA6B,0BACxC;kBAqBc;OACJ,UAAU;OACV,oBAAoB,oBAAoB;YACnC;IAChB;;YAEgB;IAChB;;;YAGgB,0BAA0B;KACzC,6BAA6B,eAAe"}
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as jsxDEV, c as AriaAttributes, d as EventHandler, f as HTMLAttributes, h as TargetedEvent, i as jsx, l as DOMAttributes, m as SVGAttributes, n as Fragment, o as jsxs, p as Ref, r as JSX, s as merge, t as CapabilityAttributes, u as EventAttributes } from "./jsx-runtime-
|
|
1
|
+
import { a as jsxDEV, c as AriaAttributes, d as EventHandler, f as HTMLAttributes, h as TargetedEvent, i as jsx, l as DOMAttributes, m as SVGAttributes, n as Fragment, o as jsxs, p as Ref, r as JSX, s as merge, t as CapabilityAttributes, u as EventAttributes } from "./jsx-runtime-DQnpyT_g.js";
|
|
2
2
|
export { type AriaAttributes, CapabilityAttributes, type DOMAttributes, type EventAttributes, type EventHandler, Fragment, type HTMLAttributes, JSX, type Ref, type SVGAttributes, type TargetedEvent, jsx, jsxDEV, jsxs, merge };
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -14,10 +14,10 @@ function merge(...sources) {
|
|
|
14
14
|
return new Proxy({}, {
|
|
15
15
|
get: (_, key) => values().reverse().find((source) => Object.hasOwn(source, key))?.[key],
|
|
16
16
|
ownKeys: () => [...new Set(values().flatMap(Object.keys))],
|
|
17
|
-
getOwnPropertyDescriptor: () => ({
|
|
17
|
+
getOwnPropertyDescriptor: (_, key) => values().some((source) => Object.hasOwn(source, key)) ? {
|
|
18
18
|
enumerable: true,
|
|
19
19
|
configurable: true
|
|
20
|
-
}
|
|
20
|
+
} : void 0
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
export { Fragment, jsx, jsxDEV, jsxs, merge };
|
package/dist/jsx-runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsx-runtime.js","names":[],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { Children, Component, SpaElement } from \"./core.ts\"\nimport type { HTMLAttributes, NativeElements } from \"./jsx-types.d.ts\"\n\nexport type {\n\tAriaAttributes,\n\tDOMAttributes,\n\tEventAttributes,\n\tEventHandler,\n\tHTMLAttributes,\n\tRef,\n\tSVGAttributes,\n\tTargetedEvent,\n} from \"./jsx-types.d.ts\"\n\n/** Optional integrations augment attributes without changing element identity. */\n// oxlint-disable-next-line typescript/no-empty-interface -- Optional integrations augment this declaration.\nexport interface CapabilityAttributes<Kind extends string = string> {}\n\nexport const Fragment = (props: { children?: Children }): Children =>\n\tprops.children\nexport function jsx(\n\ttype: SpaElement[`type`],\n\tprops: SpaElement[`props`] | null,\n\tkey?: unknown,\n): SpaElement {\n\treturn {\n\t\ttype,\n\t\tprops: key === undefined ? (props ?? {}) : merge(props ?? {}, { key }),\n\t}\n}\nexport const jsxs = jsx\nexport const jsxDEV = jsx\n\n/** Preserve lazy props and spread precedence, including keys added by later updates. */\nexport function merge(\n\t...sources: (Record<string, any> | (() => Record<string, any>))[]\n): Record<string, any> {\n\tconst values = () =>\n\t\tsources.map(\n\t\t\t(source) => (typeof source === `function` ? source() : source) ?? {},\n\t\t)\n\treturn new Proxy(\n\t\t{},\n\t\t{\n\t\t\tget: (_, key) =>\n\t\t\t\tvalues()\n\t\t\t\t\t.reverse()\n\t\t\t\t\t.find((source) => Object.hasOwn(source, key))?.[key],\n\t\t\townKeys: () => [...new Set(values().flatMap(Object.keys))],\n\t\t\tgetOwnPropertyDescriptor: () => ({ enumerable: true, configurable: true }
|
|
1
|
+
{"version":3,"file":"jsx-runtime.js","names":[],"sources":["../src/jsx-runtime.ts"],"sourcesContent":["import type { Children, Component, SpaElement } from \"./core.ts\"\nimport type { HTMLAttributes, NativeElements } from \"./jsx-types.d.ts\"\n\nexport type {\n\tAriaAttributes,\n\tDOMAttributes,\n\tEventAttributes,\n\tEventHandler,\n\tHTMLAttributes,\n\tRef,\n\tSVGAttributes,\n\tTargetedEvent,\n} from \"./jsx-types.d.ts\"\n\n/** Optional integrations augment attributes without changing element identity. */\n// oxlint-disable-next-line typescript/no-empty-interface -- Optional integrations augment this declaration.\nexport interface CapabilityAttributes<Kind extends string = string> {}\n\nexport const Fragment = (props: { children?: Children }): Children =>\n\tprops.children\nexport function jsx(\n\ttype: SpaElement[`type`],\n\tprops: SpaElement[`props`] | null,\n\tkey?: unknown,\n): SpaElement {\n\treturn {\n\t\ttype,\n\t\tprops: key === undefined ? (props ?? {}) : merge(props ?? {}, { key }),\n\t}\n}\nexport const jsxs = jsx\nexport const jsxDEV = jsx\n\n/** Preserve lazy props and spread precedence, including keys added by later updates. */\nexport function merge(\n\t...sources: (Record<string, any> | (() => Record<string, any>))[]\n): Record<string, any> {\n\tconst values = () =>\n\t\tsources.map(\n\t\t\t(source) => (typeof source === `function` ? source() : source) ?? {},\n\t\t)\n\treturn new Proxy(\n\t\t{},\n\t\t{\n\t\t\tget: (_, key) =>\n\t\t\t\tvalues()\n\t\t\t\t\t.reverse()\n\t\t\t\t\t.find((source) => Object.hasOwn(source, key))?.[key],\n\t\t\townKeys: () => [...new Set(values().flatMap(Object.keys))],\n\t\t\tgetOwnPropertyDescriptor: (_, key) =>\n\t\t\t\tvalues().some((source) => Object.hasOwn(source, key))\n\t\t\t\t\t? { enumerable: true, configurable: true }\n\t\t\t\t\t: undefined,\n\t\t},\n\t)\n}\n\nexport namespace JSX {\n\texport type Element = SpaElement\n\texport type ElementType = keyof IntrinsicElements | Component\n\texport interface ElementChildrenAttribute {\n\t\tchildren: {}\n\t}\n\texport interface IntrinsicAttributes {\n\t\tkey?: string | number\n\t}\n\t/** Augment this interface to declare attributes for registered custom elements. */\n\texport interface IntrinsicElements extends NativeElements {\n\t\t[tag: `${string}-${string}`]: HTMLAttributes<HTMLElement>\n\t}\n}\n"],"mappings":";AAkBA,MAAa,YAAY,UACxB,MAAM;AACP,SAAgB,IACf,MACA,OACA,KACa;CACb,OAAO;EACN;EACA,OAAO,QAAQ,KAAA,IAAa,SAAS,CAAC,IAAK,MAAM,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC;CACtE;AACD;AACA,MAAa,OAAO;AACpB,MAAa,SAAS;;AAGtB,SAAgB,MACf,GAAG,SACmB;CACtB,MAAM,eACL,QAAQ,KACN,YAAY,OAAO,WAAW,aAAa,OAAO,IAAI,WAAW,CAAC,CACpE;CACD,OAAO,IAAI,MACV,CAAC,GACD;EACC,MAAM,GAAG,QACR,OAAO,CAAC,CACN,QAAQ,CAAC,CACT,MAAM,WAAW,OAAO,OAAO,QAAQ,GAAG,CAAC,CAAC,GAAG;EAClD,eAAe,CAAC,GAAG,IAAI,IAAI,OAAO,CAAC,CAAC,QAAQ,OAAO,IAAI,CAAC,CAAC;EACzD,2BAA2B,GAAG,QAC7B,OAAO,CAAC,CAAC,MAAM,WAAW,OAAO,OAAO,QAAQ,GAAG,CAAC,IACjD;GAAE,YAAY;GAAM,cAAc;EAAK,IACvC,KAAA;CACL,CACD;AACD"}
|
package/dist/konva.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Children, c as SpaElement } from "./capabilities-
|
|
1
|
+
import { a as Children, c as SpaElement } from "./capabilities-DNcnGRv_.js";
|
|
2
2
|
import { SceneRenderer } from "./renderer.js";
|
|
3
|
-
import "./index-
|
|
4
|
-
import { t as CapabilityAttributes } from "./jsx-runtime-
|
|
3
|
+
import "./index-BFnXIfOj.js";
|
|
4
|
+
import { t as CapabilityAttributes } from "./jsx-runtime-DQnpyT_g.js";
|
|
5
5
|
import Konva from "konva";
|
|
6
6
|
type Props<C, N> = C & CapabilityAttributes<`konva`> & {
|
|
7
7
|
children?: Children;
|
package/dist/konva.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as capabilityProps } from "./capabilities-
|
|
2
|
-
import { c as onCleanup, l as onMount, u as owner } from "./core-
|
|
1
|
+
import { n as capabilityProps } from "./capabilities-nOIitQ-_.js";
|
|
2
|
+
import { c as onCleanup, l as onMount, u as owner } from "./core-B4rJ0xdc.js";
|
|
3
3
|
import { jsx } from "./jsx-runtime.js";
|
|
4
4
|
import { bindScene, createSceneRenderer, sceneComponent } from "./renderer.js";
|
|
5
5
|
import Konva from "konva";
|
package/dist/motion.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import { t as Capability } from "./capabilities-
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
rotation?: readonly [number, number, number];
|
|
7
|
-
scale?: number | readonly [number, number, number];
|
|
8
|
-
opacity?: number;
|
|
9
|
-
intensity?: number;
|
|
10
|
-
color?: string;
|
|
11
|
-
}
|
|
12
|
-
export type MotionTarget<Kind extends string> = Kind extends `dom` ? MotionDOMTarget : Kind extends `three` ? MotionThreeTarget : Record<string, MotionScalar>;
|
|
13
|
-
/** Supported transition options; keep public declarations independent of optional peer types. */
|
|
14
|
-
export interface MotionTransition {
|
|
1
|
+
import { t as Capability } from "./capabilities-DNcnGRv_.js";
|
|
2
|
+
export type MotionKeyframes = readonly [MotionScalar | null, MotionScalar, ...MotionScalar[]];
|
|
3
|
+
export type MotionEasing = `linear` | `easeIn` | `easeOut` | `easeInOut` | `circIn` | `circOut` | `circInOut` | `backIn` | `backOut` | `backInOut` | readonly [number, number, number, number];
|
|
4
|
+
/** Public options remain independent of optional Motion peer declarations. */
|
|
5
|
+
export interface MotionValueTransition {
|
|
15
6
|
type?: `spring` | `tween`;
|
|
16
7
|
stiffness?: number;
|
|
17
8
|
damping?: number;
|
|
@@ -23,10 +14,40 @@ export interface MotionTransition {
|
|
|
23
14
|
visualDuration?: number;
|
|
24
15
|
duration?: number;
|
|
25
16
|
delay?: number;
|
|
26
|
-
|
|
17
|
+
times?: readonly number[];
|
|
18
|
+
ease?: MotionEasing | readonly MotionEasing[];
|
|
19
|
+
}
|
|
20
|
+
export interface MotionTransition extends MotionValueTransition {
|
|
21
|
+
default?: MotionValueTransition;
|
|
22
|
+
properties?: Readonly<Record<string, MotionValueTransition>>;
|
|
23
|
+
}
|
|
24
|
+
export interface MotionLayoutTransition {
|
|
25
|
+
type?: `spring` | `tween`;
|
|
26
|
+
duration?: number;
|
|
27
|
+
delay?: number;
|
|
28
|
+
ease?: `linear` | `easeIn` | `easeOut` | `easeInOut` | readonly [number, number, number, number];
|
|
29
|
+
stiffness?: number;
|
|
30
|
+
damping?: number;
|
|
31
|
+
mass?: number;
|
|
32
|
+
}
|
|
33
|
+
export type MotionScalar = number | string;
|
|
34
|
+
export type MotionDOMTarget = Partial<Record<keyof CSSStyleDeclaration | `x` | `y` | `z` | `scale` | `scaleX` | `scaleY` | `rotate` | `rotateX` | `rotateY` | `rotateZ` | `skewX` | `skewY` | `--${string}`, MotionScalar | MotionKeyframes>>;
|
|
35
|
+
export interface MotionThreeTarget {
|
|
36
|
+
position?: readonly [number, number, number];
|
|
37
|
+
rotation?: readonly [number, number, number];
|
|
38
|
+
scale?: number | readonly [number, number, number];
|
|
39
|
+
opacity?: number;
|
|
40
|
+
intensity?: number;
|
|
41
|
+
color?: string;
|
|
27
42
|
}
|
|
43
|
+
export type MotionTarget<Kind extends string> = Kind extends `dom` ? MotionDOMTarget : Kind extends `three` ? MotionThreeTarget : Record<string, MotionScalar>;
|
|
28
44
|
export interface MotionAttributes<Kind extends string = `dom`> {
|
|
29
|
-
[`motion:
|
|
45
|
+
[`motion:layout`]?: Kind extends `dom` ? boolean | `position` | `size` : never;
|
|
46
|
+
[`motion:layoutId`]?: Kind extends `dom` ? string | number : never;
|
|
47
|
+
[`motion:layoutGroup`]?: Kind extends `dom` ? string | number : never;
|
|
48
|
+
[`motion:layoutScroll`]?: Kind extends `dom` ? boolean : never;
|
|
49
|
+
[`motion:layoutTransition`]?: Kind extends `dom` ? MotionLayoutTransition : never;
|
|
50
|
+
[`motion:initial`]?: (Kind extends `dom` ? Partial<Record<keyof MotionDOMTarget, MotionScalar>> : MotionTarget<Kind>) | false;
|
|
30
51
|
[`motion:animate`]?: MotionTarget<Kind>;
|
|
31
52
|
[`motion:exit`]?: MotionTarget<Kind>;
|
|
32
53
|
[`motion:transition`]?: MotionTransition;
|
|
@@ -39,6 +60,8 @@ declare module "@atom.io/spa/jsx-runtime" {
|
|
|
39
60
|
export interface MotionCapabilityOptions {
|
|
40
61
|
/** Respect the user's reduced-motion preference by default. */
|
|
41
62
|
reducedMotion?: `user` | `always` | `never`;
|
|
63
|
+
/** Default transition for layout projection; animated properties use motion:transition. */
|
|
64
|
+
layoutTransition?: MotionLayoutTransition;
|
|
42
65
|
}
|
|
43
66
|
/** Explicit, root-scoped motion:* integration. Importing it never registers globally. */
|
|
44
67
|
export declare function motionCapability(options?: MotionCapabilityOptions): Capability;
|
package/dist/motion.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"motion.d.ts","names":[],"sources":["../src/motion.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"motion.d.ts","names":[],"sources":["../src/motion.ts"],"mappings":";YAyBY,4BACX,qBACA,iBACG;YAEQ;;iBAaK;EAChB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,OAAO,wBAAwB;;iBAEf,yBAAyB;EACzC,UAAU;EACV,aAAa,SAAS,eAAe;;iBAErB;EAChB;EACA;EACA;EACA;EAMA;EACA;EACA;;YAGW;YACA,kBAAkB,QAC7B,aACS,0JAcR,eAAe;iBAGA;EAChB;EACA;EACA;EACA;EACA;EACA;;YAEW,aAAa,uBAAuB,qBAC7C,kBACA,uBACC,oBACA,eAAe;iBACF,iBAAiB;GAChC,mBAAmB;GACnB,qBAAqB;GACrB,wBAAwB;GACxB,yBAAyB;GACzB,6BAA6B,qBAC3B;GAEF,qBACG,qBACC,QAAQ,aAAa,iBAAiB,iBACtC,aAAa;GAEjB,oBAAoB,aAAa;GACjC,iBAAiB,aAAa;GAC9B,uBAAuB;GACvB,uBAAuB,aAAa;GACpC,qBAAqB,aAAa;;;YAMzB,qBACT,6BACS,iBAAiB;;iBAGX;;EAEhB;;EAEA,mBAAmB;;;wBAkaJ,iBACf,UAAS,0BACP"}
|