@dreamboard-games/sdk 0.4.0-alpha.0 → 0.4.0-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.
Files changed (62) hide show
  1. package/README.md +8 -1
  2. package/REFERENCE.md +488 -108
  3. package/dist/attributes-BrZtP9az.d.ts +53 -0
  4. package/dist/browser-interaction.d.ts +44 -42
  5. package/dist/browser-interaction.js +2 -1
  6. package/dist/{chunk-4G7552LO.js → chunk-3K362ZKR.js} +17 -12
  7. package/dist/chunk-3K362ZKR.js.map +1 -0
  8. package/dist/{chunk-U5KBV2BA.js → chunk-7LZZEI25.js} +444 -223
  9. package/dist/chunk-7LZZEI25.js.map +1 -0
  10. package/dist/{chunk-Q5O7GPVY.js → chunk-7W6TQO3X.js} +18 -10
  11. package/dist/chunk-7W6TQO3X.js.map +1 -0
  12. package/dist/chunk-AEUXCFGM.js +124 -0
  13. package/dist/chunk-AEUXCFGM.js.map +1 -0
  14. package/dist/{chunk-P7F4L2FF.js → chunk-CZMFAS3E.js} +327 -248
  15. package/dist/chunk-CZMFAS3E.js.map +1 -0
  16. package/dist/{chunk-MNKDSGIA.js → chunk-IUGKW2GS.js} +2 -2
  17. package/dist/{chunk-MNKDSGIA.js.map → chunk-IUGKW2GS.js.map} +1 -1
  18. package/dist/{chunk-QLG6VEMW.js → chunk-MALRKLRR.js} +19 -11
  19. package/dist/chunk-MALRKLRR.js.map +1 -0
  20. package/dist/{chunk-2LDZ5C3T.js → chunk-XJYUSD5F.js} +2 -2
  21. package/dist/{chunk-NBAEEHAU.js → chunk-XXBSIPJX.js} +5952 -5364
  22. package/dist/chunk-XXBSIPJX.js.map +1 -0
  23. package/dist/codegen.d.ts +3 -1
  24. package/dist/codegen.js +1 -1
  25. package/dist/{components-DaIqi9QM.d.ts → components-Dqr_LuZJ.d.ts} +1 -65
  26. package/dist/index.js +1 -1
  27. package/dist/package-set.d.ts +2 -2
  28. package/dist/package-set.js +1 -1
  29. package/dist/reducer/advanced.d.ts +2 -2
  30. package/dist/reducer/advanced.js +1 -1
  31. package/dist/reducer-contract.js +1 -1
  32. package/dist/reducer.d.ts +7 -7
  33. package/dist/reducer.js +190 -183
  34. package/dist/reducer.js.map +1 -1
  35. package/dist/runtime/primitives.d.ts +4 -3
  36. package/dist/runtime/primitives.js +5 -4
  37. package/dist/runtime/workspace-contract.d.ts +10 -69
  38. package/dist/runtime/workspace-contract.js +6 -5
  39. package/dist/runtime-json-CQ9QbLZ5.d.ts +5 -0
  40. package/dist/runtime.d.ts +70 -5
  41. package/dist/runtime.js +483 -129
  42. package/dist/runtime.js.map +1 -1
  43. package/dist/testing.d.ts +509 -2
  44. package/dist/testing.js +481 -1
  45. package/dist/testing.js.map +1 -1
  46. package/dist/{attributes-BeRyboMS.d.ts → types-BqzHkNMA.d.ts} +1 -51
  47. package/dist/types.d.ts +4 -2
  48. package/dist/ui/components.d.ts +1 -1
  49. package/dist/ui/components.js +1 -1
  50. package/dist/ui/plugin-styles.css +1 -1
  51. package/dist/{ui-contract-BUC6iS3s.d.ts → ui-contract-W2-kxObe.d.ts} +2 -1
  52. package/dist/ui.d.ts +3 -7
  53. package/dist/ui.js +2 -2
  54. package/dist/{views-B0hlW6IT.d.ts → views-fn2RuXOx.d.ts} +59 -44
  55. package/package.json +31 -13
  56. package/dist/chunk-4G7552LO.js.map +0 -1
  57. package/dist/chunk-NBAEEHAU.js.map +0 -1
  58. package/dist/chunk-P7F4L2FF.js.map +0 -1
  59. package/dist/chunk-Q5O7GPVY.js.map +0 -1
  60. package/dist/chunk-QLG6VEMW.js.map +0 -1
  61. package/dist/chunk-U5KBV2BA.js.map +0 -1
  62. /package/dist/{chunk-2LDZ5C3T.js.map → chunk-XJYUSD5F.js.map} +0 -0
