@yext/pages-components 1.1.11 → 1.1.13

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/dist/index.d.cts CHANGED
@@ -453,6 +453,8 @@ interface BaseImageProps {
453
453
  style?: React$1.CSSProperties;
454
454
  /** Set the loading state of the image. */
455
455
  loading?: "eager" | "lazy";
456
+ /** Cloudflare Image transformations */
457
+ imageTransformations?: ImageTransformations;
456
458
  }
457
459
  /**
458
460
  * The shape of the data passed to {@link Image} when layout is {@link ImageLayoutOption.INTRINSIC},
@@ -485,6 +487,20 @@ interface AspectImageProps extends BaseImageProps {
485
487
  /** The aspect ratio of the image. Only impacts if layout is set to "aspect". */
486
488
  aspectRatio: number;
487
489
  }
490
+ /**
491
+ * Cloudflare Image transformations
492
+ * See: https://developers.cloudflare.com/images/transform-images/transform-via-url
493
+ */
494
+ type ImageTransformations = {
495
+ /** Affects interpretation of width and height */
496
+ fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
497
+ /** Image file format. Defaults to undefined, which uses webp if supported, original extension otherwise. */
498
+ format?: "avif" | "webp" | "jpeg";
499
+ /** Specifies how an image should be cropped with fit=cover or fit=crop. */
500
+ gravity?: "auto" | "left" | "right" | "top" | "bottom";
501
+ /** Quality of the image. Between 1 and 100. Defaults to 85. */
502
+ quality?: number;
503
+ };
488
504
  /**
489
505
  * The shape of the data passed to {@link Image}.
490
506
  *
@@ -504,7 +520,13 @@ type ImageProps = OtherImageProps | FixedImageProps | AspectImageProps;
504
520
  *
505
521
  * @public
506
522
  */
507
- declare const Image: ({ image, className, width, height, aspectRatio, layout, placeholder, imgOverrides, style, loading, }: ImageProps) => react_jsx_runtime.JSX.Element;
523
+ declare const Image: ({ image, className, width, height, aspectRatio, layout, placeholder, imgOverrides, style, imageTransformations, loading, }: ImageProps) => react_jsx_runtime.JSX.Element;
524
+
525
+ /**
526
+ * Parses a raw a.mktgcdn.com type url and returns its corresponding dyn.mktgcdn.com version.
527
+ * If the raw url cannot be parsed, it's simply returned as-is and used as a passthrough.
528
+ */
529
+ declare const getImageUrl: (rawUrl: string, width: number, height: number, imageTransformations?: ImageTransformations) => string | undefined;
508
530
 
509
531
  /**
510
532
  * Type of link types that might be received from the platform.
@@ -746,6 +768,8 @@ declare class ProviderMapOptions {
746
768
  providerOptions: {
747
769
  [key: string]: any;
748
770
  };
771
+ iframeWindow: Window | undefined;
772
+ apiKey: string | undefined;
749
773
  constructor(provider: MapProvider, wrapper: HTMLElement | null);
750
774
  /**
751
775
  * @param controlEnabled - Whether the user can interact with the map
@@ -764,6 +788,15 @@ declare class ProviderMapOptions {
764
788
  * options, usually by passing the object to the map's constructor
765
789
  */
766
790
  withProviderOptions(providerOptions: object): ProviderMapOptions;
791
+ /**
792
+ * @param iframeWindow - The window of the iframe that the map will be rendered in.
793
+ * This is only necessary if the map is being rendered in an iframe.
794
+ */
795
+ withIframeWindow(iframeWindow: Window | undefined): ProviderMapOptions;
796
+ /**
797
+ * @param apiKey - The API key to use for the map provider, if required.
798
+ */
799
+ withApiKey(apiKey: string | undefined): ProviderMapOptions;
767
800
  /**
768
801
  * @returns An instance of a subclass of {@link ProviderMap}
769
802
  * for the given {@link MapProvider}
@@ -1236,6 +1269,8 @@ declare class MapOptions {
1236
1269
  providerOptions: ProviderMapOptions | object;
1237
1270
  singlePinZoom: number;
1238
1271
  wrapper: HTMLElement | null;
1272
+ iframeWindow: Window | undefined;
1273
+ apiKey: string | undefined;
1239
1274
  /**
1240
1275
  * Initialize with default options
1241
1276
  */
