@ones-editor/editor 3.0.16-beta.1 → 3.0.16-beta.2
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +13 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -84000,7 +84000,12 @@ ${docStr}
|
|
|
84000
84000
|
if (versionNum === void 0 || versionNum === null) {
|
|
84001
84001
|
return void 0;
|
|
84002
84002
|
}
|
|
84003
|
-
|
|
84003
|
+
let parsed;
|
|
84004
|
+
if (typeof versionNum === "string" && versionNum.startsWith("v")) {
|
|
84005
|
+
parsed = Number.parseInt(versionNum.substring(1), 10);
|
|
84006
|
+
} else {
|
|
84007
|
+
parsed = Number(versionNum);
|
|
84008
|
+
}
|
|
84004
84009
|
if (Number.isNaN(parsed)) {
|
|
84005
84010
|
return void 0;
|
|
84006
84011
|
}
|
|
@@ -84098,7 +84103,7 @@ ${docStr}
|
|
|
84098
84103
|
versionsListContainer.append(versionsListHeader, listLoading);
|
|
84099
84104
|
}
|
|
84100
84105
|
async show(options) {
|
|
84101
|
-
var _a, _b, _c, _d;
|
|
84106
|
+
var _a, _b, _c, _d, _e;
|
|
84102
84107
|
this.versionOptions = {
|
|
84103
84108
|
...this.versionOptions,
|
|
84104
84109
|
...options
|
|
@@ -84119,10 +84124,14 @@ ${docStr}
|
|
|
84119
84124
|
const skipVersionsFetch = !!((_b = this.versionOptions) == null ? void 0 : _b.forceRequestVersionAsLatest) && ((_c = this.versionOptions) == null ? void 0 : _c.initSelectedVersion) !== void 0 && ((_d = this.versionOptions) == null ? void 0 : _d.compareWith) !== void 0;
|
|
84120
84125
|
if (skipVersionsFetch) {
|
|
84121
84126
|
this.versions = [];
|
|
84127
|
+
(_e = this.versionList) == null ? void 0 : _e.destroy();
|
|
84122
84128
|
this.versionList = null;
|
|
84123
84129
|
this.components.listContainer.innerHTML = "";
|
|
84124
84130
|
this.components.infoHeader.dropdown.setVersions([]);
|
|
84125
84131
|
removeClass(this.components.root, "loading");
|
|
84132
|
+
if (this.versionOptions.onVersionsLoaded) {
|
|
84133
|
+
this.versionOptions.onVersionsLoaded(this, this.versions);
|
|
84134
|
+
}
|
|
84126
84135
|
this.initViewVersion();
|
|
84127
84136
|
return;
|
|
84128
84137
|
}
|
|
@@ -96903,7 +96912,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
96903
96912
|
}
|
|
96904
96913
|
}
|
|
96905
96914
|
});
|
|
96906
|
-
editor.version = "3.0.16-beta.
|
|
96915
|
+
editor.version = "3.0.16-beta.2";
|
|
96907
96916
|
return editor;
|
|
96908
96917
|
}
|
|
96909
96918
|
function isDoc(doc2) {
|
|
@@ -97037,7 +97046,7 @@ ${JSON.stringify(error2, null, 2)}`);
|
|
|
97037
97046
|
OnesEditorDropTarget.register(editor);
|
|
97038
97047
|
OnesEditorTocProvider.register(editor);
|
|
97039
97048
|
OnesEditorExclusiveBlock.register(editor);
|
|
97040
|
-
editor.version = "3.0.16-beta.
|
|
97049
|
+
editor.version = "3.0.16-beta.2";
|
|
97041
97050
|
return editor;
|
|
97042
97051
|
}
|
|
97043
97052
|
async function showDocVersions(editor, options, serverUrl) {
|