@expofp/schema 3.14.0 → 3.16.0

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.
@@ -78,7 +78,14 @@ export declare const ConfigDefaults: {
78
78
  enableRotation: false;
79
79
  alwaysShowSidebar: false;
80
80
  customKioskQrCodeUrl: string;
81
- enableExperimentalMaplibre: false;
81
+ /**
82
+ * Deliberately undefined rather than `false`: the flag is tri-state. Unset
83
+ * lets the drawing decide (`__fpGeo.properties.config.type === 'maplibre'`),
84
+ * while an explicit `false` from any layer — debug panel, localStorage, URL,
85
+ * host options — vetoes the map. A `false` default would erase that
86
+ * distinction (see `MaplibreStore.useMaplibreMap`).
87
+ */
88
+ enableExperimentalMaplibre: undefined;
82
89
  customSetKiosk: string;
83
90
  hideBoothBadges: false;
84
91
  busRoutes: false;
@@ -85,7 +85,14 @@ export const ConfigDefaults = {
85
85
  alwaysShowSidebar: false,
86
86
  customKioskQrCodeUrl: '',
87
87
  // flags (deprecated nested `flags` flattened to root)
88
- enableExperimentalMaplibre: false,
88
+ /**
89
+ * Deliberately undefined rather than `false`: the flag is tri-state. Unset
90
+ * lets the drawing decide (`__fpGeo.properties.config.type === 'maplibre'`),
91
+ * while an explicit `false` from any layer — debug panel, localStorage, URL,
92
+ * host options — vetoes the map. A `false` default would erase that
93
+ * distinction (see `MaplibreStore.useMaplibreMap`).
94
+ */
95
+ enableExperimentalMaplibre: undefined,
89
96
  customSetKiosk: '',
90
97
  hideBoothBadges: false,
91
98
  busRoutes: false,
@@ -89,6 +89,7 @@ export declare const ConfigSchema: z.ZodObject<{
89
89
  levels: z.ZodOptional<z.ZodBoolean>;
90
90
  header: z.ZodOptional<z.ZodBoolean>;
91
91
  overlay: z.ZodOptional<z.ZodBoolean>;
92
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
92
93
  }, z.core.$strip>], null>;
93
94
  }, z.core.$strip>, z.ZodObject<{
94
95
  name: z.ZodLiteral<"selectRoute">;
@@ -342,6 +343,7 @@ export declare const ConfigSchema: z.ZodObject<{
342
343
  levels: z.ZodOptional<z.ZodBoolean>;
343
344
  header: z.ZodOptional<z.ZodBoolean>;
344
345
  overlay: z.ZodOptional<z.ZodBoolean>;
346
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
345
347
  }, z.core.$strip>;
346
348
  filters: z.ZodObject<{
347
349
  categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -441,6 +443,7 @@ export declare const DataSchema: z.ZodObject<{
441
443
  levels: z.ZodOptional<z.ZodBoolean>;
442
444
  header: z.ZodOptional<z.ZodBoolean>;
443
445
  overlay: z.ZodOptional<z.ZodBoolean>;
446
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
444
447
  }, z.core.$strip>], null>;
445
448
  }, z.core.$strip>, z.ZodObject<{
446
449
  name: z.ZodLiteral<"selectRoute">;
@@ -694,6 +697,7 @@ export declare const DataSchema: z.ZodObject<{
694
697
  levels: z.ZodOptional<z.ZodBoolean>;
695
698
  header: z.ZodOptional<z.ZodBoolean>;
696
699
  overlay: z.ZodOptional<z.ZodBoolean>;
700
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
697
701
  }, z.core.$strip>>;
698
702
  filters: z.ZodOptional<z.ZodObject<{
699
703
  categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -803,6 +807,7 @@ export declare const DataJsSchema: z.ZodObject<{
803
807
  levels: z.ZodOptional<z.ZodBoolean>;
804
808
  header: z.ZodOptional<z.ZodBoolean>;
805
809
  overlay: z.ZodOptional<z.ZodBoolean>;
810
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
806
811
  }, z.core.$strip>], null>;
807
812
  }, z.core.$strip>, z.ZodObject<{
808
813
  name: z.ZodLiteral<"selectRoute">;
@@ -1056,6 +1061,7 @@ export declare const DataJsSchema: z.ZodObject<{
1056
1061
  levels: z.ZodOptional<z.ZodBoolean>;
1057
1062
  header: z.ZodOptional<z.ZodBoolean>;
1058
1063
  overlay: z.ZodOptional<z.ZodBoolean>;
1064
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
1059
1065
  }, z.core.$strip>>;
1060
1066
  filters: z.ZodOptional<z.ZodObject<{
1061
1067
  categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1159,6 +1165,7 @@ export declare const ManifestSchema: z.ZodObject<{
1159
1165
  levels: z.ZodOptional<z.ZodBoolean>;
1160
1166
  header: z.ZodOptional<z.ZodBoolean>;
1161
1167
  overlay: z.ZodOptional<z.ZodBoolean>;
1168
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
1162
1169
  }, z.core.$strip>], null>;
1163
1170
  }, z.core.$strip>, z.ZodObject<{
1164
1171
  name: z.ZodLiteral<"selectRoute">;
@@ -1412,6 +1419,7 @@ export declare const ManifestSchema: z.ZodObject<{
1412
1419
  levels: z.ZodOptional<z.ZodBoolean>;
1413
1420
  header: z.ZodOptional<z.ZodBoolean>;
1414
1421
  overlay: z.ZodOptional<z.ZodBoolean>;
1422
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
1415
1423
  }, z.core.$strip>>;
1416
1424
  filters: z.ZodOptional<z.ZodObject<{
1417
1425
  categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1533,6 +1541,7 @@ export declare const UrlConfigSchema: z.ZodObject<{
1533
1541
  levels: z.ZodOptional<z.ZodBoolean>;
1534
1542
  header: z.ZodOptional<z.ZodBoolean>;
1535
1543
  overlay: z.ZodOptional<z.ZodBoolean>;
1544
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
1536
1545
  }, z.core.$strip>], null>;
1537
1546
  }, z.core.$strip>, z.ZodObject<{
1538
1547
  name: z.ZodLiteral<"selectRoute">;
@@ -1580,6 +1589,7 @@ export declare const UrlConfigSchema: z.ZodObject<{
1580
1589
  levels: z.ZodOptional<z.ZodBoolean>;
1581
1590
  header: z.ZodOptional<z.ZodBoolean>;
1582
1591
  overlay: z.ZodOptional<z.ZodBoolean>;
1592
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
1583
1593
  }, z.core.$strip>>;
1584
1594
  filters: z.ZodOptional<z.ZodObject<{
1585
1595
  categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -45,6 +45,7 @@ export declare const FpGeoConfigSchema: z.ZodObject<{
45
45
  dark: "dark";
46
46
  light: "light";
47
47
  }>>;
48
+ type: z.ZodOptional<z.ZodLiteral<"maplibre">>;
48
49
  }, z.core.$loose>;
49
50
  /** A georeferenced overlay image (`__fpGeo.images[]`). */
50
51
  export declare const FpGeoImageSchema: z.ZodObject<{
@@ -86,6 +87,7 @@ export declare const FpGeoSchema: z.ZodObject<{
86
87
  dark: "dark";
87
88
  light: "light";
88
89
  }>>;
90
+ type: z.ZodOptional<z.ZodLiteral<"maplibre">>;
89
91
  }, z.core.$loose>>;
90
92
  mpViewbox: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
91
93
  useMaplibre: z.ZodOptional<z.ZodBoolean>;
@@ -28,6 +28,13 @@ export const FpGeoConfigSchema = z.looseObject({
28
28
  * falls back to `__fpSettings.backgroundColor`'s lightness.
29
29
  */
30
30
  style: MapThemeSchema.optional(),
31
+ /**
32
+ * The map the drawing is authored for. `'maplibre'` — the only value the
33
+ * Designer emits — asks the SDK to render the plan on the MapLibre basemap;
34
+ * unset leaves the plan on the plain floor plan. An explicit
35
+ * `enableExperimentalMaplibre` from any config layer still overrides it.
36
+ */
37
+ type: z.literal('maplibre').optional(),
31
38
  });
32
39
  /** A georeferenced overlay image (`__fpGeo.images[]`). */
33
40
  export const FpGeoImageSchema = z.looseObject({
@@ -116,6 +116,7 @@ export declare const FpSvgLayerJsSchema: z.ZodObject<{
116
116
  dark: "dark";
117
117
  light: "light";
118
118
  }>>;
119
+ type: z.ZodOptional<z.ZodLiteral<"maplibre">>;
119
120
  }, z.core.$loose>>;
120
121
  mpViewbox: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
121
122
  useMaplibre: z.ZodOptional<z.ZodBoolean>;
@@ -192,6 +193,7 @@ export declare const FpSvgJsSchema: z.ZodObject<{
192
193
  dark: "dark";
193
194
  light: "light";
194
195
  }>>;
196
+ type: z.ZodOptional<z.ZodLiteral<"maplibre">>;
195
197
  }, z.core.$loose>>;
196
198
  mpViewbox: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
197
199
  useMaplibre: z.ZodOptional<z.ZodBoolean>;
@@ -97,6 +97,7 @@ export declare const IntentsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
97
97
  levels: z.ZodOptional<z.ZodBoolean>;
98
98
  header: z.ZodOptional<z.ZodBoolean>;
99
99
  overlay: z.ZodOptional<z.ZodBoolean>;
100
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
100
101
  }, z.core.$strip>], null>;