@@ -1293,6 +1328,15 @@ declare class MapOptions {
1293
1328
  * existing contents of the element will be removed.
1294
1329
  */
1295
1330
  withWrapper(wrapper: HTMLElement | null): MapOptions;
1331
+ /**
1332
+ * @param iframeWindow - The window of the iframe that the map will be rendered in.
1333
+ * This is only necessary if the map is being rendered in an iframe.
1334
+ */
1335
+ withIframeWindow(iframeWindow: Window | undefined): MapOptions;
1336
+ /**
1337
+ * @param apiKey - The API key to use for the map provider, if required.
1338
+ */
1339
+ withApiKey(apiKey: string | undefined): MapOptions;
1296
1340
  build(): Map$1;
1297
1341
  }
1298
1342
  /**
@@ -1478,6 +1522,7 @@ interface MapProps {
1478
1522
  [key: string]: any;
1479
1523
  };
1480
1524
  singleZoom?: number;
1525
+ iframeId?: string;
1481
1526
  }
1482
1527
  interface MarkerProps {
1483
1528
  children?: React__default.ReactChild;
@@ -1513,7 +1558,7 @@ interface ClustererContextType {
1513
1558
  }
1514
1559
 
1515
1560
  declare function useMapContext(): Map$1;
1516
- declare const Map: ({ apiKey, bounds, children, className, clientKey, controls, defaultCenter, defaultZoom, mapRef, padding, panHandler, panStartHandler, provider, providerOptions, singleZoom, }: MapProps) => react_jsx_runtime.JSX.Element;
1561
+ declare const Map: ({ apiKey, bounds, children, className, clientKey, controls, defaultCenter, defaultZoom, mapRef, padding, panHandler, panStartHandler, provider, providerOptions, singleZoom, iframeId, }: MapProps) => react_jsx_runtime.JSX.Element;
1517
1562
 
1518
1563
  declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, hasPinUrl, }: MarkerProps) => JSX.Element | null;
1519
1564
 
@@ -1942,4 +1987,4 @@ declare const LeafletMaps: MapProvider;
1942
1987
 
1943
1988
  declare const MapQuestMaps: MapProvider;
1944
1989
 
1945
- export { Address, type AddressLine, type AddressLineProps, type AddressProps, AddressSchema, type AddressType, type AggregateRating, AggregateRatingSchema, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, BaseSchema, BingMaps, type CTA, type CTAWithChildrenLinkProps, type CTAWithoutChildrenLinkProps, type ClusterTemplateProps, Clusterer, type ClustererContextType, type ClustererProps, type ComplexImageType, type Coordinate, Coordinate$1 as CoordinateClass, Day, type DayOfWeekNames, type DayType, type DirectionCoordinate, Event, FAQPage, type GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableDayData, type HoursTableIntervalTranslations, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, type ListingPublisher, ListingPublisherOption, type ListingType, LocalBusiness, type Location, LocationMap, type LocationMapProps, LocationSchema, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type Offer, OfferSchema, OpeningHoursSchema, type Organization, OrganizationSchema, PerformerSchema, type PhotoGallery, PhotoGallerySchema, PhotoSchema, type PinStoreType, Product, type Review, ReviewSchema, SchemaWrapper, type StatusParams, type StatusTemplateParams, type TemplateParams, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, getRichTextContent, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
1990
+ export { Address, type AddressLine, type AddressLineProps, type AddressProps, AddressSchema, type AddressType, type AggregateRating, AggregateRatingSchema, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, BaseSchema, BingMaps, type CTA, type CTAWithChildrenLinkProps, type CTAWithoutChildrenLinkProps, type ClusterTemplateProps, Clusterer, type ClustererContextType, type ClustererProps, type ComplexImageType, type Coordinate, Coordinate$1 as CoordinateClass, Day, type DayOfWeekNames, type DayType, type DirectionCoordinate, Event, FAQPage, type GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableDayData, type HoursTableIntervalTranslations, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageTransformations, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, type ListingPublisher, ListingPublisherOption, type ListingType, LocalBusiness, type Location, LocationMap, type LocationMapProps, LocationSchema, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type Offer, OfferSchema, OpeningHoursSchema, type Organization, OrganizationSchema, PerformerSchema, type PhotoGallery, PhotoGallerySchema, PhotoSchema, type PinStoreType, Product, type Review, ReviewSchema, SchemaWrapper, type StatusParams, type StatusTemplateParams, type TemplateParams, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, getImageUrl, getRichTextContent, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
package/dist/index.d.ts CHANGED
@@ -453,6 +453,8 @@ interface BaseImageProps {
453
453
  style?: React$1.CSSProperties;
454
454
  /** Set the loading state of the image. */
