@stencil/core 2.18.0 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/cli/index.cjs +275 -218
  2. package/cli/index.d.ts +3 -0
  3. package/cli/index.js +275 -218
  4. package/cli/package.json +1 -1
  5. package/compiler/package.json +1 -1
  6. package/compiler/stencil.d.ts +2 -2
  7. package/compiler/stencil.js +49510 -47947
  8. package/compiler/stencil.min.js +2 -2
  9. package/dependencies.json +1 -1
  10. package/dev-server/client/index.d.ts +2 -2
  11. package/dev-server/client/index.js +241 -241
  12. package/dev-server/client/package.json +1 -1
  13. package/dev-server/connector.html +3 -3
  14. package/dev-server/index.d.ts +1 -1
  15. package/dev-server/index.js +2 -2
  16. package/dev-server/package.json +1 -1
  17. package/dev-server/server-process.js +1230 -1199
  18. package/internal/app-data/package.json +1 -1
  19. package/internal/client/css-shim.js +2 -2
  20. package/internal/client/dom.js +1 -1
  21. package/internal/client/index.js +619 -601
  22. package/internal/client/package.json +1 -1
  23. package/internal/client/patch-browser.js +1 -1
  24. package/internal/client/patch-esm.js +1 -1
  25. package/internal/client/polyfills/css-shim.js +1 -1
  26. package/internal/client/shadow-css.js +1 -1
  27. package/internal/hydrate/index.js +119 -119
  28. package/internal/hydrate/package.json +1 -1
  29. package/internal/hydrate/runner.d.ts +1 -1
  30. package/internal/hydrate/runner.js +100 -100
  31. package/internal/package.json +1 -1
  32. package/internal/stencil-core/index.d.ts +8 -10
  33. package/internal/stencil-private.d.ts +104 -42
  34. package/internal/stencil-public-compiler.d.ts +12 -2
  35. package/internal/stencil-public-docs.d.ts +20 -0
  36. package/internal/stencil-public-runtime.d.ts +20 -4
  37. package/internal/testing/index.js +148 -148
  38. package/internal/testing/package.json +1 -1
  39. package/mock-doc/index.cjs +655 -645
  40. package/mock-doc/index.js +655 -645
  41. package/mock-doc/package.json +1 -1
  42. package/package.json +29 -37
  43. package/readme.md +27 -33
  44. package/screenshot/index.d.ts +1 -1
  45. package/screenshot/index.js +3 -3
  46. package/screenshot/package.json +1 -1
  47. package/screenshot/pixel-match.js +983 -849
  48. package/sys/node/autoprefixer.js +5 -5
  49. package/sys/node/glob.js +1 -1
  50. package/sys/node/graceful-fs.js +1 -1
  51. package/sys/node/index.d.ts +4 -0
  52. package/sys/node/index.js +373 -374
  53. package/sys/node/package.json +1 -1
  54. package/sys/node/prompts.js +1 -1
  55. package/sys/node/worker.js +1 -1
  56. package/testing/index.d.ts +6 -6
  57. package/testing/index.js +468 -467
  58. package/testing/jest/jest-config.d.ts +1 -1
  59. package/testing/matchers/index.d.ts +3 -3
  60. package/testing/mock-fetch.d.ts +1 -1
  61. package/testing/mocks.d.ts +2 -2
  62. package/testing/package.json +1 -1
  63. package/testing/puppeteer/puppeteer-element.d.ts +2 -2
  64. package/testing/puppeteer/puppeteer-events.d.ts +1 -1
  65. package/testing/testing-logger.d.ts +1 -1
  66. package/testing/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
1
- import type * as d from '@stencil/core/internal';
2
1
  import type { Config } from '@jest/types';
