@yext/pages-components 1.0.0-rc.0
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/LICENSE +32 -0
- package/THIRD-PARTY-NOTICES +396 -0
- package/dist/index--cy1NwMF.js +5960 -0
- package/dist/index-QH0gPEMu.cjs +47 -0
- package/dist/index-QPKDAq--.cjs +103 -0
- package/dist/index-i0mhhNq7.js +28418 -0
- package/dist/index.d.cts +1389 -0
- package/dist/index.d.ts +1389 -0
- package/dist/pages-components.cjs +1 -0
- package/dist/pages-components.js +38 -0
- package/dist/style.css +1 -0
- package/package.json +117 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-QPKDAq--.cjs");require("react");require("react-dom");exports.Address=e.Address;exports.Analytics=e.Analytics;exports.AnalyticsContext=e.AnalyticsContext;exports.AnalyticsProvider=e.AnalyticsProvider;exports.AnalyticsScopeProvider=e.AnalyticsScopeProvider;exports.BaiduMaps=e.BaiduMaps;exports.BingMaps=e.BingMaps;exports.Clusterer=e.Clusterer;exports.GoogleMaps=e.GoogleMaps;exports.Hours=e.Hours;exports.HoursManipulator=e.HoursManipulator;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.LocationMap=e.LocationMap;exports.Map=e.Map;exports.MapProviderOption=e.MapProviderOption;exports.MapQuestMaps=e.MapQuestMaps;exports.MapboxMaps=e.MapboxMaps;exports.Marker=e.Marker;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;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { A as i, t as o, u as p, B as r, D as n, U as u, V as M, N as c, W as l, S as y, T as x, I as L, E as g, Y as d, R as A, Q as C, F as P, G as m, L as T, P as k, H as I, M as O, Z as f, X as h, K as v, q as B, w as H, O as R, z as S, J as b, y as w, C as D, x as G } from "./index-i0mhhNq7.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
export {
|
|
5
|
+
i as Address,
|
|
6
|
+
o as Analytics,
|
|
7
|
+
p as AnalyticsContext,
|
|
8
|
+
r as AnalyticsProvider,
|
|
9
|
+
n as AnalyticsScopeProvider,
|
|
10
|
+
u as BaiduMaps,
|
|
11
|
+
M as BingMaps,
|
|
12
|
+
c as Clusterer,
|
|
13
|
+
l as GoogleMaps,
|
|
14
|
+
y as Hours,
|
|
15
|
+
x as HoursManipulator,
|
|
16
|
+
L as Image,
|
|
17
|
+
g as ImageLayoutOption,
|
|
18
|
+
d as LeafletMaps,
|
|
19
|
+
A as LegacyRichText,
|
|
20
|
+
C as LexicalRichText,
|
|
21
|
+
P as Link,
|
|
22
|
+
m as LinkTypes,
|
|
23
|
+
T as ListingPublisherOption,
|
|
24
|
+
k as LocationMap,
|
|
25
|
+
I as Map,
|
|
26
|
+
O as MapProviderOption,
|
|
27
|
+
f as MapQuestMaps,
|
|
28
|
+
h as MapboxMaps,
|
|
29
|
+
v as Marker,
|
|
30
|
+
B as getDirections,
|
|
31
|
+
H as useAnalytics,
|
|
32
|
+
R as useClusterContext,
|
|
33
|
+
S as useIdentify,
|
|
34
|
+
b as useMapContext,
|
|
35
|
+
w as usePageView,
|
|
36
|
+
D as useScope,
|
|
37
|
+
G as useTrack
|
|
38
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +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:rgba(255,212,0,.14);border-bottom:2px solid rgba(255,212,0,.3);padding-bottom:2px}._yext-default-richtextv2-theme__markOverlap_13v3w_366{background:rgba(255,212,0,.3);border-bottom:2px solid rgba(255,212,0,.7)}._yext-default-richtextv2-theme__mark_13v3w_361._selected_13v3w_370{background:rgba(255,212,0,.5);border-bottom:2px solid rgba(255,212,0,1)}._yext-default-richtextv2-theme__markOverlap_13v3w_366._selected_13v3w_370{background:rgba(255,212,0,.7);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}@layer components{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)}}
|
package/package.json
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yext/pages-components",
|
|
3
|
+
"version": "1.0.0-rc.0",
|
|
4
|
+
"description": "A React component library that supports Yext Pages development",
|
|
5
|
+
"author": "sumo@yext.com",
|
|
6
|
+
"license": "BSD-3-Clause",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"Yext",
|
|
9
|
+
"React"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"type": "module",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"THIRD-PARTY-NOTICES"
|
|
16
|
+
],
|
|
17
|
+
"main": "./dist/pages-components.cjs",
|
|
18
|
+
"module": "./dist/pages-components.js",
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"default": "./dist/pages-components.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/index.d.cts",
|
|
27
|
+
"default": "./dist/pages-components.cjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"./style.css": "./dist/style.css"
|
|
31
|
+
},
|
|
32
|
+
"types": "dist/index.d.ts",
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": "^17 || ^18 || ^20"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"dev": "pnpm run storybook",
|
|
38
|
+
"build": "tsc && vite build",
|
|
39
|
+
"storybook": "storybook dev -p 6006",
|
|
40
|
+
"build-storybook": "storybook build",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"wcag": "test-storybook -c .storybook/wcag",
|
|
43
|
+
"generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite",
|
|
44
|
+
"prepare": "pnpm build",
|
|
45
|
+
"update-snapshots": "test-storybook -c .storybook/snapshots -u"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"react": "^17.0.2 || ^18.2.0",
|
|
49
|
+
"react-dom": "^17.0.2 || ^18.2.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@storybook/addon-a11y": "^7.6.4",
|
|
53
|
+
"@storybook/addon-essentials": "^7.6.4",
|
|
54
|
+
"@storybook/addon-interactions": "^7.6.4",
|
|
55
|
+
"@storybook/addon-links": "^7.6.4",
|
|
56
|
+
"@storybook/blocks": "^7.6.4",
|
|
57
|
+
"@storybook/react": "^7.6.4",
|
|
58
|
+
"@storybook/react-vite": "^7.6.4",
|
|
59
|
+
"@storybook/test-runner": "^0.16.0",
|
|
60
|
+
"@storybook/testing-library": "^0.2.2",
|
|
61
|
+
"@types/jest-image-snapshot": "^6.4.0",
|
|
62
|
+
"@testing-library/react": "^14.1.2",
|
|
63
|
+
"@testing-library/user-event": "^14.5.1",
|
|
64
|
+
"@types/node": "^20.10.4",
|
|
65
|
+
"@types/react": "^18.2.45",
|
|
66
|
+
"@types/react-dom": "^18.2.17",
|
|
67
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
68
|
+
"axe-core": "^4.8.2",
|
|
69
|
+
"axe-playwright": "^1.2.3",
|
|
70
|
+
"jest-image-snapshot": "^6.4.0",
|
|
71
|
+
"jsdom": "23.0.1",
|
|
72
|
+
"generate-license-file": "^3.0.1",
|
|
73
|
+
"playwright-core": "^1.40.1",
|
|
74
|
+
"identity-obj-proxy": "^3.0.0",
|
|
75
|
+
"prop-types": "^15.8.1",
|
|
76
|
+
"storybook": "^7.6.4",
|
|
77
|
+
"tsup": "^8.0.1",
|
|
78
|
+
"typescript": "^5.3.3",
|
|
79
|
+
"vite": "^5.0.8",
|
|
80
|
+
"vite-tsconfig-paths": "^4.2.2",
|
|
81
|
+
"vitest": "1.0.4"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@lexical/code": "^0.12.5",
|
|
85
|
+
"@lexical/hashtag": "^0.12.5",
|
|
86
|
+
"@lexical/link": "^0.12.5",
|
|
87
|
+
"@lexical/list": "^0.12.5",
|
|
88
|
+
"@lexical/react": "^0.12.5",
|
|
89
|
+
"@lexical/rich-text": "^0.12.5",
|
|
90
|
+
"@lexical/table": "^0.12.5",
|
|
91
|
+
"@lexical/utils": "^0.12.5",
|
|
92
|
+
"@yext/analytics": "^0.6.5",
|
|
93
|
+
"browser-or-node": "^2.1.1",
|
|
94
|
+
"classnames": "^2.3.2",
|
|
95
|
+
"cross-fetch": "^4.0.0",
|
|
96
|
+
"lexical": "^0.12.5",
|
|
97
|
+
"@types/mdast": "3.0.10",
|
|
98
|
+
"mdast-util-from-markdown": "1.2.0",
|
|
99
|
+
"mdast-util-to-hast": "12.3.0",
|
|
100
|
+
"micromark-util-chunked": "1.0.0",
|
|
101
|
+
"micromark-util-classify-character": "1.0.0",
|
|
102
|
+
"micromark-util-combine-extensions": "1.0.0",
|
|
103
|
+
"micromark-util-resolve-all": "1.0.0",
|
|
104
|
+
"micromark-util-symbol": "1.0.1",
|
|
105
|
+
"micromark-util-types": "1.0.2",
|
|
106
|
+
"picocolors": "^1.0.0",
|
|
107
|
+
"react-markdown": "^8.0.0",
|
|
108
|
+
"remark-rehype": "10.1.0",
|
|
109
|
+
"unified": "11.0.4",
|
|
110
|
+
"uvu": "0.5.6"
|
|
111
|
+
},
|
|
112
|
+
"overrides": {
|
|
113
|
+
"@storybook/react-vite": {
|
|
114
|
+
"vite": "^5.0.5"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|