@dcloudio/uni-cli-shared 3.0.0-5010520260709002 → 3.0.0-5020320260806002
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/dom2/vue.d.ts +0 -1
- package/dist/dom2/vue.js +1 -14
- package/dist/hbx/alias.js +16 -18
- package/dist/json/app/pages/definePage.js +3 -1
- package/dist/json/mp/index.d.ts +2 -0
- package/dist/json/mp/index.js +23 -1
- package/dist/json/mp/jsonFile.d.ts +3 -2
- package/dist/json/mp/jsonFile.js +83 -13
- package/dist/json/mp/pages.d.ts +1 -0
- package/dist/json/mp/pages.js +6 -2
- package/dist/json/mp/subpackage.d.ts +26 -0
- package/dist/json/mp/subpackage.js +236 -0
- package/dist/logs/console.js +4 -1
- package/dist/messages/en.d.ts +2 -0
- package/dist/messages/en.js +2 -0
- package/dist/messages/index.d.ts +4 -0
- package/dist/messages/zh_CN.d.ts +2 -0
- package/dist/messages/zh_CN.js +2 -0
- package/dist/mp/usingComponents.d.ts +7 -5
- package/dist/mp/usingComponents.js +63 -34
- package/dist/resolve.d.ts +1 -0
- package/dist/resolve.js +9 -2
- package/dist/uts.d.ts +0 -1
- package/dist/uts.js +1 -31
- package/dist/vite/plugins/cssScoped.js +11 -2
- package/dist/vite/plugins/easycom.js +3 -1
- package/dist/vite/plugins/inject.js +7 -2
- package/dist/vite/plugins/jsonJs.js +41 -3
- package/dist/vite/plugins/sfc.js +4 -1
- package/dist/vite/plugins/vitejs/plugins/asset.js +14 -1
- package/dist/vite/plugins/vitejs/plugins/css.js +35 -1
- package/dist/vue/transforms/index.js +1 -1
- package/dist/x.d.ts +1 -0
- package/dist/x.js +5 -1
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +11 -9
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +11 -9
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +13 -1
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +8 -7
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +1 -1
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +1 -1
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +8 -7
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +1 -1
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +8 -7
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +4772 -1513
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +3209 -1754
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +1471 -395
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +143 -119
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +1576 -470
- package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +77 -2
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +77 -2
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +89 -2
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +74 -3
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@ import { AllNode, AttributeNode, BaseCodegenResult, BindingMetadata, CodegenOpti
|
|
|
2
2
|
import { App, BaseTransitionProps, Component, ComponentCustomElementInterface, ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentProvideOptions, ComponentPublicInstance, ComputedOptions, ConcreteComponent, CreateAppFunction, CreateComponentPublicInstanceWithMixins, DefineComponent, Directive, EmitsOptions, EmitsToProps, ExtractPropTypes, FunctionalComponent, GenericComponentInstance, HydrationRenderer, MethodOptions, ObjectDirective, RenderFunction, Renderer, RendererOptions, RootHydrateFunction, RootRenderFunction, SetupContext, SlotsType, VNodeRef } from "@vue/runtime-core";
|
|
3
3
|
import { AllowedComponentProps, AsyncComponentInternalOptions, AsyncComponentLoader, AsyncComponentOptions, ComponentCustomProps, ComponentInternalOptions, ComponentObjectPropsOptions as ComponentObjectPropsOptions$1, ComponentPropsOptions, ComponentTypeEmits, CreateAppFunction as CreateAppFunction$1, CustomElementOptions, DirectiveModifiers, EffectScope, EmitFn, EmitsOptions as EmitsOptions$1, EmitsToProps as EmitsToProps$1, ExtractDefaultPropTypes, ExtractPropTypes as ExtractPropTypes$1, GenericAppContext, GenericComponentInstance as GenericComponentInstance$1, KeepAliveProps, LifecycleHook, NULL_DYNAMIC_COMPONENT, NormalizedPropsOptions, ObjectEmitsOptions, Plugin, ReservedProps, SchedulerJob, ShallowUnwrapRef, SuspenseBoundary, TeleportProps, TransitionGroupProps, TransitionHooks, TransitionProps, TransitionState, TypeEmitsToOptions, VNode, VueElementBase } from "@vue/runtime-dom";
|
|
4
4
|
import { EffectScope as EffectScope$1, ReactiveEffect, Ref, ShallowRef } from "@vue/reactivity";
|
|
5
|
-
import { IsKeyValues, Namespace, NormalizedStyle, Prettify } from "@vue/shared";
|
|
5
|
+
import { IsKeyValues, Namespace, NormalizedStyle, Prettify, VaporSlotFlags, extend } from "@vue/shared";
|
|
6
6
|
import { ImportItem } from "@vue/compiler-core";
|
|
7
7
|
import { ParserOptions } from "@babel/parser";
|
|
8
8
|
|
|
@@ -21733,10 +21733,13 @@ declare function setVarsOnNode(el: Node, vars: Record<string, string>): void;
|
|
|
21733
21733
|
type Style = string | null | undefined | Record<string, unknown>;
|
|
21734
21734
|
declare function patchStyle(el: Element, prev: Style, next: Style): void;
|
|
21735
21735
|
//#endregion
|
|
21736
|
+
//#region packages/runtime-dom/src/modules/events.d.ts
|
|
21737
|
+
declare function parseEventName(name: string): [string, EventListenerOptions | undefined];
|
|
21738
|
+
//#endregion
|
|
21736
21739
|
//#region packages/runtime-dom/src/modules/attrs.d.ts
|
|
21737
21740
|
declare const xlinkNS = "http://www.w3.org/1999/xlink";
|
|
21738
21741
|
declare namespace index_d_exports$1 {
|
|
21739
|
-
export { AnchorHTMLAttributes, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseHTMLAttributes, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ClassValue, ColHTMLAttributes, ColgroupHTMLAttributes, CustomElementOptions$1 as CustomElementOptions, DataHTMLAttributes, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, ElementWithTransition, EmbedHTMLAttributes, Events, FieldsetHTMLAttributes, FormHTMLAttributes, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputAutoCompleteAttribute, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, NativeElements, ObjectHTMLAttributes, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, ReservedProps$1 as ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, Transition, TransitionGroup, TransitionGroupProps$1 as TransitionGroupProps, TransitionProps$1 as TransitionProps, TransitionPropsValidators, VShowElement, VideoHTMLAttributes, VueElement, VueElementBase$1 as VueElementBase, VueElementConstructor, WebViewHTMLAttributes, baseApplyTranslation, baseUseCssVars, callPendingCbs, createApp, createSSRApp, defineCustomElement, defineSSRCustomElement, ensureHydrationRenderer, ensureRenderer, forceReflow, handleMovedChildren, hasCSSTransform, hydrate, initDirectivesForSSR, nodeOps, normalizeContainer, patchProp, patchStyle, render, resolveTransitionProps, setVarsOnNode, shouldSetAsProp, shouldSetAsPropForVueCE, svgNS, unsafeToTrustedHTML, useCssModule, useCssVars, useHost, useShadowRoot, vModelCheckbox, vModelCheckboxInit, vModelCheckboxUpdate, vModelDynamic, getValue as vModelGetValue, vModelRadio, vModelSelect, vModelSelectInit, vModelSetSelected, vModelText, vModelTextInit, vModelTextUpdate, vShow, vShowHidden, vShowOriginalDisplay, withKeys, withModifiers, xlinkNS };
|
|
21742
|
+
export { AnchorHTMLAttributes, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseHTMLAttributes, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ClassValue, ColHTMLAttributes, ColgroupHTMLAttributes, CustomElementOptions$1 as CustomElementOptions, DataHTMLAttributes, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, ElementWithTransition, EmbedHTMLAttributes, Events, FieldsetHTMLAttributes, FormHTMLAttributes, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputAutoCompleteAttribute, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, NativeElements, ObjectHTMLAttributes, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, ReservedProps$1 as ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, Transition, TransitionGroup, TransitionGroupProps$1 as TransitionGroupProps, TransitionProps$1 as TransitionProps, TransitionPropsValidators, VShowElement, VideoHTMLAttributes, VueElement, VueElementBase$1 as VueElementBase, VueElementConstructor, WebViewHTMLAttributes, baseApplyTranslation, baseUseCssVars, callPendingCbs, createApp, createSSRApp, defineCustomElement, defineSSRCustomElement, ensureHydrationRenderer, ensureRenderer, forceReflow, handleMovedChildren, hasCSSTransform, hydrate, initDirectivesForSSR, nodeOps, normalizeContainer, parseEventName, patchProp, patchStyle, render, resolveTransitionProps, setVarsOnNode, shouldSetAsProp, shouldSetAsPropForVueCE, svgNS, unsafeToTrustedHTML, useCssModule, useCssVars, useHost, useShadowRoot, vModelCheckbox, vModelCheckboxInit, vModelCheckboxUpdate, vModelDynamic, getValue as vModelGetValue, vModelRadio, vModelSelect, vModelSelectInit, vModelSetSelected, vModelText, vModelTextInit, vModelTextUpdate, vShow, vShowHidden, vShowOriginalDisplay, withKeys, withModifiers, xlinkNS };
|
|
21740
21743
|
}
|
|
21741
21744
|
import * as import__vue_runtime_core from "@vue/runtime-core";
|
|
21742
21745
|
/**
|
|
@@ -21790,67 +21793,90 @@ type NodeRef = string | Ref | ((ref: Element | VaporComponentInstance, refs: Rec
|
|
|
21790
21793
|
type RefEl = Element | VaporComponentInstance | DynamicFragment | VaporFragment;
|
|
21791
21794
|
type setRefFn = (el: RefEl, ref: NodeRef, refFor?: boolean, refKey?: string) => NodeRef | undefined;
|
|
21792
21795
|
declare function createTemplateRefSetter(): setRefFn;
|
|
21796
|
+
declare function setStaticTemplateRef(el: RefEl, ref: NodeRef, refFor?: boolean, refKey?: string): NodeRef | undefined;
|
|
21797
|
+
declare function setTemplateRefBinding(el: RefEl, getter: () => any, setter?: setRefFn, refFor?: boolean, refKey?: string): void;
|
|
21798
|
+
//#endregion
|
|
21799
|
+
//#region packages/runtime-vapor/src/slotBoundary.d.ts
|
|
21800
|
+
interface SlotBoundaryContext {
|
|
21801
|
+
parent: SlotBoundaryContext | null;
|
|
21802
|
+
getFallback: () => BlockFn | undefined;
|
|
21803
|
+
run<R>(fn: () => R, scope?: EffectScope$1): R;
|
|
21804
|
+
markDirty: () => void;
|
|
21805
|
+
}
|
|
21793
21806
|
//#endregion
|
|
21794
21807
|
//#region packages/runtime-vapor/src/keepAlive.d.ts
|
|
21795
21808
|
interface VaporKeepAliveContext {
|
|
21809
|
+
acquireBranchScope(key: any): EffectScope$1 | undefined;
|
|
21810
|
+
runBranchRender(frag: DynamicFragment, fn: () => void): void;
|
|
21796
21811
|
processShapeFlag(block: Block): any | false;
|
|
21797
21812
|
cacheBlock(block?: Block): void;
|
|
21798
21813
|
cacheScope(cacheKey: any, scopeLookupKey: any, scope: EffectScope$1): void;
|
|
21799
|
-
getScope(key: any): EffectScope$1 | undefined;
|
|
21800
21814
|
}
|
|
21801
21815
|
//#endregion
|
|
21802
21816
|
//#region packages/runtime-vapor/src/fragment.d.ts
|
|
21803
21817
|
declare class VaporFragment<T extends Block = Block> implements TransitionOptions {
|
|
21818
|
+
/**
|
|
21819
|
+
* @internal marker for duck typing to avoid direct instanceof check
|
|
21820
|
+
* which prevents tree-shaking of VaporFragment
|
|
21821
|
+
*/
|
|
21822
|
+
readonly __vf = true;
|
|
21804
21823
|
$key?: any;
|
|
21805
21824
|
$transition?: VaporTransitionHooks | undefined;
|
|
21806
21825
|
nodes: T;
|
|
21807
21826
|
vnode?: VNode | null;
|
|
21808
21827
|
anchor?: Node;
|
|
21809
|
-
|
|
21810
|
-
validityPending?: boolean;
|
|
21828
|
+
isBlockValid?: (componentAsValid?: boolean) => boolean;
|
|
21811
21829
|
insert?: (parent: ParentNode, anchor: Node | null, transitionHooks?: TransitionHooks) => void;
|
|
21812
21830
|
remove?: (parent?: ParentNode, transitionHooks?: TransitionHooks) => void;
|
|
21813
|
-
hydrate
|
|
21831
|
+
hydrate?(...args: any[]): void;
|
|
21814
21832
|
setRef?: (instance: VaporComponentInstance, ref: NodeRef, refFor: boolean, refKey: string | undefined) => void;
|
|
21833
|
+
onBeforeInsert?: ((nodes: Block) => void)[];
|
|
21834
|
+
onBeforeRemove?: ((scope: EffectScope$1) => boolean)[];
|
|
21835
|
+
onBeforeUpdate?: (() => void)[];
|
|
21815
21836
|
onUpdated?: ((nodes?: Block) => void)[];
|
|
21837
|
+
constructor(nodes: T);
|
|
21838
|
+
}
|
|
21839
|
+
declare class RenderContextFragment<T extends Block = Block> extends VaporFragment<T> {
|
|
21816
21840
|
readonly renderInstance: GenericComponentInstance$1 | null;
|
|
21817
21841
|
readonly slotOwner: VaporComponentInstance | null;
|
|
21818
21842
|
readonly keepAliveCtx?: VaporKeepAliveContext | null;
|
|
21819
|
-
readonly
|
|
21843
|
+
readonly slotBoundary: SlotBoundaryContext | null;
|
|
21820
21844
|
constructor(nodes: T);
|
|
21821
21845
|
protected runWithRenderCtx<R>(fn: () => R, scope?: EffectScope$1): R;
|
|
21822
21846
|
}
|
|
21823
21847
|
declare class ForFragment extends VaporFragment<Block[]> {
|
|
21824
21848
|
resetListeners?: (() => void)[];
|
|
21825
|
-
constructor(nodes: Block[]);
|
|
21849
|
+
constructor(nodes: Block[], trackSlotBoundary: boolean);
|
|
21826
21850
|
onReset(fn: () => void): void;
|
|
21827
21851
|
}
|
|
21828
|
-
declare class DynamicFragment extends
|
|
21852
|
+
declare class DynamicFragment extends RenderContextFragment {
|
|
21853
|
+
/**
|
|
21854
|
+
* @internal marker for duck typing to avoid direct instanceof check
|
|
21855
|
+
* which prevents tree-shaking of DynamicFragment
|
|
21856
|
+
*/
|
|
21857
|
+
readonly __df = true;
|
|
21829
21858
|
anchor: Node;
|
|
21830
21859
|
scope: EffectScope$1 | undefined;
|
|
21831
21860
|
current?: BlockFn;
|
|
21832
21861
|
pending?: {
|
|
21833
21862
|
render?: BlockFn;
|
|
21834
21863
|
key: any;
|
|
21864
|
+
noScope: boolean;
|
|
21835
21865
|
};
|
|
21836
21866
|
anchorLabel?: string;
|
|
21837
21867
|
keyed?: boolean;
|
|
21868
|
+
isSlot?: boolean;
|
|
21869
|
+
forwarded?: boolean;
|
|
21870
|
+
nativeChildren?: boolean;
|
|
21838
21871
|
inTransition?: boolean;
|
|
21839
|
-
|
|
21840
|
-
constructor(anchorLabel?: string, keyed?: boolean, locate?: boolean);
|
|
21841
|
-
protected
|
|
21842
|
-
update(render?: BlockFn, key?: any): void;
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
}
|
|
21846
|
-
interface SlotBoundaryContext {
|
|
21847
|
-
parent: SlotBoundaryContext | null;
|
|
21848
|
-
getFallback: () => BlockFn | undefined;
|
|
21849
|
-
run<R>(fn: () => R, scope?: EffectScope$1): R;
|
|
21850
|
-
markDirty: () => void;
|
|
21851
|
-
redirected?: SlotBoundaryContext;
|
|
21872
|
+
hasFallthroughAttrs?: true;
|
|
21873
|
+
constructor(anchorLabel?: string, keyed?: boolean, locate?: boolean, trackSlotBoundary?: boolean);
|
|
21874
|
+
protected get autoHydrate(): boolean;
|
|
21875
|
+
update(render?: BlockFn, key?: any, noScope?: boolean): void;
|
|
21876
|
+
protected getBranchParent(): ParentNode | null;
|
|
21877
|
+
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null, key: any, noScope?: boolean, notifyUpdated?: boolean): void;
|
|
21852
21878
|
}
|
|
21853
|
-
declare function isFragment(val:
|
|
21879
|
+
declare function isFragment(val: unknown): val is VaporFragment;
|
|
21854
21880
|
//#endregion
|
|
21855
21881
|
//#region packages/runtime-vapor/src/block.d.ts
|
|
21856
21882
|
interface VaporTransitionHooks extends TransitionHooks {
|
|
@@ -21876,12 +21902,12 @@ declare function remove(block: Block, parent?: ParentNode): void;
|
|
|
21876
21902
|
declare const interopKey: unique symbol;
|
|
21877
21903
|
//#endregion
|
|
21878
21904
|
//#region packages/runtime-vapor/src/componentProps.d.ts
|
|
21879
|
-
type RawProps = Record<string,
|
|
21905
|
+
type RawProps = Record<string, unknown> & {
|
|
21880
21906
|
$?: DynamicPropsSource[] & {
|
|
21881
21907
|
[interopKey]?: boolean;
|
|
21882
21908
|
};
|
|
21883
21909
|
};
|
|
21884
|
-
type DynamicPropsSource = (() => Record<string, unknown>) | Record<string,
|
|
21910
|
+
type DynamicPropsSource = (() => Record<string, unknown>) | Record<string, unknown>;
|
|
21885
21911
|
//#endregion
|
|
21886
21912
|
//#region packages/runtime-vapor/src/renderEffect.d.ts
|
|
21887
21913
|
declare class RenderEffect extends ReactiveEffect {
|
|
@@ -21889,6 +21915,7 @@ declare class RenderEffect extends ReactiveEffect {
|
|
|
21889
21915
|
job: SchedulerJob;
|
|
21890
21916
|
updateJob?: SchedulerJob;
|
|
21891
21917
|
render: () => void;
|
|
21918
|
+
order: number;
|
|
21892
21919
|
constructor(render: () => void, noLifecycle?: boolean);
|
|
21893
21920
|
fn(): void;
|
|
21894
21921
|
notify(): void;
|
|
@@ -21899,23 +21926,21 @@ declare function renderEffect(fn: () => void, noLifecycle?: boolean): void;
|
|
|
21899
21926
|
type RawSlots = Record<string, VaporSlot> & {
|
|
21900
21927
|
$?: DynamicSlotSource[];
|
|
21901
21928
|
};
|
|
21929
|
+
type LooseRawSlots = VaporSlot | (Record<string, VaporSlot | DynamicSlotSource[]> & {
|
|
21930
|
+
$?: DynamicSlotSource[];
|
|
21931
|
+
});
|
|
21902
21932
|
type StaticSlots = Record<string, VaporSlot>;
|
|
21903
|
-
type VaporSlot = BlockFn
|
|
21933
|
+
type VaporSlot = BlockFn & {
|
|
21934
|
+
_?: VaporSlotFlags.NON_STABLE;
|
|
21935
|
+
};
|
|
21904
21936
|
type DynamicSlot = {
|
|
21905
21937
|
name: string;
|
|
21906
21938
|
fn: VaporSlot;
|
|
21907
21939
|
};
|
|
21908
21940
|
type DynamicSlotFn = () => DynamicSlot | DynamicSlot[];
|
|
21909
21941
|
type DynamicSlotSource = StaticSlots | DynamicSlotFn;
|
|
21910
|
-
/**
|
|
21911
|
-
* Wrap a slot function to track the slot owner.
|
|
21912
|
-
*
|
|
21913
|
-
* This ensures:
|
|
21914
|
-
* 1. createSlot gets rawSlots from the correct instance (slot owner)
|
|
21915
|
-
* 2. elements inherit the slot owner's scopeId
|
|
21916
|
-
*/
|
|
21917
21942
|
declare function withVaporCtx(fn: Function): BlockFn;
|
|
21918
|
-
declare function createSlot(name
|
|
21943
|
+
declare function createSlot(name?: string | (() => string), rawProps?: LooseRawProps | null, fallback?: VaporSlot, flags?: number): Block;
|
|
21919
21944
|
//#endregion
|
|
21920
21945
|
//#region packages/runtime-vapor/src/apiDefineComponent.d.ts
|
|
21921
21946
|
type VaporPublicProps = ReservedProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -21960,50 +21985,6 @@ declare function defineVaporComponent<TypeProps, RuntimePropsOptions extends Com
|
|
|
21960
21985
|
__typeEl?: TypeBlock;
|
|
21961
21986
|
} & ThisType<void>): DefineVaporComponent<RuntimePropsOptions, RuntimePropsKeys, InferredProps, ResolvedEmits, RuntimeEmitsKeys, Slots, Exposed extends Block ? Record<string, any> : Exposed, TypeBlock, TypeRefs, unknown extends TypeProps ? true : false>;
|
|
21962
21987
|
//#endregion
|
|
21963
|
-
//#region packages/runtime-vapor/src/components/Teleport.d.ts
|
|
21964
|
-
declare class TeleportFragment extends VaporFragment {
|
|
21965
|
-
/**
|
|
21966
|
-
* @internal marker for duck typing to avoid direct instanceof check
|
|
21967
|
-
* which prevents tree-shaking of TeleportFragment
|
|
21968
|
-
*/
|
|
21969
|
-
readonly __isTeleportFragment = true;
|
|
21970
|
-
anchor?: Node;
|
|
21971
|
-
private rawProps?;
|
|
21972
|
-
private resolvedProps?;
|
|
21973
|
-
private rawSlots?;
|
|
21974
|
-
isDisabled?: boolean;
|
|
21975
|
-
private isMounted;
|
|
21976
|
-
private childrenInitialized;
|
|
21977
|
-
private readonly ownerInstance;
|
|
21978
|
-
private readonly childrenScope;
|
|
21979
|
-
target?: ParentNode | null;
|
|
21980
|
-
targetAnchor?: Node | null;
|
|
21981
|
-
targetStart?: Node | null;
|
|
21982
|
-
placeholder?: Node;
|
|
21983
|
-
mountContainer?: ParentNode | null;
|
|
21984
|
-
mountAnchor?: Node | null;
|
|
21985
|
-
private mountToTargetJob?;
|
|
21986
|
-
constructor(props: LooseRawProps, slots?: LooseRawSlots | null);
|
|
21987
|
-
get parent(): ParentNode | null;
|
|
21988
|
-
private initChildren;
|
|
21989
|
-
private ensureChildrenInitialized;
|
|
21990
|
-
private registerUpdateCssVars;
|
|
21991
|
-
private bindChildren;
|
|
21992
|
-
private handleChildrenUpdate;
|
|
21993
|
-
private mount;
|
|
21994
|
-
private mountToTarget;
|
|
21995
|
-
private clearMainViewChildren;
|
|
21996
|
-
private handlePropsUpdate;
|
|
21997
|
-
insert: (container: ParentNode, anchor: Node | null) => void;
|
|
21998
|
-
dispose: () => void;
|
|
21999
|
-
remove: (_parent?: ParentNode) => void;
|
|
22000
|
-
private hydrateTargetAnchors;
|
|
22001
|
-
private hydrateDisabledTeleport;
|
|
22002
|
-
private mountChildren;
|
|
22003
|
-
hydrate: () => void;
|
|
22004
|
-
}
|
|
22005
|
-
declare const VaporTeleport: DefineVaporSetupFnComponent<TeleportProps>;
|
|
22006
|
-
//#endregion
|
|
22007
21988
|
//#region packages/runtime-vapor/src/component.d.ts
|
|
22008
21989
|
type VaporComponent = FunctionalVaporComponent<any> | VaporComponentOptions | DefineVaporComponent;
|
|
22009
21990
|
type FunctionalVaporComponent<Props = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>> = ((props: Props & EmitsToProps$1<Emits>, ctx: {
|
|
@@ -22029,10 +22010,6 @@ interface VaporComponentOptions<Props = {}, Emits extends EmitsOptions$1 = {}, R
|
|
|
22029
22010
|
name?: string;
|
|
22030
22011
|
vapor?: boolean;
|
|
22031
22012
|
components?: Record<string, VaporComponent>;
|
|
22032
|
-
/**
|
|
22033
|
-
* @internal custom element interception hook
|
|
22034
|
-
*/
|
|
22035
|
-
ce?: (instance: VaporComponentInstance) => void;
|
|
22036
22013
|
}
|
|
22037
22014
|
interface SharedInternalOptions {
|
|
22038
22015
|
/**
|
|
@@ -22050,13 +22027,10 @@ interface SharedInternalOptions {
|
|
|
22050
22027
|
*/
|
|
22051
22028
|
__emitsOptions?: ObjectEmitsOptions;
|
|
22052
22029
|
}
|
|
22053
|
-
type LooseRawProps = Record<string,
|
|
22030
|
+
type LooseRawProps = Record<string, unknown> & {
|
|
22054
22031
|
$?: DynamicPropsSource[];
|
|
22055
22032
|
};
|
|
22056
|
-
|
|
22057
|
-
$?: DynamicSlotSource[];
|
|
22058
|
-
};
|
|
22059
|
-
declare function createComponent(component: VaporComponent, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, appContext?: GenericAppContext, managedMount?: boolean): VaporComponentInstance;
|
|
22033
|
+
declare function createComponent(component: VaporComponent, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, appContext?: GenericAppContext, managedMount?: boolean, ce?: (instance: VaporComponentInstance) => void): VaporComponentInstance;
|
|
22060
22034
|
declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emits extends EmitsOptions$1 = {}, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block, TypeRefs extends Record<string, any> = Record<string, any>> implements GenericComponentInstance$1 {
|
|
22061
22035
|
vapor: true;
|
|
22062
22036
|
uid: number;
|
|
@@ -22089,11 +22063,11 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22089
22063
|
asyncResolved: boolean;
|
|
22090
22064
|
restoreAsyncContext?: () => void | (() => void);
|
|
22091
22065
|
deferredHydrationBoundary?: () => void;
|
|
22092
|
-
renderEffects?: RenderEffect[];
|
|
22093
22066
|
hasFallthrough: boolean;
|
|
22094
22067
|
shapeFlag?: number;
|
|
22095
22068
|
$key?: any;
|
|
22096
22069
|
oncePropsCache?: Record<string | symbol, any>;
|
|
22070
|
+
isOnce: boolean;
|
|
22097
22071
|
isMounted: boolean;
|
|
22098
22072
|
isUnmounted: boolean;
|
|
22099
22073
|
isDeactivated: boolean;
|
|
@@ -22112,14 +22086,15 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22112
22086
|
rtc?: LifecycleHook;
|
|
22113
22087
|
ec?: LifecycleHook;
|
|
22114
22088
|
sp?: LifecycleHook<() => Promise<unknown>>;
|
|
22089
|
+
effectCount: number;
|
|
22115
22090
|
setupState?: Exposed extends Block ? undefined : ShallowUnwrapRef<Exposed>;
|
|
22116
22091
|
devtoolsRawSetupState?: any;
|
|
22117
22092
|
hmrRerender?: () => void;
|
|
22118
22093
|
hmrReload?: (newComp: VaporComponent) => void;
|
|
22119
|
-
parentTeleport?: TeleportFragment | null;
|
|
22120
22094
|
propsOptions?: NormalizedPropsOptions;
|
|
22121
22095
|
emitsOptions?: ObjectEmitsOptions | null;
|
|
22122
22096
|
isSingleRoot?: boolean;
|
|
22097
|
+
renderEffects?: RenderEffect[];
|
|
22123
22098
|
/**
|
|
22124
22099
|
* dev only flag to track whether $attrs was used during render.
|
|
22125
22100
|
* If $attrs was used during render then the warning for failed attrs
|
|
@@ -22130,7 +22105,7 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22130
22105
|
* @deprecated only used for JSX to detect props types.
|
|
22131
22106
|
*/
|
|
22132
22107
|
$props: Props;
|
|
22133
|
-
constructor(comp: VaporComponent, rawProps?: RawProps | null, rawSlots?:
|
|
22108
|
+
constructor(comp: VaporComponent, rawProps?: RawProps | null, rawSlots?: LooseRawSlots | null, appContext?: GenericAppContext, once?: boolean, ce?: (instance: VaporComponentInstance) => void);
|
|
22134
22109
|
/**
|
|
22135
22110
|
* Expose `getKeysFromRawProps` on the instance so it can be used in code
|
|
22136
22111
|
* paths where it's needed, e.g. `useModel`
|
|
@@ -22140,6 +22115,12 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
|
|
|
22140
22115
|
}
|
|
22141
22116
|
declare function isVaporComponent(value: unknown): value is VaporComponentInstance;
|
|
22142
22117
|
/**
|
|
22118
|
+
* Resolve an asset component by name before passing it to the fallback helper;
|
|
22119
|
+
* a string passed directly to `createComponentWithFallback` is plain element
|
|
22120
|
+
* fallback, not a component name.
|
|
22121
|
+
*/
|
|
22122
|
+
declare function createAssetComponent(name: string, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, maybeSelfReference?: boolean, appContext?: GenericAppContext): HTMLElement | VaporComponentInstance;
|
|
22123
|
+
/**
|
|
22143
22124
|
* Used when a component cannot be resolved at compile time
|
|
22144
22125
|
* and needs rely on runtime resolution - where it might fallback to a plain
|
|
22145
22126
|
* element if the resolution fails.
|
|
@@ -22163,6 +22144,9 @@ type VaporDirective = (node: Element | VaporComponentInstance, value?: () => any
|
|
|
22163
22144
|
type VaporDirectiveArguments = Array<[VaporDirective | undefined] | [VaporDirective | undefined, () => any] | [VaporDirective | undefined, (() => any) | undefined, argument: string] | [VaporDirective | undefined, value: (() => any) | undefined, argument: string | undefined, modifiers: DirectiveModifiers]>;
|
|
22164
22145
|
declare function withVaporDirectives(node: Element | VaporComponentInstance, dirs: VaporDirectiveArguments): void;
|
|
22165
22146
|
//#endregion
|
|
22147
|
+
//#region packages/runtime-vapor/src/components/Teleport.d.ts
|
|
22148
|
+
declare const VaporTeleport: DefineVaporSetupFnComponent<TeleportProps>;
|
|
22149
|
+
//#endregion
|
|
22166
22150
|
//#region packages/runtime-vapor/src/components/KeepAlive.d.ts
|
|
22167
22151
|
declare const VaporKeepAlive: DefineVaporComponent<{}, string, KeepAliveProps>;
|
|
22168
22152
|
//#endregion
|
|
@@ -22236,7 +22220,7 @@ declare function setInsertionState(parent: ParentNode & {
|
|
|
22236
22220
|
}, anchor?: Node | 0 | null, logicalIndex?: number): void;
|
|
22237
22221
|
//#endregion
|
|
22238
22222
|
//#region packages/runtime-vapor/src/dom/template.d.ts
|
|
22239
|
-
declare function template(html: string,
|
|
22223
|
+
declare function template(html: string, flags?: number, ns?: Namespace): () => Node & {
|
|
22240
22224
|
$root?: true;
|
|
22241
22225
|
};
|
|
22242
22226
|
//#endregion
|
|
@@ -22288,16 +22272,20 @@ declare function setBlockHtml(block: Block & {
|
|
|
22288
22272
|
declare function setDynamicProps(el: any, args: any[], isSVG?: boolean): void;
|
|
22289
22273
|
//#endregion
|
|
22290
22274
|
//#region packages/runtime-vapor/src/dom/event.d.ts
|
|
22291
|
-
|
|
22292
|
-
|
|
22293
|
-
|
|
22294
|
-
declare function
|
|
22275
|
+
type EventHandler = (...args: any[]) => any;
|
|
22276
|
+
type EventHandlerValue = EventHandler | EventHandler[];
|
|
22277
|
+
type MaybeEventHandlerValue = EventHandlerValue | null | undefined;
|
|
22278
|
+
declare function on(el: Element, event: string, handler: EventHandlerValue, options?: AddEventListenerOptions): void;
|
|
22279
|
+
declare function onBinding(el: Element, event: string, handler: EventHandlerValue, options?: AddEventListenerOptions): void;
|
|
22280
|
+
declare function delegate(el: any, event: string, handler: EventHandler): void;
|
|
22295
22281
|
declare const delegateEvents: (...names: string[]) => void;
|
|
22296
|
-
declare function setDynamicEvents(el: HTMLElement, events: Record<string,
|
|
22297
|
-
declare function
|
|
22282
|
+
declare function setDynamicEvents(el: HTMLElement, events: Record<string, EventHandlerValue>): void;
|
|
22283
|
+
declare function withVaporModifiers<T extends (event: Event, ...args: unknown[]) => any>(fn: T | null | undefined, modifiers: string[]): T;
|
|
22284
|
+
declare function withVaporKeys<T extends (event: KeyboardEvent) => any>(fn: T | null | undefined, modifiers: string[]): T;
|
|
22285
|
+
declare function createInvoker(handler: MaybeEventHandlerValue): EventHandler;
|
|
22298
22286
|
//#endregion
|
|
22299
22287
|
//#region packages/runtime-vapor/src/apiCreateIf.d.ts
|
|
22300
|
-
declare function createIf(condition: () => any, b1: BlockFn, b2?: BlockFn,
|
|
22288
|
+
declare function createIf(condition: () => any, b1: BlockFn, b2?: BlockFn, flags?: number): Block;
|
|
22301
22289
|
//#endregion
|
|
22302
22290
|
//#region packages/runtime-vapor/src/apiCreateFragment.d.ts
|
|
22303
22291
|
/**
|
|
@@ -22339,7 +22327,7 @@ interface ForSelector {
|
|
|
22339
22327
|
declare function createSelector(source: () => any): ForSelector;
|
|
22340
22328
|
declare function createForSlots(rawSource: Source, getSlot: (item: any, key: any, index?: number) => DynamicSlot): DynamicSlot[];
|
|
22341
22329
|
declare function getRestElement(val: any, keys: string[]): any;
|
|
22342
|
-
declare function getDefaultValue(val: any,
|
|
22330
|
+
declare function getDefaultValue(val: any, getDefaultVal: () => any): any;
|
|
22343
22331
|
//#endregion
|
|
22344
22332
|
//#region packages/runtime-vapor/src/helpers/useCssVars.d.ts
|
|
22345
22333
|
declare function useVaporCssVars(getter: () => Record<string, string>): void;
|
|
@@ -22350,7 +22338,7 @@ declare function setBlockKey(block: (Block & {
|
|
|
22350
22338
|
}) | null | undefined, key: any): void;
|
|
22351
22339
|
//#endregion
|
|
22352
22340
|
//#region packages/runtime-vapor/src/apiCreateDynamicComponent.d.ts
|
|
22353
|
-
declare function createDynamicComponent(getter: () => any, rawProps?: RawProps | null, rawSlots?:
|
|
22341
|
+
declare function createDynamicComponent(getter: () => any, rawProps?: RawProps | null, rawSlots?: LooseRawSlots | null, flags?: number): VaporFragment;
|
|
22354
22342
|
//#endregion
|
|
22355
22343
|
//#region packages/runtime-vapor/src/apiSetupHelpers.d.ts
|
|
22356
22344
|
declare function withAsyncContext(getAwaitable: () => any): [any, () => void];
|
|
@@ -22372,7 +22360,7 @@ declare const VaporTransition: FunctionalVaporComponent<TransitionProps>;
|
|
|
22372
22360
|
//#region packages/runtime-vapor/src/components/TransitionGroup.d.ts
|
|
22373
22361
|
declare const VaporTransitionGroup: DefineVaporComponent<{}, string, TransitionGroupProps>;
|
|
22374
22362
|
declare namespace index_d_exports {
|
|
22375
|
-
export { Block, DefineVaporComponent, DynamicFragment, FunctionalVaporComponent, VaporComponent, VaporComponentInstance, VaporComponentOptions, VaporDirective, VaporElement, VaporElementConstructor, VaporFragment, VaporKeepAlive, VaporKeepAliveContext, VaporPublicProps, VaporRenderResult, VaporSlot, VaporTeleport, VaporTransition, VaporTransitionGroup, VaporTransitionHooks, applyCheckboxModel, applyDynamicModel, applyRadioModel, applySelectModel, applyTextModel, applyVShow, child, createComponent, createComponentWithFallback, createDynamicComponent, createFor, createForSlots, createIf, createInvoker, createKeyedFragment, createPlainElement, createSelector, createSlot, createTemplateRefSetter, createTextNode, createVaporApp, createVaporSSRApp, defineVaporAsyncComponent, defineVaporComponent, defineVaporCustomElement, defineVaporSSRCustomElement, delegate, delegateEvents, getDefaultValue, getRestElement, insert, isFragment, isVaporComponent, next, nthChild, on, prepend, remove, renderEffect, setAttr, setBlockHtml, setBlockKey, setBlockText, setClass, setClassName, setDOMProp, setDynamicEvents, setDynamicProps, setElementText, setHtml, setInsertionState, setProp, setStyle, setText, setValue, template, txt, unmountComponent, useVaporCssVars, vaporInteropPlugin, withAsyncContext, withVaporCtx, withVaporDirectives };
|
|
22363
|
+
export { Block, DefineVaporComponent, DynamicFragment, FunctionalVaporComponent, VaporComponent, VaporComponentInstance, VaporComponentOptions, VaporDirective, VaporElement, VaporElementConstructor, VaporFragment, VaporKeepAlive, VaporKeepAliveContext, VaporPublicProps, VaporRenderResult, VaporSlot, VaporTeleport, VaporTransition, VaporTransitionGroup, VaporTransitionHooks, applyCheckboxModel, applyDynamicModel, applyRadioModel, applySelectModel, applyTextModel, applyVShow, child, createAssetComponent, createComponent, createComponentWithFallback, createDynamicComponent, createFor, createForSlots, createIf, createInvoker, createKeyedFragment, createPlainElement, createSelector, createSlot, createTemplateRefSetter, createTextNode, createVaporApp, createVaporSSRApp, defineVaporAsyncComponent, defineVaporComponent, defineVaporCustomElement, defineVaporSSRCustomElement, delegate, delegateEvents, extend, getDefaultValue, getRestElement, insert, isFragment, isVaporComponent, next, nthChild, on, onBinding, prepend, remove, renderEffect, setAttr, setBlockHtml, setBlockKey, setBlockText, setClass, setClassName, setDOMProp, setDynamicEvents, setDynamicProps, setElementText, setHtml, setInsertionState, setProp, setStaticTemplateRef, setStyle, setTemplateRefBinding, setText, setValue, template, txt, unmountComponent, useVaporCssVars, vaporInteropPlugin, withAsyncContext, withVaporCtx, withVaporDirectives, withVaporKeys, withVaporModifiers };
|
|
22376
22364
|
}
|
|
22377
22365
|
//#endregion
|
|
22378
22366
|
//#region temp/packages/compiler-vapor/src/ir/component.d.ts
|
|
@@ -22514,6 +22502,7 @@ export interface IfIRNode extends BaseIRNode, EffectBoundary {
|
|
|
22514
22502
|
positive: BlockIRNode;
|
|
22515
22503
|
negative?: BlockIRNode | IfIRNode;
|
|
22516
22504
|
once?: boolean;
|
|
22505
|
+
slotRoot?: boolean;
|
|
22517
22506
|
index?: number;
|
|
22518
22507
|
parent?: number;
|
|
22519
22508
|
anchor?: number;
|
|
@@ -22533,6 +22522,7 @@ export interface ForIRNode extends BaseIRNode, IRFor, EffectBoundary {
|
|
|
22533
22522
|
typeProp?: SimpleExpressionNode;
|
|
22534
22523
|
render: BlockIRNode;
|
|
22535
22524
|
once: boolean;
|
|
22525
|
+
slotRoot?: boolean;
|
|
22536
22526
|
component: boolean;
|
|
22537
22527
|
onlyChild: boolean;
|
|
22538
22528
|
parent?: number;
|
|
@@ -22654,6 +22644,7 @@ export interface CreateComponentIRNode extends BaseIRNode, EffectBoundary {
|
|
|
22654
22644
|
asset: boolean;
|
|
22655
22645
|
root: boolean;
|
|
22656
22646
|
once: boolean;
|
|
22647
|
+
slotRoot?: boolean;
|
|
22657
22648
|
dynamic?: SimpleExpressionNode;
|
|
22658
22649
|
useCreateElement: boolean;
|
|
22659
22650
|
parent?: number;
|
|
@@ -22664,6 +22655,10 @@ export interface CreateComponentIRNode extends BaseIRNode, EffectBoundary {
|
|
|
22664
22655
|
* fixed by uts 当前表达式对应的标识符
|
|
22665
22656
|
*/
|
|
22666
22657
|
sharedData?: SimpleExpressionNode["sharedData"];
|
|
22658
|
+
/**
|
|
22659
|
+
* fixed by uts DOM2 组件 flatten 静态值。
|
|
22660
|
+
*/
|
|
22661
|
+
flatten?: boolean;
|
|
22667
22662
|
}
|
|
22668
22663
|
export interface SlotOutletIRNode extends BaseIRNode, EffectBoundary {
|
|
22669
22664
|
type: IRNodeTypes.SLOT_OUTLET_NODE;
|
|
@@ -22671,8 +22666,7 @@ export interface SlotOutletIRNode extends BaseIRNode, EffectBoundary {
|
|
|
22671
22666
|
name: SimpleExpressionNode;
|
|
22672
22667
|
props: IRProps[];
|
|
22673
22668
|
fallback?: BlockIRNode;
|
|
22674
|
-
|
|
22675
|
-
once?: boolean;
|
|
22669
|
+
flags: number;
|
|
22676
22670
|
parent?: number;
|
|
22677
22671
|
anchor?: number;
|
|
22678
22672
|
logicalIndex?: number;
|
|
@@ -22781,6 +22775,7 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22781
22775
|
operationIndex: number;
|
|
22782
22776
|
isLastEffectiveChild: boolean;
|
|
22783
22777
|
isOnRightmostPath: boolean;
|
|
22778
|
+
isSingleRoot: boolean;
|
|
22784
22779
|
templateCloseTags: Set<string> | undefined;
|
|
22785
22780
|
templateCloseBlocks: boolean;
|
|
22786
22781
|
private globalId;
|
|
@@ -22811,7 +22806,8 @@ export declare class TransformContext<T extends AllNode = AllNode> {
|
|
|
22811
22806
|
create<T extends TemplateChildNode>(node: T, index: number): TransformContext<T>;
|
|
22812
22807
|
private shiftEffectBoundaries;
|
|
22813
22808
|
private shiftOperationBoundaries;
|
|
22814
|
-
private
|
|
22809
|
+
private getChildContextInfo;
|
|
22810
|
+
private isSingleRootChild;
|
|
22815
22811
|
}
|
|
22816
22812
|
export declare function transform(node: RootNode, options?: TransformOptions$1): RootIRNode;
|
|
22817
22813
|
export declare function createStructuralDirectiveTransform(name: string | string[], fn: StructuralDirectiveTransform): NodeTransform;
|
|
@@ -22823,18 +22819,27 @@ export declare class CodegenContext {
|
|
|
22823
22819
|
options: Required<CodegenOptions>;
|
|
22824
22820
|
bindingNames: Set<string>;
|
|
22825
22821
|
helpers: Map<string, string>;
|
|
22822
|
+
needsTemplateRefSetter: boolean;
|
|
22823
|
+
staticTemplateRefHelperCandidate?: SetTemplateRefIRNode;
|
|
22824
|
+
inSlotBlock: boolean;
|
|
22826
22825
|
helper: (name: CoreHelper | VaporHelper) => string;
|
|
22827
22826
|
delegates: Set<string>;
|
|
22827
|
+
singleUseAssetComponentNames?: Set<string>;
|
|
22828
22828
|
identifiers: Record<string, (string | SimpleExpressionNode)[]>;
|
|
22829
|
+
expressionReplacements: Map<SimpleExpressionNode, SimpleExpressionNode>[];
|
|
22830
|
+
withExpressionReplacements<T>(map: Map<SimpleExpressionNode, SimpleExpressionNode>, fn: () => T): T;
|
|
22831
|
+
getExpressionReplacement(node: SimpleExpressionNode): SimpleExpressionNode;
|
|
22829
22832
|
seenInlineHandlerNames: Record<string, number>;
|
|
22830
22833
|
block: BlockIRNode;
|
|
22831
22834
|
withId<T>(fn: () => T, map: Record<string, string | SimpleExpressionNode | null>): T;
|
|
22832
22835
|
enterBlock(block: BlockIRNode): () => BlockIRNode;
|
|
22836
|
+
enterSlotBlock(): () => boolean;
|
|
22833
22837
|
scopeLevel: number;
|
|
22834
22838
|
enterScope(): [level: number, exit: () => number];
|
|
22835
22839
|
private templateVars;
|
|
22836
22840
|
private nextIdMap;
|
|
22837
22841
|
private lastIdMap;
|
|
22842
|
+
private isHelperNameAvailable;
|
|
22838
22843
|
private lastTIndex;
|
|
22839
22844
|
private initNextIdMap;
|
|
22840
22845
|
tName(i: number): string;
|
|
@@ -22888,7 +22893,8 @@ export interface VaporCompilerError extends CompilerError {
|
|
|
22888
22893
|
export declare function createVaporCompilerError(code: VaporErrorCodes, loc?: SourceLocation): VaporCompilerError;
|
|
22889
22894
|
export declare enum VaporErrorCodes {
|
|
22890
22895
|
X_V_PLACEHOLDER = 100,
|
|
22891
|
-
|
|
22896
|
+
X_DYNAMIC_FLATTEN_NOT_SUPPORTED = 101,
|
|
22897
|
+
__EXTEND_POINT__ = 102
|
|
22892
22898
|
}
|
|
22893
22899
|
export declare const VaporErrorMessages: Record<VaporErrorCodes, string>;
|
|
22894
22900
|
//#endregion
|
|
@@ -22947,6 +22953,7 @@ export declare const transformVSlot: NodeTransform;
|
|
|
22947
22953
|
export declare function propToExpression(prop: AttributeNode | VaporDirectiveNode): SimpleExpressionNode | undefined;
|
|
22948
22954
|
export declare function isConstantExpression(exp: SimpleExpressionNode): boolean;
|
|
22949
22955
|
export declare function isStaticExpression(node: SimpleExpressionNode, bindings: BindingMetadata): boolean;
|
|
22956
|
+
export declare function parseStaticAttrBooleanExpression(exp: SimpleExpressionNode): boolean | null;
|
|
22950
22957
|
export declare function getLiteralExpressionValue(exp: SimpleExpressionNode, excludeNumber?: boolean): string | null;
|
|
22951
22958
|
export declare function isTransitionTag(tag: string): boolean;
|
|
22952
22959
|
export declare function isTransitionGroupTag(tag: string): boolean;
|
|
@@ -22955,20 +22962,28 @@ export declare function isTeleportTag(tag: string): boolean;
|
|
|
22955
22962
|
export declare function isBuiltInComponent(tag: string): string | undefined;
|
|
22956
22963
|
//#endregion
|
|
22957
22964
|
//#region temp/packages/compiler-vapor/src/generators/expression.d.ts
|
|
22958
|
-
|
|
22965
|
+
type SourceRange = {
|
|
22966
|
+
start: number;
|
|
22967
|
+
end: number;
|
|
22968
|
+
};
|
|
22969
|
+
type VariableUse = {
|
|
22970
|
+
name: string;
|
|
22971
|
+
loc?: SourceRange;
|
|
22972
|
+
};
|
|
22973
|
+
type ExpressionRecord = {
|
|
22974
|
+
variables: VariableUse[];
|
|
22975
|
+
};
|
|
22976
|
+
type ExpressionAnalysis = {
|
|
22959
22977
|
seenVariable: Record<string, number>;
|
|
22960
22978
|
variableToExpMap: Map<string, Set<SimpleExpressionNode>>;
|
|
22961
|
-
|
|
22962
|
-
name: string;
|
|
22963
|
-
loc?: {
|
|
22964
|
-
start: number;
|
|
22965
|
-
end: number;
|
|
22966
|
-
};
|
|
22967
|
-
}>>;
|
|
22979
|
+
expressionRecords: Map<SimpleExpressionNode, ExpressionRecord>;
|
|
22968
22980
|
seenIdentifier: Set<string>;
|
|
22969
22981
|
updatedVariable: Set<string>;
|
|
22970
|
-
}
|
|
22971
|
-
export declare function analyzeExpressions(expressions: SimpleExpressionNode[]):
|
|
22982
|
+
};
|
|
22983
|
+
export declare function analyzeExpressions(expressions: SimpleExpressionNode[]): ExpressionAnalysis;
|
|
22984
|
+
//#endregion
|
|
22985
|
+
//#region temp/packages/compiler-vapor/src/generators/modifier.d.ts
|
|
22986
|
+
export declare function genDirectiveModifiers(modifiers: string[]): string;
|
|
22972
22987
|
//#endregion
|
|
22973
22988
|
//#region temp/packages/compiler-vapor/src/generators/for.d.ts
|
|
22974
22989
|
export type DestructureMapValue = {
|
|
@@ -22988,13 +23003,22 @@ export declare function matchSelectorPattern(effect: IREffect, key: string, idMa
|
|
|
22988
23003
|
selector: SimpleExpressionNode;
|
|
22989
23004
|
} | undefined;
|
|
22990
23005
|
//#endregion
|
|
23006
|
+
//#region temp/packages/compiler-vapor/src/generators/block.d.ts
|
|
23007
|
+
export declare function markSlotRootOperations(block: BlockIRNode): void;
|
|
23008
|
+
//#endregion
|
|
22991
23009
|
//#region temp/packages/compiler-vapor/src/generators/component.d.ts
|
|
23010
|
+
export declare function genDynamicComponentFlags(root: boolean | undefined, once: boolean | undefined, slotRoot: boolean | undefined, extraFlags?: [flag: number, name: string][]): string | false;
|
|
22992
23011
|
/**
|
|
22993
|
-
*
|
|
22994
|
-
*
|
|
22995
|
-
*
|
|
22996
|
-
* - Slot outlet (needs rawSlots from slot owner)
|
|
23012
|
+
* Static literal values are safe to emit directly because reading them cannot
|
|
23013
|
+
* touch reactive state. Keep handlers, v-model values, and dynamic expressions
|
|
23014
|
+
* as getter sources to preserve lazy access and merge semantics.
|
|
22997
23015
|
*/
|
|
23016
|
+
export declare function isDirectStaticLiteralProp(prop: IRProp, context: CodegenContext): boolean;
|
|
23017
|
+
type SlotRootStabilityContext = Pick<CodegenContext, "ir">;
|
|
23018
|
+
export declare function hasStableSlotRoot(block: BlockIRNode, context: SlotRootStabilityContext): boolean;
|
|
22998
23019
|
export declare function needsVaporCtx(block: BlockIRNode): boolean;
|
|
22999
23020
|
//#endregion
|
|
23021
|
+
//#region temp/packages/compiler-vapor/src/generators/slotOutlet.d.ts
|
|
23022
|
+
export declare function genSlotFlags(flags: number): string | undefined;
|
|
23023
|
+
//#endregion
|
|
23000
23024
|
export { parse, };
|