@stencil/core 2.17.0 → 2.17.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 +110 -0
- package/cli/index.cjs +675 -253
- package/cli/index.d.ts +3 -2
- package/cli/index.js +675 -253
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +676 -226
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +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/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 +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +11 -6
- 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/shadow-css.js +1 -1
- package/internal/hydrate/index.js +2 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +14 -4
- package/internal/stencil-public-compiler.d.ts +67 -48
- package/internal/testing/index.js +1 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +41 -3
- package/mock-doc/index.d.ts +15 -0
- package/mock-doc/index.js +41 -3
- package/mock-doc/package.json +1 -1
- package/package.json +2 -1
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +4 -4
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +1 -1
- package/testing/index.js +71 -40
- package/testing/jest/jest-config.d.ts +1 -1
- package/testing/jest/jest-runner.d.ts +3 -2
- package/testing/jest/jest-screenshot.d.ts +1 -1
- package/testing/mocks.d.ts +28 -2
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-browser.d.ts +2 -2
- package/testing/test/testing-utils.spec.d.ts +1 -0
- package/testing/testing-utils.d.ts +74 -2
- package/testing/testing.d.ts +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { JsonDocs } from './stencil-public-docs';
|
|
2
2
|
import type { PrerenderUrlResults } from '../internal';
|
|
3
|
+
import type { ConfigFlags } from '../cli/config-flags';
|
|
3
4
|
export * from './stencil-public-docs';
|
|
4
5
|
/**
|
|
5
6
|
* https://stenciljs.com/docs/config/
|
|
@@ -356,6 +357,29 @@ declare type Loose<T extends Object> = Record<string, any> & Partial<T>;
|
|
|
356
357
|
* and have type information carry though as we construct an object which is a valid `Config`.
|
|
357
358
|
*/
|
|
358
359
|
export declare type UnvalidatedConfig = Loose<Config>;
|
|
360
|
+
/**
|
|
361
|
+
* Helper type to strip optional markers from keys in a type, while preserving other type information for the key.
|
|
362
|
+
* This type takes a union of keys, K, in type T to allow for the type T to be gradually updated.
|
|
363
|
+
*
|
|
364
|
+
* ```typescript
|
|
365
|
+
* type Foo { bar?: number, baz?: string }
|
|
366
|
+
* type ReqFieldFoo = RequireFields<Foo, 'bar'>; // { bar: number, baz?: string }
|
|
367
|
+
* ```
|
|
368
|
+
*/
|
|
369
|
+
declare type RequireFields<T, K extends keyof T> = T & {
|
|
370
|
+
[P in K]-?: T[P];
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* Fields in {@link Config} to make required for {@link ValidatedConfig}
|
|
374
|
+
*/
|
|
375
|
+
declare type StrictConfigFields = 'flags' | 'logger' | 'outputTargets' | 'sys';
|
|
376
|
+
/**
|
|
377
|
+
* A version of {@link Config} that makes certain fields required. This type represents a valid configuration entity.
|
|
378
|
+
* When a configuration is received by the user, it is a bag of unverified data. In order to make stricter guarantees
|
|
379
|
+
* about the data from a type-safety perspective, this type is intended to be used throughout the codebase once
|
|
380
|
+
* validations have occurred at runtime.
|
|
381
|
+
*/
|
|
382
|
+
export declare type ValidatedConfig = RequireFields<Config, StrictConfigFields>;
|
|
359
383
|
export interface HydratedFlag {
|
|
360
384
|
/**
|
|
361
385
|
* Defaults to `hydrated`.
|
|
@@ -505,51 +529,6 @@ export interface DevServerEditor {
|
|
|
505
529
|
supported?: boolean;
|
|
506
530
|
priority?: number;
|
|
507
531
|
}
|
|
508
|
-
export interface ConfigFlags {
|
|
509
|
-
task?: TaskCommand;
|
|
510
|
-
args?: string[];
|
|
511
|
-
knownArgs?: string[];
|
|
512
|
-
unknownArgs?: string[];
|
|
513
|
-
address?: string;
|
|
514
|
-
build?: boolean;
|
|
515
|
-
cache?: boolean;
|
|
516
|
-
checkVersion?: boolean;
|
|
517
|
-
ci?: boolean;
|
|
518
|
-
compare?: boolean;
|
|
519
|
-
config?: string;
|
|
520
|
-
debug?: boolean;
|
|
521
|
-
dev?: boolean;
|
|
522
|
-
docs?: boolean;
|
|
523
|
-
docsApi?: string;
|
|
524
|
-
docsJson?: string;
|
|
525
|
-
e2e?: boolean;
|
|
526
|
-
emulate?: string;
|
|
527
|
-
es5?: boolean;
|
|
528
|
-
esm?: boolean;
|
|
529
|
-
headless?: boolean;
|
|
530
|
-
help?: boolean;
|
|
531
|
-
log?: boolean;
|
|
532
|
-
logLevel?: LogLevel;
|
|
533
|
-
verbose?: boolean;
|
|
534
|
-
maxWorkers?: number;
|
|
535
|
-
open?: boolean;
|
|
536
|
-
port?: number;
|
|
537
|
-
prerender?: boolean;
|
|
538
|
-
prod?: boolean;
|
|
539
|
-
profile?: boolean;
|
|
540
|
-
root?: string;
|
|
541
|
-
screenshot?: boolean;
|
|
542
|
-
screenshotConnector?: string;
|
|
543
|
-
serve?: boolean;
|
|
544
|
-
serviceWorker?: boolean;
|
|
545
|
-
spec?: boolean;
|
|
546
|
-
ssr?: boolean;
|
|
547
|
-
stats?: boolean;
|
|
548
|
-
updateScreenshot?: boolean;
|
|
549
|
-
version?: boolean;
|
|
550
|
-
watch?: boolean;
|
|
551
|
-
devtools?: boolean;
|
|
552
|
-
}
|
|
553
532
|
export declare type TaskCommand = 'build' | 'docs' | 'generate' | 'g' | 'help' | 'info' | 'prerender' | 'serve' | 'telemetry' | 'test' | 'version';
|
|
554
533
|
export declare type PageReloadStrategy = 'hmr' | 'pageReload' | null;
|
|
555
534
|
/**
|
|
@@ -1653,7 +1632,29 @@ export interface EmulateViewport {
|
|
|
1653
1632
|
*/
|
|
1654
1633
|
isLandscape?: boolean;
|
|
1655
1634
|
}
|
|
1656
|
-
|
|
1635
|
+
/**
|
|
1636
|
+
* This sets the log level hierarchy for our terminal logger, ranging from
|
|
1637
|
+
* most to least verbose.
|
|
1638
|
+
*
|
|
1639
|
+
* Ordering the levels like this lets us easily check whether we should log a
|
|
1640
|
+
* message at a given time. For instance, if the log level is set to `'warn'`,
|
|
1641
|
+
* then anything passed to the logger with level `'warn'` or `'error'` should
|
|
1642
|
+
* be logged, but we should _not_ log anything with level `'info'` or `'debug'`.
|
|
1643
|
+
*
|
|
1644
|
+
* If we have a current log level `currentLevel` and a message with level
|
|
1645
|
+
* `msgLevel` is passed to the logger, we can determine whether or not we should
|
|
1646
|
+
* log it by checking if the log level on the message is further up or at the
|
|
1647
|
+
* same level in the hierarchy than `currentLevel`, like so:
|
|
1648
|
+
*
|
|
1649
|
+
* ```ts
|
|
1650
|
+
* LOG_LEVELS.indexOf(msgLevel) >= LOG_LEVELS.indexOf(currentLevel)
|
|
1651
|
+
* ```
|
|
1652
|
+
*
|
|
1653
|
+
* NOTE: for the reasons described above, do not change the order of the entries
|
|
1654
|
+
* in this array without good reason!
|
|
1655
|
+
*/
|
|
1656
|
+
export declare const LOG_LEVELS: readonly ["debug", "info", "warn", "error"];
|
|
1657
|
+
export declare type LogLevel = typeof LOG_LEVELS[number];
|
|
1657
1658
|
/**
|
|
1658
1659
|
* Common logger to be used by the compiler, dev-server and CLI. The CLI will use a
|
|
1659
1660
|
* NodeJS based console logging and colors, and the web will use browser based
|
|
@@ -1980,7 +1981,7 @@ export interface LoadConfigInit {
|
|
|
1980
1981
|
* operations around the codebase.
|
|
1981
1982
|
*/
|
|
1982
1983
|
export interface LoadConfigResults {
|
|
1983
|
-
config:
|
|
1984
|
+
config: ValidatedConfig;
|
|
1984
1985
|
diagnostics: Diagnostic[];
|
|
1985
1986
|
tsconfig: {
|
|
1986
1987
|
path: string;
|
|
@@ -2048,14 +2049,32 @@ export interface PrerenderResults {
|
|
|
2048
2049
|
duration: number;
|
|
2049
2050
|
average: number;
|
|
2050
2051
|
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Input for CSS optimization functions, including the input CSS
|
|
2054
|
+
* string and a few boolean options which turn on or off various
|
|
2055
|
+
* optimizations.
|
|
2056
|
+
*/
|
|
2051
2057
|
export interface OptimizeCssInput {
|
|
2052
2058
|
input: string;
|
|
2053
2059
|
filePath?: string;
|
|
2054
|
-
autoprefixer?:
|
|
2060
|
+
autoprefixer?: boolean | null | AutoprefixerOptions;
|
|
2055
2061
|
minify?: boolean;
|
|
2056
2062
|
sourceMap?: boolean;
|
|
2057
2063
|
resolveUrl?: (url: string) => Promise<string> | string;
|
|
2058
2064
|
}
|
|
2065
|
+
/**
|
|
2066
|
+
* This is not a real interface describing the options which can
|
|
2067
|
+
* be passed to autoprefixer, for that see the docs, here:
|
|
2068
|
+
* https://github.com/postcss/autoprefixer#options
|
|
2069
|
+
*
|
|
2070
|
+
* Instead, this basically just serves as a label type to track
|
|
2071
|
+
* that arguments are being passed consistently.
|
|
2072
|
+
*/
|
|
2073
|
+
export declare type AutoprefixerOptions = Object;
|
|
2074
|
+
/**
|
|
2075
|
+
* Output from CSS optimization functions, wrapping up optimized
|
|
2076
|
+
* CSS and any diagnostics produced during optimization.
|
|
2077
|
+
*/
|
|
2059
2078
|
export interface OptimizeCssOutput {
|
|
2060
2079
|
output: string;
|
|
2061
2080
|
diagnostics: Diagnostic[];
|
|
@@ -1089,5 +1089,5 @@ exports.setMode = e => modeResolutionChain.push(e), exports.setPlatformHelpers =
|
|
|
1089
1089
|
}), 100));
|
|
1090
1090
|
}));
|
|
1091
1091
|
}, exports.stopAutoApplyChanges = stopAutoApplyChanges, exports.styles = styles,
|
|
1092
|
-
exports.
|
|
1092
|
+
exports.supportsConstructableStylesheets = !1, exports.supportsListenerOptions = !0,
|
|
1093
1093
|
exports.win = win, exports.writeTask = writeTask;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.2",
|
|
4
4
|
"description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc (CommonJS) v2.17.
|
|
2
|
+
Stencil Mock Doc (CommonJS) v2.17.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var mockDoc = (function(exports) {
|
|
5
5
|
'use strict';
|
|
@@ -689,6 +689,25 @@ class MockMouseEvent extends MockEvent {
|
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
+
class MockUIEvent extends MockEvent {
|
|
693
|
+
constructor(type, uiEventInitDic) {
|
|
694
|
+
super(type);
|
|
695
|
+
this.detail = null;
|
|
696
|
+
this.view = null;
|
|
697
|
+
if (uiEventInitDic != null) {
|
|
698
|
+
Object.assign(this, uiEventInitDic);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
class MockFocusEvent extends MockUIEvent {
|
|
703
|
+
constructor(type, focusEventInitDic) {
|
|
704
|
+
super(type);
|
|
705
|
+
this.relatedTarget = null;
|
|
706
|
+
if (focusEventInitDic != null) {
|
|
707
|
+
Object.assign(this, focusEventInitDic);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
692
711
|
class MockEventListener {
|
|
693
712
|
constructor(type, handler) {
|
|
694
713
|
this.type = type;
|
|
@@ -1602,7 +1621,7 @@ class MockElement extends MockNode {
|
|
|
1602
1621
|
return shadowRoot;
|
|
1603
1622
|
}
|
|
1604
1623
|
blur() {
|
|
1605
|
-
|
|
1624
|
+
dispatchEvent(this, new MockFocusEvent('blur', { relatedTarget: null, bubbles: true, cancelable: true, composed: true }));
|
|
1606
1625
|
}
|
|
1607
1626
|
get shadowRoot() {
|
|
1608
1627
|
return this.__shadowRoot || null;
|
|
@@ -1672,7 +1691,9 @@ class MockElement extends MockNode {
|
|
|
1672
1691
|
get firstElementChild() {
|
|
1673
1692
|
return this.children[0] || null;
|
|
1674
1693
|
}
|
|
1675
|
-
focus(_options) {
|
|
1694
|
+
focus(_options) {
|
|
1695
|
+
dispatchEvent(this, new MockFocusEvent('focus', { relatedTarget: null, bubbles: true, cancelable: true, composed: true }));
|
|
1696
|
+
}
|
|
1676
1697
|
getAttribute(attrName) {
|
|
1677
1698
|
if (attrName === 'style') {
|
|
1678
1699
|
if (this.__style != null && this.__style.length > 0) {
|
|
@@ -2017,6 +2038,9 @@ class MockElement extends MockNode {
|
|
|
2017
2038
|
set title(value) {
|
|
2018
2039
|
this.setAttributeNS(null, 'title', value);
|
|
2019
2040
|
}
|
|
2041
|
+
animate() {
|
|
2042
|
+
/**/
|
|
2043
|
+
}
|
|
2020
2044
|
onanimationstart() {
|
|
2021
2045
|
/**/
|
|
2022
2046
|
}
|
|
@@ -2281,6 +2305,18 @@ class MockElement extends MockNode {
|
|
|
2281
2305
|
onwheel() {
|
|
2282
2306
|
/**/
|
|
2283
2307
|
}
|
|
2308
|
+
requestFullscreen() {
|
|
2309
|
+
/**/
|
|
2310
|
+
}
|
|
2311
|
+
scrollBy() {
|
|
2312
|
+
/**/
|
|
2313
|
+
}
|
|
2314
|
+
scrollTo() {
|
|
2315
|
+
/**/
|
|
2316
|
+
}
|
|
2317
|
+
scrollIntoView() {
|
|
2318
|
+
/**/
|
|
2319
|
+
}
|
|
2284
2320
|
toString(opts) {
|
|
2285
2321
|
return serializeNodeToHtml(this, opts);
|
|
2286
2322
|
}
|
|
@@ -3431,6 +3467,7 @@ const WINDOW_PROPS = [
|
|
|
3431
3467
|
'HTMLElement',
|
|
3432
3468
|
'Node',
|
|
3433
3469
|
'NodeList',
|
|
3470
|
+
'FocusEvent',
|
|
3434
3471
|
'KeyboardEvent',
|
|
3435
3472
|
'MouseEvent',
|
|
3436
3473
|
];
|
|
@@ -3438,6 +3475,7 @@ const GLOBAL_CONSTRUCTORS = [
|
|
|
3438
3475
|
['CustomEvent', MockCustomEvent],
|
|
3439
3476
|
['Event', MockEvent],
|
|
3440
3477
|
['Headers', MockHeaders],
|
|
3478
|
+
['FocusEvent', MockFocusEvent],
|
|
3441
3479
|
['KeyboardEvent', MockKeyboardEvent],
|
|
3442
3480
|
['MouseEvent', MockMouseEvent],
|
|
3443
3481
|
['Request', MockRequest],
|
package/mock-doc/index.d.ts
CHANGED
|
@@ -386,6 +386,15 @@ declare class MockMouseEvent extends MockEvent {
|
|
|
386
386
|
relatedTarget: EventTarget;
|
|
387
387
|
constructor(type: string, mouseEventInitDic?: MouseEventInit);
|
|
388
388
|
}
|
|
389
|
+
declare class MockUIEvent extends MockEvent {
|
|
390
|
+
detail: number | null;
|
|
391
|
+
view: MockWindow | null;
|
|
392
|
+
constructor(type: string, uiEventInitDic?: UIEventInit);
|
|
393
|
+
}
|
|
394
|
+
declare class MockFocusEvent extends MockUIEvent {
|
|
395
|
+
relatedTarget: EventTarget | null;
|
|
396
|
+
constructor(type: 'blur' | 'focus', focusEventInitDic?: FocusEventInit);
|
|
397
|
+
}
|
|
389
398
|
declare class MockEventListener {
|
|
390
399
|
type: string;
|
|
391
400
|
handler: (ev?: any) => void;
|
|
@@ -588,6 +597,7 @@ declare class MockElement extends MockNode {
|
|
|
588
597
|
set textContent(value: string);
|
|
589
598
|
get title(): string;
|
|
590
599
|
set title(value: string);
|
|
600
|
+
animate(): void;
|
|
591
601
|
onanimationstart(): void;
|
|
592
602
|
onanimationend(): void;
|
|
593
603
|
onanimationiteration(): void;
|
|
@@ -676,6 +686,10 @@ declare class MockElement extends MockNode {
|
|
|
676
686
|
onwebkitfullscreenchange(): void;
|
|
677
687
|
onwebkitfullscreenerror(): void;
|
|
678
688
|
onwheel(): void;
|
|
689
|
+
requestFullscreen(): void;
|
|
690
|
+
scrollBy(): void;
|
|
691
|
+
scrollTo(): void;
|
|
692
|
+
scrollIntoView(): void;
|
|
679
693
|
toString(opts?: SerializeNodeToHtmlOptions): string;
|
|
680
694
|
}
|
|
681
695
|
declare function resetElement(elm: MockElement): void;
|
|
@@ -833,6 +847,7 @@ declare class MockWindow {
|
|
|
833
847
|
CustomEvent: typeof MockCustomEvent;
|
|
834
848
|
Event: typeof MockEvent;
|
|
835
849
|
Headers: typeof MockHeaders;
|
|
850
|
+
FocusEvent: typeof MockFocusEvent;
|
|
836
851
|
KeyboardEvent: typeof MockKeyboardEvent;
|
|
837
852
|
MouseEvent: typeof MockMouseEvent;
|
|
838
853
|
constructor(html?: string | boolean);
|
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc v2.17.
|
|
2
|
+
Stencil Mock Doc v2.17.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
const CONTENT_REF_ID = 'r';
|
|
5
5
|
const ORG_LOCATION_ID = 'o';
|
|
@@ -686,6 +686,25 @@ class MockMouseEvent extends MockEvent {
|
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
+
class MockUIEvent extends MockEvent {
|
|
690
|
+
constructor(type, uiEventInitDic) {
|
|
691
|
+
super(type);
|
|
692
|
+
this.detail = null;
|
|
693
|
+
this.view = null;
|
|
694
|
+
if (uiEventInitDic != null) {
|
|
695
|
+
Object.assign(this, uiEventInitDic);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
class MockFocusEvent extends MockUIEvent {
|
|
700
|
+
constructor(type, focusEventInitDic) {
|
|
701
|
+
super(type);
|
|
702
|
+
this.relatedTarget = null;
|
|
703
|
+
if (focusEventInitDic != null) {
|
|
704
|
+
Object.assign(this, focusEventInitDic);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
689
708
|
class MockEventListener {
|
|
690
709
|
constructor(type, handler) {
|
|
691
710
|
this.type = type;
|
|
@@ -1599,7 +1618,7 @@ class MockElement extends MockNode {
|
|
|
1599
1618
|
return shadowRoot;
|
|
1600
1619
|
}
|
|
1601
1620
|
blur() {
|
|
1602
|
-
|
|
1621
|
+
dispatchEvent(this, new MockFocusEvent('blur', { relatedTarget: null, bubbles: true, cancelable: true, composed: true }));
|
|
1603
1622
|
}
|
|
1604
1623
|
get shadowRoot() {
|
|
1605
1624
|
return this.__shadowRoot || null;
|
|
@@ -1669,7 +1688,9 @@ class MockElement extends MockNode {
|
|
|
1669
1688
|
get firstElementChild() {
|
|
1670
1689
|
return this.children[0] || null;
|
|
1671
1690
|
}
|
|
1672
|
-
focus(_options) {
|
|
1691
|
+
focus(_options) {
|
|
1692
|
+
dispatchEvent(this, new MockFocusEvent('focus', { relatedTarget: null, bubbles: true, cancelable: true, composed: true }));
|
|
1693
|
+
}
|
|
1673
1694
|
getAttribute(attrName) {
|
|
1674
1695
|
if (attrName === 'style') {
|
|
1675
1696
|
if (this.__style != null && this.__style.length > 0) {
|
|
@@ -2014,6 +2035,9 @@ class MockElement extends MockNode {
|
|
|
2014
2035
|
set title(value) {
|
|
2015
2036
|
this.setAttributeNS(null, 'title', value);
|
|
2016
2037
|
}
|
|
2038
|
+
animate() {
|
|
2039
|
+
/**/
|
|
2040
|
+
}
|
|
2017
2041
|
onanimationstart() {
|
|
2018
2042
|
/**/
|
|
2019
2043
|
}
|
|
@@ -2278,6 +2302,18 @@ class MockElement extends MockNode {
|
|
|
2278
2302
|
onwheel() {
|
|
2279
2303
|
/**/
|
|
2280
2304
|
}
|
|
2305
|
+
requestFullscreen() {
|
|
2306
|
+
/**/
|
|
2307
|
+
}
|
|
2308
|
+
scrollBy() {
|
|
2309
|
+
/**/
|
|
2310
|
+
}
|
|
2311
|
+
scrollTo() {
|
|
2312
|
+
/**/
|
|
2313
|
+
}
|
|
2314
|
+
scrollIntoView() {
|
|
2315
|
+
/**/
|
|
2316
|
+
}
|
|
2281
2317
|
toString(opts) {
|
|
2282
2318
|
return serializeNodeToHtml(this, opts);
|
|
2283
2319
|
}
|
|
@@ -3428,6 +3464,7 @@ const WINDOW_PROPS = [
|
|
|
3428
3464
|
'HTMLElement',
|
|
3429
3465
|
'Node',
|
|
3430
3466
|
'NodeList',
|
|
3467
|
+
'FocusEvent',
|
|
3431
3468
|
'KeyboardEvent',
|
|
3432
3469
|
'MouseEvent',
|
|
3433
3470
|
];
|
|
@@ -3435,6 +3472,7 @@ const GLOBAL_CONSTRUCTORS = [
|
|
|
3435
3472
|
['CustomEvent', MockCustomEvent],
|
|
3436
3473
|
['Event', MockEvent],
|
|
3437
3474
|
['Headers', MockHeaders],
|
|
3475
|
+
['FocusEvent', MockFocusEvent],
|
|
3438
3476
|
['KeyboardEvent', MockKeyboardEvent],
|
|
3439
3477
|
['MouseEvent', MockMouseEvent],
|
|
3440
3478
|
['Request', MockRequest],
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./internal/stencil-core/index.cjs",
|
|
6
6
|
"module": "./internal/stencil-core/index.js",
|
|
@@ -98,6 +98,7 @@
|
|
|
98
98
|
"dts-bundle-generator": "~5.3.0",
|
|
99
99
|
"eslint": "^8.13.0",
|
|
100
100
|
"eslint-config-prettier": "^8.5.0",
|
|
101
|
+
"eslint-plugin-jest": "^26.5.3",
|
|
101
102
|
"eslint-plugin-jsdoc": "^39.3.1",
|
|
102
103
|
"execa": "4.1.0",
|
|
103
104
|
"exit": "^0.1.2",
|
package/screenshot/package.json
CHANGED
package/sys/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Node System v2.17.
|
|
2
|
+
Stencil Node System v2.17.2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _interopDefaultLegacy(e) {
|
|
5
5
|
return e && "object" == typeof e && "default" in e ? e : {
|
|
@@ -274,7 +274,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
274
274
|
value: !0
|
|
275
275
|
});
|
|
276
276
|
|
|
277
|
-
const fs = require("./graceful-fs.js"), path = require("path"), require$$1 = require("util"), glob = require("./glob.js"), require$$6 = require("os"), require$$3 = require("crypto"), require$$2 = require("fs"), require$$4 = require("stream"), require$$5 = require("assert"), require$$7 = require("events"), require$$8 = require("buffer"), require$$9 = require("tty"), cp = require("child_process"), fs__default = _interopDefaultLegacy(fs), path__default = _interopDefaultLegacy(path), require$$1__default = _interopDefaultLegacy(require$$1), glob__default = _interopDefaultLegacy(glob), require$$6__default = _interopDefaultLegacy(require$$6), require$$6__namespace = _interopNamespace(require$$6), require$$3__default = _interopDefaultLegacy(require$$3), require$$2__default = _interopDefaultLegacy(require$$2), require$$4__default = _interopDefaultLegacy(require$$4), require$$5__default = _interopDefaultLegacy(require$$5), require$$7__default = _interopDefaultLegacy(require$$7), require$$8__default = _interopDefaultLegacy(require$$8), require$$9__default = _interopDefaultLegacy(require$$9), cp__namespace = _interopNamespace(cp);
|
|
277
|
+
const fs = require("./graceful-fs.js"), path = require("path"), require$$1 = require("util"), glob = require("./glob.js"), require$$6 = require("os"), require$$3 = require("crypto"), require$$2 = require("fs"), require$$4 = require("stream"), require$$5 = require("assert"), require$$7 = require("events"), require$$8 = require("buffer"), require$$9 = require("tty"), cp = require("child_process"), fs__default = _interopDefaultLegacy(fs), path__default = _interopDefaultLegacy(path), require$$1__default = _interopDefaultLegacy(require$$1), glob__default = _interopDefaultLegacy(glob), require$$6__default = _interopDefaultLegacy(require$$6), require$$6__namespace = _interopNamespace(require$$6), require$$3__default = _interopDefaultLegacy(require$$3), require$$2__default = _interopDefaultLegacy(require$$2), require$$4__default = _interopDefaultLegacy(require$$4), require$$5__default = _interopDefaultLegacy(require$$5), require$$7__default = _interopDefaultLegacy(require$$7), require$$8__default = _interopDefaultLegacy(require$$8), require$$9__default = _interopDefaultLegacy(require$$9), cp__namespace = _interopNamespace(cp), LOG_LEVELS = [ "debug", "info", "warn", "error" ];
|
|
278
278
|
|
|
279
279
|
symbols = createCommonjsModule((function(e) {
|
|
280
280
|
const t = "Hyper" === process.env.TERM_PROGRAM, r = "win32" === process.platform, n = "linux" === process.platform, i = {
|
|
@@ -607,7 +607,7 @@ const createTerminalLogger = e => {
|
|
|
607
607
|
red: ansiColors.red,
|
|
608
608
|
yellow: ansiColors.yellow
|
|
609
609
|
};
|
|
610
|
-
},
|
|
610
|
+
}, shouldLog = (e, t) => LOG_LEVELS.indexOf(t) >= LOG_LEVELS.indexOf(e), formatPrefixTimestamp = () => {
|
|
611
611
|
const e = new Date;
|
|
612
612
|
return `[${clampTwoDigits(e.getMinutes())}:${clampTwoDigits(e.getSeconds())}.${Math.floor(e.getMilliseconds() / 1e3 * 10)}]`;
|
|
613
613
|
}, clampTwoDigits = e => ("0" + e.toString()).slice(-2), wordWrap = (e, t) => {
|
|
@@ -5632,7 +5632,7 @@ exports.createNodeLogger = e => {
|
|
|
5632
5632
|
getColumns: () => {
|
|
5633
5633
|
var t, r;
|
|
5634
5634
|
const n = null !== (r = null === (t = null == e ? void 0 : e.stdout) || void 0 === t ? void 0 : t.columns) && void 0 !== r ? r : 80;
|
|
5635
|
-
return Math.max(Math.min(
|
|
5635
|
+
return Math.max(Math.min(n, 120), 60);
|
|
5636
5636
|
},
|
|
5637
5637
|
memoryUsage: () => e.memoryUsage().rss,
|
|
5638
5638
|
relativePath: (e, t) => path__default.default.relative(e, t),
|
package/sys/node/package.json
CHANGED
package/sys/node/worker.js
CHANGED
package/testing/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { createTesting } from './testing';
|
|
|
3
3
|
export { createTestRunner } from './jest/jest-runner';
|
|
4
4
|
export { jestPreprocessor } from './jest/jest-preprocessor';
|
|
5
5
|
export { jestSetupTestFramework } from './jest/jest-setup-test-framework';
|
|
6
|
-
export { mockBuildCtx, mockConfig, mockCompilerCtx, mockDocument, mockLogger, mockCompilerSystem, mockWindow, mockModule, } from './mocks';
|
|
6
|
+
export { mockBuildCtx, mockConfig, mockCompilerCtx, mockDocument, mockLoadConfigInit, mockValidatedConfig, mockLogger, mockCompilerSystem, mockWindow, mockModule, } from './mocks';
|
|
7
7
|
export { MockHeaders, MockRequest, MockRequestInit, MockRequestInfo, MockResponse, MockResponseInit, mockFetch, } from './mock-fetch';
|
|
8
8
|
export { newSpecPage } from './spec-page';
|
|
9
9
|
export { shuffleArray } from './testing-utils';
|