@ones-editor/editor 2.2.19-beta.6 → 2.2.19-beta.8
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
|
@@ -5127,6 +5127,7 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
5127
5127
|
align-items: center;
|
|
5128
5128
|
white-space: nowrap;
|
|
5129
5129
|
font-size: 14px;
|
|
5130
|
+
margin-top: 2px;
|
|
5130
5131
|
}
|
|
5131
5132
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-details .file-name-pre {
|
|
5132
5133
|
text-overflow: ellipsis;
|
|
@@ -5174,6 +5175,7 @@ div.editor-root div.editor-content div[data-type=editor-container] div.embed-blo
|
|
|
5174
5175
|
flex-shrink: 0;
|
|
5175
5176
|
color: #2D2D2E;
|
|
5176
5177
|
display: none;
|
|
5178
|
+
font-size: 14px;
|
|
5177
5179
|
}
|
|
5178
5180
|
div.editor-root div.editor-content div[data-type=editor-container] div.embed-block[data-type=editor-block][data-embed-type=office] [data-type=block-content] .card-root .file-actions button svg {
|
|
5179
5181
|
width: 16px;
|
|
@@ -76729,7 +76731,7 @@ ${content}
|
|
|
76729
76731
|
toStandardText,
|
|
76730
76732
|
getResources: getResources$1
|
|
76731
76733
|
};
|
|
76732
|
-
const CopilotIcon = '<svg
|
|
76734
|
+
const CopilotIcon = '<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <defs>\n <linearGradient id="uniqueGradient" x1="14.9227" y1="7.96133" x2="0.999999" y2="7.96133" gradientUnits="userSpaceOnUse">\n <stop stop-color="#01CC77"/>\n <stop offset="0.997672" stop-color="#20D1F4"/>\n </linearGradient>\n </defs>\n <path d="M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM4.5 8C4.5 9.933 6.067 11.5 8 11.5C9.933 11.5 11.5 9.933 11.5 8C11.5 6.067 9.933 4.5 8 4.5C6.067 4.5 4.5 6.067 4.5 8Z" fill="url(#uniqueGradient)"/>\n</svg>\n';
|
|
76733
76735
|
const DwgFileIcon = '<svg width="48" height="48" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 1C13.5 2.5 14 3 16 5V15.6087C16 15.7914 15.9638 15.9723 15.8934 16.1411C15.8231 16.3099 15.7199 16.4633 15.5899 16.5925C15.4599 16.7217 15.3056 16.8242 15.1358 16.8941C14.9659 16.964 14.7838 17 14.6 17H3.4C3.21615 17 3.0341 16.964 2.86424 16.8941C2.69439 16.8242 2.54005 16.7217 2.41005 16.5925C2.28005 16.4633 2.17693 16.3099 2.10657 16.1411C2.03621 15.9723 2 15.7914 2 15.6087V2.3913C2 2.2086 2.03621 2.02768 2.10657 1.85888C2.17693 1.69007 2.28005 1.5367 2.41005 1.4075C2.54005 1.27831 2.69439 1.17583 2.86424 1.10591C3.0341 1.03599 3.21615 1 3.4 1H12Z" fill="#FFBE5A"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 7.5V11.1H8.7C9.69411 11.1 10.5 10.2941 10.5 9.3C10.5 8.30589 9.69411 7.5 8.7 7.5H7.5ZM7 6C6.44772 6 6 6.44771 6 7V11.6C6 12.1523 6.44772 12.6 7 12.6H8.7C10.5225 12.6 12 11.1225 12 9.3C12 7.47746 10.5225 6 8.7 6H7Z" fill="white"/>\n<path d="M12 1L14 3L16 5H13.3333C12.9797 5 12.6406 4.84675 12.3905 4.57397C12.1405 4.30119 12 3.93122 12 3.54546V1Z" fill="#FFD89C"/>\n</svg>';
|
|
76734
76736
|
const RvtFileIcon = '<svg width="48" height="48" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 1C13.5 2.5 14 3 16 5V15.6087C16 15.7914 15.9638 15.9723 15.8934 16.1411C15.8231 16.3099 15.7199 16.4633 15.5899 16.5925C15.4599 16.7217 15.3056 16.8242 15.1358 16.8941C14.9659 16.964 14.7838 17 14.6 17H3.4C3.21615 17 3.0341 16.964 2.86424 16.8941C2.69439 16.8242 2.54005 16.7217 2.41005 16.5925C2.28005 16.4633 2.17693 16.3099 2.10657 16.1411C2.03621 15.9723 2 15.7914 2 15.6087V2.3913C2 2.2086 2.03621 2.02768 2.10657 1.85888C2.17693 1.69007 2.28005 1.5367 2.41005 1.4075C2.54005 1.27831 2.69439 1.17583 2.86424 1.10591C3.0341 1.03599 3.21615 1 3.4 1H12Z" fill="#6B77F3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 6.90039V8.70039H9.6C10.0971 8.70039 10.5 8.29745 10.5 7.80039C10.5 7.30333 10.0971 6.90039 9.6 6.90039H7.5ZM7 5.40039C6.44772 5.40039 6 5.84811 6 6.40039V7.0504V9.20039V12.1504C6 12.3989 6.20147 12.6004 6.45 12.6004C6.69853 12.6004 6.9 12.3989 6.9 12.1504V10.1955C6.93289 10.1987 6.96625 10.2004 7 10.2004H9.6C9.6944 10.2004 9.78753 10.1949 9.87909 10.1843L11.1521 12.3892C11.2764 12.6045 11.5516 12.6782 11.7668 12.554C11.982 12.4297 12.0558 12.1545 11.9315 11.9392L10.7564 9.90392C11.4977 9.4955 12 8.7066 12 7.80039C12 6.47491 10.9255 5.40039 9.6 5.40039H7Z" fill="white"/>\n<path d="M12 1L14 3L16 5H13.3333C12.9797 5 12.6406 4.84675 12.3905 4.57397C12.1405 4.30119 12 3.93122 12 3.54546V1Z" fill="#B5BBF9"/>\n</svg>';
|
|
76735
76737
|
const SkpFileIcon = '<svg width="48" height="48" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M12 1C13.5 2.5 14 3 16 5V15.6087C16 15.7914 15.9638 15.9723 15.8934 16.1411C15.8231 16.3099 15.72 16.4633 15.5899 16.5925C15.4599 16.7217 15.3056 16.8242 15.1358 16.8941C14.9659 16.964 14.7838 17 14.6 17H3.4C3.21615 17 3.0341 16.964 2.86424 16.8941C2.69439 16.8242 2.54005 16.7217 2.41005 16.5925C2.28005 16.4633 2.17693 16.3099 2.10657 16.1411C2.03621 15.9723 2 15.7914 2 15.6087V2.3913C2 2.2086 2.03621 2.02768 2.10657 1.85888C2.17693 1.69007 2.28005 1.5367 2.41005 1.4075C2.54005 1.27831 2.69439 1.17583 2.86424 1.10591C3.0341 1.03599 3.21615 1 3.4 1H12Z" fill="#9773E3"/>\n<path d="M12 1L14 3L16 5H13.3333C12.9797 5 12.6406 4.84675 12.3905 4.57397C12.1405 4.30119 12 3.93122 12 3.54546V1Z" fill="#D8CAF4"/>\n<path d="M10.6499 6.375H8.21241C7.48753 6.375 6.8999 6.96263 6.8999 7.68751V7.68751C6.8999 8.41239 7.48753 9.00001 8.21241 9.00001H9.79277" stroke="white" stroke-width="1.2" stroke-linecap="round"/>\n<path d="M7.27488 11.025C6.94351 11.025 6.67488 11.2936 6.67488 11.625C6.67488 11.9564 6.94351 12.225 7.27488 12.225V11.025ZM9.71239 11.025H7.27488V12.225H9.71239V11.025ZM8.39989 9.59999H9.7124V8.39999H8.39989V9.59999ZM9.7124 9.59999C10.1059 9.59999 10.4249 9.91899 10.4249 10.3125H11.6249C11.6249 9.25624 10.7686 8.39999 9.7124 8.39999V9.59999ZM9.71239 12.225C10.7686 12.225 11.6249 11.3687 11.6249 10.3125H10.4249C10.4249 10.706 10.1059 11.025 9.71239 11.025V12.225Z" fill="white"/>\n</svg>';
|
|
@@ -76823,7 +76825,8 @@ ${content}
|
|
|
76823
76825
|
const copilotEnabled = checkCopilotMethod(src);
|
|
76824
76826
|
if (copilotEnabled) {
|
|
76825
76827
|
copilotButton = createElement("button", ["copilot"], actions2);
|
|
76826
|
-
|
|
76828
|
+
const uniqueIcon = CopilotIcon.replace(/uniqueGradient/g, Math.random().toString());
|
|
76829
|
+
copilotButton.innerHTML = uniqueIcon;
|
|
76827
76830
|
createElement("span", [], copilotButton, i18n$1.t("file.askAi"));
|
|
76828
76831
|
}
|
|
76829
76832
|
}
|
|
@@ -88601,7 +88604,7 @@ ${data2.flowchartText}
|
|
|
88601
88604
|
}
|
|
88602
88605
|
}
|
|
88603
88606
|
});
|
|
88604
|
-
editor.version = "2.2.19-beta.
|
|
88607
|
+
editor.version = "2.2.19-beta.8";
|
|
88605
88608
|
return editor;
|
|
88606
88609
|
}
|
|
88607
88610
|
function isDoc(doc2) {
|
|
@@ -88696,7 +88699,7 @@ ${data2.flowchartText}
|
|
|
88696
88699
|
});
|
|
88697
88700
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
88698
88701
|
OnesEditorToolbar.register(editor);
|
|
88699
|
-
editor.version = "2.2.19-beta.
|
|
88702
|
+
editor.version = "2.2.19-beta.8";
|
|
88700
88703
|
return editor;
|
|
88701
88704
|
}
|
|
88702
88705
|
async function showDocVersions(editor, options, serverUrl) {
|