@tfehotels/tfe-gatsby-library 1.0.39 → 1.0.41

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.
@@ -84,6 +84,11 @@ interface FileMediaType extends MediaType {
84
84
  interface VideoMediaType extends MediaType {
85
85
  type: "video";
86
86
  }
87
+ interface MediaListType {
88
+ pk: number;
89
+ type: "medialist";
90
+ files: MediaType[];
91
+ }
87
92
  interface TextType extends ElementType {
88
93
  type: "text";
89
94
  text: string;
@@ -182,6 +187,39 @@ interface PropertyTagType {
182
187
  title: string;
183
188
  colour: string;
184
189
  }
190
+ interface ArticleSectionType {
191
+ image: ImageType | null;
192
+ mobile_image: ImageType | null;
193
+ subtitle: string;
194
+ text: string | null;
195
+ link_text: string | null;
196
+ link_url: string | null;
197
+ }
198
+ interface ArticleType {
199
+ id: number;
200
+ title: string;
201
+ description: string | null;
202
+ short_description: string | null;
203
+ image_alt_text: string | null;
204
+ meta_title: string | null;
205
+ meta_description: string | null;
206
+ is_active: boolean;
207
+ created_at: string;
208
+ updated_at: string;
209
+ project: string;
210
+ label: string;
211
+ slug: string;
212
+ image: ImageType | null;
213
+ mobile_image: ImageType | null;
214
+ country: string | null;
215
+ city: string | null;
216
+ display_on: string[] | null;
217
+ sort: number;
218
+ tags: {
219
+ [t: string]: string;
220
+ };
221
+ sections: ArticleSectionType[];
222
+ }
185
223
 
186
224
  interface SearchParamsType {
187
225
  check_in: Date;
@@ -655,4 +693,4 @@ interface FormPropsType {
655
693
 
656
694
  declare function Form({ className, form, setForm, errors, setErrors, beforeSubmit, formatParams, validate, validateResponse, onSuccess, onFocus, onBlur, onClick, onChange, onError, afterSubmit, loading, }: FormPropsType): React$1.JSX.Element;
657
695
 
658
- export { type AnyElementType, type BookingURLType, BookingUrl, Button, type ButtonType, type CachedSearchParamsType, Carousel, Checkbox, CountryPrefix, type DefaultPropsType, type ElementDataType, type ErrorsType, type FileMediaType, type FileType, Form, type FormFieldsType, type FormType, GooglePlaces, type HotelOptionsByCityType, Icon, type IconType$1 as IconType, Image, type ImageMediaType, type ImageType, Input, type InputType, Link, LinkList, type LinkListType, type LinkType, type LocationType, Markdown, type MediaType, Modal, type PageParamsType, type PropertyTagType, SVG, SearchAvailability, type SectionType, Select, type SelectType, Spinner, Text, type TextType, Textarea, Title, type TitleType, Toast, type UserType, type VideoMediaType, animateJSX, apiLink, cacheSearchParams, cachedSearchParams, classNames, countryPrefixes, dealLink, decodeQuotePlus, deleteUserSession, deviceId, getInputEventValue, getInputHumanValue, getThumb, getViewPort, hotelOptionsByCity, human_number, isDesktop, isIOS, isMobile, isTablet, joinAddress, joinPaths, json_request, loadUserSession, minimumSlides, optimizedThumb, parseQueryParams, preloadImages, pricePerNight, roomFeatures, saveUserSession, scrollToChild, scrollToElement, siteUrl, sp_to_qs, ssoURL, tagExists, toImageElement, toPhrase, toastMsg, UseViewport as useViewport };
696
+ export { type AnyElementType, type ArticleSectionType, type ArticleType, type BookingURLType, BookingUrl, Button, type ButtonType, type CachedSearchParamsType, Carousel, Checkbox, CountryPrefix, type DefaultPropsType, type ElementDataType, type ErrorsType, type FileMediaType, type FileType, Form, type FormFieldsType, type FormType, GooglePlaces, type HotelOptionsByCityType, Icon, type IconType$1 as IconType, Image, type ImageMediaType, type ImageType, Input, type InputType, Link, LinkList, type LinkListType, type LinkType, type LocationType, Markdown, type MediaListType, type MediaType, Modal, type PageParamsType, type PropertyTagType, SVG, SearchAvailability, type SectionType, Select, type SelectType, Spinner, Text, type TextType, Textarea, Title, type TitleType, Toast, type UserType, type VideoMediaType, animateJSX, apiLink, cacheSearchParams, cachedSearchParams, classNames, countryPrefixes, dealLink, decodeQuotePlus, deleteUserSession, deviceId, getInputEventValue, getInputHumanValue, getThumb, getViewPort, hotelOptionsByCity, human_number, isDesktop, isIOS, isMobile, isTablet, joinAddress, joinPaths, json_request, loadUserSession, minimumSlides, optimizedThumb, parseQueryParams, preloadImages, pricePerNight, roomFeatures, saveUserSession, scrollToChild, scrollToElement, siteUrl, sp_to_qs, ssoURL, tagExists, toImageElement, toPhrase, toastMsg, UseViewport as useViewport };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tfehotels/tfe-gatsby-library",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "Shared functions and utilities for TFE's Gatsby websites.",
5
5
  "main": "./lib/index.node.cjs",
6
6
  "module": "./lib/index.node.esm.js",