@benev/tact 0.4.0-1 → 0.4.0-10
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 +134 -46
- package/package.json +7 -6
- package/s/demo/main.css +38 -3
- package/s/index.html.ts +26 -20
- package/s/lib/index.ts +1 -1
- package/s/lib/input/controller.ts +4 -1
- package/s/lib/input/data/intent/decode.ts +2 -2
- package/s/lib/input/data/intent/encode.ts +2 -2
- package/s/lib/input/data/intent/minihash.ts +5 -0
- package/s/lib/input/decoder.ts +2 -2
- package/s/lib/input/evaluate/context.ts +5 -1
- package/s/lib/input/evaluate/evaluate.ts +27 -14
- package/s/lib/input/investigate/hash-bindings.ts +5 -3
- package/s/lib/input/investigate/investigate.ts +24 -9
- package/s/lib/input/test.ts +52 -30
- package/s/lib/input/testing/quickbind.ts +3 -3
- package/s/lib/ui/deck/auto-gamepads.ts +1 -0
- package/s/lib/ui/deck/controls/internal/data.ts +7 -5
- package/s/lib/ui/deck/hub.ts +4 -3
- package/s/lib/ui/deck/players.ts +73 -0
- package/s/lib/ui/deck/setup/deck.ts +33 -20
- package/s/lib/ui/deck/setup/tact.ts +26 -11
- package/s/lib/ui/deck/setup/types.ts +1 -0
- package/s/lib/ui/deck/setup/utils/broadcast-channel.ts +17 -0
- package/s/lib/ui/deck/setup/utils/kv.ts +20 -0
- package/s/lib/ui/deck/types.ts +1 -1
- package/s/lib/ui/views/controllers/style.css.ts +1 -1
- package/s/lib/ui/views/controllers/view.ts +3 -2
- package/s/lib/ui/views/customize/style.css.ts +1 -1
- package/s/lib/ui/views/customize/view.ts +6 -5
- package/s/lib/ui/views/deck/style.css.ts +1 -1
- package/s/lib/ui/views/deck/view.ts +13 -7
- package/s/lib/ui/views/theme.css.ts +1 -1
- package/s/lib/ui/views/visualizer/style.css.ts +8 -6
- package/s/lib/ui/views/visualizer/view.ts +1 -0
- package/s/lib/utils/hash.ts +47 -0
- package/x/demo/main.bundle.min.js +330 -326
- package/x/demo/main.bundle.min.js.map +4 -4
- package/x/demo/main.css +38 -3
- package/x/gamepad/index.html +2 -2
- package/x/gamepad/main.bundle.min.js +8 -8
- package/x/gamepad/main.bundle.min.js.map +4 -4
- package/x/index.html +28 -22
- package/x/index.html.js +26 -20
- package/x/index.html.js.map +1 -1
- package/x/lib/index.d.ts +1 -1
- package/x/lib/index.js +1 -1
- package/x/lib/index.js.map +1 -1
- package/x/lib/input/controller.js +1 -1
- package/x/lib/input/controller.js.map +1 -1
- package/x/lib/input/data/intent/decode.d.ts +1 -1
- package/x/lib/input/data/intent/decode.js +2 -2
- package/x/lib/input/data/intent/decode.js.map +1 -1
- package/x/lib/input/data/intent/encode.d.ts +1 -1
- package/x/lib/input/data/intent/encode.js +2 -2
- package/x/lib/input/data/intent/encode.js.map +1 -1
- package/x/lib/input/data/intent/minihash.d.ts +1 -0
- package/x/lib/input/data/intent/minihash.js +4 -0
- package/x/lib/input/data/intent/minihash.js.map +1 -0
- package/x/lib/input/decoder.d.ts +1 -1
- package/x/lib/input/decoder.js +2 -2
- package/x/lib/input/decoder.js.map +1 -1
- package/x/lib/input/evaluate/context.d.ts +3 -1
- package/x/lib/input/evaluate/context.js.map +1 -1
- package/x/lib/input/evaluate/evaluate.js +24 -11
- package/x/lib/input/evaluate/evaluate.js.map +1 -1
- package/x/lib/input/investigate/hash-bindings.d.ts +1 -1
- package/x/lib/input/investigate/hash-bindings.js +5 -3
- package/x/lib/input/investigate/hash-bindings.js.map +1 -1
- package/x/lib/input/investigate/investigate.d.ts +2 -1
- package/x/lib/input/investigate/investigate.js +14 -9
- package/x/lib/input/investigate/investigate.js.map +1 -1
- package/x/lib/input/test.d.ts +4 -2
- package/x/lib/input/test.js +49 -22
- package/x/lib/input/test.js.map +1 -1
- package/x/lib/input/testing/quickbind.d.ts +3 -2
- package/x/lib/input/testing/quickbind.js +3 -3
- package/x/lib/input/testing/quickbind.js.map +1 -1
- package/x/lib/ui/deck/auto-gamepads.js +1 -0
- package/x/lib/ui/deck/auto-gamepads.js.map +1 -1
- package/x/lib/ui/deck/controls/internal/data.d.ts +1 -1
- package/x/lib/ui/deck/controls/internal/data.js +4 -1
- package/x/lib/ui/deck/controls/internal/data.js.map +1 -1
- package/x/lib/ui/deck/hub.js +4 -3
- package/x/lib/ui/deck/hub.js.map +1 -1
- package/x/lib/ui/deck/players.d.ts +16 -0
- package/x/lib/ui/deck/players.js +56 -0
- package/x/lib/ui/deck/players.js.map +1 -0
- package/x/lib/ui/deck/setup/deck.js +23 -13
- package/x/lib/ui/deck/setup/deck.js.map +1 -1
- package/x/lib/ui/deck/setup/tact.d.ts +3 -0
- package/x/lib/ui/deck/setup/tact.js +19 -8
- package/x/lib/ui/deck/setup/tact.js.map +1 -1
- package/x/lib/ui/deck/setup/types.d.ts +1 -0
- package/x/lib/ui/deck/setup/utils/broadcast-channel.d.ts +4 -0
- package/x/lib/ui/deck/setup/utils/broadcast-channel.js +10 -0
- package/x/lib/ui/deck/setup/utils/broadcast-channel.js.map +1 -0
- package/x/lib/ui/deck/setup/utils/kv.d.ts +5 -0
- package/x/lib/ui/deck/setup/utils/kv.js +12 -0
- package/x/lib/ui/deck/setup/utils/kv.js.map +1 -0
- package/x/lib/ui/deck/types.d.ts +1 -0
- package/x/lib/ui/views/controllers/style.css.js +1 -1
- package/x/lib/ui/views/controllers/view.js +3 -2
- package/x/lib/ui/views/controllers/view.js.map +1 -1
- package/x/lib/ui/views/customize/style.css.js +1 -1
- package/x/lib/ui/views/customize/view.js +6 -5
- package/x/lib/ui/views/customize/view.js.map +1 -1
- package/x/lib/ui/views/deck/style.css.js +1 -1
- package/x/lib/ui/views/deck/view.js +13 -6
- package/x/lib/ui/views/deck/view.js.map +1 -1
- package/x/lib/ui/views/theme.css.js +1 -1
- package/x/lib/ui/views/visualizer/style.css.js +8 -6
- package/x/lib/ui/views/visualizer/style.css.js.map +1 -1
- package/x/lib/ui/views/visualizer/view.js +1 -0
- package/x/lib/ui/views/visualizer/view.js.map +1 -1
- package/x/lib/utils/hash.d.ts +1 -0
- package/x/lib/utils/hash.js +47 -0
- package/x/lib/utils/hash.js.map +1 -0
- package/s/lib/ui/deck/collector.ts +0 -52
- package/x/lib/ui/deck/collector.d.ts +0 -13
- package/x/lib/ui/deck/collector.js +0 -35
- package/x/lib/ui/deck/collector.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
2
|
import { isHappy, when } from "@e280/stz";
|
|
3
|
-
import { loot, shadowDuplex, useCss, useOnce } from "@e280/sly";
|
|
3
|
+
import { loot, shadowDuplex, useCss, useName, useOnce } from "@e280/sly";
|
|
4
4
|
import styleCss from "./style.css.js";
|
|
5
5
|
import themeCss from "../theme.css.js";
|
|
6
6
|
import personAddSvg from "../../icons/akar/person-add.svg.js";
|
|
@@ -9,6 +9,7 @@ import { DropcardView } from "./subviews/dropcard.js";
|
|
|
9
9
|
import { ControllerView } from "./subviews/controller.js";
|
|
10
10
|
import { droppyNewPlayer } from "../deck/types.js";
|
|
11
11
|
export const [ControllersView, makeControllersElement] = shadowDuplex((deck) => {
|
|
12
|
+
useName("tact-controllers");
|
|
12
13
|
useCss(themeCss, styleCss);
|
|
13
14
|
const { hub } = deck;
|
|
14
15
|
const controllers = hub.controllers;
|
|
@@ -28,7 +29,7 @@ export const [ControllersView, makeControllersElement] = shadowDuplex((deck) =>
|
|
|
28
29
|
}),
|
|
29
30
|
}));
|
|
30
31
|
return html `
|
|
31
|
-
<div
|
|
32
|
+
<div part=plate ?data-drag-and-drop="${!!context.dnd.dragging}">
|
|
32
33
|
<div class=playerlist>
|
|
33
34
|
${hub.playerIds.map(renderPlayer)}
|
|
34
35
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/controllers/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,OAAO,EAAE,IAAI,E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F,CAAC,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
2
|
import { given, when } from "@e280/stz";
|
|
3
|
-
import { shadowDuplex, useCss, useSignal } from "@e280/sly";
|
|
3
|
+
import { shadowDuplex, useCss, useName, useSignal } from "@e280/sly";
|
|
4
4
|
import styleCss from "./style.css.js";
|
|
5
5
|
import themeCss from "../theme.css.js";
|
|
6
6
|
import copySvg from "../../icons/akar/copy.svg.js";
|
|
@@ -9,6 +9,7 @@ import { makeId } from "../../../utils/make-id.js";
|
|
|
9
9
|
import { renderBindings } from "./parts/render-bindings.js";
|
|
10
10
|
import { ProfileSelectView } from "../profile-select/view.js";
|
|
11
11
|
export const [CustomizeView, makeCustomizeElement] = shadowDuplex((options) => {
|
|
12
|
+
useName("tact-customize");
|
|
12
13
|
useCss(themeCss, styleCss);
|
|
13
14
|
const { controls, controls: { profiles } } = options;
|
|
14
15
|
const $profileKey = useSignal(controls.fallbackProfileKey);
|
|
@@ -17,15 +18,15 @@ export const [CustomizeView, makeCustomizeElement] = shadowDuplex((options) => {
|
|
|
17
18
|
const baseline = profile.basedOn
|
|
18
19
|
? profiles.get(profile.basedOn)
|
|
19
20
|
: profile;
|
|
20
|
-
const updateBindings = (bindings) => {
|
|
21
|
+
const updateBindings = async (bindings) => {
|
|
21
22
|
let key = $profileKey();
|
|
22
23
|
if (profiles.isPreset(key)) {
|
|
23
24
|
const basedOn = key;
|
|
24
25
|
const freshKey = makeId();
|
|
25
26
|
key = freshKey;
|
|
26
|
-
profiles.clone(freshKey, basedOn);
|
|
27
|
+
await profiles.clone(freshKey, basedOn);
|
|
27
28
|
}
|
|
28
|
-
profiles.update(key, { bindings });
|
|
29
|
+
await profiles.update(key, { bindings });
|
|
29
30
|
$profileKey(key);
|
|
30
31
|
};
|
|
31
32
|
const updateLabel = (profileKey, label) => profiles.update(profileKey, { label });
|
|
@@ -39,7 +40,7 @@ export const [CustomizeView, makeCustomizeElement] = shadowDuplex((options) => {
|
|
|
39
40
|
$profileKey(controls.fallbackProfileKey);
|
|
40
41
|
};
|
|
41
42
|
return html `
|
|
42
|
-
<div
|
|
43
|
+
<div part=plate>
|
|
43
44
|
<header class=topbar>
|
|
44
45
|
<div class=corner>
|
|
45
46
|
${ProfileSelectView(options, $profileKey(), $profileKey)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/customize/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,MAAM,WAAW,CAAA;AACrC,OAAO,EAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAC,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/customize/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,MAAM,WAAW,CAAA;AACrC,OAAO,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAC,MAAM,WAAW,CAAA;AAElE,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AAEtC,OAAO,OAAO,MAAM,8BAA8B,CAAA;AAClD,OAAO,WAAW,MAAM,mCAAmC,CAAA;AAG3D,OAAO,EAAC,MAAM,EAAC,MAAM,2BAA2B,CAAA;AAEhD,OAAO,EAAC,cAAc,EAAC,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAC,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AAE3D,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,oBAAoB,CAAC,GAAG,YAAY,CAAC,CAAC,OAA6B,EAAE,EAAE;IACnG,OAAO,CAAC,gBAAgB,CAAC,CAAA;IAC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} from "@e280/sly";
|
|
3
|
+
import { shadowDuplex, useCss, useName, useOnce } from "@e280/sly";
|
|
4
4
|
import styleCss from "./style.css.js";
|
|
5
5
|
import themeCss from "../theme.css.js";
|
|
6
6
|
import gameControllerSvg from "../../icons/akar/game-controller.svg.js";
|
|
7
7
|
import settingsHorizontalSvg from "../../icons/akar/settings-horizontal.svg.js";
|
|
8
|
-
import { ControllersView } from "../controllers/view.js";
|
|
9
8
|
import { CustomizeView } from "../customize/view.js";
|
|
9
|
+
import { ControllersView } from "../controllers/view.js";
|
|
10
10
|
export const [DeckView, makeDeckElement] = shadowDuplex((deck) => {
|
|
11
|
+
useName("tact-deck");
|
|
11
12
|
useCss(themeCss, styleCss);
|
|
12
|
-
const attrs = { slot: "panel" };
|
|
13
13
|
const tabsControl = useOnce(() => new TabsControl());
|
|
14
14
|
// TODO remove this
|
|
15
15
|
useOnce(() => {
|
|
@@ -17,7 +17,7 @@ export const [DeckView, makeDeckElement] = shadowDuplex((deck) => {
|
|
|
17
17
|
tabsControl.setIndex(1);
|
|
18
18
|
});
|
|
19
19
|
return html `
|
|
20
|
-
<div
|
|
20
|
+
<div part=plate theme-card>
|
|
21
21
|
${ShinyTabs.with({
|
|
22
22
|
props: [{ control: tabsControl }],
|
|
23
23
|
children: html `
|
|
@@ -31,8 +31,15 @@ export const [DeckView, makeDeckElement] = shadowDuplex((deck) => {
|
|
|
31
31
|
<span>customize</span>
|
|
32
32
|
</button>
|
|
33
33
|
|
|
34
|
-
${ControllersView.with({
|
|
35
|
-
|
|
34
|
+
${ControllersView.with({
|
|
35
|
+
props: [deck],
|
|
36
|
+
attrs: { slot: "panel" },
|
|
37
|
+
})}
|
|
38
|
+
|
|
39
|
+
${CustomizeView.with({
|
|
40
|
+
props: [deck],
|
|
41
|
+
attrs: { slot: "panel" },
|
|
42
|
+
})}
|
|
36
43
|
`,
|
|
37
44
|
})}
|
|
38
45
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/deck/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,aAAa,CAAA;AAClD,OAAO,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAC,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/deck/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,SAAS,EAAE,WAAW,EAAC,MAAM,aAAa,CAAA;AAClD,OAAO,EAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAC,MAAM,WAAW,CAAA;AAEhE,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AACtC,OAAO,iBAAiB,MAAM,yCAAyC,CAAA;AACvE,OAAO,qBAAqB,MAAM,6CAA6C,CAAA;AAG/E,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAA;AAEtD,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,eAAe,CAAC,GAAG,YAAY,CAAC,CAAC,IAAU,EAAE,EAAE;IACtE,OAAO,CAAC,WAAW,CAAC,CAAA;IACpB,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC1B,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,WAAW,EAAE,CAAC,CAAA;IAEpD,mBAAmB;IACnB,OAAO,CAAC,GAAG,EAAE;QACZ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC;YAC5C,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IACzB,CAAC,CAAC,CAAA;IAEF,OAAO,IAAI,CAAA;;KAEP,SAAS,CAAC,IAAI,CAAC;QAChB,KAAK,EAAE,CAAC,EAAC,OAAO,EAAE,WAAW,EAAC,CAAC;QAC/B,QAAQ,EAAE,IAAI,CAAA;;QAEV,iBAAiB;;;;;QAKjB,qBAAqB;;;;OAItB,eAAe,CAAC,IAAI,CAAC;YACtB,KAAK,EAAE,CAAC,IAAI,CAAC;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC;SACtB,CAAC;;OAEA,aAAa,CAAC,IAAI,CAAC;YACpB,KAAK,EAAE,CAAC,IAAI,CAAC;YACb,KAAK,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC;SACtB,CAAC;KACF;KACD,CAAC;;EAEH,CAAA;AACF,CAAC,CAAC,CAAA"}
|
|
@@ -7,15 +7,17 @@ export default css `@layer view {
|
|
|
7
7
|
|
|
8
8
|
output {
|
|
9
9
|
opacity: 0.5;
|
|
10
|
-
color: var(--prime);
|
|
11
|
-
font-size: 1em;
|
|
12
|
-
font-family: monospace;
|
|
13
10
|
display: block;
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
|
|
12
|
+
font-size: 1em;
|
|
16
13
|
height: 8em;
|
|
17
|
-
|
|
14
|
+
|
|
18
15
|
overflow: hidden;
|
|
16
|
+
overflow-wrap: anywhere;
|
|
17
|
+
|
|
18
|
+
font-family: monospace;
|
|
19
|
+
color: var(--prime);
|
|
20
|
+
text-overflow: ellipsis;
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/visualizer/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/visualizer/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;EAqBhB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/visualizer/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,YAAY,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;AAE9C,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AAGtC,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,qBAAqB,CAAC,GAAG,YAAY,CAAC,CAAC,UAAsB,EAAE,EAAE;IAC9F,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAE1B,OAAO,IAAI,CAAA
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../s/lib/ui/views/visualizer/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,YAAY,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;AAE9C,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,QAAQ,MAAM,iBAAiB,CAAA;AAGtC,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,qBAAqB,CAAC,GAAG,YAAY,CAAC,CAAC,UAAsB,EAAE,EAAE;IAC9F,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAE1B,OAAO,IAAI,CAAA;;sBAEU,UAAU,CAAC,IAAI,EAAE;EACrC,CAAA;AACF,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hash(...entropy: (string | number | Uint8Array)[]): Uint8Array;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { blake3 } from "@awasm/noble/js.js";
|
|
2
|
+
import { dataViewFrom, txt } from "@e280/stz";
|
|
3
|
+
const endian = false;
|
|
4
|
+
var EntropyType;
|
|
5
|
+
(function (EntropyType) {
|
|
6
|
+
EntropyType[EntropyType["String"] = 0] = "String";
|
|
7
|
+
EntropyType[EntropyType["Number"] = 1] = "Number";
|
|
8
|
+
EntropyType[EntropyType["Bytes"] = 2] = "Bytes";
|
|
9
|
+
})(EntropyType || (EntropyType = {}));
|
|
10
|
+
export function hash(...entropy) {
|
|
11
|
+
if (entropy.length === 0)
|
|
12
|
+
throw new RangeError("hash requires entropy");
|
|
13
|
+
const hasher = blake3.create();
|
|
14
|
+
const typeTag = new Uint8Array(1);
|
|
15
|
+
const lengthTag = new Uint8Array(4);
|
|
16
|
+
const lengthDataview = dataViewFrom(lengthTag);
|
|
17
|
+
for (const part of entropy) {
|
|
18
|
+
if (typeof part === "string") {
|
|
19
|
+
const bytes = txt.toBytes(part);
|
|
20
|
+
typeTag[0] = EntropyType.String;
|
|
21
|
+
lengthDataview.setUint32(0, bytes.byteLength, endian);
|
|
22
|
+
hasher.update(typeTag);
|
|
23
|
+
hasher.update(lengthTag);
|
|
24
|
+
hasher.update(bytes);
|
|
25
|
+
}
|
|
26
|
+
else if (typeof part === "number") {
|
|
27
|
+
const bytes = new Uint8Array(8);
|
|
28
|
+
dataViewFrom(bytes).setFloat64(0, part, endian);
|
|
29
|
+
typeTag[0] = EntropyType.Number;
|
|
30
|
+
lengthDataview.setUint32(0, bytes.byteLength, endian);
|
|
31
|
+
hasher.update(typeTag);
|
|
32
|
+
hasher.update(lengthTag);
|
|
33
|
+
hasher.update(bytes);
|
|
34
|
+
}
|
|
35
|
+
else if (part instanceof Uint8Array) {
|
|
36
|
+
typeTag[0] = EntropyType.Bytes;
|
|
37
|
+
lengthDataview.setUint32(0, part.byteLength, endian);
|
|
38
|
+
hasher.update(typeTag);
|
|
39
|
+
hasher.update(lengthTag);
|
|
40
|
+
hasher.update(part);
|
|
41
|
+
}
|
|
42
|
+
else
|
|
43
|
+
throw new Error("unknown part type");
|
|
44
|
+
}
|
|
45
|
+
return hasher.digest();
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=hash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash.js","sourceRoot":"","sources":["../../../s/lib/utils/hash.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAC,MAAM,oBAAoB,CAAA;AACzC,OAAO,EAAC,YAAY,EAAE,GAAG,EAAC,MAAM,WAAW,CAAA;AAE3C,MAAM,MAAM,GAAG,KAAK,CAAA;AACpB,IAAK,WAAmC;AAAxC,WAAK,WAAW;IAAE,iDAAM,CAAA;IAAE,iDAAM,CAAA;IAAE,+CAAK,CAAA;AAAA,CAAC,EAAnC,WAAW,KAAX,WAAW,QAAwB;AAExC,MAAM,UAAU,IAAI,CAAC,GAAG,OAAyC;IAChE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QACvB,MAAM,IAAI,UAAU,CAAC,uBAAuB,CAAC,CAAA;IAE9C,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,CAAA;IAC9B,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;IACjC,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;IACnC,MAAM,cAAc,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;IAE9C,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC9B,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;YAC/B,OAAO,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,CAAA;YAC/B,cAAc,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,CA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
4
|
-
|
|
5
|
-
import {PlayerId} from "./types.js"
|
|
6
|
-
import {Bindings} from "../../input/types.js"
|
|
7
|
-
import {InputDecoder} from "../../input/decoder.js"
|
|
8
|
-
import {decodeParcels} from "../../input/data/parcel/decode.js"
|
|
9
|
-
|
|
10
|
-
export class Collector<B extends Bindings> {
|
|
11
|
-
#bindings: B
|
|
12
|
-
#decoders = new RMap<PlayerId, InputDecoder<B>>()
|
|
13
|
-
|
|
14
|
-
constructor(bindings: B) {
|
|
15
|
-
this.#bindings = bindings
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
get players() {
|
|
19
|
-
return [...this.#decoders].map(([playerId, decoder]) => ({
|
|
20
|
-
playerId,
|
|
21
|
-
inputs: decoder.inputs,
|
|
22
|
-
}))
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
#getDecoder(playerId: PlayerId) {
|
|
26
|
-
return guarantee(
|
|
27
|
-
this.#decoders,
|
|
28
|
-
playerId,
|
|
29
|
-
() => new InputDecoder(this.#bindings),
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
decodeAll(...buffers: ArrayBuffer[]) {
|
|
34
|
-
const grouped = new Map<PlayerId, ArrayBuffer[]>()
|
|
35
|
-
|
|
36
|
-
for (const buffer of buffers) {
|
|
37
|
-
for (const {playerId, intents} of decodeParcels(buffer))
|
|
38
|
-
guarantee(grouped, playerId, () => []).push(intents)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
for (const [playerId, intents] of grouped)
|
|
42
|
-
this.#getDecoder(playerId).decode(...intents)
|
|
43
|
-
|
|
44
|
-
for (const playerId of this.#decoders.keys()) {
|
|
45
|
-
if (!grouped.has(playerId))
|
|
46
|
-
this.#decoders.delete(playerId)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return this.players
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Bindings } from "../../input/types.js";
|
|
2
|
-
export declare class Collector<B extends Bindings> {
|
|
3
|
-
#private;
|
|
4
|
-
constructor(bindings: B);
|
|
5
|
-
get players(): {
|
|
6
|
-
playerId: number;
|
|
7
|
-
inputs: import("../../input/types.js").Inputs<B>;
|
|
8
|
-
}[];
|
|
9
|
-
decodeAll(...buffers: ArrayBuffer[]): {
|
|
10
|
-
playerId: number;
|
|
11
|
-
inputs: import("../../input/types.js").Inputs<B>;
|
|
12
|
-
}[];
|
|
13
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { RMap } from "@e280/strata";
|
|
2
|
-
import { guarantee } from "@e280/stz";
|
|
3
|
-
import { InputDecoder } from "../../input/decoder.js";
|
|
4
|
-
import { decodeParcels } from "../../input/data/parcel/decode.js";
|
|
5
|
-
export class Collector {
|
|
6
|
-
#bindings;
|
|
7
|
-
#decoders = new RMap();
|
|
8
|
-
constructor(bindings) {
|
|
9
|
-
this.#bindings = bindings;
|
|
10
|
-
}
|
|
11
|
-
get players() {
|
|
12
|
-
return [...this.#decoders].map(([playerId, decoder]) => ({
|
|
13
|
-
playerId,
|
|
14
|
-
inputs: decoder.inputs,
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
#getDecoder(playerId) {
|
|
18
|
-
return guarantee(this.#decoders, playerId, () => new InputDecoder(this.#bindings));
|
|
19
|
-
}
|
|
20
|
-
decodeAll(...buffers) {
|
|
21
|
-
const grouped = new Map();
|
|
22
|
-
for (const buffer of buffers) {
|
|
23
|
-
for (const { playerId, intents } of decodeParcels(buffer))
|
|
24
|
-
guarantee(grouped, playerId, () => []).push(intents);
|
|
25
|
-
}
|
|
26
|
-
for (const [playerId, intents] of grouped)
|
|
27
|
-
this.#getDecoder(playerId).decode(...intents);
|
|
28
|
-
for (const playerId of this.#decoders.keys()) {
|
|
29
|
-
if (!grouped.has(playerId))
|
|
30
|
-
this.#decoders.delete(playerId);
|
|
31
|
-
}
|
|
32
|
-
return this.players;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=collector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collector.js","sourceRoot":"","sources":["../../../../s/lib/ui/deck/collector.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAA;AACjC,OAAO,EAAC,SAAS,EAAC,MAAM,WAAW,CAAA;AAInC,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,mCAAmC,CAAA;AAE/D,MAAM,OAAO,SAAS;IACrB,SAAS,CAAG;IACZ,SAAS,GAAG,IAAI,IAAI,EAA6B,CAAA;IAEjD,YAAY,QAAW;QACtB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAA;IAC1B,CAAC;IAED,IAAI,OAAO;QACV,OAAO,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;YACxD,QAAQ;YACR,MAAM,EAAE,OAAO,CAAC,MAAM;SACtB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,WAAW,CAAC,QAAkB;QAC7B,OAAO,SAAS,CACf,IAAI,CAAC,SAAS,EACd,QAAQ,EACR,GAAG,EAAE,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CACtC,CAAA;IACF,CAAC;IAED,SAAS,CAAC,GAAG,OAAsB;QAClC,MAAM,OAAO,GAAG,IAAI,GAAG,EAA2B,CAAA;QAElD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;YAC9B,KAAK,MAAM,EAAC,QAAQ,EAAE,OAAO,EAAC,IAAI,aAAa,CAAC,MAAM,CAAC;gBACtD,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACtD,CA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