@stencil/core 4.31.0 → 4.32.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/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +18 -6
- 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/index.js +2 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +26 -24
- package/internal/hydrate/runner.js +13 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +2 -0
- package/internal/stencil-public-compiler.d.ts +25 -24
- package/internal/testing/index.js +2 -0
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +26 -26
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +9 -3
- package/testing/package.json +1 -1
|
@@ -806,6 +806,30 @@ export interface HydrateDocumentOptions {
|
|
|
806
806
|
* Sets `navigator.userAgent`
|
|
807
807
|
*/
|
|
808
808
|
userAgent?: string;
|
|
809
|
+
/**
|
|
810
|
+
* Configure how Stencil serializes the components shadow root.
|
|
811
|
+
* - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
|
|
812
|
+
* - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
|
|
813
|
+
* and the shadow DOM will be created during client-side hydration.
|
|
814
|
+
* - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
|
|
815
|
+
* the value arrays containing the tag names of the components that should be rendered in that mode.
|
|
816
|
+
*
|
|
817
|
+
* Examples:
|
|
818
|
+
* - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
|
|
819
|
+
* Render all components as `scoped` apart from `my-component-1` and `another-component`
|
|
820
|
+
* - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
|
|
821
|
+
* Render all components within `declarative-shadow-dom` apart from `an-option-component`
|
|
822
|
+
* - `'scoped'` Render all components as `scoped`
|
|
823
|
+
* - `false` disables shadow root serialization
|
|
824
|
+
*
|
|
825
|
+
* *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
|
|
826
|
+
* @default 'declarative-shadow-dom'
|
|
827
|
+
*/
|
|
828
|
+
serializeShadowRoot?: 'declarative-shadow-dom' | 'scoped' | {
|
|
829
|
+
'declarative-shadow-dom'?: string[];
|
|
830
|
+
scoped?: string[];
|
|
831
|
+
default: 'declarative-shadow-dom' | 'scoped';
|
|
832
|
+
} | boolean;
|
|
809
833
|
}
|
|
810
834
|
export interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
811
835
|
/**
|
|
@@ -848,30 +872,6 @@ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
|
848
872
|
* Remove HTML comments. Defaults to `true`.
|
|
849
873
|
*/
|
|
850
874
|
removeHtmlComments?: boolean;
|
|
851
|
-
/**
|
|
852
|
-
* Configure how Stencil serializes the components shadow root.
|
|
853
|
-
* - If set to `declarative-shadow-dom` the component will be rendered within a Declarative Shadow DOM.
|
|
854
|
-
* - If set to `scoped` Stencil will render the contents of the shadow root as a `scoped: true` component
|
|
855
|
-
* and the shadow DOM will be created during client-side hydration.
|
|
856
|
-
* - Alternatively you can mix and match the two by providing an object with `declarative-shadow-dom` and `scoped` keys,
|
|
857
|
-
* the value arrays containing the tag names of the components that should be rendered in that mode.
|
|
858
|
-
*
|
|
859
|
-
* Examples:
|
|
860
|
-
* - `{ 'declarative-shadow-dom': ['my-component-1', 'another-component'], default: 'scoped' }`
|
|
861
|
-
* Render all components as `scoped` apart from `my-component-1` and `another-component`
|
|
862
|
-
* - `{ 'scoped': ['an-option-component'], default: 'declarative-shadow-dom' }`
|
|
863
|
-
* Render all components within `declarative-shadow-dom` apart from `an-option-component`
|
|
864
|
-
* - `'scoped'` Render all components as `scoped`
|
|
865
|
-
* - `false` disables shadow root serialization
|
|
866
|
-
*
|
|
867
|
-
* *NOTE* `true` has been deprecated in favor of `declarative-shadow-dom` and `scoped`
|
|
868
|
-
* @default 'declarative-shadow-dom'
|
|
869
|
-
*/
|
|
870
|
-
serializeShadowRoot?: 'declarative-shadow-dom' | 'scoped' | {
|
|
871
|
-
'declarative-shadow-dom'?: string[];
|
|
872
|
-
scoped?: string[];
|
|
873
|
-
default: 'declarative-shadow-dom' | 'scoped';
|
|
874
|
-
} | boolean;
|
|
875
875
|
/**
|
|
876
876
|
* The `fullDocument` flag determines the format of the rendered output. Set it to true to
|
|
877
877
|
* generate a complete HTML document, or false to render only the component.
|
|
@@ -1662,6 +1662,7 @@ export interface RollupInputOptions {
|
|
|
1662
1662
|
[id: string]: string;
|
|
1663
1663
|
};
|
|
1664
1664
|
treeshake?: boolean;
|
|
1665
|
+
maxParallelFileOps?: number;
|
|
1665
1666
|
external?: (string | RegExp)[] | string | RegExp | ((source: string, importer: string | undefined, isResolved: boolean) => boolean | null | undefined);
|
|
1666
1667
|
}
|
|
1667
1668
|
export interface RollupOutputOptions {
|
|
@@ -23,6 +23,7 @@ __export(index_exports, {
|
|
|
23
23
|
Build: () => Build,
|
|
24
24
|
Env: () => import_app_data22.Env,
|
|
25
25
|
Fragment: () => Fragment,
|
|
26
|
+
HYDRATED_STYLE_ID: () => HYDRATED_STYLE_ID,
|
|
26
27
|
Host: () => Host,
|
|
27
28
|
addHostEventListeners: () => addHostEventListeners,
|
|
28
29
|
bootstrapLazy: () => bootstrapLazy,
|
|
@@ -4357,6 +4358,7 @@ var insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, inde
|
|
|
4357
4358
|
Build,
|
|
4358
4359
|
Env,
|
|
4359
4360
|
Fragment,
|
|
4361
|
+
HYDRATED_STYLE_ID,
|
|
4360
4362
|
Host,
|
|
4361
4363
|
addHostEventListeners,
|
|
4362
4364
|
bootstrapLazy,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.32.0",
|
|
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
package/mock-doc/index.js
CHANGED
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED