@manyducks.co/dolla 2.0.0-alpha.25 → 2.0.0-alpha.26
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/core/markup.d.ts +1 -6
- package/dist/core/nodes/observer.d.ts +5 -6
- package/dist/core/nodes/outlet.d.ts +1 -1
- package/dist/core/nodes/repeat.d.ts +1 -2
- package/dist/index.js +2 -2
- package/dist/jsx-dev-runtime.js +2 -2
- package/dist/jsx-runtime.js +2 -2
- package/dist/passthrough-CACEgFx5.js +1301 -0
- package/dist/passthrough-CACEgFx5.js.map +1 -0
- package/package.json +1 -1
- package/dist/core/nodes/cond.d.ts +0 -28
- package/dist/passthrough-D_L3EUe_.js +0 -1350
- package/dist/passthrough-D_L3EUe_.js.map +0 -1
package/dist/core/markup.d.ts
CHANGED
|
@@ -57,18 +57,13 @@ export interface MarkupAttributes {
|
|
|
57
57
|
$text: {
|
|
58
58
|
value: MaybeState<Stringable>;
|
|
59
59
|
};
|
|
60
|
-
$cond: {
|
|
61
|
-
$predicate: State<any>;
|
|
62
|
-
thenContent?: Renderable;
|
|
63
|
-
elseContent?: Renderable;
|
|
64
|
-
};
|
|
65
60
|
$repeat: {
|
|
66
61
|
$items: State<any[]>;
|
|
67
62
|
keyFn: (value: any, index: number) => string | number | symbol;
|
|
68
63
|
renderFn: ($item: State<any>, $index: State<number>, c: ViewContext) => ViewResult;
|
|
69
64
|
};
|
|
70
65
|
$observer: {
|
|
71
|
-
|
|
66
|
+
sources: MaybeState<any>[];
|
|
72
67
|
renderFn: (...items: any) => Renderable;
|
|
73
68
|
};
|
|
74
69
|
$outlet: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Renderable } from "../../types.js";
|
|
2
2
|
import { type ElementContext, type MarkupElement } from "../markup.js";
|
|
3
|
-
import { type
|
|
3
|
+
import { type MaybeState } from "../state.js";
|
|
4
4
|
import { TYPE_MARKUP_ELEMENT } from "../symbols.js";
|
|
5
5
|
interface ObserverOptions {
|
|
6
6
|
elementContext: ElementContext;
|
|
7
|
-
|
|
7
|
+
sources: MaybeState<any>[];
|
|
8
8
|
renderFn: (...values: any) => Renderable;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -13,15 +13,14 @@ interface ObserverOptions {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class Observer implements MarkupElement {
|
|
15
15
|
[TYPE_MARKUP_ELEMENT]: boolean;
|
|
16
|
-
node:
|
|
17
|
-
endNode: Node;
|
|
16
|
+
node: Text;
|
|
18
17
|
children: MarkupElement[];
|
|
19
18
|
renderFn: (...values: any) => Renderable;
|
|
20
19
|
elementContext: ElementContext;
|
|
21
20
|
watcher: import("../state.js").StateWatcher;
|
|
22
|
-
sources:
|
|
21
|
+
sources: MaybeState<any>[];
|
|
23
22
|
get isMounted(): boolean;
|
|
24
|
-
constructor({
|
|
23
|
+
constructor({ sources, renderFn, elementContext }: ObserverOptions);
|
|
25
24
|
mount(parent: Node, after?: Node): void;
|
|
26
25
|
unmount(parentIsUnmounting?: boolean): void;
|
|
27
26
|
cleanup(parentIsUnmounting: boolean): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MarkupElement } from "../markup.js";
|
|
2
|
-
import { MaybeState, type StopFunction } from "../state.js";
|
|
2
|
+
import { type MaybeState, type StopFunction } from "../state.js";
|
|
3
3
|
import { TYPE_MARKUP_ELEMENT } from "../symbols.js";
|
|
4
4
|
/**
|
|
5
5
|
* Manages several MarkupElements as one.
|
|
@@ -18,8 +18,7 @@ type ConnectedItem<T> = {
|
|
|
18
18
|
};
|
|
19
19
|
export declare class Repeat<T> implements MarkupElement {
|
|
20
20
|
[TYPE_MARKUP_ELEMENT]: boolean;
|
|
21
|
-
node:
|
|
22
|
-
endNode: Node;
|
|
21
|
+
node: Text;
|
|
23
22
|
$items: State<T[]>;
|
|
24
23
|
stopCallback?: StopFunction;
|
|
25
24
|
connectedItems: ConnectedItem<T>[];
|
package/dist/index.js
CHANGED
|
@@ -13,8 +13,8 @@ var Y = (o, e, t, r) => ({
|
|
|
13
13
|
return a(o, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { h as Ie, c as it, i as ke, a as Ve, d as F, b as k, e as ot, f as te, t as We, g as Qe, j as lt, s as _e, k as Ge, P as Je, l as Be, m as ze, n as ct, o as ht, p as ut, q as ft, r as dt, u as He, v as mt, w as be, x as $e, V as gt, y as pt, z as wt } from "./passthrough-
|
|
17
|
-
import { B as zt, C as Ht, A as Kt } from "./passthrough-
|
|
16
|
+
import { h as Ie, c as it, i as ke, a as Ve, d as F, b as k, e as ot, f as te, t as We, g as Qe, j as lt, s as _e, k as Ge, P as Je, l as Be, m as ze, n as ct, o as ht, p as ut, q as ft, r as dt, u as He, v as mt, w as be, x as $e, V as gt, y as pt, z as wt } from "./passthrough-CACEgFx5.js";
|
|
17
|
+
import { B as zt, C as Ht, A as Kt } from "./passthrough-CACEgFx5.js";
|
|
18
18
|
function yt(o) {
|
|
19
19
|
return Ie`
|
|
20
20
|
<div
|
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as s } from "./passthrough-
|
|
2
|
-
import { P as m } from "./passthrough-
|
|
1
|
+
import { v as s } from "./passthrough-CACEgFx5.js";
|
|
2
|
+
import { P as m } from "./passthrough-CACEgFx5.js";
|
|
3
3
|
function d(n, r, t, e, a, l) {
|
|
4
4
|
const i = { ...o(["children", "key"], r) }, c = Array.isArray(r.children) ? r.children : [r.children];
|
|
5
5
|
return s(n, i, ...c);
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as t } from "./passthrough-
|
|
2
|
-
import { P as l } from "./passthrough-
|
|
1
|
+
import { v as t } from "./passthrough-CACEgFx5.js";
|
|
2
|
+
import { P as l } from "./passthrough-CACEgFx5.js";
|
|
3
3
|
function d(n, e, r) {
|
|
4
4
|
return t(n, e ? { ...u(["children", "key"], e) } : void 0, e.children);
|
|
5
5
|
}
|