windmill-components 1.305.2 → 1.305.4

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.
@@ -9,7 +9,6 @@ import ToggleButtonGroup from './common/toggleButton-v2/ToggleButtonGroup.svelte
9
9
  import ToggleButton from './common/toggleButton-v2/ToggleButton.svelte';
10
10
  import FlowIcon from './home/FlowIcon.svelte';
11
11
  import { Alert, Button } from './common';
12
- import { goto } from '$app/navigation';
13
12
  import YAML from 'yaml';
14
13
  let search = '';
15
14
  export async function open(nsearch) {
@@ -267,7 +266,9 @@ $: counts =
267
266
  <div class="flex gap-2">
268
267
  <Button
269
268
  on:click|once={() => {
270
- goto(`/scripts/edit/${item.path}?no_draft=true`)
269
+ window
270
+ .open(`/scripts/edit/${item.path}?no_draft=true`, '_blank')
271
+ ?.focus()
271
272
  }}
272
273
  color="light"
273
274
  size="sm"
@@ -307,7 +308,9 @@ $: counts =
307
308
  <div class="flex gap-2">
308
309
  <Button
309
310
  on:click|once={() => {
310
- goto(`/flows/edit/${item.path}?no_draft=true`)
311
+ window
312
+ .open(`/flows/edit/${item.path}?no_draft=true`, '_blank')
313
+ ?.focus()
311
314
  }}
312
315
  color="light"
313
316
  size="sm"
@@ -29,7 +29,6 @@ import { snakeCase } from 'lodash';
29
29
  import FlowBuilderTutorials from './FlowBuilderTutorials.svelte';
30
30
  import FlowTutorials from './FlowTutorials.svelte';
31
31
  import { ignoredTutorials } from './tutorials/ignoredTutorials';
32
- import UnsavedConfirmationModal from './common/confirmationModal/UnsavedConfirmationModal.svelte';
33
32
  import { cloneDeep } from 'lodash';
34
33
  export let initialPath = '';
35
34
  export let pathStoreInit = undefined;
@@ -816,14 +815,7 @@ export function triggerTutorial() {
816
815
 
817
816
  <svelte:window on:keydown={onKeyDown} />
818
817
 
819
- <UnsavedConfirmationModal
820
- {diffDrawer}
821
- savedValue={savedFlow}
822
- modifiedValue={{
823
- ...$flowStore,
824
- path: $pathStore
825
- }}
826
- />
818
+ <slot />
827
819
 
828
820
  {#key renderCount}
829
821
  {#if !$userStore?.operator}
@@ -31,7 +31,9 @@ declare const __propDef: {
31
31
  } & {
32
32
  [evt: string]: CustomEvent<any>;
33
33
  };
34
- slots: {};
34
+ slots: {
35
+ default: {};
36
+ };
35
37
  };
36
38
  export type FlowBuilderProps = typeof __propDef.props;
37
39
  export type FlowBuilderEvents = typeof __propDef.events;
@@ -53,7 +53,7 @@ beforeNavigate(async (newNavigationState) => {
53
53
  >
54
54
  <div class="flex flex-col w-full space-y-4">
55
55
  <span>Are you sure you want to discard the changes you have made? </span>
56
- {#if savedValue && modifiedValue}
56
+ {#if savedValue && modifiedValue && diffDrawer}
57
57
  <Button
58
58
  wrapperClasses="self-start"
59
59
  color="light"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.305.2",
3
+ "version": "1.305.4",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",