@stencil/core 3.0.0-alpha.0 → 3.0.0-alpha.2

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 (73) hide show
  1. package/cli/config-flags.d.ts +16 -16
  2. package/cli/index.cjs +6 -4
  3. package/cli/index.js +6 -4
  4. package/cli/package.json +1 -1
  5. package/compiler/lib.dom.d.ts +434 -251
  6. package/compiler/lib.dom.iterable.d.ts +7 -13
  7. package/compiler/lib.es2015.collection.d.ts +62 -1
  8. package/compiler/lib.es2015.promise.d.ts +9 -4
  9. package/compiler/lib.es2015.proxy.d.ts +91 -2
  10. package/compiler/lib.es2015.reflect.d.ts +25 -2
  11. package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
  12. package/compiler/lib.es2017.intl.d.ts +16 -1
  13. package/compiler/lib.es2019.d.ts +1 -0
  14. package/compiler/lib.es2019.intl.d.ts +25 -0
  15. package/compiler/lib.es2020.intl.d.ts +31 -6
  16. package/compiler/lib.es2021.intl.d.ts +11 -3
  17. package/compiler/lib.es2022.d.ts +1 -0
  18. package/compiler/lib.es2022.error.d.ts +2 -2
  19. package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
  20. package/compiler/lib.es5.d.ts +39 -14
  21. package/compiler/lib.esnext.intl.d.ts +5 -1
  22. package/compiler/lib.webworker.d.ts +318 -55
  23. package/compiler/lib.webworker.iterable.d.ts +11 -3
  24. package/compiler/package.json +1 -1
  25. package/compiler/stencil.d.ts +1 -23
  26. package/compiler/stencil.js +12597 -11461
  27. package/compiler/stencil.min.js +2 -2
  28. package/compiler/sys/in-memory-fs.d.ts +3 -3
  29. package/compiler/transpile.d.ts +32 -0
  30. package/dependencies.json +3 -1
  31. package/dev-server/client/app-error.d.ts +1 -1
  32. package/dev-server/client/index.js +1 -1
  33. package/dev-server/client/package.json +1 -1
  34. package/dev-server/connector.html +2 -2
  35. package/dev-server/index.js +1 -1
  36. package/dev-server/open-in-editor-api.js +1 -1
  37. package/dev-server/package.json +1 -1
  38. package/dev-server/server-process.js +2 -2
  39. package/internal/app-data/package.json +1 -1
  40. package/internal/client/css-shim.js +2 -2
  41. package/internal/client/dom.js +1 -1
  42. package/internal/client/index.js +1 -1
  43. package/internal/client/package.json +1 -1
  44. package/internal/client/patch-browser.js +1 -1
  45. package/internal/client/patch-esm.js +1 -1
  46. package/internal/client/polyfills/css-shim.js +1 -1
  47. package/internal/client/shadow-css.js +1 -1
  48. package/internal/hydrate/index.js +2 -2
  49. package/internal/hydrate/package.json +1 -1
  50. package/internal/hydrate/runner.js +4 -4
  51. package/internal/package.json +1 -1
  52. package/internal/stencil-private.d.ts +38 -37
  53. package/internal/stencil-public-compiler.d.ts +27 -27
  54. package/internal/stencil-public-runtime.d.ts +3 -3
  55. package/internal/testing/package.json +1 -1
  56. package/mock-doc/index.cjs +1 -1
  57. package/mock-doc/index.d.ts +2 -2
  58. package/mock-doc/index.js +1 -1
  59. package/mock-doc/package.json +1 -1
  60. package/package.json +8 -8
  61. package/screenshot/package.json +1 -1
  62. package/sys/node/autoprefixer.js +1 -1
  63. package/sys/node/glob.js +1 -1
  64. package/sys/node/index.js +31 -44
  65. package/sys/node/package.json +1 -1
  66. package/sys/node/prompts.js +1 -1
  67. package/sys/node/worker.js +1 -1
  68. package/testing/index.js +613 -420
  69. package/testing/jest/jest-preprocessor.d.ts +3 -3
  70. package/testing/package.json +1 -1
  71. package/testing/puppeteer/puppeteer-declarations.d.ts +4 -4
  72. package/testing/puppeteer/puppeteer-element.d.ts +3 -3
  73. package/testing/testing-utils.d.ts +1 -1
