@themarioga/grid-editor 8.6.0 → 8.7.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
 
8
+ ## [8.7.1] - 2026-10-02
9
+
10
+ ### Fixed
11
+ - autosave: `clearDraft()` drops the save still waiting, which wrote the
12
+ draft back a moment later - a page that cleared it after saving to its
13
+ server found it there again - and what there is when it is called is what
14
+ a new draft starts from, so only a change after it saves again.
15
+
16
+ ## [8.7.0] - 2026-10-02
17
+
18
+ ### Added
19
+ - For plugins: `ge.refreshToolbar()` builds the toolbar again, and a feature
20
+ plugin's `toolbar` can be a function, read each time the toolbar is built -
21
+ for buttons that come and go, a user's saved widgets. A toolbar button
22
+ makes the item it was built from, even if the plugin's list has changed
23
+ since.
24
+
25
+ ### Changed
26
+ - `package.json`'s `publishConfig` loses its `comment`, which npm warned
27
+ about.
28
+
8
29
  ## [8.6.0] - 2026-10-02
9
30
 
10
31
  ### Added
package/README.md CHANGED
@@ -872,7 +872,7 @@ drafts, so the second saves nothing and says so in the console.
872
872
  | `disableAutosave()` | `Boolean` | Stops saving; the draft is kept |
873
873
  | `saveDraft()` | `Boolean` | Saves now, if the html changed, even when disabled; `true` when it wrote |
874
874
  | `getDraft()` | `Object` | `{ html, savedAt }`, or `null` |
875
- | `clearDraft()` | `Boolean` | Takes the draft away, as a page does once it has saved to its server |
875
+ | `clearDraft()` | `Boolean` | Takes the draft away, as a page does once it has saved to its server. A save still waiting is dropped, and what there is now is where a new draft starts from: only a change after it saves again |
876
876
 
877
877
  The methods are there only when the plugin is loaded, and answer `false` or
878
878
  `null` when the browser gives the page no storage - a private window may not -