@yext/pages-components 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES +0 -84
- package/dist/debugger-BAemb18m.js +316 -0
- package/dist/debugger-DjyiKj4B.cjs +1 -0
- package/dist/{index-0El3OWzn.js → index-3y1PqoZ5.js} +5135 -4831
- package/dist/{index-CVyTX-WN.js → index-B7cF4XII.js} +835 -836
- package/dist/index-BE0QKqrR.cjs +61 -0
- package/dist/index-O3Mt_gby.cjs +14 -0
- package/dist/index.cjs +1 -0
- package/dist/{style.css → index.css} +1 -1
- package/dist/index.d.cts +2009 -0
- package/dist/index.d.ts +14 -2
- package/dist/index.js +57 -0
- package/package.json +40 -30
- package/dist/debugger-D8T3_sXQ.js +0 -317
- package/dist/pages-components.js +0 -56
package/dist/index.d.ts
CHANGED
|
@@ -1607,7 +1607,7 @@ declare function LexicalRichText({ serializedAST, nodeClassNames, }: LexicalRich
|
|
|
1607
1607
|
*/
|
|
1608
1608
|
declare const LegacyRichText: (props: {
|
|
1609
1609
|
markdown: string;
|
|
1610
|
-
}) => ReactElement<
|
|
1610
|
+
}) => ReactElement<any, string | React$1.JSXElementConstructor<any>> | null;
|
|
1611
1611
|
|
|
1612
1612
|
declare class HoursInterval {
|
|
1613
1613
|
end: DateTime;
|
|
@@ -1893,11 +1893,23 @@ declare const LocationSchema: (location?: Location) => false | {
|
|
|
1893
1893
|
name: string | undefined;
|
|
1894
1894
|
};
|
|
1895
1895
|
|
|
1896
|
+
type OpeningHoursSpecification = {
|
|
1897
|
+
"@type": "OpeningHoursSpecification";
|
|
1898
|
+
dayOfWeek?: string | string[];
|
|
1899
|
+
opens?: string;
|
|
1900
|
+
closes?: string;
|
|
1901
|
+
validFrom?: string;
|
|
1902
|
+
validThrough?: string;
|
|
1903
|
+
};
|
|
1896
1904
|
declare const OpeningHoursSchema: (hours?: HoursType) => {
|
|
1897
1905
|
openingHours?: undefined;
|
|
1898
1906
|
} | {
|
|
1899
1907
|
openingHours: string[];
|
|
1900
1908
|
};
|
|
1909
|
+
declare const OpeningHoursSpecificationSchema: (hours?: HoursType) => {
|
|
1910
|
+
openingHoursSpecification?: OpeningHoursSpecification[];
|
|
1911
|
+
specialOpeningHoursSpecification?: OpeningHoursSpecification[];
|
|
1912
|
+
};
|
|
1901
1913
|
|
|
1902
1914
|
type Offer = {
|
|
1903
1915
|
url?: string;
|
|
@@ -1994,4 +2006,4 @@ declare const LeafletMaps: MapProvider;
|
|
|
1994
2006
|
|
|
1995
2007
|
declare const MapQuestMaps: MapProvider;
|
|
1996
2008
|
|
|
1997
|
-
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, type HoursStatusProps, HoursTable, type HoursTableDayData, type HoursTableIntervalTranslations, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageTransformations, 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 StatusParams, type StatusTemplateParams, type TemplateParams, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, getImageUrl, getRichTextContent, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
|
|
2009
|
+
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, type HoursStatusProps, HoursTable, type HoursTableDayData, type HoursTableIntervalTranslations, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageTransformations, 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, OpeningHoursSpecificationSchema, type Organization, OrganizationSchema, PerformerSchema, type PhotoGallery, PhotoGallerySchema, PhotoSchema, type PinStoreType, Product, type Review, ReviewSchema, SchemaWrapper, type StatusParams, type StatusTemplateParams, type TemplateParams, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, getImageUrl, getRichTextContent, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { A as e, N as t, Y as i, e as o, f as r, l as c, o as n, _ as p, E as g, $ as u, C as h, a4 as m, D as l, F as S, J as d, a0 as M, H as P, B as y, I as x, q as A, a2 as L, z as C, y as f, r as O, L as v, G as R, x as T, O as B, s as H, M as I, a3 as b, a1 as k, v as D, T as w, Q as G, R as Q, V as z, U as E, W as F, X as U, P as V, Z as W, S as q, m as J, d as K, p as N, K as X, u as Y, w as Z, k as _, t as $, i as j, n as aa, h as sa } from "./index-3y1PqoZ5.js";
|
|
2
|
+
export {
|
|
3
|
+
e as Address,
|
|
4
|
+
t as AddressSchema,
|
|
5
|
+
i as AggregateRatingSchema,
|
|
6
|
+
o as Analytics,
|
|
7
|
+
r as AnalyticsContext,
|
|
8
|
+
c as AnalyticsProvider,
|
|
9
|
+
n as AnalyticsScopeProvider,
|
|
10
|
+
p as BaiduMaps,
|
|
11
|
+
g as BaseSchema,
|
|
12
|
+
u as BingMaps,
|
|
13
|
+
h as Clusterer,
|
|
14
|
+
m as CoordinateClass,
|
|
15
|
+
l as Day,
|
|
16
|
+
S as Event,
|
|
17
|
+
d as FAQPage,
|
|
18
|
+
M as GoogleMaps,
|
|
19
|
+
P as HoursStatus,
|
|
20
|
+
y as HoursTable,
|
|
21
|
+
x as Image,
|
|
22
|
+
A as ImageLayoutOption,
|
|
23
|
+
L as LeafletMaps,
|
|
24
|
+
C as LegacyRichText,
|
|
25
|
+
f as LexicalRichText,
|
|
26
|
+
O as Link,
|
|
27
|
+
v as ListingPublisherOption,
|
|
28
|
+
R as LocalBusiness,
|
|
29
|
+
T as LocationMap,
|
|
30
|
+
B as LocationSchema,
|
|
31
|
+
H as Map,
|
|
32
|
+
I as MapProviderOption,
|
|
33
|
+
b as MapQuestMaps,
|
|
34
|
+
k as MapboxMaps,
|
|
35
|
+
D as Marker,
|
|
36
|
+
w as OfferSchema,
|
|
37
|
+
G as OpeningHoursSchema,
|
|
38
|
+
Q as OpeningHoursSpecificationSchema,
|
|
39
|
+
z as OrganizationSchema,
|
|
40
|
+
E as PerformerSchema,
|
|
41
|
+
F as PhotoGallerySchema,
|
|
42
|
+
U as PhotoSchema,
|
|
43
|
+
V as Product,
|
|
44
|
+
W as ReviewSchema,
|
|
45
|
+
q as SchemaWrapper,
|
|
46
|
+
J as debuggingParamDetected,
|
|
47
|
+
K as getDirections,
|
|
48
|
+
N as getImageUrl,
|
|
49
|
+
X as getRichTextContent,
|
|
50
|
+
Y as useAnalytics,
|
|
51
|
+
Z as useClusterContext,
|
|
52
|
+
_ as useIdentify,
|
|
53
|
+
$ as useMapContext,
|
|
54
|
+
j as usePageView,
|
|
55
|
+
aa as useScope,
|
|
56
|
+
sa as useTrack
|
|
57
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yext/pages-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "A React component library that supports Yext Pages development",
|
|
5
5
|
"author": "sumo@yext.com",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -12,43 +12,51 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "https://github.com/yext/js.git"
|
|
14
14
|
},
|
|
15
|
-
"sideEffects":
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"**/*.css"
|
|
17
|
+
],
|
|
16
18
|
"type": "module",
|
|
17
19
|
"files": [
|
|
18
20
|
"dist",
|
|
19
21
|
"THIRD-PARTY-NOTICES"
|
|
20
22
|
],
|
|
21
|
-
"
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"module": "./dist/index.js",
|
|
22
25
|
"exports": {
|
|
23
26
|
".": {
|
|
24
27
|
"import": {
|
|
25
28
|
"types": "./dist/index.d.ts",
|
|
26
|
-
"default": "./dist/
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/index.d.cts",
|
|
33
|
+
"default": "./dist/index.cjs"
|
|
27
34
|
}
|
|
28
35
|
},
|
|
29
|
-
"./style.css": "./dist/
|
|
36
|
+
"./style.css": "./dist/index.css"
|
|
30
37
|
},
|
|
31
38
|
"types": "dist/index.d.ts",
|
|
32
39
|
"engines": {
|
|
33
|
-
"node": "^18 || ^20 || ^22"
|
|
40
|
+
"node": "^18 || ^20 || ^22 || ^24"
|
|
34
41
|
},
|
|
35
42
|
"peerDependencies": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
43
|
+
"lexical": "~0.38.2",
|
|
44
|
+
"mapbox-gl": "^2.9.2",
|
|
45
|
+
"react": "^17.0.2 || ^18.2.0",
|
|
46
|
+
"react-dom": "^17.0.2 || ^18.2.0"
|
|
39
47
|
},
|
|
40
48
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@storybook/addon-
|
|
43
|
-
"@storybook/addon-
|
|
44
|
-
"@storybook/addon-
|
|
45
|
-
"@storybook/
|
|
46
|
-
"@storybook/
|
|
47
|
-
"@storybook/react
|
|
48
|
-
"@storybook/
|
|
49
|
+
"@playwright/test": "^1.55.1",
|
|
50
|
+
"@storybook/addon-a11y": "^8.6.14",
|
|
51
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
52
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
53
|
+
"@storybook/addon-links": "^8.6.14",
|
|
54
|
+
"@storybook/blocks": "^8.6.14",
|
|
55
|
+
"@storybook/react": "^8.6.14",
|
|
56
|
+
"@storybook/react-vite": "^8.6.14",
|
|
57
|
+
"@storybook/test-runner": "^0.23.0",
|
|
49
58
|
"@storybook/testing-library": "^0.2.2",
|
|
50
|
-
"@testing-library/
|
|
51
|
-
"@testing-library/react": "^16.1.0",
|
|
59
|
+
"@testing-library/react": "^14.1.2",
|
|
52
60
|
"@testing-library/user-event": "^14.5.1",
|
|
53
61
|
"@types/bingmaps": "^0.0.1",
|
|
54
62
|
"@types/google.maps": "^3.58.1",
|
|
@@ -58,22 +66,26 @@
|
|
|
58
66
|
"@types/mapbox-gl": "^3.4.0",
|
|
59
67
|
"@types/mdast": "3.0.10",
|
|
60
68
|
"@types/node": "^20.10.4",
|
|
61
|
-
"@types/react": "^
|
|
62
|
-
"@types/react-dom": "^
|
|
69
|
+
"@types/react": "^18.2.45",
|
|
70
|
+
"@types/react-dom": "^18.2.17",
|
|
63
71
|
"@vitejs/plugin-react": "^4.2.1",
|
|
72
|
+
"autoprefixer": "^10.4.22",
|
|
64
73
|
"axe-core": "^4.8.2",
|
|
65
74
|
"axe-playwright": "^1.2.3",
|
|
66
75
|
"generate-license-file": "^3.0.1",
|
|
67
76
|
"jest-image-snapshot": "^6.4.0",
|
|
68
77
|
"jsdom": "^24.1.0",
|
|
69
|
-
"
|
|
78
|
+
"lightningcss-cli": "^1.30.2",
|
|
79
|
+
"picocolors": "^1.1.1",
|
|
70
80
|
"playwright-core": "^1.55.1",
|
|
81
|
+
"postcss": "^8.5.6",
|
|
71
82
|
"prop-types": "^15.8.1",
|
|
72
|
-
"react": "^
|
|
73
|
-
"react-dom": "^
|
|
74
|
-
"storybook": "^8.
|
|
83
|
+
"react": "^18.2.0",
|
|
84
|
+
"react-dom": "^18.2.0",
|
|
85
|
+
"storybook": "^8.6.14",
|
|
75
86
|
"tsup": "^8.0.1",
|
|
76
87
|
"typescript": "^5.3.3",
|
|
88
|
+
"unified": "11.0.4",
|
|
77
89
|
"vite": "^5.4.11",
|
|
78
90
|
"vite-tsconfig-paths": "^4.2.2",
|
|
79
91
|
"vitest": "^3.0.5"
|
|
@@ -90,7 +102,6 @@
|
|
|
90
102
|
"@yext/analytics": "^1.0.0",
|
|
91
103
|
"browser-or-node": "^3.0.0",
|
|
92
104
|
"classnames": "^2.5.1",
|
|
93
|
-
"lexical": "~0.38.2",
|
|
94
105
|
"luxon": "^3.7.2",
|
|
95
106
|
"mdast-util-from-markdown": "1.2.0",
|
|
96
107
|
"mdast-util-to-hast": "12.3.0",
|
|
@@ -100,15 +111,14 @@
|
|
|
100
111
|
"micromark-util-resolve-all": "1.0.0",
|
|
101
112
|
"micromark-util-symbol": "1.0.1",
|
|
102
113
|
"micromark-util-types": "1.0.2",
|
|
103
|
-
"picocolors": "^1.1.1",
|
|
104
114
|
"react-markdown": "^9.0.2",
|
|
105
|
-
"remark-rehype": "10.1.0"
|
|
106
|
-
"unified": "11.0.4",
|
|
107
|
-
"uvu": "0.5.6"
|
|
115
|
+
"remark-rehype": "10.1.0"
|
|
108
116
|
},
|
|
109
117
|
"scripts": {
|
|
110
118
|
"dev": "pnpm run storybook",
|
|
111
119
|
"build": "tsc && vite build",
|
|
120
|
+
"build:tsup": "tsup && pnpm build:css",
|
|
121
|
+
"build:css": "lightningcss --minify --bundle --targets \">= 0.25%\" src/index.css -o dist/index.css",
|
|
112
122
|
"storybook": "storybook dev -p 6006",
|
|
113
123
|
"build-storybook": "storybook build",
|
|
114
124
|
"test": "vitest run",
|
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as b, Fragment as C } from "react/jsx-runtime.js";
|
|
2
|
-
import { useState as E, useEffect as O, useRef as S } from "react";
|
|
3
|
-
import { createPortal as Y } from "react-dom";
|
|
4
|
-
import { g as T, c as N } from "./index-0El3OWzn.js";
|
|
5
|
-
function M() {
|
|
6
|
-
return T().name !== "browser" || window.hasOwnProperty("debuggerInitialized") ? null : (window.debuggerInitialized = !0, Y(/* @__PURE__ */ r($, {}), document.body));
|
|
7
|
-
}
|
|
8
|
-
const A = (e, s) => {
|
|
9
|
-
const n = e.dataset.yaAction, t = e.dataset.yaScopeoverride, l = e.dataset.yaEventname, a = t || s;
|
|
10
|
-
return {
|
|
11
|
-
action: n,
|
|
12
|
-
originalEventName: a ? `${a}_${l}` : l,
|
|
13
|
-
scope: a
|
|
14
|
-
};
|
|
15
|
-
}, R = (e, s) => {
|
|
16
|
-
const n = [];
|
|
17
|
-
let t = e;
|
|
18
|
-
for (; t != null && t.parentElement; )
|
|
19
|
-
t = t.parentElement.closest(s), t && n.push(t);
|
|
20
|
-
return n;
|
|
21
|
-
}, h = {}, D = "YA_NO_SCOPE", B = (e, s, n, t) => {
|
|
22
|
-
h.hasOwnProperty(e) ? h[e].events.map((l) => l.el).includes(t) || (h[e].events = [
|
|
23
|
-
...h[e].events,
|
|
24
|
-
{
|
|
25
|
-
eventData: s,
|
|
26
|
-
el: t
|
|
27
|
-
}
|
|
28
|
-
]) : h[e] = {
|
|
29
|
-
scopeEl: n || t,
|
|
30
|
-
// overidden scopes still need an element
|
|
31
|
-
events: [
|
|
32
|
-
{
|
|
33
|
-
eventData: s,
|
|
34
|
-
el: t
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
function $() {
|
|
40
|
-
const [e, s] = E(), [n, t] = E([]), [l, a] = E(!1), i = (o) => {
|
|
41
|
-
s(e === o ? void 0 : o);
|
|
42
|
-
};
|
|
43
|
-
return O(() => {
|
|
44
|
-
let o = null;
|
|
45
|
-
const u = () => {
|
|
46
|
-
o && o.abort(), o = new AbortController();
|
|
47
|
-
const c = o.signal;
|
|
48
|
-
document.documentElement.classList.add("xYextDebug"), document.querySelectorAll(
|
|
49
|
-
"[data-ya-eventname]"
|
|
50
|
-
).forEach((d, y) => {
|
|
51
|
-
const m = d.closest("[data-ya-scope]"), f = m == null ? void 0 : m.dataset.yaScope, p = A(d, f);
|
|
52
|
-
d.addEventListener(
|
|
53
|
-
"mouseenter",
|
|
54
|
-
() => {
|
|
55
|
-
t([
|
|
56
|
-
{
|
|
57
|
-
elem: d,
|
|
58
|
-
key: `${p.originalEventName}_${y}`,
|
|
59
|
-
action: p.action,
|
|
60
|
-
originalEventName: p.originalEventName,
|
|
61
|
-
scope: p.scope
|
|
62
|
-
}
|
|
63
|
-
]);
|
|
64
|
-
},
|
|
65
|
-
{ signal: c }
|
|
66
|
-
), d.addEventListener(
|
|
67
|
-
"mouseleave",
|
|
68
|
-
() => {
|
|
69
|
-
t([]);
|
|
70
|
-
},
|
|
71
|
-
{ signal: c }
|
|
72
|
-
);
|
|
73
|
-
const w = d.dataset.yaScopeoverride;
|
|
74
|
-
w ? B(w, p, m, d) : [
|
|
75
|
-
f,
|
|
76
|
-
...R(d, "[data-ya-scope]").map(
|
|
77
|
-
(x) => x.dataset.yaScope
|
|
78
|
-
)
|
|
79
|
-
].forEach((x) => {
|
|
80
|
-
B(x || D, p, m, d);
|
|
81
|
-
});
|
|
82
|
-
}), a(!0);
|
|
83
|
-
};
|
|
84
|
-
u();
|
|
85
|
-
const g = new MutationObserver(u);
|
|
86
|
-
return g.observe(document, {
|
|
87
|
-
childList: !0,
|
|
88
|
-
subtree: !0
|
|
89
|
-
}), () => {
|
|
90
|
-
document.documentElement.classList.remove("xYextDebug"), g.disconnect(), o == null || o.abort();
|
|
91
|
-
};
|
|
92
|
-
}, []), l ? /* @__PURE__ */ b(C, { children: [
|
|
93
|
-
/* @__PURE__ */ b("div", { className: "analytics-debugger", children: [
|
|
94
|
-
/* @__PURE__ */ b("div", { className: "analytics-debugger-toggles", children: [
|
|
95
|
-
/* @__PURE__ */ r(
|
|
96
|
-
"button",
|
|
97
|
-
{
|
|
98
|
-
className: N("analytics-debugger-toggle", {
|
|
99
|
-
"is-active": e === "Events"
|
|
100
|
-
}),
|
|
101
|
-
onClick: () => i("Events"),
|
|
102
|
-
children: "Events"
|
|
103
|
-
}
|
|
104
|
-
),
|
|
105
|
-
/* @__PURE__ */ r(
|
|
106
|
-
"button",
|
|
107
|
-
{
|
|
108
|
-
className: N("analytics-debugger-toggle", {
|
|
109
|
-
"is-active": e === "Scopes"
|
|
110
|
-
}),
|
|
111
|
-
onClick: () => i("Scopes"),
|
|
112
|
-
children: "Scopes"
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
] }),
|
|
116
|
-
e && /* @__PURE__ */ r("div", { className: "analytics-debugger-tabs", children: e === "Events" ? /* @__PURE__ */ r(j, { data: h, setTooltips: t }) : /* @__PURE__ */ r(_, { data: h, setTooltips: t }) })
|
|
117
|
-
] }),
|
|
118
|
-
/* @__PURE__ */ r(I, { tooltips: n })
|
|
119
|
-
] }) : null;
|
|
120
|
-
}
|
|
121
|
-
const L = () => {
|
|
122
|
-
const e = {};
|
|
123
|
-
return Object.values(h).forEach((s) => {
|
|
124
|
-
s.events.forEach((n) => {
|
|
125
|
-
const { originalEventName: t } = n.eventData;
|
|
126
|
-
e[t] || (e[t] = []), !e[t].find(
|
|
127
|
-
(l) => l.el === n.el
|
|
128
|
-
) && e[t].push(n);
|
|
129
|
-
});
|
|
130
|
-
}), e;
|
|
131
|
-
};
|
|
132
|
-
function j(e) {
|
|
133
|
-
const { setTooltips: s } = e, [n, t] = E([]), [l, a] = E(""), i = (o, u) => {
|
|
134
|
-
n.forEach(
|
|
135
|
-
(c) => c.classList.remove("analytics-event-highlight")
|
|
136
|
-
);
|
|
137
|
-
const g = o.map((c) => (c.el.scrollIntoView({ behavior: "smooth", block: "nearest" }), c.el.classList.add("analytics-event-highlight"), c.el));
|
|
138
|
-
t(g), a(u), s(
|
|
139
|
-
o.map((c, v) => ({
|
|
140
|
-
elem: c.el,
|
|
141
|
-
key: `${c.eventData.originalEventName}_${v}`,
|
|
142
|
-
action: c.eventData.action,
|
|
143
|
-
originalEventName: c.eventData.originalEventName,
|
|
144
|
-
scope: c.eventData.scope
|
|
145
|
-
}))
|
|
146
|
-
);
|
|
147
|
-
};
|
|
148
|
-
return /* @__PURE__ */ b("div", { className: "analytics-debugger-tab", children: [
|
|
149
|
-
/* @__PURE__ */ r("h2", { className: "analytics-debugger-tab-title", children: "Event Names" }),
|
|
150
|
-
/* @__PURE__ */ r("ul", { className: "analytics-debugger-list", children: Object.entries(L()).map(
|
|
151
|
-
([o, u], g) => {
|
|
152
|
-
const c = `${o}_${g}`;
|
|
153
|
-
return /* @__PURE__ */ r("li", { className: "analytics-debugger-listItem", children: /* @__PURE__ */ r(
|
|
154
|
-
"button",
|
|
155
|
-
{
|
|
156
|
-
className: N("analytics-debugger-button", {
|
|
157
|
-
"is-active": c === l
|
|
158
|
-
}),
|
|
159
|
-
onClick: () => i(u, c),
|
|
160
|
-
children: o
|
|
161
|
-
}
|
|
162
|
-
) }, c);
|
|
163
|
-
}
|
|
164
|
-
) })
|
|
165
|
-
] });
|
|
166
|
-
}
|
|
167
|
-
function _(e) {
|
|
168
|
-
const { data: s, setTooltips: n } = e, [t, l] = E(""), a = (i) => {
|
|
169
|
-
const o = s[i];
|
|
170
|
-
o.scopeEl && (o.scopeEl.scrollIntoView({
|
|
171
|
-
behavior: "smooth",
|
|
172
|
-
block: "nearest"
|
|
173
|
-
}), l(i), n(
|
|
174
|
-
o.events.map((u, g) => {
|
|
175
|
-
const c = u.eventData;
|
|
176
|
-
return {
|
|
177
|
-
elem: u.el,
|
|
178
|
-
key: `${c.originalEventName}_${g}`,
|
|
179
|
-
action: c.action,
|
|
180
|
-
originalEventName: c.originalEventName,
|
|
181
|
-
scope: c.scope
|
|
182
|
-
};
|
|
183
|
-
})
|
|
184
|
-
));
|
|
185
|
-
};
|
|
186
|
-
return /* @__PURE__ */ b("div", { className: "analytics-debugger-tab", children: [
|
|
187
|
-
/* @__PURE__ */ r("h2", { className: "analytics-debugger-tab-title", children: "Scope Names" }),
|
|
188
|
-
/* @__PURE__ */ r("ul", { className: "analytics-debugger-list", children: Object.keys(s).map((i, o) => {
|
|
189
|
-
if (i !== D)
|
|
190
|
-
return /* @__PURE__ */ r("li", { className: "analytics-debugger-listItem", children: /* @__PURE__ */ r(
|
|
191
|
-
"button",
|
|
192
|
-
{
|
|
193
|
-
className: N("analytics-debugger-button", {
|
|
194
|
-
"is-active": i === t
|
|
195
|
-
}),
|
|
196
|
-
onClick: () => a(i),
|
|
197
|
-
children: i
|
|
198
|
-
}
|
|
199
|
-
) }, i + o);
|
|
200
|
-
}) })
|
|
201
|
-
] });
|
|
202
|
-
}
|
|
203
|
-
function I(e) {
|
|
204
|
-
const s = S({});
|
|
205
|
-
return O(() => {
|
|
206
|
-
if (s.current)
|
|
207
|
-
for (const n of Object.values(s.current)) {
|
|
208
|
-
const t = Object.values(s.current).map((l) => l.el).filter((l) => l !== n.el);
|
|
209
|
-
P(n, t), n.el.style.visibility = "visible";
|
|
210
|
-
}
|
|
211
|
-
}, [e.tooltips]), /* @__PURE__ */ r(C, { children: e.tooltips.map((n) => /* @__PURE__ */ b(
|
|
212
|
-
"div",
|
|
213
|
-
{
|
|
214
|
-
style: { visibility: "hidden" },
|
|
215
|
-
className: "analytics-debugger-tooltip",
|
|
216
|
-
ref: (t) => {
|
|
217
|
-
t ? s.current[n.key] = {
|
|
218
|
-
el: t,
|
|
219
|
-
tooltip: n
|
|
220
|
-
} : delete s.current[n.key];
|
|
221
|
-
},
|
|
222
|
-
children: [
|
|
223
|
-
/* @__PURE__ */ b("span", { children: [
|
|
224
|
-
"Action: ",
|
|
225
|
-
n.action
|
|
226
|
-
] }),
|
|
227
|
-
/* @__PURE__ */ r("br", {}),
|
|
228
|
-
/* @__PURE__ */ b("span", { children: [
|
|
229
|
-
"Scope: ",
|
|
230
|
-
n.scope
|
|
231
|
-
] }),
|
|
232
|
-
/* @__PURE__ */ r("br", {}),
|
|
233
|
-
/* @__PURE__ */ b("span", { children: [
|
|
234
|
-
"Original Event Name: ",
|
|
235
|
-
n.originalEventName
|
|
236
|
-
] })
|
|
237
|
-
]
|
|
238
|
-
},
|
|
239
|
-
n.key
|
|
240
|
-
)) });
|
|
241
|
-
}
|
|
242
|
-
function P(e, s) {
|
|
243
|
-
for (let n = 0; n < 9; n++) {
|
|
244
|
-
const t = q(
|
|
245
|
-
e.tooltip.elem.getBoundingClientRect(),
|
|
246
|
-
e.el,
|
|
247
|
-
n
|
|
248
|
-
);
|
|
249
|
-
if (e.el.style.inset = `${t.top} auto auto ${t.left}`, !!W(
|
|
250
|
-
e.el.getBoundingClientRect().left,
|
|
251
|
-
e.el.getBoundingClientRect().top + window.scrollY,
|
|
252
|
-
e.el.getBoundingClientRect().right,
|
|
253
|
-
e.el.getBoundingClientRect().bottom + window.scrollY
|
|
254
|
-
)) continue;
|
|
255
|
-
let a = !0;
|
|
256
|
-
for (let i = 0; i < s.length; i++) {
|
|
257
|
-
const o = s[i];
|
|
258
|
-
H(e.el, o) && (a = !1);
|
|
259
|
-
}
|
|
260
|
-
if (a) break;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
function H(e, s) {
|
|
264
|
-
const n = e.getBoundingClientRect().top + window.scrollY, t = e.getBoundingClientRect().left, l = n + e.clientHeight, a = t + e.clientWidth, i = s.getBoundingClientRect().top + window.scrollY, o = s.getBoundingClientRect().left, u = i + s.clientHeight, g = o + s.clientWidth, c = (v, d, y, m, f, p, w, k) => y <= f && f <= w && m <= p && p <= k || y <= v && v <= w && m <= d && d <= k || y <= v && v <= w && m <= p && p <= k || y <= f && f <= w && m <= d && d <= k;
|
|
265
|
-
return c(t, n, o, i, a, l, g, u) || c(o, i, t, n, g, u, a, l);
|
|
266
|
-
}
|
|
267
|
-
function W(e, s, n, t) {
|
|
268
|
-
return e < 0 || n > window.innerWidth || s < 0 || t > document.documentElement.scrollHeight;
|
|
269
|
-
}
|
|
270
|
-
function q(e, s, n) {
|
|
271
|
-
const t = s.clientHeight, l = s.clientWidth;
|
|
272
|
-
let a, i;
|
|
273
|
-
switch (n) {
|
|
274
|
-
case 0: {
|
|
275
|
-
i = window.scrollY + e.top - t + "px", a = e.left - l + "px";
|
|
276
|
-
break;
|
|
277
|
-
}
|
|
278
|
-
case 1: {
|
|
279
|
-
i = window.scrollY + e.top - t + "px", a = e.left + "px";
|
|
280
|
-
break;
|
|
281
|
-
}
|
|
282
|
-
case 2: {
|
|
283
|
-
i = window.scrollY + e.top - t + "px", a = e.right + "px";
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
case 3: {
|
|
287
|
-
i = window.scrollY + e.top - t + "px", a = e.right - l + "px";
|
|
288
|
-
break;
|
|
289
|
-
}
|
|
290
|
-
case 4: {
|
|
291
|
-
i = window.scrollY + e.bottom + "px", a = e.left - l + "px";
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
case 5: {
|
|
295
|
-
i = window.scrollY + e.bottom + "px", a = e.left + "px";
|
|
296
|
-
break;
|
|
297
|
-
}
|
|
298
|
-
case 6: {
|
|
299
|
-
i = window.scrollY + e.bottom + "px", a = e.right - l + "px";
|
|
300
|
-
break;
|
|
301
|
-
}
|
|
302
|
-
case 7: {
|
|
303
|
-
i = window.scrollY + e.bottom + "px", a = e.right + "px";
|
|
304
|
-
break;
|
|
305
|
-
}
|
|
306
|
-
default:
|
|
307
|
-
i = 0, a = 0;
|
|
308
|
-
}
|
|
309
|
-
return {
|
|
310
|
-
top: i,
|
|
311
|
-
left: a
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
export {
|
|
315
|
-
$ as AnalyticsDebuggerInternal,
|
|
316
|
-
M as default
|
|
317
|
-
};
|
package/dist/pages-components.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { A as e, K as t, W as o, e as i, f as r, k as c, n, Y as p, B as g, Z as u, C as h, a2 as m, D as l, E as S, G as d, _ as M, H as P, z as y, I as x, p as A, a0 as L, y as C, x as f, q as O, L as v, F as R, w as T, N as B, r as I, M as b, a1 as k, $ as D, t as H, Q as w, O as G, T as Q, R as z, U as E, V as F, P as U, X as V, S as W, l as j, d as q, o as J, J as K, u as N, v as X, j as Y, s as Z, i as _, m as $, h as aa } from "./index-0El3OWzn.js";
|
|
2
|
-
export {
|
|
3
|
-
e as Address,
|
|
4
|
-
t as AddressSchema,
|
|
5
|
-
o as AggregateRatingSchema,
|
|
6
|
-
i as Analytics,
|
|
7
|
-
r as AnalyticsContext,
|
|
8
|
-
c as AnalyticsProvider,
|
|
9
|
-
n as AnalyticsScopeProvider,
|
|
10
|
-
p as BaiduMaps,
|
|
11
|
-
g as BaseSchema,
|
|
12
|
-
u as BingMaps,
|
|
13
|
-
h as Clusterer,
|
|
14
|
-
m as CoordinateClass,
|
|
15
|
-
l as Day,
|
|
16
|
-
S as Event,
|
|
17
|
-
d as FAQPage,
|
|
18
|
-
M as GoogleMaps,
|
|
19
|
-
P as HoursStatus,
|
|
20
|
-
y as HoursTable,
|
|
21
|
-
x as Image,
|
|
22
|
-
A as ImageLayoutOption,
|
|
23
|
-
L as LeafletMaps,
|
|
24
|
-
C as LegacyRichText,
|
|
25
|
-
f as LexicalRichText,
|
|
26
|
-
O as Link,
|
|
27
|
-
v as ListingPublisherOption,
|
|
28
|
-
R as LocalBusiness,
|
|
29
|
-
T as LocationMap,
|
|
30
|
-
B as LocationSchema,
|
|
31
|
-
I as Map,
|
|
32
|
-
b as MapProviderOption,
|
|
33
|
-
k as MapQuestMaps,
|
|
34
|
-
D as MapboxMaps,
|
|
35
|
-
H 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
|
-
U as Product,
|
|
43
|
-
V as ReviewSchema,
|
|
44
|
-
W as SchemaWrapper,
|
|
45
|
-
j as debuggingParamDetected,
|
|
46
|
-
q as getDirections,
|
|
47
|
-
J as getImageUrl,
|
|
48
|
-
K as getRichTextContent,
|
|
49
|
-
N as useAnalytics,
|
|
50
|
-
X as useClusterContext,
|
|
51
|
-
Y as useIdentify,
|
|
52
|
-
Z as useMapContext,
|
|
53
|
-
_ as usePageView,
|
|
54
|
-
$ as useScope,
|
|
55
|
-
aa as useTrack
|
|
56
|
-
};
|