@wardic/foldkit 0.0.0-stage → 1.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 +59 -2
- package/THIRD_PARTY_NOTICES.md +145 -0
- package/dist/AnimationControls.d.ts +37 -0
- package/dist/AnimationControls.d.ts.map +1 -0
- package/dist/AnimationControls.js +37 -0
- package/dist/AnimationControls.js.map +1 -0
- package/dist/AnimationScope.d.ts +20 -0
- package/dist/AnimationScope.d.ts.map +1 -0
- package/dist/AnimationScope.js +20 -0
- package/dist/AnimationScope.js.map +1 -0
- package/dist/DragControls.d.ts +25 -0
- package/dist/DragControls.d.ts.map +1 -0
- package/dist/DragControls.js +21 -0
- package/dist/DragControls.js.map +1 -0
- package/dist/Features.d.ts +36 -0
- package/dist/Features.d.ts.map +1 -0
- package/dist/Features.js +44 -0
- package/dist/Features.js.map +1 -0
- package/dist/Ward.d.ts +301 -0
- package/dist/Ward.d.ts.map +1 -0
- package/dist/Ward.js +6 -0
- package/dist/Ward.js.map +1 -0
- package/dist/Wardic.d.ts +363 -0
- package/dist/Wardic.d.ts.map +1 -0
- package/dist/Wardic.js +85 -0
- package/dist/Wardic.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/builder.d.ts +8 -0
- package/dist/internal/builder.d.ts.map +1 -0
- package/dist/internal/builder.js +242 -0
- package/dist/internal/builder.js.map +1 -0
- package/dist/internal/commands.d.ts +143 -0
- package/dist/internal/commands.d.ts.map +1 -0
- package/dist/internal/commands.js +242 -0
- package/dist/internal/commands.js.map +1 -0
- package/dist/internal/delivery.d.ts +44 -0
- package/dist/internal/delivery.d.ts.map +1 -0
- package/dist/internal/delivery.js +85 -0
- package/dist/internal/delivery.js.map +1 -0
- package/dist/internal/dev.d.ts +10 -0
- package/dist/internal/dev.d.ts.map +1 -0
- package/dist/internal/dev.js +10 -0
- package/dist/internal/dev.js.map +1 -0
- package/dist/internal/dev.production.d.ts +8 -0
- package/dist/internal/dev.production.d.ts.map +1 -0
- package/dist/internal/dev.production.js +8 -0
- package/dist/internal/dev.production.js.map +1 -0
- package/dist/internal/drag.d.ts +66 -0
- package/dist/internal/drag.d.ts.map +1 -0
- package/dist/internal/drag.js +71 -0
- package/dist/internal/drag.js.map +1 -0
- package/dist/internal/element.d.ts +59 -0
- package/dist/internal/element.d.ts.map +1 -0
- package/dist/internal/element.js +582 -0
- package/dist/internal/element.js.map +1 -0
- package/dist/internal/gestures.d.ts +62 -0
- package/dist/internal/gestures.d.ts.map +1 -0
- package/dist/internal/gestures.js +109 -0
- package/dist/internal/gestures.js.map +1 -0
- package/dist/internal/hydrate.d.ts +5 -0
- package/dist/internal/hydrate.d.ts.map +1 -0
- package/dist/internal/hydrate.js +27 -0
- package/dist/internal/hydrate.js.map +1 -0
- package/dist/internal/keys.d.ts +21 -0
- package/dist/internal/keys.d.ts.map +1 -0
- package/dist/internal/keys.js +12 -0
- package/dist/internal/keys.js.map +1 -0
- package/dist/internal/layout.d.ts +29 -0
- package/dist/internal/layout.d.ts.map +1 -0
- package/dist/internal/layout.js +88 -0
- package/dist/internal/layout.js.map +1 -0
- package/dist/internal/mount.d.ts +22 -0
- package/dist/internal/mount.d.ts.map +1 -0
- package/dist/internal/mount.js +100 -0
- package/dist/internal/mount.js.map +1 -0
- package/dist/internal/presence.d.ts +33 -0
- package/dist/internal/presence.d.ts.map +1 -0
- package/dist/internal/presence.js +338 -0
- package/dist/internal/presence.js.map +1 -0
- package/dist/internal/reactivity.d.ts +15 -0
- package/dist/internal/reactivity.d.ts.map +1 -0
- package/dist/internal/reactivity.js +26 -0
- package/dist/internal/reactivity.js.map +1 -0
- package/dist/internal/reorder.d.ts +47 -0
- package/dist/internal/reorder.d.ts.map +1 -0
- package/dist/internal/reorder.js +250 -0
- package/dist/internal/reorder.js.map +1 -0
- package/dist/internal/scope.d.ts +28 -0
- package/dist/internal/scope.d.ts.map +1 -0
- package/dist/internal/scope.js +44 -0
- package/dist/internal/scope.js.map +1 -0
- package/dist/internal/server.d.ts +13 -0
- package/dist/internal/server.d.ts.map +1 -0
- package/dist/internal/server.js +13 -0
- package/dist/internal/server.js.map +1 -0
- package/dist/internal/server.node.d.ts +8 -0
- package/dist/internal/server.node.d.ts.map +1 -0
- package/dist/internal/server.node.js +8 -0
- package/dist/internal/server.node.js.map +1 -0
- package/dist/internal/services.d.ts +222 -0
- package/dist/internal/services.d.ts.map +1 -0
- package/dist/internal/services.js +338 -0
- package/dist/internal/services.js.map +1 -0
- package/dist/internal/tree.d.ts +71 -0
- package/dist/internal/tree.d.ts.map +1 -0
- package/dist/internal/tree.js +207 -0
- package/dist/internal/tree.js.map +1 -0
- package/dist/internal/variant-node.d.ts +62 -0
- package/dist/internal/variant-node.d.ts.map +1 -0
- package/dist/internal/variant-node.js +279 -0
- package/dist/internal/variant-node.js.map +1 -0
- package/dist/internal/view-transition.d.ts +10 -0
- package/dist/internal/view-transition.d.ts.map +1 -0
- package/dist/internal/view-transition.js +36 -0
- package/dist/internal/view-transition.js.map +1 -0
- package/dist/internal/walk.d.ts +26 -0
- package/dist/internal/walk.d.ts.map +1 -0
- package/dist/internal/walk.js +162 -0
- package/dist/internal/walk.js.map +1 -0
- package/package.json +99 -4
- package/src/AnimationControls.ts +46 -0
- package/src/AnimationScope.ts +19 -0
- package/src/DragControls.ts +27 -0
- package/src/Features.ts +45 -0
- package/src/Ward.ts +434 -0
- package/src/Wardic.ts +410 -0
- package/src/index.ts +20 -0
- package/src/internal/builder.ts +262 -0
- package/src/internal/commands.ts +359 -0
- package/src/internal/delivery.ts +116 -0
- package/src/internal/dev.production.ts +7 -0
- package/src/internal/dev.ts +9 -0
- package/src/internal/drag.ts +136 -0
- package/src/internal/element.ts +668 -0
- package/src/internal/gestures.ts +184 -0
- package/src/internal/hydrate.ts +29 -0
- package/src/internal/keys.ts +19 -0
- package/src/internal/layout.ts +109 -0
- package/src/internal/mount.ts +124 -0
- package/src/internal/presence.ts +362 -0
- package/src/internal/reactivity.ts +45 -0
- package/src/internal/reorder.ts +313 -0
- package/src/internal/scope.ts +60 -0
- package/src/internal/server.node.ts +7 -0
- package/src/internal/server.ts +12 -0
- package/src/internal/services.ts +486 -0
- package/src/internal/tree.ts +230 -0
- package/src/internal/variant-node.ts +352 -0
- package/src/internal/view-transition.ts +43 -0
- package/src/internal/walk.ts +211 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `wardic.html(h)` (ADR-0071, decision 18): the builder `w`, made once per `h`. It holds `h`'s element
|
|
3
|
+
* factories, `keyed`, and Wardic's attribute factories, and no more (#791, Q5): Foldkit's own
|
|
4
|
+
* attributes stay on `h`. A `w.*` element folds its Wardic attributes into one config, renders one
|
|
5
|
+
* `h.Style` (the user's style with the Starting style on top), one `wardic` property (the Delivery),
|
|
6
|
+
* and one Mount (fused with the user's), and stamps a Foldkit identity (decision 19), so it's never
|
|
7
|
+
* kept where a plain element was (P2).
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
import * as Appear from "@wardic/dom/Appear";
|
|
12
|
+
import * as Arr from "effect/Array";
|
|
13
|
+
import * as Bool from "effect/Boolean";
|
|
14
|
+
import { constFalse, identity } from "effect/Function";
|
|
15
|
+
import * as Option from "effect/Option";
|
|
16
|
+
import * as Predicate from "effect/Predicate";
|
|
17
|
+
import * as Rec from "effect/Record";
|
|
18
|
+
import * as Str from "effect/String";
|
|
19
|
+
import * as UndefinedOr from "effect/UndefinedOr";
|
|
20
|
+
import { brandViewResult } from "foldkit/brand";
|
|
21
|
+
import * as Ward from "../Ward.js";
|
|
22
|
+
import { propertyOf } from "./delivery.js";
|
|
23
|
+
import { startingStyleOf, stringified } from "./element.js";
|
|
24
|
+
import { mountOf } from "./mount.js";
|
|
25
|
+
import { noteServerRender, registryOf, snapshotPopLayouts } from "./services.js";
|
|
26
|
+
import { walkProvider } from "./walk.js";
|
|
27
|
+
import { DEV } from "@wardic/foldkit/internal/dev";
|
|
28
|
+
import { IS_SERVER } from "@wardic/foldkit/internal/server";
|
|
29
|
+
/** The one identity every `w.*` element is stamped with (#791, Q8). */
|
|
30
|
+
const IDENTITY = "@wardic/foldkit";
|
|
31
|
+
/** Whether a `w.Presence` is a `popLayout` one. */
|
|
32
|
+
const isPopLayout = (presence) => UndefinedOr.match(presence, { onUndefined: constFalse, onDefined: (options) => options.mode === "popLayout" });
|
|
33
|
+
/** A Wardic attribute for `key`: what `w.Initial(…)` and the rest return. */
|
|
34
|
+
const attribute = (key, value) => ({ [Ward.TypeId]: key, value });
|
|
35
|
+
/** A Foldkit attribute of `_tag`. */
|
|
36
|
+
const tagged = (attribute, tag) => Predicate.hasProperty(attribute, "_tag") && attribute._tag === tag;
|
|
37
|
+
/** A function in `w.Style`: a Live value on Foldkit is an Atom (#791, Q4). Development only. */
|
|
38
|
+
const functionInStyle = (key) => `wardic: \`${key}\` in w.Style is a function. A Live value on Foldkit is an Atom (effect/reactivity): make one, and set it from a Command or a Live value helper.`;
|
|
39
|
+
/** `w.Text` beside children: the Atom owns the element's text (#791, Q24). Development only. */
|
|
40
|
+
const TEXT_WITH_CHILDREN = "wardic: a w.* element with w.Text(atom) takes no children: the Atom owns its text. Drop the children, or the Text.";
|
|
41
|
+
/** A key in both the user's `h.Style` and `w.Style`: two writers would own it (#791, Q7). Development only. */
|
|
42
|
+
const overlapping = (key) => `wardic: \`${key}\` is in both h.Style and w.Style on one w.* element. Give a key to one of them: w.Style for what Wardic animates or holds, h.Style for the rest.`;
|
|
43
|
+
/** `attributes`, folded (above). Per element per render. */
|
|
44
|
+
const fold = (attributes) => {
|
|
45
|
+
const folded = { config: {}, style: undefined, mount: undefined, provider: undefined, rest: [] };
|
|
46
|
+
const config = {};
|
|
47
|
+
Arr.forEach(attributes, (attribute) => {
|
|
48
|
+
if (Ward.isAttribute(attribute)) {
|
|
49
|
+
if (attribute[Ward.TypeId] === "provider") {
|
|
50
|
+
folded.provider = attribute.value;
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
config[attribute[Ward.TypeId]] = attribute.value;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (tagged(attribute, "Style")) {
|
|
57
|
+
folded.style = attribute.value;
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (tagged(attribute, "OnMount")) {
|
|
61
|
+
folded.mount = attribute.action;
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
folded.rest.push(attribute);
|
|
65
|
+
});
|
|
66
|
+
// A Reorder item is a layout element (#793, Q17): `true` unless `w.Layout("position")` is beside it.
|
|
67
|
+
if (Bool.and(Predicate.isNotUndefined(config.reorderItem), Predicate.isUndefined(config.layout)))
|
|
68
|
+
config.layout = true;
|
|
69
|
+
folded.config = config;
|
|
70
|
+
return folded;
|
|
71
|
+
};
|
|
72
|
+
/** The element's config as delivered: its Wardic keys, its `style` the user's `h.Style` under `w.Style`'s base values. */
|
|
73
|
+
const configOf = (folded) => {
|
|
74
|
+
const own = folded.config.style;
|
|
75
|
+
if (DEV && Predicate.isNotUndefined(own)) {
|
|
76
|
+
const fn = Arr.findFirst(Rec.keys(own), (key) => Predicate.isFunction(own[key]));
|
|
77
|
+
if (Option.isSome(fn))
|
|
78
|
+
throw new Error(functionInStyle(fn.value));
|
|
79
|
+
}
|
|
80
|
+
const user = folded.style;
|
|
81
|
+
if (Predicate.isUndefined(user))
|
|
82
|
+
return folded.config;
|
|
83
|
+
if (Predicate.isUndefined(own))
|
|
84
|
+
return { ...folded.config, style: user };
|
|
85
|
+
if (DEV) {
|
|
86
|
+
const both = Arr.findFirst(Rec.keys(user), (key) => Object.hasOwn(own, key));
|
|
87
|
+
if (Option.isSome(both))
|
|
88
|
+
throw new Error(overlapping(both.value));
|
|
89
|
+
}
|
|
90
|
+
return { ...folded.config, style: { ...user, ...own } };
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* The attributes a `w.*` element renders for `folded`, after the user's own: its one `h.Style`, the
|
|
94
|
+
* Starting style's SVG attributes, its `wardic` property and its Mount.
|
|
95
|
+
*/
|
|
96
|
+
const wardAttributes = (state, h, tag, folded) => {
|
|
97
|
+
const config = configOf(folded);
|
|
98
|
+
const starting = startingStyleOf(tag, config, registryOf(state));
|
|
99
|
+
return [
|
|
100
|
+
...folded.rest,
|
|
101
|
+
h.Style(stringified(starting)),
|
|
102
|
+
propertyOf(h, config),
|
|
103
|
+
h.OnMount(mountOf(state, { provider: folded.provider, user: folded.mount, presence: Predicate.isNotUndefined(folded.config.presence), reorder: Predicate.isNotUndefined(folded.config.reorderGroup) })),
|
|
104
|
+
];
|
|
105
|
+
};
|
|
106
|
+
/** A `w.*` element: folded, rendered through Foldkit's `make`, and stamped. The Provider element walks its subtree once built (#794, Q7). */
|
|
107
|
+
const elementOf = (state, h, tag, make, attributes, children) => {
|
|
108
|
+
const folded = fold(attributes);
|
|
109
|
+
if (DEV && Predicate.isNotUndefined(folded.config.text) && Predicate.isNotUndefined(children) && children.length > 0)
|
|
110
|
+
throw new Error(TEXT_WITH_CHILDREN);
|
|
111
|
+
// A `popLayout` presence rendering (#840): every live one's children measured now, before this render's patch moves a leaver.
|
|
112
|
+
if (!IS_SERVER && isPopLayout(folded.config.presence))
|
|
113
|
+
snapshotPopLayouts(state);
|
|
114
|
+
const node = brandViewResult(make(wardAttributes(state, h, tag, folded), children), IDENTITY);
|
|
115
|
+
if (IS_SERVER && DEV)
|
|
116
|
+
noteServerRender(state, Predicate.isNotUndefined(folded.provider));
|
|
117
|
+
// The Provider element's subtree exists by now, children before their parent: each Variant child's
|
|
118
|
+
// inherited Starting style goes into its node, for the server's HTML and the hydration render alike,
|
|
119
|
+
// and on a server each element's Appear animation, whose rules the Provider element renders (PR 2).
|
|
120
|
+
// Foldkit's node type isn't an export: the walk reads it by its shape, through `unknown`.
|
|
121
|
+
if (Bool.and(Predicate.isNotUndefined(folded.provider), Predicate.isNotNull(node))) {
|
|
122
|
+
const view = node;
|
|
123
|
+
const css = walkProvider(view, state);
|
|
124
|
+
if (Str.isNonEmpty(css))
|
|
125
|
+
prependChunk(h, view, css, state.server.nonce);
|
|
126
|
+
}
|
|
127
|
+
return node;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* The chunk `<style>` with the render's Appear rules (ADR-0044 *Amendment (#245)*; #794, Q4), put first
|
|
131
|
+
* among the Provider element's children: Foldkit serialises a `<style>`'s text verbatim, and the
|
|
132
|
+
* client moves the chunk into the head before it hydrates (PR 3). With a `nonce`, it carries it.
|
|
133
|
+
*/
|
|
134
|
+
const prependChunk = (h, node, css, nonce) => {
|
|
135
|
+
const attributes = [h.Attribute(Appear.CHUNK_ATTRIBUTE, ""), ...UndefinedOr.match(nonce, { onUndefined: () => [], onDefined: (value) => [h.Attribute("nonce", value)] })];
|
|
136
|
+
const chunk = h.style(attributes, [css]);
|
|
137
|
+
node.children = Arr.prepend(UndefinedOr.match(node.children, { onUndefined: () => [], onDefined: identity }), chunk);
|
|
138
|
+
};
|
|
139
|
+
/** Whether `key` names one of `h`'s element factories: a lowercase name, a function, and neither `keyed` nor `submodel`. */
|
|
140
|
+
const isTag = (h, key) => {
|
|
141
|
+
if (key === "keyed")
|
|
142
|
+
return false;
|
|
143
|
+
if (key === "submodel")
|
|
144
|
+
return false;
|
|
145
|
+
if (!Str.isNonEmpty(key))
|
|
146
|
+
return false;
|
|
147
|
+
if (key.charAt(0) !== key.charAt(0).toLowerCase())
|
|
148
|
+
return false;
|
|
149
|
+
return Predicate.isFunction(h[key]);
|
|
150
|
+
};
|
|
151
|
+
/** The builder `w` for `h` (above). Its type is `Wardic.Html<Message, F>`. */
|
|
152
|
+
export const builderOf = (state, h) => {
|
|
153
|
+
const w = {};
|
|
154
|
+
const factories = h;
|
|
155
|
+
Arr.forEach(Arr.filter(Rec.keys(h), (key) => isTag(h, key)), (tag) => {
|
|
156
|
+
const make = factories[tag];
|
|
157
|
+
w[tag] = (attributes, children) => elementOf(state, h, tag, make, attributes, children);
|
|
158
|
+
});
|
|
159
|
+
w.keyed = (tag) => {
|
|
160
|
+
const keyed = h.keyed(tag);
|
|
161
|
+
// The key rides in the element's config (#792, Q4): what a presence pairs a re-entering child with its leaver by.
|
|
162
|
+
return (key, attributes, children) => elementOf(state, h, tag, (attrs, kids) => keyed(key, attrs, kids), [...attributes, attribute("key", key)], children);
|
|
163
|
+
};
|
|
164
|
+
w.attributes = (bundle) => {
|
|
165
|
+
const { mount, ...config } = bundle;
|
|
166
|
+
const folded = { config, style: undefined, mount, provider: undefined, rest: [] };
|
|
167
|
+
return wardAttributes(state, h, undefined, folded);
|
|
168
|
+
};
|
|
169
|
+
w.Provider = (options = {}) => attribute("provider", options);
|
|
170
|
+
w.Initial = (value) => attribute("initial", value);
|
|
171
|
+
w.Animate = (value) => attribute("animate", value);
|
|
172
|
+
w.Transition = (value) => attribute("transition", value);
|
|
173
|
+
w.Style = (value) => attribute("style", value);
|
|
174
|
+
w.Variants = (value) => attribute("variants", value);
|
|
175
|
+
w.Custom = (value) => attribute("custom", value);
|
|
176
|
+
w.Inherit = (value) => attribute("inherit", value);
|
|
177
|
+
w.Appear = (value) => attribute("appear", value);
|
|
178
|
+
w.Config = (options) => attribute("config", options);
|
|
179
|
+
w.OnAnimationStart = (handler) => attribute("animationStart", handler);
|
|
180
|
+
w.OnAnimationComplete = (handler) => attribute("animationComplete", handler);
|
|
181
|
+
w.Text = (atom) => attribute("text", atom);
|
|
182
|
+
w.OnUpdate = (atom) => attribute("onUpdate", atom);
|
|
183
|
+
w.TransformTemplate = (template) => attribute("transformTemplate", template);
|
|
184
|
+
w.Exit = (value) => attribute("exit", value);
|
|
185
|
+
w.Presence = (options = {}) => attribute("presence", options);
|
|
186
|
+
w.Layout = (value = true) => attribute("layout", value);
|
|
187
|
+
w.LayoutId = (id) => attribute("layoutId", id);
|
|
188
|
+
w.LayoutDependency = (value) => attribute("layoutDependency", value);
|
|
189
|
+
w.LayoutScroll = (value = true) => attribute("layoutScroll", value);
|
|
190
|
+
w.LayoutRoot = (value = true) => attribute("layoutRoot", value);
|
|
191
|
+
w.LayoutCrossfade = (value = true) => attribute("layoutCrossfade", value);
|
|
192
|
+
w.LayoutGroup = (options = {}) => attribute("layoutGroup", options);
|
|
193
|
+
w.OnLayoutAnimationStart = (handler) => attribute("layoutAnimationStart", handler);
|
|
194
|
+
w.OnLayoutAnimationComplete = (handler) => attribute("layoutAnimationComplete", handler);
|
|
195
|
+
w.OnBeforeLayoutMeasure = (fn) => attribute("onBeforeLayoutMeasure", fn);
|
|
196
|
+
w.OnLayoutMeasure = (fn) => attribute("onLayoutMeasure", fn);
|
|
197
|
+
// The gestures (#793, PR 1): each `While*` an entry in the Override stack, each callback a Message (decision 23).
|
|
198
|
+
w.WhileHover = (value) => attribute("whileHover", value);
|
|
199
|
+
w.OnHoverStart = (handler) => attribute("onHoverStart", handler);
|
|
200
|
+
w.OnHoverEnd = (handler) => attribute("onHoverEnd", handler);
|
|
201
|
+
w.WhileTap = (value) => attribute("whileTap", value);
|
|
202
|
+
w.Propagate = (options) => attribute("propagate", options);
|
|
203
|
+
w.OnTapStart = (handler) => attribute("onTapStart", handler);
|
|
204
|
+
w.OnTap = (handler) => attribute("onTap", handler);
|
|
205
|
+
w.OnTapCancel = (handler) => attribute("onTapCancel", handler);
|
|
206
|
+
w.WhileFocus = (value) => attribute("whileFocus", value);
|
|
207
|
+
w.WhileInView = (value) => attribute("whileInView", value);
|
|
208
|
+
w.Viewport = (options) => attribute("viewport", options);
|
|
209
|
+
w.OnViewportEnter = (handler) => attribute("onViewportEnter", handler);
|
|
210
|
+
w.OnViewportLeave = (handler) => attribute("onViewportLeave", handler);
|
|
211
|
+
// The drag (#793, PR 2; ADR-0004): its options read as its track starts, its callbacks Messages.
|
|
212
|
+
w.Drag = (value = true) => attribute("drag", value);
|
|
213
|
+
w.WhileDrag = (value) => attribute("whileDrag", value);
|
|
214
|
+
w.DragConstraints = (value) => attribute("dragConstraints", value);
|
|
215
|
+
w.DragElastic = (value) => attribute("dragElastic", value);
|
|
216
|
+
w.DragMomentum = (value) => attribute("dragMomentum", value);
|
|
217
|
+
w.DragSnapToOrigin = (value = true) => attribute("dragSnapToOrigin", value);
|
|
218
|
+
w.DragTransition = (value) => attribute("dragTransition", value);
|
|
219
|
+
w.DragPropagation = (value = true) => attribute("dragPropagation", value);
|
|
220
|
+
w.DragDirectionLock = (value = true) => attribute("dragDirectionLock", value);
|
|
221
|
+
w.DragListener = (value) => attribute("dragListener", value);
|
|
222
|
+
w.DragControls = (controls) => attribute("dragControls", controls);
|
|
223
|
+
w.StartsDrag = (controls, options) => attribute("startsDrag", { controls, options });
|
|
224
|
+
// The Animation scope (#798, Q7): the element a Command's selectors resolve under.
|
|
225
|
+
w.AnimationScope = (scope) => attribute("animationScope", scope);
|
|
226
|
+
w.OnMeasureDragConstraints = (fn) => attribute("onMeasureDragConstraints", fn);
|
|
227
|
+
w.OnDragStart = (handler) => attribute("onDragStart", handler);
|
|
228
|
+
w.OnDrag = (handler) => attribute("onDrag", handler);
|
|
229
|
+
w.OnDragEnd = (handler) => attribute("onDragEnd", handler);
|
|
230
|
+
w.OnDragTransitionEnd = (handler) => attribute("onDragTransitionEnd", handler);
|
|
231
|
+
w.OnDirectionLock = (handler) => attribute("onDirectionLock", handler);
|
|
232
|
+
// The pan (Q9): each callback a Message.
|
|
233
|
+
w.OnPanSessionStart = (handler) => attribute("onPanSessionStart", handler);
|
|
234
|
+
w.OnPanStart = (handler) => attribute("onPanStart", handler);
|
|
235
|
+
w.OnPan = (handler) => attribute("onPan", handler);
|
|
236
|
+
w.OnPanEnd = (handler) => attribute("onPanEnd", handler);
|
|
237
|
+
// Reorder (#793, PR 3; decision 28): the group's options, and each item's value.
|
|
238
|
+
w.ReorderGroup = (options) => attribute("reorderGroup", options);
|
|
239
|
+
w.ReorderItem = (value) => attribute("reorderItem", { value });
|
|
240
|
+
return w;
|
|
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,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;IAC7G,CAAC,CAAC,QAAQ,GAAG,CAAC,OAAkE,EAAE,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IACnH,iFAAiF;IACjF,CAAC,CAAC,YAAY,GAAG,CAAC,OAAmD,EAAE,EAAE,CAAC,SAAS,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA;IAC5G,CAAC,CAAC,WAAW,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,SAAS,CAAC,aAAa,EAAE,EAAE,KAAK,EAA6B,CAAC,CAAA;IAClG,OAAO,CAAC,CAAA;AACV,CAAC,CAAA"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How Commands get Wardic's services (ADR-0071, decisions 9, 26 and 31; *Amendment (#791)*, PR 3): the
|
|
3
|
+
* seam that differs on Foldkit's preview. On 0.170, the `Wardic` service is the **Handle**, which
|
|
4
|
+
* `wardic.resources` gives a program's Commands, and the two Effects over it: `animate`, an
|
|
5
|
+
* **Imperative animation** of an element or a **Sequence**, under an **Animation scope** when given
|
|
6
|
+
* (#798), and `provide`, which runs an Effect on the Provider's services. Either builds the Provider when none is live, and counts itself in as a member while it
|
|
7
|
+
* runs, so the Provider doesn't close under it.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
import * as LiveValue from "@wardic/core/LiveValue";
|
|
12
|
+
import * as ScrollSource from "@wardic/core/ScrollSource";
|
|
13
|
+
import type * as ProjectionSystem from "@wardic/dom/ProjectionSystem";
|
|
14
|
+
import * as Imperative from "@wardic/dom/unstable/Imperative";
|
|
15
|
+
import * as DomPointer from "@wardic/dom/unstable/PointerValues";
|
|
16
|
+
import * as Context from "effect/Context";
|
|
17
|
+
import * as Effect from "effect/Effect";
|
|
18
|
+
import * as Layer from "effect/Layer";
|
|
19
|
+
import type * as Scope from "effect/Scope";
|
|
20
|
+
import type * as Feature from "@wardic/dom/unstable/Feature";
|
|
21
|
+
import type * as WardConfig from "@wardic/dom/unstable/WardConfig";
|
|
22
|
+
import { type AnimationScope } from "./scope.ts";
|
|
23
|
+
/** The mark of a Handle, as the `Wardic` service carries it: what its Effects reach the Handle's state through. */
|
|
24
|
+
export declare const HANDLE: unique symbol;
|
|
25
|
+
/** A Handle as the `Wardic` service holds it: a mark, so a Command's Effect types no builder. */
|
|
26
|
+
export interface HandleRef {
|
|
27
|
+
readonly [HANDLE]: true;
|
|
28
|
+
}
|
|
29
|
+
declare const Wardic_base: Context.ServiceClass<Wardic, "@wardic/foldkit/Wardic", HandleRef>;
|
|
30
|
+
/** The Wardic service: a program's **Handle**, which `wardic.resources` gives its Commands. */
|
|
31
|
+
export declare class Wardic extends Wardic_base {
|
|
32
|
+
}
|
|
33
|
+
/** The Layer a program's `resources` takes, giving its Commands the Handle (decision 9): read when built, so the Handle can hold it. */
|
|
34
|
+
export declare const resourcesOf: (handle: () => HandleRef) => Layer.Layer<Wardic>;
|
|
35
|
+
/** What `animate` ends with: whether every key landed, or a later animation took its keys (#791, Q21). */
|
|
36
|
+
export interface AnimationEnd {
|
|
37
|
+
readonly landed: boolean;
|
|
38
|
+
}
|
|
39
|
+
declare const AnimationFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
40
|
+
readonly _tag: "AnimationFailed";
|
|
41
|
+
} & Readonly<A>;
|
|
42
|
+
/** `animate` found nothing to animate: a selector matching no element under the root, or an empty list. */
|
|
43
|
+
export declare class AnimationFailed extends AnimationFailed_base<{
|
|
44
|
+
readonly subject: string;
|
|
45
|
+
}> {
|
|
46
|
+
}
|
|
47
|
+
declare const LayoutFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
48
|
+
readonly _tag: "LayoutFailed";
|
|
49
|
+
} & Readonly<A>;
|
|
50
|
+
/** `animateLayout` found no layout to animate: the Handle has no `layout` Feature (`Features.layout`). */
|
|
51
|
+
export declare class LayoutFailed extends LayoutFailed_base<{
|
|
52
|
+
readonly reason: "no-layout-feature";
|
|
53
|
+
}> {
|
|
54
|
+
}
|
|
55
|
+
/** What `animateLayout` takes: dom's options, less `onSettled`, which the Effect's success is. */
|
|
56
|
+
export type AnimateLayoutOptions = Omit<ProjectionSystem.AnimateLayoutOptions, "onSettled">;
|
|
57
|
+
/**
|
|
58
|
+
* A **Declared layout change** (ADR-0071, decision 26; ADR-0038; Motion's `animateLayout`): what a
|
|
59
|
+
* Command runs after the Model change that moved the layout elements, under either trigger, and the
|
|
60
|
+
* only trigger beside `w.LayoutDependency` under `layoutTrigger: "declared"`. It waits for the
|
|
61
|
+
* render's commit (Foldkit's `Render.afterCommit`), then asks for a Measure pass from the boxes the
|
|
62
|
+
* last pass kept (`from: "lastPass"`, the default: the change is on the page by then), and succeeds
|
|
63
|
+
* once every layout animation the pass started has ended, at once if none. Fails with
|
|
64
|
+
* {@link LayoutFailed} when the Handle has no `layout` Feature. Wrap it in `Command.define`, with
|
|
65
|
+
* `resources: wardic.resources` on the program.
|
|
66
|
+
*/
|
|
67
|
+
export declare const animateLayout: (options?: AnimateLayoutOptions) => Effect.Effect<void, LayoutFailed, Wardic>;
|
|
68
|
+
/** What a Command's animation options carry on Foldkit: the scope the binding's, `onComplete` the Effect's success, so neither reaches dom. */
|
|
69
|
+
interface Scoped {
|
|
70
|
+
readonly onComplete?: never;
|
|
71
|
+
readonly scope?: AnimationScope | undefined;
|
|
72
|
+
}
|
|
73
|
+
/** What `animate` takes with a subject: dom's options, less `onComplete`, which the Effect's success is, and the **Animation scope** its selectors resolve under. */
|
|
74
|
+
export type AnimateOptions = Imperative.WardicAnimateOptions & Scoped;
|
|
75
|
+
/** A sequence (Motion's `animate(sequence)`): Segments of elements, function Segments and labels, laid out in time. No Batch Segment: Foldkit has no Batch. */
|
|
76
|
+
export type Sequence = ReadonlyArray<Exclude<Imperative.WardicSegment, Imperative.WardicBatchSegment>>;
|
|
77
|
+
/** What `animate` takes with a sequence: dom's options, less `onComplete`, which the Effect's success is, and the scope. */
|
|
78
|
+
export type SequenceOptions = Imperative.WardicSequenceOptions & Scoped;
|
|
79
|
+
/**
|
|
80
|
+
* `animate`'s two forms (Motion's `animate`, as `useAnimate` gives it): a subject to values, or a
|
|
81
|
+
* sequence. Each an Effect for a Command, succeeding once the animation ends with whether it landed,
|
|
82
|
+
* failing with {@link AnimationFailed} when nothing finds anything to animate, and stopped by its
|
|
83
|
+
* fiber's interruption.
|
|
84
|
+
*/
|
|
85
|
+
export interface Animate {
|
|
86
|
+
/**
|
|
87
|
+
* An **Imperative animation** of `subject`: an element, a selector resolved under `options.scope`'s
|
|
88
|
+
* element, else the `w.Provider()` element, else the document, or a list of elements, to `values` on
|
|
89
|
+
* `options`' transition. A Wardic element animates through its own spine, latest wins, as Motion's; a
|
|
90
|
+
* plain element through a spine of its own. Fails when the subject finds nothing, a scope not mounted
|
|
91
|
+
* included. Wrap it in `Command.define`, with `resources: wardic.resources` on the program.
|
|
92
|
+
*/
|
|
93
|
+
(subject: Imperative.WardicAnimationSubject, values: WardConfig.WardicVariant, options?: AnimateOptions): Effect.Effect<AnimationEnd, AnimationFailed, Wardic>;
|
|
94
|
+
/**
|
|
95
|
+
* A **Sequence**: its Segments laid out in time, labels and `at` among them, played as one animation
|
|
96
|
+
* under `options`. Fails when the whole sequence animates nothing: every Segment of elements found
|
|
97
|
+
* none and no function Segment is in it; a Segment that finds nothing beside ones that do is skipped.
|
|
98
|
+
*/
|
|
99
|
+
(sequence: Sequence, options?: SequenceOptions): Effect.Effect<AnimationEnd, AnimationFailed, Wardic>;
|
|
100
|
+
}
|
|
101
|
+
/** `animate` (above): the form told by what it's given, as dom's own `animate` tells it. */
|
|
102
|
+
export declare const animate: Animate;
|
|
103
|
+
/**
|
|
104
|
+
* `effect` run on the Provider's services (ADR-0071, the grill's Q23): how a Command makes a derived
|
|
105
|
+
* Live value (`LiveValue.spring`, `follow`, `velocity`, `scroll`). The Scope is the caller's: a
|
|
106
|
+
* `ManagedResource`'s `acquire`, whose Scope Foldkit closes when its Model condition drops, or an
|
|
107
|
+
* `Effect.scoped` that ends with the Command. The Provider is held while that Scope lives.
|
|
108
|
+
*/
|
|
109
|
+
export declare const provide: <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Feature.ProviderServices> | Wardic | Scope.Scope>;
|
|
110
|
+
declare const ScrollFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
111
|
+
readonly _tag: "ScrollFailed";
|
|
112
|
+
} & Readonly<A>;
|
|
113
|
+
/** `scroll` found no scroll to read: the Handle wasn't given `Features.scroll`, or a load of it hasn't arrived. */
|
|
114
|
+
export declare class ScrollFailed extends ScrollFailed_base<{
|
|
115
|
+
readonly reason: "no-scroll-feature";
|
|
116
|
+
}> {
|
|
117
|
+
}
|
|
118
|
+
/** What `scroll` takes: Motion's `useScroll` options, the `container` and `target` as elements. */
|
|
119
|
+
export type ScrollOptions = ScrollSource.Options;
|
|
120
|
+
/**
|
|
121
|
+
* A container's scroll as **Live values** (Motion's `useScroll`): how far it's scrolled on each axis,
|
|
122
|
+
* and the progress through its range, or through the offsets a `target` passes, each an Atom a view
|
|
123
|
+
* binds, set within the scroll's own event. Its listeners are held while the caller's Scope lives, as
|
|
124
|
+
* a Live value made under `provide` is. Fails with {@link ScrollFailed} when the Handle has no `scroll`
|
|
125
|
+
* Feature: name it, `Wardic.make({ env, features: [Features.scroll] })`.
|
|
126
|
+
*/
|
|
127
|
+
export declare const scroll: (options?: ScrollOptions) => Effect.Effect<LiveValue.ScrollValues, ScrollFailed, Wardic | Scope.Scope>;
|
|
128
|
+
/** What `pointer` takes: the pointer types that count, a mouse and a pen unless given. */
|
|
129
|
+
export type PointerOptions = DomPointer.Options;
|
|
130
|
+
/** What `pointer` gives: the pointer's place in the element's pixels, its progress across the element's box, the box's size, and whether it's inside, each an Atom. */
|
|
131
|
+
export type PointerValues = DomPointer.PointerValues;
|
|
132
|
+
/**
|
|
133
|
+
* The pointer over an element as **Live values**: where it is in the element's pixels, from the box's
|
|
134
|
+
* top left; its progress across the box, from 0 to 1 each way; the box's size; and whether it's
|
|
135
|
+
* inside, each an Atom a view binds, set within the pointer's own events (`pointerenter`,
|
|
136
|
+
* `pointermove`, `pointerdown`, `pointerleave`). A leave keeps the place: what returns to rest with
|
|
137
|
+
* it is a derived Atom over `inside`. Its listeners are held while the caller's Scope lives, as a
|
|
138
|
+
* Live value made under `provide` is. A mouse and a pen count unless `types` says; a finger never
|
|
139
|
+
* hovers. Plain pointer events, not the hover gesture: no Feature to name, nothing to fail.
|
|
140
|
+
*/
|
|
141
|
+
export declare const pointer: (element: Element, options?: PointerOptions) => Effect.Effect<PointerValues, never, Wardic | Scope.Scope>;
|
|
142
|
+
export {};
|
|
143
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/internal/commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAA;AACnD,OAAO,KAAK,YAAY,MAAM,2BAA2B,CAAA;AAEzD,OAAO,KAAK,KAAK,gBAAgB,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,UAAU,MAAM,oCAAoC,CAAA;AAGhE,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,KAAK,MAAM,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