@expofp/schema 0.0.0-experimental.2632d13 → 0.0.0-experimental.3b0db16
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/index.d.ts +0 -4
- package/dist/index.js +0 -4
- package/dist/lib/camera.d.ts +0 -1
- package/dist/lib/camera.js +0 -7
- package/dist/lib/config-defaults.d.ts +0 -27
- package/dist/lib/config-defaults.js +0 -35
- package/dist/lib/config.d.ts +0 -342
- package/dist/lib/config.js +0 -75
- package/dist/lib/flags.d.ts +0 -5
- package/dist/lib/flags.js +0 -44
- package/dist/lib/fp-svg.d.ts +0 -129
- package/dist/lib/fp-svg.js +1 -19
- package/dist/lib/intents.d.ts +0 -1
- package/package.json +2 -2
- package/dist/lib/branding.d.ts +0 -21
- package/dist/lib/branding.js +0 -20
- package/dist/lib/journey.d.ts +0 -27
- package/dist/lib/journey.js +0 -26
- package/dist/lib/maps.d.ts +0 -22
- package/dist/lib/maps.js +0 -19
- package/dist/lib/venues.d.ts +0 -222
- package/dist/lib/venues.js +0 -150
package/dist/lib/config.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import { RawBoothSchema } from './booth.js';
|
|
3
|
-
import { SelectionStyleSchema, WayfindingColorsSchema } from './branding.js';
|
|
4
3
|
import { CameraSchema } from './camera.js';
|
|
5
4
|
import { RawCategorySchema } from './categories.js';
|
|
6
5
|
import { LegacyLogoSchema, RawExhibitorSchema } from './exhibitor.js';
|
|
@@ -9,14 +8,11 @@ import { FlagsSchema } from './flags.js';
|
|
|
9
8
|
import { FpSvgJsRefSchema, FpSvgLayerJsRefSchema } from './fp-svg.js';
|
|
10
9
|
import { HeatmapSchema } from './heatmap.js';
|
|
11
10
|
import { IntentsSchema } from './intents.js';
|
|
12
|
-
import { JourneyLinkSchema } from './journey.js';
|
|
13
11
|
import { KioskSchema } from './kiosk.js';
|
|
14
12
|
import { MapLibreConfigSchema } from './maplibre.js';
|
|
15
|
-
import { MapsProviderSchema } from './maps.js';
|
|
16
13
|
import { RawPoiTypeSchema } from './poi-types.js';
|
|
17
14
|
import { ScheduleItemSchema } from './schedule.js';
|
|
18
15
|
import { FilterButtonsConfigSchema } from './search.js';
|
|
19
|
-
import { VenueSchema, VenuesVersionSchema } from './venues.js';
|
|
20
16
|
import { VisibilitySchema } from './visibility.js';
|
|
21
17
|
import { WfDataJsRefSchema } from './wayfinding.js';
|
|
22
18
|
// The document schemas below are LOOSE objects (`z.looseObject`): the platform
|
|
@@ -107,15 +103,6 @@ export const ConfigSchema = z.object({
|
|
|
107
103
|
hideBookmarks: z.boolean(),
|
|
108
104
|
hideLanguage: z.boolean(),
|
|
109
105
|
hideLanguageLink: z.boolean(),
|
|
110
|
-
/** Only these locale ids are offered in the language menu; empty = all bundled locales. */
|
|
111
|
-
uiLanguages: z.array(z.string()),
|
|
112
|
-
/** Hide the level name on the booth badges inside the exhibitor card. */
|
|
113
|
-
hideBoothLevel: z.boolean(),
|
|
114
|
-
/** Selected booth highlight: blinking interpolation (default) or a solid fill without outline. */
|
|
115
|
-
selectionStyle: SelectionStyleSchema,
|
|
116
|
-
/** Selected booth / POI color; empty keeps the plan's `__fpSettings` value. */
|
|
117
|
-
selectionColor: z.string(),
|
|
118
|
-
wayfindingColors: WayfindingColorsSchema,
|
|
119
106
|
autoTrackingGps: z.boolean(),
|
|
120
107
|
enableIPS: z.boolean(),
|
|
121
108
|
allow3dView: z.boolean(),
|
|
@@ -130,18 +117,6 @@ export const ConfigSchema = z.object({
|
|
|
130
117
|
showCompaniesAndBooths: z.boolean(),
|
|
131
118
|
showOtherSpaces: z.boolean(),
|
|
132
119
|
hideShareButton: z.boolean(),
|
|
133
|
-
/**
|
|
134
|
-
* Fold long exhibitor and session descriptions under a fade that expands
|
|
135
|
-
* on tap (in kiosk mode, the whole details block behind "Show more").
|
|
136
|
-
* `false` always shows the full text.
|
|
137
|
-
*/
|
|
138
|
-
collapseDescriptions: z.boolean(),
|
|
139
|
-
/**
|
|
140
|
-
* While the visitor types in search, frame the matching booths and points once typing pauses:
|
|
141
|
-
* the matches in the venue on screen, or the venue all matches share. `false` keeps the camera
|
|
142
|
-
* where it is until a result is picked.
|
|
143
|
-
*/
|
|
144
|
-
searchCameraFollow: z.boolean(),
|
|
145
120
|
viewOptimizationLevel: z.number(),
|
|
146
121
|
shortLevelName: z.boolean(),
|
|
147
122
|
searchText: z.string(),
|
|
@@ -149,44 +124,6 @@ export const ConfigSchema = z.object({
|
|
|
149
124
|
enableRotation: z.boolean(),
|
|
150
125
|
alwaysShowSidebar: z.boolean(),
|
|
151
126
|
customKioskQrCodeUrl: z.string(),
|
|
152
|
-
/**
|
|
153
|
-
* Address every QR code the plan prints is built on — the route code and the
|
|
154
|
-
* cross-venue journey deep link alike. Empty, the default, means the plan's
|
|
155
|
-
* own canonical `https://<expo>.expofp.com`, which is right whenever the plan
|
|
156
|
-
* is served from there; a copy served from somewhere else — a branch runtime,
|
|
157
|
-
* an offline build, a page embedding the plan under its own address — sets
|
|
158
|
-
* this so a scanned code lands on a page that exists.
|
|
159
|
-
*
|
|
160
|
-
* Only the part before the query is honored: each code writes its own query
|
|
161
|
-
* over whatever this carries. Everything after it rides along untouched, so a
|
|
162
|
-
* host that selects the plan with a fragment keeps it.
|
|
163
|
-
*/
|
|
164
|
-
qrCodeBaseUrl: z.string(),
|
|
165
|
-
/** Wire version of the multi-venue payload. Revision 2 defines version 1. */
|
|
166
|
-
venuesVersion: VenuesVersionSchema,
|
|
167
|
-
/**
|
|
168
|
-
* Multi-venue definitions. A plan has a venue model when this array is
|
|
169
|
-
* present, non-empty, and valid — the loose shape here lets a malformed
|
|
170
|
-
* venue through so it can be quarantined with a diagnostic rather than
|
|
171
|
-
* failing the whole plan (contract enforcement lives in
|
|
172
|
-
* `packages/floorplan/src/data/venues.ts`).
|
|
173
|
-
*/
|
|
174
|
-
venues: z.array(VenueSchema),
|
|
175
|
-
/**
|
|
176
|
-
* Producer override for the external maps provider a cross-venue journey
|
|
177
|
-
* hands off to. Unset — the default — leaves the choice to the platform
|
|
178
|
-
* (Apple Maps on iOS/iPadOS, Google Maps elsewhere); setting it forces that
|
|
179
|
-
* provider everywhere, so a partnership or regional preference is honored on
|
|
180
|
-
* every device. Inert unless `crossVenueJourneys` is on.
|
|
181
|
-
*/
|
|
182
|
-
mapsProvider: MapsProviderSchema.optional(),
|
|
183
|
-
/**
|
|
184
|
-
* The journey a deep link asks for — the query a scanned kiosk QR or a
|
|
185
|
-
* desktop "continue on your phone" link arrives as. Absent on an ordinary
|
|
186
|
-
* load. Identifiers only: opening the link recomputes the journey from the
|
|
187
|
-
* plan the device has now (`?journey[to]=A-12&journey[from]=B-30`).
|
|
188
|
-
*/
|
|
189
|
-
journey: JourneyLinkSchema.optional(),
|
|
190
127
|
/**
|
|
191
128
|
* Indoor-positioning provider for the native SDKs, opaque web-side:
|
|
192
129
|
* `<provider>.<version>.<base64url credentials>`, e.g.
|
|
@@ -362,15 +299,6 @@ export const UrlConfigSchema = ConfigSchema.partial()
|
|
|
362
299
|
.pick({
|
|
363
300
|
enableExperimentalMaplibre: true,
|
|
364
301
|
enableExperimentalOutdoorMarkers: true,
|
|
365
|
-
enableExperimentalVenueFraming: true,
|
|
366
|
-
enableExperimentalNorthUp: true,
|
|
367
|
-
crossVenueJourneys: true,
|
|
368
|
-
// the journey provider override — tunable here so a plan can be checked on
|
|
369
|
-
// either provider from any device, not only the one it defaults to
|
|
370
|
-
mapsProvider: true,
|
|
371
|
-
// the journey deep link: ?journey[to]=A-12&journey[from]=B-30 — a scanned
|
|
372
|
-
// kiosk QR or a desktop hand-off arrives as exactly this
|
|
373
|
-
journey: true,
|
|
374
302
|
intents: true,
|
|
375
303
|
consent: true,
|
|
376
304
|
// the former one-shot presentation params — the query keys keep their
|
|
@@ -416,9 +344,6 @@ export const LocalStorageConfigSchema = ConfigSchema.partial()
|
|
|
416
344
|
.pick({
|
|
417
345
|
enableExperimentalMaplibre: true,
|
|
418
346
|
enableExperimentalOutdoorMarkers: true,
|
|
419
|
-
enableExperimentalVenueFraming: true,
|
|
420
|
-
enableExperimentalNorthUp: true,
|
|
421
|
-
sdkTelemetry: true,
|
|
422
347
|
debugMode: true,
|
|
423
348
|
debugPattern: true,
|
|
424
349
|
showDebugButton: true,
|
package/dist/lib/flags.d.ts
CHANGED
|
@@ -7,13 +7,8 @@ import * as z from 'zod';
|
|
|
7
7
|
export declare const FlagsSchema: z.ZodObject<{
|
|
8
8
|
enableExperimentalMaplibre: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
enableExperimentalOutdoorMarkers: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
enableExperimentalVenueFraming: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
enableExperimentalNorthUp: z.ZodOptional<z.ZodBoolean>;
|
|
12
10
|
customSetKiosk: z.ZodOptional<z.ZodString>;
|
|
13
11
|
hideBoothBadges: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
crossVenueJourneys: z.ZodOptional<z.ZodBoolean>;
|
|
15
12
|
busRoutes: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
ignoreUnknownFloorIndex: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
sdkTelemetry: z.ZodOptional<z.ZodBoolean>;
|
|
18
13
|
}, z.core.$loose>;
|
|
19
14
|
//# sourceMappingURL=flags.d.ts.map
|
package/dist/lib/flags.js
CHANGED
|
@@ -18,40 +18,10 @@ export const FlagsSchema = z.looseObject({
|
|
|
18
18
|
* plan in, so there is nothing for `undefined` to defer to.
|
|
19
19
|
*/
|
|
20
20
|
enableExperimentalOutdoorMarkers: z.boolean().optional(),
|
|
21
|
-
/**
|
|
22
|
-
* Enable experimental venue framing on multi-venue (campus) plans: entering
|
|
23
|
-
* a venue or switching its level holds the camera on the venue footprint
|
|
24
|
-
* instead of flying to the level's own viewbox.
|
|
25
|
-
*
|
|
26
|
-
* Unset or `false` lets each level frame its own viewbox (falling back to
|
|
27
|
-
* its rect). Not tri-state.
|
|
28
|
-
*/
|
|
29
|
-
enableExperimentalVenueFraming: z.boolean().optional(),
|
|
30
|
-
/**
|
|
31
|
-
* Enable experimental north-up framing in the MapLibre map view: the initial
|
|
32
|
-
* load, Fit to screen and the campus-wide fits face north (bearing 0)
|
|
33
|
-
* instead of turning the map so the plan stands upright. Entering a venue —
|
|
34
|
-
* and focusing a booth inside one — turns the map to that level's authored
|
|
35
|
-
* viewbox instead, so a building reads along its own axes.
|
|
36
|
-
*
|
|
37
|
-
* Unset or `false` keeps the plan-upright bearing. Not tri-state. The
|
|
38
|
-
* standalone floor plan view has no geographic north and ignores it.
|
|
39
|
-
*/
|
|
40
|
-
enableExperimentalNorthUp: z.boolean().optional(),
|
|
41
21
|
/** Custom `setkiosk` phrase. */
|
|
42
22
|
customSetKiosk: z.string().optional(),
|
|
43
23
|
/** Hide booth number badges. */
|
|
44
24
|
hideBoothBadges: z.boolean().optional(),
|
|
45
|
-
/**
|
|
46
|
-
* Enable cross-venue journeys: where the wayfinding graph cannot route
|
|
47
|
-
* between two venues, the plan offers a Journey with an external maps handoff
|
|
48
|
-
* instead of a dead end (ADR-0010).
|
|
49
|
-
*
|
|
50
|
-
* Off by default and not tri-state — nothing in the data opts a plan in, so
|
|
51
|
-
* there is nothing for `undefined` to defer to. The same switch stays the
|
|
52
|
-
* producer's opt-out once the feature is generally available.
|
|
53
|
-
*/
|
|
54
|
-
crossVenueJourneys: z.boolean().optional(),
|
|
55
25
|
/**
|
|
56
26
|
* Enable live bus/transport routing on the floor plan.
|
|
57
27
|
*
|
|
@@ -60,18 +30,4 @@ export const FlagsSchema = z.looseObject({
|
|
|
60
30
|
* plans that actually provide bus routes.
|
|
61
31
|
*/
|
|
62
32
|
busRoutes: z.boolean().optional(),
|
|
63
|
-
/**
|
|
64
|
-
* Ignore the floor (`z`) a current-position fix reports
|
|
65
|
-
* (`selectCurrentPosition`) when it is a floor index with no floor at it —
|
|
66
|
-
* 13 on a plan with 13 floors — rather than match a floor whose name holds
|
|
67
|
-
* the number: the position takes the current route's floor instead. A `z`
|
|
68
|
-
* with a floor at its index, or a floor name, still applies. Off by default.
|
|
69
|
-
*/
|
|
70
|
-
ignoreUnknownFloorIndex: z.boolean().optional(),
|
|
71
|
-
/**
|
|
72
|
-
* Send SDK telemetry: a `load` event per plan and the host's
|
|
73
|
-
* `selectCurrentPosition` calls, batched, to the SDK telemetry intake. Off by
|
|
74
|
-
* default; also a per-browser debug-panel setting (`efp-sdkTelemetry`).
|
|
75
|
-
*/
|
|
76
|
-
sdkTelemetry: z.boolean().optional(),
|
|
77
33
|
});
|
package/dist/lib/fp-svg.d.ts
CHANGED
|
@@ -44,22 +44,6 @@ export declare const FpRectSchema: z.ZodObject<{
|
|
|
44
44
|
x2: z.ZodNumber;
|
|
45
45
|
y2: z.ZodNumber;
|
|
46
46
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
47
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
48
|
-
x: z.ZodNumber;
|
|
49
|
-
y: z.ZodNumber;
|
|
50
|
-
}, z.core.$strip>>;
|
|
51
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
x: z.ZodNumber;
|
|
53
|
-
y: z.ZodNumber;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
56
|
-
x: z.ZodNumber;
|
|
57
|
-
y: z.ZodNumber;
|
|
58
|
-
}, z.core.$strip>>;
|
|
59
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
60
|
-
x: z.ZodNumber;
|
|
61
|
-
y: z.ZodNumber;
|
|
62
|
-
}, z.core.$strip>>;
|
|
63
47
|
}, z.core.$loose>;
|
|
64
48
|
/**
|
|
65
49
|
* One `__fpLayers` entry (consumed by `store/init/init-layers.ts`). `name` also
|
|
@@ -78,22 +62,6 @@ export declare const FpLayerSchema: z.ZodObject<{
|
|
|
78
62
|
x2: z.ZodNumber;
|
|
79
63
|
y2: z.ZodNumber;
|
|
80
64
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
81
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
82
|
-
x: z.ZodNumber;
|
|
83
|
-
y: z.ZodNumber;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
86
|
-
x: z.ZodNumber;
|
|
87
|
-
y: z.ZodNumber;
|
|
88
|
-
}, z.core.$strip>>;
|
|
89
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
90
|
-
x: z.ZodNumber;
|
|
91
|
-
y: z.ZodNumber;
|
|
92
|
-
}, z.core.$strip>>;
|
|
93
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
94
|
-
x: z.ZodNumber;
|
|
95
|
-
y: z.ZodNumber;
|
|
96
|
-
}, z.core.$strip>>;
|
|
97
65
|
}, z.core.$loose>>>;
|
|
98
66
|
viewbox: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
99
67
|
x1: z.ZodNumber;
|
|
@@ -101,22 +69,6 @@ export declare const FpLayerSchema: z.ZodObject<{
|
|
|
101
69
|
x2: z.ZodNumber;
|
|
102
70
|
y2: z.ZodNumber;
|
|
103
71
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
104
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
105
|
-
x: z.ZodNumber;
|
|
106
|
-
y: z.ZodNumber;
|
|
107
|
-
}, z.core.$strip>>;
|
|
108
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
109
|
-
x: z.ZodNumber;
|
|
110
|
-
y: z.ZodNumber;
|
|
111
|
-
}, z.core.$strip>>;
|
|
112
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
113
|
-
x: z.ZodNumber;
|
|
114
|
-
y: z.ZodNumber;
|
|
115
|
-
}, z.core.$strip>>;
|
|
116
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
117
|
-
x: z.ZodNumber;
|
|
118
|
-
y: z.ZodNumber;
|
|
119
|
-
}, z.core.$strip>>;
|
|
120
72
|
}, z.core.$loose>>>;
|
|
121
73
|
floorIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
74
|
}, z.core.$loose>;
|
|
@@ -284,22 +236,6 @@ export declare const FpSvgJsSchema: z.ZodObject<{
|
|
|
284
236
|
x2: z.ZodNumber;
|
|
285
237
|
y2: z.ZodNumber;
|
|
286
238
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
287
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
288
|
-
x: z.ZodNumber;
|
|
289
|
-
y: z.ZodNumber;
|
|
290
|
-
}, z.core.$strip>>;
|
|
291
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
292
|
-
x: z.ZodNumber;
|
|
293
|
-
y: z.ZodNumber;
|
|
294
|
-
}, z.core.$strip>>;
|
|
295
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
296
|
-
x: z.ZodNumber;
|
|
297
|
-
y: z.ZodNumber;
|
|
298
|
-
}, z.core.$strip>>;
|
|
299
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
300
|
-
x: z.ZodNumber;
|
|
301
|
-
y: z.ZodNumber;
|
|
302
|
-
}, z.core.$strip>>;
|
|
303
239
|
}, z.core.$loose>>>;
|
|
304
240
|
viewbox: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
305
241
|
x1: z.ZodNumber;
|
|
@@ -307,76 +243,11 @@ export declare const FpSvgJsSchema: z.ZodObject<{
|
|
|
307
243
|
x2: z.ZodNumber;
|
|
308
244
|
y2: z.ZodNumber;
|
|
309
245
|
angle: z.ZodOptional<z.ZodNumber>;
|
|
310
|
-
p0: z.ZodOptional<z.ZodObject<{
|
|
311
|
-
x: z.ZodNumber;
|
|
312
|
-
y: z.ZodNumber;
|
|
313
|
-
}, z.core.$strip>>;
|
|
314
|
-
p1: z.ZodOptional<z.ZodObject<{
|
|
315
|
-
x: z.ZodNumber;
|
|
316
|
-
y: z.ZodNumber;
|
|
317
|
-
}, z.core.$strip>>;
|
|
318
|
-
p2: z.ZodOptional<z.ZodObject<{
|
|
319
|
-
x: z.ZodNumber;
|
|
320
|
-
y: z.ZodNumber;
|
|
321
|
-
}, z.core.$strip>>;
|
|
322
|
-
p3: z.ZodOptional<z.ZodObject<{
|
|
323
|
-
x: z.ZodNumber;
|
|
324
|
-
y: z.ZodNumber;
|
|
325
|
-
}, z.core.$strip>>;
|
|
326
246
|
}, z.core.$loose>>>;
|
|
327
247
|
floorIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
328
248
|
}, z.core.$loose>>>;
|
|
329
249
|
__fpLayersMode: z.ZodOptional<z.ZodNumber>;
|
|
330
250
|
__fpDefaultLayer: z.ZodOptional<z.ZodString>;
|
|
331
|
-
__fpVenues: z.ZodOptional<z.ZodObject<{
|
|
332
|
-
venuesVersion: z.ZodOptional<z.ZodLiteral<1>>;
|
|
333
|
-
venues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
334
|
-
id: z.ZodString;
|
|
335
|
-
name: z.ZodString;
|
|
336
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
levels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
339
|
-
ordinal: z.ZodOptional<z.ZodInt>;
|
|
340
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
341
|
-
initial: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
342
|
-
}, z.core.$loose>>>;
|
|
343
|
-
contour: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
344
|
-
x: z.ZodNumber;
|
|
345
|
-
y: z.ZodNumber;
|
|
346
|
-
}, z.core.$strip>>>;
|
|
347
|
-
markerPoint: z.ZodOptional<z.ZodObject<{
|
|
348
|
-
x: z.ZodNumber;
|
|
349
|
-
y: z.ZodNumber;
|
|
350
|
-
}, z.core.$strip>>;
|
|
351
|
-
detailMinSizePx: z.ZodOptional<z.ZodNumber>;
|
|
352
|
-
markerMaxSizePx: z.ZodOptional<z.ZodNumber>;
|
|
353
|
-
layers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
354
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
355
|
-
render: z.ZodOptional<z.ZodEnum<{
|
|
356
|
-
marker: "marker";
|
|
357
|
-
scene: "scene";
|
|
358
|
-
}>>;
|
|
359
|
-
replacesDefault: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
360
|
-
suppressesLabel: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
361
|
-
minSizePx: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
362
|
-
maxSizePx: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"detail">]>>>;
|
|
363
|
-
}, z.core.$loose>>>;
|
|
364
|
-
entrances: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
365
|
-
layer: z.ZodOptional<z.ZodString>;
|
|
366
|
-
point: z.ZodOptional<z.ZodObject<{
|
|
367
|
-
x: z.ZodNumber;
|
|
368
|
-
y: z.ZodNumber;
|
|
369
|
-
}, z.core.$strip>>;
|
|
370
|
-
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
371
|
-
}, z.core.$loose>>>;
|
|
372
|
-
campusViewbox: z.ZodOptional<z.ZodObject<{
|
|
373
|
-
x: z.ZodOptional<z.ZodNumber>;
|
|
374
|
-
y: z.ZodOptional<z.ZodNumber>;
|
|
375
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
376
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
377
|
-
}, z.core.$loose>>;
|
|
378
|
-
}, z.core.$loose>>>;
|
|
379
|
-
}, z.core.$loose>>;
|
|
380
251
|
}, z.core.$loose>;
|
|
381
252
|
/**
|
|
382
253
|
* A `$ref` to the expo's `fp.svg.js` — resolves to a {@link FpSvgJsSchema}
|
package/dist/lib/fp-svg.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import { FpGeoSchema } from './fp-geo.js';
|
|
3
|
-
import { VenuePayloadSchema } from './venues.js';
|
|
4
3
|
/**
|
|
5
4
|
* Schemas for the legacy `fp.svg.js` drawing payloads served next to `data.js`
|
|
6
5
|
* under `legacyDataUrlBase`:
|
|
@@ -8,7 +7,7 @@ import { VenuePayloadSchema } from './venues.js';
|
|
|
8
7
|
* - `fp.svg.js` — {@link FpSvgJsSchema}: the default layer's drawing plus
|
|
9
8
|
* plan-wide metadata (`__fp`, `__fpPaths`, `__fpGeo`, `__fpSettings`,
|
|
10
9
|
* `__fpStat`, `__fpVersion`, `__viewbox`, `__fpLayers`, `__fpLayersMode`,
|
|
11
|
-
* `__fpDefaultLayer
|
|
10
|
+
* `__fpDefaultLayer`)
|
|
12
11
|
* - `fp.svg.<layerName>.js` — {@link FpSvgLayerJsSchema}: one additional drawing
|
|
13
12
|
* layer (`__fp`, `__fpPaths`, and per-file copies of the shared globals)
|
|
14
13
|
*
|
|
@@ -87,7 +86,6 @@ export const FpViewboxSchema = z.looseObject({
|
|
|
87
86
|
height: z.number(),
|
|
88
87
|
angle: z.number().optional(),
|
|
89
88
|
});
|
|
90
|
-
const FpRectCornerSchema = z.object({ x: z.number(), y: z.number() });
|
|
91
89
|
/** A min/max rectangle in the legacy `core/Rect` shape. */
|
|
92
90
|
export const FpRectSchema = z.looseObject({
|
|
93
91
|
x1: z.number(),
|
|
@@ -96,15 +94,6 @@ export const FpRectSchema = z.looseObject({
|
|
|
96
94
|
y2: z.number(),
|
|
97
95
|
/** Rotation — present on layer viewboxes. */
|
|
98
96
|
angle: z.number().optional(),
|
|
99
|
-
/**
|
|
100
|
-
* The rectangle's own corners, clockwise from the top-left — present on
|
|
101
|
-
* layer viewboxes from converters that emit them. On a turned viewbox these
|
|
102
|
-
* carry the turn, where `x1`..`y2` stay axis-aligned.
|
|
103
|
-
*/
|
|
104
|
-
p0: FpRectCornerSchema.optional(),
|
|
105
|
-
p1: FpRectCornerSchema.optional(),
|
|
106
|
-
p2: FpRectCornerSchema.optional(),
|
|
107
|
-
p3: FpRectCornerSchema.optional(),
|
|
108
97
|
});
|
|
109
98
|
/**
|
|
110
99
|
* One `__fpLayers` entry (consumed by `store/init/init-layers.ts`). `name` also
|
|
@@ -176,13 +165,6 @@ export const FpSvgJsSchema = z.looseObject({
|
|
|
176
165
|
__fpLayersMode: z.number().optional(),
|
|
177
166
|
/** `name` of the layer whose drawing this file carries. */
|
|
178
167
|
__fpDefaultLayer: z.string().optional(),
|
|
179
|
-
/**
|
|
180
|
-
* The venue document, carried on the geometry path so it is written by the
|
|
181
|
-
* same converter run as the `__fpLayers` its layer names join to. Absent on
|
|
182
|
-
* drawings from a converter that predates it — `loadConfig` then keeps the
|
|
183
|
-
* `data.js` value (`docs/specs/multi-venue-data-contract.md` §1).
|
|
184
|
-
*/
|
|
185
|
-
__fpVenues: VenuePayloadSchema.optional(),
|
|
186
168
|
});
|
|
187
169
|
/**
|
|
188
170
|
* A `$ref` to the expo's `fp.svg.js` — resolves to a {@link FpSvgJsSchema}
|
package/dist/lib/intents.d.ts
CHANGED
|
@@ -125,7 +125,6 @@ export declare const IntentsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
125
125
|
lat: z.ZodOptional<z.ZodNumber>;
|
|
126
126
|
lng: z.ZodOptional<z.ZodNumber>;
|
|
127
127
|
floor: z.ZodOptional<z.ZodString>;
|
|
128
|
-
venue: z.ZodOptional<z.ZodString>;
|
|
129
128
|
bearing: z.ZodOptional<z.ZodNumber>;
|
|
130
129
|
zoomTime: z.ZodOptional<z.ZodNumber>;
|
|
131
130
|
pitchTime: z.ZodOptional<z.ZodNumber>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/schema",
|
|
3
|
-
"version": "0.0.0-experimental.
|
|
3
|
+
"version": "0.0.0-experimental.3b0db16",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ExpoFP SDK internal: expo data schemas and types",
|
|
6
6
|
"homepage": "https://developer.expofp.com/",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"zod": "4.4.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@expofp/utils": "0.0.0-experimental.
|
|
28
|
+
"@expofp/utils": "0.0.0-experimental.3b0db16"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"dist",
|
package/dist/lib/branding.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/** How a selected booth/space/POI is highlighted on the plan. */
|
|
3
|
-
export declare const SelectionStyleSchema: z.ZodEnum<{
|
|
4
|
-
blink: "blink";
|
|
5
|
-
solid: "solid";
|
|
6
|
-
}>;
|
|
7
|
-
export type SelectionStyle = z.infer<typeof SelectionStyleSchema>;
|
|
8
|
-
/**
|
|
9
|
-
* Wayfinding palette overrides. Every key is optional; an absent key keeps
|
|
10
|
-
* the built-in color. Loose so the platform can add keys before the SDK
|
|
11
|
-
* learns them.
|
|
12
|
-
*/
|
|
13
|
-
export declare const WayfindingColorsSchema: z.ZodObject<{
|
|
14
|
-
route: z.ZodOptional<z.ZodString>;
|
|
15
|
-
routeActive: z.ZodOptional<z.ZodString>;
|
|
16
|
-
routePassed: z.ZodOptional<z.ZodString>;
|
|
17
|
-
source: z.ZodOptional<z.ZodString>;
|
|
18
|
-
destination: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$loose>;
|
|
20
|
-
export type WayfindingColors = z.infer<typeof WayfindingColorsSchema>;
|
|
21
|
-
//# sourceMappingURL=branding.d.ts.map
|
package/dist/lib/branding.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/** How a selected booth/space/POI is highlighted on the plan. */
|
|
3
|
-
export const SelectionStyleSchema = z.enum(['blink', 'solid']);
|
|
4
|
-
/**
|
|
5
|
-
* Wayfinding palette overrides. Every key is optional; an absent key keeps
|
|
6
|
-
* the built-in color. Loose so the platform can add keys before the SDK
|
|
7
|
-
* learns them.
|
|
8
|
-
*/
|
|
9
|
-
export const WayfindingColorsSchema = z.looseObject({
|
|
10
|
-
/** Remaining route segments. */
|
|
11
|
-
route: z.string().optional(),
|
|
12
|
-
/** Animated "current" segment drawn over the remaining route. */
|
|
13
|
-
routeActive: z.string().optional(),
|
|
14
|
-
/** Segments already walked. */
|
|
15
|
-
routePassed: z.string().optional(),
|
|
16
|
-
/** Departure / current-position / transition icons. */
|
|
17
|
-
source: z.string().optional(),
|
|
18
|
-
/** Destination icon. */
|
|
19
|
-
destination: z.string().optional(),
|
|
20
|
-
});
|
package/dist/lib/journey.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The journey deep link — the `config.journey` node, and the query a scanned
|
|
4
|
-
* kiosk QR or a desktop "continue on your phone" link arrives as
|
|
5
|
-
* (`?journey[to]=A-12&journey[from]=B-30`).
|
|
6
|
-
*
|
|
7
|
-
* IDENTIFIERS ONLY, on purpose: a journey is recomputed from live plan data
|
|
8
|
-
* when the link opens, never restored from it. A link that carried legs,
|
|
9
|
-
* coordinates or a provider URL would hand the phone whatever the plan looked
|
|
10
|
-
* like when the code was printed — the QR beside a kiosk outlives more than one
|
|
11
|
-
* plan edit. Everything a journey needs beyond these two names (the venues,
|
|
12
|
-
* their anchors, the provider, the distance) the receiving device already has,
|
|
13
|
-
* fresher.
|
|
14
|
-
*
|
|
15
|
-
* The origin is optional because two of its three sources are the device's own:
|
|
16
|
-
* a live position and a kiosk anchor travel as themselves (the kiosk anchor
|
|
17
|
-
* through the legacy `kiosk_*` params the QR-share pattern already smuggles),
|
|
18
|
-
* leaving `from` to name a picked from-booth — the one origin that is an
|
|
19
|
-
* authored place rather than a device.
|
|
20
|
-
*/
|
|
21
|
-
export declare const JourneyLinkSchema: z.ZodObject<{
|
|
22
|
-
to: z.ZodString;
|
|
23
|
-
from: z.ZodOptional<z.ZodString>;
|
|
24
|
-
}, z.core.$strip>;
|
|
25
|
-
/** A journey deep link's payload — see {@link JourneyLinkSchema}. */
|
|
26
|
-
export type JourneyLink = z.infer<typeof JourneyLinkSchema>;
|
|
27
|
-
//# sourceMappingURL=journey.d.ts.map
|
package/dist/lib/journey.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The journey deep link — the `config.journey` node, and the query a scanned
|
|
4
|
-
* kiosk QR or a desktop "continue on your phone" link arrives as
|
|
5
|
-
* (`?journey[to]=A-12&journey[from]=B-30`).
|
|
6
|
-
*
|
|
7
|
-
* IDENTIFIERS ONLY, on purpose: a journey is recomputed from live plan data
|
|
8
|
-
* when the link opens, never restored from it. A link that carried legs,
|
|
9
|
-
* coordinates or a provider URL would hand the phone whatever the plan looked
|
|
10
|
-
* like when the code was printed — the QR beside a kiosk outlives more than one
|
|
11
|
-
* plan edit. Everything a journey needs beyond these two names (the venues,
|
|
12
|
-
* their anchors, the provider, the distance) the receiving device already has,
|
|
13
|
-
* fresher.
|
|
14
|
-
*
|
|
15
|
-
* The origin is optional because two of its three sources are the device's own:
|
|
16
|
-
* a live position and a kiosk anchor travel as themselves (the kiosk anchor
|
|
17
|
-
* through the legacy `kiosk_*` params the QR-share pattern already smuggles),
|
|
18
|
-
* leaving `from` to name a picked from-booth — the one origin that is an
|
|
19
|
-
* authored place rather than a device.
|
|
20
|
-
*/
|
|
21
|
-
export const JourneyLinkSchema = z.object({
|
|
22
|
-
/** The destination entity — a booth or exhibitor slug / external id. */
|
|
23
|
-
to: z.string().min(1),
|
|
24
|
-
/** The origin entity, when the journey started from a picked from-booth. */
|
|
25
|
-
from: z.string().min(1).optional(),
|
|
26
|
-
});
|
package/dist/lib/maps.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The external maps provider a cross-venue journey's external handoff opens.
|
|
4
|
-
*
|
|
5
|
-
* Only the two whose universal URL forms the SDK builds: any other value is a
|
|
6
|
-
* dead link, so the enum is closed rather than an open string.
|
|
7
|
-
*/
|
|
8
|
-
export declare const MapsProviderSchema: z.ZodEnum<{
|
|
9
|
-
apple: "apple";
|
|
10
|
-
google: "google";
|
|
11
|
-
}>;
|
|
12
|
-
export type MapsProvider = z.infer<typeof MapsProviderSchema>;
|
|
13
|
-
/**
|
|
14
|
-
* Whether a value is a provider the handoff can actually open.
|
|
15
|
-
*
|
|
16
|
-
* The effective config merges producer-authored layers tolerantly (a manifest
|
|
17
|
-
* or `data.js` is only parsed strictly under `?validateSchema`), so a typed
|
|
18
|
-
* `mapsProvider` can still carry an unmodeled string at runtime — consumers
|
|
19
|
-
* check before honoring the override.
|
|
20
|
-
*/
|
|
21
|
-
export declare function isMapsProvider(value: unknown): value is MapsProvider;
|
|
22
|
-
//# sourceMappingURL=maps.d.ts.map
|
package/dist/lib/maps.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The external maps provider a cross-venue journey's external handoff opens.
|
|
4
|
-
*
|
|
5
|
-
* Only the two whose universal URL forms the SDK builds: any other value is a
|
|
6
|
-
* dead link, so the enum is closed rather than an open string.
|
|
7
|
-
*/
|
|
8
|
-
export const MapsProviderSchema = z.enum(['apple', 'google']);
|
|
9
|
-
/**
|
|
10
|
-
* Whether a value is a provider the handoff can actually open.
|
|
11
|
-
*
|
|
12
|
-
* The effective config merges producer-authored layers tolerantly (a manifest
|
|
13
|
-
* or `data.js` is only parsed strictly under `?validateSchema`), so a typed
|
|
14
|
-
* `mapsProvider` can still carry an unmodeled string at runtime — consumers
|
|
15
|
-
* check before honoring the override.
|
|
16
|
-
*/
|
|
17
|
-
export function isMapsProvider(value) {
|
|
18
|
-
return MapsProviderSchema.safeParse(value).success;
|
|
19
|
-
}
|