@fulate/vue 1.0.6 → 1.0.7
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/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/dist/vue-shape.d.ts +0 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export { createApp } from "./app";
|
|
|
4
4
|
export type { FulateApp, FulateAppMountOptions } from "./app";
|
|
5
5
|
export { FULATE_HOST_KEY, FULATE_OVERLAY_KEY, FULATE_ROOT_KEY, VUE_SHAPE_SIZE_KEY, registerVueOverlay, useFulateHost } from "./context";
|
|
6
6
|
export { FTransition } from "./transition";
|
|
7
|
-
export { VueShape, fromVueToFulate, registerVueComponent,
|
|
7
|
+
export { VueShape, fromVueToFulate, registerVueComponent, vueClipboardPlugin } from "./vue-shape";
|
|
8
8
|
export type { VueComponentPropsResolver, VueShapeJSON } from "./vue-shape";
|
package/dist/index.js
CHANGED
|
@@ -390,9 +390,6 @@ var vueCompRegistry = /* @__PURE__ */ new Map();
|
|
|
390
390
|
function registerVueComponent(name, comp) {
|
|
391
391
|
vueCompRegistry.set(name, comp);
|
|
392
392
|
}
|
|
393
|
-
function getVueComponent(name) {
|
|
394
|
-
return vueCompRegistry.get(name);
|
|
395
|
-
}
|
|
396
393
|
var VueShape = class extends Rectangle {
|
|
397
394
|
type = "vue-component";
|
|
398
395
|
comp = null;
|
|
@@ -507,4 +504,4 @@ function fromVueToFulate(comp, options = {}, componentProps = {}) {
|
|
|
507
504
|
return markRaw(new VueShape(options, componentProps)).bindComponent(comp);
|
|
508
505
|
}
|
|
509
506
|
//#endregion
|
|
510
|
-
export { FTransition, FULATE_HOST_KEY, FULATE_OVERLAY_KEY, FULATE_ROOT_KEY, VUE_SHAPE_SIZE_KEY, VueShape, createApp, fromVueToFulate, getRegisteredElement,
|
|
507
|
+
export { FTransition, FULATE_HOST_KEY, FULATE_OVERLAY_KEY, FULATE_ROOT_KEY, VUE_SHAPE_SIZE_KEY, VueShape, createApp, fromVueToFulate, getRegisteredElement, registerElement, registerVueComponent, registerVueOverlay, useFulateHost, vueClipboardPlugin };
|
package/dist/vue-shape.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { type ElementJSON, type ElementTransformClass, type Layer, type Property
|
|
|
2
2
|
import { Rectangle, RectangleProperties, type RectangleOption } from "@fulate/ui";
|
|
3
3
|
import { type Component } from "vue";
|
|
4
4
|
export declare function registerVueComponent(name: string, comp: Component): void;
|
|
5
|
-
export declare function getVueComponent(name: string): Component | undefined;
|
|
6
5
|
/** 将当前 effective Properties 映射为完整 Vue component props。 */
|
|
7
6
|
export type VueComponentPropsResolver<P extends RectangleProperties = RectangleProperties> = (properties: Readonly<P>) => Record<string, unknown>;
|
|
8
7
|
export type VueShapeJSON<O extends RectangleOption<any> = RectangleOption<any>> = ElementJSON<O> & {
|