-
Notifications
You must be signed in to change notification settings - Fork 26k
/
AmpCustomElement.tsx
535 lines (415 loc) · 14.7 KB
/
AmpCustomElement.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
/**
* @file An AMP Component import helper. This file is auto-generated using
* https://www.npmjs.com/package/@ampproject/toolbox-validator-rules.
*/
import Head from 'next/head'
interface Props {
name: string
version: string
}
export function AmpIncludeCustomElement(props: Props) {
return (
<Head>
<script
async
custom-element={props.name}
src={
'https://cdn.ampproject.org/v0/' +
props.name +
'-' +
props.version +
'.js'
}
key={props.name}
/>
</Head>
)
}
export function AmpIncludeCustomTemplate(props: Props) {
return (
<Head>
<script
async
custom-template={props.name}
src={
'https://cdn.ampproject.org/v0/' +
props.name +
'-' +
props.version +
'.js'
}
key={props.name}
/>
</Head>
)
}
export function AmpIncludeAmp3dGltf() {
return <AmpIncludeCustomElement name="amp-3d-gltf" version="0.1" />
}
export function AmpIncludeAmp3qPlayer() {
return <AmpIncludeCustomElement name="amp-3q-player" version="0.1" />
}
export function AmpIncludeAmpAccessLaterpay() {
return <AmpIncludeCustomElement name="amp-access-laterpay" version="0.2" />
}
export function AmpIncludeAmpAccessPoool() {
return <AmpIncludeCustomElement name="amp-access-poool" version="0.1" />
}
export function AmpIncludeAmpAccessScroll() {
return <AmpIncludeCustomElement name="amp-access-scroll" version="0.1" />
}
export function AmpIncludeAmpAccess() {
return <AmpIncludeCustomElement name="amp-access" version="0.1" />
}
export function AmpIncludeAmpAccordion() {
return <AmpIncludeCustomElement name="amp-accordion" version="0.1" />
}
export function AmpIncludeAmpActionMacro() {
return <AmpIncludeCustomElement name="amp-action-macro" version="0.1" />
}
export function AmpIncludeAmpAdCustom() {
return <AmpIncludeCustomElement name="amp-ad-custom" version="0.1" />
}
export function AmpIncludeAmpAd() {
return <AmpIncludeCustomElement name="amp-ad" version="0.1" />
}
export function AmpIncludeAmpAddthis() {
return <AmpIncludeCustomElement name="amp-addthis" version="0.1" />
}
export function AmpIncludeAmpAnalytics() {
return <AmpIncludeCustomElement name="amp-analytics" version="0.1" />
}
export function AmpIncludeAmpAnim() {
return <AmpIncludeCustomElement name="amp-anim" version="0.1" />
}
export function AmpIncludeAmpAnimation() {
return <AmpIncludeCustomElement name="amp-animation" version="0.1" />
}
export function AmpIncludeAmpApesterMedia() {
return <AmpIncludeCustomElement name="amp-apester-media" version="0.1" />
}
export function AmpIncludeAmpAppBanner() {
return <AmpIncludeCustomElement name="amp-app-banner" version="0.1" />
}
export function AmpIncludeAmpAudio() {
return <AmpIncludeCustomElement name="amp-audio" version="0.1" />
}
export function AmpIncludeAmpAutoAds() {
return <AmpIncludeCustomElement name="amp-auto-ads" version="0.1" />
}
export function AmpIncludeAmpAutocomplete() {
return <AmpIncludeCustomElement name="amp-autocomplete" version="0.1" />
}
export function AmpIncludeAmpBaseCarousel() {
return <AmpIncludeCustomElement name="amp-base-carousel" version="0.1" />
}
export function AmpIncludeAmpBeopinion() {
return <AmpIncludeCustomElement name="amp-beopinion" version="0.1" />
}
export function AmpIncludeAmpBind() {
return <AmpIncludeCustomElement name="amp-bind" version="0.1" />
}
export function AmpIncludeAmpBodymovinAnimation() {
return (
<AmpIncludeCustomElement name="amp-bodymovin-animation" version="0.1" />
)
}
export function AmpIncludeAmpBridPlayer() {
return <AmpIncludeCustomElement name="amp-brid-player" version="0.1" />
}
export function AmpIncludeAmpBrightcove() {
return <AmpIncludeCustomElement name="amp-brightcove" version="0.1" />
}
export function AmpIncludeAmpBysideContent() {
return <AmpIncludeCustomElement name="amp-byside-content" version="0.1" />
}
export function AmpIncludeAmpCallTracking() {
return <AmpIncludeCustomElement name="amp-call-tracking" version="0.1" />
}
export function AmpIncludeAmpCarousel() {
return <AmpIncludeCustomElement name="amp-carousel" version="0.2" />
}
export function AmpIncludeAmpConnatixPlayer() {
return <AmpIncludeCustomElement name="amp-connatix-player" version="0.1" />
}
export function AmpIncludeAmpConsent() {
return <AmpIncludeCustomElement name="amp-consent" version="0.1" />
}
export function AmpIncludeAmpDailymotion() {
return <AmpIncludeCustomElement name="amp-dailymotion" version="0.1" />
}
export function AmpIncludeAmpDateCountdown() {
return <AmpIncludeCustomElement name="amp-date-countdown" version="0.1" />
}
export function AmpIncludeAmpDateDisplay() {
return <AmpIncludeCustomElement name="amp-date-display" version="0.1" />
}
export function AmpIncludeAmpDatePicker() {
return <AmpIncludeCustomElement name="amp-date-picker" version="0.1" />
}
export function AmpIncludeAmpDelightPlayer() {
return <AmpIncludeCustomElement name="amp-delight-player" version="0.1" />
}
export function AmpIncludeAmpDynamicCssClasses() {
return (
<AmpIncludeCustomElement name="amp-dynamic-css-classes" version="0.1" />
)
}
export function AmpIncludeAmpEmbedlyCard() {
return <AmpIncludeCustomElement name="amp-embedly-card" version="0.1" />
}
export function AmpIncludeAmpExperiment() {
return <AmpIncludeCustomElement name="amp-experiment" version="1.0" />
}
export function AmpIncludeAmpFacebookComments() {
return <AmpIncludeCustomElement name="amp-facebook-comments" version="0.1" />
}
export function AmpIncludeAmpFacebookLike() {
return <AmpIncludeCustomElement name="amp-facebook-like" version="0.1" />
}
export function AmpIncludeAmpFacebookPage() {
return <AmpIncludeCustomElement name="amp-facebook-page" version="0.1" />
}
export function AmpIncludeAmpFacebook() {
return <AmpIncludeCustomElement name="amp-facebook" version="0.1" />
}
export function AmpIncludeAmpFitText() {
return <AmpIncludeCustomElement name="amp-fit-text" version="0.1" />
}
export function AmpIncludeAmpFont() {
return <AmpIncludeCustomElement name="amp-font" version="0.1" />
}
export function AmpIncludeAmpForm() {
return <AmpIncludeCustomElement name="amp-form" version="0.1" />
}
export function AmpIncludeAmpFxCollection() {
return <AmpIncludeCustomElement name="amp-fx-collection" version="0.1" />
}
export function AmpIncludeAmpFxFlyingCarpet() {
return <AmpIncludeCustomElement name="amp-fx-flying-carpet" version="0.1" />
}
export function AmpIncludeAmpGeo() {
return <AmpIncludeCustomElement name="amp-geo" version="0.1" />
}
export function AmpIncludeAmpGfycat() {
return <AmpIncludeCustomElement name="amp-gfycat" version="0.1" />
}
export function AmpIncludeAmpGist() {
return <AmpIncludeCustomElement name="amp-gist" version="0.1" />
}
export function AmpIncludeAmpGoogleDocumentEmbed() {
return (
<AmpIncludeCustomElement name="amp-google-document-embed" version="0.1" />
)
}
export function AmpIncludeAmpHulu() {
return <AmpIncludeCustomElement name="amp-hulu" version="0.1" />
}
export function AmpIncludeAmpIframe() {
return <AmpIncludeCustomElement name="amp-iframe" version="0.1" />
}
export function AmpIncludeAmpImaVideo() {
return <AmpIncludeCustomElement name="amp-ima-video" version="0.1" />
}
export function AmpIncludeAmpImageLightbox() {
return <AmpIncludeCustomElement name="amp-image-lightbox" version="0.1" />
}
export function AmpIncludeAmpImageSlider() {
return <AmpIncludeCustomElement name="amp-image-slider" version="0.1" />
}
export function AmpIncludeAmpImgur() {
return <AmpIncludeCustomElement name="amp-imgur" version="0.1" />
}
export function AmpIncludeAmpInputmask() {
return <AmpIncludeCustomElement name="amp-inputmask" version="0.1" />
}
export function AmpIncludeAmpInstagram() {
return <AmpIncludeCustomElement name="amp-instagram" version="0.1" />
}
export function AmpIncludeAmpInstallServiceworker() {
return (
<AmpIncludeCustomElement name="amp-install-serviceworker" version="0.1" />
)
}
export function AmpIncludeAmpIzlesene() {
return <AmpIncludeCustomElement name="amp-izlesene" version="0.1" />
}
export function AmpIncludeAmpJwplayer() {
return <AmpIncludeCustomElement name="amp-jwplayer" version="0.1" />
}
export function AmpIncludeAmpKalturaPlayer() {
return <AmpIncludeCustomElement name="amp-kaltura-player" version="0.1" />
}
export function AmpIncludeAmpLightboxGallery() {
return <AmpIncludeCustomElement name="amp-lightbox-gallery" version="0.1" />
}
export function AmpIncludeAmpLightbox() {
return <AmpIncludeCustomElement name="amp-lightbox" version="0.1" />
}
export function AmpIncludeAmpLinkRewriter() {
return <AmpIncludeCustomElement name="amp-link-rewriter" version="0.1" />
}
export function AmpIncludeAmpMustache() {
return <AmpIncludeCustomTemplate name="amp-mustache" version="0.2" />
}
export function AmpIncludeAmpList() {
return (
<>
<AmpIncludeAmpMustache />
<AmpIncludeCustomElement name="amp-list" version="0.1" />
</>
)
}
export function AmpIncludeAmpLiveList() {
return <AmpIncludeCustomElement name="amp-live-list" version="0.1" />
}
export function AmpIncludeAmpMathml() {
return <AmpIncludeCustomElement name="amp-mathml" version="0.1" />
}
export function AmpIncludeAmpMegaphone() {
return <AmpIncludeCustomElement name="amp-megaphone" version="0.1" />
}
export function AmpIncludeAmpMinuteMediaPlayer() {
return (
<AmpIncludeCustomElement name="amp-minute-media-player" version="0.1" />
)
}
export function AmpIncludeAmpMowplayer() {
return <AmpIncludeCustomElement name="amp-mowplayer" version="0.1" />
}
export function AmpIncludeAmpNextPage() {
return <AmpIncludeCustomElement name="amp-next-page" version="0.1" />
}
export function AmpIncludeAmpNexxtvPlayer() {
return <AmpIncludeCustomElement name="amp-nexxtv-player" version="0.1" />
}
export function AmpIncludeAmpO2Player() {
return <AmpIncludeCustomElement name="amp-o2-player" version="0.1" />
}
export function AmpIncludeAmpOoyalaPlayer() {
return <AmpIncludeCustomElement name="amp-ooyala-player" version="0.1" />
}
export function AmpIncludeAmpOrientationObserver() {
return (
<AmpIncludeCustomElement name="amp-orientation-observer" version="0.1" />
)
}
export function AmpIncludeAmpPanZoom() {
return <AmpIncludeCustomElement name="amp-pan-zoom" version="0.1" />
}
export function AmpIncludeAmpPinterest() {
return <AmpIncludeCustomElement name="amp-pinterest" version="0.1" />
}
export function AmpIncludeAmpPlaybuzz() {
return <AmpIncludeCustomElement name="amp-playbuzz" version="0.1" />
}
export function AmpIncludeAmpPositionObserver() {
return <AmpIncludeCustomElement name="amp-position-observer" version="0.1" />
}
export function AmpIncludeAmpPowrPlayer() {
return <AmpIncludeCustomElement name="amp-powr-player" version="0.1" />
}
export function AmpIncludeAmpReachPlayer() {
return <AmpIncludeCustomElement name="amp-reach-player" version="0.1" />
}
export function AmpIncludeAmpRecaptchaInput() {
return <AmpIncludeCustomElement name="amp-recaptcha-input" version="0.1" />
}
export function AmpIncludeAmpReddit() {
return <AmpIncludeCustomElement name="amp-reddit" version="0.1" />
}
export function AmpIncludeAmpRiddleQuiz() {
return <AmpIncludeCustomElement name="amp-riddle-quiz" version="0.1" />
}
export function AmpIncludeAmpScript() {
return <AmpIncludeCustomElement name="amp-script" version="0.1" />
}
export function AmpIncludeAmpSelector() {
return <AmpIncludeCustomElement name="amp-selector" version="0.1" />
}
export function AmpIncludeAmpSidebar() {
return <AmpIncludeCustomElement name="amp-sidebar" version="0.1" />
}
export function AmpIncludeAmpSkimlinks() {
return <AmpIncludeCustomElement name="amp-skimlinks" version="0.1" />
}
export function AmpIncludeAmpSlides() {
return <AmpIncludeCustomElement name="amp-slides" version="0.1" />
}
export function AmpIncludeAmpSmartlinks() {
return <AmpIncludeCustomElement name="amp-smartlinks" version="0.1" />
}
export function AmpIncludeAmpSocialShare() {
return <AmpIncludeCustomElement name="amp-social-share" version="0.1" />
}
export function AmpIncludeAmpSoundcloud() {
return <AmpIncludeCustomElement name="amp-soundcloud" version="0.1" />
}
export function AmpIncludeAmpSpringboardPlayer() {
return <AmpIncludeCustomElement name="amp-springboard-player" version="0.1" />
}
export function AmpIncludeAmpStickyAd() {
return <AmpIncludeCustomElement name="amp-sticky-ad" version="1.0" />
}
export function AmpIncludeAmpStoryAutoAds() {
return <AmpIncludeCustomElement name="amp-story-auto-ads" version="0.1" />
}
export function AmpIncludeAmpStory() {
return <AmpIncludeCustomElement name="amp-story" version="1.0" />
}
export function AmpIncludeAmpSubscriptions() {
return <AmpIncludeCustomElement name="amp-subscriptions" version="0.1" />
}
export function AmpIncludeAmpSubscriptionsGoogle() {
return (
<AmpIncludeCustomElement name="amp-subscriptions-google" version="0.1" />
)
}
export function AmpIncludeAmpTimeago() {
return <AmpIncludeCustomElement name="amp-timeago" version="0.1" />
}
export function AmpIncludeAmpTruncateText() {
return <AmpIncludeCustomElement name="amp-truncate-text" version="0.1" />
}
export function AmpIncludeAmpTwitter() {
return <AmpIncludeCustomElement name="amp-twitter" version="0.1" />
}
export function AmpIncludeAmpUserLocation() {
return <AmpIncludeCustomElement name="amp-user-location" version="0.1" />
}
export function AmpIncludeAmpUserNotification() {
return <AmpIncludeCustomElement name="amp-user-notification" version="0.1" />
}
export function AmpIncludeAmpVideoDocking() {
return <AmpIncludeCustomElement name="amp-video-docking" version="0.1" />
}
export function AmpIncludeAmpVideoIframe() {
return <AmpIncludeCustomElement name="amp-video-iframe" version="0.1" />
}
export function AmpIncludeAmpVideo() {
return <AmpIncludeCustomElement name="amp-video" version="0.1" />
}
export function AmpIncludeAmpVimeo() {
return <AmpIncludeCustomElement name="amp-vimeo" version="0.1" />
}
export function AmpIncludeAmpVine() {
return <AmpIncludeCustomElement name="amp-vine" version="0.1" />
}
export function AmpIncludeAmpViqeoPlayer() {
return <AmpIncludeCustomElement name="amp-viqeo-player" version="0.1" />
}
export function AmpIncludeAmpVk() {
return <AmpIncludeCustomElement name="amp-vk" version="0.1" />
}
export function AmpIncludeAmpWebPush() {
return <AmpIncludeCustomElement name="amp-web-push" version="0.1" />
}
export function AmpIncludeAmpWistiaPlayer() {
return <AmpIncludeCustomElement name="amp-wistia-player" version="0.1" />
}
export function AmpIncludeAmpYotpo() {
return <AmpIncludeCustomElement name="amp-yotpo" version="0.1" />
}
export function AmpIncludeAmpYoutube() {
return <AmpIncludeCustomElement name="amp-youtube" version="0.1" />
}