@@ -1,12 +1,12 @@
1
- declare type Jest26CacheKeyOptions = {
1
+ type Jest26CacheKeyOptions = {
2
2
  instrument: boolean;
3
3
  rootDir: string;
4
4
  };
5
- declare type Jest26Config = {
5
+ type Jest26Config = {
6
6
  instrument: boolean;
7
7
  rootDir: string;
8
8
  };
9
- declare type Jest27TransformOptions = {
9
+ type Jest27TransformOptions = {
10
10
  config: Jest26Config;
11
11
  };
12
12
  export declare const jestPreprocessor: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "3.0.0-alpha.0",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -5,7 +5,7 @@ import type { ClickOptions, HTTPResponse, Page, ScreenshotOptions as PuppeteerSc
5
5
  * This type was once exported by Puppeteer, but has since moved to an object literal in (Puppeteer’s) native types.
6
6
  * Re-create it here as a named type to use across multiple Stencil-related testing files.
7
7
  */
8
- export declare type PageCloseOptions = {
8
+ export type PageCloseOptions = {
9
9
  runBeforeUnload?: boolean;
10
10
  };
11
11
  export interface NewE2EPageOptions extends WaitForOptions {
@@ -14,8 +14,8 @@ export interface NewE2EPageOptions extends WaitForOptions {
14
14
  failOnConsoleError?: boolean;
15
15
  failOnNetworkError?: boolean;
16
16
  }
17
- declare type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
18
- declare type PuppeteerPage = Omit<Page, 'bringToFront' | 'browser' | 'screenshot' | 'emulate' | 'emulateMedia' | 'frames' | 'goBack' | 'goForward' | 'isClosed' | 'mainFrame' | 'pdf' | 'reload' | 'target' | 'title' | 'viewport' | 'waitForNavigation' | 'screenshot' | 'workers' | 'addListener' | 'prependListener' | 'prependOnceListener' | 'removeAllListeners' | 'setMaxListeners' | 'getMaxListeners' | 'listeners' | 'rawListeners' | 'emit' | 'eventNames' | 'listenerCount' | '$x' | 'waitForXPath'>;
17
+ type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
18
+ type PuppeteerPage = Omit<Page, 'bringToFront' | 'browser' | 'screenshot' | 'emulate' | 'emulateMedia' | 'frames' | 'goBack' | 'goForward' | 'isClosed' | 'mainFrame' | 'pdf' | 'reload' | 'target' | 'title' | 'viewport' | 'waitForNavigation' | 'screenshot' | 'workers' | 'addListener' | 'prependListener' | 'prependOnceListener' | 'removeAllListeners' | 'setMaxListeners' | 'getMaxListeners' | 'listeners' | 'rawListeners' | 'emit' | 'eventNames' | 'listenerCount' | '$x' | 'waitForXPath'>;
19
19
  export interface PageDiagnostic {
20
20
  type: 'error' | 'pageerror' | 'requestfailed';
21
21
  message?: string;
@@ -375,7 +375,7 @@ export interface E2EElementInternal extends E2EElement {
375
375
  e2eRunActions(): Promise<unknown>;
376
376
  e2eSync(): Promise<void>;
377
377
  }
378
- export declare type FindSelector = string | FindSelectorOptions;
378
+ export type FindSelector = string | FindSelectorOptions;
379
379
  export interface FindSelectorOptions {
380
380
  /**
381
381
  * Finds an element with text content matching this
@@ -11,7 +11,7 @@ export declare class E2EElement extends MockHTMLElement implements pd.E2EElement
11
11
  constructor(_page: pd.E2EPageInternal, _elmHandle: puppeteer.ElementHandle);
12
12
  find(selector: string): Promise<E2EElement>;
13
13
  findAll(selector: string): Promise<E2EElement[]>;
14
- callMethod(methodName: string, ...methodArgs: any[]): Promise<unknown>;
14
+ callMethod(methodName: string, ...methodArgs: any[]): Promise<any>;
15
15
  triggerEvent(eventName: string, eventInitDict?: EventInitDict): void;
16
16
  spyOnEvent(eventName: string): Promise<EventSpy>;
17
17
  click(options?: puppeteer.ClickOptions): Promise<void>;
@@ -30,7 +30,7 @@ export declare class E2EElement extends MockHTMLElement implements pd.E2EElement
30
30
  type(text: string, options?: {
31
31
  delay: number;
32
32
  }): Promise<void>;
33
- getProperty(propertyName: string): Promise<unknown>;
33
+ getProperty(propertyName: string): Promise<any>;
34
34
  setProperty(propertyName: string, value: any): void;
35
35
  getAttribute(name: string): any;
36
36
  setAttribute(name: string, value: any): void;
@@ -58,7 +58,7 @@ export declare class E2EElement extends MockHTMLElement implements pd.E2EElement
58
58
  get title(): string;
59
59
  set title(value: string);
60
60
  getComputedStyle(pseudoElt?: string | null): Promise<any>;
61
- e2eRunActions(): Promise<unknown>;
61
+ e2eRunActions(): Promise<any>;
62
62
  e2eSync(): Promise<void>;
63
63
  private _validate;
64
64
  e2eDispose(): Promise<void>;
@@ -65,7 +65,7 @@ interface ConsoleMocker {
65
65
  * as its argument and returns a `Promise`, the value of which is returns by `withSilentWarn`
66
66
  * as well.
67
67
  */
68
- declare type SilentWarnFunc<T> = (mock: jest.Mock<typeof console.warn>) => Promise<T>;
68
+ type SilentWarnFunc<T> = (mock: jest.Mock<typeof console.warn>) => Promise<T>;
69
69
  /**
70
70
  * Wrap a single callback with a silent `console.warn`. The callback passed in
71
71
  * receives the mocking function as an argument, so you can easily make assertions