@stencil/core 4.18.3-dev.1718859699.dac3e33 → 4.18.3-dev.1719000800.2790882

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.
Files changed (45) hide show
  1. package/cli/index.cjs +1 -1
  2. package/cli/index.js +1 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/stencil.js +53 -48
  6. package/dev-server/client/index.js +1 -1
  7. package/dev-server/client/package.json +1 -1
  8. package/dev-server/connector.html +3 -3
  9. package/dev-server/index.js +1 -1
  10. package/dev-server/package.json +1 -1
  11. package/dev-server/server-process.js +2 -2
  12. package/dev-server/ws.js +1 -1
  13. package/internal/app-data/package.json +1 -1
  14. package/internal/client/index.js +515 -497
  15. package/internal/client/package.json +3 -1
  16. package/internal/client/patch-browser.js +1 -1
  17. package/internal/hydrate/index.js +82 -33
  18. package/internal/hydrate/package.json +1 -1
  19. package/internal/hydrate/runner.d.ts +29 -11
  20. package/internal/hydrate/runner.js +235 -258
  21. package/internal/package.json +1 -1
  22. package/internal/stencil-private.d.ts +21 -11
  23. package/internal/stencil-public-compiler.d.ts +13 -0
  24. package/internal/stencil-public-runtime.d.ts +0 -1
  25. package/internal/testing/index.js +416 -393
  26. package/internal/testing/package.json +1 -1
  27. package/mock-doc/index.cjs +133 -129
  28. package/mock-doc/index.d.ts +18 -4
  29. package/mock-doc/index.js +133 -129
  30. package/mock-doc/package.json +1 -1
  31. package/package.json +30 -2
  32. package/screenshot/index.js +1 -1
  33. package/screenshot/package.json +1 -1
  34. package/screenshot/pixel-match.js +1 -1
  35. package/sys/node/index.js +10 -10
  36. package/sys/node/package.json +1 -1
  37. package/sys/node/worker.js +1 -1
  38. package/testing/index.js +64 -1
  39. package/testing/jest/jest-27-and-under/matchers/events.d.ts +4 -0
  40. package/testing/jest/jest-27-and-under/matchers/index.d.ts +2 -1
  41. package/testing/jest/jest-28/matchers/events.d.ts +4 -0
  42. package/testing/jest/jest-28/matchers/index.d.ts +2 -1
  43. package/testing/jest/jest-29/matchers/events.d.ts +4 -0
  44. package/testing/jest/jest-29/matchers/index.d.ts +2 -1
  45. package/testing/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.18.3-dev.1718859699.dac3e33",
3
+ "version": "4.18.3-dev.1719000800.2790882",
4
4
  "description": "Stencil internals only to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -977,29 +977,29 @@ export interface HostElement extends HTMLElement {
977
977
  */
978
978
  ['s-hmr']?: (versionId: string) => void;
979
979
  ['s-p']?: Promise<void>[];
980
- componentOnReady?: () => Promise<this>;
980
+ componentOnReady?: () => Promise<this> | undefined;
981
981
  }
982
982
  export interface HydrateResults {
983
983
  buildId: string;
984
984
  diagnostics: Diagnostic[];
985
985
  url: string;
986
- host: string;
987
- hostname: string;
988
- href: string;
989
- port: string;
990
- pathname: string;
991
- search: string;
992
- hash: string;
993
- html: string;
986
+ host: string | null;
987
+ hostname: string | null;
988
+ href: string | null;
989
+ port: string | null;
990
+ pathname: string | null;
991
+ search: string | null;
992
+ hash: string | null;
993
+ html: string | null;
994
994
  components: HydrateComponent[];
995
995
  anchors: HydrateAnchorElement[];
996
996
  imgs: HydrateImgElement[];
997
997
  scripts: HydrateScriptElement[];
998
998
  styles: HydrateStyleElement[];
999
999
  staticData: HydrateStaticData[];
1000
- title: string;
1000
+ title: string | null;
1001
1001
  hydratedCount: number;
1002
- httpStatus: number;
1002
+ httpStatus: number | null;
1003
1003
  }
1004
1004
  export interface HydrateComponent {
1005
1005
  tag: string;
@@ -1713,6 +1713,11 @@ export interface PackageJsonData {
1713
1713
  name?: string;
1714
1714
  version?: string;
1715
1715
  main?: string;
1716
+ exports?: {
1717
+ [key: string]: string | {
1718
+ [key: string]: string;
1719
+ };
1720
+ };
1716
1721
  description?: string;
1717
1722
  bin?: {
1718
1723
  [key: string]: string;
@@ -1829,6 +1834,11 @@ declare global {
1829
1834
  * received the correct custom event `detail` data.
1830
1835
  */
1831
1836
  toHaveFirstReceivedEventDetail(eventDetail: any): void;
1837
+ /**
1838
+ * When given an EventSpy, checks the last event has
1839
+ * received the correct custom event `detail` data.
1840
+ */
1841
+ toHaveLastReceivedEventDetail(eventDetail: any): void;
1832
1842
  /**
1833
1843
  * When given an EventSpy, checks the event at an index
1834
1844
  * has received the correct custom event `detail` data.
@@ -845,6 +845,19 @@ export interface SerializeDocumentOptions extends HydrateDocumentOptions {
845
845
  * Remove HTML comments. Defaults to `true`.
846
846
  */
847
847
  removeHtmlComments?: boolean;
848
+ /**
849
+ * If set to `false` Stencil will ignore the fact that a component has a `shadow: true`
850
+ * flag and serializes it as a scoped component. If set to `true` the component will
851
+ * be rendered within a Declarative Shadow DOM.
852
+ * @default false
853
+ */
854
+ serializeShadowRoot?: boolean;
855
+ /**
856
+ * The `fullDocument` flag determines the format of the rendered output. Set it to true to
857
+ * generate a complete HTML document, or false to render only the component.
858
+ * @default true
859
+ */
860
+ fullDocument?: boolean;
848
861
  }
849
862
  export interface HydrateFactoryOptions extends SerializeDocumentOptions {
850
863
  serializeToHtml: boolean;
@@ -989,7 +989,6 @@ export declare namespace JSXBase {
989
989
  interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
990
990
  form?: string;
991
991
  htmlFor?: string;
992
- htmlfor?: string;
993
992
  }
994
993
  interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
995
994
  value?: string | string[] | number;