@wix/editor-react-components 1.2620.0 → 1.2622.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/dist/site/components/AccordionComponent/component.js +1 -1
- package/dist/site/components/AccordionComponent/manifest.js +1 -1
- package/dist/site/components/AudioPlayer/component.js +1 -1
- package/dist/site/components/AudioPlayer/manifest.js +1 -1
- package/dist/site/components/BoxContainer/component.js +1 -1
- package/dist/site/components/BoxContainer/manifest.js +1 -1
- package/dist/site/components/Breadcrumbs/component.js +2 -2
- package/dist/site/components/Breadcrumbs/manifest.js +1 -1
- package/dist/site/components/Checkbox/component.js +2 -2
- package/dist/site/components/Checkbox/manifest.js +1 -1
- package/dist/site/components/CheckboxGroup/component.js +2 -2
- package/dist/site/components/CheckboxGroup/manifest.js +1 -1
- package/dist/site/components/CollapsibleText/component.js +1 -1
- package/dist/site/components/CollapsibleText/manifest.js +1 -1
- package/dist/site/components/DatePicker/component.js +1 -1
- package/dist/site/components/DatePicker/manifest.js +1 -1
- package/dist/site/components/Dropdown/component.js +2 -2
- package/dist/site/components/Dropdown/manifest.js +1 -1
- package/dist/site/components/HTMLComponent/component.js +1 -1
- package/dist/site/components/HipaaIcon/component.js +1 -1
- package/dist/site/components/HipaaIcon/manifest.js +1 -1
- package/dist/site/components/LinkBar/component.js +1 -1
- package/dist/site/components/LinkBar/manifest.js +1 -1
- package/dist/site/components/Logo/component.js +1 -1
- package/dist/site/components/Logo/manifest.js +1 -1
- package/dist/site/components/Logo/sdk.js +1 -1
- package/dist/site/components/Lottie/component.js +1 -1
- package/dist/site/components/Lottie/manifest.js +1 -1
- package/dist/site/components/MarkdownBlock/MarkdownBlock.d.ts +4 -0
- package/dist/site/components/MarkdownBlock/component.d.ts +2 -0
- package/dist/site/components/MarkdownBlock/component.js +12486 -0
- package/dist/site/components/MarkdownBlock/constants.d.ts +33 -0
- package/dist/site/components/MarkdownBlock/css.css +347 -0
- package/dist/site/components/MarkdownBlock/index.d.ts +2 -0
- package/dist/site/components/MarkdownBlock/index.js +6 -0
- package/dist/site/components/MarkdownBlock/manifest.d.ts +5 -0
- package/dist/site/components/MarkdownBlock/manifest.js +105 -0
- package/dist/site/components/MarkdownBlock/markdownComponents.d.ts +2 -0
- package/dist/site/components/MarkdownBlock/types.d.ts +9 -0
- package/dist/site/components/Menu/component.js +1 -1
- package/dist/site/components/RadioButtons/component.js +1 -1
- package/dist/site/components/Repeater/component.js +1 -3
- package/dist/site/components/Repeater/constants.d.ts +1 -0
- package/dist/site/components/Repeater/css.css +4 -3
- package/dist/site/components/Repeater/manifest.js +15 -0
- package/dist/site/components/Repeater/panels/format/translations/consts.d.ts +1 -0
- package/dist/site/components/ShareButtons/component.js +1 -1
- package/dist/site/components/TextBox/component.js +1 -1
- package/dist/site/components/chunks/constants28.js +62 -78
- package/dist/site/components/chunks/constants29.js +85 -15
- package/dist/site/components/chunks/constants30.js +11 -42
- package/dist/site/components/chunks/constants31.js +44 -23
- package/dist/site/components/chunks/constants32.js +28 -10
- package/dist/site/components/chunks/constants33.js +10 -206
- package/dist/site/components/chunks/constants34.js +182 -153
- package/dist/site/components/chunks/constants35.js +162 -49
- package/dist/site/components/chunks/constants36.js +51 -102
- package/dist/site/components/chunks/constants37.js +69 -39
- package/dist/site/components/chunks/constants38.js +72 -69
- package/dist/site/components/chunks/constants39.js +73 -77
- package/dist/site/components/chunks/constants40.js +75 -56
- package/dist/site/components/chunks/constants41.js +72 -0
- package/dist/site/components/chunks/index11.js +233 -31185
- package/dist/site/components/chunks/index12.js +31191 -3
- package/dist/site/components/chunks/index13.js +5 -0
- package/dist/site/components/chunks/index4.js +18 -255
- package/dist/site/components/extensions.js +49 -47
- package/package.json +4 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const CONTENT_MAX_LENGTH = 100000;
|
|
2
|
+
export declare const manifestClasses: {
|
|
3
|
+
readonly root: "markdown-block";
|
|
4
|
+
};
|
|
5
|
+
export declare const defaultValues: {
|
|
6
|
+
readonly theme: "light";
|
|
7
|
+
readonly content: "# Markdown Block\n\nWrite **Markdown** and it renders as styled HTML. Supports _emphasis_, [links](https://www.wix.com), `inline code` and everything else in CommonMark plus GitHub Flavored Markdown.\n\n## Lists\n\n- Bullet lists with **bold** and _italic_ text\n- Nested content and long lines wrap cleanly\n- Task lists, tables and strikethrough come from GFM\n\n1. Ordered items work too\n2. Numbering is handled for you\n\n## Quotes and code\n\n> A blockquote for pull quotes, callouts, and citations.\n\n```js\nconst greet = (name) => `Hello, ${name}!`;\nconsole.log(greet('Markdown'));\n```\n\n## Tables\n\n| Feature | Supported |\n| --- | --- |\n| Headings | Yes |\n| Tables | Yes |\n| Task lists | Yes |\n\n---\n\n### Smaller heading\n\nEverything above is styled by the selected theme. Switch themes to restyle the whole block.\n";
|
|
8
|
+
};
|
|
9
|
+
export declare const TRANSLATIONS_NAMESPACE = "ariaLabels";
|
|
10
|
+
export declare const TranslationKeys: {
|
|
11
|
+
readonly scrollerAriaLabel: "markdownBlock_aria_label_content";
|
|
12
|
+
};
|
|
13
|
+
export declare const DefaultTranslations: {
|
|
14
|
+
readonly scrollerAriaLabel: "Markdown content";
|
|
15
|
+
};
|
|
16
|
+
export declare const DisplayNames: {
|
|
17
|
+
readonly root: {
|
|
18
|
+
readonly elementDisplayName: "Markdown Block";
|
|
19
|
+
readonly data: {
|
|
20
|
+
readonly content: "Content";
|
|
21
|
+
readonly theme: {
|
|
22
|
+
readonly displayName: "Theme";
|
|
23
|
+
readonly options: {
|
|
24
|
+
readonly light: "Light";
|
|
25
|
+
readonly dark: "Dark";
|
|
26
|
+
readonly sepia: "Sepia";
|
|
27
|
+
readonly prism: "Prism";
|
|
28
|
+
readonly brand: "Site brand";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
.markdownBlock__9upcg {
|
|
2
|
+
--display: block;
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
width: 100%;
|
|
5
|
+
height: 100%;
|
|
6
|
+
padding: 24px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
overflow-wrap: break-word;
|
|
9
|
+
border: 1px solid var(--md-border-color, #e2e8f0);
|
|
10
|
+
border-radius: 12px;
|
|
11
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
|
|
12
|
+
background: var(--md-bg, #ffffff);
|
|
13
|
+
color: var(--md-fg, #334155);
|
|
14
|
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
15
|
+
font-size: 16px;
|
|
16
|
+
line-height: 1.7;
|
|
17
|
+
text-align: start;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.scroller__0Ueqz {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
overflow-x: hidden;
|
|
25
|
+
overflow-y: auto;
|
|
26
|
+
scrollbar-width: thin;
|
|
27
|
+
scrollbar-color: var(--md-scrollbar-thumb, #cbd5e1) var(--md-scrollbar-track, rgba(148, 163, 184, 0.16));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.themeLight__776bm {
|
|
31
|
+
--md-bg: #ffffff;
|
|
32
|
+
--md-fg: #334155;
|
|
33
|
+
--md-heading-color: #0f172a;
|
|
34
|
+
--md-link-color: #4f46e5;
|
|
35
|
+
--md-link-hover-color: #3730a3;
|
|
36
|
+
--md-border-color: #e2e8f0;
|
|
37
|
+
--md-divider-color: #e2e8f0;
|
|
38
|
+
--md-code-bg: #f1f5f9;
|
|
39
|
+
--md-code-fg: #be123c;
|
|
40
|
+
--md-code-block-bg: #f8fafc;
|
|
41
|
+
--md-code-block-fg: #1e293b;
|
|
42
|
+
--md-quote-border-color: #cbd5e1;
|
|
43
|
+
--md-quote-fg: #475569;
|
|
44
|
+
--md-table-header-bg: #f8fafc;
|
|
45
|
+
--md-scrollbar-thumb: #cbd5e1;
|
|
46
|
+
--md-scrollbar-track: rgba(148, 163, 184, 0.16);
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.themeDark__erkil {
|
|
51
|
+
--md-bg: #0f172a;
|
|
52
|
+
--md-fg: #cbd5e1;
|
|
53
|
+
--md-heading-color: #f8fafc;
|
|
54
|
+
--md-link-color: #818cf8;
|
|
55
|
+
--md-link-hover-color: #a5b4fc;
|
|
56
|
+
--md-border-color: #1e293b;
|
|
57
|
+
--md-divider-color: #1e293b;
|
|
58
|
+
--md-code-bg: #1e293b;
|
|
59
|
+
--md-code-fg: #f9a8d4;
|
|
60
|
+
--md-code-block-bg: #111c33;
|
|
61
|
+
--md-code-block-fg: #e2e8f0;
|
|
62
|
+
--md-quote-border-color: #334155;
|
|
63
|
+
--md-quote-fg: #94a3b8;
|
|
64
|
+
--md-table-header-bg: #1e293b;
|
|
65
|
+
--md-scrollbar-thumb: #334155;
|
|
66
|
+
--md-scrollbar-track: rgba(148, 163, 184, 0.12);
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.themeSepia__oR8hU {
|
|
71
|
+
--md-bg: #fbf3e4;
|
|
72
|
+
--md-fg: #4a3f35;
|
|
73
|
+
--md-heading-color: #2f2620;
|
|
74
|
+
--md-link-color: #a1552b;
|
|
75
|
+
--md-link-hover-color: #7c3d1c;
|
|
76
|
+
--md-border-color: #e3d5bd;
|
|
77
|
+
--md-divider-color: #e3d5bd;
|
|
78
|
+
--md-code-bg: #f0e4cd;
|
|
79
|
+
--md-code-fg: #8c4a2f;
|
|
80
|
+
--md-code-block-bg: #f5ead6;
|
|
81
|
+
--md-code-block-fg: #3f362c;
|
|
82
|
+
--md-quote-border-color: #d8c6a6;
|
|
83
|
+
--md-quote-fg: #6b5b4a;
|
|
84
|
+
--md-table-header-bg: #f3e8d3;
|
|
85
|
+
--md-scrollbar-thumb: #d8c6a6;
|
|
86
|
+
--md-scrollbar-track: rgba(120, 95, 60, 0.12);
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.themePrism__Mbbq4 {
|
|
91
|
+
--md-bg: #282a36;
|
|
92
|
+
--md-fg: #f8f8f2;
|
|
93
|
+
--md-heading-color: #ff79c6;
|
|
94
|
+
--md-link-color: #8be9fd;
|
|
95
|
+
--md-link-hover-color: #c7f9ff;
|
|
96
|
+
--md-border-color: #44475a;
|
|
97
|
+
--md-divider-color: #44475a;
|
|
98
|
+
--md-code-bg: #44475a;
|
|
99
|
+
--md-code-fg: #50fa7b;
|
|
100
|
+
--md-code-block-bg: #21222c;
|
|
101
|
+
--md-code-block-fg: #f8f8f2;
|
|
102
|
+
--md-quote-border-color: #bd93f9;
|
|
103
|
+
--md-quote-fg: #bfbfd4;
|
|
104
|
+
--md-table-header-bg: #44475a;
|
|
105
|
+
--md-scrollbar-thumb: #6272a4;
|
|
106
|
+
--md-scrollbar-track: rgba(98, 114, 164, 0.2);
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.themeBrand__3HDqp {
|
|
111
|
+
--md-bg: var(--wst-primary-background-color);
|
|
112
|
+
--md-fg: var(--wst-paragraph-1-color);
|
|
113
|
+
--md-heading-color: var(--wst-heading-3-color);
|
|
114
|
+
--md-link-color: var(--wst-links-and-actions-color);
|
|
115
|
+
--md-link-hover-color: var(--wst-accent-1-color);
|
|
116
|
+
--md-border-color: var(--wst-shade-1-color);
|
|
117
|
+
--md-divider-color: var(--wst-shade-1-color);
|
|
118
|
+
--md-code-bg: var(--wst-secondary-background-color);
|
|
119
|
+
--md-code-fg: var(--wst-accent-1-color);
|
|
120
|
+
--md-code-block-bg: var(--wst-secondary-background-color);
|
|
121
|
+
--md-code-block-fg: var(--wst-base-2-color);
|
|
122
|
+
--md-quote-border-color: var(--wst-shade-2-color);
|
|
123
|
+
--md-quote-fg: var(--wst-shade-2-color);
|
|
124
|
+
--md-table-header-bg: var(--wst-secondary-background-color);
|
|
125
|
+
--md-scrollbar-thumb: var(--wst-shade-2-color);
|
|
126
|
+
--md-scrollbar-track: var(--wst-secondary-background-color);
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
font: var(--wst-paragraph-1-font);
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
font-style: normal;
|
|
131
|
+
font-variant: normal;
|
|
132
|
+
font-weight: 400;
|
|
133
|
+
line-height: 1.7;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.heading1__fL-1g {
|
|
137
|
+
box-sizing: border-box;
|
|
138
|
+
margin-block: 24px 12px;
|
|
139
|
+
color: var(--md-heading-color, #0f172a);
|
|
140
|
+
font-family: inherit;
|
|
141
|
+
font-size: 2rem;
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
line-height: 1.25;
|
|
144
|
+
text-align: start;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.heading2__11rn4 {
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
margin-block: 20px 10px;
|
|
150
|
+
color: var(--md-heading-color, #0f172a);
|
|
151
|
+
font-family: inherit;
|
|
152
|
+
font-size: 1.5rem;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
line-height: 1.3;
|
|
155
|
+
text-align: start;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.heading3__fHdyb {
|
|
159
|
+
box-sizing: border-box;
|
|
160
|
+
margin-block: 18px 8px;
|
|
161
|
+
color: var(--md-heading-color, #0f172a);
|
|
162
|
+
font-family: inherit;
|
|
163
|
+
font-size: 1.25rem;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
line-height: 1.35;
|
|
166
|
+
text-align: start;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.heading4__zqQiY {
|
|
170
|
+
box-sizing: border-box;
|
|
171
|
+
margin-block: 16px 8px;
|
|
172
|
+
color: var(--md-heading-color, #0f172a);
|
|
173
|
+
font-size: 1.125rem;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
line-height: 1.4;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.heading5__pw3px {
|
|
179
|
+
box-sizing: border-box;
|
|
180
|
+
margin-block: 14px 6px;
|
|
181
|
+
color: var(--md-heading-color, #0f172a);
|
|
182
|
+
font-size: 1rem;
|
|
183
|
+
font-weight: 600;
|
|
184
|
+
line-height: 1.4;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.heading6__nC9R8 {
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
margin-block: 12px 6px;
|
|
190
|
+
color: var(--md-heading-color, #0f172a);
|
|
191
|
+
font-size: 0.875rem;
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
letter-spacing: 0.04em;
|
|
194
|
+
line-height: 1.4;
|
|
195
|
+
text-transform: uppercase;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.paragraph__Zms2f {
|
|
199
|
+
box-sizing: border-box;
|
|
200
|
+
margin-block: 12px;
|
|
201
|
+
color: var(--md-fg, #334155);
|
|
202
|
+
font-family: inherit;
|
|
203
|
+
font-size: 1rem;
|
|
204
|
+
line-height: 1.7;
|
|
205
|
+
text-align: start;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.link__rbmYN {
|
|
209
|
+
box-sizing: border-box;
|
|
210
|
+
color: var(--md-link-color, #4f46e5);
|
|
211
|
+
font-family: inherit;
|
|
212
|
+
text-decoration-line: underline;
|
|
213
|
+
text-underline-offset: 2px;
|
|
214
|
+
pointer-events: auto;
|
|
215
|
+
}
|
|
216
|
+
.link__rbmYN:hover {
|
|
217
|
+
color: var(--md-link-hover-color, #3730a3);
|
|
218
|
+
}
|
|
219
|
+
.link__rbmYN:focus-visible {
|
|
220
|
+
outline: 2px solid var(--md-link-color, #4f46e5);
|
|
221
|
+
outline-offset: 2px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.list__QnQZX {
|
|
225
|
+
box-sizing: border-box;
|
|
226
|
+
margin-block: 12px;
|
|
227
|
+
padding-inline-start: 24px;
|
|
228
|
+
color: var(--md-fg, #334155);
|
|
229
|
+
font-family: inherit;
|
|
230
|
+
font-size: 1rem;
|
|
231
|
+
line-height: 1.7;
|
|
232
|
+
text-align: start;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.listItem__2rbC- {
|
|
236
|
+
box-sizing: border-box;
|
|
237
|
+
margin-block: 4px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.blockquote__O3EwR {
|
|
241
|
+
box-sizing: border-box;
|
|
242
|
+
margin-block: 16px;
|
|
243
|
+
margin-inline: 0;
|
|
244
|
+
padding-inline-start: 16px;
|
|
245
|
+
border-inline-start: 4px solid var(--md-quote-border-color, #cbd5e1);
|
|
246
|
+
color: var(--md-quote-fg, #475569);
|
|
247
|
+
font-family: inherit;
|
|
248
|
+
font-size: 1rem;
|
|
249
|
+
font-style: italic;
|
|
250
|
+
line-height: 1.7;
|
|
251
|
+
text-align: start;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.code__wNTpb {
|
|
255
|
+
box-sizing: border-box;
|
|
256
|
+
padding: var(--md-code-padding, 2px 6px);
|
|
257
|
+
border-radius: 4px;
|
|
258
|
+
background: var(--md-code-bg, #f1f5f9);
|
|
259
|
+
color: var(--md-code-fg, #be123c);
|
|
260
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
261
|
+
font-size: 0.9em;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.codeBlock__D-XEt {
|
|
265
|
+
--md-code-bg: transparent;
|
|
266
|
+
--md-code-fg: currentColor;
|
|
267
|
+
--md-code-padding: 0;
|
|
268
|
+
box-sizing: border-box;
|
|
269
|
+
margin-block: 16px;
|
|
270
|
+
padding: 16px;
|
|
271
|
+
overflow-x: auto;
|
|
272
|
+
border-radius: 8px;
|
|
273
|
+
scrollbar-width: thin;
|
|
274
|
+
scrollbar-color: var(--md-scrollbar-thumb, #cbd5e1) var(--md-scrollbar-track, rgba(148, 163, 184, 0.16));
|
|
275
|
+
background: var(--md-code-block-bg, #f8fafc);
|
|
276
|
+
color: var(--md-code-block-fg, #1e293b);
|
|
277
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
278
|
+
font-size: 0.875rem;
|
|
279
|
+
line-height: 1.6;
|
|
280
|
+
text-align: start;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.table__ek3QZ {
|
|
284
|
+
box-sizing: border-box;
|
|
285
|
+
margin-block: 16px;
|
|
286
|
+
width: 100%;
|
|
287
|
+
border-collapse: collapse;
|
|
288
|
+
color: var(--md-fg, #334155);
|
|
289
|
+
font-family: inherit;
|
|
290
|
+
font-size: 0.9375rem;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.tableHeaderCell__cRSby {
|
|
294
|
+
box-sizing: border-box;
|
|
295
|
+
padding: 10px 12px;
|
|
296
|
+
border: 1px solid var(--md-border-color, #e2e8f0);
|
|
297
|
+
background: var(--md-table-header-bg, #f8fafc);
|
|
298
|
+
color: var(--md-heading-color, #0f172a);
|
|
299
|
+
font-weight: 600;
|
|
300
|
+
text-align: start;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.tableCell__Mfag6 {
|
|
304
|
+
box-sizing: border-box;
|
|
305
|
+
padding: 10px 12px;
|
|
306
|
+
border: 1px solid var(--md-border-color, #e2e8f0);
|
|
307
|
+
text-align: start;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.image__eNrUq {
|
|
311
|
+
box-sizing: border-box;
|
|
312
|
+
display: block;
|
|
313
|
+
margin-block: 16px;
|
|
314
|
+
max-width: 100%;
|
|
315
|
+
height: auto;
|
|
316
|
+
border-radius: 8px;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.divider__U-xa5 {
|
|
320
|
+
box-sizing: border-box;
|
|
321
|
+
margin-block: 24px;
|
|
322
|
+
margin-inline: 0;
|
|
323
|
+
border: none;
|
|
324
|
+
border-block-start: 1px solid var(--md-divider-color, #e2e8f0);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.scroller__0Ueqz::-webkit-scrollbar,
|
|
328
|
+
.codeBlock__D-XEt::-webkit-scrollbar {
|
|
329
|
+
box-sizing: border-box;
|
|
330
|
+
width: 10px;
|
|
331
|
+
height: 10px;
|
|
332
|
+
}
|
|
333
|
+
.scroller__0Ueqz::-webkit-scrollbar-track,
|
|
334
|
+
.codeBlock__D-XEt::-webkit-scrollbar-track {
|
|
335
|
+
box-sizing: border-box;
|
|
336
|
+
border-radius: 8px;
|
|
337
|
+
background: var(--md-scrollbar-track, rgba(148, 163, 184, 0.16));
|
|
338
|
+
}
|
|
339
|
+
.scroller__0Ueqz::-webkit-scrollbar-thumb,
|
|
340
|
+
.codeBlock__D-XEt::-webkit-scrollbar-thumb {
|
|
341
|
+
box-sizing: border-box;
|
|
342
|
+
border-radius: 8px;
|
|
343
|
+
background: var(--md-scrollbar-thumb, #cbd5e1);
|
|
344
|
+
}
|
|
345
|
+
.fallbackDirection__HeRgn:not([dir]) {
|
|
346
|
+
direction: var(--wix-opt-in-direction);
|
|
347
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { L as LAYOUT, D as DATA, A as Archetype } from "../chunks/chunk-IO6HLVLV.js";
|
|
2
|
+
import { g as getSelector } from "../chunks/manifest.js";
|
|
3
|
+
import { d as defaultValues, b as DisplayNames, C as CONTENT_MAX_LENGTH, m as manifestClasses } from "../chunks/constants28.js";
|
|
4
|
+
const manifest = {
|
|
5
|
+
id: "09163c09-57cd-4241-bde6-b9e602fedbd8",
|
|
6
|
+
type: "wixEditorElements.MarkdownBlock",
|
|
7
|
+
description: "Renders Markdown (CommonMark + GFM) as styled HTML, with a closed set of visual themes",
|
|
8
|
+
editorElement: {
|
|
9
|
+
selector: getSelector(manifestClasses.root),
|
|
10
|
+
displayName: DisplayNames.root.elementDisplayName,
|
|
11
|
+
archetype: Archetype.Text,
|
|
12
|
+
data: {
|
|
13
|
+
direction: {
|
|
14
|
+
dataType: DATA.DATA_TYPE.direction
|
|
15
|
+
},
|
|
16
|
+
content: {
|
|
17
|
+
dataType: DATA.DATA_TYPE.text,
|
|
18
|
+
displayName: DisplayNames.root.data.content,
|
|
19
|
+
[DATA.DATA_TYPE.text]: {
|
|
20
|
+
maxLength: CONTENT_MAX_LENGTH
|
|
21
|
+
},
|
|
22
|
+
defaultValue: defaultValues.content
|
|
23
|
+
},
|
|
24
|
+
theme: {
|
|
25
|
+
dataType: DATA.DATA_TYPE.textEnum,
|
|
26
|
+
displayName: DisplayNames.root.data.theme.displayName,
|
|
27
|
+
[DATA.DATA_TYPE.textEnum]: {
|
|
28
|
+
options: [
|
|
29
|
+
{
|
|
30
|
+
value: "light",
|
|
31
|
+
displayName: DisplayNames.root.data.theme.options.light
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: "dark",
|
|
35
|
+
displayName: DisplayNames.root.data.theme.options.dark
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "sepia",
|
|
39
|
+
displayName: DisplayNames.root.data.theme.options.sepia
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: "prism",
|
|
43
|
+
displayName: DisplayNames.root.data.theme.options.prism
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: "brand",
|
|
47
|
+
displayName: DisplayNames.root.data.theme.options.brand
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
defaultValue: defaultValues.theme
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
cssProperties: {
|
|
55
|
+
fontFamily: {},
|
|
56
|
+
borderTop: { defaultValue: "1px solid" },
|
|
57
|
+
borderBottom: { defaultValue: "1px solid" },
|
|
58
|
+
borderInlineStart: { defaultValue: "1px solid" },
|
|
59
|
+
borderInlineEnd: { defaultValue: "1px solid" },
|
|
60
|
+
paddingTop: { defaultValue: "24px" },
|
|
61
|
+
paddingBottom: { defaultValue: "24px" },
|
|
62
|
+
paddingInlineStart: { defaultValue: "24px" },
|
|
63
|
+
paddingInlineEnd: { defaultValue: "24px" },
|
|
64
|
+
borderStartStartRadius: { defaultValue: "12px" },
|
|
65
|
+
borderStartEndRadius: { defaultValue: "12px" },
|
|
66
|
+
borderEndStartRadius: { defaultValue: "12px" },
|
|
67
|
+
borderEndEndRadius: { defaultValue: "12px" },
|
|
68
|
+
boxShadow: {
|
|
69
|
+
defaultValue: "0 2px 8px rgba(0,0,0,0.06),0 0 1px rgba(0,0,0,0.08)"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
layout: {
|
|
73
|
+
resizeDirection: LAYOUT.RESIZE_DIRECTION.horizontalAndVertical,
|
|
74
|
+
contentResizeDirection: LAYOUT.CONTENT_RESIZE_DIRECTION.none
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
installation: {
|
|
78
|
+
initialSize: {
|
|
79
|
+
width: {
|
|
80
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
81
|
+
pixels: 600
|
|
82
|
+
},
|
|
83
|
+
height: {
|
|
84
|
+
sizingType: LAYOUT.SIZING_TYPE.pixels,
|
|
85
|
+
pixels: 480
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
resources: {
|
|
90
|
+
client: {
|
|
91
|
+
componentUrl: "./site/components/MarkdownBlock/component.tsx",
|
|
92
|
+
moduleSpecifier: "@wix/editor-react-components/MarkdownBlock",
|
|
93
|
+
dependencies: {
|
|
94
|
+
serviceDependencies: ["@wix/viewer-service-translations"]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
moduleConfiguration: {
|
|
99
|
+
package: { name: "@wix/editor-react-components", version: "^1.0.0" },
|
|
100
|
+
component: { path: "site/components/MarkdownBlock" }
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
manifest as default
|
|
105
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Direction } from '@wix/editor-react-types';
|
|
2
|
+
export type MarkdownTheme = 'light' | 'dark' | 'sepia' | 'prism' | 'brand';
|
|
3
|
+
export type MarkdownBlockProps = {
|
|
4
|
+
id: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
direction?: Direction;
|
|
7
|
+
content?: string;
|
|
8
|
+
theme?: MarkdownTheme;
|
|
9
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
3
|
import { useService } from "@wix/services-manager-react";
|
|
4
|
-
import { U as UrlDefinition } from "../chunks/
|
|
4
|
+
import { U as UrlDefinition } from "../chunks/index13.js";
|
|
5
5
|
import { d as defineService } from "../chunks/index8.js";
|
|
6
6
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
7
7
|
import { M as MenuAnimationName, d as defaultTranslations, a as MenuOrientation, A as AnimationPhase, V as VerticalDropdownDisplay, D as DropdownAnimationName, H as HamburgerMenuAnimationName, b as MenuParts, s as selectors, c as DesignStates, u as useAnimationState, e as ARIA_LABEL_NAMESPACE, t as translationsKeys } from "../chunks/constants27.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
|
-
import { a as Fieldset, T as Tooltip, R as RadioGroup_RadioGroup_RadioGroup, b as Radio, c as InfoCircle_default } from "../chunks/
|
|
4
|
+
import { a as Fieldset, T as Tooltip, R as RadioGroup_RadioGroup_RadioGroup, b as Radio, c as InfoCircle_default } from "../chunks/index12.js";
|
|
5
5
|
import { useService } from "@wix/services-manager-react";
|
|
6
6
|
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
7
|
import { f as formatClassNames } from "../chunks/classNames.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { c as clsx } from "../chunks/clsx.js";
|
|
3
3
|
import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
|
|
4
|
-
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
5
4
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
6
5
|
import { D as DEFAULT_ITEMS_PER_ROW, L as LOADING_ITEM_COUNT_CSS_VAR, C as COLUMN_COUNT_CSS_VAR, T as TestIds, s as semanticClassNames } from "../chunks/constants23.js";
|
|
7
6
|
import React__default, { useState, useRef, useCallback, useEffect, forwardRef } from "react";
|
|
@@ -518,11 +517,9 @@ const Repeater = (props) => {
|
|
|
518
517
|
"div",
|
|
519
518
|
{
|
|
520
519
|
id,
|
|
521
|
-
...direction && { dir: direction },
|
|
522
520
|
className: clsx(
|
|
523
521
|
semanticClassNames.root,
|
|
524
522
|
styles.repeater,
|
|
525
|
-
directionStyles.fallbackDirection,
|
|
526
523
|
className
|
|
527
524
|
),
|
|
528
525
|
children: showEmptyState ? /* @__PURE__ */ jsx(RepeaterEmptyState, { content: emptyStateContent2 }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -530,6 +527,7 @@ const Repeater = (props) => {
|
|
|
530
527
|
"ul",
|
|
531
528
|
{
|
|
532
529
|
ref: ulRef,
|
|
530
|
+
...direction && { dir: direction },
|
|
533
531
|
...a11y && convertA11yKeysToHtmlFormat(a11y),
|
|
534
532
|
role: "list",
|
|
535
533
|
"aria-busy": isLoading,
|
|
@@ -39,6 +39,7 @@ export declare const cssCustomPropertyKeys: {
|
|
|
39
39
|
readonly backgroundColor: "background-color";
|
|
40
40
|
readonly backgroundColorOpacity: "background-color-opacity";
|
|
41
41
|
readonly overflowContent: "overflow-content";
|
|
42
|
+
readonly itemsDirection: "items-direction";
|
|
42
43
|
readonly itemsPerRow: "items-per-row";
|
|
43
44
|
readonly columnCount: "column-count";
|
|
44
45
|
readonly rowGap: "row-gap";
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
.repeater__aNz-6 {
|
|
26
26
|
box-sizing: border-box;
|
|
27
27
|
width: 100%;
|
|
28
|
+
direction: var(--items-direction, var(--wix-opt-in-direction, ltr));
|
|
28
29
|
overflow: var(--overflow-content);
|
|
29
30
|
scroll-snap-type: var(--scroll-snap-type, none);
|
|
30
31
|
--repeater-background-color-opacity-num: var(--background-color-opacity, 1);
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.item__dXORc {
|
|
53
|
+
direction: var(--wix-opt-in-direction, ltr);
|
|
52
54
|
box-sizing: border-box;
|
|
53
55
|
min-height: 10px;
|
|
54
56
|
flex: 0 var(--item-flex-shrink, 1) var(--item-flex-basis);
|
|
@@ -128,6 +130,7 @@
|
|
|
128
130
|
}
|
|
129
131
|
.emptyState__cCB1M {
|
|
130
132
|
box-sizing: border-box;
|
|
133
|
+
direction: var(--wix-opt-in-direction, ltr);
|
|
131
134
|
}
|
|
132
135
|
|
|
133
136
|
.emptyStateBanner__W741Z {
|
|
@@ -135,6 +138,7 @@
|
|
|
135
138
|
width: 100%;
|
|
136
139
|
padding: 16px;
|
|
137
140
|
text-align: center;
|
|
141
|
+
direction: var(--wix-opt-in-direction, ltr);
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
.emptyStateContent__hVHdj {
|
|
@@ -215,9 +219,6 @@
|
|
|
215
219
|
auto
|
|
216
220
|
);
|
|
217
221
|
}
|
|
218
|
-
.fallbackDirection__HeRgn:not([dir]) {
|
|
219
|
-
direction: var(--wix-opt-in-direction);
|
|
220
|
-
}
|
|
221
222
|
.presetWrapper__J1yzj {
|
|
222
223
|
display: contents;
|
|
223
224
|
}
|
|
@@ -217,6 +217,18 @@ const manifest = {
|
|
|
217
217
|
]
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
|
+
"items-direction": {
|
|
221
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.customEnum,
|
|
222
|
+
displayName: "Layout direction",
|
|
223
|
+
defaultValue: "ltr",
|
|
224
|
+
customEnum: {
|
|
225
|
+
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.string,
|
|
226
|
+
options: [
|
|
227
|
+
{ value: "ltr", displayName: "Left to Right" },
|
|
228
|
+
{ value: "rtl", displayName: "Right to Left" }
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
220
232
|
"items-per-row": {
|
|
221
233
|
cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.customEnum,
|
|
222
234
|
displayName: "Items per row",
|
|
@@ -469,6 +481,7 @@ const manifest = {
|
|
|
469
481
|
cssCustomProperties: {
|
|
470
482
|
hide: [
|
|
471
483
|
"column-gap",
|
|
484
|
+
"items-direction",
|
|
472
485
|
"scroll-snap-align",
|
|
473
486
|
"show-scrollbar",
|
|
474
487
|
"column-min-width",
|
|
@@ -503,6 +516,7 @@ const manifest = {
|
|
|
503
516
|
hide: [
|
|
504
517
|
"row-gap",
|
|
505
518
|
"overflow-content",
|
|
519
|
+
"items-direction",
|
|
506
520
|
"column-min-width",
|
|
507
521
|
"row-min-height",
|
|
508
522
|
"keep-rows-equal",
|
|
@@ -534,6 +548,7 @@ const manifest = {
|
|
|
534
548
|
hide: [
|
|
535
549
|
"column-gap",
|
|
536
550
|
"overflow-content",
|
|
551
|
+
"items-direction",
|
|
537
552
|
"column-min-width",
|
|
538
553
|
"row-min-height",
|
|
539
554
|
"keep-rows-equal",
|
|
@@ -7,6 +7,7 @@ export declare const TranslationKeys: {
|
|
|
7
7
|
readonly itemsPerRowLabel: "custompanel_repeater_items_per_row_label";
|
|
8
8
|
readonly directionLabel: "custompanel_repeater_direction_label";
|
|
9
9
|
readonly directionHorizontalOption: "custompanel_repeater_direction_horizontal_option";
|
|
10
|
+
readonly directionRightToLeftOption: "custompanel_repeater_direction_right_to_left_option";
|
|
10
11
|
readonly directionVerticalOption: "custompanel_repeater_direction_vertical_option";
|
|
11
12
|
};
|
|
12
13
|
export type Translations = Record<keyof typeof TranslationKeys, string>;
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default, { useState, useEffect, useRef, useMemo, createElement } from "react";
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
4
|
import { T as TranslationsDefinition } from "../chunks/index6.js";
|
|
5
|
-
import { U as UrlDefinition } from "../chunks/
|
|
5
|
+
import { U as UrlDefinition } from "../chunks/index13.js";
|
|
6
6
|
import { useService } from "@wix/services-manager-react";
|
|
7
7
|
import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
|
|
8
8
|
import { d as directionStyles } from "../chunks/direction.module.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { c as clsx } from "../chunks/clsx.js";
|
|
4
|
-
import { F as Field, T as Tooltip, I as Input_Input_Input } from "../chunks/
|
|
4
|
+
import { F as Field, T as Tooltip, I as Input_Input_Input } from "../chunks/index12.js";
|
|
5
5
|
import { useService } from "@wix/services-manager-react";
|
|
6
6
|
import { E as EnvironmentDefinition } from "../chunks/index2.js";
|
|
7
7
|
import { f as formatClassNames } from "../chunks/classNames.js";
|