@flowdrop/flowdrop 2.10.1 → 2.11.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 (170) hide show
  1. package/CHANGELOG.md +162 -0
  2. package/dist/components/App.svelte +112 -29
  3. package/dist/components/ConfigForm.svelte +5 -5
  4. package/dist/components/ConfigModal.svelte +2 -2
  5. package/dist/components/ConfigModal.svelte.d.ts +1 -1
  6. package/dist/components/ConnectionLine.svelte +1 -1
  7. package/dist/components/LogsSidebar.svelte +15 -12
  8. package/dist/components/MarkdownDisplay.svelte +1 -1
  9. package/dist/components/PipelineStatus.svelte +5 -18
  10. package/dist/components/SchemaForm.svelte +1 -1
  11. package/dist/components/SettingsModal.svelte +1 -1
  12. package/dist/components/SettingsPanel.svelte +1 -1
  13. package/dist/components/WorkflowEditor.svelte +63 -37
  14. package/dist/components/WorkflowInterfaceEditor.svelte +43 -8
  15. package/dist/components/WorkflowInterfaceEditor.svelte.d.ts +12 -1
  16. package/dist/components/WorkflowInterfaceEntryCard.svelte +117 -44
  17. package/dist/components/WorkflowInterfaceEntryCard.svelte.d.ts +14 -1
  18. package/dist/components/WorkflowPlaygroundSettings.svelte +551 -0
  19. package/dist/components/WorkflowPlaygroundSettings.svelte.d.ts +20 -0
  20. package/dist/components/chat/AIChatPanel.svelte +1 -1
  21. package/dist/components/form/index.d.ts +2 -2
  22. package/dist/components/form/index.js +2 -2
  23. package/dist/components/nodes/ToolNode.svelte +1 -1
  24. package/dist/components/playground/ControlPanel.svelte +30 -0
  25. package/dist/components/playground/ControlPanel.svelte.d.ts +5 -0
  26. package/dist/components/playground/Playground.svelte +94 -42
  27. package/dist/components/playground/PlaygroundApp.svelte +1 -1
  28. package/dist/components/playground/PlaygroundModal.svelte +1 -1
  29. package/dist/components/playground/PlaygroundStudio.svelte +1 -1
  30. package/dist/core/index.d.ts +1 -1
  31. package/dist/helpers/workflowEditorHelper.d.ts +12 -0
  32. package/dist/helpers/workflowEditorHelper.js +31 -0
  33. package/dist/messages/defaults.d.ts +53 -0
  34. package/dist/messages/defaults.js +48 -2
  35. package/dist/openapi/v1/openapi.yaml +113 -5
  36. package/dist/playground/index.d.ts +3 -1
  37. package/dist/playground/index.js +2 -1
  38. package/dist/playground/mount.d.ts +6 -10
  39. package/dist/playground/mount.js +43 -24
  40. package/dist/schemas/index.js +1 -1
  41. package/dist/schemas/v1/workflow.schema.json +140 -2
  42. package/dist/services/globalSave.js +11 -1
  43. package/dist/services/playgroundService.d.ts +6 -1
  44. package/dist/services/playgroundService.js +5 -0
  45. package/dist/skins/default.d.ts +1 -1
  46. package/dist/skins/drafter.d.ts +1 -1
  47. package/dist/skins/index.d.ts +4 -4
  48. package/dist/skins/index.js +3 -3
  49. package/dist/skins/slate.d.ts +1 -1
  50. package/dist/stores/instanceContainer.svelte.d.ts +15 -0
  51. package/dist/stores/instanceContainer.svelte.js +11 -1
  52. package/dist/stores/playgroundStore.svelte.d.ts +8 -0
  53. package/dist/stores/playgroundStore.svelte.js +18 -4
  54. package/dist/stores/workflowStore.svelte.d.ts +4 -1
  55. package/dist/stores/workflowStore.svelte.js +8 -1
  56. package/dist/styles/base.css +14 -3
  57. package/dist/styles/tokenAliases.d.ts +13 -0
  58. package/dist/styles/tokenAliases.js +89 -0
  59. package/dist/themes/scopedSkinCss.d.ts +30 -0
  60. package/dist/themes/scopedSkinCss.js +95 -0
  61. package/dist/types/index.d.ts +86 -4
  62. package/dist/types/index.js +15 -3
  63. package/dist/types/skin.d.ts +2 -2
  64. package/dist/utils/playgroundChat.d.ts +121 -0
  65. package/dist/utils/playgroundChat.js +275 -0
  66. package/dist/utils/portal.d.ts +8 -0
  67. package/dist/utils/portal.js +15 -0
  68. package/dist/utils/workflowInterface.d.ts +88 -20
  69. package/dist/utils/workflowInterface.js +179 -18
  70. package/dist/webmcp/WebMCPConfirm.svelte +68 -18
  71. package/dist/webmcp/gate.d.ts +6 -0
  72. package/dist/webmcp/gate.js +4 -0
  73. package/dist/webmcp/runtime.js +2 -1
  74. package/package.json +7 -6
  75. package/dist/components/Button.stories.svelte +0 -65
  76. package/dist/components/Button.stories.svelte.d.ts +0 -19
  77. package/dist/components/CanvasBanner.stories.svelte +0 -30
  78. package/dist/components/CanvasBanner.stories.svelte.d.ts +0 -27
  79. package/dist/components/CanvasContextMenu.stories.svelte +0 -63
  80. package/dist/components/CanvasContextMenu.stories.svelte.d.ts +0 -19
  81. package/dist/components/ConfigPanel.stories.svelte +0 -47
  82. package/dist/components/ConfigPanel.stories.svelte.d.ts +0 -27
  83. package/dist/components/EditorStatusBar.stories.svelte +0 -44
  84. package/dist/components/EditorStatusBar.stories.svelte.d.ts +0 -27
  85. package/dist/components/FlowDropEdge.stories.svelte +0 -197
  86. package/dist/components/FlowDropEdge.stories.svelte.d.ts +0 -26
  87. package/dist/components/LoadingSpinner.stories.svelte +0 -30
  88. package/dist/components/LoadingSpinner.stories.svelte.d.ts +0 -27
  89. package/dist/components/Logo.stories.svelte +0 -22
  90. package/dist/components/Logo.stories.svelte.d.ts +0 -27
  91. package/dist/components/MarkdownDisplay.stories.svelte +0 -38
  92. package/dist/components/MarkdownDisplay.stories.svelte.d.ts +0 -27
  93. package/dist/components/Navbar.stories.svelte +0 -58
  94. package/dist/components/Navbar.stories.svelte.d.ts +0 -27
  95. package/dist/components/NodeStatusOverlay.stories.svelte +0 -85
  96. package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +0 -27
  97. package/dist/components/SchemaForm.stories.svelte +0 -122
  98. package/dist/components/SchemaForm.stories.svelte.d.ts +0 -27
  99. package/dist/components/StatusIcon.stories.svelte +0 -60
  100. package/dist/components/StatusIcon.stories.svelte.d.ts +0 -27
  101. package/dist/components/StatusLabel.stories.svelte +0 -17
  102. package/dist/components/StatusLabel.stories.svelte.d.ts +0 -27
  103. package/dist/components/ThemeToggle.stories.svelte +0 -25
  104. package/dist/components/ThemeToggle.stories.svelte.d.ts +0 -27
  105. package/dist/components/console/CommandConsole.stories.svelte +0 -111
  106. package/dist/components/console/CommandConsole.stories.svelte.d.ts +0 -27
  107. package/dist/components/form/FormCheckboxGroup.stories.svelte +0 -28
  108. package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +0 -27
  109. package/dist/components/form/FormFieldWrapper.stories.svelte +0 -53
  110. package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +0 -27
  111. package/dist/components/form/FormNumberField.stories.svelte +0 -36
  112. package/dist/components/form/FormNumberField.stories.svelte.d.ts +0 -27
  113. package/dist/components/form/FormRangeField.stories.svelte +0 -31
  114. package/dist/components/form/FormRangeField.stories.svelte.d.ts +0 -27
  115. package/dist/components/form/FormSelect.stories.svelte +0 -50
  116. package/dist/components/form/FormSelect.stories.svelte.d.ts +0 -27
  117. package/dist/components/form/FormTextField.stories.svelte +0 -30
  118. package/dist/components/form/FormTextField.stories.svelte.d.ts +0 -27
  119. package/dist/components/form/FormTextarea.stories.svelte +0 -34
  120. package/dist/components/form/FormTextarea.stories.svelte.d.ts +0 -27
  121. package/dist/components/form/FormToggle.stories.svelte +0 -30
  122. package/dist/components/form/FormToggle.stories.svelte.d.ts +0 -27
  123. package/dist/components/interrupt/ChoicePrompt.stories.svelte +0 -68
  124. package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +0 -27
  125. package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +0 -71
  126. package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +0 -27
  127. package/dist/components/interrupt/ReviewPrompt.stories.svelte +0 -77
  128. package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +0 -27
  129. package/dist/components/interrupt/TextInputPrompt.stories.svelte +0 -51
  130. package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +0 -27
  131. package/dist/components/nodes/CaptionNode.stories.svelte +0 -65
  132. package/dist/components/nodes/CaptionNode.stories.svelte.d.ts +0 -18
  133. package/dist/components/nodes/GatewayNode.stories.svelte +0 -108
  134. package/dist/components/nodes/GatewayNode.stories.svelte.d.ts +0 -26
  135. package/dist/components/nodes/IdeaNode.stories.svelte +0 -52
  136. package/dist/components/nodes/IdeaNode.stories.svelte.d.ts +0 -26
  137. package/dist/components/nodes/NotesNode.stories.svelte +0 -76
  138. package/dist/components/nodes/NotesNode.stories.svelte.d.ts +0 -26
  139. package/dist/components/nodes/SimpleNode.stories.svelte +0 -223
  140. package/dist/components/nodes/SimpleNode.stories.svelte.d.ts +0 -26
  141. package/dist/components/nodes/SquareNode.stories.svelte +0 -127
  142. package/dist/components/nodes/SquareNode.stories.svelte.d.ts +0 -26
  143. package/dist/components/nodes/TerminalNode.stories.svelte +0 -25
  144. package/dist/components/nodes/TerminalNode.stories.svelte.d.ts +0 -26
  145. package/dist/components/nodes/ToolNode.stories.svelte +0 -189
  146. package/dist/components/nodes/ToolNode.stories.svelte.d.ts +0 -26
  147. package/dist/components/nodes/WorkflowNode.stories.svelte +0 -188
  148. package/dist/components/nodes/WorkflowNode.stories.svelte.d.ts +0 -26
  149. package/dist/components/playground/MessageBubble.stories.svelte +0 -151
  150. package/dist/components/playground/MessageBubble.stories.svelte.d.ts +0 -27
  151. package/dist/mocks/app-environment.d.ts +0 -8
  152. package/dist/mocks/app-environment.js +0 -16
  153. package/dist/mocks/app-forms.d.ts +0 -6
  154. package/dist/mocks/app-forms.js +0 -29
  155. package/dist/mocks/app-navigation.d.ts +0 -5
  156. package/dist/mocks/app-navigation.js +0 -36
  157. package/dist/mocks/app-stores.d.ts +0 -14
  158. package/dist/mocks/app-stores.js +0 -26
  159. package/dist/stories/CanvasDecorator.svelte +0 -49
  160. package/dist/stories/CanvasDecorator.svelte.d.ts +0 -8
  161. package/dist/stories/EdgeDecorator.svelte +0 -125
  162. package/dist/stories/EdgeDecorator.svelte.d.ts +0 -17
  163. package/dist/stories/NodeDecorator.svelte +0 -75
  164. package/dist/stories/NodeDecorator.svelte.d.ts +0 -8
  165. package/dist/stories/WebMCPFakeAgent.svelte +0 -229
  166. package/dist/stories/WebMCPFakeAgent.svelte.d.ts +0 -10
  167. package/dist/stories/utils.d.ts +0 -93
  168. package/dist/stories/utils.js +0 -156
  169. package/dist/webmcp/WebMCP.stories.svelte +0 -101
  170. package/dist/webmcp/WebMCP.stories.svelte.d.ts +0 -18
