@flowdrop/flowdrop 2.15.2 → 2.16.0

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/README.md +4 -0
  3. package/dist/components/App.svelte +7 -0
  4. package/dist/components/App.svelte.d.ts +6 -0
  5. package/dist/components/Input.svelte +2 -2
  6. package/dist/components/Navbar.svelte +6 -0
  7. package/dist/components/SchemaForm.svelte +2 -1
  8. package/dist/components/SchemaForm.svelte.d.ts +2 -1
  9. package/dist/components/form/FormAutocomplete.svelte +76 -12
  10. package/dist/components/primitives/Button.svelte +1 -1
  11. package/dist/components/primitives/Button.svelte.d.ts +1 -1
  12. package/dist/components/primitives/Card.svelte +1 -1
  13. package/dist/components/primitives/Card.svelte.d.ts +1 -1
  14. package/dist/components/primitives/Checkbox.svelte +1 -1
  15. package/dist/components/primitives/Checkbox.svelte.d.ts +1 -1
  16. package/dist/components/primitives/Chip.svelte +1 -1
  17. package/dist/components/primitives/Chip.svelte.d.ts +1 -1
  18. package/dist/components/primitives/Combobox.svelte +1 -1
  19. package/dist/components/primitives/Combobox.svelte.d.ts +1 -1
  20. package/dist/components/primitives/Composer.svelte +1 -1
  21. package/dist/components/primitives/Composer.svelte.d.ts +1 -1
  22. package/dist/components/primitives/EmptyState.svelte +1 -1
  23. package/dist/components/primitives/EmptyState.svelte.d.ts +1 -1
  24. package/dist/components/primitives/Field.svelte +1 -1
  25. package/dist/components/primitives/Field.svelte.d.ts +1 -1
  26. package/dist/components/primitives/IconButton.svelte +1 -1
  27. package/dist/components/primitives/IconButton.svelte.d.ts +1 -1
  28. package/dist/components/primitives/Menu.svelte +1 -1
  29. package/dist/components/primitives/Menu.svelte.d.ts +1 -1
  30. package/dist/components/primitives/Notice.svelte +1 -1
  31. package/dist/components/primitives/Notice.svelte.d.ts +1 -1
  32. package/dist/components/primitives/PanelHeader.svelte +1 -1
  33. package/dist/components/primitives/PanelHeader.svelte.d.ts +1 -1
  34. package/dist/components/primitives/Segmented.svelte +2 -2
  35. package/dist/components/primitives/Segmented.svelte.d.ts +2 -2
  36. package/dist/components/primitives/Select.svelte +1 -1
  37. package/dist/components/primitives/Select.svelte.d.ts +1 -1
  38. package/dist/components/primitives/StatusPill.svelte +1 -1
  39. package/dist/components/primitives/StatusPill.svelte.d.ts +1 -1
  40. package/dist/components/primitives/Switch.svelte +1 -1
  41. package/dist/components/primitives/Switch.svelte.d.ts +1 -1
  42. package/dist/components/primitives/Tabs.svelte +2 -2
  43. package/dist/components/primitives/Tabs.svelte.d.ts +2 -2
  44. package/dist/components/primitives/Toolbar.svelte +1 -1
  45. package/dist/components/primitives/Toolbar.svelte.d.ts +1 -1
  46. package/dist/components/primitives/ToolbarSeparator.svelte +1 -1
  47. package/dist/components/primitives/ToolbarSeparator.svelte.d.ts +1 -1
  48. package/dist/messages/defaults.d.ts +1 -0
  49. package/dist/messages/defaults.js +1 -0
  50. package/dist/openapi/v1/openapi.yaml +10 -2
  51. package/dist/schemas/v1/workflow.schema.json +1 -1
  52. package/dist/svelte-app.d.ts +21 -0
  53. package/dist/svelte-app.js +41 -2
  54. package/dist/themes/scopedSkinCss.d.ts +22 -0
  55. package/dist/themes/scopedSkinCss.js +27 -1
  56. package/dist/types/index.d.ts +11 -1
  57. package/dist/ui/index.d.ts +76 -0
  58. package/dist/ui/index.js +81 -0
  59. package/dist/utils/apiUrl.d.ts +55 -0
  60. package/dist/utils/apiUrl.js +117 -0
  61. package/dist/utils/portal.js +45 -3
  62. package/dist/webmcp/index.d.ts +5 -0
  63. package/dist/webmcp/index.js +5 -0
  64. package/package.json +6 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,66 @@ 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.16.0] - 2026-10-24
