@yext/pages-components 1.0.3 → 1.0.4
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/{debugger-D4yFabmm.cjs → debugger-D1L4Q0Ym.cjs} +1 -1
- package/dist/{debugger-Bs6mU3Vj.js → debugger-Deci89uw.js} +1 -1
- package/dist/{index-DINajhKX.js → index-BEwdmdrX.js} +2941 -2922
- package/dist/{index-D2DTKjQt.js → index-BwdzdvBD.js} +1 -1
- package/dist/{index-Eb3ckUJC.cjs → index-D48pUOQV.cjs} +45 -45
- package/dist/{index-Hfn6D19v.cjs → index-DmZ5N0Hz.cjs} +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tn=require("react"),g=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tn=require("react"),g=require("./index-D48pUOQV.cjs");function Zt(n){const t=[];let e=-1;for(;++e<n.footnoteOrder.length;){const r=n.footnoteById[n.footnoteOrder[e]];if(!r)continue;const i=n.all(r),l=String(r.identifier).toUpperCase(),o=g.normalizeUri(l.toLowerCase());let a=0;const h=[];for(;++a<=n.footnoteCounts[l];){const f={type:"element",tagName:"a",properties:{href:"#"+n.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&f.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),h.length>0&&h.push({type:"text",value:" "}),h.push(f)}const s=i[i.length-1];if(s&&s.type==="element"&&s.tagName==="p"){const f=s.children[s.children.length-1];f&&f.type==="text"?f.value+=" ":s.children.push({type:"text",value:" "}),s.children.push(...h)}else i.push(...h);const d={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+o},children:n.wrap(i,!0)};n.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(n.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:n.footnoteLabel}]},{type:"text",value:`
|
|
2
2
|
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(t,!0)},{type:"text",value:`
|
|
3
3
|
`}]}}function gt(n,t){const e=g.createState(n,t),r=e.one(n,null),i=Zt(e);return i&&r.children.push({type:"text",value:`
|
|
4
4
|
`},i),Array.isArray(r)?{type:"root",children:r}:r}const nr=function(n,t){return n&&"run"in n?er(n,t):tr(n||t)};function er(n,t){return(e,r,i)=>{n.run(gt(e,t),r,l=>{i(l)})}}function tr(n){return t=>gt(t,n)}const Te=["http","https","mailto","tel"];function yt(n){const t=(n||"").trim(),e=t.charAt(0);if(e==="#"||e==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<Te.length;){const l=Te[i];if(r===l.length&&t.slice(0,l.length).toLowerCase()===l)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
|
package/dist/index.d.cts
CHANGED
|
@@ -616,7 +616,7 @@ type LinkProps = CTALinkProps | HREFLinkProps;
|
|
|
616
616
|
*
|
|
617
617
|
* @public
|
|
618
618
|
*/
|
|
619
|
-
declare const Link:
|
|
619
|
+
declare const Link: React$1.ForwardRefExoticComponent<(Omit<HREFLinkProps, "ref"> | Omit<CTAWithChildrenLinkProps, "ref"> | Omit<CTAWithoutChildrenLinkProps, "ref">) & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
622
|
* This class represents a point on a sphere defined by latitude and longitude.
|
|
@@ -1116,6 +1116,7 @@ interface MarkerProps {
|
|
|
1116
1116
|
[key: string]: boolean;
|
|
1117
1117
|
};
|
|
1118
1118
|
zIndex?: number;
|
|
1119
|
+
hasPinUrl?: boolean;
|
|
1119
1120
|
}
|
|
1120
1121
|
type ClusterTemplateProps = {
|
|
1121
1122
|
count?: number;
|
|
@@ -1138,7 +1139,7 @@ interface ClustererContextType {
|
|
|
1138
1139
|
declare function useMapContext(): Map$1;
|
|
1139
1140
|
declare const Map: ({ apiKey, bounds, children, className, clientKey, controls, defaultCenter, defaultZoom, mapRef, padding, panHandler, panStartHandler, provider, providerOptions, singleZoom, }: MapProps) => react_jsx_runtime.JSX.Element;
|
|
1140
1141
|
|
|
1141
|
-
declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, }: MarkerProps) => JSX.Element | null;
|
|
1142
|
+
declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, hasPinUrl, }: MarkerProps) => JSX.Element | null;
|
|
1142
1143
|
|
|
1143
1144
|
declare function useClusterContext(): ClustererContextType;
|
|
1144
1145
|
declare const Clusterer: ({ clusterRadius, children, ClusterTemplate, }: ClustererProps) => react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -616,7 +616,7 @@ type LinkProps = CTALinkProps | HREFLinkProps;
|
|
|
616
616
|
*
|
|
617
617
|
* @public
|
|
618
618
|
*/
|
|
619
|
-
declare const Link:
|
|
619
|
+
declare const Link: React$1.ForwardRefExoticComponent<(Omit<HREFLinkProps, "ref"> | Omit<CTAWithChildrenLinkProps, "ref"> | Omit<CTAWithoutChildrenLinkProps, "ref">) & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
620
620
|
|
|
621
621
|
/**
|
|
622
622
|
* This class represents a point on a sphere defined by latitude and longitude.
|
|
@@ -1116,6 +1116,7 @@ interface MarkerProps {
|
|
|
1116
1116
|
[key: string]: boolean;
|
|
1117
1117
|
};
|
|
1118
1118
|
zIndex?: number;
|
|
1119
|
+
hasPinUrl?: boolean;
|
|
1119
1120
|
}
|
|
1120
1121
|
type ClusterTemplateProps = {
|
|
1121
1122
|
count?: number;
|
|
@@ -1138,7 +1139,7 @@ interface ClustererContextType {
|
|
|
1138
1139
|
declare function useMapContext(): Map$1;
|
|
1139
1140
|
declare const Map: ({ apiKey, bounds, children, className, clientKey, controls, defaultCenter, defaultZoom, mapRef, padding, panHandler, panStartHandler, provider, providerOptions, singleZoom, }: MapProps) => react_jsx_runtime.JSX.Element;
|
|
1140
1141
|
|
|
1141
|
-
declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, }: MarkerProps) => JSX.Element | null;
|
|
1142
|
+
declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, hasPinUrl, }: MarkerProps) => JSX.Element | null;
|
|
1142
1143
|
|
|
1143
1144
|
declare function useClusterContext(): ClustererContextType;
|
|
1144
1145
|
declare const Clusterer: ({ clusterRadius, children, ClusterTemplate, }: ClustererProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D48pUOQV.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.LinkTypes=e.LinkTypes;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.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;
|
package/dist/pages-components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a3 as t, ac as i, x as o, y as r, E as c, H as n, ad as p, _ as u, ae as g, R as h, aj as m, Y as l, $ as S, a2 as d, af as M, W as y, X as P, I as L, J as A, ah as x, V as C, U as f, K as O, N as T, L as b, a0 as v, T as B, a4 as R, O as k, M as D, ai as H, ag as I, Q as w, a6 as G, a5 as Q, a8 as z, a7 as E, a9 as F, aa as V, a1 as W, ab as j, Z as J, F as K, w as N, z as U, S as X, D as Y, P as Z, C as _, G as $, B as q } from "./index-
|
|
1
|
+
import { A as e, a3 as t, ac as i, x as o, y as r, E as c, H as n, ad as p, _ as u, ae as g, R as h, aj as m, Y as l, $ as S, a2 as d, af as M, W as y, X as P, I as L, J as A, ah as x, V as C, U as f, K as O, N as T, L as b, a0 as v, T as B, a4 as R, O as k, M as D, ai as H, ag as I, Q as w, a6 as G, a5 as Q, a8 as z, a7 as E, a9 as F, aa as V, a1 as W, ab as j, Z as J, F as K, w as N, z as U, S as X, D as Y, P as Z, C as _, G as $, B as q } from "./index-BEwdmdrX.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Address,
|
|
4
4
|
t as AddressSchema,
|