@stencil/core 5.0.0-alpha.2 → 5.0.0-alpha.3
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-DucyoZT4.mjs → client-CSm3x5ke.mjs} +81 -60
- package/dist/compiler/index.d.mts +3 -3
- 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-DyK1_szo.mjs → compiler-D6iP7Bzb.mjs} +1390 -1631
- package/dist/declarations/stencil-public-compiler.d.ts +4031 -2
- package/dist/declarations/stencil-public-compiler.js +0 -1
- package/dist/declarations/stencil-public-docs.d.ts +494 -1
- package/dist/declarations/stencil-public-runtime.d.ts +1943 -2
- package/dist/{index-fIuYTL9f.d.mts → index-CXHCTQNt.d.mts} +14 -2
- package/dist/{index-BONzXKJt.d.ts → index-CyrGY82h.d.ts} +5 -7
- package/dist/{index-CHjZtib0.d.ts → index-hS-KBdAP.d.ts} +1 -1
- package/dist/{index-D-LlB2nw.d.mts → index-tUR6pD3J.d.mts} +145 -809
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +2 -2
- package/dist/{jsx-runtime-DBzBJLKk.d.ts → jsx-runtime-DlDkTqps.d.ts} +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/{node-BWBQAh8C.mjs → node-Bg-mO5dw.mjs} +3 -14
- package/dist/regular-expression-D5pGVpCu.mjs +415 -0
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +1 -2
- package/dist/runtime/client/index.d.ts +14 -4
- package/dist/runtime/client/index.js +103 -205
- package/dist/runtime/index.d.ts +16 -4
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/server/index.d.mts +1 -3
- package/dist/runtime/server/index.mjs +103 -205
- package/dist/runtime/server/runner.d.mts +1 -17
- package/dist/runtime/server/runner.mjs +12 -394
- package/dist/{runtime-CqlPYKjW.js → runtime-BBCnuprF.js} +103 -205
- 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 +3 -3
- package/dist/testing/index.mjs +18 -17
- package/dist/{validation-BR7tMYEv.mjs → validation-Byxie0Uk.mjs} +28 -24
- package/package.json +9 -13
- package/dist/serialize-o-Sj1lvg.mjs +0 -792
- package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
- package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ca as RafCallback, da as UserBuildConditionals, fa as VNode, la as ResolutionHandler, mn as RuntimeRef, oa as ErrorHandler, p as ChildType, sa as FunctionalComponent, ua as TagTransformer, wt as HostElement } from "./index-tUR6pD3J.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/client/client-build.d.ts
|
|
4
4
|
declare const Build: UserBuildConditionals;
|
|
@@ -116,6 +116,18 @@ declare const setAssetPath: (path: string) => string;
|
|
|
116
116
|
//#endregion
|
|
117
117
|
//#region src/runtime/element.d.ts
|
|
118
118
|
declare const getElement: (ref: any) => HostElement;
|
|
119
|
+
/**
|
|
120
|
+
* Get the shadow root for a Stencil component's host element.
|
|
121
|
+
* This works for both open and closed shadow DOM modes.
|
|
122
|
+
*
|
|
123
|
+
* For closed shadow DOM, `element.shadowRoot` returns `null` by design,
|
|
124
|
+
* but Stencil stores the reference internally so components can still
|
|
125
|
+
* access their own shadow root.
|
|
126
|
+
*
|
|
127
|
+
* @param element The host element (from @Element() decorator)
|
|
128
|
+
* @returns The shadow root, or null if no shadow root exists
|
|
129
|
+
*/
|
|
130
|
+
declare const getShadowRoot: (element: HTMLElement) => ShadowRoot | null;
|
|
119
131
|
//#endregion
|
|
120
132
|
//#region src/runtime/event-emitter.d.ts
|
|
121
133
|
declare const createEvent: (ref: RuntimeRef, name: string, flags: number) => {
|
|
@@ -175,4 +187,4 @@ declare const forceUpdate: (ref: any) => boolean;
|
|
|
175
187
|
declare const h: (nodeName: any, vnodeData: any, ...children: ChildType[]) => VNode;
|
|
176
188
|
declare const Host: {};
|
|
177
189
|
//#endregion
|
|
178
|
-
export {
|
|
190
|
+
export { PropSerialize as A, AttrDeserialize as C, Listen as D, Event as E, Watch as M, resolveVar as N, Method as O, Build as P, AttachInternals as S, Element$1 as T, Env as _, setTagTransformer as a, writeTask as b, getMode as c, Fragment as d, createEvent as f, setAssetPath as g, getAssetPath as h, getRenderingRef as i, State as j, Prop as k, setMode as l, getShadowRoot as m, h as n, transformTag as o, getElement as p, forceUpdate as r, render as s, Host as t, Mixin as u, setPlatformHelpers as v, Component as w, setErrorHandler as x, readTask as y };
|
|
@@ -1265,8 +1265,6 @@ interface JSXAttributes<T = Element$1> {
|
|
|
1265
1265
|
interface CustomElementsDefineOptions {
|
|
1266
1266
|
exclude?: string[];
|
|
1267
1267
|
syncQueue?: boolean;
|
|
1268
|
-
/** @deprecated in-favour of `setTagTransformer` and `transformTag` */
|
|
1269
|
-
transformTagName?: (tagName: string) => string;
|
|
1270
1268
|
jmp?: (c: Function) => any;
|
|
1271
1269
|
raf?: (c: FrameRequestCallback) => number;
|
|
1272
1270
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
@@ -1281,6 +1279,7 @@ interface BuildFeatures {
|
|
|
1281
1279
|
formAssociated: boolean;
|
|
1282
1280
|
shadowDom: boolean;
|
|
1283
1281
|
shadowDelegatesFocus: boolean;
|
|
1282
|
+
shadowModeClosed: boolean;
|
|
1284
1283
|
shadowSlotAssignmentManual: boolean;
|
|
1285
1284
|
scoped: boolean;
|
|
1286
1285
|
/**
|
|
@@ -1303,6 +1302,10 @@ interface BuildFeatures {
|
|
|
1303
1302
|
vdomText: boolean;
|
|
1304
1303
|
vdomXlink: boolean;
|
|
1305
1304
|
slotRelocation: boolean;
|
|
1305
|
+
patchAll: boolean;
|
|
1306
|
+
patchChildren: boolean;
|
|
1307
|
+
patchClone: boolean;
|
|
1308
|
+
patchInsert: boolean;
|
|
1306
1309
|
slot: boolean;
|
|
1307
1310
|
svg: boolean;
|
|
1308
1311
|
element: boolean;
|
|
@@ -1311,10 +1314,6 @@ interface BuildFeatures {
|
|
|
1311
1314
|
hostListenerTargetWindow: boolean;
|
|
1312
1315
|
hostListenerTargetDocument: boolean;
|
|
1313
1316
|
hostListenerTargetBody: boolean;
|
|
1314
|
-
/**
|
|
1315
|
-
* @deprecated Prevented from new apps, but left in for older collections
|
|
1316
|
-
*/
|
|
1317
|
-
hostListenerTargetParent: boolean;
|
|
1318
1317
|
hostListenerTarget: boolean;
|
|
1319
1318
|
method: boolean;
|
|
1320
1319
|
prop: boolean;
|
|
@@ -1358,7 +1357,6 @@ interface BuildConditionals extends Partial<BuildFeatures> {
|
|
|
1358
1357
|
initializeNextTick?: boolean;
|
|
1359
1358
|
shadowDomShim?: boolean;
|
|
1360
1359
|
asyncQueue?: boolean;
|
|
1361
|
-
transformTagName?: boolean;
|
|
1362
1360
|
additionalTagTransformers?: boolean | 'prod';
|
|
1363
1361
|
attachStyles?: boolean;
|
|
1364
1362
|
experimentalSlotFixes?: boolean;
|