@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.
@@ -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.31.0",
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.31.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.32.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.31.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.32.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/runtime/runtime-constants.ts
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.31.0",
3
+ "version": "4.32.0",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "4.31.0",
3
+ "version": "4.32.0",
4
4
  "license": "MIT",
5
5
  "main": "./internal/stencil-core/index.cjs",
6
6
  "module": "./internal/stencil-core/index.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot v4.31.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.32.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.31.0",
3
+ "version": "4.32.0",
4
4
  "description": "Stencil Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot Pixel Match v4.31.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot Pixel Match v4.32.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;