UNPKG

@dialpad/dialtone-vue

Version:

Vue component library for Dialpad's design system Dialtone

37 lines (36 loc) 782 B
import { Node, mergeAttributes } from "@tiptap/core"; import { VueNodeViewRenderer } from "@tiptap/vue-2"; import MeetingPill$1 from "./MeetingPill.vue.js"; const MeetingPill = Node.create({ atom: true, group: "inline", inline: true, addNodeView() { return VueNodeViewRenderer(MeetingPill$1); }, addAttributes() { return { text: { default: 'Please pass in "text" attribute' }, "close-button-aria-label": {} }; }, parseHTML() { return [ { tag: "meeting-pill" } ]; }, renderText({ node }) { return "/dpm"; }, renderHTML({ HTMLAttributes }) { return ["meeting-pill", mergeAttributes(HTMLAttributes)]; } }); export { MeetingPill as default }; //# sourceMappingURL=meeting_pill.js.map