@ones-editor/editor 2.1.7-beta.10 → 2.1.7-beta.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/dist/index.js
CHANGED
|
@@ -7644,12 +7644,17 @@ div.editor-root.compact.no-heading-collapse.no-block-menu > .editor-content {
|
|
|
7644
7644
|
}[data-fixed-toolbar-id=main-toolbar] {
|
|
7645
7645
|
font-size: 14px;
|
|
7646
7646
|
color: #2d2d2e;
|
|
7647
|
+
overflow-x: visible;
|
|
7648
|
+
}
|
|
7649
|
+
[data-fixed-toolbar-id=main-toolbar] .command-item {
|
|
7650
|
+
flex-shrink: 0;
|
|
7647
7651
|
}
|
|
7648
7652
|
[data-fixed-toolbar-id=main-toolbar] .command-item[data-button-id=paragraph] {
|
|
7649
7653
|
min-width: 77px;
|
|
7650
7654
|
}
|
|
7651
7655
|
[data-fixed-toolbar-id=main-toolbar] .command-item[data-button-id=paragraph] .toolbar-item-name-container {
|
|
7652
7656
|
flex-grow: 1;
|
|
7657
|
+
flex-shrink: 0;
|
|
7653
7658
|
}`)),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
7654
7659
|
var __defProp = Object.defineProperty;
|
|
7655
7660
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -41270,7 +41275,7 @@ ${codeText}
|
|
|
41270
41275
|
return [color === null ? null : parseInt(color, 10), backgroundColor === null ? null : parseInt(backgroundColor, 10)];
|
|
41271
41276
|
}
|
|
41272
41277
|
const textColorItem = "";
|
|
41273
|
-
class TextColorItem
|
|
41278
|
+
class TextColorItem extends tinyTypedEmitter.TypedEmitter {
|
|
41274
41279
|
constructor(editor, storageName = "color-item") {
|
|
41275
41280
|
super();
|
|
41276
41281
|
__publicField(this, "id", "text-color-item");
|
|
@@ -59003,7 +59008,7 @@ $$${mathData.mathjaxText}$$
|
|
|
59003
59008
|
});
|
|
59004
59009
|
__publicField(this, "executeInsertCommand", () => false);
|
|
59005
59010
|
this.editor = editor;
|
|
59006
|
-
this.colorItem = new TextColorItem
|
|
59011
|
+
this.colorItem = new TextColorItem(editor);
|
|
59007
59012
|
this.colorItem.addListener("onClick", this.handleChangeColor);
|
|
59008
59013
|
}
|
|
59009
59014
|
get blockAttributesHandler() {
|
|
@@ -87214,7 +87219,7 @@ ${data2.flowchartText}
|
|
|
87214
87219
|
editorAddComment(editor);
|
|
87215
87220
|
}
|
|
87216
87221
|
}
|
|
87217
|
-
class
|
|
87222
|
+
class ColorItem extends TextColorItem {
|
|
87218
87223
|
constructor(editor) {
|
|
87219
87224
|
super(editor);
|
|
87220
87225
|
__publicField(this, "childrenPlacement", "bottom-start");
|
|
@@ -87276,7 +87281,7 @@ ${data2.flowchartText}
|
|
|
87276
87281
|
new FontItalicItem(),
|
|
87277
87282
|
new FontUnderlineItem(),
|
|
87278
87283
|
new FontStrikethroughItem(),
|
|
87279
|
-
new
|
|
87284
|
+
new ColorItem(editor),
|
|
87280
87285
|
new InlineCodeItem(),
|
|
87281
87286
|
new SuperscriptItem(),
|
|
87282
87287
|
new SubscriptItem(),
|
|
@@ -87377,6 +87382,7 @@ ${data2.flowchartText}
|
|
|
87377
87382
|
this.updateState();
|
|
87378
87383
|
}
|
|
87379
87384
|
destroy() {
|
|
87385
|
+
this.toolbar.destroy();
|
|
87380
87386
|
}
|
|
87381
87387
|
setItems(items) {
|
|
87382
87388
|
this.toolbar.updateItems(items);
|
|
@@ -87611,7 +87617,7 @@ ${data2.flowchartText}
|
|
|
87611
87617
|
}
|
|
87612
87618
|
}
|
|
87613
87619
|
});
|
|
87614
|
-
editor.version = "2.1.7-beta.
|
|
87620
|
+
editor.version = "2.1.7-beta.12";
|
|
87615
87621
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
87616
87622
|
window.setReauthFail = (fail) => {
|
|
87617
87623
|
window.isReauthError = fail;
|
|
@@ -87730,7 +87736,7 @@ ${data2.flowchartText}
|
|
|
87730
87736
|
}
|
|
87731
87737
|
}
|
|
87732
87738
|
OnesEditorToolbar.register(editor);
|
|
87733
|
-
editor.version = "2.1.7-beta.
|
|
87739
|
+
editor.version = "2.1.7-beta.12";
|
|
87734
87740
|
return editor;
|
|
87735
87741
|
}
|
|
87736
87742
|
async function showDocVersions(editor, options, serverUrl) {
|
|
@@ -133529,6 +133535,7 @@ ${data2.flowchartText}
|
|
|
133529
133535
|
exports2.CodeBlock = CodeBlock;
|
|
133530
133536
|
exports2.CodeLineBlock = CodeLineBlock;
|
|
133531
133537
|
exports2.CodeTextDecorator = CodeTextDecorator;
|
|
133538
|
+
exports2.ColorItem = ColorItem;
|
|
133532
133539
|
exports2.ColorStyleProvider = ColorStyleProvider;
|
|
133533
133540
|
exports2.CommentItem = CommentItem;
|
|
133534
133541
|
exports2.CommentsCommandProvider = CommentsCommandProvider;
|
|
@@ -133638,7 +133645,7 @@ ${data2.flowchartText}
|
|
|
133638
133645
|
exports2.TableShortcuts = TableShortcuts;
|
|
133639
133646
|
exports2.TextBlock = TextBlock;
|
|
133640
133647
|
exports2.TextBox = TextBox;
|
|
133641
|
-
exports2.TextColorItem = TextColorItem
|
|
133648
|
+
exports2.TextColorItem = TextColorItem;
|
|
133642
133649
|
exports2.TextCommandProvider = TextCommandProvider;
|
|
133643
133650
|
exports2.TextScriptProvider = TextScriptProvider;
|
|
133644
133651
|
exports2.TextStyleShortcuts = TextStyleShortcuts;
|