@tmagic/editor 1.3.0-alpha.14 → 1.3.0-alpha.15

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.
@@ -4987,7 +4987,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
4987
4987
  "custom-error": _ctx.customError,
4988
4988
  onEdit: unref(editCode),
4989
4989
  onRemove: unref(deleteCode)
4990
- }, null, 8, ["custom-error", "onEdit", "onRemove"]),
4990
+ }, {
4991
+ "code-block-panel-tool": withCtx(({ id, data }) => [
4992
+ renderSlot(_ctx.$slots, "code-block-panel-tool", {
4993
+ id,
4994
+ data
4995
+ })
4996
+ ]),
4997
+ _: 3
4998
+ }, 8, ["custom-error", "onEdit", "onRemove"]),
4991
4999
  unref(codeConfig) ? (openBlock(), createBlock(_sfc_main$G, {
4992
5000
  key: 0,
4993
5001
  ref_key: "codeBlockEditor",
@@ -5835,7 +5843,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
5835
5843
  return;
5836
5844
  const { data: node } = e;
5837
5845
  const parent = editorService?.getParentById(node.id, false);
5838
- const layout = await editorService?.getLayout(parent);
5846
+ const layout = await editorService?.getLayout(parent, node);
5839
5847
  node.style.position = layout;
5840
5848
  if (layout === Layout.RELATIVE) {
5841
5849
  node.style.top = 0;