@dreamboard-games/sdk 0.4.0-alpha.0 → 0.4.0-alpha.2
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 +8 -1
- package/REFERENCE.md +1849 -379
- package/dist/{ResourceCounter-BTXklCEZ.d.ts → ResourceCounter-BuiNstXs.d.ts} +5 -1
- package/dist/{ThemeProvider-DvMl17Ny.d.ts → ThemeProvider-B1sIoBlX.d.ts} +1 -1
- package/dist/attributes-DbvyMbXw.d.ts +68 -0
- package/dist/authoring/index.d.ts +66 -0
- package/dist/authoring/index.js +560 -0
- package/dist/authoring/index.js.map +1 -0
- package/dist/browser-interaction.d.ts +246 -44
- package/dist/browser-interaction.js +14 -1
- package/dist/{chunk-Q5O7GPVY.js → chunk-45FI6XII.js} +630 -375
- package/dist/chunk-45FI6XII.js.map +1 -0
- package/dist/{chunk-4G7552LO.js → chunk-6JQFGSLD.js} +216 -47
- package/dist/chunk-6JQFGSLD.js.map +1 -0
- package/dist/{chunk-NBAEEHAU.js → chunk-CP35NPPY.js} +5926 -5266
- package/dist/chunk-CP35NPPY.js.map +1 -0
- package/dist/{chunk-2LDZ5C3T.js → chunk-FWVV2X74.js} +2 -2
- package/dist/{chunk-MNKDSGIA.js → chunk-HWJS3VOJ.js} +6 -2
- package/dist/chunk-HWJS3VOJ.js.map +1 -0
- package/dist/chunk-K5ZRJTZZ.js +328 -0
- package/dist/chunk-K5ZRJTZZ.js.map +1 -0
- package/dist/{chunk-U5KBV2BA.js → chunk-N6ZDIMRB.js} +444 -223
- package/dist/chunk-N6ZDIMRB.js.map +1 -0
- package/dist/chunk-O6M6PN4E.js +1225 -0
- package/dist/chunk-O6M6PN4E.js.map +1 -0
- package/dist/chunk-PF7L4BMG.js +117 -0
- package/dist/chunk-PF7L4BMG.js.map +1 -0
- package/dist/{chunk-P7F4L2FF.js → chunk-WOWFONLZ.js} +609 -1287
- package/dist/chunk-WOWFONLZ.js.map +1 -0
- package/dist/{chunk-QLG6VEMW.js → chunk-WUIVY2KE.js} +318 -21
- package/dist/chunk-WUIVY2KE.js.map +1 -0
- package/dist/chunk-ZAS2SENW.js +12 -0
- package/dist/chunk-ZAS2SENW.js.map +1 -0
- package/dist/codegen.d.ts +11 -1
- package/dist/codegen.js +1 -1
- package/dist/{components-DaIqi9QM.d.ts → components-BbWPnZCF.d.ts} +37 -70
- package/dist/{hex-board-view-UCUjMALd.d.ts → hex-board-view-Kz9Q_zsv.d.ts} +1 -1
- package/dist/index.js +2 -1
- package/dist/package-set.d.ts +2 -2
- package/dist/package-set.js +2 -1
- package/dist/player-state-Cqpyeql0.d.ts +371 -0
- package/dist/protocol-BP193lva.d.ts +267 -0
- package/dist/reducer/advanced.d.ts +2 -2
- package/dist/reducer/advanced.js +1 -1
- package/dist/reducer-contract.js +1 -1
- package/dist/reducer.d.ts +7 -7
- package/dist/reducer.js +190 -183
- package/dist/reducer.js.map +1 -1
- package/dist/runtime/primitives.d.ts +10 -9
- package/dist/runtime/primitives.js +9 -6
- package/dist/runtime/runtime-api.d.ts +2 -2
- package/dist/runtime/workspace-contract.d.ts +28 -76
- package/dist/runtime/workspace-contract.js +7 -5
- package/dist/runtime-api-BJharVaj.d.ts +198 -0
- package/dist/runtime-api-C6aWo9c0.d.ts +95 -0
- package/dist/runtime-json-CQ9QbLZ5.d.ts +5 -0
- package/dist/runtime.d.ts +80 -11
- package/dist/runtime.js +89 -445
- package/dist/runtime.js.map +1 -1
- package/dist/testing.d.ts +643 -22
- package/dist/testing.js +1371 -76
- package/dist/testing.js.map +1 -1
- package/dist/types-CYeN0wLK.d.ts +29 -0
- package/dist/{attributes-BeRyboMS.d.ts → types-DJj5MJkl.d.ts} +32 -55
- package/dist/types.d.ts +14 -7
- package/dist/ui/components.d.ts +4 -5
- package/dist/ui/components.js +19 -1
- package/dist/ui/player-state.d.ts +2 -365
- package/dist/ui/plugin-styles.css +1 -1
- package/dist/{ui-contract-BUC6iS3s.d.ts → ui-contract-CY7cxsCC.d.ts} +17 -26
- package/dist/ui.d.ts +8 -13
- package/dist/ui.js +20 -2
- package/dist/{views-B0hlW6IT.d.ts → views-fn2RuXOx.d.ts} +59 -44
- package/package.json +28 -4
- package/dist/chunk-4G7552LO.js.map +0 -1
- package/dist/chunk-MNKDSGIA.js.map +0 -1
- package/dist/chunk-NBAEEHAU.js.map +0 -1
- package/dist/chunk-P7F4L2FF.js.map +0 -1
- package/dist/chunk-Q5O7GPVY.js.map +0 -1
- package/dist/chunk-QLG6VEMW.js.map +0 -1
- package/dist/chunk-U5KBV2BA.js.map +0 -1
- package/dist/hex-color-MhOyuY-o.d.ts +0 -8
- package/dist/runtime-api-BXd70c2e.d.ts +0 -490
- /package/dist/{chunk-2LDZ5C3T.js.map → chunk-FWVV2X74.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME: "dreamboard-browser-interaction";
|
|
2
|
-
declare const DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION: "
|
|
2
|
+
declare const DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION: "3.0.0";
|
|
3
3
|
declare const BROWSER_INTERACTION_ATTRIBUTES: {
|
|
4
4
|
readonly protocol: "data-dreamboard-browser-protocol";
|
|
5
5
|
readonly surface: "data-dreamboard-browser-surface";
|
|
@@ -17,6 +17,8 @@ declare const BROWSER_INTERACTION_ATTRIBUTES: {
|
|
|
17
17
|
readonly actuatorKind: "data-dreamboard-actuator-kind";
|
|
18
18
|
readonly enabled: "data-dreamboard-actuator-enabled";
|
|
19
19
|
readonly actuatorId: "data-dreamboard-actuator-id";
|
|
20
|
+
readonly pointerTargetId: "data-dreamboard-pointer-target-id";
|
|
21
|
+
readonly pointerTargetEnabled: "data-dreamboard-pointer-target-enabled";
|
|
20
22
|
readonly semanticEffects: "data-dreamboard-semantic-effects";
|
|
21
23
|
readonly acceptedEffectPatterns: "data-dreamboard-accepted-effect-patterns";
|
|
22
24
|
readonly preparationPatterns: "data-dreamboard-preparation-patterns";
|
|
@@ -26,7 +28,7 @@ declare const BROWSER_INTERACTION_ATTRIBUTES: {
|
|
|
26
28
|
readonly preparesActuatorKind: "data-dreamboard-prepares-actuator-kind";
|
|
27
29
|
readonly diagnostic: "data-dreamboard-browser-diagnostic";
|
|
28
30
|
};
|
|
29
|
-
declare const BROWSER_INTERACTION_RECORD_ROLES: readonly ["interaction", "actuator"];
|
|
31
|
+
declare const BROWSER_INTERACTION_RECORD_ROLES: readonly ["interaction", "actuator", "pointer-target"];
|
|
30
32
|
declare const GAMEPLAY_BROWSER_INTERACTION_SURFACE: "gameplay";
|
|
31
33
|
declare const GAMEPLAY_BROWSER_INTERACTION_INTENTS: readonly ["arm", "reveal", "invoke", "select", "toggle", "increment", "decrement", "fill", "submit"];
|
|
32
34
|
declare const GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS: readonly ["setCandidate", "adjustResource", "setScalar", "commit", "invoke"];
|
|
@@ -51,7 +53,7 @@ type BrowserInteractionCandidateState = (typeof BROWSER_INTERACTION_CANDIDATE_ST
|
|
|
51
53
|
type BrowserInteractionActuatorKind = (typeof BROWSER_INTERACTION_ACTUATOR_KINDS)[number];
|
|
52
54
|
interface BrowserInteractionProtocolIdentity {
|
|
53
55
|
readonly name: "dreamboard-browser-interaction";
|
|
54
|
-
readonly version: "
|
|
56
|
+
readonly version: "3.0.0";
|
|
55
57
|
}
|
|
56
58
|
type BrowserInteractionSurfaceEffect = {
|
|
57
59
|
readonly kind: string;
|
|
@@ -94,7 +96,7 @@ type GameplaySemanticEffect = {
|
|
|
94
96
|
};
|
|
95
97
|
type GameplaySemanticEffectPattern = BrowserInteractionEffectPattern<GameplaySemanticEffect>;
|
|
96
98
|
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";
|
|
99
|
+
readonly code: "ambiguous-actuator" | "ambiguous-effect-match" | "ambiguous-pointer-target" | "ambiguous-preparation-pattern" | "disabled-effect-actuator" | "disabled-pointer-target" | "duplicate-accepted-effect-pattern-match" | "duplicate-enabled-actuator" | "duplicate-enabled-effect-actuator" | "duplicate-enabled-pointer-target" | "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" | "orphan-pointer-target" | "preparation-cycle" | "surface-intent-collision" | "unknown-surface-effect" | "unknown-intent" | "unknown-surface" | "unavailable-actuator";
|
|
98
100
|
readonly severity: "error" | "warning";
|
|
99
101
|
readonly message: string;
|
|
100
102
|
readonly surface?: BrowserInteractionSurface;
|
|
@@ -102,6 +104,7 @@ interface BrowserInteractionDiagnostic {
|
|
|
102
104
|
readonly interactionKey?: string;
|
|
103
105
|
readonly intent?: BrowserInteractionIntent;
|
|
104
106
|
readonly actuatorId?: string;
|
|
107
|
+
readonly targetId?: string;
|
|
105
108
|
}
|
|
106
109
|
interface BrowserInteractionRawRecord {
|
|
107
110
|
readonly attributes: Readonly<Record<string, string | boolean | null | undefined>>;
|
|
@@ -130,6 +133,13 @@ interface BrowserInteractionActuator {
|
|
|
130
133
|
readonly prepares?: BrowserInteractionPreparationTarget;
|
|
131
134
|
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
132
135
|
}
|
|
136
|
+
interface BrowserInteractionPointerTarget {
|
|
137
|
+
readonly targetId: string;
|
|
138
|
+
readonly enabled: boolean;
|
|
139
|
+
readonly acceptedEffectPatterns: readonly BrowserInteractionEffectPattern[];
|
|
140
|
+
readonly descriptorDigest?: string;
|
|
141
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
142
|
+
}
|
|
133
143
|
interface BrowserInteractionEntity {
|
|
134
144
|
readonly interactionKey: string;
|
|
135
145
|
readonly interactionId: string;
|
|
@@ -137,6 +147,7 @@ interface BrowserInteractionEntity {
|
|
|
137
147
|
readonly draftDigest?: string;
|
|
138
148
|
readonly readiness: BrowserInteractionReadiness;
|
|
139
149
|
readonly actuators: readonly BrowserInteractionActuator[];
|
|
150
|
+
readonly pointerTargets: readonly BrowserInteractionPointerTarget[];
|
|
140
151
|
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
141
152
|
}
|
|
142
153
|
type BrowserGameplayInteraction = BrowserInteractionEntity;
|
|
@@ -218,6 +229,22 @@ interface BrowserInteractionEffectResolutionSuccess {
|
|
|
218
229
|
readonly effect: BrowserInteractionSurfaceEffect;
|
|
219
230
|
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
220
231
|
}
|
|
232
|
+
interface BrowserInteractionPointerTargetResolutionSuccess {
|
|
233
|
+
readonly ok: true;
|
|
234
|
+
readonly pointerTarget: BrowserInteractionPointerTarget;
|
|
235
|
+
readonly surface: BrowserInteractionSurface;
|
|
236
|
+
readonly scopeId: string;
|
|
237
|
+
readonly interactionKey: string;
|
|
238
|
+
readonly match: "accepted-pattern";
|
|
239
|
+
readonly effect: BrowserInteractionSurfaceEffect;
|
|
240
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
241
|
+
}
|
|
242
|
+
interface BrowserInteractionPointerTargetResolutionFailure {
|
|
243
|
+
readonly ok: false;
|
|
244
|
+
readonly code: "ambiguous" | "invalid-effect" | "invalid-snapshot" | "not-found" | "unavailable";
|
|
245
|
+
readonly diagnostics: readonly BrowserInteractionDiagnostic[];
|
|
246
|
+
}
|
|
247
|
+
type BrowserInteractionPointerTargetResolution = BrowserInteractionPointerTargetResolutionSuccess | BrowserInteractionPointerTargetResolutionFailure;
|
|
221
248
|
interface BrowserInteractionEffectResolutionFailure {
|
|
222
249
|
readonly ok: false;
|
|
223
250
|
readonly code: "ambiguous" | "invalid-effect" | "invalid-snapshot" | "not-found" | "preparation-required" | "unavailable";
|
|
@@ -226,54 +253,4 @@ interface BrowserInteractionEffectResolutionFailure {
|
|
|
226
253
|
}
|
|
227
254
|
type BrowserInteractionEffectResolution = BrowserInteractionEffectResolutionSuccess | BrowserInteractionEffectResolutionFailure;
|
|
228
255
|
|
|
229
|
-
type
|
|
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 };
|
|
256
|
+
export { encodeCanonicalCandidateValue as $, type BrowserInteractionRegistry as A, BROWSER_INTERACTION_ACTUATOR_KINDS as B, type BrowserInteractionResolution as C, type BrowserInteractionResolutionFailure as D, type BrowserInteractionResolutionSuccess as E, type BrowserInteractionScalarPattern as F, type BrowserInteractionSemanticSurfaceSnapshot as G, type BrowserInteractionSnapshot as H, type BrowserInteractionSurface as I, type BrowserInteractionSurfaceDefinition as J, type BrowserInteractionSurfaceEffect as K, type BrowserInteractionSurfaceSnapshot as L, type BrowserInteractionUnknownSurfaceSnapshot as M, type CanonicalBrowserInteractionValue as N, DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME as O, DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION as P, GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS as Q, GAMEPLAY_BROWSER_INTERACTION_INTENTS as R, GAMEPLAY_BROWSER_INTERACTION_SURFACE as S, type GameplayBrowserInteractionEffectKind as T, type GameplayBrowserInteractionEffectRequest as U, type GameplayBrowserInteractionIntent as V, type GameplayBrowserInteractionSurface as W, type GameplaySemanticEffect as X, type GameplaySemanticEffectPattern as Y, compareStableJson as Z, decodeCanonicalCandidateValue as _, BROWSER_INTERACTION_ATTRIBUTES as a, 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 BrowserInteractionActuatorKind as h, type BrowserInteractionCandidateState as i, type BrowserInteractionDiagnostic as j, type BrowserInteractionEffectPattern as k, type BrowserInteractionEffectRequest as l, type BrowserInteractionEffectResolution as m, type BrowserInteractionEffectResolutionFailure as n, type BrowserInteractionEffectResolutionSuccess as o, type BrowserInteractionEntity as p, type BrowserInteractionIntent as q, type BrowserInteractionIntentRequest as r, type BrowserInteractionPointerTarget as s, type BrowserInteractionPointerTargetResolution as t, type BrowserInteractionPointerTargetResolutionFailure as u, type BrowserInteractionPointerTargetResolutionSuccess as v, type BrowserInteractionPreparationTarget as w, type BrowserInteractionProtocolIdentity as x, type BrowserInteractionRawRecord as y, type BrowserInteractionReadiness as z };
|
package/dist/types.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ type PresetCardSetDefinition = {
|
|
|
23
23
|
* Type of card set source
|
|
24
24
|
*/
|
|
25
25
|
type: "preset";
|
|
26
|
+
/**
|
|
27
|
+
* Default initial home for cards materialized from the preset.
|
|
28
|
+
*/
|
|
29
|
+
defaultHome: ComponentHomeSpec;
|
|
26
30
|
};
|
|
27
31
|
/**
|
|
28
32
|
* Arbitrary authored JSON value.
|
|
@@ -204,7 +208,9 @@ type BoardCard = {
|
|
|
204
208
|
*/
|
|
205
209
|
cardType?: string;
|
|
206
210
|
/**
|
|
207
|
-
* Optional
|
|
211
|
+
* Optional per-card initial home. Omitted cards use their manual card set's
|
|
212
|
+
* defaultHome. Compatibility declarations such as allowedCardSetIds never
|
|
213
|
+
* imply placement. Player-scoped distribution belongs in reducer setup.
|
|
208
214
|
*/
|
|
209
215
|
home?: ComponentHomeSpec;
|
|
210
216
|
/**
|
|
@@ -235,6 +241,10 @@ type ManualCardSetDefinition = {
|
|
|
235
241
|
* Schema definition for authored card properties in this card set
|
|
236
242
|
*/
|
|
237
243
|
cardSchema: CardPropertySchema;
|
|
244
|
+
/**
|
|
245
|
+
* Default initial home for cards that do not declare a per-card home.
|
|
246
|
+
*/
|
|
247
|
+
defaultHome: ComponentHomeSpec;
|
|
238
248
|
/**
|
|
239
249
|
* List of authored cards in this card set
|
|
240
250
|
*/
|
|
@@ -1302,10 +1312,6 @@ type HostPlayerGameplayView = {
|
|
|
1302
1312
|
* Player ID currently selected for rendering and input.
|
|
1303
1313
|
*/
|
|
1304
1314
|
perspectivePlayerId: string;
|
|
1305
|
-
/**
|
|
1306
|
-
* Player IDs included in this normalized projection envelope.
|
|
1307
|
-
*/
|
|
1308
|
-
controllablePlayerIds: Array<string>;
|
|
1309
1315
|
shared: HostGameplaySharedView;
|
|
1310
1316
|
/**
|
|
1311
1317
|
* Deduplicated interaction descriptor registry keyed by stable descriptor ref.
|
|
@@ -1539,7 +1545,7 @@ type SlotIdOf<TypeSpec> = IdsOf<TypeSpec extends {
|
|
|
1539
1545
|
type SlotIdForPieceType<Manifest extends GameTopologyManifest$1, CurrentTypeId extends PieceTypeId<Manifest>> = SlotIdOf<PieceTypeOf<Manifest, CurrentTypeId>>;
|
|
1540
1546
|
type SlotIdForDieType<Manifest extends GameTopologyManifest$1, CurrentTypeId extends DieTypeId<Manifest>> = SlotIdOf<DieTypeOf<Manifest, CurrentTypeId>>;
|
|
1541
1547
|
type SingletonExplicitSeed<Seed> = Seed extends {
|
|
1542
|
-
id:
|
|
1548
|
+
id: string;
|
|
1543
1549
|
} ? Seed extends {
|
|
1544
1550
|
count: infer Count extends number;
|
|
1545
1551
|
} ? Count extends 1 ? Seed : never : Seed : never;
|
|
@@ -1874,7 +1880,8 @@ type TypedCardSet<CardSet, Manifest extends GameTopologyManifest$1> = CardSet ex
|
|
|
1874
1880
|
type: "manual";
|
|
1875
1881
|
cardSchema: infer CardSchema;
|
|
1876
1882
|
cards: infer Cards extends readonly unknown[];
|
|
1877
|
-
} ? Omit<CardSet, "cards"> & {
|
|
1883
|
+
} ? Omit<CardSet, "cards" | "defaultHome"> & {
|
|
1884
|
+
defaultHome: TypedComponentHomeSpec<Manifest>;
|
|
1878
1885
|
cards: ReadonlyArray<TypedCard<ArrayItem<Cards>, Manifest, CardSchema>>;
|
|
1879
1886
|
} : CardSet;
|
|
1880
1887
|
type TypedAllowedCardSetIds<T, Manifest extends GameTopologyManifest$1> = T extends object ? Omit<T, "allowedCardSetIds"> & {
|
package/dist/ui/components.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionPanel, e as ActionPanelProps, C as CardDragSurface, g as CardDragSurfaceContextValue, h as CardDragSurfaceController, i as CardDragSurfaceProps, j as CardDropTargetView, k as CardDropTargetViewProps, l as CardFace, m as CardFaceProps, p as ChromeSuppressionProvider, q as CostDisplay, r as CostDisplayProps, D as DefaultChessPiece, s as DefaultChessPieceProps, t as DefaultEmptySlot, u as DefaultEmptySlotProps, v as DefaultGridCell, w as DefaultGridCellProps, x as DefaultGridPiece, y as DefaultGridPieceProps, z as DefaultNetworkEdge, E as DefaultNetworkEdgeProps, F as DefaultNetworkNode, G as DefaultNetworkNodeProps, H as DefaultNetworkPiece, I as DefaultNetworkPieceProps, J as DefaultSlotItem, K as DefaultSlotItemProps, L as DefaultSlotOccupant, M as DefaultSlotOccupantProps, N as DefaultTrackConnection, O as DefaultTrackConnectionProps, P as DefaultTrackJump, Q as DefaultTrackJumpProps, R as DefaultTrackPiece, S as DefaultTrackPieceProps, T as DefaultTrackSpace, U as DefaultTrackSpaceProps, V as DefaultZone, W as DefaultZonePiece, X as DefaultZonePieceProps, Y as DefaultZonePieces, Z as DefaultZonePiecesProps, _ as DefaultZoneProps, $ as Dialog, a0 as DialogClose, a1 as DialogContent, a2 as DialogDescription, a3 as DialogFooter, a4 as DialogHeader, a5 as DialogOverlay, a6 as DialogPortal, a7 as DialogTitle, a8 as DialogTrigger, a9 as DiceRoller, aa as DiceRollerProps, ab as DragPhase, ac as Drawer, ad as DrawerClose, ae as DrawerContent, af as DrawerDescription, ag as DrawerFooter, ah as DrawerHeader, ai as DrawerOverlay, aj as DrawerPortal, ak as DrawerTitle, al as DrawerTrigger, am as ErrorBoundary, an as ErrorBoundaryProps, ao as GameEndDisplay, ap as GameEndDisplayProps, aq as GameSkeleton, ar as GameSkeletonProps, as as Hand, at as HandDock, au as HandDockMode, av as HandDockPlacement, aw as HandDockPresentation, ax as HandDockProps, ay as HandDockToggleContext, aA as HandProps, aB as Input, aC as InteractiveSquareEdge, aD as InteractiveSquareVertex, aE as Label, aF as MoreActions, aG as MoreActionsProps, aH as NetworkEdge, aI as NetworkGraph, aJ as NetworkGraphProps, aK as NetworkNode, aL as NetworkPiece, aM as
|
|
1
|
+
export { A as ActionButton, a as ActionButtonProps, b as ActionGroup, c as ActionGroupProps, d as ActionPanel, e as ActionPanelProps, C as CardDragSurface, g as CardDragSurfaceContextValue, h as CardDragSurfaceController, i as CardDragSurfaceProps, j as CardDropTargetView, k as CardDropTargetViewProps, l as CardFace, m as CardFaceProps, p as ChromeSuppressionProvider, q as CostDisplay, r as CostDisplayProps, D as DefaultChessPiece, s as DefaultChessPieceProps, t as DefaultEmptySlot, u as DefaultEmptySlotProps, v as DefaultGridCell, w as DefaultGridCellProps, x as DefaultGridPiece, y as DefaultGridPieceProps, z as DefaultNetworkEdge, E as DefaultNetworkEdgeProps, F as DefaultNetworkNode, G as DefaultNetworkNodeProps, H as DefaultNetworkPiece, I as DefaultNetworkPieceProps, J as DefaultSlotItem, K as DefaultSlotItemProps, L as DefaultSlotOccupant, M as DefaultSlotOccupantProps, N as DefaultTrackConnection, O as DefaultTrackConnectionProps, P as DefaultTrackJump, Q as DefaultTrackJumpProps, R as DefaultTrackPiece, S as DefaultTrackPieceProps, T as DefaultTrackSpace, U as DefaultTrackSpaceProps, V as DefaultZone, W as DefaultZonePiece, X as DefaultZonePieceProps, Y as DefaultZonePieces, Z as DefaultZonePiecesProps, _ as DefaultZoneProps, $ as Dialog, a0 as DialogClose, a1 as DialogContent, a2 as DialogDescription, a3 as DialogFooter, a4 as DialogHeader, a5 as DialogOverlay, a6 as DialogPortal, a7 as DialogTitle, a8 as DialogTrigger, a9 as DiceRoller, aa as DiceRollerProps, ab as DragPhase, ac as Drawer, ad as DrawerClose, ae as DrawerContent, af as DrawerDescription, ag as DrawerFooter, ah as DrawerHeader, ai as DrawerOverlay, aj as DrawerPortal, ak as DrawerTitle, al as DrawerTrigger, am as ErrorBoundary, an as ErrorBoundaryProps, ao as GameEndDisplay, ap as GameEndDisplayProps, aq as GameSkeleton, ar as GameSkeletonProps, as as Hand, at as HandDock, au as HandDockMode, av as HandDockPlacement, aw as HandDockPresentation, ax as HandDockProps, ay as HandDockToggleContext, aA as HandProps, aB as Input, aC as InteractiveSquareEdge, aD as InteractiveSquareVertex, aE as Label, aF as MoreActions, aG as MoreActionsProps, aH as NetworkEdge, aI as NetworkGraph, aJ as NetworkGraphProps, aK as NetworkNode, aL as NetworkPiece, aM as Panel, aN as PanelActions, aO as PanelBody, aP as PanelDescription, aQ as PanelDescriptionProps, aR as PanelHeader, aS as PanelPartProps, aT as PanelRoot, aU as PanelRootProps, aV as PanelTitle, aW as PanelTitleProps, aX as PanelTone, aY as PhaseIndicator, aZ as PhaseIndicatorProps, a_ as PlayArea, a$ as PlayAreaProps, b0 as PlayerScore, b1 as PrimaryActionAttention, b2 as PrimaryActionButton, b3 as PrimaryActionButtonProps, b4 as PrimaryButton, b5 as PrimaryButtonProps, b6 as ResourceDefinition, b7 as Select, b8 as SelectContent, b9 as SelectItem, ba as SelectTrigger, bb as SlotDefinition, bc as SlotOccupant, bd as SlotSystem, be as SlotSystemProps, bf as SquareEdgePosition, bg as SquareGrid, bh as SquareGridBoardProps, bi as SquareGridProps, bj as SquareVertexPosition, bk as StagingZone, bl as StagingZoneProps, bm as ThemedButton, bn as ThemedButtonProps, bo as Toast, bp as ToastActions, bq as ToastActionsProps, br as ToastActionsValue, bs as ToastNotification, bt as ToastProvider, bu as ToastType, bv as TrackBoard, bw as TrackBoardProps, bx as TrackPiece, by as TrackSpace, bB as ZoneDefinition, bC as ZoneHighlightType, bD as ZoneMap, bE as ZoneMapProps, bF as ZonePiece, bG as ZoneShape, bN as toAlgebraic, bO as toNumeric, bP as useCardDragSurface, bQ as useChromeSuppression } from '../components-BbWPnZCF.js';
|
|
2
2
|
export { H as HandInteractionPolicy, b as HandLayoutKind, c as HandLayoutPolicy, d as HandView, e as HandViewProps } from '../HandView-PYDmehVD.js';
|
|
3
|
-
export { B as BoundResourceCounterRootProps, H as HandRole, M as MobileHandRegistration, a as MobileHandTrayProvider, R as ResourceCounter, b as ResourceCounterComponents, c as ResourceCounterCount, d as ResourceCounterIcon, e as ResourceCounterItem, f as ResourceCounterItemState, g as ResourceCounterLabel, h as ResourceCounterPartProps, i as ResourceCounterProps, j as ResourceCounterRoot, k as ResourceCounterRootProps, l as ResourceDisplayConfig, m as ResourceIconProps, n as createResourceCounter, u as useMobileHandTrayActive, o as useRegisterMobileHand } from '../ResourceCounter-
|
|
4
|
-
export { D as DefaultHexEdge, g as DefaultHexEdgeProps, h as DefaultHexTile, i as DefaultHexTileProps, j as DefaultHexVertex, k as DefaultHexVertexProps, E as EdgePosition, r as HexBoardView, s as HexBoardViewTile, t as HexGrid, u as HexGridBoardProps, v as HexGridProps, w as HexOrientation, x as HexTileGeometry, y as InteractiveHexEdge, z as InteractiveHexVertex, J as InteractiveTargetLayer, K as InteractiveTargetRenderState, a3 as createHexBoardView, a4 as hexUtils } from '../hex-board-view-
|
|
5
|
-
export { HexEdgeState, HexTileState, HexVertexState, SquareCellState, SquareEdgeState, SquarePieceState, SquareVertexState } from '
|
|
3
|
+
export { B as BoundResourceCounterRootProps, H as HandRole, M as MobileHandRegistration, a as MobileHandTrayProvider, R as ResourceCounter, b as ResourceCounterComponents, c as ResourceCounterCount, d as ResourceCounterIcon, e as ResourceCounterItem, f as ResourceCounterItemState, g as ResourceCounterLabel, h as ResourceCounterPartProps, i as ResourceCounterProps, j as ResourceCounterRoot, k as ResourceCounterRootProps, l as ResourceDisplayConfig, m as ResourceIconProps, n as createResourceCounter, u as useMobileHandTrayActive, o as useOverlayInsets, p as useRegisterBottomOverlayInset, q as useRegisterMobileHand } from '../ResourceCounter-BuiNstXs.js';
|
|
4
|
+
export { D as DefaultHexEdge, g as DefaultHexEdgeProps, h as DefaultHexTile, i as DefaultHexTileProps, j as DefaultHexVertex, k as DefaultHexVertexProps, E as EdgePosition, r as HexBoardView, s as HexBoardViewTile, t as HexGrid, u as HexGridBoardProps, v as HexGridProps, w as HexOrientation, x as HexTileGeometry, y as InteractiveHexEdge, z as InteractiveHexVertex, J as InteractiveTargetLayer, K as InteractiveTargetRenderState, a3 as createHexBoardView, a4 as hexUtils } from '../hex-board-view-Kz9Q_zsv.js';
|
|
5
|
+
export { k as HexEdgeState, l as HexTileState, m as HexVertexState, y as SquareCellState, z as SquareEdgeState, A as SquarePieceState, F as SquareVertexState } from '../player-state-Cqpyeql0.js';
|
|
6
6
|
export { CardCollection, ViewCard, ViewSlotOccupant } from '../types.js';
|
|
7
7
|
import 'react/jsx-runtime';
|
|
8
8
|
import 'react';
|
|
@@ -12,4 +12,3 @@ import '@radix-ui/react-dialog';
|
|
|
12
12
|
import '@radix-ui/react-label';
|
|
13
13
|
import '@radix-ui/react-select';
|
|
14
14
|
import '../primitive-props-BNHDkgd7.js';
|
|
15
|
-
import '../hex-color-MhOyuY-o.js';
|
package/dist/ui/components.js
CHANGED
|
@@ -60,6 +60,13 @@ import {
|
|
|
60
60
|
MobileHandTrayProvider,
|
|
61
61
|
MoreActions,
|
|
62
62
|
NetworkGraph,
|
|
63
|
+
Panel,
|
|
64
|
+
PanelActions,
|
|
65
|
+
PanelBody,
|
|
66
|
+
PanelDescription,
|
|
67
|
+
PanelHeader,
|
|
68
|
+
PanelRoot,
|
|
69
|
+
PanelTitle,
|
|
63
70
|
PhaseIndicator,
|
|
64
71
|
PlayArea,
|
|
65
72
|
PrimaryActionButton,
|
|
@@ -91,8 +98,10 @@ import {
|
|
|
91
98
|
useCardDragSurface,
|
|
92
99
|
useChromeSuppression,
|
|
93
100
|
useMobileHandTrayActive,
|
|
101
|
+
useOverlayInsets,
|
|
102
|
+
useRegisterBottomOverlayInset,
|
|
94
103
|
useRegisterMobileHand
|
|
95
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-45FI6XII.js";
|
|
96
105
|
import "../chunk-VDXOF4FW.js";
|
|
97
106
|
import "../chunk-PZ5AY32C.js";
|
|
98
107
|
export {
|
|
@@ -156,6 +165,13 @@ export {
|
|
|
156
165
|
MobileHandTrayProvider,
|
|
157
166
|
MoreActions,
|
|
158
167
|
NetworkGraph,
|
|
168
|
+
Panel,
|
|
169
|
+
PanelActions,
|
|
170
|
+
PanelBody,
|
|
171
|
+
PanelDescription,
|
|
172
|
+
PanelHeader,
|
|
173
|
+
PanelRoot,
|
|
174
|
+
PanelTitle,
|
|
159
175
|
PhaseIndicator,
|
|
160
176
|
PlayArea,
|
|
161
177
|
PrimaryActionButton,
|
|
@@ -187,6 +203,8 @@ export {
|
|
|
187
203
|
useCardDragSurface,
|
|
188
204
|
useChromeSuppression,
|
|
189
205
|
useMobileHandTrayActive,
|
|
206
|
+
useOverlayInsets,
|
|
207
|
+
useRegisterBottomOverlayInset,
|
|
190
208
|
useRegisterMobileHand
|
|
191
209
|
};
|
|
192
210
|
//# sourceMappingURL=components.js.map
|