@yext/pages-components 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{debugger-DIg74Hi7.js → debugger-Bs6mU3Vj.js} +1 -1
- package/dist/{debugger-Xi29RTwX.cjs → debugger-D4yFabmm.cjs} +1 -1
- package/dist/{index-D008ceFk.js → index-D2DTKjQt.js} +3 -3
- package/dist/{index-BAeydPvg.js → index-DINajhKX.js} +5606 -6026
- package/dist/{index-Cads-eer.cjs → index-Eb3ckUJC.cjs} +56 -54
- package/dist/{index-BPyzlGXA.cjs → index-Hfn6D19v.cjs} +2 -2
- package/dist/index.d.cts +394 -3
- package/dist/index.d.ts +394 -3
- package/dist/pages-components.cjs +1 -1
- package/dist/pages-components.js +48 -32
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,15 @@ interface GetDirectionsConfig {
|
|
|
90
90
|
provider?: MapProvider$1;
|
|
91
91
|
route?: boolean;
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Type definition for coordinate
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
interface DirectionCoordinate {
|
|
99
|
+
latitude: number;
|
|
100
|
+
longitude: number;
|
|
101
|
+
}
|
|
93
102
|
|
|
94
103
|
/**
|
|
95
104
|
* Renders an HTML address based from the Yext Knowledge Graph. Example of using the component to render
|
|
@@ -116,10 +125,11 @@ declare const Address: ({ address, lines, separator, ...props }: AddressProps) =
|
|
|
116
125
|
* @param listings - List of available Yext Listings
|
|
117
126
|
* @param googlePlaceId - Google Place ID
|
|
118
127
|
* @param config - Options for determining URL
|
|
128
|
+
* @param coordinates - Coordinates of location, if provided will be used instead of address or listings
|
|
119
129
|
*
|
|
120
130
|
* @returns Maps service url
|
|
121
131
|
*/
|
|
122
|
-
declare const getDirections: (address?: AddressType, listings?: ListingType[], googlePlaceId?: string, config?: GetDirectionsConfig) => string | undefined;
|
|
132
|
+
declare const getDirections: (address?: AddressType, listings?: ListingType[], googlePlaceId?: string, config?: GetDirectionsConfig, coordinate?: DirectionCoordinate) => string | undefined;
|
|
123
133
|
|
|
124
134
|
/**
|
|
125
135
|
* The shape of the data passed directly to the different template functions with the
|
|
@@ -139,6 +149,8 @@ type TrackProps = {
|
|
|
139
149
|
eventName?: string;
|
|
140
150
|
amount?: number;
|
|
141
151
|
currency?: string;
|
|
152
|
+
customTags?: Record<string, string>;
|
|
153
|
+
customValues?: Record<string, number>;
|
|
142
154
|
};
|
|
143
155
|
/**
|
|
144
156
|
* The AnalyticsMethod interface specifies the methods that can be used with
|
|
@@ -209,7 +221,8 @@ interface AnalyticsProviderProps {
|
|
|
209
221
|
disableSessionTracking?: boolean | undefined;
|
|
210
222
|
/**
|
|
211
223
|
* enableDebugging can be set to true if you want to expose tracked events
|
|
212
|
-
* in the developer console.
|
|
224
|
+
* in the Browser's developer console. When true, events will only be logged
|
|
225
|
+
* and will NOT be fired/sent through the Analytics SDK.
|
|
213
226
|
*/
|
|
214
227
|
enableDebugging?: boolean | undefined;
|
|
215
228
|
}
|
|
@@ -535,6 +548,16 @@ interface LinkConfig extends React.DetailedHTMLProps<React.AnchorHTMLAttributes<
|
|
|
535
548
|
currency?: string;
|
|
536
549
|
/** The monetary value of the event. */
|
|
537
550
|
amount?: number;
|
|
551
|
+
/**
|
|
552
|
+
* Up to 10 pairs matching custom string keys to string values to associate with the event.
|
|
553
|
+
* Keys are case-insensitive; values are case-sensitive.
|
|
554
|
+
*/
|
|
555
|
+
customTags?: Record<string, string>;
|
|
556
|
+
/**
|
|
557
|
+
* Up to 10 pairs matching custom string keys to number values to associate with the event.
|
|
558
|
+
* Keys are case-insensitive.
|
|
559
|
+
*/
|
|
560
|
+
customValues?: Record<string, number>;
|
|
538
561
|
}
|
|
539
562
|
/**
|
|
540
563
|
* The shape of the data passed to {@link Link} when directly passing an HREF to the Link component.
|
|
@@ -1277,6 +1300,374 @@ declare const HoursStatus: React__default.FC<HoursStatusProps>;
|
|
|
1277
1300
|
|
|
1278
1301
|
declare const HoursTable: React__default.FC<HoursTableProps>;
|
|
1279
1302
|
|
|
1303
|
+
declare const SchemaWrapper: (json: any) => string;
|
|
1304
|
+
|
|
1305
|
+
declare const BaseSchema: (document: Record<string, any>, schemaType: string) => {
|
|
1306
|
+
"@context": string;
|
|
1307
|
+
"@type": string;
|
|
1308
|
+
name: any;
|
|
1309
|
+
};
|
|
1310
|
+
|
|
1311
|
+
declare const Event: (document: Record<string, any>, schemaType?: string) => {
|
|
1312
|
+
offers?: {
|
|
1313
|
+
"@type": string;
|
|
1314
|
+
url: string | undefined;
|
|
1315
|
+
priceCurrency: string | undefined;
|
|
1316
|
+
price: string | undefined;
|
|
1317
|
+
priceValidUntil: string | undefined;
|
|
1318
|
+
itemCondition: string | undefined;
|
|
1319
|
+
availability: string | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
organizer?: {
|
|
1322
|
+
"@type": string;
|
|
1323
|
+
name: string | undefined;
|
|
1324
|
+
url: string | undefined;
|
|
1325
|
+
} | undefined;
|
|
1326
|
+
performer?: {
|
|
1327
|
+
"@type": string;
|
|
1328
|
+
name: string;
|
|
1329
|
+
} | undefined;
|
|
1330
|
+
startDate: any;
|
|
1331
|
+
endDate: any;
|
|
1332
|
+
description: any;
|
|
1333
|
+
eventAttendanceMode: any;
|
|
1334
|
+
eventStatus: any;
|
|
1335
|
+
address?: {
|
|
1336
|
+
"@type": string;
|
|
1337
|
+
streetAddress: string;
|
|
1338
|
+
addressLocality: string;
|
|
1339
|
+
addressRegion: string | undefined;
|
|
1340
|
+
postalCode: string;
|
|
1341
|
+
addressCountry: string;
|
|
1342
|
+
} | undefined;
|
|
1343
|
+
"@type": string;
|
|
1344
|
+
name: any;
|
|
1345
|
+
image?: undefined;
|
|
1346
|
+
"@context": string;
|
|
1347
|
+
} | {
|
|
1348
|
+
offers?: {
|
|
1349
|
+
"@type": string;
|
|
1350
|
+
url: string | undefined;
|
|
1351
|
+
priceCurrency: string | undefined;
|
|
1352
|
+
price: string | undefined;
|
|
1353
|
+
priceValidUntil: string | undefined;
|
|
1354
|
+
itemCondition: string | undefined;
|
|
1355
|
+
availability: string | undefined;
|
|
1356
|
+
} | undefined;
|
|
1357
|
+
organizer?: {
|
|
1358
|
+
"@type": string;
|
|
1359
|
+
name: string | undefined;
|
|
1360
|
+
url: string | undefined;
|
|
1361
|
+
} | undefined;
|
|
1362
|
+
performer?: {
|
|
1363
|
+
"@type": string;
|
|
1364
|
+
name: string;
|
|
1365
|
+
} | undefined;
|
|
1366
|
+
startDate: any;
|
|
1367
|
+
endDate: any;
|
|
1368
|
+
description: any;
|
|
1369
|
+
eventAttendanceMode: any;
|
|
1370
|
+
eventStatus: any;
|
|
1371
|
+
address?: {
|
|
1372
|
+
"@type": string;
|
|
1373
|
+
streetAddress: string;
|
|
1374
|
+
addressLocality: string;
|
|
1375
|
+
addressRegion: string | undefined;
|
|
1376
|
+
postalCode: string;
|
|
1377
|
+
addressCountry: string;
|
|
1378
|
+
} | undefined;
|
|
1379
|
+
"@type": string;
|
|
1380
|
+
name: any;
|
|
1381
|
+
image: string[];
|
|
1382
|
+
"@context": string;
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
declare const LocalBusiness: (document: Record<string, any>, schemaType?: string) => {
|
|
1386
|
+
description: any;
|
|
1387
|
+
telephone: any;
|
|
1388
|
+
email: any;
|
|
1389
|
+
image?: undefined;
|
|
1390
|
+
openingHours?: undefined;
|
|
1391
|
+
address?: {
|
|
1392
|
+
"@type": string;
|
|
1393
|
+
streetAddress: string;
|
|
1394
|
+
addressLocality: string;
|
|
1395
|
+
addressRegion: string | undefined;
|
|
1396
|
+
postalCode: string;
|
|
1397
|
+
addressCountry: string;
|
|
1398
|
+
} | undefined;
|
|
1399
|
+
"@context": string;
|
|
1400
|
+
"@type": string;
|
|
1401
|
+
name: any;
|
|
1402
|
+
} | {
|
|
1403
|
+
description: any;
|
|
1404
|
+
telephone: any;
|
|
1405
|
+
email: any;
|
|
1406
|
+
image: string[];
|
|
1407
|
+
openingHours?: undefined;
|
|
1408
|
+
address?: {
|
|
1409
|
+
"@type": string;
|
|
1410
|
+
streetAddress: string;
|
|
1411
|
+
addressLocality: string;
|
|
1412
|
+
addressRegion: string | undefined;
|
|
1413
|
+
postalCode: string;
|
|
1414
|
+
addressCountry: string;
|
|
1415
|
+
} | undefined;
|
|
1416
|
+
"@context": string;
|
|
1417
|
+
"@type": string;
|
|
1418
|
+
name: any;
|
|
1419
|
+
} | {
|
|
1420
|
+
description: any;
|
|
1421
|
+
telephone: any;
|
|
1422
|
+
email: any;
|
|
1423
|
+
image?: undefined;
|
|
1424
|
+
openingHours: string[];
|
|
1425
|
+
address?: {
|
|
1426
|
+
"@type": string;
|
|
1427
|
+
streetAddress: string;
|
|
1428
|
+
addressLocality: string;
|
|
1429
|
+
addressRegion: string | undefined;
|
|
1430
|
+
postalCode: string;
|
|
1431
|
+
addressCountry: string;
|
|
1432
|
+
} | undefined;
|
|
1433
|
+
"@context": string;
|
|
1434
|
+
"@type": string;
|
|
1435
|
+
name: any;
|
|
1436
|
+
} | {
|
|
1437
|
+
description: any;
|
|
1438
|
+
telephone: any;
|
|
1439
|
+
email: any;
|
|
1440
|
+
image: string[];
|
|
1441
|
+
openingHours: string[];
|
|
1442
|
+
address?: {
|
|
1443
|
+
"@type": string;
|
|
1444
|
+
streetAddress: string;
|
|
1445
|
+
addressLocality: string;
|
|
1446
|
+
addressRegion: string | undefined;
|
|
1447
|
+
postalCode: string;
|
|
1448
|
+
addressCountry: string;
|
|
1449
|
+
} | undefined;
|
|
1450
|
+
"@context": string;
|
|
1451
|
+
"@type": string;
|
|
1452
|
+
name: any;
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
declare const Product: (document: Record<string, any>, schemaType?: string) => {
|
|
1456
|
+
description: any;
|
|
1457
|
+
sku: any;
|
|
1458
|
+
mpn: any;
|
|
1459
|
+
brand: {
|
|
1460
|
+
"@type": string;
|
|
1461
|
+
name: any;
|
|
1462
|
+
};
|
|
1463
|
+
offers?: {
|
|
1464
|
+
"@type": string;
|
|
1465
|
+
url: string | undefined;
|
|
1466
|
+
priceCurrency: string | undefined;
|
|
1467
|
+
price: string | undefined;
|
|
1468
|
+
priceValidUntil: string | undefined;
|
|
1469
|
+
itemCondition: string | undefined;
|
|
1470
|
+
availability: string | undefined;
|
|
1471
|
+
} | undefined;
|
|
1472
|
+
aggregateRating?: {
|
|
1473
|
+
"@type": string;
|
|
1474
|
+
ratingValue: string | undefined;
|
|
1475
|
+
reviewCount: string | undefined;
|
|
1476
|
+
} | undefined;
|
|
1477
|
+
review?: {
|
|
1478
|
+
"@type": string;
|
|
1479
|
+
reviewRating: {
|
|
1480
|
+
"@type": string;
|
|
1481
|
+
ratingValue: string | undefined;
|
|
1482
|
+
bestRating: string | undefined;
|
|
1483
|
+
};
|
|
1484
|
+
author: {
|
|
1485
|
+
"@type": string;
|
|
1486
|
+
name: string | undefined;
|
|
1487
|
+
};
|
|
1488
|
+
} | undefined;
|
|
1489
|
+
image?: undefined;
|
|
1490
|
+
"@context": string;
|
|
1491
|
+
"@type": string;
|
|
1492
|
+
name: any;
|
|
1493
|
+
} | {
|
|
1494
|
+
description: any;
|
|
1495
|
+
sku: any;
|
|
1496
|
+
mpn: any;
|
|
1497
|
+
brand: {
|
|
1498
|
+
"@type": string;
|
|
1499
|
+
name: any;
|
|
1500
|
+
};
|
|
1501
|
+
offers?: {
|
|
1502
|
+
"@type": string;
|
|
1503
|
+
url: string | undefined;
|
|
1504
|
+
priceCurrency: string | undefined;
|
|
1505
|
+
price: string | undefined;
|
|
1506
|
+
priceValidUntil: string | undefined;
|
|
1507
|
+
itemCondition: string | undefined;
|
|
1508
|
+
availability: string | undefined;
|
|
1509
|
+
} | undefined;
|
|
1510
|
+
aggregateRating?: {
|
|
1511
|
+
"@type": string;
|
|
1512
|
+
ratingValue: string | undefined;
|
|
1513
|
+
reviewCount: string | undefined;
|
|
1514
|
+
} | undefined;
|
|
1515
|
+
review?: {
|
|
1516
|
+
"@type": string;
|
|
1517
|
+
reviewRating: {
|
|
1518
|
+
"@type": string;
|
|
1519
|
+
ratingValue: string | undefined;
|
|
1520
|
+
bestRating: string | undefined;
|
|
1521
|
+
};
|
|
1522
|
+
author: {
|
|
1523
|
+
"@type": string;
|
|
1524
|
+
name: string | undefined;
|
|
1525
|
+
};
|
|
1526
|
+
} | undefined;
|
|
1527
|
+
image: string[];
|
|
1528
|
+
"@context": string;
|
|
1529
|
+
"@type": string;
|
|
1530
|
+
name: any;
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
type RTF2 = {
|
|
1534
|
+
json?: Record<string, any>;
|
|
1535
|
+
};
|
|
1536
|
+
type FAQ = {
|
|
1537
|
+
question: string;
|
|
1538
|
+
answer: string;
|
|
1539
|
+
} | {
|
|
1540
|
+
question: string;
|
|
1541
|
+
answerV2: RTF2;
|
|
1542
|
+
};
|
|
1543
|
+
declare const FAQPage: (data: FAQ[]) => {
|
|
1544
|
+
"@context": string;
|
|
1545
|
+
"@type": string;
|
|
1546
|
+
mainEntity: {
|
|
1547
|
+
"@type": string;
|
|
1548
|
+
name: string;
|
|
1549
|
+
acceptedAnswer: {
|
|
1550
|
+
"@type": string;
|
|
1551
|
+
text: string;
|
|
1552
|
+
};
|
|
1553
|
+
}[];
|
|
1554
|
+
};
|
|
1555
|
+
|
|
1556
|
+
type Location = {
|
|
1557
|
+
name?: string;
|
|
1558
|
+
address?: AddressType;
|
|
1559
|
+
};
|
|
1560
|
+
declare const AddressSchema: (address?: AddressType) => {
|
|
1561
|
+
address: {
|
|
1562
|
+
"@type": string;
|
|
1563
|
+
streetAddress: string;
|
|
1564
|
+
addressLocality: string;
|
|
1565
|
+
addressRegion: string | undefined;
|
|
1566
|
+
postalCode: string;
|
|
1567
|
+
addressCountry: string;
|
|
1568
|
+
};
|
|
1569
|
+
} | undefined;
|
|
1570
|
+
declare const LocationSchema: (location?: Location) => {
|
|
1571
|
+
address?: {
|
|
1572
|
+
"@type": string;
|
|
1573
|
+
streetAddress: string;
|
|
1574
|
+
addressLocality: string;
|
|
1575
|
+
addressRegion: string | undefined;
|
|
1576
|
+
postalCode: string;
|
|
1577
|
+
addressCountry: string;
|
|
1578
|
+
} | undefined;
|
|
1579
|
+
"@type": string;
|
|
1580
|
+
name: string | undefined;
|
|
1581
|
+
} | undefined;
|
|
1582
|
+
|
|
1583
|
+
declare const OpeningHoursSchema: (hours?: HoursType) => {
|
|
1584
|
+
openingHours?: undefined;
|
|
1585
|
+
} | {
|
|
1586
|
+
openingHours: string[];
|
|
1587
|
+
};
|
|
1588
|
+
|
|
1589
|
+
type Offer = {
|
|
1590
|
+
url?: string;
|
|
1591
|
+
priceCurrency?: string;
|
|
1592
|
+
price?: string;
|
|
1593
|
+
priceValidUntil?: string;
|
|
1594
|
+
itemCondition?: string;
|
|
1595
|
+
availability?: string;
|
|
1596
|
+
};
|
|
1597
|
+
declare const OfferSchema: (offer?: Offer) => {
|
|
1598
|
+
offers: {
|
|
1599
|
+
"@type": string;
|
|
1600
|
+
url: string | undefined;
|
|
1601
|
+
priceCurrency: string | undefined;
|
|
1602
|
+
price: string | undefined;
|
|
1603
|
+
priceValidUntil: string | undefined;
|
|
1604
|
+
itemCondition: string | undefined;
|
|
1605
|
+
availability: string | undefined;
|
|
1606
|
+
};
|
|
1607
|
+
} | undefined;
|
|
1608
|
+
|
|
1609
|
+
type Organization = {
|
|
1610
|
+
name?: string;
|
|
1611
|
+
url?: string;
|
|
1612
|
+
};
|
|
1613
|
+
declare const PerformerSchema: (performers?: string[]) => {
|
|
1614
|
+
performer: {
|
|
1615
|
+
"@type": string;
|
|
1616
|
+
name: string;
|
|
1617
|
+
};
|
|
1618
|
+
} | undefined;
|
|
1619
|
+
declare const OrganizationSchema: (org?: Organization) => {
|
|
1620
|
+
organizer: {
|
|
1621
|
+
"@type": string;
|
|
1622
|
+
name: string | undefined;
|
|
1623
|
+
url: string | undefined;
|
|
1624
|
+
};
|
|
1625
|
+
} | undefined;
|
|
1626
|
+
|
|
1627
|
+
type PhotoGallery = Photo[];
|
|
1628
|
+
type Photo = {
|
|
1629
|
+
image: ImageType;
|
|
1630
|
+
};
|
|
1631
|
+
declare const PhotoGallerySchema: (gallery?: PhotoGallery) => {
|
|
1632
|
+
image?: undefined;
|
|
1633
|
+
} | {
|
|
1634
|
+
image: string[];
|
|
1635
|
+
};
|
|
1636
|
+
declare const PhotoSchema: (photo?: Photo) => {
|
|
1637
|
+
image: string;
|
|
1638
|
+
} | undefined;
|
|
1639
|
+
|
|
1640
|
+
type Review = {
|
|
1641
|
+
ratingValue?: string;
|
|
1642
|
+
bestRating?: string;
|
|
1643
|
+
author?: string;
|
|
1644
|
+
};
|
|
1645
|
+
type AggregateRating = {
|
|
1646
|
+
ratingValue?: string;
|
|
1647
|
+
reviewCount?: string;
|
|
1648
|
+
};
|
|
1649
|
+
declare const ReviewSchema: (review?: Review) => {
|
|
1650
|
+
review: {
|
|
1651
|
+
"@type": string;
|
|
1652
|
+
reviewRating: {
|
|
1653
|
+
"@type": string;
|
|
1654
|
+
ratingValue: string | undefined;
|
|
1655
|
+
bestRating: string | undefined;
|
|
1656
|
+
};
|
|
1657
|
+
author: {
|
|
1658
|
+
"@type": string;
|
|
1659
|
+
name: string | undefined;
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
} | undefined;
|
|
1663
|
+
declare const AggregateRatingSchema: (rating?: AggregateRating) => {
|
|
1664
|
+
aggregateRating: {
|
|
1665
|
+
"@type": string;
|
|
1666
|
+
ratingValue: string | undefined;
|
|
1667
|
+
reviewCount: string | undefined;
|
|
1668
|
+
};
|
|
1669
|
+
} | undefined;
|
|
1670
|
+
|
|
1280
1671
|
/**
|
|
1281
1672
|
* @type {module:@yext/components-maps~MapProvider}
|
|
1282
1673
|
*/
|
|
@@ -1307,4 +1698,4 @@ declare const LeafletMaps: any;
|
|
|
1307
1698
|
*/
|
|
1308
1699
|
declare const MapQuestMaps: any;
|
|
1309
1700
|
|
|
1310
|
-
export { Address, type AddressLine, type AddressLineProps, type AddressProps, type AddressType, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, BingMaps, type CTA, type CTAWithChildrenLinkProps, type CTAWithoutChildrenLinkProps, type ClusterTemplateProps, Clusterer, type ClustererContextType, type ClustererProps, type ComplexImageType, type Coordinate, Coordinate$1 as CoordinateClass, Day, type DayOfWeekNames, type DayType, type GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, HoursTable, type HoursTableDayData, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, LinkTypes, type ListingPublisher, ListingPublisherOption, type ListingType, LocationMap, type LocationMapProps, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type PinStoreType, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
|
|
1701
|
+
export { Address, type AddressLine, type AddressLineProps, type AddressProps, AddressSchema, type AddressType, type AggregateRating, AggregateRatingSchema, Analytics, AnalyticsContext, AnalyticsProvider, AnalyticsScopeProvider, BaiduMaps, BaseSchema, BingMaps, type CTA, type CTAWithChildrenLinkProps, type CTAWithoutChildrenLinkProps, type ClusterTemplateProps, Clusterer, type ClustererContextType, type ClustererProps, type ComplexImageType, type Coordinate, Coordinate$1 as CoordinateClass, Day, type DayOfWeekNames, type DayType, type DirectionCoordinate, Event, FAQPage, type GetDirectionsConfig, GoogleMaps, type HREFLinkProps, type HolidayType, HoursStatus, HoursTable, type HoursTableDayData, type HoursTableProps, type HoursType, Image, type ImageLayout, ImageLayoutOption, type ImageProps, type ImageType, type IntervalType, LeafletMaps, LegacyRichText, LexicalRichText, type LexicalRichTextProps, Link, type LinkProps, type LinkType, LinkTypes, type ListingPublisher, ListingPublisherOption, type ListingType, LocalBusiness, type Location, LocationMap, type LocationMapProps, LocationSchema, Map, type MapContextType, type MapProps, type MapProvider$1 as MapProvider, MapProviderOption, MapQuestMaps, MapboxMaps, Marker, type MarkerProps, type Offer, OfferSchema, OpeningHoursSchema, type Organization, OrganizationSchema, PerformerSchema, type PhotoGallery, PhotoGallerySchema, PhotoSchema, type PinStoreType, Product, type Review, ReviewSchema, SchemaWrapper, type ThumbnailType, type WeekType, debuggingParamDetected, getDirections, useAnalytics, useClusterContext, useIdentify, useMapContext, usePageView, useScope, useTrack };
|
|
@@ -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-Eb3ckUJC.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.LinkTypes=e.LinkTypes;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,39 +1,55 @@
|
|
|
1
|
-
import { A as e,
|
|
1
|
+
import { A as e, a3 as t, ac as i, x as o, y as r, E as c, H as n, ad as p, _ as u, ae as g, R as h, aj as m, Y as l, $ as S, a2 as d, af as M, W as y, X as P, I as L, J as A, ah as x, V as C, U as f, K as O, N as T, L as b, a0 as v, T as B, a4 as R, O as k, M as D, ai as H, ag as I, Q as w, a6 as G, a5 as Q, a8 as z, a7 as E, a9 as F, aa as V, a1 as W, ab as j, Z as J, F as K, w as N, z as U, S as X, D as Y, P as Z, C as _, G as $, B as q } from "./index-DINajhKX.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Address,
|
|
4
|
-
t as
|
|
5
|
-
i as
|
|
6
|
-
o as
|
|
7
|
-
r as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
+
u as BaseSchema,
|
|
12
|
+
g 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
|
+
y as HoursStatus,
|
|
20
|
+
P as HoursTable,
|
|
21
|
+
L as Image,
|
|
22
|
+
A as ImageLayoutOption,
|
|
23
|
+
x as LeafletMaps,
|
|
19
24
|
C as LegacyRichText,
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
f as LexicalRichText,
|
|
26
|
+
O as Link,
|
|
22
27
|
T as LinkTypes,
|
|
23
28
|
b as ListingPublisherOption,
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
v as LocalBusiness,
|
|
30
|
+
B as LocationMap,
|
|
31
|
+
R as LocationSchema,
|
|
32
|
+
k as Map,
|
|
26
33
|
D as MapProviderOption,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
H as MapQuestMaps,
|
|
35
|
+
I as MapboxMaps,
|
|
36
|
+
w as Marker,
|
|
37
|
+
G as OfferSchema,
|
|
38
|
+
Q as OpeningHoursSchema,
|
|
39
|
+
z as OrganizationSchema,
|
|
40
|
+
E as PerformerSchema,
|
|
41
|
+
F as PhotoGallerySchema,
|
|
42
|
+
V as PhotoSchema,
|
|
43
|
+
W as Product,
|
|
44
|
+
j as ReviewSchema,
|
|
45
|
+
J as SchemaWrapper,
|
|
46
|
+
K as debuggingParamDetected,
|
|
47
|
+
N as getDirections,
|
|
48
|
+
U as useAnalytics,
|
|
49
|
+
X as useClusterContext,
|
|
50
|
+
Y as useIdentify,
|
|
51
|
+
Z as useMapContext,
|
|
52
|
+
_ as usePageView,
|
|
53
|
+
$ as useScope,
|
|
54
|
+
q as useTrack
|
|
39
55
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yext/pages-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A React component library that supports Yext Pages development",
|
|
5
5
|
"author": "sumo@yext.com",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -71,15 +71,15 @@
|
|
|
71
71
|
"generate-license-file": "^3.0.1",
|
|
72
72
|
"jest-image-snapshot": "^6.4.0",
|
|
73
73
|
"jsdom": "^24.1.0",
|
|
74
|
-
"@playwright/test": "^1.
|
|
75
|
-
"playwright-core": "^1.
|
|
74
|
+
"@playwright/test": "^1.48.2",
|
|
75
|
+
"playwright-core": "^1.48.2",
|
|
76
76
|
"prop-types": "^15.8.1",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-dom": "^18.2.0",
|
|
79
79
|
"storybook": "^8.2.4",
|
|
80
80
|
"tsup": "^8.0.1",
|
|
81
81
|
"typescript": "^5.3.3",
|
|
82
|
-
"vite": "^5.
|
|
82
|
+
"vite": "^5.4.11",
|
|
83
83
|
"vite-tsconfig-paths": "^4.2.2",
|
|
84
84
|
"vitest": "^1.6.0"
|
|
85
85
|
},
|