@manyducks.co/dolla 2.0.0-alpha.6 → 2.0.0-alpha.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 +8 -7
- package/dist/index.js +96 -92
- package/dist/index.js.map +1 -1
- package/dist/jsx-dev-runtime.js +2 -2
- package/dist/jsx-runtime.js +2 -2
- package/dist/markup.d.ts +8 -0
- package/dist/{passthrough-CW8Ezjg-.js → passthrough-BVaqqjam.js} +283 -261
- package/dist/passthrough-BVaqqjam.js.map +1 -0
- package/dist/view.d.ts +16 -1
- package/notes/context-vars.md +21 -0
- package/notes/route-middleware.md +42 -0
- package/package.json +1 -1
- package/dist/passthrough-CW8Ezjg-.js.map +0 -1
package/dist/jsx-dev-runtime.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as s } from "./passthrough-
|
|
2
|
-
import { P as m } from "./passthrough-
|
|
1
|
+
import { r as s } from "./passthrough-BVaqqjam.js";
|
|
2
|
+
import { P as m } from "./passthrough-BVaqqjam.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 { r as t } from "./passthrough-
|
|
2
|
-
import { P as l } from "./passthrough-
|
|
1
|
+
import { r as t } from "./passthrough-BVaqqjam.js";
|
|
2
|
+
import { P as l } from "./passthrough-BVaqqjam.js";
|
|
3
3
|
function d(n, e, r) {
|
|
4
4
|
return t(n, e ? { ...u(["children", "key"], e) } : void 0, e.children);
|
|
5
5
|
}
|
package/dist/markup.d.ts
CHANGED
|
@@ -7,6 +7,14 @@ export interface ElementContext {
|
|
|
7
7
|
* The root Dolla instance this element belongs to.
|
|
8
8
|
*/
|
|
9
9
|
root: Dolla;
|
|
10
|
+
/**
|
|
11
|
+
* Storage for context variables.
|
|
12
|
+
*/
|
|
13
|
+
data: Record<string | symbol, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* A reference to the parent context.
|
|
16
|
+
*/
|
|
17
|
+
parent?: ElementContext;
|
|
10
18
|
/**
|
|
11
19
|
* Whether to create DOM nodes in the SVG namespace. An `<svg>` element will set this to true and pass it down to children.
|
|
12
20
|
*/
|