@@ -0,0 +1,53 @@
1
+ import { q as BrowserInteractionIntent, i as BrowserInteractionCandidateState, h as BrowserInteractionActuatorKind, G as BrowserInteractionSurfaceEffect, k as BrowserInteractionEffectPattern, s as BrowserInteractionPreparationTarget, v as BrowserInteractionReadiness, R as GameplayBrowserInteractionIntent, T as GameplaySemanticEffect, U as GameplaySemanticEffectPattern } from './types-BqzHkNMA.js';
2
+
3
+ type BrowserInteractionAttributeMap = Record<string, string | boolean>;
4
+ interface BrowserInteractionRootAttributesInput {
5
+ readonly surface: string;
6
+ readonly scopeId: string;
7
+ readonly interactionKey: string;
8
+ readonly interactionId: string;
9
+ readonly descriptorDigest?: string;
10
+ readonly draftDigest?: string;
11
+ readonly readiness: BrowserInteractionReadiness;
12
+ }
13
+ interface BrowserInteractionActuatorAttributesInput {
14
+ readonly surface: string;
15
+ readonly scopeId: string;
16
+ readonly interactionKey: string;
17
+ readonly interactionId: string;
18
+ readonly descriptorDigest?: string;
19
+ readonly draftDigest?: string;
20
+ readonly intent: BrowserInteractionIntent;
21
+ readonly inputKey?: string;
22
+ readonly candidateValue?: unknown;
23
+ readonly candidateState?: BrowserInteractionCandidateState;
24
+ readonly enabled?: boolean;
25
+ readonly actuatorKind: BrowserInteractionActuatorKind;
26
+ readonly actuatorId?: string;
27
+ readonly semanticEffects?: readonly BrowserInteractionSurfaceEffect[];
28
+ readonly acceptedEffectPatterns?: readonly BrowserInteractionEffectPattern[];
29
+ readonly preparationPatterns?: readonly BrowserInteractionEffectPattern[];
30
+ readonly prepares?: BrowserInteractionPreparationTarget;
31
+ }
32
+ declare function createBrowserInteractionRootAttributes(input: BrowserInteractionRootAttributesInput): BrowserInteractionAttributeMap;
33
+ declare function createBrowserInteractionActuatorAttributes(input: BrowserInteractionActuatorAttributesInput): BrowserInteractionAttributeMap;
34
+ type GameplayInteractionRootAttributesInput = Omit<BrowserInteractionRootAttributesInput, "surface">;
35
+ type GameplayActuatorAttributesInput = Omit<BrowserInteractionActuatorAttributesInput, "surface" | "intent" | "semanticEffects" | "acceptedEffectPatterns" | "preparationPatterns"> & {
36
+ readonly intent: GameplayBrowserInteractionIntent;
37
+ readonly semanticEffects?: readonly GameplaySemanticEffect[];
38
+ readonly acceptedEffectPatterns?: readonly GameplaySemanticEffectPattern[];
39
+ readonly preparationPatterns?: readonly GameplaySemanticEffectPattern[];
40
+ };
41
+ declare function createGameplayInteractionRootAttributes(input: GameplayInteractionRootAttributesInput): BrowserInteractionAttributeMap;
42
+ declare function createGameplayActuatorAttributes(input: GameplayActuatorAttributesInput): BrowserInteractionAttributeMap;
43
+ declare function createBrowserInteractionActuatorKey(input: {
44
+ readonly surface: string;
45
+ readonly scopeId: string;
46
+ readonly interactionKey: string;
47
+ readonly intent: BrowserInteractionIntent;
48
+ readonly inputKey?: string;
49
+ readonly candidateValueKey?: string;
50
+ readonly actuatorKind: BrowserInteractionActuatorKind;
51
+ }): string;
52
+
53
+ export { type BrowserInteractionActuatorAttributesInput as B, type GameplayActuatorAttributesInput as G, type BrowserInteractionAttributeMap as a, type BrowserInteractionRootAttributesInput as b, type GameplayInteractionRootAttributesInput as c, createBrowserInteractionActuatorAttributes as d, createBrowserInteractionActuatorKey as e, createBrowserInteractionRootAttributes as f, createGameplayActuatorAttributes as g, createGameplayInteractionRootAttributes as h };
@@ -1,5 +1,7 @@
1
- import { m as BrowserInteractionEffectPattern, J as BrowserInteractionSurfaceEffect, M as CanonicalBrowserInteractionValue, Y as GameplaySemanticEffect, I as BrowserInteractionSurfaceDefinition, y as BrowserInteractionRegistry, H as BrowserInteractionSurface, s as BrowserInteractionIntent, g as BrowserInteractionActuator, K as BrowserInteractionSurfaceSnapshot, F as BrowserInteractionSemanticSurfaceSnapshot, w as BrowserInteractionRawRecord, G as BrowserInteractionSnapshot, i as BrowserInteractionActuatorKind, l as BrowserInteractionDiagnostic, n as BrowserInteractionEffectRequest, o as BrowserInteractionEffectResolution, t as BrowserInteractionIntentRequest, z as BrowserInteractionResolution } from './attributes-BeRyboMS.js';
2
- export { B as BROWSER_INTERACTION_ACTUATOR_KINDS, a as BROWSER_INTERACTION_ATTRIBUTES, b as BROWSER_INTERACTION_CANDIDATE_STATES, c as BROWSER_INTERACTION_READINESS_VALUES, d as BROWSER_INTERACTION_RECORD_ROLES, e as BrowserGameplayInteraction, f as BrowserGameplaySurfaceSnapshot, h as BrowserInteractionActuatorAttributesInput, j as BrowserInteractionAttributeMap, k as BrowserInteractionCandidateState, p as BrowserInteractionEffectResolutionFailure, q as BrowserInteractionEffectResolutionSuccess, r as BrowserInteractionEntity, u as BrowserInteractionPreparationTarget, v as BrowserInteractionProtocolIdentity, x as BrowserInteractionReadiness, A as BrowserInteractionResolutionFailure, C as BrowserInteractionResolutionSuccess, D as BrowserInteractionRootAttributesInput, E as BrowserInteractionScalarPattern, L as BrowserInteractionUnknownSurfaceSnapshot, N as DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME, O as DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION, P as GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS, Q as GAMEPLAY_BROWSER_INTERACTION_INTENTS, R as GAMEPLAY_BROWSER_INTERACTION_SURFACE, S as GameplayActuatorAttributesInput, T as GameplayBrowserInteractionEffectKind, U as GameplayBrowserInteractionEffectRequest, V as GameplayBrowserInteractionIntent, W as GameplayBrowserInteractionSurface, X as GameplayInteractionRootAttributesInput, Z as GameplaySemanticEffectPattern, _ as compareStableJson, $ as createBrowserInteractionActuatorAttributes, a0 as createBrowserInteractionActuatorKey, a1 as createBrowserInteractionRootAttributes, a2 as createGameplayActuatorAttributes, a3 as createGameplayInteractionRootAttributes, a4 as decodeCanonicalCandidateValue, a5 as encodeCanonicalCandidateValue } from './attributes-BeRyboMS.js';
1
+ import { k as BrowserInteractionEffectPattern, G as BrowserInteractionSurfaceEffect, J as CanonicalBrowserInteractionValue, T as GameplaySemanticEffect, F as BrowserInteractionSurfaceDefinition, w as BrowserInteractionRegistry, E as BrowserInteractionSurface, q as BrowserInteractionIntent, g as BrowserInteractionActuator, H as BrowserInteractionSurfaceSnapshot, C as BrowserInteractionSemanticSurfaceSnapshot, u as BrowserInteractionRawRecord, D as BrowserInteractionSnapshot, h as BrowserInteractionActuatorKind, j as BrowserInteractionDiagnostic, l as BrowserInteractionEffectRequest, m as BrowserInteractionEffectResolution, r as BrowserInteractionIntentRequest, x as BrowserInteractionResolution } from './types-BqzHkNMA.js';
2
+ export { B as BROWSER_INTERACTION_ACTUATOR_KINDS, a as BROWSER_INTERACTION_ATTRIBUTES, b as BROWSER_INTERACTION_CANDIDATE_STATES, c as BROWSER_INTERACTION_READINESS_VALUES, d as BROWSER_INTERACTION_RECORD_ROLES, e as BrowserGameplayInteraction, f as BrowserGameplaySurfaceSnapshot, i as BrowserInteractionCandidateState, n as BrowserInteractionEffectResolutionFailure, o as BrowserInteractionEffectResolutionSuccess, p as BrowserInteractionEntity, s as BrowserInteractionPreparationTarget, t as BrowserInteractionProtocolIdentity, v as BrowserInteractionReadiness, y as BrowserInteractionResolutionFailure, z as BrowserInteractionResolutionSuccess, A as BrowserInteractionScalarPattern, I as BrowserInteractionUnknownSurfaceSnapshot, K as DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_NAME, L as DREAMBOARD_BROWSER_INTERACTION_PROTOCOL_VERSION, M as GAMEPLAY_BROWSER_INTERACTION_EFFECT_KINDS, N as GAMEPLAY_BROWSER_INTERACTION_INTENTS, O as GAMEPLAY_BROWSER_INTERACTION_SURFACE, P as GameplayBrowserInteractionEffectKind, Q as GameplayBrowserInteractionEffectRequest, R as GameplayBrowserInteractionIntent, S as GameplayBrowserInteractionSurface, U as GameplaySemanticEffectPattern, V as compareStableJson, W as decodeCanonicalCandidateValue, X as encodeCanonicalCandidateValue } from './types-BqzHkNMA.js';
3
+ export { B as BrowserInteractionActuatorAttributesInput, a as BrowserInteractionAttributeMap, b as BrowserInteractionRootAttributesInput, G as GameplayActuatorAttributesInput, c as GameplayInteractionRootAttributesInput, d as createBrowserInteractionActuatorAttributes, e as createBrowserInteractionActuatorKey, f as createBrowserInteractionRootAttributes, g as createGameplayActuatorAttributes, h as createGameplayInteractionRootAttributes } from './attributes-BrZtP9az.js';
4
+ import { R as RuntimeJson } from './runtime-json-CQ9QbLZ5.js';
3
5
  import { z } from 'zod';