101
102
  }, z.core.$strip>, z.ZodObject<{
102
103
  name: z.ZodLiteral<"selectRoute">;
@@ -10,6 +10,7 @@ export declare const VisibilitySchema: z.ZodObject<{
10
10
  levels: z.ZodOptional<z.ZodBoolean>;
11
11
  header: z.ZodOptional<z.ZodBoolean>;
12
12
  overlay: z.ZodOptional<z.ZodBoolean>;
13
+ searchButtons: z.ZodOptional<z.ZodBoolean>;
13
14
  }, z.core.$strip>;
14
15
  export interface Visibility extends z.infer<typeof VisibilitySchema> {
15
16
  }
@@ -14,4 +14,10 @@ export const VisibilitySchema = z.object({
14
14
  header: z.boolean().optional(),
15
15
  /** The overlay panel — search, lists, entity details. */
16
16
  overlay: z.boolean().optional(),
17
+ /**
18
+ * The search-filter buttons row. Omitted, it follows `overlay`; an explicit
19
+ * `true` keeps the buttons while the overlay is hidden — clicking one opens
20
+ * the overlay on demand (`?visibility[overlay]=false&visibility[searchButtons]=true`).
21
+ */
22
+ searchButtons: z.boolean().optional(),
17
23
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/schema",
3
- "version": "3.14.0",
3
+ "version": "3.16.0",
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": "3.14.0"
28
+ "@expofp/utils": "3.16.0"
29
29
  },
30
30
  "files": [
31
31
  "dist",