2
+ import type * as d from '@stencil/core/internal';
3
3
  /**
4
4
  * Builds the `argv` to be used when programmatically invoking the Jest CLI
5
5
  * @param config the Stencil config to use while generating Jest CLI arguments
@@ -1,9 +1,9 @@
1
1
  import { toEqualAttribute, toEqualAttributes, toHaveAttribute } from './attributes';
2
- import { toHaveReceivedEvent, toHaveReceivedEventDetail, toHaveReceivedEventTimes, toHaveFirstReceivedEventDetail, toHaveNthReceivedEventDetail } from './events';
3
- import { toEqualHtml, toEqualLightHtml } from './html';
4
- import { toEqualText } from './text';
5
2
  import { toHaveClass, toHaveClasses, toMatchClasses } from './class-list';
3
+ import { toHaveFirstReceivedEventDetail, toHaveNthReceivedEventDetail, toHaveReceivedEvent, toHaveReceivedEventDetail, toHaveReceivedEventTimes } from './events';
4
+ import { toEqualHtml, toEqualLightHtml } from './html';
6
5
  import { toMatchScreenshot } from './screenshot';
6
+ import { toEqualText } from './text';
7
7
  export declare const expectExtend: {
8
8
  toEqualAttribute: typeof toEqualAttribute;
9
9
  toEqualAttributes: typeof toEqualAttributes;
@@ -8,4 +8,4 @@ export declare const mockFetch: {
8
8
  reject(rsp?: MockResponse, url?: string): void;
9
9
  reset: typeof mockFetchReset;
10
10
  };
11
- export { MockHeaders, MockRequest, MockRequestInit, MockRequestInfo, MockResponse, MockResponseInit, } from '../mock-doc';
11
+ export { MockHeaders, MockRequest, MockRequestInfo, MockRequestInit, MockResponse, MockResponseInit, } from '../mock-doc';
@@ -1,6 +1,6 @@
1
- import type { BuildCtx, Cache, CompilerCtx, Config, LoadConfigInit, ValidatedConfig, Module, UnvalidatedConfig } from '@stencil/core/internal';
2
- import { TestingSystem } from './testing-sys';
1
+ import type { BuildCtx, Cache, CompilerCtx, Config, LoadConfigInit, Module, UnvalidatedConfig, ValidatedConfig } from '@stencil/core/internal';
3
2
  import { TestingLogger } from './testing-logger';
3
+ import { TestingSystem } from './testing-sys';
4
4
  /**
5
5
  * Creates a mock instance of an internal, validated Stencil configuration object
6
6
  * the caller
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "2.18.0",
3
+ "version": "2.19.0",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,8 +1,8 @@
1
1
  import type { EventInitDict } from '@stencil/core/internal';
2
- import type * as pd from './puppeteer-declarations';
2
+ import { MockHTMLElement } from '@stencil/core/mock-doc';
3
3
  import type * as puppeteer from 'puppeteer';
4
+ import type * as pd from './puppeteer-declarations';
4
5
  import { EventSpy } from './puppeteer-events';
5
- import { MockHTMLElement } from '@stencil/core/mock-doc';
6
6
  export declare class E2EElement extends MockHTMLElement implements pd.E2EElementInternal {
7
7
  private _page;
8
8
  private _elmHandle;
@@ -1,6 +1,6 @@
1
1
  import type { SerializedEvent } from '@stencil/core/internal';
2
- import type * as pd from './puppeteer-declarations';
3
2
  import type * as puppeteer from 'puppeteer';
3
+ import type * as pd from './puppeteer-declarations';
4
4
  export declare function initPageEvents(page: pd.E2EPageInternal): Promise<void>;
5
5
  export declare function waitForEvent(page: pd.E2EPageInternal, eventName: string, elementHandle: puppeteer.ElementHandle): Promise<any>;
6
6
  export declare class EventSpy implements EventSpy {
@@ -1,4 +1,4 @@
1
- import type { Diagnostic, Logger, LogLevel, LoggerTimeSpan } from '@stencil/core/internal';
1
+ import type { Diagnostic, Logger, LoggerTimeSpan, LogLevel } from '@stencil/core/internal';
2
2
  export declare class TestingLogger implements Logger {
3
3
  private isEnabled;
4
4
  setLevel(_level: LogLevel): void;
@@ -1,2 +1,2 @@
1
- import type { ValidatedConfig, Testing } from '@stencil/core/internal';
1
+ import type { Testing, ValidatedConfig } from '@stencil/core/internal';
2
2
  export declare const createTesting: (config: ValidatedConfig) => Promise<Testing>;