@yext/pages-components 1.0.0 → 1.0.1

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.
@@ -1,5 +1,5 @@
1
1
  import _n from "react";
2
- import { n as sr, a as cr, b as Nn, m as K, d as B, s as On, p as bn, r as Ce, e as Me, f as Cn, h as En, i as he, k as fr, l as pr, o as hr, q as de, t as xn, u as dr, v as mr } from "./index-DaOqO1Xz.js";
2
+ import { n as sr, a as cr, b as Nn, m as K, d as B, s as On, p as bn, r as Ce, e as Me, f as Cn, h as En, i as he, k as fr, l as pr, o as hr, q as de, t as xn, u as dr, v as mr } from "./index-BAeydPvg.js";
3
3
  function gr(n) {
4
4
  const t = [];
5
5
  let e = -1;
package/dist/index.d.cts CHANGED
@@ -212,11 +212,6 @@ interface AnalyticsProviderProps {
212
212
  * in the developer console.
213
213
  */
214
214
  enableDebugging?: boolean | undefined;
215
- /**
216
- * isProduction() will evaluate to true if the event is fired from any of
217
- * provided domains in productionDomains.
218
- */
219
- productionDomains?: string[];
220
215
  }
221
216
  /**
222
217
  * AnalyticsScopeProps defines the component properties required by the
@@ -329,6 +324,11 @@ declare const useIdentify: () => ((visitor: Record<string, string>) => void) | u
329
324
  * @public
330
325
  */
331
326
  declare function AnalyticsProvider(props: PropsWithChildren<AnalyticsProviderProps>): JSX.Element;
327
+ /**
328
+ * This will look for the xYextDebug parameter and if it is present,
329
+ * enable analytics debugging.
330
+ */
331
+ declare function debuggingParamDetected(): boolean;
332
332
 
333
333
  /**
334
334
  * The useScope hook will return the current scope from the Analytics Scope. For
@@ -1307,4 +1307,4 @@ declare const LeafletMaps: any;
1307
1307
  */
1308
1308
  declare const MapQuestMaps: any;
1309
1309
 
1310
- export { Address, type AddressLine, type AddressLineProps, type AddressProps, type AddressType, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, 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 GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, HoursTable, type HoursTableDayData, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, LinkTypes, type ListingPublisher, ListingPublisherOption, type ListingType, LocationMap, type LocationMapProps, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type PinStoreType, type ThumbnailType, type WeekType, getDirections, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
1310
+ export { Address, type AddressLine, type AddressLineProps, type AddressProps, type AddressType, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, 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 GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, HoursTable, type HoursTableDayData, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, LinkTypes, type ListingPublisher, ListingPublisherOption, type ListingType, LocationMap, type LocationMapProps, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type PinStoreType, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
package/dist/index.d.ts CHANGED
@@ -212,11 +212,6 @@ interface AnalyticsProviderProps {
212
212
  * in the developer console.
213
213
  */
214
214
  enableDebugging?: boolean | undefined;
215
- /**
216
- * isProduction() will evaluate to true if the event is fired from any of
217
- * provided domains in productionDomains.
218
- */
219
- productionDomains?: string[];
220
215
  }
221
216
  /**
222
217
  * AnalyticsScopeProps defines the component properties required by the
@@ -329,6 +324,11 @@ declare const useIdentify: () => ((visitor: Record<string, string>) => void) | u
329
324
  * @public
330
325
  */
331
326
  declare function AnalyticsProvider(props: PropsWithChildren<AnalyticsProviderProps>): JSX.Element;
327
+ /**
328
+ * This will look for the xYextDebug parameter and if it is present,
329
+ * enable analytics debugging.
330
+ */
331
+ declare function debuggingParamDetected(): boolean;
332
332
 
333
333
  /**
334
334
  * The useScope hook will return the current scope from the Analytics Scope. For
@@ -1307,4 +1307,4 @@ declare const LeafletMaps: any;
1307
1307
  */
1308
1308
  declare const MapQuestMaps: any;
1309
1309
 
1310
- export { Address, type AddressLine, type AddressLineProps, type AddressProps, type AddressType, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, 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 GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, HoursTable, type HoursTableDayData, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, LinkTypes, type ListingPublisher, ListingPublisherOption, type ListingType, LocationMap, type LocationMapProps, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type PinStoreType, type ThumbnailType, type WeekType, getDirections, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
1310
+ export { Address, type AddressLine, type AddressLineProps, type AddressProps, type AddressType, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, 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 GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, HoursTable, type HoursTableDayData, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, LinkTypes, type ListingPublisher, ListingPublisherOption, type ListingType, LocationMap, type LocationMapProps, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type PinStoreType, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CPtU5eOw.cjs");exports.Address=e.Address;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.CoordinateClass=e.Coordinate;exports.Day=e.Day;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.LinkTypes=e.LinkTypes;exports.ListingPublisherOption=e.ListingPublisherOption;exports.LocationMap=e.LocationMap;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;exports.getDirections=e.getDirections;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-Cads-eer.cjs");exports.Address=e.Address;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.CoordinateClass=e.Coordinate;exports.Day=e.Day;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.LinkTypes=e.LinkTypes;exports.ListingPublisherOption=e.ListingPublisherOption;exports.LocationMap=e.LocationMap;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;exports.debuggingParamDetected=e.debuggingParamDetected;exports.getDirections=e.getDirections;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, x as t, y as i, E as o, G as r, Y as n, Z as p, Q as u, a2 as c, X as M, _ as l, V as y, W as x, I as L, H as d, a0 as g, U as C, T as A, J as P, K as T, L as k, S as I, N as O, M as S, a1 as b, $ as f, P as h, w as m, z as v, R as B, D, O as H, C as R, F as w, B as G } from "./index-DaOqO1Xz.js";
1
+ import { A as e, x as t, y as i, E as o, H as r, Z as n, _ as p, R as u, a3 as c, Y as M, $ as l, W as g, X as y, I as d, J as x, a1 as L, V as C, U as A, K as P, N as T, L as b, T as k, O as m, M as D, a2 as I, a0 as O, Q as S, F as f, w as h, z as v, S as B, D as H, P as R, C as w, G, B as Q } from "./index-BAeydPvg.js";
2
2
  export {
3
3
  e as Address,
4
4
  t as Analytics,
@@ -11,28 +11,29 @@ export {
11
11
  c as CoordinateClass,
12
12
  M as Day,
13
13
  l as GoogleMaps,
14
- y as HoursStatus,
15
- x as HoursTable,
16
- L as Image,
17
- d as ImageLayoutOption,
18
- g as LeafletMaps,
14
+ g as HoursStatus,
15
+ y as HoursTable,
16
+ d as Image,
17
+ x as ImageLayoutOption,
18
+ L as LeafletMaps,
19
19
  C as LegacyRichText,
20
20
  A as LexicalRichText,
21
21
  P as Link,
22
22
  T as LinkTypes,
23
- k as ListingPublisherOption,
24
- I as LocationMap,
25
- O as Map,
26
- S as MapProviderOption,
27
- b as MapQuestMaps,
28
- f as MapboxMaps,
29
- h as Marker,
30
- m as getDirections,
23
+ b as ListingPublisherOption,
24
+ k as LocationMap,
25
+ m as Map,
26
+ D as MapProviderOption,
27
+ I as MapQuestMaps,
28
+ O as MapboxMaps,
29
+ S as Marker,
30
+ f as debuggingParamDetected,
31
+ h as getDirections,
31
32
  v as useAnalytics,
32
33
  B as useClusterContext,
33
- D as useIdentify,
34
- H as useMapContext,
35
- R as usePageView,
36
- w as useScope,
37
- G as useTrack
34
+ H as useIdentify,
35
+ R as useMapContext,
36
+ w as usePageView,
37
+ G as useScope,
38
+ Q as useTrack
38
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yext/pages-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A React component library that supports Yext Pages development",
5
5
  "author": "sumo@yext.com",
6
6
  "license": "BSD-3-Clause",