lexical-vue2
Advanced tools
Comparing version 1.0.3 to 1.0.4
import Vue from 'vue'; | ||
import VueCompositionApi, { onMounted, onUnmounted, readonly, ref, computed, unref, h, inject, toRaw } from '@vue/composition-api'; | ||
import VueCompositionApi, { onMounted, onUnmounted, ref, readonly, computed, unref, h, inject, toRaw } from '@vue/composition-api'; | ||
import { createEditor, $getRoot, $createParagraphNode, $getSelection } from 'lexical'; | ||
@@ -64,3 +64,3 @@ import { $canShowPlaceholderCurry } from '@lexical/text'; | ||
onError(error) { | ||
// this.emit('error', error) | ||
this.emit('error', error); | ||
}, | ||
@@ -232,3 +232,3 @@ }); | ||
if (!inject) return | ||
inject("data-v-2340e4d1_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"LexicalComposer.vue"}, media: undefined }); | ||
inject("data-v-0ee68133_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"LexicalComposer.vue"}, media: undefined }); | ||
@@ -669,2 +669,2 @@ }; | ||
export { __vue_component__$3 as LexicalComposer, __vue_component__ as LexicalContentEditable, __vue_component__$1 as LexicalRichTextPlugin }; | ||
export { __vue_component__$3 as LexicalComposer, __vue_component__ as LexicalContentEditable, __vue_component__$1 as LexicalRichTextPlugin, useCanShowPlaceholder, useDecorators, useEditor, useMounted, useRichTextSetup }; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('@vue/composition-api'), require('lexical'), require('@lexical/text'), require('@lexical/utils'), require('@lexical/dragon'), require('@lexical/rich-text')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'vue', '@vue/composition-api', 'lexical', '@lexical/text', '@lexical/utils', '@lexical/dragon', '@lexical/rich-text'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.LexicalVue2 = {}, global.Vue, global.VueCompositionApi, global.lexical, global.text, global.utils, global.dragon, global.richText)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["lexical-vue2"] = {}, global.Vue, global.VueCompositionApi, global.lexical, global.text, global.utils, global.dragon, global.richText)); | ||
})(this, (function (exports, Vue, VueCompositionApi, lexical, text, utils, dragon, richText) { 'use strict'; | ||
@@ -67,3 +67,3 @@ | ||
onError(error) { | ||
// this.emit('error', error) | ||
this.emit('error', error); | ||
}, | ||
@@ -235,3 +235,3 @@ }); | ||
if (!inject) return | ||
inject("data-v-2340e4d1_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"LexicalComposer.vue"}, media: undefined }); | ||
inject("data-v-0ee68133_0", { source: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", map: {"version":3,"sources":[],"names":[],"mappings":"","file":"LexicalComposer.vue"}, media: undefined }); | ||
@@ -675,2 +675,7 @@ }; | ||
exports.LexicalRichTextPlugin = __vue_component__$1; | ||
exports.useCanShowPlaceholder = useCanShowPlaceholder; | ||
exports.useDecorators = useDecorators; | ||
exports.useEditor = useEditor; | ||
exports.useMounted = useMounted; | ||
exports.useRichTextSetup = useRichTextSetup; | ||
@@ -677,0 +682,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
{ | ||
"name": "lexical-vue2", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "use lexical in vue2", | ||
@@ -31,3 +31,4 @@ "main": "dist/bundle.js", | ||
"core-js": "3.8.3", | ||
"lexical": "^0.11.3" | ||
"lexical": "^0.11.3", | ||
"vue2-teleport-component": "^0.0.4" | ||
}, | ||
@@ -47,5 +48,4 @@ "devDependencies": { | ||
"vue": "~2.6.14", | ||
"vue2-teleport-component": "^0.0.4", | ||
"@vue/composition-api": "^1.7.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import {computed, getCurrentInstance, h as _h, reactive, ref, unref, watch, watchEffect} from '@vue/composition-api'; | ||
import {computed, h as _h, ref, unref} from '@vue/composition-api'; | ||
import Teleport from 'vue2-teleport-component'; | ||
@@ -3,0 +3,0 @@ import { useMounted } from './useMounted'; |
@@ -8,1 +8,3 @@ import Vue from 'vue' | ||
export * from './composables' | ||
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3265387
13
1406
0
11
+ Addedvue2-teleport-component@0.0.4(transitive)