@stencil/core 5.0.0-alpha.4 → 5.0.0-alpha.6
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/dist/{client-Dti6fFpE.mjs → client-fWOou5EW.mjs} +2360 -2090
- package/dist/compiler/index.d.mts +5 -5
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-BYRrEeD-.mjs → compiler-CdUbDTbV.mjs} +13426 -12276
- package/dist/declarations/stencil-public-compiler.d.ts +527 -238
- package/dist/declarations/stencil-public-compiler.js +2 -3
- package/dist/declarations/stencil-public-docs.d.ts +10 -0
- package/dist/declarations/stencil-public-runtime.d.ts +51 -12
- package/dist/{index-BwTaN1Nq.d.mts → index-D8vvsppY.d.mts} +566 -350
- package/dist/{index-CyrGY82h.d.ts → index-Dap2E02-.d.ts} +83 -32
- package/dist/{index-9LTuoSiw.d.mts → index-UUlemGuu.d.mts} +13 -2
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.d.mts +18 -0
- package/dist/jsx-runtime.mjs +2 -0
- package/dist/{node-BF2jSfWg.mjs → node-klLZLdDe.mjs} +20 -19
- package/dist/{regular-expression-D5pGVpCu.mjs → regular-expression-DUdhF3Ei.mjs} +113 -29
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +15 -9
- package/dist/{runtime-COEYYPyw.js → runtime/client/lazy.js} +2596 -2182
- package/dist/runtime/client/{index.d.ts → runtime.d.ts} +89 -47
- package/dist/runtime/client/{index.js → runtime.js} +2473 -2183
- package/dist/runtime/index.d.ts +46 -5
- package/dist/runtime/index.js +4956 -2
- package/dist/runtime/server/index.d.mts +85 -63
- package/dist/runtime/server/index.mjs +2462 -2193
- package/dist/runtime/server/runner.d.mts +44 -32
- package/dist/runtime/server/runner.mjs +335 -383
- package/dist/signals/index.d.ts +47 -0
- package/dist/signals/index.js +199 -0
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +97 -3
- package/dist/testing/index.mjs +197 -45
- package/dist/{validation-Byxie0Uk.mjs → validation-2QipI30K.mjs} +90 -77
- package/package.json +41 -28
- package/dist/index-hS-KBdAP.d.ts +0 -30
- package/dist/jsx-runtime-DlDkTqps.d.ts +0 -28
- package/dist/jsx-runtime.d.ts +0 -2
- package/dist/jsx-runtime.js +0 -2
- /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
|
@@ -105,7 +105,7 @@ interface FunctionalUtilities {
|
|
|
105
105
|
map: (children: VNode[], cb: (vnode: ChildNode$1, index: number, array: ChildNode$1[]) => ChildNode$1) => VNode[];
|
|
106
106
|
}
|
|
107
107
|
interface FunctionalComponent<T = {}> {
|
|
108
|
-
(props: T, children: VNode[], utils: FunctionalUtilities): VNode |
|
|
108
|
+
(props: T, children: VNode[], utils: FunctionalUtilities): VNode | null;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* A Child VDOM node
|
|
@@ -116,7 +116,7 @@ interface FunctionalComponent<T = {}> {
|
|
|
116
116
|
* {@link FunctionalUtilities}).
|
|
117
117
|
*/
|
|
118
118
|
interface ChildNode$1 {
|
|
119
|
-
vtag?: string | number | Function;
|
|
119
|
+
vtag?: string | number | Function | symbol | null;
|
|
120
120
|
vkey?: string | number;
|
|
121
121
|
vtext?: string;
|
|
122
122
|
vchildren?: VNode[];
|
|
@@ -128,17 +128,21 @@ interface ChildNode$1 {
|
|
|
128
128
|
*/
|
|
129
129
|
interface VNode {
|
|
130
130
|
$flags$: number;
|
|
131
|
-
$tag$: string | number | Function;
|
|
131
|
+
$tag$: string | number | Function | symbol | null;
|
|
132
132
|
$elm$: any;
|
|
133
133
|
$text$: string;
|
|
134
134
|
$children$: VNode[];
|
|
135
135
|
$attrs$?: any;
|
|
136
136
|
$name$?: string;
|
|
137
137
|
$key$?: string | number;
|
|
138
|
+
/** Signal reference for vdom bypass: signal text nodes store the signal here. */
|
|
139
|
+
$signal$?: any;
|
|
138
140
|
}
|
|
139
141
|
interface CustomElementsDefineOptions {
|
|
140
142
|
exclude?: string[];
|
|
141
143
|
syncQueue?: boolean;
|
|
144
|
+
/** Scoped custom element registry to define components in. Defaults to the global registry. */
|
|
145
|
+
registry?: CustomElementRegistry;
|
|
142
146
|
jmp?: (c: Function) => any;
|
|
143
147
|
raf?: (c: FrameRequestCallback) => number;
|
|
144
148
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
@@ -147,7 +151,7 @@ interface CustomElementsDefineOptions {
|
|
|
147
151
|
}
|
|
148
152
|
//#endregion
|
|
149
153
|
//#region src/declarations/stencil-public-compiler.d.ts
|
|
150
|
-
interface
|
|
154
|
+
interface SsrDocumentOptions {
|
|
151
155
|
/**
|
|
152
156
|
* Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
|
|
153
157
|
* a random ID will be generated
|
|
@@ -164,7 +168,7 @@ interface HydrateDocumentOptions {
|
|
|
164
168
|
* JavaScript to read the structure of the HTML and rebuild each
|
|
165
169
|
* component. Defaults to `true`.
|
|
166
170
|
*/
|
|
167
|
-
|
|
171
|
+
clientSsrAnnotations?: boolean;
|
|
168
172
|
/**
|
|
169
173
|
* Constrain `setTimeout()` to 1ms, but still async. Also
|
|
170
174
|
* only allows `setInterval()` to fire once, also constrained to 1ms.
|
|
@@ -263,10 +267,14 @@ interface HydrateDocumentOptions {
|
|
|
263
267
|
default: 'declarative-shadow-dom' | 'scoped';
|
|
264
268
|
} | boolean;
|
|
265
269
|
}
|
|
266
|
-
interface SerializeDocumentOptions extends
|
|
270
|
+
interface SerializeDocumentOptions extends SsrDocumentOptions {
|
|
267
271
|
/**
|
|
268
272
|
* Runs after the `document` has been hydrated.
|
|
269
273
|
*/
|
|
274
|
+
afterSsr?(document: any): any | Promise<any>;
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated Use `afterSsr` instead.
|
|
277
|
+
*/
|
|
270
278
|
afterHydrate?(document: any): any | Promise<any>;
|
|
271
279
|
/**
|
|
272
280
|
* Sets an approximate line width the HTML should attempt to stay within.
|
|
@@ -279,6 +287,10 @@ interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
|
279
287
|
/**
|
|
280
288
|
* Runs before the `document` has been hydrated.
|
|
281
289
|
*/
|
|
290
|
+
beforeSsr?(document: any): any | Promise<any>;
|
|
291
|
+
/**
|
|
292
|
+
* @deprecated Use `beforeSsr` instead.
|
|
293
|
+
*/
|
|
282
294
|
beforeHydrate?(document: any): any | Promise<any>;
|
|
283
295
|
/**
|
|
284
296
|
* Format the HTML in a nicely indented format.
|
|
@@ -316,7 +328,7 @@ interface SerializeDocumentOptions extends HydrateDocumentOptions {
|
|
|
316
328
|
*/
|
|
317
329
|
modes?: ResolutionHandler[];
|
|
318
330
|
}
|
|
319
|
-
interface
|
|
331
|
+
interface SsrFactoryOptions extends SerializeDocumentOptions {
|
|
320
332
|
serializeToHtml: boolean;
|
|
321
333
|
destroyWindow: boolean;
|
|
322
334
|
destroyDocument: boolean;
|
|
@@ -410,7 +422,7 @@ interface HostElement extends HTMLElement {
|
|
|
410
422
|
disconnectedCallback?: () => void;
|
|
411
423
|
host?: Element;
|
|
412
424
|
forceUpdate?: () => void;
|
|
413
|
-
|
|
425
|
+
__s_ghr?: () => HostRef;
|
|
414
426
|
/**
|
|
415
427
|
* Unique stencil id for this element
|
|
416
428
|
*/
|
|
@@ -466,7 +478,7 @@ interface HostElement extends HTMLElement {
|
|
|
466
478
|
['s-p']?: Promise<void>[];
|
|
467
479
|
componentOnReady?: () => Promise<this>;
|
|
468
480
|
}
|
|
469
|
-
interface
|
|
481
|
+
interface SsrResults {
|
|
470
482
|
buildId: string;
|
|
471
483
|
diagnostics: Diagnostic[];
|
|
472
484
|
url: string;
|
|
@@ -478,42 +490,42 @@ interface HydrateResults {
|
|
|
478
490
|
search: string | null;
|
|
479
491
|
hash: string | null;
|
|
480
492
|
html: string | null;
|
|
481
|
-
components:
|
|
482
|
-
anchors:
|
|
483
|
-
imgs:
|
|
484
|
-
scripts:
|
|
485
|
-
styles:
|
|
486
|
-
staticData:
|
|
493
|
+
components: SsrComponent[];
|
|
494
|
+
anchors: SsrAnchorElement[];
|
|
495
|
+
imgs: SsrImgElement[];
|
|
496
|
+
scripts: SsrScriptElement[];
|
|
497
|
+
styles: SsrStyleElement[];
|
|
498
|
+
staticData: SsrStaticData[];
|
|
487
499
|
title: string | null;
|
|
488
500
|
hydratedCount: number;
|
|
489
501
|
httpStatus: number | null;
|
|
490
502
|
}
|
|
491
|
-
interface
|
|
503
|
+
interface SsrComponent {
|
|
492
504
|
tag: string;
|
|
493
505
|
mode: string;
|
|
494
506
|
count: number;
|
|
495
507
|
depth: number;
|
|
496
508
|
}
|
|
497
|
-
interface
|
|
509
|
+
interface SsrElement {
|
|
498
510
|
[attrName: string]: string | undefined;
|
|
499
511
|
}
|
|
500
|
-
interface
|
|
512
|
+
interface SsrAnchorElement extends SsrElement {
|
|
501
513
|
href?: string;
|
|
502
514
|
target?: string;
|
|
503
515
|
}
|
|
504
|
-
interface
|
|
516
|
+
interface SsrImgElement extends SsrElement {
|
|
505
517
|
src?: string;
|
|
506
518
|
}
|
|
507
|
-
interface
|
|
519
|
+
interface SsrScriptElement extends SsrElement {
|
|
508
520
|
src?: string;
|
|
509
521
|
type?: string;
|
|
510
522
|
}
|
|
511
|
-
interface
|
|
523
|
+
interface SsrStyleElement extends SsrElement {
|
|
512
524
|
id?: string;
|
|
513
525
|
href?: string;
|
|
514
526
|
content?: string;
|
|
515
527
|
}
|
|
516
|
-
interface
|
|
528
|
+
interface SsrStaticData {
|
|
517
529
|
id: string;
|
|
518
530
|
type: string;
|
|
519
531
|
content: string;
|
|
@@ -610,61 +622,61 @@ interface RenderNode extends HostElement {
|
|
|
610
622
|
['s-en']?: '' | /*shadow*/'c';
|
|
611
623
|
/**
|
|
612
624
|
* On a `scoped: true` component
|
|
613
|
-
* with `
|
|
625
|
+
* with `lightDomPatches` flag enabled,
|
|
614
626
|
* returns the internal `childNodes` of the component
|
|
615
627
|
*/
|
|
616
628
|
readonly __childNodes?: NodeListOf<ChildNode>;
|
|
617
629
|
/**
|
|
618
630
|
* On a `scoped: true` component
|
|
619
|
-
* with `
|
|
631
|
+
* with `lightDomPatches` flag enabled,
|
|
620
632
|
* returns the internal `children` of the component
|
|
621
633
|
*/
|
|
622
634
|
readonly __children?: HTMLCollectionOf<Element>;
|
|
623
635
|
/**
|
|
624
636
|
* On a `scoped: true` component
|
|
625
|
-
* with `
|
|
637
|
+
* with `lightDomPatches` flag enabled,
|
|
626
638
|
* returns the internal `firstChild` of the component
|
|
627
639
|
*/
|
|
628
640
|
readonly __firstChild?: ChildNode;
|
|
629
641
|
/**
|
|
630
642
|
* On a `scoped: true` component
|
|
631
|
-
* with `
|
|
643
|
+
* with `lightDomPatches` flag enabled,
|
|
632
644
|
* returns the internal `lastChild` of the component
|
|
633
645
|
*/
|
|
634
646
|
readonly __lastChild?: ChildNode;
|
|
635
647
|
/**
|
|
636
648
|
* On a `scoped: true` component
|
|
637
|
-
* with `
|
|
649
|
+
* with `lightDomPatches` flag enabled,
|
|
638
650
|
* returns the internal `textContent` of the component
|
|
639
651
|
*/
|
|
640
652
|
__textContent?: string;
|
|
641
653
|
/**
|
|
642
654
|
* On a `scoped: true` component
|
|
643
|
-
* with `
|
|
655
|
+
* with `lightDomPatches` flag enabled,
|
|
644
656
|
* gives access to the original `append` method
|
|
645
657
|
*/
|
|
646
658
|
__append?: (...nodes: (Node | string)[]) => void;
|
|
647
659
|
/**
|
|
648
660
|
* On a `scoped: true` component
|
|
649
|
-
* with `
|
|
661
|
+
* with `lightDomPatches` flag enabled,
|
|
650
662
|
* gives access to the original `prepend` method
|
|
651
663
|
*/
|
|
652
664
|
__prepend?: (...nodes: (Node | string)[]) => void;
|
|
653
665
|
/**
|
|
654
666
|
* On a `scoped: true` component
|
|
655
|
-
* with `
|
|
667
|
+
* with `lightDomPatches` flag enabled,
|
|
656
668
|
* gives access to the original `appendChild` method
|
|
657
669
|
*/
|
|
658
670
|
__appendChild?: <T extends Node>(newChild: T) => T;
|
|
659
671
|
/**
|
|
660
672
|
* On a `scoped: true` component
|
|
661
|
-
* with `
|
|
673
|
+
* with `lightDomPatches` flag enabled,
|
|
662
674
|
* gives access to the original `insertBefore` method
|
|
663
675
|
*/
|
|
664
676
|
__insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
|
|
665
677
|
/**
|
|
666
678
|
* On a `scoped: true` component
|
|
667
|
-
* with `
|
|
679
|
+
* with `lightDomPatches` flag enabled,
|
|
668
680
|
* gives access to the original `removeChild` method
|
|
669
681
|
*/
|
|
670
682
|
__removeChild?: <T extends Node>(child: T) => T;
|
|
@@ -702,31 +714,31 @@ interface PatchedSlotNode extends Node {
|
|
|
702
714
|
['s-sr']?: boolean;
|
|
703
715
|
/**
|
|
704
716
|
* On a `scoped: true` component
|
|
705
|
-
* with `
|
|
717
|
+
* with `lightDomPatches` flag enabled,
|
|
706
718
|
* returns the actual `parentNode` of the component
|
|
707
719
|
*/
|
|
708
720
|
__parentNode?: RenderNode;
|
|
709
721
|
/**
|
|
710
722
|
* On a `scoped: true` component
|
|
711
|
-
* with `
|
|
723
|
+
* with `lightDomPatches` flag enabled,
|
|
712
724
|
* returns the actual `nextSibling` of the component
|
|
713
725
|
*/
|
|
714
726
|
__nextSibling?: RenderNode;
|
|
715
727
|
/**
|
|
716
728
|
* On a `scoped: true` component
|
|
717
|
-
* with `
|
|
729
|
+
* with `lightDomPatches` flag enabled,
|
|
718
730
|
* returns the actual `previousSibling` of the component
|
|
719
731
|
*/
|
|
720
732
|
__previousSibling?: RenderNode;
|
|
721
733
|
/**
|
|
722
734
|
* On a `scoped: true` component
|
|
723
|
-
* with `
|
|
735
|
+
* with `lightDomPatches` flag enabled,
|
|
724
736
|
* returns the actual `nextElementSibling` of the component
|
|
725
737
|
*/
|
|
726
738
|
__nextElementSibling?: RenderNode;
|
|
727
739
|
/**
|
|
728
740
|
* On a `scoped: true` component
|
|
729
|
-
* with `
|
|
741
|
+
* with `lightDomPatches` flag enabled,
|
|
730
742
|
* returns the actual `nextElementSibling` of the component
|
|
731
743
|
*/
|
|
732
744
|
__previousElementSibling?: RenderNode;
|
|
@@ -827,7 +839,7 @@ type ComponentRuntimeReflectingAttr = [string, string | undefined];
|
|
|
827
839
|
* associated {@link HostRef} instance.
|
|
828
840
|
*/
|
|
829
841
|
type RuntimeRef = HostElement | {
|
|
830
|
-
|
|
842
|
+
__s_ghr?: () => HostRef;
|
|
831
843
|
};
|
|
832
844
|
/**
|
|
833
845
|
* Interface used to track an Element, it's virtual Node (`VNode`), and other data
|
|
@@ -838,6 +850,9 @@ interface HostRef {
|
|
|
838
850
|
$cmpMeta$: ComponentRuntimeMeta;
|
|
839
851
|
$hostElement$: HostElement;
|
|
840
852
|
$instanceValues$?: Map<string, any>;
|
|
853
|
+
$signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
|
|
854
|
+
/** Dispose function that tears down all signal effects for this component. */
|
|
855
|
+
$signalCleanup$?: () => void;
|
|
841
856
|
$serializerValues$?: Map<string, string>;
|
|
842
857
|
$lazyInstance$?: ComponentInterface;
|
|
843
858
|
/**
|
|
@@ -928,15 +943,26 @@ type ChildType = VNode | number | string;
|
|
|
928
943
|
//#region src/server/platform/h-async.d.ts
|
|
929
944
|
declare const hAsync: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode | Promise<VNode>;
|
|
930
945
|
//#endregion
|
|
931
|
-
//#region src/server/platform/
|
|
932
|
-
|
|
946
|
+
//#region src/server/platform/ssr-app.d.ts
|
|
947
|
+
/**
|
|
948
|
+
* SSR a Document by patching the DOM APIs to wait for components to be connected and hydrated
|
|
949
|
+
* before allowing them to be added to the document.
|
|
950
|
+
* Once all components are hydrated, the `afterSsr` callback is called so that the caller can serialize
|
|
951
|
+
* the document to HTML and send it back to the client.
|
|
952
|
+
* @param win The window to use for SSR. This should be a patched window created by `patchDomImplementation`.
|
|
953
|
+
* @param opts The options to use for SSR. This is used to configure which components should be hydrated, how long to wait for hydration, etc.
|
|
954
|
+
* @param results The results object to store the hydration results.
|
|
955
|
+
* @param afterSsr The callback to be called after SSR is complete.
|
|
956
|
+
* @param resolve The resolve function to be called when SSR is complete.
|
|
957
|
+
*/
|
|
958
|
+
declare function ssrApp(win: Window & typeof globalThis, opts: SsrFactoryOptions, results: SsrResults, afterSsr: (win: Window, opts: SsrFactoryOptions, results: SsrResults, resolve: (results: SsrResults) => void) => void, resolve: (results: SsrResults) => void): void;
|
|
933
959
|
//#endregion
|
|
934
|
-
//#region src/runtime/bootstrap-
|
|
960
|
+
//#region src/runtime/bootstrap-standalone.d.ts
|
|
935
961
|
declare const defineCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => void;
|
|
936
962
|
declare const proxyCustomElement: (Cstr: any, compactMeta: ComponentRuntimeMetaCompact) => any;
|
|
937
963
|
declare const forceModeUpdate: (elm: RenderNode) => void;
|
|
938
964
|
//#endregion
|
|
939
|
-
//#region src/runtime/bootstrap-
|
|
965
|
+
//#region src/runtime/bootstrap-loader.d.ts
|
|
940
966
|
declare const bootstrapLazy: (lazyBundles: LazyBundlesRuntimeData, options?: CustomElementsDefineOptions) => void;
|
|
941
967
|
//#endregion
|
|
942
968
|
//#region src/runtime/connected-callback.d.ts
|
|
@@ -947,6 +973,18 @@ declare const disconnectedCallback: (elm: HostElement) => Promise<void>;
|
|
|
947
973
|
//#endregion
|
|
948
974
|
//#region src/runtime/element.d.ts
|
|
949
975
|
declare const getElement: (ref: any) => HostElement;
|
|
976
|
+
/**
|
|
977
|
+
* Get the shadow root for a Stencil component's host element.
|
|
978
|
+
* This works for both open and closed shadow DOM modes.
|
|
979
|
+
*
|
|
980
|
+
* For closed shadow DOM, `element.shadowRoot` returns `null` by design,
|
|
981
|
+
* but Stencil stores the reference internally so components can still
|
|
982
|
+
* access their own shadow root.
|
|
983
|
+
*
|
|
984
|
+
* @param element The host element (from @Element() decorator)
|
|
985
|
+
* @returns The shadow root, or null if no shadow root exists
|
|
986
|
+
*/
|
|
987
|
+
declare const getShadowRoot: (element: HTMLElement) => ShadowRoot | null;
|
|
950
988
|
//#endregion
|
|
951
989
|
//#region src/runtime/event-emitter.d.ts
|
|
952
990
|
declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
|
|
@@ -1047,26 +1085,11 @@ declare const forceUpdate: (ref: any) => boolean;
|
|
|
1047
1085
|
declare const Host: {};
|
|
1048
1086
|
//#endregion
|
|
1049
1087
|
//#region src/runtime/vdom/jsx-runtime.d.ts
|
|
1050
|
-
/**
|
|
1051
|
-
* JSX runtime function for creating elements in production mode.
|
|
1052
|
-
* Called by TypeScript's jsx transform for elements without static children.
|
|
1053
|
-
*
|
|
1054
|
-
* @param type - The element type (string tag name or functional component)
|
|
1055
|
-
* @param props - The element props (includes children)
|
|
1056
|
-
* @param key - Optional key for the element
|
|
1057
|
-
* @returns A virtual DOM node
|
|
1058
|
-
*/
|
|
1059
1088
|
declare function jsx(type: any, props: any, key?: string): VNode;
|
|
1060
1089
|
/**
|
|
1061
|
-
*
|
|
1062
|
-
* Called by TypeScript's jsx transform as an optimization when children are static.
|
|
1063
|
-
*
|
|
1064
|
-
* @param type - The element type (string tag name or functional component)
|
|
1065
|
-
* @param props - The element props (includes children)
|
|
1066
|
-
* @param key - Optional key for the element
|
|
1067
|
-
* @returns A virtual DOM node
|
|
1090
|
+
* @alias
|
|
1068
1091
|
*/
|
|
1069
|
-
declare
|
|
1092
|
+
declare const jsxs: typeof jsx;
|
|
1070
1093
|
//#endregion
|
|
1071
1094
|
//#region src/runtime/vdom/vdom-annotations.d.ts
|
|
1072
1095
|
/**
|
|
@@ -1120,7 +1143,6 @@ declare const setPlatformHelpers: (helpers: {
|
|
|
1120
1143
|
rel?: (el: any, eventName: string, listener: any, options: any) => void;
|
|
1121
1144
|
ce?: (eventName: string, opts?: any) => any;
|
|
1122
1145
|
}) => void;
|
|
1123
|
-
declare const supportsShadow: boolean;
|
|
1124
1146
|
declare const supportsListenerOptions = false;
|
|
1125
1147
|
declare const supportsConstructableStylesheets = false;
|
|
1126
1148
|
declare const supportsMutableAdoptedStyleSheets = false;
|
|
@@ -1142,7 +1164,7 @@ declare const modeResolutionChain: ResolutionHandler[];
|
|
|
1142
1164
|
declare const getAssetPath: (path: string) => string;
|
|
1143
1165
|
/**
|
|
1144
1166
|
* Sets the base URL for resolving asset paths in the server/hydrate context.
|
|
1145
|
-
* @param path - The base URL to use for resolving asset paths. This should typically be set to the same value as the `resourcesUrl` option passed to `
|
|
1167
|
+
* @param path - The base URL to use for resolving asset paths. This should typically be set to the same value as the `resourcesUrl` option passed to `ssrDocument` to ensure that asset paths are resolved correctly in the server/hydrate context.
|
|
1146
1168
|
* If not set, it defaults to './', which is a reasonable default for server-side rendering.
|
|
1147
1169
|
* @returns void
|
|
1148
1170
|
*/
|
|
@@ -1151,7 +1173,7 @@ declare const setAssetPath: (path: string) => string;
|
|
|
1151
1173
|
* Checks to see any components are rendered with `scoped`
|
|
1152
1174
|
* @param opts - SSR options
|
|
1153
1175
|
*/
|
|
1154
|
-
declare const
|
|
1176
|
+
declare const setScopedSsr: (opts: SsrFactoryOptions) => void;
|
|
1155
1177
|
declare const needsScopedSSR: () => boolean;
|
|
1156
1178
|
//#endregion
|
|
1157
|
-
export { BUILD, Build, Env, Fragment, Host, Mixin, NAMESPACE, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getValue, hAsync as h,
|
|
1179
|
+
export { BUILD, Build, Env, Fragment, Host, Mixin, NAMESPACE, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRenderingRef, getShadowRoot, getValue, hAsync as h, insertVdomAnnotations, isMemberInElement, jsx, jsxs, loadModule, modeResolutionChain, needsScopedSSR, nextTick, parsePropertyValue, plt, postUpdateComponent, proxyComponent, proxyCustomElement, readTask, registerComponents, registerHost, registerInstance, renderVdom, setAssetPath, setErrorHandler, setMode, setNonce, setPlatformHelpers, setScopedSsr, setTagTransformer, setValue, ssrApp, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, transformTag, win, writeTask };
|