@leviosa-ai/detail-page-editor 0.13.2 → 0.13.4

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.
@@ -207,9 +207,19 @@ export function LeviosaCanvasWorkspace({
207
207
  const frame = inner.getBoundingClientRect();
208
208
  const cx = frame.left + inner.clientWidth / 2;
209
209
  const cy = frame.top + inner.clientHeight / 2;
210
+ // **벌은 스크롤로 안 바뀐다.** 벌을 고르는 것은 그 안을 누르는 일이지 지나가는
211
+ // 일이 아니다 — 빈 자리를 잡아 화면을 옮겼을 뿐인데 «대표로 지정»이 다른 벌로
212
+ // 건너뛰면 어디를 보고 있는지 알 수가 없다. 같은 벌 안에서 어느 판을 보고 있는지만
213
+ // 따라간다. 꼬리표 없는 문서는 전부가 한 벌이라 지금까지와 똑같다.
214
+ const current = frameOf(store.activePage ?? store.pages[0] ?? {});
210
215
  const nodes = Array.from(
211
216
  inner.querySelectorAll<HTMLElement>("[data-lc-page]"),
212
- );
217
+ ).filter((node) => {
218
+ const page = node.dataset.lcPage
219
+ ? store.getPageById(node.dataset.lcPage)
220
+ : null;
221
+ return page ? frameOf(page) === current : false;
222
+ });
213
223
  const distance = (node: HTMLElement) => {
214
224
  const box = node.getBoundingClientRect();
215
225
  const dx = Math.max(box.left - cx, 0, cx - box.right);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leviosa-ai/detail-page-editor",
3
- "version": "0.13.2",
3
+ "version": "0.13.4",
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.6.2",
70
+ "@leviosa-ai/canvas": "0.6.4",
71
71
  "@tanstack/react-query": "^5.100.3",
72
72
  "konva": "^10.0.0",
73
73
  "lucide-react": "^0.563.0 || ^1.0.0",