@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # `@fulate/vue`
2
2
 
3
- Vue adapter 把 Vue renderer 接到一个 Fulate `Root`。它不复制 Core 场景状态,也不创建第二个 Root
3
+ Vue adapter 把 Vue renderer 接到一个 Fulate `Root`。它不复制 Core 场景状态,也不创建第二个 Root
4
4
  frame runtime;每个挂载的应用只拥有自己的 content/overlay Layer 和 Vue 生命周期。
5
5
 
6
6
  ## 创建与挂载
package/dist/app.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Root } from "@fulate/core";
2
2
  import { baseCreateApp } from "./renderer";
3
- import type { Component } from "@vue/runtime-core";
3
+ import type { Component } from "vue";
4
4
  export interface FulateAppMountOptions {
5
5
  width?: number;
6
6
  height?: number;
package/dist/context.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { Layer, Root } from "@fulate/core";
2
- import { type InjectionKey } from "@vue/runtime-core";
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 "@vue/runtime-core";
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";
@@ -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("@vue/runtime-core").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/runtime-core").CreateAppFunction<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("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">>>>;
@@ -1,5 +1,5 @@
1
- import { type BaseTransitionProps, type PropType } from "@vue/runtime-core";
2
- export declare const FTransition: import("@vue/runtime-core").DefineComponent<import("@vue/runtime-core").ExtractPropTypes<{
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("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
27
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
28
28
  [key: string]: any;
29
- }>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").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/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
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("@vue/runtime-core").ComponentProvideOptions, true, {}, any>;
74
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -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 "@vue/runtime-core";
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.1",
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
  }