@worktile/theia 14.2.11 → 14.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/toolbar-group/toolbar-group.component.scss +2 -4
- package/esm2020/plugins/link/hover/link-hover.component.mjs +3 -3
- package/esm2020/plugins/mention/mention.editor.mjs +4 -4
- package/esm2020/plugins/quick-insert/quick-insert.plugin.mjs +5 -3
- package/fesm2015/worktile-theia.mjs +9 -7
- package/fesm2015/worktile-theia.mjs.map +1 -1
- package/fesm2020/worktile-theia.mjs +9 -7
- package/fesm2020/worktile-theia.mjs.map +1 -1
- package/package.json +1 -1
- package/plugins/link/link.component.scss +2 -0
|
@@ -7684,10 +7684,10 @@ class TheLinkHoverComponent {
|
|
|
7684
7684
|
}
|
|
7685
7685
|
}
|
|
7686
7686
|
TheLinkHoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TheLinkHoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7687
|
-
TheLinkHoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", type: TheLinkHoverComponent, selector: "the-link-hover", inputs: { link: "link", dom: "dom", editHandle: "editHandle", deleteHandle: "deleteHandle" }, ngImport: i0, template: "<div class=\"link-hover-card px-1\">\n <a readonly href=\"{{ link }}\" target=\"_blank\" rel=\"{{ aTagRelAttr }}\" class=\"hover-control-plaintext text-truncate mx-2\">\n {{ link }}\n </a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction
|
|
7687
|
+
TheLinkHoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", type: TheLinkHoverComponent, selector: "the-link-hover", inputs: { link: "link", dom: "dom", editHandle: "editHandle", deleteHandle: "deleteHandle" }, ngImport: i0, template: "<div class=\"link-hover-card px-1\">\n <a readonly href=\"{{ link }}\" target=\"_blank\" rel=\"{{ aTagRelAttr }}\" class=\"hover-control-plaintext text-truncate mx-2\">\n {{ link }}\n </a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"edit\" thePreventDefault (click)=\"editLink($event)\"></a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"unlink-insert\" thePreventDefault (click)=\"removeLink($event)\"></a>\n</div>\n", dependencies: [{ kind: "component", type: i5.ThyActionComponent, selector: "thy-action, [thyAction]", inputs: ["thyType", "thyIcon", "thyActionIcon", "thyActive", "thyActionActive", "thyTheme", "thyHoverIcon", "thyDisabled"] }, { kind: "component", type: i12.ThyDividerComponent, selector: "thy-divider", inputs: ["thyVertical", "thyStyle", "thyColor", "thyText", "thyTextDirection", "thyDeeper"] }, { kind: "directive", type: ThePreventDefaultDirective, selector: "[thePreventDefault]", exportAs: ["thePreventDefault"] }] });
|
|
7688
7688
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: TheLinkHoverComponent, decorators: [{
|
|
7689
7689
|
type: Component,
|
|
7690
|
-
args: [{ selector: 'the-link-hover', template: "<div class=\"link-hover-card px-1\">\n <a readonly href=\"{{ link }}\" target=\"_blank\" rel=\"{{ aTagRelAttr }}\" class=\"hover-control-plaintext text-truncate mx-2\">\n {{ link }}\n </a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction
|
|
7690
|
+
args: [{ selector: 'the-link-hover', template: "<div class=\"link-hover-card px-1\">\n <a readonly href=\"{{ link }}\" target=\"_blank\" rel=\"{{ aTagRelAttr }}\" class=\"hover-control-plaintext text-truncate mx-2\">\n {{ link }}\n </a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"edit\" thePreventDefault (click)=\"editLink($event)\"></a>\n <thy-divider class=\"mx-2\" [thyVertical]=\"true\"></thy-divider>\n <a href=\"javascript:;\" thyAction thyActionIcon=\"unlink-insert\" thePreventDefault (click)=\"removeLink($event)\"></a>\n</div>\n" }]
|
|
7691
7691
|
}], ctorParameters: function () { return []; }, propDecorators: { link: [{
|
|
7692
7692
|
type: Input
|
|
7693
7693
|
}], dom: [{
|
|
@@ -9164,9 +9164,6 @@ const MentionEditor = {
|
|
|
9164
9164
|
const isParagraphStart = Editor.isStart(editor, selection?.anchor, anchorBlockEntry(editor)[1]);
|
|
9165
9165
|
const originAnchor = THE_EDITOR_ORIGIN_ANCHOR.get(editor);
|
|
9166
9166
|
let text = '';
|
|
9167
|
-
if (!originAnchor) {
|
|
9168
|
-
THE_EDITOR_ORIGIN_ANCHOR.set(editor, editor.selection.anchor);
|
|
9169
|
-
}
|
|
9170
9167
|
if (!isParagraphStart) {
|
|
9171
9168
|
const beforeRange = {
|
|
9172
9169
|
anchor: Editor.before(editor, selection.anchor),
|
|
@@ -9176,6 +9173,9 @@ const MentionEditor = {
|
|
|
9176
9173
|
}
|
|
9177
9174
|
const isSoftBreak = text === '\n';
|
|
9178
9175
|
if (isParagraphStart || text === ' ' || isSoftBreak) {
|
|
9176
|
+
if (!originAnchor) {
|
|
9177
|
+
THE_EDITOR_ORIGIN_ANCHOR.set(editor, editor.selection.anchor);
|
|
9178
|
+
}
|
|
9179
9179
|
const textElement = AngularEditor.toDOMNode(editor, anchorBlockEntry(editor)[0]);
|
|
9180
9180
|
const origin = isParagraphStart ? textElement : elementRef;
|
|
9181
9181
|
MentionEditor.openSelectOverlay(editor, type, origin, isSoftBreak);
|
|
@@ -10419,8 +10419,10 @@ const withQuickInsert = (editor) => {
|
|
|
10419
10419
|
if (text === hotkey) {
|
|
10420
10420
|
const types = [...(allowHotkeyInTypes || [])];
|
|
10421
10421
|
if (isPureEmptyParagraph(editor, block) && allowOpenInsertMenu(editor, types)) {
|
|
10422
|
-
|
|
10423
|
-
|
|
10422
|
+
setTimeout(() => {
|
|
10423
|
+
openMenuFromHotkey = true;
|
|
10424
|
+
QuickInsertEditor.openMenu(editor);
|
|
10425
|
+
}, 0);
|
|
10424
10426
|
}
|
|
10425
10427
|
}
|
|
10426
10428
|
insertText(text);
|