@qwik.dev/core 2.0.0-beta.41 → 2.0.0-beta.42

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.
@@ -94,7 +94,7 @@ declare interface Container {
94
94
  $resolveRenderPromise$: (() => void) | null;
95
95
  $pendingCount$: number;
96
96
  $checkPendingCount$(): void;
97
- handleError(err: any, $host$: HostElement | null): void;
97
+ handleError(err: any, $host$: HostElement | null, phase?: ErrorBoundaryPhase): void;
98
98
  getParentHost(host: HostElement): HostElement | null;
99
99
  setContext<T>(host: HostElement, context: ContextId<T>, value: T): void;
100
100
  resolveContext<T>(host: HostElement, contextId: ContextId<T>): T | undefined;
@@ -307,6 +307,13 @@ declare interface ElementFixtureOptions {
307
307
  /** @public */
308
308
  export declare function emulateExecutionOfQwikFuncs(document: Document): void;
309
309
 
310
+ /** Identifies where an error caught by an error boundary originated. @public @experimental */
311
+ declare const enum ErrorBoundaryPhase {
312
+ Render = "render",
313
+ Event = "event",
314
+ Hook = "hook"
315
+ }
316
+
310
317
  /** @public */
311
318
  export declare function expectDOM(actual: Element, expected: string): Promise<void>;
312
319
 
@@ -888,6 +895,7 @@ export declare function ssrRenderToDom(jsx: JSXOutput, opts?: {
888
895
  resume?: boolean;
889
896
  /** Inject nodes into the document before test runs (for testing purposes) */
890
897
  onBeforeResume?: (document: Document) => void;
898
+ transformError?: (error: unknown) => Error | undefined | null | void;
891
899
  }): Promise<{
892
900
  container: _DomContainer;
893
901
  document: Document;
@@ -1054,7 +1062,8 @@ declare const enum VNodeDataFlag {
1054
1062
  VIRTUAL_NODE = 2,
1055
1063
  ELEMENT_NODE = 4,
1056
1064
  REFERENCE = 8,
1057
- SERIALIZE = 16
1065
+ SERIALIZE = 16,
1066
+ INERT = 32
1058
1067
  }
1059
1068
 
1060
1069
  /**