@rindo/core 1.8.12 → 1.17.4
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/bin/rindo +53 -19
- package/cli/index.cjs.js +524 -0
- package/cli/index.d.ts +15 -0
- package/cli/index.js +500 -0
- package/cli/package.json +9 -0
- package/compiler/package.json +8 -6
- package/compiler/rindo.d.ts +111 -0
- package/compiler/rindo.js +62852 -6655
- package/compiler/rindo.min.js +17 -0
- package/dependencies.json +80 -0
- package/dev-server/client/app-error.d.ts +18 -0
- package/dev-server/client/events.d.ts +6 -0
- package/dev-server/client/hmr-components.d.ts +1 -0
- package/dev-server/client/hmr-external-styles.d.ts +1 -0
- package/dev-server/client/hmr-images.d.ts +1 -0
- package/dev-server/client/hmr-inline-styles.d.ts +1 -0
- package/dev-server/client/hmr-util.d.ts +9 -0
- package/dev-server/client/hmr-window.d.ts +10 -0
- package/dev-server/client/index.d.ts +6 -0
- package/dev-server/client/index.js +785 -0
- package/dev-server/client/logger.d.ts +5 -0
- package/dev-server/client/package.json +8 -0
- package/dev-server/client/progress.d.ts +3 -0
- package/dev-server/client/status.d.ts +4 -0
- package/dev-server/connector.html +6 -0
- package/dev-server/content-type-db.json +1 -0
- package/dev-server/index.d.ts +6 -0
- package/dev-server/index.js +260 -0
- package/dev-server/open-in-editor-api.js +1 -0
- package/dev-server/package.json +8 -0
- package/dev-server/server-worker.js +1570 -0
- package/{dist/dev-server → dev-server}/static/favicon.ico +0 -0
- package/{dist/dev-server → dev-server}/templates/directory-index.html +132 -132
- package/dev-server/templates/initial-load.html +160 -0
- package/{dist/sys/node → dev-server}/visualstudio.vbs +0 -0
- package/dev-server/ws.js +1 -0
- package/{dist/sys/node → dev-server}/xdg-open +0 -0
- package/internal/app-data/index.cjs.js +88 -0
- package/internal/app-data/index.d.ts +3 -0
- package/internal/{client/build-conditionals.mjs → app-data/index.js} +24 -21
- package/internal/app-data/package.json +9 -0
- package/internal/client/css-shim.js +4 -0
- package/internal/client/{dom.rindo-client.mjs → dom.js} +73 -137
- package/{dist/client/index.mjs → internal/client/index.js} +736 -736
- package/internal/client/package.json +7 -0
- package/internal/client/patch.js +136 -0
- package/internal/client/polyfills/core-js.js +11 -10
- package/internal/client/polyfills/css-shim.js +1 -656
- package/internal/client/polyfills/dom.js +79 -146
- package/internal/client/polyfills/es5-html-element.js +1 -18
- package/internal/client/polyfills/index.js +6 -7
- package/internal/client/{shadow-css.rindo-client.mjs → shadow-css.js} +14 -17
- package/internal/hydrate/index.js +1073 -0
- package/internal/hydrate/package.json +7 -0
- package/internal/hydrate/runner.d.ts +205 -0
- package/internal/hydrate/runner.js +748 -0
- package/internal/hydrate/shadow-css.js +146 -0
- package/internal/index.d.ts +4 -18
- package/internal/index.js +1 -1
- package/internal/package.json +8 -6
- package/internal/rindo-core/index.d.ts +2 -0
- package/{dist → internal/rindo-core}/index.js +0 -0
- package/internal/rindo-ext-modules.d.ts +39 -0
- package/internal/rindo-private.d.ts +2183 -0
- package/internal/rindo-public-compiler.d.ts +2094 -0
- package/{dist/declarations/docs.d.ts → internal/rindo-public-docs.d.ts} +13 -1
- package/internal/rindo-public-runtime.d.ts +1552 -0
- package/internal/testing/index.js +1032 -0
- package/internal/testing/package.json +7 -0
- package/internal/testing/shadow-css.js +146 -0
- package/mock-doc/index.cjs.js +4500 -0
- package/mock-doc/index.d.ts +905 -0
- package/mock-doc/index.js +4464 -2
- package/mock-doc/package.json +9 -10
- package/package.json +84 -137
- package/readme.md +3 -82
- package/screenshot/compare/build/app.css +1 -1
- package/screenshot/compare/build/app.esm.js +1 -1
- package/screenshot/compare/build/app.js +27 -812
- package/{dist/compiler/polyfills.d.ts → screenshot/compare/build/index.esm.js} +0 -0
- package/screenshot/compare/build/{p-113f7459.js → p-081b0641.js} +1 -1
- package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
- package/screenshot/compare/build/p-2c298727.entry.js +1 -0
- package/screenshot/compare/build/p-5479268c.entry.js +1 -0
- package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
- package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
- package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
- package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
- package/screenshot/compare/build/{p-ejpsp3kx.js → p-7b4e3ba7.js} +1 -1
- package/screenshot/compare/build/p-988eb362.css +1 -0
- package/screenshot/compare/build/p-9b6a9315.js +1 -0
- package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
- package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
- package/screenshot/compare/build/{p-efb0eac6.js → p-e2efe0df.js} +1 -1
- package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
- package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
- package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
- package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
- package/screenshot/compare/build/p-fbbae598.js +1 -0
- package/screenshot/compare/host.config.json +14 -14
- package/screenshot/compare/index.html +1 -1
- package/{dist/screenshot → screenshot}/connector-base.d.ts +1 -1
- package/{dist/screenshot → screenshot}/connector-local.d.ts +1 -1
- package/screenshot/connector.js +2 -3
- package/{dist/screenshot → screenshot}/index.d.ts +1 -1
- package/screenshot/index.js +642 -2
- package/screenshot/local-connector.js +2 -3
- package/screenshot/package.json +8 -13
- package/{dist/screenshot → screenshot}/pixel-match.d.ts +0 -0
- package/screenshot/pixel-match.js +22 -6
- package/screenshot/screenshot-compare.d.ts +3 -0
- package/{dist/screenshot → screenshot}/screenshot-fs.d.ts +1 -1
- package/sys/node/autoprefixer.js +1 -0
- package/sys/node/glob.js +1 -0
- package/sys/node/graceful-fs.js +1 -0
- package/sys/node/index.d.ts +18 -0
- package/sys/node/index.js +1402 -2
- package/sys/node/node-fetch.js +1 -0
- package/sys/node/package.json +8 -5
- package/sys/node/prompts.js +1 -0
- package/sys/node/worker.js +33 -0
- package/{dist/testing → testing}/index.d.ts +5 -6
- package/testing/index.js +3903 -2
- package/testing/jest/jest-config.d.ts +92 -0
- package/{dist/testing → testing}/jest/jest-environment.d.ts +4 -2
- package/{dist/testing → testing}/jest/jest-preprocessor.d.ts +1 -0
- package/{dist/testing → testing}/jest/jest-runner.d.ts +1 -1
- package/{dist/testing → testing}/jest/jest-screenshot.d.ts +1 -1
- package/{dist/testing → testing}/jest/jest-serializer.d.ts +1 -1
- package/{dist/testing → testing}/jest/jest-setup-test-framework.d.ts +0 -0
- package/testing/jest-environment.js +3 -3
- package/testing/jest-preprocessor.js +3 -3
- package/testing/jest-preset.js +20 -28
- package/testing/jest-runner.js +3 -3
- package/testing/jest-setuptestframework.js +3 -3
- package/{dist/testing → testing}/matchers/attributes.d.ts +0 -0
- package/{dist/testing → testing}/matchers/class-list.d.ts +0 -0
- package/{dist/testing → testing}/matchers/events.d.ts +9 -1
- package/{dist/testing → testing}/matchers/html.d.ts +0 -0
- package/{dist/testing → testing}/matchers/index.d.ts +3 -1
- package/{dist/testing → testing}/matchers/screenshot.d.ts +1 -1
- package/{dist/testing → testing}/matchers/text.d.ts +0 -0
- package/testing/mock-fetch.d.ts +11 -0
- package/testing/mocks.d.ts +14 -0
- package/testing/package.json +8 -6
- package/testing/puppeteer/index.d.ts +2 -0
- package/{dist/testing → testing}/puppeteer/puppeteer-browser.d.ts +2 -2
- package/{dist/testing → testing}/puppeteer/puppeteer-declarations.d.ts +9 -9
- package/{dist/testing → testing}/puppeteer/puppeteer-element.d.ts +5 -3
- package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
- package/{dist/testing → testing}/puppeteer/puppeteer-events.d.ts +7 -7
- package/testing/puppeteer/puppeteer-page.d.ts +2 -0
- package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
- package/testing/reset-build-conditionals.d.ts +2 -0
- package/testing/spec-page.d.ts +2 -0
- package/testing/test-transpile.d.ts +2 -0
- package/{dist/testing → testing}/testing-logger.d.ts +10 -8
- package/testing/testing-sys.d.ts +1 -0
- package/{dist/testing → testing}/testing-utils.d.ts +3 -2
- package/testing/testing.d.ts +2 -0
- package/build-conditionals/index.d.ts +0 -2
- package/build-conditionals/index.mjs +0 -66
- package/build-conditionals/package.json +0 -6
- package/compiler/index.js +0 -2
- package/dist/cli/index.js +0 -6068
- package/dist/client/css-shim-14a9812e.js +0 -656
- package/dist/client/css-shim-69821662.js +0 -658
- package/dist/client/declarations/rindo.core.d.ts +0 -1347
- package/dist/client/dom-68c8fe31.js +0 -139
- package/dist/client/dom-af01458a.js +0 -137
- package/dist/client/index.js +0 -2937
- package/dist/client/polyfills/core-js.js +0 -10
- package/dist/client/polyfills/css-shim.js +0 -656
- package/dist/client/polyfills/dom.js +0 -146
- package/dist/client/polyfills/es5-html-element.js +0 -18
- package/dist/client/polyfills/index.js +0 -35
- package/dist/client/polyfills/promise.js +0 -9
- package/dist/client/polyfills/system.js +0 -6
- package/dist/client/shadow-css-6ef31c68.js +0 -386
- package/dist/client/shadow-css-8fd1a9e4.js +0 -388
- package/dist/compiler/app-core/app-es5-disabled.d.ts +0 -2
- package/dist/compiler/app-core/app-polyfills.d.ts +0 -3
- package/dist/compiler/app-core/build-conditionals.d.ts +0 -6
- package/dist/compiler/app-core/bundle-app-core.d.ts +0 -6
- package/dist/compiler/app-core/component-styles.d.ts +0 -4
- package/dist/compiler/app-core/format-component-runtime-meta.d.ts +0 -4
- package/dist/compiler/app-core/optimize-module.d.ts +0 -7
- package/dist/compiler/browser/build-conditionals-client.d.ts +0 -3
- package/dist/compiler/browser/compile-options.d.ts +0 -12
- package/dist/compiler/browser/compile.d.ts +0 -2
- package/dist/compiler/browser/create-compiler.d.ts +0 -14
- package/dist/compiler/browser/index.d.ts +0 -11
- package/dist/compiler/build/build-ctx.d.ts +0 -74
- package/dist/compiler/build/build-finish.d.ts +0 -3
- package/dist/compiler/build/build-hmr.d.ts +0 -2
- package/dist/compiler/build/build-results.d.ts +0 -2
- package/dist/compiler/build/build-stats.d.ts +0 -3
- package/dist/compiler/build/build.d.ts +0 -2
- package/dist/compiler/build/cache-stats.d.ts +0 -4
- package/dist/compiler/build/compiler-build-id.d.ts +0 -6
- package/dist/compiler/build/compiler-ctx.d.ts +0 -44
- package/dist/compiler/build/init-index-html.d.ts +0 -2
- package/dist/compiler/build/validate-files.d.ts +0 -2
- package/dist/compiler/build/write-build.d.ts +0 -2
- package/dist/compiler/cache.d.ts +0 -22
- package/dist/compiler/compiler.d.ts +0 -27
- package/dist/compiler/component-hydrate/bundle-hydrate-factory.d.ts +0 -3
- package/dist/compiler/component-hydrate/generate-hydrate-app.d.ts +0 -2
- package/dist/compiler/component-hydrate/hydrate-factory-closure.d.ts +0 -2
- package/dist/compiler/component-hydrate/update-to-hydrate-components.d.ts +0 -2
- package/dist/compiler/component-hydrate/write-hydrate-outputs.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-cjs.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-esm-browser.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-esm.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-lazy-app.d.ts +0 -3
- package/dist/compiler/component-lazy/generate-lazy-module.d.ts +0 -4
- package/dist/compiler/component-lazy/generate-system.d.ts +0 -3
- package/dist/compiler/component-lazy/update-to-lazy-component.d.ts +0 -2
- package/dist/compiler/component-lazy/write-lazy-entry-module.d.ts +0 -2
- package/dist/compiler/component-native/update-to-native-component.d.ts +0 -2
- package/dist/compiler/config/config-reload.d.ts +0 -3
- package/dist/compiler/config/config-utils.d.ts +0 -4
- package/dist/compiler/config/validate-config.d.ts +0 -4
- package/dist/compiler/config/validate-copy.d.ts +0 -2
- package/dist/compiler/config/validate-dev-server.d.ts +0 -2
- package/dist/compiler/config/validate-docs.d.ts +0 -2
- package/dist/compiler/config/validate-namespace.d.ts +0 -3
- package/dist/compiler/config/validate-output-stats.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-angular.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-custom.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-dist-module.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-dist.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-hydrate-script.d.ts +0 -2
- package/dist/compiler/config/validate-outputs-www.d.ts +0 -2
- package/dist/compiler/config/validate-outputs.d.ts +0 -2
- package/dist/compiler/config/validate-paths.d.ts +0 -2
- package/dist/compiler/config/validate-plugins.d.ts +0 -2
- package/dist/compiler/config/validate-prerender.d.ts +0 -2
- package/dist/compiler/config/validate-rollup-config.d.ts +0 -2
- package/dist/compiler/config/validate-service-worker.d.ts +0 -2
- package/dist/compiler/config/validate-testing.d.ts +0 -2
- package/dist/compiler/config/validate-workers.d.ts +0 -2
- package/dist/compiler/copy/assets-copy-tasks.d.ts +0 -3
- package/dist/compiler/copy/hashed-copy.d.ts +0 -2
- package/dist/compiler/copy/local-copy-tasks.d.ts +0 -3
- package/dist/compiler/docs/constants.d.ts +0 -2
- package/dist/compiler/docs/custom/index.d.ts +0 -2
- package/dist/compiler/docs/docs.d.ts +0 -2
- package/dist/compiler/docs/generate-doc-data.d.ts +0 -3
- package/dist/compiler/docs/json/index.d.ts +0 -3
- package/dist/compiler/docs/readme/docs-util.d.ts +0 -13
- package/dist/compiler/docs/readme/index.d.ts +0 -3
- package/dist/compiler/docs/readme/markdown-css-props.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-dependencies.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-events.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-methods.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-props.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-slots.d.ts +0 -2
- package/dist/compiler/docs/readme/markdown-usage.d.ts +0 -6
- package/dist/compiler/docs/readme/output-docs.d.ts +0 -3
- package/dist/compiler/docs/style-docs.d.ts +0 -2
- package/dist/compiler/docs/vscode/index.d.ts +0 -2
- package/dist/compiler/entries/component-bundles.d.ts +0 -3
- package/dist/compiler/entries/component-graph.d.ts +0 -2
- package/dist/compiler/entries/default-bundles.d.ts +0 -3
- package/dist/compiler/entries/entry-modules.d.ts +0 -6
- package/dist/compiler/entries/resolve-component-dependencies.d.ts +0 -2
- package/dist/compiler/events.d.ts +0 -15
- package/dist/compiler/fs-watch/fs-watch-init.d.ts +0 -2
- package/dist/compiler/fs-watch/fs-watch-log.d.ts +0 -2
- package/dist/compiler/fs-watch/fs-watch-rebuild.d.ts +0 -7
- package/dist/compiler/html/inject-module-preloads.d.ts +0 -3
- package/dist/compiler/html/inject-sw-script.d.ts +0 -4
- package/dist/compiler/html/inline-esm-import.d.ts +0 -2
- package/dist/compiler/html/inline-style-sheets.d.ts +0 -2
- package/dist/compiler/html/update-global-styles-link.d.ts +0 -2
- package/dist/compiler/html/used-components.d.ts +0 -2
- package/dist/compiler/html/utils.d.ts +0 -2
- package/dist/compiler/html/validate-manifest-json.d.ts +0 -2
- package/dist/compiler/index.d.ts +0 -10
- package/dist/compiler/index.js +0 -18008
- package/dist/compiler/output-targets/empty-dir.d.ts +0 -6
- package/dist/compiler/output-targets/index.d.ts +0 -2
- package/dist/compiler/output-targets/output-angular.d.ts +0 -4
- package/dist/compiler/output-targets/output-app.d.ts +0 -4
- package/dist/compiler/output-targets/output-collection.d.ts +0 -3
- package/dist/compiler/output-targets/output-copy.d.ts +0 -2
- package/dist/compiler/output-targets/output-custom.d.ts +0 -2
- package/dist/compiler/output-targets/output-docs.d.ts +0 -2
- package/dist/compiler/output-targets/output-hydrate.d.ts +0 -2
- package/dist/compiler/output-targets/output-lazy-loader.d.ts +0 -2
- package/dist/compiler/output-targets/output-module.d.ts +0 -4
- package/dist/compiler/output-targets/output-prerender.d.ts +0 -2
- package/dist/compiler/output-targets/output-service-workers.d.ts +0 -2
- package/dist/compiler/output-targets/output-types.d.ts +0 -2
- package/dist/compiler/output-targets/output-utils.d.ts +0 -54
- package/dist/compiler/output-targets/output-www.d.ts +0 -2
- package/dist/compiler/plugin/plugin.d.ts +0 -6
- package/dist/compiler/prerender/crawl-urls.d.ts +0 -3
- package/dist/compiler/prerender/host-config.d.ts +0 -12
- package/dist/compiler/prerender/prerender-config.d.ts +0 -2
- package/dist/compiler/prerender/prerender-main.d.ts +0 -2
- package/dist/compiler/prerender/prerender-queue.d.ts +0 -3
- package/dist/compiler/prerender/prerender-template-html.d.ts +0 -2
- package/dist/compiler/prerender/prerendered-write-path.d.ts +0 -2
- package/dist/compiler/prerender/robots-txt.d.ts +0 -2
- package/dist/compiler/prerender/sitemap-xml.d.ts +0 -3
- package/dist/compiler/rollup-plugins/component-entry.d.ts +0 -3
- package/dist/compiler/rollup-plugins/css-transformer.d.ts +0 -3
- package/dist/compiler/rollup-plugins/global-scripts.d.ts +0 -4
- package/dist/compiler/rollup-plugins/image-plugin.d.ts +0 -3
- package/dist/compiler/rollup-plugins/in-memory-fs-read.d.ts +0 -3
- package/dist/compiler/rollup-plugins/loader.d.ts +0 -4
- package/dist/compiler/rollup-plugins/plugin-helper.d.ts +0 -5
- package/dist/compiler/rollup-plugins/rindo-build-conditionals.d.ts +0 -7
- package/dist/compiler/rollup-plugins/rindo-client.d.ts +0 -3
- package/dist/compiler/rollup-plugins/rindo-external-runtime.d.ts +0 -2
- package/dist/compiler/rollup-plugins/rindo-hydrate.d.ts +0 -3
- package/dist/compiler/rollup-plugins/rindo-public-plugin.d.ts +0 -2
- package/dist/compiler/service-worker/generate-sw.d.ts +0 -7
- package/dist/compiler/service-worker/service-worker-util.d.ts +0 -2
- package/dist/compiler/style/cached-styles.d.ts +0 -5
- package/dist/compiler/style/component-styles.d.ts +0 -2
- package/dist/compiler/style/css-imports.d.ts +0 -9
- package/dist/compiler/style/css-to-esm.d.ts +0 -5
- package/dist/compiler/style/generate-styles.d.ts +0 -2
- package/dist/compiler/style/global-styles.d.ts +0 -3
- package/dist/compiler/style/normalize-styles.d.ts +0 -2
- package/dist/compiler/style/optimize-css.d.ts +0 -2
- package/dist/compiler/style/scope-css.d.ts +0 -3
- package/dist/compiler/style/style-utils.d.ts +0 -10
- package/dist/compiler/transformers/add-component-meta-proxy.d.ts +0 -3
- package/dist/compiler/transformers/add-component-meta-static.d.ts +0 -4
- package/dist/compiler/transformers/add-imports.d.ts +0 -3
- package/dist/compiler/transformers/collections/add-external-import.d.ts +0 -2
- package/dist/compiler/transformers/collections/parse-collection-components.d.ts +0 -2
- package/dist/compiler/transformers/collections/parse-collection-deprecated.d.ts +0 -2
- package/dist/compiler/transformers/collections/parse-collection-manifest.d.ts +0 -7
- package/dist/compiler/transformers/collections/parse-collection-module.d.ts +0 -2
- package/dist/compiler/transformers/component-build-conditionals.d.ts +0 -2
- package/dist/compiler/transformers/component-hydrate/hydrate-component.d.ts +0 -3
- package/dist/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.d.ts +0 -3
- package/dist/compiler/transformers/component-hydrate/tranform-to-hydrate-component.d.ts +0 -2
- package/dist/compiler/transformers/component-lazy/lazy-component.d.ts +0 -3
- package/dist/compiler/transformers/component-lazy/lazy-constructor.d.ts +0 -3
- package/dist/compiler/transformers/component-lazy/lazy-element-getter.d.ts +0 -3
- package/dist/compiler/transformers/component-lazy/transform-lazy-component.d.ts +0 -4
- package/dist/compiler/transformers/component-native/native-component.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-connected-callback.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-constructor.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-element-getter.d.ts +0 -3
- package/dist/compiler/transformers/component-native/native-static-style.d.ts +0 -3
- package/dist/compiler/transformers/component-native/tranform-to-native-component.d.ts +0 -4
- package/dist/compiler/transformers/core-runtime-apis.d.ts +0 -30
- package/dist/compiler/transformers/create-event.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/component-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/convert-decorators.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/decorator-utils.d.ts +0 -10
- package/dist/compiler/transformers/decorators-to-static/element-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/event-decorator.d.ts +0 -4
- package/dist/compiler/transformers/decorators-to-static/listen-decorator.d.ts +0 -6
- package/dist/compiler/transformers/decorators-to-static/method-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/prop-decorator.d.ts +0 -4
- package/dist/compiler/transformers/decorators-to-static/state-decorator.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/style-to-static.d.ts +0 -3
- package/dist/compiler/transformers/decorators-to-static/watch-decorator.d.ts +0 -3
- package/dist/compiler/transformers/define-custom-element.d.ts +0 -3
- package/dist/compiler/transformers/host-data-transform.d.ts +0 -3
- package/dist/compiler/transformers/legacy-props.d.ts +0 -3
- package/dist/compiler/transformers/remove-static-meta-properties.d.ts +0 -2
- package/dist/compiler/transformers/reserved-public-members.d.ts +0 -3
- package/dist/compiler/transformers/rindo-import-path.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/call-expression.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/class-methods.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/component.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/element-ref.d.ts +0 -2
- package/dist/compiler/transformers/static-to-meta/encapsulation.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/events.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/import.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/listeners.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/methods.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/props.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/states.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/string-literal.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/styles.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/vdom.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/visitor.d.ts +0 -3
- package/dist/compiler/transformers/static-to-meta/watchers.d.ts +0 -3
- package/dist/compiler/transformers/style-imports.d.ts +0 -3
- package/dist/compiler/transformers/transform-utils.d.ts +0 -31
- package/dist/compiler/transformers/update-component-class.d.ts +0 -3
- package/dist/compiler/transformers/update-rindo-core-import.d.ts +0 -3
- package/dist/compiler/transformers/watcher-meta-transform.d.ts +0 -3
- package/dist/compiler/transpile/compiler-options.d.ts +0 -4
- package/dist/compiler/transpile/transpile-app.d.ts +0 -2
- package/dist/compiler/transpile/transpile-module.d.ts +0 -5
- package/dist/compiler/transpile/transpile-service.d.ts +0 -3
- package/dist/compiler/transpile/transpile-to-es5-main.d.ts +0 -2
- package/dist/compiler/transpile/validate-types-main.d.ts +0 -2
- package/dist/compiler/types/generate-app-types.d.ts +0 -2
- package/dist/compiler/types/generate-component-types.d.ts +0 -8
- package/dist/compiler/types/generate-event-types.d.ts +0 -2
- package/dist/compiler/types/generate-method-types.d.ts +0 -2
- package/dist/compiler/types/generate-prop-types.d.ts +0 -2
- package/dist/compiler/types/generate-types.d.ts +0 -2
- package/dist/compiler/types/rindo-types.d.ts +0 -3
- package/dist/compiler/types/types-utils.d.ts +0 -4
- package/dist/compiler/types/update-import-refs.d.ts +0 -11
- package/dist/compiler/types/validate-package-json.d.ts +0 -9
- package/dist/declarations/assets.d.ts +0 -17
- package/dist/declarations/browser-compile.d.ts +0 -47
- package/dist/declarations/build-conditionals.d.ts +0 -91
- package/dist/declarations/build-events.d.ts +0 -19
- package/dist/declarations/build.d.ts +0 -247
- package/dist/declarations/cache.d.ts +0 -11
- package/dist/declarations/collection-manifest.d.ts +0 -106
- package/dist/declarations/collection.d.ts +0 -139
- package/dist/declarations/compiler.d.ts +0 -53
- package/dist/declarations/component-compiler-meta.d.ts +0 -198
- package/dist/declarations/component-constructor.d.ts +0 -61
- package/dist/declarations/component-interfaces.d.ts +0 -123
- package/dist/declarations/config.d.ts +0 -409
- package/dist/declarations/css-var-shim.d.ts +0 -9
- package/dist/declarations/decorators.d.ts +0 -150
- package/dist/declarations/dev-server.d.ts +0 -135
- package/dist/declarations/diagnostics.d.ts +0 -21
- package/dist/declarations/entry.d.ts +0 -28
- package/dist/declarations/events.d.ts +0 -13
- package/dist/declarations/file-system.d.ts +0 -91
- package/dist/declarations/fs-watch.d.ts +0 -15
- package/dist/declarations/host-element.d.ts +0 -53
- package/dist/declarations/hydrate.d.ts +0 -99
- package/dist/declarations/in-memory-fs.d.ts +0 -59
- package/dist/declarations/index.d.ts +0 -45
- package/dist/declarations/jsdoc.d.ts +0 -16
- package/dist/declarations/jsx.d.ts +0 -1050
- package/dist/declarations/logger.d.ts +0 -25
- package/dist/declarations/minify-js.d.ts +0 -11
- package/dist/declarations/module.d.ts +0 -35
- package/dist/declarations/optimize-css.d.ts +0 -12
- package/dist/declarations/output-targets.d.ts +0 -189
- package/dist/declarations/plugin.d.ts +0 -23
- package/dist/declarations/prerender.d.ts +0 -79
- package/dist/declarations/render.d.ts +0 -62
- package/dist/declarations/runtime.d.ts +0 -92
- package/dist/declarations/screenshots.d.ts +0 -192
- package/dist/declarations/server.d.ts +0 -19
- package/dist/declarations/style.d.ts +0 -35
- package/dist/declarations/system.d.ts +0 -174
- package/dist/declarations/testing.d.ts +0 -523
- package/dist/declarations/transpile.d.ts +0 -24
- package/dist/declarations/types.d.ts +0 -24
- package/dist/declarations/vdom.d.ts +0 -55
- package/dist/declarations/worker.d.ts +0 -33
- package/dist/dev-server/content-type-db.json +0 -1
- package/dist/dev-server/index.js +0 -887
- package/dist/dev-server/static/app-error.css +0 -257
- package/dist/dev-server/static/dev-server-client.html +0 -13
- package/dist/dev-server/templates/initial-load.html +0 -160
- package/dist/hydrate/index.d.ts +0 -101
- package/dist/hydrate/index.mjs +0 -1281
- package/dist/hydrate/platform.mjs +0 -347
- package/dist/index.d.ts +0 -99
- package/dist/mock-doc/index.d.ts +0 -851
- package/dist/mock-doc/index.js +0 -3982
- package/dist/mock-doc/index.mjs +0 -3954
- package/dist/runtime/index.js +0 -2576
- package/dist/runtime/index.mjs +0 -2521
- package/dist/runtime/shadow-css-6ef31c68.js +0 -386
- package/dist/runtime/shadow-css-8fd1a9e4.js +0 -388
- package/dist/screenshot/index.js +0 -520
- package/dist/sys/node/graceful-fs.js +0 -975
- package/dist/sys/node/index.js +0 -33545
- package/dist/sys/node/node-fetch.js +0 -1779
- package/dist/sys/node/open-in-editor.js +0 -734
- package/dist/sys/node/sys-worker.js +0 -67035
- package/dist/sys/node/websocket.js +0 -3728
- package/dist/testing/build-conditionals.d.ts +0 -4
- package/dist/testing/build-conditionals.js +0 -43
- package/dist/testing/core.d.ts +0 -35
- package/dist/testing/core.js +0 -52
- package/dist/testing/index.js +0 -40511
- package/dist/testing/jest/jest-config.d.ts +0 -4
- package/dist/testing/mock-fetch.d.ts +0 -46
- package/dist/testing/mocks.d.ts +0 -12
- package/dist/testing/platform.d.ts +0 -23
- package/dist/testing/platform.js +0 -321
- package/dist/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
- package/dist/testing/puppeteer/puppeteer-find.d.ts +0 -5
- package/dist/testing/puppeteer/puppeteer-page.d.ts +0 -2
- package/dist/testing/puppeteer/puppeteer-screenshot.d.ts +0 -4
- package/dist/testing/spec-page.d.ts +0 -5
- package/dist/testing/task-queue.d.ts +0 -15
- package/dist/testing/test-transpile.d.ts +0 -5
- package/dist/testing/testing-fs.d.ts +0 -31
- package/dist/testing/testing-sys.d.ts +0 -19
- package/dist/testing/testing.d.ts +0 -12
- package/dist/utils/index.js +0 -1575
- package/dist/utils/index.mjs +0 -1511
- package/internal/client/css-shim.rindo-client.mjs +0 -656
- package/internal/client/index.mjs +0 -2859
- package/internal/client/polyfills/promise.js +0 -9
- package/internal/images.d.ts +0 -5
- package/runtime/package.json +0 -5
- package/screenshot/compare/build/p-020f8d73.js +0 -1
- package/screenshot/compare/build/p-09qdknbg.system.entry.js +0 -1
- package/screenshot/compare/build/p-0a13mpsc.system.entry.js +0 -1
- package/screenshot/compare/build/p-168ec2c4.system.js +0 -1
- package/screenshot/compare/build/p-2ab1fdf1.system.js +0 -1
- package/screenshot/compare/build/p-2pxcsgrj.entry.js +0 -1
- package/screenshot/compare/build/p-42fb7034.system.js +0 -1
- package/screenshot/compare/build/p-54d9d7c2.system.js +0 -1
- package/screenshot/compare/build/p-67c1f911.js +0 -1
- package/screenshot/compare/build/p-68613371.system.js +0 -1
- package/screenshot/compare/build/p-7dvsjpu0.entry.js +0 -1
- package/screenshot/compare/build/p-aa67fb06.js +0 -1
- package/screenshot/compare/build/p-aeb3cec1.system.js +0 -1
- package/screenshot/compare/build/p-b6e44a24.js +0 -1
- package/screenshot/compare/build/p-c1c25b8a.js +0 -1
- package/screenshot/compare/build/p-c9bopbjy.system.entry.js +0 -1
- package/screenshot/compare/build/p-c9iqz1pp.system.entry.js +0 -1
- package/screenshot/compare/build/p-dizjz8rg.entry.js +0 -1
- package/screenshot/compare/build/p-dnta0rwp.system.entry.js +0 -1
- package/screenshot/compare/build/p-e9670d22.system.js +0 -1
- package/screenshot/compare/build/p-ei9jkpd0.system.entry.js +0 -1
- package/screenshot/compare/build/p-ejwcppol.entry.js +0 -1
- package/screenshot/compare/build/p-f6612d5d.system.js +0 -1
- package/screenshot/compare/build/p-foiivsfc.css +0 -1
- package/screenshot/compare/build/p-gpjjyogx.entry.js +0 -1
- package/screenshot/compare/build/p-howklem2.system.entry.js +0 -1
- package/screenshot/compare/build/p-knv9wvoc.entry.js +0 -1
- package/screenshot/compare/build/p-nsqsfhhy.entry.js +0 -1
- package/screenshot/compare/build/p-ojt278pp.entry.js +0 -1
- package/screenshot/compare/build/p-oywass99.entry.js +0 -1
- package/screenshot/compare/build/p-q3ujhub6.entry.js +0 -1
- package/screenshot/compare/build/p-qw4xnmxv.entry.js +0 -1
- package/screenshot/compare/build/p-t1wvevhc.system.entry.js +0 -1
- package/screenshot/compare/build/p-tnjarrex.system.entry.js +0 -1
- package/screenshot/compare/build/p-vhfpd6kk.system.entry.js +0 -1
- package/screenshot/compare/build/p-vk6rhemd.system.entry.js +0 -1
- package/screenshot/compare/build/p-w6bnm16k.entry.js +0 -1
- package/screenshot/compare/build/p-xje6d7zl.system.entry.js +0 -1
- package/screenshot/compare/build/p-y5jlrcha.system.entry.js +0 -1
- package/screenshot/compare/build/p-yh170wkt.entry.js +0 -1
- package/testing/jest.preprocessor.js +0 -7
package/dist/mock-doc/index.d.ts
DELETED
|
@@ -1,851 +0,0 @@
|
|
|
1
|
-
export declare class MockAttributeMap {
|
|
2
|
-
caseInsensitive: boolean;
|
|
3
|
-
items: MockAttr[];
|
|
4
|
-
constructor(caseInsensitive?: boolean);
|
|
5
|
-
get length(): number;
|
|
6
|
-
item(index: number): MockAttr;
|
|
7
|
-
setNamedItem(attr: MockAttr): void;
|
|
8
|
-
setNamedItemNS(attr: MockAttr): void;
|
|
9
|
-
getNamedItem(attrName: string): MockAttr;
|
|
10
|
-
getNamedItemNS(namespaceURI: string, attrName: string): MockAttr;
|
|
11
|
-
removeNamedItem(attr: MockAttr): void;
|
|
12
|
-
removeNamedItemNS(attr: MockAttr): void;
|
|
13
|
-
}
|
|
14
|
-
export declare function cloneAttributes(srcAttrs: MockAttributeMap, sortByName?: boolean): MockAttributeMap;
|
|
15
|
-
export declare class MockAttr {
|
|
16
|
-
private _name;
|
|
17
|
-
private _value;
|
|
18
|
-
private _namespaceURI;
|
|
19
|
-
constructor(attrName: string, attrValue: string, namespaceURI?: string);
|
|
20
|
-
get name(): string;
|
|
21
|
-
set name(value: string);
|
|
22
|
-
get value(): string;
|
|
23
|
-
set value(value: string);
|
|
24
|
-
get nodeName(): string;
|
|
25
|
-
set nodeName(value: string);
|
|
26
|
-
get nodeValue(): string;
|
|
27
|
-
set nodeValue(value: string);
|
|
28
|
-
get namespaceURI(): string;
|
|
29
|
-
set namespaceURI(namespaceURI: string);
|
|
30
|
-
}
|
|
31
|
-
export declare class MockClassList {
|
|
32
|
-
private elm;
|
|
33
|
-
constructor(elm: HTMLElement);
|
|
34
|
-
add(...classNames: string[]): void;
|
|
35
|
-
remove(...classNames: string[]): void;
|
|
36
|
-
contains(className: string): boolean;
|
|
37
|
-
toggle(className: string): void;
|
|
38
|
-
get length(): number;
|
|
39
|
-
item(index: number): string;
|
|
40
|
-
toString(): string;
|
|
41
|
-
}
|
|
42
|
-
export declare class MockComment extends MockNode {
|
|
43
|
-
constructor(ownerDocument: any, data: string);
|
|
44
|
-
cloneNode(_deep?: boolean): MockComment;
|
|
45
|
-
get textContent(): string;
|
|
46
|
-
set textContent(text: string);
|
|
47
|
-
}
|
|
48
|
-
export declare function createConsole(): any;
|
|
49
|
-
export declare const enum NODE_TYPES {
|
|
50
|
-
ELEMENT_NODE = 1,
|
|
51
|
-
ATTRIBUTE_NODE = 2,
|
|
52
|
-
TEXT_NODE = 3,
|
|
53
|
-
CDATA_SECTION_NODE = 4,
|
|
54
|
-
ENTITY_REFERENCE_NODE = 5,
|
|
55
|
-
ENTITY_NODE = 6,
|
|
56
|
-
PROCESSING_INSTRUCTION_NODE = 7,
|
|
57
|
-
COMMENT_NODE = 8,
|
|
58
|
-
DOCUMENT_NODE = 9,
|
|
59
|
-
DOCUMENT_TYPE_NODE = 10,
|
|
60
|
-
DOCUMENT_FRAGMENT_NODE = 11,
|
|
61
|
-
NOTATION_NODE = 12
|
|
62
|
-
}
|
|
63
|
-
export declare const enum NODE_NAMES {
|
|
64
|
-
COMMENT_NODE = "#comment",
|
|
65
|
-
DOCUMENT_NODE = "#document",
|
|
66
|
-
DOCUMENT_FRAGMENT_NODE = "#document-fragment",
|
|
67
|
-
TEXT_NODE = "#text"
|
|
68
|
-
}
|
|
69
|
-
export declare class CSSStyleDeclaration {
|
|
70
|
-
private _styles;
|
|
71
|
-
setProperty(prop: string, value: string): void;
|
|
72
|
-
getPropertyValue(prop: string): string;
|
|
73
|
-
removeProperty(prop: string): void;
|
|
74
|
-
get length(): number;
|
|
75
|
-
get cssText(): string;
|
|
76
|
-
set cssText(cssText: string);
|
|
77
|
-
}
|
|
78
|
-
export declare function createCSSStyleDeclaration(): CSSStyleDeclaration;
|
|
79
|
-
declare class MockCSSRule {
|
|
80
|
-
parentStyleSheet: MockCSSStyleSheet;
|
|
81
|
-
cssText: string;
|
|
82
|
-
type: number;
|
|
83
|
-
constructor(parentStyleSheet: MockCSSStyleSheet);
|
|
84
|
-
}
|
|
85
|
-
export declare class MockCSSStyleSheet {
|
|
86
|
-
ownerNode: any;
|
|
87
|
-
type: string;
|
|
88
|
-
parentStyleSheet: MockCSSStyleSheet;
|
|
89
|
-
cssRules: MockCSSRule[];
|
|
90
|
-
constructor(ownerNode: MockStyleElement);
|
|
91
|
-
get rules(): MockCSSRule[];
|
|
92
|
-
set rules(rules: MockCSSRule[]);
|
|
93
|
-
deleteRule(index: number): void;
|
|
94
|
-
insertRule(rule: string, index?: number): number;
|
|
95
|
-
}
|
|
96
|
-
export declare function getStyleElementText(styleElm: MockStyleElement): string;
|
|
97
|
-
export declare function setStyleElementText(styleElm: MockStyleElement, text: string): void;
|
|
98
|
-
export {};
|
|
99
|
-
export declare class MockCustomElementRegistry implements CustomElementRegistry {
|
|
100
|
-
private win;
|
|
101
|
-
private __registry;
|
|
102
|
-
private __whenDefined;
|
|
103
|
-
constructor(win: Window);
|
|
104
|
-
define(tagName: string, cstr: any, options?: any): void;
|
|
105
|
-
get(tagName: string): any;
|
|
106
|
-
upgrade(_rootNode: any): void;
|
|
107
|
-
clear(): void;
|
|
108
|
-
whenDefined(tagName: string): Promise<void>;
|
|
109
|
-
}
|
|
110
|
-
export declare function createCustomElement(customElements: MockCustomElementRegistry, ownerDocument: any, tagName: string): any;
|
|
111
|
-
export declare function connectNode(ownerDocument: any, node: MockNode): void;
|
|
112
|
-
export declare function disconnectNode(node: MockNode): void;
|
|
113
|
-
export declare function attributeChanged(node: MockNode, attrName: string, oldValue: string, newValue: string): void;
|
|
114
|
-
export declare function checkAttributeChanged(node: MockNode): boolean;
|
|
115
|
-
export declare function dataset(elm: MockElement): any;
|
|
116
|
-
export declare class MockDocumentFragment extends MockHTMLElement {
|
|
117
|
-
constructor(ownerDocument: any);
|
|
118
|
-
getElementById(id: string): MockElement;
|
|
119
|
-
cloneNode(deep?: boolean): MockDocumentFragment;
|
|
120
|
-
}
|
|
121
|
-
export declare class MockDocumentTypeNode extends MockHTMLElement {
|
|
122
|
-
constructor(ownerDocument: any);
|
|
123
|
-
}
|
|
124
|
-
export declare class MockDocument extends MockHTMLElement {
|
|
125
|
-
defaultView: any;
|
|
126
|
-
cookie: string;
|
|
127
|
-
referrer: string;
|
|
128
|
-
constructor(html?: string | boolean, win?: any);
|
|
129
|
-
get location(): Location;
|
|
130
|
-
set location(val: Location);
|
|
131
|
-
get baseURI(): string;
|
|
132
|
-
get URL(): string;
|
|
133
|
-
get styleSheets(): MockElement[];
|
|
134
|
-
get scripts(): MockElement[];
|
|
135
|
-
get forms(): MockElement[];
|
|
136
|
-
get images(): MockElement[];
|
|
137
|
-
get scrollingElement(): MockElement;
|
|
138
|
-
get documentElement(): MockElement;
|
|
139
|
-
set documentElement(documentElement: MockElement);
|
|
140
|
-
get head(): MockElement;
|
|
141
|
-
set head(head: MockElement);
|
|
142
|
-
get body(): MockElement;
|
|
143
|
-
set body(body: MockElement);
|
|
144
|
-
appendChild(newNode: MockElement): MockElement;
|
|
145
|
-
createComment(data: string): MockComment;
|
|
146
|
-
createAttribute(attrName: string): MockAttr;
|
|
147
|
-
createAttributeNS(namespaceURI: string, attrName: string): MockAttr;
|
|
148
|
-
createElement(tagName: string): any;
|
|
149
|
-
createElementNS(namespaceURI: string, tagName: string): any;
|
|
150
|
-
createTextNode(text: string): MockTextNode;
|
|
151
|
-
createDocumentFragment(): MockDocumentFragment;
|
|
152
|
-
createDocumentTypeNode(): MockDocumentTypeNode;
|
|
153
|
-
getElementById(id: string): MockElement;
|
|
154
|
-
getElementsByName(elmName: string): MockElement[];
|
|
155
|
-
get title(): string;
|
|
156
|
-
set title(value: string);
|
|
157
|
-
}
|
|
158
|
-
export declare function createDocument(html?: string | boolean): Document;
|
|
159
|
-
export declare function createFragment(html?: string): DocumentFragment;
|
|
160
|
-
export declare function resetDocument(doc: Document): void;
|
|
161
|
-
export declare function getElementById(elm: MockElement, id: string): MockElement;
|
|
162
|
-
export declare function setOwnerDocument(elm: MockElement, ownerDocument: any): void;
|
|
163
|
-
export declare function createElement(ownerDocument: any, tagName: string): any;
|
|
164
|
-
export declare function createElementNS(ownerDocument: any, namespaceURI: string, tagName: string): any;
|
|
165
|
-
export declare class MockAnchorElement extends MockHTMLElement {
|
|
166
|
-
constructor(ownerDocument: any);
|
|
167
|
-
get href(): string;
|
|
168
|
-
set href(value: string);
|
|
169
|
-
}
|
|
170
|
-
export declare class MockButtonElement extends MockHTMLElement {
|
|
171
|
-
constructor(ownerDocument: any);
|
|
172
|
-
}
|
|
173
|
-
export declare class MockImageElement extends MockHTMLElement {
|
|
174
|
-
constructor(ownerDocument: any);
|
|
175
|
-
get src(): string;
|
|
176
|
-
set src(value: string);
|
|
177
|
-
}
|
|
178
|
-
export declare class MockInputElement extends MockHTMLElement {
|
|
179
|
-
constructor(ownerDocument: any);
|
|
180
|
-
get list(): HTMLElement;
|
|
181
|
-
}
|
|
182
|
-
export declare class MockFormElement extends MockHTMLElement {
|
|
183
|
-
constructor(ownerDocument: any);
|
|
184
|
-
}
|
|
185
|
-
export declare class MockLinkElement extends MockHTMLElement {
|
|
186
|
-
constructor(ownerDocument: any);
|
|
187
|
-
get href(): string;
|
|
188
|
-
set href(value: string);
|
|
189
|
-
}
|
|
190
|
-
export declare class MockMetaElement extends MockHTMLElement {
|
|
191
|
-
constructor(ownerDocument: any);
|
|
192
|
-
}
|
|
193
|
-
export declare class MockScriptElement extends MockHTMLElement {
|
|
194
|
-
constructor(ownerDocument: any);
|
|
195
|
-
get src(): string;
|
|
196
|
-
set src(value: string);
|
|
197
|
-
}
|
|
198
|
-
export declare class MockStyleElement extends MockHTMLElement {
|
|
199
|
-
sheet: MockCSSStyleSheet;
|
|
200
|
-
constructor(ownerDocument: any);
|
|
201
|
-
get innerHTML(): string;
|
|
202
|
-
set innerHTML(value: string);
|
|
203
|
-
get innerText(): string;
|
|
204
|
-
set innerText(value: string);
|
|
205
|
-
get textContent(): string;
|
|
206
|
-
set textContent(value: string);
|
|
207
|
-
}
|
|
208
|
-
export declare class MockSVGElement extends MockElement {
|
|
209
|
-
get ownerSVGElement(): SVGSVGElement;
|
|
210
|
-
get viewportElement(): SVGElement;
|
|
211
|
-
focus(): void;
|
|
212
|
-
onunload(): void;
|
|
213
|
-
get pathLength(): number;
|
|
214
|
-
isPointInFill(_pt: DOMPoint): boolean;
|
|
215
|
-
isPointInStroke(_pt: DOMPoint): boolean;
|
|
216
|
-
getTotalLength(): number;
|
|
217
|
-
}
|
|
218
|
-
export declare class MockBaseElement extends MockHTMLElement {
|
|
219
|
-
constructor(ownerDocument: any);
|
|
220
|
-
get href(): string;
|
|
221
|
-
set href(value: string);
|
|
222
|
-
}
|
|
223
|
-
export declare class MockTemplateElement extends MockHTMLElement {
|
|
224
|
-
content: MockDocumentFragment;
|
|
225
|
-
constructor(ownerDocument: any);
|
|
226
|
-
get innerHTML(): string;
|
|
227
|
-
set innerHTML(html: string);
|
|
228
|
-
cloneNode(deep?: boolean): MockTemplateElement;
|
|
229
|
-
}
|
|
230
|
-
export declare class MockTitleElement extends MockHTMLElement {
|
|
231
|
-
constructor(ownerDocument: any);
|
|
232
|
-
get text(): string;
|
|
233
|
-
set text(value: string);
|
|
234
|
-
}
|
|
235
|
-
export declare class MockCanvasElement extends MockHTMLElement {
|
|
236
|
-
constructor(ownerDocument: any);
|
|
237
|
-
getContext(): {
|
|
238
|
-
fillRect: () => void;
|
|
239
|
-
clearRect: () => void;
|
|
240
|
-
getImageData: (_: number, __: number, w: number, h: number) => {
|
|
241
|
-
data: any[];
|
|
242
|
-
};
|
|
243
|
-
putImageData: () => void;
|
|
244
|
-
createImageData: () => any[];
|
|
245
|
-
setTransform: () => void;
|
|
246
|
-
drawImage: () => void;
|
|
247
|
-
save: () => void;
|
|
248
|
-
fillText: () => void;
|
|
249
|
-
restore: () => void;
|
|
250
|
-
beginPath: () => void;
|
|
251
|
-
moveTo: () => void;
|
|
252
|
-
lineTo: () => void;
|
|
253
|
-
closePath: () => void;
|
|
254
|
-
stroke: () => void;
|
|
255
|
-
translate: () => void;
|
|
256
|
-
scale: () => void;
|
|
257
|
-
rotate: () => void;
|
|
258
|
-
arc: () => void;
|
|
259
|
-
fill: () => void;
|
|
260
|
-
measureText: () => {
|
|
261
|
-
width: number;
|
|
262
|
-
};
|
|
263
|
-
transform: () => void;
|
|
264
|
-
rect: () => void;
|
|
265
|
-
clip: () => void;
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
export declare class MockEvent {
|
|
269
|
-
bubbles: boolean;
|
|
270
|
-
cancelBubble: boolean;
|
|
271
|
-
cancelable: boolean;
|
|
272
|
-
composed: boolean;
|
|
273
|
-
currentTarget: MockElement;
|
|
274
|
-
defaultPrevented: boolean;
|
|
275
|
-
srcElement: MockElement;
|
|
276
|
-
target: MockElement;
|
|
277
|
-
timeStamp: number;
|
|
278
|
-
type: string;
|
|
279
|
-
constructor(type: string, eventInitDict?: EventInit);
|
|
280
|
-
preventDefault(): void;
|
|
281
|
-
stopPropagation(): void;
|
|
282
|
-
stopImmediatePropagation(): void;
|
|
283
|
-
}
|
|
284
|
-
export declare class MockCustomEvent extends MockEvent {
|
|
285
|
-
detail: any;
|
|
286
|
-
constructor(type: string, customEventInitDic?: CustomEventInit);
|
|
287
|
-
}
|
|
288
|
-
export declare class MockKeyboardEvent extends MockEvent {
|
|
289
|
-
code: string;
|
|
290
|
-
key: string;
|
|
291
|
-
altKey: boolean;
|
|
292
|
-
ctrlKey: boolean;
|
|
293
|
-
metaKey: boolean;
|
|
294
|
-
shiftKey: boolean;
|
|
295
|
-
location: number;
|
|
296
|
-
repeat: boolean;
|
|
297
|
-
constructor(type: string, keyboardEventInitDic?: KeyboardEventInit);
|
|
298
|
-
}
|
|
299
|
-
export declare class MockMouseEvent extends MockEvent {
|
|
300
|
-
screenX: number;
|
|
301
|
-
screenY: number;
|
|
302
|
-
clientX: number;
|
|
303
|
-
clientY: number;
|
|
304
|
-
ctrlKey: boolean;
|
|
305
|
-
shiftKey: boolean;
|
|
306
|
-
altKey: boolean;
|
|
307
|
-
metaKey: boolean;
|
|
308
|
-
button: number;
|
|
309
|
-
buttons: number;
|
|
310
|
-
relatedTarget: EventTarget;
|
|
311
|
-
constructor(type: string, mouseEventInitDic?: MouseEventInit);
|
|
312
|
-
}
|
|
313
|
-
export declare class MockEventListener {
|
|
314
|
-
type: string;
|
|
315
|
-
handler: (ev?: any) => void;
|
|
316
|
-
constructor(type: string, handler: any);
|
|
317
|
-
}
|
|
318
|
-
export declare function addEventListener(elm: any, type: string, handler: any): void;
|
|
319
|
-
export declare function removeEventListener(elm: any, type: string, handler: any): void;
|
|
320
|
-
export declare function resetEventListeners(target: any): void;
|
|
321
|
-
export declare function dispatchEvent(currentTarget: any, ev: MockEvent): boolean;
|
|
322
|
-
export interface EventTarget {
|
|
323
|
-
__listeners: MockEventListener[];
|
|
324
|
-
}
|
|
325
|
-
export declare function setupGlobal(gbl: any): any;
|
|
326
|
-
export declare function teardownGlobal(gbl: any): void;
|
|
327
|
-
export declare function patchWindow(winToBePatched: any): void;
|
|
328
|
-
export declare function addGlobalsToWindowPrototype(mockWinPrototype: any): void;
|
|
329
|
-
export declare class MockHistory {
|
|
330
|
-
private items;
|
|
331
|
-
get length(): number;
|
|
332
|
-
back(): void;
|
|
333
|
-
forward(): void;
|
|
334
|
-
go(_value: number): void;
|
|
335
|
-
pushState(_state: any, _title: string, _url: string): void;
|
|
336
|
-
replaceState(_state: any, _title: string, _url: string): void;
|
|
337
|
-
}
|
|
338
|
-
export declare class MockIntersectionObserver {
|
|
339
|
-
constructor();
|
|
340
|
-
disconnect(): void;
|
|
341
|
-
observe(): void;
|
|
342
|
-
takeRecords(): any[];
|
|
343
|
-
unobserve(): void;
|
|
344
|
-
}
|
|
345
|
-
export declare class MockLocation implements Location {
|
|
346
|
-
ancestorOrigins: any;
|
|
347
|
-
protocol: string;
|
|
348
|
-
host: string;
|
|
349
|
-
hostname: string;
|
|
350
|
-
port: string;
|
|
351
|
-
pathname: string;
|
|
352
|
-
search: string;
|
|
353
|
-
hash: string;
|
|
354
|
-
username: string;
|
|
355
|
-
password: string;
|
|
356
|
-
origin: string;
|
|
357
|
-
private _href;
|
|
358
|
-
get href(): string;
|
|
359
|
-
set href(value: string);
|
|
360
|
-
assign(_url: string): void;
|
|
361
|
-
reload(_forcedReload?: boolean): void;
|
|
362
|
-
replace(_url: string): void;
|
|
363
|
-
toString(): string;
|
|
364
|
-
}
|
|
365
|
-
export declare class MockNavigator {
|
|
366
|
-
appCodeName: string;
|
|
367
|
-
appName: string;
|
|
368
|
-
appVersion: string;
|
|
369
|
-
platform: string;
|
|
370
|
-
userAgent: string;
|
|
371
|
-
}
|
|
372
|
-
export declare class MockNode {
|
|
373
|
-
nodeName: string;
|
|
374
|
-
nodeType: number;
|
|
375
|
-
nodeValue: string;
|
|
376
|
-
ownerDocument: any;
|
|
377
|
-
parentNode: MockNode;
|
|
378
|
-
childNodes: MockNode[];
|
|
379
|
-
constructor(ownerDocument: any, nodeType: number, nodeName: string, nodeValue: string);
|
|
380
|
-
appendChild(newNode: MockNode): MockNode;
|
|
381
|
-
append(...items: (MockNode | string)[]): void;
|
|
382
|
-
prepend(...items: (MockNode | string)[]): void;
|
|
383
|
-
cloneNode(deep?: boolean): MockNode;
|
|
384
|
-
compareDocumentPosition(_other: MockNode): number;
|
|
385
|
-
get firstChild(): MockNode;
|
|
386
|
-
insertBefore(newNode: MockNode, referenceNode: MockNode): MockNode;
|
|
387
|
-
get isConnected(): boolean;
|
|
388
|
-
isSameNode(node: any): boolean;
|
|
389
|
-
get lastChild(): MockNode;
|
|
390
|
-
get nextSibling(): MockNode;
|
|
391
|
-
get parentElement(): any;
|
|
392
|
-
set parentElement(value: any);
|
|
393
|
-
get previousSibling(): MockNode;
|
|
394
|
-
contains(otherNode: MockNode): boolean;
|
|
395
|
-
removeChild(childNode: MockNode): MockNode;
|
|
396
|
-
remove(): void;
|
|
397
|
-
replaceChild(newChild: MockNode, oldChild: MockNode): MockNode;
|
|
398
|
-
get textContent(): string;
|
|
399
|
-
set textContent(value: string);
|
|
400
|
-
static ELEMENT_NODE: number;
|
|
401
|
-
static TEXT_NODE: number;
|
|
402
|
-
static PROCESSING_INSTRUCTION_NODE: number;
|
|
403
|
-
static COMMENT_NODE: number;
|
|
404
|
-
static DOCUMENT_NODE: number;
|
|
405
|
-
static DOCUMENT_TYPE_NODE: number;
|
|
406
|
-
static DOCUMENT_FRAGMENT_NODE: number;
|
|
407
|
-
}
|
|
408
|
-
export declare class MockNodeList {
|
|
409
|
-
childNodes: MockNode[];
|
|
410
|
-
length: number;
|
|
411
|
-
ownerDocument: any;
|
|
412
|
-
constructor(ownerDocument: any, childNodes: MockNode[], length: number);
|
|
413
|
-
}
|
|
414
|
-
export declare class MockElement extends MockNode {
|
|
415
|
-
namespaceURI: string;
|
|
416
|
-
__attributeMap: MockAttributeMap;
|
|
417
|
-
__shadowRoot: ShadowRoot;
|
|
418
|
-
__style: CSSStyleDeclaration;
|
|
419
|
-
constructor(ownerDocument: any, nodeName: string);
|
|
420
|
-
addEventListener(type: string, handler: (ev?: any) => void): void;
|
|
421
|
-
attachShadow(_opts: ShadowRootInit): any;
|
|
422
|
-
get shadowRoot(): any;
|
|
423
|
-
set shadowRoot(shadowRoot: any);
|
|
424
|
-
get attributes(): MockAttributeMap;
|
|
425
|
-
set attributes(attrs: MockAttributeMap);
|
|
426
|
-
get children(): MockElement[];
|
|
427
|
-
get childElementCount(): number;
|
|
428
|
-
get className(): string;
|
|
429
|
-
set className(value: string);
|
|
430
|
-
get classList(): MockClassList;
|
|
431
|
-
click(): void;
|
|
432
|
-
cloneNode(_deep?: boolean): MockElement;
|
|
433
|
-
closest(selector: string): MockElement;
|
|
434
|
-
get dataset(): any;
|
|
435
|
-
get dir(): string;
|
|
436
|
-
set dir(value: string);
|
|
437
|
-
dispatchEvent(ev: MockEvent): boolean;
|
|
438
|
-
get firstElementChild(): MockElement;
|
|
439
|
-
getAttribute(attrName: string): any;
|
|
440
|
-
getAttributeNS(namespaceURI: string, attrName: string): string;
|
|
441
|
-
getBoundingClientRect(): {
|
|
442
|
-
bottom: number;
|
|
443
|
-
height: number;
|
|
444
|
-
left: number;
|
|
445
|
-
right: number;
|
|
446
|
-
top: number;
|
|
447
|
-
width: number;
|
|
448
|
-
x: number;
|
|
449
|
-
y: number;
|
|
450
|
-
};
|
|
451
|
-
getRootNode(opts?: {
|
|
452
|
-
composed?: boolean;
|
|
453
|
-
[key: string]: any;
|
|
454
|
-
}): Node;
|
|
455
|
-
hasChildNodes(): boolean;
|
|
456
|
-
get id(): string;
|
|
457
|
-
set id(value: string);
|
|
458
|
-
get innerHTML(): string;
|
|
459
|
-
set innerHTML(html: string);
|
|
460
|
-
get innerText(): string;
|
|
461
|
-
set innerText(value: string);
|
|
462
|
-
hasAttribute(attrName: string): boolean;
|
|
463
|
-
hasAttributeNS(namespaceURI: string, name: string): boolean;
|
|
464
|
-
get hidden(): boolean;
|
|
465
|
-
set hidden(isHidden: boolean);
|
|
466
|
-
get lang(): string;
|
|
467
|
-
set lang(value: string);
|
|
468
|
-
get lastElementChild(): MockElement;
|
|
469
|
-
matches(selector: string): boolean;
|
|
470
|
-
get nextElementSibling(): any;
|
|
471
|
-
get outerHTML(): string;
|
|
472
|
-
get previousElementSibling(): any;
|
|
473
|
-
getElementsByClassName(classNames: string): MockElement[];
|
|
474
|
-
getElementsByTagName(tagName: string): MockElement[];
|
|
475
|
-
querySelector(selector: string): MockElement;
|
|
476
|
-
querySelectorAll(selector: string): MockElement[];
|
|
477
|
-
removeAttribute(attrName: string): void;
|
|
478
|
-
removeAttributeNS(namespaceURI: string, attrName: string): void;
|
|
479
|
-
removeEventListener(type: string, handler: any): void;
|
|
480
|
-
setAttribute(attrName: string, value: any): void;
|
|
481
|
-
setAttributeNS(namespaceURI: string, attrName: string, value: any): void;
|
|
482
|
-
get style(): any;
|
|
483
|
-
set style(val: any);
|
|
484
|
-
get tabIndex(): number;
|
|
485
|
-
set tabIndex(value: number);
|
|
486
|
-
get tagName(): string;
|
|
487
|
-
set tagName(value: string);
|
|
488
|
-
get textContent(): string;
|
|
489
|
-
set textContent(value: string);
|
|
490
|
-
get title(): string;
|
|
491
|
-
set title(value: string);
|
|
492
|
-
onanimationstart(): void;
|
|
493
|
-
onanimationend(): void;
|
|
494
|
-
onanimationiteration(): void;
|
|
495
|
-
onabort(): void;
|
|
496
|
-
onauxclick(): void;
|
|
497
|
-
onbeforecopy(): void;
|
|
498
|
-
onbeforecut(): void;
|
|
499
|
-
onbeforepaste(): void;
|
|
500
|
-
onblur(): void;
|
|
501
|
-
oncancel(): void;
|
|
502
|
-
oncanplay(): void;
|
|
503
|
-
oncanplaythrough(): void;
|
|
504
|
-
onchange(): void;
|
|
505
|
-
onclick(): void;
|
|
506
|
-
onclose(): void;
|
|
507
|
-
oncontextmenu(): void;
|
|
508
|
-
oncopy(): void;
|
|
509
|
-
oncuechange(): void;
|
|
510
|
-
oncut(): void;
|
|
511
|
-
ondblclick(): void;
|
|
512
|
-
ondrag(): void;
|
|
513
|
-
ondragend(): void;
|
|
514
|
-
ondragenter(): void;
|
|
515
|
-
ondragleave(): void;
|
|
516
|
-
ondragover(): void;
|
|
517
|
-
ondragstart(): void;
|
|
518
|
-
ondrop(): void;
|
|
519
|
-
ondurationchange(): void;
|
|
520
|
-
onemptied(): void;
|
|
521
|
-
onended(): void;
|
|
522
|
-
onerror(): void;
|
|
523
|
-
onfocus(): void;
|
|
524
|
-
onformdata(): void;
|
|
525
|
-
onfullscreenchange(): void;
|
|
526
|
-
onfullscreenerror(): void;
|
|
527
|
-
ongotpointercapture(): void;
|
|
528
|
-
oninput(): void;
|
|
529
|
-
oninvalid(): void;
|
|
530
|
-
onkeydown(): void;
|
|
531
|
-
onkeypress(): void;
|
|
532
|
-
onkeyup(): void;
|
|
533
|
-
onload(): void;
|
|
534
|
-
onloadeddata(): void;
|
|
535
|
-
onloadedmetadata(): void;
|
|
536
|
-
onloadstart(): void;
|
|
537
|
-
onlostpointercapture(): void;
|
|
538
|
-
onmousedown(): void;
|
|
539
|
-
onmouseenter(): void;
|
|
540
|
-
onmouseleave(): void;
|
|
541
|
-
onmousemove(): void;
|
|
542
|
-
onmouseout(): void;
|
|
543
|
-
onmouseover(): void;
|
|
544
|
-
onmouseup(): void;
|
|
545
|
-
onmousewheel(): void;
|
|
546
|
-
onpaste(): void;
|
|
547
|
-
onpause(): void;
|
|
548
|
-
onplay(): void;
|
|
549
|
-
onplaying(): void;
|
|
550
|
-
onpointercancel(): void;
|
|
551
|
-
onpointerdown(): void;
|
|
552
|
-
onpointerenter(): void;
|
|
553
|
-
onpointerleave(): void;
|
|
554
|
-
onpointermove(): void;
|
|
555
|
-
onpointerout(): void;
|
|
556
|
-
onpointerover(): void;
|
|
557
|
-
onpointerup(): void;
|
|
558
|
-
onprogress(): void;
|
|
559
|
-
onratechange(): void;
|
|
560
|
-
onreset(): void;
|
|
561
|
-
onresize(): void;
|
|
562
|
-
onscroll(): void;
|
|
563
|
-
onsearch(): void;
|
|
564
|
-
onseeked(): void;
|
|
565
|
-
onseeking(): void;
|
|
566
|
-
onselect(): void;
|
|
567
|
-
onselectstart(): void;
|
|
568
|
-
onstalled(): void;
|
|
569
|
-
onsubmit(): void;
|
|
570
|
-
onsuspend(): void;
|
|
571
|
-
ontimeupdate(): void;
|
|
572
|
-
ontoggle(): void;
|
|
573
|
-
onvolumechange(): void;
|
|
574
|
-
onwaiting(): void;
|
|
575
|
-
onwebkitfullscreenchange(): void;
|
|
576
|
-
onwebkitfullscreenerror(): void;
|
|
577
|
-
onwheel(): void;
|
|
578
|
-
toString(opts?: SerializeNodeToHtmlOptions): string;
|
|
579
|
-
}
|
|
580
|
-
export declare function resetElement(elm: MockElement): void;
|
|
581
|
-
export declare class MockHTMLElement extends MockElement {
|
|
582
|
-
namespaceURI: string;
|
|
583
|
-
constructor(ownerDocument: any, nodeName: string);
|
|
584
|
-
get tagName(): string;
|
|
585
|
-
set tagName(value: string);
|
|
586
|
-
get attributes(): MockAttributeMap;
|
|
587
|
-
set attributes(attrs: MockAttributeMap);
|
|
588
|
-
}
|
|
589
|
-
export declare class MockTextNode extends MockNode {
|
|
590
|
-
constructor(ownerDocument: any, text: string);
|
|
591
|
-
cloneNode(_deep?: boolean): MockTextNode;
|
|
592
|
-
get textContent(): string;
|
|
593
|
-
set textContent(text: string);
|
|
594
|
-
get data(): string;
|
|
595
|
-
set data(text: string);
|
|
596
|
-
get wholeText(): string;
|
|
597
|
-
}
|
|
598
|
-
export declare function parseHtmlToDocument(html: string, ownerDocument?: MockDocument): any;
|
|
599
|
-
export declare function parseHtmlToFragment(html: string, ownerDocument?: MockDocument): any;
|
|
600
|
-
export declare function parseDocumentUtil(ownerDocument: any, html: string): any;
|
|
601
|
-
export declare function parseFragmentUtil(ownerDocument: any, html: string): any;
|
|
602
|
-
/**
|
|
603
|
-
* https://developer.mozilla.org/en-US/docs/Web/API/Performance
|
|
604
|
-
*/
|
|
605
|
-
export declare class MockPerformance implements Performance {
|
|
606
|
-
timeOrigin: number;
|
|
607
|
-
constructor();
|
|
608
|
-
addEventListener(): void;
|
|
609
|
-
clearMarks(): void;
|
|
610
|
-
clearMeasures(): void;
|
|
611
|
-
clearResourceTimings(): void;
|
|
612
|
-
dispatchEvent(): boolean;
|
|
613
|
-
getEntries(): any;
|
|
614
|
-
getEntriesByName(): any;
|
|
615
|
-
getEntriesByType(): any;
|
|
616
|
-
mark(): void;
|
|
617
|
-
measure(): void;
|
|
618
|
-
get navigation(): any;
|
|
619
|
-
now(): number;
|
|
620
|
-
get onresourcetimingbufferfull(): any;
|
|
621
|
-
removeEventListener(): void;
|
|
622
|
-
setResourceTimingBufferSize(): void;
|
|
623
|
-
get timing(): any;
|
|
624
|
-
toJSON(): void;
|
|
625
|
-
}
|
|
626
|
-
export declare function resetPerformance(perf: Performance): void;
|
|
627
|
-
export declare function closest(selector: string, elm: MockElement): MockElement;
|
|
628
|
-
export declare function matches(selector: string, elm: MockElement): boolean;
|
|
629
|
-
export declare function selectOne(selector: string, elm: MockElement): MockElement;
|
|
630
|
-
export declare function selectAll(selector: string, elm: MockElement): MockElement[];
|
|
631
|
-
export declare function serializeNodeToHtml(elm: Node | MockNode, opts?: SerializeNodeToHtmlOptions): string;
|
|
632
|
-
export declare const NON_ESCAPABLE_CONTENT: Set<string>;
|
|
633
|
-
export declare const WHITESPACE_SENSITIVE: Set<string>;
|
|
634
|
-
export interface SerializeNodeToHtmlOptions {
|
|
635
|
-
approximateLineWidth?: number;
|
|
636
|
-
excludeTagContent?: string[];
|
|
637
|
-
excludeTags?: string[];
|
|
638
|
-
indentSpaces?: number;
|
|
639
|
-
newLines?: boolean;
|
|
640
|
-
outerHtml?: boolean;
|
|
641
|
-
prettyHtml?: boolean;
|
|
642
|
-
removeAttributeQuotes?: boolean;
|
|
643
|
-
removeBooleanAttributeQuotes?: boolean;
|
|
644
|
-
removeEmptyAttributes?: boolean;
|
|
645
|
-
removeHtmlComments?: boolean;
|
|
646
|
-
serializeShadowRoot?: boolean;
|
|
647
|
-
}
|
|
648
|
-
export declare class MockStorage {
|
|
649
|
-
private items;
|
|
650
|
-
key(_value: number): void;
|
|
651
|
-
getItem(key: string): string;
|
|
652
|
-
setItem(key: string, value: string): void;
|
|
653
|
-
removeItem(key: string): void;
|
|
654
|
-
clear(): void;
|
|
655
|
-
}
|
|
656
|
-
/// <reference types="node" />
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
declare const nativeClearInterval: typeof clearInterval;
|
|
665
|
-
declare const nativeClearTimeout: typeof clearTimeout;
|
|
666
|
-
declare const nativeSetInterval: typeof setInterval;
|
|
667
|
-
declare const nativeSetTimeout: typeof setTimeout;
|
|
668
|
-
export declare class MockWindow {
|
|
669
|
-
__timeouts: Set<any>;
|
|
670
|
-
__history: MockHistory;
|
|
671
|
-
__elementCstr: any;
|
|
672
|
-
__htmlElementCstr: any;
|
|
673
|
-
__nodeCstr: any;
|
|
674
|
-
__nodeListCstr: any;
|
|
675
|
-
__localStorage: MockStorage;
|
|
676
|
-
__sessionStorage: MockStorage;
|
|
677
|
-
__location: MockLocation;
|
|
678
|
-
__navigator: MockNavigator;
|
|
679
|
-
__clearInterval: typeof nativeClearInterval;
|
|
680
|
-
__clearTimeout: typeof nativeClearTimeout;
|
|
681
|
-
__setInterval: typeof nativeSetInterval;
|
|
682
|
-
__setTimeout: typeof nativeSetTimeout;
|
|
683
|
-
__maxTimeout: number;
|
|
684
|
-
__allowInterval: boolean;
|
|
685
|
-
URL: typeof URL;
|
|
686
|
-
console: Console;
|
|
687
|
-
customElements: CustomElementRegistry;
|
|
688
|
-
document: Document;
|
|
689
|
-
performance: Performance;
|
|
690
|
-
devicePixelRatio: number;
|
|
691
|
-
innerHeight: number;
|
|
692
|
-
innerWidth: number;
|
|
693
|
-
pageXOffset: number;
|
|
694
|
-
pageYOffset: number;
|
|
695
|
-
screen: Screen;
|
|
696
|
-
screenLeft: number;
|
|
697
|
-
screenTop: number;
|
|
698
|
-
screenX: number;
|
|
699
|
-
screenY: number;
|
|
700
|
-
scrollX: number;
|
|
701
|
-
scrollY: number;
|
|
702
|
-
constructor(html?: string | boolean);
|
|
703
|
-
addEventListener(type: string, handler: (ev?: any) => void): void;
|
|
704
|
-
alert(msg: string): void;
|
|
705
|
-
blur(): any;
|
|
706
|
-
cancelAnimationFrame(id: any): void;
|
|
707
|
-
cancelIdleCallback(id: any): void;
|
|
708
|
-
clearInterval(id: any): void;
|
|
709
|
-
clearTimeout(id: any): void;
|
|
710
|
-
close(): void;
|
|
711
|
-
confirm(): boolean;
|
|
712
|
-
get CSS(): {
|
|
713
|
-
supports: () => boolean;
|
|
714
|
-
};
|
|
715
|
-
dispatchEvent(ev: MockEvent): boolean;
|
|
716
|
-
get Element(): any;
|
|
717
|
-
focus(): any;
|
|
718
|
-
getComputedStyle(_: any): any;
|
|
719
|
-
get globalThis(): this;
|
|
720
|
-
get history(): any;
|
|
721
|
-
set history(hsty: any);
|
|
722
|
-
get JSON(): JSON;
|
|
723
|
-
get HTMLElement(): any;
|
|
724
|
-
get IntersectionObserver(): typeof MockIntersectionObserver;
|
|
725
|
-
get localStorage(): MockStorage;
|
|
726
|
-
set localStorage(locStorage: MockStorage);
|
|
727
|
-
get location(): Location;
|
|
728
|
-
set location(val: Location);
|
|
729
|
-
matchMedia(): {
|
|
730
|
-
matches: boolean;
|
|
731
|
-
};
|
|
732
|
-
get Node(): any;
|
|
733
|
-
get NodeList(): any;
|
|
734
|
-
get navigator(): any;
|
|
735
|
-
set navigator(nav: any);
|
|
736
|
-
get parent(): any;
|
|
737
|
-
prompt(): string;
|
|
738
|
-
open(): any;
|
|
739
|
-
get origin(): string;
|
|
740
|
-
removeEventListener(type: string, handler: any): void;
|
|
741
|
-
requestAnimationFrame(callback: (timestamp: number) => void): number;
|
|
742
|
-
requestIdleCallback(callback: (deadline: {
|
|
743
|
-
didTimeout: boolean;
|
|
744
|
-
timeRemaining: () => number;
|
|
745
|
-
}) => void): number;
|
|
746
|
-
scroll(_x?: number, _y?: number): void;
|
|
747
|
-
scrollBy(_x?: number, _y?: number): void;
|
|
748
|
-
scrollTo(_x?: number, _y?: number): void;
|
|
749
|
-
get self(): this;
|
|
750
|
-
get sessionStorage(): any;
|
|
751
|
-
set sessionStorage(locStorage: any);
|
|
752
|
-
setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
753
|
-
setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
754
|
-
get top(): this;
|
|
755
|
-
get window(): this;
|
|
756
|
-
onanimationstart(): void;
|
|
757
|
-
onanimationend(): void;
|
|
758
|
-
onanimationiteration(): void;
|
|
759
|
-
onabort(): void;
|
|
760
|
-
onauxclick(): void;
|
|
761
|
-
onbeforecopy(): void;
|
|
762
|
-
onbeforecut(): void;
|
|
763
|
-
onbeforepaste(): void;
|
|
764
|
-
onblur(): void;
|
|
765
|
-
oncancel(): void;
|
|
766
|
-
oncanplay(): void;
|
|
767
|
-
oncanplaythrough(): void;
|
|
768
|
-
onchange(): void;
|
|
769
|
-
onclick(): void;
|
|
770
|
-
onclose(): void;
|
|
771
|
-
oncontextmenu(): void;
|
|
772
|
-
oncopy(): void;
|
|
773
|
-
oncuechange(): void;
|
|
774
|
-
oncut(): void;
|
|
775
|
-
ondblclick(): void;
|
|
776
|
-
ondrag(): void;
|
|
777
|
-
ondragend(): void;
|
|
778
|
-
ondragenter(): void;
|
|
779
|
-
ondragleave(): void;
|
|
780
|
-
ondragover(): void;
|
|
781
|
-
ondragstart(): void;
|
|
782
|
-
ondrop(): void;
|
|
783
|
-
ondurationchange(): void;
|
|
784
|
-
onemptied(): void;
|
|
785
|
-
onended(): void;
|
|
786
|
-
onerror(): void;
|
|
787
|
-
onfocus(): void;
|
|
788
|
-
onformdata(): void;
|
|
789
|
-
onfullscreenchange(): void;
|
|
790
|
-
onfullscreenerror(): void;
|
|
791
|
-
ongotpointercapture(): void;
|
|
792
|
-
oninput(): void;
|
|
793
|
-
oninvalid(): void;
|
|
794
|
-
onkeydown(): void;
|
|
795
|
-
onkeypress(): void;
|
|
796
|
-
onkeyup(): void;
|
|
797
|
-
onload(): void;
|
|
798
|
-
onloadeddata(): void;
|
|
799
|
-
onloadedmetadata(): void;
|
|
800
|
-
onloadstart(): void;
|
|
801
|
-
onlostpointercapture(): void;
|
|
802
|
-
onmousedown(): void;
|
|
803
|
-
onmouseenter(): void;
|
|
804
|
-
onmouseleave(): void;
|
|
805
|
-
onmousemove(): void;
|
|
806
|
-
onmouseout(): void;
|
|
807
|
-
onmouseover(): void;
|
|
808
|
-
onmouseup(): void;
|
|
809
|
-
onmousewheel(): void;
|
|
810
|
-
onpaste(): void;
|
|
811
|
-
onpause(): void;
|
|
812
|
-
onplay(): void;
|
|
813
|
-
onplaying(): void;
|
|
814
|
-
onpointercancel(): void;
|
|
815
|
-
onpointerdown(): void;
|
|
816
|
-
onpointerenter(): void;
|
|
817
|
-
onpointerleave(): void;
|
|
818
|
-
onpointermove(): void;
|
|
819
|
-
onpointerout(): void;
|
|
820
|
-
onpointerover(): void;
|
|
821
|
-
onpointerup(): void;
|
|
822
|
-
onprogress(): void;
|
|
823
|
-
onratechange(): void;
|
|
824
|
-
onreset(): void;
|
|
825
|
-
onresize(): void;
|
|
826
|
-
onscroll(): void;
|
|
827
|
-
onsearch(): void;
|
|
828
|
-
onseeked(): void;
|
|
829
|
-
onseeking(): void;
|
|
830
|
-
onselect(): void;
|
|
831
|
-
onselectstart(): void;
|
|
832
|
-
onstalled(): void;
|
|
833
|
-
onsubmit(): void;
|
|
834
|
-
onsuspend(): void;
|
|
835
|
-
ontimeupdate(): void;
|
|
836
|
-
ontoggle(): void;
|
|
837
|
-
onvolumechange(): void;
|
|
838
|
-
onwaiting(): void;
|
|
839
|
-
onwebkitfullscreenchange(): void;
|
|
840
|
-
onwebkitfullscreenerror(): void;
|
|
841
|
-
onwheel(): void;
|
|
842
|
-
}
|
|
843
|
-
export declare function createWindow(html?: string | boolean): Window;
|
|
844
|
-
export declare function cloneWindow(srcWin: Window): MockWindow;
|
|
845
|
-
export declare function cloneDocument(srcDoc: Document): Document;
|
|
846
|
-
/**
|
|
847
|
-
* Constrain setTimeout() to 1ms, but still async. Also
|
|
848
|
-
* only allow setInterval() to fire once, also constrained to 1ms.
|
|
849
|
-
*/
|
|
850
|
-
export declare function constrainTimeouts(win: any): void;
|
|
851
|
-
export {};
|