@qwik.dev/core 2.0.0-beta.26 → 2.0.0-beta.28

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.
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/backpatch",
3
- "version": "2.0.0-beta.26-dev+c693cf5",
3
+ "version": "2.0.0-beta.28-dev+fac55b7",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwik.dev/core/build",
3
- "version": "2.0.0-beta.26-dev+c693cf5",
3
+ "version": "2.0.0-beta.28-dev+fac55b7",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "private": true,
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/cli 2.0.0-beta.26-dev+c693cf5
3
+ * @qwik.dev/core/cli 2.0.0-beta.28-dev+fac55b7
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -12908,7 +12908,7 @@ async function printHelp(app) {
12908
12908
  await runCommand2(Object.assign(app, { task: args[0], args }));
12909
12909
  }
12910
12910
  function printVersion() {
12911
- console.log("2.0.0-beta.26-dev+c693cf5");
12911
+ console.log("2.0.0-beta.28-dev+fac55b7");
12912
12912
  }
12913
12913
  export {
12914
12914
  runCli,
@@ -1166,12 +1166,12 @@ declare class DomContainer extends _SharedContainer implements ClientContainer {
1166
1166
  qManifestHash: string;
1167
1167
  rootVNode: _ElementVNode;
1168
1168
  document: _QDocument;
1169
- $rawStateData$: unknown[];
1170
1169
  $storeProxyMap$: ObjToProxyMap;
1171
1170
  $qFuncs$: Array<(...args: unknown[]) => unknown>;
1172
1171
  $instanceHash$: string;
1173
1172
  $forwardRefs$: Array<number> | null;
1174
1173
  vNodeLocate: (id: string | Element) => _VNode;
1174
+ private $rawStateData$;
1175
1175
  private $stateData$;
1176
1176
  private $styleIds$;
1177
1177
  constructor(element: _ContainerElement);
@@ -1422,6 +1422,13 @@ export { h }
1422
1422
  */
1423
1423
  export declare const _hasStoreEffects: (value: StoreTarget, prop: keyof StoreTarget) => boolean;
1424
1424
 
1425
+ /**
1426
+ * HMR event handler. Replaces the component QRL with a fresh one and marks dirty.
1427
+ *
1428
+ * @internal
1429
+ */
1430
+ export declare const _hmr: (event: Event, element: Element) => void;
1431
+
1425
1432
  /** @public */
1426
1433
  declare interface HoistEntryStrategy {
1427
1434
  type: 'hoist';
@@ -1722,9 +1729,16 @@ export declare interface JSXNode<T extends string | FunctionComponent | unknown
1722
1729
  dev?: DevJSX;
1723
1730
  }
1724
1731
 
1732
+ declare const enum JSXNodeFlags {
1733
+ None = 0,
1734
+ StaticSubtree = 2,
1735
+ HasCapturedProps = 4
1736
+ }
1737
+
1725
1738
  declare class JSXNodeImpl<T = unknown> implements JSXNodeInternal<T> {
1726
1739
  type: T;
1727
1740
  children: JSXChildren;
1741
+ flags: JSXNodeFlags;
1728
1742
  toSort: boolean;
1729
1743
  key: string | null;
1730
1744
  varProps: Props;
@@ -1733,7 +1747,7 @@ declare class JSXNodeImpl<T = unknown> implements JSXNodeInternal<T> {
1733
1747
  stack: string | undefined;
1734
1748
  };
1735
1749
  _proxy: Props | null;
1736
- constructor(type: T, varProps: Props | null, constProps: Props | null, children: JSXChildren, key: string | number | null | undefined, toSort?: boolean, dev?: DevJSX);
1750
+ constructor(type: T, varProps: Props | null, constProps: Props | null, children: JSXChildren, flags: JSXNodeFlags, key: string | number | null | undefined, toSort?: boolean, dev?: DevJSX);
1737
1751
  get props(): T extends FunctionComponent<infer PROPS> ? PROPS : Props;
1738
1752
  }
1739
1753
 
@@ -1749,6 +1763,8 @@ export declare interface JSXNodeInternal<T extends string | FunctionComponent |
1749
1763
  toSort: boolean;
1750
1764
  /** The key property */
1751
1765
  key: string | null;
1766
+ /** Flags */
1767
+ flags: JSXNodeFlags;
1752
1768
  /**
1753
1769
  * Props that are not guaranteed shallow equal across runs.
1754
1770
  *
@@ -3072,7 +3088,7 @@ export declare const SerializerSymbol: unique symbol;
3072
3088
  declare type ServerQwikManifest = Pick<QwikManifest, 'manifestHash' | 'injections' | 'bundleGraph' | 'bundleGraphAsset' | 'mapping' | 'preloader' | 'core' | 'qwikLoader'>;
3073
3089
 
3074
3090
  /** @internal */
3075
- export declare function _setEvent(serializationCtx: SerializationContext, key: string, rawValue: unknown, isLoopElement: boolean): string | null;
3091
+ export declare function _setEvent(serializationCtx: SerializationContext, key: string, rawValue: unknown, hasMovedCaptures: boolean): string | null;
3076
3092
 
3077
3093
  /**
3078
3094
  * Sets the `CorePlatform`.
@@ -3469,7 +3485,7 @@ declare interface SSRContainer extends _Container {
3469
3485
  write(text: string): void;
3470
3486
  openContainer(): void;
3471
3487
  closeContainer(): ValueOrPromise<void>;
3472
- openElement(elementName: string, key: string | null, varAttrs: Props, constAttrs: Props | null, styleScopedId: string | null, currentFile: string | null): string | undefined;
3488
+ openElement(elementName: string, key: string | null, varAttrs: Props, constAttrs: Props | null, styleScopedId: string | null, currentFile: string | null, hasMovedCaptures?: boolean): string | undefined;
3473
3489
  closeElement(): ValueOrPromise<void>;
3474
3490
  openFragment(attrs: Props): void;
3475
3491
  closeFragment(): void;
@@ -4196,6 +4212,14 @@ export declare const useContextProvider: <STATE>(context: ContextId<STATE>, newV
4196
4212
  /** @public */
4197
4213
  export declare const useErrorBoundary: () => ErrorBoundaryStore;
4198
4214
 
4215
+ /**
4216
+ * Injected by the optimizer into component$ bodies in HMR mode. Registers a document event listener
4217
+ * that triggers component re-render on HMR updates.
4218
+ *
4219
+ * @internal
4220
+ */
4221
+ export declare function _useHmr(devPath: string): void;
4222
+
4199
4223
  /** @public */
4200
4224
  export declare const useId: () => string;
4201
4225
 
@@ -4679,7 +4703,7 @@ export declare const _VAR_PROPS: unique symbol;
4679
4703
  export declare const _verifySerializable: <T>(value: T, preMessage?: string) => T;
4680
4704
 
4681
4705
  /**
4682
- * 2.0.0-beta.26-dev+c693cf5
4706
+ * 2.0.0-beta.28-dev+fac55b7
4683
4707
  *
4684
4708
  * @public
4685
4709
  */