@ones-editor/editor 0.0.9-beta.11 → 0.0.9-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
|
@@ -60800,7 +60800,7 @@ ${codeText}
|
|
|
60800
60800
|
}
|
|
60801
60801
|
};
|
|
60802
60802
|
versions.forEach((ver, index2) => {
|
|
60803
|
-
addVersion(ver, false, versions, ver.
|
|
60803
|
+
addVersion(ver, false, versions, ver.created === this.options.versions[0].created);
|
|
60804
60804
|
if (ver.minorVersions && ver.minorVersions.length > 0) {
|
|
60805
60805
|
ver.minorVersions.forEach((v) => {
|
|
60806
60806
|
addVersion(v, true, versions, false);
|
|
@@ -61616,7 +61616,7 @@ ${codeText}
|
|
|
61616
61616
|
this.dropdown.setLabels([]);
|
|
61617
61617
|
if (compareWithVersion) {
|
|
61618
61618
|
this.dropdown.setText(getVersionName(compareWithVersion));
|
|
61619
|
-
if (compareWithVersion.version === -1 || compareWithVersion.
|
|
61619
|
+
if (compareWithVersion.version === -1 || compareWithVersion.created === this.versions[0].created) {
|
|
61620
61620
|
this.dropdown.setLabels([i18n$1.t("version.latest")]);
|
|
61621
61621
|
}
|
|
61622
61622
|
}
|
|
@@ -61648,7 +61648,7 @@ ${codeText}
|
|
|
61648
61648
|
} else {
|
|
61649
61649
|
itemName.innerText = name;
|
|
61650
61650
|
}
|
|
61651
|
-
if (v.
|
|
61651
|
+
if (v.created === latestVersion.created) {
|
|
61652
61652
|
createElement("div", ["version-item-latest"], line1, i18n$1.t("version.latest"));
|
|
61653
61653
|
}
|
|
61654
61654
|
if (((_a2 = v.extra) == null ? void 0 : _a2.memo) && item.id !== "last-version") {
|
|
@@ -61802,7 +61802,7 @@ ${codeText}
|
|
|
61802
61802
|
});
|
|
61803
61803
|
__publicField(this, "viewVersion", async (version, compareWithVersion) => {
|
|
61804
61804
|
var _a, _b;
|
|
61805
|
-
const isLatest = this.versions[0].
|
|
61805
|
+
const isLatest = this.versions[0].created === version.created;
|
|
61806
61806
|
this.components.infoHeader.setVersion(version, compareWithVersion, isLatest);
|
|
61807
61807
|
if (this.oldViewer) {
|
|
61808
61808
|
this.oldViewer.destroy();
|