455
455
  loading?: "eager" | "lazy";
456
+ /** Cloudflare Image transformations */
457
+ imageTransformations?: ImageTransformations;
456
458
  }
457
459
  /**
458
460
  * The shape of the data passed to {@link Image} when layout is {@link ImageLayoutOption.INTRINSIC},
@@ -485,6 +487,20 @@ interface AspectImageProps extends BaseImageProps {
485
487
  /** The aspect ratio of the image. Only impacts if layout is set to "aspect". */
486
488
  aspectRatio: number;
487
489
  }
490
+ /**
491
+ * Cloudflare Image transformations
492
+ * See: https://developers.cloudflare.com/images/transform-images/transform-via-url
493
+ */
494
+ type ImageTransformations = {
495
+ /** Affects interpretation of width and height */
496
+ fit?: "scale-down" | "contain" | "cover" | "crop" | "pad" | "squeeze";
497
+ /** Image file format. Defaults to undefined, which uses webp if supported, original extension otherwise. */
498
+ format?: "avif" | "webp" | "jpeg";
499
+ /** Specifies how an image should be cropped with fit=cover or fit=crop. */
500
+ gravity?: "auto" | "left" | "right" | "top" | "bottom";
501
+ /** Quality of the image. Between 1 and 100. Defaults to 85. */
502
+ quality?: number;
503
+ };
488
504
  /**
489
505
  * The shape of the data passed to {@link Image}.
490
506
  *
@@ -504,7 +520,13 @@ type ImageProps = OtherImageProps | FixedImageProps | AspectImageProps;
504
520
  *
505
521
  * @public
506
522
  */
507
- declare const Image: ({ image, className, width, height, aspectRatio, layout, placeholder, imgOverrides, style, loading, }: ImageProps) => react_jsx_runtime.JSX.Element;
523
+ declare const Image: ({ image, className, width, height, aspectRatio, layout, placeholder, imgOverrides, style, imageTransformations, loading, }: ImageProps) => react_jsx_runtime.JSX.Element;
524
+
525
+ /**
526
+ * Parses a raw a.mktgcdn.com type url and returns its corresponding dyn.mktgcdn.com version.
527
+ * If the raw url cannot be parsed, it's simply returned as-is and used as a passthrough.
528
+ */
529
+ declare const getImageUrl: (rawUrl: string, width: number, height: number, imageTransformations?: ImageTransformations) => string | undefined;
508
530
 
