@yext/pages-components 1.0.4 → 1.0.6
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 +25 -25
- package/dist/{debugger-Deci89uw.js → debugger-DJqq9EyW.js} +1 -1
- package/dist/{debugger-D1L4Q0Ym.cjs → debugger-DtDduw6_.cjs} +1 -1
- package/dist/index-BEMHj1z8.js +32781 -0
- package/dist/index-BVBgwvGE.cjs +47 -0
- package/dist/{index-BwdzdvBD.js → index-CBHRCjAx.js} +2233 -2208
- package/dist/index-CKSiT08w.cjs +111 -0
- package/dist/index.d.cts +687 -323
- package/dist/index.d.ts +687 -323
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +1 -1
- package/package.json +5 -1
- package/dist/index-BEwdmdrX.js +0 -32391
- package/dist/index-D48pUOQV.cjs +0 -106
- package/dist/index-DmZ5N0Hz.cjs +0 -45
package/THIRD-PARTY-NOTICES
CHANGED
|
@@ -5,7 +5,7 @@ The following npm package may be included in this product:
|
|
|
5
5
|
|
|
6
6
|
- unified@11.0.4
|
|
7
7
|
|
|
8
|
-
This package contains the following license
|
|
8
|
+
This package contains the following license:
|
|
9
9
|
|
|
10
10
|
(The MIT License)
|
|
11
11
|
|
|
@@ -36,7 +36,7 @@ The following npm packages may be included in this product:
|
|
|
36
36
|
- mdast-util-to-hast@12.3.0
|
|
37
37
|
- remark-rehype@10.1.0
|
|
38
38
|
|
|
39
|
-
These packages each contain the following license
|
|
39
|
+
These packages each contain the following license:
|
|
40
40
|
|
|
41
41
|
(The MIT License)
|
|
42
42
|
|
|
@@ -67,7 +67,7 @@ The following npm package may be included in this product:
|
|
|
67
67
|
|
|
68
68
|
- mdast-util-from-markdown@1.2.0
|
|
69
69
|
|
|
70
|
-
This package contains the following license
|
|
70
|
+
This package contains the following license:
|
|
71
71
|
|
|
72
72
|
(The MIT License)
|
|
73
73
|
|
|
@@ -96,13 +96,13 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
96
96
|
|
|
97
97
|
The following npm package may be included in this product:
|
|
98
98
|
|
|
99
|
-
- picocolors@1.
|
|
99
|
+
- picocolors@1.1.1
|
|
100
100
|
|
|
101
|
-
This package contains the following license
|
|
101
|
+
This package contains the following license:
|
|
102
102
|
|
|
103
103
|
ISC License
|
|
104
104
|
|
|
105
|
-
Copyright (c) 2021
|
|
105
|
+
Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
|
|
106
106
|
|
|
107
107
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
108
108
|
purpose with or without fee is hereby granted, provided that the above
|
|
@@ -127,7 +127,7 @@ The following npm packages may be included in this product:
|
|
|
127
127
|
- micromark-util-symbol@1.0.1
|
|
128
128
|
- micromark-util-types@1.0.2
|
|
129
129
|
|
|
130
|
-
These packages each contain the following license
|
|
130
|
+
These packages each contain the following license:
|
|
131
131
|
|
|
132
132
|
MIT
|
|
133
133
|
|
|
@@ -135,17 +135,17 @@ MIT
|
|
|
135
135
|
|
|
136
136
|
The following npm packages may be included in this product:
|
|
137
137
|
|
|
138
|
-
- @lexical/code@0.12.
|
|
139
|
-
- @lexical/hashtag@0.12.
|
|
140
|
-
- @lexical/link@0.12.
|
|
141
|
-
- @lexical/list@0.12.
|
|
142
|
-
- @lexical/react@0.12.
|
|
143
|
-
- @lexical/rich-text@0.12.
|
|
144
|
-
- @lexical/table@0.12.
|
|
145
|
-
- @lexical/utils@0.12.
|
|
146
|
-
- lexical@0.12.
|
|
138
|
+
- @lexical/code@0.12.6
|
|
139
|
+
- @lexical/hashtag@0.12.6
|
|
140
|
+
- @lexical/link@0.12.6
|
|
141
|
+
- @lexical/list@0.12.6
|
|
142
|
+
- @lexical/react@0.12.6
|
|
143
|
+
- @lexical/rich-text@0.12.6
|
|
144
|
+
- @lexical/table@0.12.6
|
|
145
|
+
- @lexical/utils@0.12.6
|
|
146
|
+
- lexical@0.12.6
|
|
147
147
|
|
|
148
|
-
These packages each contain the following license
|
|
148
|
+
These packages each contain the following license:
|
|
149
149
|
|
|
150
150
|
MIT License
|
|
151
151
|
|
|
@@ -175,7 +175,7 @@ The following npm package may be included in this product:
|
|
|
175
175
|
|
|
176
176
|
- @yext/analytics@1.0.0-beta.5
|
|
177
177
|
|
|
178
|
-
This package contains the following license
|
|
178
|
+
This package contains the following license:
|
|
179
179
|
|
|
180
180
|
The Analytics files listed in this repository are licensed under the below license. All other features and products are subject to separate agreements
|
|
181
181
|
and certain functionality requires paid subscriptions to Yext products.
|
|
@@ -214,9 +214,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
214
214
|
|
|
215
215
|
The following npm package may be included in this product:
|
|
216
216
|
|
|
217
|
-
- react-markdown@8.0.
|
|
217
|
+
- react-markdown@8.0.7
|
|
218
218
|
|
|
219
|
-
This package contains the following license
|
|
219
|
+
This package contains the following license:
|
|
220
220
|
|
|
221
221
|
The MIT License (MIT)
|
|
222
222
|
|
|
@@ -246,7 +246,7 @@ The following npm package may be included in this product:
|
|
|
246
246
|
|
|
247
247
|
- cross-fetch@4.0.0
|
|
248
248
|
|
|
249
|
-
This package contains the following license
|
|
249
|
+
This package contains the following license:
|
|
250
250
|
|
|
251
251
|
The MIT License (MIT)
|
|
252
252
|
|
|
@@ -276,7 +276,7 @@ The following npm package may be included in this product:
|
|
|
276
276
|
|
|
277
277
|
- browser-or-node@2.1.1
|
|
278
278
|
|
|
279
|
-
This package contains the following license
|
|
279
|
+
This package contains the following license:
|
|
280
280
|
|
|
281
281
|
The MIT License (MIT)
|
|
282
282
|
|
|
@@ -304,9 +304,9 @@ SOFTWARE.
|
|
|
304
304
|
|
|
305
305
|
The following npm package may be included in this product:
|
|
306
306
|
|
|
307
|
-
- classnames@2.
|
|
307
|
+
- classnames@2.5.1
|
|
308
308
|
|
|
309
|
-
This package contains the following license
|
|
309
|
+
This package contains the following license:
|
|
310
310
|
|
|
311
311
|
The MIT License (MIT)
|
|
312
312
|
|
|
@@ -336,7 +336,7 @@ The following npm package may be included in this product:
|
|
|
336
336
|
|
|
337
337
|
- uvu@0.5.6
|
|
338
338
|
|
|
339
|
-
This package contains the following license
|
|
339
|
+
This package contains the following license:
|
|
340
340
|
|
|
341
341
|
The MIT License (MIT)
|
|
342
342
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CKSiT08w.cjs"),x=require("react"),N=require("react-dom");function k(){return i.getRuntime().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,N.createPortal(i.jsxRuntimeExports.jsx(w,{}),document.body))}const S=(e,n)=>{const s=e.dataset.yaAction,t=e.dataset.yaScopeoverride,c=e.dataset.yaEventname,a=t||n;return{action:s,originalEventName:a?`${a}_${c}`:c,scope:a}},C=(e,n)=>{const s=[];let t=e;for(;t!=null&&t.parentElement;)t=t.parentElement.closest(n),t&&s.push(t);return s},m={},R="YA_NO_SCOPE",y=(e,n,s,t)=>{m.hasOwnProperty(e)?m[e].events.map(c=>c.el).includes(t)||(m[e].events=[...m[e].events,{eventData:n,el:t}]):m[e]={scopeEl:s||t,events:[{eventData:n,el:t}]}};function w(){const[e,n]=x.useState(),[s,t]=x.useState([]),[c,a]=x.useState(!1),o=l=>{n(e===l?void 0:l)};return x.useEffect(()=>(document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-eventname]").forEach((r,d)=>{const u=r.closest("[data-ya-scope]"),v=u==null?void 0:u.dataset.yaScope,g=S(r,v);r.addEventListener("mouseenter",()=>{t([{elem:r,key:`${g.originalEventName}_${d}`,action:g.action,originalEventName:g.originalEventName,scope:g.scope}])}),r.addEventListener("mouseleave",()=>{t([])});const b=r.dataset.yaScopeoverride;b?y(b,g,u,r):[v,...C(r,"[data-ya-scope]").map(p=>p.dataset.yaScope)].forEach(p=>{y(p||R,g,u,r)})}),a(!0),()=>{document.documentElement.classList.remove("xYextDebug")}),[]),c?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger",children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-toggles",children:[i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Events"}),onClick:()=>o("Events"),children:"Events"}),i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Scopes"}),onClick:()=>o("Scopes"),children:"Scopes"})]}),e&&i.jsxRuntimeExports.jsx("div",{className:"analytics-debugger-tabs",children:e==="Events"?i.jsxRuntimeExports.jsx(O,{data:m,setTooltips:t}):i.jsxRuntimeExports.jsx(Y,{data:m,setTooltips:t})})]}),i.jsxRuntimeExports.jsx(T,{tooltips:s})]}):null}const B=()=>{const e=[];return Object.entries(m).map(([n,s])=>s.events.map(t=>{e.map(c=>c.eventData.originalEventName).includes(t.eventData.originalEventName)||e.push(t)})),e};function O(e){const{setTooltips:n}=e,[s,t]=x.useState(),[c,a]=x.useState(""),o=(l,r,d)=>{l.scrollIntoView({behavior:"smooth",block:"nearest"}),s&&s.classList.remove("analytics-event-highlight"),t(l),l.classList.add("analytics-event-highlight"),a(d),n([{elem:l,key:d,action:r.action,originalEventName:r.originalEventName,scope:r.scope}])};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:B().map((l,r)=>{const d=l.eventData,u=`${d.originalEventName}_${r}`;return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":u===c}),onClick:()=>o(l.el,d,u),children:d.originalEventName})},u)})})]})}function Y(e){const{data:n,setTooltips:s}=e,[t,c]=x.useState(""),a=o=>{const l=n[o];l.scopeEl&&(l.scopeEl.scrollIntoView({behavior:"smooth",block:"nearest"}),c(o),s(l.events.map((r,d)=>{const u=r.eventData;return{elem:r.el,key:`${u.originalEventName}_${d}`,action:u.action,originalEventName:u.originalEventName,scope:u.scope}})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(n).map((o,l)=>{if(o!==R)return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":o===t}),onClick:()=>a(o),children:o})},o+l)})})]})}function T(e){const n=x.useRef({});return x.useEffect(()=>{if(n.current)for(const s of Object.values(n.current)){const t=Object.values(n.current).map(c=>c.el).filter(c=>c!==s.el);$(s,t),s.el.style.visibility="visible"}},[e.tooltips]),i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:e.tooltips.map(s=>i.jsxRuntimeExports.jsxs("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:t=>{t?n.current[s.key]={el:t,tooltip:s}:delete n.current[s.key]},children:[i.jsxRuntimeExports.jsxs("span",{children:["Action: ",s.action]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Scope: ",s.scope]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Original Event Name: ",s.originalEventName]})]},s.key))})}function $(e,n){for(let s=0;s<9;s++){const t=I(e.tooltip.elem.getBoundingClientRect(),e.el,s);if(e.el.style.inset=`${t.top} auto auto ${t.left}`,!!A(e.el.getBoundingClientRect().left,e.el.getBoundingClientRect().top+window.scrollY,e.el.getBoundingClientRect().right,e.el.getBoundingClientRect().bottom+window.scrollY))continue;let a=!0;for(let o=0;o<n.length;o++){const l=n[o];D(e.el,l)&&(a=!1)}if(a)break}}function D(e,n){const s=e.getBoundingClientRect().top+window.scrollY,t=e.getBoundingClientRect().left,c=s+e.clientHeight,a=t+e.clientWidth,o=n.getBoundingClientRect().top+window.scrollY,l=n.getBoundingClientRect().left,r=o+n.clientHeight,d=l+n.clientWidth,u=(v,g,b,h,p,j,E,f)=>b<=p&&p<=E&&h<=j&&j<=f||b<=v&&v<=E&&h<=g&&g<=f||b<=v&&v<=E&&h<=j&&j<=f||b<=p&&p<=E&&h<=g&&g<=f;return u(t,s,l,o,a,c,d,r)||u(l,o,t,s,d,r,a,c)}function A(e,n,s,t){return e<0||s>window.innerWidth||n<0||t>document.documentElement.scrollHeight}function I(e,n,s){const t=n.clientHeight,c=n.clientWidth;let a,o;switch(s){case 0:{o=window.scrollY+e.top-t+"px",a=e.left-c+"px";break}case 1:{o=window.scrollY+e.top-t+"px",a=e.left+"px";break}case 2:{o=window.scrollY+e.top-t+"px",a=e.right+"px";break}case 3:{o=window.scrollY+e.top-t+"px",a=e.right-c+"px";break}case 4:{o=window.scrollY+e.bottom+"px",a=e.left-c+"px";break}case 5:{o=window.scrollY+e.bottom+"px",a=e.left+"px";break}case 6:{o=window.scrollY+e.bottom+"px",a=e.right-c+"px";break}case 7:{o=window.scrollY+e.bottom+"px",a=e.right+"px";break}default:o=0,a=0}return{top:o,left:a}}exports.AnalyticsDebuggerInternal=w;exports.default=k;
|