@leviosa-ai/detail-page-editor 0.13.5 → 0.14.1
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.
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
27
27
|
|
|
28
|
-
import {
|
|
28
|
+
import { movePageToFrame } from "@leviosa-ai/canvas/edit/commands";
|
|
29
29
|
import { frameInsertIndex, frameOf } from "@leviosa-ai/canvas/render/frames";
|
|
30
30
|
import type { CanvasStore } from "@leviosa-ai/canvas/store";
|
|
31
31
|
import { detailPageEditorProfile } from "../../lib/detail-page/editor-profile";
|
|
@@ -192,7 +192,9 @@ export function FrameDragLayer({
|
|
|
192
192
|
if (from !== to) page.setZIndex(to);
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
// 다른 벌로 끌면 **옮긴다.** 요소와 같은 규칙이다 — 화면에서 같은 손짓인데
|
|
196
|
+
// 하나는 옮기고 하나는 두 개가 되면 어느 쪽이 어느 쪽인지 외워야 한다.
|
|
197
|
+
movePageToFrame(store, current.pageId, current.drop.frameKey, current.drop.at);
|
|
196
198
|
};
|
|
197
199
|
window.addEventListener("pointermove", onMove);
|
|
198
200
|
window.addEventListener("pointerup", onUp);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leviosa-ai/detail-page-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "Leviosa detail-page editor shell. Source-only: consumers compile it through Next transpilePackages. Every app coupling (sourcing server, brand store, cache keys, toast) arrives through the DetailPageHost interface, and every URL it fetches comes from configureDetailPageEditor.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"woff2-encoder": "2.0.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@leviosa-ai/canvas": "0.
|
|
70
|
+
"@leviosa-ai/canvas": "0.8.0",
|
|
71
71
|
"@tanstack/react-query": "^5.100.3",
|
|
72
72
|
"konva": "^10.0.0",
|
|
73
73
|
"lucide-react": "^0.563.0 || ^1.0.0",
|