@nil-/xit 0.2.1 → 0.2.3
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/package.json +5 -4
- package/test.d.ts +8 -0
- package/test.js +31 -0
- package/assets/bundler.js +0 -276
- package/assets/index.js +0 -2536
- package/assets/svelte/animate.js +0 -29
- package/assets/svelte/easing.js +0 -130
- package/assets/svelte/events.js +0 -4
- package/assets/svelte/index.js +0 -2316
- package/assets/svelte/internal/client.js +0 -2304
- package/assets/svelte/internal/disclose-version.js +0 -2
- package/assets/svelte/motion.js +0 -460
- package/assets/svelte/store.js +0 -168
- package/assets/svelte/transition.js +0 -142
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nil-/xit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"svelte": "^5.7.1"
|
|
6
6
|
},
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"types": "./index.d.ts",
|
|
12
12
|
"default": "./index.js"
|
|
13
13
|
},
|
|
14
|
+
"./test": {
|
|
15
|
+
"types": "./test.d.ts",
|
|
16
|
+
"default": "./test.js"
|
|
17
|
+
},
|
|
14
18
|
"./components/layouts/Container.svelte": {
|
|
15
19
|
"types": "./components/layouts/Container.svelte.d.ts",
|
|
16
20
|
"svelte": "./components/layouts/Container.svelte"
|
|
@@ -31,8 +35,5 @@
|
|
|
31
35
|
"types": "./components/utilities/draggable.d.ts",
|
|
32
36
|
"default": "./components/utilities/draggable.js"
|
|
33
37
|
}
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"flatbuffers": "^25.1.24"
|
|
37
38
|
}
|
|
38
39
|
}
|
package/test.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CoDec } from "./index";
|
|
2
|
+
export declare const xit_test: () => {
|
|
3
|
+
xit: import("./index").Context;
|
|
4
|
+
frame_info: (tag: string, decoder: CoDec<any>["decode"]) => Promise<{
|
|
5
|
+
inputs: import("./index").Action<HTMLElement>[];
|
|
6
|
+
outputs: import("./index").Action<HTMLElement>[];
|
|
7
|
+
}>;
|
|
8
|
+
};
|
package/test.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { xit } from "./index";
|
|
2
|
+
import { get } from "svelte/store";
|
|
3
|
+
export const xit_test = () => {
|
|
4
|
+
const x = xit();
|
|
5
|
+
return {
|
|
6
|
+
xit: x,
|
|
7
|
+
frame_info: async (tag, decoder) => {
|
|
8
|
+
const { values, unsub } = await x.frame("frame_info", tag);
|
|
9
|
+
const load = async (key) => {
|
|
10
|
+
const v = values.json(key, [], { decode: decoder, encode: () => { return new Uint8Array(); } });
|
|
11
|
+
return Promise.all(get(v)
|
|
12
|
+
.map(v => {
|
|
13
|
+
const [frame_id, mark, g] = v.split(":");
|
|
14
|
+
if (g !== "V") {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (mark === "T") {
|
|
18
|
+
return x.frame_ui(frame_id, tag);
|
|
19
|
+
}
|
|
20
|
+
else if (mark === "U") {
|
|
21
|
+
return x.frame_ui(frame_id);
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
.filter(v => v != null));
|
|
25
|
+
};
|
|
26
|
+
const [inputs, outputs] = await Promise.all([load("inputs"), load("outputs")]);
|
|
27
|
+
unsub();
|
|
28
|
+
return { inputs, outputs };
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|