windmill-components 1.305.2 → 1.305.3

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.
@@ -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.3",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",