airport-one-widgets 0.2.78 → 0.2.81

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 CHANGED
@@ -182,7 +182,7 @@ fma-airfare-content::part(airfare-content-item-disclaimer) {
182
182
 
183
183
  `fma-route-map` shows every destination reachable from an airport (nonstop and one-stop) on a map with a searchable destination list, plus filters for stops, airline, travel month, and connecting hub. Data comes from `GET /v1/widget-instances/{id}/route-map` on the widget API (`VITE_WIDGET_PUBLIC_CONFIG_API_BASE_URL`).
184
184
 
185
- The widget renders only for an instance registered in the portal: `data-widget-instance-id` is required and must resolve to an active `route-map` instance whose airport allowlists the embedding site. Without one, the element stays empty and logs the reason to the console. The origin airport always comes from the instance.
185
+ The widget renders only for an instance registered in the portal: `data-widget-instance-id` is required and must resolve to an active `route-map` instance whose airport allowlists the embedding site. Without one, the element stays empty and logs the reason to the console. The origin airport always comes from the instance. The one exception is the portal builder's live preview, which loads the airport's route data server-side (behind portal auth) and hands it to the element through its `previewPayload` property, so an unsaved instance can be previewed without the API.
186
186
 
187
187
  MapLibre is loaded from unpkg (jsDelivr fallback) on first mount rather than bundled, so pages that embed other widgets do not pay for it. Pages with a strict CSP must allow `unpkg.com` / `cdn.jsdelivr.net` (script, style) and `tiles.openfreemap.org` (connect, img).
188
188
 
@@ -197,7 +197,7 @@ Attributes (each overrides the saved instance, which overrides `window.__A1_WIDG
197
197
  | `primary-color` | `#0b3d91` | One-stop routes, tabs, controls |
198
198
  | `secondary-color` | `#f26430` | Nonstop routes, badges, origin |
199
199
  | `heading` / `kicker` / `description` | `Where We Fly` / `Interactive route map` / generated | Header copy (`kicker=""` hides the kicker) |
200
- | `hide-header` | off | Omit the header block |
200
+ | `hide-header` | off | Omit the title block (kicker / heading / description) and the padded bluish container around the widget |
201
201
  | `map-only` | off | Hide the destination list; tapping a pin opens the FlyMyAirport destination page |
202
202
  | `hide-filters` | off | Hide the filter bar (stops, airline, months, hub, full screen), so the `default-*` starting view is fixed |
203
203
  | `default-region` | `north-america` | `north-america` or `world` |