UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

35 lines (34 loc) 1.27 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); const vue3 = require("@tiptap/vue-3"); const vue = require("vue"); const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.cjs"); const _sfc_main = { compatConfig: { MODE: 3 }, name: "SlashCommandsComponent", components: { NodeViewWrapper: vue3.NodeViewWrapper }, props: vue3.nodeViewProps, emits: ["selected-command"], computed: { text() { return "/" + this.$props.node.attrs.command; } }, created() { this.$parent.$emit("selected-command", this.$props.node.attrs.command); } }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { const _component_node_view_wrapper = vue.resolveComponent("node-view-wrapper"); return vue.openBlock(), vue.createBlock(_component_node_view_wrapper, { class: "d-d-inline-block" }, { default: vue.withCtx(() => [ vue.createTextVNode(vue.toDisplayString($options.text), 1) ]), _: 1 }); } const SlashCommandComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["render", _sfc_render]]); exports.default = SlashCommandComponent; //# sourceMappingURL=SlashCommandComponent.vue.cjs.map