9
+
10
+ ### Added
11
+
12
+ - **Autocomplete URLs relative to the API base** (#49). An `autocomplete.url` without a leading
13
+ slash (`secrets/options`, or `./secrets/options`) resolves against the editor's
14
+ `endpointConfig.baseUrl` in every form (config panel, `SchemaForm`, interrupt forms), so a backend
15
+ can name its own option endpoints and they work behind any API base, including a hub's proxy mount
16
+ such as `/api/flowdrop/remotes/{id}`. `https://…` and `//host/…` URLs are used as given, and a
17
+ `/path` URL stays relative to the site (as in the docs' `/api/users/search` example);
18
+ `SchemaForm`'s `baseUrl` prop still goes in front of it. A `SchemaForm` given a `baseUrl` prop
19
+ resolves no-slash URLs against the prop instead (as a standalone `SchemaForm` always did); with
20
+ neither it is used as given, with a logged warning. Malformed URLs are refused, so nothing is
21
+ fetched and one error is logged per URL; the rule is in `docs/config-schema-guide.md`. Query
22
+ parameters now go in front of a `#fragment` instead of into it.
23
+ - **Interrupt forms send the editor's auth with autocomplete requests.** `FormPrompt` has no
24
+ `authProvider` of its own, so its autocomplete fields went out without auth. They now use the
25
+ instance's auth provider for requests to the page's own origin or under the API base, judged by
26
+ the URL as the browser resolves it, not by its text. Requests to other hosts, including a
27
+ `baseUrl` prop pointing elsewhere, still use only the form's provider.
28
+ - **`App` takes a `navbarEnd` snippet.** It renders at the navbar's trailing end, before the settings
29
+ gear, so a host can put its own controls there, such as a user menu. `Navbar` already had this as
30
+ its `end` slot; `App` now forwards it. It shows only when the navbar does. `mountFlowDropApp`
31
+ takes `navbarEnd` as an element callback, `(target: HTMLElement) => void | (() => void)`, so
32
+ hosts without Svelte snippets can fill the slot. It is called with the element once that is in
33
+ the page, and the function it returns runs on cleanup. A
34
+ callback that throws is logged and skipped, and `mountFlowDropApp` warns when `navbarEnd` is
35
+ given while `showNavbar` is off.
36
+ - **`@flowdrop/flowdrop/ui` exports the editor's design-system components.** The primitives
37
+ (`Button`, `Card`, `Checkbox`, `Chip`, `Combobox`, `Composer`, `EmptyState`, `Field`, `IconButton`,
38
+ `Menu`, `Notice`, `PanelHeader`, `Segmented`, `Select`, `StatusPill`, `Switch`, `Tabs`, `Toolbar`,
39
+ `ToolbarSeparator`), the surfaces (`SurfaceOverlay`, `TabbedSurface`) and `Input` and `Textarea`, so a
40
+ host can build its own pages from the same components and `--fd-*` tokens as the editor. The entry is
41
+ **experimental** in 2.x: names and props may still change in a minor release while the design system
42
+ settles. It becomes semver-stable no later than 3.0, so pin a minor version (`~2.16.0`) if you use it.
43
+ - **`skinCss` and `graphiteSkin` give a host's own pages the editor's look.** `skinCss(graphiteSkin)` returns
44
+ the Graphite tokens as CSS for `:root` (or another selector, e.g. `.flowdrop-scope`), with the dark
45
+ palette under `data-theme="dark"` on that same element. Load `tokens.css` first and add the result as a
46
+ stylesheet. Both are exported from `@flowdrop/flowdrop/ui`. The components' base styles apply inside
47
+ `.flowdrop-root`, `.flowdrop-scope` or `.flowdrop-portal`, so wrap host content in one of them. A
48
+ `SurfaceOverlay` opened inside a `.flowdrop-scope` wrapper keeps the wrapper's skin, although it is
49
+ moved to `<body>`, and follows the wrapper's `data-theme`; set one on the wrapper, or the overlay
50
+ follows the editor's stored theme setting. The entry
51
+ also exports `tabId` and `tabPanelId` and the prop types `MenuItem`, `MenuEntry`, `MenuGroup`,
52
+ `MenuSeparator`, `SegmentedOption`, `SelectOption`, `StatusPillStatus`, `SurfaceTab`, `TabItem` and
53
+ `FlowDropSkin`.
54
+
55
+ ### Changed
56
+
57
+ - **An autocomplete `url` without a leading slash now resolves against the API base** (#49). Until
58
+ 2.15 the config panel and interrupt forms fetched `secrets/options` relative to the page's URL, as
59
+ the browser resolves it. A backend that relied on that must send a `/path` or absolute URL
60
+ instead.
61
+ - **`@flowdrop/flowdrop/webmcp` is labelled experimental from 2.16.0**, like the new `./ui` entry;
62
+ releases up to 2.15 keep their usual semver promise. WebMCP is
63
+ still behind a browser origin trial, and the adapter already changed shape in a minor (2.8.0). Its
64
+ names, options and tool shapes may change in a minor release; every change is listed here. This
65
+ covers the `webmcp` option of `mountFlowDropApp`. The README's entry table lists it now, with a note
66
+ on what experimental means.
67
+
8
68
  ## [2.15.2] - 2026-10-18
9
69
 
10
70
  ### Fixed
package/README.md CHANGED
@@ -154,11 +154,15 @@ FlowDrop provides tree-shakeable sub-module exports so you can import only what
154
154
  | `@flowdrop/flowdrop/form/code` | Code editor field (CodeMirror) |
155
155
  | `@flowdrop/flowdrop/form/markdown` | Markdown editor field |
156
156
  | `@flowdrop/flowdrop/display` | MarkdownDisplay component |
157
+ | `@flowdrop/flowdrop/ui` | Design-system components: primitives, surfaces, Input, Textarea (experimental in 2.x) |
157
158
  | `@flowdrop/flowdrop/playground` | Playground components and services |
158
159
  | `@flowdrop/flowdrop/settings` | SettingsPanel, stores, services |
159
160
  | `@flowdrop/flowdrop/styles` | Base CSS stylesheet |
160
161
  | `@flowdrop/flowdrop/schema` | Workflow JSON schema |
161
162
  | `@flowdrop/flowdrop/openapi` | OpenAPI spec (YAML) for the FlowDrop backend API |
163
+ | `@flowdrop/flowdrop/webmcp` | WebMCP editor tools for browser agents: `attachWebMCP`, `createToolRuntime`, approval gate (experimental in 2.x) |
164
+
165
+ Entries marked **experimental** may change in a minor release while their API settles; every change is listed in the CHANGELOG. Pin a minor version (`~2.16.0`) if you depend on one. All other entries follow semantic versioning.
162
166
 
163
167
  ### OpenAPI spec
164
168
 
@@ -195,6 +195,11 @@
195
195
  navbarActions?: NavbarAction[];
196
196
  /** White-label logo for the navbar (replaces the FlowDrop wordmark) */
197
197
  branding?: NavbarBranding;
198
+ /**
199
+ * Host content at the navbar's trailing end, before the settings gear (the
200
+ * navbar's `end` slot), e.g. a user menu. Only shown with the navbar.
201
+ */
202
+ navbarEnd?: Snippet;
198
203
  /** Show settings gear icon in navbar */
199
204
  showSettings?: boolean;
200
205
  /** Show the "Connected" status indicator in the navbar (default: true) */
@@ -283,6 +288,7 @@
283
288
  navbarTitle,
284
289
  navbarActions = [],
285
290
  branding,
291
+ navbarEnd,
286
292
  showSettings = true,
287
293
  showStatus = true,
288
294
  apiBaseUrl,
@@ -2124,6 +2130,7 @@
2124
2130
  {showStatus}
2125
2131
  {showSettings}
2126
2132
  {branding}
2133
+ end={navbarEnd}
2127
2134
  saveShortcut
2128
2135
  onWorkflowSettings={toggleWorkflowSettings}
2129
2136
  status={doctorStatus}
@@ -1,4 +1,5 @@
1
1
  import type { ContextMenuOptions } from '../editor/contextMenu.js';
2
+ import type { Snippet } from 'svelte';
2
3
  import type { NavbarAction, NavbarBranding } from '../types/navbar.js';
3
4
  import type { NodeMetadata, Workflow, ConfigSchema } from '../types/index.js';
4
5
  import type { SwapStrategy } from '../utils/nodeSwap.js';
@@ -101,6 +102,11 @@ interface Props {
101
102
  navbarActions?: NavbarAction[];
102
103
  /** White-label logo for the navbar (replaces the FlowDrop wordmark) */
103
104
  branding?: NavbarBranding;
105
+ /**
106
+ * Host content at the navbar's trailing end, before the settings gear (the
107
+ * navbar's `end` slot), e.g. a user menu. Only shown with the navbar.
108
+ */
109
+ navbarEnd?: Snippet;
104
110
  /** Show settings gear icon in navbar */
105
111
  showSettings?: boolean;
106
112
  /** Show the "Connected" status indicator in the navbar (default: true) */
@@ -10,8 +10,8 @@
10
10
  Native attributes (type, value, placeholder, disabled, id, aria-*, oninput…)
11
11
  are forwarded verbatim to the underlying <input>.
12
12
 
13
- Internal for now (not exported from any public entry) so the API isn't frozen
14
- before GA. Existing hand-rolled inputs migrate onto it incrementally.
13
+ Exported from `@flowdrop/flowdrop/ui`. Existing hand-rolled inputs migrate onto it
14
+ incrementally.
15
15
  -->
16
16
 
17
17
  <script lang="ts">
@@ -1079,6 +1079,12 @@
1079
1079
  margin-left: var(--fd-space-md);
1080
1080
  }
1081
1081
 
1082
+ /* Host element built by mountFlowDropApp's navbarEnd callback; adds no box of
1083
+ its own, so the host's content sits in the end row and an empty one leaves no gap. */
1084
+ :global(.flowdrop-navbar__host-end) {
1085
+ display: contents;
1086
+ }
1087
+
1082
1088
  :global(.flowdrop-navbar__settings-btn) {
1083
1089
  display: flex;
1084
1090
  align-items: center;
@@ -138,7 +138,8 @@
138
138
  authProvider?: AuthProvider;
139
139
 
140
140
  /**
141
- * Base URL for resolving relative autocomplete callback URLs.
141
+ * Put in front of `/path` autocomplete callback URLs (those with a leading slash),
142
+ * and the base for URLs without a leading slash (instead of the editor's API base).
142
143
  * @default ""
143
144
  */
144
145
  baseUrl?: string;
@@ -63,7 +63,8 @@ interface Props {
63
63
  */
64
64
  authProvider?: AuthProvider;
65
65
  /**
66
- * Base URL for resolving relative autocomplete callback URLs.
66
+ * Put in front of `/path` autocomplete callback URLs (those with a leading slash),
67
+ * and the base for URLs without a leading slash (instead of the editor's API base).
67
68
  * @default ""
68
69
  */
69
70
  baseUrl?: string;
@@ -26,6 +26,13 @@
26
26
  <script lang="ts">
27
27
  import { getContext, onMount, untrack } from 'svelte';
28
28
  import { SvelteMap } from 'svelte/reactivity';
29
+ import {
30
+ isBaseRelative,
31
+ mayCarryInstanceAuth,
32
+ resolveAutocompleteUrl
33
+ } from '../../utils/apiUrl.js';
34
+ import { FLOWDROP_INSTANCE_KEY } from '../../stores/getInstance.svelte.js';
35
+ import type { FlowDropInstance } from '../../stores/instanceContainer.svelte.js';
29
36
  import Icon from '@iconify/svelte';
30
37
  import type { AutocompleteConfig, AuthProvider } from '../../types/index.js';
31
38
  import type { FieldOption } from './types.js';
@@ -75,6 +82,15 @@
75
82
  const getFormValues = getContext<(() => Record<string, unknown>) | undefined>(
76
83
  'flowdrop:getFormValues'
77
84
  );
85
+ // The API base comes from the instance, so it is the same in every form
86
+ // (config panel, SchemaForm, interrupt prompts). Read the context directly,
87
+ // not via getInstance(): this field is also exported on its own, and without
88
+ // an instance it should just have no base, not throw during SSR.
89
+ const fd = getContext<FlowDropInstance | undefined>(FLOWDROP_INSTANCE_KEY);
90
+ // The URL last logged as refused / as missing a base: a field whose
91
+ // `autocomplete.url` changes logs again for the new one.
92
+ let warnedNoApiBaseFor: string | null = null;
93
+ let loggedRefusedFor: string | null = null;
78
94
 
79
95
  // Hoist the autocomplete branch — seven reads in the template, one inside
80
96
  // an {#each tag} loop. One getter walk per render.
@@ -182,19 +198,58 @@
182
198
  return labelCache.get(val) ?? val;
183
199
  }
184
200
 
201
+ /**
202
+ * Auth for a request: the form's provider, or, where the form has none
203
+ * (interrupt forms), the instance's for requests to the site or under an
204
+ * absolute API base. Other hosts get no instance auth.
205
+ */
206
+ function currentAuthProvider(requestUrl: string): AuthProvider | undefined {
207
+ const fromForm = getAuthProvider?.();
208
+ if (fromForm) return fromForm;
209
+ // Judge the URL that is actually fetched, resolved as the browser does, not
210
+ // the configured text: a no-slash URL can resolve against an absolute
211
+ // baseUrl prop.
212
+ const pageUrl = typeof location === 'undefined' ? undefined : location.href;
213
+ return mayCarryInstanceAuth(requestUrl, fd?.api.config?.baseUrl ?? '', pageUrl)
214
+ ? fd?.api.authProvider
215
+ : undefined;
216
+ }
217
+
185
218
  /**
186
219
  * Build the full URL for fetching suggestions
187
220
  * @param query - The search query
188
- * @returns Full URL with query parameter
221
+ * @returns Full URL with query parameter, or null when the configured URL
222
+ * is refused (logged once per field)
189
223
  */
190
- function buildUrl(query: string): string {
191
- const baseUrl = getBaseUrl?.() ?? '';
192
- const url = autocomplete.url.startsWith('http')
193
- ? autocomplete.url
194
- : `${baseUrl}${autocomplete.url}`;
224
+ function buildUrl(query: string): string | null {
225
+ // A URL without a leading slash resolves against SchemaForm's `baseUrl`
226
+ // prop when one is given, else the instance's API base. The prop also goes
227
+ // in front of `/path` URLs.
228
+ const apiBase = fd?.api.config?.baseUrl ?? '';
229
+ const prefix = getBaseUrl?.() ?? '';
230
+ const raw = autocomplete.url;
231
+ const url = resolveAutocompleteUrl(raw, apiBase, prefix);
232
+ if (url === null) {
233
+ if (loggedRefusedFor !== raw) {
234
+ loggedRefusedFor = raw;
235
+ logger.error(
236
+ `[FormAutocomplete] Refusing autocomplete URL "${raw}"; nothing is fetched. See "How url is resolved" in the config schema guide for the URL forms that are accepted.`
237
+ );
238
+ }
239
+ return null;
240
+ }
241
+ if (!apiBase && !prefix && warnedNoApiBaseFor !== raw && isBaseRelative(raw)) {
242
+ warnedNoApiBaseFor = raw;
243
+ logger.warn(
244
+ `[FormAutocomplete] "${raw}" is relative to the API base, but no endpointConfig.baseUrl is set; using it as given.`
245
+ );
246
+ }
195
247
 
196
- const separator = url.includes('?') ? '&' : '?';
197
- let fullUrl = `${url}${separator}${encodeURIComponent(queryParam)}=${encodeURIComponent(query)}`;
248
+ // The parameters go before any `#fragment`, which the request never sends.
249
+ const hashAt = url.indexOf('#');
250
+ const path = hashAt === -1 ? url : url.slice(0, hashAt);
251
+ const separator = path.includes('?') ? '&' : '?';
252
+ let fullUrl = `${path}${separator}${encodeURIComponent(queryParam)}=${encodeURIComponent(query)}`;
198
253
 
199
254
  for (const [paramName, val] of Object.entries(depParamValues)) {
200
255
  fullUrl += `&${encodeURIComponent(paramName)}=${encodeURIComponent(val)}`;
@@ -244,6 +299,13 @@
244
299
  return;
245
300
  }
246
301
 
302
+ const requestUrl = buildUrl(query);
303
+ if (requestUrl === null) {
304
+ suggestions = [];
305
+ error = t.invalidUrl;
306
+ return;
307
+ }
308
+
247
309
  isLoading = true;
248
310
  error = null;
249
311
  // Capture in a local const so the timeout closure and fetch signal
@@ -259,9 +321,9 @@
259
321
  // authenticatedFetch merges auth headers (call getter for current value)
260
322
  // and applies the 401/403 lifecycle consistently with the rest of the lib.
261
323
  const response = await authenticatedFetch(
262
- buildUrl(query),
324
+ requestUrl,
263
325
  { method: 'GET', signal: controller.signal },
264
- { authProvider: getAuthProvider?.() }
326
+ { authProvider: currentAuthProvider(requestUrl) }
265
327
  );
266
328
 
267
329
  if (!response.ok) {
@@ -637,15 +699,17 @@
637
699
  */
638
700
  async function lookupLabels(): Promise<void> {
639
701
  labelController?.abort();
702
+ const requestUrl = buildUrl('');
703
+ if (requestUrl === null) return;
640
704
  const controller = new AbortController();
641
705
  labelController = controller;
642
706
  const fingerprint = depFingerprint;
643
707
  const timeoutId = setTimeout(() => controller.abort(timeoutError()), 5000);
644
708
  try {
645
709
  const response = await authenticatedFetch(
646
- buildUrl(''),
710
+ requestUrl,
647
711
  { method: 'GET', signal: controller.signal },
648
- { authProvider: getAuthProvider?.() }
712
+ { authProvider: currentAuthProvider(requestUrl) }
649
713
  );
650
714
  if (!response.ok) {
651
715
  throw new Error(`HTTP ${response.status}: ${response.statusText}`);
@@ -10,7 +10,7 @@
10
10
  **Not for** icon-only actions; use `IconButton`. For a list of actions behind one
11
11
  trigger use `Menu`.
12
12
 
13
- Not exported from the package; internal to the editor. The wrapper `components/Button.svelte`
13
+ Exported from `@flowdrop/flowdrop/ui`. The wrapper `components/Button.svelte`
14
14
  is the old API on top of this.
15
15
  -->
16
16
 
@@ -40,7 +40,7 @@ interface Props extends Omit<HTMLButtonAttributes, 'children' | 'class' | 'type'
40
40
  * **Not for** icon-only actions; use `IconButton`. For a list of actions behind one
41
41
  * trigger use `Menu`.
42
42
  *
43
- * Not exported from the package; internal to the editor. The wrapper `components/Button.svelte`
43
+ * Exported from `@flowdrop/flowdrop/ui`. The wrapper `components/Button.svelte`
44
44
  * is the old API on top of this.
45
45
  */
46
46
  declare const Button: import("svelte").Component<Props, {}, "">;
@@ -8,7 +8,7 @@
8
8
  **Use it for** a bordered group of content, such as an input form or a prompt that waits for an answer.
9
9
  **Not for** a whole panel; use `PanelHeader` for the top strip of a panel.
10
10
 
11
- Not exported from the package; the API may still change.
11
+ Exported from `@flowdrop/flowdrop/ui`.
12
12
  -->
13
13
 
14
14
  <script lang="ts">
@@ -24,7 +24,7 @@ interface Props {
24
24
  * **Use it for** a bordered group of content, such as an input form or a prompt that waits for an answer.
25
25
  * **Not for** a whole panel; use `PanelHeader` for the top strip of a panel.
26
26
  *
27
- * Not exported from the package; the API may still change.
27
+ * Exported from `@flowdrop/flowdrop/ui`.
28
28
  */
29
29
  declare const Card: import("svelte").Component<Props, {}, "">;
30
30
  type Card = ReturnType<typeof Card>;
@@ -8,7 +8,7 @@
8
8
  **Use it for** a yes/no option in a form or a list of choices.
9
9
  **Not for** an instant on/off setting; use `Switch`.
10
10
 
11
- Not exported from the package; the API may still change.
11
+ Exported from `@flowdrop/flowdrop/ui`.
12
12
  -->
13
13
 
14
14
  <script lang="ts">
@@ -19,7 +19,7 @@ interface Props extends Omit<HTMLInputAttributes, 'type' | 'checked' | 'onchange
19
19
  * **Use it for** a yes/no option in a form or a list of choices.
20
20
  * **Not for** an instant on/off setting; use `Switch`.
21
21
  *
22
- * Not exported from the package; the API may still change.
22
+ * Exported from `@flowdrop/flowdrop/ui`.
23
23
  */
24
24
  declare const Checkbox: import("svelte").Component<Props, {}, "">;
25
25
  type Checkbox = ReturnType<typeof Checkbox>;
@@ -8,7 +8,7 @@
8
8
  **Use it for** tags and short status words next to a title.
9
9
  **Not for** run status; use `StatusPill`. Not used in the editor yet.
10
10
 
11
- Not exported from the package; not public API yet.
11
+ Exported from `@flowdrop/flowdrop/ui`.
12
12
  -->
13
13
 
14
14
  <script lang="ts">
@@ -26,7 +26,7 @@ interface Props {
26
26
  * **Use it for** tags and short status words next to a title.
27
27
  * **Not for** run status; use `StatusPill`. Not used in the editor yet.
28
28
  *
29
- * Not exported from the package; not public API yet.
29
+ * Exported from `@flowdrop/flowdrop/ui`.
30
30
  */
31
31
  declare const Chip: import("svelte").Component<Props, {}, "">;
32
32
  type Chip = ReturnType<typeof Chip>;
@@ -18,7 +18,7 @@
18
18
  **Use it** through `Select`, which picks this rendering for long, grouped or described lists.
19
19
  **Not for** a short flat list; use `Select`, which then renders the browser's own `<select>`.
20
20
 
21
- Not exported from the package; the API may still change.
21
+ Exported from `@flowdrop/flowdrop/ui`.
22
22
  -->
23
23
 
24
24
  <script lang="ts">
@@ -48,7 +48,7 @@ interface Props {
48
48
  * **Use it** through `Select`, which picks this rendering for long, grouped or described lists.
49
49
  * **Not for** a short flat list; use `Select`, which then renders the browser's own `<select>`.
50
50
  *
51
- * Not exported from the package; the API may still change.
51
+ * Exported from `@flowdrop/flowdrop/ui`.
52
52
  */
53
53
  declare const Combobox: import("svelte").Component<Props, {}, "">;
54
54
  type Combobox = ReturnType<typeof Combobox>;
@@ -17,7 +17,7 @@
17
17
  **Use it for** the Playground chat, the AI assistant and the Console prompt.
18
18
  **Not for** a short single-line field; use a plain input inside `Field`.
19
19
 
20
- Not exported from the package; the API may still change.
20
+ Exported from `@flowdrop/flowdrop/ui`.
21
21
  -->
22
22
 
23
23
  <script lang="ts">
@@ -60,7 +60,7 @@ interface Props {
60
60
  * **Use it for** the Playground chat, the AI assistant and the Console prompt.
61
61
  * **Not for** a short single-line field; use a plain input inside `Field`.
62
62
  *
63
- * Not exported from the package; the API may still change.
63
+ * Exported from `@flowdrop/flowdrop/ui`.
64
64
  */
65
65
  declare const Composer: import("svelte").Component<Props, {}, "value" | "element">;
66
66
  type Composer = ReturnType<typeof Composer>;
@@ -8,7 +8,7 @@
8
8
  **Use it for** an empty list or panel, and say what the user can do next.
9
9
  **Not for** an error or a warning; use `Notice`.
10
10
 
11
- Not exported from the package; the API may still change.
11
+ Exported from `@flowdrop/flowdrop/ui`.
12
12
  -->
13
13
 
14
14
  <script lang="ts">
@@ -22,7 +22,7 @@ interface Props {
22
22
  * **Use it for** an empty list or panel, and say what the user can do next.
23
23
  * **Not for** an error or a warning; use `Notice`.
24
24
  *
25
- * Not exported from the package; the API may still change.
25
+ * Exported from `@flowdrop/flowdrop/ui`.
26
26
  */
27
27
  declare const EmptyState: import("svelte").Component<Props, {}, "">;
28
28
  type EmptyState = ReturnType<typeof EmptyState>;
@@ -13,7 +13,7 @@
13
13
  **Use it for** every labelled input in a config form.
14
14
  **Not for** a checkbox or switch that carries its own label.
15
15
 
16
- Not exported from the package; the API may still change.
16
+ Exported from `@flowdrop/flowdrop/ui`.
17
17
  -->
18
18
 
19
19
  <script lang="ts">
@@ -39,7 +39,7 @@ interface Props {
39
39
  * **Use it for** every labelled input in a config form.
40
40
  * **Not for** a checkbox or switch that carries its own label.
41
41
  *
42
- * Not exported from the package; the API may still change.
42
+ * Exported from `@flowdrop/flowdrop/ui`.
43
43
  */
44
44
  declare const Field: import("svelte").Component<Props, {}, "">;
45
45
  type Field = ReturnType<typeof Field>;
@@ -10,7 +10,7 @@
10
10
  **Use it for** close, delete, move up/down, show/hide and other single-glyph actions.
11
11
  **Not for** an action that needs a text label; use `Button`.
12
12
 
13
- Not exported from the package; internal to the editor.
13
+ Exported from `@flowdrop/flowdrop/ui`.
14
14
  -->
15
15
 
16
16
  <script lang="ts">
@@ -33,7 +33,7 @@ interface Props extends Omit<HTMLButtonAttributes, 'children' | 'class' | 'type'
33
33
  * **Use it for** close, delete, move up/down, show/hide and other single-glyph actions.
34
34
  * **Not for** an action that needs a text label; use `Button`.
35
35
  *
36
- * Not exported from the package; internal to the editor.
36
+ * Exported from `@flowdrop/flowdrop/ui`.
37
37
  */
38
38
  declare const IconButton: import("svelte").Component<Props, {}, "">;
39
39
  type IconButton = ReturnType<typeof IconButton>;
@@ -17,7 +17,7 @@
17
17
  **Use it for** a list of actions behind one control.
18
18
  **Not for** choosing a value for a field; use `Select`.
19
19
 
20
- Not exported from the package; the API may still change.
20
+ Exported from `@flowdrop/flowdrop/ui`.
21
21
  -->
22
22
 
23
23
  <script lang="ts" module>
@@ -74,7 +74,7 @@ interface Props {
74
74
  * **Use it for** a list of actions behind one control.
75
75
  * **Not for** choosing a value for a field; use `Select`.
76
76
  *
77
- * Not exported from the package; the API may still change.
77
+ * Exported from `@flowdrop/flowdrop/ui`.
78
78
  */
79
79
  declare const Menu: import("svelte").Component<Props, {}, "open">;
80
80
  type Menu = ReturnType<typeof Menu>;
@@ -11,7 +11,7 @@
11
11
  **Use it for** a message that belongs to a part of the page: a failed save, a missing setting.
12
12
  **Not for** an empty list; use `EmptyState`. Not for run status; use `StatusPill`.
13
13
 
14
- Not exported from the package; the API may still change.
14
+ Exported from `@flowdrop/flowdrop/ui`.
15
15
  -->
16
16
 
17
17
  <script lang="ts">
@@ -29,7 +29,7 @@ interface Props {
29
29
  * **Use it for** a message that belongs to a part of the page: a failed save, a missing setting.
30
30
  * **Not for** an empty list; use `EmptyState`. Not for run status; use `StatusPill`.
31
31
  *
32
- * Not exported from the package; the API may still change.
32
+ * Exported from `@flowdrop/flowdrop/ui`.
33
33
  */
34
34
  declare const Notice: import("svelte").Component<Props, {}, "">;
35
35
  type Notice = ReturnType<typeof Notice>;
@@ -10,7 +10,7 @@
10
10
  **Use it for** the top of a docked panel or a sheet.
11
11
  **Not for** a section title inside a form; use a heading or `Field`.
12
12
 
13
- Not exported from the package; the API may still change.
13
+ Exported from `@flowdrop/flowdrop/ui`.
14
14
  -->
15
15
 
16
16
  <script lang="ts">
@@ -29,7 +29,7 @@ interface Props extends Omit<HTMLAttributes<HTMLElement>, 'class' | 'title' | 'c
29
29
  * **Use it for** the top of a docked panel or a sheet.
30
30
  * **Not for** a section title inside a form; use a heading or `Field`.
31
31
  *
32
- * Not exported from the package; the API may still change.
32
+ * Exported from `@flowdrop/flowdrop/ui`.
33
33
  */
34
34
  declare const PanelHeader: import("svelte").Component<Props, {}, "">;
35
35
  type PanelHeader = ReturnType<typeof PanelHeader>;
@@ -11,13 +11,13 @@
11
11
 
12
12
  `float` draws the switch as its own floating control, as in the canvas toolbar.
13
13
 
14
- Not exported from the package; not public API yet.
14
+ Exported from `@flowdrop/flowdrop/ui`.
15
15
  -->
16
16
 
17
17
  <script lang="ts">
18
18
  import Icon from '@iconify/svelte';
19
19
 
20
- interface SegmentedOption {
20
+ export interface SegmentedOption {
21
21
  /** Value written to `value` when chosen */
22
22
  value: string;
23
23
  /** Visible label */
@@ -1,4 +1,4 @@
1
- interface SegmentedOption {
1
+ export interface SegmentedOption {
2
2
  /** Value written to `value` when chosen */
3
3
  value: string;
4
4
  /** Visible label */
@@ -39,7 +39,7 @@ interface Props {
39
39
  *
40
40
  * `float` draws the switch as its own floating control, as in the canvas toolbar.
41
41
  *
42
- * Not exported from the package; not public API yet.
42
+ * Exported from `@flowdrop/flowdrop/ui`.
43
43
  */
44
44
  declare const Segmented: import("svelte").Component<Props, {}, "value">;
45
45
  type Segmented = ReturnType<typeof Segmented>;
@@ -15,7 +15,7 @@
15
15
  **Use it for** choosing one value in a config form.
16
16
  **Not for** a list of actions; use `Menu`. Not for a two or three way mode; use `Segmented`.
17
17
 
18
- Not exported from the package; internal for now.
18
+ Exported from `@flowdrop/flowdrop/ui`.
19
19
  -->
20
20
 
21
21
  <script lang="ts">
@@ -37,7 +37,7 @@ interface Props extends Omit<HTMLSelectAttributes, 'size' | 'children' | 'value'
37
37
  * **Use it for** choosing one value in a config form.
38
38
  * **Not for** a list of actions; use `Menu`. Not for a two or three way mode; use `Segmented`.
39
39
  *
40
- * Not exported from the package; internal for now.
40
+ * Exported from `@flowdrop/flowdrop/ui`.
41
41
  */
42
42
  declare const Select: import("svelte").Component<Props, {}, "">;
43
43
  type Select = ReturnType<typeof Select>;
@@ -12,7 +12,7 @@
12
12
  **Use it for** the run status of a node or a run on the canvas.
13
13
  **Not for** a free-form tag; use `Chip`.
14
14
 
15
- Not exported from the package; the API may still change.
15
+ Exported from `@flowdrop/flowdrop/ui`.
16
16
  -->
17
17
 
18
18
  <script module lang="ts">