mbeditor 0.7.4 → 0.7.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/app/assets/javascripts/mbeditor/components/MbeditorApp.js +12 -1
- data/lib/mbeditor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b37033b1cdb05394d9c3c94d28354444ba4d568bcfd57eeb76a582ee4d0812b
|
|
4
|
+
data.tar.gz: ea68220e640e5cc57c76f0acf94519a83fde7852ffc8954880527ff108206870
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f1626f3030541e44974c2d44fb7b10ebe37d23664015cfb163f8e9c3b7b8fe9e3e85f9c9f0c2372ced7ab6adad37cd50e6856b0c18d8f0574510695d2e39443
|
|
7
|
+
data.tar.gz: 892e64bcda023182e76cbb6a95830caabfcf54c9e4fbb59aca26334df2ee6bb8434edf6be97b57576089661b6d1a98d27390d816043eb70e8508ad6efca8fbd2
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.7.5] - 2026-06-03
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **What's New tab restored blank** — `isChangelog` was stripped during periodic tab persistence (`MbeditorApp.js:1540`), so the changelog tab was restored without the flag on page reload. The pane rendered it as a normal file tab (Monaco) instead of `ChangelogView`. Added `isChangelog` to the serialized tab properties and patched `openChangelogTab` to set the flag on any restored tabs that lack it.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
8
15
|
## [0.7.4] - 2026-06-03
|
|
9
16
|
|
|
10
17
|
### Fixed
|
|
@@ -1549,6 +1549,7 @@ var MbeditorApp = function MbeditorApp() {
|
|
|
1549
1549
|
dirty: t.dirty,
|
|
1550
1550
|
viewState: t.viewState,
|
|
1551
1551
|
isSettings: !!t.isSettings,
|
|
1552
|
+
isChangelog: !!t.isChangelog,
|
|
1552
1553
|
isPreview: !!t.isPreview,
|
|
1553
1554
|
previewFor: t.previewFor || null,
|
|
1554
1555
|
isDiff: !!t.isDiff,
|
|
@@ -3038,8 +3039,18 @@ var MbeditorApp = function MbeditorApp() {
|
|
|
3038
3039
|
}
|
|
3039
3040
|
});
|
|
3040
3041
|
if (foundTab) {
|
|
3042
|
+
// If the tab was restored from a persisted state that didn't include
|
|
3043
|
+
// isChangelog (pre-v0.7.4), patch it so the pane renders ChangelogView.
|
|
3041
3044
|
var switchPanes = st.panes.map(function(p) {
|
|
3042
|
-
if (p.id === foundPaneId)
|
|
3045
|
+
if (p.id === foundPaneId) {
|
|
3046
|
+
var patchedTabs = p.tabs.map(function(t) {
|
|
3047
|
+
if (t.id === CHANGELOG_TAB_ID && !t.isChangelog) {
|
|
3048
|
+
return Object.assign({}, t, { isChangelog: true });
|
|
3049
|
+
}
|
|
3050
|
+
return t;
|
|
3051
|
+
});
|
|
3052
|
+
return Object.assign({}, p, { tabs: patchedTabs, activeTabId: CHANGELOG_TAB_ID });
|
|
3053
|
+
}
|
|
3043
3054
|
return p;
|
|
3044
3055
|
});
|
|
3045
3056
|
EditorStore.setState({ panes: switchPanes, focusedPaneId: foundPaneId });
|
data/lib/mbeditor/version.rb
CHANGED