govuk_publishing_components 17.21.0 → 18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/govuk_publishing_components/all_components.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/character-count.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/checkboxes.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/error-summary.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/components/radio.js +1 -1
- data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +1 -1
- data/app/assets/stylesheets/component_guide/application.scss +5 -7
- data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +5 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +3 -15
- data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +28 -9
- data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +1 -13
- data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_highlight-boxes.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +18 -7
- data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-admin.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +6 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +8 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +6 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +10 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +3 -3
- data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +17 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +8 -6
- data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/_title.scss +5 -5
- data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_advisory.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_fraction.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_legislative-list.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_stat-headline.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_brand-colours.scss +2 -2
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +0 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +4 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_variables.scss +1 -1
- data/app/assets/stylesheets/govuk_publishing_components/components/print/_govspeak.scss +1 -1
- data/app/views/govuk_publishing_components/component_guide/index.html.erb +14 -12
- data/app/views/govuk_publishing_components/components/_accordion.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_button.html.erb +16 -2
- data/app/views/govuk_publishing_components/components/_character_count.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_contents_list.html.erb +5 -1
- data/app/views/govuk_publishing_components/components/_details.html.erb +3 -1
- data/app/views/govuk_publishing_components/components/_error_summary.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_layout_header.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_radio.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_subscription-links.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/_tabs.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_textarea.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/_title.html.erb +1 -1
- data/app/views/govuk_publishing_components/components/docs/button.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/contents_list.yml +12 -0
- data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/fieldset.yml +1 -1
- data/app/views/govuk_publishing_components/components/docs/label.yml +4 -1
- data/app/views/govuk_publishing_components/components/docs/table.yml +1 -0
- data/app/views/govuk_publishing_components/components/feedback/_problem_form.html.erb +2 -2
- data/app/views/govuk_publishing_components/components/feedback/_survey_signup_form.html.erb +2 -2
- data/config/initializers/assets.rb +3 -3
- data/config/locales/en.yml +0 -2
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/README.md +4 -9
- data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +4 -5
- data/node_modules/govuk-frontend/{all-ie8.scss → govuk/all-ie8.scss} +0 -0
- data/node_modules/govuk-frontend/{all.js → govuk/all.js} +116 -63
- data/node_modules/govuk-frontend/{all.scss → govuk/all.scss} +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-affa96571d-v2.woff +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/bold-b542beb274-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-94a07e06a1-v2.woff2 +0 -0
- data/node_modules/govuk-frontend/govuk/assets/fonts/light-f591b13f7d-v2.woff +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/favicon.ico +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-152x152.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-167x167.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon-180x180.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-apple-touch-icon.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest-2x.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-crest.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-logotype-crown.png +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-mask-icon.svg +0 -0
- data/node_modules/govuk-frontend/{assets → govuk/assets}/images/govuk-opengraph-image.png +0 -0
- data/node_modules/govuk-frontend/{common.js → govuk/common.js} +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/_accordion.scss +48 -28
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/accordion.js +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro-options.json +8 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/accordion/template.njk +1 -3
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/_back-link.scss +17 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/back-link/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/_breadcrumbs.scss +10 -11
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/breadcrumbs/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/_button.scss +76 -46
- data/node_modules/govuk-frontend/{components → govuk/components}/button/button.js +168 -17
- data/node_modules/govuk-frontend/{components → govuk/components}/button/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/button/macro.njk +0 -0
- data/node_modules/govuk-frontend/govuk/components/button/template.njk +60 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/_character-count.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/character-count.js +5 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/character-count/template.njk +2 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/_checkboxes.scss +4 -6
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/checkboxes.js +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/checkboxes/template.njk +18 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/_date-input.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/date-input/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/details/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/_details.scss +12 -13
- data/node_modules/govuk-frontend/{components → govuk/components}/details/details.js +3 -4
- data/node_modules/govuk-frontend/{components → govuk/components}/details/implementation.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/details/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/_error-message.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-message/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/_error-summary.scss +4 -17
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/error-summary.js +0 -10
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/error-summary/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/_fieldset.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro-options.json +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/fieldset/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/file-upload/_file-upload.scss +81 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/file-upload/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/_footer.scss +47 -16
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro-options.json +5 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/footer/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/header/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/header/_header.scss +34 -21
- data/node_modules/govuk-frontend/{components → govuk/components}/header/header.js +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/header/macro-options.json +2 -2
- data/node_modules/govuk-frontend/{components → govuk/components}/header/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/header/template.njk +6 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/_hint.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/hint/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/_input.scss +24 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/input/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/input/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/_inset-text.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/inset-text/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/_label.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/label/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/_panel.scss +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/panel/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/_phase-banner.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/phase-banner/template.njk +5 -7
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/_radios.scss +7 -9
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/radios.js +24 -11
- data/node_modules/govuk-frontend/{components → govuk/components}/radios/template.njk +15 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/select/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/_select.scss +23 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/select/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/select/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/_skip-link.scss +6 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/skip-link/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/_summary-list.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro-options.json +7 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/summary-list/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/table/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/_table.scss +1 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/table/template.njk +14 -14
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/tabs/_tabs.scss +142 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/tabs.js +59 -5
- data/node_modules/govuk-frontend/{components → govuk/components}/tabs/template.njk +4 -6
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/tag/_tag.scss +44 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/tag/template.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/README.md +0 -0
- data/node_modules/govuk-frontend/govuk/components/textarea/_textarea.scss +55 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro-options.json +6 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/textarea/template.njk +1 -1
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/README.md +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/_warning-text.scss +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro-options.json +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/macro.njk +0 -0
- data/node_modules/govuk-frontend/{components → govuk/components}/warning-text/template.njk +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_global-styles.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_links.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_lists.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_section-break.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_template.scss +0 -0
- data/node_modules/govuk-frontend/{core → govuk/core}/_typography.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_all.scss +1 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_clearfix.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_colour.scss +23 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_device-pixels.scss +0 -0
- data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +28 -0
- data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +41 -0
- data/node_modules/govuk-frontend/govuk/helpers/_grid.scss +60 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_links.scss +15 -1
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_media-queries.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_shape-arrow.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_typography.scss +23 -5
- data/node_modules/govuk-frontend/{helpers → govuk/helpers}/_visually-hidden.scss +4 -2
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_form-group.scss +0 -0
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_grid.scss +2 -2
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_main-wrapper.scss +15 -1
- data/node_modules/govuk-frontend/{objects → govuk/objects}/_width-container.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_display.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_typography.scss +0 -0
- data/node_modules/govuk-frontend/{overrides → govuk/overrides}/_width.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_assets.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-applied.scss +9 -8
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_colours-organisations.scss +1 -1
- data/node_modules/govuk-frontend/govuk/settings/_colours-palette.scss +101 -0
- data/node_modules/govuk-frontend/govuk/settings/_compatibility.scss +75 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_global-styles.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_ie8.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_measurements.scss +2 -2
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_media-queries.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_spacing.scss +0 -0
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font-families.scss +11 -1
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-font.scss +27 -7
- data/node_modules/govuk-frontend/{settings → govuk/settings}/_typography-responsive.scss +9 -10
- data/node_modules/govuk-frontend/{template.njk → govuk/template.njk} +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_compatibility.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_exports.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_font-url.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_ie8.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_iff.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_image-url.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-em.scss +0 -0
- data/node_modules/govuk-frontend/{tools → govuk/tools}/_px-to-rem.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_all.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_clearfix.scss +0 -0
- data/node_modules/govuk-frontend/{utilities → govuk/utilities}/_visually-hidden.scss +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/_sass-mq.scss +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/DOMTokenList.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Document.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/classList.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/closest.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Element/prototype/matches.js +0 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +259 -0
- data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +257 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Event.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Function/prototype/bind.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Object/defineProperty.js +0 -0
- data/node_modules/govuk-frontend/{vendor → govuk/vendor}/polyfills/Window.js +0 -0
- data/node_modules/govuk-frontend/package.json +21 -21
- data/node_modules/react-is/README.md +2 -12
- data/node_modules/react-is/build-info.json +5 -5
- data/node_modules/react-is/cjs/react-is.development.js +7 -2
- data/node_modules/react-is/cjs/react-is.production.min.js +6 -6
- data/node_modules/react-is/package.json +13 -13
- data/node_modules/react-is/umd/react-is.development.js +7 -2
- data/node_modules/react-is/umd/react-is.production.min.js +5 -5
- data/node_modules/type/CHANGELOG.md +62 -50
- data/node_modules/type/LICENSE +15 -0
- data/node_modules/type/README.md +19 -19
- data/node_modules/type/error/is.js +28 -7
- data/node_modules/type/package.json +36 -22
- data/node_modules/type/test/error/is.js +13 -5
- metadata +247 -344
- data/app/assets/javascripts/govuk_publishing_components/components/accessible-autocomplete.js +0 -79
- data/app/assets/stylesheets/govuk_publishing_components/components/_accessible-autocomplete.scss +0 -41
- data/app/views/govuk_publishing_components/components/_accessible_autocomplete.html.erb +0 -35
- data/app/views/govuk_publishing_components/components/docs/accessible_autocomplete.yml +0 -49
- data/node_modules/accessible-autocomplete/CHANGELOG.md +0 -269
- data/node_modules/accessible-autocomplete/CONTRIBUTING.md +0 -150
- data/node_modules/accessible-autocomplete/LICENSE.txt +0 -20
- data/node_modules/accessible-autocomplete/Procfile +0 -1
- data/node_modules/accessible-autocomplete/README.md +0 -416
- data/node_modules/accessible-autocomplete/accessibility-criteria.md +0 -42
- data/node_modules/accessible-autocomplete/app.json +0 -15
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.css +0 -1
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +0 -2
- data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +0 -1
- data/node_modules/accessible-autocomplete/examples/form.html +0 -671
- data/node_modules/accessible-autocomplete/examples/index.html +0 -665
- data/node_modules/accessible-autocomplete/examples/multiselect.html +0 -134
- data/node_modules/accessible-autocomplete/examples/preact/index.html +0 -346
- data/node_modules/accessible-autocomplete/examples/react/index.html +0 -347
- data/node_modules/accessible-autocomplete/package-lock.json +0 -14491
- data/node_modules/accessible-autocomplete/package.json +0 -173
- data/node_modules/accessible-autocomplete/preact.js +0 -1
- data/node_modules/accessible-autocomplete/react.js +0 -1
- data/node_modules/accessible-autocomplete/scripts/check-staged.js +0 -14
- data/node_modules/accessible-autocomplete/src/autocomplete.css +0 -192
- data/node_modules/accessible-autocomplete/src/autocomplete.js +0 -618
- data/node_modules/accessible-autocomplete/src/dropdown-arrow-down.js +0 -11
- data/node_modules/accessible-autocomplete/src/status.js +0 -80
- data/node_modules/accessible-autocomplete/src/wrapper.js +0 -76
- data/node_modules/accessible-autocomplete/test/functional/dropdown-arrow-down.js +0 -44
- data/node_modules/accessible-autocomplete/test/functional/index.js +0 -485
- data/node_modules/accessible-autocomplete/test/functional/wrapper.js +0 -318
- data/node_modules/accessible-autocomplete/test/integration/index.js +0 -188
- data/node_modules/accessible-autocomplete/test/karma.config.js +0 -42
- data/node_modules/accessible-autocomplete/test/wdio.config.js +0 -80
- data/node_modules/accessible-autocomplete/webpack.config.babel.js +0 -193
- data/node_modules/govuk-frontend/assets/fonts/bold-a2452cb66f-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-f38c792ac2-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-fb2676462a-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-357fdfbcc3-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-784c21afb8-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/bold-tabular-b89238d840-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-2c037cf7e1-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-458f8ea81c-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-f38ad40456-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-498ea8ffe2-v1.eot +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-62cc6f0a28-v1.woff +0 -0
- data/node_modules/govuk-frontend/assets/fonts/light-tabular-851b10ccdd-v1.woff2 +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-arrow-left.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-important.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer-2x.png +0 -0
- data/node_modules/govuk-frontend/assets/images/icon-pointer.png +0 -0
- data/node_modules/govuk-frontend/components/button/template.njk +0 -35
- data/node_modules/govuk-frontend/components/file-upload/_file-upload.scss +0 -19
- data/node_modules/govuk-frontend/components/tabs/_tabs.scss +0 -130
- data/node_modules/govuk-frontend/components/tag/_tag.scss +0 -33
- data/node_modules/govuk-frontend/components/textarea/_textarea.scss +0 -32
- data/node_modules/govuk-frontend/helpers/_focusable.scss +0 -34
- data/node_modules/govuk-frontend/helpers/_font-faces.scss +0 -67
- data/node_modules/govuk-frontend/helpers/_grid.scss +0 -107
- data/node_modules/govuk-frontend/settings/_colours-palette.scss +0 -37
- data/node_modules/govuk-frontend/settings/_compatibility.scss +0 -51
- data/node_modules/preact/LICENSE +0 -21
- data/node_modules/preact/README.md +0 -592
- data/node_modules/preact/debug.js +0 -740
- data/node_modules/preact/debug.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.js +0 -2
- data/node_modules/preact/debug/dist/debug.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.mjs +0 -681
- data/node_modules/preact/debug/dist/debug.mjs.map +0 -1
- data/node_modules/preact/debug/dist/debug.module.js +0 -2
- data/node_modules/preact/debug/dist/debug.module.js.map +0 -1
- data/node_modules/preact/debug/dist/debug.umd.js +0 -2
- data/node_modules/preact/debug/dist/debug.umd.js.map +0 -1
- data/node_modules/preact/debug/index.js +0 -122
- data/node_modules/preact/devtools.js +0 -403
- data/node_modules/preact/devtools.js.map +0 -1
- data/node_modules/preact/devtools/devtools.js +0 -395
- data/node_modules/preact/devtools/index.js +0 -4
- data/node_modules/preact/dist/preact.d.ts +0 -1712
- data/node_modules/preact/dist/preact.dev.js +0 -727
- data/node_modules/preact/dist/preact.dev.js.map +0 -1
- data/node_modules/preact/dist/preact.js +0 -414
- data/node_modules/preact/dist/preact.js.flow +0 -25
- data/node_modules/preact/dist/preact.js.map +0 -1
- data/node_modules/preact/dist/preact.min.js +0 -2
- data/node_modules/preact/dist/preact.min.js.map +0 -1
- data/node_modules/preact/dist/preact.mjs +0 -724
- data/node_modules/preact/dist/preact.mjs.map +0 -1
- data/node_modules/preact/dist/preact.umd.js +0 -751
- data/node_modules/preact/dist/preact.umd.js.map +0 -1
- data/node_modules/preact/package.json +0 -226
- data/node_modules/preact/src/clone-element.js +0 -18
- data/node_modules/preact/src/component.js +0 -90
- data/node_modules/preact/src/constants.js +0 -17
- data/node_modules/preact/src/dom/index.js +0 -139
- data/node_modules/preact/src/h.js +0 -86
- data/node_modules/preact/src/options.js +0 -22
- data/node_modules/preact/src/preact.d.ts +0 -1712
- data/node_modules/preact/src/preact.js +0 -32
- data/node_modules/preact/src/preact.js.flow +0 -25
- data/node_modules/preact/src/render-queue.js +0 -27
- data/node_modules/preact/src/render.js +0 -22
- data/node_modules/preact/src/util.js +0 -30
- data/node_modules/preact/src/vdom/component-recycler.js +0 -48
- data/node_modules/preact/src/vdom/component.js +0 -296
- data/node_modules/preact/src/vdom/diff.js +0 -337
- data/node_modules/preact/src/vdom/index.js +0 -54
- data/node_modules/preact/src/vnode.js +0 -9
- data/node_modules/preact/typings.json +0 -5
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"devtools.js","sources":["src/constants.js","devtools/devtools.js","devtools/index.js"],"sourcesContent":["// render modes\n\n/** Do not re-render a component */\nexport const NO_RENDER = 0;\n/** Synchronously re-render a component and its children */\nexport const SYNC_RENDER = 1;\n/** Synchronously re-render a component, even if its lifecycle methods attempt to prevent it. */\nexport const FORCE_RENDER = 2;\n/** Queue asynchronous re-render of a component and it's children */\nexport const ASYNC_RENDER = 3;\n\n\nexport const ATTR_KEY = '__preactattr_';\n\n/** DOM properties that should NOT have \"px\" added when numeric */\nexport const IS_NON_DIMENSIONAL = /acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i;\n\n","/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n\nimport { options } from 'preact';\n\n// Internal helpers from preact\nimport { ATTR_KEY } from '../src/constants';\n\n/**\n * Return a ReactElement-compatible object for the current state of a preact\n * component.\n */\nfunction createReactElement(component) {\n\treturn {\n\t\ttype: component.constructor,\n\t\tkey: component.key,\n\t\tref: null, // Unsupported\n\t\tprops: component.props\n\t};\n}\n\n/**\n * Create a ReactDOMComponent-compatible object for a given DOM node rendered\n * by preact.\n *\n * This implements the subset of the ReactDOMComponent interface that\n * React DevTools requires in order to display DOM nodes in the inspector with\n * the correct type and properties.\n *\n * @param {Node} node\n */\nfunction createReactDOMComponent(node) {\n\tconst childNodes = node.nodeType === Node.ELEMENT_NODE ?\n\t\tArray.from(node.childNodes) : [];\n\n\tconst isText = node.nodeType === Node.TEXT_NODE;\n\n\treturn {\n\t\t// --- ReactDOMComponent interface\n\t\t_currentElement: isText ? node.textContent : {\n\t\t\ttype: node.nodeName.toLowerCase(),\n\t\t\tprops: node[ATTR_KEY]\n\t\t},\n\t\t_renderedChildren: childNodes.map(child => {\n\t\t\tif (child._component) {\n\t\t\t\treturn updateReactComponent(child._component);\n\t\t\t}\n\t\t\treturn updateReactComponent(child);\n\t\t}),\n\t\t_stringText: isText ? node.textContent : null,\n\n\t\t// --- Additional properties used by preact devtools\n\n\t\t// A flag indicating whether the devtools have been notified about the\n\t\t// existence of this component instance yet.\n\t\t// This is used to send the appropriate notifications when DOM components\n\t\t// are added or updated between composite component updates.\n\t\t_inDevTools: false,\n\t\tnode\n\t};\n}\n\n/**\n * Return the name of a component created by a `ReactElement`-like object.\n *\n * @param {ReactElement} element\n */\nfunction typeName(element) {\n\tif (typeof element.type === 'function') {\n\t\treturn element.type.displayName || element.type.name;\n\t}\n\treturn element.type;\n}\n\n/**\n * Return a ReactCompositeComponent-compatible object for a given preact\n * component instance.\n *\n * This implements the subset of the ReactCompositeComponent interface that\n * the DevTools requires in order to walk the component tree and inspect the\n * component's properties.\n *\n * See https://github.com/facebook/react-devtools/blob/e31ec5825342eda570acfc9bcb43a44258fceb28/backend/getData.js\n */\nfunction createReactCompositeComponent(component) {\n\tconst _currentElement = createReactElement(component);\n\tconst node = component.base;\n\n\tlet instance = {\n\t\t// --- ReactDOMComponent properties\n\t\tgetName() {\n\t\t\treturn typeName(_currentElement);\n\t\t},\n\t\t_currentElement: createReactElement(component),\n\t\tprops: component.props,\n\t\tstate: component.state,\n\t\tforceUpdate: component.forceUpdate && component.forceUpdate.bind(component),\n\t\tsetState: component.setState && component.setState.bind(component),\n\n\t\t// --- Additional properties used by preact devtools\n\t\tnode\n\t};\n\n\t// React DevTools exposes the `_instance` field of the selected item in the\n\t// component tree as `$r` in the console. `_instance` must refer to a\n\t// React Component (or compatible) class instance with `props` and `state`\n\t// fields and `setState()`, `forceUpdate()` methods.\n\tinstance._instance = component;\n\n\t// If the root node returned by this component instance's render function\n\t// was itself a composite component, there will be a `_component` property\n\t// containing the child component instance.\n\tif (component._component) {\n\t\tinstance._renderedComponent = updateReactComponent(component._component);\n\t} else {\n\t\t// Otherwise, if the render() function returned an HTML/SVG element,\n\t\t// create a ReactDOMComponent-like object for the DOM node itself.\n\t\tinstance._renderedComponent = updateReactComponent(node);\n\t}\n\n\treturn instance;\n}\n\n/**\n * Map of Component|Node to ReactDOMComponent|ReactCompositeComponent-like\n * object.\n *\n * The same React*Component instance must be used when notifying devtools\n * about the initial mount of a component and subsequent updates.\n */\nlet instanceMap = typeof Map==='function' && new Map();\n\n/**\n * Update (and create if necessary) the ReactDOMComponent|ReactCompositeComponent-like\n * instance for a given preact component instance or DOM Node.\n *\n * @param {Component|Node} componentOrNode\n */\nfunction updateReactComponent(componentOrNode) {\n\tconst newInstance = componentOrNode instanceof Node ?\n\t\tcreateReactDOMComponent(componentOrNode) :\n\t\tcreateReactCompositeComponent(componentOrNode);\n\tif (instanceMap.has(componentOrNode)) {\n\t\tlet inst = instanceMap.get(componentOrNode);\n\t\tObject.assign(inst, newInstance);\n\t\treturn inst;\n\t}\n\tinstanceMap.set(componentOrNode, newInstance);\n\treturn newInstance;\n}\n\nfunction nextRootKey(roots) {\n\treturn '.' + Object.keys(roots).length;\n}\n\n/**\n * Find all root component instances rendered by preact in `node`'s children\n * and add them to the `roots` map.\n *\n * @param {DOMElement} node\n * @param {[key: string] => ReactDOMComponent|ReactCompositeComponent}\n */\nfunction findRoots(node, roots) {\n\tArray.from(node.childNodes).forEach(child => {\n\t\tif (child._component) {\n\t\t\troots[nextRootKey(roots)] = updateReactComponent(child._component);\n\t\t} else {\n\t\t\tfindRoots(child, roots);\n\t\t}\n\t});\n}\n\n/**\n * Create a bridge for exposing preact's component tree to React DevTools.\n *\n * It creates implementations of the interfaces that ReactDOM passes to\n * devtools to enable it to query the component tree and hook into component\n * updates.\n *\n * See https://github.com/facebook/react/blob/59ff7749eda0cd858d5ee568315bcba1be75a1ca/src/renderers/dom/ReactDOM.js\n * for how ReactDOM exports its internals for use by the devtools and\n * the `attachRenderer()` function in\n * https://github.com/facebook/react-devtools/blob/e31ec5825342eda570acfc9bcb43a44258fceb28/backend/attachRenderer.js\n * for how the devtools consumes the resulting objects.\n */\nfunction createDevToolsBridge() {\n\t// The devtools has different paths for interacting with the renderers from\n\t// React Native, legacy React DOM and current React DOM.\n\t//\n\t// Here we emulate the interface for the current React DOM (v15+) lib.\n\n\t// ReactDOMComponentTree-like object\n\tconst ComponentTree = {\n\t\tgetNodeFromInstance(instance) {\n\t\t\treturn instance.node;\n\t\t},\n\t\tgetClosestInstanceFromNode(node) {\n\t\t\twhile (node && !node._component) {\n\t\t\t\tnode = node.parentNode;\n\t\t\t}\n\t\t\treturn node ? updateReactComponent(node._component) : null;\n\t\t}\n\t};\n\n\t// Map of root ID (the ID is unimportant) to component instance.\n\tlet roots = {};\n\tfindRoots(document.body, roots);\n\n\t// ReactMount-like object\n\t//\n\t// Used by devtools to discover the list of root component instances and get\n\t// notified when new root components are rendered.\n\tconst Mount = {\n\t\t_instancesByReactRootID: roots,\n\n\t\t// Stub - React DevTools expects to find this method and replace it\n\t\t// with a wrapper in order to observe new root components being added\n\t\t_renderNewRootComponent(/* instance, ... */) { }\n\t};\n\n\t// ReactReconciler-like object\n\tconst Reconciler = {\n\t\t// Stubs - React DevTools expects to find these methods and replace them\n\t\t// with wrappers in order to observe components being mounted, updated and\n\t\t// unmounted\n\t\tmountComponent(/* instance, ... */) { },\n\t\tperformUpdateIfNecessary(/* instance, ... */) { },\n\t\treceiveComponent(/* instance, ... */) { },\n\t\tunmountComponent(/* instance, ... */) { }\n\t};\n\n\t/** Notify devtools that a new component instance has been mounted into the DOM. */\n\tconst componentAdded = component => {\n\t\tconst instance = updateReactComponent(component);\n\t\tif (isRootComponent(component)) {\n\t\t\tinstance._rootID = nextRootKey(roots);\n\t\t\troots[instance._rootID] = instance;\n\t\t\tMount._renderNewRootComponent(instance);\n\t\t}\n\t\tvisitNonCompositeChildren(instance, childInst => {\n\t\t\tchildInst._inDevTools = true;\n\t\t\tReconciler.mountComponent(childInst);\n\t\t});\n\t\tReconciler.mountComponent(instance);\n\t};\n\n\t/** Notify devtools that a component has been updated with new props/state. */\n\tconst componentUpdated = component => {\n\t\tconst prevRenderedChildren = [];\n\t\tlet instance = instanceMap.get(component);\n\t\tif (instance) {\n\t\t\tvisitNonCompositeChildren(instance, childInst => {\n\t\t\t\tprevRenderedChildren.push(childInst);\n\t\t\t});\n\t\t}\n\t\t// Notify devtools about updates to this component and any non-composite\n\t\t// children\n\t\tinstance = updateReactComponent(component);\n\n\t\tReconciler.receiveComponent(instance);\n\t\tvisitNonCompositeChildren(instance, childInst => {\n\t\t\tif (!childInst._inDevTools) {\n\t\t\t\t// New DOM child component\n\t\t\t\tchildInst._inDevTools = true;\n\t\t\t\tReconciler.mountComponent(childInst);\n\t\t\t} else {\n\t\t\t\t// Updated DOM child component\n\t\t\t\tReconciler.receiveComponent(childInst);\n\t\t\t}\n\t\t});\n\n\t\t// For any non-composite children that were removed by the latest render,\n\t\t// remove the corresponding ReactDOMComponent-like instances and notify\n\t\t// the devtools\n\t\tprevRenderedChildren.forEach(childInst => {\n\t\t\tif (!document.body.contains(childInst.node)) {\n\t\t\t\tinstanceMap.delete(childInst.node);\n\t\t\t\tReconciler.unmountComponent(childInst);\n\t\t\t}\n\t\t});\n\t};\n\n\t/** Notify devtools that a component has been unmounted from the DOM. */\n\tconst componentRemoved = component => {\n\t\tconst instance = updateReactComponent(component);\n\t\tvisitNonCompositeChildren(childInst => {\n\t\t\tinstanceMap.delete(childInst.node);\n\t\t\tReconciler.unmountComponent(childInst);\n\t\t});\n\t\tReconciler.unmountComponent(instance);\n\t\tinstanceMap.delete(component);\n\t\tif (instance._rootID) {\n\t\t\tdelete roots[instance._rootID];\n\t\t}\n\t};\n\n\treturn {\n\t\tcomponentAdded,\n\t\tcomponentUpdated,\n\t\tcomponentRemoved,\n\n\t\t// Interfaces passed to devtools via __REACT_DEVTOOLS_GLOBAL_HOOK__.inject()\n\t\tComponentTree,\n\t\tMount,\n\t\tReconciler\n\t};\n}\n\n/**\n * Return `true` if a preact component is a top level component rendered by\n * `render()` into a container Element.\n */\nfunction isRootComponent(component) {\n\t// `_parentComponent` is actually `__u` after minification\n\tif (component._parentComponent || component.__u) {\n\t\t// Component with a composite parent\n\t\treturn false;\n\t}\n\tif (component.base.parentElement && component.base.parentElement[ATTR_KEY]) {\n\t\t// Component with a parent DOM element rendered by Preact\n\t\treturn false;\n\t}\n\treturn true;\n}\n\n/**\n * Visit all child instances of a ReactCompositeComponent-like object that are\n * not composite components (ie. they represent DOM elements or text)\n *\n * @param {Component} component\n * @param {(Component) => void} visitor\n */\nfunction visitNonCompositeChildren(component, visitor) {\n\tif (!component) return;\n\tif (component._renderedComponent) {\n\t\tif (!component._renderedComponent._component) {\n\t\t\tvisitor(component._renderedComponent);\n\t\t\tvisitNonCompositeChildren(component._renderedComponent, visitor);\n\t\t}\n\t} else if (component._renderedChildren) {\n\t\tcomponent._renderedChildren.forEach(child => {\n\t\t\tvisitor(child);\n\t\t\tif (!child._component) visitNonCompositeChildren(child, visitor);\n\t\t});\n\t}\n}\n\n/**\n * Create a bridge between the preact component tree and React's dev tools\n * and register it.\n *\n * After this function is called, the React Dev Tools should be able to detect\n * \"React\" on the page and show the component tree.\n *\n * This function hooks into preact VNode creation in order to expose functional\n * components correctly, so it should be called before the root component(s)\n * are rendered.\n *\n * Returns a cleanup function which unregisters the hooks.\n */\nexport function initDevTools() {\n\tif (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {\n\t\t// React DevTools are not installed\n\t\treturn;\n\t}\n\n\t// Notify devtools when preact components are mounted, updated or unmounted\n\tconst bridge = createDevToolsBridge();\n\n\tconst nextAfterMount = options.afterMount;\n\toptions.afterMount = component => {\n\t\tbridge.componentAdded(component);\n\t\tif (nextAfterMount) nextAfterMount(component);\n\t};\n\n\tconst nextAfterUpdate = options.afterUpdate;\n\toptions.afterUpdate = component => {\n\t\tbridge.componentUpdated(component);\n\t\tif (nextAfterUpdate) nextAfterUpdate(component);\n\t};\n\n\tconst nextBeforeUnmount = options.beforeUnmount;\n\toptions.beforeUnmount = component => {\n\t\tbridge.componentRemoved(component);\n\t\tif (nextBeforeUnmount) nextBeforeUnmount(component);\n\t};\n\n\t// Notify devtools about this instance of \"React\"\n\t__REACT_DEVTOOLS_GLOBAL_HOOK__.inject(bridge);\n\n\treturn () => {\n\t\toptions.afterMount = nextAfterMount;\n\t\toptions.afterUpdate = nextAfterUpdate;\n\t\toptions.beforeUnmount = nextBeforeUnmount;\n\t};\n}\n","import { initDevTools } from './devtools';\n\ninitDevTools();\n\n"],"names":["ATTR_KEY","createReactElement","component","type","constructor","key","ref","props","createReactDOMComponent","node","childNodes","nodeType","Node","ELEMENT_NODE","Array","from","isText","TEXT_NODE","_currentElement","textContent","nodeName","toLowerCase","_renderedChildren","map","child","_component","updateReactComponent","_stringText","_inDevTools","typeName","element","displayName","name","createReactCompositeComponent","base","instance","getName","state","forceUpdate","bind","setState","_instance","_renderedComponent","instanceMap","Map","componentOrNode","newInstance","has","inst","get","Object","assign","set","nextRootKey","roots","keys","length","findRoots","forEach","createDevToolsBridge","ComponentTree","getNodeFromInstance","getClosestInstanceFromNode","parentNode","document","body","Mount","_instancesByReactRootID","_renderNewRootComponent","Reconciler","mountComponent","performUpdateIfNecessary","receiveComponent","unmountComponent","componentAdded","isRootComponent","_rootID","visitNonCompositeChildren","childInst","componentUpdated","prevRenderedChildren","push","contains","delete","componentRemoved","_parentComponent","__u","parentElement","visitor","initDevTools","__REACT_DEVTOOLS_GLOBAL_HOOK__","bridge","nextAfterMount","options","afterMount","nextAfterUpdate","afterUpdate","nextBeforeUnmount","beforeUnmount","inject"],"mappings":"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"}
|
@@ -1,395 +0,0 @@
|
|
1
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
2
|
-
|
3
|
-
import { options } from 'preact';
|
4
|
-
|
5
|
-
// Internal helpers from preact
|
6
|
-
import { ATTR_KEY } from '../src/constants';
|
7
|
-
|
8
|
-
/**
|
9
|
-
* Return a ReactElement-compatible object for the current state of a preact
|
10
|
-
* component.
|
11
|
-
*/
|
12
|
-
function createReactElement(component) {
|
13
|
-
return {
|
14
|
-
type: component.constructor,
|
15
|
-
key: component.key,
|
16
|
-
ref: null, // Unsupported
|
17
|
-
props: component.props
|
18
|
-
};
|
19
|
-
}
|
20
|
-
|
21
|
-
/**
|
22
|
-
* Create a ReactDOMComponent-compatible object for a given DOM node rendered
|
23
|
-
* by preact.
|
24
|
-
*
|
25
|
-
* This implements the subset of the ReactDOMComponent interface that
|
26
|
-
* React DevTools requires in order to display DOM nodes in the inspector with
|
27
|
-
* the correct type and properties.
|
28
|
-
*
|
29
|
-
* @param {Node} node
|
30
|
-
*/
|
31
|
-
function createReactDOMComponent(node) {
|
32
|
-
const childNodes = node.nodeType === Node.ELEMENT_NODE ?
|
33
|
-
Array.from(node.childNodes) : [];
|
34
|
-
|
35
|
-
const isText = node.nodeType === Node.TEXT_NODE;
|
36
|
-
|
37
|
-
return {
|
38
|
-
// --- ReactDOMComponent interface
|
39
|
-
_currentElement: isText ? node.textContent : {
|
40
|
-
type: node.nodeName.toLowerCase(),
|
41
|
-
props: node[ATTR_KEY]
|
42
|
-
},
|
43
|
-
_renderedChildren: childNodes.map(child => {
|
44
|
-
if (child._component) {
|
45
|
-
return updateReactComponent(child._component);
|
46
|
-
}
|
47
|
-
return updateReactComponent(child);
|
48
|
-
}),
|
49
|
-
_stringText: isText ? node.textContent : null,
|
50
|
-
|
51
|
-
// --- Additional properties used by preact devtools
|
52
|
-
|
53
|
-
// A flag indicating whether the devtools have been notified about the
|
54
|
-
// existence of this component instance yet.
|
55
|
-
// This is used to send the appropriate notifications when DOM components
|
56
|
-
// are added or updated between composite component updates.
|
57
|
-
_inDevTools: false,
|
58
|
-
node
|
59
|
-
};
|
60
|
-
}
|
61
|
-
|
62
|
-
/**
|
63
|
-
* Return the name of a component created by a `ReactElement`-like object.
|
64
|
-
*
|
65
|
-
* @param {ReactElement} element
|
66
|
-
*/
|
67
|
-
function typeName(element) {
|
68
|
-
if (typeof element.type === 'function') {
|
69
|
-
return element.type.displayName || element.type.name;
|
70
|
-
}
|
71
|
-
return element.type;
|
72
|
-
}
|
73
|
-
|
74
|
-
/**
|
75
|
-
* Return a ReactCompositeComponent-compatible object for a given preact
|
76
|
-
* component instance.
|
77
|
-
*
|
78
|
-
* This implements the subset of the ReactCompositeComponent interface that
|
79
|
-
* the DevTools requires in order to walk the component tree and inspect the
|
80
|
-
* component's properties.
|
81
|
-
*
|
82
|
-
* See https://github.com/facebook/react-devtools/blob/e31ec5825342eda570acfc9bcb43a44258fceb28/backend/getData.js
|
83
|
-
*/
|
84
|
-
function createReactCompositeComponent(component) {
|
85
|
-
const _currentElement = createReactElement(component);
|
86
|
-
const node = component.base;
|
87
|
-
|
88
|
-
let instance = {
|
89
|
-
// --- ReactDOMComponent properties
|
90
|
-
getName() {
|
91
|
-
return typeName(_currentElement);
|
92
|
-
},
|
93
|
-
_currentElement: createReactElement(component),
|
94
|
-
props: component.props,
|
95
|
-
state: component.state,
|
96
|
-
forceUpdate: component.forceUpdate && component.forceUpdate.bind(component),
|
97
|
-
setState: component.setState && component.setState.bind(component),
|
98
|
-
|
99
|
-
// --- Additional properties used by preact devtools
|
100
|
-
node
|
101
|
-
};
|
102
|
-
|
103
|
-
// React DevTools exposes the `_instance` field of the selected item in the
|
104
|
-
// component tree as `$r` in the console. `_instance` must refer to a
|
105
|
-
// React Component (or compatible) class instance with `props` and `state`
|
106
|
-
// fields and `setState()`, `forceUpdate()` methods.
|
107
|
-
instance._instance = component;
|
108
|
-
|
109
|
-
// If the root node returned by this component instance's render function
|
110
|
-
// was itself a composite component, there will be a `_component` property
|
111
|
-
// containing the child component instance.
|
112
|
-
if (component._component) {
|
113
|
-
instance._renderedComponent = updateReactComponent(component._component);
|
114
|
-
} else {
|
115
|
-
// Otherwise, if the render() function returned an HTML/SVG element,
|
116
|
-
// create a ReactDOMComponent-like object for the DOM node itself.
|
117
|
-
instance._renderedComponent = updateReactComponent(node);
|
118
|
-
}
|
119
|
-
|
120
|
-
return instance;
|
121
|
-
}
|
122
|
-
|
123
|
-
/**
|
124
|
-
* Map of Component|Node to ReactDOMComponent|ReactCompositeComponent-like
|
125
|
-
* object.
|
126
|
-
*
|
127
|
-
* The same React*Component instance must be used when notifying devtools
|
128
|
-
* about the initial mount of a component and subsequent updates.
|
129
|
-
*/
|
130
|
-
let instanceMap = typeof Map==='function' && new Map();
|
131
|
-
|
132
|
-
/**
|
133
|
-
* Update (and create if necessary) the ReactDOMComponent|ReactCompositeComponent-like
|
134
|
-
* instance for a given preact component instance or DOM Node.
|
135
|
-
*
|
136
|
-
* @param {Component|Node} componentOrNode
|
137
|
-
*/
|
138
|
-
function updateReactComponent(componentOrNode) {
|
139
|
-
const newInstance = componentOrNode instanceof Node ?
|
140
|
-
createReactDOMComponent(componentOrNode) :
|
141
|
-
createReactCompositeComponent(componentOrNode);
|
142
|
-
if (instanceMap.has(componentOrNode)) {
|
143
|
-
let inst = instanceMap.get(componentOrNode);
|
144
|
-
Object.assign(inst, newInstance);
|
145
|
-
return inst;
|
146
|
-
}
|
147
|
-
instanceMap.set(componentOrNode, newInstance);
|
148
|
-
return newInstance;
|
149
|
-
}
|
150
|
-
|
151
|
-
function nextRootKey(roots) {
|
152
|
-
return '.' + Object.keys(roots).length;
|
153
|
-
}
|
154
|
-
|
155
|
-
/**
|
156
|
-
* Find all root component instances rendered by preact in `node`'s children
|
157
|
-
* and add them to the `roots` map.
|
158
|
-
*
|
159
|
-
* @param {DOMElement} node
|
160
|
-
* @param {[key: string] => ReactDOMComponent|ReactCompositeComponent}
|
161
|
-
*/
|
162
|
-
function findRoots(node, roots) {
|
163
|
-
Array.from(node.childNodes).forEach(child => {
|
164
|
-
if (child._component) {
|
165
|
-
roots[nextRootKey(roots)] = updateReactComponent(child._component);
|
166
|
-
} else {
|
167
|
-
findRoots(child, roots);
|
168
|
-
}
|
169
|
-
});
|
170
|
-
}
|
171
|
-
|
172
|
-
/**
|
173
|
-
* Create a bridge for exposing preact's component tree to React DevTools.
|
174
|
-
*
|
175
|
-
* It creates implementations of the interfaces that ReactDOM passes to
|
176
|
-
* devtools to enable it to query the component tree and hook into component
|
177
|
-
* updates.
|
178
|
-
*
|
179
|
-
* See https://github.com/facebook/react/blob/59ff7749eda0cd858d5ee568315bcba1be75a1ca/src/renderers/dom/ReactDOM.js
|
180
|
-
* for how ReactDOM exports its internals for use by the devtools and
|
181
|
-
* the `attachRenderer()` function in
|
182
|
-
* https://github.com/facebook/react-devtools/blob/e31ec5825342eda570acfc9bcb43a44258fceb28/backend/attachRenderer.js
|
183
|
-
* for how the devtools consumes the resulting objects.
|
184
|
-
*/
|
185
|
-
function createDevToolsBridge() {
|
186
|
-
// The devtools has different paths for interacting with the renderers from
|
187
|
-
// React Native, legacy React DOM and current React DOM.
|
188
|
-
//
|
189
|
-
// Here we emulate the interface for the current React DOM (v15+) lib.
|
190
|
-
|
191
|
-
// ReactDOMComponentTree-like object
|
192
|
-
const ComponentTree = {
|
193
|
-
getNodeFromInstance(instance) {
|
194
|
-
return instance.node;
|
195
|
-
},
|
196
|
-
getClosestInstanceFromNode(node) {
|
197
|
-
while (node && !node._component) {
|
198
|
-
node = node.parentNode;
|
199
|
-
}
|
200
|
-
return node ? updateReactComponent(node._component) : null;
|
201
|
-
}
|
202
|
-
};
|
203
|
-
|
204
|
-
// Map of root ID (the ID is unimportant) to component instance.
|
205
|
-
let roots = {};
|
206
|
-
findRoots(document.body, roots);
|
207
|
-
|
208
|
-
// ReactMount-like object
|
209
|
-
//
|
210
|
-
// Used by devtools to discover the list of root component instances and get
|
211
|
-
// notified when new root components are rendered.
|
212
|
-
const Mount = {
|
213
|
-
_instancesByReactRootID: roots,
|
214
|
-
|
215
|
-
// Stub - React DevTools expects to find this method and replace it
|
216
|
-
// with a wrapper in order to observe new root components being added
|
217
|
-
_renderNewRootComponent(/* instance, ... */) { }
|
218
|
-
};
|
219
|
-
|
220
|
-
// ReactReconciler-like object
|
221
|
-
const Reconciler = {
|
222
|
-
// Stubs - React DevTools expects to find these methods and replace them
|
223
|
-
// with wrappers in order to observe components being mounted, updated and
|
224
|
-
// unmounted
|
225
|
-
mountComponent(/* instance, ... */) { },
|
226
|
-
performUpdateIfNecessary(/* instance, ... */) { },
|
227
|
-
receiveComponent(/* instance, ... */) { },
|
228
|
-
unmountComponent(/* instance, ... */) { }
|
229
|
-
};
|
230
|
-
|
231
|
-
/** Notify devtools that a new component instance has been mounted into the DOM. */
|
232
|
-
const componentAdded = component => {
|
233
|
-
const instance = updateReactComponent(component);
|
234
|
-
if (isRootComponent(component)) {
|
235
|
-
instance._rootID = nextRootKey(roots);
|
236
|
-
roots[instance._rootID] = instance;
|
237
|
-
Mount._renderNewRootComponent(instance);
|
238
|
-
}
|
239
|
-
visitNonCompositeChildren(instance, childInst => {
|
240
|
-
childInst._inDevTools = true;
|
241
|
-
Reconciler.mountComponent(childInst);
|
242
|
-
});
|
243
|
-
Reconciler.mountComponent(instance);
|
244
|
-
};
|
245
|
-
|
246
|
-
/** Notify devtools that a component has been updated with new props/state. */
|
247
|
-
const componentUpdated = component => {
|
248
|
-
const prevRenderedChildren = [];
|
249
|
-
let instance = instanceMap.get(component);
|
250
|
-
if (instance) {
|
251
|
-
visitNonCompositeChildren(instance, childInst => {
|
252
|
-
prevRenderedChildren.push(childInst);
|
253
|
-
});
|
254
|
-
}
|
255
|
-
// Notify devtools about updates to this component and any non-composite
|
256
|
-
// children
|
257
|
-
instance = updateReactComponent(component);
|
258
|
-
|
259
|
-
Reconciler.receiveComponent(instance);
|
260
|
-
visitNonCompositeChildren(instance, childInst => {
|
261
|
-
if (!childInst._inDevTools) {
|
262
|
-
// New DOM child component
|
263
|
-
childInst._inDevTools = true;
|
264
|
-
Reconciler.mountComponent(childInst);
|
265
|
-
} else {
|
266
|
-
// Updated DOM child component
|
267
|
-
Reconciler.receiveComponent(childInst);
|
268
|
-
}
|
269
|
-
});
|
270
|
-
|
271
|
-
// For any non-composite children that were removed by the latest render,
|
272
|
-
// remove the corresponding ReactDOMComponent-like instances and notify
|
273
|
-
// the devtools
|
274
|
-
prevRenderedChildren.forEach(childInst => {
|
275
|
-
if (!document.body.contains(childInst.node)) {
|
276
|
-
instanceMap.delete(childInst.node);
|
277
|
-
Reconciler.unmountComponent(childInst);
|
278
|
-
}
|
279
|
-
});
|
280
|
-
};
|
281
|
-
|
282
|
-
/** Notify devtools that a component has been unmounted from the DOM. */
|
283
|
-
const componentRemoved = component => {
|
284
|
-
const instance = updateReactComponent(component);
|
285
|
-
visitNonCompositeChildren(childInst => {
|
286
|
-
instanceMap.delete(childInst.node);
|
287
|
-
Reconciler.unmountComponent(childInst);
|
288
|
-
});
|
289
|
-
Reconciler.unmountComponent(instance);
|
290
|
-
instanceMap.delete(component);
|
291
|
-
if (instance._rootID) {
|
292
|
-
delete roots[instance._rootID];
|
293
|
-
}
|
294
|
-
};
|
295
|
-
|
296
|
-
return {
|
297
|
-
componentAdded,
|
298
|
-
componentUpdated,
|
299
|
-
componentRemoved,
|
300
|
-
|
301
|
-
// Interfaces passed to devtools via __REACT_DEVTOOLS_GLOBAL_HOOK__.inject()
|
302
|
-
ComponentTree,
|
303
|
-
Mount,
|
304
|
-
Reconciler
|
305
|
-
};
|
306
|
-
}
|
307
|
-
|
308
|
-
/**
|
309
|
-
* Return `true` if a preact component is a top level component rendered by
|
310
|
-
* `render()` into a container Element.
|
311
|
-
*/
|
312
|
-
function isRootComponent(component) {
|
313
|
-
// `_parentComponent` is actually `__u` after minification
|
314
|
-
if (component._parentComponent || component.__u) {
|
315
|
-
// Component with a composite parent
|
316
|
-
return false;
|
317
|
-
}
|
318
|
-
if (component.base.parentElement && component.base.parentElement[ATTR_KEY]) {
|
319
|
-
// Component with a parent DOM element rendered by Preact
|
320
|
-
return false;
|
321
|
-
}
|
322
|
-
return true;
|
323
|
-
}
|
324
|
-
|
325
|
-
/**
|
326
|
-
* Visit all child instances of a ReactCompositeComponent-like object that are
|
327
|
-
* not composite components (ie. they represent DOM elements or text)
|
328
|
-
*
|
329
|
-
* @param {Component} component
|
330
|
-
* @param {(Component) => void} visitor
|
331
|
-
*/
|
332
|
-
function visitNonCompositeChildren(component, visitor) {
|
333
|
-
if (!component) return;
|
334
|
-
if (component._renderedComponent) {
|
335
|
-
if (!component._renderedComponent._component) {
|
336
|
-
visitor(component._renderedComponent);
|
337
|
-
visitNonCompositeChildren(component._renderedComponent, visitor);
|
338
|
-
}
|
339
|
-
} else if (component._renderedChildren) {
|
340
|
-
component._renderedChildren.forEach(child => {
|
341
|
-
visitor(child);
|
342
|
-
if (!child._component) visitNonCompositeChildren(child, visitor);
|
343
|
-
});
|
344
|
-
}
|
345
|
-
}
|
346
|
-
|
347
|
-
/**
|
348
|
-
* Create a bridge between the preact component tree and React's dev tools
|
349
|
-
* and register it.
|
350
|
-
*
|
351
|
-
* After this function is called, the React Dev Tools should be able to detect
|
352
|
-
* "React" on the page and show the component tree.
|
353
|
-
*
|
354
|
-
* This function hooks into preact VNode creation in order to expose functional
|
355
|
-
* components correctly, so it should be called before the root component(s)
|
356
|
-
* are rendered.
|
357
|
-
*
|
358
|
-
* Returns a cleanup function which unregisters the hooks.
|
359
|
-
*/
|
360
|
-
export function initDevTools() {
|
361
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
|
362
|
-
// React DevTools are not installed
|
363
|
-
return;
|
364
|
-
}
|
365
|
-
|
366
|
-
// Notify devtools when preact components are mounted, updated or unmounted
|
367
|
-
const bridge = createDevToolsBridge();
|
368
|
-
|
369
|
-
const nextAfterMount = options.afterMount;
|
370
|
-
options.afterMount = component => {
|
371
|
-
bridge.componentAdded(component);
|
372
|
-
if (nextAfterMount) nextAfterMount(component);
|
373
|
-
};
|
374
|
-
|
375
|
-
const nextAfterUpdate = options.afterUpdate;
|
376
|
-
options.afterUpdate = component => {
|
377
|
-
bridge.componentUpdated(component);
|
378
|
-
if (nextAfterUpdate) nextAfterUpdate(component);
|
379
|
-
};
|
380
|
-
|
381
|
-
const nextBeforeUnmount = options.beforeUnmount;
|
382
|
-
options.beforeUnmount = component => {
|
383
|
-
bridge.componentRemoved(component);
|
384
|
-
if (nextBeforeUnmount) nextBeforeUnmount(component);
|
385
|
-
};
|
386
|
-
|
387
|
-
// Notify devtools about this instance of "React"
|
388
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.inject(bridge);
|
389
|
-
|
390
|
-
return () => {
|
391
|
-
options.afterMount = nextAfterMount;
|
392
|
-
options.afterUpdate = nextAfterUpdate;
|
393
|
-
options.beforeUnmount = nextBeforeUnmount;
|
394
|
-
};
|
395
|
-
}
|
@@ -1,1712 +0,0 @@
|
|
1
|
-
export = preact;
|
2
|
-
export as namespace preact;
|
3
|
-
|
4
|
-
declare namespace preact {
|
5
|
-
type Key = string | number;
|
6
|
-
type RefObject<T> = { current?: T | null };
|
7
|
-
type RefCallback<T> = (instance: T | null) => void;
|
8
|
-
type Ref<T> = RefObject<T> | RefCallback<T>;
|
9
|
-
type ComponentChild = VNode<any> | object | string | number | boolean | null;
|
10
|
-
type ComponentChildren = ComponentChild[] | ComponentChild;
|
11
|
-
|
12
|
-
/**
|
13
|
-
* @deprecated
|
14
|
-
*
|
15
|
-
* Use Attributes instead
|
16
|
-
*/
|
17
|
-
type ComponentProps = Attributes;
|
18
|
-
|
19
|
-
/**
|
20
|
-
* @deprecated
|
21
|
-
*
|
22
|
-
* Use ClassAttributes instead
|
23
|
-
*/
|
24
|
-
type PreactHTMLAttributes = ClassAttributes<any>;
|
25
|
-
|
26
|
-
interface Attributes {
|
27
|
-
key?: Key;
|
28
|
-
jsx?: boolean;
|
29
|
-
}
|
30
|
-
|
31
|
-
interface ClassAttributes<T> extends Attributes {
|
32
|
-
ref?: Ref<T>;
|
33
|
-
}
|
34
|
-
|
35
|
-
interface PreactDOMAttributes {
|
36
|
-
children?: ComponentChildren;
|
37
|
-
dangerouslySetInnerHTML?: {
|
38
|
-
__html: string;
|
39
|
-
};
|
40
|
-
}
|
41
|
-
|
42
|
-
type ComponentFactory<P> = ComponentConstructor<P> | FunctionalComponent<P>;
|
43
|
-
/**
|
44
|
-
* Define the contract for a virtual node in preact.
|
45
|
-
*
|
46
|
-
* A virtual node has a name, a map of attributes, an array
|
47
|
-
* of child {VNode}s and a key. The key is used by preact for
|
48
|
-
* internal purposes.
|
49
|
-
*/
|
50
|
-
interface VNode<P = any> {
|
51
|
-
nodeName: ComponentFactory<P> | string;
|
52
|
-
attributes: P;
|
53
|
-
children: Array<VNode<any> | string>;
|
54
|
-
key?: Key | null;
|
55
|
-
}
|
56
|
-
|
57
|
-
type RenderableProps<P, RefType = any> = Readonly<
|
58
|
-
P & Attributes & { children?: ComponentChildren; ref?: Ref<RefType> }
|
59
|
-
>;
|
60
|
-
|
61
|
-
interface FunctionalComponent<P = {}> {
|
62
|
-
(props: RenderableProps<P>, context?: any): VNode<any> | null;
|
63
|
-
displayName?: string;
|
64
|
-
defaultProps?: Partial<P>;
|
65
|
-
}
|
66
|
-
|
67
|
-
interface ComponentConstructor<P = {}, S = {}> {
|
68
|
-
new (props: P, context?: any): Component<P, S>;
|
69
|
-
displayName?: string;
|
70
|
-
defaultProps?: Partial<P>;
|
71
|
-
}
|
72
|
-
|
73
|
-
// Type alias for a component considered generally, whether stateless or stateful.
|
74
|
-
type AnyComponent<P = {}, S = {}> = FunctionalComponent<P> | ComponentConstructor<P, S>;
|
75
|
-
|
76
|
-
interface Component<P = {}, S = {}> {
|
77
|
-
componentWillMount?(): void;
|
78
|
-
componentDidMount?(): void;
|
79
|
-
componentWillUnmount?(): void;
|
80
|
-
getChildContext?(): object;
|
81
|
-
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
|
82
|
-
shouldComponentUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): boolean;
|
83
|
-
componentWillUpdate?(nextProps: Readonly<P>, nextState: Readonly<S>, nextContext: any): void;
|
84
|
-
componentDidUpdate?(previousProps: Readonly<P>, previousState: Readonly<S>, previousContext: any): void;
|
85
|
-
}
|
86
|
-
|
87
|
-
abstract class Component<P, S> {
|
88
|
-
constructor(props?: P, context?: any);
|
89
|
-
|
90
|
-
static displayName?: string;
|
91
|
-
static defaultProps?: any;
|
92
|
-
|
93
|
-
state: Readonly<S>;
|
94
|
-
props: RenderableProps<P>;
|
95
|
-
context: any;
|
96
|
-
base?: HTMLElement;
|
97
|
-
|
98
|
-
// From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e836acc75a78cf0655b5dfdbe81d69fdd4d8a252/types/react/index.d.ts#L402
|
99
|
-
// // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.
|
100
|
-
// // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257
|
101
|
-
// // Also, the ` | S` allows intellisense to not be dumbisense
|
102
|
-
setState<K extends keyof S>(
|
103
|
-
state: ((prevState: Readonly<S>, props: Readonly<P>) => (Pick<S, K> | S | null)) | (Pick<S, K> | S | null),
|
104
|
-
callback?: () => void
|
105
|
-
): void;
|
106
|
-
|
107
|
-
forceUpdate(callback?: () => void): void;
|
108
|
-
|
109
|
-
abstract render(props?: RenderableProps<P>, state?: Readonly<S>, context?: any): ComponentChild;
|
110
|
-
|
111
|
-
// Add these variables to avoid descendants shadowing them (some from properties.json for minification)
|
112
|
-
private __key;
|
113
|
-
private __ref;
|
114
|
-
private _component;
|
115
|
-
private _dirty;
|
116
|
-
private _disable;
|
117
|
-
private nextBase;
|
118
|
-
private prevContext;
|
119
|
-
private prevProps;
|
120
|
-
private prevState;
|
121
|
-
private __d;
|
122
|
-
private __x;
|
123
|
-
private __l;
|
124
|
-
private __h;
|
125
|
-
private __k;
|
126
|
-
private __r;
|
127
|
-
private __n;
|
128
|
-
private __b;
|
129
|
-
private __c;
|
130
|
-
private __p;
|
131
|
-
private __s;
|
132
|
-
private __u;
|
133
|
-
}
|
134
|
-
|
135
|
-
function h(
|
136
|
-
node: string,
|
137
|
-
params: JSX.HTMLAttributes & JSX.SVGAttributes & Record<string, any> | null,
|
138
|
-
...children: ComponentChildren[]
|
139
|
-
): VNode<any>;
|
140
|
-
function h<P>(
|
141
|
-
node: ComponentFactory<P>,
|
142
|
-
params: Attributes & P | null,
|
143
|
-
...children: ComponentChildren[]
|
144
|
-
): VNode<any>;
|
145
|
-
|
146
|
-
function render(node: ComponentChild, parent: Element | Document | ShadowRoot | DocumentFragment, mergeWith?: Element): Element;
|
147
|
-
function rerender(): void;
|
148
|
-
function cloneElement(element: JSX.Element, props: any, ...children: ComponentChildren[]): JSX.Element;
|
149
|
-
function createRef<T=any>(): RefObject<T>;
|
150
|
-
|
151
|
-
var options: {
|
152
|
-
syncComponentUpdates?: boolean;
|
153
|
-
debounceRendering?: (render: () => void) => void;
|
154
|
-
vnode?: (vnode: VNode<any>) => void;
|
155
|
-
event?: (event: Event) => Event;
|
156
|
-
};
|
157
|
-
|
158
|
-
namespace JSX {
|
159
|
-
interface Element extends preact.VNode<any> {
|
160
|
-
}
|
161
|
-
|
162
|
-
interface ElementClass extends preact.Component<any, any> {
|
163
|
-
}
|
164
|
-
|
165
|
-
interface ElementAttributesProperty {
|
166
|
-
props: any;
|
167
|
-
}
|
168
|
-
|
169
|
-
interface ElementChildrenAttribute {
|
170
|
-
children: any;
|
171
|
-
}
|
172
|
-
|
173
|
-
type LibraryManagedAttributes<Component, Props> =
|
174
|
-
Component extends { defaultProps: infer Defaults }
|
175
|
-
? Defaultize<Props, Defaults>
|
176
|
-
: Props;
|
177
|
-
|
178
|
-
interface SVGAttributes extends HTMLAttributes {
|
179
|
-
accentHeight?: number | string;
|
180
|
-
accumulate?: "none" | "sum";
|
181
|
-
additive?: "replace" | "sum";
|
182
|
-
alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
|
183
|
-
allowReorder?: "no" | "yes";
|
184
|
-
alphabetic?: number | string;
|
185
|
-
amplitude?: number | string;
|
186
|
-
arabicForm?: "initial" | "medial" | "terminal" | "isolated";
|
187
|
-
ascent?: number | string;
|
188
|
-
attributeName?: string;
|
189
|
-
attributeType?: string;
|
190
|
-
autoReverse?: number | string;
|
191
|
-
azimuth?: number | string;
|
192
|
-
baseFrequency?: number | string;
|
193
|
-
baselineShift?: number | string;
|
194
|
-
baseProfile?: number | string;
|
195
|
-
bbox?: number | string;
|
196
|
-
begin?: number | string;
|
197
|
-
bias?: number | string;
|
198
|
-
by?: number | string;
|
199
|
-
calcMode?: number | string;
|
200
|
-
capHeight?: number | string;
|
201
|
-
clip?: number | string;
|
202
|
-
clipPath?: string;
|
203
|
-
clipPathUnits?: number | string;
|
204
|
-
clipRule?: number | string;
|
205
|
-
colorInterpolation?: number | string;
|
206
|
-
colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
|
207
|
-
colorProfile?: number | string;
|
208
|
-
colorRendering?: number | string;
|
209
|
-
contentScriptType?: number | string;
|
210
|
-
contentStyleType?: number | string;
|
211
|
-
cursor?: number | string;
|
212
|
-
cx?: number | string;
|
213
|
-
cy?: number | string;
|
214
|
-
d?: string;
|
215
|
-
decelerate?: number | string;
|
216
|
-
descent?: number | string;
|
217
|
-
diffuseConstant?: number | string;
|
218
|
-
direction?: number | string;
|
219
|
-
display?: number | string;
|
220
|
-
divisor?: number | string;
|
221
|
-
dominantBaseline?: number | string;
|
222
|
-
dur?: number | string;
|
223
|
-
dx?: number | string;
|
224
|
-
dy?: number | string;
|
225
|
-
edgeMode?: number | string;
|
226
|
-
elevation?: number | string;
|
227
|
-
enableBackground?: number | string;
|
228
|
-
end?: number | string;
|
229
|
-
exponent?: number | string;
|
230
|
-
externalResourcesRequired?: number | string;
|
231
|
-
fill?: string;
|
232
|
-
fillOpacity?: number | string;
|
233
|
-
fillRule?: "nonzero" | "evenodd" | "inherit";
|
234
|
-
filter?: string;
|
235
|
-
filterRes?: number | string;
|
236
|
-
filterUnits?: number | string;
|
237
|
-
floodColor?: number | string;
|
238
|
-
floodOpacity?: number | string;
|
239
|
-
focusable?: number | string;
|
240
|
-
fontFamily?: string;
|
241
|
-
fontSize?: number | string;
|
242
|
-
fontSizeAdjust?: number | string;
|
243
|
-
fontStretch?: number | string;
|
244
|
-
fontStyle?: number | string;
|
245
|
-
fontVariant?: number | string;
|
246
|
-
fontWeight?: number | string;
|
247
|
-
format?: number | string;
|
248
|
-
from?: number | string;
|
249
|
-
fx?: number | string;
|
250
|
-
fy?: number | string;
|
251
|
-
g1?: number | string;
|
252
|
-
g2?: number | string;
|
253
|
-
glyphName?: number | string;
|
254
|
-
glyphOrientationHorizontal?: number | string;
|
255
|
-
glyphOrientationVertical?: number | string;
|
256
|
-
glyphRef?: number | string;
|
257
|
-
gradientTransform?: string;
|
258
|
-
gradientUnits?: string;
|
259
|
-
hanging?: number | string;
|
260
|
-
horizAdvX?: number | string;
|
261
|
-
horizOriginX?: number | string;
|
262
|
-
ideographic?: number | string;
|
263
|
-
imageRendering?: number | string;
|
264
|
-
in2?: number | string;
|
265
|
-
in?: string;
|
266
|
-
intercept?: number | string;
|
267
|
-
k1?: number | string;
|
268
|
-
k2?: number | string;
|
269
|
-
k3?: number | string;
|
270
|
-
k4?: number | string;
|
271
|
-
k?: number | string;
|
272
|
-
kernelMatrix?: number | string;
|
273
|
-
kernelUnitLength?: number | string;
|
274
|
-
kerning?: number | string;
|
275
|
-
keyPoints?: number | string;
|
276
|
-
keySplines?: number | string;
|
277
|
-
keyTimes?: number | string;
|
278
|
-
lengthAdjust?: number | string;
|
279
|
-
letterSpacing?: number | string;
|
280
|
-
lightingColor?: number | string;
|
281
|
-
limitingConeAngle?: number | string;
|
282
|
-
local?: number | string;
|
283
|
-
markerEnd?: string;
|
284
|
-
markerHeight?: number | string;
|
285
|
-
markerMid?: string;
|
286
|
-
markerStart?: string;
|
287
|
-
markerUnits?: number | string;
|
288
|
-
markerWidth?: number | string;
|
289
|
-
mask?: string;
|
290
|
-
maskContentUnits?: number | string;
|
291
|
-
maskUnits?: number | string;
|
292
|
-
mathematical?: number | string;
|
293
|
-
mode?: number | string;
|
294
|
-
numOctaves?: number | string;
|
295
|
-
offset?: number | string;
|
296
|
-
opacity?: number | string;
|
297
|
-
operator?: number | string;
|
298
|
-
order?: number | string;
|
299
|
-
orient?: number | string;
|
300
|
-
orientation?: number | string;
|
301
|
-
origin?: number | string;
|
302
|
-
overflow?: number | string;
|
303
|
-
overlinePosition?: number | string;
|
304
|
-
overlineThickness?: number | string;
|
305
|
-
paintOrder?: number | string;
|
306
|
-
panose1?: number | string;
|
307
|
-
pathLength?: number | string;
|
308
|
-
patternContentUnits?: string;
|
309
|
-
patternTransform?: number | string;
|
310
|
-
patternUnits?: string;
|
311
|
-
pointerEvents?: number | string;
|
312
|
-
points?: string;
|
313
|
-
pointsAtX?: number | string;
|
314
|
-
pointsAtY?: number | string;
|
315
|
-
pointsAtZ?: number | string;
|
316
|
-
preserveAlpha?: number | string;
|
317
|
-
preserveAspectRatio?: string;
|
318
|
-
primitiveUnits?: number | string;
|
319
|
-
r?: number | string;
|
320
|
-
radius?: number | string;
|
321
|
-
refX?: number | string;
|
322
|
-
refY?: number | string;
|
323
|
-
renderingIntent?: number | string;
|
324
|
-
repeatCount?: number | string;
|
325
|
-
repeatDur?: number | string;
|
326
|
-
requiredExtensions?: number | string;
|
327
|
-
requiredFeatures?: number | string;
|
328
|
-
restart?: number | string;
|
329
|
-
result?: string;
|
330
|
-
rotate?: number | string;
|
331
|
-
rx?: number | string;
|
332
|
-
ry?: number | string;
|
333
|
-
scale?: number | string;
|
334
|
-
seed?: number | string;
|
335
|
-
shapeRendering?: number | string;
|
336
|
-
slope?: number | string;
|
337
|
-
spacing?: number | string;
|
338
|
-
specularConstant?: number | string;
|
339
|
-
specularExponent?: number | string;
|
340
|
-
speed?: number | string;
|
341
|
-
spreadMethod?: string;
|
342
|
-
startOffset?: number | string;
|
343
|
-
stdDeviation?: number | string;
|
344
|
-
stemh?: number | string;
|
345
|
-
stemv?: number | string;
|
346
|
-
stitchTiles?: number | string;
|
347
|
-
stopColor?: string;
|
348
|
-
stopOpacity?: number | string;
|
349
|
-
strikethroughPosition?: number | string;
|
350
|
-
strikethroughThickness?: number | string;
|
351
|
-
string?: number | string;
|
352
|
-
stroke?: string;
|
353
|
-
strokeDasharray?: string | number;
|
354
|
-
strokeDashoffset?: string | number;
|
355
|
-
strokeLinecap?: "butt" | "round" | "square" | "inherit";
|
356
|
-
strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
|
357
|
-
strokeMiterlimit?: string;
|
358
|
-
strokeOpacity?: number | string;
|
359
|
-
strokeWidth?: number | string;
|
360
|
-
surfaceScale?: number | string;
|
361
|
-
systemLanguage?: number | string;
|
362
|
-
tableValues?: number | string;
|
363
|
-
targetX?: number | string;
|
364
|
-
targetY?: number | string;
|
365
|
-
textAnchor?: string;
|
366
|
-
textDecoration?: number | string;
|
367
|
-
textLength?: number | string;
|
368
|
-
textRendering?: number | string;
|
369
|
-
to?: number | string;
|
370
|
-
transform?: string;
|
371
|
-
u1?: number | string;
|
372
|
-
u2?: number | string;
|
373
|
-
underlinePosition?: number | string;
|
374
|
-
underlineThickness?: number | string;
|
375
|
-
unicode?: number | string;
|
376
|
-
unicodeBidi?: number | string;
|
377
|
-
unicodeRange?: number | string;
|
378
|
-
unitsPerEm?: number | string;
|
379
|
-
vAlphabetic?: number | string;
|
380
|
-
values?: string;
|
381
|
-
vectorEffect?: number | string;
|
382
|
-
version?: string;
|
383
|
-
vertAdvY?: number | string;
|
384
|
-
vertOriginX?: number | string;
|
385
|
-
vertOriginY?: number | string;
|
386
|
-
vHanging?: number | string;
|
387
|
-
vIdeographic?: number | string;
|
388
|
-
viewBox?: string;
|
389
|
-
viewTarget?: number | string;
|
390
|
-
visibility?: number | string;
|
391
|
-
vMathematical?: number | string;
|
392
|
-
widths?: number | string;
|
393
|
-
wordSpacing?: number | string;
|
394
|
-
writingMode?: number | string;
|
395
|
-
x1?: number | string;
|
396
|
-
x2?: number | string;
|
397
|
-
x?: number | string;
|
398
|
-
xChannelSelector?: string;
|
399
|
-
xHeight?: number | string;
|
400
|
-
xlinkActuate?: string;
|
401
|
-
xlinkArcrole?: string;
|
402
|
-
xlinkHref?: string;
|
403
|
-
xlinkRole?: string;
|
404
|
-
xlinkShow?: string;
|
405
|
-
xlinkTitle?: string;
|
406
|
-
xlinkType?: string;
|
407
|
-
xmlBase?: string;
|
408
|
-
xmlLang?: string;
|
409
|
-
xmlns?: string;
|
410
|
-
xmlnsXlink?: string;
|
411
|
-
xmlSpace?: string;
|
412
|
-
y1?: number | string;
|
413
|
-
y2?: number | string;
|
414
|
-
y?: number | string;
|
415
|
-
yChannelSelector?: string;
|
416
|
-
z?: number | string;
|
417
|
-
zoomAndPan?: string;
|
418
|
-
}
|
419
|
-
|
420
|
-
interface PathAttributes {
|
421
|
-
d: string;
|
422
|
-
}
|
423
|
-
|
424
|
-
interface EventHandler<E extends Event> {
|
425
|
-
(event: E): void;
|
426
|
-
}
|
427
|
-
|
428
|
-
type ClipboardEventHandler = EventHandler<ClipboardEvent>;
|
429
|
-
type CompositionEventHandler = EventHandler<CompositionEvent>;
|
430
|
-
type DragEventHandler = EventHandler<DragEvent>;
|
431
|
-
type FocusEventHandler = EventHandler<FocusEvent>;
|
432
|
-
type KeyboardEventHandler = EventHandler<KeyboardEvent>;
|
433
|
-
type MouseEventHandler = EventHandler<MouseEvent>;
|
434
|
-
type TouchEventHandler = EventHandler<TouchEvent>;
|
435
|
-
type UIEventHandler = EventHandler<UIEvent>;
|
436
|
-
type WheelEventHandler = EventHandler<WheelEvent>;
|
437
|
-
type AnimationEventHandler = EventHandler<AnimationEvent>;
|
438
|
-
type TransitionEventHandler = EventHandler<TransitionEvent>;
|
439
|
-
type GenericEventHandler = EventHandler<Event>;
|
440
|
-
type PointerEventHandler = EventHandler<PointerEvent>;
|
441
|
-
|
442
|
-
interface DOMAttributes extends preact.PreactDOMAttributes {
|
443
|
-
// Image Events
|
444
|
-
onLoad?: GenericEventHandler;
|
445
|
-
onError?: GenericEventHandler;
|
446
|
-
onLoadCapture?: GenericEventHandler;
|
447
|
-
|
448
|
-
// Clipboard Events
|
449
|
-
onCopy?: ClipboardEventHandler;
|
450
|
-
onCopyCapture?: ClipboardEventHandler;
|
451
|
-
onCut?: ClipboardEventHandler;
|
452
|
-
onCutCapture?: ClipboardEventHandler;
|
453
|
-
onPaste?: ClipboardEventHandler;
|
454
|
-
onPasteCapture?: ClipboardEventHandler;
|
455
|
-
|
456
|
-
// Composition Events
|
457
|
-
onCompositionEnd?: CompositionEventHandler;
|
458
|
-
onCompositionEndCapture?: CompositionEventHandler;
|
459
|
-
onCompositionStart?: CompositionEventHandler;
|
460
|
-
onCompositionStartCapture?: CompositionEventHandler;
|
461
|
-
onCompositionUpdate?: CompositionEventHandler;
|
462
|
-
onCompositionUpdateCapture?: CompositionEventHandler;
|
463
|
-
|
464
|
-
// Focus Events
|
465
|
-
onFocus?: FocusEventHandler;
|
466
|
-
onFocusCapture?: FocusEventHandler;
|
467
|
-
onBlur?: FocusEventHandler;
|
468
|
-
onBlurCapture?: FocusEventHandler;
|
469
|
-
|
470
|
-
// Form Events
|
471
|
-
onChange?: GenericEventHandler;
|
472
|
-
onChangeCapture?: GenericEventHandler;
|
473
|
-
onInput?: GenericEventHandler;
|
474
|
-
onInputCapture?: GenericEventHandler;
|
475
|
-
onSearch?: GenericEventHandler;
|
476
|
-
onSearchCapture?: GenericEventHandler;
|
477
|
-
onSubmit?: GenericEventHandler;
|
478
|
-
onSubmitCapture?: GenericEventHandler;
|
479
|
-
onInvalid?: GenericEventHandler;
|
480
|
-
|
481
|
-
// Keyboard Events
|
482
|
-
onKeyDown?: KeyboardEventHandler;
|
483
|
-
onKeyDownCapture?: KeyboardEventHandler;
|
484
|
-
onKeyPress?: KeyboardEventHandler;
|
485
|
-
onKeyPressCapture?: KeyboardEventHandler;
|
486
|
-
onKeyUp?: KeyboardEventHandler;
|
487
|
-
onKeyUpCapture?: KeyboardEventHandler;
|
488
|
-
|
489
|
-
// Media Events
|
490
|
-
onAbort?: GenericEventHandler;
|
491
|
-
onAbortCapture?: GenericEventHandler;
|
492
|
-
onCanPlay?: GenericEventHandler;
|
493
|
-
onCanPlayCapture?: GenericEventHandler;
|
494
|
-
onCanPlayThrough?: GenericEventHandler;
|
495
|
-
onCanPlayThroughCapture?: GenericEventHandler;
|
496
|
-
onDurationChange?: GenericEventHandler;
|
497
|
-
onDurationChangeCapture?: GenericEventHandler;
|
498
|
-
onEmptied?: GenericEventHandler;
|
499
|
-
onEmptiedCapture?: GenericEventHandler;
|
500
|
-
onEncrypted?: GenericEventHandler;
|
501
|
-
onEncryptedCapture?: GenericEventHandler;
|
502
|
-
onEnded?: GenericEventHandler;
|
503
|
-
onEndedCapture?: GenericEventHandler;
|
504
|
-
onLoadedData?: GenericEventHandler;
|
505
|
-
onLoadedDataCapture?: GenericEventHandler;
|
506
|
-
onLoadedMetadata?: GenericEventHandler;
|
507
|
-
onLoadedMetadataCapture?: GenericEventHandler;
|
508
|
-
onLoadStart?: GenericEventHandler;
|
509
|
-
onLoadStartCapture?: GenericEventHandler;
|
510
|
-
onPause?: GenericEventHandler;
|
511
|
-
onPauseCapture?: GenericEventHandler;
|
512
|
-
onPlay?: GenericEventHandler;
|
513
|
-
onPlayCapture?: GenericEventHandler;
|
514
|
-
onPlaying?: GenericEventHandler;
|
515
|
-
onPlayingCapture?: GenericEventHandler;
|
516
|
-
onProgress?: GenericEventHandler;
|
517
|
-
onProgressCapture?: GenericEventHandler;
|
518
|
-
onRateChange?: GenericEventHandler;
|
519
|
-
onRateChangeCapture?: GenericEventHandler;
|
520
|
-
onSeeked?: GenericEventHandler;
|
521
|
-
onSeekedCapture?: GenericEventHandler;
|
522
|
-
onSeeking?: GenericEventHandler;
|
523
|
-
onSeekingCapture?: GenericEventHandler;
|
524
|
-
onStalled?: GenericEventHandler;
|
525
|
-
onStalledCapture?: GenericEventHandler;
|
526
|
-
onSuspend?: GenericEventHandler;
|
527
|
-
onSuspendCapture?: GenericEventHandler;
|
528
|
-
onTimeUpdate?: GenericEventHandler;
|
529
|
-
onTimeUpdateCapture?: GenericEventHandler;
|
530
|
-
onVolumeChange?: GenericEventHandler;
|
531
|
-
onVolumeChangeCapture?: GenericEventHandler;
|
532
|
-
onWaiting?: GenericEventHandler;
|
533
|
-
onWaitingCapture?: GenericEventHandler;
|
534
|
-
|
535
|
-
// MouseEvents
|
536
|
-
onClick?: MouseEventHandler;
|
537
|
-
onClickCapture?: MouseEventHandler;
|
538
|
-
onContextMenu?: MouseEventHandler;
|
539
|
-
onContextMenuCapture?: MouseEventHandler;
|
540
|
-
onDblClick?: MouseEventHandler;
|
541
|
-
onDblClickCapture?: MouseEventHandler;
|
542
|
-
onDrag?: DragEventHandler;
|
543
|
-
onDragCapture?: DragEventHandler;
|
544
|
-
onDragEnd?: DragEventHandler;
|
545
|
-
onDragEndCapture?: DragEventHandler;
|
546
|
-
onDragEnter?: DragEventHandler;
|
547
|
-
onDragEnterCapture?: DragEventHandler;
|
548
|
-
onDragExit?: DragEventHandler;
|
549
|
-
onDragExitCapture?: DragEventHandler;
|
550
|
-
onDragLeave?: DragEventHandler;
|
551
|
-
onDragLeaveCapture?: DragEventHandler;
|
552
|
-
onDragOver?: DragEventHandler;
|
553
|
-
onDragOverCapture?: DragEventHandler;
|
554
|
-
onDragStart?: DragEventHandler;
|
555
|
-
onDragStartCapture?: DragEventHandler;
|
556
|
-
onDrop?: DragEventHandler;
|
557
|
-
onDropCapture?: DragEventHandler;
|
558
|
-
onMouseDown?: MouseEventHandler;
|
559
|
-
onMouseDownCapture?: MouseEventHandler;
|
560
|
-
onMouseEnter?: MouseEventHandler;
|
561
|
-
onMouseEnterCapture?: MouseEventHandler;
|
562
|
-
onMouseLeave?: MouseEventHandler;
|
563
|
-
onMouseLeaveCapture?: MouseEventHandler;
|
564
|
-
onMouseMove?: MouseEventHandler;
|
565
|
-
onMouseMoveCapture?: MouseEventHandler;
|
566
|
-
onMouseOut?: MouseEventHandler;
|
567
|
-
onMouseOutCapture?: MouseEventHandler;
|
568
|
-
onMouseOver?: MouseEventHandler;
|
569
|
-
onMouseOverCapture?: MouseEventHandler;
|
570
|
-
onMouseUp?: MouseEventHandler;
|
571
|
-
onMouseUpCapture?: MouseEventHandler;
|
572
|
-
|
573
|
-
// Selection Events
|
574
|
-
onSelect?: GenericEventHandler;
|
575
|
-
onSelectCapture?: GenericEventHandler;
|
576
|
-
|
577
|
-
// Touch Events
|
578
|
-
onTouchCancel?: TouchEventHandler;
|
579
|
-
onTouchCancelCapture?: TouchEventHandler;
|
580
|
-
onTouchEnd?: TouchEventHandler;
|
581
|
-
onTouchEndCapture?: TouchEventHandler;
|
582
|
-
onTouchMove?: TouchEventHandler;
|
583
|
-
onTouchMoveCapture?: TouchEventHandler;
|
584
|
-
onTouchStart?: TouchEventHandler;
|
585
|
-
onTouchStartCapture?: TouchEventHandler;
|
586
|
-
|
587
|
-
// Pointer Events
|
588
|
-
onPointerOver?: PointerEventHandler;
|
589
|
-
onPointerOverCapture?: PointerEventHandler;
|
590
|
-
onPointerEnter?: PointerEventHandler;
|
591
|
-
onPointerEnterCapture?: PointerEventHandler;
|
592
|
-
onPointerDown?: PointerEventHandler;
|
593
|
-
onPointerDownCapture?: PointerEventHandler;
|
594
|
-
onPointerMove?: PointerEventHandler;
|
595
|
-
onPointerMoveCapture?: PointerEventHandler;
|
596
|
-
onPointerUp?: PointerEventHandler;
|
597
|
-
onPointerUpCapture?: PointerEventHandler;
|
598
|
-
onPointerCancel?: PointerEventHandler;
|
599
|
-
onPointerCancelCapture?: PointerEventHandler;
|
600
|
-
onPointerOut?: PointerEventHandler;
|
601
|
-
onPointerOutCapture?: PointerEventHandler;
|
602
|
-
onPointerLeave?: PointerEventHandler;
|
603
|
-
onPointerLeaveCapture?: PointerEventHandler;
|
604
|
-
onGotPointerCapture?: PointerEventHandler;
|
605
|
-
onGotPointerCaptureCapture?: PointerEventHandler;
|
606
|
-
onLostPointerCapture?: PointerEventHandler;
|
607
|
-
onLostPointerCaptureCapture?: PointerEventHandler;
|
608
|
-
|
609
|
-
// UI Events
|
610
|
-
onScroll?: UIEventHandler;
|
611
|
-
onScrollCapture?: UIEventHandler;
|
612
|
-
|
613
|
-
// Wheel Events
|
614
|
-
onWheel?: WheelEventHandler;
|
615
|
-
onWheelCapture?: WheelEventHandler;
|
616
|
-
|
617
|
-
// Animation Events
|
618
|
-
onAnimationStart?: AnimationEventHandler;
|
619
|
-
onAnimationStartCapture?: AnimationEventHandler;
|
620
|
-
onAnimationEnd?: AnimationEventHandler;
|
621
|
-
onAnimationEndCapture?: AnimationEventHandler;
|
622
|
-
onAnimationIteration?: AnimationEventHandler;
|
623
|
-
onAnimationIterationCapture?: AnimationEventHandler;
|
624
|
-
|
625
|
-
// Transition Events
|
626
|
-
onTransitionEnd?: TransitionEventHandler;
|
627
|
-
onTransitionEndCapture?: TransitionEventHandler;
|
628
|
-
}
|
629
|
-
|
630
|
-
interface HTMLAttributes extends preact.PreactHTMLAttributes, DOMAttributes {
|
631
|
-
// Standard HTML Attributes
|
632
|
-
accept?: string;
|
633
|
-
acceptCharset?: string;
|
634
|
-
accessKey?: string;
|
635
|
-
action?: string;
|
636
|
-
allowFullScreen?: boolean;
|
637
|
-
allowTransparency?: boolean;
|
638
|
-
alt?: string;
|
639
|
-
async?: boolean;
|
640
|
-
autocomplete?: string;
|
641
|
-
autofocus?: boolean;
|
642
|
-
autoPlay?: boolean;
|
643
|
-
capture?: boolean;
|
644
|
-
cellPadding?: number | string;
|
645
|
-
cellSpacing?: number | string;
|
646
|
-
charSet?: string;
|
647
|
-
challenge?: string;
|
648
|
-
checked?: boolean;
|
649
|
-
class?: string;
|
650
|
-
className?: string;
|
651
|
-
cols?: number;
|
652
|
-
colSpan?: number;
|
653
|
-
content?: string;
|
654
|
-
contentEditable?: boolean;
|
655
|
-
contextMenu?: string;
|
656
|
-
controls?: boolean;
|
657
|
-
controlsList?: string;
|
658
|
-
coords?: string;
|
659
|
-
crossOrigin?: string;
|
660
|
-
data?: string;
|
661
|
-
dateTime?: string;
|
662
|
-
default?: boolean;
|
663
|
-
defer?: boolean;
|
664
|
-
dir?: string;
|
665
|
-
disabled?: boolean;
|
666
|
-
download?: any;
|
667
|
-
draggable?: boolean;
|
668
|
-
encType?: string;
|
669
|
-
form?: string;
|
670
|
-
formAction?: string;
|
671
|
-
formEncType?: string;
|
672
|
-
formMethod?: string;
|
673
|
-
formNoValidate?: boolean;
|
674
|
-
formTarget?: string;
|
675
|
-
frameBorder?: number | string;
|
676
|
-
headers?: string;
|
677
|
-
height?: number | string;
|
678
|
-
hidden?: boolean;
|
679
|
-
high?: number;
|
680
|
-
href?: string;
|
681
|
-
hrefLang?: string;
|
682
|
-
for?: string;
|
683
|
-
httpEquiv?: string;
|
684
|
-
icon?: string;
|
685
|
-
id?: string;
|
686
|
-
inputMode?: string;
|
687
|
-
integrity?: string;
|
688
|
-
is?: string;
|
689
|
-
keyParams?: string;
|
690
|
-
keyType?: string;
|
691
|
-
kind?: string;
|
692
|
-
label?: string;
|
693
|
-
lang?: string;
|
694
|
-
list?: string;
|
695
|
-
loop?: boolean;
|
696
|
-
low?: number;
|
697
|
-
manifest?: string;
|
698
|
-
marginHeight?: number;
|
699
|
-
marginWidth?: number;
|
700
|
-
max?: number | string;
|
701
|
-
maxLength?: number;
|
702
|
-
media?: string;
|
703
|
-
mediaGroup?: string;
|
704
|
-
method?: string;
|
705
|
-
min?: number | string;
|
706
|
-
minLength?: number;
|
707
|
-
multiple?: boolean;
|
708
|
-
muted?: boolean;
|
709
|
-
name?: string;
|
710
|
-
noValidate?: boolean;
|
711
|
-
open?: boolean;
|
712
|
-
optimum?: number;
|
713
|
-
pattern?: string;
|
714
|
-
placeholder?: string;
|
715
|
-
playsInline?: boolean;
|
716
|
-
poster?: string;
|
717
|
-
preload?: string;
|
718
|
-
radioGroup?: string;
|
719
|
-
readOnly?: boolean;
|
720
|
-
rel?: string;
|
721
|
-
required?: boolean;
|
722
|
-
role?: string;
|
723
|
-
rows?: number;
|
724
|
-
rowSpan?: number;
|
725
|
-
sandbox?: string;
|
726
|
-
scope?: string;
|
727
|
-
scoped?: boolean;
|
728
|
-
scrolling?: string;
|
729
|
-
seamless?: boolean;
|
730
|
-
selected?: boolean;
|
731
|
-
shape?: string;
|
732
|
-
size?: number;
|
733
|
-
sizes?: string;
|
734
|
-
slot?: string;
|
735
|
-
span?: number;
|
736
|
-
spellcheck?: boolean;
|
737
|
-
src?: string;
|
738
|
-
srcset?: string;
|
739
|
-
srcDoc?: string;
|
740
|
-
srcLang?: string;
|
741
|
-
srcSet?: string;
|
742
|
-
start?: number;
|
743
|
-
step?: number | string;
|
744
|
-
style?: any;
|
745
|
-
summary?: string;
|
746
|
-
tabIndex?: number;
|
747
|
-
target?: string;
|
748
|
-
title?: string;
|
749
|
-
type?: string;
|
750
|
-
useMap?: string;
|
751
|
-
value?: string | string[] | number;
|
752
|
-
width?: number | string;
|
753
|
-
wmode?: string;
|
754
|
-
wrap?: string;
|
755
|
-
|
756
|
-
// RDFa Attributes
|
757
|
-
about?: string;
|
758
|
-
datatype?: string;
|
759
|
-
inlist?: any;
|
760
|
-
prefix?: string;
|
761
|
-
property?: string;
|
762
|
-
resource?: string;
|
763
|
-
typeof?: string;
|
764
|
-
vocab?: string;
|
765
|
-
}
|
766
|
-
|
767
|
-
interface IntrinsicElements {
|
768
|
-
// HTML
|
769
|
-
a: HTMLAttributes;
|
770
|
-
abbr: HTMLAttributes;
|
771
|
-
address: HTMLAttributes;
|
772
|
-
area: HTMLAttributes;
|
773
|
-
article: HTMLAttributes;
|
774
|
-
aside: HTMLAttributes;
|
775
|
-
audio: HTMLAttributes;
|
776
|
-
b: HTMLAttributes;
|
777
|
-
base: HTMLAttributes;
|
778
|
-
bdi: HTMLAttributes;
|
779
|
-
bdo: HTMLAttributes;
|
780
|
-
big: HTMLAttributes;
|
781
|
-
blockquote: HTMLAttributes;
|
782
|
-
body: HTMLAttributes;
|
783
|
-
br: HTMLAttributes;
|
784
|
-
button: HTMLAttributes;
|
785
|
-
canvas: HTMLAttributes;
|
786
|
-
caption: HTMLAttributes;
|
787
|
-
cite: HTMLAttributes;
|
788
|
-
code: HTMLAttributes;
|
789
|
-
col: HTMLAttributes;
|
790
|
-
colgroup: HTMLAttributes;
|
791
|
-
data: HTMLAttributes;
|
792
|
-
datalist: HTMLAttributes;
|
793
|
-
dd: HTMLAttributes;
|
794
|
-
del: HTMLAttributes;
|
795
|
-
details: HTMLAttributes;
|
796
|
-
dfn: HTMLAttributes;
|
797
|
-
dialog: HTMLAttributes;
|
798
|
-
div: HTMLAttributes;
|
799
|
-
dl: HTMLAttributes;
|
800
|
-
dt: HTMLAttributes;
|
801
|
-
em: HTMLAttributes;
|
802
|
-
embed: HTMLAttributes;
|
803
|
-
fieldset: HTMLAttributes;
|
804
|
-
figcaption: HTMLAttributes;
|
805
|
-
figure: HTMLAttributes;
|
806
|
-
footer: HTMLAttributes;
|
807
|
-
form: HTMLAttributes;
|
808
|
-
h1: HTMLAttributes;
|
809
|
-
h2: HTMLAttributes;
|
810
|
-
h3: HTMLAttributes;
|
811
|
-
h4: HTMLAttributes;
|
812
|
-
h5: HTMLAttributes;
|
813
|
-
h6: HTMLAttributes;
|
814
|
-
head: HTMLAttributes;
|
815
|
-
header: HTMLAttributes;
|
816
|
-
hr: HTMLAttributes;
|
817
|
-
html: HTMLAttributes;
|
818
|
-
i: HTMLAttributes;
|
819
|
-
iframe: HTMLAttributes;
|
820
|
-
img: HTMLAttributes;
|
821
|
-
input: HTMLAttributes;
|
822
|
-
ins: HTMLAttributes;
|
823
|
-
kbd: HTMLAttributes;
|
824
|
-
keygen: HTMLAttributes;
|
825
|
-
label: HTMLAttributes;
|
826
|
-
legend: HTMLAttributes;
|
827
|
-
li: HTMLAttributes;
|
828
|
-
link: HTMLAttributes;
|
829
|
-
main: HTMLAttributes;
|
830
|
-
map: HTMLAttributes;
|
831
|
-
mark: HTMLAttributes;
|
832
|
-
menu: HTMLAttributes;
|
833
|
-
menuitem: HTMLAttributes;
|
834
|
-
meta: HTMLAttributes;
|
835
|
-
meter: HTMLAttributes;
|
836
|
-
nav: HTMLAttributes;
|
837
|
-
noscript: HTMLAttributes;
|
838
|
-
object: HTMLAttributes;
|
839
|
-
ol: HTMLAttributes;
|
840
|
-
optgroup: HTMLAttributes;
|
841
|
-
option: HTMLAttributes;
|
842
|
-
output: HTMLAttributes;
|
843
|
-
p: HTMLAttributes;
|
844
|
-
param: HTMLAttributes;
|
845
|
-
picture: HTMLAttributes;
|
846
|
-
pre: HTMLAttributes;
|
847
|
-
progress: HTMLAttributes;
|
848
|
-
q: HTMLAttributes;
|
849
|
-
rp: HTMLAttributes;
|
850
|
-
rt: HTMLAttributes;
|
851
|
-
ruby: HTMLAttributes;
|
852
|
-
s: HTMLAttributes;
|
853
|
-
samp: HTMLAttributes;
|
854
|
-
script: HTMLAttributes;
|
855
|
-
section: HTMLAttributes;
|
856
|
-
select: HTMLAttributes;
|
857
|
-
slot: HTMLAttributes;
|
858
|
-
small: HTMLAttributes;
|
859
|
-
source: HTMLAttributes;
|
860
|
-
span: HTMLAttributes;
|
861
|
-
strong: HTMLAttributes;
|
862
|
-
style: HTMLAttributes;
|
863
|
-
sub: HTMLAttributes;
|
864
|
-
summary: HTMLAttributes;
|
865
|
-
sup: HTMLAttributes;
|
866
|
-
table: HTMLAttributes;
|
867
|
-
tbody: HTMLAttributes;
|
868
|
-
td: HTMLAttributes;
|
869
|
-
textarea: HTMLAttributes;
|
870
|
-
tfoot: HTMLAttributes;
|
871
|
-
th: HTMLAttributes;
|
872
|
-
thead: HTMLAttributes;
|
873
|
-
time: HTMLAttributes;
|
874
|
-
title: HTMLAttributes;
|
875
|
-
tr: HTMLAttributes;
|
876
|
-
track: HTMLAttributes;
|
877
|
-
u: HTMLAttributes;
|
878
|
-
ul: HTMLAttributes;
|
879
|
-
"var": HTMLAttributes;
|
880
|
-
video: HTMLAttributes;
|
881
|
-
wbr: HTMLAttributes;
|
882
|
-
|
883
|
-
//SVG
|
884
|
-
svg: SVGAttributes;
|
885
|
-
animate: SVGAttributes;
|
886
|
-
circle: SVGAttributes;
|
887
|
-
clipPath: SVGAttributes;
|
888
|
-
defs: SVGAttributes;
|
889
|
-
desc: SVGAttributes;
|
890
|
-
ellipse: SVGAttributes;
|
891
|
-
feBlend: SVGAttributes;
|
892
|
-
feColorMatrix: SVGAttributes;
|
893
|
-
feComponentTransfer: SVGAttributes;
|
894
|
-
feComposite: SVGAttributes;
|
895
|
-
feConvolveMatrix: SVGAttributes;
|
896
|
-
feDiffuseLighting: SVGAttributes;
|
897
|
-
feDisplacementMap: SVGAttributes;
|
898
|
-
feFlood: SVGAttributes;
|
899
|
-
feGaussianBlur: SVGAttributes;
|
900
|
-
feImage: SVGAttributes;
|
901
|
-
feMerge: SVGAttributes;
|
902
|
-
feMergeNode: SVGAttributes;
|
903
|
-
feMorphology: SVGAttributes;
|
904
|
-
feOffset: SVGAttributes;
|
905
|
-
feSpecularLighting: SVGAttributes;
|
906
|
-
feTile: SVGAttributes;
|
907
|
-
feTurbulence: SVGAttributes;
|
908
|
-
filter: SVGAttributes;
|
909
|
-
foreignObject: SVGAttributes;
|
910
|
-
g: SVGAttributes;
|
911
|
-
image: SVGAttributes;
|
912
|
-
line: SVGAttributes;
|
913
|
-
linearGradient: SVGAttributes;
|
914
|
-
marker: SVGAttributes;
|
915
|
-
mask: SVGAttributes;
|
916
|
-
path: SVGAttributes;
|
917
|
-
pattern: SVGAttributes;
|
918
|
-
polygon: SVGAttributes;
|
919
|
-
polyline: SVGAttributes;
|
920
|
-
radialGradient: SVGAttributes;
|
921
|
-
rect: SVGAttributes;
|
922
|
-
stop: SVGAttributes;
|
923
|
-
symbol: SVGAttributes;
|
924
|
-
text: SVGAttributes;
|
925
|
-
tspan: SVGAttributes;
|
926
|
-
use: SVGAttributes;
|
927
|
-
}
|
928
|
-
}
|
929
|
-
}
|
930
|
-
|
931
|
-
type Defaultize<Props, Defaults> =
|
932
|
-
// Distribute over unions
|
933
|
-
Props extends any
|
934
|
-
? // Make any properties included in Default optional
|
935
|
-
& Partial<Pick<Props, Extract<keyof Props, keyof Defaults>>>
|
936
|
-
// Include the remaining properties from Props
|
937
|
-
& Pick<Props, Exclude<keyof Props, keyof Defaults>>
|
938
|
-
: never;
|
939
|
-
|
940
|
-
declare global {
|
941
|
-
namespace JSX {
|
942
|
-
interface Element extends preact.VNode<any> {
|
943
|
-
}
|
944
|
-
|
945
|
-
interface ElementClass extends preact.Component<any, any> {
|
946
|
-
}
|
947
|
-
|
948
|
-
interface ElementAttributesProperty {
|
949
|
-
props: any;
|
950
|
-
}
|
951
|
-
|
952
|
-
interface ElementChildrenAttribute {
|
953
|
-
children: any;
|
954
|
-
}
|
955
|
-
|
956
|
-
type LibraryManagedAttributes<Component, Props> =
|
957
|
-
Component extends { defaultProps: infer Defaults }
|
958
|
-
? Defaultize<Props, Defaults>
|
959
|
-
: Props;
|
960
|
-
|
961
|
-
interface SVGAttributes extends HTMLAttributes {
|
962
|
-
accentHeight?: number | string;
|
963
|
-
accumulate?: "none" | "sum";
|
964
|
-
additive?: "replace" | "sum";
|
965
|
-
alignmentBaseline?: "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
|
966
|
-
allowReorder?: "no" | "yes";
|
967
|
-
alphabetic?: number | string;
|
968
|
-
amplitude?: number | string;
|
969
|
-
arabicForm?: "initial" | "medial" | "terminal" | "isolated";
|
970
|
-
ascent?: number | string;
|
971
|
-
attributeName?: string;
|
972
|
-
attributeType?: string;
|
973
|
-
autoReverse?: number | string;
|
974
|
-
azimuth?: number | string;
|
975
|
-
baseFrequency?: number | string;
|
976
|
-
baselineShift?: number | string;
|
977
|
-
baseProfile?: number | string;
|
978
|
-
bbox?: number | string;
|
979
|
-
begin?: number | string;
|
980
|
-
bias?: number | string;
|
981
|
-
by?: number | string;
|
982
|
-
calcMode?: number | string;
|
983
|
-
capHeight?: number | string;
|
984
|
-
clip?: number | string;
|
985
|
-
clipPath?: string;
|
986
|
-
clipPathUnits?: number | string;
|
987
|
-
clipRule?: number | string;
|
988
|
-
colorInterpolation?: number | string;
|
989
|
-
colorInterpolationFilters?: "auto" | "sRGB" | "linearRGB" | "inherit";
|
990
|
-
colorProfile?: number | string;
|
991
|
-
colorRendering?: number | string;
|
992
|
-
contentScriptType?: number | string;
|
993
|
-
contentStyleType?: number | string;
|
994
|
-
cursor?: number | string;
|
995
|
-
cx?: number | string;
|
996
|
-
cy?: number | string;
|
997
|
-
d?: string;
|
998
|
-
decelerate?: number | string;
|
999
|
-
descent?: number | string;
|
1000
|
-
diffuseConstant?: number | string;
|
1001
|
-
direction?: number | string;
|
1002
|
-
display?: number | string;
|
1003
|
-
divisor?: number | string;
|
1004
|
-
dominantBaseline?: number | string;
|
1005
|
-
dur?: number | string;
|
1006
|
-
dx?: number | string;
|
1007
|
-
dy?: number | string;
|
1008
|
-
edgeMode?: number | string;
|
1009
|
-
elevation?: number | string;
|
1010
|
-
enableBackground?: number | string;
|
1011
|
-
end?: number | string;
|
1012
|
-
exponent?: number | string;
|
1013
|
-
externalResourcesRequired?: number | string;
|
1014
|
-
fill?: string;
|
1015
|
-
fillOpacity?: number | string;
|
1016
|
-
fillRule?: "nonzero" | "evenodd" | "inherit";
|
1017
|
-
filter?: string;
|
1018
|
-
filterRes?: number | string;
|
1019
|
-
filterUnits?: number | string;
|
1020
|
-
floodColor?: number | string;
|
1021
|
-
floodOpacity?: number | string;
|
1022
|
-
focusable?: number | string;
|
1023
|
-
fontFamily?: string;
|
1024
|
-
fontSize?: number | string;
|
1025
|
-
fontSizeAdjust?: number | string;
|
1026
|
-
fontStretch?: number | string;
|
1027
|
-
fontStyle?: number | string;
|
1028
|
-
fontVariant?: number | string;
|
1029
|
-
fontWeight?: number | string;
|
1030
|
-
format?: number | string;
|
1031
|
-
from?: number | string;
|
1032
|
-
fx?: number | string;
|
1033
|
-
fy?: number | string;
|
1034
|
-
g1?: number | string;
|
1035
|
-
g2?: number | string;
|
1036
|
-
glyphName?: number | string;
|
1037
|
-
glyphOrientationHorizontal?: number | string;
|
1038
|
-
glyphOrientationVertical?: number | string;
|
1039
|
-
glyphRef?: number | string;
|
1040
|
-
gradientTransform?: string;
|
1041
|
-
gradientUnits?: string;
|
1042
|
-
hanging?: number | string;
|
1043
|
-
horizAdvX?: number | string;
|
1044
|
-
horizOriginX?: number | string;
|
1045
|
-
ideographic?: number | string;
|
1046
|
-
imageRendering?: number | string;
|
1047
|
-
in2?: number | string;
|
1048
|
-
in?: string;
|
1049
|
-
intercept?: number | string;
|
1050
|
-
k1?: number | string;
|
1051
|
-
k2?: number | string;
|
1052
|
-
k3?: number | string;
|
1053
|
-
k4?: number | string;
|
1054
|
-
k?: number | string;
|
1055
|
-
kernelMatrix?: number | string;
|
1056
|
-
kernelUnitLength?: number | string;
|
1057
|
-
kerning?: number | string;
|
1058
|
-
keyPoints?: number | string;
|
1059
|
-
keySplines?: number | string;
|
1060
|
-
keyTimes?: number | string;
|
1061
|
-
lengthAdjust?: number | string;
|
1062
|
-
letterSpacing?: number | string;
|
1063
|
-
lightingColor?: number | string;
|
1064
|
-
limitingConeAngle?: number | string;
|
1065
|
-
local?: number | string;
|
1066
|
-
markerEnd?: string;
|
1067
|
-
markerHeight?: number | string;
|
1068
|
-
markerMid?: string;
|
1069
|
-
markerStart?: string;
|
1070
|
-
markerUnits?: number | string;
|
1071
|
-
markerWidth?: number | string;
|
1072
|
-
mask?: string;
|
1073
|
-
maskContentUnits?: number | string;
|
1074
|
-
maskUnits?: number | string;
|
1075
|
-
mathematical?: number | string;
|
1076
|
-
mode?: number | string;
|
1077
|
-
numOctaves?: number | string;
|
1078
|
-
offset?: number | string;
|
1079
|
-
opacity?: number | string;
|
1080
|
-
operator?: number | string;
|
1081
|
-
order?: number | string;
|
1082
|
-
orient?: number | string;
|
1083
|
-
orientation?: number | string;
|
1084
|
-
origin?: number | string;
|
1085
|
-
overflow?: number | string;
|
1086
|
-
overlinePosition?: number | string;
|
1087
|
-
overlineThickness?: number | string;
|
1088
|
-
paintOrder?: number | string;
|
1089
|
-
panose1?: number | string;
|
1090
|
-
pathLength?: number | string;
|
1091
|
-
patternContentUnits?: string;
|
1092
|
-
patternTransform?: number | string;
|
1093
|
-
patternUnits?: string;
|
1094
|
-
pointerEvents?: number | string;
|
1095
|
-
points?: string;
|
1096
|
-
pointsAtX?: number | string;
|
1097
|
-
pointsAtY?: number | string;
|
1098
|
-
pointsAtZ?: number | string;
|
1099
|
-
preserveAlpha?: number | string;
|
1100
|
-
preserveAspectRatio?: string;
|
1101
|
-
primitiveUnits?: number | string;
|
1102
|
-
r?: number | string;
|
1103
|
-
radius?: number | string;
|
1104
|
-
refX?: number | string;
|
1105
|
-
refY?: number | string;
|
1106
|
-
renderingIntent?: number | string;
|
1107
|
-
repeatCount?: number | string;
|
1108
|
-
repeatDur?: number | string;
|
1109
|
-
requiredExtensions?: number | string;
|
1110
|
-
requiredFeatures?: number | string;
|
1111
|
-
restart?: number | string;
|
1112
|
-
result?: string;
|
1113
|
-
rotate?: number | string;
|
1114
|
-
rx?: number | string;
|
1115
|
-
ry?: number | string;
|
1116
|
-
scale?: number | string;
|
1117
|
-
seed?: number | string;
|
1118
|
-
shapeRendering?: number | string;
|
1119
|
-
slope?: number | string;
|
1120
|
-
spacing?: number | string;
|
1121
|
-
specularConstant?: number | string;
|
1122
|
-
specularExponent?: number | string;
|
1123
|
-
speed?: number | string;
|
1124
|
-
spreadMethod?: string;
|
1125
|
-
startOffset?: number | string;
|
1126
|
-
stdDeviation?: number | string;
|
1127
|
-
stemh?: number | string;
|
1128
|
-
stemv?: number | string;
|
1129
|
-
stitchTiles?: number | string;
|
1130
|
-
stopColor?: string;
|
1131
|
-
stopOpacity?: number | string;
|
1132
|
-
strikethroughPosition?: number | string;
|
1133
|
-
strikethroughThickness?: number | string;
|
1134
|
-
string?: number | string;
|
1135
|
-
stroke?: string;
|
1136
|
-
strokeDasharray?: string | number;
|
1137
|
-
strokeDashoffset?: string | number;
|
1138
|
-
strokeLinecap?: "butt" | "round" | "square" | "inherit";
|
1139
|
-
strokeLinejoin?: "miter" | "round" | "bevel" | "inherit";
|
1140
|
-
strokeMiterlimit?: string;
|
1141
|
-
strokeOpacity?: number | string;
|
1142
|
-
strokeWidth?: number | string;
|
1143
|
-
surfaceScale?: number | string;
|
1144
|
-
systemLanguage?: number | string;
|
1145
|
-
tableValues?: number | string;
|
1146
|
-
targetX?: number | string;
|
1147
|
-
targetY?: number | string;
|
1148
|
-
textAnchor?: string;
|
1149
|
-
textDecoration?: number | string;
|
1150
|
-
textLength?: number | string;
|
1151
|
-
textRendering?: number | string;
|
1152
|
-
to?: number | string;
|
1153
|
-
transform?: string;
|
1154
|
-
u1?: number | string;
|
1155
|
-
u2?: number | string;
|
1156
|
-
underlinePosition?: number | string;
|
1157
|
-
underlineThickness?: number | string;
|
1158
|
-
unicode?: number | string;
|
1159
|
-
unicodeBidi?: number | string;
|
1160
|
-
unicodeRange?: number | string;
|
1161
|
-
unitsPerEm?: number | string;
|
1162
|
-
vAlphabetic?: number | string;
|
1163
|
-
values?: string;
|
1164
|
-
vectorEffect?: number | string;
|
1165
|
-
version?: string;
|
1166
|
-
vertAdvY?: number | string;
|
1167
|
-
vertOriginX?: number | string;
|
1168
|
-
vertOriginY?: number | string;
|
1169
|
-
vHanging?: number | string;
|
1170
|
-
vIdeographic?: number | string;
|
1171
|
-
viewBox?: string;
|
1172
|
-
viewTarget?: number | string;
|
1173
|
-
visibility?: number | string;
|
1174
|
-
vMathematical?: number | string;
|
1175
|
-
widths?: number | string;
|
1176
|
-
wordSpacing?: number | string;
|
1177
|
-
writingMode?: number | string;
|
1178
|
-
x1?: number | string;
|
1179
|
-
x2?: number | string;
|
1180
|
-
x?: number | string;
|
1181
|
-
xChannelSelector?: string;
|
1182
|
-
xHeight?: number | string;
|
1183
|
-
xlinkActuate?: string;
|
1184
|
-
xlinkArcrole?: string;
|
1185
|
-
xlinkHref?: string;
|
1186
|
-
xlinkRole?: string;
|
1187
|
-
xlinkShow?: string;
|
1188
|
-
xlinkTitle?: string;
|
1189
|
-
xlinkType?: string;
|
1190
|
-
xmlBase?: string;
|
1191
|
-
xmlLang?: string;
|
1192
|
-
xmlns?: string;
|
1193
|
-
xmlnsXlink?: string;
|
1194
|
-
xmlSpace?: string;
|
1195
|
-
y1?: number | string;
|
1196
|
-
y2?: number | string;
|
1197
|
-
y?: number | string;
|
1198
|
-
yChannelSelector?: string;
|
1199
|
-
z?: number | string;
|
1200
|
-
zoomAndPan?: string;
|
1201
|
-
}
|
1202
|
-
|
1203
|
-
interface PathAttributes {
|
1204
|
-
d: string;
|
1205
|
-
}
|
1206
|
-
|
1207
|
-
interface EventHandler<E extends Event> {
|
1208
|
-
(event: E): void;
|
1209
|
-
}
|
1210
|
-
|
1211
|
-
type ClipboardEventHandler = EventHandler<ClipboardEvent>;
|
1212
|
-
type CompositionEventHandler = EventHandler<CompositionEvent>;
|
1213
|
-
type DragEventHandler = EventHandler<DragEvent>;
|
1214
|
-
type FocusEventHandler = EventHandler<FocusEvent>;
|
1215
|
-
type KeyboardEventHandler = EventHandler<KeyboardEvent>;
|
1216
|
-
type MouseEventHandler = EventHandler<MouseEvent>;
|
1217
|
-
type TouchEventHandler = EventHandler<TouchEvent>;
|
1218
|
-
type UIEventHandler = EventHandler<UIEvent>;
|
1219
|
-
type WheelEventHandler = EventHandler<WheelEvent>;
|
1220
|
-
type AnimationEventHandler = EventHandler<AnimationEvent>;
|
1221
|
-
type TransitionEventHandler = EventHandler<TransitionEvent>;
|
1222
|
-
type GenericEventHandler = EventHandler<Event>;
|
1223
|
-
type PointerEventHandler = EventHandler<PointerEvent>;
|
1224
|
-
|
1225
|
-
interface DOMAttributes extends preact.PreactDOMAttributes {
|
1226
|
-
// Image Events
|
1227
|
-
onLoad?: GenericEventHandler;
|
1228
|
-
onError?: GenericEventHandler;
|
1229
|
-
onLoadCapture?: GenericEventHandler;
|
1230
|
-
|
1231
|
-
// Clipboard Events
|
1232
|
-
onCopy?: ClipboardEventHandler;
|
1233
|
-
onCopyCapture?: ClipboardEventHandler;
|
1234
|
-
onCut?: ClipboardEventHandler;
|
1235
|
-
onCutCapture?: ClipboardEventHandler;
|
1236
|
-
onPaste?: ClipboardEventHandler;
|
1237
|
-
onPasteCapture?: ClipboardEventHandler;
|
1238
|
-
|
1239
|
-
// Composition Events
|
1240
|
-
onCompositionEnd?: CompositionEventHandler;
|
1241
|
-
onCompositionEndCapture?: CompositionEventHandler;
|
1242
|
-
onCompositionStart?: CompositionEventHandler;
|
1243
|
-
onCompositionStartCapture?: CompositionEventHandler;
|
1244
|
-
onCompositionUpdate?: CompositionEventHandler;
|
1245
|
-
onCompositionUpdateCapture?: CompositionEventHandler;
|
1246
|
-
|
1247
|
-
// Focus Events
|
1248
|
-
onFocus?: FocusEventHandler;
|
1249
|
-
onFocusCapture?: FocusEventHandler;
|
1250
|
-
onBlur?: FocusEventHandler;
|
1251
|
-
onBlurCapture?: FocusEventHandler;
|
1252
|
-
|
1253
|
-
// Form Events
|
1254
|
-
onChange?: GenericEventHandler;
|
1255
|
-
onChangeCapture?: GenericEventHandler;
|
1256
|
-
onInput?: GenericEventHandler;
|
1257
|
-
onInputCapture?: GenericEventHandler;
|
1258
|
-
onSearch?: GenericEventHandler;
|
1259
|
-
onSearchCapture?: GenericEventHandler;
|
1260
|
-
onSubmit?: GenericEventHandler;
|
1261
|
-
onSubmitCapture?: GenericEventHandler;
|
1262
|
-
onInvalid?: GenericEventHandler;
|
1263
|
-
|
1264
|
-
// Keyboard Events
|
1265
|
-
onKeyDown?: KeyboardEventHandler;
|
1266
|
-
onKeyDownCapture?: KeyboardEventHandler;
|
1267
|
-
onKeyPress?: KeyboardEventHandler;
|
1268
|
-
onKeyPressCapture?: KeyboardEventHandler;
|
1269
|
-
onKeyUp?: KeyboardEventHandler;
|
1270
|
-
onKeyUpCapture?: KeyboardEventHandler;
|
1271
|
-
|
1272
|
-
// Media Events
|
1273
|
-
onAbort?: GenericEventHandler;
|
1274
|
-
onAbortCapture?: GenericEventHandler;
|
1275
|
-
onCanPlay?: GenericEventHandler;
|
1276
|
-
onCanPlayCapture?: GenericEventHandler;
|
1277
|
-
onCanPlayThrough?: GenericEventHandler;
|
1278
|
-
onCanPlayThroughCapture?: GenericEventHandler;
|
1279
|
-
onDurationChange?: GenericEventHandler;
|
1280
|
-
onDurationChangeCapture?: GenericEventHandler;
|
1281
|
-
onEmptied?: GenericEventHandler;
|
1282
|
-
onEmptiedCapture?: GenericEventHandler;
|
1283
|
-
onEncrypted?: GenericEventHandler;
|
1284
|
-
onEncryptedCapture?: GenericEventHandler;
|
1285
|
-
onEnded?: GenericEventHandler;
|
1286
|
-
onEndedCapture?: GenericEventHandler;
|
1287
|
-
onLoadedData?: GenericEventHandler;
|
1288
|
-
onLoadedDataCapture?: GenericEventHandler;
|
1289
|
-
onLoadedMetadata?: GenericEventHandler;
|
1290
|
-
onLoadedMetadataCapture?: GenericEventHandler;
|
1291
|
-
onLoadStart?: GenericEventHandler;
|
1292
|
-
onLoadStartCapture?: GenericEventHandler;
|
1293
|
-
onPause?: GenericEventHandler;
|
1294
|
-
onPauseCapture?: GenericEventHandler;
|
1295
|
-
onPlay?: GenericEventHandler;
|
1296
|
-
onPlayCapture?: GenericEventHandler;
|
1297
|
-
onPlaying?: GenericEventHandler;
|
1298
|
-
onPlayingCapture?: GenericEventHandler;
|
1299
|
-
onProgress?: GenericEventHandler;
|
1300
|
-
onProgressCapture?: GenericEventHandler;
|
1301
|
-
onRateChange?: GenericEventHandler;
|
1302
|
-
onRateChangeCapture?: GenericEventHandler;
|
1303
|
-
onSeeked?: GenericEventHandler;
|
1304
|
-
onSeekedCapture?: GenericEventHandler;
|
1305
|
-
onSeeking?: GenericEventHandler;
|
1306
|
-
onSeekingCapture?: GenericEventHandler;
|
1307
|
-
onStalled?: GenericEventHandler;
|
1308
|
-
onStalledCapture?: GenericEventHandler;
|
1309
|
-
onSuspend?: GenericEventHandler;
|
1310
|
-
onSuspendCapture?: GenericEventHandler;
|
1311
|
-
onTimeUpdate?: GenericEventHandler;
|
1312
|
-
onTimeUpdateCapture?: GenericEventHandler;
|
1313
|
-
onVolumeChange?: GenericEventHandler;
|
1314
|
-
onVolumeChangeCapture?: GenericEventHandler;
|
1315
|
-
onWaiting?: GenericEventHandler;
|
1316
|
-
onWaitingCapture?: GenericEventHandler;
|
1317
|
-
|
1318
|
-
// MouseEvents
|
1319
|
-
onClick?: MouseEventHandler;
|
1320
|
-
onClickCapture?: MouseEventHandler;
|
1321
|
-
onContextMenu?: MouseEventHandler;
|
1322
|
-
onContextMenuCapture?: MouseEventHandler;
|
1323
|
-
onDblClick?: MouseEventHandler;
|
1324
|
-
onDblClickCapture?: MouseEventHandler;
|
1325
|
-
onDrag?: DragEventHandler;
|
1326
|
-
onDragCapture?: DragEventHandler;
|
1327
|
-
onDragEnd?: DragEventHandler;
|
1328
|
-
onDragEndCapture?: DragEventHandler;
|
1329
|
-
onDragEnter?: DragEventHandler;
|
1330
|
-
onDragEnterCapture?: DragEventHandler;
|
1331
|
-
onDragExit?: DragEventHandler;
|
1332
|
-
onDragExitCapture?: DragEventHandler;
|
1333
|
-
onDragLeave?: DragEventHandler;
|
1334
|
-
onDragLeaveCapture?: DragEventHandler;
|
1335
|
-
onDragOver?: DragEventHandler;
|
1336
|
-
onDragOverCapture?: DragEventHandler;
|
1337
|
-
onDragStart?: DragEventHandler;
|
1338
|
-
onDragStartCapture?: DragEventHandler;
|
1339
|
-
onDrop?: DragEventHandler;
|
1340
|
-
onDropCapture?: DragEventHandler;
|
1341
|
-
onMouseDown?: MouseEventHandler;
|
1342
|
-
onMouseDownCapture?: MouseEventHandler;
|
1343
|
-
onMouseEnter?: MouseEventHandler;
|
1344
|
-
onMouseEnterCapture?: MouseEventHandler;
|
1345
|
-
onMouseLeave?: MouseEventHandler;
|
1346
|
-
onMouseLeaveCapture?: MouseEventHandler;
|
1347
|
-
onMouseMove?: MouseEventHandler;
|
1348
|
-
onMouseMoveCapture?: MouseEventHandler;
|
1349
|
-
onMouseOut?: MouseEventHandler;
|
1350
|
-
onMouseOutCapture?: MouseEventHandler;
|
1351
|
-
onMouseOver?: MouseEventHandler;
|
1352
|
-
onMouseOverCapture?: MouseEventHandler;
|
1353
|
-
onMouseUp?: MouseEventHandler;
|
1354
|
-
onMouseUpCapture?: MouseEventHandler;
|
1355
|
-
|
1356
|
-
// Selection Events
|
1357
|
-
onSelect?: GenericEventHandler;
|
1358
|
-
onSelectCapture?: GenericEventHandler;
|
1359
|
-
|
1360
|
-
// Touch Events
|
1361
|
-
onTouchCancel?: TouchEventHandler;
|
1362
|
-
onTouchCancelCapture?: TouchEventHandler;
|
1363
|
-
onTouchEnd?: TouchEventHandler;
|
1364
|
-
onTouchEndCapture?: TouchEventHandler;
|
1365
|
-
onTouchMove?: TouchEventHandler;
|
1366
|
-
onTouchMoveCapture?: TouchEventHandler;
|
1367
|
-
onTouchStart?: TouchEventHandler;
|
1368
|
-
onTouchStartCapture?: TouchEventHandler;
|
1369
|
-
|
1370
|
-
// Pointer Events
|
1371
|
-
onPointerOver?: PointerEventHandler;
|
1372
|
-
onPointerOverCapture?: PointerEventHandler;
|
1373
|
-
onPointerEnter?: PointerEventHandler;
|
1374
|
-
onPointerEnterCapture?: PointerEventHandler;
|
1375
|
-
onPointerDown?: PointerEventHandler;
|
1376
|
-
onPointerDownCapture?: PointerEventHandler;
|
1377
|
-
onPointerMove?: PointerEventHandler;
|
1378
|
-
onPointerMoveCapture?: PointerEventHandler;
|
1379
|
-
onPointerUp?: PointerEventHandler;
|
1380
|
-
onPointerUpCapture?: PointerEventHandler;
|
1381
|
-
onPointerCancel?: PointerEventHandler;
|
1382
|
-
onPointerCancelCapture?: PointerEventHandler;
|
1383
|
-
onPointerOut?: PointerEventHandler;
|
1384
|
-
onPointerOutCapture?: PointerEventHandler;
|
1385
|
-
onPointerLeave?: PointerEventHandler;
|
1386
|
-
onPointerLeaveCapture?: PointerEventHandler;
|
1387
|
-
onGotPointerCapture?: PointerEventHandler;
|
1388
|
-
onGotPointerCaptureCapture?: PointerEventHandler;
|
1389
|
-
onLostPointerCapture?: PointerEventHandler;
|
1390
|
-
onLostPointerCaptureCapture?: PointerEventHandler;
|
1391
|
-
|
1392
|
-
// UI Events
|
1393
|
-
onScroll?: UIEventHandler;
|
1394
|
-
onScrollCapture?: UIEventHandler;
|
1395
|
-
|
1396
|
-
// Wheel Events
|
1397
|
-
onWheel?: WheelEventHandler;
|
1398
|
-
onWheelCapture?: WheelEventHandler;
|
1399
|
-
|
1400
|
-
// Animation Events
|
1401
|
-
onAnimationStart?: AnimationEventHandler;
|
1402
|
-
onAnimationStartCapture?: AnimationEventHandler;
|
1403
|
-
onAnimationEnd?: AnimationEventHandler;
|
1404
|
-
onAnimationEndCapture?: AnimationEventHandler;
|
1405
|
-
onAnimationIteration?: AnimationEventHandler;
|
1406
|
-
onAnimationIterationCapture?: AnimationEventHandler;
|
1407
|
-
|
1408
|
-
// Transition Events
|
1409
|
-
onTransitionEnd?: TransitionEventHandler;
|
1410
|
-
onTransitionEndCapture?: TransitionEventHandler;
|
1411
|
-
}
|
1412
|
-
|
1413
|
-
interface HTMLAttributes extends preact.PreactHTMLAttributes, DOMAttributes {
|
1414
|
-
// Standard HTML Attributes
|
1415
|
-
accept?: string;
|
1416
|
-
acceptCharset?: string;
|
1417
|
-
accessKey?: string;
|
1418
|
-
action?: string;
|
1419
|
-
allowFullScreen?: boolean;
|
1420
|
-
allowTransparency?: boolean;
|
1421
|
-
alt?: string;
|
1422
|
-
async?: boolean;
|
1423
|
-
autocomplete?: string;
|
1424
|
-
autofocus?: boolean;
|
1425
|
-
autoPlay?: boolean;
|
1426
|
-
capture?: boolean;
|
1427
|
-
cellPadding?: number | string;
|
1428
|
-
cellSpacing?: number | string;
|
1429
|
-
charSet?: string;
|
1430
|
-
challenge?: string;
|
1431
|
-
checked?: boolean;
|
1432
|
-
class?: string;
|
1433
|
-
className?: string;
|
1434
|
-
cols?: number;
|
1435
|
-
colSpan?: number;
|
1436
|
-
content?: string;
|
1437
|
-
contentEditable?: boolean;
|
1438
|
-
contextMenu?: string;
|
1439
|
-
controls?: boolean;
|
1440
|
-
controlsList?: string;
|
1441
|
-
coords?: string;
|
1442
|
-
crossOrigin?: string;
|
1443
|
-
data?: string;
|
1444
|
-
dateTime?: string;
|
1445
|
-
default?: boolean;
|
1446
|
-
defer?: boolean;
|
1447
|
-
dir?: string;
|
1448
|
-
disabled?: boolean;
|
1449
|
-
download?: any;
|
1450
|
-
draggable?: boolean;
|
1451
|
-
encType?: string;
|
1452
|
-
form?: string;
|
1453
|
-
formAction?: string;
|
1454
|
-
formEncType?: string;
|
1455
|
-
formMethod?: string;
|
1456
|
-
formNoValidate?: boolean;
|
1457
|
-
formTarget?: string;
|
1458
|
-
frameBorder?: number | string;
|
1459
|
-
headers?: string;
|
1460
|
-
height?: number | string;
|
1461
|
-
hidden?: boolean;
|
1462
|
-
high?: number;
|
1463
|
-
href?: string;
|
1464
|
-
hrefLang?: string;
|
1465
|
-
for?: string;
|
1466
|
-
httpEquiv?: string;
|
1467
|
-
icon?: string;
|
1468
|
-
id?: string;
|
1469
|
-
inputMode?: string;
|
1470
|
-
integrity?: string;
|
1471
|
-
is?: string;
|
1472
|
-
keyParams?: string;
|
1473
|
-
keyType?: string;
|
1474
|
-
kind?: string;
|
1475
|
-
label?: string;
|
1476
|
-
lang?: string;
|
1477
|
-
list?: string;
|
1478
|
-
loop?: boolean;
|
1479
|
-
low?: number;
|
1480
|
-
manifest?: string;
|
1481
|
-
marginHeight?: number;
|
1482
|
-
marginWidth?: number;
|
1483
|
-
max?: number | string;
|
1484
|
-
maxLength?: number;
|
1485
|
-
media?: string;
|
1486
|
-
mediaGroup?: string;
|
1487
|
-
method?: string;
|
1488
|
-
min?: number | string;
|
1489
|
-
minLength?: number;
|
1490
|
-
multiple?: boolean;
|
1491
|
-
muted?: boolean;
|
1492
|
-
name?: string;
|
1493
|
-
noValidate?: boolean;
|
1494
|
-
open?: boolean;
|
1495
|
-
optimum?: number;
|
1496
|
-
pattern?: string;
|
1497
|
-
placeholder?: string;
|
1498
|
-
playsInline?: boolean;
|
1499
|
-
poster?: string;
|
1500
|
-
preload?: string;
|
1501
|
-
radioGroup?: string;
|
1502
|
-
readOnly?: boolean;
|
1503
|
-
rel?: string;
|
1504
|
-
required?: boolean;
|
1505
|
-
role?: string;
|
1506
|
-
rows?: number;
|
1507
|
-
rowSpan?: number;
|
1508
|
-
sandbox?: string;
|
1509
|
-
scope?: string;
|
1510
|
-
scoped?: boolean;
|
1511
|
-
scrolling?: string;
|
1512
|
-
seamless?: boolean;
|
1513
|
-
selected?: boolean;
|
1514
|
-
shape?: string;
|
1515
|
-
size?: number;
|
1516
|
-
sizes?: string;
|
1517
|
-
slot?: string;
|
1518
|
-
span?: number;
|
1519
|
-
spellcheck?: boolean;
|
1520
|
-
src?: string;
|
1521
|
-
srcset?: string;
|
1522
|
-
srcDoc?: string;
|
1523
|
-
srcLang?: string;
|
1524
|
-
srcSet?: string;
|
1525
|
-
start?: number;
|
1526
|
-
step?: number | string;
|
1527
|
-
style?: any;
|
1528
|
-
summary?: string;
|
1529
|
-
tabIndex?: number;
|
1530
|
-
target?: string;
|
1531
|
-
title?: string;
|
1532
|
-
type?: string;
|
1533
|
-
useMap?: string;
|
1534
|
-
value?: string | string[] | number;
|
1535
|
-
width?: number | string;
|
1536
|
-
wmode?: string;
|
1537
|
-
wrap?: string;
|
1538
|
-
|
1539
|
-
// RDFa Attributes
|
1540
|
-
about?: string;
|
1541
|
-
datatype?: string;
|
1542
|
-
inlist?: any;
|
1543
|
-
prefix?: string;
|
1544
|
-
property?: string;
|
1545
|
-
resource?: string;
|
1546
|
-
typeof?: string;
|
1547
|
-
vocab?: string;
|
1548
|
-
}
|
1549
|
-
|
1550
|
-
interface IntrinsicElements {
|
1551
|
-
// HTML
|
1552
|
-
a: HTMLAttributes;
|
1553
|
-
abbr: HTMLAttributes;
|
1554
|
-
address: HTMLAttributes;
|
1555
|
-
area: HTMLAttributes;
|
1556
|
-
article: HTMLAttributes;
|
1557
|
-
aside: HTMLAttributes;
|
1558
|
-
audio: HTMLAttributes;
|
1559
|
-
b: HTMLAttributes;
|
1560
|
-
base: HTMLAttributes;
|
1561
|
-
bdi: HTMLAttributes;
|
1562
|
-
bdo: HTMLAttributes;
|
1563
|
-
big: HTMLAttributes;
|
1564
|
-
blockquote: HTMLAttributes;
|
1565
|
-
body: HTMLAttributes;
|
1566
|
-
br: HTMLAttributes;
|
1567
|
-
button: HTMLAttributes;
|
1568
|
-
canvas: HTMLAttributes;
|
1569
|
-
caption: HTMLAttributes;
|
1570
|
-
cite: HTMLAttributes;
|
1571
|
-
code: HTMLAttributes;
|
1572
|
-
col: HTMLAttributes;
|
1573
|
-
colgroup: HTMLAttributes;
|
1574
|
-
data: HTMLAttributes;
|
1575
|
-
datalist: HTMLAttributes;
|
1576
|
-
dd: HTMLAttributes;
|
1577
|
-
del: HTMLAttributes;
|
1578
|
-
details: HTMLAttributes;
|
1579
|
-
dfn: HTMLAttributes;
|
1580
|
-
dialog: HTMLAttributes;
|
1581
|
-
div: HTMLAttributes;
|
1582
|
-
dl: HTMLAttributes;
|
1583
|
-
dt: HTMLAttributes;
|
1584
|
-
em: HTMLAttributes;
|
1585
|
-
embed: HTMLAttributes;
|
1586
|
-
fieldset: HTMLAttributes;
|
1587
|
-
figcaption: HTMLAttributes;
|
1588
|
-
figure: HTMLAttributes;
|
1589
|
-
footer: HTMLAttributes;
|
1590
|
-
form: HTMLAttributes;
|
1591
|
-
h1: HTMLAttributes;
|
1592
|
-
h2: HTMLAttributes;
|
1593
|
-
h3: HTMLAttributes;
|
1594
|
-
h4: HTMLAttributes;
|
1595
|
-
h5: HTMLAttributes;
|
1596
|
-
h6: HTMLAttributes;
|
1597
|
-
head: HTMLAttributes;
|
1598
|
-
header: HTMLAttributes;
|
1599
|
-
hr: HTMLAttributes;
|
1600
|
-
html: HTMLAttributes;
|
1601
|
-
i: HTMLAttributes;
|
1602
|
-
iframe: HTMLAttributes;
|
1603
|
-
img: HTMLAttributes;
|
1604
|
-
input: HTMLAttributes;
|
1605
|
-
ins: HTMLAttributes;
|
1606
|
-
kbd: HTMLAttributes;
|
1607
|
-
keygen: HTMLAttributes;
|
1608
|
-
label: HTMLAttributes;
|
1609
|
-
legend: HTMLAttributes;
|
1610
|
-
li: HTMLAttributes;
|
1611
|
-
link: HTMLAttributes;
|
1612
|
-
main: HTMLAttributes;
|
1613
|
-
map: HTMLAttributes;
|
1614
|
-
mark: HTMLAttributes;
|
1615
|
-
menu: HTMLAttributes;
|
1616
|
-
menuitem: HTMLAttributes;
|
1617
|
-
meta: HTMLAttributes;
|
1618
|
-
meter: HTMLAttributes;
|
1619
|
-
nav: HTMLAttributes;
|
1620
|
-
noscript: HTMLAttributes;
|
1621
|
-
object: HTMLAttributes;
|
1622
|
-
ol: HTMLAttributes;
|
1623
|
-
optgroup: HTMLAttributes;
|
1624
|
-
option: HTMLAttributes;
|
1625
|
-
output: HTMLAttributes;
|
1626
|
-
p: HTMLAttributes;
|
1627
|
-
param: HTMLAttributes;
|
1628
|
-
picture: HTMLAttributes;
|
1629
|
-
pre: HTMLAttributes;
|
1630
|
-
progress: HTMLAttributes;
|
1631
|
-
q: HTMLAttributes;
|
1632
|
-
rp: HTMLAttributes;
|
1633
|
-
rt: HTMLAttributes;
|
1634
|
-
ruby: HTMLAttributes;
|
1635
|
-
s: HTMLAttributes;
|
1636
|
-
samp: HTMLAttributes;
|
1637
|
-
script: HTMLAttributes;
|
1638
|
-
section: HTMLAttributes;
|
1639
|
-
select: HTMLAttributes;
|
1640
|
-
slot: HTMLAttributes;
|
1641
|
-
small: HTMLAttributes;
|
1642
|
-
source: HTMLAttributes;
|
1643
|
-
span: HTMLAttributes;
|
1644
|
-
strong: HTMLAttributes;
|
1645
|
-
style: HTMLAttributes;
|
1646
|
-
sub: HTMLAttributes;
|
1647
|
-
summary: HTMLAttributes;
|
1648
|
-
sup: HTMLAttributes;
|
1649
|
-
table: HTMLAttributes;
|
1650
|
-
tbody: HTMLAttributes;
|
1651
|
-
td: HTMLAttributes;
|
1652
|
-
textarea: HTMLAttributes;
|
1653
|
-
tfoot: HTMLAttributes;
|
1654
|
-
th: HTMLAttributes;
|
1655
|
-
thead: HTMLAttributes;
|
1656
|
-
time: HTMLAttributes;
|
1657
|
-
title: HTMLAttributes;
|
1658
|
-
tr: HTMLAttributes;
|
1659
|
-
track: HTMLAttributes;
|
1660
|
-
u: HTMLAttributes;
|
1661
|
-
ul: HTMLAttributes;
|
1662
|
-
"var": HTMLAttributes;
|
1663
|
-
video: HTMLAttributes;
|
1664
|
-
wbr: HTMLAttributes;
|
1665
|
-
|
1666
|
-
//SVG
|
1667
|
-
svg: SVGAttributes;
|
1668
|
-
animate: SVGAttributes;
|
1669
|
-
circle: SVGAttributes;
|
1670
|
-
clipPath: SVGAttributes;
|
1671
|
-
defs: SVGAttributes;
|
1672
|
-
desc: SVGAttributes;
|
1673
|
-
ellipse: SVGAttributes;
|
1674
|
-
feBlend: SVGAttributes;
|
1675
|
-
feColorMatrix: SVGAttributes;
|
1676
|
-
feComponentTransfer: SVGAttributes;
|
1677
|
-
feComposite: SVGAttributes;
|
1678
|
-
feConvolveMatrix: SVGAttributes;
|
1679
|
-
feDiffuseLighting: SVGAttributes;
|
1680
|
-
feDisplacementMap: SVGAttributes;
|
1681
|
-
feFlood: SVGAttributes;
|
1682
|
-
feGaussianBlur: SVGAttributes;
|
1683
|
-
feImage: SVGAttributes;
|
1684
|
-
feMerge: SVGAttributes;
|
1685
|
-
feMergeNode: SVGAttributes;
|
1686
|
-
feMorphology: SVGAttributes;
|
1687
|
-
feOffset: SVGAttributes;
|
1688
|
-
feSpecularLighting: SVGAttributes;
|
1689
|
-
feTile: SVGAttributes;
|
1690
|
-
feTurbulence: SVGAttributes;
|
1691
|
-
filter: SVGAttributes;
|
1692
|
-
foreignObject: SVGAttributes;
|
1693
|
-
g: SVGAttributes;
|
1694
|
-
image: SVGAttributes;
|
1695
|
-
line: SVGAttributes;
|
1696
|
-
linearGradient: SVGAttributes;
|
1697
|
-
marker: SVGAttributes;
|
1698
|
-
mask: SVGAttributes;
|
1699
|
-
path: SVGAttributes;
|
1700
|
-
pattern: SVGAttributes;
|
1701
|
-
polygon: SVGAttributes;
|
1702
|
-
polyline: SVGAttributes;
|
1703
|
-
radialGradient: SVGAttributes;
|
1704
|
-
rect: SVGAttributes;
|
1705
|
-
stop: SVGAttributes;
|
1706
|
-
symbol: SVGAttributes;
|
1707
|
-
text: SVGAttributes;
|
1708
|
-
tspan: SVGAttributes;
|
1709
|
-
use: SVGAttributes;
|
1710
|
-
}
|
1711
|
-
}
|
1712
|
-
}
|