@flowdrop/flowdrop 2.15.1 → 2.15.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/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ 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
+ ## [2.15.2] - 2026-10-18
9
+
10
+ ### Fixed
11
+
12
+ - **A config section you opened stays open while you type in it.** A collapsed group such as General
13
+ folded shut again on every keystroke, because the form rebuilds its UI schema on each change and the
14
+ group kept re-applying its `defaultOpen`. `defaultOpen` now only sets where a group starts; after that
15
+ the user's toggle decides.
16
+
8
17
  ## [2.15.1] - 2026-10-17
9
18
 
10
19
  ### Fixed
@@ -8,7 +8,7 @@
8
8
  -->
9
9
 
10
10
  <script lang="ts">
11
- import type { Snippet } from 'svelte';
11
+ import { untrack, type Snippet } from 'svelte';
12
12
  import type { UISchemaGroup } from '../../types/uischema.js';
13
13
  import Icon from '@iconify/svelte';
14
14
 
@@ -22,11 +22,13 @@
22
22
  let { group, children }: Props = $props();
23
23
 
24
24
  const isCollapsible = $derived(group.collapsible !== false);
25
- const isDefaultOpen = $derived(group.defaultOpen !== false);
25
+ // `defaultOpen` seeds the fold once; after that the user's toggle owns it. The host rebuilds the
26
+ // UI schema on every value change, so a reactive `open` would snap the group shut on each keystroke.
27
+ let isOpen = $state(untrack(() => group.defaultOpen !== false));
26
28
  </script>
27
29
 
28
30
  {#if isCollapsible}
29
- <details class="flowdrop-details form-fieldset" open={isDefaultOpen}>
31
+ <details class="flowdrop-details form-fieldset" bind:open={isOpen}>
30
32
  <summary class="flowdrop-details__summary form-fieldset__summary">
31
33
  <span class="form-fieldset__label">
32
34
  <span class="form-fieldset__title">{group.label}</span>
@@ -1,4 +1,4 @@
1
- import type { Snippet } from 'svelte';
1
+ import { type Snippet } from 'svelte';
2
2
  import type { UISchemaGroup } from '../../types/uischema.js';
3
3
  interface Props {
4
4
  /** The UISchema Group element to render */
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A drop-in visual workflow editor for any web application. You own the backend. You own the data. You own the orchestration.",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.15.1",
6
+ "version": "2.15.2",
7
7
  "author": "Shibin Das (D34dMan)",
8
8
  "bugs": {
9
9
  "url": "https://github.com/flowdrop-io/flowdrop/issues"