@yext/pages-components 1.1.15 → 1.1.17
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-BxGLUF0a.js → debugger-BsVvVLeg.js} +1 -1
- package/dist/{debugger-Bc6LFql_.cjs → debugger-CvvqHRnJ.cjs} +1 -1
- package/dist/{index-CDEZRpEm.js → index-AcuvLLAS.js} +6217 -6098
- package/dist/index-DCXDGjOS.cjs +111 -0
- package/dist/{index-BZoK3sUE.js → index-Dfylohx7.js} +6 -2
- package/dist/{index-7fAhZ2Ii.cjs → index-GjPmS5iw.cjs} +1 -1
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +1 -1
- package/package.json +11 -11
- package/dist/index-CjhHamzw.cjs +0 -111
|
@@ -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 dr, q as ge, t as bn, u as mr, v as gr } from "./index-
|
|
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-AcuvLLAS.js";
|
|
3
3
|
function yr(n) {
|
|
4
4
|
const t = [];
|
|
5
5
|
let e = -1;
|
|
@@ -1234,7 +1234,11 @@ function Oe(n) {
|
|
|
1234
1234
|
const t = "&" + n + ";";
|
|
1235
1235
|
tt.innerHTML = t;
|
|
1236
1236
|
const e = tt.textContent;
|
|
1237
|
-
return
|
|
1237
|
+
return (
|
|
1238
|
+
// @ts-expect-error: TypeScript is wrong that `textContent` on elements can
|
|
1239
|
+
// yield `null`.
|
|
1240
|
+
e.charCodeAt(e.length - 1) === 59 && n !== "semi" || e === t ? !1 : e
|
|
1241
|
+
);
|
|
1238
1242
|
}
|
|
1239
1243
|
const Dt = {
|
|
1240
1244
|
name: "characterReference",
|
|
@@ -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-DCXDGjOS.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)"}/*!
|
|
@@ -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-DCXDGjOS.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.getImageUrl=e.getImageUrl;exports.getRichTextContent=e.getRichTextContent;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, a4 as t, ac as i, x as o, y as r, E as c, H as n, ae as g, _ as p, af as u, R as h, ak as m, Y as l, $ as S, a2 as d, ag as M, W as P, X as y, I as x, K as A, ai as L, V as C, U as f, N as O, L as R, a0 as T, T as b, a5 as v, O as B, M as I, aj as k, ah as D, Q as H, a7 as w, a6 as G, a9 as Q, a8 as z, aa as E, ab as F, a1 as U, ad as V, Z as W, F as j, w as J, J as K, a3 as N, z as X, S as Y, D as Z, P as _, C as $, G as q, B as aa } from "./index-
|
|
1
|
+
import { A as e, a4 as t, ac as i, x as o, y as r, E as c, H as n, ae as g, _ as p, af as u, R as h, ak as m, Y as l, $ as S, a2 as d, ag as M, W as P, X as y, I as x, K as A, ai as L, V as C, U as f, N as O, L as R, a0 as T, T as b, a5 as v, O as B, M as I, aj as k, ah as D, Q as H, a7 as w, a6 as G, a9 as Q, a8 as z, aa as E, ab as F, a1 as U, ad as V, Z as W, F as j, w as J, J as K, a3 as N, z as X, S as Y, D as Z, P as _, C as $, G as q, B as aa } from "./index-AcuvLLAS.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Address,
|
|
4
4
|
t as AddressSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yext/pages-components",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.17",
|
|
4
4
|
"description": "A React component library that supports Yext Pages development",
|
|
5
5
|
"author": "sumo@yext.com",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -43,14 +43,15 @@
|
|
|
43
43
|
"mapbox-gl": "^2.9.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@storybook/addon-
|
|
48
|
-
"@storybook/addon-
|
|
49
|
-
"@storybook/addon-
|
|
50
|
-
"@storybook/
|
|
51
|
-
"@storybook/
|
|
52
|
-
"@storybook/react
|
|
53
|
-
"@storybook/
|
|
46
|
+
"@playwright/test": "^1.55.1",
|
|
47
|
+
"@storybook/addon-a11y": "^8.6.14",
|
|
48
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
49
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
50
|
+
"@storybook/addon-links": "^8.6.14",
|
|
51
|
+
"@storybook/blocks": "^8.6.14",
|
|
52
|
+
"@storybook/react": "^8.6.14",
|
|
53
|
+
"@storybook/react-vite": "^8.6.14",
|
|
54
|
+
"@storybook/test-runner": "^0.23.0",
|
|
54
55
|
"@storybook/testing-library": "^0.2.2",
|
|
55
56
|
"@testing-library/react": "^14.1.2",
|
|
56
57
|
"@testing-library/user-event": "^14.5.1",
|
|
@@ -69,12 +70,11 @@
|
|
|
69
70
|
"generate-license-file": "^3.0.1",
|
|
70
71
|
"jest-image-snapshot": "^6.4.0",
|
|
71
72
|
"jsdom": "^24.1.0",
|
|
72
|
-
"@playwright/test": "^1.55.1",
|
|
73
73
|
"playwright-core": "^1.55.1",
|
|
74
74
|
"prop-types": "^15.8.1",
|
|
75
75
|
"react": "^18.2.0",
|
|
76
76
|
"react-dom": "^18.2.0",
|
|
77
|
-
"storybook": "^8.
|
|
77
|
+
"storybook": "^8.6.14",
|
|
78
78
|
"tsup": "^8.0.1",
|
|
79
79
|
"typescript": "^5.3.3",
|
|
80
80
|
"vite": "^5.4.11",
|