const NAME = "activeTextStyles";
const activeTextStylesFn = ({ editorQuery }) => (textStyleName) => {
  const selectedNodesTextStyles = editorQuery.selection().doc.descendants((node) => node.isTextBlock()).map((node) => {
    return editorQuery.styles().getComputedTextStyle(node, textStyleName);
  });
  const activeTextStyles2 = selectedNodesTextStyles.filter(isDefined);
  return activeTextStyles2;
};
const isDefined = (x) => x !== void 0 && x !== null;
const activeTextStyles = { NAME, query: activeTextStylesFn };
export {
  activeTextStyles
};
//# sourceMappingURL=active-text-styles.js.map
