@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import { _ as Theme, a0 as ThemeOverride } from './hex-board-view-
|
|
3
|
+
import { _ as Theme, a0 as ThemeOverride } from './hex-board-view-1iAyJRFn.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The set of preset theme ids ships in `@dreamboard-games/sdk/ui`. Authors
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
declare const DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME: "dreamboard-browser-interaction";
|
|
2
|
+
declare const DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION: "2.0.0";
|
|
3
|
+
declare const BROWSER_INTERACTION_ATTRIBUTES: {
|
|
4
|
+
readonly protocol: "data-dreamboard-browser-protocol";
|
|
5
|
+
readonly surface: "data-dreamboard-browser-surface";
|
|
6
|
+
readonly scope: "data-dreamboard-browser-scope";
|
|
7
|
+
readonly role: "data-dreamboard-browser-role";
|
|
8
|
+
readonly intent: "data-dreamboard-browser-intent";
|
|
9
|
+
readonly interactionKey: "data-dreamboard-interaction-key";
|
|
10
|
+
readonly interactionId: "data-dreamboard-interaction-id";
|
|
11
|
+
readonly descriptorDigest: "data-dreamboard-descriptor-digest";
|
|
12
|
+
readonly draftDigest: "data-dreamboard-draft-digest";
|
|
13
|
+
readonly readiness: "data-dreamboard-readiness";
|
|
14
|
+
readonly inputKey: "data-dreamboard-input-key";
|
|
15
|
+
readonly candidateValue: "data-dreamboard-candidate-value";
|
|
16
|
+
readonly candidateState: "data-dreamboard-candidate-state";
|
|
17
|
+
readonly actuatorKind: "data-dreamboard-actuator-kind";
|
|
18
|
+
readonly enabled: "data-dreamboard-actuator-enabled";
|
|
19
|
+
readonly actuatorId: "data-dreamboard-actuator-id";
|
|
20
|
+
readonly semanticEffects: "data-dreamboard-semantic-effects";
|
|
21
|
+
readonly acceptedEffectPatterns: "data-dreamboard-accepted-effect-patterns";
|
|
22
|
+
readonly preparationPatterns: "data-dreamboard-preparation-patterns";
|
|
23
|
+
readonly preparesIntent: "data-dreamboard-prepares-intent";
|
|
24
|
+
readonly preparesInputKey: "data-dreamboard-prepares-input-key";
|
|
25
|
+
readonly preparesCandidateValue: "data-dreamboard-prepares-candidate-value";
|
|
26
|
+
readonly preparesActuatorKind: "data-dreamboard-prepares-actuator-kind";
|
|
27
|
+
readonly diagnostic: "data-dreamboard-browser-diagnostic";
|
|
28
|
+
};
|
|
29
|
+
declare const BROWSER_INTERACTION_RECORD_ROLES: readonly ["interaction", "actuator"];
|
|
30
|
+
declare const GAMEPLAY_BROWSER_INTERACTION_SURFACE: "gameplay";
|
|
31
|
+
declare const GAMEPLAY_BROWSER_INTERACTION_INTENTS: readonly ["arm", "reveal", "invoke", "select", "toggle", "increment", "decrement", "fill", "submit"];
|
|
32
|
+
declare const GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS: readonly ["setCandidate", "adjustResource", "setScalar", "commit", "invoke"];
|
|
33
|
+
declare const BROWSER_INTERACTION_READINESS_VALUES: readonly ["ready", "blocked", "unavailable"];
|
|
34
|
+
declare const BROWSER_INTERACTION_CANDIDATE_STATES: readonly ["selected", "unselected", "mixed"];
|
|
35
|
+
declare const BROWSER_INTERACTION_ACTUATOR_KINDS: readonly ["click", "fill", "keyboard", "pointer"];
|
|
36
|
+
|
|
37
|
+
type CanonicalBrowserInteractionValue = null | boolean | number | string | readonly CanonicalBrowserInteractionValue[] | {
|
|
38
|
+
readonly [key: string]: CanonicalBrowserInteractionValue;
|
|
39
|
+
};
|
|
40
|
+
declare function encodeCanonicalCandidateValue(value: unknown): string;
|
|
41
|
+
declare function decodeCanonicalCandidateValue(encoded: string): CanonicalBrowserInteractionValue;
|
|
42
|
+
declare function compareStableJson(a: unknown, b: unknown): number;
|
|
43
|
+
|
|
44
|
+
type BrowserInteractionSurface = string;
|
|
45
|
+
type BrowserInteractionIntent = string;
|
|
46
|
+
type GameplayBrowserInteractionSurface = typeof GAMEPLAY_BROWSER_INTERACTION_SURFACE;
|
|
47
|
+
type GameplayBrowserInteractionIntent = (typeof GAMEPLAY_BROWSER_INTERACTION_INTENTS)[number];
|
|
48
|
+
type GameplayBrowserInteractionEffectKind = (typeof GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS)[number];
|
|
49
|
+
type BrowserInteractionReadiness = (typeof BROWSER_INTERACTION_READINESS_VALUES)[number];
|
|
50
|
+
type BrowserInteractionCandidateState = (typeof BROWSER_INTERACTION_CANDIDATE_STATES)[number];
|
|
51
|
+
type BrowserInteractionActuatorKind = (typeof BROWSER_INTERACTION_ACTUATOR_KINDS)[number];
|
|
52
|
+
interface BrowserInteractionProtocolIdentity {
|
|
53
|
+
readonly name: "dreamboard-browser-interaction";
|
|
54
|
+
readonly version: "2.0.0";
|
|
55
|
+
}
|
|
56
|
+
type BrowserInteractionSurfaceEffect = {
|
|
57
|
+
readonly kind: string;
|
|
58
|
+
readonly [key: string]: CanonicalBrowserInteractionValue;
|
|
59
|
+
};
|
|
60
|
+
interface BrowserInteractionScalarPattern {
|
|
61
|
+
readonly field: string;
|
|
62
|
+
readonly min?: number;
|
|
63
|
+
readonly max?: number;
|
|
64
|
+
readonly integer?: boolean;
|
|
65
|
+
}
|
|
66
|
+
type BrowserInteractionEffectPattern<Effect extends BrowserInteractionSurfaceEffect = BrowserInteractionSurfaceEffect> = {
|
|
67
|
+
readonly kind: "exact";
|
|
68
|
+
readonly effect: Effect;
|
|
69
|
+
} | {
|
|
70
|
+
readonly kind: "match";
|
|
71
|
+
readonly effectKind: Effect["kind"] & string;
|
|
72
|
+
readonly fields?: Readonly<Record<string, CanonicalBrowserInteractionValue>>;
|
|
73
|
+
readonly scalar?: BrowserInteractionScalarPattern;
|
|
74
|
+
};
|
|
75
|
+
type GameplaySemanticEffect = {
|
|
76
|
+
readonly kind: "setCandidate";
|
|
77
|
+
readonly inputKey: string;
|
|
78
|
+
readonly candidateValue: CanonicalBrowserInteractionValue;
|
|
79
|
+
readonly beforeSelected: boolean;
|
|
80
|
+
readonly afterSelected: boolean;
|
|
81
|
+
} | {
|
|
82
|
+
readonly kind: "adjustResource";
|
|
83
|
+
readonly inputKey: string;
|
|
84
|
+
readonly resourceKey: CanonicalBrowserInteractionValue;
|
|
85
|
+
readonly delta: -1 | 1;
|
|
86
|
+
} | {
|
|
87
|
+
readonly kind: "setScalar";
|
|
88
|
+
readonly inputKey: string;
|
|
89
|
+
readonly value: number;
|
|
90
|
+
} | {
|
|
91
|
+
readonly kind: "commit";
|
|
92
|
+
} | {
|
|
93
|
+
readonly kind: "invoke";
|
|
94
|
+
};
|
|
95
|
+
type GameplaySemanticEffectPattern = BrowserInteractionEffectPattern<GameplaySemanticEffect>;
|
|
96
|
+
interface BrowserInteractionDiagnostic {
|
|
97
|
+
readonly code: "ambiguous-actuator" | "ambiguous-effect-match" | "ambiguous-preparation-pattern" | "disabled-effect-actuator" | "duplicate-accepted-effect-pattern-match" | "duplicate-enabled-actuator" | "duplicate-enabled-effect-actuator" | "effect-actuator-kind-incompatibility" | "effect-intent-incompatibility" | "invalid-candidate" | "invalid-effect-payload" | "invalid-effect-pattern" | "invalid-protocol" | "invalid-record" | "invalid-scalar-argument" | "missing-effect" | "orphan-actuator" | "preparation-cycle" | "surface-intent-collision" | "unknown-surface-effect" | "unknown-intent" | "unknown-surface" | "unavailable-actuator";
|
|
98
|
+
readonly severity: "error" | "warning";
|
|
99
|
+
readonly message: string;
|
|
100
|
+
readonly surface?: BrowserInteractionSurface;
|
|
101
|
+
readonly scopeId?: string;
|
|
102
|
+
readonly interactionKey?: string;
|
|
103
|
+
readonly intent?: BrowserInteractionIntent;
|
|
104
|
+
readonly actuatorId?: string;
|
|
105
|
+
}
|
|
106
|
+
interface BrowserInteractionRawRecord {
|
|
107
|
+
readonly attributes: Readonly<Record<string, string | boolean | null | undefined>>;
|
|
108
|
+
}
|
|
109
|
+
interface BrowserInteractionPreparationTarget {
|
|
110
|
+
readonly intent: BrowserInteractionIntent;
|
|
111
|
+
readonly inputKey?: string;
|
|
112
|
+
readonly candidateValue?: CanonicalBrowserInteractionValue;
|
|
113
|
+
readonly candidateValueKey?: string;
|
|
114
|
+
readonly actuatorKind?: BrowserInteractionActuatorKind;
|
|
115
|
+
}
|
|
116
|
+
interface BrowserInteractionActuator {
|
|
117
|
+
readonly actuatorId: string;
|
|
118
|
+
readonly intent: BrowserInteractionIntent;
|
|
119
|
+
readonly descriptorDigest?: string;
|
|
120
|
+
readonly draftDigest?: string;
|
|
121
|
+
readonly inputKey?: string;
|
|
122
|
+
readonly candidateValue?: CanonicalBrowserInteractionValue;
|
|
123
|
+
readonly candidateValueKey?: string;
|
|
124
|
+
readonly candidateState?: BrowserInteractionCandidateState;
|
|
125
|
+
readonly enabled: boolean;
|
|
126
|
+
readonly actuatorKind: BrowserInteractionActuatorKind;
|
|
127
|
+
readonly semanticEffects: readonly BrowserInteractionSurfaceEffect[];
|
|
128
|
+
readonly acceptedEffectPatterns: readonly BrowserInteractionEffectPattern[];
|
|
129
|
+
readonly preparationPatterns: readonly BrowserInteractionEffectPattern[];
|
|
130
|
+
readonly prepares?: BrowserInteractionPreparationTarget;
|
|
131
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
132
|
+
}
|
|
133
|
+
interface BrowserInteractionEntity {
|
|
134
|
+
readonly interactionKey: string;
|
|
135
|
+
readonly interactionId: string;
|
|
136
|
+
readonly descriptorDigest?: string;
|
|
137
|
+
readonly draftDigest?: string;
|
|
138
|
+
readonly readiness: BrowserInteractionReadiness;
|
|
139
|
+
readonly actuators: readonly BrowserInteractionActuator[];
|
|
140
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
141
|
+
}
|
|
142
|
+
type BrowserGameplayInteraction = BrowserInteractionEntity;
|
|
143
|
+
interface BrowserInteractionSemanticSurfaceSnapshot<Surface extends BrowserInteractionSurface = BrowserInteractionSurface> {
|
|
144
|
+
readonly surface: Surface;
|
|
145
|
+
readonly scopeId: string;
|
|
146
|
+
readonly interactions: readonly BrowserInteractionEntity[];
|
|
147
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
148
|
+
}
|
|
149
|
+
interface BrowserGameplaySurfaceSnapshot {
|
|
150
|
+
readonly surface: GameplayBrowserInteractionSurface;
|
|
151
|
+
readonly scopeId: string;
|
|
152
|
+
readonly interactions: readonly BrowserGameplayInteraction[];
|
|
153
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
154
|
+
}
|
|
155
|
+
interface BrowserInteractionUnknownSurfaceSnapshot {
|
|
156
|
+
readonly surface: BrowserInteractionSurface;
|
|
157
|
+
readonly scopeId: string;
|
|
158
|
+
readonly interactions?: never;
|
|
159
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
160
|
+
}
|
|
161
|
+
type BrowserInteractionSurfaceSnapshot = BrowserGameplaySurfaceSnapshot | BrowserInteractionSemanticSurfaceSnapshot | BrowserInteractionUnknownSurfaceSnapshot;
|
|
162
|
+
interface BrowserInteractionSnapshot {
|
|
163
|
+
readonly protocol: BrowserInteractionProtocolIdentity;
|
|
164
|
+
readonly surfaces: readonly BrowserInteractionSurfaceSnapshot[];
|
|
165
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
166
|
+
}
|
|
167
|
+
interface BrowserInteractionSurfaceDefinition<Surface extends BrowserInteractionSurface = BrowserInteractionSurface, Intent extends BrowserInteractionIntent = BrowserInteractionIntent, EffectKind extends string = string> {
|
|
168
|
+
readonly surface: Surface;
|
|
169
|
+
readonly intents: readonly Intent[];
|
|
170
|
+
readonly effectKinds?: readonly EffectKind[];
|
|
171
|
+
}
|
|
172
|
+
interface BrowserInteractionRegistry {
|
|
173
|
+
readonly surfaces: ReadonlyMap<BrowserInteractionSurface, BrowserInteractionSurfaceDefinition>;
|
|
174
|
+
}
|
|
175
|
+
interface BrowserInteractionIntentRequest {
|
|
176
|
+
readonly surface: BrowserInteractionSurface;
|
|
177
|
+
readonly scopeId?: string;
|
|
178
|
+
readonly interactionKey?: string;
|
|
179
|
+
readonly interactionId?: string;
|
|
180
|
+
readonly intent: BrowserInteractionIntent;
|
|
181
|
+
readonly inputKey?: string;
|
|
182
|
+
readonly candidateValue?: unknown;
|
|
183
|
+
readonly candidateValueKey?: string;
|
|
184
|
+
readonly actuatorKind?: BrowserInteractionActuatorKind;
|
|
185
|
+
readonly allowDisabled?: boolean;
|
|
186
|
+
}
|
|
187
|
+
interface BrowserInteractionEffectRequest<Effect extends BrowserInteractionSurfaceEffect = BrowserInteractionSurfaceEffect> {
|
|
188
|
+
readonly surface: BrowserInteractionSurface;
|
|
189
|
+
readonly scopeId?: string;
|
|
190
|
+
readonly interactionKey?: string;
|
|
191
|
+
readonly interactionId?: string;
|
|
192
|
+
readonly effect: Effect;
|
|
193
|
+
readonly allowDisabled?: boolean;
|
|
194
|
+
}
|
|
195
|
+
type GameplayBrowserInteractionEffectRequest = BrowserInteractionEffectRequest<GameplaySemanticEffect>;
|
|
196
|
+
interface BrowserInteractionResolutionSuccess {
|
|
197
|
+
readonly ok: true;
|
|
198
|
+
readonly actuator: BrowserInteractionActuator;
|
|
199
|
+
readonly surface: BrowserInteractionSurface;
|
|
200
|
+
readonly scopeId: string;
|
|
201
|
+
readonly interactionKey: string;
|
|
202
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
203
|
+
}
|
|
204
|
+
interface BrowserInteractionResolutionFailure {
|
|
205
|
+
readonly ok: false;
|
|
206
|
+
readonly code: "ambiguous" | "invalid-snapshot" | "not-found" | "preparation-required" | "unavailable";
|
|
207
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
208
|
+
readonly preparation?: readonly BrowserInteractionActuator[];
|
|
209
|
+
}
|
|
210
|
+
type BrowserInteractionResolution = BrowserInteractionResolutionSuccess | BrowserInteractionResolutionFailure;
|
|
211
|
+
interface BrowserInteractionEffectResolutionSuccess {
|
|
212
|
+
readonly ok: true;
|
|
213
|
+
readonly actuator: BrowserInteractionActuator;
|
|
214
|
+
readonly surface: BrowserInteractionSurface;
|
|
215
|
+
readonly scopeId: string;
|
|
216
|
+
readonly interactionKey: string;
|
|
217
|
+
readonly match: "exact" | "accepted-pattern";
|
|
218
|
+
readonly effect: BrowserInteractionSurfaceEffect;
|
|
219
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
220
|
+
}
|
|
221
|
+
interface BrowserInteractionEffectResolutionFailure {
|
|
222
|
+
readonly ok: false;
|
|
223
|
+
readonly code: "ambiguous" | "invalid-effect" | "invalid-snapshot" | "not-found" | "preparation-required" | "unavailable";
|
|
224
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
225
|
+
readonly preparation?: readonly BrowserInteractionActuator[];
|
|
226
|
+
}
|
|
227
|
+
type BrowserInteractionEffectResolution = BrowserInteractionEffectResolutionSuccess | BrowserInteractionEffectResolutionFailure;
|
|
228
|
+
|
|
229
|
+
type BrowserInteractionAttributeMap = Record<string, string | boolean>;
|
|
230
|
+
interface BrowserInteractionRootAttributesInput {
|
|
231
|
+
readonly surface: string;
|
|
232
|
+
readonly scopeId: string;
|
|
233
|
+
readonly interactionKey: string;
|
|
234
|
+
readonly interactionId: string;
|
|
235
|
+
readonly descriptorDigest?: string;
|
|
236
|
+
readonly draftDigest?: string;
|
|
237
|
+
readonly readiness: BrowserInteractionReadiness;
|
|
238
|
+
}
|
|
239
|
+
interface BrowserInteractionActuatorAttributesInput {
|
|
240
|
+
readonly surface: string;
|
|
241
|
+
readonly scopeId: string;
|
|
242
|
+
readonly interactionKey: string;
|
|
243
|
+
readonly interactionId: string;
|
|
244
|
+
readonly descriptorDigest?: string;
|
|
245
|
+
readonly draftDigest?: string;
|
|
246
|
+
readonly intent: BrowserInteractionIntent;
|
|
247
|
+
readonly inputKey?: string;
|
|
248
|
+
readonly candidateValue?: unknown;
|
|
249
|
+
readonly candidateState?: BrowserInteractionCandidateState;
|
|
250
|
+
readonly enabled?: boolean;
|
|
251
|
+
readonly actuatorKind: BrowserInteractionActuatorKind;
|
|
252
|
+
readonly actuatorId?: string;
|
|
253
|
+
readonly semanticEffects?: readonly BrowserInteractionSurfaceEffect[];
|
|
254
|
+
readonly acceptedEffectPatterns?: readonly BrowserInteractionEffectPattern[];
|
|
255
|
+
readonly preparationPatterns?: readonly BrowserInteractionEffectPattern[];
|
|
256
|
+
readonly prepares?: BrowserInteractionPreparationTarget;
|
|
257
|
+
}
|
|
258
|
+
declare function createBrowserInteractionRootAttributes(input: BrowserInteractionRootAttributesInput): BrowserInteractionAttributeMap;
|
|
259
|
+
declare function createBrowserInteractionActuatorAttributes(input: BrowserInteractionActuatorAttributesInput): BrowserInteractionAttributeMap;
|
|
260
|
+
type GameplayInteractionRootAttributesInput = Omit<BrowserInteractionRootAttributesInput, "surface">;
|
|
261
|
+
type GameplayActuatorAttributesInput = Omit<BrowserInteractionActuatorAttributesInput, "surface" | "intent" | "semanticEffects" | "acceptedEffectPatterns" | "preparationPatterns"> & {
|
|
262
|
+
readonly intent: GameplayBrowserInteractionIntent;
|
|
263
|
+
readonly semanticEffects?: readonly GameplaySemanticEffect[];
|
|
264
|
+
readonly acceptedEffectPatterns?: readonly GameplaySemanticEffectPattern[];
|
|
265
|
+
readonly preparationPatterns?: readonly GameplaySemanticEffectPattern[];
|
|
266
|
+
};
|
|
267
|
+
declare function createGameplayInteractionRootAttributes(input: GameplayInteractionRootAttributesInput): BrowserInteractionAttributeMap;
|
|
268
|
+
declare function createGameplayActuatorAttributes(input: GameplayActuatorAttributesInput): BrowserInteractionAttributeMap;
|
|
269
|
+
declare function createBrowserInteractionActuatorKey(input: {
|
|
270
|
+
readonly surface: string;
|
|
271
|
+
readonly scopeId: string;
|
|
272
|
+
readonly interactionKey: string;
|
|
273
|
+
readonly intent: BrowserInteractionIntent;
|
|
274
|
+
readonly inputKey?: string;
|
|
275
|
+
readonly candidateValueKey?: string;
|
|
276
|
+
readonly actuatorKind: BrowserInteractionActuatorKind;
|
|
277
|
+
}): string;
|
|
278
|
+
|
|
279
|
+
export { createBrowserInteractionActuatorAttributes as $, type BrowserInteractionResolutionFailure as A, BROWSER_INTERACTION_ACTUATOR_KINDS as B, type BrowserInteractionResolutionSuccess as C, type BrowserInteractionRootAttributesInput as D, type BrowserInteractionScalarPattern as E, type BrowserInteractionSemanticSurfaceSnapshot as F, type BrowserInteractionSnapshot as G, type BrowserInteractionSurface as H, type BrowserInteractionSurfaceDefinition as I, type BrowserInteractionSurfaceEffect as J, type BrowserInteractionSurfaceSnapshot as K, type BrowserInteractionUnknownSurfaceSnapshot as L, type CanonicalBrowserInteractionValue as M, DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME as N, DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION as O, GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS as P, GAMEPLAY_BROWSER_INTERACTION_INTENTS as Q, GAMEPLAY_BROWSER_INTERACTION_SURFACE as R, type GameplayActuatorAttributesInput as S, type GameplayBrowserInteractionEffectKind as T, type GameplayBrowserInteractionEffectRequest as U, type GameplayBrowserInteractionIntent as V, type GameplayBrowserInteractionSurface as W, type GameplayInteractionRootAttributesInput as X, type GameplaySemanticEffect as Y, type GameplaySemanticEffectPattern as Z, compareStableJson as _, BROWSER_INTERACTION_ATTRIBUTES as a, createBrowserInteractionActuatorKey as a0, createBrowserInteractionRootAttributes as a1, createGameplayActuatorAttributes as a2, createGameplayInteractionRootAttributes as a3, decodeCanonicalCandidateValue as a4, encodeCanonicalCandidateValue as a5, BROWSER_INTERACTION_CANDIDATE_STATES as b, BROWSER_INTERACTION_READINESS_VALUES as c, BROWSER_INTERACTION_RECORD_ROLES as d, type BrowserGameplayInteraction as e, type BrowserGameplaySurfaceSnapshot as f, type BrowserInteractionActuator as g, type BrowserInteractionActuatorAttributesInput as h, type BrowserInteractionActuatorKind as i, type BrowserInteractionAttributeMap as j, type BrowserInteractionCandidateState as k, type BrowserInteractionDiagnostic as l, type BrowserInteractionEffectPattern as m, type BrowserInteractionEffectRequest as n, type BrowserInteractionEffectResolution as o, type BrowserInteractionEffectResolutionFailure as p, type BrowserInteractionEffectResolutionSuccess as q, type BrowserInteractionEntity as r, type BrowserInteractionIntent as s, type BrowserInteractionIntentRequest as t, type BrowserInteractionPreparationTarget as u, type BrowserInteractionProtocolIdentity as v, type BrowserInteractionRawRecord as w, type BrowserInteractionReadiness as x, type BrowserInteractionRegistry as y, type BrowserInteractionResolution as z };
|