@stencil/core 2.17.4 → 2.18.1
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/index.cjs +285 -220
- package/cli/index.d.ts +1 -0
- package/cli/index.js +285 -220
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +620 -89
- package/compiler/lib.dom.iterable.d.ts +27 -3
- package/compiler/lib.es2015.core.d.ts +3 -3
- package/compiler/lib.es2015.iterable.d.ts +2 -1
- package/compiler/lib.es2015.reflect.d.ts +1 -1
- package/compiler/lib.es2020.bigint.d.ts +7 -5
- package/compiler/lib.es2020.d.ts +2 -0
- package/compiler/lib.es2020.date.d.ts +44 -0
- package/compiler/lib.es2020.intl.d.ts +51 -11
- package/compiler/lib.es2020.number.d.ts +30 -0
- package/compiler/lib.es2021.intl.d.ts +106 -4
- package/compiler/lib.es2022.array.d.ts +123 -0
- package/compiler/lib.es2022.d.ts +26 -0
- package/compiler/lib.es2022.error.d.ts +75 -0
- package/compiler/lib.es2022.full.d.ts +25 -0
- package/compiler/lib.es2022.intl.d.ts +111 -0
- package/compiler/lib.es2022.object.d.ts +28 -0
- package/compiler/lib.es2022.string.d.ts +27 -0
- package/compiler/lib.es5.d.ts +25 -19
- package/compiler/lib.esnext.d.ts +1 -1
- package/compiler/lib.esnext.intl.d.ts +4 -1
- package/compiler/lib.webworker.d.ts +236 -40
- package/compiler/lib.webworker.iterable.d.ts +10 -3
- package/compiler/package.json +1 -1
- package/compiler/stencil.d.ts +2 -2
- package/compiler/stencil.js +47263 -45624
- package/compiler/stencil.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +218 -0
- package/dependencies.json +10 -1
- package/dev-server/client/index.d.ts +2 -2
- package/dev-server/client/index.js +241 -241
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.d.ts +1 -1
- package/dev-server/index.js +2 -2
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +1198 -1167
- 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 +1022 -824
- 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 +119 -119
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/hydrate/runner.js +100 -100
- package/internal/package.json +1 -1
- package/internal/stencil-core/index.d.ts +8 -10
- package/internal/stencil-private.d.ts +77 -138
- package/internal/stencil-public-compiler.d.ts +44 -10
- package/internal/stencil-public-runtime.d.ts +15 -4
- package/internal/testing/index.js +148 -148
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +534 -518
- package/mock-doc/index.d.ts +13 -12
- package/mock-doc/index.js +534 -518
- package/mock-doc/package.json +1 -1
- package/package.json +23 -32
- package/readme.md +27 -33
- package/screenshot/index.d.ts +1 -1
- package/screenshot/index.js +13 -13
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +983 -849
- package/sys/node/glob.js +1 -1
- package/sys/node/index.d.ts +2 -0
- package/sys/node/index.js +374 -373
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +6 -6
- package/testing/index.js +427 -441
- package/testing/jest/jest-config.d.ts +1 -1
- package/testing/matchers/index.d.ts +3 -3
- package/testing/mock-fetch.d.ts +1 -1
- package/testing/mocks.d.ts +2 -2
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-element.d.ts +2 -2
- package/testing/puppeteer/puppeteer-events.d.ts +1 -1
- package/testing/testing-logger.d.ts +1 -1
- package/testing/testing-utils.d.ts +5 -4
- package/testing/testing.d.ts +1 -1
package/mock-doc/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare class MockAttributeMap {
|
|
|
7
7
|
setNamedItem(attr: MockAttr): void;
|
|
8
8
|
setNamedItemNS(attr: MockAttr): void;
|
|
9
9
|
getNamedItem(attrName: string): MockAttr;
|
|
10
|
-
getNamedItemNS(namespaceURI: string, attrName: string): MockAttr;
|
|
10
|
+
getNamedItemNS(namespaceURI: string | null, attrName: string): MockAttr;
|
|
11
11
|
removeNamedItem(attr: MockAttr): void;
|
|
12
12
|
removeNamedItemNS(attr: MockAttr): void;
|
|
13
13
|
[Symbol.iterator](): {
|
|
@@ -20,7 +20,7 @@ declare class MockAttributeMap {
|
|
|
20
20
|
}
|
|
21
21
|
declare function cloneAttributes(srcAttrs: MockAttributeMap, sortByName?: boolean): MockAttributeMap;
|
|
22
22
|
declare class MockAttr {
|
|
23
|
-
constructor(attrName: string, attrValue: string, namespaceURI?: string);
|
|
23
|
+
constructor(attrName: string, attrValue: string, namespaceURI?: string | null);
|
|
24
24
|
get name(): string;
|
|
25
25
|
set name(value: string);
|
|
26
26
|
get value(): string;
|
|
@@ -108,7 +108,7 @@ declare class MockCustomElementRegistry implements CustomElementRegistry {
|
|
|
108
108
|
declare function createCustomElement(customElements: MockCustomElementRegistry, ownerDocument: any, tagName: string): any;
|
|
109
109
|
declare function connectNode(ownerDocument: any, node: MockNode): void;
|
|
110
110
|
declare function disconnectNode(node: MockNode): void;
|
|
111
|
-
declare function attributeChanged(node: MockNode, attrName: string, oldValue: string, newValue: string): void;
|
|
111
|
+
declare function attributeChanged(node: MockNode, attrName: string, oldValue: string | null, newValue: string | null): void;
|
|
112
112
|
declare function checkAttributeChanged(node: MockNode): boolean;
|
|
113
113
|
declare function dataset(elm: MockElement): any;
|
|
114
114
|
declare class MockDocumentFragment extends MockHTMLElement {
|
|
@@ -471,12 +471,12 @@ declare class MockNavigator {
|
|
|
471
471
|
userAgent: string;
|
|
472
472
|
}
|
|
473
473
|
declare class MockNode {
|
|
474
|
-
nodeName: string;
|
|
474
|
+
nodeName: string | null;
|
|
475
475
|
nodeType: number;
|
|
476
476
|
ownerDocument: any;
|
|
477
|
-
parentNode: MockNode;
|
|
477
|
+
parentNode: MockNode | null;
|
|
478
478
|
childNodes: MockNode[];
|
|
479
|
-
constructor(ownerDocument: any, nodeType: number, nodeName: string, nodeValue: string);
|
|
479
|
+
constructor(ownerDocument: any, nodeType: number, nodeName: string | null, nodeValue: string | null);
|
|
480
480
|
appendChild(newNode: MockNode): MockNode;
|
|
481
481
|
append(...items: (MockNode | string)[]): void;
|
|
482
482
|
prepend(...items: (MockNode | string)[]): void;
|
|
@@ -514,8 +514,8 @@ declare class MockNodeList {
|
|
|
514
514
|
constructor(ownerDocument: any, childNodes: MockNode[], length: number);
|
|
515
515
|
}
|
|
516
516
|
declare class MockElement extends MockNode {
|
|
517
|
-
namespaceURI: string;
|
|
518
|
-
constructor(ownerDocument: any, nodeName: string);
|
|
517
|
+
namespaceURI: string | null;
|
|
518
|
+
constructor(ownerDocument: any, nodeName: string | null);
|
|
519
519
|
addEventListener(type: string, handler: (ev?: any) => void): void;
|
|
520
520
|
attachShadow(_opts: ShadowRootInit): any;
|
|
521
521
|
blur(): void;
|
|
@@ -540,7 +540,7 @@ declare class MockElement extends MockNode {
|
|
|
540
540
|
preventScroll?: boolean;
|
|
541
541
|
}): void;
|
|
542
542
|
getAttribute(attrName: string): any;
|
|
543
|
-
getAttributeNS(namespaceURI: string, attrName: string): string;
|
|
543
|
+
getAttributeNS(namespaceURI: string | null, attrName: string): string;
|
|
544
544
|
getBoundingClientRect(): {
|
|
545
545
|
bottom: number;
|
|
546
546
|
height: number;
|
|
@@ -568,7 +568,7 @@ declare class MockElement extends MockNode {
|
|
|
568
568
|
insertAdjacentHTML(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', html: string): void;
|
|
569
569
|
insertAdjacentText(position: 'beforebegin' | 'afterbegin' | 'beforeend' | 'afterend', text: string): void;
|
|
570
570
|
hasAttribute(attrName: string): boolean;
|
|
571
|
-
hasAttributeNS(namespaceURI: string, name: string): boolean;
|
|
571
|
+
hasAttributeNS(namespaceURI: string | null, name: string): boolean;
|
|
572
572
|
get hidden(): boolean;
|
|
573
573
|
set hidden(isHidden: boolean);
|
|
574
574
|
get lang(): string;
|
|
@@ -583,10 +583,10 @@ declare class MockElement extends MockNode {
|
|
|
583
583
|
querySelector(selector: string): Element;
|
|
584
584
|
querySelectorAll(selector: string): Element[];
|
|
585
585
|
removeAttribute(attrName: string): void;
|
|
586
|
-
removeAttributeNS(namespaceURI: string, attrName: string): void;
|
|
586
|
+
removeAttributeNS(namespaceURI: string | null, attrName: string): void;
|
|
587
587
|
removeEventListener(type: string, handler: any): void;
|
|
588
588
|
setAttribute(attrName: string, value: any): void;
|
|
589
|
-
setAttributeNS(namespaceURI: string, attrName: string, value: any): void;
|
|
589
|
+
setAttributeNS(namespaceURI: string | null, attrName: string, value: any): void;
|
|
590
590
|
get style(): any;
|
|
591
591
|
set style(val: any);
|
|
592
592
|
get tabIndex(): number;
|
|
@@ -723,6 +723,7 @@ declare class MockDOMParser {
|
|
|
723
723
|
*/
|
|
724
724
|
declare class MockPerformance implements Performance {
|
|
725
725
|
timeOrigin: number;
|
|
726
|
+
eventCounts: EventCounts;
|
|
726
727
|
constructor();
|
|
727
728
|
addEventListener(): void;
|
|
728
729
|
clearMarks(): void;
|