@wardic/foldkit 1.3.1 → 1.3.2
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/AnimationControls.d.ts +2 -1
- package/dist/AnimationControls.d.ts.map +1 -1
- package/dist/AnimationControls.js +4 -1
- package/dist/AnimationControls.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/element.d.ts +2 -0
- package/dist/internal/element.d.ts.map +1 -1
- package/dist/internal/element.js +377 -316
- package/dist/internal/element.js.map +1 -1
- package/dist/internal/mount.d.ts.map +1 -1
- package/dist/internal/mount.js +46 -21
- package/dist/internal/mount.js.map +1 -1
- package/dist/internal/presence.js +2 -1
- package/dist/internal/presence.js.map +1 -1
- package/dist/internal/tree.d.ts +1 -1
- package/dist/internal/tree.d.ts.map +1 -1
- package/dist/internal/tree.js +14 -25
- package/dist/internal/tree.js.map +1 -1
- package/dist/internal/variant-node.d.ts +6 -0
- package/dist/internal/variant-node.d.ts.map +1 -1
- package/dist/internal/variant-node.js +31 -8
- package/dist/internal/variant-node.js.map +1 -1
- package/package.json +4 -4
- package/src/AnimationControls.ts +4 -1
- package/src/index.ts +1 -1
- package/src/internal/element.ts +386 -327
- package/src/internal/mount.ts +47 -22
- package/src/internal/presence.ts +2 -1
- package/src/internal/tree.ts +14 -23
- package/src/internal/variant-node.ts +48 -8
|
@@ -31,7 +31,8 @@ export declare const make: () => AnimationControls;
|
|
|
31
31
|
* its `Animate` would (an `Effect` for a Command): `transition`, when given, is the transition of this
|
|
32
32
|
* change over the definition's own, and its stagger. Succeeds once each element and its children have
|
|
33
33
|
* landed, at once with no element given the controls; interrupting it ends every element the controls
|
|
34
|
-
* reach where it is, as `controls.stop()` does.
|
|
34
|
+
* reach where it is, as `controls.stop()` does. A function definition that throws for an element refuses
|
|
35
|
+
* the start, with no element changed: the Effect dies with the throw, as a Command's own defect does.
|
|
35
36
|
*/
|
|
36
37
|
export declare const start: (controls: AnimationControls, definition: Definition, transition?: WardConfig.WardicTransition) => Effect.Effect<void>;
|
|
37
38
|
//# sourceMappingURL=AnimationControls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationControls.d.ts","sourceRoot":"","sources":["../src/AnimationControls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,YAAY,MAAM,yCAAyC,CAAA;AACvE,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAA;AAClE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,qHAAqH;AACrH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,uBAAuB,CAAA;AAEpE,wLAAwL;AACxL,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,wBAAwB,CAAA;AAE9D,0HAA0H;AAC1H,eAAO,MAAM,IAAI,EAAE,MAAM,iBAAwD,CAAA;AAIjF
|
|
1
|
+
{"version":3,"file":"AnimationControls.d.ts","sourceRoot":"","sources":["../src/AnimationControls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,YAAY,MAAM,yCAAyC,CAAA;AACvE,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAA;AAClE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,qHAAqH;AACrH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,uBAAuB,CAAA;AAEpE,wLAAwL;AACxL,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC,wBAAwB,CAAA;AAE9D,0HAA0H;AAC1H,eAAO,MAAM,IAAI,EAAE,MAAM,iBAAwD,CAAA;AAIjF;;;;;;;GAOG;AAGH,eAAO,MAAM,KAAK,aAAc,iBAAiB,cAAc,UAAU,eAAe,UAAU,CAAC,gBAAgB,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAIpI,CAAA"}
|
|
@@ -28,8 +28,11 @@ export const make = CoreControls.createAnimationControls;
|
|
|
28
28
|
* its `Animate` would (an `Effect` for a Command): `transition`, when given, is the transition of this
|
|
29
29
|
* change over the definition's own, and its stagger. Succeeds once each element and its children have
|
|
30
30
|
* landed, at once with no element given the controls; interrupting it ends every element the controls
|
|
31
|
-
* reach where it is, as `controls.stop()` does.
|
|
31
|
+
* reach where it is, as `controls.stop()` does. A function definition that throws for an element refuses
|
|
32
|
+
* the start, with no element changed: the Effect dies with the throw, as a Command's own defect does.
|
|
32
33
|
*/
|
|
34
|
+
// #979 (ADR-0074, row 35; the grill's Q9): a refusal at the call is its caller's, and here the caller is a
|
|
35
|
+
// Command, whose defect Foldkit's crash view shows.
|
|
33
36
|
export const start = (controls, definition, transition) => Effect.callback((resume) => {
|
|
34
37
|
void controls.start(definition, transition).then(() => resume(Effect.void));
|
|
35
38
|
return Effect.sync(() => controls.stop());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationControls.js","sourceRoot":"","sources":["../src/AnimationControls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,YAAY,MAAM,yCAAyC,CAAA;AAEvE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAQvC,0HAA0H;AAC1H,MAAM,CAAC,MAAM,IAAI,GAA4B,YAAY,CAAC,uBAAuB,CAAA;AAEjF,sGAAsG;AACtG,6DAA6D;AAC7D
|
|
1
|
+
{"version":3,"file":"AnimationControls.js","sourceRoot":"","sources":["../src/AnimationControls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,YAAY,MAAM,yCAAyC,CAAA;AAEvE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAQvC,0HAA0H;AAC1H,MAAM,CAAC,MAAM,IAAI,GAA4B,YAAY,CAAC,uBAAuB,CAAA;AAEjF,sGAAsG;AACtG,6DAA6D;AAC7D;;;;;;;GAOG;AACH,2GAA2G;AAC3G,oDAAoD;AACpD,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,QAA2B,EAAE,UAAsB,EAAE,UAAwC,EAAuB,EAAE,CAC1I,MAAM,CAAC,QAAQ,CAAO,CAAC,MAAM,EAAE,EAAE;IAC/B,KAAK,QAAQ,CAAC,KAAK,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;IAC3E,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;AAC3C,CAAC,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Effect. `Wardic.make({ env })` makes a Handle once per program; `wardic.html(h)` gives a view its
|
|
4
4
|
* `w.*` elements. Shipped from 1.2 (#561).
|
|
5
5
|
*/
|
|
6
|
-
export declare const VERSION = "1.3.
|
|
6
|
+
export declare const VERSION = "1.3.2";
|
|
7
7
|
export * as Wardic from "./Wardic.ts";
|
|
8
8
|
export * as Ward from "./Ward.ts";
|
|
9
9
|
export * as Features from "./Features.ts";
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Effect. `Wardic.make({ env })` makes a Handle once per program; `wardic.html(h)` gives a view its
|
|
4
4
|
* `w.*` elements. Shipped from 1.2 (#561).
|
|
5
5
|
*/
|
|
6
|
-
export const VERSION = "1.3.
|
|
6
|
+
export const VERSION = "1.3.2";
|
|
7
7
|
export * as Wardic from "./Wardic.js";
|
|
8
8
|
export * as Ward from "./Ward.js";
|
|
9
9
|
// The Features a Handle takes (#792, Q16): dom's, and the binding's own `presence`.
|
|
@@ -11,6 +11,8 @@ import { type Provider, type State } from "./services.ts";
|
|
|
11
11
|
export type Config = Ward.Config<unknown> & WardConfig.SpineConfig;
|
|
12
12
|
/** The config delivered to an element, or none. */
|
|
13
13
|
export declare const configOf: (delivered: unknown) => Config;
|
|
14
|
+
/** What a `w.*` element's Mount or start failing is reported as: contained at the binding's edge (decision 13), the element left at its Starting style. */
|
|
15
|
+
export declare const MOUNT_FAILED = "wardic.mount: a w.* element's mount failed; it stays at its Starting style";
|
|
14
16
|
/**
|
|
15
17
|
* The element's Starting style, rendered by the view: the user's `style` with its `initial` on top,
|
|
16
18
|
* projected together, so a transform key of each joins one `transform` (#791, Q7); a Live value at
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/internal/element.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,KAAK,UAAU,MAAM,8BAA8B,CAAA;AAG/D,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAA;AACpD,OAAO,KAAK,WAAW,MAAM,mCAAmC,CAAA;AAChE,OAAO,KAAK,iBAAiB,MAAM,yCAAyC,CAAA;AAG5E,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAS1C,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAA;AASlE,OAAO,KAAK,KAAK,YAAY,MAAM,gCAAgC,CAAA;AAGnE,OAAO,KAAK,KAAK,IAAI,MAAM,YAAY,CAAA;AASvC,OAAO,EAAoB,KAAK,QAAQ,
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../src/internal/element.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,KAAK,UAAU,MAAM,8BAA8B,CAAA;AAG/D,OAAO,KAAK,KAAK,MAAM,6BAA6B,CAAA;AACpD,OAAO,KAAK,WAAW,MAAM,mCAAmC,CAAA;AAChE,OAAO,KAAK,iBAAiB,MAAM,yCAAyC,CAAA;AAG5E,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAA;AAS1C,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAA;AASlE,OAAO,KAAK,KAAK,YAAY,MAAM,gCAAgC,CAAA;AAGnE,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