4
6
 
5
7
  declare function encodeBrowserInteractionEffect(effect: BrowserInteractionSurfaceEffect): string;
@@ -60,16 +62,16 @@ declare function resolveBrowserInteractionEffect(snapshot: BrowserInteractionSna
60
62
 
61
63
  declare const browserInteractionEffectSchema: z.ZodObject<{
62
64
  kind: z.ZodString;
63
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
65
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
64
66
  declare const browserInteractionEffectPatternSchema: z.ZodUnion<readonly [z.ZodObject<{
65
67
  kind: z.ZodLiteral<"exact">;
66
68
  effect: z.ZodObject<{
67
69
  kind: z.ZodString;
68
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
70
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
69
71
  }, z.core.$strip>, z.ZodObject<{
70
72
  kind: z.ZodLiteral<"match">;
71
73
  effectKind: z.ZodString;
72
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
74
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
73
75
  scalar: z.ZodOptional<z.ZodObject<{
74
76
  field: z.ZodString;
75
77
  min: z.ZodOptional<z.ZodNumber>;
@@ -80,13 +82,13 @@ declare const browserInteractionEffectPatternSchema: z.ZodUnion<readonly [z.ZodO
80
82
  declare const gameplaySemanticEffectSchema: z.ZodUnion<readonly [z.ZodObject<{
81
83
  kind: z.ZodLiteral<"setCandidate">;
82
84
  inputKey: z.ZodString;
83
- candidateValue: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
85
+ candidateValue: z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>;
84
86
  beforeSelected: z.ZodBoolean;
85
87
  afterSelected: z.ZodBoolean;
86
88
  }, z.core.$strip>, z.ZodObject<{
87
89
  kind: z.ZodLiteral<"adjustResource">;
88
90
  inputKey: z.ZodString;
89
- resourceKey: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
91
+ resourceKey: z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>;
90
92
  delta: z.ZodUnion<readonly [z.ZodLiteral<-1>, z.ZodLiteral<1>]>;
91
93
  }, z.core.$strip>, z.ZodObject<{
92
94
  kind: z.ZodLiteral<"setScalar">;
@@ -114,7 +116,7 @@ declare const browserInteractionActuatorSchema: z.ZodObject<{
114
116
  actuatorId: z.ZodString;
115
117
  intent: z.ZodString;
116
118
  inputKey: z.ZodOptional<z.ZodString>;
117
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
119
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
118
120
  candidateValueKey: z.ZodOptional<z.ZodString>;
119
121
  candidateState: z.ZodOptional<z.ZodEnum<{
120
122
  selected: "selected";
@@ -130,16 +132,16 @@ declare const browserInteractionActuatorSchema: z.ZodObject<{
130
132
  }>;
131
133
  semanticEffects: z.ZodArray<z.ZodObject<{
132
134
  kind: z.ZodString;
133
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
135
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>>;
134
136
  acceptedEffectPatterns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
135
137
  kind: z.ZodLiteral<"exact">;
136
138
  effect: z.ZodObject<{
137
139
  kind: z.ZodString;
138
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
140
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
139
141
  }, z.core.$strip>, z.ZodObject<{
140
142
  kind: z.ZodLiteral<"match">;
141
143
  effectKind: z.ZodString;
142
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
144
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
143
145
  scalar: z.ZodOptional<z.ZodObject<{
144
146
  field: z.ZodString;
145
147
  min: z.ZodOptional<z.ZodNumber>;
@@ -151,11 +153,11 @@ declare const browserInteractionActuatorSchema: z.ZodObject<{
151
153
  kind: z.ZodLiteral<"exact">;
152
154
  effect: z.ZodObject<{
153
155
  kind: z.ZodString;
154
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
156
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
155
157
  }, z.core.$strip>, z.ZodObject<{
156
158
  kind: z.ZodLiteral<"match">;
157
159
  effectKind: z.ZodString;
158
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
160
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
159
161
  scalar: z.ZodOptional<z.ZodObject<{
160
162
  field: z.ZodString;
161
163
  min: z.ZodOptional<z.ZodNumber>;
@@ -166,7 +168,7 @@ declare const browserInteractionActuatorSchema: z.ZodObject<{
166
168
  prepares: z.ZodOptional<z.ZodObject<{
167
169
  intent: z.ZodString;
168
170
  inputKey: z.ZodOptional<z.ZodString>;
169
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
171
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
170
172
  candidateValueKey: z.ZodOptional<z.ZodString>;
171
173
  actuatorKind: z.ZodOptional<z.ZodEnum<{
172
174
  fill: "fill";
@@ -203,7 +205,7 @@ declare const browserGameplayInteractionSchema: z.ZodObject<{
203
205
  actuatorId: z.ZodString;
204
206
  intent: z.ZodString;
205
207
  inputKey: z.ZodOptional<z.ZodString>;
206
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
208
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
207
209
  candidateValueKey: z.ZodOptional<z.ZodString>;
208
210
  candidateState: z.ZodOptional<z.ZodEnum<{
209
211
  selected: "selected";
@@ -219,16 +221,16 @@ declare const browserGameplayInteractionSchema: z.ZodObject<{
219
221
  }>;
220
222
  semanticEffects: z.ZodArray<z.ZodObject<{
221
223
  kind: z.ZodString;
222
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
224
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>>;
223
225
  acceptedEffectPatterns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
224
226
  kind: z.ZodLiteral<"exact">;
225
227
  effect: z.ZodObject<{
226
228
  kind: z.ZodString;
227
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
229
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
228
230
  }, z.core.$strip>, z.ZodObject<{
229
231
  kind: z.ZodLiteral<"match">;
230
232
  effectKind: z.ZodString;
231
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
233
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
232
234
  scalar: z.ZodOptional<z.ZodObject<{
233
235
  field: z.ZodString;
234
236
  min: z.ZodOptional<z.ZodNumber>;
@@ -240,11 +242,11 @@ declare const browserGameplayInteractionSchema: z.ZodObject<{
240
242
  kind: z.ZodLiteral<"exact">;
241
243
  effect: z.ZodObject<{
242
244
  kind: z.ZodString;
243
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
245
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
244
246
  }, z.core.$strip>, z.ZodObject<{
245
247
  kind: z.ZodLiteral<"match">;
246
248
  effectKind: z.ZodString;
247
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
249
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
248
250
  scalar: z.ZodOptional<z.ZodObject<{
249
251
  field: z.ZodString;
250
252
  min: z.ZodOptional<z.ZodNumber>;
@@ -255,7 +257,7 @@ declare const browserGameplayInteractionSchema: z.ZodObject<{
255
257
  prepares: z.ZodOptional<z.ZodObject<{
256
258
  intent: z.ZodString;
257
259
  inputKey: z.ZodOptional<z.ZodString>;
258
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
260
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
259
261
  candidateValueKey: z.ZodOptional<z.ZodString>;
260
262
  actuatorKind: z.ZodOptional<z.ZodEnum<{
261
263
  fill: "fill";
@@ -309,7 +311,7 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
309
311
  actuatorId: z.ZodString;
310
312
  intent: z.ZodString;
311
313
  inputKey: z.ZodOptional<z.ZodString>;
312
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
314
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
313
315
  candidateValueKey: z.ZodOptional<z.ZodString>;
314
316
  candidateState: z.ZodOptional<z.ZodEnum<{
315
317
  selected: "selected";
@@ -325,16 +327,16 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
325
327
  }>;
326
328
  semanticEffects: z.ZodArray<z.ZodObject<{
327
329
  kind: z.ZodString;
328
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
330
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>>;
329
331
  acceptedEffectPatterns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
330
332
  kind: z.ZodLiteral<"exact">;
331
333
  effect: z.ZodObject<{
332
334
  kind: z.ZodString;
333
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
335
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
334
336
  }, z.core.$strip>, z.ZodObject<{
335
337
  kind: z.ZodLiteral<"match">;
336
338
  effectKind: z.ZodString;
337
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
339
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
338
340
  scalar: z.ZodOptional<z.ZodObject<{
339
341
  field: z.ZodString;
340
342
  min: z.ZodOptional<z.ZodNumber>;
@@ -346,11 +348,11 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
346
348
  kind: z.ZodLiteral<"exact">;
347
349
  effect: z.ZodObject<{
348
350
  kind: z.ZodString;
349
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
351
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
350
352
  }, z.core.$strip>, z.ZodObject<{
351
353
  kind: z.ZodLiteral<"match">;
352
354
  effectKind: z.ZodString;
353
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
355
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
354
356
  scalar: z.ZodOptional<z.ZodObject<{
355
357
  field: z.ZodString;
356
358
  min: z.ZodOptional<z.ZodNumber>;
@@ -361,7 +363,7 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
361
363
  prepares: z.ZodOptional<z.ZodObject<{
362
364
  intent: z.ZodString;
363
365
  inputKey: z.ZodOptional<z.ZodString>;
364
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
366
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
365
367
  candidateValueKey: z.ZodOptional<z.ZodString>;
366
368
  actuatorKind: z.ZodOptional<z.ZodEnum<{
367
369
  fill: "fill";
@@ -429,7 +431,7 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
429
431
  actuatorId: z.ZodString;
430
432
  intent: z.ZodString;
431
433
  inputKey: z.ZodOptional<z.ZodString>;
432
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
434
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
433
435
  candidateValueKey: z.ZodOptional<z.ZodString>;
434
436
  candidateState: z.ZodOptional<z.ZodEnum<{
435
437
  selected: "selected";
@@ -445,16 +447,16 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
445
447
  }>;
446
448
  semanticEffects: z.ZodArray<z.ZodObject<{
447
449
  kind: z.ZodString;
448
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
450
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>>;
449
451
  acceptedEffectPatterns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
450
452
  kind: z.ZodLiteral<"exact">;
451
453
  effect: z.ZodObject<{
452
454
  kind: z.ZodString;
453
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
455
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
454
456
  }, z.core.$strip>, z.ZodObject<{
455
457
  kind: z.ZodLiteral<"match">;
456
458
  effectKind: z.ZodString;
457
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
459
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
458
460
  scalar: z.ZodOptional<z.ZodObject<{
459
461
  field: z.ZodString;
460
462
  min: z.ZodOptional<z.ZodNumber>;
@@ -466,11 +468,11 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
466
468
  kind: z.ZodLiteral<"exact">;
467
469
  effect: z.ZodObject<{
468
470
  kind: z.ZodString;
469
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
471
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
470
472
  }, z.core.$strip>, z.ZodObject<{
471
473
  kind: z.ZodLiteral<"match">;
472
474
  effectKind: z.ZodString;
473
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
475
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
474
476
  scalar: z.ZodOptional<z.ZodObject<{
475
477
  field: z.ZodString;
476
478
  min: z.ZodOptional<z.ZodNumber>;
@@ -481,7 +483,7 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
481
483
  prepares: z.ZodOptional<z.ZodObject<{
482
484
  intent: z.ZodString;
483
485
  inputKey: z.ZodOptional<z.ZodString>;
484
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
486
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
485
487
  candidateValueKey: z.ZodOptional<z.ZodString>;
486
488
  actuatorKind: z.ZodOptional<z.ZodEnum<{
487
489
  fill: "fill";
@@ -571,7 +573,7 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
571
573
  actuatorId: z.ZodString;
572
574
  intent: z.ZodString;
573
575
  inputKey: z.ZodOptional<z.ZodString>;
574
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
576
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
575
577
  candidateValueKey: z.ZodOptional<z.ZodString>;
576
578
  candidateState: z.ZodOptional<z.ZodEnum<{
577
579
  selected: "selected";
@@ -587,16 +589,16 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
587
589
  }>;
588
590
  semanticEffects: z.ZodArray<z.ZodObject<{
589
591
  kind: z.ZodString;
590
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>>;
592
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>>;
591
593
  acceptedEffectPatterns: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
592
594
  kind: z.ZodLiteral<"exact">;
593
595
  effect: z.ZodObject<{
594
596
  kind: z.ZodString;
595
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
597
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
596
598
  }, z.core.$strip>, z.ZodObject<{
597
599
  kind: z.ZodLiteral<"match">;
598
600
  effectKind: z.ZodString;
599
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
601
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
600
602
  scalar: z.ZodOptional<z.ZodObject<{
601
603
  field: z.ZodString;
602
604
  min: z.ZodOptional<z.ZodNumber>;
@@ -608,11 +610,11 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
608
610
  kind: z.ZodLiteral<"exact">;
609
611
  effect: z.ZodObject<{
610
612
  kind: z.ZodString;
611
- }, z.core.$catchall<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
613
+ }, z.core.$catchall<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
612
614
  }, z.core.$strip>, z.ZodObject<{
613
615
  kind: z.ZodLiteral<"match">;
614
616
  effectKind: z.ZodString;
615
- fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
617
+ fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>>;
616
618
  scalar: z.ZodOptional<z.ZodObject<{
617
619
  field: z.ZodString;
618
620
  min: z.ZodOptional<z.ZodNumber>;
@@ -623,7 +625,7 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
623
625
  prepares: z.ZodOptional<z.ZodObject<{
624
626
  intent: z.ZodString;
625
627
  inputKey: z.ZodOptional<z.ZodString>;
626
- candidateValue: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
628
+ candidateValue: z.ZodOptional<z.ZodPreprocess<z.ZodType<RuntimeJson, unknown, z.core.$ZodTypeInternals<RuntimeJson, unknown>>>>;
627
629
  candidateValueKey: z.ZodOptional<z.ZodString>;
628
630
  actuatorKind: z.ZodOptional<z.ZodEnum<{
629
631
  fill: "fill";
@@ -49,7 +49,8 @@ import {
49
49
  resolveBrowserInteractionIntent,
50
50
  targetIdentityKey,
51
51
  validateBrowserInteractionSnapshot
52
- } from "./chunk-QLG6VEMW.js";
52
+ } from "./chunk-MALRKLRR.js";
53
+ import "./chunk-AEUXCFGM.js";
53
54
  import "./chunk-PZ5AY32C.js";
54
55
  export {
55
56
  BROWSER_INTERACTION_ACTUATOR_KINDS,
@@ -17,7 +17,7 @@ import {
17
17
  usePluginState,
18
18
  useResolvedCardTargetValue,
19
19
  useZoneCards
20
- } from "./chunk-P7F4L2FF.js";
20
+ } from "./chunk-CZMFAS3E.js";
21
21
  import {
22
22
  CardFace,
23
23
  MobileHandTrayProvider,
@@ -25,7 +25,7 @@ import {
25
25
  createResourceCounter,
26
26
  useIsMobile,
27
27
  useRegisterMobileHand
28
- } from "./chunk-Q5O7GPVY.js";
28
+ } from "./chunk-7W6TQO3X.js";
29
29
 
30
30
  // src/runtime/workspace-contract/index.ts
31
31
  import { createElement as createElement6 } from "react";
@@ -116,7 +116,7 @@ function createBoardTargetInputSlot(ctx, kind) {
116
116
  // src/runtime/workspace-contract/board.ts
117
117
  function createUseBoardSurface(ctx) {
118
118
  const { baseUI, runtimeBoard } = ctx;
119
- return function useBoardSurface(_name) {
119
+ return function useBoardSurface() {
120
120
  return {
121
121
  Root: ({ children }) => createElement2(baseUI.Board.Root, { children }),
122
122
  Space: (props) => createElement2(runtimeBoard.SpaceTarget, props),
@@ -241,38 +241,43 @@ function createSurfaceResolvers({
241
241
  Zone: Zone2,
242
242
  useInteractionFormSurface
243
243
  }) {
244
+ const boardSurface = Board2.useSurface;
245
+ const zoneHandSurface = Zone2.useHand;
246
+ const zonePileSurface = Zone2.usePile;
247
+ const zoneCardCollectionSurface = Zone2.useCardCollection;
248
+ const interactionFormSurface = useInteractionFormSurface;
244
249
  function resolveSurfaceDescriptor(name, descriptor) {
245
250
  switch (descriptor.kind) {
246
251
  case "board":
247
- return Board2.useSurface(name);
252
+ return boardSurface(name);
248
253
  case "hand":
249
- return Zone2.useHand(name, {
254
+ return zoneHandSurface(name, {
250
255
  zone: descriptor.zone,
251
256
  role: descriptor.role,
252
257
  label: descriptor.label,
253
258
  order: descriptor.order
254
259
  });
255
260
  case "pile":
256
- return Zone2.usePile(name, { zone: descriptor.zone });
261
+ return zonePileSurface(name, { zone: descriptor.zone });
257
262
  case "piles":
258
263
  return Object.fromEntries(
259
264
  descriptor.zones.map((zone) => [
260
265
  zone,
261
- Zone2.usePile(String(zone), { zone })
266
+ zonePileSurface(String(zone), { zone })
262
267
  ])
263
268
  );
264
269
  case "cardCollection":
265
- return Zone2.useCardCollection(name, {
270
+ return zoneCardCollectionSurface(name, {
266
271
  zones: descriptor.zones,
267
272
  mode: descriptor.mode
268
273
  });
269
274
  case "form":
270
- return useInteractionFormSurface(descriptor.interaction);
275
+ return interactionFormSurface(descriptor.interaction);
271
276
  case "forms":
272
277
  return Object.fromEntries(
273
278
  Object.entries(descriptor.interactions).map(([key, interaction]) => [
274
279
  key,
275
- useInteractionFormSurface(interaction)
280
+ interactionFormSurface(interaction)
276
281
  ])
277
282
  );
278
283
  }
@@ -384,7 +389,7 @@ function createHandPieces(ctx) {
384
389
  () => createElement4(HandSurfaceView, {
385
390
  zone: hand.zone,
386
391
  cards: items,
387
- renderCard: (card, state, _index) => children(card, state),
392
+ renderCard: (card, state) => children(card, state),
388
393
  layout,
389
394
  mobileInteraction,
390
395
  dropTargets: resolvedDropTargets,
@@ -691,4 +696,4 @@ function createWorkspaceUIContract(options) {
691
696
  export {
692
697
  createWorkspaceUIContract
693
698
  };
694
- //# sourceMappingURL=chunk-4G7552LO.js.map
699
+ //# sourceMappingURL=chunk-3K362ZKR.js.map