@yext/pages-components 1.1.16 → 1.1.18

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
@@ -1893,11 +1893,23 @@ declare const LocationSchema: (location?: Location) => false | {
1893
1893
  name: string | undefined;
1894
1894
  };
1895
1895
 
1896
+ type OpeningHoursSpecification = {
1897
+ "@type": "OpeningHoursSpecification";
1898
+ dayOfWeek?: string | string[];
1899
+ opens?: string;
1900
+ closes?: string;
1901
+ validFrom?: string;
1902
+ validThrough?: string;
1903
+ };
1896
1904
  declare const OpeningHoursSchema: (hours?: HoursType) => {
1897
1905
  openingHours?: undefined;
1898
1906
  } | {
1899
1907
  openingHours: string[];
1900
1908
  };
1909
+ declare const OpeningHoursSpecificationSchema: (hours?: HoursType) => {
1910
+ openingHoursSpecification?: OpeningHoursSpecification[];
1911
+ specialOpeningHoursSpecification?: OpeningHoursSpecification[];
1912
+ };
1901
1913
 
1902
1914
  type Offer = {
1903
1915
  url?: string;
@@ -1994,4 +2006,4 @@ declare const LeafletMaps: MapProvider;
1994
2006
 
1995
2007
  declare const MapQuestMaps: MapProvider;
1996
2008
 
1997
- 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 };
2009
+ 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, OpeningHoursSpecificationSchema, 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
@@ -1893,11 +1893,23 @@ declare const LocationSchema: (location?: Location) => false | {
1893
1893
  name: string | undefined;
1894
1894
  };
1895
1895
 
1896
+ type OpeningHoursSpecification = {
1897
+ "@type": "OpeningHoursSpecification";
1898
+ dayOfWeek?: string | string[];
1899
+ opens?: string;
1900
+ closes?: string;
1901
+ validFrom?: string;
1902
+ validThrough?: string;
1903
+ };
1896
1904
  declare const OpeningHoursSchema: (hours?: HoursType) => {
1897
1905
  openingHours?: undefined;
1898
1906
  } | {
1899
1907
  openingHours: string[];
1900
1908
  };
1909
+ declare const OpeningHoursSpecificationSchema: (hours?: HoursType) => {
1910
+ openingHoursSpecification?: OpeningHoursSpecification[];
1911
+ specialOpeningHoursSpecification?: OpeningHoursSpecification[];
1912
+ };
1901
1913
 
1902
1914
  type Offer = {
1903
1915
  url?: string;
@@ -1994,4 +2006,4 @@ declare const LeafletMaps: MapProvider;
1994
2006
 
1995
2007
  declare const MapQuestMaps: MapProvider;
1996
2008
 
1997
- 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 };
2009
+ 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, OpeningHoursSpecificationSchema, 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-B1spQwtc.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-AuG-nSQo.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.OpeningHoursSpecificationSchema=e.OpeningHoursSpecificationSchema;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,11 +1,11 @@
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-DP_FQeoV.js";
1
+ import { A as e, a4 as t, ad as i, x as o, y as c, E as r, H as n, af as g, _ as p, ag as u, R as h, al as m, Y as l, $ as S, a2 as d, ah as M, W as P, X as y, I as x, K as A, aj 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 H, ak as I, ai as k, Q as D, a8 as w, a6 as G, a7 as Q, aa as z, a9 as E, ab as F, ac as U, a1 as V, ae as W, Z as j, F as J, w as K, J as N, a3 as X, z as Y, S as Z, D as _, P as $, C as q, G as aa, B as sa } from "./index-BzmYxqad.js";
2
2
  export {
3
3
  e as Address,
4
4
  t as AddressSchema,
5
5
  i as AggregateRatingSchema,
6
6
  o as Analytics,
7
- r as AnalyticsContext,
8
- c as AnalyticsProvider,
7
+ c as AnalyticsContext,
8
+ r as AnalyticsProvider,
9
9
  n as AnalyticsScopeProvider,
10
10
  g as BaiduMaps,
11
11
  p as BaseSchema,
@@ -29,28 +29,29 @@ export {
29
29
  b as LocationMap,
30
30
  v as LocationSchema,
31
31
  B as Map,
32
- I as MapProviderOption,
33
- k as MapQuestMaps,
34
- D as MapboxMaps,
35
- H as Marker,
32
+ H as MapProviderOption,
33
+ I as MapQuestMaps,
34
+ k as MapboxMaps,
35
+ D as Marker,
36
36
  w as OfferSchema,
37
37
  G as OpeningHoursSchema,
38
- Q as OrganizationSchema,
39
- z as PerformerSchema,
40
- E as PhotoGallerySchema,
41
- F as PhotoSchema,
42
- U as Product,
43
- V as ReviewSchema,
44
- W as SchemaWrapper,
45
- j as debuggingParamDetected,
46
- J as getDirections,
47
- K as getImageUrl,
48
- N as getRichTextContent,
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
38
+ Q as OpeningHoursSpecificationSchema,
39
+ z as OrganizationSchema,
40
+ E as PerformerSchema,
41
+ F as PhotoGallerySchema,
42
+ U as PhotoSchema,
43
+ V as Product,
44
+ W as ReviewSchema,
45
+ j as SchemaWrapper,
46
+ J as debuggingParamDetected,
47
+ K as getDirections,
48
+ N as getImageUrl,
49
+ X as getRichTextContent,
50
+ Y as useAnalytics,
51
+ Z as useClusterContext,
52
+ _ as useIdentify,
53
+ $ as useMapContext,
54
+ q as usePageView,
55
+ aa as useScope,
56
+ sa as useTrack
56
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yext/pages-components",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "A React component library that supports Yext Pages development",
5
5
  "author": "sumo@yext.com",
6
6
  "license": "BSD-3-Clause",
@@ -43,14 +43,15 @@
43
43
  "mapbox-gl": "^2.9.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@storybook/addon-a11y": "^8.5.8",
47
- "@storybook/addon-essentials": "^8.5.8",
48
- "@storybook/addon-interactions": "^8.5.8",
49
- "@storybook/addon-links": "^8.5.8",
50
- "@storybook/blocks": "^8.5.8",
51
- "@storybook/react": "^8.5.8",
52
- "@storybook/react-vite": "^8.5.8",
53
- "@storybook/test-runner": "^0.21.3",
46
+ "@playwright/test": "^1.55.1",
47
+ "@storybook/addon-a11y": "^8.6.14",
48
+ "@storybook/addon-essentials": "^8.6.14",
49
+ "@storybook/addon-interactions": "^8.6.14",
50
+ "@storybook/addon-links": "^8.6.14",
51
+ "@storybook/blocks": "^8.6.14",
52
+ "@storybook/react": "^8.6.14",
53
+ "@storybook/react-vite": "^8.6.14",
54
+ "@storybook/test-runner": "^0.23.0",
54
55
  "@storybook/testing-library": "^0.2.2",
55
56
  "@testing-library/react": "^14.1.2",
56
57
  "@testing-library/user-event": "^14.5.1",
@@ -69,12 +70,11 @@
69
70
  "generate-license-file": "^3.0.1",
70
71
  "jest-image-snapshot": "^6.4.0",
71
72
  "jsdom": "^24.1.0",
72
- "@playwright/test": "^1.55.1",
73
73
  "playwright-core": "^1.55.1",
74
74
  "prop-types": "^15.8.1",
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0",
77
- "storybook": "^8.5.8",
77
+ "storybook": "^8.6.14",
78
78
  "tsup": "^8.0.1",
79
79
  "typescript": "^5.3.3",
80
80
  "vite": "^5.4.11",