windmill-components 1.405.5 → 1.406.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.
@@ -28,7 +28,7 @@ let jobProgressReset;
28
28
  export function test() {
29
29
  runPreview($previewArgs, undefined);
30
30
  }
31
- const { selectedId, previewArgs, flowStateStore, flowStore, pathStore, initialPath } = getContext('FlowEditorContext');
31
+ const { selectedId, previewArgs, flowStateStore, flowStore, pathStore, initialPath, customUi } = getContext('FlowEditorContext');
32
32
  const dispatch = createEventDispatcher();
33
33
  function extractFlow(previewMode) {
34
34
  if (previewMode === 'whole') {
@@ -310,6 +310,7 @@ let renderCount = 0;
310
310
  <div class="pt-4 flex flex-col grow">
311
311
  {#if jobId}
312
312
  <FlowStatusViewer
313
+ hideDownloadInGraph={customUi?.downloadLogs === false}
313
314
  wideResults
314
315
  {flowStateStore}
315
316
  {jobId}
@@ -34,6 +34,7 @@ export type FlowBuilderWhitelabelCustomUi = {
34
34
  languages?: (SupportedLanguage | 'docker' | 'bunnative')[];
35
35
  scriptFork?: boolean;
36
36
  editorBar?: EditorBarUi;
37
+ downloadLogs?: boolean;
37
38
  };
38
39
  export type EditorBarUi = {
39
40
  contextVar?: boolean;
@@ -3,9 +3,9 @@ import DrawerContent from '../../common/drawer/DrawerContent.svelte';
3
3
  import { getContext } from 'svelte';
4
4
  import { filteredContentForExport } from '../utils';
5
5
  import YAML from 'yaml';
6
- import SimpleEditor from '../../SimpleEditor.svelte';
7
6
  import { Button } from '../../common';
8
7
  import { sendUserToast } from '../../../toast';
8
+ import { Loader2 } from 'lucide-svelte';
9
9
  const { flowStore } = getContext('FlowEditorContext');
10
10
  export let drawer;
11
11
  let code = '';
@@ -49,7 +49,11 @@ function apply() {
49
49
  </svelte:fragment>
50
50
 
51
51
  {#if $flowStore}
52
- <SimpleEditor autoHeight bind:code lang="yaml" />
52
+ {#await import('../../SimpleEditor.svelte')}
53
+ <Loader2 class="animate-spin" />
54
+ {:then Module}
55
+ <Module.default autoHeight bind:code lang="yaml" />
56
+ {/await}
53
57
  {/if}
54
58
  </DrawerContent>
55
59
  </Drawer>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.405.5",
3
+ "version": "1.406.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",