airport-one-widgets 0.4.41 → 0.4.43

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
@@ -343,19 +343,19 @@ Demo: `/demo/destination-catalog.html` (`npm run dev`) renders sample ATW data t
343
343
 
344
344
  ## Branded Route Map
345
345
 
346
- `fma-route-map-marketing` (AIR-1929) is the branded route map for an airport's own website: a static, branded map of where you can fly nonstop, with no basemap and no runtime map library. Data comes from `GET /v1/widget-instances/{id}/route-map-marketing`: filed nonstops (year-round, seasonal, new) plus the airport's coming soon list and charter categories from the portal's Managed routes settings. Like the route map it renders only for an active instance allowlisted for the embedding site, or from `previewPayload` in the portal builder.
346
+ `fma-branded-route-map` (AIR-1929) is the branded route map for an airport's own website: a static, branded map of where you can fly nonstop, with no basemap and no runtime map library. Data comes from `GET /v1/widget-instances/{id}/branded-route-map`: filed nonstops (year-round, seasonal, new) plus the airport's coming soon list and charter categories from the portal's Managed routes settings. Like the route map it renders only for an active instance allowlisted for the embedding site, or from `previewPayload` in the portal builder.
347
347
 
348
348
  ```html
349
- <fma-route-map-marketing
349
+ <fma-branded-route-map
350
350
  data-widget-instance-id="YOUR-INSTANCE-ID"
351
- ></fma-route-map-marketing>
351
+ ></fma-branded-route-map>
352
352
  ```
353
353
 
354
- The US states are inline SVG paths pre-projected to an Albers conic at build time (`scripts/build-branded-route-map-geo.mjs`), so the map costs no network request. Only when a destination needs them does the widget fetch, once per page, `GET /v1/geo/route-map-marketing/{neighbours|alaska|hawaii|world}`: Canada, Mexico and the Caribbean drawn a step quieter than the US, and Alaska and Hawaii as inset boxes in the bottom-left corner.
354
+ The US states are inline SVG paths pre-projected to an Albers conic at build time (`scripts/build-branded-route-map-geo.mjs`), so the map costs no network request. Only when a destination needs them does the widget fetch, once per page, `GET /v1/geo/branded-route-map/{neighbours|alaska|hawaii|world}`: Canada, Mexico and the Caribbean drawn a step quieter than the US, and Alaska and Hawaii as inset boxes in the bottom-left corner.
355
355
 
356
356
  On the North America view, destinations beyond the neighbouring countries (Europe, Asia) are edge markers pointing the way the route leaves the map. Those routes, or `initial-view="world"`, also load the `world` layer (about 105 KB gzipped): every country and the US states on an Equal Earth projection centred on the Americas. Once it loads, a North America / World switch beside the filters lets visitors move between the two views, and tapping an edge marker opens that city on the world view. The world view fits every nonstop and never zooms in past about 240° of longitude, so Europe or Asia shows beside North America even for a domestic-only airport. If a layer fails to load, its destinations fall back to edge markers and the switch stays hidden.
357
357
 
358
- When two or more airlines fly the routes, an Airline button in the filter row opens a panel of them, A–Z with logos. Picking one narrows the map, the legend, the phone list and the group chips to that airline's routes; charters carry no airline, so they show only under All airlines. `map_filter` sends `airline:{code}` or `airline:all`.
358
+ A Search flights button ends the filter row and opens the airport's FlyMyAirport page (`/from/{IATA}`) in a new tab, with the same attribution as the city cards; below 560 px it becomes a full-width button under the map. When two or more airlines fly the routes, an Airline button in the filter row opens a panel of them, A–Z with logos. Picking one narrows the map, the legend, the phone list and the group chips to that airline's routes; charters carry no airline, so they show only under All airlines. `map_filter` sends `airline:{code}` or `airline:all`.
359
359
 
360
360
  Attributes (each overrides the saved instance):
361
361
 
@@ -370,11 +370,11 @@ Attributes (each overrides the saved instance):
370
370
  | `primary-color` / `secondary-color` | airport brand | Land and served tint / routes, dots and the card button |
371
371
  | `geo-base-url` | widget API | Where the geometry layers load from |
372
372
 
373
- Below 560 px of container width the city card becomes a bottom sheet, labels hide until zoomed in, and an A–Z list of cities appears under the map. Segment events (under `consent-analytics`): `map_view`, `map_route_click`, `map_filter`, `map_zoom`, `map_view_switch`, plus the shared `Widget V2 Mount` / `Widget V2 Public Config`.
373
+ Below 560 px of container width the city card becomes a bottom sheet, labels hide until zoomed in, and an A–Z list of cities appears under the map. Segment events (under `consent-analytics`): `map_view`, `map_route_click`, `map_filter`, `map_zoom`, `map_view_switch`, `map_search_click`, plus the shared `Widget V2 Mount` / `Widget V2 Public Config`.
374
374
 
375
- CSS parts: `route-map-marketing-container`, `route-map-marketing-header`, `route-map-marketing-filters`, `route-map-marketing-map`, `route-map-marketing-legend`, `route-map-marketing-city-card`, `route-map-marketing-destination-list` and `route-map-marketing-footer`.
375
+ CSS parts: `branded-route-map-container`, `branded-route-map-header`, `branded-route-map-filters`, `branded-route-map-search`, `branded-route-map-map`, `branded-route-map-legend`, `branded-route-map-city-card`, `branded-route-map-destination-list` and `branded-route-map-footer`.
376
376
 
377
- Demo: `/demo/route-map-marketing.html` (`npm run dev`) renders sample ATW, CID, SDF and SFB data from the mockup, plus SMF (insets) and CVG and SJC (edge markers on North America, routes to Europe and Asia on the world view), with controls for every setting, placement width and page background. The dev server serves the geometry layers itself under `/demo-geo`.
377
+ Demo: `/demo/branded-route-map.html` (`npm run dev`) renders sample ATW, CID, SDF and SFB data from the mockup, plus SMF (insets) and CVG and SJC (edge markers on North America, routes to Europe and Asia on the world view), with controls for every setting, placement width and page background. The dev server serves the geometry layers itself under `/demo-geo`.
378
378
 
379
379
  ## Carfare Search
380
380