@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
|
@@ -0,0 +1,905 @@
|
|
|
1
|
+
declare const createAttributeProxy: (caseInsensitive: boolean) => any;
|
|
2
|
+
declare class MockAttributeMap {
|
|
3
|
+
caseInsensitive: boolean;
|
|
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
|
+
declare function cloneAttributes(srcAttrs: MockAttributeMap, sortByName?: boolean): MockAttributeMap;
|
|
15
|
+
declare class MockAttr {
|
|
16
|
+
constructor(attrName: string, attrValue: string, namespaceURI?: string);
|
|
17
|
+
get name(): string;
|
|
18
|
+
set name(value: string);
|
|
19
|
+
get value(): string;
|
|
20
|
+
set value(value: string);
|
|
21
|
+
get nodeName(): string;
|
|
22
|
+
set nodeName(value: string);
|
|
23
|
+
get nodeValue(): string;
|
|
24
|
+
set nodeValue(value: string);
|
|
25
|
+
get namespaceURI(): string;
|
|
26
|
+
set namespaceURI(namespaceURI: string);
|
|
27
|
+
}
|
|
28
|
+
declare class MockClassList {
|
|
29
|
+
constructor(elm: HTMLElement);
|
|
30
|
+
add(...classNames: string[]): void;
|
|
31
|
+
remove(...classNames: string[]): void;
|
|
32
|
+
contains(className: string): boolean;
|
|
33
|
+
toggle(className: string): void;
|
|
34
|
+
get length(): number;
|
|
35
|
+
item(index: number): string;
|
|
36
|
+
toString(): string;
|
|
37
|
+
}
|
|
38
|
+
declare class MockComment extends MockNode {
|
|
39
|
+
constructor(ownerDocument: any, data: string);
|
|
40
|
+
cloneNode(_deep?: boolean): MockComment;
|
|
41
|
+
get textContent(): string;
|
|
42
|
+
set textContent(text: string);
|
|
43
|
+
}
|
|
44
|
+
declare function createConsole(): any;
|
|
45
|
+
declare const enum NODE_TYPES {
|
|
46
|
+
ELEMENT_NODE = 1,
|
|
47
|
+
ATTRIBUTE_NODE = 2,
|
|
48
|
+
TEXT_NODE = 3,
|
|
49
|
+
CDATA_SECTION_NODE = 4,
|
|
50
|
+
ENTITY_REFERENCE_NODE = 5,
|
|
51
|
+
ENTITY_NODE = 6,
|
|
52
|
+
PROCESSING_INSTRUCTION_NODE = 7,
|
|
53
|
+
COMMENT_NODE = 8,
|
|
54
|
+
DOCUMENT_NODE = 9,
|
|
55
|
+
DOCUMENT_TYPE_NODE = 10,
|
|
56
|
+
DOCUMENT_FRAGMENT_NODE = 11,
|
|
57
|
+
NOTATION_NODE = 12
|
|
58
|
+
}
|
|
59
|
+
declare const enum NODE_NAMES {
|
|
60
|
+
COMMENT_NODE = "#comment",
|
|
61
|
+
DOCUMENT_NODE = "#document",
|
|
62
|
+
DOCUMENT_FRAGMENT_NODE = "#document-fragment",
|
|
63
|
+
TEXT_NODE = "#text"
|
|
64
|
+
}
|
|
65
|
+
declare class MockCSSStyleDeclaration {
|
|
66
|
+
setProperty(prop: string, value: string): void;
|
|
67
|
+
getPropertyValue(prop: string): string;
|
|
68
|
+
removeProperty(prop: string): void;
|
|
69
|
+
get length(): number;
|
|
70
|
+
get cssText(): string;
|
|
71
|
+
set cssText(cssText: string);
|
|
72
|
+
}
|
|
73
|
+
declare function createCSSStyleDeclaration(): MockCSSStyleDeclaration;
|
|
74
|
+
declare class MockCSSRule {
|
|
75
|
+
parentStyleSheet: MockCSSStyleSheet;
|
|
76
|
+
cssText: string;
|
|
77
|
+
type: number;
|
|
78
|
+
constructor(parentStyleSheet: MockCSSStyleSheet);
|
|
79
|
+
}
|
|
80
|
+
declare class MockCSSStyleSheet {
|
|
81
|
+
ownerNode: any;
|
|
82
|
+
type: string;
|
|
83
|
+
parentStyleSheet: MockCSSStyleSheet;
|
|
84
|
+
cssRules: MockCSSRule[];
|
|
85
|
+
constructor(ownerNode: MockStyleElement);
|
|
86
|
+
get rules(): MockCSSRule[];
|
|
87
|
+
set rules(rules: MockCSSRule[]);
|
|
88
|
+
deleteRule(index: number): void;
|
|
89
|
+
insertRule(rule: string, index?: number): number;
|
|
90
|
+
}
|
|
91
|
+
declare function getStyleElementText(styleElm: MockStyleElement): string;
|
|
92
|
+
declare function setStyleElementText(styleElm: MockStyleElement, text: string): void;
|
|
93
|
+
declare class MockCustomElementRegistry implements CustomElementRegistry {
|
|
94
|
+
constructor(win: Window);
|
|
95
|
+
define(tagName: string, cstr: any, options?: any): void;
|
|
96
|
+
get(tagName: string): any;
|
|
97
|
+
upgrade(_rootNode: any): void;
|
|
98
|
+
clear(): void;
|
|
99
|
+
whenDefined(tagName: string): Promise<void>;
|
|
100
|
+
}
|
|
101
|
+
declare function createCustomElement(customElements: MockCustomElementRegistry, ownerDocument: any, tagName: string): any;
|
|
102
|
+
declare function connectNode(ownerDocument: any, node: MockNode): void;
|
|
103
|
+
declare function disconnectNode(node: MockNode): void;
|
|
104
|
+
declare function attributeChanged(node: MockNode, attrName: string, oldValue: string, newValue: string): void;
|
|
105
|
+
declare function checkAttributeChanged(node: MockNode): boolean;
|
|
106
|
+
declare function dataset(elm: MockElement): any;
|
|
107
|
+
declare class MockDocumentFragment extends MockHTMLElement {
|
|
108
|
+
constructor(ownerDocument: any);
|
|
109
|
+
getElementById(id: string): MockElement;
|
|
110
|
+
cloneNode(deep?: boolean): MockDocumentFragment;
|
|
111
|
+
}
|
|
112
|
+
declare class MockDocumentTypeNode extends MockHTMLElement {
|
|
113
|
+
constructor(ownerDocument: any);
|
|
114
|
+
}
|
|
115
|
+
declare class MockDocument extends MockHTMLElement {
|
|
116
|
+
defaultView: any;
|
|
117
|
+
cookie: string;
|
|
118
|
+
referrer: string;
|
|
119
|
+
constructor(html?: string | boolean, win?: any);
|
|
120
|
+
get location(): Location;
|
|
121
|
+
set location(val: Location);
|
|
122
|
+
get baseURI(): string;
|
|
123
|
+
get URL(): string;
|
|
124
|
+
get styleSheets(): Element[];
|
|
125
|
+
get scripts(): Element[];
|
|
126
|
+
get forms(): Element[];
|
|
127
|
+
get images(): Element[];
|
|
128
|
+
get scrollingElement(): MockElement;
|
|
129
|
+
get documentElement(): MockElement;
|
|
130
|
+
set documentElement(documentElement: MockElement);
|
|
131
|
+
get head(): MockElement;
|
|
132
|
+
set head(head: MockElement);
|
|
133
|
+
get body(): MockElement;
|
|
134
|
+
set body(body: MockElement);
|
|
135
|
+
appendChild(newNode: MockElement): MockElement;
|
|
136
|
+
createComment(data: string): MockComment;
|
|
137
|
+
createAttribute(attrName: string): MockAttr;
|
|
138
|
+
createAttributeNS(namespaceURI: string, attrName: string): MockAttr;
|
|
139
|
+
createElement(tagName: string): any;
|
|
140
|
+
createElementNS(namespaceURI: string, tagName: string): any;
|
|
141
|
+
createTextNode(text: string): MockTextNode;
|
|
142
|
+
createDocumentFragment(): MockDocumentFragment;
|
|
143
|
+
createDocumentTypeNode(): MockDocumentTypeNode;
|
|
144
|
+
getElementById(id: string): MockElement;
|
|
145
|
+
getElementsByName(elmName: string): MockElement[];
|
|
146
|
+
get title(): string;
|
|
147
|
+
set title(value: string);
|
|
148
|
+
}
|
|
149
|
+
declare function createDocument(html?: string | boolean): Document;
|
|
150
|
+
declare function createFragment(html?: string): DocumentFragment;
|
|
151
|
+
declare function resetDocument(doc: Document): void;
|
|
152
|
+
declare function getElementById(elm: MockElement, id: string): MockElement;
|
|
153
|
+
declare function setOwnerDocument(elm: MockElement, ownerDocument: any): void;
|
|
154
|
+
declare function createElement(ownerDocument: any, tagName: string): any;
|
|
155
|
+
declare function createElementNS(ownerDocument: any, namespaceURI: string, tagName: string): any;
|
|
156
|
+
declare class MockAnchorElement extends MockHTMLElement {
|
|
157
|
+
constructor(ownerDocument: any);
|
|
158
|
+
get href(): string;
|
|
159
|
+
set href(value: string);
|
|
160
|
+
}
|
|
161
|
+
declare class MockButtonElement extends MockHTMLElement {
|
|
162
|
+
constructor(ownerDocument: any);
|
|
163
|
+
}
|
|
164
|
+
declare class MockImageElement extends MockHTMLElement {
|
|
165
|
+
constructor(ownerDocument: any);
|
|
166
|
+
get draggable(): boolean;
|
|
167
|
+
set draggable(value: boolean);
|
|
168
|
+
get src(): string;
|
|
169
|
+
set src(value: string);
|
|
170
|
+
}
|
|
171
|
+
declare class MockInputElement extends MockHTMLElement {
|
|
172
|
+
constructor(ownerDocument: any);
|
|
173
|
+
get list(): HTMLElement;
|
|
174
|
+
}
|
|
175
|
+
declare class MockFormElement extends MockHTMLElement {
|
|
176
|
+
constructor(ownerDocument: any);
|
|
177
|
+
}
|
|
178
|
+
declare class MockLinkElement extends MockHTMLElement {
|
|
179
|
+
constructor(ownerDocument: any);
|
|
180
|
+
get href(): string;
|
|
181
|
+
set href(value: string);
|
|
182
|
+
}
|
|
183
|
+
declare class MockMetaElement extends MockHTMLElement {
|
|
184
|
+
constructor(ownerDocument: any);
|
|
185
|
+
}
|
|
186
|
+
declare class MockScriptElement extends MockHTMLElement {
|
|
187
|
+
constructor(ownerDocument: any);
|
|
188
|
+
get src(): string;
|
|
189
|
+
set src(value: string);
|
|
190
|
+
}
|
|
191
|
+
declare class MockStyleElement extends MockHTMLElement {
|
|
192
|
+
sheet: MockCSSStyleSheet;
|
|
193
|
+
constructor(ownerDocument: any);
|
|
194
|
+
get innerHTML(): string;
|
|
195
|
+
set innerHTML(value: string);
|
|
196
|
+
get innerText(): string;
|
|
197
|
+
set innerText(value: string);
|
|
198
|
+
get textContent(): string;
|
|
199
|
+
set textContent(value: string);
|
|
200
|
+
}
|
|
201
|
+
declare class MockSVGElement extends MockElement {
|
|
202
|
+
get ownerSVGElement(): SVGSVGElement;
|
|
203
|
+
get viewportElement(): SVGElement;
|
|
204
|
+
focus(): void;
|
|
205
|
+
onunload(): void;
|
|
206
|
+
get pathLength(): number;
|
|
207
|
+
isPointInFill(_pt: DOMPoint): boolean;
|
|
208
|
+
isPointInStroke(_pt: DOMPoint): boolean;
|
|
209
|
+
getTotalLength(): number;
|
|
210
|
+
}
|
|
211
|
+
declare class MockBaseElement extends MockHTMLElement {
|
|
212
|
+
constructor(ownerDocument: any);
|
|
213
|
+
get href(): string;
|
|
214
|
+
set href(value: string);
|
|
215
|
+
}
|
|
216
|
+
declare class MockTemplateElement extends MockHTMLElement {
|
|
217
|
+
content: MockDocumentFragment;
|
|
218
|
+
constructor(ownerDocument: any);
|
|
219
|
+
get innerHTML(): string;
|
|
220
|
+
set innerHTML(html: string);
|
|
221
|
+
cloneNode(deep?: boolean): MockTemplateElement;
|
|
222
|
+
}
|
|
223
|
+
declare class MockTitleElement extends MockHTMLElement {
|
|
224
|
+
constructor(ownerDocument: any);
|
|
225
|
+
get text(): string;
|
|
226
|
+
set text(value: string);
|
|
227
|
+
}
|
|
228
|
+
declare class MockCanvasElement extends MockHTMLElement {
|
|
229
|
+
constructor(ownerDocument: any);
|
|
230
|
+
getContext(): {
|
|
231
|
+
fillRect(): void;
|
|
232
|
+
clearRect(): void;
|
|
233
|
+
getImageData: (_: number, __: number, w: number, h: number) => {
|
|
234
|
+
data: any[];
|
|
235
|
+
};
|
|
236
|
+
putImageData(): void;
|
|
237
|
+
createImageData: () => any[];
|
|
238
|
+
setTransform(): void;
|
|
239
|
+
drawImage(): void;
|
|
240
|
+
save(): void;
|
|
241
|
+
fillText(): void;
|
|
242
|
+
restore(): void;
|
|
243
|
+
beginPath(): void;
|
|
244
|
+
moveTo(): void;
|
|
245
|
+
lineTo(): void;
|
|
246
|
+
closePath(): void;
|
|
247
|
+
stroke(): void;
|
|
248
|
+
translate(): void;
|
|
249
|
+
scale(): void;
|
|
250
|
+
rotate(): void;
|
|
251
|
+
arc(): void;
|
|
252
|
+
fill(): void;
|
|
253
|
+
measureText(): {
|
|
254
|
+
width: number;
|
|
255
|
+
};
|
|
256
|
+
transform(): void;
|
|
257
|
+
rect(): void;
|
|
258
|
+
clip(): void;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
declare class MockEvent {
|
|
262
|
+
bubbles: boolean;
|
|
263
|
+
cancelBubble: boolean;
|
|
264
|
+
cancelable: boolean;
|
|
265
|
+
composed: boolean;
|
|
266
|
+
currentTarget: MockElement;
|
|
267
|
+
defaultPrevented: boolean;
|
|
268
|
+
srcElement: MockElement;
|
|
269
|
+
target: MockElement;
|
|
270
|
+
timeStamp: number;
|
|
271
|
+
type: string;
|
|
272
|
+
constructor(type: string, eventInitDict?: EventInit);
|
|
273
|
+
preventDefault(): void;
|
|
274
|
+
stopPropagation(): void;
|
|
275
|
+
stopImmediatePropagation(): void;
|
|
276
|
+
}
|
|
277
|
+
declare class MockCustomEvent extends MockEvent {
|
|
278
|
+
detail: any;
|
|
279
|
+
constructor(type: string, customEventInitDic?: CustomEventInit);
|
|
280
|
+
}
|
|
281
|
+
declare class MockKeyboardEvent extends MockEvent {
|
|
282
|
+
code: string;
|
|
283
|
+
key: string;
|
|
284
|
+
altKey: boolean;
|
|
285
|
+
ctrlKey: boolean;
|
|
286
|
+
metaKey: boolean;
|
|
287
|
+
shiftKey: boolean;
|
|
288
|
+
location: number;
|
|
289
|
+
repeat: boolean;
|
|
290
|
+
constructor(type: string, keyboardEventInitDic?: KeyboardEventInit);
|
|
291
|
+
}
|
|
292
|
+
declare class MockMouseEvent extends MockEvent {
|
|
293
|
+
screenX: number;
|
|
294
|
+
screenY: number;
|
|
295
|
+
clientX: number;
|
|
296
|
+
clientY: number;
|
|
297
|
+
ctrlKey: boolean;
|
|
298
|
+
shiftKey: boolean;
|
|
299
|
+
altKey: boolean;
|
|
300
|
+
metaKey: boolean;
|
|
301
|
+
button: number;
|
|
302
|
+
buttons: number;
|
|
303
|
+
relatedTarget: EventTarget;
|
|
304
|
+
constructor(type: string, mouseEventInitDic?: MouseEventInit);
|
|
305
|
+
}
|
|
306
|
+
declare class MockEventListener {
|
|
307
|
+
type: string;
|
|
308
|
+
handler: (ev?: any) => void;
|
|
309
|
+
constructor(type: string, handler: any);
|
|
310
|
+
}
|
|
311
|
+
declare function addEventListener(elm: any, type: string, handler: any): void;
|
|
312
|
+
declare function removeEventListener(elm: any, type: string, handler: any): void;
|
|
313
|
+
declare function resetEventListeners(target: any): void;
|
|
314
|
+
declare function dispatchEvent(currentTarget: any, ev: MockEvent): boolean;
|
|
315
|
+
interface EventTarget {
|
|
316
|
+
}
|
|
317
|
+
declare function setupGlobal(gbl: any): any;
|
|
318
|
+
declare function teardownGlobal(gbl: any): void;
|
|
319
|
+
declare function patchWindow(winToBePatched: any): void;
|
|
320
|
+
declare function addGlobalsToWindowPrototype(mockWinPrototype: any): void;
|
|
321
|
+
declare class MockHeaders {
|
|
322
|
+
constructor(init?: string[][] | Map<string, string> | any);
|
|
323
|
+
append(key: string, value: string): void;
|
|
324
|
+
delete(key: string): void;
|
|
325
|
+
entries(): any;
|
|
326
|
+
forEach(cb: (value: string, key: string) => void): void;
|
|
327
|
+
get(key: string): string;
|
|
328
|
+
has(key: string): boolean;
|
|
329
|
+
keys(): {
|
|
330
|
+
next(): {
|
|
331
|
+
value: string;
|
|
332
|
+
done: boolean;
|
|
333
|
+
};
|
|
334
|
+
[Symbol.iterator](): any;
|
|
335
|
+
};
|
|
336
|
+
set(key: string, value: string): void;
|
|
337
|
+
values(): any;
|
|
338
|
+
[Symbol.iterator](): any;
|
|
339
|
+
}
|
|
340
|
+
declare class MockHistory {
|
|
341
|
+
get length(): number;
|
|
342
|
+
back(): void;
|
|
343
|
+
forward(): void;
|
|
344
|
+
go(_value: number): void;
|
|
345
|
+
pushState(_state: any, _title: string, _url: string): void;
|
|
346
|
+
replaceState(_state: any, _title: string, _url: string): void;
|
|
347
|
+
}
|
|
348
|
+
declare class MockIntersectionObserver {
|
|
349
|
+
constructor();
|
|
350
|
+
disconnect(): void;
|
|
351
|
+
observe(): void;
|
|
352
|
+
takeRecords(): any[];
|
|
353
|
+
unobserve(): void;
|
|
354
|
+
}
|
|
355
|
+
declare class MockLocation implements Location {
|
|
356
|
+
ancestorOrigins: any;
|
|
357
|
+
protocol: string;
|
|
358
|
+
host: string;
|
|
359
|
+
hostname: string;
|
|
360
|
+
port: string;
|
|
361
|
+
pathname: string;
|
|
362
|
+
search: string;
|
|
363
|
+
hash: string;
|
|
364
|
+
username: string;
|
|
365
|
+
password: string;
|
|
366
|
+
origin: string;
|
|
367
|
+
get href(): string;
|
|
368
|
+
set href(value: string);
|
|
369
|
+
assign(_url: string): void;
|
|
370
|
+
reload(_forcedReload?: boolean): void;
|
|
371
|
+
replace(_url: string): void;
|
|
372
|
+
toString(): string;
|
|
373
|
+
}
|
|
374
|
+
declare class MockNavigator {
|
|
375
|
+
appCodeName: string;
|
|
376
|
+
appName: string;
|
|
377
|
+
appVersion: string;
|
|
378
|
+
platform: string;
|
|
379
|
+
userAgent: string;
|
|
380
|
+
}
|
|
381
|
+
declare class MockNode {
|
|
382
|
+
nodeName: string;
|
|
383
|
+
nodeType: number;
|
|
384
|
+
nodeValue: string;
|
|
385
|
+
ownerDocument: any;
|
|
386
|
+
parentNode: MockNode;
|
|
387
|
+
childNodes: MockNode[];
|
|
388
|
+
constructor(ownerDocument: any, nodeType: number, nodeName: string, nodeValue: string);
|
|
389
|
+
appendChild(newNode: MockNode): MockNode;
|
|
390
|
+
append(...items: (MockNode | string)[]): void;
|
|
391
|
+
prepend(...items: (MockNode | string)[]): void;
|
|
392
|
+
cloneNode(deep?: boolean): MockNode;
|
|
393
|
+
compareDocumentPosition(_other: MockNode): number;
|
|
394
|
+
get firstChild(): MockNode;
|
|
395
|
+
insertBefore(newNode: MockNode, referenceNode: MockNode): MockNode;
|
|
396
|
+
get isConnected(): boolean;
|
|
397
|
+
isSameNode(node: any): boolean;
|
|
398
|
+
get lastChild(): MockNode;
|
|
399
|
+
get nextSibling(): MockNode;
|
|
400
|
+
get parentElement(): any;
|
|
401
|
+
set parentElement(value: any);
|
|
402
|
+
get previousSibling(): MockNode;
|
|
403
|
+
contains(otherNode: MockNode): boolean;
|
|
404
|
+
removeChild(childNode: MockNode): MockNode;
|
|
405
|
+
remove(): void;
|
|
406
|
+
replaceChild(newChild: MockNode, oldChild: MockNode): MockNode;
|
|
407
|
+
get textContent(): string;
|
|
408
|
+
set textContent(value: string);
|
|
409
|
+
static ELEMENT_NODE: number;
|
|
410
|
+
static TEXT_NODE: number;
|
|
411
|
+
static PROCESSING_INSTRUCTION_NODE: number;
|
|
412
|
+
static COMMENT_NODE: number;
|
|
413
|
+
static DOCUMENT_NODE: number;
|
|
414
|
+
static DOCUMENT_TYPE_NODE: number;
|
|
415
|
+
static DOCUMENT_FRAGMENT_NODE: number;
|
|
416
|
+
}
|
|
417
|
+
declare class MockNodeList {
|
|
418
|
+
childNodes: MockNode[];
|
|
419
|
+
length: number;
|
|
420
|
+
ownerDocument: any;
|
|
421
|
+
constructor(ownerDocument: any, childNodes: MockNode[], length: number);
|
|
422
|
+
}
|
|
423
|
+
declare class MockElement extends MockNode {
|
|
424
|
+
namespaceURI: string;
|
|
425
|
+
constructor(ownerDocument: any, nodeName: string);
|
|
426
|
+
addEventListener(type: string, handler: (ev?: any) => void): void;
|
|
427
|
+
attachShadow(_opts: ShadowRootInit): any;
|
|
428
|
+
get shadowRoot(): any;
|
|
429
|
+
set shadowRoot(shadowRoot: any);
|
|
430
|
+
get attributes(): MockAttributeMap;
|
|
431
|
+
set attributes(attrs: MockAttributeMap);
|
|
432
|
+
get children(): MockElement[];
|
|
433
|
+
get childElementCount(): number;
|
|
434
|
+
get className(): string;
|
|
435
|
+
set className(value: string);
|
|
436
|
+
get classList(): MockClassList;
|
|
437
|
+
click(): void;
|
|
438
|
+
cloneNode(_deep?: boolean): MockElement;
|
|
439
|
+
closest(selector: string): this;
|
|
440
|
+
get dataset(): any;
|
|
441
|
+
get dir(): string;
|
|
442
|
+
set dir(value: string);
|
|
443
|
+
dispatchEvent(ev: MockEvent): boolean;
|
|
444
|
+
get firstElementChild(): MockElement;
|
|
445
|
+
getAttribute(attrName: string): any;
|
|
446
|
+
getAttributeNS(namespaceURI: string, attrName: string): string;
|
|
447
|
+
getBoundingClientRect(): {
|
|
448
|
+
bottom: number;
|
|
449
|
+
height: number;
|
|
450
|
+
left: number;
|
|
451
|
+
right: number;
|
|
452
|
+
top: number;
|
|
453
|
+
width: number;
|
|
454
|
+
x: number;
|
|
455
|
+
y: number;
|
|
456
|
+
};
|
|
457
|
+
getRootNode(opts?: {
|
|
458
|
+
composed?: boolean;
|
|
459
|
+
[key: string]: any;
|
|
460
|
+
}): Node;
|
|
461
|
+
get draggable(): boolean;
|
|
462
|
+
set draggable(value: boolean);
|
|
463
|
+
hasChildNodes(): boolean;
|
|
464
|
+
get id(): string;
|
|
465
|
+
set id(value: string);
|
|
466
|
+
get innerHTML(): string;
|
|
467
|
+
set innerHTML(html: string);
|
|
468
|
+
get innerText(): string;
|
|
469
|
+
set innerText(value: string);
|
|
470
|
+
insertAdjacentElement(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', elm: MockHTMLElement): MockHTMLElement;
|
|
471
|
+
insertAdjacentHTML(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', html: string): void;
|
|
472
|
+
insertAdjacentText(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', text: string): void;
|
|
473
|
+
hasAttribute(attrName: string): boolean;
|
|
474
|
+
hasAttributeNS(namespaceURI: string, name: string): boolean;
|
|
475
|
+
get hidden(): boolean;
|
|
476
|
+
set hidden(isHidden: boolean);
|
|
477
|
+
get lang(): string;
|
|
478
|
+
set lang(value: string);
|
|
479
|
+
get lastElementChild(): MockElement;
|
|
480
|
+
matches(selector: string): boolean;
|
|
481
|
+
get nextElementSibling(): any;
|
|
482
|
+
get outerHTML(): string;
|
|
483
|
+
get previousElementSibling(): any;
|
|
484
|
+
getElementsByClassName(classNames: string): MockElement[];
|
|
485
|
+
getElementsByTagName(tagName: string): MockElement[];
|
|
486
|
+
querySelector(selector: string): Element;
|
|
487
|
+
querySelectorAll(selector: string): Element[];
|
|
488
|
+
removeAttribute(attrName: string): void;
|
|
489
|
+
removeAttributeNS(namespaceURI: string, attrName: string): void;
|
|
490
|
+
removeEventListener(type: string, handler: any): void;
|
|
491
|
+
setAttribute(attrName: string, value: any): void;
|
|
492
|
+
setAttributeNS(namespaceURI: string, attrName: string, value: any): void;
|
|
493
|
+
get style(): any;
|
|
494
|
+
set style(val: any);
|
|
495
|
+
get tabIndex(): number;
|
|
496
|
+
set tabIndex(value: number);
|
|
497
|
+
get tagName(): string;
|
|
498
|
+
set tagName(value: string);
|
|
499
|
+
get textContent(): string;
|
|
500
|
+
set textContent(value: string);
|
|
501
|
+
get title(): string;
|
|
502
|
+
set title(value: string);
|
|
503
|
+
onanimationstart(): void;
|
|
504
|
+
onanimationend(): void;
|
|
505
|
+
onanimationiteration(): void;
|
|
506
|
+
onabort(): void;
|
|
507
|
+
onauxclick(): void;
|
|
508
|
+
onbeforecopy(): void;
|
|
509
|
+
onbeforecut(): void;
|
|
510
|
+
onbeforepaste(): void;
|
|
511
|
+
onblur(): void;
|
|
512
|
+
oncancel(): void;
|
|
513
|
+
oncanplay(): void;
|
|
514
|
+
oncanplaythrough(): void;
|
|
515
|
+
onchange(): void;
|
|
516
|
+
onclick(): void;
|
|
517
|
+
onclose(): void;
|
|
518
|
+
oncontextmenu(): void;
|
|
519
|
+
oncopy(): void;
|
|
520
|
+
oncuechange(): void;
|
|
521
|
+
oncut(): void;
|
|
522
|
+
ondblclick(): void;
|
|
523
|
+
ondrag(): void;
|
|
524
|
+
ondragend(): void;
|
|
525
|
+
ondragenter(): void;
|
|
526
|
+
ondragleave(): void;
|
|
527
|
+
ondragover(): void;
|
|
528
|
+
ondragstart(): void;
|
|
529
|
+
ondrop(): void;
|
|
530
|
+
ondurationchange(): void;
|
|
531
|
+
onemptied(): void;
|
|
532
|
+
onended(): void;
|
|
533
|
+
onerror(): void;
|
|
534
|
+
onfocus(): void;
|
|
535
|
+
onfocusin(): void;
|
|
536
|
+
onfocusout(): void;
|
|
537
|
+
onformdata(): void;
|
|
538
|
+
onfullscreenchange(): void;
|
|
539
|
+
onfullscreenerror(): void;
|
|
540
|
+
ongotpointercapture(): void;
|
|
541
|
+
oninput(): void;
|
|
542
|
+
oninvalid(): void;
|
|
543
|
+
onkeydown(): void;
|
|
544
|
+
onkeypress(): void;
|
|
545
|
+
onkeyup(): void;
|
|
546
|
+
onload(): void;
|
|
547
|
+
onloadeddata(): void;
|
|
548
|
+
onloadedmetadata(): void;
|
|
549
|
+
onloadstart(): void;
|
|
550
|
+
onlostpointercapture(): void;
|
|
551
|
+
onmousedown(): void;
|
|
552
|
+
onmouseenter(): void;
|
|
553
|
+
onmouseleave(): void;
|
|
554
|
+
onmousemove(): void;
|
|
555
|
+
onmouseout(): void;
|
|
556
|
+
onmouseover(): void;
|
|
557
|
+
onmouseup(): void;
|
|
558
|
+
onmousewheel(): void;
|
|
559
|
+
onpaste(): void;
|
|
560
|
+
onpause(): void;
|
|
561
|
+
onplay(): void;
|
|
562
|
+
onplaying(): void;
|
|
563
|
+
onpointercancel(): void;
|
|
564
|
+
onpointerdown(): void;
|
|
565
|
+
onpointerenter(): void;
|
|
566
|
+
onpointerleave(): void;
|
|
567
|
+
onpointermove(): void;
|
|
568
|
+
onpointerout(): void;
|
|
569
|
+
onpointerover(): void;
|
|
570
|
+
onpointerup(): void;
|
|
571
|
+
onprogress(): void;
|
|
572
|
+
onratechange(): void;
|
|
573
|
+
onreset(): void;
|
|
574
|
+
onresize(): void;
|
|
575
|
+
onscroll(): void;
|
|
576
|
+
onsearch(): void;
|
|
577
|
+
onseeked(): void;
|
|
578
|
+
onseeking(): void;
|
|
579
|
+
onselect(): void;
|
|
580
|
+
onselectstart(): void;
|
|
581
|
+
onstalled(): void;
|
|
582
|
+
onsubmit(): void;
|
|
583
|
+
onsuspend(): void;
|
|
584
|
+
ontimeupdate(): void;
|
|
585
|
+
ontoggle(): void;
|
|
586
|
+
onvolumechange(): void;
|
|
587
|
+
onwaiting(): void;
|
|
588
|
+
onwebkitfullscreenchange(): void;
|
|
589
|
+
onwebkitfullscreenerror(): void;
|
|
590
|
+
onwheel(): void;
|
|
591
|
+
toString(opts?: SerializeNodeToHtmlOptions): string;
|
|
592
|
+
}
|
|
593
|
+
declare function resetElement(elm: MockElement): void;
|
|
594
|
+
declare class MockHTMLElement extends MockElement {
|
|
595
|
+
namespaceURI: string;
|
|
596
|
+
constructor(ownerDocument: any, nodeName: string);
|
|
597
|
+
get tagName(): string;
|
|
598
|
+
set tagName(value: string);
|
|
599
|
+
get attributes(): MockAttributeMap;
|
|
600
|
+
set attributes(attrs: MockAttributeMap);
|
|
601
|
+
}
|
|
602
|
+
declare class MockTextNode extends MockNode {
|
|
603
|
+
constructor(ownerDocument: any, text: string);
|
|
604
|
+
cloneNode(_deep?: boolean): MockTextNode;
|
|
605
|
+
get textContent(): string;
|
|
606
|
+
set textContent(text: string);
|
|
607
|
+
get data(): string;
|
|
608
|
+
set data(text: string);
|
|
609
|
+
get wholeText(): string;
|
|
610
|
+
}
|
|
611
|
+
declare function parseHtmlToDocument(html: string, ownerDocument?: MockDocument): any;
|
|
612
|
+
declare function parseHtmlToFragment(html: string, ownerDocument?: MockDocument): any;
|
|
613
|
+
declare function parseDocumentUtil(ownerDocument: any, html: string): any;
|
|
614
|
+
declare function parseFragmentUtil(ownerDocument: any, html: string): any;
|
|
615
|
+
/**
|
|
616
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Performance
|
|
617
|
+
*/
|
|
618
|
+
declare class MockPerformance implements Performance {
|
|
619
|
+
timeOrigin: number;
|
|
620
|
+
constructor();
|
|
621
|
+
addEventListener(): void;
|
|
622
|
+
clearMarks(): void;
|
|
623
|
+
clearMeasures(): void;
|
|
624
|
+
clearResourceTimings(): void;
|
|
625
|
+
dispatchEvent(): boolean;
|
|
626
|
+
getEntries(): any;
|
|
627
|
+
getEntriesByName(): any;
|
|
628
|
+
getEntriesByType(): any;
|
|
629
|
+
mark(): void;
|
|
630
|
+
measure(): void;
|
|
631
|
+
get navigation(): any;
|
|
632
|
+
now(): number;
|
|
633
|
+
get onresourcetimingbufferfull(): any;
|
|
634
|
+
removeEventListener(): void;
|
|
635
|
+
setResourceTimingBufferSize(): void;
|
|
636
|
+
get timing(): any;
|
|
637
|
+
toJSON(): void;
|
|
638
|
+
}
|
|
639
|
+
declare function resetPerformance(perf: Performance): void;
|
|
640
|
+
declare type MockRequestInfo = MockRequest | string;
|
|
641
|
+
interface MockRequestInit {
|
|
642
|
+
body?: any;
|
|
643
|
+
cache?: string;
|
|
644
|
+
credentials?: string;
|
|
645
|
+
headers?: any;
|
|
646
|
+
integrity?: string;
|
|
647
|
+
keepalive?: boolean;
|
|
648
|
+
method?: string;
|
|
649
|
+
mode?: string;
|
|
650
|
+
redirect?: string;
|
|
651
|
+
referrer?: string;
|
|
652
|
+
referrerPolicy?: string;
|
|
653
|
+
}
|
|
654
|
+
declare class MockRequest {
|
|
655
|
+
bodyUsed: boolean;
|
|
656
|
+
cache: string;
|
|
657
|
+
credentials: string;
|
|
658
|
+
headers: MockHeaders;
|
|
659
|
+
integrity: string;
|
|
660
|
+
keepalive: boolean;
|
|
661
|
+
mode: string;
|
|
662
|
+
redirect: string;
|
|
663
|
+
referrer: string;
|
|
664
|
+
referrerPolicy: string;
|
|
665
|
+
constructor(input?: any, init?: MockRequestInit);
|
|
666
|
+
get url(): string;
|
|
667
|
+
set url(value: string);
|
|
668
|
+
get method(): string;
|
|
669
|
+
set method(value: string);
|
|
670
|
+
clone(): MockRequest;
|
|
671
|
+
}
|
|
672
|
+
interface MockResponseInit {
|
|
673
|
+
headers?: any;
|
|
674
|
+
ok?: boolean;
|
|
675
|
+
status?: number;
|
|
676
|
+
statusText?: string;
|
|
677
|
+
type?: string;
|
|
678
|
+
url?: string;
|
|
679
|
+
}
|
|
680
|
+
declare class MockResponse {
|
|
681
|
+
headers: MockHeaders;
|
|
682
|
+
ok: boolean;
|
|
683
|
+
status: number;
|
|
684
|
+
statusText: string;
|
|
685
|
+
type: string;
|
|
686
|
+
url: string;
|
|
687
|
+
constructor(body?: string, init?: MockResponseInit);
|
|
688
|
+
json(): Promise<any>;
|
|
689
|
+
text(): Promise<string>;
|
|
690
|
+
clone(): MockResponse;
|
|
691
|
+
}
|
|
692
|
+
declare function matches(selector: string, elm: MockElement): boolean;
|
|
693
|
+
declare function selectOne(selector: string, elm: MockElement): Element;
|
|
694
|
+
declare function selectAll(selector: string, elm: MockElement): Element[];
|
|
695
|
+
declare function serializeNodeToHtml(elm: Node | MockNode, opts?: SerializeNodeToHtmlOptions): string;
|
|
696
|
+
declare const NON_ESCAPABLE_CONTENT: Set<string>;
|
|
697
|
+
declare const WHITESPACE_SENSITIVE: Set<string>;
|
|
698
|
+
interface SerializeNodeToHtmlOptions {
|
|
699
|
+
approximateLineWidth?: number;
|
|
700
|
+
excludeTagContent?: string[];
|
|
701
|
+
excludeTags?: string[];
|
|
702
|
+
indentSpaces?: number;
|
|
703
|
+
newLines?: boolean;
|
|
704
|
+
outerHtml?: boolean;
|
|
705
|
+
prettyHtml?: boolean;
|
|
706
|
+
removeAttributeQuotes?: boolean;
|
|
707
|
+
removeBooleanAttributeQuotes?: boolean;
|
|
708
|
+
removeEmptyAttributes?: boolean;
|
|
709
|
+
removeHtmlComments?: boolean;
|
|
710
|
+
serializeShadowRoot?: boolean;
|
|
711
|
+
}
|
|
712
|
+
declare class MockStorage {
|
|
713
|
+
key(_value: number): void;
|
|
714
|
+
getItem(key: string): string;
|
|
715
|
+
setItem(key: string, value: string): void;
|
|
716
|
+
removeItem(key: string): void;
|
|
717
|
+
clear(): void;
|
|
718
|
+
}
|
|
719
|
+
declare const nativeClearInterval: typeof clearInterval;
|
|
720
|
+
declare const nativeClearTimeout: typeof clearTimeout;
|
|
721
|
+
declare const nativeSetInterval: typeof setInterval;
|
|
722
|
+
declare const nativeSetTimeout: typeof setTimeout;
|
|
723
|
+
declare class MockWindow {
|
|
724
|
+
URL: typeof URL;
|
|
725
|
+
console: Console;
|
|
726
|
+
customElements: CustomElementRegistry;
|
|
727
|
+
document: Document;
|
|
728
|
+
performance: Performance;
|
|
729
|
+
devicePixelRatio: number;
|
|
730
|
+
innerHeight: number;
|
|
731
|
+
innerWidth: number;
|
|
732
|
+
pageXOffset: number;
|
|
733
|
+
pageYOffset: number;
|
|
734
|
+
screen: Screen;
|
|
735
|
+
screenLeft: number;
|
|
736
|
+
screenTop: number;
|
|
737
|
+
screenX: number;
|
|
738
|
+
screenY: number;
|
|
739
|
+
scrollX: number;
|
|
740
|
+
scrollY: number;
|
|
741
|
+
constructor(html?: string | boolean);
|
|
742
|
+
addEventListener(type: string, handler: (ev?: any) => void): void;
|
|
743
|
+
alert(msg: string): void;
|
|
744
|
+
blur(): any;
|
|
745
|
+
cancelAnimationFrame(id: any): void;
|
|
746
|
+
cancelIdleCallback(id: any): void;
|
|
747
|
+
get CharacterData(): any;
|
|
748
|
+
set CharacterData(charDataCstr: any);
|
|
749
|
+
clearInterval(id: any): void;
|
|
750
|
+
clearTimeout(id: any): void;
|
|
751
|
+
close(): void;
|
|
752
|
+
confirm(): boolean;
|
|
753
|
+
get CSS(): {
|
|
754
|
+
supports: () => boolean;
|
|
755
|
+
};
|
|
756
|
+
get Document(): any;
|
|
757
|
+
set Document(docCstr: any);
|
|
758
|
+
get DocumentFragment(): any;
|
|
759
|
+
set DocumentFragment(docFragCstr: any);
|
|
760
|
+
get DocumentType(): any;
|
|
761
|
+
set DocumentType(docTypeCstr: any);
|
|
762
|
+
get DOMTokenList(): any;
|
|
763
|
+
set DOMTokenList(domTokenListCstr: any);
|
|
764
|
+
dispatchEvent(ev: MockEvent): boolean;
|
|
765
|
+
get Element(): any;
|
|
766
|
+
focus(): any;
|
|
767
|
+
getComputedStyle(_: any): any;
|
|
768
|
+
get globalThis(): this;
|
|
769
|
+
get history(): any;
|
|
770
|
+
set history(hsty: any);
|
|
771
|
+
get JSON(): JSON;
|
|
772
|
+
get HTMLElement(): any;
|
|
773
|
+
set HTMLElement(htmlElementCstr: any);
|
|
774
|
+
get IntersectionObserver(): typeof MockIntersectionObserver;
|
|
775
|
+
get localStorage(): MockStorage;
|
|
776
|
+
set localStorage(locStorage: MockStorage);
|
|
777
|
+
get location(): Location;
|
|
778
|
+
set location(val: Location);
|
|
779
|
+
matchMedia(): {
|
|
780
|
+
matches: boolean;
|
|
781
|
+
};
|
|
782
|
+
get Node(): any;
|
|
783
|
+
get NodeList(): any;
|
|
784
|
+
get navigator(): any;
|
|
785
|
+
set navigator(nav: any);
|
|
786
|
+
get parent(): any;
|
|
787
|
+
prompt(): string;
|
|
788
|
+
open(): any;
|
|
789
|
+
get origin(): string;
|
|
790
|
+
removeEventListener(type: string, handler: any): void;
|
|
791
|
+
requestAnimationFrame(callback: (timestamp: number) => void): number;
|
|
792
|
+
requestIdleCallback(callback: (deadline: {
|
|
793
|
+
didTimeout: boolean;
|
|
794
|
+
timeRemaining: () => number;
|
|
795
|
+
}) => void): number;
|
|
796
|
+
scroll(_x?: number, _y?: number): void;
|
|
797
|
+
scrollBy(_x?: number, _y?: number): void;
|
|
798
|
+
scrollTo(_x?: number, _y?: number): void;
|
|
799
|
+
get self(): this;
|
|
800
|
+
get sessionStorage(): any;
|
|
801
|
+
set sessionStorage(locStorage: any);
|
|
802
|
+
setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
803
|
+
setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
804
|
+
get top(): this;
|
|
805
|
+
get window(): this;
|
|
806
|
+
onanimationstart(): void;
|
|
807
|
+
onanimationend(): void;
|
|
808
|
+
onanimationiteration(): void;
|
|
809
|
+
onabort(): void;
|
|
810
|
+
onauxclick(): void;
|
|
811
|
+
onbeforecopy(): void;
|
|
812
|
+
onbeforecut(): void;
|
|
813
|
+
onbeforepaste(): void;
|
|
814
|
+
onblur(): void;
|
|
815
|
+
oncancel(): void;
|
|
816
|
+
oncanplay(): void;
|
|
817
|
+
oncanplaythrough(): void;
|
|
818
|
+
onchange(): void;
|
|
819
|
+
onclick(): void;
|
|
820
|
+
onclose(): void;
|
|
821
|
+
oncontextmenu(): void;
|
|
822
|
+
oncopy(): void;
|
|
823
|
+
oncuechange(): void;
|
|
824
|
+
oncut(): void;
|
|
825
|
+
ondblclick(): void;
|
|
826
|
+
ondrag(): void;
|
|
827
|
+
ondragend(): void;
|
|
828
|
+
ondragenter(): void;
|
|
829
|
+
ondragleave(): void;
|
|
830
|
+
ondragover(): void;
|
|
831
|
+
ondragstart(): void;
|
|
832
|
+
ondrop(): void;
|
|
833
|
+
ondurationchange(): void;
|
|
834
|
+
onemptied(): void;
|
|
835
|
+
onended(): void;
|
|
836
|
+
onerror(): void;
|
|
837
|
+
onfocus(): void;
|
|
838
|
+
onfocusin(): void;
|
|
839
|
+
onfocusout(): void;
|
|
840
|
+
onformdata(): void;
|
|
841
|
+
onfullscreenchange(): void;
|
|
842
|
+
onfullscreenerror(): void;
|
|
843
|
+
ongotpointercapture(): void;
|
|
844
|
+
oninput(): void;
|
|
845
|
+
oninvalid(): void;
|
|
846
|
+
onkeydown(): void;
|
|
847
|
+
onkeypress(): void;
|
|
848
|
+
onkeyup(): void;
|
|
849
|
+
onload(): void;
|
|
850
|
+
onloadeddata(): void;
|
|
851
|
+
onloadedmetadata(): void;
|
|
852
|
+
onloadstart(): void;
|
|
853
|
+
onlostpointercapture(): void;
|
|
854
|
+
onmousedown(): void;
|
|
855
|
+
onmouseenter(): void;
|
|
856
|
+
onmouseleave(): void;
|
|
857
|
+
onmousemove(): void;
|
|
858
|
+
onmouseout(): void;
|
|
859
|
+
onmouseover(): void;
|
|
860
|
+
onmouseup(): void;
|
|
861
|
+
onmousewheel(): void;
|
|
862
|
+
onpaste(): void;
|
|
863
|
+
onpause(): void;
|
|
864
|
+
onplay(): void;
|
|
865
|
+
onplaying(): void;
|
|
866
|
+
onpointercancel(): void;
|
|
867
|
+
onpointerdown(): void;
|
|
868
|
+
onpointerenter(): void;
|
|
869
|
+
onpointerleave(): void;
|
|
870
|
+
onpointermove(): void;
|
|
871
|
+
onpointerout(): void;
|
|
872
|
+
onpointerover(): void;
|
|
873
|
+
onpointerup(): void;
|
|
874
|
+
onprogress(): void;
|
|
875
|
+
onratechange(): void;
|
|
876
|
+
onreset(): void;
|
|
877
|
+
onresize(): void;
|
|
878
|
+
onscroll(): void;
|
|
879
|
+
onsearch(): void;
|
|
880
|
+
onseeked(): void;
|
|
881
|
+
onseeking(): void;
|
|
882
|
+
onselect(): void;
|
|
883
|
+
onselectstart(): void;
|
|
884
|
+
onstalled(): void;
|
|
885
|
+
onsubmit(): void;
|
|
886
|
+
onsuspend(): void;
|
|
887
|
+
ontimeupdate(): void;
|
|
888
|
+
ontoggle(): void;
|
|
889
|
+
onvolumechange(): void;
|
|
890
|
+
onwaiting(): void;
|
|
891
|
+
onwebkitfullscreenchange(): void;
|
|
892
|
+
onwebkitfullscreenerror(): void;
|
|
893
|
+
onwheel(): void;
|
|
894
|
+
}
|
|
895
|
+
declare function createWindow(html?: string | boolean): Window;
|
|
896
|
+
declare function cloneWindow(srcWin: Window, opts?: {
|
|
897
|
+
customElementProxy?: boolean;
|
|
898
|
+
}): MockWindow;
|
|
899
|
+
declare function cloneDocument(srcDoc: Document): Document;
|
|
900
|
+
/**
|
|
901
|
+
* Constrain setTimeout() to 1ms, but still async. Also
|
|
902
|
+
* only allow setInterval() to fire once, also constrained to 1ms.
|
|
903
|
+
*/
|
|
904
|
+
declare function constrainTimeouts(win: any): void;
|
|
905
|
+
export { MockAttr, MockAttributeMap, MockComment, MockCustomEvent, MockDocument, MockElement, MockHTMLElement, MockHeaders, MockKeyboardEvent, MockMouseEvent, MockNode, MockRequest, MockRequestInfo, MockRequestInit, MockResponse, MockResponseInit, MockTextNode, MockWindow, NODE_TYPES, SerializeNodeToHtmlOptions, cloneAttributes, cloneDocument, cloneWindow, constrainTimeouts, createDocument, createFragment, parseHtmlToDocument, parseHtmlToFragment, patchWindow, resetDocument, serializeNodeToHtml, setupGlobal, teardownGlobal }
|