@dreamboard-games/sdk 0.2.1-alpha.0 → 0.2.1-alpha.1
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/{ThemeProvider-fy0_QzgO.d.ts → ThemeProvider-BBMVT3KG.d.ts} +1 -1
- package/dist/attributes-BeRyboMS.d.ts +279 -0
- package/dist/browser-interaction.d.ts +708 -0
- package/dist/browser-interaction.js +106 -0
- package/dist/browser-interaction.js.map +1 -0
- package/dist/{chunk-U5C6BONG.js → chunk-326PGVAA.js} +2 -2
- package/dist/{chunk-GKKBPPSW.js → chunk-MZNVHMJ5.js} +4 -4
- package/dist/{chunk-KAELH4KC.js → chunk-NKCRKGR2.js} +2 -2
- package/dist/{chunk-YFY3RL52.js → chunk-PEI3FIL2.js} +2 -2
- package/dist/{chunk-YFY3RL52.js.map → chunk-PEI3FIL2.js.map} +1 -1
- package/dist/chunk-QLG6VEMW.js +1691 -0
- package/dist/chunk-QLG6VEMW.js.map +1 -0
- package/dist/{chunk-WYPQ3GG5.js → chunk-WG4JQL3S.js} +4 -1
- package/dist/{chunk-WYPQ3GG5.js.map → chunk-WG4JQL3S.js.map} +1 -1
- package/dist/{chunk-7YAHLYBR.js → chunk-XV6D3ET4.js} +8 -4
- package/dist/{chunk-7YAHLYBR.js.map → chunk-XV6D3ET4.js.map} +1 -1
- package/dist/{chunk-TDSWKVZ4.js → chunk-ZABVH7AO.js} +1236 -17
- package/dist/chunk-ZABVH7AO.js.map +1 -0
- package/dist/{components-D5ZRE2Hl.d.ts → components-BoiVSYqx.d.ts} +1 -1
- package/dist/generated/runtime/primitives.d.ts +5 -4
- package/dist/generated/runtime/primitives.js +4 -3
- package/dist/generated/runtime-api.d.ts +1 -1
- package/dist/generated/runtime.d.ts +5 -4
- package/dist/generated/runtime.js +7 -6
- package/dist/generated/workspace-contract.d.ts +5 -4
- package/dist/generated/workspace-contract.js +6 -5
- package/dist/{hex-board-view-D_07hO6O.d.ts → hex-board-view-1iAyJRFn.d.ts} +1 -0
- package/dist/index.js +1 -1
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +1 -1
- package/dist/reducer.js +304 -11
- package/dist/reducer.js.map +1 -1
- package/dist/runtime/primitives.d.ts +6 -5
- package/dist/runtime/primitives.js +4 -3
- package/dist/runtime/workspace-contract.d.ts +6 -5
- package/dist/runtime/workspace-contract.js +6 -5
- package/dist/{runtime-api-DWxvTr-O.d.ts → runtime-api-CPLm_XDG.d.ts} +6 -0
- package/dist/runtime.d.ts +5 -4
- package/dist/runtime.js +6 -5
- package/dist/testing.d.ts +1 -1
- package/dist/ui/components.d.ts +2 -2
- package/dist/ui/components.js +1 -1
- package/dist/{ui-contract-iQfTtUSL.d.ts → ui-contract-rzKBwOLC.d.ts} +5 -3
- package/dist/ui.d.ts +5 -5
- package/dist/ui.js +2 -2
- package/package.json +7 -1
- package/src/browser-interaction/attributes.ts +211 -0
- package/src/browser-interaction/canonical.ts +77 -0
- package/src/browser-interaction/constants.ts +77 -0
- package/src/browser-interaction/effects.ts +176 -0
- package/src/browser-interaction/index.ts +111 -0
- package/src/browser-interaction/normalize.ts +997 -0
- package/src/browser-interaction/registry.ts +70 -0
- package/src/browser-interaction/resolve.ts +596 -0
- package/src/browser-interaction/schemas.ts +152 -0
- package/src/browser-interaction/types.ts +304 -0
- package/src/browser-interaction.ts +1 -0
- package/src/package-set.ts +1 -1
- package/src/reducer/bundle/trusted/interaction-types.ts +3 -0
- package/src/reducer/bundle/trusted/projection-builder.ts +337 -13
- package/src/reducer/ingress/input-codec.ts +1 -1
- package/src/reducer/ingress/session-codec.ts +1 -1
- package/src/runtime-internal/components/InteractionForm.tsx +345 -7
- package/src/runtime-internal/components/PluginRuntime.tsx +2 -0
- package/src/runtime-internal/components/board/target-layer.ts +2 -0
- package/src/runtime-internal/context/PluginStateContext.tsx +41 -0
- package/src/runtime-internal/hooks/useBoardInteractions.ts +73 -11
- package/src/runtime-internal/primitives/board.tsx +71 -0
- package/src/runtime-internal/primitives/interaction.tsx +160 -1
- package/src/runtime-internal/types/plugin-state.ts +6 -0
- package/src/runtime-internal/utils/browser-interaction-effects.ts +240 -0
- package/src/runtime-internal/utils/interaction-draft-digest.ts +252 -0
- package/src/runtime-internal/utils/semantic-projection-digest.ts +407 -0
- package/src/ui/components/board/HexGrid.tsx +3 -0
- package/src/ui/components/board/target-layer.ts +1 -0
- package/dist/chunk-TDSWKVZ4.js.map +0 -1
- /package/dist/{chunk-U5C6BONG.js.map → chunk-326PGVAA.js.map} +0 -0
- /package/dist/{chunk-GKKBPPSW.js.map → chunk-MZNVHMJ5.js.map} +0 -0
- /package/dist/{chunk-KAELH4KC.js.map → chunk-NKCRKGR2.js.map} +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BROWSER_INTERACTION_ACTUATOR_KINDS,
|
|
3
|
+
BROWSER_INTERACTION_ATTRIBUTES,
|
|
4
|
+
BROWSER_INTERACTION_CANDIDATE_STATES,
|
|
5
|
+
BROWSER_INTERACTION_READINESS_VALUES,
|
|
6
|
+
BROWSER_INTERACTION_RECORD_ROLES,
|
|
7
|
+
DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME,
|
|
8
|
+
DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION,
|
|
9
|
+
GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS,
|
|
10
|
+
GAMEPLAY_BROWSER_INTERACTION_INTENTS,
|
|
11
|
+
GAMEPLAY_BROWSER_INTERACTION_SURFACE,
|
|
12
|
+
actuatorIdentityKey,
|
|
13
|
+
assertBrowserInteractionEffectPattern,
|
|
14
|
+
browserGameplayInteractionSchema,
|
|
15
|
+
browserGameplaySurfaceSnapshotSchema,
|
|
16
|
+
browserInteractionActuatorSchema,
|
|
17
|
+
browserInteractionDiagnosticSchema,
|
|
18
|
+
browserInteractionEffectPatternMatches,
|
|
19
|
+
browserInteractionEffectPatternSchema,
|
|
20
|
+
browserInteractionEffectSchema,
|
|
21
|
+
browserInteractionSnapshotSchema,
|
|
22
|
+
browserSemanticSurfaceSnapshotSchema,
|
|
23
|
+
browserUnknownSurfaceSnapshotSchema,
|
|
24
|
+
compareStableJson,
|
|
25
|
+
createBrowserInteractionActuatorAttributes,
|
|
26
|
+
createBrowserInteractionActuatorKey,
|
|
27
|
+
createBrowserInteractionRegistry,
|
|
28
|
+
createBrowserInteractionRootAttributes,
|
|
29
|
+
createGameplayActuatorAttributes,
|
|
30
|
+
createGameplayInteractionRootAttributes,
|
|
31
|
+
decodeBrowserInteractionEffect,
|
|
32
|
+
decodeBrowserInteractionEffectPattern,
|
|
33
|
+
decodeCanonicalCandidateValue,
|
|
34
|
+
defaultBrowserInteractionRegistry,
|
|
35
|
+
defineBrowserInteractionSurface,
|
|
36
|
+
encodeBrowserInteractionEffect,
|
|
37
|
+
encodeBrowserInteractionEffectPattern,
|
|
38
|
+
encodeCanonicalCandidateValue,
|
|
39
|
+
gameplayAdjustResourceEffect,
|
|
40
|
+
gameplayBrowserInteractionSurface,
|
|
41
|
+
gameplayCommitEffect,
|
|
42
|
+
gameplayInvokeEffect,
|
|
43
|
+
gameplaySemanticEffectSchema,
|
|
44
|
+
gameplaySetCandidateEffect,
|
|
45
|
+
gameplaySetScalarEffect,
|
|
46
|
+
isSemanticSurfaceSnapshot,
|
|
47
|
+
normalizeBrowserInteractionRecords,
|
|
48
|
+
resolveBrowserInteractionEffect,
|
|
49
|
+
resolveBrowserInteractionIntent,
|
|
50
|
+
targetIdentityKey,
|
|
51
|
+
validateBrowserInteractionSnapshot
|
|
52
|
+
} from "./chunk-QLG6VEMW.js";
|
|
53
|
+
import "./chunk-PZ5AY32C.js";
|
|
54
|
+
export {
|
|
55
|
+
BROWSER_INTERACTION_ACTUATOR_KINDS,
|
|
56
|
+
BROWSER_INTERACTION_ATTRIBUTES,
|
|
57
|
+
BROWSER_INTERACTION_CANDIDATE_STATES,
|
|
58
|
+
BROWSER_INTERACTION_READINESS_VALUES,
|
|
59
|
+
BROWSER_INTERACTION_RECORD_ROLES,
|
|
60
|
+
DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME,
|
|
61
|
+
DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION,
|
|
62
|
+
GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS,
|
|
63
|
+
GAMEPLAY_BROWSER_INTERACTION_INTENTS,
|
|
64
|
+
GAMEPLAY_BROWSER_INTERACTION_SURFACE,
|
|
65
|
+
actuatorIdentityKey,
|
|
66
|
+
assertBrowserInteractionEffectPattern,
|
|
67
|
+
browserGameplayInteractionSchema,
|
|
68
|
+
browserGameplaySurfaceSnapshotSchema,
|
|
69
|
+
browserInteractionActuatorSchema,
|
|
70
|
+
browserInteractionDiagnosticSchema,
|
|
71
|
+
browserInteractionEffectPatternMatches,
|
|
72
|
+
browserInteractionEffectPatternSchema,
|
|
73
|
+
browserInteractionEffectSchema,
|
|
74
|
+
browserInteractionSnapshotSchema,
|
|
75
|
+
browserSemanticSurfaceSnapshotSchema,
|
|
76
|
+
browserUnknownSurfaceSnapshotSchema,
|
|
77
|
+
compareStableJson,
|
|
78
|
+
createBrowserInteractionActuatorAttributes,
|
|
79
|
+
createBrowserInteractionActuatorKey,
|
|
80
|
+
createBrowserInteractionRegistry,
|
|
81
|
+
createBrowserInteractionRootAttributes,
|
|
82
|
+
createGameplayActuatorAttributes,
|
|
83
|
+
createGameplayInteractionRootAttributes,
|
|
84
|
+
decodeBrowserInteractionEffect,
|
|
85
|
+
decodeBrowserInteractionEffectPattern,
|
|
86
|
+
decodeCanonicalCandidateValue,
|
|
87
|
+
defaultBrowserInteractionRegistry,
|
|
88
|
+
defineBrowserInteractionSurface,
|
|
89
|
+
encodeBrowserInteractionEffect,
|
|
90
|
+
encodeBrowserInteractionEffectPattern,
|
|
91
|
+
encodeCanonicalCandidateValue,
|
|
92
|
+
gameplayAdjustResourceEffect,
|
|
93
|
+
gameplayBrowserInteractionSurface,
|
|
94
|
+
gameplayCommitEffect,
|
|
95
|
+
gameplayInvokeEffect,
|
|
96
|
+
gameplaySemanticEffectSchema,
|
|
97
|
+
gameplaySetCandidateEffect,
|
|
98
|
+
gameplaySetScalarEffect,
|
|
99
|
+
isSemanticSurfaceSnapshot,
|
|
100
|
+
normalizeBrowserInteractionRecords,
|
|
101
|
+
resolveBrowserInteractionEffect,
|
|
102
|
+
resolveBrowserInteractionIntent,
|
|
103
|
+
targetIdentityKey,
|
|
104
|
+
validateBrowserInteractionSnapshot
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=browser-interaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
PromptInbox,
|
|
10
10
|
UI,
|
|
11
11
|
Zone
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZABVH7AO.js";
|
|
13
13
|
|
|
14
14
|
// src/runtime-internal/ui-contract.ts
|
|
15
15
|
function createDreamboardUI(contract) {
|
|
@@ -31,4 +31,4 @@ function createDreamboardUI(contract) {
|
|
|
31
31
|
export {
|
|
32
32
|
createDreamboardUI
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-326PGVAA.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDreamboardUI
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-326PGVAA.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientParamSchemaProvider,
|
|
6
6
|
HandStagingView,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
usePluginState,
|
|
11
11
|
useResolvedCardTargetValue,
|
|
12
12
|
useZoneCards
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZABVH7AO.js";
|
|
14
14
|
import {
|
|
15
15
|
CardFace,
|
|
16
16
|
MobileHandTrayProvider,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
createResourceCounter,
|
|
19
19
|
useIsMobile,
|
|
20
20
|
useRegisterMobileHand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WG4JQL3S.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-internal/workspace-contract.ts
|
|
24
24
|
import { Fragment as ReactFragment, createElement, useMemo } from "react";
|
|
@@ -595,4 +595,4 @@ function createWorkspaceUIContract(options) {
|
|
|
595
595
|
export {
|
|
596
596
|
createWorkspaceUIContract
|
|
597
597
|
};
|
|
598
|
-
//# sourceMappingURL=chunk-
|
|
598
|
+
//# sourceMappingURL=chunk-MZNVHMJ5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useTheme
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WG4JQL3S.js";
|
|
4
4
|
|
|
5
5
|
// src/ui/helpers/track-board.ts
|
|
6
6
|
function positionForLayout(layout, index, count) {
|
|
@@ -101,4 +101,4 @@ export {
|
|
|
101
101
|
parseHexColor,
|
|
102
102
|
hexColor
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=chunk-
|
|
104
|
+
//# sourceMappingURL=chunk-NKCRKGR2.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/package-set.ts
|
|
2
|
-
var DREAMBOARD_SDK_VERSION = "0.2.1-alpha.
|
|
2
|
+
var DREAMBOARD_SDK_VERSION = "0.2.1-alpha.1";
|
|
3
3
|
var DREAMBOARD_SDK_PACKAGES = {
|
|
4
4
|
"@dreamboard-games/sdk": DREAMBOARD_SDK_VERSION
|
|
5
5
|
};
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
DREAMBOARD_SDK_PACKAGES,
|
|
15
15
|
DREAMBOARD_SDK_PACKAGE_SET
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=chunk-
|
|
17
|
+
//# sourceMappingURL=chunk-PEI3FIL2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/package-set.ts"],"sourcesContent":["export const DREAMBOARD_SDK_VERSION = \"0.2.1-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/package-set.ts"],"sourcesContent":["export const DREAMBOARD_SDK_VERSION = \"0.2.1-alpha.1\";\n\nexport const DREAMBOARD_SDK_PACKAGES = {\n \"@dreamboard-games/sdk\": DREAMBOARD_SDK_VERSION,\n} as const;\n\nexport type DreamboardSdkPackageName = keyof typeof DREAMBOARD_SDK_PACKAGES;\n\nexport type DreamboardSdkPackageSet = {\n version: 1;\n sdkVersion: string;\n packages: Record<DreamboardSdkPackageName, string>;\n};\n\nexport const DREAMBOARD_SDK_PACKAGE_SET: DreamboardSdkPackageSet = {\n version: 1,\n sdkVersion: DREAMBOARD_SDK_VERSION,\n packages: DREAMBOARD_SDK_PACKAGES,\n};\n"],"mappings":";AAAO,IAAM,yBAAyB;AAE/B,IAAM,0BAA0B;AAAA,EACrC,yBAAyB;AAC3B;AAUO,IAAM,6BAAsD;AAAA,EACjE,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,UAAU;AACZ;","names":[]}
|