@stencil/core 4.40.1 → 4.41.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.
- package/cli/config-flags.d.ts +2 -2
- package/cli/index.cjs +9 -4
- package/cli/index.js +9 -4
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +268 -136
- package/dev-server/client/index.js +12 -12
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.js +2 -2
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +18 -11
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +105 -25
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +64 -25
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +196 -135
- package/internal/package.json +1 -1
- package/internal/stencil-core/jsx-dev-runtime.cjs +7 -0
- package/internal/stencil-core/jsx-dev-runtime.d.ts +23 -0
- package/internal/stencil-core/jsx-dev-runtime.js +2 -0
- package/internal/stencil-core/jsx-runtime.cjs +8 -0
- package/internal/stencil-core/jsx-runtime.d.ts +22 -0
- package/internal/stencil-core/jsx-runtime.js +2 -0
- package/internal/stencil-private.d.ts +20 -0
- package/internal/stencil-public-compiler.d.ts +6 -0
- package/internal/stencil-public-docs.d.ts +11 -0
- package/internal/stencil-public-runtime.d.ts +29 -0
- package/internal/testing/index.js +753 -638
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +192 -135
- package/mock-doc/index.js +193 -135
- package/mock-doc/package.json +1 -1
- package/package.json +11 -1
- package/screenshot/index.js +29 -8
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +29 -29
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +98 -70
- package/testing/package.json +1 -1
|
@@ -662,6 +662,17 @@ export interface ComponentCompilerTypeReference {
|
|
|
662
662
|
* An ID for this type which is unique within a Stencil project.
|
|
663
663
|
*/
|
|
664
664
|
id: string;
|
|
665
|
+
/**
|
|
666
|
+
* Whether this type was imported as a default import (e.g., `import MyEnum from './my-enum'`)
|
|
667
|
+
* vs a named import (e.g., `import { MyType } from './my-type'`)
|
|
668
|
+
*/
|
|
669
|
+
isDefault?: boolean;
|
|
670
|
+
/**
|
|
671
|
+
* The name used in the import statement (before any user-defined alias).
|
|
672
|
+
* For `import { XAxisOption as moo }`, this would be "XAxisOption".
|
|
673
|
+
* This is the name exported by the source module.
|
|
674
|
+
*/
|
|
675
|
+
referenceLocation?: string;
|
|
665
676
|
}
|
|
666
677
|
/**
|
|
667
678
|
* Information about a type which is referenced by another type on a Stencil
|
|
@@ -1582,6 +1593,10 @@ export interface HostRef {
|
|
|
1582
1593
|
$rmListeners$?: (() => void)[];
|
|
1583
1594
|
$modeName$?: string;
|
|
1584
1595
|
$renderCount$?: number;
|
|
1596
|
+
/**
|
|
1597
|
+
* Defer connectedCallback until after first render for components with slot relocation.
|
|
1598
|
+
*/
|
|
1599
|
+
$deferredConnectedCallback$?: boolean;
|
|
1585
1600
|
}
|
|
1586
1601
|
export interface PlatformRuntime {
|
|
1587
1602
|
/**
|
|
@@ -2306,6 +2321,11 @@ export interface TypesMemberNameData {
|
|
|
2306
2321
|
* file that is using `localName`.
|
|
2307
2322
|
*/
|
|
2308
2323
|
importName?: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* Whether this is a default import/export (e.g., `import MyEnum from './my-enum'`)
|
|
2326
|
+
* vs a named import/export (e.g., `import { MyType } from './my-type'`)
|
|
2327
|
+
*/
|
|
2328
|
+
isDefault?: boolean;
|
|
2309
2329
|
}
|
|
2310
2330
|
export interface TypesModule {
|
|
2311
2331
|
isDep: boolean;
|
|
@@ -574,6 +574,12 @@ export interface StencilDevServerConfig {
|
|
|
574
574
|
* Sets the server's port. Defaults to `3333`.
|
|
575
575
|
*/
|
|
576
576
|
port?: number;
|
|
577
|
+
/**
|
|
578
|
+
* When set to `true`, the dev server will exit with an error if the specified port is already in use.
|
|
579
|
+
* When set to `false`, the dev server will automatically try the next available port.
|
|
580
|
+
* Defaults to `false`.
|
|
581
|
+
*/
|
|
582
|
+
strictPort?: boolean;
|
|
577
583
|
/**
|
|
578
584
|
* When files are watched and updated, by default the dev server will use `hmr` (Hot Module Replacement)
|
|
579
585
|
* to update the page without a full page refresh. To have the page do a full refresh use `pageReload`.
|
|
@@ -33,6 +33,17 @@ interface ComponentCompilerTypeReference {
|
|
|
33
33
|
* An ID for this type which is unique within a Stencil project.
|
|
34
34
|
*/
|
|
35
35
|
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this type was imported as a default import (e.g., `import MyEnum from './my-enum'`)
|
|
38
|
+
* vs a named import (e.g., `import { MyType } from './my-type'`)
|
|
39
|
+
*/
|
|
40
|
+
isDefault?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The name used in the import statement (before any user-defined alias).
|
|
43
|
+
* For `import { XAxisOption as moo }`, this would be "XAxisOption".
|
|
44
|
+
* This is the name exported by the source module.
|
|
45
|
+
*/
|
|
46
|
+
referenceLocation?: string;
|
|
36
47
|
}
|
|
37
48
|
interface ComponentCompilerReferencedType {
|
|
38
49
|
/**
|
|
@@ -673,6 +673,35 @@ export declare function h(sel: any, text: string): VNode;
|
|
|
673
673
|
export declare function h(sel: any, children: Array<VNode | undefined | null>): VNode;
|
|
674
674
|
export declare function h(sel: any, data: VNodeData | null, text: string): VNode;
|
|
675
675
|
export declare function h(sel: any, data: VNodeData | null, children: Array<VNode | undefined | null>): VNode;
|
|
676
|
+
/**
|
|
677
|
+
* Automatic JSX runtime functions for TypeScript's react-jsx mode.
|
|
678
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsx".
|
|
679
|
+
* @param type type of node
|
|
680
|
+
* @param props properties of node
|
|
681
|
+
* @param key optional key for the node
|
|
682
|
+
* @returns a jsx vnode
|
|
683
|
+
*/
|
|
684
|
+
export declare function jsx(type: any, props: any, key?: string): VNode;
|
|
685
|
+
/**
|
|
686
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxmode with multiple children.
|
|
687
|
+
* @param type type of node
|
|
688
|
+
* @param props properties of node
|
|
689
|
+
* @param key optional key for the node
|
|
690
|
+
* @returns a jsx vnode
|
|
691
|
+
*/
|
|
692
|
+
export declare function jsxs(type: any, props: any, key?: string): VNode;
|
|
693
|
+
/**
|
|
694
|
+
* Automatic JSX runtime functions for TypeScript's react-jsxdev mode.
|
|
695
|
+
* These functions are called automatically by TypeScript when using "jsx": "react-jsxdev".
|
|
696
|
+
* @param type type of node
|
|
697
|
+
* @param props properties of node
|
|
698
|
+
* @param key optional key for the node
|
|
699
|
+
* @param isStaticChildren indicates if the children are static
|
|
700
|
+
* @param source source information
|
|
701
|
+
* @param self reference to the component instance
|
|
702
|
+
* @returns a jsx vnode
|
|
703
|
+
*/
|
|
704
|
+
export declare function jsxDEV(type: any, props: any, key?: string | number, isStaticChildren?: boolean, source?: any, self?: any): VNode;
|
|
676
705
|
export declare function h(sel: any, data: VNodeData | null, children: VNode): VNode;
|
|
677
706
|
/**
|
|
678
707
|
* A virtual DOM node
|