@fulate/vue 1.0.1 → 1.0.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/README.md +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/context.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/transition.d.ts +5 -5
- package/dist/vue-shape.d.ts +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
package/dist/app.d.ts
CHANGED
package/dist/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Layer, Root } from "@fulate/core";
|
|
2
|
-
import { type InjectionKey } from "
|
|
2
|
+
import { type InjectionKey } from "vue";
|
|
3
3
|
import type { VueShape } from "./vue-shape";
|
|
4
4
|
export declare const FULATE_ROOT_KEY = "__fulate_root";
|
|
5
5
|
export declare const FULATE_OVERLAY_KEY = "__fulate_overlay";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseTransition, createRenderer, defineComponent, getCurrentInstance, h, inject, markRaw, mergeProps, onBeforeUnmount, reactive, shallowRef } from "
|
|
1
|
+
import { BaseTransition, createRenderer, defineComponent, getCurrentInstance, h, inject, markRaw, mergeProps, onBeforeUnmount, reactive, shallowRef } from "vue";
|
|
2
2
|
import { Element, Layer, Root, Shape } from "@fulate/core";
|
|
3
3
|
import { isFunction, isString, isUndefined } from "lodash-es";
|
|
4
4
|
import { Circle, Group, Image, Line, LineTree, Polygon, Rectangle, RectangleProperties, RectangleTransform, RippleOverlay, ScrollView, Text, Triangle, Workspace } from "@fulate/ui";
|
package/dist/renderer.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import { Element } from "@fulate/core";
|
|
|
2
2
|
export type ElementConstructor<T extends Element = Element> = new (options?: any) => T;
|
|
3
3
|
export declare function registerElement(type: string, Constructor: ElementConstructor): void;
|
|
4
4
|
export declare function getRegisteredElement(type: string): ElementConstructor<Element<import("packages/core/src").ElementProperties, import("packages/core/src").BaseElementOption<any>, Partial<Omit<import("packages/core/src").BaseElementOption<any>, "key" | "children">>>>;
|
|
5
|
-
export declare const render: import("
|
|
5
|
+
export declare const render: import("vue").RootRenderFunction<Element<import("packages/core/src").ElementProperties, import("packages/core/src").BaseElementOption<any>, Partial<Omit<import("packages/core/src").BaseElementOption<any>, "key" | "children">>>>, baseCreateApp: import("vue").CreateAppFunction<Element<import("packages/core/src").ElementProperties, import("packages/core/src").BaseElementOption<any>, Partial<Omit<import("packages/core/src").BaseElementOption<any>, "key" | "children">>>>;
|
package/dist/transition.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BaseTransitionProps, type PropType } from "
|
|
2
|
-
export declare const FTransition: import("
|
|
1
|
+
import { type BaseTransitionProps, type PropType } from "vue";
|
|
2
|
+
export declare const FTransition: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
appear: {
|
|
4
4
|
type: BooleanConstructor;
|
|
5
5
|
default: boolean;
|
|
@@ -24,9 +24,9 @@ export declare const FTransition: import("@vue/runtime-core").DefineComponent<im
|
|
|
24
24
|
type: NumberConstructor;
|
|
25
25
|
default: number;
|
|
26
26
|
};
|
|
27
|
-
}>, () => import("
|
|
27
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
28
|
[key: string]: any;
|
|
29
|
-
}>, {}, {}, {}, import("
|
|
29
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("enter" | "leave" | "beforeEnter" | "afterEnter" | "enterCancelled" | "beforeLeave" | "afterLeave" | "leaveCancelled" | "beforeAppear" | "appear" | "afterAppear" | "appearCancelled")[], "enter" | "leave" | "beforeEnter" | "afterEnter" | "enterCancelled" | "beforeLeave" | "afterLeave" | "leaveCancelled" | "beforeAppear" | "appear" | "afterAppear" | "appearCancelled", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
appear: {
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: boolean;
|
|
@@ -71,4 +71,4 @@ export declare const FTransition: import("@vue/runtime-core").DefineComponent<im
|
|
|
71
71
|
enterFrom: Record<string, any>;
|
|
72
72
|
enterTo: Record<string, any>;
|
|
73
73
|
leaveTo: Record<string, any>;
|
|
74
|
-
}, {}, {}, {}, string, import("
|
|
74
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/vue-shape.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ElementJSON, type ElementTransformClass, type Layer, type PropertyChanges, type Root } from "@fulate/core";
|
|
2
2
|
import { Rectangle, RectangleProperties, type RectangleOption } from "@fulate/ui";
|
|
3
|
-
import { type Component } from "
|
|
3
|
+
import { type Component } from "vue";
|
|
4
4
|
export declare function registerVueComponent(name: string, comp: Component): void;
|
|
5
5
|
export declare function getVueComponent(name: string): Component | undefined;
|
|
6
6
|
/** 将当前 effective Properties 映射为完整 Vue component props。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fulate/vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -21,7 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@fulate/core": "*",
|
|
23
23
|
"@fulate/ui": "*",
|
|
24
|
-
"@vue/runtime-core": "^3.5.0",
|
|
25
24
|
"lodash-es": "^4.17.22"
|
|
25
|
+
},
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"vue": "^3.5.0"
|
|
26
28
|
}
|
|
27
29
|
}
|