@stencil/core 5.0.0-alpha.9 → 5.0.0-beta.1
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/README.md +94 -0
- package/dist/app-data/index.d.ts +1 -1
- package/dist/app-data/index.js +4 -1
- package/dist/client-BRu0GtRn.mjs +2368 -0
- package/dist/compiler/browser.d.ts +1534 -0
- package/dist/compiler/browser.js +16436 -0
- package/dist/compiler/index.d.mts +167 -3
- package/dist/compiler/index.mjs +3 -3
- package/dist/compiler/utils/index.d.mts +272 -2
- package/dist/compiler/utils/index.mjs +4 -3
- package/dist/{compiler-C0qmPoKu.mjs → compiler-CJG6qvQt.mjs} +2978 -1231
- package/dist/declarations/stencil-ext-modules.d.ts +5 -5
- package/dist/declarations/stencil-public-compiler.d.ts +226 -69
- package/dist/declarations/stencil-public-docs.d.ts +9 -0
- package/dist/declarations/stencil-public-runtime.d.ts +111 -10
- package/dist/fragment-Di1hWOC8.mjs +4 -0
- package/dist/{regular-expression-CFVJOTUh.mjs → helpers-Cpp3qc3u.mjs} +31 -15
- package/dist/{index-xAkMgLX_.d.ts → index-BXAcVN2j.d.ts} +152 -20
- package/dist/{index-vY35H18z.d.mts → index-BopBfjPu.d.mts} +508 -848
- package/dist/index-DmHmu3y0.d.mts +100 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +171 -2
- package/dist/jsx-runtime.mjs +2 -1
- package/dist/{node--akYC-sG.mjs → node-75gQKkFz.mjs} +60 -58
- package/dist/{chunk-z9aeyW2b.mjs → rolldown-runtime-BhDjJH2R.mjs} +1 -1
- package/dist/runtime/client/lazy.js +577 -189
- package/dist/runtime/client/runtime.d.ts +178 -21
- package/dist/runtime/client/runtime.js +577 -189
- package/dist/runtime/index.d.ts +32 -4
- package/dist/runtime/index.js +576 -187
- package/dist/runtime/server/index.d.mts +107 -9
- package/dist/runtime/server/index.mjs +499 -182
- package/dist/runtime/server/runner.d.mts +3 -0
- package/dist/runtime/server/runner.mjs +320 -337
- package/dist/signals/index.d.ts +2 -0
- package/dist/signals/index.js +4 -1
- package/dist/sys/node/index.d.mts +1 -2
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.d.mts +1 -1
- package/dist/sys/node/worker.mjs +6 -3
- package/dist/testing/index.d.mts +4731 -105
- package/dist/testing/index.mjs +7563 -797
- package/dist/util-IKfWWLJo.mjs +724 -0
- package/dist/validation-DAdGTrys.mjs +791 -0
- package/package.json +31 -27
- package/dist/client-aTQ7xHxx.mjs +0 -4678
- package/dist/index-BvkyxSY6.d.mts +0 -205
- package/dist/validation-ByxKj8bC.mjs +0 -1458
- /package/{LICENSE.md → LICENSE} +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { BUILD, Env, NAMESPACE } from "@stencil/core/app-data";
|
|
2
|
+
import "rolldown";
|
|
3
|
+
import "typescript";
|
|
2
4
|
//#region src/declarations/stencil-public-runtime.d.ts
|
|
3
|
-
interface ElementDecorator {
|
|
4
|
-
(): PropertyDecorator;
|
|
5
|
-
}
|
|
6
5
|
interface EventDecorator {
|
|
7
6
|
(opts?: EventOptions): PropertyDecorator;
|
|
8
7
|
}
|
|
@@ -30,11 +29,6 @@ interface UserBuildConditionals {
|
|
|
30
29
|
isServer: boolean;
|
|
31
30
|
isTesting: boolean;
|
|
32
31
|
}
|
|
33
|
-
/**
|
|
34
|
-
* The `@Element()` decorator is a reference to the actual host element
|
|
35
|
-
* once it has rendered.
|
|
36
|
-
*/
|
|
37
|
-
declare const Element$2: ElementDecorator;
|
|
38
32
|
/**
|
|
39
33
|
* Components can emit data and events using the Event Emitter decorator.
|
|
40
34
|
* To dispatch Custom DOM events for other components to handle, use the
|
|
@@ -49,6 +43,27 @@ interface HTMLStencilElement extends HTMLElement {
|
|
|
49
43
|
componentOnReady(): Promise<this>;
|
|
50
44
|
}
|
|
51
45
|
type TagTransformer = (tag: string) => string;
|
|
46
|
+
/**
|
|
47
|
+
* A constructor type that can be used as the base for mixin factories.
|
|
48
|
+
*
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { MixedInCtor } from '@stencil/core';
|
|
51
|
+
*
|
|
52
|
+
* const AFactoryFn = <B extends MixedInCtor>(Base: B) => {class A extends Base { propA = A }; return A;}
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
type MixedInCtor<T = {}> = new (...args: any[]) => T;
|
|
56
|
+
/**
|
|
57
|
+
* A map of `@Prop`/`@State` property names to their new and previous
|
|
58
|
+
* values, passed to `componentShouldUpdate` once per render cycle.
|
|
59
|
+
*
|
|
60
|
+
* Pass `this` as `T` to type `changes` against your component's own
|
|
61
|
+
* members, e.g. `componentShouldUpdate(changes: ComponentShouldUpdateChanges<this>)`.
|
|
62
|
+
*/
|
|
63
|
+
type ComponentShouldUpdateChanges<T = any> = { [K in Extract<keyof T, string>]?: {
|
|
64
|
+
newVal: T[K];
|
|
65
|
+
oldVal: T[K];
|
|
66
|
+
}; };
|
|
52
67
|
interface ComponentInterface {
|
|
53
68
|
connectedCallback?(): void;
|
|
54
69
|
disconnectedCallback?(): void;
|
|
@@ -74,14 +89,18 @@ interface ComponentInterface {
|
|
|
74
89
|
*/
|
|
75
90
|
componentDidLoad?(): void;
|
|
76
91
|
/**
|
|
77
|
-
*
|
|
92
|
+
* One or more `@Prop` or `@State` properties changed and a rerender is
|
|
93
|
+
* about to be requested. `changes` contains every property that changed
|
|
94
|
+
* since the last render, keyed by property name.
|
|
78
95
|
*
|
|
79
|
-
* Called
|
|
80
|
-
*
|
|
96
|
+
* Called once per render cycle, batching all properties that changed
|
|
97
|
+
* synchronously since the last render.
|
|
98
|
+
*
|
|
99
|
+
* Return `false` to prevent the pending render.
|
|
81
100
|
*
|
|
82
101
|
* componentShouldUpdate is not called on the first render.
|
|
83
102
|
*/
|
|
84
|
-
componentShouldUpdate?(
|
|
103
|
+
componentShouldUpdate?(changes: ComponentShouldUpdateChanges<this>): boolean | void;
|
|
85
104
|
/**
|
|
86
105
|
* The component is about to update and re-render.
|
|
87
106
|
*
|
|
@@ -104,6 +123,36 @@ interface ComponentInterface {
|
|
|
104
123
|
render?(): any;
|
|
105
124
|
[memberName: string]: any;
|
|
106
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* A reusable behavior that hooks into a `ReactiveControllerHost`'s lifecycle. Modeled after Lit's
|
|
128
|
+
* `ReactiveController` pattern: implement the hooks you need, then register an instance with a host
|
|
129
|
+
* via `host.addController(this)`.
|
|
130
|
+
*/
|
|
131
|
+
interface ReactiveController {
|
|
132
|
+
hostConnected?(): void;
|
|
133
|
+
hostDisconnected?(): void;
|
|
134
|
+
hostWillLoad?(): Promise<void> | void;
|
|
135
|
+
hostDidLoad?(): void;
|
|
136
|
+
hostWillRender?(): Promise<void> | void;
|
|
137
|
+
hostDidRender?(): void;
|
|
138
|
+
hostWillUpdate?(): Promise<void> | void;
|
|
139
|
+
hostDidUpdate?(): void;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* The shape added to a component by mixing in `ReactiveControllerHost` (see below).
|
|
143
|
+
*/
|
|
144
|
+
interface ReactiveControllerHostInterface extends ComponentInterface, HTMLElement {
|
|
145
|
+
readonly controllers: ReadonlySet<ReactiveController>;
|
|
146
|
+
addController(controller: ReactiveController): void;
|
|
147
|
+
removeController(controller: ReactiveController): void;
|
|
148
|
+
requestUpdate(): void;
|
|
149
|
+
/**
|
|
150
|
+
* Resolves once the next pending render commits. Matches the shape of Lit's
|
|
151
|
+
* `ReactiveControllerHost.updateComplete`, for interop with controllers written against Lit's API
|
|
152
|
+
* (e.g. `@lit/context`).
|
|
153
|
+
*/
|
|
154
|
+
readonly updateComplete: Promise<boolean>;
|
|
155
|
+
}
|
|
107
156
|
interface RafCallback {
|
|
108
157
|
(timeStamp: number): void;
|
|
109
158
|
}
|
|
@@ -414,7 +463,7 @@ declare namespace JSXBase {
|
|
|
414
463
|
type?: string;
|
|
415
464
|
value?: string | string[] | number;
|
|
416
465
|
popoverTargetAction?: string;
|
|
417
|
-
popoverTargetElement?: Element
|
|
466
|
+
popoverTargetElement?: globalThis.Element | null;
|
|
418
467
|
popoverTarget?: string;
|
|
419
468
|
command?: string;
|
|
420
469
|
commandFor?: string;
|
|
@@ -445,6 +494,7 @@ declare namespace JSXBase {
|
|
|
445
494
|
onClose?: (event: Event$1) => void;
|
|
446
495
|
open?: boolean;
|
|
447
496
|
returnValue?: string;
|
|
497
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
448
498
|
}
|
|
449
499
|
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
450
500
|
height?: number | string;
|
|
@@ -482,6 +532,8 @@ declare namespace JSXBase {
|
|
|
482
532
|
allowtransparency?: string | boolean;
|
|
483
533
|
frameBorder?: number | string;
|
|
484
534
|
frameborder?: number | string;
|
|
535
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
536
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
485
537
|
importance?: 'low' | 'auto' | 'high';
|
|
486
538
|
height?: number | string;
|
|
487
539
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -504,6 +556,8 @@ declare namespace JSXBase {
|
|
|
504
556
|
crossOrigin?: string;
|
|
505
557
|
crossorigin?: string;
|
|
506
558
|
decoding?: 'async' | 'auto' | 'sync';
|
|
559
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
560
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
507
561
|
importance?: 'low' | 'auto' | 'high';
|
|
508
562
|
height?: number | string;
|
|
509
563
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -581,7 +635,7 @@ declare namespace JSXBase {
|
|
|
581
635
|
webkitEntries?: any;
|
|
582
636
|
width?: number | string;
|
|
583
637
|
popoverTargetAction?: string;
|
|
584
|
-
popoverTargetElement?: Element
|
|
638
|
+
popoverTargetElement?: globalThis.Element | null;
|
|
585
639
|
popoverTarget?: string;
|
|
586
640
|
}
|
|
587
641
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
@@ -603,6 +657,8 @@ declare namespace JSXBase {
|
|
|
603
657
|
}
|
|
604
658
|
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
605
659
|
as?: string;
|
|
660
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
661
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
606
662
|
href?: string;
|
|
607
663
|
hrefLang?: string;
|
|
608
664
|
hreflang?: string;
|
|
@@ -726,6 +782,8 @@ declare namespace JSXBase {
|
|
|
726
782
|
crossOrigin?: string;
|
|
727
783
|
crossorigin?: string;
|
|
728
784
|
defer?: boolean;
|
|
785
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
786
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
729
787
|
importance?: 'low' | 'auto' | 'high';
|
|
730
788
|
integrity?: string;
|
|
731
789
|
nonce?: string;
|
|
@@ -841,7 +899,10 @@ declare namespace JSXBase {
|
|
|
841
899
|
tabIndex?: number;
|
|
842
900
|
tabindex?: number | string;
|
|
843
901
|
title?: string;
|
|
902
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
844
903
|
popover?: string | null;
|
|
904
|
+
focusgroup?: string;
|
|
905
|
+
focusgroupstart?: boolean;
|
|
845
906
|
inputMode?: string;
|
|
846
907
|
inputmode?: string;
|
|
847
908
|
enterKeyHint?: string;
|
|
@@ -1280,7 +1341,7 @@ declare namespace JSXBase {
|
|
|
1280
1341
|
[key: `aria${string}`]: string | boolean | undefined;
|
|
1281
1342
|
}
|
|
1282
1343
|
}
|
|
1283
|
-
interface JSXAttributes<T = Element
|
|
1344
|
+
interface JSXAttributes<T = globalThis.Element> {
|
|
1284
1345
|
key?: string | number;
|
|
1285
1346
|
ref?: (elm?: T) => void;
|
|
1286
1347
|
children?: any;
|
|
@@ -1599,6 +1660,15 @@ interface HostElement extends HTMLElement {
|
|
|
1599
1660
|
* must be resolved for the top, ancestor component to be fully hydrated
|
|
1600
1661
|
*/
|
|
1601
1662
|
['s-p']?: Promise<void>[];
|
|
1663
|
+
/**
|
|
1664
|
+
* Pending Connects:
|
|
1665
|
+
* A list of {@link HostRef.$onFirstConnectPromise$} promises for descendants that
|
|
1666
|
+
* were already registered with this component (their nearest Stencil ancestor) by
|
|
1667
|
+
* the time this component's own initial `componentWillLoad` was scheduled. Awaited
|
|
1668
|
+
* so this component's `componentWillLoad` can't fire before those descendants'
|
|
1669
|
+
* real `connectedCallback`s have.
|
|
1670
|
+
*/
|
|
1671
|
+
['s-pc']?: Promise<void>[];
|
|
1602
1672
|
componentOnReady?: () => Promise<this>;
|
|
1603
1673
|
}
|
|
1604
1674
|
/**
|
|
@@ -1638,6 +1708,11 @@ interface RenderNode extends HostElement {
|
|
|
1638
1708
|
* Slot name of either the slot itself or the slotted node
|
|
1639
1709
|
*/
|
|
1640
1710
|
['s-sn']?: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* `slot` attribute of a `<slot>` reference rendered as a text node (no fallback content),
|
|
1713
|
+
* since text nodes can't carry real DOM attributes.
|
|
1714
|
+
*/
|
|
1715
|
+
['s-sa']?: string;
|
|
1641
1716
|
/**
|
|
1642
1717
|
* Host element tag name:
|
|
1643
1718
|
* The tag name of the host element that this
|
|
@@ -1690,7 +1765,7 @@ interface RenderNode extends HostElement {
|
|
|
1690
1765
|
* Used to know the components encapsulation.
|
|
1691
1766
|
* empty "" for shadow, "c" from scoped
|
|
1692
1767
|
*/
|
|
1693
|
-
['s-en']?: '' | /*shadow*/'c';
|
|
1768
|
+
['s-en']?: '' | /*shadow*/ 'c';
|
|
1694
1769
|
/**
|
|
1695
1770
|
* On a `scoped: true` component
|
|
1696
1771
|
* with `lightDomPatches` flag enabled,
|
|
@@ -1815,10 +1890,26 @@ interface PatchedSlotNode extends Node {
|
|
|
1815
1890
|
__previousElementSibling?: RenderNode;
|
|
1816
1891
|
}
|
|
1817
1892
|
type LazyBundlesRuntimeData = LazyBundleRuntimeData[];
|
|
1818
|
-
type LazyBundleRuntimeData = [
|
|
1819
|
-
|
|
1893
|
+
type LazyBundleRuntimeData = [
|
|
1894
|
+
/** bundleIds */
|
|
1895
|
+
string, ComponentRuntimeMetaCompact[]];
|
|
1896
|
+
type ComponentRuntimeMetaCompact = [
|
|
1897
|
+
/** flags */
|
|
1898
|
+
number,
|
|
1899
|
+
/** tagname */
|
|
1900
|
+
string,
|
|
1901
|
+
/** members */
|
|
1902
|
+
{
|
|
1820
1903
|
[memberName: string]: ComponentRuntimeMember;
|
|
1821
|
-
}?,
|
|
1904
|
+
}?,
|
|
1905
|
+
/** listeners */
|
|
1906
|
+
ComponentRuntimeHostListener[]?,
|
|
1907
|
+
/** watchers */
|
|
1908
|
+
ComponentConstructorChangeHandlers?,
|
|
1909
|
+
/** serializers */
|
|
1910
|
+
ComponentConstructorChangeHandlers?,
|
|
1911
|
+
/** deserializers */
|
|
1912
|
+
ComponentConstructorChangeHandlers?];
|
|
1822
1913
|
/**
|
|
1823
1914
|
* Runtime metadata for a Stencil component
|
|
1824
1915
|
*/
|
|
@@ -1921,6 +2012,11 @@ interface HostRef {
|
|
|
1921
2012
|
$cmpMeta$: ComponentRuntimeMeta;
|
|
1922
2013
|
$hostElement$: HostElement;
|
|
1923
2014
|
$instanceValues$?: Map<string, any>;
|
|
2015
|
+
/**
|
|
2016
|
+
* Prop/state changes accumulated since the last render, flushed to
|
|
2017
|
+
* `componentShouldUpdate` once per render cycle.
|
|
2018
|
+
*/
|
|
2019
|
+
$queuedPropChanges$?: ComponentShouldUpdateChanges;
|
|
1924
2020
|
$signalValues$?: Map<string, import('@preact/signals-core').Signal<any>>;
|
|
1925
2021
|
/** Dispose function that tears down all signal effects for this component. */
|
|
1926
2022
|
$signalCleanup$?: () => void;
|
|
@@ -1956,6 +2052,21 @@ interface HostRef {
|
|
|
1956
2052
|
* It is called after {@link HostRef.$onInstancePromise$} resolves.
|
|
1957
2053
|
*/
|
|
1958
2054
|
$onRenderResolve$?: () => void;
|
|
2055
|
+
/**
|
|
2056
|
+
* A promise that resolves once this component's real `connectedCallback` has fired
|
|
2057
|
+
* for the first time. Created lazily - either by a descendant that needs to wait for
|
|
2058
|
+
* this component's connection before firing its own real `connectedCallback`
|
|
2059
|
+
* ({@link HOST_FLAGS.hasFiredConnected}), or by this component registering itself
|
|
2060
|
+
* with its nearest Stencil ancestor's `s-pc` list. This is what lets a component's
|
|
2061
|
+
* real `connectedCallback` (and, transitively, a pending ancestor's initial
|
|
2062
|
+
* `componentWillLoad`) stay ordered correctly regardless of which of an
|
|
2063
|
+
* ancestor/descendant pair's lazy module happens to resolve first.
|
|
2064
|
+
*/
|
|
2065
|
+
$onFirstConnectPromise$?: Promise<void>;
|
|
2066
|
+
/**
|
|
2067
|
+
* A callback which resolves {@link HostRef.$onFirstConnectPromise$}
|
|
2068
|
+
*/
|
|
2069
|
+
$onFirstConnectResolve$?: () => void;
|
|
1959
2070
|
$vnode$?: VNode;
|
|
1960
2071
|
$queuedListeners$?: [string, any][];
|
|
1961
2072
|
$rmListeners$?: (() => void)[];
|
|
@@ -1965,6 +2076,11 @@ interface HostRef {
|
|
|
1965
2076
|
* Defer connectedCallback until after first render for components with slot relocation.
|
|
1966
2077
|
*/
|
|
1967
2078
|
$deferredConnectedCallback$?: boolean;
|
|
2079
|
+
/**
|
|
2080
|
+
* The number of times this host's lazy component load has failed and been retried.
|
|
2081
|
+
* Used to give up retrying after {@link MAX_LAZY_LOAD_RETRIES} failed attempts.
|
|
2082
|
+
*/
|
|
2083
|
+
$loadRetryCount$?: number;
|
|
1968
2084
|
}
|
|
1969
2085
|
interface PlatformRuntime {
|
|
1970
2086
|
/**
|
|
@@ -2010,6 +2126,18 @@ interface PlatformRuntime {
|
|
|
2010
2126
|
}
|
|
2011
2127
|
type StyleMap = Map<string, CSSStyleSheet | string>;
|
|
2012
2128
|
type ChildType = VNode | number | string;
|
|
2129
|
+
type PropsType = VNodeProdData | number | string | null;
|
|
2130
|
+
interface VNodeProdData {
|
|
2131
|
+
key?: string | number;
|
|
2132
|
+
class?: {
|
|
2133
|
+
[className: string]: boolean;
|
|
2134
|
+
} | string;
|
|
2135
|
+
className?: {
|
|
2136
|
+
[className: string]: boolean;
|
|
2137
|
+
} | string;
|
|
2138
|
+
style?: any;
|
|
2139
|
+
[key: string]: any;
|
|
2140
|
+
}
|
|
2013
2141
|
//#endregion
|
|
2014
2142
|
//#region src/client/client-build.d.ts
|
|
2015
2143
|
declare const Build: UserBuildConditionals;
|
|
@@ -2223,6 +2351,32 @@ declare const Fragment: FunctionalComponent;
|
|
|
2223
2351
|
//#region src/runtime/host-listener.d.ts
|
|
2224
2352
|
declare const addHostEventListeners: (elm: HostElement, hostRef: HostRef, listeners?: ComponentRuntimeHostListener[]) => void;
|
|
2225
2353
|
//#endregion
|
|
2354
|
+
//#region src/runtime/inject-side-effect-style.d.ts
|
|
2355
|
+
/**
|
|
2356
|
+
* Registers a root (a shadow root, or `document`) to receive every side-effect CSS import
|
|
2357
|
+
* (a plain, non-component `import './foo.css'`), now and in future. Call in `connectedCallback`,
|
|
2358
|
+
* paired with `unregisterSideEffectStyleTarget` in `disconnectedCallback` so the registry doesn't
|
|
2359
|
+
* hold disconnected roots forever.
|
|
2360
|
+
* @param root the root to register
|
|
2361
|
+
*/
|
|
2362
|
+
declare function registerSideEffectStyleTarget(root: DocumentOrShadowRoot): void;
|
|
2363
|
+
/**
|
|
2364
|
+
* Removes a root registered via `registerSideEffectStyleTarget` - call in `disconnectedCallback`.
|
|
2365
|
+
* @param root the root to unregister
|
|
2366
|
+
*/
|
|
2367
|
+
declare function unregisterSideEffectStyleTarget(root: DocumentOrShadowRoot): void;
|
|
2368
|
+
/**
|
|
2369
|
+
* Applies plain (non-component) CSS text to every registered root - respects shadow DOM
|
|
2370
|
+
* encapsulation instead of always reaching for the top-level document. Not meant to be called
|
|
2371
|
+
* directly: this is what the compiler's CSS-to-ESM output calls for CSS with no Stencil `tag`
|
|
2372
|
+
* (i.e. not a component's own `styleUrl`), typically a third-party dependency's CSS import.
|
|
2373
|
+
*
|
|
2374
|
+
* `@font-face` rules are pulled out and adopted onto top-level `document` not per-root
|
|
2375
|
+
* (Chromium (https://issues.chromium.org/issues/41085401) per-root never loads).
|
|
2376
|
+
* @param cssText the CSS text to apply
|
|
2377
|
+
*/
|
|
2378
|
+
declare function injectSideEffectStyle(cssText: string): void;
|
|
2379
|
+
//#endregion
|
|
2226
2380
|
//#region src/runtime/mixin.d.ts
|
|
2227
2381
|
type Ctor<T = {}> = new (...args: any[]) => T;
|
|
2228
2382
|
declare function Mixin(...mixins: ((base: Ctor) => Ctor)[]): Ctor<{}>;
|
|
@@ -2318,6 +2472,9 @@ declare const setPlatformOptions: (opts: SetPlatformOptions) => PlatformRuntime
|
|
|
2318
2472
|
*/
|
|
2319
2473
|
declare const proxyComponent: (Cstr: ComponentConstructor, cmpMeta: ComponentRuntimeMeta, flags: number) => ComponentConstructor;
|
|
2320
2474
|
//#endregion
|
|
2475
|
+
//#region src/runtime/reactive-controller.d.ts
|
|
2476
|
+
declare const ReactiveControllerHost: <B extends MixedInCtor<ComponentInterface & HTMLElement>>(Base: B) => B & MixedInCtor<ReactiveControllerHostInterface>;
|
|
2477
|
+
//#endregion
|
|
2321
2478
|
//#region src/runtime/render.d.ts
|
|
2322
2479
|
/**
|
|
2323
2480
|
* Method to render a virtual DOM tree to a container element.
|
|
@@ -2369,7 +2526,7 @@ declare const postUpdateComponent: (hostRef: HostRef) => void;
|
|
|
2369
2526
|
declare const forceUpdate: (ref: any) => boolean;
|
|
2370
2527
|
//#endregion
|
|
2371
2528
|
//#region src/runtime/vdom/h.d.ts
|
|
2372
|
-
declare const h: (nodeName: any, vnodeData:
|
|
2529
|
+
declare const h: (nodeName: any, vnodeData: PropsType, ...children: ChildType[]) => VNode;
|
|
2373
2530
|
declare const Host: {};
|
|
2374
2531
|
//#endregion
|
|
2375
2532
|
//#region src/runtime/vdom/jsx-runtime.d.ts
|
|
@@ -2383,4 +2540,4 @@ declare const jsxs: typeof jsx;
|
|
|
2383
2540
|
*/
|
|
2384
2541
|
declare const jsxDEV: typeof jsx;
|
|
2385
2542
|
//#endregion
|
|
2386
|
-
export { AttachInternals, AttrDeserialize, BUILD, Build, Component, Element$1 as Element, Env, Event, Fragment, H, H as HTMLElement, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Listen, Method, Mixin, NAMESPACE, Prop, PropSerialize, STENCIL_DEV_MODE, State, Watch, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRegistry, getRenderingRef, getShadowRoot, getValue, h, isMemberInElement, jsx, jsxDEV, jsxs, loadModule, modeResolutionChain, needsScopedSSR, nextTick, normalizeWatchers, parsePropertyValue, plt, postUpdateComponent, promiseResolve, proxyComponent, proxyCustomElement, readTask, registerHost, registerInstance, render, resolveVar, setAssetPath, setErrorHandler, setLazyLoadBasePath, setMode, setNonce, setPlatformHelpers, setPlatformOptions, setRegistry, setScopedSsr, setTagTransformer, setValue, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, transformTag, win, writeTask };
|
|
2543
|
+
export { AttachInternals, AttrDeserialize, BUILD, Build, Component, Element$1 as Element, Env, Event, Fragment, H, H as HTMLElement, type HTMLStencilElement, HYDRATED_STYLE_ID, Host, type JSXBase, Listen, Method, Mixin, NAMESPACE, Prop, PropSerialize, ReactiveControllerHost, STENCIL_DEV_MODE, State, Watch, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, forceModeUpdate, forceUpdate, getAssetPath, getElement, getHostRef, getMode, getRegistry, getRenderingRef, getShadowRoot, getValue, h, injectSideEffectStyle, isMemberInElement, jsx, jsxDEV, jsxs, loadModule, modeResolutionChain, needsScopedSSR, nextTick, normalizeWatchers, parsePropertyValue, plt, postUpdateComponent, promiseResolve, proxyComponent, proxyCustomElement, readTask, registerHost, registerInstance, registerSideEffectStyleTarget, render, resolveVar, setAssetPath, setErrorHandler, setLazyLoadBasePath, setMode, setNonce, setPlatformHelpers, setPlatformOptions, setRegistry, setScopedSsr, setTagTransformer, setValue, styles, supportsConstructableStylesheets, supportsListenerOptions, supportsMutableAdoptedStyleSheets, transformTag, unregisterSideEffectStyleTarget, win, writeTask };
|