@yext/pages-components 1.0.2 → 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-DxMCz_HF.cjs → debugger-D1L4Q0Ym.cjs} +1 -1
- package/dist/{debugger-C-GK2f4q.js → debugger-Deci89uw.js} +1 -1
- package/dist/{index-ChSAX9jE.js → index-BEwdmdrX.js} +5336 -5770
- package/dist/{index-zdnlchNT.js → index-BwdzdvBD.js} +3 -3
- package/dist/{index-LU9eqw2L.cjs → index-D48pUOQV.cjs} +56 -54
- package/dist/{index-BaREGJWP.cjs → index-DmZ5N0Hz.cjs} +2 -2
- package/dist/index.d.cts +372 -3
- package/dist/index.d.ts +372 -3
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +48 -32
- package/package.json +4 -4
|
@@ -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)"}/*!
|
|
@@ -42,4 +42,4 @@ Valid keys: `+JSON.stringify(Object.keys(u),null," "));var A=I($,V,F,H,D+"."+V,
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/var ct;function Nl(){return ct||(ct=1,process.env.NODE_ENV!=="production"&&function(){var n=60103,t=60106,e=60107,r=60108,i=60114,l=60109,o=60110,a=60112,h=60113,s=60120,d=60115,f=60116,y=60121,p=60122,T=60117,k=60129,v=60131;if(typeof Symbol=="function"&&Symbol.for){var m=Symbol.for;n=m("react.element"),t=m("react.portal"),e=m("react.fragment"),r=m("react.strict_mode"),i=m("react.profiler"),l=m("react.provider"),o=m("react.context"),a=m("react.forward_ref"),h=m("react.suspense"),s=m("react.suspense_list"),d=m("react.memo"),f=m("react.lazy"),y=m("react.block"),p=m("react.server.block"),T=m("react.fundamental"),m("react.scope"),m("react.opaque.id"),k=m("react.debug_trace_mode"),m("react.offscreen"),v=m("react.legacy_hidden")}var _=!1;function C(I){return!!(typeof I=="string"||typeof I=="function"||I===e||I===i||I===k||I===r||I===h||I===s||I===v||_||typeof I=="object"&&I!==null&&(I.$$typeof===f||I.$$typeof===d||I.$$typeof===l||I.$$typeof===o||I.$$typeof===a||I.$$typeof===T||I.$$typeof===y||I[0]===p))}function L(I){if(typeof I=="object"&&I!==null){var A=I.$$typeof;switch(A){case n:var pn=I.type;switch(pn){case e:case i:case r:case h:case s:return pn;default:var bn=pn&&pn.$$typeof;switch(bn){case o:case a:case f:case d:case l:return bn;default:return A}}case t:return A}}}var b=o,x=l,z=n,j=a,W=e,an=f,M=d,R=t,E=i,G=r,Y=h,K=!1,nn=!1;function fn(I){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function dn(I){return nn||(nn=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function u(I){return L(I)===o}function O(I){return L(I)===l}function B(I){return typeof I=="object"&&I!==null&&I.$$typeof===n}function c(I){return L(I)===a}function F(I){return L(I)===e}function H(I){return L(I)===f}function D(I){return L(I)===d}function $(I){return L(I)===t}function N(I){return L(I)===i}function Q(I){return L(I)===r}function V(I){return L(I)===h}rn.ContextConsumer=b,rn.ContextProvider=x,rn.Element=z,rn.ForwardRef=j,rn.Fragment=W,rn.Lazy=an,rn.Memo=M,rn.Portal=R,rn.Profiler=E,rn.StrictMode=G,rn.Suspense=Y,rn.isAsyncMode=fn,rn.isConcurrentMode=dn,rn.isContextConsumer=u,rn.isContextProvider=O,rn.isElement=B,rn.isForwardRef=c,rn.isFragment=F,rn.isLazy=H,rn.isMemo=D,rn.isPortal=$,rn.isProfiler=N,rn.isStrictMode=Q,rn.isSuspense=V,rn.isValidElementType=C,rn.typeOf=L}()),rn}process.env.NODE_ENV==="production"?de.exports=$l():de.exports=Nl();var ql=de.exports;const Ul=g.getDefaultExportFromCjs(ql);function Hl(n){const t=n&&typeof n=="object"&&n.type==="text"?n.value||"":n;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Vl(n){return n.join(" ").trim()}function Yl(n,t){const e={};return(n[n.length-1]===""?[...n,""]:n).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}var ft=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Wl=/\n/g,Ql=/^\s*/,Xl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Gl=/^:\s*/,Kl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Jl=/^[;\s]*/,Zl=/^\s+|\s+$/g,no=`
|
|
45
|
-
`,pt="/",ht="*",Sn="",eo="comment",to="declaration",ro=function(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(T){var k=T.match(Wl);k&&(e+=k.length);var v=T.lastIndexOf(no);r=~v?T.length-v:r+T.length}function l(){var T={line:e,column:r};return function(k){return k.position=new o(T),s(),k}}function o(T){this.start=T,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function a(T){var k=new Error(t.source+":"+e+":"+r+": "+T);if(k.reason=T,k.filename=t.source,k.line=e,k.column=r,k.source=n,!t.silent)throw k}function h(T){var k=T.exec(n);if(k){var v=k[0];return i(v),n=n.slice(v.length),k}}function s(){h(Ql)}function d(T){var k;for(T=T||[];k=f();)k!==!1&&T.push(k);return T}function f(){var T=l();if(!(pt!=n.charAt(0)||ht!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(ht!=n.charAt(k)||pt!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var v=n.slice(2,k-2);return r+=2,i(v),n=n.slice(k),r+=2,T({type:eo,comment:v})}}function y(){var T=l(),k=h(Xl);if(k){if(f(),!h(Gl))return a("property missing ':'");var v=h(Kl),m=T({type:to,property:dt(k[0].replace(ft,Sn)),value:v?dt(v[0].replace(ft,Sn)):Sn});return h(Jl),m}}function p(){var T=[];d(T);for(var k;k=y();)k!==!1&&(T.push(k),d(T));return T}return s(),p()};function dt(n){return n?n.replace(Zl,Sn):Sn}var io=ro;function lo(n,t){var e=null;if(!n||typeof n!="string")return e;for(var r,i=io(n),l=typeof t=="function",o,a,h=0,s=i.length;h<s;h++)r=i[h],o=r.property,a=r.value,l?t(o,a,r):a&&(e||(e={}),e[o]=a);return e}var oo=lo;const ao=g.getDefaultExportFromCjs(oo),me={}.hasOwnProperty,uo=new Set(["table","thead","tbody","tfoot","tr"]);function Vt(n,t){const e=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?e.push(so(n,i,r,t)):i.type==="text"?(t.type!=="element"||!uo.has(t.tagName)||!Hl(i))&&e.push(i.value):i.type==="raw"&&!n.options.skipHtml&&e.push(i.value);return e}function so(n,t,e,r){const i=n.options,l=n.schema,o=t.tagName,a={};let h=l,s;if(l.space==="html"&&o==="svg"&&(h=Bl,n.schema=h),t.properties)for(s in t.properties)me.call(t.properties,s)&&fo(a,s,t.properties[s],n);(o==="ol"||o==="ul")&&n.listDepth++;const d=Vt(n,t);(o==="ol"||o==="ul")&&n.listDepth--,n.schema=l;const f=t.position||{start:{line:null,column:null
|
|
45
|
+
`,pt="/",ht="*",Sn="",eo="comment",to="declaration",ro=function(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(T){var k=T.match(Wl);k&&(e+=k.length);var v=T.lastIndexOf(no);r=~v?T.length-v:r+T.length}function l(){var T={line:e,column:r};return function(k){return k.position=new o(T),s(),k}}function o(T){this.start=T,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function a(T){var k=new Error(t.source+":"+e+":"+r+": "+T);if(k.reason=T,k.filename=t.source,k.line=e,k.column=r,k.source=n,!t.silent)throw k}function h(T){var k=T.exec(n);if(k){var v=k[0];return i(v),n=n.slice(v.length),k}}function s(){h(Ql)}function d(T){var k;for(T=T||[];k=f();)k!==!1&&T.push(k);return T}function f(){var T=l();if(!(pt!=n.charAt(0)||ht!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(ht!=n.charAt(k)||pt!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var v=n.slice(2,k-2);return r+=2,i(v),n=n.slice(k),r+=2,T({type:eo,comment:v})}}function y(){var T=l(),k=h(Xl);if(k){if(f(),!h(Gl))return a("property missing ':'");var v=h(Kl),m=T({type:to,property:dt(k[0].replace(ft,Sn)),value:v?dt(v[0].replace(ft,Sn)):Sn});return h(Jl),m}}function p(){var T=[];d(T);for(var k;k=y();)k!==!1&&(T.push(k),d(T));return T}return s(),p()};function dt(n){return n?n.replace(Zl,Sn):Sn}var io=ro;function lo(n,t){var e=null;if(!n||typeof n!="string")return e;for(var r,i=io(n),l=typeof t=="function",o,a,h=0,s=i.length;h<s;h++)r=i[h],o=r.property,a=r.value,l?t(o,a,r):a&&(e||(e={}),e[o]=a);return e}var oo=lo;const ao=g.getDefaultExportFromCjs(oo),me={}.hasOwnProperty,uo=new Set(["table","thead","tbody","tfoot","tr"]);function Vt(n,t){const e=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?e.push(so(n,i,r,t)):i.type==="text"?(t.type!=="element"||!uo.has(t.tagName)||!Hl(i))&&e.push(i.value):i.type==="raw"&&!n.options.skipHtml&&e.push(i.value);return e}function so(n,t,e,r){const i=n.options,l=n.schema,o=t.tagName,a={};let h=l,s;if(l.space==="html"&&o==="svg"&&(h=Bl,n.schema=h),t.properties)for(s in t.properties)me.call(t.properties,s)&&fo(a,s,t.properties[s],n);(o==="ol"||o==="ul")&&n.listDepth++;const d=Vt(n,t);(o==="ol"||o==="ul")&&n.listDepth--,n.schema=l;const f=t.position||{start:{line:null,column:null},end:{line:null,column:null}},y=i.components&&me.call(i.components,o)?i.components[o]:o,p=typeof y=="string"||y===Tn.Fragment;if(!Ul.isValidElementType(y))throw new TypeError(`Component for name \`${o}\` not defined or is not renderable`);if(a.key=[o,f.start.line,f.start.column,e].join("-"),o==="a"&&i.linkTarget&&(a.target=typeof i.linkTarget=="function"?i.linkTarget(String(a.href||""),t.children,typeof a.title=="string"?a.title:null):i.linkTarget),o==="a"&&i.transformLinkUri&&(a.href=i.transformLinkUri(String(a.href||""),t.children,typeof a.title=="string"?a.title:null)),!p&&o==="code"&&r.type==="element"&&r.tagName!=="pre"&&(a.inline=!0),!p&&(o==="h1"||o==="h2"||o==="h3"||o==="h4"||o==="h5"||o==="h6")&&(a.level=Number.parseInt(o.charAt(1),10)),o==="img"&&i.transformImageUri&&(a.src=i.transformImageUri(String(a.src||""),String(a.alt||""),typeof a.title=="string"?a.title:null)),!p&&o==="li"&&r.type==="element"){const T=co(t);a.checked=T&&T.properties?!!T.properties.checked:null,a.index=le(r,t),a.ordered=r.tagName==="ol"}return!p&&(o==="ol"||o==="ul")&&(a.ordered=o==="ol",a.depth=n.listDepth),(o==="td"||o==="th")&&(a.align&&(a.style||(a.style={}),a.style.textAlign=a.align,delete a.align),p||(a.isHeader=o==="th")),!p&&o==="tr"&&r.type==="element"&&(a.isHeader=r.tagName==="thead"),i.sourcePos&&(a["data-sourcepos"]=mo(f)),!p&&i.rawSourcePos&&(a.sourcePosition=t.position),!p&&i.includeElementIndex&&(a.index=le(r,t),a.siblingCount=le(r)),p||(a.node=t),d.length>0?Tn.createElement(y,a,d):Tn.createElement(y,a)}function co(n){let t=-1;for(;++t<n.children.length;){const e=n.children[t];if(e.type==="element"&&e.tagName==="input")return e}return null}function le(n,t){let e=-1,r=0;for(;++e<n.children.length&&n.children[e]!==t;)n.children[e].type==="element"&&r++;return r}function fo(n,t,e,r){const i=zl(r.schema,t);let l=e;l==null||l!==l||(Array.isArray(l)&&(l=i.commaSeparated?Yl(l):Vl(l)),i.property==="style"&&typeof l=="string"&&(l=po(l)),i.space&&i.property?n[me.call(ut,i.property)?ut[i.property]:i.property]=l:i.attribute&&(n[i.attribute]=l))}function po(n){const t={};try{ao(n,e)}catch{}return t;function e(r,i){const l=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[l.replace(/-([a-z])/g,ho)]=i}}function ho(n,t){return t.toUpperCase()}function mo(n){return[n.start.line,":",n.start.column,"-",n.end.line,":",n.end.column].map(t=>String(t)).join("")}const mt={}.hasOwnProperty,go="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jn={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function we(n){for(const l in jn)if(mt.call(jn,l)&&mt.call(n,l)){const o=jn[l];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${l}\` (see <${go}#${o.id}> for more info)`),delete jn[l]}const t=xr().use(xl).use(n.remarkPlugins||[]).use(nr,{...n.remarkRehypeOptions,allowDangerousHtml:!0}).use(n.rehypePlugins||[]).use(jl,n),e=new kt;typeof n.children=="string"?e.value=n.children:n.children!==void 0&&n.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${n.children}\`)`);const r=t.runSync(t.parse(e),e);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=Tn.createElement(Tn.Fragment,{},Vt({options:n,schema:Fl,listDepth:0},r));return n.className&&(i=Tn.createElement("div",{className:n.className},i)),i}we.defaultProps={transformLinkUri:yt};we.propTypes={children:X.string,className:X.string,allowElement:X.func,allowedElements:X.arrayOf(X.string),disallowedElements:X.arrayOf(X.string),unwrapDisallowed:X.bool,remarkPlugins:X.arrayOf(X.oneOfType([X.object,X.func,X.arrayOf(X.oneOfType([X.object,X.func]))])),rehypePlugins:X.arrayOf(X.oneOfType([X.object,X.func,X.arrayOf(X.oneOfType([X.object,X.func]))])),sourcePos:X.bool,rawSourcePos:X.bool,skipHtml:X.bool,includeElementIndex:X.bool,transformLinkUri:X.oneOfType([X.func,X.bool]),linkTarget:X.oneOfType([X.func,X.string]),transformImageUri:X.func,components:X.object};exports.default=we;exports.uriTransformer=yt;
|
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;
|
|
@@ -1300,6 +1301,374 @@ declare const HoursStatus: React__default.FC<HoursStatusProps>;
|
|
|
1300
1301
|
|
|
1301
1302
|
declare const HoursTable: React__default.FC<HoursTableProps>;
|
|
1302
1303
|
|
|
1304
|
+
declare const SchemaWrapper: (json: any) => string;
|
|
1305
|
+
|
|
1306
|
+
declare const BaseSchema: (document: Record<string, any>, schemaType: string) => {
|
|
1307
|
+
"@context": string;
|
|
1308
|
+
"@type": string;
|
|
1309
|
+
name: any;
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
declare const Event: (document: Record<string, any>, schemaType?: string) => {
|
|
1313
|
+
offers?: {
|
|
1314
|
+
"@type": string;
|
|
1315
|
+
url: string | undefined;
|
|
1316
|
+
priceCurrency: string | undefined;
|
|
1317
|
+
price: string | undefined;
|
|
1318
|
+
priceValidUntil: string | undefined;
|
|
1319
|
+
itemCondition: string | undefined;
|
|
1320
|
+
availability: string | undefined;
|
|
1321
|
+
} | undefined;
|
|
1322
|
+
organizer?: {
|
|
1323
|
+
"@type": string;
|
|
1324
|
+
name: string | undefined;
|
|
1325
|
+
url: string | undefined;
|
|
1326
|
+
} | undefined;
|
|
1327
|
+
performer?: {
|
|
1328
|
+
"@type": string;
|
|
1329
|
+
name: string;
|
|
1330
|
+
} | undefined;
|
|
1331
|
+
startDate: any;
|
|
1332
|
+
endDate: any;
|
|
1333
|
+
description: any;
|
|
1334
|
+
eventAttendanceMode: any;
|
|
1335
|
+
eventStatus: any;
|
|
1336
|
+
address?: {
|
|
1337
|
+
"@type": string;
|
|
1338
|
+
streetAddress: string;
|
|
1339
|
+
addressLocality: string;
|
|
1340
|
+
addressRegion: string | undefined;
|
|
1341
|
+
postalCode: string;
|
|
1342
|
+
addressCountry: string;
|
|
1343
|
+
} | undefined;
|
|
1344
|
+
"@type": string;
|
|
1345
|
+
name: any;
|
|
1346
|
+
image?: undefined;
|
|
1347
|
+
"@context": string;
|
|
1348
|
+
} | {
|
|
1349
|
+
offers?: {
|
|
1350
|
+
"@type": string;
|
|
1351
|
+
url: string | undefined;
|
|
1352
|
+
priceCurrency: string | undefined;
|
|
1353
|
+
price: string | undefined;
|
|
1354
|
+
priceValidUntil: string | undefined;
|
|
1355
|
+
itemCondition: string | undefined;
|
|
1356
|
+
availability: string | undefined;
|
|
1357
|
+
} | undefined;
|
|
1358
|
+
organizer?: {
|
|
1359
|
+
"@type": string;
|
|
1360
|
+
name: string | undefined;
|
|
1361
|
+
url: string | undefined;
|
|
1362
|
+
} | undefined;
|
|
1363
|
+
performer?: {
|
|
1364
|
+
"@type": string;
|
|
1365
|
+
name: string;
|
|
1366
|
+
} | undefined;
|
|
1367
|
+
startDate: any;
|
|
1368
|
+
endDate: any;
|
|
1369
|
+
description: any;
|
|
1370
|
+
eventAttendanceMode: any;
|
|
1371
|
+
eventStatus: any;
|
|
1372
|
+
address?: {
|
|
1373
|
+
"@type": string;
|
|
1374
|
+
streetAddress: string;
|
|
1375
|
+
addressLocality: string;
|
|
1376
|
+
addressRegion: string | undefined;
|
|
1377
|
+
postalCode: string;
|
|
1378
|
+
addressCountry: string;
|
|
1379
|
+
} | undefined;
|
|
1380
|
+
"@type": string;
|
|
1381
|
+
name: any;
|
|
1382
|
+
image: string[];
|
|
1383
|
+
"@context": string;
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
declare const LocalBusiness: (document: Record<string, any>, schemaType?: string) => {
|
|
1387
|
+
description: any;
|
|
1388
|
+
telephone: any;
|
|
1389
|
+
email: any;
|
|
1390
|
+
image?: undefined;
|
|
1391
|
+
openingHours?: undefined;
|
|
1392
|
+
address?: {
|
|
1393
|
+
"@type": string;
|
|
1394
|
+
streetAddress: string;
|
|
1395
|
+
addressLocality: string;
|
|
1396
|
+
addressRegion: string | undefined;
|
|
1397
|
+
postalCode: string;
|
|
1398
|
+
addressCountry: string;
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
"@context": string;
|
|
1401
|
+
"@type": string;
|
|
1402
|
+
name: any;
|
|
1403
|
+
} | {
|
|
1404
|
+
description: any;
|
|
1405
|
+
telephone: any;
|
|
1406
|
+
email: any;
|
|
1407
|
+
image: string[];
|
|
1408
|
+
openingHours?: undefined;
|
|
1409
|
+
address?: {
|
|
1410
|
+
"@type": string;
|
|
1411
|
+
streetAddress: string;
|
|
1412
|
+
addressLocality: string;
|
|
1413
|
+
addressRegion: string | undefined;
|
|
1414
|
+
postalCode: string;
|
|
1415
|
+
addressCountry: string;
|
|
1416
|
+
} | undefined;
|
|
1417
|
+
"@context": string;
|
|
1418
|
+
"@type": string;
|
|
1419
|
+
name: any;
|
|
1420
|
+
} | {
|
|
1421
|
+
description: any;
|
|
1422
|
+
telephone: any;
|
|
1423
|
+
email: any;
|
|
1424
|
+
image?: undefined;
|
|
1425
|
+
openingHours: string[];
|
|
1426
|
+
address?: {
|
|
1427
|
+
"@type": string;
|
|
1428
|
+
streetAddress: string;
|
|
1429
|
+
addressLocality: string;
|
|
1430
|
+
addressRegion: string | undefined;
|
|
1431
|
+
postalCode: string;
|
|
1432
|
+
addressCountry: string;
|
|
1433
|
+
} | undefined;
|
|
1434
|
+
"@context": string;
|
|
1435
|
+
"@type": string;
|
|
1436
|
+
name: any;
|
|
1437
|
+
} | {
|
|
1438
|
+
description: any;
|
|
1439
|
+
telephone: any;
|
|
1440
|
+
email: any;
|
|
1441
|
+
image: string[];
|
|
1442
|
+
openingHours: string[];
|
|
1443
|
+
address?: {
|
|
1444
|
+
"@type": string;
|
|
1445
|
+
streetAddress: string;
|
|
1446
|
+
addressLocality: string;
|
|
1447
|
+
addressRegion: string | undefined;
|
|
1448
|
+
postalCode: string;
|
|
1449
|
+
addressCountry: string;
|
|
1450
|
+
} | undefined;
|
|
1451
|
+
"@context": string;
|
|
1452
|
+
"@type": string;
|
|
1453
|
+
name: any;
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
declare const Product: (document: Record<string, any>, schemaType?: string) => {
|
|
1457
|
+
description: any;
|
|
1458
|
+
sku: any;
|
|
1459
|
+
mpn: any;
|
|
1460
|
+
brand: {
|
|
1461
|
+
"@type": string;
|
|
1462
|
+
name: any;
|
|
1463
|
+
};
|
|
1464
|
+
offers?: {
|
|
1465
|
+
"@type": string;
|
|
1466
|
+
url: string | undefined;
|
|
1467
|
+
priceCurrency: string | undefined;
|
|
1468
|
+
price: string | undefined;
|
|
1469
|
+
priceValidUntil: string | undefined;
|
|
1470
|
+
itemCondition: string | undefined;
|
|
1471
|
+
availability: string | undefined;
|
|
1472
|
+
} | undefined;
|
|
1473
|
+
aggregateRating?: {
|
|
1474
|
+
"@type": string;
|
|
1475
|
+
ratingValue: string | undefined;
|
|
1476
|
+
reviewCount: string | undefined;
|
|
1477
|
+
} | undefined;
|
|
1478
|
+
review?: {
|
|
1479
|
+
"@type": string;
|
|
1480
|
+
reviewRating: {
|
|
1481
|
+
"@type": string;
|
|
1482
|
+
ratingValue: string | undefined;
|
|
1483
|
+
bestRating: string | undefined;
|
|
1484
|
+
};
|
|
1485
|
+
author: {
|
|
1486
|
+
"@type": string;
|
|
1487
|
+
name: string | undefined;
|
|
1488
|
+
};
|
|
1489
|
+
} | undefined;
|
|
1490
|
+
image?: undefined;
|
|
1491
|
+
"@context": string;
|
|
1492
|
+
"@type": string;
|
|
1493
|
+
name: any;
|
|
1494
|
+
} | {
|
|
1495
|
+
description: any;
|
|
1496
|
+
sku: any;
|
|
1497
|
+
mpn: any;
|
|
1498
|
+
brand: {
|
|
1499
|
+
"@type": string;
|
|
1500
|
+
name: any;
|
|
1501
|
+
};
|
|
1502
|
+
offers?: {
|
|
1503
|
+
"@type": string;
|
|
1504
|
+
url: string | undefined;
|
|
1505
|
+
priceCurrency: string | undefined;
|
|
1506
|
+
price: string | undefined;
|
|
1507
|
+
priceValidUntil: string | undefined;
|
|
1508
|
+
itemCondition: string | undefined;
|
|
1509
|
+
availability: string | undefined;
|
|
1510
|
+
} | undefined;
|
|
1511
|
+
aggregateRating?: {
|
|
1512
|
+
"@type": string;
|
|
1513
|
+
ratingValue: string | undefined;
|
|
1514
|
+
reviewCount: string | undefined;
|
|
1515
|
+
} | undefined;
|
|
1516
|
+
review?: {
|
|
1517
|
+
"@type": string;
|
|
1518
|
+
reviewRating: {
|
|
1519
|
+
"@type": string;
|
|
1520
|
+
ratingValue: string | undefined;
|
|
1521
|
+
bestRating: string | undefined;
|
|
1522
|
+
};
|
|
1523
|
+
author: {
|
|
1524
|
+
"@type": string;
|
|
1525
|
+
name: string | undefined;
|
|
1526
|
+
};
|
|
1527
|
+
} | undefined;
|
|
1528
|
+
image: string[];
|
|
1529
|
+
"@context": string;
|
|
1530
|
+
"@type": string;
|
|
1531
|
+
name: any;
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
type RTF2 = {
|
|
1535
|
+
json?: Record<string, any>;
|
|
1536
|
+
};
|
|
1537
|
+
type FAQ = {
|
|
1538
|
+
question: string;
|
|
1539
|
+
answer: string;
|
|
1540
|
+
} | {
|
|
1541
|
+
question: string;
|
|
1542
|
+
answerV2: RTF2;
|
|
1543
|
+
};
|
|
1544
|
+
declare const FAQPage: (data: FAQ[]) => {
|
|
1545
|
+
"@context": string;
|
|
1546
|
+
"@type": string;
|
|
1547
|
+
mainEntity: {
|
|
1548
|
+
"@type": string;
|
|
1549
|
+
name: string;
|
|
1550
|
+
acceptedAnswer: {
|
|
1551
|
+
"@type": string;
|
|
1552
|
+
text: string;
|
|
1553
|
+
};
|
|
1554
|
+
}[];
|
|
1555
|
+
};
|
|
1556
|
+
|
|
1557
|
+
type Location = {
|
|
1558
|
+
name?: string;
|
|
1559
|
+
address?: AddressType;
|
|
1560
|
+
};
|
|
1561
|
+
declare const AddressSchema: (address?: AddressType) => {
|
|
1562
|
+
address: {
|
|
1563
|
+
"@type": string;
|
|
1564
|
+
streetAddress: string;
|
|
1565
|
+
addressLocality: string;
|
|
1566
|
+
addressRegion: string | undefined;
|
|
1567
|
+
postalCode: string;
|
|
1568
|
+
addressCountry: string;
|
|
1569
|
+
};
|
|
1570
|
+
} | undefined;
|
|
1571
|
+
declare const LocationSchema: (location?: Location) => {
|
|
1572
|
+
address?: {
|
|
1573
|
+
"@type": string;
|
|
1574
|
+
streetAddress: string;
|
|
1575
|
+
addressLocality: string;
|
|
1576
|
+
addressRegion: string | undefined;
|
|
1577
|
+
postalCode: string;
|
|
1578
|
+
addressCountry: string;
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
"@type": string;
|
|
1581
|
+
name: string | undefined;
|
|
1582
|
+
} | undefined;
|
|
1583
|
+
|
|
1584
|
+
declare const OpeningHoursSchema: (hours?: HoursType) => {
|
|
1585
|
+
openingHours?: undefined;
|
|
1586
|
+
} | {
|
|
1587
|
+
openingHours: string[];
|
|
1588
|
+
};
|
|
1589
|
+
|
|
1590
|
+
type Offer = {
|
|
1591
|
+
url?: string;
|
|
1592
|
+
priceCurrency?: string;
|
|
1593
|
+
price?: string;
|
|
1594
|
+
priceValidUntil?: string;
|
|
1595
|
+
itemCondition?: string;
|
|
1596
|
+
availability?: string;
|
|
1597
|
+
};
|
|
1598
|
+
declare const OfferSchema: (offer?: Offer) => {
|
|
1599
|
+
offers: {
|
|
1600
|
+
"@type": string;
|
|
1601
|
+
url: string | undefined;
|
|
1602
|
+
priceCurrency: string | undefined;
|
|
1603
|
+
price: string | undefined;
|
|
1604
|
+
priceValidUntil: string | undefined;
|
|
1605
|
+
itemCondition: string | undefined;
|
|
1606
|
+
availability: string | undefined;
|
|
1607
|
+
};
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
|
|
1610
|
+
type Organization = {
|
|
1611
|
+
name?: string;
|
|
1612
|
+
url?: string;
|
|
1613
|
+
};
|
|
1614
|
+
declare const PerformerSchema: (performers?: string[]) => {
|
|
1615
|
+
performer: {
|
|
1616
|
+
"@type": string;
|
|
1617
|
+
name: string;
|
|
1618
|
+
};
|
|
1619
|
+
} | undefined;
|
|
1620
|
+
declare const OrganizationSchema: (org?: Organization) => {
|
|
1621
|
+
organizer: {
|
|
1622
|
+
"@type": string;
|
|
1623
|
+
name: string | undefined;
|
|
1624
|
+
url: string | undefined;
|
|
1625
|
+
};
|
|
1626
|
+
} | undefined;
|
|
1627
|
+
|
|
1628
|
+
type PhotoGallery = Photo[];
|
|
1629
|
+
type Photo = {
|
|
1630
|
+
image: ImageType;
|
|
1631
|
+
};
|
|
1632
|
+
declare const PhotoGallerySchema: (gallery?: PhotoGallery) => {
|
|
1633
|
+
image?: undefined;
|
|
1634
|
+
} | {
|
|
1635
|
+
image: string[];
|
|
1636
|
+
};
|
|
1637
|
+
declare const PhotoSchema: (photo?: Photo) => {
|
|
1638
|
+
image: string;
|
|
1639
|
+
} | undefined;
|
|
1640
|
+
|
|
1641
|
+
type Review = {
|
|
1642
|
+
ratingValue?: string;
|
|
1643
|
+
bestRating?: string;
|
|
1644
|
+
author?: string;
|
|
1645
|
+
};
|
|
1646
|
+
type AggregateRating = {
|
|
1647
|
+
ratingValue?: string;
|
|
1648
|
+
reviewCount?: string;
|
|
1649
|
+
};
|
|
1650
|
+
declare const ReviewSchema: (review?: Review) => {
|
|
1651
|
+
review: {
|
|
1652
|
+
"@type": string;
|
|
1653
|
+
reviewRating: {
|
|
1654
|
+
"@type": string;
|
|
1655
|
+
ratingValue: string | undefined;
|
|
1656
|
+
bestRating: string | undefined;
|
|
1657
|
+
};
|
|
1658
|
+
author: {
|
|
1659
|
+
"@type": string;
|
|
1660
|
+
name: string | undefined;
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
} | undefined;
|
|
1664
|
+
declare const AggregateRatingSchema: (rating?: AggregateRating) => {
|
|
1665
|
+
aggregateRating: {
|
|
1666
|
+
"@type": string;
|
|
1667
|
+
ratingValue: string | undefined;
|
|
1668
|
+
reviewCount: string | undefined;
|
|
1669
|
+
};
|
|
1670
|
+
} | undefined;
|
|
1671
|
+
|
|
1303
1672
|
/**
|
|
1304
1673
|
* @type {module:@yext/components-maps~MapProvider}
|
|
1305
1674
|
*/
|
|
@@ -1330,4 +1699,4 @@ declare const LeafletMaps: any;
|
|
|
1330
1699
|
*/
|
|
1331
1700
|
declare const MapQuestMaps: any;
|
|
1332
1701
|
|
|
1333
|
-
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 DirectionCoordinate, 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 };
|
|
1702
|
+
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, 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, 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 ThumbnailType, type WeekType, debuggingParamDetected, getDirections, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
|