@yext/pages-components 1.0.5 → 1.1.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.
- package/THIRD-PARTY-NOTICES +2 -2
- package/dist/debugger-BnwlZ-vk.js +295 -0
- package/dist/debugger-pgjiKsrn.cjs +1 -0
- package/dist/{index-BqDn49hh.js → index-BhnhBQQo.js} +6369 -6400
- package/dist/{index-B_KO1dw5.cjs → index-CcbX0EcK.cjs} +57 -57
- package/dist/{index-s_etEaZu.js → index-DT3oM5Yn.js} +3 -3
- package/dist/{index-Dpvz9qZ8.cjs → index-hthO51Jm.cjs} +2 -2
- package/dist/index.d.cts +3 -13
- package/dist/index.d.ts +3 -13
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +16 -17
- package/dist/style.css +1 -1
- package/package.json +13 -13
- package/dist/debugger-DH7UN_-M.js +0 -286
- package/dist/debugger-DRWb3azj.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import zn from "react";
|
|
2
|
-
import { n as cr, a as fr, b as Hn, m as K, d as D, s as In, p as Sn, r as Pe, e as De, f as Tn, h as vn, i as me, k as pr, l as hr, o as
|
|
2
|
+
import { n as cr, a as fr, b as Hn, m as K, d as D, s as In, p as Sn, r as Pe, e as De, f as Tn, h as vn, i as me, k as pr, l as hr, o as dr, q as ge, t as bn, u as mr, v as gr } from "./index-BhnhBQQo.js";
|
|
3
3
|
function yr(n) {
|
|
4
4
|
const t = [];
|
|
5
5
|
let e = -1;
|
|
@@ -5752,8 +5752,8 @@ function Oo(n, t, e, r) {
|
|
|
5752
5752
|
const p = rr(n, t);
|
|
5753
5753
|
(a === "ol" || a === "ul") && n.listDepth--, n.schema = o;
|
|
5754
5754
|
const m = t.position || {
|
|
5755
|
-
start: { line: null, column: null },
|
|
5756
|
-
end: { line: null, column: null }
|
|
5755
|
+
start: { line: null, column: null, offset: null },
|
|
5756
|
+
end: { line: null, column: null, offset: null }
|
|
5757
5757
|
}, h = i.components && Te.call(i.components, a) ? i.components[a] : a, w = typeof h == "string" || h === zn.Fragment;
|
|
5758
5758
|
if (!uo.isValidElementType(h))
|
|
5759
5759
|
throw new TypeError(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-CcbX0EcK.cjs");function er(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=m.normalizeUri(l.toLowerCase());let a=0;const s=[];for(;++a<=n.footnoteCounts[l];){const p={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&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(p)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const p=c.children[c.children.length-1];p&&p.type==="text"?p.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else i.push(...s);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 yt(n,t){const e=m.createState(n,t),r=e.one(n,null),i=er(e);return i&&r.children.push({type:"text",value:`
|
|
4
4
|
`},i),Array.isArray(r)?{type:"root",children:r}:r}const tr=function(n,t){return n&&"run"in n?rr(n,t):ir(n||t)};function rr(n,t){return(e,r,i)=>{n.run(yt(e,t),r,l=>{i(l)})}}function ir(n){return t=>yt(t,n)}const Pe=["http","https","mailto","tel"];function xt(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<Pe.length;){const l=Pe[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)"}/*!
|
|
@@ -44,4 +44,4 @@ Valid keys: `+JSON.stringify(Object.keys(u),null," "));var O=cn(j,V,M,H,I+"."+V
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/var ft;function Ul(){return ft||(ft=1,process.env.NODE_ENV!=="production"&&function(){var n=Symbol.for("react.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),E=!1,y=!1,x=!1,w=!1,F=!1,C;C=Symbol.for("react.module.reference");function z(L){return!!(typeof L=="string"||typeof L=="function"||L===e||L===i||F||L===r||L===c||L===d||w||L===h||E||y||x||typeof L=="object"&&L!==null&&(L.$$typeof===g||L.$$typeof===p||L.$$typeof===l||L.$$typeof===o||L.$$typeof===s||L.$$typeof===C||L.getModuleId!==void 0))}function S(L){if(typeof L=="object"&&L!==null){var En=L.$$typeof;switch(En){case n:var Tn=L.type;switch(Tn){case e:case i:case r:case c:case d:return Tn;default:var Rn=Tn&&Tn.$$typeof;switch(Rn){case a:case o:case s:case g:case p:case l:return Rn;default:return En}}case t:return En}}}var k=o,R=l,q=n,X=s,un=e,_=g,A=p,W=t,nn=i,Y=r,en=c,rn=d,pn=!1,dn=!1;function u(L){return pn||(pn=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(L){return dn||(dn=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(L){return S(L)===o}function f(L){return S(L)===l}function M(L){return typeof L=="object"&&L!==null&&L.$$typeof===n}function H(L){return S(L)===s}function I(L){return S(L)===e}function j(L){return S(L)===g}function B(L){return S(L)===p}function Q(L){return S(L)===t}function V(L){return S(L)===i}function cn(L){return S(L)===r}function O(L){return S(L)===c}function mn(L){return S(L)===d}Z.ContextConsumer=k,Z.ContextProvider=R,Z.Element=q,Z.ForwardRef=X,Z.Fragment=un,Z.Lazy=_,Z.Memo=A,Z.Portal=W,Z.Profiler=nn,Z.StrictMode=Y,Z.Suspense=en,Z.SuspenseList=rn,Z.isAsyncMode=u,Z.isConcurrentMode=P,Z.isContextConsumer=D,Z.isContextProvider=f,Z.isElement=M,Z.isForwardRef=H,Z.isFragment=I,Z.isLazy=j,Z.isMemo=B,Z.isPortal=Q,Z.isProfiler=V,Z.isStrictMode=cn,Z.isSuspense=O,Z.isSuspenseList=mn,Z.isValidElementType=z,Z.typeOf=S}()),Z}process.env.NODE_ENV==="production"?ge.exports=ql():ge.exports=Ul();var Hl=ge.exports;const Vl=m.getDefaultExportFromCjs(Hl);function Yl(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 Wl(n){return n.join(" ").trim()}function Ql(n,t){const e={};return(n[n.length-1]===""?[...n,""]:n).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}var Se={exports:{}},pt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xl=/\n/g,Kl=/^\s*/,Gl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Jl=/^:\s*/,Zl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,no=/^[;\s]*/,eo=/^\s+|\s+$/g,to=`
|
|
47
|
-
`,ht="/",dt="*",vn="",ro="comment",io="declaration",lo=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(E){var y=E.match(Xl);y&&(e+=y.length);var x=E.lastIndexOf(to);r=~x?E.length-x:r+E.length}function l(){var E={line:e,column:r};return function(y){return y.position=new o(E),c(),y}}function o(E){this.start=E,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function a(E){var y=new Error(t.source+":"+e+":"+r+": "+E);if(y.reason=E,y.filename=t.source,y.line=e,y.column=r,y.source=n,!t.silent)throw y}function s(E){var y=E.exec(n);if(y){var x=y[0];return i(x),n=n.slice(x.length),y}}function c(){s(Kl)}function d(E){var y;for(E=E||[];y=p();)y!==!1&&E.push(y);return E}function p(){var E=l();if(!(ht!=n.charAt(0)||dt!=n.charAt(1))){for(var y=2;vn!=n.charAt(y)&&(dt!=n.charAt(y)||ht!=n.charAt(y+1));)++y;if(y+=2,vn===n.charAt(y-1))return a("End of comment missing");var x=n.slice(2,y-2);return r+=2,i(x),n=n.slice(y),r+=2,E({type:ro,comment:x})}}function g(){var E=l(),y=s(Gl);if(y){if(p(),!s(Jl))return a("property missing ':'");var x=s(Zl),w=E({type:io,property:mt(y[0].replace(pt,vn)),value:x?mt(x[0].replace(pt,vn)):vn});return s(no),w}}function h(){var E=[];d(E);for(var y;y=g();)y!==!1&&(E.push(y),d(E));return E}return c(),h()};function mt(n){return n?n.replace(eo,vn):vn}var oo=lo;function Yt(n,t){var e=null;if(!n||typeof n!="string")return e;for(var r,i=oo(n),l=typeof t=="function",o,a,s=0,c=i.length;s<c;s++)r=i[s],o=r.property,a=r.value,l?t(o,a,r):a&&(e||(e={}),e[o]=a);return e}Se.exports=Yt;Se.exports.default=Yt;var ao=Se.exports;const uo=m.getDefaultExportFromCjs(ao),ye={}.hasOwnProperty,so=new Set(["table","thead","tbody","tfoot","tr"]);function Wt(n,t){const e=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?e.push(co(n,i,r,t)):i.type==="text"?(t.type!=="element"||!so.has(t.tagName)||!Yl(i))&&e.push(i.value):i.type==="raw"&&!n.options.skipHtml&&e.push(i.value);return e}function co(n,t,e,r){const i=n.options,l=i.transformLinkUri===void 0?xt:i.transformLinkUri,o=n.schema,a=t.tagName,s={};let c=o,d;if(o.space==="html"&&a==="svg"&&(c=$l,n.schema=c),t.properties)for(d in t.properties)ye.call(t.properties,d)&&po(s,d,t.properties[d],n);(a==="ol"||a==="ul")&&n.listDepth++;const p=Wt(n,t);(a==="ol"||a==="ul")&&n.listDepth--,n.schema=o;const g=t.position||{start:{line:null,column:null},end:{line:null,column:null}},h=i.components&&ye.call(i.components,a)?i.components[a]:a,E=typeof h=="string"||h===On.Fragment;if(!Vl.isValidElementType(h))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(s.key=e,a==="a"&&i.linkTarget&&(s.target=typeof i.linkTarget=="function"?i.linkTarget(String(s.href||""),t.children,typeof s.title=="string"?s.title:null):i.linkTarget),a==="a"&&l&&(s.href=l(String(s.href||""),t.children,typeof s.title=="string"?s.title:null)),!E&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(s.inline=!0),!E&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(s.level=Number.parseInt(a.charAt(1),10)),a==="img"&&i.transformImageUri&&(s.src=i.transformImageUri(String(s.src||""),String(s.alt||""),typeof s.title=="string"?s.title:null)),!E&&a==="li"&&r.type==="element"){const y=fo(t);s.checked=y&&y.properties?!!y.properties.checked:null,s.index=ae(r,t),s.ordered=r.tagName==="ol"}return!E&&(a==="ol"||a==="ul")&&(s.ordered=a==="ol",s.depth=n.listDepth),(a==="td"||a==="th")&&(s.align&&(s.style||(s.style={}),s.style.textAlign=s.align,delete s.align),E||(s.isHeader=a==="th")),!E&&a==="tr"&&r.type==="element"&&(s.isHeader=r.tagName==="thead"),i.sourcePos&&(s["data-sourcepos"]=go(g)),!E&&i.rawSourcePos&&(s.sourcePosition=t.position),!E&&i.includeElementIndex&&(s.index=ae(r,t),s.siblingCount=ae(r)),E||(s.node=t),p.length>0?On.createElement(h,s,p):On.createElement(h,s)}function fo(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 ae(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 po(n,t,e,r){const i=Fl(r.schema,t);let l=e;l==null||l!==l||(Array.isArray(l)&&(l=i.commaSeparated?Ql(l):Wl(l)),i.property==="style"&&typeof l=="string"&&(l=ho(l)),i.space&&i.property?n[ye.call(st,i.property)?st[i.property]:i.property]=l:i.attribute&&(n[i.attribute]=l))}function ho(n){const t={};try{uo(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,mo)]=i}}function mo(n,t){return t.toUpperCase()}function go(n){return[n.start.line,":",n.start.column,"-",n.end.line,":",n.end.column].map(String).join("")}const gt={}.hasOwnProperty,yo="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nn={plugins:{to:"remarkPlugins",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 Qt(n){for(const l in Nn)if(gt.call(Nn,l)&>.call(n,l)){const o=Nn[l];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${l}\` (see <${yo}#${o.id}> for more info)`),delete Nn[l]}const t=br().use(bl).use(n.remarkPlugins||[]).use(tr,{...n.remarkRehypeOptions,allowDangerousHtml:!0}).use(n.rehypePlugins||[]).use(Nl,n),e=new bt;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=On.createElement(On.Fragment,{},Wt({options:n,schema:Bl,listDepth:0},r));return n.className&&(i=On.createElement("div",{className:n.className},i)),i}Qt.propTypes={children:$.string,className:$.string,allowElement:$.func,allowedElements:$.arrayOf($.string),disallowedElements:$.arrayOf($.string),unwrapDisallowed:$.bool,remarkPlugins:$.arrayOf($.oneOfType([$.object,$.func,$.arrayOf($.oneOfType([$.bool,$.string,$.object,$.func,$.arrayOf($.any)]))])),rehypePlugins:$.arrayOf($.oneOfType([$.object,$.func,$.arrayOf($.oneOfType([$.bool,$.string,$.object,$.func,$.arrayOf($.any)]))])),sourcePos:$.bool,rawSourcePos:$.bool,skipHtml:$.bool,includeElementIndex:$.bool,transformLinkUri:$.oneOfType([$.func,$.bool]),linkTarget:$.oneOfType([$.func,$.string]),transformImageUri:$.func,components:$.object};exports.default=Qt;exports.uriTransformer=xt;
|
|
47
|
+
`,ht="/",dt="*",vn="",ro="comment",io="declaration",lo=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(E){var y=E.match(Xl);y&&(e+=y.length);var x=E.lastIndexOf(to);r=~x?E.length-x:r+E.length}function l(){var E={line:e,column:r};return function(y){return y.position=new o(E),c(),y}}function o(E){this.start=E,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function a(E){var y=new Error(t.source+":"+e+":"+r+": "+E);if(y.reason=E,y.filename=t.source,y.line=e,y.column=r,y.source=n,!t.silent)throw y}function s(E){var y=E.exec(n);if(y){var x=y[0];return i(x),n=n.slice(x.length),y}}function c(){s(Kl)}function d(E){var y;for(E=E||[];y=p();)y!==!1&&E.push(y);return E}function p(){var E=l();if(!(ht!=n.charAt(0)||dt!=n.charAt(1))){for(var y=2;vn!=n.charAt(y)&&(dt!=n.charAt(y)||ht!=n.charAt(y+1));)++y;if(y+=2,vn===n.charAt(y-1))return a("End of comment missing");var x=n.slice(2,y-2);return r+=2,i(x),n=n.slice(y),r+=2,E({type:ro,comment:x})}}function g(){var E=l(),y=s(Gl);if(y){if(p(),!s(Jl))return a("property missing ':'");var x=s(Zl),w=E({type:io,property:mt(y[0].replace(pt,vn)),value:x?mt(x[0].replace(pt,vn)):vn});return s(no),w}}function h(){var E=[];d(E);for(var y;y=g();)y!==!1&&(E.push(y),d(E));return E}return c(),h()};function mt(n){return n?n.replace(eo,vn):vn}var oo=lo;function Yt(n,t){var e=null;if(!n||typeof n!="string")return e;for(var r,i=oo(n),l=typeof t=="function",o,a,s=0,c=i.length;s<c;s++)r=i[s],o=r.property,a=r.value,l?t(o,a,r):a&&(e||(e={}),e[o]=a);return e}Se.exports=Yt;Se.exports.default=Yt;var ao=Se.exports;const uo=m.getDefaultExportFromCjs(ao),ye={}.hasOwnProperty,so=new Set(["table","thead","tbody","tfoot","tr"]);function Wt(n,t){const e=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?e.push(co(n,i,r,t)):i.type==="text"?(t.type!=="element"||!so.has(t.tagName)||!Yl(i))&&e.push(i.value):i.type==="raw"&&!n.options.skipHtml&&e.push(i.value);return e}function co(n,t,e,r){const i=n.options,l=i.transformLinkUri===void 0?xt:i.transformLinkUri,o=n.schema,a=t.tagName,s={};let c=o,d;if(o.space==="html"&&a==="svg"&&(c=$l,n.schema=c),t.properties)for(d in t.properties)ye.call(t.properties,d)&&po(s,d,t.properties[d],n);(a==="ol"||a==="ul")&&n.listDepth++;const p=Wt(n,t);(a==="ol"||a==="ul")&&n.listDepth--,n.schema=o;const g=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=i.components&&ye.call(i.components,a)?i.components[a]:a,E=typeof h=="string"||h===On.Fragment;if(!Vl.isValidElementType(h))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(s.key=e,a==="a"&&i.linkTarget&&(s.target=typeof i.linkTarget=="function"?i.linkTarget(String(s.href||""),t.children,typeof s.title=="string"?s.title:null):i.linkTarget),a==="a"&&l&&(s.href=l(String(s.href||""),t.children,typeof s.title=="string"?s.title:null)),!E&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(s.inline=!0),!E&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(s.level=Number.parseInt(a.charAt(1),10)),a==="img"&&i.transformImageUri&&(s.src=i.transformImageUri(String(s.src||""),String(s.alt||""),typeof s.title=="string"?s.title:null)),!E&&a==="li"&&r.type==="element"){const y=fo(t);s.checked=y&&y.properties?!!y.properties.checked:null,s.index=ae(r,t),s.ordered=r.tagName==="ol"}return!E&&(a==="ol"||a==="ul")&&(s.ordered=a==="ol",s.depth=n.listDepth),(a==="td"||a==="th")&&(s.align&&(s.style||(s.style={}),s.style.textAlign=s.align,delete s.align),E||(s.isHeader=a==="th")),!E&&a==="tr"&&r.type==="element"&&(s.isHeader=r.tagName==="thead"),i.sourcePos&&(s["data-sourcepos"]=go(g)),!E&&i.rawSourcePos&&(s.sourcePosition=t.position),!E&&i.includeElementIndex&&(s.index=ae(r,t),s.siblingCount=ae(r)),E||(s.node=t),p.length>0?On.createElement(h,s,p):On.createElement(h,s)}function fo(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 ae(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 po(n,t,e,r){const i=Fl(r.schema,t);let l=e;l==null||l!==l||(Array.isArray(l)&&(l=i.commaSeparated?Ql(l):Wl(l)),i.property==="style"&&typeof l=="string"&&(l=ho(l)),i.space&&i.property?n[ye.call(st,i.property)?st[i.property]:i.property]=l:i.attribute&&(n[i.attribute]=l))}function ho(n){const t={};try{uo(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,mo)]=i}}function mo(n,t){return t.toUpperCase()}function go(n){return[n.start.line,":",n.start.column,"-",n.end.line,":",n.end.column].map(String).join("")}const gt={}.hasOwnProperty,yo="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Nn={plugins:{to:"remarkPlugins",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 Qt(n){for(const l in Nn)if(gt.call(Nn,l)&>.call(n,l)){const o=Nn[l];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${l}\` (see <${yo}#${o.id}> for more info)`),delete Nn[l]}const t=br().use(bl).use(n.remarkPlugins||[]).use(tr,{...n.remarkRehypeOptions,allowDangerousHtml:!0}).use(n.rehypePlugins||[]).use(Nl,n),e=new bt;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=On.createElement(On.Fragment,{},Wt({options:n,schema:Bl,listDepth:0},r));return n.className&&(i=On.createElement("div",{className:n.className},i)),i}Qt.propTypes={children:$.string,className:$.string,allowElement:$.func,allowedElements:$.arrayOf($.string),disallowedElements:$.arrayOf($.string),unwrapDisallowed:$.bool,remarkPlugins:$.arrayOf($.oneOfType([$.object,$.func,$.arrayOf($.oneOfType([$.bool,$.string,$.object,$.func,$.arrayOf($.any)]))])),rehypePlugins:$.arrayOf($.oneOfType([$.object,$.func,$.arrayOf($.oneOfType([$.bool,$.string,$.object,$.func,$.arrayOf($.any)]))])),sourcePos:$.bool,rawSourcePos:$.bool,skipHtml:$.bool,includeElementIndex:$.bool,transformLinkUri:$.oneOfType([$.func,$.bool]),linkTarget:$.oneOfType([$.func,$.string]),transformImageUri:$.func,components:$.object};exports.default=Qt;exports.uriTransformer=xt;
|
package/dist/index.d.cts
CHANGED
|
@@ -146,7 +146,7 @@ type TrackProps = {
|
|
|
146
146
|
action: Action;
|
|
147
147
|
destinationUrl: string;
|
|
148
148
|
scope?: string;
|
|
149
|
-
eventName
|
|
149
|
+
eventName: string;
|
|
150
150
|
amount?: number;
|
|
151
151
|
currency?: string;
|
|
152
152
|
customTags?: Record<string, string>;
|
|
@@ -500,22 +500,12 @@ type ImageProps = OtherImageProps | FixedImageProps | AspectImageProps;
|
|
|
500
500
|
*/
|
|
501
501
|
declare const Image: ({ image, className, width, height, aspectRatio, layout, placeholder, imgOverrides, style, loading, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
502
502
|
|
|
503
|
-
/**
|
|
504
|
-
* Constants for available link types.
|
|
505
|
-
*
|
|
506
|
-
* @public
|
|
507
|
-
*/
|
|
508
|
-
declare const LinkTypes: {
|
|
509
|
-
readonly URL: "URL";
|
|
510
|
-
readonly Email: "Email";
|
|
511
|
-
readonly Phone: "Phone";
|
|
512
|
-
};
|
|
513
503
|
/**
|
|
514
504
|
* Type of link types that might be received from the platform.
|
|
515
505
|
*
|
|
516
506
|
* @public
|
|
517
507
|
*/
|
|
518
|
-
type LinkType =
|
|
508
|
+
type LinkType = "URL" | "Email" | "EMAIL" | "Phone" | "PHONE" | "DRIVING_DIRECTIONS" | "CLICK_TO_WEBSITE" | "OTHER";
|
|
519
509
|
/**
|
|
520
510
|
* Type for CTA field
|
|
521
511
|
* Note that when coming from the platform the label will always be a string
|
|
@@ -2063,4 +2053,4 @@ declare const LeafletMaps: MapProvider;
|
|
|
2063
2053
|
|
|
2064
2054
|
declare const MapQuestMaps: MapProvider;
|
|
2065
2055
|
|
|
2066
|
-
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,
|
|
2056
|
+
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, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ type TrackProps = {
|
|
|
146
146
|
action: Action;
|
|
147
147
|
destinationUrl: string;
|
|
148
148
|
scope?: string;
|
|
149
|
-
eventName
|
|
149
|
+
eventName: string;
|
|
150
150
|
amount?: number;
|
|
151
151
|
currency?: string;
|
|
152
152
|
customTags?: Record<string, string>;
|
|
@@ -500,22 +500,12 @@ type ImageProps = OtherImageProps | FixedImageProps | AspectImageProps;
|
|
|
500
500
|
*/
|
|
501
501
|
declare const Image: ({ image, className, width, height, aspectRatio, layout, placeholder, imgOverrides, style, loading, }: ImageProps) => react_jsx_runtime.JSX.Element;
|
|
502
502
|
|
|
503
|
-
/**
|
|
504
|
-
* Constants for available link types.
|
|
505
|
-
*
|
|
506
|
-
* @public
|
|
507
|
-
*/
|
|
508
|
-
declare const LinkTypes: {
|
|
509
|
-
readonly URL: "URL";
|
|
510
|
-
readonly Email: "Email";
|
|
511
|
-
readonly Phone: "Phone";
|
|
512
|
-
};
|
|
513
503
|
/**
|
|
514
504
|
* Type of link types that might be received from the platform.
|
|
515
505
|
*
|
|
516
506
|
* @public
|
|
517
507
|
*/
|
|
518
|
-
type LinkType =
|
|
508
|
+
type LinkType = "URL" | "Email" | "EMAIL" | "Phone" | "PHONE" | "DRIVING_DIRECTIONS" | "CLICK_TO_WEBSITE" | "OTHER";
|
|
519
509
|
/**
|
|
520
510
|
* Type for CTA field
|
|
521
511
|
* Note that when coming from the platform the label will always be a string
|
|
@@ -2063,4 +2053,4 @@ declare const LeafletMaps: MapProvider;
|
|
|
2063
2053
|
|
|
2064
2054
|
declare const MapQuestMaps: MapProvider;
|
|
2065
2055
|
|
|
2066
|
-
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,
|
|
2056
|
+
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, 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 };
|
|
@@ -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-CcbX0EcK.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.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,
|
|
1
|
+
import { A as e, a2 as t, ab as i, x as o, y as r, E as c, H as n, ac as p, Z as u, ad as g, Q as h, ai as m, X as l, _ as S, a1 as d, ae as M, V as P, W as y, I as A, J as L, ag as x, U as C, T as f, K as O, L as b, $ as v, S as B, a3 as R, N as T, M as D, ah as H, af as I, P as k, a5 as w, a4 as G, a7 as Q, a6 as z, a8 as E, a9 as F, a0 as V, aa as W, Y as J, F as K, w as N, z as U, R as X, D as Y, O as Z, C as _, G as $, B as j } from "./index-BhnhBQQo.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Address,
|
|
4
4
|
t as AddressSchema,
|
|
@@ -16,32 +16,31 @@ export {
|
|
|
16
16
|
S as Event,
|
|
17
17
|
d as FAQPage,
|
|
18
18
|
M as GoogleMaps,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
P as HoursStatus,
|
|
20
|
+
y as HoursTable,
|
|
21
|
+
A as Image,
|
|
22
|
+
L as ImageLayoutOption,
|
|
23
23
|
x as LeafletMaps,
|
|
24
24
|
C as LegacyRichText,
|
|
25
25
|
f as LexicalRichText,
|
|
26
26
|
O as Link,
|
|
27
|
-
T as LinkTypes,
|
|
28
27
|
b as ListingPublisherOption,
|
|
29
28
|
v as LocalBusiness,
|
|
30
29
|
B as LocationMap,
|
|
31
30
|
R as LocationSchema,
|
|
32
|
-
|
|
31
|
+
T as Map,
|
|
33
32
|
D as MapProviderOption,
|
|
34
33
|
H as MapQuestMaps,
|
|
35
34
|
I as MapboxMaps,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
k as Marker,
|
|
36
|
+
w as OfferSchema,
|
|
37
|
+
G as OpeningHoursSchema,
|
|
38
|
+
Q as OrganizationSchema,
|
|
39
|
+
z as PerformerSchema,
|
|
40
|
+
E as PhotoGallerySchema,
|
|
41
|
+
F as PhotoSchema,
|
|
42
|
+
V as Product,
|
|
43
|
+
W as ReviewSchema,
|
|
45
44
|
J as SchemaWrapper,
|
|
46
45
|
K as debuggingParamDetected,
|
|
47
46
|
N as getDirections,
|
|
@@ -51,5 +50,5 @@ export {
|
|
|
51
50
|
Z as useMapContext,
|
|
52
51
|
_ as usePageView,
|
|
53
52
|
$ as useScope,
|
|
54
|
-
|
|
53
|
+
j as useTrack
|
|
55
54
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.address-line abbr{text-decoration:none}._yext-default-richtextv2-theme__ul1_13v3w_17{padding:0;margin:0 0 0 16px;list-style-type:disc;list-style-position:inside}._yext-default-richtextv2-theme__ul2_13v3w_25{padding:0;margin:0 0 0 16px;list-style-type:circle;list-style-position:inside}._yext-default-richtextv2-theme__ul3_13v3w_33{padding:0;margin:0 0 0 16px;list-style-type:square;list-style-position:inside}._yext-default-richtextv2-theme__ltr_13v3w_55{text-align:left}._yext-default-richtextv2-theme__rtl_13v3w_58{text-align:right}._yext-default-richtextv2-theme__paragraph_13v3w_61{font-size:14.67px;font-weight:400;line-height:18.67px;color:#000;margin:0;padding:3px 2px;position:relative}._yext-default-richtextv2-theme__quote_13v3w_70{margin:0 0 10px 20px;font-size:15px;color:#65676b;border-left-color:#ced0d4;border-left-width:4px;border-left-style:solid;padding-left:16px}._yext-default-richtextv2-theme__h1_13v3w_81{font-size:26.67px;font-weight:700;line-height:30.67px;color:#000;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h2_13v3w_89{font-size:21.33px;font-weight:700;line-height:25.33px;color:#000;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h3_13v3w_97{font-size:18.67px;font-weight:400;line-height:22.67px;color:#434343;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h4_13v3w_105{font-size:16px;font-weight:400;line-height:20px;color:#666;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h5_13v3w_113{font-size:14.67px;font-weight:400;line-height:18.67px;color:#666;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h6_13v3w_121{font-size:14.67px;font-weight:400;font-style:italic;line-height:18.67px;color:#666;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__textBold_13v3w_130{font-weight:700}._yext-default-richtextv2-theme__textItalic_13v3w_133{font-style:italic}._yext-default-richtextv2-theme__textUnderline_13v3w_136{text-decoration:underline}._yext-default-richtextv2-theme__textStrikethrough_13v3w_139{text-decoration:line-through}._yext-default-richtextv2-theme__textUnderlineStrikethrough_13v3w_142{text-decoration:underline line-through}._yext-default-richtextv2-theme__textSubscript_13v3w_145{font-size:.8em;vertical-align:sub!important}._yext-default-richtextv2-theme__textSuperscript_13v3w_149{font-size:.8em;vertical-align:super}._yext-default-richtextv2-theme__textCode_13v3w_153{background-color:#f0f2f5;padding:1px .25rem;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%}._yext-default-richtextv2-theme__hashtag_13v3w_159{background-color:#5890ff26;border-bottom:1px solid rgba(88,144,255,.3)}._yext-default-richtextv2-theme__link_13v3w_163{color:#216fdb;text-decoration:none}._yext-default-richtextv2-theme__link_13v3w_163:hover{text-decoration:underline;cursor:pointer}._yext-default-richtextv2-theme__code_13v3w_171{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;display:block;padding:8px 8px 8px 52px;line-height:1.53;font-size:13px;margin:8px 0;-moz-tab-size:2;tab-size:2;overflow-x:auto;position:relative}._yext-default-richtextv2-theme__code_13v3w_171:before{content:attr(data-gutter);position:absolute;background-color:#eee;left:0;top:0;border-right:1px solid #ccc;padding:8px;color:#777;white-space:pre-wrap;text-align:right;min-width:25px}._yext-default-richtextv2-theme__table_13v3w_199{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:calc(100% - 25px);margin:30px 0}._yext-default-richtextv2-theme__tableCell_13v3w_208{border:1px solid #bbb;min-width:75px;vertical-align:top;text-align:start;padding:6px 8px;position:relative;cursor:default;outline:none}._yext-default-richtextv2-theme__tableCellHeader_13v3w_218{background-color:#f2f3f5;text-align:start}._yext-default-richtextv2-theme__characterLimit_13v3w_222{display:inline;background-color:#fbb!important}._yext-default-richtextv2-theme__ol1_13v3w_226{padding:0;margin:0 0 0 16px;list-style-type:decimal;list-style-position:inside}._yext-default-richtextv2-theme__ol2_13v3w_233{padding:0;margin:0 0 0 16px;list-style-type:upper-alpha;list-style-position:inside}._yext-default-richtextv2-theme__ol3_13v3w_240{padding:0;margin:0 0 0 16px;list-style-type:lower-alpha;list-style-position:inside}._yext-default-richtextv2-theme__ol4_13v3w_247{padding:0;margin:0 0 0 16px;list-style-type:upper-roman;list-style-position:inside}._yext-default-richtextv2-theme__ol5_13v3w_254{padding:0;margin:0 0 0 16px;list-style-type:lower-roman;list-style-position:inside}._yext-default-richtextv2-theme__ul_13v3w_17{padding:0;margin:0 0 0 16px;list-style-position:inside}._yext-default-richtextv2-theme__listItem_13v3w_267{margin:0 32px}._yext-default-richtextv2-theme__listItemChecked_13v3w_270,._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271{position:relative;margin-left:8px;margin-right:8px;padding-left:24px;padding-right:24px;list-style-type:none;outline:none}._yext-default-richtextv2-theme__listItemChecked_13v3w_270{text-decoration:line-through}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271:before,._yext-default-richtextv2-theme__listItemChecked_13v3w_270:before{content:"";width:16px;height:16px;top:2px;left:0;cursor:pointer;display:block;background-size:cover;position:absolute}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271._rtl_13v3w_295:before,._yext-default-richtextv2-theme__listItemChecked_13v3w_270._rtl_13v3w_295:before{left:auto;right:0}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271:focus:before,._yext-default-richtextv2-theme__listItemChecked_13v3w_270:focus:before{box-shadow:0 0 0 2px #a6cdfe;border-radius:2px}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271:before{border:1px solid #999;border-radius:2px}._yext-default-richtextv2-theme__listItemChecked_13v3w_270:before{border:1px solid rgb(61,135,245);border-radius:2px;background-color:#3d87f5;background-repeat:no-repeat}._yext-default-richtextv2-theme__listItemChecked_13v3w_270:after{content:"";cursor:pointer;border-color:#fff;border-style:solid;position:absolute;display:block;top:6px;width:3px;left:7px;right:7px;height:6px;transform:rotate(45deg);border-width:0 2px 2px 0}._yext-default-richtextv2-theme__nestedListItem_13v3w_330{list-style-type:none}._yext-default-richtextv2-theme__nestedListItem_13v3w_330:before,._yext-default-richtextv2-theme__nestedListItem_13v3w_330:after{display:none}._yext-default-richtextv2-theme__tokenComment_13v3w_337{color:#708090}._yext-default-richtextv2-theme__tokenPunctuation_13v3w_340{color:#999}._yext-default-richtextv2-theme__tokenProperty_13v3w_343{color:#905}._yext-default-richtextv2-theme__tokenSelector_13v3w_346{color:#690}._yext-default-richtextv2-theme__tokenOperator_13v3w_349{color:#9a6e3a}._yext-default-richtextv2-theme__tokenAttr_13v3w_352{color:#07a}._yext-default-richtextv2-theme__tokenVariable_13v3w_355{color:#e90}._yext-default-richtextv2-theme__tokenFunction_13v3w_358{color:#dd4a68}._yext-default-richtextv2-theme__mark_13v3w_361{background:#ffd40024;border-bottom:2px solid rgba(255,212,0,.3);padding-bottom:2px}._yext-default-richtextv2-theme__markOverlap_13v3w_366{background:#ffd4004d;border-bottom:2px solid rgba(255,212,0,.7)}._yext-default-richtextv2-theme__mark_13v3w_361._selected_13v3w_370{background:#ffd40080;border-bottom:2px solid rgba(255,212,0,1)}._yext-default-richtextv2-theme__markOverlap_13v3w_366._selected_13v3w_370{background:#ffd400b3;border-bottom:2px solid rgba(255,212,0,.7)}._yext-default-richtextv2-theme__embedBlock_13v3w_378{-webkit-user-select:none;user-select:none}._yext-default-richtextv2-theme__embedBlockFocus_13v3w_381{outline:2px solid rgb(60,132,244)}span._yext-default-richtextv2-theme__image_13v3w_385{cursor:default;display:inline-block;position:relative;-webkit-user-select:none;user-select:none}._editor-inner_1mmqo_6{position:relative}._no-border_1mmqo_10{border:none}html{--yxt-hoursTable-col1-width: 128px;--yxt-hoursTable-col2-width: 256px}.HoursTable-row{display:flex}.HoursTable-day{flex:0 0 var(--yxt-hoursTable-col1-width)}.HoursTable-intervals{display:flex;flex-direction:column;flex:0 0 var(--yxt-hoursTable-col2-width)}.xYextDebug{@keyframes pulse{0%{background:transparent}50%{background:#00000026}to{background:transparent}}}.xYextDebug [data-ya-track]{outline:1px dashed blue;scroll-margin:32px}.xYextDebug [data-ya-track].analytics-event-highlight{animation-name:pulse;animation-duration:2s;animation-iteration-count:infinite;outline:2px dashed black;padding:8px 16px}.xYextDebug [data-ya-scope]{outline:1px dashed green;position:relative}.xYextDebug [data-ya-scope]:after{content:attr(data-ya-scope);top:0;left:0;color:#000;display:block;position:absolute;padding:10px;outline:1px solid #178acd;background:#00000073;color:#fff;z-index:2147483647}.xYextDebug .analytics-debugger{position:fixed;height:80%;top:10%;bottom:10%;right:0;transition:right .3s ease-out;color:#fff;display:flex!important;z-index:99999}.xYextDebug .analytics-debugger-toggles{width:100px;border-top-left-radius:4px;border-bottom-left-radius:4px;background:#000000bf;margin:auto;display:flex;flex-direction:column;border-right:1px solid white}.xYextDebug .analytics-debugger-toggle{outline:none;text-align:center;padding:10px;cursor:pointer}.xYextDebug .analytics-debugger-toggle.is-active{background:#178acd}.xYextDebug .analytics-debugger-toggle:first-child{border-top-left-radius:4px}.xYextDebug .analytics-debugger-toggle:last-child{border-bottom-left-radius:4px}.xYextDebug .analytics-debugger-toggle:not(:last-child){border-bottom:1px solid white}.xYextDebug .analytics-debugger-toggle:hover{background:#178acd}.xYextDebug .analytics-debugger-tabs{width:250px;border-top-left-radius:4px;border-bottom-left-radius:4px;background:#000000bf}.xYextDebug .analytics-debugger-tab{display:flex;flex-direction:column;height:100%}.xYextDebug .analytics-debugger-tab-title{background:#178acd;color:#fff;padding:20px;border-bottom:1px solid white;border-top-left-radius:4px}.xYextDebug .analytics-debugger-list{overflow-y:scroll;flex-grow:1}.xYextDebug .analytics-debugger-listItem{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.xYextDebug .analytics-debugger-listItem:not(:last-child){border-bottom:1px solid white}.xYextDebug .analytics-debugger-button{padding:10px 20px;text-align:left;width:100%}.xYextDebug .analytics-debugger-button.is-active{background:#178acd}.xYextDebug .analytics-debugger-button:hover:not(.is-active){background:#ffffff4d;cursor:pointer}.xYextDebug .analytics-debugger-tooltip{background:#178acd;border:1px solid #178acd;color:#fff;position:absolute;padding:5px 10px;border-radius:4px;font-size:12px;z-index:99998}.xYextDebug .analytics-debugger-tooltip:hover{z-index:99999;border:1px solid black}
|
|
1
|
+
.address-line abbr{text-decoration:none}._yext-default-richtextv2-theme__ul1_13v3w_17{padding:0;margin:0 0 0 16px;list-style-type:disc;list-style-position:inside}._yext-default-richtextv2-theme__ul2_13v3w_25{padding:0;margin:0 0 0 16px;list-style-type:circle;list-style-position:inside}._yext-default-richtextv2-theme__ul3_13v3w_33{padding:0;margin:0 0 0 16px;list-style-type:square;list-style-position:inside}._yext-default-richtextv2-theme__ltr_13v3w_55{text-align:left}._yext-default-richtextv2-theme__rtl_13v3w_58{text-align:right}._yext-default-richtextv2-theme__paragraph_13v3w_61{font-size:14.67px;font-weight:400;line-height:18.67px;color:#000;margin:0;padding:3px 2px;position:relative}._yext-default-richtextv2-theme__quote_13v3w_70{margin:0 0 10px 20px;font-size:15px;color:#65676b;border-left-color:#ced0d4;border-left-width:4px;border-left-style:solid;padding-left:16px}._yext-default-richtextv2-theme__h1_13v3w_81{font-size:26.67px;font-weight:700;line-height:30.67px;color:#000;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h2_13v3w_89{font-size:21.33px;font-weight:700;line-height:25.33px;color:#000;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h3_13v3w_97{font-size:18.67px;font-weight:400;line-height:22.67px;color:#434343;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h4_13v3w_105{font-size:16px;font-weight:400;line-height:20px;color:#666;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h5_13v3w_113{font-size:14.67px;font-weight:400;line-height:18.67px;color:#666;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__h6_13v3w_121{font-size:14.67px;font-weight:400;font-style:italic;line-height:18.67px;color:#666;margin:0;padding:3px 2px}._yext-default-richtextv2-theme__textBold_13v3w_130{font-weight:700}._yext-default-richtextv2-theme__textItalic_13v3w_133{font-style:italic}._yext-default-richtextv2-theme__textUnderline_13v3w_136{text-decoration:underline}._yext-default-richtextv2-theme__textStrikethrough_13v3w_139{text-decoration:line-through}._yext-default-richtextv2-theme__textUnderlineStrikethrough_13v3w_142{text-decoration:underline line-through}._yext-default-richtextv2-theme__textSubscript_13v3w_145{font-size:.8em;vertical-align:sub!important}._yext-default-richtextv2-theme__textSuperscript_13v3w_149{font-size:.8em;vertical-align:super}._yext-default-richtextv2-theme__textCode_13v3w_153{background-color:#f0f2f5;padding:1px .25rem;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%}._yext-default-richtextv2-theme__hashtag_13v3w_159{background-color:#5890ff26;border-bottom:1px solid rgba(88,144,255,.3)}._yext-default-richtextv2-theme__link_13v3w_163{color:#216fdb;text-decoration:none}._yext-default-richtextv2-theme__link_13v3w_163:hover{text-decoration:underline;cursor:pointer}._yext-default-richtextv2-theme__code_13v3w_171{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;display:block;padding:8px 8px 8px 52px;line-height:1.53;font-size:13px;margin:8px 0;-moz-tab-size:2;tab-size:2;overflow-x:auto;position:relative}._yext-default-richtextv2-theme__code_13v3w_171:before{content:attr(data-gutter);position:absolute;background-color:#eee;left:0;top:0;border-right:1px solid #ccc;padding:8px;color:#777;white-space:pre-wrap;text-align:right;min-width:25px}._yext-default-richtextv2-theme__table_13v3w_199{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:calc(100% - 25px);margin:30px 0}._yext-default-richtextv2-theme__tableCell_13v3w_208{border:1px solid #bbb;min-width:75px;vertical-align:top;text-align:start;padding:6px 8px;position:relative;cursor:default;outline:none}._yext-default-richtextv2-theme__tableCellHeader_13v3w_218{background-color:#f2f3f5;text-align:start}._yext-default-richtextv2-theme__characterLimit_13v3w_222{display:inline;background-color:#fbb!important}._yext-default-richtextv2-theme__ol1_13v3w_226{padding:0;margin:0 0 0 16px;list-style-type:decimal;list-style-position:inside}._yext-default-richtextv2-theme__ol2_13v3w_233{padding:0;margin:0 0 0 16px;list-style-type:upper-alpha;list-style-position:inside}._yext-default-richtextv2-theme__ol3_13v3w_240{padding:0;margin:0 0 0 16px;list-style-type:lower-alpha;list-style-position:inside}._yext-default-richtextv2-theme__ol4_13v3w_247{padding:0;margin:0 0 0 16px;list-style-type:upper-roman;list-style-position:inside}._yext-default-richtextv2-theme__ol5_13v3w_254{padding:0;margin:0 0 0 16px;list-style-type:lower-roman;list-style-position:inside}._yext-default-richtextv2-theme__ul_13v3w_17{padding:0;margin:0 0 0 16px;list-style-position:inside}._yext-default-richtextv2-theme__listItem_13v3w_267{margin:0 32px}._yext-default-richtextv2-theme__listItemChecked_13v3w_270,._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271{position:relative;margin-left:8px;margin-right:8px;padding-left:24px;padding-right:24px;list-style-type:none;outline:none}._yext-default-richtextv2-theme__listItemChecked_13v3w_270{text-decoration:line-through}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271:before,._yext-default-richtextv2-theme__listItemChecked_13v3w_270:before{content:"";width:16px;height:16px;top:2px;left:0;cursor:pointer;display:block;background-size:cover;position:absolute}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271._rtl_13v3w_295:before,._yext-default-richtextv2-theme__listItemChecked_13v3w_270._rtl_13v3w_295:before{left:auto;right:0}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271:focus:before,._yext-default-richtextv2-theme__listItemChecked_13v3w_270:focus:before{box-shadow:0 0 0 2px #a6cdfe;border-radius:2px}._yext-default-richtextv2-theme__listItemUnchecked_13v3w_271:before{border:1px solid #999;border-radius:2px}._yext-default-richtextv2-theme__listItemChecked_13v3w_270:before{border:1px solid rgb(61,135,245);border-radius:2px;background-color:#3d87f5;background-repeat:no-repeat}._yext-default-richtextv2-theme__listItemChecked_13v3w_270:after{content:"";cursor:pointer;border-color:#fff;border-style:solid;position:absolute;display:block;top:6px;width:3px;left:7px;right:7px;height:6px;transform:rotate(45deg);border-width:0 2px 2px 0}._yext-default-richtextv2-theme__nestedListItem_13v3w_330{list-style-type:none}._yext-default-richtextv2-theme__nestedListItem_13v3w_330:before,._yext-default-richtextv2-theme__nestedListItem_13v3w_330:after{display:none}._yext-default-richtextv2-theme__tokenComment_13v3w_337{color:#708090}._yext-default-richtextv2-theme__tokenPunctuation_13v3w_340{color:#999}._yext-default-richtextv2-theme__tokenProperty_13v3w_343{color:#905}._yext-default-richtextv2-theme__tokenSelector_13v3w_346{color:#690}._yext-default-richtextv2-theme__tokenOperator_13v3w_349{color:#9a6e3a}._yext-default-richtextv2-theme__tokenAttr_13v3w_352{color:#07a}._yext-default-richtextv2-theme__tokenVariable_13v3w_355{color:#e90}._yext-default-richtextv2-theme__tokenFunction_13v3w_358{color:#dd4a68}._yext-default-richtextv2-theme__mark_13v3w_361{background:#ffd40024;border-bottom:2px solid rgba(255,212,0,.3);padding-bottom:2px}._yext-default-richtextv2-theme__markOverlap_13v3w_366{background:#ffd4004d;border-bottom:2px solid rgba(255,212,0,.7)}._yext-default-richtextv2-theme__mark_13v3w_361._selected_13v3w_370{background:#ffd40080;border-bottom:2px solid rgba(255,212,0,1)}._yext-default-richtextv2-theme__markOverlap_13v3w_366._selected_13v3w_370{background:#ffd400b3;border-bottom:2px solid rgba(255,212,0,.7)}._yext-default-richtextv2-theme__embedBlock_13v3w_378{-webkit-user-select:none;user-select:none}._yext-default-richtextv2-theme__embedBlockFocus_13v3w_381{outline:2px solid rgb(60,132,244)}span._yext-default-richtextv2-theme__image_13v3w_385{cursor:default;display:inline-block;position:relative;-webkit-user-select:none;user-select:none}._editor-inner_1mmqo_6{position:relative}._no-border_1mmqo_10{border:none}html{--yxt-hoursTable-col1-width: 128px;--yxt-hoursTable-col2-width: 256px}.HoursTable-row{display:flex}.HoursTable-day{flex:0 0 var(--yxt-hoursTable-col1-width)}.HoursTable-intervals{display:flex;flex-direction:column;flex:0 0 var(--yxt-hoursTable-col2-width)}.xYextDebug{@keyframes pulse{0%{background:transparent}50%{background:#00000026}to{background:transparent}}}.xYextDebug [data-ya-track]{outline:1px dashed blue;scroll-margin:32px}.xYextDebug [data-ya-track].analytics-event-highlight{animation-name:pulse;animation-duration:2s;animation-iteration-count:infinite;outline:2px dashed black;padding:8px 16px}.xYextDebug [data-ya-scope]{outline:1px dashed green;position:relative}.xYextDebug [data-ya-scope]:after{content:attr(data-ya-scope);top:0;left:0;color:#000;display:block;position:absolute;padding:10px;outline:1px solid #178acd;background:#00000073;color:#fff;z-index:2147483647}.xYextDebug .analytics-debugger{position:fixed;height:80%;top:10%;bottom:10%;right:0;transition:right .3s ease-out;color:#fff;display:flex!important;z-index:99999}.xYextDebug .analytics-debugger-toggles{width:100px;border-top-left-radius:4px;border-bottom-left-radius:4px;background:#000000bf;margin:auto;display:flex;flex-direction:column;border-right:1px solid white}.xYextDebug .analytics-debugger-toggle{outline:none;text-align:center;padding:10px;cursor:pointer}.xYextDebug .analytics-debugger-toggle.is-active{background:#178acd}.xYextDebug .analytics-debugger-toggle:first-child{border-top-left-radius:4px}.xYextDebug .analytics-debugger-toggle:last-child{border-bottom-left-radius:4px}.xYextDebug .analytics-debugger-toggle:not(:last-child){border-bottom:1px solid white}.xYextDebug .analytics-debugger-toggle:hover{background:#178acd}.xYextDebug .analytics-debugger-tabs{width:250px;border-top-left-radius:4px;border-bottom-left-radius:4px;background:#000000bf}.xYextDebug .analytics-debugger-tab{display:flex;flex-direction:column;height:100%}.xYextDebug .analytics-debugger-tab-title{background:#178acd;color:#fff;padding:20px;border-bottom:1px solid white;border-top-left-radius:4px}.xYextDebug .analytics-debugger-list{overflow-y:auto;flex-grow:1}.xYextDebug .analytics-debugger-listItem{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center}.xYextDebug .analytics-debugger-listItem:not(:last-child){border-bottom:1px solid white}.xYextDebug .analytics-debugger-button{padding:10px 20px;text-align:left;width:100%}.xYextDebug .analytics-debugger-button.is-active{background:#178acd}.xYextDebug .analytics-debugger-button:hover:not(.is-active){background:#ffffff4d;cursor:pointer}.xYextDebug .analytics-debugger-tooltip{background:#178acd;border:1px solid #178acd;color:#fff;position:absolute;padding:5px 10px;border-radius:4px;font-size:12px;z-index:99998}.xYextDebug .analytics-debugger-tooltip:hover{z-index:99999;border:1px solid black}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yext/pages-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"types": "dist/index.d.ts",
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": "^
|
|
34
|
+
"node": "^18 || ^20 || ^22"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"dev": "pnpm run storybook",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"react-dom": "^17.0.2 || ^18.2.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@storybook/addon-a11y": "^8.
|
|
53
|
-
"@storybook/addon-essentials": "^8.
|
|
54
|
-
"@storybook/addon-interactions": "^8.
|
|
55
|
-
"@storybook/addon-links": "^8.
|
|
56
|
-
"@storybook/blocks": "^8.
|
|
57
|
-
"@storybook/react": "^8.
|
|
58
|
-
"@storybook/react-vite": "^8.
|
|
59
|
-
"@storybook/test-runner": "^0.
|
|
52
|
+
"@storybook/addon-a11y": "^8.5.8",
|
|
53
|
+
"@storybook/addon-essentials": "^8.5.8",
|
|
54
|
+
"@storybook/addon-interactions": "^8.5.8",
|
|
55
|
+
"@storybook/addon-links": "^8.5.8",
|
|
56
|
+
"@storybook/blocks": "^8.5.8",
|
|
57
|
+
"@storybook/react": "^8.5.8",
|
|
58
|
+
"@storybook/react-vite": "^8.5.8",
|
|
59
|
+
"@storybook/test-runner": "^0.21.3",
|
|
60
60
|
"@storybook/testing-library": "^0.2.2",
|
|
61
61
|
"@testing-library/react": "^14.1.2",
|
|
62
62
|
"@testing-library/user-event": "^14.5.1",
|
|
@@ -80,12 +80,12 @@
|
|
|
80
80
|
"prop-types": "^15.8.1",
|
|
81
81
|
"react": "^18.2.0",
|
|
82
82
|
"react-dom": "^18.2.0",
|
|
83
|
-
"storybook": "^8.
|
|
83
|
+
"storybook": "^8.5.8",
|
|
84
84
|
"tsup": "^8.0.1",
|
|
85
85
|
"typescript": "^5.3.3",
|
|
86
86
|
"vite": "^5.4.11",
|
|
87
87
|
"vite-tsconfig-paths": "^4.2.2",
|
|
88
|
-
"vitest": "^
|
|
88
|
+
"vitest": "^3.0.5"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"@lexical/code": "^0.12.5",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@lexical/rich-text": "^0.12.5",
|
|
97
97
|
"@lexical/table": "^0.12.5",
|
|
98
98
|
"@lexical/utils": "^0.12.5",
|
|
99
|
-
"@yext/analytics": "1.0.0
|
|
99
|
+
"@yext/analytics": "^1.0.0",
|
|
100
100
|
"browser-or-node": "^2.1.1",
|
|
101
101
|
"classnames": "^2.3.2",
|
|
102
102
|
"cross-fetch": "^4.0.0",
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
import { g as C, j as o, c as j } from "./index-BqDn49hh.js";
|
|
2
|
-
import { useState as b, useEffect as N, useRef as B } from "react";
|
|
3
|
-
import { createPortal as S } from "react-dom";
|
|
4
|
-
function q() {
|
|
5
|
-
return C().name !== "browser" || window.hasOwnProperty("debuggerInitialized") ? null : (window.debuggerInitialized = !0, S(/* @__PURE__ */ o.jsx(R, {}), document.body));
|
|
6
|
-
}
|
|
7
|
-
const Y = (e, s) => {
|
|
8
|
-
const n = e.dataset.yaAction, t = e.dataset.yaScopeoverride, c = e.dataset.yaEventname, a = t || s;
|
|
9
|
-
return {
|
|
10
|
-
action: n,
|
|
11
|
-
originalEventName: a ? `${a}_${c}` : c,
|
|
12
|
-
scope: a
|
|
13
|
-
};
|
|
14
|
-
}, O = (e, s) => {
|
|
15
|
-
const n = [];
|
|
16
|
-
let t = e;
|
|
17
|
-
for (; t != null && t.parentElement; )
|
|
18
|
-
t = t.parentElement.closest(s), t && n.push(t);
|
|
19
|
-
return n;
|
|
20
|
-
}, p = {}, k = "YA_NO_SCOPE", E = (e, s, n, t) => {
|
|
21
|
-
p.hasOwnProperty(e) ? p[e].events.map((c) => c.el).includes(t) || (p[e].events = [
|
|
22
|
-
...p[e].events,
|
|
23
|
-
{
|
|
24
|
-
eventData: s,
|
|
25
|
-
el: t
|
|
26
|
-
}
|
|
27
|
-
]) : p[e] = {
|
|
28
|
-
scopeEl: n || t,
|
|
29
|
-
// overidden scopes still need an element
|
|
30
|
-
events: [
|
|
31
|
-
{
|
|
32
|
-
eventData: s,
|
|
33
|
-
el: t
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
function R() {
|
|
39
|
-
const [e, s] = b(), [n, t] = b([]), [c, a] = b(!1), i = (l) => {
|
|
40
|
-
s(e === l ? void 0 : l);
|
|
41
|
-
};
|
|
42
|
-
return N(() => (document.documentElement.classList.add("xYextDebug"), document.querySelectorAll(
|
|
43
|
-
"[data-ya-eventname]"
|
|
44
|
-
).forEach((r, u) => {
|
|
45
|
-
const d = r.closest("[data-ya-scope]"), v = d == null ? void 0 : d.dataset.yaScope, g = Y(r, v);
|
|
46
|
-
r.addEventListener("mouseenter", () => {
|
|
47
|
-
t([
|
|
48
|
-
{
|
|
49
|
-
elem: r,
|
|
50
|
-
key: `${g.originalEventName}_${u}`,
|
|
51
|
-
action: g.action,
|
|
52
|
-
originalEventName: g.originalEventName,
|
|
53
|
-
scope: g.scope
|
|
54
|
-
}
|
|
55
|
-
]);
|
|
56
|
-
}), r.addEventListener("mouseleave", () => {
|
|
57
|
-
t([]);
|
|
58
|
-
});
|
|
59
|
-
const h = r.dataset.yaScopeoverride;
|
|
60
|
-
h ? E(h, g, d, r) : [
|
|
61
|
-
v,
|
|
62
|
-
...O(r, "[data-ya-scope]").map(
|
|
63
|
-
(m) => m.dataset.yaScope
|
|
64
|
-
)
|
|
65
|
-
].forEach((m) => {
|
|
66
|
-
E(m || k, g, d, r);
|
|
67
|
-
});
|
|
68
|
-
}), a(!0), () => {
|
|
69
|
-
document.documentElement.classList.remove("xYextDebug");
|
|
70
|
-
}), []), c ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
71
|
-
/* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger", children: [
|
|
72
|
-
/* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger-toggles", children: [
|
|
73
|
-
/* @__PURE__ */ o.jsx(
|
|
74
|
-
"button",
|
|
75
|
-
{
|
|
76
|
-
className: j("analytics-debugger-toggle", {
|
|
77
|
-
"is-active": e === "Events"
|
|
78
|
-
}),
|
|
79
|
-
onClick: () => i("Events"),
|
|
80
|
-
children: "Events"
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ o.jsx(
|
|
84
|
-
"button",
|
|
85
|
-
{
|
|
86
|
-
className: j("analytics-debugger-toggle", {
|
|
87
|
-
"is-active": e === "Scopes"
|
|
88
|
-
}),
|
|
89
|
-
onClick: () => i("Scopes"),
|
|
90
|
-
children: "Scopes"
|
|
91
|
-
}
|
|
92
|
-
)
|
|
93
|
-
] }),
|
|
94
|
-
e && /* @__PURE__ */ o.jsx("div", { className: "analytics-debugger-tabs", children: e === "Events" ? /* @__PURE__ */ o.jsx(D, { data: p, setTooltips: t }) : /* @__PURE__ */ o.jsx(A, { data: p, setTooltips: t }) })
|
|
95
|
-
] }),
|
|
96
|
-
/* @__PURE__ */ o.jsx($, { tooltips: n })
|
|
97
|
-
] }) : null;
|
|
98
|
-
}
|
|
99
|
-
const T = () => {
|
|
100
|
-
const e = [];
|
|
101
|
-
return Object.entries(p).map(
|
|
102
|
-
([s, n]) => n.events.map((t) => {
|
|
103
|
-
e.map((c) => c.eventData.originalEventName).includes(t.eventData.originalEventName) || e.push(t);
|
|
104
|
-
})
|
|
105
|
-
), e;
|
|
106
|
-
};
|
|
107
|
-
function D(e) {
|
|
108
|
-
const { setTooltips: s } = e, [n, t] = b(), [c, a] = b(""), i = (l, r, u) => {
|
|
109
|
-
l.scrollIntoView({ behavior: "smooth", block: "nearest" }), n && n.classList.remove("analytics-event-highlight"), t(l), l.classList.add("analytics-event-highlight"), a(u), s([
|
|
110
|
-
{
|
|
111
|
-
elem: l,
|
|
112
|
-
key: u,
|
|
113
|
-
action: r.action,
|
|
114
|
-
originalEventName: r.originalEventName,
|
|
115
|
-
scope: r.scope
|
|
116
|
-
}
|
|
117
|
-
]);
|
|
118
|
-
};
|
|
119
|
-
return /* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger-tab", children: [
|
|
120
|
-
/* @__PURE__ */ o.jsx("h2", { className: "analytics-debugger-tab-title", children: "Event Names" }),
|
|
121
|
-
/* @__PURE__ */ o.jsx("ul", { className: "analytics-debugger-list", children: T().map((l, r) => {
|
|
122
|
-
const u = l.eventData, d = `${u.originalEventName}_${r}`;
|
|
123
|
-
return /* @__PURE__ */ o.jsx("li", { className: "analytics-debugger-listItem", children: /* @__PURE__ */ o.jsx(
|
|
124
|
-
"button",
|
|
125
|
-
{
|
|
126
|
-
className: j("analytics-debugger-button", {
|
|
127
|
-
"is-active": d === c
|
|
128
|
-
}),
|
|
129
|
-
onClick: () => i(l.el, u, d),
|
|
130
|
-
children: u.originalEventName
|
|
131
|
-
}
|
|
132
|
-
) }, d);
|
|
133
|
-
}) })
|
|
134
|
-
] });
|
|
135
|
-
}
|
|
136
|
-
function A(e) {
|
|
137
|
-
const { data: s, setTooltips: n } = e, [t, c] = b(""), a = (i) => {
|
|
138
|
-
const l = s[i];
|
|
139
|
-
l.scopeEl && (l.scopeEl.scrollIntoView({
|
|
140
|
-
behavior: "smooth",
|
|
141
|
-
block: "nearest"
|
|
142
|
-
}), c(i), n(
|
|
143
|
-
l.events.map((r, u) => {
|
|
144
|
-
const d = r.eventData;
|
|
145
|
-
return {
|
|
146
|
-
elem: r.el,
|
|
147
|
-
key: `${d.originalEventName}_${u}`,
|
|
148
|
-
action: d.action,
|
|
149
|
-
originalEventName: d.originalEventName,
|
|
150
|
-
scope: d.scope
|
|
151
|
-
};
|
|
152
|
-
})
|
|
153
|
-
));
|
|
154
|
-
};
|
|
155
|
-
return /* @__PURE__ */ o.jsxs("div", { className: "analytics-debugger-tab", children: [
|
|
156
|
-
/* @__PURE__ */ o.jsx("h2", { className: "analytics-debugger-tab-title", children: "Scope Names" }),
|
|
157
|
-
/* @__PURE__ */ o.jsx("ul", { className: "analytics-debugger-list", children: Object.keys(s).map((i, l) => {
|
|
158
|
-
if (i !== k)
|
|
159
|
-
return /* @__PURE__ */ o.jsx("li", { className: "analytics-debugger-listItem", children: /* @__PURE__ */ o.jsx(
|
|
160
|
-
"button",
|
|
161
|
-
{
|
|
162
|
-
className: j("analytics-debugger-button", {
|
|
163
|
-
"is-active": i === t
|
|
164
|
-
}),
|
|
165
|
-
onClick: () => a(i),
|
|
166
|
-
children: i
|
|
167
|
-
}
|
|
168
|
-
) }, i + l);
|
|
169
|
-
}) })
|
|
170
|
-
] });
|
|
171
|
-
}
|
|
172
|
-
function $(e) {
|
|
173
|
-
const s = B({});
|
|
174
|
-
return N(() => {
|
|
175
|
-
if (s.current)
|
|
176
|
-
for (const n of Object.values(s.current)) {
|
|
177
|
-
const t = Object.values(s.current).map((c) => c.el).filter((c) => c !== n.el);
|
|
178
|
-
L(n, t), n.el.style.visibility = "visible";
|
|
179
|
-
}
|
|
180
|
-
}, [e.tooltips]), /* @__PURE__ */ o.jsx(o.Fragment, { children: e.tooltips.map((n) => /* @__PURE__ */ o.jsxs(
|
|
181
|
-
"div",
|
|
182
|
-
{
|
|
183
|
-
style: { visibility: "hidden" },
|
|
184
|
-
className: "analytics-debugger-tooltip",
|
|
185
|
-
ref: (t) => {
|
|
186
|
-
t ? s.current[n.key] = {
|
|
187
|
-
el: t,
|
|
188
|
-
tooltip: n
|
|
189
|
-
} : delete s.current[n.key];
|
|
190
|
-
},
|
|
191
|
-
children: [
|
|
192
|
-
/* @__PURE__ */ o.jsxs("span", { children: [
|
|
193
|
-
"Action: ",
|
|
194
|
-
n.action
|
|
195
|
-
] }),
|
|
196
|
-
/* @__PURE__ */ o.jsx("br", {}),
|
|
197
|
-
/* @__PURE__ */ o.jsxs("span", { children: [
|
|
198
|
-
"Scope: ",
|
|
199
|
-
n.scope
|
|
200
|
-
] }),
|
|
201
|
-
/* @__PURE__ */ o.jsx("br", {}),
|
|
202
|
-
/* @__PURE__ */ o.jsxs("span", { children: [
|
|
203
|
-
"Original Event Name: ",
|
|
204
|
-
n.originalEventName
|
|
205
|
-
] })
|
|
206
|
-
]
|
|
207
|
-
},
|
|
208
|
-
n.key
|
|
209
|
-
)) });
|
|
210
|
-
}
|
|
211
|
-
function L(e, s) {
|
|
212
|
-
for (let n = 0; n < 9; n++) {
|
|
213
|
-
const t = P(
|
|
214
|
-
e.tooltip.elem.getBoundingClientRect(),
|
|
215
|
-
e.el,
|
|
216
|
-
n
|
|
217
|
-
);
|
|
218
|
-
if (e.el.style.inset = `${t.top} auto auto ${t.left}`, !!I(
|
|
219
|
-
e.el.getBoundingClientRect().left,
|
|
220
|
-
e.el.getBoundingClientRect().top + window.scrollY,
|
|
221
|
-
e.el.getBoundingClientRect().right,
|
|
222
|
-
e.el.getBoundingClientRect().bottom + window.scrollY
|
|
223
|
-
)) continue;
|
|
224
|
-
let a = !0;
|
|
225
|
-
for (let i = 0; i < s.length; i++) {
|
|
226
|
-
const l = s[i];
|
|
227
|
-
_(e.el, l) && (a = !1);
|
|
228
|
-
}
|
|
229
|
-
if (a) break;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
function _(e, s) {
|
|
233
|
-
const n = e.getBoundingClientRect().top + window.scrollY, t = e.getBoundingClientRect().left, c = n + e.clientHeight, a = t + e.clientWidth, i = s.getBoundingClientRect().top + window.scrollY, l = s.getBoundingClientRect().left, r = i + s.clientHeight, u = l + s.clientWidth, d = (v, g, h, f, m, x, w, y) => h <= m && m <= w && f <= x && x <= y || h <= v && v <= w && f <= g && g <= y || h <= v && v <= w && f <= x && x <= y || h <= m && m <= w && f <= g && g <= y;
|
|
234
|
-
return d(t, n, l, i, a, c, u, r) || d(l, i, t, n, u, r, a, c);
|
|
235
|
-
}
|
|
236
|
-
function I(e, s, n, t) {
|
|
237
|
-
return e < 0 || n > window.innerWidth || s < 0 || t > document.documentElement.scrollHeight;
|
|
238
|
-
}
|
|
239
|
-
function P(e, s, n) {
|
|
240
|
-
const t = s.clientHeight, c = s.clientWidth;
|
|
241
|
-
let a, i;
|
|
242
|
-
switch (n) {
|
|
243
|
-
case 0: {
|
|
244
|
-
i = window.scrollY + e.top - t + "px", a = e.left - c + "px";
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
case 1: {
|
|
248
|
-
i = window.scrollY + e.top - t + "px", a = e.left + "px";
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
case 2: {
|
|
252
|
-
i = window.scrollY + e.top - t + "px", a = e.right + "px";
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
case 3: {
|
|
256
|
-
i = window.scrollY + e.top - t + "px", a = e.right - c + "px";
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
case 4: {
|
|
260
|
-
i = window.scrollY + e.bottom + "px", a = e.left - c + "px";
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
case 5: {
|
|
264
|
-
i = window.scrollY + e.bottom + "px", a = e.left + "px";
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
case 6: {
|
|
268
|
-
i = window.scrollY + e.bottom + "px", a = e.right - c + "px";
|
|
269
|
-
break;
|
|
270
|
-
}
|
|
271
|
-
case 7: {
|
|
272
|
-
i = window.scrollY + e.bottom + "px", a = e.right + "px";
|
|
273
|
-
break;
|
|
274
|
-
}
|
|
275
|
-
default:
|
|
276
|
-
i = 0, a = 0;
|
|
277
|
-
}
|
|
278
|
-
return {
|
|
279
|
-
top: i,
|
|
280
|
-
left: a
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
export {
|
|
284
|
-
R as AnalyticsDebuggerInternal,
|
|
285
|
-
q as default
|
|
286
|
-
};
|