@split-window/keyframes-animation 0.0.0-stage → 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lucas Dornelas
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,22 @@
1
- # Temporary Holding Version
1
+ # @split-window/keyframes-animation
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Motor de animação do SplitWindow com a Web Animations API (`element.animate`).
4
+
5
+ ```ts
6
+ import { SplitKeyframesAnimationEngine } from '@split-window/keyframes-animation';
7
+
8
+ provideSplitWindows({ animationEngines: { keyframes: SplitKeyframesAnimationEngine } });
9
+
10
+ // keyframes próprios numa instância
11
+ { animation: { duration: 250, engine: new SplitKeyframesAnimationEngine({
12
+ show: [{ opacity: 0, transform: 'scale(.95)' }, { opacity: 1, transform: 'none' }],
13
+ hide: (ctx) => [{ opacity: 1 }, { opacity: 0 }],
14
+ }) } }
15
+ ```
16
+
17
+ - `show`/`hide` animam o shell; `host`, `push` e `backdrop` animam o tamanho do host, o padding do push e o backdrop. Arrays nesses três tocam ao contrário no `hide`.
18
+ - Sem keyframes, usa o preset (`slide` a partir dos frames `from`/`to`, `fade`, `collapse`).
19
+ - Duração, easing e delay vêm das opções de animação (padrão 200 ms).
20
+ - Estenda a classe e sobrescreva `keyframes`, `shellKeyframes` ou `timing`.
21
+
22
+ Veja o guia [Modos e animação](../../docs/guides/modos-e-animacao.md).
@@ -0,0 +1,2 @@
1
+ export { SplitKeyframesAnimationEngine, type SplitKeyframesConfig, type SplitKeyframesInput, type SplitKeyframesTarget, } from './keyframes-animation-engine.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,iCAAiC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { SplitKeyframesAnimationEngine, } from './keyframes-animation-engine.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,GAI9B,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { SplitAnimationEngine, type SplitAnimationContext } from '@split-window/core';
2
+ /** Keyframes, or a function that builds them from the context (frames, side...). */
3
+ export type SplitKeyframesInput = Keyframe[] | ((ctx: SplitAnimationContext<HTMLElement>) => Keyframe[]);
4
+ /**
5
+ * Keyframes of the engine. `show`/`hide` animate the shell; the others animate the host
6
+ * size, the push property and the backdrop. Arrays given for `host`, `push` and `backdrop`
7
+ * play forwards on show and backwards on hide.
8
+ */
9
+ export interface SplitKeyframesConfig {
10
+ show?: SplitKeyframesInput;
11
+ hide?: SplitKeyframesInput;
12
+ host?: SplitKeyframesInput;
13
+ push?: SplitKeyframesInput;
14
+ backdrop?: SplitKeyframesInput;
15
+ }
16
+ /** One element and the keyframes it plays. */
17
+ export interface SplitKeyframesTarget {
18
+ element: Element;
19
+ keyframes: Keyframe[];
20
+ }
21
+ /**
22
+ * Web Animations engine: plays keyframes on the shell, the host, the push target and the
23
+ * backdrop. Keyframes come from the config given to the constructor or from the preset,
24
+ * built from the frames (`from`/`to`) of the context. Duration, easing and delay come from
25
+ * the animation options (default 200ms).
26
+ *
27
+ * ```ts
28
+ * animation: {
29
+ * engine: new SplitKeyframesAnimationEngine({
30
+ * show: [{ opacity: 0, transform: 'scale(.95)' }, { opacity: 1, transform: 'none' }],
31
+ * }),
32
+ * duration: 250,
33
+ * }
34
+ * ```
35
+ *
36
+ * Extend it and override `keyframes`, `shellKeyframes` or `timing`.
37
+ */
38
+ export declare class SplitKeyframesAnimationEngine extends SplitAnimationEngine<HTMLElement> {
39
+ protected readonly config: SplitKeyframesConfig;
40
+ private readonly running;
41
+ constructor(config?: SplitKeyframesConfig);
42
+ animate(ctx: SplitAnimationContext<HTMLElement>): Promise<void> | void;
43
+ cleanup(ctx: SplitAnimationContext<HTMLElement>): void;
44
+ /** Timing of every animation of the transition. */
45
+ protected timing(ctx: SplitAnimationContext<HTMLElement>): KeyframeAnimationOptions;
46
+ /** Every element and its keyframes. */
47
+ protected keyframes(ctx: SplitAnimationContext<HTMLElement>): SplitKeyframesTarget[];
48
+ /** Keyframes of the shell for the preset. */
49
+ protected shellKeyframes(ctx: SplitAnimationContext<HTMLElement>): Keyframe[];
50
+ private read;
51
+ }
52
+ //# sourceMappingURL=keyframes-animation-engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyframes-animation-engine.d.ts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,6CAA6C;IAC7C,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,WAAW,CAAC,GAAG,QAAQ,EAAE;IAkB7E,OAAO,CAAC,IAAI;CASb"}
@@ -0,0 +1,117 @@
1
+ import { SPLIT_DEFAULT_EASING, SplitAnimationEngine, } from '@split-window/core';
2
+ const camel = (property) => property.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
3
+ /**
4
+ * Web Animations engine: plays keyframes on the shell, the host, the push target and the
5
+ * backdrop. Keyframes come from the config given to the constructor or from the preset,
6
+ * built from the frames (`from`/`to`) of the context. Duration, easing and delay come from
7
+ * the animation options (default 200ms).
8
+ *
9
+ * ```ts
10
+ * animation: {
11
+ * engine: new SplitKeyframesAnimationEngine({
12
+ * show: [{ opacity: 0, transform: 'scale(.95)' }, { opacity: 1, transform: 'none' }],
13
+ * }),
14
+ * duration: 250,
15
+ * }
16
+ * ```
17
+ *
18
+ * Extend it and override `keyframes`, `shellKeyframes` or `timing`.
19
+ */
20
+ export class SplitKeyframesAnimationEngine extends SplitAnimationEngine {
21
+ config;
22
+ running = new WeakMap();
23
+ constructor(config = {}) {
24
+ super();
25
+ this.config = config;
26
+ }
27
+ animate(ctx) {
28
+ const targets = this.keyframes(ctx).filter((t) => t.keyframes.length > 0 && typeof t.element.animate === 'function');
29
+ if (targets.length === 0)
30
+ return;
31
+ const timing = this.timing(ctx);
32
+ ctx.started();
33
+ const animations = targets.map((t) => t.element.animate(t.keyframes, timing));
34
+ this.running.set(ctx, animations);
35
+ ctx.signal.addEventListener('abort', () => animations.forEach((a) => a.cancel()), {
36
+ once: true,
37
+ });
38
+ return Promise.all(animations.map((a) => a.finished.catch(() => undefined))).then(() => undefined);
39
+ }
40
+ cleanup(ctx) {
41
+ this.running.get(ctx)?.forEach((a) => a.cancel());
42
+ this.running.delete(ctx);
43
+ }
44
+ /** Timing of every animation of the transition. */
45
+ timing(ctx) {
46
+ return {
47
+ duration: ctx.options.duration ?? 200,
48
+ easing: ctx.options.easing ?? SPLIT_DEFAULT_EASING,
49
+ delay: ctx.options.delay ?? 0,
50
+ // Holds the end state until `cleanup`, which runs right before the final layout.
51
+ fill: 'both',
52
+ };
53
+ }
54
+ /** Every element and its keyframes. */
55
+ keyframes(ctx) {
56
+ const config = this.config;
57
+ const { elements, properties, from, to, phase } = ctx;
58
+ const targets = [];
59
+ const custom = this.read(phase === 'show' ? config.show : config.hide, ctx, false);
60
+ targets.push({ element: elements.shell, keyframes: custom ?? this.shellKeyframes(ctx) });
61
+ if (ctx.options.preset === 'none')
62
+ return targets;
63
+ if (properties.host && from.hostSize !== null && to.hostSize !== null) {
64
+ const key = camel(properties.host);
65
+ targets.push({
66
+ element: elements.host,
67
+ keyframes: this.read(config.host, ctx, true) ?? [
68
+ { [key]: from.hostSize },
69
+ { [key]: to.hostSize },
70
+ ],
71
+ });
72
+ }
73
+ if (properties.push && elements.pushTarget && from.push !== null && to.push !== null) {
74
+ const key = camel(properties.push);
75
+ targets.push({
76
+ element: elements.pushTarget,
77
+ keyframes: this.read(config.push, ctx, true) ?? [{ [key]: from.push }, { [key]: to.push }],
78
+ });
79
+ }
80
+ if (elements.backdrop) {
81
+ const show = phase === 'show';
82
+ targets.push({
83
+ element: elements.backdrop,
84
+ keyframes: this.read(config.backdrop, ctx, true) ?? [
85
+ { opacity: show ? 0 : 1 },
86
+ { opacity: show ? 1 : 0 },
87
+ ],
88
+ });
89
+ }
90
+ return targets;
91
+ }
92
+ /** Keyframes of the shell for the preset. */
93
+ shellKeyframes(ctx) {
94
+ const { from, to, phase } = ctx;
95
+ // The shell sits at its open position during the whole transition.
96
+ const open = phase === 'show' ? to : from;
97
+ const translate = (frame) => `translate(${frame.rect.x - open.rect.x}px, ${frame.rect.y - open.rect.y}px)`;
98
+ switch (ctx.options.preset) {
99
+ case 'slide':
100
+ return [{ transform: translate(from) }, { transform: translate(to) }];
101
+ case 'fade':
102
+ return phase === 'show'
103
+ ? [{ opacity: 0 }, { opacity: 1 }]
104
+ : [{ opacity: 1 }, { opacity: 0 }];
105
+ default:
106
+ return [];
107
+ }
108
+ }
109
+ read(input, ctx, reverseOnHide) {
110
+ if (!input)
111
+ return null;
112
+ if (typeof input === 'function')
113
+ return input(ctx);
114
+ return reverseOnHide && ctx.phase === 'hide' ? [...input].reverse() : input;
115
+ }
116
+ }
117
+ //# sourceMappingURL=keyframes-animation-engine.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyframes-animation-engine.js","sourceRoot":"","sources":["../src/keyframes-animation-engine.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GAGrB,MAAM,oBAAoB,CAAC;AAyB5B,MAAM,KAAK,GAAG,CAAC,QAAgB,EAAE,EAAE,CACjC,QAAQ,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEnE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,OAAO,6BAA8B,SAAQ,oBAAiC;IAGnD;IAFd,OAAO,GAAG,IAAI,OAAO,EAAmD,CAAC;IAE1F,YAA+B,SAA+B,EAAE;QAC9D,KAAK,EAAE,CAAC;QADqB,WAAM,GAAN,MAAM,CAA2B;IAEhE,CAAC;IAED,OAAO,CAAC,GAAuC;QAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,CACxC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,OAAQ,CAAC,CAAC,OAAuB,CAAC,OAAO,KAAK,UAAU,CAC1F,CAAC;QACF,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO;QACjC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QAChC,GAAG,CAAC,OAAO,EAAE,CAAC;QACd,MAAM,UAAU,GAAG,OAA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AC,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;QAChF,QAAQ,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAC3B,KAAK,OAAO;gBACV,OAAO,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;YACxE,KAAK,MAAM;gBACT,OAAO,KAAK,KAAK,MAAM;oBACrB,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;oBAClC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;YACvC;gBACE,OAAO,EAAE,CAAC;QACd,CAAC;IACH,CAAC;IAEO,IAAI,CACV,KAAsC,EACtC,GAAuC,EACvC,aAAsB;QAEtB,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC;QACxB,IAAI,OAAO,KAAK,KAAK,UAAU;YAAE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;QACnD,OAAO,aAAa,IAAI,GAAG,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;IAC9E,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@split-window/keyframes-animation",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Web Animations (keyframes) engine of SplitWindow.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.build.json",
24
+ "typecheck": "tsc -p tsconfig.json --noEmit",
25
+ "test": "vitest run"
26
+ },
27
+ "dependencies": {
28
+ "@split-window/core": "0.2.0"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/lucasdornelasv/split-window-js.git",
36
+ "directory": "packages/keyframes-animation"
37
+ },
38
+ "homepage": "https://github.com/lucasdornelasv/split-window-js/tree/main/packages/keyframes-animation#readme",
39
+ "bugs": {
40
+ "url": "https://github.com/lucasdornelasv/split-window-js/issues"
41
+ }
42
+ }