rask-ui 0.2.5 → 0.2.6
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/vdom/AbstractVNode.d.ts +20 -1
- package/dist/vdom/AbstractVNode.d.ts.map +1 -1
- package/dist/vdom/AbstractVNode.js +142 -11
- package/dist/vdom/ComponentVNode.d.ts +2 -2
- package/dist/vdom/ComponentVNode.d.ts.map +1 -1
- package/dist/vdom/ComponentVNode.js +10 -5
- package/dist/vdom/ElementVNode.d.ts +2 -8
- package/dist/vdom/ElementVNode.d.ts.map +1 -1
- package/dist/vdom/ElementVNode.js +11 -31
- package/dist/vdom/FragmentVNode.d.ts +2 -2
- package/dist/vdom/FragmentVNode.d.ts.map +1 -1
- package/dist/vdom/FragmentVNode.js +11 -6
- package/dist/vdom/RootVNode.d.ts +2 -2
- package/dist/vdom/RootVNode.d.ts.map +1 -1
- package/dist/vdom/RootVNode.js +7 -5
- package/package.json +1 -1
- package/dist/component.d.ts +0 -38
- package/dist/component.d.ts.map +0 -1
- package/dist/component.js +0 -130
- package/dist/context.d.ts +0 -5
- package/dist/context.d.ts.map +0 -1
- package/dist/context.js +0 -29
- package/dist/createAsync.test.d.ts +0 -2
- package/dist/createAsync.test.d.ts.map +0 -1
- package/dist/createAsync.test.js +0 -110
- package/dist/createAsyncState.d.ts +0 -16
- package/dist/createAsyncState.d.ts.map +0 -1
- package/dist/createAsyncState.js +0 -24
- package/dist/createContext.test.d.ts +0 -2
- package/dist/createContext.test.d.ts.map +0 -1
- package/dist/createContext.test.js +0 -136
- package/dist/createMutation.test.d.ts +0 -2
- package/dist/createMutation.test.d.ts.map +0 -1
- package/dist/createMutation.test.js +0 -168
- package/dist/createQuery.test.d.ts +0 -2
- package/dist/createQuery.test.d.ts.map +0 -1
- package/dist/createQuery.test.js +0 -156
- package/dist/createRef.test.d.ts +0 -2
- package/dist/createRef.test.d.ts.map +0 -1
- package/dist/createRef.test.js +0 -80
- package/dist/createState.test.d.ts +0 -2
- package/dist/createState.test.d.ts.map +0 -1
- package/dist/createState.test.js +0 -111
- package/dist/createView.test.d.ts +0 -2
- package/dist/createView.test.d.ts.map +0 -1
- package/dist/createView.test.js +0 -203
- package/dist/error.test.d.ts +0 -2
- package/dist/error.test.d.ts.map +0 -1
- package/dist/error.test.js +0 -144
- package/dist/integration.test.d.ts +0 -2
- package/dist/integration.test.d.ts.map +0 -1
- package/dist/integration.test.js +0 -155
- package/dist/jsx.d.ts.map +0 -1
- package/dist/jsx.js +0 -42
- package/dist/observation.test.d.ts +0 -2
- package/dist/observation.test.d.ts.map +0 -1
- package/dist/observation.test.js +0 -113
- package/dist/render-test.d.ts +0 -2
- package/dist/render-test.d.ts.map +0 -1
- package/dist/render-test.js +0 -21
- package/dist/render.d.ts +0 -7
- package/dist/render.d.ts.map +0 -1
- package/dist/render.js +0 -77
- package/dist/suspense.d.ts +0 -25
- package/dist/suspense.d.ts.map +0 -1
- package/dist/suspense.js +0 -97
- package/dist/tests/class.test.d.ts +0 -2
- package/dist/tests/class.test.d.ts.map +0 -1
- package/dist/tests/class.test.js +0 -185
- package/dist/tests/complex-rendering.test.d.ts +0 -2
- package/dist/tests/complex-rendering.test.d.ts.map +0 -1
- package/dist/tests/complex-rendering.test.js +0 -400
- package/dist/tests/component.cleanup.test.d.ts +0 -2
- package/dist/tests/component.cleanup.test.d.ts.map +0 -1
- package/dist/tests/component.cleanup.test.js +0 -325
- package/dist/tests/component.counter.test.d.ts +0 -2
- package/dist/tests/component.counter.test.d.ts.map +0 -1
- package/dist/tests/component.counter.test.js +0 -124
- package/dist/tests/component.interaction.test.d.ts +0 -2
- package/dist/tests/component.interaction.test.d.ts.map +0 -1
- package/dist/tests/component.interaction.test.js +0 -73
- package/dist/tests/component.props.test.d.ts +0 -2
- package/dist/tests/component.props.test.d.ts.map +0 -1
- package/dist/tests/component.props.test.js +0 -334
- package/dist/tests/component.return-types.test.d.ts +0 -2
- package/dist/tests/component.return-types.test.d.ts.map +0 -1
- package/dist/tests/component.return-types.test.js +0 -357
- package/dist/tests/component.state.test.d.ts +0 -2
- package/dist/tests/component.state.test.d.ts.map +0 -1
- package/dist/tests/component.state.test.js +0 -135
- package/dist/tests/component.test.d.ts +0 -2
- package/dist/tests/component.test.d.ts.map +0 -1
- package/dist/tests/component.test.js +0 -63
- package/dist/tests/createAsync.test.d.ts +0 -2
- package/dist/tests/createAsync.test.d.ts.map +0 -1
- package/dist/tests/createAsync.test.js +0 -110
- package/dist/tests/createContext.test.d.ts +0 -2
- package/dist/tests/createContext.test.d.ts.map +0 -1
- package/dist/tests/createContext.test.js +0 -141
- package/dist/tests/createMutation.test.d.ts +0 -2
- package/dist/tests/createMutation.test.d.ts.map +0 -1
- package/dist/tests/createMutation.test.js +0 -168
- package/dist/tests/createQuery.test.d.ts +0 -2
- package/dist/tests/createQuery.test.d.ts.map +0 -1
- package/dist/tests/createQuery.test.js +0 -156
- package/dist/tests/createRef.test.d.ts +0 -2
- package/dist/tests/createRef.test.d.ts.map +0 -1
- package/dist/tests/createRef.test.js +0 -84
- package/dist/tests/createState.test.d.ts +0 -2
- package/dist/tests/createState.test.d.ts.map +0 -1
- package/dist/tests/createState.test.js +0 -103
- package/dist/tests/createView.test.d.ts +0 -2
- package/dist/tests/createView.test.d.ts.map +0 -1
- package/dist/tests/createView.test.js +0 -203
- package/dist/tests/edge-cases.test.d.ts +0 -2
- package/dist/tests/edge-cases.test.d.ts.map +0 -1
- package/dist/tests/edge-cases.test.js +0 -637
- package/dist/tests/error-no-boundary.test.d.ts +0 -2
- package/dist/tests/error-no-boundary.test.d.ts.map +0 -1
- package/dist/tests/error-no-boundary.test.js +0 -174
- package/dist/tests/error.test.d.ts +0 -2
- package/dist/tests/error.test.d.ts.map +0 -1
- package/dist/tests/error.test.js +0 -199
- package/dist/tests/fragment.test.d.ts +0 -2
- package/dist/tests/fragment.test.d.ts.map +0 -1
- package/dist/tests/fragment.test.js +0 -618
- package/dist/tests/integration.test.d.ts +0 -2
- package/dist/tests/integration.test.d.ts.map +0 -1
- package/dist/tests/integration.test.js +0 -192
- package/dist/tests/keys.test.d.ts +0 -2
- package/dist/tests/keys.test.d.ts.map +0 -1
- package/dist/tests/keys.test.js +0 -293
- package/dist/tests/mount.test.d.ts +0 -2
- package/dist/tests/mount.test.d.ts.map +0 -1
- package/dist/tests/mount.test.js +0 -91
- package/dist/tests/observation.test.d.ts +0 -2
- package/dist/tests/observation.test.d.ts.map +0 -1
- package/dist/tests/observation.test.js +0 -113
- package/dist/tests/patch.test.d.ts +0 -2
- package/dist/tests/patch.test.d.ts.map +0 -1
- package/dist/tests/patch.test.js +0 -498
- package/dist/tests/patchChildren.test.d.ts +0 -2
- package/dist/tests/patchChildren.test.d.ts.map +0 -1
- package/dist/tests/patchChildren.test.js +0 -405
- package/dist/tests/primitives.test.d.ts +0 -2
- package/dist/tests/primitives.test.d.ts.map +0 -1
- package/dist/tests/primitives.test.js +0 -132
- package/dist/vdom/class.test.d.ts +0 -2
- package/dist/vdom/class.test.d.ts.map +0 -1
- package/dist/vdom/class.test.js +0 -143
- package/dist/vdom/complex-rendering.test.d.ts +0 -2
- package/dist/vdom/complex-rendering.test.d.ts.map +0 -1
- package/dist/vdom/complex-rendering.test.js +0 -400
- package/dist/vdom/component.cleanup.test.d.ts +0 -2
- package/dist/vdom/component.cleanup.test.d.ts.map +0 -1
- package/dist/vdom/component.cleanup.test.js +0 -323
- package/dist/vdom/component.counter.test.d.ts +0 -2
- package/dist/vdom/component.counter.test.d.ts.map +0 -1
- package/dist/vdom/component.counter.test.js +0 -124
- package/dist/vdom/component.interaction.test.d.ts +0 -2
- package/dist/vdom/component.interaction.test.d.ts.map +0 -1
- package/dist/vdom/component.interaction.test.js +0 -73
- package/dist/vdom/component.props.test.d.ts +0 -2
- package/dist/vdom/component.props.test.d.ts.map +0 -1
- package/dist/vdom/component.props.test.js +0 -88
- package/dist/vdom/component.return-types.test.d.ts +0 -2
- package/dist/vdom/component.return-types.test.d.ts.map +0 -1
- package/dist/vdom/component.return-types.test.js +0 -357
- package/dist/vdom/component.state.test.d.ts +0 -2
- package/dist/vdom/component.state.test.d.ts.map +0 -1
- package/dist/vdom/component.state.test.js +0 -129
- package/dist/vdom/component.test.d.ts +0 -2
- package/dist/vdom/component.test.d.ts.map +0 -1
- package/dist/vdom/component.test.js +0 -63
- package/dist/vdom/edge-cases.test.d.ts +0 -2
- package/dist/vdom/edge-cases.test.d.ts.map +0 -1
- package/dist/vdom/edge-cases.test.js +0 -637
- package/dist/vdom/fragment.test.d.ts +0 -2
- package/dist/vdom/fragment.test.d.ts.map +0 -1
- package/dist/vdom/fragment.test.js +0 -618
- package/dist/vdom/keys.test.d.ts +0 -2
- package/dist/vdom/keys.test.d.ts.map +0 -1
- package/dist/vdom/keys.test.js +0 -293
- package/dist/vdom/mount.test.d.ts +0 -2
- package/dist/vdom/mount.test.d.ts.map +0 -1
- package/dist/vdom/mount.test.js +0 -91
- package/dist/vdom/patch.test.d.ts +0 -2
- package/dist/vdom/patch.test.d.ts.map +0 -1
- package/dist/vdom/patch.test.js +0 -498
- package/dist/vdom/patchChildren.test.d.ts +0 -2
- package/dist/vdom/patchChildren.test.d.ts.map +0 -1
- package/dist/vdom/patchChildren.test.js +0 -392
- package/dist/vdom/primitives.test.d.ts +0 -2
- package/dist/vdom/primitives.test.d.ts.map +0 -1
- package/dist/vdom/primitives.test.js +0 -132
package/dist/error.test.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "./jsx-runtime";
|
|
2
|
-
import { describe, it, expect } from "vitest";
|
|
3
|
-
import { ErrorBoundary } from "./error";
|
|
4
|
-
import { renderComponent } from "./test-setup";
|
|
5
|
-
describe("ErrorBoundary", () => {
|
|
6
|
-
it("should render children when no error occurs", async () => {
|
|
7
|
-
function SafeChild() {
|
|
8
|
-
return () => _jsx("div", { children: "Safe content" });
|
|
9
|
-
}
|
|
10
|
-
function TestComponent() {
|
|
11
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Error: ", String(error)] }), children: _jsx(SafeChild, {}) }));
|
|
12
|
-
}
|
|
13
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
14
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
15
|
-
expect(container.textContent).toContain("Safe content");
|
|
16
|
-
expect(container.textContent).not.toContain("Error:");
|
|
17
|
-
unmount();
|
|
18
|
-
});
|
|
19
|
-
it("should catch errors thrown in child components", async () => {
|
|
20
|
-
function ThrowingChild() {
|
|
21
|
-
return () => {
|
|
22
|
-
throw new Error("Child component error");
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function TestComponent() {
|
|
26
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Error: ", String(error)] }), children: _jsx(ThrowingChild, {}) }));
|
|
27
|
-
}
|
|
28
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
29
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
30
|
-
expect(container.textContent).toContain("Error:");
|
|
31
|
-
expect(container.textContent).toContain("Child component error");
|
|
32
|
-
unmount();
|
|
33
|
-
});
|
|
34
|
-
it("should render custom error UI", async () => {
|
|
35
|
-
function ThrowingChild() {
|
|
36
|
-
return () => {
|
|
37
|
-
throw new Error("Something went wrong");
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function TestComponent() {
|
|
41
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => (_jsxs("div", { class: "error-ui", children: [_jsx("h1", { children: "Oops!" }), _jsx("p", { children: String(error) })] })), children: _jsx(ThrowingChild, {}) }));
|
|
42
|
-
}
|
|
43
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
44
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
45
|
-
const errorUI = document.querySelector(".error-ui");
|
|
46
|
-
expect(errorUI).not.toBeNull();
|
|
47
|
-
expect(errorUI?.querySelector("h1")?.textContent).toBe("Oops!");
|
|
48
|
-
expect(errorUI?.textContent).toContain("Something went wrong");
|
|
49
|
-
unmount();
|
|
50
|
-
});
|
|
51
|
-
it("should handle multiple children", async () => {
|
|
52
|
-
function SafeChild1() {
|
|
53
|
-
return () => _jsx("div", { children: "Child 1" });
|
|
54
|
-
}
|
|
55
|
-
function SafeChild2() {
|
|
56
|
-
return () => _jsx("div", { children: "Child 2" });
|
|
57
|
-
}
|
|
58
|
-
function TestComponent() {
|
|
59
|
-
return () => (_jsxs(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Error: ", String(error)] }), children: [_jsx(SafeChild1, {}), _jsx(SafeChild2, {})] }));
|
|
60
|
-
}
|
|
61
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
62
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
63
|
-
expect(container.textContent).toContain("Child 1");
|
|
64
|
-
expect(container.textContent).toContain("Child 2");
|
|
65
|
-
unmount();
|
|
66
|
-
});
|
|
67
|
-
it("should catch errors from nested children", async () => {
|
|
68
|
-
function DeepChild() {
|
|
69
|
-
return () => {
|
|
70
|
-
throw new Error("Deep error");
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function MiddleChild() {
|
|
74
|
-
return () => _jsx(DeepChild, {});
|
|
75
|
-
}
|
|
76
|
-
function TestComponent() {
|
|
77
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Caught: ", String(error)] }), children: _jsx(MiddleChild, {}) }));
|
|
78
|
-
}
|
|
79
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
80
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
81
|
-
expect(container.textContent).toContain("Caught:");
|
|
82
|
-
expect(container.textContent).toContain("Deep error");
|
|
83
|
-
unmount();
|
|
84
|
-
});
|
|
85
|
-
it("should allow nested error boundaries", async () => {
|
|
86
|
-
function ThrowingChild() {
|
|
87
|
-
return () => {
|
|
88
|
-
throw new Error("Inner error");
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function TestComponent() {
|
|
92
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Outer: ", String(error)] }), children: _jsx(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Inner: ", String(error)] }), children: _jsx(ThrowingChild, {}) }) }));
|
|
93
|
-
}
|
|
94
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
95
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
96
|
-
// Inner boundary should catch the error
|
|
97
|
-
expect(container.textContent).toContain("Inner:");
|
|
98
|
-
expect(container.textContent).not.toContain("Outer:");
|
|
99
|
-
unmount();
|
|
100
|
-
});
|
|
101
|
-
it("should handle string errors", async () => {
|
|
102
|
-
function ThrowingChild() {
|
|
103
|
-
return () => {
|
|
104
|
-
throw "String error";
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function TestComponent() {
|
|
108
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Error: ", String(error)] }), children: _jsx(ThrowingChild, {}) }));
|
|
109
|
-
}
|
|
110
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
111
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
112
|
-
expect(container.textContent).toContain("String error");
|
|
113
|
-
unmount();
|
|
114
|
-
});
|
|
115
|
-
it("should handle object errors", async () => {
|
|
116
|
-
function ThrowingChild() {
|
|
117
|
-
return () => {
|
|
118
|
-
throw { message: "Custom error object", code: 500 };
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function TestComponent() {
|
|
122
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => (_jsxs("div", { children: ["Error: ", error.message, " (Code: ", error.code, ")"] })), children: _jsx(ThrowingChild, {}) }));
|
|
123
|
-
}
|
|
124
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
125
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
126
|
-
expect(container.textContent).toContain("Custom error object");
|
|
127
|
-
expect(container.textContent).toContain("500");
|
|
128
|
-
unmount();
|
|
129
|
-
});
|
|
130
|
-
it("should switch back to children if error is cleared", async () => {
|
|
131
|
-
// Note: This test demonstrates the current behavior
|
|
132
|
-
// In practice, error clearing would require additional implementation
|
|
133
|
-
function SafeChild() {
|
|
134
|
-
return () => _jsx("div", { children: "Safe content" });
|
|
135
|
-
}
|
|
136
|
-
function TestComponent() {
|
|
137
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => _jsxs("div", { children: ["Error: ", String(error)] }), children: _jsx(SafeChild, {}) }));
|
|
138
|
-
}
|
|
139
|
-
const { container, unmount } = renderComponent(_jsx(TestComponent, {}));
|
|
140
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
141
|
-
expect(container.textContent).toContain("Safe content");
|
|
142
|
-
unmount();
|
|
143
|
-
});
|
|
144
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"integration.test.d.ts","sourceRoot":"","sources":["../src/integration.test.tsx"],"names":[],"mappings":""}
|
package/dist/integration.test.js
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "./jsx-runtime";
|
|
2
|
-
import { describe, it, expect, vi } from "vitest";
|
|
3
|
-
import { onCleanup, onMount } from "./vdom/ComponentVNode";
|
|
4
|
-
import { render } from "./vdom";
|
|
5
|
-
import { createState } from "./createState";
|
|
6
|
-
import { createRef } from "./createRef";
|
|
7
|
-
import { createContext } from "./createContext";
|
|
8
|
-
import { ErrorBoundary } from "./error";
|
|
9
|
-
describe("Integration Tests", () => {
|
|
10
|
-
it("should render a simple component", () => {
|
|
11
|
-
function App() {
|
|
12
|
-
return () => _jsx("div", { children: "Hello World" });
|
|
13
|
-
}
|
|
14
|
-
const container = document.createElement("div");
|
|
15
|
-
document.body.appendChild(container);
|
|
16
|
-
render(_jsx(App, {}), container);
|
|
17
|
-
// After patch, container is replaced, so check body instead
|
|
18
|
-
expect(document.body.textContent).toContain("Hello World");
|
|
19
|
-
});
|
|
20
|
-
it("should handle reactive state updates", async () => {
|
|
21
|
-
function Counter() {
|
|
22
|
-
const state = createState({ count: 0 });
|
|
23
|
-
return () => (_jsxs("div", { children: [_jsxs("span", { children: ["Count: ", state.count] }), _jsx("button", { onClick: () => state.count++, children: "Increment" })] }));
|
|
24
|
-
}
|
|
25
|
-
const container = document.createElement("div");
|
|
26
|
-
document.body.appendChild(container);
|
|
27
|
-
render(_jsx(Counter, {}), container);
|
|
28
|
-
expect(document.body.textContent).toContain("Count: 0");
|
|
29
|
-
// Simulate click
|
|
30
|
-
const button = document.querySelector("button");
|
|
31
|
-
button?.click();
|
|
32
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
33
|
-
expect(document.body.textContent).toContain("Count: 1");
|
|
34
|
-
});
|
|
35
|
-
it("should work with refs", async () => {
|
|
36
|
-
function App() {
|
|
37
|
-
const ref = createRef();
|
|
38
|
-
onMount(() => {
|
|
39
|
-
expect(ref.current).not.toBeNull();
|
|
40
|
-
expect(ref.current?.tagName).toBe("DIV");
|
|
41
|
-
});
|
|
42
|
-
return () => _jsx("div", { ref: ref, children: "Test" });
|
|
43
|
-
}
|
|
44
|
-
const container = document.createElement("div");
|
|
45
|
-
document.body.appendChild(container);
|
|
46
|
-
render(_jsx(App, {}), container);
|
|
47
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
48
|
-
});
|
|
49
|
-
it("should handle context", () => {
|
|
50
|
-
const ThemeContext = createContext();
|
|
51
|
-
function Child() {
|
|
52
|
-
const theme = ThemeContext.get();
|
|
53
|
-
return () => _jsx("div", { class: "child", children: theme.theme });
|
|
54
|
-
}
|
|
55
|
-
function Parent() {
|
|
56
|
-
ThemeContext.inject({ theme: "dark" });
|
|
57
|
-
return () => _jsx(Child, {});
|
|
58
|
-
}
|
|
59
|
-
const container = document.createElement("div");
|
|
60
|
-
document.body.appendChild(container);
|
|
61
|
-
render(_jsx(Parent, {}), container);
|
|
62
|
-
expect(document.body.textContent).toContain("dark");
|
|
63
|
-
});
|
|
64
|
-
it("should handle error boundaries", async () => {
|
|
65
|
-
function ThrowingChild() {
|
|
66
|
-
return () => {
|
|
67
|
-
throw new Error("Test error");
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function App() {
|
|
71
|
-
return () => (_jsx(ErrorBoundary, { error: (error) => _jsxs("div", { class: "error", children: ["Error: ", String(error)] }), children: _jsx(ThrowingChild, {}) }));
|
|
72
|
-
}
|
|
73
|
-
const container = document.createElement("div");
|
|
74
|
-
document.body.appendChild(container);
|
|
75
|
-
render(_jsx(App, {}), container);
|
|
76
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
77
|
-
const errorDiv = document.querySelector(".error");
|
|
78
|
-
expect(errorDiv).not.toBeNull();
|
|
79
|
-
expect(errorDiv?.textContent).toContain("Test error");
|
|
80
|
-
});
|
|
81
|
-
it("should call onMount and onCleanup", async () => {
|
|
82
|
-
const mountFn = vi.fn();
|
|
83
|
-
const cleanupFn = vi.fn();
|
|
84
|
-
let stateFn;
|
|
85
|
-
function Component() {
|
|
86
|
-
onMount(mountFn);
|
|
87
|
-
onCleanup(cleanupFn);
|
|
88
|
-
return () => _jsx("div", { children: "Test" });
|
|
89
|
-
}
|
|
90
|
-
function App() {
|
|
91
|
-
const state = createState({ show: true });
|
|
92
|
-
stateFn = state;
|
|
93
|
-
return () => (state.show ? _jsx(Component, {}) : _jsx("div", { children: "Empty" }));
|
|
94
|
-
}
|
|
95
|
-
const container = document.createElement("div");
|
|
96
|
-
document.body.appendChild(container);
|
|
97
|
-
render(_jsx(App, {}), container);
|
|
98
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
99
|
-
expect(mountFn).toHaveBeenCalledTimes(1);
|
|
100
|
-
expect(cleanupFn).not.toHaveBeenCalled();
|
|
101
|
-
// Unmount by toggling state to render something else
|
|
102
|
-
stateFn.show = false;
|
|
103
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
104
|
-
expect(cleanupFn).toHaveBeenCalledTimes(1);
|
|
105
|
-
});
|
|
106
|
-
it("should handle nested components", () => {
|
|
107
|
-
function GrandChild() {
|
|
108
|
-
return () => _jsx("span", { children: "GrandChild" });
|
|
109
|
-
}
|
|
110
|
-
function Child() {
|
|
111
|
-
return () => (_jsxs("div", { children: ["Child ", _jsx(GrandChild, {})] }));
|
|
112
|
-
}
|
|
113
|
-
function Parent() {
|
|
114
|
-
return () => (_jsxs("div", { children: ["Parent ", _jsx(Child, {})] }));
|
|
115
|
-
}
|
|
116
|
-
const container = document.createElement("div");
|
|
117
|
-
document.body.appendChild(container);
|
|
118
|
-
render(_jsx(Parent, {}), container);
|
|
119
|
-
expect(document.body.textContent).toContain("Parent");
|
|
120
|
-
expect(document.body.textContent).toContain("Child");
|
|
121
|
-
expect(document.body.textContent).toContain("GrandChild");
|
|
122
|
-
});
|
|
123
|
-
it("should handle conditional rendering", async () => {
|
|
124
|
-
function App() {
|
|
125
|
-
const state = createState({ show: true });
|
|
126
|
-
return () => (_jsxs("div", { children: [_jsx("button", { onClick: () => (state.show = !state.show), children: "Toggle" }), state.show ? _jsx("div", { class: "content", children: "Content" }) : null] }));
|
|
127
|
-
}
|
|
128
|
-
const container = document.createElement("div");
|
|
129
|
-
document.body.appendChild(container);
|
|
130
|
-
render(_jsx(App, {}), container);
|
|
131
|
-
// Wait for initial render
|
|
132
|
-
await new Promise((resolve) => setTimeout(resolve, 5));
|
|
133
|
-
expect(document.querySelector(".content")).not.toBeNull();
|
|
134
|
-
const button = document.querySelector("button");
|
|
135
|
-
button?.click();
|
|
136
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
137
|
-
expect(document.querySelector(".content")).toBeNull();
|
|
138
|
-
});
|
|
139
|
-
it("should handle list rendering", async () => {
|
|
140
|
-
function TodoList() {
|
|
141
|
-
const state = createState({ items: ["Item 1", "Item 2"] });
|
|
142
|
-
return () => (_jsxs("div", { children: [_jsx("button", { onClick: () => {
|
|
143
|
-
state.items.push(`Item ${state.items.length + 1}`);
|
|
144
|
-
}, children: "Add" }), _jsx("ul", { children: state.items.map((item) => (_jsx("li", { children: item }))) })] }));
|
|
145
|
-
}
|
|
146
|
-
const container = document.createElement("div");
|
|
147
|
-
document.body.appendChild(container);
|
|
148
|
-
render(_jsx(TodoList, {}), container);
|
|
149
|
-
expect(document.querySelectorAll("li").length).toBe(2);
|
|
150
|
-
const button = document.querySelector("button");
|
|
151
|
-
button?.click();
|
|
152
|
-
await new Promise((resolve) => setTimeout(resolve, 10));
|
|
153
|
-
expect(document.querySelectorAll("li").length).toBe(3);
|
|
154
|
-
});
|
|
155
|
-
});
|
package/dist/jsx.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsx.d.ts","sourceRoot":"","sources":["../src/jsx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE9D,wBAAgB,GAAG,CACjB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,EAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,QAAQ,EAAE,KAAK,EAAE,SAmDlB"}
|
package/dist/jsx.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { h } from "snabbdom";
|
|
2
|
-
import { createComponent } from "./component";
|
|
3
|
-
export function jsx(type, props, children) {
|
|
4
|
-
let flatChildren = children.flat();
|
|
5
|
-
if (typeof type === "string") {
|
|
6
|
-
const data = {};
|
|
7
|
-
for (const key in props) {
|
|
8
|
-
if (key === "key") {
|
|
9
|
-
data[key] = props[key];
|
|
10
|
-
continue;
|
|
11
|
-
}
|
|
12
|
-
if (key === "hook") {
|
|
13
|
-
data[key] = props[key];
|
|
14
|
-
continue;
|
|
15
|
-
}
|
|
16
|
-
if (key === "style") {
|
|
17
|
-
data.style = props[key];
|
|
18
|
-
continue;
|
|
19
|
-
}
|
|
20
|
-
if (key.startsWith("on")) {
|
|
21
|
-
data.on = data.on || {};
|
|
22
|
-
data.on[key.substring(2).toLocaleLowerCase()] = props[key];
|
|
23
|
-
continue;
|
|
24
|
-
}
|
|
25
|
-
if (key.startsWith("data-") || key.startsWith("aria-")) {
|
|
26
|
-
data.attrs = data.attrs || {};
|
|
27
|
-
data.attrs[key] = props[key];
|
|
28
|
-
continue;
|
|
29
|
-
}
|
|
30
|
-
if (type === "svg") {
|
|
31
|
-
data.attrs = data.attrs || {};
|
|
32
|
-
data.attrs[key] = props[key];
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
data.props = data.props || {};
|
|
36
|
-
data.props[key] = props[key];
|
|
37
|
-
}
|
|
38
|
-
return h(type, data, flatChildren);
|
|
39
|
-
}
|
|
40
|
-
const maybeSingleChild = flatChildren.length === 1 ? flatChildren[0] : flatChildren;
|
|
41
|
-
return createComponent(type, props, maybeSingleChild);
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observation.test.d.ts","sourceRoot":"","sources":["../src/observation.test.ts"],"names":[],"mappings":""}
|
package/dist/observation.test.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect, vi } from "vitest";
|
|
2
|
-
import { Signal, Observer, getCurrentObserver } from "./observation";
|
|
3
|
-
describe("Signal", () => {
|
|
4
|
-
it("should allow subscribing to notifications", () => {
|
|
5
|
-
const signal = new Signal();
|
|
6
|
-
const callback = vi.fn();
|
|
7
|
-
signal.subscribe(callback);
|
|
8
|
-
signal.notify();
|
|
9
|
-
expect(callback).toHaveBeenCalledTimes(1);
|
|
10
|
-
});
|
|
11
|
-
it("should return a disposer function", () => {
|
|
12
|
-
const signal = new Signal();
|
|
13
|
-
const callback = vi.fn();
|
|
14
|
-
const dispose = signal.subscribe(callback);
|
|
15
|
-
dispose();
|
|
16
|
-
signal.notify();
|
|
17
|
-
expect(callback).not.toHaveBeenCalled();
|
|
18
|
-
});
|
|
19
|
-
it("should handle multiple subscribers", () => {
|
|
20
|
-
const signal = new Signal();
|
|
21
|
-
const callback1 = vi.fn();
|
|
22
|
-
const callback2 = vi.fn();
|
|
23
|
-
signal.subscribe(callback1);
|
|
24
|
-
signal.subscribe(callback2);
|
|
25
|
-
signal.notify();
|
|
26
|
-
expect(callback1).toHaveBeenCalledTimes(1);
|
|
27
|
-
expect(callback2).toHaveBeenCalledTimes(1);
|
|
28
|
-
});
|
|
29
|
-
it("should allow unsubscribing individual callbacks", () => {
|
|
30
|
-
const signal = new Signal();
|
|
31
|
-
const callback1 = vi.fn();
|
|
32
|
-
const callback2 = vi.fn();
|
|
33
|
-
const dispose1 = signal.subscribe(callback1);
|
|
34
|
-
signal.subscribe(callback2);
|
|
35
|
-
dispose1();
|
|
36
|
-
signal.notify();
|
|
37
|
-
expect(callback1).not.toHaveBeenCalled();
|
|
38
|
-
expect(callback2).toHaveBeenCalledTimes(1);
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
describe("Observer", () => {
|
|
42
|
-
it("should track signals during observation", () => {
|
|
43
|
-
const callback = vi.fn();
|
|
44
|
-
const observer = new Observer(callback);
|
|
45
|
-
const signal = new Signal();
|
|
46
|
-
const dispose = observer.observe();
|
|
47
|
-
observer.subscribeSignal(signal);
|
|
48
|
-
dispose();
|
|
49
|
-
signal.notify();
|
|
50
|
-
return new Promise((resolve) => {
|
|
51
|
-
queueMicrotask(() => {
|
|
52
|
-
expect(callback).toHaveBeenCalledTimes(1);
|
|
53
|
-
resolve(undefined);
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
it("should clear signals when observing again", async () => {
|
|
58
|
-
let callCount = 0;
|
|
59
|
-
const observer = new Observer(() => {
|
|
60
|
-
callCount++;
|
|
61
|
-
});
|
|
62
|
-
const signal1 = new Signal();
|
|
63
|
-
const signal2 = new Signal();
|
|
64
|
-
// First observation
|
|
65
|
-
let dispose = observer.observe();
|
|
66
|
-
observer.subscribeSignal(signal1);
|
|
67
|
-
dispose();
|
|
68
|
-
// Second observation - should clear previous signals
|
|
69
|
-
dispose = observer.observe();
|
|
70
|
-
observer.subscribeSignal(signal2);
|
|
71
|
-
dispose();
|
|
72
|
-
// Notify first signal - should not trigger observer
|
|
73
|
-
signal1.notify();
|
|
74
|
-
await new Promise((resolve) => queueMicrotask(() => resolve()));
|
|
75
|
-
expect(callCount).toBe(0);
|
|
76
|
-
// Notify second signal - should trigger observer
|
|
77
|
-
signal2.notify();
|
|
78
|
-
await new Promise((resolve) => queueMicrotask(() => resolve()));
|
|
79
|
-
expect(callCount).toBe(1);
|
|
80
|
-
});
|
|
81
|
-
it("should dispose of all signal subscriptions", async () => {
|
|
82
|
-
const callback = vi.fn();
|
|
83
|
-
const observer = new Observer(callback);
|
|
84
|
-
const signal = new Signal();
|
|
85
|
-
const dispose = observer.observe();
|
|
86
|
-
observer.subscribeSignal(signal);
|
|
87
|
-
dispose();
|
|
88
|
-
observer.dispose();
|
|
89
|
-
signal.notify();
|
|
90
|
-
await new Promise((resolve) => queueMicrotask(() => resolve()));
|
|
91
|
-
expect(callback).not.toHaveBeenCalled();
|
|
92
|
-
});
|
|
93
|
-
it("should set current observer during observation", () => {
|
|
94
|
-
const observer = new Observer(() => {});
|
|
95
|
-
expect(getCurrentObserver()).toBeUndefined();
|
|
96
|
-
const dispose = observer.observe();
|
|
97
|
-
expect(getCurrentObserver()).toBe(observer);
|
|
98
|
-
dispose();
|
|
99
|
-
expect(getCurrentObserver()).toBeUndefined();
|
|
100
|
-
});
|
|
101
|
-
it("should handle nested observations with stack", () => {
|
|
102
|
-
const observer1 = new Observer(() => {});
|
|
103
|
-
const observer2 = new Observer(() => {});
|
|
104
|
-
const dispose1 = observer1.observe();
|
|
105
|
-
expect(getCurrentObserver()).toBe(observer1);
|
|
106
|
-
const dispose2 = observer2.observe();
|
|
107
|
-
expect(getCurrentObserver()).toBe(observer2);
|
|
108
|
-
dispose2();
|
|
109
|
-
expect(getCurrentObserver()).toBe(observer1);
|
|
110
|
-
dispose1();
|
|
111
|
-
expect(getCurrentObserver()).toBeUndefined();
|
|
112
|
-
});
|
|
113
|
-
});
|
package/dist/render-test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render-test.d.ts","sourceRoot":"","sources":["../src/render-test.ts"],"names":[],"mappings":""}
|
package/dist/render-test.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Quick test to understand Snabbdom's behavior
|
|
2
|
-
import { patch } from './render';
|
|
3
|
-
import { h } from 'snabbdom';
|
|
4
|
-
import { JSDOM } from 'jsdom';
|
|
5
|
-
const dom = new JSDOM('<!DOCTYPE html><html><body><div id="app"></div></body></html>');
|
|
6
|
-
global.window = dom.window;
|
|
7
|
-
global.document = dom.window.document;
|
|
8
|
-
const container = document.getElementById('app');
|
|
9
|
-
const parent = container.parentElement;
|
|
10
|
-
console.log('Before patch:');
|
|
11
|
-
console.log('Container id:', container.id);
|
|
12
|
-
console.log('Parent children:', parent.children.length);
|
|
13
|
-
console.log('Parent innerHTML:', parent.innerHTML);
|
|
14
|
-
const vnode = h('div', { props: { id: 'app' } }, [h('span', {}, 'Hello')]);
|
|
15
|
-
const result = patch(container, vnode);
|
|
16
|
-
console.log('\nAfter patch:');
|
|
17
|
-
console.log('Result:', result);
|
|
18
|
-
console.log('Result.elm:', result.elm);
|
|
19
|
-
console.log('Parent children:', parent.children.length);
|
|
20
|
-
console.log('Parent innerHTML:', parent.innerHTML);
|
|
21
|
-
console.log('Container still in DOM?:', document.getElementById('app'));
|
package/dist/render.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type VNode } from "snabbdom";
|
|
2
|
-
import { type Component } from "./component";
|
|
3
|
-
export declare const patch: (oldVnode: VNode | Element | DocumentFragment, vnode: VNode) => VNode;
|
|
4
|
-
export type ChildNode = VNode | string | null | number;
|
|
5
|
-
export declare function render(vnode: VNode, container: HTMLElement): VNode;
|
|
6
|
-
export declare function jsx(type: string | Component<any>, props: Record<string, unknown>, children: ChildNode[]): VNode;
|
|
7
|
-
//# sourceMappingURL=render.d.ts.map
|
package/dist/render.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,KAAK,EAEX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE9D,eAAO,MAAM,KAAK,uEAOhB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;AAEvD,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,SAK1D;AAED,wBAAgB,GAAG,CACjB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,CAAC,EAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,QAAQ,EAAE,SAAS,EAAE,SAyEtB"}
|
package/dist/render.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { init, classModule, propsModule, styleModule, eventListenersModule, attributesModule, h, } from "snabbdom";
|
|
2
|
-
import { createComponent } from "./component";
|
|
3
|
-
export const patch = init([
|
|
4
|
-
// Init patch function with chosen modules
|
|
5
|
-
classModule, // makes it easy to toggle classes
|
|
6
|
-
propsModule, // for setting properties on DOM elements
|
|
7
|
-
styleModule, // handles styling on elements with support for animations
|
|
8
|
-
eventListenersModule, // attaches event listeners
|
|
9
|
-
attributesModule,
|
|
10
|
-
]);
|
|
11
|
-
export function render(vnode, container) {
|
|
12
|
-
const style = document.createElement("style");
|
|
13
|
-
style.innerHTML = "component { display: contents; }";
|
|
14
|
-
document.head.appendChild(style);
|
|
15
|
-
return patch(container, vnode);
|
|
16
|
-
}
|
|
17
|
-
export function jsx(type, props, children) {
|
|
18
|
-
let flatChildren = children.flat();
|
|
19
|
-
if (typeof type === "string") {
|
|
20
|
-
const data = {};
|
|
21
|
-
for (const key in props) {
|
|
22
|
-
if (key === "key") {
|
|
23
|
-
data[key] = props[key];
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
if (key === "hook") {
|
|
27
|
-
data[key] = props[key];
|
|
28
|
-
continue;
|
|
29
|
-
}
|
|
30
|
-
if (key === "style") {
|
|
31
|
-
data.style = props[key];
|
|
32
|
-
continue;
|
|
33
|
-
}
|
|
34
|
-
if (key === "class") {
|
|
35
|
-
// Snabbdom's classModule expects an object like { 'class-name': true }
|
|
36
|
-
// If it's a string, convert it to the object format
|
|
37
|
-
const classValue = props[key];
|
|
38
|
-
if (typeof classValue === 'string') {
|
|
39
|
-
data.class = { [classValue]: true };
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
data.class = classValue;
|
|
43
|
-
}
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
if (key === "ref") {
|
|
47
|
-
data.hook = data.hook || {};
|
|
48
|
-
const existingInsertHook = data.hook?.insert;
|
|
49
|
-
data.hook.insert = (vnode) => {
|
|
50
|
-
existingInsertHook?.(vnode);
|
|
51
|
-
props.ref(vnode.elm || null);
|
|
52
|
-
};
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
if (key.startsWith("on")) {
|
|
56
|
-
data.on = data.on || {};
|
|
57
|
-
data.on[key.substring(2).toLocaleLowerCase()] = props[key];
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
if (key.startsWith("data-") || key.startsWith("aria-")) {
|
|
61
|
-
data.attrs = data.attrs || {};
|
|
62
|
-
data.attrs[key] = props[key];
|
|
63
|
-
continue;
|
|
64
|
-
}
|
|
65
|
-
if (type === "svg") {
|
|
66
|
-
data.attrs = data.attrs || {};
|
|
67
|
-
data.attrs[key] = props[key];
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
data.props = data.props || {};
|
|
71
|
-
data.props[key] = props[key];
|
|
72
|
-
}
|
|
73
|
-
return h(type, data, flatChildren);
|
|
74
|
-
}
|
|
75
|
-
const maybeSingleChild = flatChildren.length === 1 ? flatChildren[0] : flatChildren;
|
|
76
|
-
return createComponent(type, props, maybeSingleChild);
|
|
77
|
-
}
|
package/dist/suspense.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { VNode } from "snabbdom";
|
|
2
|
-
export declare function createSuspense<T extends Record<string, Promise<any>>>(promises: T): {
|
|
3
|
-
[K in keyof T]: Awaited<T[K]>;
|
|
4
|
-
};
|
|
5
|
-
export declare function Suspense(props: {
|
|
6
|
-
fallback: VNode;
|
|
7
|
-
children: VNode | VNode[];
|
|
8
|
-
}): () => VNode | VNode[];
|
|
9
|
-
type SuspensePromiseState<T> = {
|
|
10
|
-
status: "pending";
|
|
11
|
-
value: null;
|
|
12
|
-
error: null;
|
|
13
|
-
} | {
|
|
14
|
-
status: "resolved";
|
|
15
|
-
value: T;
|
|
16
|
-
error: null;
|
|
17
|
-
} | {
|
|
18
|
-
status: "rejected";
|
|
19
|
-
value: null;
|
|
20
|
-
error: string;
|
|
21
|
-
};
|
|
22
|
-
export type SuspensePromise<T> = Promise<T> & SuspensePromiseState<T>;
|
|
23
|
-
export declare function createSuspensePromise<T>(promise: Promise<T>): SuspensePromise<T>;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=suspense.d.ts.map
|
package/dist/suspense.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suspense.d.ts","sourceRoot":"","sources":["../src/suspense.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAKjC,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EACnE,QAAQ,EAAE,CAAC,GACV;KACA,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC9B,CAuBA;AAQD,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAC9B,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,KAAK,GAAG,KAAK,EAAE,CAAC;CAC3B,yBAmBA;AAED,KAAK,oBAAoB,CAAC,CAAC,IACvB;IACE,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,IAAI,CAAC;CACb,GACD;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,IAAI,CAAC;CACb,GACD;IACE,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEN,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAEtE,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAClB,eAAe,CAAC,CAAC,CAAC,CAgEpB"}
|