airport-one-widgets 0.4.23 → 0.4.24
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 +14 -13
- package/dist/airport-one-widgets.iife.js +24 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ the subscribing airport.
|
|
|
88
88
|
|
|
89
89
|
| Attribute | Default | Description |
|
|
90
90
|
| -------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
91
|
-
| `skin` | `site` when `theme="dark"`, otherwise `light` | `site` (flymyairport.com dark glass), `light` (white card), `dark`, `brand` (tinted by `primary-color`), `none` (no card; the host supplies contrast)
|
|
91
|
+
| `skin` | `site` when `theme="dark"`, otherwise `light` | `site` (flymyairport.com dark glass), `light` (white card), `dark`, `brand` (tinted by `primary-color`), `none` (no card, white text; the host supplies contrast), `none-dark-text` (no card, dark text, for a light background) |
|
|
92
92
|
| `labels` | `inside` | `outside` renders a visible label above each field for airports that need them |
|
|
93
93
|
| `market-name` | `{City} ({IATA})` | The airport's display name in the header (AIR-1585) |
|
|
94
94
|
| `primary-color` | `#0745A2` | Calendar route bar, destination tiles |
|
|
@@ -321,18 +321,19 @@ It lays out by the width of its container, not the viewport (container queries,
|
|
|
321
321
|
|
|
322
322
|
Attributes (each overrides the saved instance):
|
|
323
323
|
|
|
324
|
-
| Attribute | Default | Purpose
|
|
325
|
-
| ----------------------------------------------------------------------------------- | ---------------------- |
|
|
326
|
-
| `view` | `cards` | `cards`, `list`, `tiles`, or `carousel`. Travelers never change it
|
|
327
|
-
| `shows` | `featured` | `featured`, `nonstop`, `one-stop`, or `all` (Featured / Nonstop / 1-stop chips for the traveler)
|
|
328
|
-
| `
|
|
329
|
-
| `
|
|
330
|
-
| `
|
|
331
|
-
| `eyebrow` / `
|
|
332
|
-
| `
|
|
333
|
-
| `
|
|
334
|
-
| `
|
|
335
|
-
| `
|
|
324
|
+
| Attribute | Default | Purpose |
|
|
325
|
+
| ----------------------------------------------------------------------------------- | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
326
|
+
| `view` | `cards` | `cards`, `list`, `tiles`, or `carousel`. Travelers never change it |
|
|
327
|
+
| `shows` | `featured` | `featured`, `nonstop`, `one-stop`, or `all` (Featured / Nonstop / 1-stop chips for the traveler) |
|
|
328
|
+
| `show-order` | Featured first | `shows="all"` only: the lists its Show chip offers, comma-separated, in order (`featured`, `deals`, `nonstop`, `one-stop`). The first is the one it opens on; a list left out is not offered |
|
|
329
|
+
| `featured-destinations` | promoted IATAs | Comma-separated IATAs in display order. Unserved codes are dropped; none served falls back to the airport's promoted IATAs (Settings > Promoted IATAs), then to its nonstops |
|
|
330
|
+
| `rows` | `2` | `1` to `6` rows before "Show more", at whatever column count the width gives (so a page is whole rows). The carousel shows everything |
|
|
331
|
+
| `show-eyebrow` / `show-title` / `show-subheading` / `show-see-all` / `show-filters` | on | `false` hides that part. All of the first four off leaves a bare content block |
|
|
332
|
+
| `eyebrow` / `heading` / `subheading` | per filter | Replace the eyebrow, title, and subheading for every filter |
|
|
333
|
+
| `see-all-label` | `See all destinations` | Replaces the See all link text |
|
|
334
|
+
| `primary-color` / `cta-color` / `cta-hover-color` | airport brand | Links, day pills and the tile price badge / the "See current price" button and eyebrow / button hover (a darker CTA if unset) |
|
|
335
|
+
| `border-radius` | 16 | Card corner radius in px (0–32). Text uses the host page's font |
|
|
336
|
+
| `hover-effect` | on | `false` keeps cards, tiles and rows still under the pointer: no lift, no larger shadow, no photo zoom. Buttons keep their hover |
|
|
336
337
|
|
|
337
338
|
The card, tile, or row body opens the FlyMyAirport destination page; the button opens KAYAK through the redirect worker (`a1_wid` / `a1_wtype`) on the fare's dates, or, with no fare, the first day at least 14 days out that the route flies, for four nights. The footnote is the AIR-1034 KAYAK wording with pricing on and "Powered by FlyMyAirport™" without, since nothing then comes from KAYAK. With pricing off, cards also show no trip dates. Segment events (under `consent-analytics`): `destination_catalog_click`, `destination_catalog_filter`, `destination_catalog_sort`, `destination_catalog_more`, plus the shared `Widget V2 Mount` / `Widget V2 Public Config`.
|
|
338
339
|
|