@yext/pages-components 1.0.2 → 1.0.3
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-C-GK2f4q.js → debugger-Bs6mU3Vj.js} +1 -1
- package/dist/{debugger-DxMCz_HF.cjs → debugger-D4yFabmm.cjs} +1 -1
- package/dist/{index-zdnlchNT.js → index-D2DTKjQt.js} +3 -3
- package/dist/{index-ChSAX9jE.js → index-DINajhKX.js} +3383 -3836
- package/dist/{index-LU9eqw2L.cjs → index-Eb3ckUJC.cjs} +54 -52
- package/dist/{index-BaREGJWP.cjs → index-Hfn6D19v.cjs} +2 -2
- package/dist/index.d.cts +369 -1
- package/dist/index.d.ts +369 -1
- 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-Eb3ckUJC.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
|
@@ -1300,6 +1300,374 @@ declare const HoursStatus: React__default.FC<HoursStatusProps>;
|
|
|
1300
1300
|
|
|
1301
1301
|
declare const HoursTable: React__default.FC<HoursTableProps>;
|
|
1302
1302
|
|
|
1303
|
+
declare const SchemaWrapper: (json: any) => string;
|
|
1304
|
+
|
|
1305
|
+
declare const BaseSchema: (document: Record<string, any>, schemaType: string) => {
|
|
1306
|
+
"@context": string;
|
|
1307
|
+
"@type": string;
|
|
1308
|
+
name: any;
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1311
|
+
declare const Event: (document: Record<string, any>, schemaType?: string) => {
|
|
1312
|
+
offers?: {
|
|
1313
|
+
"@type": string;
|
|
1314
|
+
url: string | undefined;
|
|
1315
|
+
priceCurrency: string | undefined;
|
|
1316
|
+
price: string | undefined;
|
|
1317
|
+
priceValidUntil: string | undefined;
|
|
1318
|
+
itemCondition: string | undefined;
|
|
1319
|
+
availability: string | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
organizer?: {
|
|
1322
|
+
"@type": string;
|
|
1323
|
+
name: string | undefined;
|
|
1324
|
+
url: string | undefined;
|
|
1325
|
+
} | undefined;
|
|
1326
|
+
performer?: {
|
|
1327
|
+
"@type": string;
|
|
1328
|
+
name: string;
|
|
1329
|
+
} | undefined;
|
|
1330
|
+
startDate: any;
|
|
1331
|
+
endDate: any;
|
|
1332
|
+
description: any;
|
|
1333
|
+
eventAttendanceMode: any;
|
|
1334
|
+
eventStatus: any;
|
|
1335
|
+
address?: {
|
|
1336
|
+
"@type": string;
|
|
1337
|
+
streetAddress: string;
|
|
1338
|
+
addressLocality: string;
|
|
1339
|
+
addressRegion: string | undefined;
|
|
1340
|
+
postalCode: string;
|
|
1341
|
+
addressCountry: string;
|
|
1342
|
+
} | undefined;
|
|
1343
|
+
"@type": string;
|
|
1344
|
+
name: any;
|
|
1345
|
+
image?: undefined;
|
|
1346
|
+
"@context": string;
|
|
1347
|
+
} | {
|
|
1348
|
+
offers?: {
|
|
1349
|
+
"@type": string;
|
|
1350
|
+
url: string | undefined;
|
|
1351
|
+
priceCurrency: string | undefined;
|
|
1352
|
+
price: string | undefined;
|
|
1353
|
+
priceValidUntil: string | undefined;
|
|
1354
|
+
itemCondition: string | undefined;
|
|
1355
|
+
availability: string | undefined;
|
|
1356
|
+
} | undefined;
|
|
1357
|
+
organizer?: {
|
|
1358
|
+
"@type": string;
|
|
1359
|
+
name: string | undefined;
|
|
1360
|
+
url: string | undefined;
|
|
1361
|
+
} | undefined;
|
|
1362
|
+
performer?: {
|
|
1363
|
+
"@type": string;
|
|
1364
|
+
name: string;
|
|
1365
|
+
} | undefined;
|
|
1366
|
+
startDate: any;
|
|
1367
|
+
endDate: any;
|
|
1368
|
+
description: any;
|
|
1369
|
+
eventAttendanceMode: any;
|
|
1370
|
+
eventStatus: any;
|
|
1371
|
+
address?: {
|
|
1372
|
+
"@type": string;
|
|
1373
|
+
streetAddress: string;
|
|
1374
|
+
addressLocality: string;
|
|
1375
|
+
addressRegion: string | undefined;
|
|
1376
|
+
postalCode: string;
|
|
1377
|
+
addressCountry: string;
|
|
1378
|
+
} | undefined;
|
|
1379
|
+
"@type": string;
|
|
1380
|
+
name: any;
|
|
1381
|
+
image: string[];
|
|
1382
|
+
"@context": string;
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
declare const LocalBusiness: (document: Record<string, any>, schemaType?: string) => {
|
|
1386
|
+
description: any;
|
|
1387
|
+
telephone: any;
|
|
1388
|
+
email: any;
|
|
1389
|
+
image?: undefined;
|
|
1390
|
+
openingHours?: undefined;
|
|
1391
|
+
address?: {
|
|
1392
|
+
"@type": string;
|
|
1393
|
+
streetAddress: string;
|
|
1394
|
+
addressLocality: string;
|
|
1395
|
+
addressRegion: string | undefined;
|
|
1396
|
+
postalCode: string;
|
|
1397
|
+
addressCountry: string;
|
|
1398
|
+
} | undefined;
|
|
1399
|
+
"@context": string;
|
|
1400
|
+
"@type": string;
|
|
1401
|
+
name: any;
|
|
1402
|
+
} | {
|
|
1403
|
+
description: any;
|
|
1404
|
+
telephone: any;
|
|
1405
|
+
email: any;
|
|
1406
|
+
image: string[];
|
|
1407
|
+
openingHours?: undefined;
|
|
1408
|
+
address?: {
|
|
1409
|
+
"@type": string;
|
|
1410
|
+
streetAddress: string;
|
|
1411
|
+
addressLocality: string;
|
|
1412
|
+
addressRegion: string | undefined;
|
|
1413
|
+
postalCode: string;
|
|
1414
|
+
addressCountry: string;
|
|
1415
|
+
} | undefined;
|
|
1416
|
+
"@context": string;
|
|
1417
|
+
"@type": string;
|
|
1418
|
+
name: any;
|
|
1419
|
+
} | {
|
|
1420
|
+
description: any;
|
|
1421
|
+
telephone: any;
|
|
1422
|
+
email: any;
|
|
1423
|
+
image?: undefined;
|
|
1424
|
+
openingHours: string[];
|
|
1425
|
+
address?: {
|
|
1426
|
+
"@type": string;
|
|
1427
|
+
streetAddress: string;
|
|
1428
|
+
addressLocality: string;
|
|
1429
|
+
addressRegion: string | undefined;
|
|
1430
|
+
postalCode: string;
|
|
1431
|
+
addressCountry: string;
|
|
1432
|
+
} | undefined;
|
|
1433
|
+
"@context": string;
|
|
1434
|
+
"@type": string;
|
|
1435
|
+
name: any;
|
|
1436
|
+
} | {
|
|
1437
|
+
description: any;
|
|
1438
|
+
telephone: any;
|
|
1439
|
+
email: any;
|
|
1440
|
+
image: string[];
|
|
1441
|
+
openingHours: string[];
|
|
1442
|
+
address?: {
|
|
1443
|
+
"@type": string;
|
|
1444
|
+
streetAddress: string;
|
|
1445
|
+
addressLocality: string;
|
|
1446
|
+
addressRegion: string | undefined;
|
|
1447
|
+
postalCode: string;
|
|
1448
|
+
addressCountry: string;
|
|
1449
|
+
} | undefined;
|
|
1450
|
+
"@context": string;
|
|
1451
|
+
"@type": string;
|
|
1452
|
+
name: any;
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
declare const Product: (document: Record<string, any>, schemaType?: string) => {
|
|
1456
|
+
description: any;
|
|
1457
|
+
sku: any;
|
|
1458
|
+
mpn: any;
|
|
1459
|
+
brand: {
|
|
1460
|
+
"@type": string;
|
|
1461
|
+
name: any;
|
|
1462
|
+
};
|
|
1463
|
+
offers?: {
|
|
1464
|
+
"@type": string;
|
|
1465
|
+
url: string | undefined;
|
|
1466
|
+
priceCurrency: string | undefined;
|
|
1467
|
+
price: string | undefined;
|
|
1468
|
+
priceValidUntil: string | undefined;
|
|
1469
|
+
itemCondition: string | undefined;
|
|
1470
|
+
availability: string | undefined;
|
|
1471
|
+
} | undefined;
|
|
1472
|
+
aggregateRating?: {
|
|
1473
|
+
"@type": string;
|
|
1474
|
+
ratingValue: string | undefined;
|
|
1475
|
+
reviewCount: string | undefined;
|
|
1476
|
+
} | undefined;
|
|
1477
|
+
review?: {
|
|
1478
|
+
"@type": string;
|
|
1479
|
+
reviewRating: {
|
|
1480
|
+
"@type": string;
|
|
1481
|
+
ratingValue: string | undefined;
|
|
1482
|
+
bestRating: string | undefined;
|
|
1483
|
+
};
|
|
1484
|
+
author: {
|
|
1485
|
+
"@type": string;
|
|
1486
|
+
name: string | undefined;
|
|
1487
|
+
};
|
|
1488
|
+
} | undefined;
|
|
1489
|
+
image?: undefined;
|
|
1490
|
+
"@context": string;
|
|
1491
|
+
"@type": string;
|
|
1492
|
+
name: any;
|
|
1493
|
+
} | {
|
|
1494
|
+
description: any;
|
|
1495
|
+
sku: any;
|
|
1496
|
+
mpn: any;
|
|
1497
|
+
brand: {
|
|
1498
|
+
"@type": string;
|
|
1499
|
+
name: any;
|
|
1500
|
+
};
|
|
1501
|
+
offers?: {
|
|
1502
|
+
"@type": string;
|
|
1503
|
+
url: string | undefined;
|
|
1504
|
+
priceCurrency: string | undefined;
|
|
1505
|
+
price: string | undefined;
|
|
1506
|
+
priceValidUntil: string | undefined;
|
|
1507
|
+
itemCondition: string | undefined;
|
|
1508
|
+
availability: string | undefined;
|
|
1509
|
+
} | undefined;
|
|
1510
|
+
aggregateRating?: {
|
|
1511
|
+
"@type": string;
|
|
1512
|
+
ratingValue: string | undefined;
|
|
1513
|
+
reviewCount: string | undefined;
|
|
1514
|
+
} | undefined;
|
|
1515
|
+
review?: {
|
|
1516
|
+
"@type": string;
|
|
1517
|
+
reviewRating: {
|
|
1518
|
+
"@type": string;
|
|
1519
|
+
ratingValue: string | undefined;
|
|
1520
|
+
bestRating: string | undefined;
|
|
1521
|
+
};
|
|
1522
|
+
author: {
|
|
1523
|
+
"@type": string;
|
|
1524
|
+
name: string | undefined;
|
|
1525
|
+
};
|
|
1526
|
+
} | undefined;
|
|
1527
|
+
image: string[];
|
|
1528
|
+
"@context": string;
|
|
1529
|
+
"@type": string;
|
|
1530
|
+
name: any;
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
type RTF2 = {
|
|
1534
|
+
json?: Record<string, any>;
|
|
1535
|
+
};
|
|
1536
|
+
type FAQ = {
|
|
1537
|
+
question: string;
|
|
1538
|
+
answer: string;
|
|
1539
|
+
} | {
|
|
1540
|
+
question: string;
|
|
1541
|
+
answerV2: RTF2;
|
|
1542
|
+
};
|
|
1543
|
+
declare const FAQPage: (data: FAQ[]) => {
|
|
1544
|
+
"@context": string;
|
|
1545
|
+
"@type": string;
|
|
1546
|
+
mainEntity: {
|
|
1547
|
+
"@type": string;
|
|
1548
|
+
name: string;
|
|
1549
|
+
acceptedAnswer: {
|
|
1550
|
+
"@type": string;
|
|
1551
|
+
text: string;
|
|
1552
|
+
};
|
|
1553
|
+
}[];
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
type Location = {
|
|
1557
|
+
name?: string;
|
|
1558
|
+
address?: AddressType;
|
|
1559
|
+
};
|
|
1560
|
+
declare const AddressSchema: (address?: AddressType) => {
|
|
1561
|
+
address: {
|
|
1562
|
+
"@type": string;
|
|
1563
|
+
streetAddress: string;
|
|
1564
|
+
addressLocality: string;
|
|
1565
|
+
addressRegion: string | undefined;
|
|
1566
|
+
postalCode: string;
|
|
1567
|
+
addressCountry: string;
|
|
1568
|
+
};
|
|
1569
|
+
} | undefined;
|
|
1570
|
+
declare const LocationSchema: (location?: Location) => {
|
|
1571
|
+
address?: {
|
|
1572
|
+
"@type": string;
|
|
1573
|
+
streetAddress: string;
|
|
1574
|
+
addressLocality: string;
|
|
1575
|
+
addressRegion: string | undefined;
|
|
1576
|
+
postalCode: string;
|
|
1577
|
+
addressCountry: string;
|
|
1578
|
+
} | undefined;
|
|
1579
|
+
"@type": string;
|
|
1580
|
+
name: string | undefined;
|
|
1581
|
+
} | undefined;
|
|
1582
|
+
|
|
1583
|
+
declare const OpeningHoursSchema: (hours?: HoursType) => {
|
|
1584
|
+
openingHours?: undefined;
|
|
1585
|
+
} | {
|
|
1586
|
+
openingHours: string[];
|
|
1587
|
+
};
|
|
1588
|
+
|
|
1589
|
+
type Offer = {
|
|
1590
|
+
url?: string;
|
|
1591
|
+
priceCurrency?: string;
|
|
1592
|
+
price?: string;
|
|
1593
|
+
priceValidUntil?: string;
|
|
1594
|
+
itemCondition?: string;
|
|
1595
|
+
availability?: string;
|
|
1596
|
+
};
|
|
1597
|
+
declare const OfferSchema: (offer?: Offer) => {
|
|
1598
|
+
offers: {
|
|
1599
|
+
"@type": string;
|
|
1600
|
+
url: string | undefined;
|
|
1601
|
+
priceCurrency: string | undefined;
|
|
1602
|
+
price: string | undefined;
|
|
1603
|
+
priceValidUntil: string | undefined;
|
|
1604
|
+
itemCondition: string | undefined;
|
|
1605
|
+
availability: string | undefined;
|
|
1606
|
+
};
|
|
1607
|
+
} | undefined;
|
|
1608
|
+
|
|
1609
|
+
type Organization = {
|
|
1610
|
+
name?: string;
|
|
1611
|
+
url?: string;
|
|
1612
|
+
};
|
|
1613
|
+
declare const PerformerSchema: (performers?: string[]) => {
|
|
1614
|
+
performer: {
|
|
1615
|
+
"@type": string;
|
|
1616
|
+
name: string;
|
|
1617
|
+
};
|
|
1618
|
+
} | undefined;
|
|
1619
|
+
declare const OrganizationSchema: (org?: Organization) => {
|
|
1620
|
+
organizer: {
|
|
1621
|
+
"@type": string;
|
|
1622
|
+
name: string | undefined;
|
|
1623
|
+
url: string | undefined;
|
|
1624
|
+
};
|
|
1625
|
+
} | undefined;
|
|
1626
|
+
|
|
1627
|
+
type PhotoGallery = Photo[];
|
|
1628
|
+
type Photo = {
|
|
1629
|
+
image: ImageType;
|
|
1630
|
+
};
|
|
1631
|
+
declare const PhotoGallerySchema: (gallery?: PhotoGallery) => {
|
|
1632
|
+
image?: undefined;
|
|
1633
|
+
} | {
|
|
1634
|
+
image: string[];
|
|
1635
|
+
};
|
|
1636
|
+
declare const PhotoSchema: (photo?: Photo) => {
|
|
1637
|
+
image: string;
|
|
1638
|
+
} | undefined;
|
|
1639
|
+
|
|
1640
|
+
type Review = {
|
|
1641
|
+
ratingValue?: string;
|
|
1642
|
+
bestRating?: string;
|
|
1643
|
+
author?: string;
|
|
1644
|
+
};
|
|
1645
|
+
type AggregateRating = {
|
|
1646
|
+
ratingValue?: string;
|
|
1647
|
+
reviewCount?: string;
|
|
1648
|
+
};
|
|
1649
|
+
declare const ReviewSchema: (review?: Review) => {
|
|
1650
|
+
review: {
|
|
1651
|
+
"@type": string;
|
|
1652
|
+
reviewRating: {
|
|
1653
|
+
"@type": string;
|
|
1654
|
+
ratingValue: string | undefined;
|
|
1655
|
+
bestRating: string | undefined;
|
|
1656
|
+
};
|
|
1657
|
+
author: {
|
|
1658
|
+
"@type": string;
|
|
1659
|
+
name: string | undefined;
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
} | undefined;
|
|
1663
|
+
declare const AggregateRatingSchema: (rating?: AggregateRating) => {
|
|
1664
|
+
aggregateRating: {
|
|
1665
|
+
"@type": string;
|
|
1666
|
+
ratingValue: string | undefined;
|
|
1667
|
+
reviewCount: string | undefined;
|
|
1668
|
+
};
|
|
1669
|
+
} | undefined;
|
|
1670
|
+
|
|
1303
1671
|
/**
|
|
1304
1672
|
* @type {module:@yext/components-maps~MapProvider}
|
|
1305
1673
|
*/
|
|
@@ -1330,4 +1698,4 @@ declare const LeafletMaps: any;
|
|
|
1330
1698
|
*/
|
|
1331
1699
|
declare const MapQuestMaps: any;
|
|
1332
1700
|
|
|
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 };
|
|
1701
|
+
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 };
|