roosterjs-editor-types
Advanced tools
Comparing version 6.5.2 to 6.6.0
import PluginEvent from './PluginEvent'; | ||
export declare type ChangeSource = 'Undo' | 'Format' | 'AutoLink' | 'CreateLink' | 'SetContent' | 'Paste' | string; | ||
export declare const enum ChangeSource { | ||
AutoLink = "AutoLink", | ||
CreateLink = "CreateLink", | ||
Format = "Format", | ||
ImageResize = "ImageResize", | ||
Paste = "Paste", | ||
SetContent = "SetContent", | ||
Undo = "Undo", | ||
} | ||
interface ContentChangedEvent extends PluginEvent { | ||
source: ChangeSource; | ||
source: ChangeSource | string; | ||
data?: any; | ||
} | ||
export default ContentChangedEvent; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Possible change sources. Here are the predefined sources. | ||
// It can also be other string if the change source can't fall into these sources. | ||
var ChangeSource; | ||
(function (ChangeSource) { | ||
ChangeSource["AutoLink"] = "AutoLink"; | ||
ChangeSource["CreateLink"] = "CreateLink"; | ||
ChangeSource["Format"] = "Format"; | ||
ChangeSource["ImageResize"] = "ImageResize"; | ||
ChangeSource["Paste"] = "Paste"; | ||
ChangeSource["SetContent"] = "SetContent"; | ||
ChangeSource["Undo"] = "Undo"; | ||
})(ChangeSource = exports.ChangeSource || (exports.ChangeSource = {})); | ||
//# sourceMappingURL=ContentChangedEvent.js.map |
@@ -34,26 +34,2 @@ /** | ||
/** | ||
* HTML MouseOver event | ||
*/ | ||
MouseOver = 7, | ||
/** | ||
* HTML MouseOut event | ||
*/ | ||
MouseOut = 8, | ||
/** | ||
* HTML Paste event | ||
*/ | ||
Paste = 9, | ||
/** | ||
* HTML Copy event | ||
*/ | ||
Copy = 10, | ||
/** | ||
* HTML Focus event | ||
*/ | ||
Focus = 11, | ||
/** | ||
* HTML blur event | ||
*/ | ||
Blur = 12, | ||
/** | ||
* Extract Content event | ||
@@ -63,8 +39,8 @@ * This event is triggered when getContent() is called with triggerExtractContentEvent = true | ||
*/ | ||
ExtractContent = 13, | ||
ExtractContent = 7, | ||
/** | ||
* Before Paste event, provide a chance to change paste content | ||
*/ | ||
BeforePaste = 14, | ||
BeforePaste = 8, | ||
} | ||
export default PluginEventType; |
@@ -37,26 +37,2 @@ "use strict"; | ||
/** | ||
* HTML MouseOver event | ||
*/ | ||
PluginEventType[PluginEventType["MouseOver"] = 7] = "MouseOver"; | ||
/** | ||
* HTML MouseOut event | ||
*/ | ||
PluginEventType[PluginEventType["MouseOut"] = 8] = "MouseOut"; | ||
/** | ||
* HTML Paste event | ||
*/ | ||
PluginEventType[PluginEventType["Paste"] = 9] = "Paste"; | ||
/** | ||
* HTML Copy event | ||
*/ | ||
PluginEventType[PluginEventType["Copy"] = 10] = "Copy"; | ||
/** | ||
* HTML Focus event | ||
*/ | ||
PluginEventType[PluginEventType["Focus"] = 11] = "Focus"; | ||
/** | ||
* HTML blur event | ||
*/ | ||
PluginEventType[PluginEventType["Blur"] = 12] = "Blur"; | ||
/** | ||
* Extract Content event | ||
@@ -66,9 +42,9 @@ * This event is triggered when getContent() is called with triggerExtractContentEvent = true | ||
*/ | ||
PluginEventType[PluginEventType["ExtractContent"] = 13] = "ExtractContent"; | ||
PluginEventType[PluginEventType["ExtractContent"] = 7] = "ExtractContent"; | ||
/** | ||
* Before Paste event, provide a chance to change paste content | ||
*/ | ||
PluginEventType[PluginEventType["BeforePaste"] = 14] = "BeforePaste"; | ||
PluginEventType[PluginEventType["BeforePaste"] = 8] = "BeforePaste"; | ||
})(PluginEventType || (PluginEventType = {})); | ||
exports.default = PluginEventType; | ||
//# sourceMappingURL=PluginEventType.js.map |
interface LinkData { | ||
scheme: string; | ||
prefix: string; | ||
originalUrl: string; | ||
@@ -5,0 +4,0 @@ normalizedUrl: string; |
@@ -16,4 +16,2 @@ export { default as Alignment } from './format/Alignment'; | ||
export { default as LinkData } from './format/LinkData'; | ||
export { default as LinkMatchOption } from './format/LinkMatchOption'; | ||
export { default as LinkMatchRule } from './format/LinkMatchRule'; | ||
export { default as ListState } from './format/ListState'; | ||
@@ -25,3 +23,2 @@ export { default as NodeType } from './browser/NodeType'; | ||
export { default as Rect } from './editor/Rect'; | ||
export { default as TextSection } from './editor/TextSection'; | ||
export { default as TraversingScoper } from './editor/TraversingScoper'; | ||
@@ -28,0 +25,0 @@ export { default as ClipboardData } from './clipboard/ClipboardData'; |
@@ -5,2 +5,4 @@ "use strict"; | ||
exports.Alignment = Alignment_1.default; | ||
var ContentChangedEvent_1 = require("./editor/ContentChangedEvent"); | ||
exports.ChangeSource = ContentChangedEvent_1.ChangeSource; | ||
var ContentPosition_1 = require("./editor/ContentPosition"); | ||
@@ -18,4 +20,2 @@ exports.ContentPosition = ContentPosition_1.default; | ||
exports.Indentation = Indentation_1.default; | ||
var LinkMatchOption_1 = require("./format/LinkMatchOption"); | ||
exports.LinkMatchOption = LinkMatchOption_1.default; | ||
var ListState_1 = require("./format/ListState"); | ||
@@ -22,0 +22,0 @@ exports.ListState = ListState_1.default; |
@@ -6,3 +6,3 @@ { | ||
"main": "./lib/index.js", | ||
"version": "6.5.2", | ||
"version": "6.6.0", | ||
"typings": "./lib/index.d.ts", | ||
@@ -9,0 +9,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30876
81
589