@vue/runtime-dom 3.5.0-beta.1 → 3.5.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/runtime-dom.cjs.js +5 -5
- package/dist/runtime-dom.cjs.prod.js +5 -5
- package/dist/runtime-dom.d.ts +14 -3
- package/dist/runtime-dom.esm-browser.js +298 -259
- package/dist/runtime-dom.esm-browser.prod.js +2 -2
- package/dist/runtime-dom.esm-bundler.js +5 -5
- package/dist/runtime-dom.global.js +289 -239
- package/dist/runtime-dom.global.prod.js +2 -2
- package/package.json +4 -4
package/dist/runtime-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.5.0-beta.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -793,7 +793,6 @@ class VueElement extends BaseClass {
|
|
|
793
793
|
this._ob = null;
|
|
794
794
|
if (this.shadowRoot && _createApp !== createApp) {
|
|
795
795
|
this._root = this.shadowRoot;
|
|
796
|
-
this._mount(_def);
|
|
797
796
|
} else {
|
|
798
797
|
if (this.shadowRoot) {
|
|
799
798
|
runtimeCore.warn(
|
|
@@ -806,9 +805,9 @@ class VueElement extends BaseClass {
|
|
|
806
805
|
} else {
|
|
807
806
|
this._root = this;
|
|
808
807
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
808
|
+
}
|
|
809
|
+
if (!this._def.__asyncLoader) {
|
|
810
|
+
this._resolveProps(this._def);
|
|
812
811
|
}
|
|
813
812
|
}
|
|
814
813
|
connectedCallback() {
|
|
@@ -1008,6 +1007,7 @@ class VueElement extends BaseClass {
|
|
|
1008
1007
|
vnode.ce = (instance) => {
|
|
1009
1008
|
this._instance = instance;
|
|
1010
1009
|
instance.ce = this;
|
|
1010
|
+
instance.isCE = true;
|
|
1011
1011
|
{
|
|
1012
1012
|
instance.ceReload = (newStyles) => {
|
|
1013
1013
|
if (this._styles) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-dom v3.5.0-beta.
|
|
2
|
+
* @vue/runtime-dom v3.5.0-beta.3
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -762,7 +762,6 @@ class VueElement extends BaseClass {
|
|
|
762
762
|
this._ob = null;
|
|
763
763
|
if (this.shadowRoot && _createApp !== createApp) {
|
|
764
764
|
this._root = this.shadowRoot;
|
|
765
|
-
this._mount(_def);
|
|
766
765
|
} else {
|
|
767
766
|
if (_def.shadowRoot !== false) {
|
|
768
767
|
this.attachShadow({ mode: "open" });
|
|
@@ -770,9 +769,9 @@ class VueElement extends BaseClass {
|
|
|
770
769
|
} else {
|
|
771
770
|
this._root = this;
|
|
772
771
|
}
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
772
|
+
}
|
|
773
|
+
if (!this._def.__asyncLoader) {
|
|
774
|
+
this._resolveProps(this._def);
|
|
776
775
|
}
|
|
777
776
|
}
|
|
778
777
|
connectedCallback() {
|
|
@@ -963,6 +962,7 @@ class VueElement extends BaseClass {
|
|
|
963
962
|
vnode.ce = (instance) => {
|
|
964
963
|
this._instance = instance;
|
|
965
964
|
instance.ce = this;
|
|
965
|
+
instance.isCE = true;
|
|
966
966
|
const dispatch = (event, args) => {
|
|
967
967
|
this.dispatchEvent(
|
|
968
968
|
new CustomEvent(
|
package/dist/runtime-dom.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, App, SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, DefineComponent, ComponentCustomElementInterface, CreateAppFunction, ConcreteComponent, VNodeRef, RootRenderFunction, RootHydrateFunction } from '@vue/runtime-core';
|
|
1
|
+
import { BaseTransitionProps, FunctionalComponent, ObjectDirective, Directive, App, SetupContext, RenderFunction, ComponentOptions, ComponentObjectPropsOptions, EmitsOptions, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentInjectOptions, SlotsType, Component, ComponentProvideOptions, ExtractPropTypes, EmitsToProps, ComponentOptionsBase, CreateComponentPublicInstanceWithMixins, ComponentPublicInstance, DefineComponent, ComponentCustomElementInterface, CreateAppFunction, ConcreteComponent, VNodeRef, RootRenderFunction, RootHydrateFunction } from '@vue/runtime-core';
|
|
2
2
|
export * from '@vue/runtime-core';
|
|
3
3
|
import * as CSS from 'csstype';
|
|
4
4
|
|
|
@@ -103,7 +103,9 @@ export declare function defineCustomElement<RuntimePropsOptions extends Componen
|
|
|
103
103
|
props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[];
|
|
104
104
|
} & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, // Defaults
|
|
105
105
|
InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<Readonly<ResolvedProps>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>, extraOptions?: CustomElementOptions): VueElementConstructor<ResolvedProps>;
|
|
106
|
-
export declare function defineCustomElement<T extends
|
|
106
|
+
export declare function defineCustomElement<T extends {
|
|
107
|
+
new (...args: any[]): ComponentPublicInstance<any>;
|
|
108
|
+
}>(options: T, extraOptions?: CustomElementOptions): VueElementConstructor<T extends DefineComponent<infer P, any, any, any> ? P : unknown>;
|
|
107
109
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
108
110
|
export declare const defineSSRCustomElement: typeof defineCustomElement;
|
|
109
111
|
declare const BaseClass: typeof HTMLElement;
|
|
@@ -1351,9 +1353,18 @@ export type NativeElements = {
|
|
|
1351
1353
|
[K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps;
|
|
1352
1354
|
};
|
|
1353
1355
|
|
|
1356
|
+
/**
|
|
1357
|
+
* This is a stub implementation to prevent the need to use dom types.
|
|
1358
|
+
*
|
|
1359
|
+
* To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`.
|
|
1360
|
+
*/
|
|
1361
|
+
type DomStub = {};
|
|
1362
|
+
type DomType<T> = typeof globalThis extends {
|
|
1363
|
+
window: unknown;
|
|
1364
|
+
} ? T : DomStub;
|
|
1354
1365
|
declare module '@vue/reactivity' {
|
|
1355
1366
|
interface RefUnwrapBailTypes {
|
|
1356
|
-
runtimeDOMBailTypes: Node | Window
|
|
1367
|
+
runtimeDOMBailTypes: DomType<Node | Window>;
|
|
1357
1368
|
}
|
|
1358
1369
|
}
|
|
1359
1370
|
declare module '@vue/runtime-core' {
|