509
531
  /**
510
532
  * Type of link types that might be received from the platform.
@@ -746,6 +768,8 @@ declare class ProviderMapOptions {
746
768
  providerOptions: {
747
769
  [key: string]: any;
748
770
  };
771
+ iframeWindow: Window | undefined;
772
+ apiKey: string | undefined;
749
773
  constructor(provider: MapProvider, wrapper: HTMLElement | null);
750
774
  /**
751
775
  * @param controlEnabled - Whether the user can interact with the map
@@ -764,6 +788,15 @@ declare class ProviderMapOptions {
764
788
  * options, usually by passing the object to the map's constructor
765
789
  */
766
790
  withProviderOptions(providerOptions: object): ProviderMapOptions;
791
+ /**
792
+ * @param iframeWindow - The window of the iframe that the map will be rendered in.
793
+ * This is only necessary if the map is being rendered in an iframe.
794
+ */
795
+ withIframeWindow(iframeWindow: Window | undefined): ProviderMapOptions;
796
+ /**
797
+ * @param apiKey - The API key to use for the map provider, if required.
798
+ */
799
+ withApiKey(apiKey: string | undefined): ProviderMapOptions;
767
800
  /**
768
801
  * @returns An instance of a subclass of {@link ProviderMap}
769
802
  * for the given {@link MapProvider}
@@ -1236,6 +1269,8 @@ declare class MapOptions {
1236
1269
  providerOptions: ProviderMapOptions | object;
1237
1270
  singlePinZoom: number;
1238
1271
  wrapper: HTMLElement | null;
1272
+ iframeWindow: Window | undefined;
1273
+ apiKey: string | undefined;
1239
1274
  /**
1240
1275
  * Initialize with default options
1241
1276
  */
@@ -1293,6 +1328,15 @@ declare class MapOptions {
1293
1328
  * existing contents of the element will be removed.
1294
1329
  */
1295
1330
  withWrapper(wrapper: HTMLElement | null): MapOptions;
1331
+ /**
1332
+ * @param iframeWindow - The window of the iframe that the map will be rendered in.
1333
+ * This is only necessary if the map is being rendered in an iframe.
1334
+ */
1335
+ withIframeWindow(iframeWindow: Window | undefined): MapOptions;
1336
+ /**
1337
+ * @param apiKey - The API key to use for the map provider, if required.
1338
+ */
1339
+ withApiKey(apiKey: string | undefined): MapOptions;
1296
1340
  build(): Map$1;
1297
1341
  }
