@rindo/core 1.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +27 -0
- package/bin/rindo +22 -0
- package/build-conditionals/index.d.ts +2 -0
- package/build-conditionals/index.mjs +66 -0
- package/build-conditionals/package.json +6 -0
- package/compiler/index.js +2 -0
- package/compiler/package.json +6 -0
- package/compiler/rindo.js +6765 -0
- package/dist/cli/index.js +6068 -0
- package/dist/client/css-shim-14a9812e.js +656 -0
- package/dist/client/css-shim-69821662.js +658 -0
- package/dist/client/declarations/rindo.core.d.ts +1347 -0
- package/dist/client/dom-68c8fe31.js +139 -0
- package/dist/client/dom-af01458a.js +137 -0
- package/dist/client/index.js +2937 -0
- package/dist/client/index.mjs +2820 -0
- package/dist/client/polyfills/core-js.js +10 -0
- package/dist/client/polyfills/css-shim.js +656 -0
- package/dist/client/polyfills/dom.js +146 -0
- package/dist/client/polyfills/es5-html-element.js +18 -0
- package/dist/client/polyfills/index.js +35 -0
- package/dist/client/polyfills/promise.js +9 -0
- package/dist/client/polyfills/system.js +6 -0
- package/dist/client/shadow-css-6ef31c68.js +386 -0
- package/dist/client/shadow-css-8fd1a9e4.js +388 -0
- package/dist/compiler/app-core/app-es5-disabled.d.ts +2 -0
- package/dist/compiler/app-core/app-polyfills.d.ts +3 -0
- package/dist/compiler/app-core/build-conditionals.d.ts +6 -0
- package/dist/compiler/app-core/bundle-app-core.d.ts +6 -0
- package/dist/compiler/app-core/component-styles.d.ts +4 -0
- package/dist/compiler/app-core/format-component-runtime-meta.d.ts +4 -0
- package/dist/compiler/app-core/optimize-module.d.ts +7 -0
- package/dist/compiler/browser/build-conditionals-client.d.ts +3 -0
- package/dist/compiler/browser/compile-options.d.ts +12 -0
- package/dist/compiler/browser/compile.d.ts +2 -0
- package/dist/compiler/browser/create-compiler.d.ts +14 -0
- package/dist/compiler/browser/index.d.ts +11 -0
- package/dist/compiler/build/build-ctx.d.ts +74 -0
- package/dist/compiler/build/build-finish.d.ts +3 -0
- package/dist/compiler/build/build-hmr.d.ts +2 -0
- package/dist/compiler/build/build-results.d.ts +2 -0
- package/dist/compiler/build/build-stats.d.ts +3 -0
- package/dist/compiler/build/build.d.ts +2 -0
- package/dist/compiler/build/cache-stats.d.ts +4 -0
- package/dist/compiler/build/compiler-build-id.d.ts +6 -0
- package/dist/compiler/build/compiler-ctx.d.ts +44 -0
- package/dist/compiler/build/init-index-html.d.ts +2 -0
- package/dist/compiler/build/validate-files.d.ts +2 -0
- package/dist/compiler/build/write-build.d.ts +2 -0
- package/dist/compiler/cache.d.ts +22 -0
- package/dist/compiler/compiler.d.ts +27 -0
- package/dist/compiler/component-hydrate/bundle-hydrate-factory.d.ts +3 -0
- package/dist/compiler/component-hydrate/generate-hydrate-app.d.ts +2 -0
- package/dist/compiler/component-hydrate/hydrate-factory-closure.d.ts +2 -0
- package/dist/compiler/component-hydrate/update-to-hydrate-components.d.ts +2 -0
- package/dist/compiler/component-hydrate/write-hydrate-outputs.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-cjs.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-esm-browser.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-esm.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-lazy-app.d.ts +3 -0
- package/dist/compiler/component-lazy/generate-lazy-module.d.ts +4 -0
- package/dist/compiler/component-lazy/generate-system.d.ts +3 -0
- package/dist/compiler/component-lazy/update-to-lazy-component.d.ts +2 -0
- package/dist/compiler/component-lazy/write-lazy-entry-module.d.ts +2 -0
- package/dist/compiler/component-native/update-to-native-component.d.ts +2 -0
- package/dist/compiler/config/config-reload.d.ts +3 -0
- package/dist/compiler/config/config-utils.d.ts +4 -0
- package/dist/compiler/config/validate-config.d.ts +4 -0
- package/dist/compiler/config/validate-copy.d.ts +2 -0
- package/dist/compiler/config/validate-dev-server.d.ts +2 -0
- package/dist/compiler/config/validate-docs.d.ts +2 -0
- package/dist/compiler/config/validate-namespace.d.ts +3 -0
- package/dist/compiler/config/validate-output-stats.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-angular.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-custom.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-dist-module.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-dist.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-hydrate-script.d.ts +2 -0
- package/dist/compiler/config/validate-outputs-www.d.ts +2 -0
- package/dist/compiler/config/validate-outputs.d.ts +2 -0
- package/dist/compiler/config/validate-paths.d.ts +2 -0
- package/dist/compiler/config/validate-plugins.d.ts +2 -0
- package/dist/compiler/config/validate-prerender.d.ts +2 -0
- package/dist/compiler/config/validate-rollup-config.d.ts +2 -0
- package/dist/compiler/config/validate-service-worker.d.ts +2 -0
- package/dist/compiler/config/validate-testing.d.ts +2 -0
- package/dist/compiler/config/validate-workers.d.ts +2 -0
- package/dist/compiler/copy/assets-copy-tasks.d.ts +3 -0
- package/dist/compiler/copy/hashed-copy.d.ts +2 -0
- package/dist/compiler/copy/local-copy-tasks.d.ts +3 -0
- package/dist/compiler/docs/constants.d.ts +2 -0
- package/dist/compiler/docs/custom/index.d.ts +2 -0
- package/dist/compiler/docs/docs.d.ts +2 -0
- package/dist/compiler/docs/generate-doc-data.d.ts +3 -0
- package/dist/compiler/docs/json/index.d.ts +3 -0
- package/dist/compiler/docs/readme/docs-util.d.ts +13 -0
- package/dist/compiler/docs/readme/index.d.ts +3 -0
- package/dist/compiler/docs/readme/markdown-css-props.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-dependencies.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-events.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-methods.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-props.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-slots.d.ts +2 -0
- package/dist/compiler/docs/readme/markdown-usage.d.ts +6 -0
- package/dist/compiler/docs/readme/output-docs.d.ts +3 -0
- package/dist/compiler/docs/style-docs.d.ts +2 -0
- package/dist/compiler/docs/vscode/index.d.ts +2 -0
- package/dist/compiler/entries/component-bundles.d.ts +3 -0
- package/dist/compiler/entries/component-graph.d.ts +2 -0
- package/dist/compiler/entries/default-bundles.d.ts +3 -0
- package/dist/compiler/entries/entry-modules.d.ts +6 -0
- package/dist/compiler/entries/resolve-component-dependencies.d.ts +2 -0
- package/dist/compiler/events.d.ts +15 -0
- package/dist/compiler/fs-watch/fs-watch-init.d.ts +2 -0
- package/dist/compiler/fs-watch/fs-watch-log.d.ts +2 -0
- package/dist/compiler/fs-watch/fs-watch-rebuild.d.ts +7 -0
- package/dist/compiler/html/inject-module-preloads.d.ts +3 -0
- package/dist/compiler/html/inject-sw-script.d.ts +4 -0
- package/dist/compiler/html/inline-esm-import.d.ts +2 -0
- package/dist/compiler/html/inline-style-sheets.d.ts +2 -0
- package/dist/compiler/html/update-global-styles-link.d.ts +2 -0
- package/dist/compiler/html/used-components.d.ts +2 -0
- package/dist/compiler/html/utils.d.ts +2 -0
- package/dist/compiler/html/validate-manifest-json.d.ts +2 -0
- package/dist/compiler/index.d.ts +10 -0
- package/dist/compiler/index.js +18008 -0
- package/dist/compiler/output-targets/empty-dir.d.ts +6 -0
- package/dist/compiler/output-targets/index.d.ts +2 -0
- package/dist/compiler/output-targets/output-angular.d.ts +4 -0
- package/dist/compiler/output-targets/output-app.d.ts +4 -0
- package/dist/compiler/output-targets/output-collection.d.ts +3 -0
- package/dist/compiler/output-targets/output-copy.d.ts +2 -0
- package/dist/compiler/output-targets/output-custom.d.ts +2 -0
- package/dist/compiler/output-targets/output-docs.d.ts +2 -0
- package/dist/compiler/output-targets/output-hydrate.d.ts +2 -0
- package/dist/compiler/output-targets/output-lazy-loader.d.ts +2 -0
- package/dist/compiler/output-targets/output-module.d.ts +4 -0
- package/dist/compiler/output-targets/output-prerender.d.ts +2 -0
- package/dist/compiler/output-targets/output-service-workers.d.ts +2 -0
- package/dist/compiler/output-targets/output-types.d.ts +2 -0
- package/dist/compiler/output-targets/output-utils.d.ts +54 -0
- package/dist/compiler/output-targets/output-www.d.ts +2 -0
- package/dist/compiler/plugin/plugin.d.ts +6 -0
- package/dist/compiler/polyfills.d.ts +0 -0
- package/dist/compiler/prerender/crawl-urls.d.ts +3 -0
- package/dist/compiler/prerender/host-config.d.ts +12 -0
- package/dist/compiler/prerender/prerender-config.d.ts +2 -0
- package/dist/compiler/prerender/prerender-main.d.ts +2 -0
- package/dist/compiler/prerender/prerender-queue.d.ts +3 -0
- package/dist/compiler/prerender/prerender-template-html.d.ts +2 -0
- package/dist/compiler/prerender/prerendered-write-path.d.ts +2 -0
- package/dist/compiler/prerender/robots-txt.d.ts +2 -0
- package/dist/compiler/prerender/sitemap-xml.d.ts +3 -0
- package/dist/compiler/rollup-plugins/component-entry.d.ts +3 -0
- package/dist/compiler/rollup-plugins/css-transformer.d.ts +3 -0
- package/dist/compiler/rollup-plugins/global-scripts.d.ts +4 -0
- package/dist/compiler/rollup-plugins/image-plugin.d.ts +3 -0
- package/dist/compiler/rollup-plugins/in-memory-fs-read.d.ts +3 -0
- package/dist/compiler/rollup-plugins/loader.d.ts +4 -0
- package/dist/compiler/rollup-plugins/plugin-helper.d.ts +5 -0
- package/dist/compiler/rollup-plugins/rindo-build-conditionals.d.ts +7 -0
- package/dist/compiler/rollup-plugins/rindo-client.d.ts +3 -0
- package/dist/compiler/rollup-plugins/rindo-external-runtime.d.ts +2 -0
- package/dist/compiler/rollup-plugins/rindo-hydrate.d.ts +3 -0
- package/dist/compiler/rollup-plugins/rindo-public-plugin.d.ts +2 -0
- package/dist/compiler/service-worker/generate-sw.d.ts +7 -0
- package/dist/compiler/service-worker/service-worker-util.d.ts +2 -0
- package/dist/compiler/style/cached-styles.d.ts +5 -0
- package/dist/compiler/style/component-styles.d.ts +2 -0
- package/dist/compiler/style/css-imports.d.ts +9 -0
- package/dist/compiler/style/css-to-esm.d.ts +5 -0
- package/dist/compiler/style/generate-styles.d.ts +2 -0
- package/dist/compiler/style/global-styles.d.ts +3 -0
- package/dist/compiler/style/normalize-styles.d.ts +2 -0
- package/dist/compiler/style/optimize-css.d.ts +2 -0
- package/dist/compiler/style/scope-css.d.ts +3 -0
- package/dist/compiler/style/style-utils.d.ts +10 -0
- package/dist/compiler/transformers/add-component-meta-proxy.d.ts +3 -0
- package/dist/compiler/transformers/add-component-meta-static.d.ts +4 -0
- package/dist/compiler/transformers/add-imports.d.ts +3 -0
- package/dist/compiler/transformers/collections/add-external-import.d.ts +2 -0
- package/dist/compiler/transformers/collections/parse-collection-components.d.ts +2 -0
- package/dist/compiler/transformers/collections/parse-collection-deprecated.d.ts +2 -0
- package/dist/compiler/transformers/collections/parse-collection-manifest.d.ts +7 -0
- package/dist/compiler/transformers/collections/parse-collection-module.d.ts +2 -0
- package/dist/compiler/transformers/component-build-conditionals.d.ts +2 -0
- package/dist/compiler/transformers/component-hydrate/hydrate-component.d.ts +3 -0
- package/dist/compiler/transformers/component-hydrate/hydrate-runtime-cmp-meta.d.ts +3 -0
- package/dist/compiler/transformers/component-hydrate/tranform-to-hydrate-component.d.ts +2 -0
- package/dist/compiler/transformers/component-lazy/lazy-component.d.ts +3 -0
- package/dist/compiler/transformers/component-lazy/lazy-constructor.d.ts +3 -0
- package/dist/compiler/transformers/component-lazy/lazy-element-getter.d.ts +3 -0
- package/dist/compiler/transformers/component-lazy/transform-lazy-component.d.ts +4 -0
- package/dist/compiler/transformers/component-native/native-component.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-connected-callback.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-constructor.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-element-getter.d.ts +3 -0
- package/dist/compiler/transformers/component-native/native-static-style.d.ts +3 -0
- package/dist/compiler/transformers/component-native/tranform-to-native-component.d.ts +4 -0
- package/dist/compiler/transformers/core-runtime-apis.d.ts +30 -0
- package/dist/compiler/transformers/create-event.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/component-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/convert-decorators.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/decorator-utils.d.ts +10 -0
- package/dist/compiler/transformers/decorators-to-static/element-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/event-decorator.d.ts +4 -0
- package/dist/compiler/transformers/decorators-to-static/listen-decorator.d.ts +6 -0
- package/dist/compiler/transformers/decorators-to-static/method-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/prop-decorator.d.ts +4 -0
- package/dist/compiler/transformers/decorators-to-static/state-decorator.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/style-to-static.d.ts +3 -0
- package/dist/compiler/transformers/decorators-to-static/watch-decorator.d.ts +3 -0
- package/dist/compiler/transformers/define-custom-element.d.ts +3 -0
- package/dist/compiler/transformers/host-data-transform.d.ts +3 -0
- package/dist/compiler/transformers/legacy-props.d.ts +3 -0
- package/dist/compiler/transformers/remove-static-meta-properties.d.ts +2 -0
- package/dist/compiler/transformers/reserved-public-members.d.ts +3 -0
- package/dist/compiler/transformers/rindo-import-path.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/call-expression.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/class-methods.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/component.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/element-ref.d.ts +2 -0
- package/dist/compiler/transformers/static-to-meta/encapsulation.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/events.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/import.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/listeners.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/methods.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/props.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/states.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/string-literal.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/styles.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/vdom.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/visitor.d.ts +3 -0
- package/dist/compiler/transformers/static-to-meta/watchers.d.ts +3 -0
- package/dist/compiler/transformers/style-imports.d.ts +3 -0
- package/dist/compiler/transformers/transform-utils.d.ts +31 -0
- package/dist/compiler/transformers/update-component-class.d.ts +3 -0
- package/dist/compiler/transformers/update-rindo-core-import.d.ts +3 -0
- package/dist/compiler/transformers/watcher-meta-transform.d.ts +3 -0
- package/dist/compiler/transpile/compiler-options.d.ts +4 -0
- package/dist/compiler/transpile/transpile-app.d.ts +2 -0
- package/dist/compiler/transpile/transpile-module.d.ts +5 -0
- package/dist/compiler/transpile/transpile-service.d.ts +3 -0
- package/dist/compiler/transpile/transpile-to-es5-main.d.ts +2 -0
- package/dist/compiler/transpile/validate-types-main.d.ts +2 -0
- package/dist/compiler/types/generate-app-types.d.ts +2 -0
- package/dist/compiler/types/generate-component-types.d.ts +8 -0
- package/dist/compiler/types/generate-event-types.d.ts +2 -0
- package/dist/compiler/types/generate-method-types.d.ts +2 -0
- package/dist/compiler/types/generate-prop-types.d.ts +2 -0
- package/dist/compiler/types/generate-types.d.ts +2 -0
- package/dist/compiler/types/rindo-types.d.ts +3 -0
- package/dist/compiler/types/types-utils.d.ts +4 -0
- package/dist/compiler/types/update-import-refs.d.ts +11 -0
- package/dist/compiler/types/validate-package-json.d.ts +9 -0
- package/dist/declarations/assets.d.ts +17 -0
- package/dist/declarations/browser-compile.d.ts +47 -0
- package/dist/declarations/build-conditionals.d.ts +91 -0
- package/dist/declarations/build-events.d.ts +19 -0
- package/dist/declarations/build.d.ts +247 -0
- package/dist/declarations/cache.d.ts +11 -0
- package/dist/declarations/collection-manifest.d.ts +106 -0
- package/dist/declarations/collection.d.ts +139 -0
- package/dist/declarations/compiler.d.ts +53 -0
- package/dist/declarations/component-compiler-meta.d.ts +198 -0
- package/dist/declarations/component-constructor.d.ts +61 -0
- package/dist/declarations/component-interfaces.d.ts +123 -0
- package/dist/declarations/config.d.ts +409 -0
- package/dist/declarations/css-var-shim.d.ts +9 -0
- package/dist/declarations/decorators.d.ts +150 -0
- package/dist/declarations/dev-server.d.ts +135 -0
- package/dist/declarations/diagnostics.d.ts +21 -0
- package/dist/declarations/docs.d.ts +101 -0
- package/dist/declarations/entry.d.ts +28 -0
- package/dist/declarations/events.d.ts +13 -0
- package/dist/declarations/file-system.d.ts +91 -0
- package/dist/declarations/fs-watch.d.ts +15 -0
- package/dist/declarations/host-element.d.ts +53 -0
- package/dist/declarations/hydrate.d.ts +99 -0
- package/dist/declarations/in-memory-fs.d.ts +59 -0
- package/dist/declarations/index.d.ts +45 -0
- package/dist/declarations/jsdoc.d.ts +16 -0
- package/dist/declarations/jsx.d.ts +1050 -0
- package/dist/declarations/logger.d.ts +25 -0
- package/dist/declarations/minify-js.d.ts +11 -0
- package/dist/declarations/module.d.ts +35 -0
- package/dist/declarations/optimize-css.d.ts +12 -0
- package/dist/declarations/output-targets.d.ts +189 -0
- package/dist/declarations/plugin.d.ts +23 -0
- package/dist/declarations/prerender.d.ts +79 -0
- package/dist/declarations/render.d.ts +62 -0
- package/dist/declarations/runtime.d.ts +92 -0
- package/dist/declarations/screenshots.d.ts +192 -0
- package/dist/declarations/server.d.ts +19 -0
- package/dist/declarations/style.d.ts +35 -0
- package/dist/declarations/system.d.ts +174 -0
- package/dist/declarations/testing.d.ts +523 -0
- package/dist/declarations/transpile.d.ts +24 -0
- package/dist/declarations/types.d.ts +24 -0
- package/dist/declarations/vdom.d.ts +55 -0
- package/dist/declarations/worker.d.ts +33 -0
- package/dist/dev-server/content-type-db.json +1 -0
- package/dist/dev-server/index.js +887 -0
- package/dist/dev-server/static/app-error.css +257 -0
- package/dist/dev-server/static/dev-server-client.html +13 -0
- package/dist/dev-server/static/favicon.ico +0 -0
- package/dist/dev-server/templates/directory-index.html +132 -0
- package/dist/dev-server/templates/initial-load.html +160 -0
- package/dist/hydrate/index.d.ts +101 -0
- package/dist/hydrate/index.mjs +1281 -0
- package/dist/hydrate/platform.mjs +347 -0
- package/dist/index.d.ts +99 -0
- package/dist/index.js +1 -0
- package/dist/mock-doc/index.d.ts +851 -0
- package/dist/mock-doc/index.js +3982 -0
- package/dist/mock-doc/index.mjs +3954 -0
- package/dist/runtime/index.js +2576 -0
- package/dist/runtime/index.mjs +2521 -0
- package/dist/runtime/shadow-css-6ef31c68.js +386 -0
- package/dist/runtime/shadow-css-8fd1a9e4.js +388 -0
- package/dist/screenshot/connector-base.d.ts +42 -0
- package/dist/screenshot/connector-local.d.ts +7 -0
- package/dist/screenshot/index.d.ts +3 -0
- package/dist/screenshot/index.js +520 -0
- package/dist/screenshot/pixel-match.d.ts +1 -0
- package/dist/screenshot/screenshot-fs.d.ts +15 -0
- package/dist/sys/node/graceful-fs.js +975 -0
- package/dist/sys/node/index.js +33545 -0
- package/dist/sys/node/node-fetch.js +1779 -0
- package/dist/sys/node/open-in-editor.js +734 -0
- package/dist/sys/node/sys-worker.js +67035 -0
- package/dist/sys/node/visualstudio.vbs +82 -0
- package/dist/sys/node/websocket.js +3728 -0
- package/dist/sys/node/xdg-open +1066 -0
- package/dist/testing/build-conditionals.d.ts +4 -0
- package/dist/testing/build-conditionals.js +43 -0
- package/dist/testing/core.d.ts +35 -0
- package/dist/testing/core.js +52 -0
- package/dist/testing/index.d.ts +13 -0
- package/dist/testing/index.js +40511 -0
- package/dist/testing/jest/jest-config.d.ts +4 -0
- package/dist/testing/jest/jest-environment.d.ts +12 -0
- package/dist/testing/jest/jest-preprocessor.d.ts +10 -0
- package/dist/testing/jest/jest-runner.d.ts +5 -0
- package/dist/testing/jest/jest-screenshot.d.ts +2 -0
- package/dist/testing/jest/jest-serializer.d.ts +5 -0
- package/dist/testing/jest/jest-setup-test-framework.d.ts +1 -0
- package/dist/testing/matchers/attributes.d.ts +14 -0
- package/dist/testing/matchers/class-list.d.ts +12 -0
- package/dist/testing/matchers/events.d.ts +13 -0
- package/dist/testing/matchers/html.d.ts +12 -0
- package/dist/testing/matchers/index.d.ts +21 -0
- package/dist/testing/matchers/screenshot.d.ts +5 -0
- package/dist/testing/matchers/text.d.ts +4 -0
- package/dist/testing/mock-fetch.d.ts +46 -0
- package/dist/testing/mocks.d.ts +12 -0
- package/dist/testing/platform.d.ts +23 -0
- package/dist/testing/platform.js +321 -0
- package/dist/testing/puppeteer/puppeteer-browser.d.ts +6 -0
- package/dist/testing/puppeteer/puppeteer-declarations.d.ts +396 -0
- package/dist/testing/puppeteer/puppeteer-element.d.ts +65 -0
- package/dist/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
- package/dist/testing/puppeteer/puppeteer-events.d.ts +21 -0
- package/dist/testing/puppeteer/puppeteer-find.d.ts +5 -0
- package/dist/testing/puppeteer/puppeteer-page.d.ts +2 -0
- package/dist/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
- package/dist/testing/spec-page.d.ts +5 -0
- package/dist/testing/task-queue.d.ts +15 -0
- package/dist/testing/test-transpile.d.ts +5 -0
- package/dist/testing/testing-fs.d.ts +31 -0
- package/dist/testing/testing-logger.d.ts +23 -0
- package/dist/testing/testing-sys.d.ts +19 -0
- package/dist/testing/testing-utils.d.ts +5 -0
- package/dist/testing/testing.d.ts +12 -0
- package/dist/utils/index.js +1575 -0
- package/dist/utils/index.mjs +1511 -0
- package/internal/client/build-conditionals.mjs +82 -0
- package/internal/client/css-shim.rindo-client.mjs +656 -0
- package/internal/client/dom.rindo-client.mjs +137 -0
- package/internal/client/index.mjs +2859 -0
- package/internal/client/polyfills/core-js.js +10 -0
- package/internal/client/polyfills/css-shim.js +656 -0
- package/internal/client/polyfills/dom.js +146 -0
- package/internal/client/polyfills/es5-html-element.js +18 -0
- package/internal/client/polyfills/index.js +35 -0
- package/internal/client/polyfills/promise.js +9 -0
- package/internal/client/polyfills/system.js +6 -0
- package/internal/client/shadow-css.rindo-client.mjs +386 -0
- package/internal/images.d.ts +5 -0
- package/internal/index.d.ts +18 -0
- package/internal/index.js +1 -0
- package/internal/package.json +6 -0
- package/mock-doc/index.js +2 -0
- package/mock-doc/package.json +10 -0
- package/package.json +186 -0
- package/readme.md +174 -0
- package/runtime/package.json +5 -0
- package/screenshot/compare/assets/favicon.ico +0 -0
- package/screenshot/compare/assets/logo.png +0 -0
- package/screenshot/compare/build/app.css +1 -0
- package/screenshot/compare/build/app.esm.js +1 -0
- package/screenshot/compare/build/app.js +818 -0
- package/screenshot/compare/build/p-020f8d73.js +1 -0
- package/screenshot/compare/build/p-09qdknbg.system.entry.js +1 -0
- package/screenshot/compare/build/p-0a13mpsc.system.entry.js +1 -0
- package/screenshot/compare/build/p-113f7459.js +1 -0
- package/screenshot/compare/build/p-168ec2c4.system.js +1 -0
- package/screenshot/compare/build/p-2ab1fdf1.system.js +1 -0
- package/screenshot/compare/build/p-2pxcsgrj.entry.js +1 -0
- package/screenshot/compare/build/p-42fb7034.system.js +1 -0
- package/screenshot/compare/build/p-54d9d7c2.system.js +1 -0
- package/screenshot/compare/build/p-67c1f911.js +1 -0
- package/screenshot/compare/build/p-68613371.system.js +1 -0
- package/screenshot/compare/build/p-7dvsjpu0.entry.js +1 -0
- package/screenshot/compare/build/p-aa67fb06.js +1 -0
- package/screenshot/compare/build/p-aeb3cec1.system.js +1 -0
- package/screenshot/compare/build/p-b6e44a24.js +1 -0
- package/screenshot/compare/build/p-c1c25b8a.js +1 -0
- package/screenshot/compare/build/p-c9bopbjy.system.entry.js +1 -0
- package/screenshot/compare/build/p-c9iqz1pp.system.entry.js +1 -0
- package/screenshot/compare/build/p-dizjz8rg.entry.js +1 -0
- package/screenshot/compare/build/p-dnta0rwp.system.entry.js +1 -0
- package/screenshot/compare/build/p-e9670d22.system.js +1 -0
- package/screenshot/compare/build/p-efb0eac6.js +1 -0
- package/screenshot/compare/build/p-ei9jkpd0.system.entry.js +1 -0
- package/screenshot/compare/build/p-ejpsp3kx.js +1 -0
- package/screenshot/compare/build/p-ejwcppol.entry.js +1 -0
- package/screenshot/compare/build/p-f6612d5d.system.js +1 -0
- package/screenshot/compare/build/p-foiivsfc.css +1 -0
- package/screenshot/compare/build/p-gpjjyogx.entry.js +1 -0
- package/screenshot/compare/build/p-howklem2.system.entry.js +1 -0
- package/screenshot/compare/build/p-knv9wvoc.entry.js +1 -0
- package/screenshot/compare/build/p-nsqsfhhy.entry.js +1 -0
- package/screenshot/compare/build/p-ojt278pp.entry.js +1 -0
- package/screenshot/compare/build/p-oywass99.entry.js +1 -0
- package/screenshot/compare/build/p-q3ujhub6.entry.js +1 -0
- package/screenshot/compare/build/p-qw4xnmxv.entry.js +1 -0
- package/screenshot/compare/build/p-t1wvevhc.system.entry.js +1 -0
- package/screenshot/compare/build/p-tnjarrex.system.entry.js +1 -0
- package/screenshot/compare/build/p-vhfpd6kk.system.entry.js +1 -0
- package/screenshot/compare/build/p-vk6rhemd.system.entry.js +1 -0
- package/screenshot/compare/build/p-w6bnm16k.entry.js +1 -0
- package/screenshot/compare/build/p-xje6d7zl.system.entry.js +1 -0
- package/screenshot/compare/build/p-y5jlrcha.system.entry.js +1 -0
- package/screenshot/compare/build/p-yh170wkt.entry.js +1 -0
- package/screenshot/compare/host.config.json +15 -0
- package/screenshot/compare/index.html +1 -0
- package/screenshot/compare/manifest.json +13 -0
- package/screenshot/connector.js +3 -0
- package/screenshot/index.js +2 -0
- package/screenshot/local-connector.js +3 -0
- package/screenshot/package.json +13 -0
- package/screenshot/pixel-match.js +2660 -0
- package/sys/node/index.js +2 -0
- package/sys/node/package.json +5 -0
- package/testing/index.js +2 -0
- package/testing/jest-environment.js +3 -0
- package/testing/jest-preprocessor.js +3 -0
- package/testing/jest-preset.js +40 -0
- package/testing/jest-runner.js +3 -0
- package/testing/jest-setuptestframework.js +3 -0
- package/testing/jest.preprocessor.js +7 -0
- package/testing/package.json +6 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Diagnostic {
|
|
2
|
+
level: 'error' | 'warn' | 'info' | 'log' | 'debug';
|
|
3
|
+
type: string;
|
|
4
|
+
header?: string;
|
|
5
|
+
language?: string;
|
|
6
|
+
messageText: string;
|
|
7
|
+
debugText?: string;
|
|
8
|
+
code?: string;
|
|
9
|
+
absFilePath?: string;
|
|
10
|
+
relFilePath?: string;
|
|
11
|
+
lineNumber?: number;
|
|
12
|
+
columnNumber?: number;
|
|
13
|
+
lines?: PrintLine[];
|
|
14
|
+
}
|
|
15
|
+
export interface PrintLine {
|
|
16
|
+
lineIndex: number;
|
|
17
|
+
lineNumber: number;
|
|
18
|
+
text?: string;
|
|
19
|
+
errorCharStart: number;
|
|
20
|
+
errorLength?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export interface JsonDocs {
|
|
2
|
+
components: JsonDocsComponent[];
|
|
3
|
+
timestamp: string;
|
|
4
|
+
compiler: {
|
|
5
|
+
name: string;
|
|
6
|
+
version: string;
|
|
7
|
+
typescriptVersion: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface JsonDocsComponent {
|
|
11
|
+
dirPath?: string;
|
|
12
|
+
fileName?: string;
|
|
13
|
+
filePath?: string;
|
|
14
|
+
readmePath?: string;
|
|
15
|
+
usagesDir?: string;
|
|
16
|
+
encapsulation: 'shadow' | 'scoped' | 'none';
|
|
17
|
+
tag: string;
|
|
18
|
+
readme: string;
|
|
19
|
+
docs: string;
|
|
20
|
+
docsTags: JsonDocsTag[];
|
|
21
|
+
usage: JsonDocsUsage;
|
|
22
|
+
props: JsonDocsProp[];
|
|
23
|
+
methods: JsonDocsMethod[];
|
|
24
|
+
events: JsonDocsEvent[];
|
|
25
|
+
styles: JsonDocsStyle[];
|
|
26
|
+
slots: JsonDocsSlot[];
|
|
27
|
+
dependents: string[];
|
|
28
|
+
dependencies: string[];
|
|
29
|
+
dependencyGraph: JsonDocsDependencyGraph;
|
|
30
|
+
deprecation?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface JsonDocsDependencyGraph {
|
|
33
|
+
[tagName: string]: string[];
|
|
34
|
+
}
|
|
35
|
+
export interface JsonDocsTag {
|
|
36
|
+
name: string;
|
|
37
|
+
text?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface JsonDocsValue {
|
|
40
|
+
value?: string;
|
|
41
|
+
type: string;
|
|
42
|
+
}
|
|
43
|
+
export interface JsonDocsUsage {
|
|
44
|
+
[key: string]: string;
|
|
45
|
+
}
|
|
46
|
+
export interface JsonDocsProp {
|
|
47
|
+
name: string;
|
|
48
|
+
type: string;
|
|
49
|
+
mutable: boolean;
|
|
50
|
+
attr?: string;
|
|
51
|
+
reflectToAttr: boolean;
|
|
52
|
+
docs: string;
|
|
53
|
+
docsTags: JsonDocsTag[];
|
|
54
|
+
default: string;
|
|
55
|
+
deprecation?: string;
|
|
56
|
+
values: JsonDocsValue[];
|
|
57
|
+
optional: boolean;
|
|
58
|
+
required: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface JsonDocsMethod {
|
|
61
|
+
name: string;
|
|
62
|
+
docs: string;
|
|
63
|
+
docsTags: JsonDocsTag[];
|
|
64
|
+
deprecation?: string;
|
|
65
|
+
signature: string;
|
|
66
|
+
returns: JsonDocsMethodReturn;
|
|
67
|
+
parameters: JsonDocMethodParameter[];
|
|
68
|
+
}
|
|
69
|
+
export interface JsonDocsMethodReturn {
|
|
70
|
+
type: string;
|
|
71
|
+
docs: string;
|
|
72
|
+
}
|
|
73
|
+
export interface JsonDocMethodParameter {
|
|
74
|
+
name: string;
|
|
75
|
+
type: string;
|
|
76
|
+
docs: string;
|
|
77
|
+
}
|
|
78
|
+
export interface JsonDocsEvent {
|
|
79
|
+
event: string;
|
|
80
|
+
bubbles: boolean;
|
|
81
|
+
cancelable: boolean;
|
|
82
|
+
composed: boolean;
|
|
83
|
+
docs: string;
|
|
84
|
+
docsTags: JsonDocsTag[];
|
|
85
|
+
deprecation?: string;
|
|
86
|
+
detail: string;
|
|
87
|
+
}
|
|
88
|
+
export interface JsonDocsStyle {
|
|
89
|
+
name: string;
|
|
90
|
+
docs: string;
|
|
91
|
+
annotation: string;
|
|
92
|
+
}
|
|
93
|
+
export interface JsonDocsSlot {
|
|
94
|
+
name: string;
|
|
95
|
+
docs: string;
|
|
96
|
+
}
|
|
97
|
+
export interface StyleDoc {
|
|
98
|
+
name: string;
|
|
99
|
+
docs: string;
|
|
100
|
+
annotation: 'prop';
|
|
101
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentCompilerMeta } from './component-compiler-meta';
|
|
2
|
+
export interface EntryModule {
|
|
3
|
+
entryKey?: string;
|
|
4
|
+
dependencies?: string[];
|
|
5
|
+
cmps: ComponentCompilerMeta[];
|
|
6
|
+
modeNames?: string[];
|
|
7
|
+
entryBundles?: EntryBundle[];
|
|
8
|
+
}
|
|
9
|
+
export interface EntryBundle {
|
|
10
|
+
fileName: string;
|
|
11
|
+
text: string;
|
|
12
|
+
outputs: string[];
|
|
13
|
+
modeName: string;
|
|
14
|
+
isScopedStyles: boolean;
|
|
15
|
+
sourceTarget: string;
|
|
16
|
+
}
|
|
17
|
+
export interface EntryComponent {
|
|
18
|
+
tag: string;
|
|
19
|
+
dependencyOf?: string[];
|
|
20
|
+
}
|
|
21
|
+
export interface ComponentRef {
|
|
22
|
+
tag: string;
|
|
23
|
+
filePath: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ModuleGraph {
|
|
26
|
+
filePath: string;
|
|
27
|
+
importPaths: string[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ListenOptions } from './decorators';
|
|
2
|
+
export interface AddEventListener {
|
|
3
|
+
(elm: Element | Document | Window, eventName: string, cb: EventListenerCallback, opts?: ListenOptions): Function;
|
|
4
|
+
}
|
|
5
|
+
export interface EventListenerCallback {
|
|
6
|
+
(ev?: any): void;
|
|
7
|
+
}
|
|
8
|
+
export interface EventEmitterData<T = any> {
|
|
9
|
+
detail?: T;
|
|
10
|
+
bubbles?: boolean;
|
|
11
|
+
cancelable?: boolean;
|
|
12
|
+
composed?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export interface MakeDirectoryOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Indicates whether parent folders should be created.
|
|
4
|
+
* @default false
|
|
5
|
+
*/
|
|
6
|
+
recursive?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* A file mode. If a string is passed, it is parsed as an octal integer. If not specified
|
|
9
|
+
* @default 0o777.
|
|
10
|
+
*/
|
|
11
|
+
mode?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface FileSystem {
|
|
14
|
+
access(path: string): Promise<void>;
|
|
15
|
+
copyFile(src: string, dest: string): Promise<void>;
|
|
16
|
+
createReadStream(filePath: string): any;
|
|
17
|
+
existsSync(filePath: string): boolean;
|
|
18
|
+
mkdir(dirPath: string, opts?: MakeDirectoryOptions): Promise<void>;
|
|
19
|
+
mkdirSync(dirPath: string): void;
|
|
20
|
+
readdir(dirPath: string): Promise<string[]>;
|
|
21
|
+
readdirSync(dirPath: string): string[];
|
|
22
|
+
readFile(filePath: string, format?: string): Promise<string>;
|
|
23
|
+
readFileSync(filePath: string, format?: string): string;
|
|
24
|
+
rmdir(dirPath: string): Promise<void>;
|
|
25
|
+
stat(path: string): Promise<FsStats>;
|
|
26
|
+
statSync(path: string): FsStats;
|
|
27
|
+
unlink(filePath: string): Promise<void>;
|
|
28
|
+
writeFile(filePath: string, content: string, opts?: FsWriteOptions): Promise<void>;
|
|
29
|
+
writeFileSync(filePath: string, content: string, opts?: FsWriteOptions): void;
|
|
30
|
+
}
|
|
31
|
+
export interface FsStats {
|
|
32
|
+
isFile(): boolean;
|
|
33
|
+
isDirectory(): boolean;
|
|
34
|
+
isBlockDevice(): boolean;
|
|
35
|
+
isCharacterDevice(): boolean;
|
|
36
|
+
isSymbolicLink(): boolean;
|
|
37
|
+
isFIFO(): boolean;
|
|
38
|
+
isSocket(): boolean;
|
|
39
|
+
dev: number;
|
|
40
|
+
ino: number;
|
|
41
|
+
mode: number;
|
|
42
|
+
nlink: number;
|
|
43
|
+
uid: number;
|
|
44
|
+
gid: number;
|
|
45
|
+
rdev: number;
|
|
46
|
+
size: number;
|
|
47
|
+
blksize: number;
|
|
48
|
+
blocks: number;
|
|
49
|
+
atime: Date;
|
|
50
|
+
mtime: Date;
|
|
51
|
+
ctime: Date;
|
|
52
|
+
birthtime: Date;
|
|
53
|
+
}
|
|
54
|
+
export interface FsReadOptions {
|
|
55
|
+
useCache?: boolean;
|
|
56
|
+
setHash?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface FsReaddirOptions {
|
|
59
|
+
inMemoryOnly?: boolean;
|
|
60
|
+
recursive?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface FsReaddirItem {
|
|
63
|
+
absPath: string;
|
|
64
|
+
relPath: string;
|
|
65
|
+
isDirectory: boolean;
|
|
66
|
+
isFile: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface FsWriteOptions {
|
|
69
|
+
inMemoryOnly?: boolean;
|
|
70
|
+
clearFileCache?: boolean;
|
|
71
|
+
immediateWrite?: boolean;
|
|
72
|
+
useCache?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface FsWriteResults {
|
|
75
|
+
changedContent: boolean;
|
|
76
|
+
queuedWrite: boolean;
|
|
77
|
+
ignored: boolean;
|
|
78
|
+
}
|
|
79
|
+
export declare type FsItems = Map<string, FsItem>;
|
|
80
|
+
export interface FsItem {
|
|
81
|
+
fileText: string;
|
|
82
|
+
isFile: boolean;
|
|
83
|
+
isDirectory: boolean;
|
|
84
|
+
size: number;
|
|
85
|
+
mtimeMs: number;
|
|
86
|
+
exists: boolean;
|
|
87
|
+
queueCopyFileToDest: string;
|
|
88
|
+
queueWriteToDisk: boolean;
|
|
89
|
+
queueDeleteFromDisk?: boolean;
|
|
90
|
+
useCache: boolean;
|
|
91
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface FsWatchResults {
|
|
2
|
+
dirsAdded: string[];
|
|
3
|
+
dirsDeleted: string[];
|
|
4
|
+
filesUpdated: string[];
|
|
5
|
+
filesAdded: string[];
|
|
6
|
+
filesDeleted: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface FsWatcher {
|
|
9
|
+
addFile(path: string): Promise<boolean>;
|
|
10
|
+
addDirectory(path: string): Promise<boolean>;
|
|
11
|
+
close(): void;
|
|
12
|
+
}
|
|
13
|
+
export interface FsWatcherItem {
|
|
14
|
+
close(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { RenderNode } from './render';
|
|
2
|
+
export interface HostElement extends HTMLElement {
|
|
3
|
+
connectedCallback?: () => void;
|
|
4
|
+
attributeChangedCallback?: (attribName: string, oldVal: string, newVal: string, namespace: string) => void;
|
|
5
|
+
disconnectedCallback?: () => void;
|
|
6
|
+
host?: Element;
|
|
7
|
+
forceUpdate?: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* Unique rindo id for this element
|
|
10
|
+
*/
|
|
11
|
+
['s-id']?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Content Reference:
|
|
14
|
+
* Reference to the HTML Comment that's placed inside of the
|
|
15
|
+
* host element's original content. This comment is used to
|
|
16
|
+
* always represent where host element's light dom is.
|
|
17
|
+
*/
|
|
18
|
+
['s-cr']?: RenderNode;
|
|
19
|
+
/**
|
|
20
|
+
* Lifecycle ready
|
|
21
|
+
*/
|
|
22
|
+
['s-lr']?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* On Render Callbacks:
|
|
25
|
+
* Array of callbacks to fire off after it has rendered.
|
|
26
|
+
*/
|
|
27
|
+
['s-rc']?: (() => void)[];
|
|
28
|
+
/**
|
|
29
|
+
* Scope Id
|
|
30
|
+
* The scope id of this component when using scoped css encapsulation
|
|
31
|
+
* or using shadow dom but the browser doesn't support it
|
|
32
|
+
*/
|
|
33
|
+
['s-sc']?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Hot Module Replacement, dev mode only
|
|
36
|
+
*/
|
|
37
|
+
['s-hmr']?: (versionId: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback method for when HMR finishes
|
|
40
|
+
*/
|
|
41
|
+
['s-hmr-load']?: () => void;
|
|
42
|
+
['s-p']?: Promise<void>[];
|
|
43
|
+
componentOnReady?: () => Promise<this>;
|
|
44
|
+
}
|
|
45
|
+
export interface CustomElementsDefineOptions {
|
|
46
|
+
exclude?: string[];
|
|
47
|
+
resourcesUrl?: string;
|
|
48
|
+
syncQueue?: boolean;
|
|
49
|
+
jmp?: (c: Function) => any;
|
|
50
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
51
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
52
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export interface RenderToStringOptions extends SerializeDocumentOptions {
|
|
2
|
+
afterHydrate?(document: any): any | Promise<any>;
|
|
3
|
+
beforeHydrate?(document: any): any | Promise<any>;
|
|
4
|
+
}
|
|
5
|
+
export interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
6
|
+
approximateLineWidth?: number;
|
|
7
|
+
prettyHtml?: boolean;
|
|
8
|
+
removeAttributeQuotes?: boolean;
|
|
9
|
+
removeBooleanAttributeQuotes?: boolean;
|
|
10
|
+
removeEmptyAttributes?: boolean;
|
|
11
|
+
removeHtmlComments?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface HydrateDocumentOptions {
|
|
14
|
+
canonicalUrl?: string;
|
|
15
|
+
constrainTimeouts?: boolean;
|
|
16
|
+
clientHydrateAnnotations?: boolean;
|
|
17
|
+
cookie?: string;
|
|
18
|
+
direction?: string;
|
|
19
|
+
excludeComponents?: string[];
|
|
20
|
+
language?: string;
|
|
21
|
+
maxHydrateCount?: number;
|
|
22
|
+
referrer?: string;
|
|
23
|
+
removeScripts?: boolean;
|
|
24
|
+
removeUnusedStyles?: boolean;
|
|
25
|
+
resourcesUrl?: string;
|
|
26
|
+
timeout?: number;
|
|
27
|
+
title?: string;
|
|
28
|
+
url?: string;
|
|
29
|
+
userAgent?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface HydrateFactoryOptions extends RenderToStringOptions {
|
|
32
|
+
hasTimedOut: boolean;
|
|
33
|
+
serializeToHtml: boolean;
|
|
34
|
+
destroyWindow: boolean;
|
|
35
|
+
destroyDocument: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface HydrateResults {
|
|
38
|
+
diagnostics: HydrateDiagnostic[];
|
|
39
|
+
url: string;
|
|
40
|
+
host: string;
|
|
41
|
+
hostname: string;
|
|
42
|
+
href: string;
|
|
43
|
+
port: string;
|
|
44
|
+
pathname: string;
|
|
45
|
+
search: string;
|
|
46
|
+
hash: string;
|
|
47
|
+
html: string;
|
|
48
|
+
components: HydrateComponent[];
|
|
49
|
+
anchors: HydrateAnchorElement[];
|
|
50
|
+
styles: HydrateStyleElement[];
|
|
51
|
+
scripts: HydrateScriptElement[];
|
|
52
|
+
imgs: HydrateImgElement[];
|
|
53
|
+
title: string;
|
|
54
|
+
hydratedCount: number;
|
|
55
|
+
httpStatus?: number;
|
|
56
|
+
}
|
|
57
|
+
export interface HydrateComponent {
|
|
58
|
+
tag: string;
|
|
59
|
+
mode: string;
|
|
60
|
+
count: number;
|
|
61
|
+
depth: number;
|
|
62
|
+
}
|
|
63
|
+
export interface HydrateElement {
|
|
64
|
+
[attrName: string]: string | undefined;
|
|
65
|
+
}
|
|
66
|
+
export interface HydrateAnchorElement extends HydrateElement {
|
|
67
|
+
href?: string;
|
|
68
|
+
target?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface HydrateStyleElement extends HydrateElement {
|
|
71
|
+
href?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface HydrateScriptElement extends HydrateElement {
|
|
74
|
+
src?: string;
|
|
75
|
+
type?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface HydrateImgElement extends HydrateElement {
|
|
78
|
+
src?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface HydrateDiagnostic {
|
|
81
|
+
level: string | any;
|
|
82
|
+
type: string | any;
|
|
83
|
+
header?: string;
|
|
84
|
+
language?: string;
|
|
85
|
+
messageText: string;
|
|
86
|
+
debugText?: string;
|
|
87
|
+
code?: string;
|
|
88
|
+
absFilePath?: string;
|
|
89
|
+
relFilePath?: string;
|
|
90
|
+
lineNumber?: number;
|
|
91
|
+
columnNumber?: number;
|
|
92
|
+
lines?: {
|
|
93
|
+
lineIndex: number;
|
|
94
|
+
lineNumber: number;
|
|
95
|
+
text?: string;
|
|
96
|
+
errorCharStart: number;
|
|
97
|
+
errorLength?: number;
|
|
98
|
+
}[];
|
|
99
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { FileSystem, FsItem, FsReadOptions, FsReaddirItem, FsReaddirOptions, FsWriteOptions, FsWriteResults } from './file-system';
|
|
2
|
+
export interface InMemoryFileSystem {
|
|
3
|
+
disk: FileSystem;
|
|
4
|
+
accessData(filePath: string): Promise<{
|
|
5
|
+
exists: boolean;
|
|
6
|
+
isDirectory: boolean;
|
|
7
|
+
isFile: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
access(filePath: string): Promise<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* Synchronous!!! Do not use!!!
|
|
12
|
+
* (Only typescript transpiling is allowed to use)
|
|
13
|
+
* @param filePath
|
|
14
|
+
*/
|
|
15
|
+
accessSync(filePath: string): boolean;
|
|
16
|
+
copyFile(srcFile: string, dest: string): Promise<void>;
|
|
17
|
+
emptyDir(dirPath: string): Promise<void>;
|
|
18
|
+
readdir(dirPath: string, opts?: FsReaddirOptions): Promise<FsReaddirItem[]>;
|
|
19
|
+
readFile(filePath: string, opts?: FsReadOptions): Promise<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Synchronous!!! Do not use!!!
|
|
22
|
+
* (Only typescript transpiling is allowed to use)
|
|
23
|
+
* @param filePath
|
|
24
|
+
*/
|
|
25
|
+
readFileSync(filePath: string, opts?: FsReadOptions): string;
|
|
26
|
+
remove(itemPath: string): Promise<void>;
|
|
27
|
+
stat(itemPath: string): Promise<{
|
|
28
|
+
isFile: boolean;
|
|
29
|
+
isDirectory: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
/**
|
|
32
|
+
* Synchronous!!! Do not use!!!
|
|
33
|
+
* (Only typescript transpiling is allowed to use)
|
|
34
|
+
* @param itemPath
|
|
35
|
+
*/
|
|
36
|
+
statSync(itemPath: string): {
|
|
37
|
+
isFile: boolean;
|
|
38
|
+
isDirectory: boolean;
|
|
39
|
+
};
|
|
40
|
+
writeFile(filePath: string, content: string, opts?: FsWriteOptions): Promise<FsWriteResults>;
|
|
41
|
+
writeFiles(files: {
|
|
42
|
+
[filePath: string]: string;
|
|
43
|
+
}, opts?: FsWriteOptions): Promise<FsWriteResults[]>;
|
|
44
|
+
commit(): Promise<{
|
|
45
|
+
filesWritten: string[];
|
|
46
|
+
filesDeleted: string[];
|
|
47
|
+
filesCopied: string[][];
|
|
48
|
+
dirsDeleted: string[];
|
|
49
|
+
dirsAdded: string[];
|
|
50
|
+
}>;
|
|
51
|
+
cancelDeleteFilesFromDisk(filePaths: string[]): void;
|
|
52
|
+
cancelDeleteDirectoriesFromDisk(filePaths: string[]): void;
|
|
53
|
+
clearDirCache(dirPath: string): void;
|
|
54
|
+
clearFileCache(filePath: string): void;
|
|
55
|
+
getItem(itemPath: string): FsItem;
|
|
56
|
+
clearCache(): void;
|
|
57
|
+
readonly keys: string[];
|
|
58
|
+
getMemoryStats(): string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export * from './assets';
|
|
2
|
+
export * from './browser-compile';
|
|
3
|
+
export * from './build';
|
|
4
|
+
export * from './build-conditionals';
|
|
5
|
+
export * from './build-events';
|
|
6
|
+
export * from './cache';
|
|
7
|
+
export * from './css-var-shim';
|
|
8
|
+
export * from './collection';
|
|
9
|
+
export * from './collection-manifest';
|
|
10
|
+
export * from './compiler';
|
|
11
|
+
export * from './component-compiler-meta';
|
|
12
|
+
export * from './component-constructor';
|
|
13
|
+
export * from './component-interfaces';
|
|
14
|
+
export * from './config';
|
|
15
|
+
export * from './decorators';
|
|
16
|
+
export * from './dev-server';
|
|
17
|
+
export * from './diagnostics';
|
|
18
|
+
export * from './docs';
|
|
19
|
+
export * from './entry';
|
|
20
|
+
export * from './events';
|
|
21
|
+
export * from './file-system';
|
|
22
|
+
export * from './fs-watch';
|
|
23
|
+
export * from './host-element';
|
|
24
|
+
export * from './hydrate';
|
|
25
|
+
export * from './in-memory-fs';
|
|
26
|
+
export * from './jsdoc';
|
|
27
|
+
export * from './jsx';
|
|
28
|
+
export * from './logger';
|
|
29
|
+
export * from './minify-js';
|
|
30
|
+
export * from './module';
|
|
31
|
+
export * from './optimize-css';
|
|
32
|
+
export * from './output-targets';
|
|
33
|
+
export * from './plugin';
|
|
34
|
+
export * from './prerender';
|
|
35
|
+
export * from './render';
|
|
36
|
+
export * from './runtime';
|
|
37
|
+
export * from './screenshots';
|
|
38
|
+
export * from './server';
|
|
39
|
+
export * from './style';
|
|
40
|
+
export * from './system';
|
|
41
|
+
export * from './testing';
|
|
42
|
+
export * from './transpile';
|
|
43
|
+
export * from './types';
|
|
44
|
+
export * from './vdom';
|
|
45
|
+
export * from './worker';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface JsDoc {
|
|
2
|
+
name: string;
|
|
3
|
+
documentation: string;
|
|
4
|
+
type: string;
|
|
5
|
+
tags: JSDocTagInfo[];
|
|
6
|
+
default?: string;
|
|
7
|
+
parameters?: JsDoc[];
|
|
8
|
+
returns?: {
|
|
9
|
+
type: string;
|
|
10
|
+
documentation: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface JSDocTagInfo {
|
|
14
|
+
name: string;
|
|
15
|
+
text?: string;
|
|
16
|
+
}
|