@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.
- package/cli/config-flags.d.ts +16 -16
- package/cli/index.cjs +6 -4
- package/cli/index.js +6 -4
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +434 -251
- package/compiler/lib.dom.iterable.d.ts +7 -13
- package/compiler/lib.es2015.collection.d.ts +62 -1
- package/compiler/lib.es2015.promise.d.ts +9 -4
- package/compiler/lib.es2015.proxy.d.ts +91 -2
- package/compiler/lib.es2015.reflect.d.ts +25 -2
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2017.intl.d.ts +16 -1
- package/compiler/lib.es2019.d.ts +1 -0
- package/compiler/lib.es2019.intl.d.ts +25 -0
- package/compiler/lib.es2020.intl.d.ts +31 -6
- package/compiler/lib.es2021.intl.d.ts +11 -3
- package/compiler/lib.es2022.d.ts +1 -0
- package/compiler/lib.es2022.error.d.ts +2 -2
- package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
- package/compiler/lib.es5.d.ts +39 -14
- package/compiler/lib.esnext.intl.d.ts +5 -1
- package/compiler/lib.webworker.d.ts +318 -55
- package/compiler/lib.webworker.iterable.d.ts +11 -3
- package/compiler/package.json +1 -1
- package/compiler/stencil.d.ts +1 -23
- package/compiler/stencil.js +12597 -11461
- package/compiler/stencil.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +3 -3
- package/compiler/transpile.d.ts +32 -0
- package/dependencies.json +3 -1
- package/dev-server/client/app-error.d.ts +1 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +2 -2
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/polyfills/css-shim.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +2 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +4 -4
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +38 -37
- package/internal/stencil-public-compiler.d.ts +27 -27
- package/internal/stencil-public-runtime.d.ts +3 -3
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.d.ts +2 -2
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +8 -8
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +1 -1
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +31 -44
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +613 -420
- package/testing/jest/jest-preprocessor.d.ts +3 -3
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +4 -4
- package/testing/puppeteer/puppeteer-element.d.ts +3 -3
- package/testing/testing-utils.d.ts +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
type Jest26CacheKeyOptions = {
|
|
2
2
|
instrument: boolean;
|
|
3
3
|
rootDir: string;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type Jest26Config = {
|
|
6
6
|
instrument: boolean;
|
|
7
7
|
rootDir: string;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type Jest27TransformOptions = {
|
|
10
10
|
config: Jest26Config;
|
|
11
11
|
};
|
|
12
12
|
export declare const jestPreprocessor: {
|
package/testing/package.json
CHANGED
|
@@ -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
|
|
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
|
-
|
|
18
|
-
|
|
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
|
|
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<
|
|
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<
|
|
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<
|
|
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
|
-
|
|
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
|