1298
1342
  /**
@@ -1478,6 +1522,7 @@ interface MapProps {
1478
1522
  [key: string]: any;
1479
1523
  };
1480
1524
  singleZoom?: number;
1525
+ iframeId?: string;
1481
1526
  }
1482
1527
  interface MarkerProps {
1483
1528
  children?: React__default.ReactChild;
@@ -1513,7 +1558,7 @@ interface ClustererContextType {
1513
1558
  }
1514
1559
 
1515
1560
  declare function useMapContext(): Map$1;
1516
- declare const Map: ({ apiKey, bounds, children, className, clientKey, controls, defaultCenter, defaultZoom, mapRef, padding, panHandler, panStartHandler, provider, providerOptions, singleZoom, }: MapProps) => react_jsx_runtime.JSX.Element;
1561
+ declare const Map: ({ apiKey, bounds, children, className, clientKey, controls, defaultCenter, defaultZoom, mapRef, padding, panHandler, panStartHandler, provider, providerOptions, singleZoom, iframeId, }: MapProps) => react_jsx_runtime.JSX.Element;
1517
1562
 
1518
1563
  declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, hasPinUrl, }: MarkerProps) => JSX.Element | null;
1519
1564
 
@@ -1942,4 +1987,4 @@ declare const LeafletMaps: MapProvider;
1942
1987
 
1943
1988
  declare const MapQuestMaps: MapProvider;
1944
1989
 
1945
- export { Address, type AddressLine, type AddressLineProps, type AddressProps, AddressSchema, type AddressType, type AggregateRating, AggregateRatingSchema, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, BaseSchema, BingMaps, type CTA, type CTAWithChildrenLinkProps, type CTAWithoutChildrenLinkProps, type ClusterTemplateProps, Clusterer, type ClustererContextType, type ClustererProps, type ComplexImageType, type Coordinate, Coordinate$1 as CoordinateClass, Day, type DayOfWeekNames, type DayType, type DirectionCoordinate, Event, FAQPage, type GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableDayData, type HoursTableIntervalTranslations, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, type ListingPublisher, ListingPublisherOption, type ListingType, LocalBusiness, type Location, LocationMap, type LocationMapProps, LocationSchema, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type Offer, OfferSchema, OpeningHoursSchema, type Organization, OrganizationSchema, PerformerSchema, type PhotoGallery, PhotoGallerySchema, PhotoSchema, type PinStoreType, Product, type Review, ReviewSchema, SchemaWrapper, type StatusParams, type StatusTemplateParams, type TemplateParams, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, getRichTextContent, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
1990
+ export { Address, type AddressLine, type AddressLineProps, type AddressProps, AddressSchema, type AddressType, type AggregateRating, AggregateRatingSchema, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, BaseSchema, BingMaps, type CTA, type CTAWithChildrenLinkProps, type CTAWithoutChildrenLinkProps, type ClusterTemplateProps, Clusterer, type ClustererContextType, type ClustererProps, type ComplexImageType, type Coordinate, Coordinate$1 as CoordinateClass, Day, type DayOfWeekNames, type DayType, type DirectionCoordinate, Event, FAQPage, type GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, type HoursStatusProps, HoursTable, type HoursTableDayData, type HoursTableIntervalTranslations, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageTransformations, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, type ListingPublisher, ListingPublisherOption, type ListingType, LocalBusiness, type Location, LocationMap, type LocationMapProps, LocationSchema, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type Offer, OfferSchema, OpeningHoursSchema, type Organization, OrganizationSchema, PerformerSchema, type PhotoGallery, PhotoGallerySchema, PhotoSchema, type PinStoreType, Product, type Review, ReviewSchema, SchemaWrapper, type StatusParams, type StatusTemplateParams, type TemplateParams, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, getImageUrl, getRichTextContent, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BUNvw5E2.cjs");exports.Address=e.Address;exports.AddressSchema=e.AddressSchema;exports.AggregateRatingSchema=e.AggregateRatingSchema;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BaseSchema=e.BaseSchema;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.CoordinateClass=e.Coordinate;exports.Day=e.Day;exports.Event=e.Event;exports.FAQPage=e.FAQPage;exports.GoogleMaps=e.GoogleMaps;exports.HoursStatus=e.HoursStatus;exports.HoursTable=e.HoursTable;exports.Image=e.Image;exports.ImageLayoutOption=e.ImageLayoutOption;exports.LeafletMaps=e.LeafletMaps;exports.LegacyRichText=e.LegacyRichText;exports.LexicalRichText=e.LexicalRichText;exports.Link=e.Link;exports.ListingPublisherOption=e.ListingPublisherOption;exports.LocalBusiness=e.LocalBusiness;exports.LocationMap=e.LocationMap;exports.LocationSchema=e.LocationSchema;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;exports.OfferSchema=e.OfferSchema;exports.OpeningHoursSchema=e.OpeningHoursSchema;exports.OrganizationSchema=e.OrganizationSchema;exports.PerformerSchema=e.PerformerSchema;exports.PhotoGallerySchema=e.PhotoGallerySchema;exports.PhotoSchema=e.PhotoSchema;exports.Product=e.Product;exports.ReviewSchema=e.ReviewSchema;exports.SchemaWrapper=e.SchemaWrapper;exports.debuggingParamDetected=e.debuggingParamDetected;exports.getDirections=e.getDirections;exports.getRichTextContent=e.getRichTextContent;exports.useAnalytics=e.useAnalytics;exports.useClusterContext=e.useClusterContext;exports.useIdentify=e.useIdentify;exports.useMapContext=e.useMapContext;exports.usePageView=e.usePageView;exports.useScope=e.useScope;exports.useTrack=e.useTrack;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dx5KqQIE.cjs");exports.Address=e.Address;exports.AddressSchema=e.AddressSchema;exports.AggregateRatingSchema=e.AggregateRatingSchema;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BaseSchema=e.BaseSchema;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.CoordinateClass=e.Coordinate;exports.Day=e.Day;exports.Event=e.Event;exports.FAQPage=e.FAQPage;exports.GoogleMaps=e.GoogleMaps;exports.HoursStatus=e.HoursStatus;exports.HoursTable=e.HoursTable;exports.Image=e.Image;exports.ImageLayoutOption=e.ImageLayoutOption;exports.LeafletMaps=e.LeafletMaps;exports.LegacyRichText=e.LegacyRichText;exports.LexicalRichText=e.LexicalRichText;exports.Link=e.Link;exports.ListingPublisherOption=e.ListingPublisherOption;exports.LocalBusiness=e.LocalBusiness;exports.LocationMap=e.LocationMap;exports.LocationSchema=e.LocationSchema;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;exports.OfferSchema=e.OfferSchema;exports.OpeningHoursSchema=e.OpeningHoursSchema;exports.OrganizationSchema=e.OrganizationSchema;exports.PerformerSchema=e.PerformerSchema;exports.PhotoGallerySchema=e.PhotoGallerySchema;exports.PhotoSchema=e.PhotoSchema;exports.Product=e.Product;exports.ReviewSchema=e.ReviewSchema;exports.SchemaWrapper=e.SchemaWrapper;exports.debuggingParamDetected=e.debuggingParamDetected;exports.getDirections=e.getDirections;exports.getImageUrl=e.getImageUrl;exports.getRichTextContent=e.getRichTextContent;exports.useAnalytics=e.useAnalytics;exports.useClusterContext=e.useClusterContext;exports.useIdentify=e.useIdentify;exports.useMapContext=e.useMapContext;exports.usePageView=e.usePageView;exports.useScope=e.useScope;exports.useTrack=e.useTrack;
@@ -1,4 +1,4 @@
1
- import { A as e, a3 as t, ab as i, x as o, y as r, E as c, H as n, ad as p, Z as g, ae as u, Q as h, aj as m, X as l, _ as S, a1 as d, af as M, V as P, W as y, I as x, J as A, ah as L, U as C, T as f, K as O, L as R, $ as T, S as b, a4 as v, N as B, M as D, ai as H, ag as I, P as k, a6 as w, a5 as G, a8 as Q, a7 as z, a9 as E, aa as F, a0 as V, ac as W, Y as j, F as J, w as K, a2 as N, z as U, R as X, D as Y, O as Z, C as _, G as $, B as q } from "./index-DKVTGEU-.js";
1
+ import { A as e, a4 as t, ac as i, x as o, y as r, E as c, H as n, ae as g, _ as p, af as u, R as h, ak as m, Y as l, $ as S, a2 as d, ag as M, W as P, X as y, I as x, K as A, ai as L, V as C, U as f, N as O, L as R, a0 as T, T as b, a5 as v, O as B, M as I, aj as k, ah as D, Q as H, a7 as w, a6 as G, a9 as Q, a8 as z, aa as E, ab as F, a1 as U, ad as V, Z as W, F as j, w as J, J as K, a3 as N, z as X, S as Y, D as Z, P as _, C as $, G as q, B as aa } from "./index-Dkg0GfHt.js";
2
2
  export {
3
3
  e as Address,
4
4
  t as AddressSchema,
@@ -7,8 +7,8 @@ export {
7
7
  r as AnalyticsContext,
8
8
  c as AnalyticsProvider,
9
9
  n as AnalyticsScopeProvider,
10
- p as BaiduMaps,
11
- g as BaseSchema,
10
+ g as BaiduMaps,
11
+ p as BaseSchema,
12
12
  u as BingMaps,
13
13
  h as Clusterer,
14
14
  m as CoordinateClass,
@@ -29,27 +29,28 @@ export {
29
29
  b as LocationMap,
30
30
  v as LocationSchema,
31
31
  B as Map,
32
- D as MapProviderOption,
33
- H as MapQuestMaps,
34
- I as MapboxMaps,
35
- k as Marker,
32
+ I as MapProviderOption,
33
+ k as MapQuestMaps,
34
+ D as MapboxMaps,
35
+ H as Marker,
36
36
  w as OfferSchema,
37
37
  G as OpeningHoursSchema,
38
38
  Q as OrganizationSchema,
39
39
  z as PerformerSchema,
40
40
  E as PhotoGallerySchema,
41
41
  F as PhotoSchema,
42
- V as Product,
43
- W as ReviewSchema,
44
- j as SchemaWrapper,
45
- J as debuggingParamDetected,
46
- K as getDirections,
42
+ U as Product,
43
+ V as ReviewSchema,
44
+ W as SchemaWrapper,
45
+ j as debuggingParamDetected,
46
+ J as getDirections,
47
+ K as getImageUrl,
47
48
  N as getRichTextContent,
48
- U as useAnalytics,
49
- X as useClusterContext,
50
- Y as useIdentify,
51
- Z as useMapContext,
52
- _ as usePageView,
53
- $ as useScope,
54
- q as useTrack
49
+ X as useAnalytics,
50
+ Y as useClusterContext,
51
+ Z as useIdentify,
52
+ _ as useMapContext,
53
+ $ as usePageView,
54
+ q as useScope,
55
+ aa as useTrack
55
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yext/pages-components",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "A React component library that supports Yext Pages development",
5
5
  "author": "sumo@yext.com",
6
6
  "license": "BSD-3-Clause",
@@ -8,6 +8,10 @@
8
8
  "Yext",
9
9
  "React"
10
10
  ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/yext/js.git"
14
+ },
11
15
  "sideEffects": false,
12
16
  "type": "module",
13
17
  "files": [
@@ -33,20 +37,10 @@
33
37
  "engines": {
34
38
  "node": "^18 || ^20 || ^22"
35
39
  },
36
- "scripts": {
37
- "dev": "pnpm run storybook",
38
- "build": "tsc && vite build",
39
- "storybook": "storybook dev -p 6006",
40
- "build-storybook": "storybook build",
41
- "test": "vitest run",
42
- "wcag": "test-storybook -c .storybook/wcag",
43
- "generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite",
44
- "prepare": "pnpm build",
45
- "update-snapshots": "test-storybook -c .storybook/snapshots -u"
46
- },
47
40
  "peerDependencies": {
48
41
  "react": "^17.0.2 || ^18.2.0",
49
- "react-dom": "^17.0.2 || ^18.2.0"
42
+ "react-dom": "^17.0.2 || ^18.2.0",
43
+ "mapbox-gl": "^2.9.2"
50
44
  },
51
45
  "devDependencies": {
52
46
  "@storybook/addon-a11y": "^8.5.8",
@@ -114,5 +108,15 @@
114
108
  "remark-rehype": "10.1.0",
115
109
  "unified": "11.0.4",
116
110
  "uvu": "0.5.6"
111
+ },
112
+ "scripts": {
113
+ "dev": "pnpm run storybook",
114
+ "build": "tsc && vite build",
115
+ "storybook": "storybook dev -p 6006",
116
+ "build-storybook": "storybook build",
117
+ "test": "vitest run",
118
+ "wcag": "test-storybook -c .storybook/wcag",
119
+ "generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite",
120
+ "update-snapshots": "test-storybook -c .storybook/snapshots -u"
117
121
  }
118
- }
122
+ }