create-jen-app 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +89 -0
- package/dist/index.js +72 -0
- package/package.json +50 -0
- package/templates/static/.esbuild/jen.config.js +1 -0
- package/templates/static/README.md +67 -0
- package/templates/static/build.js +106 -0
- package/templates/static/jen.config.ts +128 -0
- package/templates/static/jenjs.d.ts +33 -0
- package/templates/static/lib/api/(hello).d.ts +7 -0
- package/templates/static/lib/api/(hello).js +26 -0
- package/templates/static/lib/auth/cookie-utils.d.ts +24 -0
- package/templates/static/lib/auth/cookie-utils.js +99 -0
- package/templates/static/lib/auth/index.d.ts +2 -0
- package/templates/static/lib/auth/index.js +19 -0
- package/templates/static/lib/auth/jwt.d.ts +2 -0
- package/templates/static/lib/auth/jwt.js +30 -0
- package/templates/static/lib/auth/session.d.ts +44 -0
- package/templates/static/lib/auth/session.js +111 -0
- package/templates/static/lib/build/asset-hashing.d.ts +10 -0
- package/templates/static/lib/build/asset-hashing.js +42 -0
- package/templates/static/lib/build/asset-manifest.d.ts +11 -0
- package/templates/static/lib/build/asset-manifest.js +38 -0
- package/templates/static/lib/build/build.d.ts +4 -0
- package/templates/static/lib/build/build.js +113 -0
- package/templates/static/lib/build/island-hydration.d.ts +25 -0
- package/templates/static/lib/build/island-hydration.js +62 -0
- package/templates/static/lib/build/minifier.d.ts +20 -0
- package/templates/static/lib/build/minifier.js +65 -0
- package/templates/static/lib/build/page-renderer.d.ts +17 -0
- package/templates/static/lib/build/page-renderer.js +45 -0
- package/templates/static/lib/build/production-build.d.ts +10 -0
- package/templates/static/lib/build/production-build.js +30 -0
- package/templates/static/lib/build/ssg-pipeline.d.ts +15 -0
- package/templates/static/lib/build/ssg-pipeline.js +119 -0
- package/templates/static/lib/build-tools/build-site.d.ts +6 -0
- package/templates/static/lib/build-tools/build-site.js +56 -0
- package/templates/static/lib/cache/index.d.ts +2 -0
- package/templates/static/lib/cache/index.js +19 -0
- package/templates/static/lib/cache/memory.d.ts +6 -0
- package/templates/static/lib/cache/memory.js +31 -0
- package/templates/static/lib/cache/redis.d.ts +6 -0
- package/templates/static/lib/cache/redis.js +33 -0
- package/templates/static/lib/cli/banner.d.ts +1 -0
- package/templates/static/lib/cli/banner.js +41 -0
- package/templates/static/lib/cli/templates/ssg/jen.config.d.ts +3 -0
- package/templates/static/lib/cli/templates/ssg/jen.config.js +49 -0
- package/templates/static/lib/cli/templates/ssg/site/index.d.ts +2 -0
- package/templates/static/lib/cli/templates/ssg/site/index.js +4 -0
- package/templates/static/lib/cli/templates/ssr/jen.config.d.ts +3 -0
- package/templates/static/lib/cli/templates/ssr/jen.config.js +49 -0
- package/templates/static/lib/cli/templates/ssr/site/index.d.ts +2 -0
- package/templates/static/lib/cli/templates/ssr/site/index.js +4 -0
- package/templates/static/lib/compilers/esbuild-plugins.d.ts +6 -0
- package/templates/static/lib/compilers/esbuild-plugins.js +130 -0
- package/templates/static/lib/compilers/svelte.d.ts +18 -0
- package/templates/static/lib/compilers/svelte.js +61 -0
- package/templates/static/lib/compilers/vue.d.ts +15 -0
- package/templates/static/lib/compilers/vue.js +99 -0
- package/templates/static/lib/core/config.d.ts +53 -0
- package/templates/static/lib/core/config.js +18 -0
- package/templates/static/lib/core/http.d.ts +3 -0
- package/templates/static/lib/core/http.js +42 -0
- package/templates/static/lib/core/middleware-hooks.d.ts +46 -0
- package/templates/static/lib/core/middleware-hooks.js +69 -0
- package/templates/static/lib/core/paths.d.ts +6 -0
- package/templates/static/lib/core/paths.js +24 -0
- package/templates/static/lib/core/routes/match.d.ts +6 -0
- package/templates/static/lib/core/routes/match.js +31 -0
- package/templates/static/lib/core/routes/scan.d.ts +9 -0
- package/templates/static/lib/core/routes/scan.js +148 -0
- package/templates/static/lib/core/types.d.ts +18 -0
- package/templates/static/lib/core/types.js +18 -0
- package/templates/static/lib/css/compiler.d.ts +20 -0
- package/templates/static/lib/css/compiler.js +87 -0
- package/templates/static/lib/db/connector.d.ts +4 -0
- package/templates/static/lib/db/connector.js +33 -0
- package/templates/static/lib/db/drivers/jdb.d.ts +13 -0
- package/templates/static/lib/db/drivers/jdb.js +59 -0
- package/templates/static/lib/db/drivers/sql.d.ts +18 -0
- package/templates/static/lib/db/drivers/sql.js +182 -0
- package/templates/static/lib/db/index.d.ts +19 -0
- package/templates/static/lib/db/index.js +65 -0
- package/templates/static/lib/db/types.d.ts +29 -0
- package/templates/static/lib/db/types.js +18 -0
- package/templates/static/lib/graphql/index.d.ts +1 -0
- package/templates/static/lib/graphql/index.js +22 -0
- package/templates/static/lib/graphql/resolvers.d.ts +17 -0
- package/templates/static/lib/graphql/resolvers.js +26 -0
- package/templates/static/lib/graphql/schema.d.ts +1 -0
- package/templates/static/lib/graphql/schema.js +20 -0
- package/templates/static/lib/i18n/en.json +4 -0
- package/templates/static/lib/i18n/es.json +4 -0
- package/templates/static/lib/i18n/index.d.ts +8 -0
- package/templates/static/lib/i18n/index.js +32 -0
- package/templates/static/lib/import/jen-import.d.ts +27 -0
- package/templates/static/lib/import/jen-import.js +128 -0
- package/templates/static/lib/index.d.ts +81 -0
- package/templates/static/lib/index.js +120 -0
- package/templates/static/lib/jdb/engine.d.ts +9 -0
- package/templates/static/lib/jdb/engine.js +176 -0
- package/templates/static/lib/jdb/index.d.ts +2 -0
- package/templates/static/lib/jdb/index.js +19 -0
- package/templates/static/lib/jdb/types.d.ts +46 -0
- package/templates/static/lib/jdb/types.js +18 -0
- package/templates/static/lib/jdb/utils.d.ts +6 -0
- package/templates/static/lib/jdb/utils.js +141 -0
- package/templates/static/lib/middleware/builtins/body-parser.d.ts +1 -0
- package/templates/static/lib/middleware/builtins/body-parser.js +55 -0
- package/templates/static/lib/middleware/builtins/cors.d.ts +13 -0
- package/templates/static/lib/middleware/builtins/cors.js +67 -0
- package/templates/static/lib/middleware/builtins/logger.d.ts +1 -0
- package/templates/static/lib/middleware/builtins/logger.js +33 -0
- package/templates/static/lib/middleware/builtins/rate-limit.d.ts +5 -0
- package/templates/static/lib/middleware/builtins/rate-limit.js +76 -0
- package/templates/static/lib/middleware/builtins/request-id.d.ts +1 -0
- package/templates/static/lib/middleware/builtins/request-id.js +25 -0
- package/templates/static/lib/middleware/builtins/security-headers.d.ts +1 -0
- package/templates/static/lib/middleware/builtins/security-headers.js +39 -0
- package/templates/static/lib/middleware/context.d.ts +18 -0
- package/templates/static/lib/middleware/context.js +50 -0
- package/templates/static/lib/middleware/decorators.d.ts +2 -0
- package/templates/static/lib/middleware/decorators.js +61 -0
- package/templates/static/lib/middleware/errors/handler.d.ts +1 -0
- package/templates/static/lib/middleware/errors/handler.js +65 -0
- package/templates/static/lib/middleware/errors/http-error.d.ts +5 -0
- package/templates/static/lib/middleware/errors/http-error.js +27 -0
- package/templates/static/lib/middleware/kernel.d.ts +6 -0
- package/templates/static/lib/middleware/kernel.js +39 -0
- package/templates/static/lib/middleware/pipeline.d.ts +4 -0
- package/templates/static/lib/middleware/pipeline.js +67 -0
- package/templates/static/lib/middleware/registry.d.ts +10 -0
- package/templates/static/lib/middleware/registry.js +41 -0
- package/templates/static/lib/middleware/response.d.ts +13 -0
- package/templates/static/lib/middleware/response.js +60 -0
- package/templates/static/lib/middleware/types.d.ts +1 -0
- package/templates/static/lib/middleware/types.js +18 -0
- package/templates/static/lib/middleware/utils/matcher.d.ts +1 -0
- package/templates/static/lib/middleware/utils/matcher.js +31 -0
- package/templates/static/lib/native/bundle.d.ts +19 -0
- package/templates/static/lib/native/bundle.js +39 -0
- package/templates/static/lib/native/dev-server.d.ts +6 -0
- package/templates/static/lib/native/dev-server.js +38 -0
- package/templates/static/lib/native/index.d.ts +30 -0
- package/templates/static/lib/native/index.js +48 -0
- package/templates/static/lib/native/optimizer.d.ts +17 -0
- package/templates/static/lib/native/optimizer.js +37 -0
- package/templates/static/lib/native/style-compiler.d.ts +10 -0
- package/templates/static/lib/native/style-compiler.js +36 -0
- package/templates/static/lib/plugin/loader.d.ts +8 -0
- package/templates/static/lib/plugin/loader.js +59 -0
- package/templates/static/lib/runtime/client-runtime.d.ts +1 -0
- package/templates/static/lib/runtime/client-runtime.js +28 -0
- package/templates/static/lib/runtime/hmr.d.ts +1 -0
- package/templates/static/lib/runtime/hmr.js +54 -0
- package/templates/static/lib/runtime/hydrate.d.ts +1 -0
- package/templates/static/lib/runtime/hydrate.js +45 -0
- package/templates/static/lib/runtime/island-hydration-client.d.ts +5 -0
- package/templates/static/lib/runtime/island-hydration-client.js +132 -0
- package/templates/static/lib/runtime/islands.d.ts +46 -0
- package/templates/static/lib/runtime/islands.js +89 -0
- package/templates/static/lib/runtime/render.d.ts +13 -0
- package/templates/static/lib/runtime/render.js +183 -0
- package/templates/static/lib/server/api-routes.d.ts +44 -0
- package/templates/static/lib/server/api-routes.js +196 -0
- package/templates/static/lib/server/api.d.ts +6 -0
- package/templates/static/lib/server/api.js +124 -0
- package/templates/static/lib/server/app.d.ts +10 -0
- package/templates/static/lib/server/app.js +381 -0
- package/templates/static/lib/server/runtimeServe.d.ts +4 -0
- package/templates/static/lib/server/runtimeServe.js +125 -0
- package/templates/static/lib/shared/log.d.ts +5 -0
- package/templates/static/lib/shared/log.js +31 -0
- package/templates/static/node_modules/.bin/esbuild +16 -0
- package/templates/static/node_modules/.bin/esbuild.cmd +17 -0
- package/templates/static/node_modules/.bin/esbuild.ps1 +28 -0
- package/templates/static/node_modules/.bin/tsc +16 -0
- package/templates/static/node_modules/.bin/tsc.cmd +17 -0
- package/templates/static/node_modules/.bin/tsc.ps1 +28 -0
- package/templates/static/node_modules/.bin/tsserver +16 -0
- package/templates/static/node_modules/.bin/tsserver.cmd +17 -0
- package/templates/static/node_modules/.bin/tsserver.ps1 +28 -0
- package/templates/static/node_modules/.jen/cache/B__Jen.js_packages_create-jen-app_templates_static_site_(home).tsx.mjs +14 -0
- package/templates/static/node_modules/.jen/cache/B__Jen.js_packages_create-jen-app_yo_site_(home).tsx.mjs +11 -0
- package/templates/static/node_modules/.package-lock.json +585 -0
- package/templates/static/node_modules/@esbuild/win32-x64/README.md +3 -0
- package/templates/static/node_modules/@esbuild/win32-x64/esbuild.exe +0 -0
- package/templates/static/node_modules/@esbuild/win32-x64/package.json +20 -0
- package/templates/static/node_modules/@jenjs/master/README.md +24 -0
- package/templates/static/node_modules/@jenjs/master/index.js +3655 -0
- package/templates/static/node_modules/@jenjs/master/package.json +36 -0
- package/templates/static/node_modules/@polka/url/build.js +49 -0
- package/templates/static/node_modules/@polka/url/build.mjs +47 -0
- package/templates/static/node_modules/@polka/url/index.d.ts +11 -0
- package/templates/static/node_modules/@polka/url/package.json +30 -0
- package/templates/static/node_modules/@polka/url/readme.md +68 -0
- package/templates/static/node_modules/@types/node/LICENSE +21 -0
- package/templates/static/node_modules/@types/node/README.md +15 -0
- package/templates/static/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/templates/static/node_modules/@types/node/assert.d.ts +1078 -0
- package/templates/static/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/templates/static/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/templates/static/node_modules/@types/node/buffer.d.ts +1934 -0
- package/templates/static/node_modules/@types/node/child_process.d.ts +1476 -0
- package/templates/static/node_modules/@types/node/cluster.d.ts +578 -0
- package/templates/static/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/templates/static/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/templates/static/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/templates/static/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/templates/static/node_modules/@types/node/console.d.ts +452 -0
- package/templates/static/node_modules/@types/node/constants.d.ts +21 -0
- package/templates/static/node_modules/@types/node/crypto.d.ts +4545 -0
- package/templates/static/node_modules/@types/node/dgram.d.ts +600 -0
- package/templates/static/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/templates/static/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/templates/static/node_modules/@types/node/dns.d.ts +923 -0
- package/templates/static/node_modules/@types/node/domain.d.ts +170 -0
- package/templates/static/node_modules/@types/node/events.d.ts +976 -0
- package/templates/static/node_modules/@types/node/fs/promises.d.ts +1295 -0
- package/templates/static/node_modules/@types/node/fs.d.ts +4461 -0
- package/templates/static/node_modules/@types/node/globals.d.ts +172 -0
- package/templates/static/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/templates/static/node_modules/@types/node/http.d.ts +2089 -0
- package/templates/static/node_modules/@types/node/http2.d.ts +2644 -0
- package/templates/static/node_modules/@types/node/https.d.ts +579 -0
- package/templates/static/node_modules/@types/node/index.d.ts +97 -0
- package/templates/static/node_modules/@types/node/inspector.d.ts +253 -0
- package/templates/static/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/templates/static/node_modules/@types/node/module.d.ts +891 -0
- package/templates/static/node_modules/@types/node/net.d.ts +1057 -0
- package/templates/static/node_modules/@types/node/os.d.ts +506 -0
- package/templates/static/node_modules/@types/node/package.json +145 -0
- package/templates/static/node_modules/@types/node/path.d.ts +200 -0
- package/templates/static/node_modules/@types/node/perf_hooks.d.ts +968 -0
- package/templates/static/node_modules/@types/node/process.d.ts +2089 -0
- package/templates/static/node_modules/@types/node/punycode.d.ts +117 -0
- package/templates/static/node_modules/@types/node/querystring.d.ts +152 -0
- package/templates/static/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/templates/static/node_modules/@types/node/readline.d.ts +594 -0
- package/templates/static/node_modules/@types/node/repl.d.ts +428 -0
- package/templates/static/node_modules/@types/node/sea.d.ts +153 -0
- package/templates/static/node_modules/@types/node/sqlite.d.ts +721 -0
- package/templates/static/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/templates/static/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/templates/static/node_modules/@types/node/stream/web.d.ts +622 -0
- package/templates/static/node_modules/@types/node/stream.d.ts +1664 -0
- package/templates/static/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/templates/static/node_modules/@types/node/test.d.ts +2163 -0
- package/templates/static/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/templates/static/node_modules/@types/node/timers.d.ts +287 -0
- package/templates/static/node_modules/@types/node/tls.d.ts +1319 -0
- package/templates/static/node_modules/@types/node/trace_events.d.ts +197 -0
- package/templates/static/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/templates/static/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/templates/static/node_modules/@types/node/ts5.6/index.d.ts +97 -0
- package/templates/static/node_modules/@types/node/tty.d.ts +208 -0
- package/templates/static/node_modules/@types/node/url.d.ts +984 -0
- package/templates/static/node_modules/@types/node/util.d.ts +2606 -0
- package/templates/static/node_modules/@types/node/v8.d.ts +920 -0
- package/templates/static/node_modules/@types/node/vm.d.ts +1000 -0
- package/templates/static/node_modules/@types/node/wasi.d.ts +181 -0
- package/templates/static/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/templates/static/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/templates/static/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/templates/static/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/templates/static/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/templates/static/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/templates/static/node_modules/@types/node/worker_threads.d.ts +784 -0
- package/templates/static/node_modules/@types/node/zlib.d.ts +683 -0
- package/templates/static/node_modules/esbuild/LICENSE.md +21 -0
- package/templates/static/node_modules/esbuild/README.md +3 -0
- package/templates/static/node_modules/esbuild/bin/esbuild +223 -0
- package/templates/static/node_modules/esbuild/install.js +289 -0
- package/templates/static/node_modules/esbuild/lib/main.d.ts +716 -0
- package/templates/static/node_modules/esbuild/lib/main.js +2242 -0
- package/templates/static/node_modules/esbuild/package.json +49 -0
- package/templates/static/node_modules/mrmime/index.d.ts +2 -0
- package/templates/static/node_modules/mrmime/index.js +449 -0
- package/templates/static/node_modules/mrmime/index.mjs +448 -0
- package/templates/static/node_modules/mrmime/license +21 -0
- package/templates/static/node_modules/mrmime/package.json +44 -0
- package/templates/static/node_modules/mrmime/readme.md +130 -0
- package/templates/static/node_modules/preact/LICENSE +21 -0
- package/templates/static/node_modules/preact/README.md +185 -0
- package/templates/static/node_modules/preact/compat/client.d.ts +13 -0
- package/templates/static/node_modules/preact/compat/client.js +21 -0
- package/templates/static/node_modules/preact/compat/client.mjs +24 -0
- package/templates/static/node_modules/preact/compat/dist/compat.js +2 -0
- package/templates/static/node_modules/preact/compat/dist/compat.js.map +1 -0
- package/templates/static/node_modules/preact/compat/dist/compat.mjs +2 -0
- package/templates/static/node_modules/preact/compat/dist/compat.module.js +2 -0
- package/templates/static/node_modules/preact/compat/dist/compat.module.js.map +1 -0
- package/templates/static/node_modules/preact/compat/dist/compat.umd.js +2 -0
- package/templates/static/node_modules/preact/compat/dist/compat.umd.js.map +1 -0
- package/templates/static/node_modules/preact/compat/jsx-dev-runtime.js +3 -0
- package/templates/static/node_modules/preact/compat/jsx-dev-runtime.mjs +3 -0
- package/templates/static/node_modules/preact/compat/jsx-runtime.js +3 -0
- package/templates/static/node_modules/preact/compat/jsx-runtime.mjs +3 -0
- package/templates/static/node_modules/preact/compat/package.json +55 -0
- package/templates/static/node_modules/preact/compat/scheduler.js +15 -0
- package/templates/static/node_modules/preact/compat/scheduler.mjs +23 -0
- package/templates/static/node_modules/preact/compat/server.browser.js +11 -0
- package/templates/static/node_modules/preact/compat/server.js +36 -0
- package/templates/static/node_modules/preact/compat/server.mjs +17 -0
- package/templates/static/node_modules/preact/compat/src/Children.js +21 -0
- package/templates/static/node_modules/preact/compat/src/PureComponent.js +16 -0
- package/templates/static/node_modules/preact/compat/src/forwardRef.js +44 -0
- package/templates/static/node_modules/preact/compat/src/hooks.js +70 -0
- package/templates/static/node_modules/preact/compat/src/index.d.ts +351 -0
- package/templates/static/node_modules/preact/compat/src/index.js +238 -0
- package/templates/static/node_modules/preact/compat/src/internal.d.ts +48 -0
- package/templates/static/node_modules/preact/compat/src/memo.js +35 -0
- package/templates/static/node_modules/preact/compat/src/portals.js +78 -0
- package/templates/static/node_modules/preact/compat/src/render.js +313 -0
- package/templates/static/node_modules/preact/compat/src/suspense-list.d.ts +16 -0
- package/templates/static/node_modules/preact/compat/src/suspense-list.js +127 -0
- package/templates/static/node_modules/preact/compat/src/suspense.d.ts +19 -0
- package/templates/static/node_modules/preact/compat/src/suspense.js +291 -0
- package/templates/static/node_modules/preact/compat/src/util.js +33 -0
- package/templates/static/node_modules/preact/compat/test-utils.js +1 -0
- package/templates/static/node_modules/preact/compat/test-utils.mjs +1 -0
- package/templates/static/node_modules/preact/debug/dist/debug.js +2 -0
- package/templates/static/node_modules/preact/debug/dist/debug.js.map +1 -0
- package/templates/static/node_modules/preact/debug/dist/debug.mjs +2 -0
- package/templates/static/node_modules/preact/debug/dist/debug.module.js +2 -0
- package/templates/static/node_modules/preact/debug/dist/debug.module.js.map +1 -0
- package/templates/static/node_modules/preact/debug/dist/debug.umd.js +2 -0
- package/templates/static/node_modules/preact/debug/dist/debug.umd.js.map +1 -0
- package/templates/static/node_modules/preact/debug/package.json +27 -0
- package/templates/static/node_modules/preact/debug/src/check-props.js +54 -0
- package/templates/static/node_modules/preact/debug/src/component-stack.js +146 -0
- package/templates/static/node_modules/preact/debug/src/constants.js +3 -0
- package/templates/static/node_modules/preact/debug/src/debug.js +593 -0
- package/templates/static/node_modules/preact/debug/src/index.d.ts +23 -0
- package/templates/static/node_modules/preact/debug/src/index.js +12 -0
- package/templates/static/node_modules/preact/debug/src/internal.d.ts +82 -0
- package/templates/static/node_modules/preact/debug/src/util.js +15 -0
- package/templates/static/node_modules/preact/devtools/dist/devtools.js +2 -0
- package/templates/static/node_modules/preact/devtools/dist/devtools.js.map +1 -0
- package/templates/static/node_modules/preact/devtools/dist/devtools.mjs +2 -0
- package/templates/static/node_modules/preact/devtools/dist/devtools.module.js +2 -0
- package/templates/static/node_modules/preact/devtools/dist/devtools.module.js.map +1 -0
- package/templates/static/node_modules/preact/devtools/dist/devtools.umd.js +2 -0
- package/templates/static/node_modules/preact/devtools/dist/devtools.umd.js.map +1 -0
- package/templates/static/node_modules/preact/devtools/package.json +25 -0
- package/templates/static/node_modules/preact/devtools/src/devtools.js +21 -0
- package/templates/static/node_modules/preact/devtools/src/index.d.ts +8 -0
- package/templates/static/node_modules/preact/devtools/src/index.js +15 -0
- package/templates/static/node_modules/preact/dist/preact.js +2 -0
- package/templates/static/node_modules/preact/dist/preact.js.map +1 -0
- package/templates/static/node_modules/preact/dist/preact.min.js +2 -0
- package/templates/static/node_modules/preact/dist/preact.min.js.map +1 -0
- package/templates/static/node_modules/preact/dist/preact.min.module.js +2 -0
- package/templates/static/node_modules/preact/dist/preact.min.module.js.map +1 -0
- package/templates/static/node_modules/preact/dist/preact.min.umd.js +2 -0
- package/templates/static/node_modules/preact/dist/preact.min.umd.js.map +1 -0
- package/templates/static/node_modules/preact/dist/preact.mjs +2 -0
- package/templates/static/node_modules/preact/dist/preact.module.js +2 -0
- package/templates/static/node_modules/preact/dist/preact.module.js.map +1 -0
- package/templates/static/node_modules/preact/dist/preact.umd.js +2 -0
- package/templates/static/node_modules/preact/dist/preact.umd.js.map +1 -0
- package/templates/static/node_modules/preact/hooks/dist/hooks.js +2 -0
- package/templates/static/node_modules/preact/hooks/dist/hooks.js.map +1 -0
- package/templates/static/node_modules/preact/hooks/dist/hooks.mjs +2 -0
- package/templates/static/node_modules/preact/hooks/dist/hooks.module.js +2 -0
- package/templates/static/node_modules/preact/hooks/dist/hooks.module.js.map +1 -0
- package/templates/static/node_modules/preact/hooks/dist/hooks.umd.js +2 -0
- package/templates/static/node_modules/preact/hooks/dist/hooks.umd.js.map +1 -0
- package/templates/static/node_modules/preact/hooks/package.json +35 -0
- package/templates/static/node_modules/preact/hooks/src/index.d.ts +145 -0
- package/templates/static/node_modules/preact/hooks/src/index.js +555 -0
- package/templates/static/node_modules/preact/hooks/src/internal.d.ts +103 -0
- package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.js +2 -0
- package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -0
- package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
- package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +2 -0
- package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -0
- package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js +2 -0
- package/templates/static/node_modules/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -0
- package/templates/static/node_modules/preact/jsx-runtime/package.json +28 -0
- package/templates/static/node_modules/preact/jsx-runtime/src/index.d.ts +62 -0
- package/templates/static/node_modules/preact/jsx-runtime/src/index.js +206 -0
- package/templates/static/node_modules/preact/jsx-runtime/src/utils.js +36 -0
- package/templates/static/node_modules/preact/package.json +258 -0
- package/templates/static/node_modules/preact/src/cjs.js +3 -0
- package/templates/static/node_modules/preact/src/clone-element.js +48 -0
- package/templates/static/node_modules/preact/src/component.js +249 -0
- package/templates/static/node_modules/preact/src/constants.js +22 -0
- package/templates/static/node_modules/preact/src/create-context.js +60 -0
- package/templates/static/node_modules/preact/src/create-element.js +97 -0
- package/templates/static/node_modules/preact/src/diff/catch-error.js +46 -0
- package/templates/static/node_modules/preact/src/diff/children.js +451 -0
- package/templates/static/node_modules/preact/src/diff/index.js +684 -0
- package/templates/static/node_modules/preact/src/diff/props.js +173 -0
- package/templates/static/node_modules/preact/src/dom.d.ts +2476 -0
- package/templates/static/node_modules/preact/src/index-5.d.ts +399 -0
- package/templates/static/node_modules/preact/src/index.d.ts +402 -0
- package/templates/static/node_modules/preact/src/index.js +13 -0
- package/templates/static/node_modules/preact/src/internal.d.ts +190 -0
- package/templates/static/node_modules/preact/src/jsx.d.ts +2878 -0
- package/templates/static/node_modules/preact/src/options.js +16 -0
- package/templates/static/node_modules/preact/src/render.js +78 -0
- package/templates/static/node_modules/preact/src/util.js +28 -0
- package/templates/static/node_modules/preact/test-utils/dist/testUtils.js +2 -0
- package/templates/static/node_modules/preact/test-utils/dist/testUtils.js.map +1 -0
- package/templates/static/node_modules/preact/test-utils/dist/testUtils.mjs +2 -0
- package/templates/static/node_modules/preact/test-utils/dist/testUtils.module.js +2 -0
- package/templates/static/node_modules/preact/test-utils/dist/testUtils.module.js.map +1 -0
- package/templates/static/node_modules/preact/test-utils/dist/testUtils.umd.js +2 -0
- package/templates/static/node_modules/preact/test-utils/dist/testUtils.umd.js.map +1 -0
- package/templates/static/node_modules/preact/test-utils/package.json +28 -0
- package/templates/static/node_modules/preact/test-utils/src/index.d.ts +3 -0
- package/templates/static/node_modules/preact/test-utils/src/index.js +129 -0
- package/templates/static/node_modules/preact-render-to-string/LICENSE +21 -0
- package/templates/static/node_modules/preact-render-to-string/README.md +149 -0
- package/templates/static/node_modules/preact-render-to-string/dist/commonjs.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.d.ts +17 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.js +6 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.mjs +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.module.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.module.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.umd.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/index.umd.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/internal.d.ts +35 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/commonjs.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.js +4 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.mjs +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.module.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.module.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.umd.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx/index.umd.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/jsx.d.ts +24 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/index.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/index.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/index.mjs +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/index.module.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/index.module.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/index.umd.js +2 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/index.umd.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.js +884 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.mjs +884 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.module.js +884 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.module.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.umd.js +888 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream/node/index.umd.js.map +1 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream-node.d.ts +19 -0
- package/templates/static/node_modules/preact-render-to-string/dist/stream.d.ts +10 -0
- package/templates/static/node_modules/preact-render-to-string/jsx.d.ts +24 -0
- package/templates/static/node_modules/preact-render-to-string/jsx.js +1 -0
- package/templates/static/node_modules/preact-render-to-string/package.json +152 -0
- package/templates/static/node_modules/preact-render-to-string/src/index.d.ts +17 -0
- package/templates/static/node_modules/preact-render-to-string/src/index.js +764 -0
- package/templates/static/node_modules/preact-render-to-string/src/internal.d.ts +35 -0
- package/templates/static/node_modules/preact-render-to-string/src/jsx.d.ts +24 -0
- package/templates/static/node_modules/preact-render-to-string/src/jsx.js +102 -0
- package/templates/static/node_modules/preact-render-to-string/src/lib/chunked.js +97 -0
- package/templates/static/node_modules/preact-render-to-string/src/lib/client.js +62 -0
- package/templates/static/node_modules/preact-render-to-string/src/lib/constants.js +20 -0
- package/templates/static/node_modules/preact-render-to-string/src/lib/polyfills.js +8 -0
- package/templates/static/node_modules/preact-render-to-string/src/lib/util.js +208 -0
- package/templates/static/node_modules/preact-render-to-string/src/pretty.js +491 -0
- package/templates/static/node_modules/preact-render-to-string/src/stream-node.d.ts +19 -0
- package/templates/static/node_modules/preact-render-to-string/src/stream-node.js +84 -0
- package/templates/static/node_modules/preact-render-to-string/src/stream.d.ts +10 -0
- package/templates/static/node_modules/preact-render-to-string/src/stream.js +43 -0
- package/templates/static/node_modules/preact-render-to-string/typings.json +5 -0
- package/templates/static/node_modules/sirv/build.js +197 -0
- package/templates/static/node_modules/sirv/build.mjs +197 -0
- package/templates/static/node_modules/sirv/index.d.mts +29 -0
- package/templates/static/node_modules/sirv/index.d.ts +33 -0
- package/templates/static/node_modules/sirv/package.json +40 -0
- package/templates/static/node_modules/sirv/readme.md +238 -0
- package/templates/static/node_modules/totalist/dist/index.js +24 -0
- package/templates/static/node_modules/totalist/dist/index.mjs +22 -0
- package/templates/static/node_modules/totalist/index.d.ts +3 -0
- package/templates/static/node_modules/totalist/license +21 -0
- package/templates/static/node_modules/totalist/package.json +55 -0
- package/templates/static/node_modules/totalist/readme.md +109 -0
- package/templates/static/node_modules/totalist/sync/index.d.ts +3 -0
- package/templates/static/node_modules/totalist/sync/index.js +17 -0
- package/templates/static/node_modules/totalist/sync/index.mjs +15 -0
- package/templates/static/node_modules/typescript/bin/tsc +2 -0
- package/templates/static/node_modules/typescript/bin/tsserver +2 -0
- package/templates/static/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/lib.d.ts +22 -0
- package/templates/static/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/templates/static/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/templates/static/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/templates/static/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/templates/static/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/templates/static/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/templates/static/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/templates/static/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/templates/static/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/templates/static/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/templates/static/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/templates/static/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/templates/static/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/templates/static/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/templates/static/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/templates/static/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/templates/static/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/templates/static/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/templates/static/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/templates/static/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/templates/static/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/templates/static/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/templates/static/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/templates/static/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/templates/static/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/templates/static/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/templates/static/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/templates/static/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/templates/static/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/templates/static/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/templates/static/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/templates/static/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/templates/static/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/templates/static/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/templates/static/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/templates/static/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/templates/static/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/templates/static/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/templates/static/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/templates/static/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/templates/static/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/templates/static/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- package/templates/static/node_modules/typescript/lib/tsc.js +8 -0
- package/templates/static/node_modules/typescript/lib/tsserver.js +8 -0
- package/templates/static/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/templates/static/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/templates/static/node_modules/typescript/lib/typescript.d.ts +11437 -0
- package/templates/static/package.json +20 -0
- package/templates/static/server.js +130 -0
- package/templates/static/site/(home).tsx +12 -0
- package/templates/static/site/styles/global.scss +78 -0
- package/templates/static/tsconfig.json +39 -0
|
@@ -0,0 +1,2476 @@
|
|
|
1
|
+
// Most of our DOM-ish types
|
|
2
|
+
|
|
3
|
+
import { ClassAttributes, PreactDOMAttributes } from 'preact';
|
|
4
|
+
|
|
5
|
+
// Implementations of some DOM events that are not available in TS 5.1
|
|
6
|
+
interface ToggleEvent extends Event {
|
|
7
|
+
readonly newState: string;
|
|
8
|
+
readonly oldState: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare var ToggleEvent: {
|
|
12
|
+
prototype: ToggleEvent;
|
|
13
|
+
new (type: string, eventInitDict?: ToggleEventInit): ToggleEvent;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
interface ToggleEventInit extends EventInit {
|
|
17
|
+
newState?: string;
|
|
18
|
+
oldState?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface CommandEvent extends Event {
|
|
22
|
+
readonly source: Element | null;
|
|
23
|
+
readonly command: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare var CommandEvent: {
|
|
27
|
+
prototype: CommandEvent;
|
|
28
|
+
new (type: string, eventInitDict?: CommandEventInit): CommandEvent;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
interface CommandEventInit extends EventInit {
|
|
32
|
+
source: Element | null;
|
|
33
|
+
command: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/SnapEvent) */
|
|
37
|
+
interface SnapEvent extends Event {
|
|
38
|
+
readonly snapTargetBlock: Element | null;
|
|
39
|
+
readonly snapTargetInline: Element | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare var SnapEvent: {
|
|
43
|
+
prototype: SnapEvent;
|
|
44
|
+
new (type: string, eventInitDict?: SnapEventInit): SnapEvent;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface SnapEventInit extends EventInit {
|
|
48
|
+
snapTargetBlock?: Element | null;
|
|
49
|
+
snapTargetInline?: Element | null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type Booleanish = boolean | 'true' | 'false';
|
|
53
|
+
|
|
54
|
+
export interface SignalLike<T> {
|
|
55
|
+
value: T;
|
|
56
|
+
peek(): T;
|
|
57
|
+
subscribe(fn: (value: T) => void): () => void;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type Signalish<T> = T | SignalLike<T>;
|
|
61
|
+
|
|
62
|
+
export type UnpackSignal<T> = T extends SignalLike<infer V> ? V : T;
|
|
63
|
+
|
|
64
|
+
export type DOMCSSProperties = {
|
|
65
|
+
[key in keyof Omit<
|
|
66
|
+
CSSStyleDeclaration,
|
|
67
|
+
| 'item'
|
|
68
|
+
| 'setProperty'
|
|
69
|
+
| 'removeProperty'
|
|
70
|
+
| 'getPropertyValue'
|
|
71
|
+
| 'getPropertyPriority'
|
|
72
|
+
>]?: string | number | null | undefined;
|
|
73
|
+
};
|
|
74
|
+
export type AllCSSProperties = {
|
|
75
|
+
[key: string]: string | number | null | undefined;
|
|
76
|
+
};
|
|
77
|
+
export interface CSSProperties extends AllCSSProperties, DOMCSSProperties {
|
|
78
|
+
cssText?: string | null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface SVGAttributes<Target extends EventTarget = SVGElement>
|
|
82
|
+
extends HTMLAttributes<Target> {
|
|
83
|
+
accentHeight?: Signalish<number | string | undefined>;
|
|
84
|
+
accumulate?: Signalish<'none' | 'sum' | undefined>;
|
|
85
|
+
additive?: Signalish<'replace' | 'sum' | undefined>;
|
|
86
|
+
alignmentBaseline?: Signalish<
|
|
87
|
+
| 'auto'
|
|
88
|
+
| 'baseline'
|
|
89
|
+
| 'before-edge'
|
|
90
|
+
| 'text-before-edge'
|
|
91
|
+
| 'middle'
|
|
92
|
+
| 'central'
|
|
93
|
+
| 'after-edge'
|
|
94
|
+
| 'text-after-edge'
|
|
95
|
+
| 'ideographic'
|
|
96
|
+
| 'alphabetic'
|
|
97
|
+
| 'hanging'
|
|
98
|
+
| 'mathematical'
|
|
99
|
+
| 'inherit'
|
|
100
|
+
| undefined
|
|
101
|
+
>;
|
|
102
|
+
'alignment-baseline'?: Signalish<
|
|
103
|
+
| 'auto'
|
|
104
|
+
| 'baseline'
|
|
105
|
+
| 'before-edge'
|
|
106
|
+
| 'text-before-edge'
|
|
107
|
+
| 'middle'
|
|
108
|
+
| 'central'
|
|
109
|
+
| 'after-edge'
|
|
110
|
+
| 'text-after-edge'
|
|
111
|
+
| 'ideographic'
|
|
112
|
+
| 'alphabetic'
|
|
113
|
+
| 'hanging'
|
|
114
|
+
| 'mathematical'
|
|
115
|
+
| 'inherit'
|
|
116
|
+
| undefined
|
|
117
|
+
>;
|
|
118
|
+
allowReorder?: Signalish<'no' | 'yes' | undefined>;
|
|
119
|
+
'allow-reorder'?: Signalish<'no' | 'yes' | undefined>;
|
|
120
|
+
alphabetic?: Signalish<number | string | undefined>;
|
|
121
|
+
amplitude?: Signalish<number | string | undefined>;
|
|
122
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */
|
|
123
|
+
arabicForm?: Signalish<
|
|
124
|
+
'initial' | 'medial' | 'terminal' | 'isolated' | undefined
|
|
125
|
+
>;
|
|
126
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/arabic-form */
|
|
127
|
+
'arabic-form'?: Signalish<
|
|
128
|
+
'initial' | 'medial' | 'terminal' | 'isolated' | undefined
|
|
129
|
+
>;
|
|
130
|
+
ascent?: Signalish<number | string | undefined>;
|
|
131
|
+
attributeName?: Signalish<string | undefined>;
|
|
132
|
+
attributeType?: Signalish<string | undefined>;
|
|
133
|
+
azimuth?: Signalish<number | string | undefined>;
|
|
134
|
+
baseFrequency?: Signalish<number | string | undefined>;
|
|
135
|
+
baselineShift?: Signalish<number | string | undefined>;
|
|
136
|
+
'baseline-shift'?: Signalish<number | string | undefined>;
|
|
137
|
+
baseProfile?: Signalish<number | string | undefined>;
|
|
138
|
+
bbox?: Signalish<number | string | undefined>;
|
|
139
|
+
begin?: Signalish<number | string | undefined>;
|
|
140
|
+
bias?: Signalish<number | string | undefined>;
|
|
141
|
+
by?: Signalish<number | string | undefined>;
|
|
142
|
+
calcMode?: Signalish<number | string | undefined>;
|
|
143
|
+
capHeight?: Signalish<number | string | undefined>;
|
|
144
|
+
'cap-height'?: Signalish<number | string | undefined>;
|
|
145
|
+
clip?: Signalish<number | string | undefined>;
|
|
146
|
+
clipPath?: Signalish<string | undefined>;
|
|
147
|
+
'clip-path'?: Signalish<string | undefined>;
|
|
148
|
+
clipPathUnits?: Signalish<number | string | undefined>;
|
|
149
|
+
clipRule?: Signalish<number | string | undefined>;
|
|
150
|
+
'clip-rule'?: Signalish<number | string | undefined>;
|
|
151
|
+
colorInterpolation?: Signalish<number | string | undefined>;
|
|
152
|
+
'color-interpolation'?: Signalish<number | string | undefined>;
|
|
153
|
+
colorInterpolationFilters?: Signalish<
|
|
154
|
+
'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined
|
|
155
|
+
>;
|
|
156
|
+
'color-interpolation-filters'?: Signalish<
|
|
157
|
+
'auto' | 'sRGB' | 'linearRGB' | 'inherit' | undefined
|
|
158
|
+
>;
|
|
159
|
+
colorProfile?: Signalish<number | string | undefined>;
|
|
160
|
+
'color-profile'?: Signalish<number | string | undefined>;
|
|
161
|
+
colorRendering?: Signalish<number | string | undefined>;
|
|
162
|
+
'color-rendering'?: Signalish<number | string | undefined>;
|
|
163
|
+
contentScriptType?: Signalish<number | string | undefined>;
|
|
164
|
+
'content-script-type'?: Signalish<number | string | undefined>;
|
|
165
|
+
contentStyleType?: Signalish<number | string | undefined>;
|
|
166
|
+
'content-style-type'?: Signalish<number | string | undefined>;
|
|
167
|
+
cursor?: Signalish<number | string | undefined>;
|
|
168
|
+
cx?: Signalish<number | string | undefined>;
|
|
169
|
+
cy?: Signalish<number | string | undefined>;
|
|
170
|
+
d?: Signalish<string | undefined>;
|
|
171
|
+
decelerate?: Signalish<number | string | undefined>;
|
|
172
|
+
descent?: Signalish<number | string | undefined>;
|
|
173
|
+
diffuseConstant?: Signalish<number | string | undefined>;
|
|
174
|
+
direction?: Signalish<number | string | undefined>;
|
|
175
|
+
display?: Signalish<number | string | undefined>;
|
|
176
|
+
divisor?: Signalish<number | string | undefined>;
|
|
177
|
+
dominantBaseline?: Signalish<number | string | undefined>;
|
|
178
|
+
'dominant-baseline'?: Signalish<number | string | undefined>;
|
|
179
|
+
dur?: Signalish<number | string | undefined>;
|
|
180
|
+
dx?: Signalish<number | string | undefined>;
|
|
181
|
+
dy?: Signalish<number | string | undefined>;
|
|
182
|
+
edgeMode?: Signalish<number | string | undefined>;
|
|
183
|
+
elevation?: Signalish<number | string | undefined>;
|
|
184
|
+
enableBackground?: Signalish<number | string | undefined>;
|
|
185
|
+
'enable-background'?: Signalish<number | string | undefined>;
|
|
186
|
+
end?: Signalish<number | string | undefined>;
|
|
187
|
+
exponent?: Signalish<number | string | undefined>;
|
|
188
|
+
externalResourcesRequired?: Signalish<number | string | undefined>;
|
|
189
|
+
fill?: Signalish<string | undefined>;
|
|
190
|
+
fillOpacity?: Signalish<number | string | undefined>;
|
|
191
|
+
'fill-opacity'?: Signalish<number | string | undefined>;
|
|
192
|
+
fillRule?: Signalish<'nonzero' | 'evenodd' | 'inherit' | undefined>;
|
|
193
|
+
'fill-rule'?: Signalish<'nonzero' | 'evenodd' | 'inherit' | undefined>;
|
|
194
|
+
filter?: Signalish<string | undefined>;
|
|
195
|
+
filterRes?: Signalish<number | string | undefined>;
|
|
196
|
+
filterUnits?: Signalish<number | string | undefined>;
|
|
197
|
+
floodColor?: Signalish<number | string | undefined>;
|
|
198
|
+
'flood-color'?: Signalish<number | string | undefined>;
|
|
199
|
+
floodOpacity?: Signalish<number | string | undefined>;
|
|
200
|
+
'flood-opacity'?: Signalish<number | string | undefined>;
|
|
201
|
+
focusable?: Signalish<number | string | undefined>;
|
|
202
|
+
fontFamily?: Signalish<string | undefined>;
|
|
203
|
+
'font-family'?: Signalish<string | undefined>;
|
|
204
|
+
fontSize?: Signalish<number | string | undefined>;
|
|
205
|
+
'font-size'?: Signalish<number | string | undefined>;
|
|
206
|
+
fontSizeAdjust?: Signalish<number | string | undefined>;
|
|
207
|
+
'font-size-adjust'?: Signalish<number | string | undefined>;
|
|
208
|
+
fontStretch?: Signalish<number | string | undefined>;
|
|
209
|
+
'font-stretch'?: Signalish<number | string | undefined>;
|
|
210
|
+
fontStyle?: Signalish<number | string | undefined>;
|
|
211
|
+
'font-style'?: Signalish<number | string | undefined>;
|
|
212
|
+
fontVariant?: Signalish<number | string | undefined>;
|
|
213
|
+
'font-variant'?: Signalish<number | string | undefined>;
|
|
214
|
+
fontWeight?: Signalish<number | string | undefined>;
|
|
215
|
+
'font-weight'?: Signalish<number | string | undefined>;
|
|
216
|
+
format?: Signalish<number | string | undefined>;
|
|
217
|
+
from?: Signalish<number | string | undefined>;
|
|
218
|
+
fx?: Signalish<number | string | undefined>;
|
|
219
|
+
fy?: Signalish<number | string | undefined>;
|
|
220
|
+
g1?: Signalish<number | string | undefined>;
|
|
221
|
+
g2?: Signalish<number | string | undefined>;
|
|
222
|
+
glyphName?: Signalish<number | string | undefined>;
|
|
223
|
+
'glyph-name'?: Signalish<number | string | undefined>;
|
|
224
|
+
glyphOrientationHorizontal?: Signalish<number | string | undefined>;
|
|
225
|
+
'glyph-orientation-horizontal'?: Signalish<number | string | undefined>;
|
|
226
|
+
glyphOrientationVertical?: Signalish<number | string | undefined>;
|
|
227
|
+
'glyph-orientation-vertical'?: Signalish<number | string | undefined>;
|
|
228
|
+
glyphRef?: Signalish<number | string | undefined>;
|
|
229
|
+
gradientTransform?: Signalish<string | undefined>;
|
|
230
|
+
gradientUnits?: Signalish<string | undefined>;
|
|
231
|
+
hanging?: Signalish<number | string | undefined>;
|
|
232
|
+
height?: Signalish<number | string | undefined>;
|
|
233
|
+
horizAdvX?: Signalish<number | string | undefined>;
|
|
234
|
+
'horiz-adv-x'?: Signalish<number | string | undefined>;
|
|
235
|
+
horizOriginX?: Signalish<number | string | undefined>;
|
|
236
|
+
'horiz-origin-x'?: Signalish<number | string | undefined>;
|
|
237
|
+
href?: Signalish<string | undefined>;
|
|
238
|
+
hreflang?: Signalish<string | undefined>;
|
|
239
|
+
hrefLang?: Signalish<string | undefined>;
|
|
240
|
+
ideographic?: Signalish<number | string | undefined>;
|
|
241
|
+
imageRendering?: Signalish<number | string | undefined>;
|
|
242
|
+
'image-rendering'?: Signalish<number | string | undefined>;
|
|
243
|
+
in2?: Signalish<number | string | undefined>;
|
|
244
|
+
in?: Signalish<string | undefined>;
|
|
245
|
+
intercept?: Signalish<number | string | undefined>;
|
|
246
|
+
k1?: Signalish<number | string | undefined>;
|
|
247
|
+
k2?: Signalish<number | string | undefined>;
|
|
248
|
+
k3?: Signalish<number | string | undefined>;
|
|
249
|
+
k4?: Signalish<number | string | undefined>;
|
|
250
|
+
k?: Signalish<number | string | undefined>;
|
|
251
|
+
kernelMatrix?: Signalish<number | string | undefined>;
|
|
252
|
+
kernelUnitLength?: Signalish<number | string | undefined>;
|
|
253
|
+
kerning?: Signalish<number | string | undefined>;
|
|
254
|
+
keyPoints?: Signalish<number | string | undefined>;
|
|
255
|
+
keySplines?: Signalish<number | string | undefined>;
|
|
256
|
+
keyTimes?: Signalish<number | string | undefined>;
|
|
257
|
+
lengthAdjust?: Signalish<number | string | undefined>;
|
|
258
|
+
letterSpacing?: Signalish<number | string | undefined>;
|
|
259
|
+
'letter-spacing'?: Signalish<number | string | undefined>;
|
|
260
|
+
lightingColor?: Signalish<number | string | undefined>;
|
|
261
|
+
'lighting-color'?: Signalish<number | string | undefined>;
|
|
262
|
+
limitingConeAngle?: Signalish<number | string | undefined>;
|
|
263
|
+
local?: Signalish<number | string | undefined>;
|
|
264
|
+
markerEnd?: Signalish<string | undefined>;
|
|
265
|
+
'marker-end'?: Signalish<string | undefined>;
|
|
266
|
+
markerHeight?: Signalish<number | string | undefined>;
|
|
267
|
+
markerMid?: Signalish<string | undefined>;
|
|
268
|
+
'marker-mid'?: Signalish<string | undefined>;
|
|
269
|
+
markerStart?: Signalish<string | undefined>;
|
|
270
|
+
'marker-start'?: Signalish<string | undefined>;
|
|
271
|
+
markerUnits?: Signalish<number | string | undefined>;
|
|
272
|
+
markerWidth?: Signalish<number | string | undefined>;
|
|
273
|
+
mask?: Signalish<string | undefined>;
|
|
274
|
+
maskContentUnits?: Signalish<number | string | undefined>;
|
|
275
|
+
maskUnits?: Signalish<number | string | undefined>;
|
|
276
|
+
mathematical?: Signalish<number | string | undefined>;
|
|
277
|
+
mode?: Signalish<number | string | undefined>;
|
|
278
|
+
numOctaves?: Signalish<number | string | undefined>;
|
|
279
|
+
offset?: Signalish<number | string | undefined>;
|
|
280
|
+
opacity?: Signalish<number | string | undefined>;
|
|
281
|
+
operator?: Signalish<number | string | undefined>;
|
|
282
|
+
order?: Signalish<number | string | undefined>;
|
|
283
|
+
orient?: Signalish<number | string | undefined>;
|
|
284
|
+
orientation?: Signalish<number | string | undefined>;
|
|
285
|
+
origin?: Signalish<number | string | undefined>;
|
|
286
|
+
overflow?: Signalish<number | string | undefined>;
|
|
287
|
+
overlinePosition?: Signalish<number | string | undefined>;
|
|
288
|
+
'overline-position'?: Signalish<number | string | undefined>;
|
|
289
|
+
overlineThickness?: Signalish<number | string | undefined>;
|
|
290
|
+
'overline-thickness'?: Signalish<number | string | undefined>;
|
|
291
|
+
paintOrder?: Signalish<number | string | undefined>;
|
|
292
|
+
'paint-order'?: Signalish<number | string | undefined>;
|
|
293
|
+
panose1?: Signalish<number | string | undefined>;
|
|
294
|
+
'panose-1'?: Signalish<number | string | undefined>;
|
|
295
|
+
pathLength?: Signalish<number | string | undefined>;
|
|
296
|
+
patternContentUnits?: Signalish<string | undefined>;
|
|
297
|
+
patternTransform?: Signalish<number | string | undefined>;
|
|
298
|
+
patternUnits?: Signalish<string | undefined>;
|
|
299
|
+
pointerEvents?: Signalish<number | string | undefined>;
|
|
300
|
+
'pointer-events'?: Signalish<number | string | undefined>;
|
|
301
|
+
points?: Signalish<string | undefined>;
|
|
302
|
+
pointsAtX?: Signalish<number | string | undefined>;
|
|
303
|
+
pointsAtY?: Signalish<number | string | undefined>;
|
|
304
|
+
pointsAtZ?: Signalish<number | string | undefined>;
|
|
305
|
+
preserveAlpha?: Signalish<number | string | undefined>;
|
|
306
|
+
preserveAspectRatio?: Signalish<string | undefined>;
|
|
307
|
+
primitiveUnits?: Signalish<number | string | undefined>;
|
|
308
|
+
r?: Signalish<number | string | undefined>;
|
|
309
|
+
radius?: Signalish<number | string | undefined>;
|
|
310
|
+
refX?: Signalish<number | string | undefined>;
|
|
311
|
+
refY?: Signalish<number | string | undefined>;
|
|
312
|
+
renderingIntent?: Signalish<number | string | undefined>;
|
|
313
|
+
'rendering-intent'?: Signalish<number | string | undefined>;
|
|
314
|
+
repeatCount?: Signalish<number | string | undefined>;
|
|
315
|
+
'repeat-count'?: Signalish<number | string | undefined>;
|
|
316
|
+
repeatDur?: Signalish<number | string | undefined>;
|
|
317
|
+
'repeat-dur'?: Signalish<number | string | undefined>;
|
|
318
|
+
requiredExtensions?: Signalish<number | string | undefined>;
|
|
319
|
+
requiredFeatures?: Signalish<number | string | undefined>;
|
|
320
|
+
restart?: Signalish<number | string | undefined>;
|
|
321
|
+
result?: Signalish<string | undefined>;
|
|
322
|
+
rotate?: Signalish<number | string | undefined>;
|
|
323
|
+
rx?: Signalish<number | string | undefined>;
|
|
324
|
+
ry?: Signalish<number | string | undefined>;
|
|
325
|
+
scale?: Signalish<number | string | undefined>;
|
|
326
|
+
seed?: Signalish<number | string | undefined>;
|
|
327
|
+
shapeRendering?: Signalish<number | string | undefined>;
|
|
328
|
+
'shape-rendering'?: Signalish<number | string | undefined>;
|
|
329
|
+
slope?: Signalish<number | string | undefined>;
|
|
330
|
+
spacing?: Signalish<number | string | undefined>;
|
|
331
|
+
specularConstant?: Signalish<number | string | undefined>;
|
|
332
|
+
specularExponent?: Signalish<number | string | undefined>;
|
|
333
|
+
speed?: Signalish<number | string | undefined>;
|
|
334
|
+
spreadMethod?: Signalish<string | undefined>;
|
|
335
|
+
startOffset?: Signalish<number | string | undefined>;
|
|
336
|
+
stdDeviation?: Signalish<number | string | undefined>;
|
|
337
|
+
stemh?: Signalish<number | string | undefined>;
|
|
338
|
+
stemv?: Signalish<number | string | undefined>;
|
|
339
|
+
stitchTiles?: Signalish<number | string | undefined>;
|
|
340
|
+
stopColor?: Signalish<string | undefined>;
|
|
341
|
+
'stop-color'?: Signalish<string | undefined>;
|
|
342
|
+
stopOpacity?: Signalish<number | string | undefined>;
|
|
343
|
+
'stop-opacity'?: Signalish<number | string | undefined>;
|
|
344
|
+
strikethroughPosition?: Signalish<number | string | undefined>;
|
|
345
|
+
'strikethrough-position'?: Signalish<number | string | undefined>;
|
|
346
|
+
strikethroughThickness?: Signalish<number | string | undefined>;
|
|
347
|
+
'strikethrough-thickness'?: Signalish<number | string | undefined>;
|
|
348
|
+
string?: Signalish<number | string | undefined>;
|
|
349
|
+
stroke?: Signalish<string | undefined>;
|
|
350
|
+
strokeDasharray?: Signalish<string | number | undefined>;
|
|
351
|
+
'stroke-dasharray'?: Signalish<string | number | undefined>;
|
|
352
|
+
strokeDashoffset?: Signalish<string | number | undefined>;
|
|
353
|
+
'stroke-dashoffset'?: Signalish<string | number | undefined>;
|
|
354
|
+
strokeLinecap?: Signalish<
|
|
355
|
+
'butt' | 'round' | 'square' | 'inherit' | undefined
|
|
356
|
+
>;
|
|
357
|
+
'stroke-linecap'?: Signalish<
|
|
358
|
+
'butt' | 'round' | 'square' | 'inherit' | undefined
|
|
359
|
+
>;
|
|
360
|
+
strokeLinejoin?: Signalish<
|
|
361
|
+
'miter' | 'round' | 'bevel' | 'inherit' | undefined
|
|
362
|
+
>;
|
|
363
|
+
'stroke-linejoin'?: Signalish<
|
|
364
|
+
'miter' | 'round' | 'bevel' | 'inherit' | undefined
|
|
365
|
+
>;
|
|
366
|
+
strokeMiterlimit?: Signalish<string | number | undefined>;
|
|
367
|
+
'stroke-miterlimit'?: Signalish<string | number | undefined>;
|
|
368
|
+
strokeOpacity?: Signalish<number | string | undefined>;
|
|
369
|
+
'stroke-opacity'?: Signalish<number | string | undefined>;
|
|
370
|
+
strokeWidth?: Signalish<number | string | undefined>;
|
|
371
|
+
'stroke-width'?: Signalish<number | string | undefined>;
|
|
372
|
+
surfaceScale?: Signalish<number | string | undefined>;
|
|
373
|
+
systemLanguage?: Signalish<number | string | undefined>;
|
|
374
|
+
tableValues?: Signalish<number | string | undefined>;
|
|
375
|
+
targetX?: Signalish<number | string | undefined>;
|
|
376
|
+
targetY?: Signalish<number | string | undefined>;
|
|
377
|
+
textAnchor?: Signalish<string | undefined>;
|
|
378
|
+
'text-anchor'?: Signalish<string | undefined>;
|
|
379
|
+
textDecoration?: Signalish<number | string | undefined>;
|
|
380
|
+
'text-decoration'?: Signalish<number | string | undefined>;
|
|
381
|
+
textLength?: Signalish<number | string | undefined>;
|
|
382
|
+
textRendering?: Signalish<number | string | undefined>;
|
|
383
|
+
'text-rendering'?: Signalish<number | string | undefined>;
|
|
384
|
+
to?: Signalish<number | string | undefined>;
|
|
385
|
+
transform?: Signalish<string | undefined>;
|
|
386
|
+
transformOrigin?: Signalish<string | undefined>;
|
|
387
|
+
'transform-origin'?: Signalish<string | undefined>;
|
|
388
|
+
type?: Signalish<string | undefined>;
|
|
389
|
+
u1?: Signalish<number | string | undefined>;
|
|
390
|
+
u2?: Signalish<number | string | undefined>;
|
|
391
|
+
underlinePosition?: Signalish<number | string | undefined>;
|
|
392
|
+
'underline-position'?: Signalish<number | string | undefined>;
|
|
393
|
+
underlineThickness?: Signalish<number | string | undefined>;
|
|
394
|
+
'underline-thickness'?: Signalish<number | string | undefined>;
|
|
395
|
+
unicode?: Signalish<number | string | undefined>;
|
|
396
|
+
unicodeBidi?: Signalish<number | string | undefined>;
|
|
397
|
+
'unicode-bidi'?: Signalish<number | string | undefined>;
|
|
398
|
+
unicodeRange?: Signalish<number | string | undefined>;
|
|
399
|
+
'unicode-range'?: Signalish<number | string | undefined>;
|
|
400
|
+
unitsPerEm?: Signalish<number | string | undefined>;
|
|
401
|
+
'units-per-em'?: Signalish<number | string | undefined>;
|
|
402
|
+
vAlphabetic?: Signalish<number | string | undefined>;
|
|
403
|
+
'v-alphabetic'?: Signalish<number | string | undefined>;
|
|
404
|
+
values?: Signalish<string | undefined>;
|
|
405
|
+
vectorEffect?: Signalish<number | string | undefined>;
|
|
406
|
+
'vector-effect'?: Signalish<number | string | undefined>;
|
|
407
|
+
version?: Signalish<string | undefined>;
|
|
408
|
+
vertAdvY?: Signalish<number | string | undefined>;
|
|
409
|
+
'vert-adv-y'?: Signalish<number | string | undefined>;
|
|
410
|
+
vertOriginX?: Signalish<number | string | undefined>;
|
|
411
|
+
'vert-origin-x'?: Signalish<number | string | undefined>;
|
|
412
|
+
vertOriginY?: Signalish<number | string | undefined>;
|
|
413
|
+
'vert-origin-y'?: Signalish<number | string | undefined>;
|
|
414
|
+
vHanging?: Signalish<number | string | undefined>;
|
|
415
|
+
'v-hanging'?: Signalish<number | string | undefined>;
|
|
416
|
+
vIdeographic?: Signalish<number | string | undefined>;
|
|
417
|
+
'v-ideographic'?: Signalish<number | string | undefined>;
|
|
418
|
+
viewBox?: Signalish<string | undefined>;
|
|
419
|
+
viewTarget?: Signalish<number | string | undefined>;
|
|
420
|
+
visibility?: Signalish<number | string | undefined>;
|
|
421
|
+
vMathematical?: Signalish<number | string | undefined>;
|
|
422
|
+
'v-mathematical'?: Signalish<number | string | undefined>;
|
|
423
|
+
width?: Signalish<number | string | undefined>;
|
|
424
|
+
wordSpacing?: Signalish<number | string | undefined>;
|
|
425
|
+
'word-spacing'?: Signalish<number | string | undefined>;
|
|
426
|
+
writingMode?: Signalish<number | string | undefined>;
|
|
427
|
+
'writing-mode'?: Signalish<number | string | undefined>;
|
|
428
|
+
x1?: Signalish<number | string | undefined>;
|
|
429
|
+
x2?: Signalish<number | string | undefined>;
|
|
430
|
+
x?: Signalish<number | string | undefined>;
|
|
431
|
+
xChannelSelector?: Signalish<string | undefined>;
|
|
432
|
+
xHeight?: Signalish<number | string | undefined>;
|
|
433
|
+
'x-height'?: Signalish<number | string | undefined>;
|
|
434
|
+
xlinkActuate?: Signalish<string | undefined>;
|
|
435
|
+
'xlink:actuate'?: Signalish<SVGAttributes['xlinkActuate']>;
|
|
436
|
+
xlinkArcrole?: Signalish<string | undefined>;
|
|
437
|
+
'xlink:arcrole'?: Signalish<string | undefined>;
|
|
438
|
+
xlinkHref?: Signalish<string | undefined>;
|
|
439
|
+
'xlink:href'?: Signalish<string | undefined>;
|
|
440
|
+
xlinkRole?: Signalish<string | undefined>;
|
|
441
|
+
'xlink:role'?: Signalish<string | undefined>;
|
|
442
|
+
xlinkShow?: Signalish<string | undefined>;
|
|
443
|
+
'xlink:show'?: Signalish<string | undefined>;
|
|
444
|
+
xlinkTitle?: Signalish<string | undefined>;
|
|
445
|
+
'xlink:title'?: Signalish<string | undefined>;
|
|
446
|
+
xlinkType?: Signalish<string | undefined>;
|
|
447
|
+
'xlink:type'?: Signalish<string | undefined>;
|
|
448
|
+
xmlBase?: Signalish<string | undefined>;
|
|
449
|
+
'xml:base'?: Signalish<string | undefined>;
|
|
450
|
+
xmlLang?: Signalish<string | undefined>;
|
|
451
|
+
'xml:lang'?: Signalish<string | undefined>;
|
|
452
|
+
xmlns?: Signalish<string | undefined>;
|
|
453
|
+
xmlnsXlink?: Signalish<string | undefined>;
|
|
454
|
+
xmlSpace?: Signalish<string | undefined>;
|
|
455
|
+
'xml:space'?: Signalish<string | undefined>;
|
|
456
|
+
y1?: Signalish<number | string | undefined>;
|
|
457
|
+
y2?: Signalish<number | string | undefined>;
|
|
458
|
+
y?: Signalish<number | string | undefined>;
|
|
459
|
+
yChannelSelector?: Signalish<string | undefined>;
|
|
460
|
+
z?: Signalish<number | string | undefined>;
|
|
461
|
+
zoomAndPan?: Signalish<string | undefined>;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export interface PathAttributes {
|
|
465
|
+
d: string;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
export type TargetedEvent<
|
|
469
|
+
Target extends EventTarget = EventTarget,
|
|
470
|
+
TypedEvent extends Event = Event
|
|
471
|
+
> = Omit<TypedEvent, 'currentTarget'> & {
|
|
472
|
+
readonly currentTarget: Target;
|
|
473
|
+
};
|
|
474
|
+
|
|
475
|
+
export type TargetedAnimationEvent<Target extends EventTarget> = TargetedEvent<
|
|
476
|
+
Target,
|
|
477
|
+
AnimationEvent
|
|
478
|
+
>;
|
|
479
|
+
export type TargetedClipboardEvent<Target extends EventTarget> = TargetedEvent<
|
|
480
|
+
Target,
|
|
481
|
+
ClipboardEvent
|
|
482
|
+
>;
|
|
483
|
+
export type TargetedCommandEvent<Target extends EventTarget> = TargetedEvent<
|
|
484
|
+
Target,
|
|
485
|
+
CommandEvent
|
|
486
|
+
>;
|
|
487
|
+
export type TargetedCompositionEvent<Target extends EventTarget> =
|
|
488
|
+
TargetedEvent<Target, CompositionEvent>;
|
|
489
|
+
export type TargetedDragEvent<Target extends EventTarget> = TargetedEvent<
|
|
490
|
+
Target,
|
|
491
|
+
DragEvent
|
|
492
|
+
>;
|
|
493
|
+
export type TargetedFocusEvent<Target extends EventTarget> = TargetedEvent<
|
|
494
|
+
Target,
|
|
495
|
+
FocusEvent
|
|
496
|
+
>;
|
|
497
|
+
export type TargetedInputEvent<Target extends EventTarget> = TargetedEvent<
|
|
498
|
+
Target,
|
|
499
|
+
InputEvent
|
|
500
|
+
>;
|
|
501
|
+
export type TargetedKeyboardEvent<Target extends EventTarget> = TargetedEvent<
|
|
502
|
+
Target,
|
|
503
|
+
KeyboardEvent
|
|
504
|
+
>;
|
|
505
|
+
export type TargetedMouseEvent<Target extends EventTarget> = TargetedEvent<
|
|
506
|
+
Target,
|
|
507
|
+
MouseEvent
|
|
508
|
+
>;
|
|
509
|
+
export type TargetedPointerEvent<Target extends EventTarget> = TargetedEvent<
|
|
510
|
+
Target,
|
|
511
|
+
PointerEvent
|
|
512
|
+
>;
|
|
513
|
+
export type TargetedSnapEvent<Target extends EventTarget> = TargetedEvent<
|
|
514
|
+
Target,
|
|
515
|
+
SnapEvent
|
|
516
|
+
>;
|
|
517
|
+
export type TargetedSubmitEvent<Target extends EventTarget> = TargetedEvent<
|
|
518
|
+
Target,
|
|
519
|
+
SubmitEvent
|
|
520
|
+
>;
|
|
521
|
+
export type TargetedTouchEvent<Target extends EventTarget> = TargetedEvent<
|
|
522
|
+
Target,
|
|
523
|
+
TouchEvent
|
|
524
|
+
>;
|
|
525
|
+
export type TargetedToggleEvent<Target extends EventTarget> = TargetedEvent<
|
|
526
|
+
Target,
|
|
527
|
+
ToggleEvent
|
|
528
|
+
>;
|
|
529
|
+
export type TargetedTransitionEvent<Target extends EventTarget> = TargetedEvent<
|
|
530
|
+
Target,
|
|
531
|
+
TransitionEvent
|
|
532
|
+
>;
|
|
533
|
+
export type TargetedUIEvent<Target extends EventTarget> = TargetedEvent<
|
|
534
|
+
Target,
|
|
535
|
+
UIEvent
|
|
536
|
+
>;
|
|
537
|
+
export type TargetedWheelEvent<Target extends EventTarget> = TargetedEvent<
|
|
538
|
+
Target,
|
|
539
|
+
WheelEvent
|
|
540
|
+
>;
|
|
541
|
+
export type TargetedPictureInPictureEvent<Target extends EventTarget> =
|
|
542
|
+
TargetedEvent<Target, PictureInPictureEvent>;
|
|
543
|
+
|
|
544
|
+
export type EventHandler<E extends TargetedEvent> = {
|
|
545
|
+
bivarianceHack(event: E): void;
|
|
546
|
+
}['bivarianceHack'];
|
|
547
|
+
|
|
548
|
+
export type AnimationEventHandler<Target extends EventTarget> = EventHandler<
|
|
549
|
+
TargetedAnimationEvent<Target>
|
|
550
|
+
>;
|
|
551
|
+
export type ClipboardEventHandler<Target extends EventTarget> = EventHandler<
|
|
552
|
+
TargetedClipboardEvent<Target>
|
|
553
|
+
>;
|
|
554
|
+
export type CommandEventHandler<Target extends EventTarget> = EventHandler<
|
|
555
|
+
TargetedCommandEvent<Target>
|
|
556
|
+
>;
|
|
557
|
+
export type CompositionEventHandler<Target extends EventTarget> = EventHandler<
|
|
558
|
+
TargetedCompositionEvent<Target>
|
|
559
|
+
>;
|
|
560
|
+
export type DragEventHandler<Target extends EventTarget> = EventHandler<
|
|
561
|
+
TargetedDragEvent<Target>
|
|
562
|
+
>;
|
|
563
|
+
export type ToggleEventHandler<Target extends EventTarget> = EventHandler<
|
|
564
|
+
TargetedToggleEvent<Target>
|
|
565
|
+
>;
|
|
566
|
+
export type FocusEventHandler<Target extends EventTarget> = EventHandler<
|
|
567
|
+
TargetedFocusEvent<Target>
|
|
568
|
+
>;
|
|
569
|
+
export type GenericEventHandler<Target extends EventTarget> = EventHandler<
|
|
570
|
+
TargetedEvent<Target>
|
|
571
|
+
>;
|
|
572
|
+
export type InputEventHandler<Target extends EventTarget> = EventHandler<
|
|
573
|
+
TargetedInputEvent<Target>
|
|
574
|
+
>;
|
|
575
|
+
export type KeyboardEventHandler<Target extends EventTarget> = EventHandler<
|
|
576
|
+
TargetedKeyboardEvent<Target>
|
|
577
|
+
>;
|
|
578
|
+
export type MouseEventHandler<Target extends EventTarget> = EventHandler<
|
|
579
|
+
TargetedMouseEvent<Target>
|
|
580
|
+
>;
|
|
581
|
+
export type PointerEventHandler<Target extends EventTarget> = EventHandler<
|
|
582
|
+
TargetedPointerEvent<Target>
|
|
583
|
+
>;
|
|
584
|
+
export type SnapEventHandler<Target extends EventTarget> = EventHandler<
|
|
585
|
+
TargetedSnapEvent<Target>
|
|
586
|
+
>;
|
|
587
|
+
export type SubmitEventHandler<Target extends EventTarget> = EventHandler<
|
|
588
|
+
TargetedSubmitEvent<Target>
|
|
589
|
+
>;
|
|
590
|
+
export type TouchEventHandler<Target extends EventTarget> = EventHandler<
|
|
591
|
+
TargetedTouchEvent<Target>
|
|
592
|
+
>;
|
|
593
|
+
export type TransitionEventHandler<Target extends EventTarget> = EventHandler<
|
|
594
|
+
TargetedTransitionEvent<Target>
|
|
595
|
+
>;
|
|
596
|
+
export type UIEventHandler<Target extends EventTarget> = EventHandler<
|
|
597
|
+
TargetedUIEvent<Target>
|
|
598
|
+
>;
|
|
599
|
+
export type WheelEventHandler<Target extends EventTarget> = EventHandler<
|
|
600
|
+
TargetedWheelEvent<Target>
|
|
601
|
+
>;
|
|
602
|
+
export type PictureInPictureEventHandler<Target extends EventTarget> =
|
|
603
|
+
EventHandler<TargetedPictureInPictureEvent<Target>>;
|
|
604
|
+
|
|
605
|
+
export interface DOMAttributes<Target extends EventTarget>
|
|
606
|
+
extends PreactDOMAttributes {
|
|
607
|
+
// Image Events
|
|
608
|
+
onLoad?: GenericEventHandler<Target> | undefined;
|
|
609
|
+
onLoadCapture?: GenericEventHandler<Target> | undefined;
|
|
610
|
+
onError?: GenericEventHandler<Target> | undefined;
|
|
611
|
+
onErrorCapture?: GenericEventHandler<Target> | undefined;
|
|
612
|
+
|
|
613
|
+
// Clipboard Events
|
|
614
|
+
onCopy?: ClipboardEventHandler<Target> | undefined;
|
|
615
|
+
onCopyCapture?: ClipboardEventHandler<Target> | undefined;
|
|
616
|
+
onCut?: ClipboardEventHandler<Target> | undefined;
|
|
617
|
+
onCutCapture?: ClipboardEventHandler<Target> | undefined;
|
|
618
|
+
onPaste?: ClipboardEventHandler<Target> | undefined;
|
|
619
|
+
onPasteCapture?: ClipboardEventHandler<Target> | undefined;
|
|
620
|
+
|
|
621
|
+
// Composition Events
|
|
622
|
+
onCompositionEnd?: CompositionEventHandler<Target> | undefined;
|
|
623
|
+
onCompositionEndCapture?: CompositionEventHandler<Target> | undefined;
|
|
624
|
+
onCompositionStart?: CompositionEventHandler<Target> | undefined;
|
|
625
|
+
onCompositionStartCapture?: CompositionEventHandler<Target> | undefined;
|
|
626
|
+
onCompositionUpdate?: CompositionEventHandler<Target> | undefined;
|
|
627
|
+
onCompositionUpdateCapture?: CompositionEventHandler<Target> | undefined;
|
|
628
|
+
|
|
629
|
+
// Popover Events
|
|
630
|
+
onBeforeToggle?: ToggleEventHandler<Target> | undefined;
|
|
631
|
+
onToggle?: ToggleEventHandler<Target> | undefined;
|
|
632
|
+
|
|
633
|
+
// Dialog Events
|
|
634
|
+
onClose?: GenericEventHandler<Target> | undefined;
|
|
635
|
+
onCancel?: GenericEventHandler<Target> | undefined;
|
|
636
|
+
|
|
637
|
+
// Focus Events
|
|
638
|
+
onFocus?: FocusEventHandler<Target> | undefined;
|
|
639
|
+
onFocusCapture?: FocusEventHandler<Target> | undefined;
|
|
640
|
+
onFocusIn?: FocusEventHandler<Target> | undefined;
|
|
641
|
+
onFocusInCapture?: FocusEventHandler<Target> | undefined;
|
|
642
|
+
onFocusOut?: FocusEventHandler<Target> | undefined;
|
|
643
|
+
onFocusOutCapture?: FocusEventHandler<Target> | undefined;
|
|
644
|
+
onBlur?: FocusEventHandler<Target> | undefined;
|
|
645
|
+
onBlurCapture?: FocusEventHandler<Target> | undefined;
|
|
646
|
+
|
|
647
|
+
// Form Events
|
|
648
|
+
onChange?: GenericEventHandler<Target> | undefined;
|
|
649
|
+
onChangeCapture?: GenericEventHandler<Target> | undefined;
|
|
650
|
+
onInput?: InputEventHandler<Target> | undefined;
|
|
651
|
+
onInputCapture?: InputEventHandler<Target> | undefined;
|
|
652
|
+
onBeforeInput?: InputEventHandler<Target> | undefined;
|
|
653
|
+
onBeforeInputCapture?: InputEventHandler<Target> | undefined;
|
|
654
|
+
onSearch?: GenericEventHandler<Target> | undefined;
|
|
655
|
+
onSearchCapture?: GenericEventHandler<Target> | undefined;
|
|
656
|
+
onSubmit?: SubmitEventHandler<Target> | undefined;
|
|
657
|
+
onSubmitCapture?: SubmitEventHandler<Target> | undefined;
|
|
658
|
+
onInvalid?: GenericEventHandler<Target> | undefined;
|
|
659
|
+
onInvalidCapture?: GenericEventHandler<Target> | undefined;
|
|
660
|
+
onReset?: GenericEventHandler<Target> | undefined;
|
|
661
|
+
onResetCapture?: GenericEventHandler<Target> | undefined;
|
|
662
|
+
onFormData?: GenericEventHandler<Target> | undefined;
|
|
663
|
+
onFormDataCapture?: GenericEventHandler<Target> | undefined;
|
|
664
|
+
|
|
665
|
+
// Keyboard Events
|
|
666
|
+
onKeyDown?: KeyboardEventHandler<Target> | undefined;
|
|
667
|
+
onKeyDownCapture?: KeyboardEventHandler<Target> | undefined;
|
|
668
|
+
onKeyPress?: KeyboardEventHandler<Target> | undefined;
|
|
669
|
+
onKeyPressCapture?: KeyboardEventHandler<Target> | undefined;
|
|
670
|
+
onKeyUp?: KeyboardEventHandler<Target> | undefined;
|
|
671
|
+
onKeyUpCapture?: KeyboardEventHandler<Target> | undefined;
|
|
672
|
+
|
|
673
|
+
// Media Events
|
|
674
|
+
onAbort?: GenericEventHandler<Target> | undefined;
|
|
675
|
+
onAbortCapture?: GenericEventHandler<Target> | undefined;
|
|
676
|
+
onCanPlay?: GenericEventHandler<Target> | undefined;
|
|
677
|
+
onCanPlayCapture?: GenericEventHandler<Target> | undefined;
|
|
678
|
+
onCanPlayThrough?: GenericEventHandler<Target> | undefined;
|
|
679
|
+
onCanPlayThroughCapture?: GenericEventHandler<Target> | undefined;
|
|
680
|
+
onDurationChange?: GenericEventHandler<Target> | undefined;
|
|
681
|
+
onDurationChangeCapture?: GenericEventHandler<Target> | undefined;
|
|
682
|
+
onEmptied?: GenericEventHandler<Target> | undefined;
|
|
683
|
+
onEmptiedCapture?: GenericEventHandler<Target> | undefined;
|
|
684
|
+
onEncrypted?: GenericEventHandler<Target> | undefined;
|
|
685
|
+
onEncryptedCapture?: GenericEventHandler<Target> | undefined;
|
|
686
|
+
onEnded?: GenericEventHandler<Target> | undefined;
|
|
687
|
+
onEndedCapture?: GenericEventHandler<Target> | undefined;
|
|
688
|
+
onLoadedData?: GenericEventHandler<Target> | undefined;
|
|
689
|
+
onLoadedDataCapture?: GenericEventHandler<Target> | undefined;
|
|
690
|
+
onLoadedMetadata?: GenericEventHandler<Target> | undefined;
|
|
691
|
+
onLoadedMetadataCapture?: GenericEventHandler<Target> | undefined;
|
|
692
|
+
onLoadStart?: GenericEventHandler<Target> | undefined;
|
|
693
|
+
onLoadStartCapture?: GenericEventHandler<Target> | undefined;
|
|
694
|
+
onPause?: GenericEventHandler<Target> | undefined;
|
|
695
|
+
onPauseCapture?: GenericEventHandler<Target> | undefined;
|
|
696
|
+
onPlay?: GenericEventHandler<Target> | undefined;
|
|
697
|
+
onPlayCapture?: GenericEventHandler<Target> | undefined;
|
|
698
|
+
onPlaying?: GenericEventHandler<Target> | undefined;
|
|
699
|
+
onPlayingCapture?: GenericEventHandler<Target> | undefined;
|
|
700
|
+
onProgress?: GenericEventHandler<Target> | undefined;
|
|
701
|
+
onProgressCapture?: GenericEventHandler<Target> | undefined;
|
|
702
|
+
onRateChange?: GenericEventHandler<Target> | undefined;
|
|
703
|
+
onRateChangeCapture?: GenericEventHandler<Target> | undefined;
|
|
704
|
+
onSeeked?: GenericEventHandler<Target> | undefined;
|
|
705
|
+
onSeekedCapture?: GenericEventHandler<Target> | undefined;
|
|
706
|
+
onSeeking?: GenericEventHandler<Target> | undefined;
|
|
707
|
+
onSeekingCapture?: GenericEventHandler<Target> | undefined;
|
|
708
|
+
onStalled?: GenericEventHandler<Target> | undefined;
|
|
709
|
+
onStalledCapture?: GenericEventHandler<Target> | undefined;
|
|
710
|
+
onSuspend?: GenericEventHandler<Target> | undefined;
|
|
711
|
+
onSuspendCapture?: GenericEventHandler<Target> | undefined;
|
|
712
|
+
onTimeUpdate?: GenericEventHandler<Target> | undefined;
|
|
713
|
+
onTimeUpdateCapture?: GenericEventHandler<Target> | undefined;
|
|
714
|
+
onVolumeChange?: GenericEventHandler<Target> | undefined;
|
|
715
|
+
onVolumeChangeCapture?: GenericEventHandler<Target> | undefined;
|
|
716
|
+
onWaiting?: GenericEventHandler<Target> | undefined;
|
|
717
|
+
onWaitingCapture?: GenericEventHandler<Target> | undefined;
|
|
718
|
+
|
|
719
|
+
// MouseEvents
|
|
720
|
+
onClick?: MouseEventHandler<Target> | undefined;
|
|
721
|
+
onClickCapture?: MouseEventHandler<Target> | undefined;
|
|
722
|
+
onContextMenu?: MouseEventHandler<Target> | undefined;
|
|
723
|
+
onContextMenuCapture?: MouseEventHandler<Target> | undefined;
|
|
724
|
+
onDblClick?: MouseEventHandler<Target> | undefined;
|
|
725
|
+
onDblClickCapture?: MouseEventHandler<Target> | undefined;
|
|
726
|
+
onDrag?: DragEventHandler<Target> | undefined;
|
|
727
|
+
onDragCapture?: DragEventHandler<Target> | undefined;
|
|
728
|
+
onDragEnd?: DragEventHandler<Target> | undefined;
|
|
729
|
+
onDragEndCapture?: DragEventHandler<Target> | undefined;
|
|
730
|
+
onDragEnter?: DragEventHandler<Target> | undefined;
|
|
731
|
+
onDragEnterCapture?: DragEventHandler<Target> | undefined;
|
|
732
|
+
onDragExit?: DragEventHandler<Target> | undefined;
|
|
733
|
+
onDragExitCapture?: DragEventHandler<Target> | undefined;
|
|
734
|
+
onDragLeave?: DragEventHandler<Target> | undefined;
|
|
735
|
+
onDragLeaveCapture?: DragEventHandler<Target> | undefined;
|
|
736
|
+
onDragOver?: DragEventHandler<Target> | undefined;
|
|
737
|
+
onDragOverCapture?: DragEventHandler<Target> | undefined;
|
|
738
|
+
onDragStart?: DragEventHandler<Target> | undefined;
|
|
739
|
+
onDragStartCapture?: DragEventHandler<Target> | undefined;
|
|
740
|
+
onDrop?: DragEventHandler<Target> | undefined;
|
|
741
|
+
onDropCapture?: DragEventHandler<Target> | undefined;
|
|
742
|
+
onMouseDown?: MouseEventHandler<Target> | undefined;
|
|
743
|
+
onMouseDownCapture?: MouseEventHandler<Target> | undefined;
|
|
744
|
+
onMouseEnter?: MouseEventHandler<Target> | undefined;
|
|
745
|
+
onMouseEnterCapture?: MouseEventHandler<Target> | undefined;
|
|
746
|
+
onMouseLeave?: MouseEventHandler<Target> | undefined;
|
|
747
|
+
onMouseLeaveCapture?: MouseEventHandler<Target> | undefined;
|
|
748
|
+
onMouseMove?: MouseEventHandler<Target> | undefined;
|
|
749
|
+
onMouseMoveCapture?: MouseEventHandler<Target> | undefined;
|
|
750
|
+
onMouseOut?: MouseEventHandler<Target> | undefined;
|
|
751
|
+
onMouseOutCapture?: MouseEventHandler<Target> | undefined;
|
|
752
|
+
onMouseOver?: MouseEventHandler<Target> | undefined;
|
|
753
|
+
onMouseOverCapture?: MouseEventHandler<Target> | undefined;
|
|
754
|
+
onMouseUp?: MouseEventHandler<Target> | undefined;
|
|
755
|
+
onMouseUpCapture?: MouseEventHandler<Target> | undefined;
|
|
756
|
+
// TODO: Spec for `auxclick` events was changed to make it a PointerEvent but only
|
|
757
|
+
// Chrome has support for it yet. When more browsers align we should change this.
|
|
758
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/Element/auxclick_event#browser_compatibility
|
|
759
|
+
onAuxClick?: MouseEventHandler<Target> | undefined;
|
|
760
|
+
onAuxClickCapture?: MouseEventHandler<Target> | undefined;
|
|
761
|
+
|
|
762
|
+
// Selection Events
|
|
763
|
+
onSelect?: GenericEventHandler<Target> | undefined;
|
|
764
|
+
onSelectCapture?: GenericEventHandler<Target> | undefined;
|
|
765
|
+
|
|
766
|
+
// Touch Events
|
|
767
|
+
onTouchCancel?: TouchEventHandler<Target> | undefined;
|
|
768
|
+
onTouchCancelCapture?: TouchEventHandler<Target> | undefined;
|
|
769
|
+
onTouchEnd?: TouchEventHandler<Target> | undefined;
|
|
770
|
+
onTouchEndCapture?: TouchEventHandler<Target> | undefined;
|
|
771
|
+
onTouchMove?: TouchEventHandler<Target> | undefined;
|
|
772
|
+
onTouchMoveCapture?: TouchEventHandler<Target> | undefined;
|
|
773
|
+
onTouchStart?: TouchEventHandler<Target> | undefined;
|
|
774
|
+
onTouchStartCapture?: TouchEventHandler<Target> | undefined;
|
|
775
|
+
|
|
776
|
+
// Pointer Events
|
|
777
|
+
onPointerOver?: PointerEventHandler<Target> | undefined;
|
|
778
|
+
onPointerOverCapture?: PointerEventHandler<Target> | undefined;
|
|
779
|
+
onPointerEnter?: PointerEventHandler<Target> | undefined;
|
|
780
|
+
onPointerEnterCapture?: PointerEventHandler<Target> | undefined;
|
|
781
|
+
onPointerDown?: PointerEventHandler<Target> | undefined;
|
|
782
|
+
onPointerDownCapture?: PointerEventHandler<Target> | undefined;
|
|
783
|
+
onPointerMove?: PointerEventHandler<Target> | undefined;
|
|
784
|
+
onPointerMoveCapture?: PointerEventHandler<Target> | undefined;
|
|
785
|
+
onPointerUp?: PointerEventHandler<Target> | undefined;
|
|
786
|
+
onPointerUpCapture?: PointerEventHandler<Target> | undefined;
|
|
787
|
+
onPointerCancel?: PointerEventHandler<Target> | undefined;
|
|
788
|
+
onPointerCancelCapture?: PointerEventHandler<Target> | undefined;
|
|
789
|
+
onPointerOut?: PointerEventHandler<Target> | undefined;
|
|
790
|
+
onPointerOutCapture?: PointerEventHandler<Target> | undefined;
|
|
791
|
+
onPointerLeave?: PointerEventHandler<Target> | undefined;
|
|
792
|
+
onPointerLeaveCapture?: PointerEventHandler<Target> | undefined;
|
|
793
|
+
onGotPointerCapture?: PointerEventHandler<Target> | undefined;
|
|
794
|
+
onGotPointerCaptureCapture?: PointerEventHandler<Target> | undefined;
|
|
795
|
+
onLostPointerCapture?: PointerEventHandler<Target> | undefined;
|
|
796
|
+
onLostPointerCaptureCapture?: PointerEventHandler<Target> | undefined;
|
|
797
|
+
|
|
798
|
+
// Scroll Events
|
|
799
|
+
onScroll?: GenericEventHandler<Target> | undefined;
|
|
800
|
+
onScrollCapture?: GenericEventHandler<Target> | undefined;
|
|
801
|
+
onScrollEnd?: GenericEventHandler<Target> | undefined;
|
|
802
|
+
onScrollEndCapture?: GenericEventHandler<Target> | undefined;
|
|
803
|
+
onScrollSnapChange?: SnapEventHandler<Target> | undefined;
|
|
804
|
+
onScrollSnapChangeCapture?: SnapEventHandler<Target> | undefined;
|
|
805
|
+
onScrollSnapChanging?: SnapEventHandler<Target> | undefined;
|
|
806
|
+
onScrollSnapChangingCapture?: SnapEventHandler<Target> | undefined;
|
|
807
|
+
|
|
808
|
+
// Wheel Events
|
|
809
|
+
onWheel?: WheelEventHandler<Target> | undefined;
|
|
810
|
+
onWheelCapture?: WheelEventHandler<Target> | undefined;
|
|
811
|
+
|
|
812
|
+
// Animation Events
|
|
813
|
+
onAnimationStart?: AnimationEventHandler<Target> | undefined;
|
|
814
|
+
onAnimationStartCapture?: AnimationEventHandler<Target> | undefined;
|
|
815
|
+
onAnimationEnd?: AnimationEventHandler<Target> | undefined;
|
|
816
|
+
onAnimationEndCapture?: AnimationEventHandler<Target> | undefined;
|
|
817
|
+
onAnimationIteration?: AnimationEventHandler<Target> | undefined;
|
|
818
|
+
onAnimationIterationCapture?: AnimationEventHandler<Target> | undefined;
|
|
819
|
+
|
|
820
|
+
// Transition Events
|
|
821
|
+
onTransitionCancel?: TransitionEventHandler<Target>;
|
|
822
|
+
onTransitionCancelCapture?: TransitionEventHandler<Target>;
|
|
823
|
+
onTransitionEnd?: TransitionEventHandler<Target>;
|
|
824
|
+
onTransitionEndCapture?: TransitionEventHandler<Target>;
|
|
825
|
+
onTransitionRun?: TransitionEventHandler<Target>;
|
|
826
|
+
onTransitionRunCapture?: TransitionEventHandler<Target>;
|
|
827
|
+
onTransitionStart?: TransitionEventHandler<Target>;
|
|
828
|
+
onTransitionStartCapture?: TransitionEventHandler<Target>;
|
|
829
|
+
|
|
830
|
+
// PictureInPicture Events
|
|
831
|
+
onEnterPictureInPicture?: PictureInPictureEventHandler<Target>;
|
|
832
|
+
onEnterPictureInPictureCapture?: PictureInPictureEventHandler<Target>;
|
|
833
|
+
onLeavePictureInPicture?: PictureInPictureEventHandler<Target>;
|
|
834
|
+
onLeavePictureInPictureCapture?: PictureInPictureEventHandler<Target>;
|
|
835
|
+
onResize?: PictureInPictureEventHandler<Target>;
|
|
836
|
+
onResizeCapture?: PictureInPictureEventHandler<Target>;
|
|
837
|
+
|
|
838
|
+
onCommand?: CommandEventHandler<Target>;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
// All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
|
|
842
|
+
export interface AriaAttributes {
|
|
843
|
+
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
|
844
|
+
'aria-activedescendant'?: Signalish<string | undefined>;
|
|
845
|
+
/** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
|
|
846
|
+
'aria-atomic'?: Signalish<Booleanish | undefined>;
|
|
847
|
+
/**
|
|
848
|
+
* Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
|
|
849
|
+
* presented if they are made.
|
|
850
|
+
*/
|
|
851
|
+
'aria-autocomplete'?: Signalish<
|
|
852
|
+
'none' | 'inline' | 'list' | 'both' | undefined
|
|
853
|
+
>;
|
|
854
|
+
/**
|
|
855
|
+
* Defines a string value that labels the current element, which is intended to be converted into Braille.
|
|
856
|
+
* @see aria-label.
|
|
857
|
+
*/
|
|
858
|
+
'aria-braillelabel'?: Signalish<string | undefined>;
|
|
859
|
+
/**
|
|
860
|
+
* Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
|
|
861
|
+
* @see aria-roledescription.
|
|
862
|
+
*/
|
|
863
|
+
'aria-brailleroledescription'?: Signalish<string | undefined>;
|
|
864
|
+
/** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
|
|
865
|
+
'aria-busy'?: Signalish<Booleanish | undefined>;
|
|
866
|
+
/**
|
|
867
|
+
* Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
868
|
+
* @see aria-pressed
|
|
869
|
+
* @see aria-selected.
|
|
870
|
+
*/
|
|
871
|
+
'aria-checked'?: Signalish<Booleanish | 'mixed' | undefined>;
|
|
872
|
+
/**
|
|
873
|
+
* Defines the total number of columns in a table, grid, or treegrid.
|
|
874
|
+
* @see aria-colindex.
|
|
875
|
+
*/
|
|
876
|
+
'aria-colcount'?: Signalish<number | undefined>;
|
|
877
|
+
/**
|
|
878
|
+
* Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
879
|
+
* @see aria-colcount
|
|
880
|
+
* @see aria-colspan.
|
|
881
|
+
*/
|
|
882
|
+
'aria-colindex'?: Signalish<number | undefined>;
|
|
883
|
+
/**
|
|
884
|
+
* Defines a human readable text alternative of aria-colindex.
|
|
885
|
+
* @see aria-rowindextext.
|
|
886
|
+
*/
|
|
887
|
+
'aria-colindextext'?: Signalish<string | undefined>;
|
|
888
|
+
/**
|
|
889
|
+
* Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
890
|
+
* @see aria-colindex
|
|
891
|
+
* @see aria-rowspan.
|
|
892
|
+
*/
|
|
893
|
+
'aria-colspan'?: Signalish<number | undefined>;
|
|
894
|
+
/**
|
|
895
|
+
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
896
|
+
* @see aria-owns.
|
|
897
|
+
*/
|
|
898
|
+
'aria-controls'?: Signalish<string | undefined>;
|
|
899
|
+
/** Indicates the element that represents the current item within a container or set of related elements. */
|
|
900
|
+
'aria-current'?: Signalish<
|
|
901
|
+
Booleanish | 'page' | 'step' | 'location' | 'date' | 'time' | undefined
|
|
902
|
+
>;
|
|
903
|
+
/**
|
|
904
|
+
* Identifies the element (or elements) that describes the object.
|
|
905
|
+
* @see aria-labelledby
|
|
906
|
+
*/
|
|
907
|
+
'aria-describedby'?: Signalish<string | undefined>;
|
|
908
|
+
/**
|
|
909
|
+
* Defines a string value that describes or annotates the current element.
|
|
910
|
+
* @see related aria-describedby.
|
|
911
|
+
*/
|
|
912
|
+
'aria-description'?: Signalish<string | undefined>;
|
|
913
|
+
/**
|
|
914
|
+
* Identifies the element that provides a detailed, extended description for the object.
|
|
915
|
+
* @see aria-describedby.
|
|
916
|
+
*/
|
|
917
|
+
'aria-details'?: Signalish<string | undefined>;
|
|
918
|
+
/**
|
|
919
|
+
* Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
920
|
+
* @see aria-hidden
|
|
921
|
+
* @see aria-readonly.
|
|
922
|
+
*/
|
|
923
|
+
'aria-disabled'?: Signalish<Booleanish | undefined>;
|
|
924
|
+
/**
|
|
925
|
+
* Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
926
|
+
* @deprecated in ARIA 1.1
|
|
927
|
+
*/
|
|
928
|
+
'aria-dropeffect'?: Signalish<
|
|
929
|
+
'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined
|
|
930
|
+
>;
|
|
931
|
+
/**
|
|
932
|
+
* Identifies the element that provides an error message for the object.
|
|
933
|
+
* @see aria-invalid
|
|
934
|
+
* @see aria-describedby.
|
|
935
|
+
*/
|
|
936
|
+
'aria-errormessage'?: Signalish<string | undefined>;
|
|
937
|
+
/** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
|
|
938
|
+
'aria-expanded'?: Signalish<Booleanish | undefined>;
|
|
939
|
+
/**
|
|
940
|
+
* Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
941
|
+
* allows assistive technology to override the general default of reading in document source order.
|
|
942
|
+
*/
|
|
943
|
+
'aria-flowto'?: Signalish<string | undefined>;
|
|
944
|
+
/**
|
|
945
|
+
* Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
946
|
+
* @deprecated in ARIA 1.1
|
|
947
|
+
*/
|
|
948
|
+
'aria-grabbed'?: Signalish<Booleanish | undefined>;
|
|
949
|
+
/** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
|
|
950
|
+
'aria-haspopup'?: Signalish<
|
|
951
|
+
Booleanish | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined
|
|
952
|
+
>;
|
|
953
|
+
/**
|
|
954
|
+
* Indicates whether the element is exposed to an accessibility API.
|
|
955
|
+
* @see aria-disabled.
|
|
956
|
+
*/
|
|
957
|
+
'aria-hidden'?: Signalish<Booleanish | undefined>;
|
|
958
|
+
/**
|
|
959
|
+
* Indicates the entered value does not conform to the format expected by the application.
|
|
960
|
+
* @see aria-errormessage.
|
|
961
|
+
*/
|
|
962
|
+
'aria-invalid'?: Signalish<Booleanish | 'grammar' | 'spelling' | undefined>;
|
|
963
|
+
/** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
|
|
964
|
+
'aria-keyshortcuts'?: Signalish<string | undefined>;
|
|
965
|
+
/**
|
|
966
|
+
* Defines a string value that labels the current element.
|
|
967
|
+
* @see aria-labelledby.
|
|
968
|
+
*/
|
|
969
|
+
'aria-label'?: Signalish<string | undefined>;
|
|
970
|
+
/**
|
|
971
|
+
* Identifies the element (or elements) that labels the current element.
|
|
972
|
+
* @see aria-describedby.
|
|
973
|
+
*/
|
|
974
|
+
'aria-labelledby'?: Signalish<string | undefined>;
|
|
975
|
+
/** Defines the hierarchical level of an element within a structure. */
|
|
976
|
+
'aria-level'?: Signalish<number | undefined>;
|
|
977
|
+
/** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
|
|
978
|
+
'aria-live'?: Signalish<'off' | 'assertive' | 'polite' | undefined>;
|
|
979
|
+
/** Indicates whether an element is modal when displayed. */
|
|
980
|
+
'aria-modal'?: Signalish<Booleanish | undefined>;
|
|
981
|
+
/** Indicates whether a text box accepts multiple lines of input or only a single line. */
|
|
982
|
+
'aria-multiline'?: Signalish<Booleanish | undefined>;
|
|
983
|
+
/** Indicates that the user may select more than one item from the current selectable descendants. */
|
|
984
|
+
'aria-multiselectable'?: Signalish<Booleanish | undefined>;
|
|
985
|
+
/** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
|
|
986
|
+
'aria-orientation'?: Signalish<'horizontal' | 'vertical' | undefined>;
|
|
987
|
+
/**
|
|
988
|
+
* Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
989
|
+
* between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
990
|
+
* @see aria-controls.
|
|
991
|
+
*/
|
|
992
|
+
'aria-owns'?: Signalish<string | undefined>;
|
|
993
|
+
/**
|
|
994
|
+
* Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
995
|
+
* A hint could be a sample value or a brief description of the expected format.
|
|
996
|
+
*/
|
|
997
|
+
'aria-placeholder'?: Signalish<string | undefined>;
|
|
998
|
+
/**
|
|
999
|
+
* Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
1000
|
+
* @see aria-setsize.
|
|
1001
|
+
*/
|
|
1002
|
+
'aria-posinset'?: Signalish<number | undefined>;
|
|
1003
|
+
/**
|
|
1004
|
+
* Indicates the current "pressed" state of toggle buttons.
|
|
1005
|
+
* @see aria-checked
|
|
1006
|
+
* @see aria-selected.
|
|
1007
|
+
*/
|
|
1008
|
+
'aria-pressed'?: Signalish<Booleanish | 'mixed' | undefined>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Indicates that the element is not editable, but is otherwise operable.
|
|
1011
|
+
* @see aria-disabled.
|
|
1012
|
+
*/
|
|
1013
|
+
'aria-readonly'?: Signalish<Booleanish | undefined>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
1016
|
+
* @see aria-atomic.
|
|
1017
|
+
*/
|
|
1018
|
+
'aria-relevant'?: Signalish<
|
|
1019
|
+
| 'additions'
|
|
1020
|
+
| 'additions removals'
|
|
1021
|
+
| 'additions text'
|
|
1022
|
+
| 'all'
|
|
1023
|
+
| 'removals'
|
|
1024
|
+
| 'removals additions'
|
|
1025
|
+
| 'removals text'
|
|
1026
|
+
| 'text'
|
|
1027
|
+
| 'text additions'
|
|
1028
|
+
| 'text removals'
|
|
1029
|
+
| undefined
|
|
1030
|
+
>;
|
|
1031
|
+
/** Indicates that user input is required on the element before a form may be submitted. */
|
|
1032
|
+
'aria-required'?: Signalish<Booleanish | undefined>;
|
|
1033
|
+
/** Defines a human-readable, author-localized description for the role of an element. */
|
|
1034
|
+
'aria-roledescription'?: Signalish<string | undefined>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Defines the total number of rows in a table, grid, or treegrid.
|
|
1037
|
+
* @see aria-rowindex.
|
|
1038
|
+
*/
|
|
1039
|
+
'aria-rowcount'?: Signalish<number | undefined>;
|
|
1040
|
+
/**
|
|
1041
|
+
* Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
1042
|
+
* @see aria-rowcount
|
|
1043
|
+
* @see aria-rowspan.
|
|
1044
|
+
*/
|
|
1045
|
+
'aria-rowindex'?: Signalish<number | undefined>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Defines a human readable text alternative of aria-rowindex.
|
|
1048
|
+
* @see aria-colindextext.
|
|
1049
|
+
*/
|
|
1050
|
+
'aria-rowindextext'?: Signalish<string | undefined>;
|
|
1051
|
+
/**
|
|
1052
|
+
* Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
1053
|
+
* @see aria-rowindex
|
|
1054
|
+
* @see aria-colspan.
|
|
1055
|
+
*/
|
|
1056
|
+
'aria-rowspan'?: Signalish<number | undefined>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Indicates the current "selected" state of various widgets.
|
|
1059
|
+
* @see aria-checked
|
|
1060
|
+
* @see aria-pressed.
|
|
1061
|
+
*/
|
|
1062
|
+
'aria-selected'?: Signalish<Booleanish | undefined>;
|
|
1063
|
+
/**
|
|
1064
|
+
* Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
1065
|
+
* @see aria-posinset.
|
|
1066
|
+
*/
|
|
1067
|
+
'aria-setsize'?: Signalish<number | undefined>;
|
|
1068
|
+
/** Indicates if items in a table or grid are sorted in ascending or descending order. */
|
|
1069
|
+
'aria-sort'?: Signalish<
|
|
1070
|
+
'none' | 'ascending' | 'descending' | 'other' | undefined
|
|
1071
|
+
>;
|
|
1072
|
+
/** Defines the maximum allowed value for a range widget. */
|
|
1073
|
+
'aria-valuemax'?: Signalish<number | undefined>;
|
|
1074
|
+
/** Defines the minimum allowed value for a range widget. */
|
|
1075
|
+
'aria-valuemin'?: Signalish<number | undefined>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Defines the current value for a range widget.
|
|
1078
|
+
* @see aria-valuetext.
|
|
1079
|
+
*/
|
|
1080
|
+
'aria-valuenow'?: Signalish<number | undefined>;
|
|
1081
|
+
/** Defines the human readable text alternative of aria-valuenow for a range widget. */
|
|
1082
|
+
'aria-valuetext'?: Signalish<string | undefined>;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
// All the WAI-ARIA 1.2 role attribute values from https://www.w3.org/TR/wai-aria-1.2/#role_definitions
|
|
1086
|
+
export type WAIAriaRole =
|
|
1087
|
+
| 'alert'
|
|
1088
|
+
| 'alertdialog'
|
|
1089
|
+
| 'application'
|
|
1090
|
+
| 'article'
|
|
1091
|
+
| 'banner'
|
|
1092
|
+
| 'blockquote'
|
|
1093
|
+
| 'button'
|
|
1094
|
+
| 'caption'
|
|
1095
|
+
| 'cell'
|
|
1096
|
+
| 'checkbox'
|
|
1097
|
+
| 'code'
|
|
1098
|
+
| 'columnheader'
|
|
1099
|
+
| 'combobox'
|
|
1100
|
+
| 'command'
|
|
1101
|
+
| 'complementary'
|
|
1102
|
+
| 'composite'
|
|
1103
|
+
| 'contentinfo'
|
|
1104
|
+
| 'definition'
|
|
1105
|
+
| 'deletion'
|
|
1106
|
+
| 'dialog'
|
|
1107
|
+
| 'directory'
|
|
1108
|
+
| 'document'
|
|
1109
|
+
| 'emphasis'
|
|
1110
|
+
| 'feed'
|
|
1111
|
+
| 'figure'
|
|
1112
|
+
| 'form'
|
|
1113
|
+
| 'grid'
|
|
1114
|
+
| 'gridcell'
|
|
1115
|
+
| 'group'
|
|
1116
|
+
| 'heading'
|
|
1117
|
+
| 'img'
|
|
1118
|
+
| 'input'
|
|
1119
|
+
| 'insertion'
|
|
1120
|
+
| 'landmark'
|
|
1121
|
+
| 'link'
|
|
1122
|
+
| 'list'
|
|
1123
|
+
| 'listbox'
|
|
1124
|
+
| 'listitem'
|
|
1125
|
+
| 'log'
|
|
1126
|
+
| 'main'
|
|
1127
|
+
| 'marquee'
|
|
1128
|
+
| 'math'
|
|
1129
|
+
| 'meter'
|
|
1130
|
+
| 'menu'
|
|
1131
|
+
| 'menubar'
|
|
1132
|
+
| 'menuitem'
|
|
1133
|
+
| 'menuitemcheckbox'
|
|
1134
|
+
| 'menuitemradio'
|
|
1135
|
+
| 'navigation'
|
|
1136
|
+
| 'none'
|
|
1137
|
+
| 'note'
|
|
1138
|
+
| 'option'
|
|
1139
|
+
| 'paragraph'
|
|
1140
|
+
| 'presentation'
|
|
1141
|
+
| 'progressbar'
|
|
1142
|
+
| 'radio'
|
|
1143
|
+
| 'radiogroup'
|
|
1144
|
+
| 'range'
|
|
1145
|
+
| 'region'
|
|
1146
|
+
| 'roletype'
|
|
1147
|
+
| 'row'
|
|
1148
|
+
| 'rowgroup'
|
|
1149
|
+
| 'rowheader'
|
|
1150
|
+
| 'scrollbar'
|
|
1151
|
+
| 'search'
|
|
1152
|
+
| 'searchbox'
|
|
1153
|
+
| 'section'
|
|
1154
|
+
| 'sectionhead'
|
|
1155
|
+
| 'select'
|
|
1156
|
+
| 'separator'
|
|
1157
|
+
| 'slider'
|
|
1158
|
+
| 'spinbutton'
|
|
1159
|
+
| 'status'
|
|
1160
|
+
| 'strong'
|
|
1161
|
+
| 'structure'
|
|
1162
|
+
| 'subscript'
|
|
1163
|
+
| 'superscript'
|
|
1164
|
+
| 'switch'
|
|
1165
|
+
| 'tab'
|
|
1166
|
+
| 'table'
|
|
1167
|
+
| 'tablist'
|
|
1168
|
+
| 'tabpanel'
|
|
1169
|
+
| 'term'
|
|
1170
|
+
| 'textbox'
|
|
1171
|
+
| 'time'
|
|
1172
|
+
| 'timer'
|
|
1173
|
+
| 'toolbar'
|
|
1174
|
+
| 'tooltip'
|
|
1175
|
+
| 'tree'
|
|
1176
|
+
| 'treegrid'
|
|
1177
|
+
| 'treeitem'
|
|
1178
|
+
| 'widget'
|
|
1179
|
+
| 'window'
|
|
1180
|
+
| 'none presentation';
|
|
1181
|
+
|
|
1182
|
+
// All the Digital Publishing WAI-ARIA 1.0 role attribute values from https://www.w3.org/TR/dpub-aria-1.0/#role_definitions
|
|
1183
|
+
export type DPubAriaRole =
|
|
1184
|
+
| 'doc-abstract'
|
|
1185
|
+
| 'doc-acknowledgments'
|
|
1186
|
+
| 'doc-afterword'
|
|
1187
|
+
| 'doc-appendix'
|
|
1188
|
+
| 'doc-backlink'
|
|
1189
|
+
| 'doc-biblioentry'
|
|
1190
|
+
| 'doc-bibliography'
|
|
1191
|
+
| 'doc-biblioref'
|
|
1192
|
+
| 'doc-chapter'
|
|
1193
|
+
| 'doc-colophon'
|
|
1194
|
+
| 'doc-conclusion'
|
|
1195
|
+
| 'doc-cover'
|
|
1196
|
+
| 'doc-credit'
|
|
1197
|
+
| 'doc-credits'
|
|
1198
|
+
| 'doc-dedication'
|
|
1199
|
+
| 'doc-endnote'
|
|
1200
|
+
| 'doc-endnotes'
|
|
1201
|
+
| 'doc-epigraph'
|
|
1202
|
+
| 'doc-epilogue'
|
|
1203
|
+
| 'doc-errata'
|
|
1204
|
+
| 'doc-example'
|
|
1205
|
+
| 'doc-footnote'
|
|
1206
|
+
| 'doc-foreword'
|
|
1207
|
+
| 'doc-glossary'
|
|
1208
|
+
| 'doc-glossref'
|
|
1209
|
+
| 'doc-index'
|
|
1210
|
+
| 'doc-introduction'
|
|
1211
|
+
| 'doc-noteref'
|
|
1212
|
+
| 'doc-notice'
|
|
1213
|
+
| 'doc-pagebreak'
|
|
1214
|
+
| 'doc-pagelist'
|
|
1215
|
+
| 'doc-part'
|
|
1216
|
+
| 'doc-preface'
|
|
1217
|
+
| 'doc-prologue'
|
|
1218
|
+
| 'doc-pullquote'
|
|
1219
|
+
| 'doc-qna'
|
|
1220
|
+
| 'doc-subtitle'
|
|
1221
|
+
| 'doc-tip'
|
|
1222
|
+
| 'doc-toc';
|
|
1223
|
+
|
|
1224
|
+
export type AriaRole = WAIAriaRole | DPubAriaRole;
|
|
1225
|
+
|
|
1226
|
+
export interface AllHTMLAttributes<RefType extends EventTarget = EventTarget>
|
|
1227
|
+
extends ClassAttributes<RefType>,
|
|
1228
|
+
DOMAttributes<RefType>,
|
|
1229
|
+
AriaAttributes {
|
|
1230
|
+
// Standard HTML Attributes
|
|
1231
|
+
accept?: Signalish<string | undefined>;
|
|
1232
|
+
acceptCharset?: Signalish<string | undefined>;
|
|
1233
|
+
'accept-charset'?: Signalish<AllHTMLAttributes['acceptCharset']>;
|
|
1234
|
+
accessKey?: Signalish<string | undefined>;
|
|
1235
|
+
accesskey?: Signalish<AllHTMLAttributes['accessKey']>;
|
|
1236
|
+
action?: Signalish<string | undefined>;
|
|
1237
|
+
allow?: Signalish<string | undefined>;
|
|
1238
|
+
allowFullScreen?: Signalish<boolean | undefined>;
|
|
1239
|
+
allowTransparency?: Signalish<boolean | undefined>;
|
|
1240
|
+
alt?: Signalish<string | undefined>;
|
|
1241
|
+
as?: Signalish<string | undefined>;
|
|
1242
|
+
async?: Signalish<boolean | undefined>;
|
|
1243
|
+
autocomplete?: Signalish<string | undefined>;
|
|
1244
|
+
autoComplete?: Signalish<string | undefined>;
|
|
1245
|
+
autocorrect?: Signalish<string | undefined>;
|
|
1246
|
+
autoCorrect?: Signalish<string | undefined>;
|
|
1247
|
+
autofocus?: Signalish<boolean | undefined>;
|
|
1248
|
+
autoFocus?: Signalish<boolean | undefined>;
|
|
1249
|
+
autoPlay?: Signalish<boolean | undefined>;
|
|
1250
|
+
autoplay?: Signalish<boolean | undefined>;
|
|
1251
|
+
capture?: Signalish<boolean | string | undefined>;
|
|
1252
|
+
cellPadding?: Signalish<number | string | undefined>;
|
|
1253
|
+
cellSpacing?: Signalish<number | string | undefined>;
|
|
1254
|
+
charSet?: Signalish<string | undefined>;
|
|
1255
|
+
charset?: Signalish<string | undefined>;
|
|
1256
|
+
challenge?: Signalish<string | undefined>;
|
|
1257
|
+
checked?: Signalish<boolean | undefined>;
|
|
1258
|
+
cite?: Signalish<string | undefined>;
|
|
1259
|
+
class?: Signalish<string | undefined>;
|
|
1260
|
+
className?: Signalish<string | undefined>;
|
|
1261
|
+
cols?: Signalish<number | undefined>;
|
|
1262
|
+
colSpan?: Signalish<number | undefined>;
|
|
1263
|
+
colspan?: Signalish<number | undefined>;
|
|
1264
|
+
content?: Signalish<string | undefined>;
|
|
1265
|
+
contentEditable?: Signalish<
|
|
1266
|
+
Booleanish | '' | 'plaintext-only' | 'inherit' | undefined
|
|
1267
|
+
>;
|
|
1268
|
+
contenteditable?: Signalish<AllHTMLAttributes['contentEditable']>;
|
|
1269
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contextmenu */
|
|
1270
|
+
contextMenu?: Signalish<string | undefined>;
|
|
1271
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contextmenu */
|
|
1272
|
+
contextmenu?: Signalish<string | undefined>;
|
|
1273
|
+
controls?: Signalish<boolean | undefined>;
|
|
1274
|
+
controlslist?: Signalish<string | undefined>;
|
|
1275
|
+
controlsList?: Signalish<string | undefined>;
|
|
1276
|
+
coords?: Signalish<string | undefined>;
|
|
1277
|
+
crossOrigin?: Signalish<string | undefined>;
|
|
1278
|
+
crossorigin?: Signalish<string | undefined>;
|
|
1279
|
+
currentTime?: Signalish<number | undefined>;
|
|
1280
|
+
data?: Signalish<string | undefined>;
|
|
1281
|
+
dateTime?: Signalish<string | undefined>;
|
|
1282
|
+
datetime?: Signalish<string | undefined>;
|
|
1283
|
+
default?: Signalish<boolean | undefined>;
|
|
1284
|
+
defaultChecked?: Signalish<boolean | undefined>;
|
|
1285
|
+
defaultMuted?: Signalish<boolean | undefined>;
|
|
1286
|
+
defaultPlaybackRate?: Signalish<number | undefined>;
|
|
1287
|
+
defaultValue?: Signalish<string | undefined>;
|
|
1288
|
+
defer?: Signalish<boolean | undefined>;
|
|
1289
|
+
dir?: Signalish<'auto' | 'rtl' | 'ltr' | undefined>;
|
|
1290
|
+
disabled?: Signalish<boolean | undefined>;
|
|
1291
|
+
disableremoteplayback?: Signalish<boolean | undefined>;
|
|
1292
|
+
disableRemotePlayback?: Signalish<boolean | undefined>;
|
|
1293
|
+
download?: Signalish<any | undefined>;
|
|
1294
|
+
decoding?: Signalish<'sync' | 'async' | 'auto' | undefined>;
|
|
1295
|
+
draggable?: Signalish<boolean | undefined>;
|
|
1296
|
+
encType?: Signalish<string | undefined>;
|
|
1297
|
+
enctype?: Signalish<string | undefined>;
|
|
1298
|
+
enterkeyhint?: Signalish<
|
|
1299
|
+
| 'enter'
|
|
1300
|
+
| 'done'
|
|
1301
|
+
| 'go'
|
|
1302
|
+
| 'next'
|
|
1303
|
+
| 'previous'
|
|
1304
|
+
| 'search'
|
|
1305
|
+
| 'send'
|
|
1306
|
+
| undefined
|
|
1307
|
+
>;
|
|
1308
|
+
elementTiming?: Signalish<string | undefined>;
|
|
1309
|
+
elementtiming?: Signalish<AllHTMLAttributes['elementTiming']>;
|
|
1310
|
+
exportparts?: Signalish<string | undefined>;
|
|
1311
|
+
for?: Signalish<string | undefined>;
|
|
1312
|
+
form?: Signalish<string | undefined>;
|
|
1313
|
+
formAction?: Signalish<string | undefined>;
|
|
1314
|
+
formaction?: Signalish<string | undefined>;
|
|
1315
|
+
formEncType?: Signalish<string | undefined>;
|
|
1316
|
+
formenctype?: Signalish<string | undefined>;
|
|
1317
|
+
formMethod?: Signalish<string | undefined>;
|
|
1318
|
+
formmethod?: Signalish<string | undefined>;
|
|
1319
|
+
formNoValidate?: Signalish<boolean | undefined>;
|
|
1320
|
+
formnovalidate?: Signalish<boolean | undefined>;
|
|
1321
|
+
formTarget?: Signalish<string | undefined>;
|
|
1322
|
+
formtarget?: Signalish<string | undefined>;
|
|
1323
|
+
frameBorder?: Signalish<number | string | undefined>;
|
|
1324
|
+
frameborder?: Signalish<number | string | undefined>;
|
|
1325
|
+
headers?: Signalish<string | undefined>;
|
|
1326
|
+
height?: Signalish<number | string | undefined>;
|
|
1327
|
+
hidden?: Signalish<boolean | 'hidden' | 'until-found' | undefined>;
|
|
1328
|
+
high?: Signalish<number | undefined>;
|
|
1329
|
+
href?: Signalish<string | undefined>;
|
|
1330
|
+
hrefLang?: Signalish<string | undefined>;
|
|
1331
|
+
hreflang?: Signalish<string | undefined>;
|
|
1332
|
+
htmlFor?: Signalish<string | undefined>;
|
|
1333
|
+
httpEquiv?: Signalish<string | undefined>;
|
|
1334
|
+
'http-equiv'?: Signalish<string | undefined>;
|
|
1335
|
+
icon?: Signalish<string | undefined>;
|
|
1336
|
+
id?: Signalish<string | undefined>;
|
|
1337
|
+
indeterminate?: Signalish<boolean | undefined>;
|
|
1338
|
+
inert?: Signalish<boolean | undefined>;
|
|
1339
|
+
inputMode?: Signalish<string | undefined>;
|
|
1340
|
+
inputmode?: Signalish<string | undefined>;
|
|
1341
|
+
integrity?: Signalish<string | undefined>;
|
|
1342
|
+
is?: Signalish<string | undefined>;
|
|
1343
|
+
keyParams?: Signalish<string | undefined>;
|
|
1344
|
+
keyType?: Signalish<string | undefined>;
|
|
1345
|
+
kind?: Signalish<string | undefined>;
|
|
1346
|
+
label?: Signalish<string | undefined>;
|
|
1347
|
+
lang?: Signalish<string | undefined>;
|
|
1348
|
+
list?: Signalish<string | undefined>;
|
|
1349
|
+
loading?: Signalish<'eager' | 'lazy' | undefined>;
|
|
1350
|
+
loop?: Signalish<boolean | undefined>;
|
|
1351
|
+
low?: Signalish<number | undefined>;
|
|
1352
|
+
manifest?: Signalish<string | undefined>;
|
|
1353
|
+
marginHeight?: Signalish<number | undefined>;
|
|
1354
|
+
marginWidth?: Signalish<number | undefined>;
|
|
1355
|
+
max?: Signalish<number | string | undefined>;
|
|
1356
|
+
maxLength?: Signalish<number | undefined>;
|
|
1357
|
+
maxlength?: Signalish<number | undefined>;
|
|
1358
|
+
media?: Signalish<string | undefined>;
|
|
1359
|
+
mediaGroup?: Signalish<string | undefined>;
|
|
1360
|
+
method?: Signalish<string | undefined>;
|
|
1361
|
+
min?: Signalish<number | string | undefined>;
|
|
1362
|
+
minLength?: Signalish<number | undefined>;
|
|
1363
|
+
minlength?: Signalish<number | undefined>;
|
|
1364
|
+
multiple?: Signalish<boolean | undefined>;
|
|
1365
|
+
muted?: Signalish<boolean | undefined>;
|
|
1366
|
+
name?: Signalish<string | undefined>;
|
|
1367
|
+
nomodule?: Signalish<boolean | undefined>;
|
|
1368
|
+
nonce?: Signalish<string | undefined>;
|
|
1369
|
+
noValidate?: Signalish<boolean | undefined>;
|
|
1370
|
+
novalidate?: Signalish<boolean | undefined>;
|
|
1371
|
+
open?: Signalish<boolean | undefined>;
|
|
1372
|
+
optimum?: Signalish<number | undefined>;
|
|
1373
|
+
part?: Signalish<string | undefined>;
|
|
1374
|
+
pattern?: Signalish<string | undefined>;
|
|
1375
|
+
ping?: Signalish<string | undefined>;
|
|
1376
|
+
placeholder?: Signalish<string | undefined>;
|
|
1377
|
+
playsInline?: Signalish<boolean | undefined>;
|
|
1378
|
+
playsinline?: Signalish<boolean | undefined>;
|
|
1379
|
+
playbackRate?: Signalish<number | undefined>;
|
|
1380
|
+
popover?: Signalish<'auto' | 'hint' | 'manual' | boolean | undefined>;
|
|
1381
|
+
popovertarget?: Signalish<string | undefined>;
|
|
1382
|
+
popoverTarget?: Signalish<string | undefined>;
|
|
1383
|
+
popovertargetaction?: Signalish<'hide' | 'show' | 'toggle' | undefined>;
|
|
1384
|
+
popoverTargetAction?: Signalish<'hide' | 'show' | 'toggle' | undefined>;
|
|
1385
|
+
poster?: Signalish<string | undefined>;
|
|
1386
|
+
preload?: Signalish<'auto' | 'metadata' | 'none' | undefined>;
|
|
1387
|
+
preservesPitch?: Signalish<boolean | undefined>;
|
|
1388
|
+
radioGroup?: Signalish<string | undefined>;
|
|
1389
|
+
readonly?: Signalish<boolean | undefined>;
|
|
1390
|
+
readOnly?: Signalish<boolean | undefined>;
|
|
1391
|
+
referrerpolicy?: Signalish<
|
|
1392
|
+
| 'no-referrer'
|
|
1393
|
+
| 'no-referrer-when-downgrade'
|
|
1394
|
+
| 'origin'
|
|
1395
|
+
| 'origin-when-cross-origin'
|
|
1396
|
+
| 'same-origin'
|
|
1397
|
+
| 'strict-origin'
|
|
1398
|
+
| 'strict-origin-when-cross-origin'
|
|
1399
|
+
| 'unsafe-url'
|
|
1400
|
+
| undefined
|
|
1401
|
+
>;
|
|
1402
|
+
rel?: Signalish<string | undefined>;
|
|
1403
|
+
required?: Signalish<boolean | undefined>;
|
|
1404
|
+
reversed?: Signalish<boolean | undefined>;
|
|
1405
|
+
role?: Signalish<AriaRole | undefined>;
|
|
1406
|
+
rows?: Signalish<number | undefined>;
|
|
1407
|
+
rowSpan?: Signalish<number | undefined>;
|
|
1408
|
+
rowspan?: Signalish<number | undefined>;
|
|
1409
|
+
sandbox?: Signalish<string | undefined>;
|
|
1410
|
+
scope?: Signalish<string | undefined>;
|
|
1411
|
+
scoped?: Signalish<boolean | undefined>;
|
|
1412
|
+
scrolling?: Signalish<string | undefined>;
|
|
1413
|
+
seamless?: Signalish<boolean | undefined>;
|
|
1414
|
+
selected?: Signalish<boolean | undefined>;
|
|
1415
|
+
shape?: Signalish<string | undefined>;
|
|
1416
|
+
size?: Signalish<number | undefined>;
|
|
1417
|
+
sizes?: Signalish<string | undefined>;
|
|
1418
|
+
slot?: Signalish<string | undefined>;
|
|
1419
|
+
span?: Signalish<number | undefined>;
|
|
1420
|
+
spellcheck?: Signalish<boolean | undefined>;
|
|
1421
|
+
src?: Signalish<string | undefined>;
|
|
1422
|
+
srcDoc?: Signalish<string | undefined>;
|
|
1423
|
+
srcdoc?: Signalish<string | undefined>;
|
|
1424
|
+
srcLang?: Signalish<string | undefined>;
|
|
1425
|
+
srclang?: Signalish<string | undefined>;
|
|
1426
|
+
srcSet?: Signalish<string | undefined>;
|
|
1427
|
+
srcset?: Signalish<string | undefined>;
|
|
1428
|
+
srcObject?: Signalish<MediaStream | MediaSource | Blob | File | null>;
|
|
1429
|
+
start?: Signalish<number | undefined>;
|
|
1430
|
+
step?: Signalish<number | string | undefined>;
|
|
1431
|
+
style?: Signalish<string | CSSProperties | undefined>;
|
|
1432
|
+
summary?: Signalish<string | undefined>;
|
|
1433
|
+
tabIndex?: Signalish<number | undefined>;
|
|
1434
|
+
tabindex?: Signalish<number | undefined>;
|
|
1435
|
+
target?: Signalish<string | undefined>;
|
|
1436
|
+
title?: Signalish<string | undefined>;
|
|
1437
|
+
type?: Signalish<string | undefined>;
|
|
1438
|
+
useMap?: Signalish<string | undefined>;
|
|
1439
|
+
usemap?: Signalish<string | undefined>;
|
|
1440
|
+
value?: Signalish<string | string[] | number | undefined>;
|
|
1441
|
+
volume?: Signalish<string | number | undefined>;
|
|
1442
|
+
width?: Signalish<number | string | undefined>;
|
|
1443
|
+
wmode?: Signalish<string | undefined>;
|
|
1444
|
+
wrap?: Signalish<string | undefined>;
|
|
1445
|
+
|
|
1446
|
+
// Non-standard Attributes
|
|
1447
|
+
autocapitalize?: Signalish<
|
|
1448
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1449
|
+
>;
|
|
1450
|
+
autoCapitalize?: Signalish<
|
|
1451
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1452
|
+
>;
|
|
1453
|
+
disablePictureInPicture?: Signalish<boolean | undefined>;
|
|
1454
|
+
results?: Signalish<number | undefined>;
|
|
1455
|
+
translate?: Signalish<boolean | undefined>;
|
|
1456
|
+
|
|
1457
|
+
// RDFa Attributes
|
|
1458
|
+
about?: Signalish<string | undefined>;
|
|
1459
|
+
datatype?: Signalish<string | undefined>;
|
|
1460
|
+
inlist?: Signalish<any>;
|
|
1461
|
+
prefix?: Signalish<string | undefined>;
|
|
1462
|
+
property?: Signalish<string | undefined>;
|
|
1463
|
+
resource?: Signalish<string | undefined>;
|
|
1464
|
+
typeof?: Signalish<string | undefined>;
|
|
1465
|
+
vocab?: Signalish<string | undefined>;
|
|
1466
|
+
|
|
1467
|
+
// Microdata Attributes
|
|
1468
|
+
itemProp?: Signalish<string | undefined>;
|
|
1469
|
+
itemprop?: Signalish<string | undefined>;
|
|
1470
|
+
itemScope?: Signalish<boolean | undefined>;
|
|
1471
|
+
itemscope?: Signalish<boolean | undefined>;
|
|
1472
|
+
itemType?: Signalish<string | undefined>;
|
|
1473
|
+
itemtype?: Signalish<string | undefined>;
|
|
1474
|
+
itemID?: Signalish<string | undefined>;
|
|
1475
|
+
itemid?: Signalish<string | undefined>;
|
|
1476
|
+
itemRef?: Signalish<string | undefined>;
|
|
1477
|
+
itemref?: Signalish<string | undefined>;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
export interface HTMLAttributes<RefType extends EventTarget = EventTarget>
|
|
1481
|
+
extends ClassAttributes<RefType>,
|
|
1482
|
+
DOMAttributes<RefType>,
|
|
1483
|
+
AriaAttributes {
|
|
1484
|
+
// Standard HTML Attributes
|
|
1485
|
+
accesskey?: Signalish<string | undefined>;
|
|
1486
|
+
accessKey?: Signalish<string | undefined>;
|
|
1487
|
+
autocapitalize?: Signalish<
|
|
1488
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1489
|
+
>;
|
|
1490
|
+
autoCapitalize?: Signalish<
|
|
1491
|
+
'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
1492
|
+
>;
|
|
1493
|
+
autocorrect?: Signalish<string | undefined>;
|
|
1494
|
+
autoCorrect?: Signalish<string | undefined>;
|
|
1495
|
+
autofocus?: Signalish<boolean | undefined>;
|
|
1496
|
+
autoFocus?: Signalish<boolean | undefined>;
|
|
1497
|
+
class?: Signalish<string | undefined>;
|
|
1498
|
+
className?: Signalish<string | undefined>;
|
|
1499
|
+
contenteditable?: Signalish<
|
|
1500
|
+
Booleanish | '' | 'plaintext-only' | 'inherit' | undefined
|
|
1501
|
+
>;
|
|
1502
|
+
contentEditable?: Signalish<
|
|
1503
|
+
Booleanish | '' | 'plaintext-only' | 'inherit' | undefined
|
|
1504
|
+
>;
|
|
1505
|
+
dir?: Signalish<'auto' | 'rtl' | 'ltr' | undefined>;
|
|
1506
|
+
draggable?: Signalish<boolean | undefined>;
|
|
1507
|
+
enterkeyhint?: Signalish<
|
|
1508
|
+
| 'enter'
|
|
1509
|
+
| 'done'
|
|
1510
|
+
| 'go'
|
|
1511
|
+
| 'next'
|
|
1512
|
+
| 'previous'
|
|
1513
|
+
| 'search'
|
|
1514
|
+
| 'send'
|
|
1515
|
+
| undefined
|
|
1516
|
+
>;
|
|
1517
|
+
exportparts?: Signalish<string | undefined>;
|
|
1518
|
+
hidden?: Signalish<boolean | 'hidden' | 'until-found' | undefined>;
|
|
1519
|
+
id?: Signalish<string | undefined>;
|
|
1520
|
+
inert?: Signalish<boolean | undefined>;
|
|
1521
|
+
inputmode?: Signalish<string | undefined>;
|
|
1522
|
+
inputMode?: Signalish<string | undefined>;
|
|
1523
|
+
is?: Signalish<string | undefined>;
|
|
1524
|
+
lang?: Signalish<string | undefined>;
|
|
1525
|
+
nonce?: Signalish<string | undefined>;
|
|
1526
|
+
part?: Signalish<string | undefined>;
|
|
1527
|
+
popover?: Signalish<'auto' | 'hint' | 'manual' | boolean | undefined>;
|
|
1528
|
+
slot?: Signalish<string | undefined>;
|
|
1529
|
+
spellcheck?: Signalish<boolean | undefined>;
|
|
1530
|
+
style?: Signalish<string | CSSProperties | undefined>;
|
|
1531
|
+
tabindex?: Signalish<number | undefined>;
|
|
1532
|
+
tabIndex?: Signalish<number | undefined>;
|
|
1533
|
+
title?: Signalish<string | undefined>;
|
|
1534
|
+
translate?: Signalish<boolean | undefined>;
|
|
1535
|
+
|
|
1536
|
+
// WAI-ARIA Attributes
|
|
1537
|
+
role?: Signalish<AriaRole | undefined>;
|
|
1538
|
+
|
|
1539
|
+
// Non-standard Attributes
|
|
1540
|
+
disablePictureInPicture?: Signalish<boolean | undefined>;
|
|
1541
|
+
elementtiming?: Signalish<string | undefined>;
|
|
1542
|
+
elementTiming?: Signalish<string | undefined>;
|
|
1543
|
+
results?: Signalish<number | undefined>;
|
|
1544
|
+
|
|
1545
|
+
// RDFa Attributes
|
|
1546
|
+
about?: Signalish<string | undefined>;
|
|
1547
|
+
datatype?: Signalish<string | undefined>;
|
|
1548
|
+
inlist?: Signalish<any>;
|
|
1549
|
+
prefix?: Signalish<string | undefined>;
|
|
1550
|
+
property?: Signalish<string | undefined>;
|
|
1551
|
+
resource?: Signalish<string | undefined>;
|
|
1552
|
+
typeof?: Signalish<string | undefined>;
|
|
1553
|
+
vocab?: Signalish<string | undefined>;
|
|
1554
|
+
|
|
1555
|
+
// Microdata Attributes
|
|
1556
|
+
itemid?: Signalish<string | undefined>;
|
|
1557
|
+
itemID?: Signalish<string | undefined>;
|
|
1558
|
+
itemprop?: Signalish<string | undefined>;
|
|
1559
|
+
itemProp?: Signalish<string | undefined>;
|
|
1560
|
+
itemref?: Signalish<string | undefined>;
|
|
1561
|
+
itemRef?: Signalish<string | undefined>;
|
|
1562
|
+
itemscope?: Signalish<boolean | undefined>;
|
|
1563
|
+
itemScope?: Signalish<boolean | undefined>;
|
|
1564
|
+
itemtype?: Signalish<string | undefined>;
|
|
1565
|
+
itemType?: Signalish<string | undefined>;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
export type HTMLAttributeReferrerPolicy =
|
|
1569
|
+
| ''
|
|
1570
|
+
| 'no-referrer'
|
|
1571
|
+
| 'no-referrer-when-downgrade'
|
|
1572
|
+
| 'origin'
|
|
1573
|
+
| 'origin-when-cross-origin'
|
|
1574
|
+
| 'same-origin'
|
|
1575
|
+
| 'strict-origin'
|
|
1576
|
+
| 'strict-origin-when-cross-origin'
|
|
1577
|
+
| 'unsafe-url';
|
|
1578
|
+
|
|
1579
|
+
export type HTMLAttributeAnchorTarget =
|
|
1580
|
+
| '_self'
|
|
1581
|
+
| '_blank'
|
|
1582
|
+
| '_parent'
|
|
1583
|
+
| '_top'
|
|
1584
|
+
| (string & {});
|
|
1585
|
+
|
|
1586
|
+
export interface AnchorHTMLAttributes<T extends EventTarget = HTMLAnchorElement>
|
|
1587
|
+
extends HTMLAttributes<T> {
|
|
1588
|
+
download?: Signalish<any>;
|
|
1589
|
+
href?: Signalish<string | undefined>;
|
|
1590
|
+
hreflang?: Signalish<string | undefined>;
|
|
1591
|
+
hrefLang?: Signalish<string | undefined>;
|
|
1592
|
+
media?: Signalish<string | undefined>;
|
|
1593
|
+
ping?: Signalish<string | undefined>;
|
|
1594
|
+
rel?: Signalish<string | undefined>;
|
|
1595
|
+
target?: Signalish<HTMLAttributeAnchorTarget | undefined>;
|
|
1596
|
+
type?: Signalish<string | undefined>;
|
|
1597
|
+
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1598
|
+
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
export interface AreaHTMLAttributes<T extends EventTarget = HTMLAreaElement>
|
|
1602
|
+
extends HTMLAttributes<T> {
|
|
1603
|
+
alt?: Signalish<string | undefined>;
|
|
1604
|
+
coords?: Signalish<string | undefined>;
|
|
1605
|
+
download?: Signalish<any>;
|
|
1606
|
+
href?: Signalish<string | undefined>;
|
|
1607
|
+
hreflang?: Signalish<string | undefined>;
|
|
1608
|
+
hrefLang?: Signalish<string | undefined>;
|
|
1609
|
+
media?: Signalish<string | undefined>;
|
|
1610
|
+
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1611
|
+
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1612
|
+
rel?: Signalish<string | undefined>;
|
|
1613
|
+
shape?: Signalish<string | undefined>;
|
|
1614
|
+
target?: Signalish<HTMLAttributeAnchorTarget | undefined>;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
export interface AudioHTMLAttributes<T extends EventTarget = HTMLAudioElement>
|
|
1618
|
+
extends MediaHTMLAttributes<T> {}
|
|
1619
|
+
|
|
1620
|
+
export interface BaseHTMLAttributes<T extends EventTarget = HTMLBaseElement>
|
|
1621
|
+
extends HTMLAttributes<T> {
|
|
1622
|
+
href?: Signalish<string | undefined>;
|
|
1623
|
+
target?: Signalish<HTMLAttributeAnchorTarget | undefined>;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
export interface BlockquoteHTMLAttributes<
|
|
1627
|
+
T extends EventTarget = HTMLQuoteElement
|
|
1628
|
+
> extends HTMLAttributes<T> {
|
|
1629
|
+
cite?: Signalish<string | undefined>;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
export interface ButtonHTMLAttributes<T extends EventTarget = HTMLButtonElement>
|
|
1633
|
+
extends HTMLAttributes<T> {
|
|
1634
|
+
command?: Signalish<string | undefined>;
|
|
1635
|
+
commandfor?: Signalish<string | undefined>;
|
|
1636
|
+
commandFor?: Signalish<string | undefined>;
|
|
1637
|
+
disabled?: Signalish<boolean | undefined>;
|
|
1638
|
+
form?: Signalish<string | undefined>;
|
|
1639
|
+
formaction?: Signalish<string | undefined>;
|
|
1640
|
+
formAction?: Signalish<string | undefined>;
|
|
1641
|
+
formenctype?: Signalish<string | undefined>;
|
|
1642
|
+
formEncType?: Signalish<string | undefined>;
|
|
1643
|
+
formmethod?: Signalish<string | undefined>;
|
|
1644
|
+
formMethod?: Signalish<string | undefined>;
|
|
1645
|
+
formnovalidate?: Signalish<boolean | undefined>;
|
|
1646
|
+
formNoValidate?: Signalish<boolean | undefined>;
|
|
1647
|
+
formtarget?: Signalish<string | undefined>;
|
|
1648
|
+
formTarget?: Signalish<string | undefined>;
|
|
1649
|
+
name?: Signalish<string | undefined>;
|
|
1650
|
+
popovertarget?: Signalish<string | undefined>;
|
|
1651
|
+
popoverTarget?: Signalish<string | undefined>;
|
|
1652
|
+
popovertargetaction?: Signalish<'hide' | 'show' | 'toggle' | undefined>;
|
|
1653
|
+
popoverTargetAction?: Signalish<'hide' | 'show' | 'toggle' | undefined>;
|
|
1654
|
+
type?: Signalish<'submit' | 'reset' | 'button' | undefined>;
|
|
1655
|
+
value?: Signalish<string | number | undefined>;
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
export interface CanvasHTMLAttributes<T extends EventTarget = HTMLCanvasElement>
|
|
1659
|
+
extends HTMLAttributes<T> {
|
|
1660
|
+
height?: Signalish<number | string | undefined>;
|
|
1661
|
+
width?: Signalish<number | string | undefined>;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
export interface ColHTMLAttributes<T extends EventTarget = HTMLTableColElement>
|
|
1665
|
+
extends HTMLAttributes<T> {
|
|
1666
|
+
span?: Signalish<number | undefined>;
|
|
1667
|
+
width?: Signalish<number | string | undefined>;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
export interface ColgroupHTMLAttributes<
|
|
1671
|
+
T extends EventTarget = HTMLTableColElement
|
|
1672
|
+
> extends HTMLAttributes<T> {
|
|
1673
|
+
span?: Signalish<number | undefined>;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
export interface DataHTMLAttributes<T extends EventTarget = HTMLDataElement>
|
|
1677
|
+
extends HTMLAttributes<T> {
|
|
1678
|
+
value?: Signalish<string | number | undefined>;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
export interface DelHTMLAttributes<T extends EventTarget = HTMLModElement>
|
|
1682
|
+
extends HTMLAttributes<T> {
|
|
1683
|
+
cite?: Signalish<string | undefined>;
|
|
1684
|
+
datetime?: Signalish<string | undefined>;
|
|
1685
|
+
dateTime?: Signalish<string | undefined>;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
export interface DetailsHTMLAttributes<
|
|
1689
|
+
T extends EventTarget = HTMLDetailsElement
|
|
1690
|
+
> extends HTMLAttributes<T> {
|
|
1691
|
+
name?: Signalish<string | undefined>;
|
|
1692
|
+
open?: Signalish<boolean | undefined>;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
export interface DialogHTMLAttributes<T extends EventTarget = HTMLDialogElement>
|
|
1696
|
+
extends HTMLAttributes<T> {
|
|
1697
|
+
onCancel?: GenericEventHandler<T> | undefined;
|
|
1698
|
+
onClose?: GenericEventHandler<T> | undefined;
|
|
1699
|
+
open?: Signalish<boolean | undefined>;
|
|
1700
|
+
closedby?: Signalish<'none' | 'closerequest' | 'any' | undefined>;
|
|
1701
|
+
closedBy?: Signalish<'none' | 'closerequest' | 'any' | undefined>;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
export interface EmbedHTMLAttributes<T extends EventTarget = HTMLEmbedElement>
|
|
1705
|
+
extends HTMLAttributes<T> {
|
|
1706
|
+
height?: Signalish<number | string | undefined>;
|
|
1707
|
+
src?: Signalish<string | undefined>;
|
|
1708
|
+
type?: Signalish<string | undefined>;
|
|
1709
|
+
width?: Signalish<number | string | undefined>;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
export interface FieldsetHTMLAttributes<
|
|
1713
|
+
T extends EventTarget = HTMLFieldSetElement
|
|
1714
|
+
> extends HTMLAttributes<T> {
|
|
1715
|
+
disabled?: Signalish<boolean | undefined>;
|
|
1716
|
+
form?: Signalish<string | undefined>;
|
|
1717
|
+
name?: Signalish<string | undefined>;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
export interface FormHTMLAttributes<T extends EventTarget = HTMLFormElement>
|
|
1721
|
+
extends HTMLAttributes<T> {
|
|
1722
|
+
'accept-charset'?: Signalish<string | undefined>;
|
|
1723
|
+
acceptCharset?: Signalish<string | undefined>;
|
|
1724
|
+
action?: Signalish<string | undefined>;
|
|
1725
|
+
autocomplete?: Signalish<string | undefined>;
|
|
1726
|
+
autoComplete?: Signalish<string | undefined>;
|
|
1727
|
+
enctype?: Signalish<string | undefined>;
|
|
1728
|
+
encType?: Signalish<string | undefined>;
|
|
1729
|
+
method?: Signalish<string | undefined>;
|
|
1730
|
+
name?: Signalish<string | undefined>;
|
|
1731
|
+
novalidate?: Signalish<boolean | undefined>;
|
|
1732
|
+
noValidate?: Signalish<boolean | undefined>;
|
|
1733
|
+
rel?: Signalish<string | undefined>;
|
|
1734
|
+
target?: Signalish<string | undefined>;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
export interface IframeHTMLAttributes<T extends EventTarget = HTMLIFrameElement>
|
|
1738
|
+
extends HTMLAttributes<T> {
|
|
1739
|
+
allow?: Signalish<string | undefined>;
|
|
1740
|
+
allowFullScreen?: Signalish<boolean | undefined>;
|
|
1741
|
+
allowTransparency?: Signalish<boolean | undefined>;
|
|
1742
|
+
/** @deprecated */
|
|
1743
|
+
frameborder?: Signalish<number | string | undefined>;
|
|
1744
|
+
/** @deprecated */
|
|
1745
|
+
frameBorder?: Signalish<number | string | undefined>;
|
|
1746
|
+
height?: Signalish<number | string | undefined>;
|
|
1747
|
+
loading?: Signalish<'eager' | 'lazy' | undefined>;
|
|
1748
|
+
/** @deprecated */
|
|
1749
|
+
marginHeight?: Signalish<number | undefined>;
|
|
1750
|
+
/** @deprecated */
|
|
1751
|
+
marginWidth?: Signalish<number | undefined>;
|
|
1752
|
+
name?: Signalish<string | undefined>;
|
|
1753
|
+
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1754
|
+
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1755
|
+
sandbox?: Signalish<string | undefined>;
|
|
1756
|
+
/** @deprecated */
|
|
1757
|
+
scrolling?: Signalish<string | undefined>;
|
|
1758
|
+
seamless?: Signalish<boolean | undefined>;
|
|
1759
|
+
src?: Signalish<string | undefined>;
|
|
1760
|
+
srcdoc?: Signalish<string | undefined>;
|
|
1761
|
+
srcDoc?: Signalish<string | undefined>;
|
|
1762
|
+
width?: Signalish<number | string | undefined>;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
export type HTMLAttributeCrossOrigin = 'anonymous' | 'use-credentials';
|
|
1766
|
+
|
|
1767
|
+
export interface ImgHTMLAttributes<T extends EventTarget = HTMLImageElement>
|
|
1768
|
+
extends HTMLAttributes<T> {
|
|
1769
|
+
alt?: Signalish<string | undefined>;
|
|
1770
|
+
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
1771
|
+
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
1772
|
+
decoding?: Signalish<'async' | 'auto' | 'sync' | undefined>;
|
|
1773
|
+
fetchpriority?: Signalish<'high' | 'auto' | 'low' | undefined>;
|
|
1774
|
+
fetchPriority?: Signalish<'high' | 'auto' | 'low' | undefined>;
|
|
1775
|
+
height?: Signalish<number | string | undefined>;
|
|
1776
|
+
loading?: Signalish<'eager' | 'lazy' | undefined>;
|
|
1777
|
+
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1778
|
+
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1779
|
+
sizes?: Signalish<string | undefined>;
|
|
1780
|
+
src?: Signalish<string | undefined>;
|
|
1781
|
+
srcset?: Signalish<string | undefined>;
|
|
1782
|
+
srcSet?: Signalish<string | undefined>;
|
|
1783
|
+
usemap?: Signalish<string | undefined>;
|
|
1784
|
+
useMap?: Signalish<string | undefined>;
|
|
1785
|
+
width?: Signalish<number | string | undefined>;
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
export type HTMLInputTypeAttribute =
|
|
1789
|
+
| 'button'
|
|
1790
|
+
| 'checkbox'
|
|
1791
|
+
| 'color'
|
|
1792
|
+
| 'date'
|
|
1793
|
+
| 'datetime-local'
|
|
1794
|
+
| 'email'
|
|
1795
|
+
| 'file'
|
|
1796
|
+
| 'hidden'
|
|
1797
|
+
| 'image'
|
|
1798
|
+
| 'month'
|
|
1799
|
+
| 'number'
|
|
1800
|
+
| 'password'
|
|
1801
|
+
| 'radio'
|
|
1802
|
+
| 'range'
|
|
1803
|
+
| 'reset'
|
|
1804
|
+
| 'search'
|
|
1805
|
+
| 'submit'
|
|
1806
|
+
| 'tel'
|
|
1807
|
+
| 'text'
|
|
1808
|
+
| 'time'
|
|
1809
|
+
| 'url'
|
|
1810
|
+
| 'week'
|
|
1811
|
+
| (string & {});
|
|
1812
|
+
|
|
1813
|
+
export interface InputHTMLAttributes<T extends EventTarget = HTMLInputElement>
|
|
1814
|
+
extends HTMLAttributes<T> {
|
|
1815
|
+
accept?: Signalish<string | undefined>;
|
|
1816
|
+
alt?: Signalish<string | undefined>;
|
|
1817
|
+
autocomplete?: Signalish<string | undefined>;
|
|
1818
|
+
autoComplete?: Signalish<string | undefined>;
|
|
1819
|
+
capture?: Signalish<'user' | 'environment' | undefined>; // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
|
|
1820
|
+
checked?: Signalish<boolean | undefined>;
|
|
1821
|
+
defaultChecked?: Signalish<boolean | undefined>;
|
|
1822
|
+
defaultValue?: Signalish<string | number | undefined>;
|
|
1823
|
+
disabled?: Signalish<boolean | undefined>;
|
|
1824
|
+
enterKeyHint?: Signalish<
|
|
1825
|
+
| 'enter'
|
|
1826
|
+
| 'done'
|
|
1827
|
+
| 'go'
|
|
1828
|
+
| 'next'
|
|
1829
|
+
| 'previous'
|
|
1830
|
+
| 'search'
|
|
1831
|
+
| 'send'
|
|
1832
|
+
| undefined
|
|
1833
|
+
>;
|
|
1834
|
+
form?: Signalish<string | undefined>;
|
|
1835
|
+
formaction?: Signalish<string | undefined>;
|
|
1836
|
+
formAction?: Signalish<string | undefined>;
|
|
1837
|
+
formenctype?: Signalish<string | undefined>;
|
|
1838
|
+
formEncType?: Signalish<string | undefined>;
|
|
1839
|
+
formmethod?: Signalish<string | undefined>;
|
|
1840
|
+
formMethod?: Signalish<string | undefined>;
|
|
1841
|
+
formnovalidate?: Signalish<boolean | undefined>;
|
|
1842
|
+
formNoValidate?: Signalish<boolean | undefined>;
|
|
1843
|
+
formtarget?: Signalish<string | undefined>;
|
|
1844
|
+
formTarget?: Signalish<string | undefined>;
|
|
1845
|
+
height?: Signalish<number | string | undefined>;
|
|
1846
|
+
indeterminate?: Signalish<boolean | undefined>;
|
|
1847
|
+
list?: Signalish<string | undefined>;
|
|
1848
|
+
max?: Signalish<number | string | undefined>;
|
|
1849
|
+
maxlength?: Signalish<number | undefined>;
|
|
1850
|
+
maxLength?: Signalish<number | undefined>;
|
|
1851
|
+
min?: Signalish<number | string | undefined>;
|
|
1852
|
+
minlength?: Signalish<number | undefined>;
|
|
1853
|
+
minLength?: Signalish<number | undefined>;
|
|
1854
|
+
multiple?: Signalish<boolean | undefined>;
|
|
1855
|
+
name?: Signalish<string | undefined>;
|
|
1856
|
+
pattern?: Signalish<string | undefined>;
|
|
1857
|
+
placeholder?: Signalish<string | undefined>;
|
|
1858
|
+
readonly?: Signalish<boolean | undefined>;
|
|
1859
|
+
readOnly?: Signalish<boolean | undefined>;
|
|
1860
|
+
required?: Signalish<boolean | undefined>;
|
|
1861
|
+
size?: Signalish<number | undefined>;
|
|
1862
|
+
src?: Signalish<string | undefined>;
|
|
1863
|
+
step?: Signalish<number | string | undefined>;
|
|
1864
|
+
type?: HTMLInputTypeAttribute | undefined;
|
|
1865
|
+
value?: Signalish<string | number | undefined>;
|
|
1866
|
+
width?: Signalish<number | string | undefined>;
|
|
1867
|
+
onChange?: GenericEventHandler<T> | undefined;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
export interface InsHTMLAttributes<T extends EventTarget = HTMLModElement>
|
|
1871
|
+
extends HTMLAttributes<T> {
|
|
1872
|
+
cite?: Signalish<string | undefined>;
|
|
1873
|
+
datetime?: Signalish<string | undefined>;
|
|
1874
|
+
dateTime?: Signalish<string | undefined>;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
export interface KeygenHTMLAttributes<
|
|
1878
|
+
T extends EventTarget = HTMLUnknownElement
|
|
1879
|
+
> extends HTMLAttributes<T> {
|
|
1880
|
+
challenge?: Signalish<string | undefined>;
|
|
1881
|
+
disabled?: Signalish<boolean | undefined>;
|
|
1882
|
+
form?: Signalish<string | undefined>;
|
|
1883
|
+
keyType?: Signalish<string | undefined>;
|
|
1884
|
+
keyParams?: Signalish<string | undefined>;
|
|
1885
|
+
name?: Signalish<string | undefined>;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export interface LabelHTMLAttributes<T extends EventTarget = HTMLLabelElement>
|
|
1889
|
+
extends HTMLAttributes<T> {
|
|
1890
|
+
for?: Signalish<string | undefined>;
|
|
1891
|
+
form?: Signalish<string | undefined>;
|
|
1892
|
+
htmlFor?: Signalish<string | undefined>;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
export interface LiHTMLAttributes<T extends EventTarget = HTMLLIElement>
|
|
1896
|
+
extends HTMLAttributes<T> {
|
|
1897
|
+
value?: Signalish<string | number | undefined>;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
export interface LinkHTMLAttributes<T extends EventTarget = HTMLLinkElement>
|
|
1901
|
+
extends HTMLAttributes<T> {
|
|
1902
|
+
as?: Signalish<string | undefined>;
|
|
1903
|
+
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
1904
|
+
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
1905
|
+
fetchpriority?: Signalish<'high' | 'low' | 'auto' | undefined>;
|
|
1906
|
+
fetchPriority?: Signalish<'high' | 'low' | 'auto' | undefined>;
|
|
1907
|
+
href?: Signalish<string | undefined>;
|
|
1908
|
+
hreflang?: Signalish<string | undefined>;
|
|
1909
|
+
hrefLang?: Signalish<string | undefined>;
|
|
1910
|
+
integrity?: Signalish<string | undefined>;
|
|
1911
|
+
media?: Signalish<string | undefined>;
|
|
1912
|
+
imageSrcSet?: Signalish<string | undefined>;
|
|
1913
|
+
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1914
|
+
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
1915
|
+
rel?: Signalish<string | undefined>;
|
|
1916
|
+
sizes?: Signalish<string | undefined>;
|
|
1917
|
+
type?: Signalish<string | undefined>;
|
|
1918
|
+
charset?: Signalish<string | undefined>;
|
|
1919
|
+
charSet?: Signalish<string | undefined>;
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
export interface MapHTMLAttributes<T extends EventTarget = HTMLMapElement>
|
|
1923
|
+
extends HTMLAttributes<T> {
|
|
1924
|
+
name?: Signalish<string | undefined>;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
export interface MarqueeHTMLAttributes<
|
|
1928
|
+
T extends EventTarget = HTMLMarqueeElement
|
|
1929
|
+
> extends HTMLAttributes<T> {
|
|
1930
|
+
behavior?: Signalish<'scroll' | 'slide' | 'alternate' | undefined>;
|
|
1931
|
+
bgColor?: Signalish<string | undefined>;
|
|
1932
|
+
direction?: Signalish<'left' | 'right' | 'up' | 'down' | undefined>;
|
|
1933
|
+
height?: Signalish<number | string | undefined>;
|
|
1934
|
+
hspace?: Signalish<number | string | undefined>;
|
|
1935
|
+
loop?: Signalish<number | string | undefined>;
|
|
1936
|
+
scrollAmount?: Signalish<number | string | undefined>;
|
|
1937
|
+
scrollDelay?: Signalish<number | string | undefined>;
|
|
1938
|
+
trueSpeed?: Signalish<boolean | undefined>;
|
|
1939
|
+
vspace?: Signalish<number | string | undefined>;
|
|
1940
|
+
width?: Signalish<number | string | undefined>;
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
export interface MediaHTMLAttributes<T extends EventTarget = HTMLMediaElement>
|
|
1944
|
+
extends HTMLAttributes<T> {
|
|
1945
|
+
autoplay?: Signalish<boolean | undefined>;
|
|
1946
|
+
autoPlay?: Signalish<boolean | undefined>;
|
|
1947
|
+
controls?: Signalish<boolean | undefined>;
|
|
1948
|
+
controlslist?: Signalish<string | undefined>;
|
|
1949
|
+
controlsList?: Signalish<string | undefined>;
|
|
1950
|
+
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
1951
|
+
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
1952
|
+
currentTime?: Signalish<number | undefined>;
|
|
1953
|
+
defaultMuted?: Signalish<boolean | undefined>;
|
|
1954
|
+
defaultPlaybackRate?: Signalish<number | undefined>;
|
|
1955
|
+
disableremoteplayback?: Signalish<boolean | undefined>;
|
|
1956
|
+
disableRemotePlayback?: Signalish<boolean | undefined>;
|
|
1957
|
+
loop?: Signalish<boolean | undefined>;
|
|
1958
|
+
mediaGroup?: Signalish<string | undefined>;
|
|
1959
|
+
muted?: Signalish<boolean | undefined>;
|
|
1960
|
+
playbackRate?: Signalish<number | undefined>;
|
|
1961
|
+
preload?: Signalish<'auto' | 'metadata' | 'none' | undefined>;
|
|
1962
|
+
preservesPitch?: Signalish<boolean | undefined>;
|
|
1963
|
+
src?: Signalish<string | undefined>;
|
|
1964
|
+
srcObject?: Signalish<MediaStream | MediaSource | Blob | File | null>;
|
|
1965
|
+
volume?: Signalish<string | number | undefined>;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
export interface MenuHTMLAttributes<T extends EventTarget = HTMLMenuElement>
|
|
1969
|
+
extends HTMLAttributes<T> {
|
|
1970
|
+
type?: Signalish<string | undefined>;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
export interface MetaHTMLAttributes<T extends EventTarget = HTMLMetaElement>
|
|
1974
|
+
extends HTMLAttributes<T> {
|
|
1975
|
+
charset?: Signalish<string | undefined>;
|
|
1976
|
+
charSet?: Signalish<string | undefined>;
|
|
1977
|
+
content?: Signalish<string | undefined>;
|
|
1978
|
+
'http-equiv'?: Signalish<string | undefined>;
|
|
1979
|
+
httpEquiv?: Signalish<string | undefined>;
|
|
1980
|
+
name?: Signalish<string | undefined>;
|
|
1981
|
+
media?: Signalish<string | undefined>;
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
export interface MeterHTMLAttributes<T extends EventTarget = HTMLMeterElement>
|
|
1985
|
+
extends HTMLAttributes<T> {
|
|
1986
|
+
form?: Signalish<string | undefined>;
|
|
1987
|
+
high?: Signalish<number | undefined>;
|
|
1988
|
+
low?: Signalish<number | undefined>;
|
|
1989
|
+
max?: Signalish<number | string | undefined>;
|
|
1990
|
+
min?: Signalish<number | string | undefined>;
|
|
1991
|
+
optimum?: Signalish<number | undefined>;
|
|
1992
|
+
value?: Signalish<string | number | undefined>;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
export interface ObjectHTMLAttributes<T extends EventTarget = HTMLObjectElement>
|
|
1996
|
+
extends HTMLAttributes<T> {
|
|
1997
|
+
classID?: Signalish<string | undefined>;
|
|
1998
|
+
data?: Signalish<string | undefined>;
|
|
1999
|
+
form?: Signalish<string | undefined>;
|
|
2000
|
+
height?: Signalish<number | string | undefined>;
|
|
2001
|
+
name?: Signalish<string | undefined>;
|
|
2002
|
+
type?: Signalish<string | undefined>;
|
|
2003
|
+
usemap?: Signalish<string | undefined>;
|
|
2004
|
+
useMap?: Signalish<string | undefined>;
|
|
2005
|
+
width?: Signalish<number | string | undefined>;
|
|
2006
|
+
wmode?: Signalish<string | undefined>;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
export interface OlHTMLAttributes<T extends EventTarget = HTMLOListElement>
|
|
2010
|
+
extends HTMLAttributes<T> {
|
|
2011
|
+
reversed?: Signalish<boolean | undefined>;
|
|
2012
|
+
start?: Signalish<number | undefined>;
|
|
2013
|
+
type?: Signalish<'1' | 'a' | 'A' | 'i' | 'I' | undefined>;
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
export interface OptgroupHTMLAttributes<
|
|
2017
|
+
T extends EventTarget = HTMLOptGroupElement
|
|
2018
|
+
> extends HTMLAttributes<T> {
|
|
2019
|
+
disabled?: Signalish<boolean | undefined>;
|
|
2020
|
+
label?: Signalish<string | undefined>;
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
export interface OptionHTMLAttributes<T extends EventTarget = HTMLOptionElement>
|
|
2024
|
+
extends HTMLAttributes<T> {
|
|
2025
|
+
disabled?: Signalish<boolean | undefined>;
|
|
2026
|
+
label?: Signalish<string | undefined>;
|
|
2027
|
+
selected?: Signalish<boolean | undefined>;
|
|
2028
|
+
value?: Signalish<string | number | undefined>;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
export interface OutputHTMLAttributes<T extends EventTarget = HTMLOutputElement>
|
|
2032
|
+
extends HTMLAttributes<T> {
|
|
2033
|
+
for?: Signalish<string | undefined>;
|
|
2034
|
+
form?: Signalish<string | undefined>;
|
|
2035
|
+
htmlFor?: Signalish<string | undefined>;
|
|
2036
|
+
name?: Signalish<string | undefined>;
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
export interface ParamHTMLAttributes<T extends EventTarget = HTMLParamElement>
|
|
2040
|
+
extends HTMLAttributes<T> {
|
|
2041
|
+
name?: Signalish<string | undefined>;
|
|
2042
|
+
value?: Signalish<string | number | undefined>;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
export interface ProgressHTMLAttributes<
|
|
2046
|
+
T extends EventTarget = HTMLProgressElement
|
|
2047
|
+
> extends HTMLAttributes<T> {
|
|
2048
|
+
max?: Signalish<number | string | undefined>;
|
|
2049
|
+
value?: Signalish<string | number | undefined>;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
export interface QuoteHTMLAttributes<T extends EventTarget = HTMLQuoteElement>
|
|
2053
|
+
extends HTMLAttributes<T> {
|
|
2054
|
+
cite?: Signalish<string | undefined>;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
export interface ScriptHTMLAttributes<T extends EventTarget = HTMLScriptElement>
|
|
2058
|
+
extends HTMLAttributes<T> {
|
|
2059
|
+
async?: Signalish<boolean | undefined>;
|
|
2060
|
+
/** @deprecated */
|
|
2061
|
+
charset?: Signalish<string | undefined>;
|
|
2062
|
+
/** @deprecated */
|
|
2063
|
+
charSet?: Signalish<string | undefined>;
|
|
2064
|
+
crossorigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
2065
|
+
crossOrigin?: Signalish<HTMLAttributeCrossOrigin>;
|
|
2066
|
+
defer?: Signalish<boolean | undefined>;
|
|
2067
|
+
integrity?: Signalish<string | undefined>;
|
|
2068
|
+
nomodule?: Signalish<boolean | undefined>;
|
|
2069
|
+
noModule?: Signalish<boolean | undefined>;
|
|
2070
|
+
referrerpolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
2071
|
+
referrerPolicy?: Signalish<HTMLAttributeReferrerPolicy | undefined>;
|
|
2072
|
+
src?: Signalish<string | undefined>;
|
|
2073
|
+
type?: Signalish<string | undefined>;
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
export interface SelectHTMLAttributes<T extends EventTarget = HTMLSelectElement>
|
|
2077
|
+
extends HTMLAttributes<T> {
|
|
2078
|
+
autocomplete?: Signalish<string | undefined>;
|
|
2079
|
+
autoComplete?: Signalish<string | undefined>;
|
|
2080
|
+
defaultValue?: Signalish<string | number | undefined>;
|
|
2081
|
+
disabled?: Signalish<boolean | undefined>;
|
|
2082
|
+
form?: Signalish<string | undefined>;
|
|
2083
|
+
multiple?: Signalish<boolean | undefined>;
|
|
2084
|
+
name?: Signalish<string | undefined>;
|
|
2085
|
+
required?: Signalish<boolean | undefined>;
|
|
2086
|
+
size?: Signalish<number | undefined>;
|
|
2087
|
+
value?: Signalish<string | number | undefined>;
|
|
2088
|
+
onChange?: GenericEventHandler<T> | undefined;
|
|
2089
|
+
}
|
|
2090
|
+
|
|
2091
|
+
export interface SlotHTMLAttributes<T extends EventTarget = HTMLSlotElement>
|
|
2092
|
+
extends HTMLAttributes<T> {
|
|
2093
|
+
name?: Signalish<string | undefined>;
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
export interface SourceHTMLAttributes<T extends EventTarget = HTMLSourceElement>
|
|
2097
|
+
extends HTMLAttributes<T> {
|
|
2098
|
+
height?: Signalish<number | string | undefined>;
|
|
2099
|
+
media?: Signalish<string | undefined>;
|
|
2100
|
+
sizes?: Signalish<string | undefined>;
|
|
2101
|
+
src?: Signalish<string | undefined>;
|
|
2102
|
+
srcset?: Signalish<string | undefined>;
|
|
2103
|
+
srcSet?: Signalish<string | undefined>;
|
|
2104
|
+
type?: Signalish<string | undefined>;
|
|
2105
|
+
width?: Signalish<number | string | undefined>;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
export interface StyleHTMLAttributes<T extends EventTarget = HTMLStyleElement>
|
|
2109
|
+
extends HTMLAttributes<T> {
|
|
2110
|
+
media?: Signalish<string | undefined>;
|
|
2111
|
+
scoped?: Signalish<boolean | undefined>;
|
|
2112
|
+
type?: Signalish<string | undefined>;
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
export interface TableHTMLAttributes<T extends EventTarget = HTMLTableElement>
|
|
2116
|
+
extends HTMLAttributes<T> {
|
|
2117
|
+
cellPadding?: Signalish<string | undefined>;
|
|
2118
|
+
cellSpacing?: Signalish<string | undefined>;
|
|
2119
|
+
summary?: Signalish<string | undefined>;
|
|
2120
|
+
width?: Signalish<number | string | undefined>;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
export interface TdHTMLAttributes<T extends EventTarget = HTMLTableCellElement>
|
|
2124
|
+
extends HTMLAttributes<T> {
|
|
2125
|
+
align?: Signalish<
|
|
2126
|
+
'left' | 'center' | 'right' | 'justify' | 'char' | undefined
|
|
2127
|
+
>;
|
|
2128
|
+
colspan?: Signalish<number | undefined>;
|
|
2129
|
+
colSpan?: Signalish<number | undefined>;
|
|
2130
|
+
headers?: Signalish<string | undefined>;
|
|
2131
|
+
rowspan?: Signalish<number | undefined>;
|
|
2132
|
+
rowSpan?: Signalish<number | undefined>;
|
|
2133
|
+
scope?: Signalish<string | undefined>;
|
|
2134
|
+
abbr?: Signalish<string | undefined>;
|
|
2135
|
+
height?: Signalish<number | string | undefined>;
|
|
2136
|
+
width?: Signalish<number | string | undefined>;
|
|
2137
|
+
valign?: Signalish<'top' | 'middle' | 'bottom' | 'baseline' | undefined>;
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
export interface TextareaHTMLAttributes<
|
|
2141
|
+
T extends EventTarget = HTMLTextAreaElement
|
|
2142
|
+
> extends HTMLAttributes<T> {
|
|
2143
|
+
autocomplete?: Signalish<string | undefined>;
|
|
2144
|
+
autoComplete?: Signalish<string | undefined>;
|
|
2145
|
+
cols?: Signalish<number | undefined>;
|
|
2146
|
+
defaultValue?: Signalish<string | number | undefined>;
|
|
2147
|
+
dirName?: Signalish<string | undefined>;
|
|
2148
|
+
disabled?: Signalish<boolean | undefined>;
|
|
2149
|
+
form?: Signalish<string | undefined>;
|
|
2150
|
+
maxlength?: Signalish<number | undefined>;
|
|
2151
|
+
maxLength?: Signalish<number | undefined>;
|
|
2152
|
+
minlength?: Signalish<number | undefined>;
|
|
2153
|
+
minLength?: Signalish<number | undefined>;
|
|
2154
|
+
name?: Signalish<string | undefined>;
|
|
2155
|
+
placeholder?: Signalish<string | undefined>;
|
|
2156
|
+
readOnly?: Signalish<boolean | undefined>;
|
|
2157
|
+
required?: Signalish<boolean | undefined>;
|
|
2158
|
+
rows?: Signalish<number | undefined>;
|
|
2159
|
+
value?: Signalish<string | number | undefined>;
|
|
2160
|
+
wrap?: Signalish<string | undefined>;
|
|
2161
|
+
onChange?: GenericEventHandler<T> | undefined;
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
export interface ThHTMLAttributes<T extends EventTarget = HTMLTableCellElement>
|
|
2165
|
+
extends HTMLAttributes<T> {
|
|
2166
|
+
align?: Signalish<
|
|
2167
|
+
'left' | 'center' | 'right' | 'justify' | 'char' | undefined
|
|
2168
|
+
>;
|
|
2169
|
+
colspan?: Signalish<number | undefined>;
|
|
2170
|
+
colSpan?: Signalish<number | undefined>;
|
|
2171
|
+
headers?: Signalish<string | undefined>;
|
|
2172
|
+
rowspan?: Signalish<number | undefined>;
|
|
2173
|
+
rowSpan?: Signalish<number | undefined>;
|
|
2174
|
+
scope?: Signalish<string | undefined>;
|
|
2175
|
+
abbr?: Signalish<string | undefined>;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
export interface TimeHTMLAttributes<T extends EventTarget = HTMLTimeElement>
|
|
2179
|
+
extends HTMLAttributes<T> {
|
|
2180
|
+
datetime?: Signalish<string | undefined>;
|
|
2181
|
+
dateTime?: Signalish<string | undefined>;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
export interface TrackHTMLAttributes<T extends EventTarget = HTMLTrackElement>
|
|
2185
|
+
extends MediaHTMLAttributes<T> {
|
|
2186
|
+
default?: Signalish<boolean | undefined>;
|
|
2187
|
+
kind?: Signalish<string | undefined>;
|
|
2188
|
+
label?: Signalish<string | undefined>;
|
|
2189
|
+
srclang?: Signalish<string | undefined>;
|
|
2190
|
+
srcLang?: Signalish<string | undefined>;
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
export interface VideoHTMLAttributes<T extends EventTarget = HTMLVideoElement>
|
|
2194
|
+
extends MediaHTMLAttributes<T> {
|
|
2195
|
+
disablePictureInPicture?: Signalish<boolean | undefined>;
|
|
2196
|
+
height?: Signalish<number | string | undefined>;
|
|
2197
|
+
playsinline?: Signalish<boolean | undefined>;
|
|
2198
|
+
playsInline?: Signalish<boolean | undefined>;
|
|
2199
|
+
poster?: Signalish<string | undefined>;
|
|
2200
|
+
width?: Signalish<number | string | undefined>;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
export type DetailedHTMLProps<
|
|
2204
|
+
HA extends HTMLAttributes<RefType>,
|
|
2205
|
+
RefType extends EventTarget = EventTarget
|
|
2206
|
+
> = HA;
|
|
2207
|
+
|
|
2208
|
+
export interface MathMLAttributes<Target extends EventTarget = MathMLElement>
|
|
2209
|
+
extends HTMLAttributes<Target> {
|
|
2210
|
+
dir?: Signalish<'ltr' | 'rtl' | undefined>;
|
|
2211
|
+
displaystyle?: Signalish<boolean | undefined>;
|
|
2212
|
+
/** @deprecated This feature is non-standard. See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/href */
|
|
2213
|
+
href?: Signalish<string | undefined>;
|
|
2214
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/mathbackground */
|
|
2215
|
+
mathbackground?: Signalish<string | undefined>;
|
|
2216
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/mathcolor */
|
|
2217
|
+
mathcolor?: Signalish<string | undefined>;
|
|
2218
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Global_attributes/mathsize */
|
|
2219
|
+
mathsize?: Signalish<string | undefined>;
|
|
2220
|
+
nonce?: Signalish<string | undefined>;
|
|
2221
|
+
scriptlevel?: Signalish<string | undefined>;
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
export interface AnnotationMathMLAttributes<T extends EventTarget>
|
|
2225
|
+
extends MathMLAttributes<T> {
|
|
2226
|
+
encoding?: Signalish<string | undefined>;
|
|
2227
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics#src */
|
|
2228
|
+
src?: Signalish<string | undefined>;
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2231
|
+
export interface AnnotationXmlMathMLAttributes<T extends EventTarget>
|
|
2232
|
+
extends MathMLAttributes<T> {
|
|
2233
|
+
encoding?: Signalish<string | undefined>;
|
|
2234
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/semantics#src */
|
|
2235
|
+
src?: Signalish<string | undefined>;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
export interface MActionMathMLAttributes<T extends EventTarget>
|
|
2239
|
+
extends MathMLAttributes<T> {
|
|
2240
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/maction#actiontype */
|
|
2241
|
+
actiontype?: Signalish<'statusline' | 'toggle' | undefined>;
|
|
2242
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/maction#selection */
|
|
2243
|
+
selection?: Signalish<string | undefined>;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
export interface MathMathMLAttributes<T extends EventTarget>
|
|
2247
|
+
extends MathMLAttributes<T> {
|
|
2248
|
+
display?: Signalish<'block' | 'inline' | undefined>;
|
|
2249
|
+
}
|
|
2250
|
+
|
|
2251
|
+
export interface MEncloseMathMLAttributes<T extends EventTarget>
|
|
2252
|
+
extends MathMLAttributes<T> {
|
|
2253
|
+
notation?: Signalish<string | undefined>;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
export interface MErrorMathMLAttributes<T extends EventTarget>
|
|
2257
|
+
extends MathMLAttributes<T> {}
|
|
2258
|
+
|
|
2259
|
+
export interface MFencedMathMLAttributes<T extends EventTarget>
|
|
2260
|
+
extends MathMLAttributes<T> {
|
|
2261
|
+
close?: Signalish<string | undefined>;
|
|
2262
|
+
open?: Signalish<string | undefined>;
|
|
2263
|
+
separators?: Signalish<string | undefined>;
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
export interface MFracMathMLAttributes<T extends EventTarget>
|
|
2267
|
+
extends MathMLAttributes<T> {
|
|
2268
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfrac#denomalign */
|
|
2269
|
+
denomalign?: Signalish<'center' | 'left' | 'right' | undefined>;
|
|
2270
|
+
linethickness?: Signalish<string | undefined>;
|
|
2271
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfrac#numalign */
|
|
2272
|
+
numalign?: Signalish<'center' | 'left' | 'right' | undefined>;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
export interface MiMathMLAttributes<T extends EventTarget>
|
|
2276
|
+
extends MathMLAttributes<T> {
|
|
2277
|
+
/** The only value allowed in the current specification is normal (case insensitive)
|
|
2278
|
+
* See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mi#mathvariant */
|
|
2279
|
+
mathvariant?: Signalish<
|
|
2280
|
+
| 'normal'
|
|
2281
|
+
| 'bold'
|
|
2282
|
+
| 'italic'
|
|
2283
|
+
| 'bold-italic'
|
|
2284
|
+
| 'double-struck'
|
|
2285
|
+
| 'bold-fraktur'
|
|
2286
|
+
| 'script'
|
|
2287
|
+
| 'bold-script'
|
|
2288
|
+
| 'fraktur'
|
|
2289
|
+
| 'sans-serif'
|
|
2290
|
+
| 'bold-sans-serif'
|
|
2291
|
+
| 'sans-serif-italic'
|
|
2292
|
+
| 'sans-serif-bold-italic'
|
|
2293
|
+
| 'monospace'
|
|
2294
|
+
| 'initial'
|
|
2295
|
+
| 'tailed'
|
|
2296
|
+
| 'looped'
|
|
2297
|
+
| 'stretched'
|
|
2298
|
+
| undefined
|
|
2299
|
+
>;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
export interface MmultiScriptsMathMLAttributes<T extends EventTarget>
|
|
2303
|
+
extends MathMLAttributes<T> {
|
|
2304
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mmultiscripts#subscriptshift */
|
|
2305
|
+
subscriptshift?: Signalish<string | undefined>;
|
|
2306
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mmultiscripts#superscriptshift */
|
|
2307
|
+
superscriptshift?: Signalish<string | undefined>;
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
export interface MNMathMLAttributes<T extends EventTarget>
|
|
2311
|
+
extends MathMLAttributes<T> {}
|
|
2312
|
+
|
|
2313
|
+
export interface MOMathMLAttributes<T extends EventTarget>
|
|
2314
|
+
extends MathMLAttributes<T> {
|
|
2315
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mo#accent */
|
|
2316
|
+
accent?: Signalish<boolean | undefined>;
|
|
2317
|
+
fence?: Signalish<boolean | undefined>;
|
|
2318
|
+
largeop?: Signalish<boolean | undefined>;
|
|
2319
|
+
lspace?: Signalish<string | undefined>;
|
|
2320
|
+
maxsize?: Signalish<string | undefined>;
|
|
2321
|
+
minsize?: Signalish<string | undefined>;
|
|
2322
|
+
movablelimits?: Signalish<boolean | undefined>;
|
|
2323
|
+
rspace?: Signalish<string | undefined>;
|
|
2324
|
+
separator?: Signalish<boolean | undefined>;
|
|
2325
|
+
stretchy?: Signalish<boolean | undefined>;
|
|
2326
|
+
symmetric?: Signalish<boolean | undefined>;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
export interface MOverMathMLAttributes<T extends EventTarget>
|
|
2330
|
+
extends MathMLAttributes<T> {
|
|
2331
|
+
accent?: Signalish<boolean | undefined>;
|
|
2332
|
+
}
|
|
2333
|
+
|
|
2334
|
+
export interface MPaddedMathMLAttributes<T extends EventTarget>
|
|
2335
|
+
extends MathMLAttributes<T> {
|
|
2336
|
+
depth?: Signalish<string | undefined>;
|
|
2337
|
+
height?: Signalish<string | undefined>;
|
|
2338
|
+
lspace?: Signalish<string | undefined>;
|
|
2339
|
+
voffset?: Signalish<string | undefined>;
|
|
2340
|
+
width?: Signalish<string | undefined>;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
export interface MPhantomMathMLAttributes<T extends EventTarget>
|
|
2344
|
+
extends MathMLAttributes<T> {}
|
|
2345
|
+
|
|
2346
|
+
export interface MPrescriptsMathMLAttributes<T extends EventTarget>
|
|
2347
|
+
extends MathMLAttributes<T> {}
|
|
2348
|
+
|
|
2349
|
+
export interface MRootMathMLAttributes<T extends EventTarget>
|
|
2350
|
+
extends MathMLAttributes<T> {}
|
|
2351
|
+
|
|
2352
|
+
export interface MRowMathMLAttributes<T extends EventTarget>
|
|
2353
|
+
extends MathMLAttributes<T> {}
|
|
2354
|
+
|
|
2355
|
+
export interface MSMathMLAttributes<T extends EventTarget>
|
|
2356
|
+
extends MathMLAttributes<T> {
|
|
2357
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/ms#browser_compatibility */
|
|
2358
|
+
lquote?: Signalish<string | undefined>;
|
|
2359
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/ms#browser_compatibility */
|
|
2360
|
+
rquote?: Signalish<string | undefined>;
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
export interface MSpaceMathMLAttributes<T extends EventTarget>
|
|
2364
|
+
extends MathMLAttributes<T> {
|
|
2365
|
+
depth?: Signalish<string | undefined>;
|
|
2366
|
+
height?: Signalish<string | undefined>;
|
|
2367
|
+
width?: Signalish<string | undefined>;
|
|
2368
|
+
}
|
|
2369
|
+
|
|
2370
|
+
export interface MSqrtMathMLAttributes<T extends EventTarget>
|
|
2371
|
+
extends MathMLAttributes<T> {}
|
|
2372
|
+
|
|
2373
|
+
export interface MStyleMathMLAttributes<T extends EventTarget>
|
|
2374
|
+
extends MathMLAttributes<T> {
|
|
2375
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#background */
|
|
2376
|
+
background?: Signalish<string | undefined>;
|
|
2377
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#color */
|
|
2378
|
+
color?: Signalish<string | undefined>;
|
|
2379
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#fontsize */
|
|
2380
|
+
fontsize?: Signalish<string | undefined>;
|
|
2381
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#fontstyle */
|
|
2382
|
+
fontstyle?: Signalish<string | undefined>;
|
|
2383
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#fontweight */
|
|
2384
|
+
fontweight?: Signalish<string | undefined>;
|
|
2385
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#scriptminsize */
|
|
2386
|
+
scriptminsize?: Signalish<string | undefined>;
|
|
2387
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mstyle#scriptsizemultiplier */
|
|
2388
|
+
scriptsizemultiplier?: Signalish<string | undefined>;
|
|
2389
|
+
}
|
|
2390
|
+
|
|
2391
|
+
export interface MSubMathMLAttributes<T extends EventTarget>
|
|
2392
|
+
extends MathMLAttributes<T> {
|
|
2393
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msub#subscriptshift */
|
|
2394
|
+
subscriptshift?: Signalish<string | undefined>;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
export interface MSubsupMathMLAttributes<T extends EventTarget>
|
|
2398
|
+
extends MathMLAttributes<T> {
|
|
2399
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msubsup#subscriptshift */
|
|
2400
|
+
subscriptshift?: Signalish<string | undefined>;
|
|
2401
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msubsup#superscriptshift */
|
|
2402
|
+
superscriptshift?: Signalish<string | undefined>;
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
export interface MSupMathMLAttributes<T extends EventTarget>
|
|
2406
|
+
extends MathMLAttributes<T> {
|
|
2407
|
+
/** @deprecated See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/msup#superscriptshift */
|
|
2408
|
+
superscriptshift?: Signalish<string | undefined>;
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
export interface MTableMathMLAttributes<T extends EventTarget>
|
|
2412
|
+
extends MathMLAttributes<T> {
|
|
2413
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#align */
|
|
2414
|
+
align?: Signalish<
|
|
2415
|
+
'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined
|
|
2416
|
+
>;
|
|
2417
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#columnalign */
|
|
2418
|
+
columnalign?: Signalish<'center' | 'left' | 'right' | undefined>;
|
|
2419
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#columnlines */
|
|
2420
|
+
columnlines?: Signalish<'dashed' | 'none' | 'solid' | undefined>;
|
|
2421
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#columnspacing */
|
|
2422
|
+
columnspacing?: Signalish<string | undefined>;
|
|
2423
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#frame */
|
|
2424
|
+
frame?: Signalish<'dashed' | 'none' | 'solid' | undefined>;
|
|
2425
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#framespacing */
|
|
2426
|
+
framespacing?: Signalish<string | undefined>;
|
|
2427
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#rowalign */
|
|
2428
|
+
rowalign?: Signalish<
|
|
2429
|
+
'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined
|
|
2430
|
+
>;
|
|
2431
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#rowlines */
|
|
2432
|
+
rowlines?: Signalish<'dashed' | 'none' | 'solid' | undefined>;
|
|
2433
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#rowspacing */
|
|
2434
|
+
rowspacing?: Signalish<string | undefined>;
|
|
2435
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtable#width */
|
|
2436
|
+
width?: Signalish<string | undefined>;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
export interface MTdMathMLAttributes<T extends EventTarget>
|
|
2440
|
+
extends MathMLAttributes<T> {
|
|
2441
|
+
columnspan?: Signalish<number | undefined>;
|
|
2442
|
+
rowspan?: Signalish<number | undefined>;
|
|
2443
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd#columnalign */
|
|
2444
|
+
columnalign?: Signalish<'center' | 'left' | 'right' | undefined>;
|
|
2445
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtd#rowalign */
|
|
2446
|
+
rowalign?: Signalish<
|
|
2447
|
+
'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined
|
|
2448
|
+
>;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
export interface MTextMathMLAttributes<T extends EventTarget>
|
|
2452
|
+
extends MathMLAttributes<T> {}
|
|
2453
|
+
|
|
2454
|
+
export interface MTrMathMLAttributes<T extends EventTarget>
|
|
2455
|
+
extends MathMLAttributes<T> {
|
|
2456
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtr#columnalign */
|
|
2457
|
+
columnalign?: Signalish<'center' | 'left' | 'right' | undefined>;
|
|
2458
|
+
/** Non-standard attribute See https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mtr#rowalign */
|
|
2459
|
+
rowalign?: Signalish<
|
|
2460
|
+
'axis' | 'baseline' | 'bottom' | 'center' | 'top' | undefined
|
|
2461
|
+
>;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
export interface MUnderMathMLAttributes<T extends EventTarget>
|
|
2465
|
+
extends MathMLAttributes<T> {
|
|
2466
|
+
accentunder?: Signalish<boolean | undefined>;
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
export interface MUnderoverMathMLAttributes<T extends EventTarget>
|
|
2470
|
+
extends MathMLAttributes<T> {
|
|
2471
|
+
accent?: Signalish<boolean | undefined>;
|
|
2472
|
+
accentunder?: Signalish<boolean | undefined>;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
export interface SemanticsMathMLAttributes<T extends EventTarget>
|
|
2476
|
+
extends MathMLAttributes<T> {}
|