@stencil/core 5.0.0-alpha.15 → 5.0.0-alpha.17
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.js +1 -1
- package/dist/{client-aTQ7xHxx.mjs → client-CgXNkftm.mjs} +18 -6
- package/dist/compiler/index.d.mts +167 -2
- package/dist/compiler/index.mjs +4 -3
- package/dist/compiler/utils/index.d.mts +1 -1
- package/dist/compiler/utils/index.mjs +1 -1
- package/dist/{compiler-DFO3q3RZ.mjs → compiler-CXWiPNlE.mjs} +410 -110
- package/dist/declarations/stencil-public-compiler.d.ts +45 -15
- package/dist/{index-BvkyxSY6.d.mts → index-3fu7WQs4.d.mts} +1 -1
- package/dist/{index-vY35H18z.d.mts → index-F3IidHM1.d.mts} +45 -15
- package/dist/index.mjs +1 -1
- package/dist/jsx-runtime.mjs +1 -1
- package/dist/{node-BSwezCWj.mjs → node-jFf98r0u.mjs} +53 -53
- package/dist/runtime/client/lazy.js +20 -6
- package/dist/runtime/client/runtime.js +20 -6
- package/dist/runtime/index.js +20 -6
- package/dist/runtime/server/index.mjs +20 -6
- package/dist/signals/index.js +1 -1
- 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 +2 -2
- package/dist/testing/index.mjs +14 -14
- package/dist/{validation-CtaOJgnM.mjs → validation-ByxKj8bC.mjs} +5 -5
- package/package.json +4 -4
|
@@ -4301,27 +4301,50 @@ interface TranspileOptions {
|
|
|
4301
4301
|
*/
|
|
4302
4302
|
additionalTagTransformers?: boolean;
|
|
4303
4303
|
/**
|
|
4304
|
-
*
|
|
4305
|
-
*
|
|
4306
|
-
*
|
|
4307
|
-
*
|
|
4308
|
-
* can be resolved without requiring the parent files to exist on disk.
|
|
4309
|
-
*
|
|
4310
|
-
* Keys are the same import paths used in the component's `import` statements
|
|
4311
|
-
* (relative paths are resolved against `currentDirectory`). Values are the
|
|
4312
|
-
* TypeScript/JavaScript source text of that module.
|
|
4304
|
+
* Callback used to resolve parent-class source for inheritance-chain analysis.
|
|
4305
|
+
* Called when a component's `extends` clause references a class from another
|
|
4306
|
+
* module. Return the resolved absolute path and source text of that module,
|
|
4307
|
+
* or `null` to skip inheritance resolution for that specifier.
|
|
4313
4308
|
*
|
|
4314
4309
|
* @example
|
|
4315
4310
|
* ```ts
|
|
4316
4311
|
* transpile(myComponentCode, {
|
|
4317
|
-
*
|
|
4318
|
-
*
|
|
4312
|
+
* resolveImport: (specifier, importer) => {
|
|
4313
|
+
* const resolved = require.resolve(specifier, { paths: [path.dirname(importer)] });
|
|
4314
|
+
* return { code: fs.readFileSync(resolved, 'utf8'), path: resolved };
|
|
4319
4315
|
* },
|
|
4320
4316
|
* });
|
|
4321
4317
|
* ```
|
|
4322
4318
|
*/
|
|
4323
|
-
|
|
4319
|
+
resolveImport?: (specifier: string, importer: string) => {
|
|
4320
|
+
code: string;
|
|
4321
|
+
path: string;
|
|
4322
|
+
} | null;
|
|
4323
|
+
/**
|
|
4324
|
+
* When `true` class declarations at the end of a `@Component` inheritance chain
|
|
4325
|
+
* * that have no `extends` clause * will get `extends HTMLElement` injected, and a minimal
|
|
4326
|
+
* `constructor() { super(); }`. Any stencil static meta-getters are also stripped.
|
|
4327
|
+
*/
|
|
4328
|
+
transformAsBaseClass?: boolean;
|
|
4329
|
+
/**
|
|
4330
|
+
* Overrides for Stencil's BUILD feature flags in the generated output.
|
|
4331
|
+
* When set, a BUILD mutation statement is prepended to the compiled code so
|
|
4332
|
+
* that the specified flags take effect for this component at runtime.
|
|
4333
|
+
*/
|
|
4334
|
+
buildOverrides?: BuildOverrides;
|
|
4324
4335
|
}
|
|
4336
|
+
/**
|
|
4337
|
+
* Keys of {@link BuildConditionals} that can be meaningfully overridden at
|
|
4338
|
+
* transpile time — config-driven flags that are not derived from component
|
|
4339
|
+
* scanning or runtime environment detection.
|
|
4340
|
+
*/
|
|
4341
|
+
type BuildOverrideKeys = 'hotModuleReplacement' | 'signalBacking' | 'vdomSignals' | 'lightDomPatches' | 'slotChildNodes' | 'slotCloneNode' | 'slotDomMutations' | 'slotTextContent' | 'lifecycleDOMEvents' | 'initializeNextTick';
|
|
4342
|
+
/**
|
|
4343
|
+
* Subset of Stencil's BUILD feature flags that can be overridden at transpile
|
|
4344
|
+
* time. Derived from {@link BuildConditionals} via `Pick` so the field list
|
|
4345
|
+
* and types stay in sync with the authoritative definition.
|
|
4346
|
+
*/
|
|
4347
|
+
type BuildOverrides = Pick<BuildConditionals, BuildOverrideKeys>;
|
|
4325
4348
|
type CompileTarget = 'latest' | 'esnext' | 'es2020' | 'es2019' | 'es2018' | 'es2017' | 'es2015' | string | undefined;
|
|
4326
4349
|
interface TranspileResults {
|
|
4327
4350
|
code: string;
|
|
@@ -4348,9 +4371,16 @@ interface TransformOptions {
|
|
|
4348
4371
|
styleImportData: 'queryparams' | null;
|
|
4349
4372
|
target?: string;
|
|
4350
4373
|
/**
|
|
4351
|
-
* @see {@link TranspileOptions.
|
|
4374
|
+
* @see {@link TranspileOptions.resolveImport}
|
|
4352
4375
|
*/
|
|
4353
|
-
|
|
4376
|
+
resolveImport?: (specifier: string, importer: string) => {
|
|
4377
|
+
code: string;
|
|
4378
|
+
path: string;
|
|
4379
|
+
} | null;
|
|
4380
|
+
/** @see {@link TranspileOptions.transformAsBaseClass} */
|
|
4381
|
+
transformAsBaseClass?: boolean;
|
|
4382
|
+
/** @see {@link TranspileOptions.buildOverrides} */
|
|
4383
|
+
buildOverrides?: BuildOverrides;
|
|
4354
4384
|
}
|
|
4355
4385
|
interface CompileScriptMinifyOptions {
|
|
4356
4386
|
target?: CompileTarget;
|
|
@@ -4371,4 +4401,4 @@ interface CliInitOptions {
|
|
|
4371
4401
|
sys: CompilerSystem;
|
|
4372
4402
|
}
|
|
4373
4403
|
//#endregion
|
|
4374
|
-
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildResultsComponentGraph, CacheStorage, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, FsWatchResults, HistoryApiFallback, HmrStyleUpdate, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PageReloadStrategy, ParsedPath, PlatformPath, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions };
|
|
4404
|
+
export { AutoprefixerOptions, BuildEmitEvents, BuildEvents, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildOverrides, BuildResultsComponentGraph, CacheStorage, CliInitOptions, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerBuildResults, CompilerBuildStart, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerRequest, CompilerRequestResponse, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, Config, ConfigBundle, ConfigCompat, CopyResults, CopyTask, Credentials, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, FsWatchResults, HistoryApiFallback, HmrStyleUpdate, HotModuleReplacement, HydrateDocumentOptions, HydrateFactoryOptions, HydratedFlag, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyRequire, LightDomPatches, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OutputTarget, OutputTargetAssets, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCollection, OutputTargetCopy, OutputTargetCustom, OutputTargetDistLazy, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetGlobalStyle, OutputTargetLoaderBundle, OutputTargetSsr, OutputTargetSsrWasm, OutputTargetStandalone, OutputTargetStats, OutputTargetTypes, OutputTargetWww, PageReloadStrategy, ParsedPath, PlatformPath, PrerenderConfig, PrerenderHydrateOptions, PrerenderOptions, PrerenderResults, PrerenderStartOptions, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownConfig, SerializeDocumentOptions, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SsrDocumentOptions, SsrFactoryOptions, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StyleDoc, SystemDetails, TransformOptions, TranspileOnlyResults, TranspileOptions, TranspileResults, UnvalidatedConfig, ValidatedConfig, ValidatedOutputTargetWww, WatcherCloseResults, WorkerMainController, WorkerOptions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as HostElement, cn as RuntimeRef, da as
|
|
1
|
+
import { Et as HostElement, _a as VNode, cn as RuntimeRef, da as ErrorHandler, fa as FunctionalComponent, ga as UserBuildConditionals, ha as TagTransformer, ma as ResolutionHandler, p as ChildType, pa as RafCallback } from "./index-F3IidHM1.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/client/client-build.d.ts
|
|
4
4
|
declare const Build: UserBuildConditionals;
|
|
@@ -4354,27 +4354,50 @@ interface TranspileOptions {
|
|
|
4354
4354
|
*/
|
|
4355
4355
|
additionalTagTransformers?: boolean;
|
|
4356
4356
|
/**
|
|
4357
|
-
*
|
|
4358
|
-
*
|
|
4359
|
-
*
|
|
4360
|
-
*
|
|
4361
|
-
* can be resolved without requiring the parent files to exist on disk.
|
|
4362
|
-
*
|
|
4363
|
-
* Keys are the same import paths used in the component's `import` statements
|
|
4364
|
-
* (relative paths are resolved against `currentDirectory`). Values are the
|
|
4365
|
-
* TypeScript/JavaScript source text of that module.
|
|
4357
|
+
* Callback used to resolve parent-class source for inheritance-chain analysis.
|
|
4358
|
+
* Called when a component's `extends` clause references a class from another
|
|
4359
|
+
* module. Return the resolved absolute path and source text of that module,
|
|
4360
|
+
* or `null` to skip inheritance resolution for that specifier.
|
|
4366
4361
|
*
|
|
4367
4362
|
* @example
|
|
4368
4363
|
* ```ts
|
|
4369
4364
|
* transpile(myComponentCode, {
|
|
4370
|
-
*
|
|
4371
|
-
*
|
|
4365
|
+
* resolveImport: (specifier, importer) => {
|
|
4366
|
+
* const resolved = require.resolve(specifier, { paths: [path.dirname(importer)] });
|
|
4367
|
+
* return { code: fs.readFileSync(resolved, 'utf8'), path: resolved };
|
|
4372
4368
|
* },
|
|
4373
4369
|
* });
|
|
4374
4370
|
* ```
|
|
4375
4371
|
*/
|
|
4376
|
-
|
|
4372
|
+
resolveImport?: (specifier: string, importer: string) => {
|
|
4373
|
+
code: string;
|
|
4374
|
+
path: string;
|
|
4375
|
+
} | null;
|
|
4376
|
+
/**
|
|
4377
|
+
* When `true` class declarations at the end of a `@Component` inheritance chain
|
|
4378
|
+
* * that have no `extends` clause * will get `extends HTMLElement` injected, and a minimal
|
|
4379
|
+
* `constructor() { super(); }`. Any stencil static meta-getters are also stripped.
|
|
4380
|
+
*/
|
|
4381
|
+
transformAsBaseClass?: boolean;
|
|
4382
|
+
/**
|
|
4383
|
+
* Overrides for Stencil's BUILD feature flags in the generated output.
|
|
4384
|
+
* When set, a BUILD mutation statement is prepended to the compiled code so
|
|
4385
|
+
* that the specified flags take effect for this component at runtime.
|
|
4386
|
+
*/
|
|
4387
|
+
buildOverrides?: BuildOverrides;
|
|
4377
4388
|
}
|
|
4389
|
+
/**
|
|
4390
|
+
* Keys of {@link BuildConditionals} that can be meaningfully overridden at
|
|
4391
|
+
* transpile time — config-driven flags that are not derived from component
|
|
4392
|
+
* scanning or runtime environment detection.
|
|
4393
|
+
*/
|
|
4394
|
+
type BuildOverrideKeys = 'hotModuleReplacement' | 'signalBacking' | 'vdomSignals' | 'lightDomPatches' | 'slotChildNodes' | 'slotCloneNode' | 'slotDomMutations' | 'slotTextContent' | 'lifecycleDOMEvents' | 'initializeNextTick';
|
|
4395
|
+
/**
|
|
4396
|
+
* Subset of Stencil's BUILD feature flags that can be overridden at transpile
|
|
4397
|
+
* time. Derived from {@link BuildConditionals} via `Pick` so the field list
|
|
4398
|
+
* and types stay in sync with the authoritative definition.
|
|
4399
|
+
*/
|
|
4400
|
+
type BuildOverrides = Pick<BuildConditionals, BuildOverrideKeys>;
|
|
4378
4401
|
type CompileTarget = 'latest' | 'esnext' | 'es2020' | 'es2019' | 'es2018' | 'es2017' | 'es2015' | string | undefined;
|
|
4379
4402
|
interface TranspileResults {
|
|
4380
4403
|
code: string;
|
|
@@ -4401,9 +4424,16 @@ interface TransformOptions {
|
|
|
4401
4424
|
styleImportData: 'queryparams' | null;
|
|
4402
4425
|
target?: string;
|
|
4403
4426
|
/**
|
|
4404
|
-
* @see {@link TranspileOptions.
|
|
4427
|
+
* @see {@link TranspileOptions.resolveImport}
|
|
4405
4428
|
*/
|
|
4406
|
-
|
|
4429
|
+
resolveImport?: (specifier: string, importer: string) => {
|
|
4430
|
+
code: string;
|
|
4431
|
+
path: string;
|
|
4432
|
+
} | null;
|
|
4433
|
+
/** @see {@link TranspileOptions.transformAsBaseClass} */
|
|
4434
|
+
transformAsBaseClass?: boolean;
|
|
4435
|
+
/** @see {@link TranspileOptions.buildOverrides} */
|
|
4436
|
+
buildOverrides?: BuildOverrides;
|
|
4407
4437
|
}
|
|
4408
4438
|
interface CompileScriptMinifyOptions {
|
|
4409
4439
|
target?: CompileTarget;
|
|
@@ -6522,4 +6552,4 @@ interface ValidateTypesResults {
|
|
|
6522
6552
|
filePaths: string[];
|
|
6523
6553
|
}
|
|
6524
6554
|
//#endregion
|
|
6525
|
-
export { ComponentCompilerVirtualProperty as $, getInlineSourceMappingUrlLinker as $a, SystemDetails as $i, CompilerBuildStart as $n, loadTypeScriptDiagnostic as $o, LogLevel as $r, SSR_WASM as $s, PropsType as $t, CompilerStyleDoc as A, JsonDocsTag as Aa, PageReloadStrategy as Ai, TypesMemberNameData as An, isOutputTargetGlobalStyle as Ao, ConfigBundle as Ar, CMP_FLAGS as As, JsDoc as At, ComponentCompilerMeta as B, createJsVarName as Ba, ResolveModuleOptions as Bi, BuildEvents as Bn, shouldExcludeComponent as Bo, Diagnostic$1 as Br, DOCS_JSON as Bs, OptimizeJsResult as Bt, CompilerBuildStatBundle as C, JsonDocsListener as Ca, OutputTargetLoaderBundle as Ci, StyleCompiler as Cn, isOutputTargetDistLazy as Co, CompilerSystemRemoveDirectoryResults as Cr, toDashCase as Cs, EntryModule as Ct, CompilerJsDoc as D, JsonDocsProp as Da, OutputTargetStats as Di, TranspileModuleResults as Dn, isOutputTargetDocsJson as Do, CompilerSystemWriteFileResults as Dr, formatLazyBundleRuntimeMeta as Ds, HostRef as Dt, CompilerCtx as E, JsonDocsPart as Ea, OutputTargetStandalone as Ei, TransformCssToEsmOutput as En, isOutputTargetDocsCustomElementsManifest as Eo, CompilerSystemRenamedPath as Er, formatComponentRuntimeMeta as Es, HostElement as Et, ComponentCompilerData as F, FsWriteResults as Fa, PrerenderOptions as Fi, Workbox as Fn, isOutputTargetStats as Fo, CustomElementsExportBehavior as Fr, CUSTOM as Fs, ModuleMap as Ft, ComponentCompilerPropertyType as G, isJsFile as Ga, ServiceWorkerConfig as Gi, BuildOutput as Gn, catchError as Go, HydrateDocumentOptions as Gr, GLOBAL_STYLE as Gs, Plugin as Gt, ComponentCompilerMethodComplexType as H, getTextDocs as Ha, RobotsTxtResults as Hi, BuildNoChangeResults as Hn, buildError as Ho, HistoryApiFallback as Hr, DOCS_VSCODE as Hs, ParsedImport as Ht, ComponentCompilerEvent as I, InMemoryFileSystem as Ia, PrerenderResults as Ii, WorkerContextMethod as In, isOutputTargetTypes as Io, CustomElementsExportBehaviorOptions as Ir, DEFAULT_STYLE_MODE as Is, MsgFromWorker as It, ComponentCompilerStaticEvent as J, isTsxFile as Ja, SsrDocumentOptions as Ji, CliInitOptions as Jn, shouldIgnoreError as Jo, LOG_LEVELS as Jr, LISTENER_FLAGS as Js, PluginTransformationDescriptor as Jt, ComponentCompilerReferencedType as K, isJsxFile as Ka, SitemapXmpOpts as Ki, BuildResultsComponentGraph as Kn, hasError as Ko, HydrateFactoryOptions as Kr, HOST_FLAGS as Ks, PluginCtx as Kt, ComponentCompilerEventComplexType as L, validateComponentTag as La, PrerenderStartOptions as Li, WorkerMsgHandler as Ln, isOutputTargetWww as Lo, DevServer as Lr, DIST_LAZY as Ls, MsgToWorker as Lt, CompilerWorkerTask as M, JsonDocsUsage as Ma, PlatformPath as Mi, UpdatedLazyBuildCtx as Mn, isOutputTargetSsr as Mo, CopyResults as Mr, COLLECTION_APP_DATA_FILE_NAME as Ms, LazyBundlesRuntimeData as Mt, ComponentCompilerChangeHandler as N, JsonDocsValue as Na, PrerenderConfig as Ni, VNodeProdData as Nn, isOutputTargetSsrWasm as No, CopyTask as Nr, COLLECTION_MANIFEST_FILE_NAME as Ns, Module as Nt, CompilerJsDocTagInfo as O, JsonDocsSlot as Oa, OutputTargetTypes as Oi, TypeInfo as On, isOutputTargetDocsReadme as Oo, CompilerWatcher as Or, stringifyRuntimeData as Os, ImportData as Ot, ComponentCompilerCustomState as P, StyleDoc as Pa, PrerenderHydrateOptions as Pi, ValidateTypesResults as Pn, isOutputTargetStandalone as Po, Credentials as Pr, COPY as Ps, ModuleFormat as Pt, ComponentCompilerTypeReferences as Q, isRemoteUrl as Qa, StencilDocsConfig as Qi, CompilerBuildResults as Qn, augmentDiagnosticWithNode as Qo, LoadConfigResults as Qr, SSR as Qs, PrintLine as Qt, ComponentCompilerFeatures as R, ParsePackageJsonResult as Ra, ResolveModuleIdOptions as Ri, AutoprefixerOptions as Rn, isValidConfigOutputTarget as Ro, DevServerConfig as Rr, DOCS_CUSTOM as Rs, NewSpecPageOptions as Rt, CompilerAssetDir as S, JsonDocsEvent as Sa, OutputTargetGlobalStyle as Si, StencilDocument as Sn, isOutputTargetCustom as So, CompilerSystemRemoveDirectoryOptions as Sr, toCamelCase as Ss, Encapsulation as St, CompilerBuildStats as T, JsonDocsMethodReturn as Ta, OutputTargetSsrWasm as Ti, TransformCssToEsmInput as Tn, isOutputTargetDocsCustom as To, CompilerSystemRenameResults as Tr, unique as Ts, ExternalStyleCompiler as Tt, ComponentCompilerProperty as U, hasDependency as Ua, RolldownConfig as Ui, BuildOnEventRemove as Un, buildJsonFileError as Uo, HmrStyleUpdate as Ur, EVENT_FLAGS as Us, PatchedSlotNode as Ut, ComponentCompilerMethod as V, generatePreamble as Va, RobotsTxtOpts as Vi, BuildLog as Vn, TASK_CANCELED_MSG as Vo, FsWatchResults as Vr, DOCS_README as Vs, PackageJsonData as Vt, ComponentCompilerPropertyComplexType as W, isDtsFile as Wa, SerializeDocumentOptions as Wi, BuildOnEvents as Wn, buildWarn as Wo, HotModuleReplacement as Wr, GENERATED_DTS as Ws, PlatformRuntime as Wt, ComponentCompilerStaticProperty as X, readOnlyArrayHasStringMember as Xa, StencilConfig as Xi, CompileTarget as Xn, normalizeDiagnostics as Xo, LightDomPatches as Xr, MEMBER_FLAGS as Xs, PrerenderUrlRequest as Xt, ComponentCompilerStaticMethod as Y, parsePackageJson as Ya, SsrFactoryOptions as Yi, CompileScriptMinifyOptions as Yn, escapeHtml as Yo, LazyRequire as Yr, LOADER_BUNDLE as Ys, PrerenderManager as Yt, ComponentCompilerTypeReference as Z, readPackageJson as Za, StencilDevServerConfig as Zi, Compiler as Zn, splitLineBreaks as Zo, LoadConfigInit as Zr, NODE_TYPES as Zs, PrerenderUrlResults as Zt, CollectionCompilerVersion as _, JsonDocMethodParameter as _a, OutputTargetDocsCustom as _i, SsrImgElement as _n, getComponentsDtsTypesFilePath as _o, CompilerRequestResponse as _r, isString as _s, ComponentTestingConstructor as _t, BuildCtx as a, ValidatedConfig as aa, VALID_CONFIG_OUTPUT_TARGETS as ac, OptimizeCssOutput as ai, RolldownResults as an, queryNonceMetaTagContent as ao, CompilerEventDirAdd as ar, isGlob as as, ComponentConstructorProperties as at, CollectionDependencyManifest as b, JsonDocsCustomState as ba, OutputTargetDocsReadme as bi, SsrStaticData as bn, isOutputTargetCollection as bo, CompilerSystemCreateDirectoryResults as br, pluck as bs, CssTransformCacheEntry as bt, BuildStyleUpdate as c, WorkerMainController as ca, XLINK_NS as cc, OutputTarget as ci, RuntimeRef as cn, normalizeFsPath as co, CompilerEventFileDelete as cr, flatOne as cs, ComponentGlobalStyle as ct, BundleModuleOutput as d, FunctionalComponent as da, OutputTargetBaseNext as di, SourceMap$1 as dn, relative as do, CompilerEventName as dr, isComplexType as ds, ComponentRuntimeHostListener as dt, TransformOptions as ea, STANDALONE as ec, Logger as ei, RenderNode as en, getSourceMappingUrlForEndOfFile as eo, CompilerDependency as er, loadTypeScriptDiagnostics as es, ComponentConstructor as et, Cache as f, RafCallback as fa, OutputTargetBuild as fi, SourceTarget as fn, resolve as fo, CompilerFileWatcher as fr, isDef as fs, ComponentRuntimeMember as ft, CollectionCompilerMeta as g, VNode as ga, OutputTargetDistLazy as gi, SsrElement as gn, getComponentsDtsSrcFilePath as go, CompilerRequest as gr, isObject as gs, ComponentRuntimeReflectingAttr as gt, CollectionCompiler as h, UserBuildConditionals as ha, OutputTargetCustom as hi, SsrComponent as hn, filterExcludedComponents as ho, CompilerFsStats as hr, isNumber as hs, ComponentRuntimeMetaCompact as ht, BuildConditionals as i, UnvalidatedConfig as ia, TYPES as ic, OptimizeCssInput as ii, RolldownResultModule as in, escapeRegExpSpecialCharacters as io, CompilerEventBuildStart as ir, isRootPath as is, ComponentConstructorListener as it, CompilerWorkerContext as j, JsonDocsTypeLibrary as ja, ParsedPath as ji, TypesModule as jn, isOutputTargetLoaderBundle as jo, ConfigCompat as jr, COLLECTION as js, LazyBundleRuntimeData as jt, CompilerModeStyles as k, JsonDocsStyle as ka, OutputTargetWww as ki, TypesImportData as kn, isOutputTargetDocsVscode as ko, Config as kr, ASSETS as ks, JSDocTagInfo as kt, BuildTask as l, WorkerOptions as la, byteSize as lc, OutputTargetAssets as li, SerializeImportData as ln, normalizeFsPathQuery as lo, CompilerEventFileUpdate as lr, fromEntries as ls, ComponentNativeConstructor as lt, CollectionBundleManifest as m, TagTransformer as ma, OutputTargetCopy as mi, SsrAnchorElement as mn, filterActiveTargets as mo, CompilerFileWatcherEvent as mr, isIterable as ms, ComponentRuntimeMeta as mt, AssetsMeta as n, TranspileOptions as na, STYLE_EXT as nc, LoggerTimeSpan as ni, RolldownChunkResult as nn, rolldownToStencilSourceMap as no, CompilerEventBuildLog as nr, isRolldownError as ns, ComponentConstructorEncapsulation as nt, BuildFeatures as o, ValidatedOutputTargetWww as oa, WATCH_FLAGS as oc, OptimizeJsInput as oi, RolldownSourceMap as on, join as oo, CompilerEventDirDelete as or, dashToPascalCase as os, ComponentConstructorProperty as ot, ChildType as p, ResolutionHandler as pa, OutputTargetCollection as pi, SpecPage as pn, FilterComponentsResult as po, CompilerFileWatcherCallback as pr, isFunction as ps, ComponentRuntimeMembers as pt, ComponentCompilerState as q, isTsFile as qa, SitemapXmpResults as qi, CacheStorage as qn, hasWarning as qo, HydratedFlag as qr, HTML_NS as qs, PluginTransformResults as qt, BuildComponent as r, TranspileResults as ra, SVG_NS as rc, NodeResolveConfig as ri, RolldownResult as rn, result_d_exports as ro, CompilerEventBuildNoChange as rr, loadRolldownDiagnostics as rs, ComponentConstructorEvent as rt, BuildSourceGraph as s, WatcherCloseResults as sa, WWW as sc, OptimizeJsOutput as si, RootAppliedStyleMap as sn, normalize as so, CompilerEventFileAdd as sr, escapeWithPattern as ss, ComponentConstructorPropertyType as st, AnyHTMLElement as t, TranspileOnlyResults as ta, STATS as tc, LoggerLineUpdater as ti, RolldownAssetResult as tn, getSourceMappingUrlLinker as to, CompilerEventBuildFinish as tr, createOnWarnFn as ts, ComponentConstructorChangeHandlers as tt, BundleModule as u, ErrorHandler as ua, OutputTargetBase as ui, SerializedEvent as un, normalizePath as uo, CompilerEventFsChange as ur, isBoolean as us, ComponentPatches as ut, CollectionComponentEntryPath as v, JsonDocs as va, OutputTargetDocsCustomElementsManifest as vi, SsrResults as vn, getComponentsFromModules as vo, CompilerSystem as vr, mergeIntoWith as vs, CssImportData as vt, CompilerBuildStatCollection as w, JsonDocsMethod as wa, OutputTargetSsr as wi, StyleMap as wn, isOutputTargetDocs as wo, CompilerSystemRemoveFileResults as wr, toTitleCase as ws, EventInitDict as wt, CollectionManifest as x, JsonDocsDependencyGraph as xa, OutputTargetDocsVscode as xi, SsrStyleElement as xn, isOutputTargetCopy as xo, CompilerSystemRealpathResults as xr, sortBy as xs, DocData as xt, CollectionDependencyData as y, JsonDocsComponent as ya, OutputTargetDocsJson as yi, SsrScriptElement as yn, isOutputTargetAssets as yo, CompilerSystemCreateDirectoryOptions as yr, noop as ys, CssToEsmImportData as yt, ComponentCompilerListener as z, addDocBlock as za, ResolveModuleIdResults as zi, BuildEmitEvents as zn, relativeImport as zo, DevServerEditor as zr, DOCS_CUSTOM_ELEMENTS_MANIFEST as zs, NodeMap as zt };
|
|
6555
|
+
export { ComponentCompilerVirtualProperty as $, isRemoteUrl as $a, StencilDocsConfig as $i, CompilerBuildResults as $n, augmentDiagnosticWithNode as $o, LoadConfigResults as $r, SSR as $s, PropsType as $t, CompilerStyleDoc as A, JsonDocsStyle as Aa, OutputTargetWww as Ai, TypesMemberNameData as An, isOutputTargetDocsVscode as Ao, Config as Ar, ASSETS as As, JsDoc as At, ComponentCompilerMeta as B, addDocBlock as Ba, ResolveModuleIdResults as Bi, BuildEvents as Bn, relativeImport as Bo, DevServerEditor as Br, DOCS_CUSTOM_ELEMENTS_MANIFEST as Bs, OptimizeJsResult as Bt, CompilerBuildStatBundle as C, JsonDocsEvent as Ca, OutputTargetGlobalStyle as Ci, StyleCompiler as Cn, isOutputTargetCustom as Co, CompilerSystemRemoveDirectoryOptions as Cr, toCamelCase as Cs, EntryModule as Ct, CompilerJsDoc as D, JsonDocsPart as Da, OutputTargetStandalone as Di, TranspileModuleResults as Dn, isOutputTargetDocsCustomElementsManifest as Do, CompilerSystemRenamedPath as Dr, formatComponentRuntimeMeta as Ds, HostRef as Dt, CompilerCtx as E, JsonDocsMethodReturn as Ea, OutputTargetSsrWasm as Ei, TransformCssToEsmOutput as En, isOutputTargetDocsCustom as Eo, CompilerSystemRenameResults as Er, unique as Es, HostElement as Et, ComponentCompilerData as F, StyleDoc as Fa, PrerenderHydrateOptions as Fi, Workbox as Fn, isOutputTargetStandalone as Fo, Credentials as Fr, COPY as Fs, ModuleMap as Ft, ComponentCompilerPropertyType as G, isDtsFile as Ga, SerializeDocumentOptions as Gi, BuildOutput as Gn, buildWarn as Go, HotModuleReplacement as Gr, GENERATED_DTS as Gs, Plugin as Gt, ComponentCompilerMethodComplexType as H, generatePreamble as Ha, RobotsTxtOpts as Hi, BuildNoChangeResults as Hn, TASK_CANCELED_MSG as Ho, FsWatchResults as Hr, DOCS_README as Hs, ParsedImport as Ht, ComponentCompilerEvent as I, FsWriteResults as Ia, PrerenderOptions as Ii, WorkerContextMethod as In, isOutputTargetStats as Io, CustomElementsExportBehavior as Ir, CUSTOM as Is, MsgFromWorker as It, ComponentCompilerStaticEvent as J, isTsFile as Ja, SitemapXmpResults as Ji, CacheStorage as Jn, hasWarning as Jo, HydratedFlag as Jr, HTML_NS as Js, PluginTransformationDescriptor as Jt, ComponentCompilerReferencedType as K, isJsFile as Ka, ServiceWorkerConfig as Ki, BuildOverrides as Kn, catchError as Ko, HydrateDocumentOptions as Kr, GLOBAL_STYLE as Ks, PluginCtx as Kt, ComponentCompilerEventComplexType as L, InMemoryFileSystem as La, PrerenderResults as Li, WorkerMsgHandler as Ln, isOutputTargetTypes as Lo, CustomElementsExportBehaviorOptions as Lr, DEFAULT_STYLE_MODE as Ls, MsgToWorker as Lt, CompilerWorkerTask as M, JsonDocsTypeLibrary as Ma, ParsedPath as Mi, UpdatedLazyBuildCtx as Mn, isOutputTargetLoaderBundle as Mo, ConfigCompat as Mr, COLLECTION as Ms, LazyBundlesRuntimeData as Mt, ComponentCompilerChangeHandler as N, JsonDocsUsage as Na, PlatformPath as Ni, VNodeProdData as Nn, isOutputTargetSsr as No, CopyResults as Nr, COLLECTION_APP_DATA_FILE_NAME as Ns, Module as Nt, CompilerJsDocTagInfo as O, JsonDocsProp as Oa, OutputTargetStats as Oi, TypeInfo as On, isOutputTargetDocsJson as Oo, CompilerSystemWriteFileResults as Or, formatLazyBundleRuntimeMeta as Os, ImportData as Ot, ComponentCompilerCustomState as P, JsonDocsValue as Pa, PrerenderConfig as Pi, ValidateTypesResults as Pn, isOutputTargetSsrWasm as Po, CopyTask as Pr, COLLECTION_MANIFEST_FILE_NAME as Ps, ModuleFormat as Pt, ComponentCompilerTypeReferences as Q, readPackageJson as Qa, StencilDevServerConfig as Qi, Compiler as Qn, splitLineBreaks as Qo, LoadConfigInit as Qr, NODE_TYPES as Qs, PrintLine as Qt, ComponentCompilerFeatures as R, validateComponentTag as Ra, PrerenderStartOptions as Ri, AutoprefixerOptions as Rn, isOutputTargetWww as Ro, DevServer as Rr, DIST_LAZY as Rs, NewSpecPageOptions as Rt, CompilerAssetDir as S, JsonDocsDependencyGraph as Sa, OutputTargetDocsVscode as Si, StencilDocument as Sn, isOutputTargetCopy as So, CompilerSystemRealpathResults as Sr, sortBy as Ss, Encapsulation as St, CompilerBuildStats as T, JsonDocsMethod as Ta, OutputTargetSsr as Ti, TransformCssToEsmInput as Tn, isOutputTargetDocs as To, CompilerSystemRemoveFileResults as Tr, toTitleCase as Ts, ExternalStyleCompiler as Tt, ComponentCompilerProperty as U, getTextDocs as Ua, RobotsTxtResults as Ui, BuildOnEventRemove as Un, buildError as Uo, HistoryApiFallback as Ur, DOCS_VSCODE as Us, PatchedSlotNode as Ut, ComponentCompilerMethod as V, createJsVarName as Va, ResolveModuleOptions as Vi, BuildLog as Vn, shouldExcludeComponent as Vo, Diagnostic$1 as Vr, DOCS_JSON as Vs, PackageJsonData as Vt, ComponentCompilerPropertyComplexType as W, hasDependency as Wa, RolldownConfig as Wi, BuildOnEvents as Wn, buildJsonFileError as Wo, HmrStyleUpdate as Wr, EVENT_FLAGS as Ws, PlatformRuntime as Wt, ComponentCompilerStaticProperty as X, parsePackageJson as Xa, SsrFactoryOptions as Xi, CompileScriptMinifyOptions as Xn, escapeHtml as Xo, LazyRequire as Xr, LOADER_BUNDLE as Xs, PrerenderUrlRequest as Xt, ComponentCompilerStaticMethod as Y, isTsxFile as Ya, SsrDocumentOptions as Yi, CliInitOptions as Yn, shouldIgnoreError as Yo, LOG_LEVELS as Yr, LISTENER_FLAGS as Ys, PrerenderManager as Yt, ComponentCompilerTypeReference as Z, readOnlyArrayHasStringMember as Za, StencilConfig as Zi, CompileTarget as Zn, normalizeDiagnostics as Zo, LightDomPatches as Zr, MEMBER_FLAGS as Zs, PrerenderUrlResults as Zt, CollectionCompilerVersion as _, VNode as _a, OutputTargetDistLazy as _i, SsrImgElement as _n, getComponentsDtsSrcFilePath as _o, CompilerRequest as _r, isObject as _s, ComponentTestingConstructor as _t, BuildCtx as a, UnvalidatedConfig as aa, TYPES as ac, OptimizeCssInput as ai, RolldownResults as an, escapeRegExpSpecialCharacters as ao, CompilerEventBuildStart as ar, isRootPath as as, ComponentConstructorProperties as at, CollectionDependencyManifest as b, JsonDocsComponent as ba, OutputTargetDocsJson as bi, SsrStaticData as bn, isOutputTargetAssets as bo, CompilerSystemCreateDirectoryOptions as br, noop as bs, CssTransformCacheEntry as bt, BuildStyleUpdate as c, WatcherCloseResults as ca, WWW as cc, OptimizeJsOutput as ci, RuntimeRef as cn, normalize as co, CompilerEventFileAdd as cr, escapeWithPattern as cs, ComponentGlobalStyle as ct, BundleModuleOutput as d, ErrorHandler as da, OutputTargetBase as di, SourceMap$1 as dn, normalizePath as do, CompilerEventFsChange as dr, isBoolean as ds, ComponentRuntimeHostListener as dt, SystemDetails as ea, SSR_WASM as ec, LogLevel as ei, RenderNode as en, getInlineSourceMappingUrlLinker as eo, CompilerBuildStart as er, loadTypeScriptDiagnostic as es, ComponentConstructor as et, Cache as f, FunctionalComponent as fa, OutputTargetBaseNext as fi, SourceTarget as fn, relative as fo, CompilerEventName as fr, isComplexType as fs, ComponentRuntimeMember as ft, CollectionCompilerMeta as g, UserBuildConditionals as ga, OutputTargetCustom as gi, SsrElement as gn, filterExcludedComponents as go, CompilerFsStats as gr, isNumber as gs, ComponentRuntimeReflectingAttr as gt, CollectionCompiler as h, TagTransformer as ha, OutputTargetCopy as hi, SsrComponent as hn, filterActiveTargets as ho, CompilerFileWatcherEvent as hr, isIterable as hs, ComponentRuntimeMetaCompact as ht, BuildConditionals as i, TranspileResults as ia, SVG_NS as ic, NodeResolveConfig as ii, RolldownResultModule as in, result_d_exports as io, CompilerEventBuildNoChange as ir, loadRolldownDiagnostics as is, ComponentConstructorListener as it, CompilerWorkerContext as j, JsonDocsTag as ja, PageReloadStrategy as ji, TypesModule as jn, isOutputTargetGlobalStyle as jo, ConfigBundle as jr, CMP_FLAGS as js, LazyBundleRuntimeData as jt, CompilerModeStyles as k, JsonDocsSlot as ka, OutputTargetTypes as ki, TypesImportData as kn, isOutputTargetDocsReadme as ko, CompilerWatcher as kr, stringifyRuntimeData as ks, JSDocTagInfo as kt, BuildTask as l, WorkerMainController as la, XLINK_NS as lc, OutputTarget as li, SerializeImportData as ln, normalizeFsPath as lo, CompilerEventFileDelete as lr, flatOne as ls, ComponentNativeConstructor as lt, CollectionBundleManifest as m, ResolutionHandler as ma, OutputTargetCollection as mi, SsrAnchorElement as mn, FilterComponentsResult as mo, CompilerFileWatcherCallback as mr, isFunction as ms, ComponentRuntimeMeta as mt, AssetsMeta as n, TranspileOnlyResults as na, STATS as nc, LoggerLineUpdater as ni, RolldownChunkResult as nn, getSourceMappingUrlLinker as no, CompilerEventBuildFinish as nr, createOnWarnFn as ns, ComponentConstructorEncapsulation as nt, BuildFeatures as o, ValidatedConfig as oa, VALID_CONFIG_OUTPUT_TARGETS as oc, OptimizeCssOutput as oi, RolldownSourceMap as on, queryNonceMetaTagContent as oo, CompilerEventDirAdd as or, isGlob as os, ComponentConstructorProperty as ot, ChildType as p, RafCallback as pa, OutputTargetBuild as pi, SpecPage as pn, resolve as po, CompilerFileWatcher as pr, isDef as ps, ComponentRuntimeMembers as pt, ComponentCompilerState as q, isJsxFile as qa, SitemapXmpOpts as qi, BuildResultsComponentGraph as qn, hasError as qo, HydrateFactoryOptions as qr, HOST_FLAGS as qs, PluginTransformResults as qt, BuildComponent as r, TranspileOptions as ra, STYLE_EXT as rc, LoggerTimeSpan as ri, RolldownResult as rn, rolldownToStencilSourceMap as ro, CompilerEventBuildLog as rr, isRolldownError as rs, ComponentConstructorEvent as rt, BuildSourceGraph as s, ValidatedOutputTargetWww as sa, WATCH_FLAGS as sc, OptimizeJsInput as si, RootAppliedStyleMap as sn, join as so, CompilerEventDirDelete as sr, dashToPascalCase as ss, ComponentConstructorPropertyType as st, AnyHTMLElement as t, TransformOptions as ta, STANDALONE as tc, Logger as ti, RolldownAssetResult as tn, getSourceMappingUrlForEndOfFile as to, CompilerDependency as tr, loadTypeScriptDiagnostics as ts, ComponentConstructorChangeHandlers as tt, BundleModule as u, WorkerOptions as ua, byteSize as uc, OutputTargetAssets as ui, SerializedEvent as un, normalizeFsPathQuery as uo, CompilerEventFileUpdate as ur, fromEntries as us, ComponentPatches as ut, CollectionComponentEntryPath as v, JsonDocMethodParameter as va, OutputTargetDocsCustom as vi, SsrResults as vn, getComponentsDtsTypesFilePath as vo, CompilerRequestResponse as vr, isString as vs, CssImportData as vt, CompilerBuildStatCollection as w, JsonDocsListener as wa, OutputTargetLoaderBundle as wi, StyleMap as wn, isOutputTargetDistLazy as wo, CompilerSystemRemoveDirectoryResults as wr, toDashCase as ws, EventInitDict as wt, CollectionManifest as x, JsonDocsCustomState as xa, OutputTargetDocsReadme as xi, SsrStyleElement as xn, isOutputTargetCollection as xo, CompilerSystemCreateDirectoryResults as xr, pluck as xs, DocData as xt, CollectionDependencyData as y, JsonDocs as ya, OutputTargetDocsCustomElementsManifest as yi, SsrScriptElement as yn, getComponentsFromModules as yo, CompilerSystem as yr, mergeIntoWith as ys, CssToEsmImportData as yt, ComponentCompilerListener as z, ParsePackageJsonResult as za, ResolveModuleIdOptions as zi, BuildEmitEvents as zn, isValidConfigOutputTarget as zo, DevServerConfig as zr, DOCS_CUSTOM as zs, NodeMap as zt };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as Event, C as setAssetPath, E as setPlatformHelpers, G as State, H as Method, I as AttachInternals, J as Build, K as Watch, L as AttrDeserialize, N as setErrorHandler, R as Component, S as getAssetPath, T as writeTask, U as Prop, V as Listen, W as PropSerialize, a as transformTag, b as getElement, c as Fragment, d as setMode, g as getRenderingRef, h as forceUpdate, i as setTagTransformer, m as h, o as render, p as Host, q as resolveVar, s as Mixin, u as getMode, w as readTask, x as getShadowRoot, z as Element } from "./client-
|
|
1
|
+
import { B as Event, C as setAssetPath, E as setPlatformHelpers, G as State, H as Method, I as AttachInternals, J as Build, K as Watch, L as AttrDeserialize, N as setErrorHandler, R as Component, S as getAssetPath, T as writeTask, U as Prop, V as Listen, W as PropSerialize, a as transformTag, b as getElement, c as Fragment, d as setMode, g as getRenderingRef, h as forceUpdate, i as setTagTransformer, m as h, o as render, p as Host, q as resolveVar, s as Mixin, u as getMode, w as readTask, x as getShadowRoot, z as Element } from "./client-CgXNkftm.mjs";
|
|
2
2
|
export { AttachInternals, AttrDeserialize, Build, Component, Element, Event, Fragment, Host, Listen, Method, Mixin, Prop, PropSerialize, State, Watch, forceUpdate, getAssetPath, getElement, getMode, getRenderingRef, getShadowRoot, h, readTask, render, resolveVar, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setTagTransformer, transformTag, writeTask };
|
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as Fragment, n as jsxDEV, r as jsxs, t as jsx } from "./client-
|
|
1
|
+
import { c as Fragment, n as jsxDEV, r as jsxs, t as jsx } from "./client-CgXNkftm.mjs";
|
|
2
2
|
export { Fragment, jsx, jsxDEV, jsxs };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as __require } from "./chunk-z9aeyW2b.mjs";
|
|
2
|
-
import "./client-
|
|
2
|
+
import "./client-CgXNkftm.mjs";
|
|
3
3
|
import { h as noop, i as flatOne, l as isFunction, p as isString } from "./regular-expression-CFVJOTUh.mjs";
|
|
4
|
-
import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-
|
|
4
|
+
import { St as isGlob, _t as catchError, bt as shouldIgnoreError, it as normalizePath, mt as buildError, pt as TASK_CANCELED_MSG } from "./validation-ByxKj8bC.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
|
-
import
|
|
6
|
+
import path from "node:path";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
|
-
import path from "path";
|
|
8
|
+
import path$1 from "path";
|
|
9
9
|
import * as cp from "child_process";
|
|
10
10
|
import chalk from "chalk";
|
|
11
11
|
import { createHash } from "node:crypto";
|
|
@@ -675,7 +675,7 @@ function createNodeLoggerSys() {
|
|
|
675
675
|
return Math.max(Math.min(terminalWidth, max_columns), min_columns);
|
|
676
676
|
};
|
|
677
677
|
const memoryUsage = () => process.memoryUsage().rss;
|
|
678
|
-
const relativePath = (from, to) => path.relative(from, to);
|
|
678
|
+
const relativePath = (from, to) => path$1.relative(from, to);
|
|
679
679
|
const writeLogs = (logFilePath, log, append) => {
|
|
680
680
|
if (append) try {
|
|
681
681
|
fs.accessSync(logFilePath);
|
|
@@ -787,15 +787,15 @@ async function nodeCopyTasks(copyTasks, srcDir) {
|
|
|
787
787
|
async function processGlobs(copyTask, srcDir) {
|
|
788
788
|
return isGlob(copyTask.src) ? await processGlobTask(copyTask, srcDir) : [{
|
|
789
789
|
src: getSrcAbsPath(srcDir, copyTask.src),
|
|
790
|
-
dest: copyTask.keepDirStructure ? path.join(copyTask.dest, copyTask.src) : copyTask.dest,
|
|
790
|
+
dest: copyTask.keepDirStructure ? path$1.join(copyTask.dest, copyTask.src) : copyTask.dest,
|
|
791
791
|
warn: copyTask.warn,
|
|
792
792
|
ignore: copyTask.ignore,
|
|
793
793
|
keepDirStructure: copyTask.keepDirStructure
|
|
794
794
|
}];
|
|
795
795
|
}
|
|
796
796
|
function getSrcAbsPath(srcDir, src) {
|
|
797
|
-
if (path.isAbsolute(src)) return src;
|
|
798
|
-
return path.join(srcDir, src);
|
|
797
|
+
if (path$1.isAbsolute(src)) return src;
|
|
798
|
+
return path$1.join(srcDir, src);
|
|
799
799
|
}
|
|
800
800
|
async function processGlobTask(copyTask, srcDir) {
|
|
801
801
|
return (await asyncGlob(copyTask.src, {
|
|
@@ -805,9 +805,9 @@ async function processGlobTask(copyTask, srcDir) {
|
|
|
805
805
|
})).map((globRelPath) => createGlobCopyTask(copyTask, srcDir, globRelPath));
|
|
806
806
|
}
|
|
807
807
|
function createGlobCopyTask(copyTask, srcDir, globRelPath) {
|
|
808
|
-
const dest = path.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path.basename(globRelPath));
|
|
808
|
+
const dest = path$1.join(copyTask.dest, copyTask.keepDirStructure ? globRelPath : path$1.basename(globRelPath));
|
|
809
809
|
return {
|
|
810
|
-
src: path.join(srcDir, globRelPath),
|
|
810
|
+
src: path$1.join(srcDir, globRelPath),
|
|
811
811
|
dest,
|
|
812
812
|
ignore: copyTask.ignore,
|
|
813
813
|
warn: copyTask.warn,
|
|
@@ -837,8 +837,8 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
837
837
|
const dirItems = await readdir(copyTask.src);
|
|
838
838
|
await Promise.all(dirItems.map(async (dirItem) => {
|
|
839
839
|
await processCopyTask(results, allCopyTasks, {
|
|
840
|
-
src: path.join(copyTask.src, dirItem),
|
|
841
|
-
dest: path.join(copyTask.dest, dirItem),
|
|
840
|
+
src: path$1.join(copyTask.src, dirItem),
|
|
841
|
+
dest: path$1.join(copyTask.dest, dirItem),
|
|
842
842
|
warn: copyTask.warn
|
|
843
843
|
});
|
|
844
844
|
}));
|
|
@@ -849,7 +849,7 @@ async function processCopyTaskDirectory(results, allCopyTasks, copyTask) {
|
|
|
849
849
|
function ensureDirs(copyTasks) {
|
|
850
850
|
const mkDirs = [];
|
|
851
851
|
copyTasks.forEach((copyTask) => {
|
|
852
|
-
addMkDir(mkDirs, path.dirname(copyTask.dest));
|
|
852
|
+
addMkDir(mkDirs, path$1.dirname(copyTask.dest));
|
|
853
853
|
});
|
|
854
854
|
mkDirs.sort((a, b) => {
|
|
855
855
|
const partsA = a.split("/").length;
|
|
@@ -867,7 +867,7 @@ function addMkDir(mkDirs, destDir) {
|
|
|
867
867
|
if (destDir === ROOT_DIR || destDir + "/" === ROOT_DIR || destDir === "") return;
|
|
868
868
|
if (!mkDirs.includes(destDir)) mkDirs.push(destDir);
|
|
869
869
|
}
|
|
870
|
-
const ROOT_DIR = normalizePath(path.resolve("/"));
|
|
870
|
+
const ROOT_DIR = normalizePath(path$1.resolve("/"));
|
|
871
871
|
function shouldIgnore({ src, ignore = [] }) {
|
|
872
872
|
const filePath = src.trim().toLowerCase();
|
|
873
873
|
return ignore.some((ignoreFile) => filePath.endsWith(ignoreFile));
|
|
@@ -941,7 +941,7 @@ var NodeLazyRequire = class {
|
|
|
941
941
|
}
|
|
942
942
|
getModulePath(fromDir, moduleId) {
|
|
943
943
|
const modulePath = this.nodeResolveModule.resolveModule(fromDir, moduleId);
|
|
944
|
-
return path.dirname(modulePath);
|
|
944
|
+
return path$1.dirname(modulePath);
|
|
945
945
|
}
|
|
946
946
|
};
|
|
947
947
|
//#endregion
|
|
@@ -955,18 +955,18 @@ var NodeResolveModule = class {
|
|
|
955
955
|
if (opts && opts.manuallyResolve) return this.resolveModuleManually(fromDir, moduleId, cacheKey);
|
|
956
956
|
if (moduleId.startsWith("@types/")) return this.resolveTypesModule(fromDir, moduleId, cacheKey);
|
|
957
957
|
const Module = __require("module");
|
|
958
|
-
fromDir = path.resolve(fromDir);
|
|
959
|
-
const fromFile = path.join(fromDir, "noop.js");
|
|
958
|
+
fromDir = path$1.resolve(fromDir);
|
|
959
|
+
const fromFile = path$1.join(fromDir, "noop.js");
|
|
960
960
|
let dir = normalizePath(Module._resolveFilename(moduleId, {
|
|
961
961
|
id: fromFile,
|
|
962
962
|
filename: fromFile,
|
|
963
963
|
paths: Module._nodeModulePaths(fromDir)
|
|
964
964
|
}));
|
|
965
|
-
const root = normalizePath(path.parse(fromDir).root);
|
|
965
|
+
const root = normalizePath(path$1.parse(fromDir).root);
|
|
966
966
|
let packageJsonFilePath;
|
|
967
967
|
while (dir !== root) {
|
|
968
|
-
dir = normalizePath(path.dirname(dir));
|
|
969
|
-
packageJsonFilePath = path.join(dir, "package.json");
|
|
968
|
+
dir = normalizePath(path$1.dirname(dir));
|
|
969
|
+
packageJsonFilePath = path$1.join(dir, "package.json");
|
|
970
970
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
971
971
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
972
972
|
return packageJsonFilePath;
|
|
@@ -975,12 +975,12 @@ var NodeResolveModule = class {
|
|
|
975
975
|
}
|
|
976
976
|
resolveTypesModule(fromDir, moduleId, cacheKey) {
|
|
977
977
|
const moduleSplt = moduleId.split("/");
|
|
978
|
-
const root = normalizePath(path.parse(fromDir).root);
|
|
979
|
-
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
978
|
+
const root = normalizePath(path$1.parse(fromDir).root);
|
|
979
|
+
let dir = normalizePath(path$1.join(fromDir, "noop.js"));
|
|
980
980
|
let typesPackageJsonFilePath;
|
|
981
981
|
while (dir !== root) {
|
|
982
|
-
dir = normalizePath(path.dirname(dir));
|
|
983
|
-
typesPackageJsonFilePath = path.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
|
|
982
|
+
dir = normalizePath(path$1.dirname(dir));
|
|
983
|
+
typesPackageJsonFilePath = path$1.join(dir, "node_modules", moduleSplt[0], moduleSplt[1], "package.json");
|
|
984
984
|
if (!fs.existsSync(typesPackageJsonFilePath)) continue;
|
|
985
985
|
this.resolveModuleCache.set(cacheKey, typesPackageJsonFilePath);
|
|
986
986
|
return typesPackageJsonFilePath;
|
|
@@ -988,12 +988,12 @@ var NodeResolveModule = class {
|
|
|
988
988
|
throw new Error(`error loading "${moduleId}" from "${fromDir}"`);
|
|
989
989
|
}
|
|
990
990
|
resolveModuleManually(fromDir, moduleId, cacheKey) {
|
|
991
|
-
const root = normalizePath(path.parse(fromDir).root);
|
|
992
|
-
let dir = normalizePath(path.join(fromDir, "noop.js"));
|
|
991
|
+
const root = normalizePath(path$1.parse(fromDir).root);
|
|
992
|
+
let dir = normalizePath(path$1.join(fromDir, "noop.js"));
|
|
993
993
|
let packageJsonFilePath;
|
|
994
994
|
while (dir !== root) {
|
|
995
|
-
dir = normalizePath(path.dirname(dir));
|
|
996
|
-
packageJsonFilePath = path.join(dir, "node_modules", moduleId, "package.json");
|
|
995
|
+
dir = normalizePath(path$1.dirname(dir));
|
|
996
|
+
packageJsonFilePath = path$1.join(dir, "node_modules", moduleId, "package.json");
|
|
997
997
|
if (!fs.existsSync(packageJsonFilePath)) continue;
|
|
998
998
|
this.resolveModuleCache.set(cacheKey, packageJsonFilePath);
|
|
999
999
|
return packageJsonFilePath;
|
|
@@ -1079,7 +1079,7 @@ function setLastCheck() {
|
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
function getLastCheckStoragePath() {
|
|
1082
|
-
return path.join(tmpdir$1(), "stencil_last_version_node.json");
|
|
1082
|
+
return path$1.join(tmpdir$1(), "stencil_last_version_node.json");
|
|
1083
1083
|
}
|
|
1084
1084
|
function printUpdateMessage(logger, currentVersion, latestVersion) {
|
|
1085
1085
|
const installMessage = `npm install @stencil/core`;
|
|
@@ -1389,7 +1389,7 @@ function createNodeSys(c = {}) {
|
|
|
1389
1389
|
const sysCpus = cpus();
|
|
1390
1390
|
const hardwareConcurrency = sysCpus.length;
|
|
1391
1391
|
const osPlatform = platform();
|
|
1392
|
-
const compilerExecutingPath =
|
|
1392
|
+
const compilerExecutingPath = path.join(__dirname, "compiler", "index.mjs");
|
|
1393
1393
|
const runInterruptsCallbacks = () => {
|
|
1394
1394
|
const returnValues = [];
|
|
1395
1395
|
let cb;
|
|
@@ -1440,8 +1440,8 @@ function createNodeSys(c = {}) {
|
|
|
1440
1440
|
return new Promise((resolve) => {
|
|
1441
1441
|
if (opts) fs.mkdir(p, opts, (err) => {
|
|
1442
1442
|
resolve({
|
|
1443
|
-
basename:
|
|
1444
|
-
dirname:
|
|
1443
|
+
basename: path.basename(p),
|
|
1444
|
+
dirname: path.dirname(p),
|
|
1445
1445
|
path: p,
|
|
1446
1446
|
newDirs: [],
|
|
1447
1447
|
error: err
|
|
@@ -1449,8 +1449,8 @@ function createNodeSys(c = {}) {
|
|
|
1449
1449
|
});
|
|
1450
1450
|
else fs.mkdir(p, (err) => {
|
|
1451
1451
|
resolve({
|
|
1452
|
-
basename:
|
|
1453
|
-
dirname:
|
|
1452
|
+
basename: path.basename(p),
|
|
1453
|
+
dirname: path.dirname(p),
|
|
1454
1454
|
path: p,
|
|
1455
1455
|
newDirs: [],
|
|
1456
1456
|
error: err
|
|
@@ -1460,8 +1460,8 @@ function createNodeSys(c = {}) {
|
|
|
1460
1460
|
},
|
|
1461
1461
|
createDirSync(p, opts) {
|
|
1462
1462
|
const results = {
|
|
1463
|
-
basename:
|
|
1464
|
-
dirname:
|
|
1463
|
+
basename: path.basename(p),
|
|
1464
|
+
dirname: path.dirname(p),
|
|
1465
1465
|
path: p,
|
|
1466
1466
|
newDirs: [],
|
|
1467
1467
|
error: null
|
|
@@ -1474,7 +1474,7 @@ function createNodeSys(c = {}) {
|
|
|
1474
1474
|
return results;
|
|
1475
1475
|
},
|
|
1476
1476
|
createWorkerController(maxConcurrentWorkers) {
|
|
1477
|
-
return new NodeWorkerController(
|
|
1477
|
+
return new NodeWorkerController(path.join(__dirname, "sys", "node", "worker.mjs"), maxConcurrentWorkers);
|
|
1478
1478
|
},
|
|
1479
1479
|
async destroy() {
|
|
1480
1480
|
const waits = [];
|
|
@@ -1533,13 +1533,13 @@ function createNodeSys(c = {}) {
|
|
|
1533
1533
|
onProcessInterrupt: (cb) => {
|
|
1534
1534
|
if (!onInterruptsCallbacks.includes(cb)) onInterruptsCallbacks.push(cb);
|
|
1535
1535
|
},
|
|
1536
|
-
platformPath:
|
|
1536
|
+
platformPath: path,
|
|
1537
1537
|
readDir(p) {
|
|
1538
1538
|
return new Promise((resolve) => {
|
|
1539
1539
|
fs.readdir(p, (err, files) => {
|
|
1540
1540
|
if (err) resolve([]);
|
|
1541
1541
|
else resolve(files.map((f) => {
|
|
1542
|
-
return normalizePath(
|
|
1542
|
+
return normalizePath(path.join(p, f));
|
|
1543
1543
|
}));
|
|
1544
1544
|
});
|
|
1545
1545
|
});
|
|
@@ -1550,7 +1550,7 @@ function createNodeSys(c = {}) {
|
|
|
1550
1550
|
readDirSync(p) {
|
|
1551
1551
|
try {
|
|
1552
1552
|
return fs.readdirSync(p).map((f) => {
|
|
1553
|
-
return normalizePath(
|
|
1553
|
+
return normalizePath(path.join(p, f));
|
|
1554
1554
|
});
|
|
1555
1555
|
} catch {}
|
|
1556
1556
|
return [];
|
|
@@ -1627,8 +1627,8 @@ function createNodeSys(c = {}) {
|
|
|
1627
1627
|
force: true
|
|
1628
1628
|
}, (err) => {
|
|
1629
1629
|
resolve({
|
|
1630
|
-
basename:
|
|
1631
|
-
dirname:
|
|
1630
|
+
basename: path.basename(p),
|
|
1631
|
+
dirname: path.dirname(p),
|
|
1632
1632
|
path: p,
|
|
1633
1633
|
removedDirs: [],
|
|
1634
1634
|
removedFiles: [],
|
|
@@ -1637,8 +1637,8 @@ function createNodeSys(c = {}) {
|
|
|
1637
1637
|
});
|
|
1638
1638
|
else fs.rmdir(p, (err) => {
|
|
1639
1639
|
resolve({
|
|
1640
|
-
basename:
|
|
1641
|
-
dirname:
|
|
1640
|
+
basename: path.basename(p),
|
|
1641
|
+
dirname: path.dirname(p),
|
|
1642
1642
|
path: p,
|
|
1643
1643
|
removedDirs: [],
|
|
1644
1644
|
removedFiles: [],
|
|
@@ -1655,8 +1655,8 @@ function createNodeSys(c = {}) {
|
|
|
1655
1655
|
});
|
|
1656
1656
|
else fs.rmdirSync(p);
|
|
1657
1657
|
return {
|
|
1658
|
-
basename:
|
|
1659
|
-
dirname:
|
|
1658
|
+
basename: path.basename(p),
|
|
1659
|
+
dirname: path.dirname(p),
|
|
1660
1660
|
path: p,
|
|
1661
1661
|
removedDirs: [],
|
|
1662
1662
|
removedFiles: [],
|
|
@@ -1664,8 +1664,8 @@ function createNodeSys(c = {}) {
|
|
|
1664
1664
|
};
|
|
1665
1665
|
} catch (e) {
|
|
1666
1666
|
return {
|
|
1667
|
-
basename:
|
|
1668
|
-
dirname:
|
|
1667
|
+
basename: path.basename(p),
|
|
1668
|
+
dirname: path.dirname(p),
|
|
1669
1669
|
path: p,
|
|
1670
1670
|
removedDirs: [],
|
|
1671
1671
|
removedFiles: [],
|
|
@@ -1677,8 +1677,8 @@ function createNodeSys(c = {}) {
|
|
|
1677
1677
|
return new Promise((resolve) => {
|
|
1678
1678
|
fs.unlink(p, (err) => {
|
|
1679
1679
|
resolve({
|
|
1680
|
-
basename:
|
|
1681
|
-
dirname:
|
|
1680
|
+
basename: path.basename(p),
|
|
1681
|
+
dirname: path.dirname(p),
|
|
1682
1682
|
path: p,
|
|
1683
1683
|
error: err
|
|
1684
1684
|
});
|
|
@@ -1687,8 +1687,8 @@ function createNodeSys(c = {}) {
|
|
|
1687
1687
|
},
|
|
1688
1688
|
removeFileSync(p) {
|
|
1689
1689
|
const results = {
|
|
1690
|
-
basename:
|
|
1691
|
-
dirname:
|
|
1690
|
+
basename: path.basename(p),
|
|
1691
|
+
dirname: path.dirname(p),
|
|
1692
1692
|
path: p,
|
|
1693
1693
|
error: null
|
|
1694
1694
|
};
|
|
@@ -1763,7 +1763,7 @@ function createNodeSys(c = {}) {
|
|
|
1763
1763
|
sys.watchFile = (filePath, callback) => {
|
|
1764
1764
|
logger?.debug(`NODE_SYS_DEBUG::watchFile ${filePath}`);
|
|
1765
1765
|
const normalizedPath = normalizePath(filePath);
|
|
1766
|
-
const dirPath =
|
|
1766
|
+
const dirPath = path.dirname(filePath);
|
|
1767
1767
|
const subscriptionPromise = parcelWatcher.subscribe(dirPath, (err, events) => {
|
|
1768
1768
|
if (err) {
|
|
1769
1769
|
logger?.error(`Watch error for ${filePath}: ${err.message}`);
|
|
@@ -1603,7 +1603,12 @@ const hydrateScopedToShadow = () => {
|
|
|
1603
1603
|
if (!win.document) return;
|
|
1604
1604
|
const styleElements = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
|
|
1605
1605
|
let i = 0;
|
|
1606
|
-
for (; i < styleElements.length; i++)
|
|
1606
|
+
for (; i < styleElements.length; i++) {
|
|
1607
|
+
const scopeId = styleElements[i].getAttribute(HYDRATED_STYLE_ID);
|
|
1608
|
+
const existing = styles.get(scopeId);
|
|
1609
|
+
const allowCS = existing !== void 0 ? existing instanceof CSSStyleSheet : true;
|
|
1610
|
+
registerStyle(scopeId, convertScopedToShadow(styleElements[i].innerHTML), allowCS);
|
|
1611
|
+
}
|
|
1607
1612
|
};
|
|
1608
1613
|
//#endregion
|
|
1609
1614
|
//#region src/utils/helpers.ts
|
|
@@ -4519,7 +4524,6 @@ const hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
|
|
|
4519
4524
|
};
|
|
4520
4525
|
const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
|
|
4521
4526
|
const modulePath = hostElement.constructor.__stencil_module__;
|
|
4522
|
-
console.log(`[Stencil HMR] hmrStandalone <${cmpMeta.$tagName$}> modulePath:`, modulePath);
|
|
4523
4527
|
if (!modulePath) {
|
|
4524
4528
|
console.warn(`[Stencil HMR] No __stencil_module__ on <${cmpMeta.$tagName$}> constructor - was this built with devMode?`);
|
|
4525
4529
|
return;
|
|
@@ -4532,9 +4536,17 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
|
|
|
4532
4536
|
const NewClass = Object.values(newModule).find((v) => typeof v === "function" && v.is === cmpMeta.$tagName$) ?? newModule.default;
|
|
4533
4537
|
if (!NewClass) return;
|
|
4534
4538
|
const ctor = customElements.get(cmpMeta.$tagName$);
|
|
4535
|
-
if (ctor)
|
|
4536
|
-
|
|
4537
|
-
|
|
4539
|
+
if (ctor) {
|
|
4540
|
+
for (const key of Object.getOwnPropertyNames(NewClass.prototype)) {
|
|
4541
|
+
if (key === "constructor") continue;
|
|
4542
|
+
Object.defineProperty(ctor.prototype, key, Object.getOwnPropertyDescriptor(NewClass.prototype, key));
|
|
4543
|
+
}
|
|
4544
|
+
const styleDesc = Object.getOwnPropertyDescriptor(NewClass, "style");
|
|
4545
|
+
if (styleDesc) {
|
|
4546
|
+
Object.defineProperty(ctor, "style", styleDesc);
|
|
4547
|
+
const newStyle = NewClass.style;
|
|
4548
|
+
if (newStyle) registerStyle(getScopeId(cmpMeta), newStyle, !!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation));
|
|
4549
|
+
}
|
|
4538
4550
|
}
|
|
4539
4551
|
document.querySelectorAll(cmpMeta.$tagName$).forEach((el) => {
|
|
4540
4552
|
if (BUILD.hostListener) {
|
|
@@ -4554,7 +4566,9 @@ const hmrStandalone = async (hostElement, cmpMeta, hmrVersionId) => {
|
|
|
4554
4566
|
//#endregion
|
|
4555
4567
|
//#region src/runtime/bootstrap-standalone.ts
|
|
4556
4568
|
const defineCustomElement = (Cstr, compactMeta) => {
|
|
4557
|
-
|
|
4569
|
+
const tag = transformTag(compactMeta[1]);
|
|
4570
|
+
const proxied = proxyCustomElement(Cstr, compactMeta);
|
|
4571
|
+
if (!customElements.get(tag)) customElements.define(tag, proxied);
|
|
4558
4572
|
};
|
|
4559
4573
|
const proxyCustomElement = (Cstr, compactMeta) => {
|
|
4560
4574
|
if (BUILD.profile && performance.mark && performance.getEntriesByName("st:app:start", "mark").length === 0) performance.mark("st:app:start");
|