@@ -1,53 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import FormFieldWrapper from './FormFieldWrapper.svelte';
4
-
5
- const { Story } = defineMeta({
6
- title: 'Form/FormFieldWrapper',
7
- component: FormFieldWrapper,
8
- tags: ['autodocs'],
9
- argTypes: {
10
- label: { control: 'text' },
11
- required: { control: 'boolean' },
12
- description: { control: 'text' }
13
- },
14
- args: {
15
- id: 'demo-wrapper',
16
- label: 'Field Label'
17
- }
18
- });
19
- </script>
20
-
21
- <Story name="Default" args={{ label: 'Username' }}>
22
- <input
23
- type="text"
24
- id="demo-wrapper"
25
- placeholder="Enter username"
26
- style="width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--fd-border); border-radius: var(--fd-radius-lg); font-size: var(--fd-text-sm);"
27
- />
28
- </Story>
29
-
30
- <Story
31
- name="With Description"
32
- args={{
33
- label: 'Email',
34
- description: "We'll never share your email with anyone.",
35
- required: true
36
- }}
37
- >
38
- <input
39
- type="email"
40
- id="demo-wrapper"
41
- placeholder="email@example.com"
42
- style="width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--fd-border); border-radius: var(--fd-radius-lg); font-size: var(--fd-text-sm);"
43
- />
44
- </Story>
45
-
46
- <Story name="Required" args={{ label: 'Password', required: true }}>
47
- <input
48
- type="password"
49
- id="demo-wrapper"
50
- placeholder="Enter password"
51
- style="width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--fd-border); border-radius: var(--fd-radius-lg); font-size: var(--fd-text-sm);"
52
- />
53
- </Story>
@@ -1,27 +0,0 @@
1
- export default FormFieldWrapper;
2
- type FormFieldWrapper = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const FormFieldWrapper: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import FormFieldWrapper from './FormFieldWrapper.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,36 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import FormNumberField from './FormNumberField.svelte';
4
- import { fn } from 'storybook/test';
5
-
6
- const { Story } = defineMeta({
7
- title: 'Form/FormNumberField',
8
- component: FormNumberField,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- value: { control: 'number' },
12
- placeholder: { control: 'text' },
13
- min: { control: 'number' },
14
- max: { control: 'number' },
15
- step: { control: 'number' },
16
- required: { control: 'boolean' },
17
- disabled: { control: 'boolean' }
18
- },
19
- args: {
20
- id: 'demo-number-field',
21
- value: '',
22
- onChange: fn()
23
- }
24
- });
25
- </script>
26
-
27
- <Story name="Default" args={{ placeholder: 'Enter a number...' }} />
28
-
29
- <Story name="With Value" args={{ value: 42 }} />
30
-
31
- <Story
32
- name="With Constraints"
33
- args={{ value: 50, min: 0, max: 100, step: 5, placeholder: '0-100, step 5' }}
34
- />
35
-
36
- <Story name="Disabled" args={{ value: 10, disabled: true }} />
@@ -1,27 +0,0 @@
1
- export default FormNumberField;
2
- type FormNumberField = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const FormNumberField: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import FormNumberField from './FormNumberField.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,31 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import FormRangeField from './FormRangeField.svelte';
4
- import { fn } from 'storybook/test';
5
-
6
- const { Story } = defineMeta({
7
- title: 'Form/FormRangeField',
8
- component: FormRangeField,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- value: { control: { type: 'number' } },
12
- min: { control: 'number' },
13
- max: { control: 'number' },
14
- step: { control: 'number' },
15
- disabled: { control: 'boolean' }
16
- },
17
- args: {
18
- id: 'demo-range-field',
19
- value: 50,
20
- onChange: fn()
21
- }
22
- });
23
- </script>
24
-
25
- <Story name="Default" args={{ min: 0, max: 100, step: 1 }} />
26
-
27
- <Story name="Temperature" args={{ value: 0.7, min: 0, max: 2, step: 0.05 }} />
28
-
29
- <Story name="Small Range" args={{ value: 3, min: 1, max: 10, step: 1 }} />
30
-
31
- <Story name="Disabled" args={{ value: 75, min: 0, max: 100, disabled: true }} />
@@ -1,27 +0,0 @@
1
- export default FormRangeField;
2
- type FormRangeField = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const FormRangeField: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import FormRangeField from './FormRangeField.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,50 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import FormSelect from './FormSelect.svelte';
4
- import { fn } from 'storybook/test';
5
-
6
- const { Story } = defineMeta({
7
- title: 'Form/FormSelect',
8
- component: FormSelect,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- value: { control: 'text' },
12
- required: { control: 'boolean' },
13
- disabled: { control: 'boolean' }
14
- },
15
- args: {
16
- id: 'demo-select',
17
- value: '',
18
- onChange: fn()
19
- }
20
- });
21
- </script>
22
-
23
- <Story
24
- name="String Options"
25
- args={{
26
- options: ['Option A', 'Option B', 'Option C'],
27
- value: 'Option A'
28
- }}
29
- />
30
-
31
- <Story
32
- name="FieldOption Objects"
33
- args={{
34
- options: [
35
- { value: 'gpt-4', label: 'GPT-4' },
36
- { value: 'gpt-3.5', label: 'GPT-3.5 Turbo' },
37
- { value: 'claude-3', label: 'Claude 3 Opus' }
38
- ],
39
- value: 'gpt-4'
40
- }}
41
- />
42
-
43
- <Story
44
- name="Disabled"
45
- args={{
46
- options: ['Read', 'Write', 'Admin'],
47
- value: 'Read',
48
- disabled: true
49
- }}
50
- />
@@ -1,27 +0,0 @@
1
- export default FormSelect;
2
- type FormSelect = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const FormSelect: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import FormSelect from './FormSelect.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,30 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import FormTextField from './FormTextField.svelte';
4
- import { fn } from 'storybook/test';
5
-
6
- const { Story } = defineMeta({
7
- title: 'Form/FormTextField',
8
- component: FormTextField,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- value: { control: 'text' },
12
- placeholder: { control: 'text' },
13
- required: { control: 'boolean' },
14
- disabled: { control: 'boolean' }
15
- },
16
- args: {
17
- id: 'demo-text-field',
18
- value: '',
19
- onChange: fn()
20
- }
21
- });
22
- </script>
23
-
24
- <Story name="Default" args={{ placeholder: 'Enter text...' }} />
25
-
26
- <Story name="With Value" args={{ value: 'Hello World', placeholder: 'Enter text...' }} />
27
-
28
- <Story name="Required" args={{ required: true, placeholder: 'Required field' }} />
29
-
30
- <Story name="Disabled" args={{ value: 'Cannot edit this', disabled: true }} />
@@ -1,27 +0,0 @@
1
- export default FormTextField;
2
- type FormTextField = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const FormTextField: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import FormTextField from './FormTextField.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,34 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import FormTextarea from './FormTextarea.svelte';
4
- import { fn } from 'storybook/test';
5
-
6
- const { Story } = defineMeta({
7
- title: 'Form/FormTextarea',
8
- component: FormTextarea,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- value: { control: 'text' },
12
- placeholder: { control: 'text' },
13
- rows: { control: { type: 'number', min: 1, max: 20 } },
14
- required: { control: 'boolean' },
15
- disabled: { control: 'boolean' }
16
- },
17
- args: {
18
- id: 'demo-textarea',
19
- value: '',
20
- onChange: fn()
21
- }
22
- });
23
- </script>
24
-
25
- <Story name="Default" args={{ placeholder: 'Enter your message...' }} />
26
-
27
- <Story name="Custom Rows" args={{ rows: 8, placeholder: 'Larger text area...' }} />
28
-
29
- <Story
30
- name="With Value"
31
- args={{ value: 'This is a multiline\ntext content\nwith several lines.' }}
32
- />
33
-
34
- <Story name="Disabled" args={{ value: 'Read-only content', disabled: true }} />
@@ -1,27 +0,0 @@
1
- export default FormTextarea;
2
- type FormTextarea = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const FormTextarea: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import FormTextarea from './FormTextarea.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,30 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import FormToggle from './FormToggle.svelte';
4
- import { fn } from 'storybook/test';
5
-
6
- const { Story } = defineMeta({
7
- title: 'Form/FormToggle',
8
- component: FormToggle,
9
- tags: ['autodocs'],
10
- argTypes: {
11
- value: { control: 'boolean' },
12
- onLabel: { control: 'text' },
13
- offLabel: { control: 'text' },
14
- disabled: { control: 'boolean' }
15
- },
16
- args: {
17
- id: 'demo-toggle',
18
- value: false,
19
- onChange: fn()
20
- }
21
- });
22
- </script>
23
-
24
- <Story name="Off" args={{ value: false }} />
25
-
26
- <Story name="On" args={{ value: true }} />
27
-
28
- <Story name="Custom Labels" args={{ value: true, onLabel: 'Yes', offLabel: 'No' }} />
29
-
30
- <Story name="Disabled" args={{ value: true, disabled: true }} />
@@ -1,27 +0,0 @@
1
- export default FormToggle;
2
- type FormToggle = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const FormToggle: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import FormToggle from './FormToggle.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,68 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import ChoicePrompt from './ChoicePrompt.svelte';
4
- import { fn } from 'storybook/test';
5
- import { createChoiceConfig } from '../../stories/utils.js';
6
-
7
- const { Story } = defineMeta({
8
- title: 'Interrupt/ChoicePrompt',
9
- component: ChoicePrompt,
10
- tags: ['autodocs'],
11
- args: {
12
- config: createChoiceConfig(),
13
- isResolved: false,
14
- isSubmitting: false,
15
- onSubmit: fn()
16
- }
17
- });
18
- </script>
19
-
20
- <Story name="Single Select" />
21
-
22
- <Story
23
- name="Multi Select"
24
- args={{
25
- config: createChoiceConfig({
26
- message: 'Select the features to enable:',
27
- multiple: true,
28
- options: [
29
- {
30
- value: 'auth',
31
- label: 'Authentication',
32
- description: 'User login and signup'
33
- },
34
- {
35
- value: 'analytics',
36
- label: 'Analytics',
37
- description: 'Usage tracking and metrics'
38
- },
39
- {
40
- value: 'notifications',
41
- label: 'Notifications',
42
- description: 'Email and push alerts'
43
- },
44
- {
45
- value: 'export',
46
- label: 'Data Export',
47
- description: 'CSV and JSON export'
48
- }
49
- ]
50
- })
51
- }}
52
- />
53
-
54
- <Story
55
- name="Resolved"
56
- args={{
57
- isResolved: true,
58
- resolvedValue: 'high',
59
- resolvedByUserName: 'Bob'
60
- }}
61
- />
62
-
63
- <Story
64
- name="Submitting"
65
- args={{
66
- isSubmitting: true
67
- }}
68
- />
@@ -1,27 +0,0 @@
1
- export default ChoicePrompt;
2
- type ChoicePrompt = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const ChoicePrompt: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import ChoicePrompt from './ChoicePrompt.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }
@@ -1,71 +0,0 @@
1
- <script module>
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import ConfirmationPrompt from './ConfirmationPrompt.svelte';
4
- import { fn } from 'storybook/test';
5
- import { createConfirmationConfig } from '../../stories/utils.js';
6
-
7
- const { Story } = defineMeta({
8
- title: 'Interrupt/ConfirmationPrompt',
9
- component: ConfirmationPrompt,
10
- tags: ['autodocs'],
11
- args: {
12
- config: createConfirmationConfig(),
13
- isResolved: false,
14
- isSubmitting: false,
15
- onConfirm: fn(),
16
- onDecline: fn()
17
- }
18
- });
19
- </script>
20
-
21
- <Story name="Pending" />
22
-
23
- <Story
24
- name="Custom Labels"
25
- args={{
26
- config: createConfirmationConfig({
27
- message: 'Deploy to production?',
28
- confirmLabel: 'Deploy',
29
- cancelLabel: 'Abort'
30
- })
31
- }}
32
- />
33
-
34
- <Story
35
- name="Confirmed"
36
- args={{
37
- isResolved: true,
38
- resolvedValue: true
39
- }}
40
- />
41
-
42
- <Story
43
- name="Declined"
44
- args={{
45
- isResolved: true,
46
- resolvedValue: false
47
- }}
48
- />
49
-
50
- <Story
51
- name="Submitting"
52
- args={{
53
- isSubmitting: true
54
- }}
55
- />
56
-
57
- <Story
58
- name="With Error"
59
- args={{
60
- error: 'Network error: Failed to submit response'
61
- }}
62
- />
63
-
64
- <Story
65
- name="Resolved By User"
66
- args={{
67
- isResolved: true,
68
- resolvedValue: true,
69
- resolvedByUserName: 'Alice'
70
- }}
71
- />
@@ -1,27 +0,0 @@
1
- export default ConfirmationPrompt;
2
- type ConfirmationPrompt = SvelteComponent<{
3
- [x: string]: never;
4
- }, {
5
- [evt: string]: CustomEvent<any>;
6
- }, {}> & {
7
- $$bindings?: string | undefined;
8
- };
9
- declare const ConfirmationPrompt: $$__sveltets_2_IsomorphicComponent<{
10
- [x: string]: never;
11
- }, {
12
- [evt: string]: CustomEvent<any>;
13
- }, {}, {}, string>;
14
- import ConfirmationPrompt from './ConfirmationPrompt.svelte';
15
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
16
- new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
17
- $$bindings?: Bindings;
18
- } & Exports;
19
- (internal: unknown, props: {
20
- $$events?: Events;
21
- $$slots?: Slots;
22
- }): Exports & {
23
- $set?: any;
24
- $on?: any;
25
- };
26
- z_$$bindings?: Bindings;
27
- }