@streamscloud/kit 0.19.6 → 0.19.7

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.
@@ -102,6 +102,11 @@ onMount(async () => {
102
102
  const lineHeight = parseFloat(styles.lineHeight) || parseFloat(styles.fontSize) * 1.4;
103
103
  body.style.minHeight = `${lineHeight * rows}px`;
104
104
  }
105
+ // Must seed content before wiring the listener: else the empty init-time change echoes '' and clobbers value.
106
+ if (value) {
107
+ editor.setContent(value);
108
+ }
109
+ lastVal = value ?? '';
105
110
  editor.on('change input undo redo', () => applyChange(editor));
106
111
  });
107
112
  editor.on('blur', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamscloud/kit",
3
- "version": "0.19.6",
3
+ "version": "0.19.7",
4
4
  "author": "StreamsCloud",
5
5
  "repository": {
6
6
  "type": "git",