const setNodeSize = (size) => ({ commands, tr }) => {
  const $from = tr.selection.$from;
  const selectedNode = $from.nodeAfter;
  const nodeType = selectedNode?.type.name || "";
  const nodeContainerData = selectedNode?.attrs.containerData;
  return commands.updateAttributes(nodeType, {
    containerData: { ...nodeContainerData, width: { size } }
  });
};
export {
  setNodeSize
};
//# sourceMappingURL=set-node-size.js.map
