@craftile/editor 1.0.4 → 1.0.5
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.js +475 -459
- package/dist/managers/inspector.d.ts +3 -0
- package/dist/managers/preview.d.ts +3 -0
- package/package.json +5 -5
|
@@ -18,6 +18,7 @@ export declare class InspectorManager {
|
|
|
18
18
|
private preview;
|
|
19
19
|
private ui;
|
|
20
20
|
private engine;
|
|
21
|
+
private previewListenersInitialized;
|
|
21
22
|
constructor(events: EventBus, preview: PreviewManager, ui: UIManager, engine: Engine);
|
|
22
23
|
enable(): void;
|
|
23
24
|
disable(): void;
|
|
@@ -27,4 +28,6 @@ export declare class InspectorManager {
|
|
|
27
28
|
clearHoveredBlock(): void;
|
|
28
29
|
clearSelectedBlock(): void;
|
|
29
30
|
setIframeRect(rect: DOMRect): void;
|
|
31
|
+
private initializePreviewListeners;
|
|
32
|
+
private syncInspectionModeToPreview;
|
|
30
33
|
}
|
|
@@ -11,6 +11,7 @@ export declare class PreviewManager {
|
|
|
11
11
|
private messenger;
|
|
12
12
|
private readyListenerInitialized;
|
|
13
13
|
private readyCallbacks;
|
|
14
|
+
private documentReadyCallbacks;
|
|
14
15
|
constructor();
|
|
15
16
|
loadUrl(url: string): void;
|
|
16
17
|
loadFromHtml(html: string): void;
|
|
@@ -20,6 +21,8 @@ export declare class PreviewManager {
|
|
|
20
21
|
sendMessage<T extends keyof WindowMessages>(type: T, payload?: WindowMessages[T]): void;
|
|
21
22
|
onMessage<T extends keyof WindowMessages>(type: T, handler: (data: WindowMessages[T], event: MessageEvent) => void): () => void;
|
|
22
23
|
onReady(fn: () => void): void;
|
|
24
|
+
onDocumentReady(fn: () => void): void;
|
|
23
25
|
runReadyCallbacks(): void;
|
|
26
|
+
runDocumentReadyCallbacks(): void;
|
|
24
27
|
private flushMessageQueue;
|
|
25
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@craftile/editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Vue.js-based editor UI components for craftile blocks engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"craftile",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"vue": "^3.5.17",
|
|
40
40
|
"vue-draggable-plus": "^0.6.0",
|
|
41
|
-
"@craftile/core": "1.0.
|
|
42
|
-
"@craftile/
|
|
43
|
-
"@craftile/
|
|
44
|
-
"@craftile/
|
|
41
|
+
"@craftile/core": "1.0.5",
|
|
42
|
+
"@craftile/messenger": "1.0.5",
|
|
43
|
+
"@craftile/types": "1.0.5",
|
|
44
|
+
"@craftile/event-bus": "1.0.5"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@ark-ui/vue": "^5.24.1",
|