windmill-components 1.406.5 → 1.406.6

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.
@@ -324,7 +324,7 @@ function setFlowInput(argName) {
324
324
  class={advancedSelected === 'runtime' ? 'h-[calc(100%-68px)]' : 'h-[calc(100%-34px)]'}
325
325
  >
326
326
  {#if selected === 'inputs' && (flowModule.value.type == 'rawscript' || flowModule.value.type == 'script' || flowModule.value.type == 'flow')}
327
- <div class="h-full overflow-auto" id="flow-editor-step-input">
327
+ <div class="h-full overflow-auto px-2" id="flow-editor-step-input">
328
328
  <PropPickerWrapper
329
329
  pickableProperties={stepPropPicker.pickableProperties}
330
330
  error={failureModule}
@@ -7,6 +7,7 @@ export declare const INITIAL_CODE: {
7
7
  approval: string;
8
8
  failure: string;
9
9
  preprocessor: string;
10
+ clear: string;
10
11
  };
11
12
  python3: {
12
13
  script: string;
@@ -14,6 +15,7 @@ export declare const INITIAL_CODE: {
14
15
  approval: string;
15
16
  failure: string;
16
17
  preprocessor: string;
18
+ clear: string;
17
19
  };
18
20
  deno: {
19
21
  script: string;
@@ -22,6 +24,7 @@ export declare const INITIAL_CODE: {
22
24
  failure: string;
23
25
  preprocessor: string;
24
26
  fetch: string;
27
+ clear: string;
25
28
  };
26
29
  go: {
27
30
  script: string;
@@ -638,14 +638,16 @@ export const INITIAL_CODE = {
638
638
  trigger: BUN_INIT_CODE_TRIGGER,
639
639
  approval: BUN_INIT_CODE_APPROVAL,
640
640
  failure: BUN_FAILURE_MODULE_CODE,
641
- preprocessor: BUN_PREPROCESSOR_MODULE_CODE
641
+ preprocessor: BUN_PREPROCESSOR_MODULE_CODE,
642
+ clear: BUN_INIT_CODE_CLEAR
642
643
  },
643
644
  python3: {
644
645
  script: PYTHON_INIT_CODE,
645
646
  trigger: PYTHON_INIT_CODE_TRIGGER,
646
647
  approval: PYTHON_INIT_CODE_APPROVAL,
647
648
  failure: PYTHON_FAILURE_MODULE_CODE,
648
- preprocessor: PYTHON_PREPROCESSOR_MODULE_CODE
649
+ preprocessor: PYTHON_PREPROCESSOR_MODULE_CODE,
650
+ clear: PYTHON_INIT_CODE_CLEAR
649
651
  },
650
652
  deno: {
651
653
  script: DENO_INIT_CODE,
@@ -653,7 +655,8 @@ export const INITIAL_CODE = {
653
655
  approval: DENO_INIT_CODE_APPROVAL,
654
656
  failure: DENO_FAILURE_MODULE_CODE,
655
657
  preprocessor: DENO_PREPROCESSOR_MODULE_CODE,
656
- fetch: FETCH_INIT_CODE
658
+ fetch: FETCH_INIT_CODE,
659
+ clear: DENO_INIT_CODE_CLEAR
657
660
  },
658
661
  go: {
659
662
  script: GO_INIT_CODE,
@@ -723,7 +726,7 @@ export function initialCode(language, kind, subkind) {
723
726
  }
724
727
  else if (kind === 'script') {
725
728
  if (subkind === 'flow') {
726
- return INITIAL_CODE.deno.script;
729
+ return INITIAL_CODE.deno.clear;
727
730
  }
728
731
  else if (subkind === 'pgsql') {
729
732
  return INITIAL_CODE.postgresql.script;
@@ -762,7 +765,7 @@ export function initialCode(language, kind, subkind) {
762
765
  return INITIAL_CODE.python3.failure;
763
766
  }
764
767
  else if (subkind === 'flow') {
765
- return INITIAL_CODE.python3.script;
768
+ return INITIAL_CODE.python3.clear;
766
769
  }
767
770
  else if (subkind === 'preprocessor') {
768
771
  return INITIAL_CODE.python3.preprocessor;
@@ -829,7 +832,7 @@ export function initialCode(language, kind, subkind) {
829
832
  return INITIAL_CODE.bun.preprocessor;
830
833
  }
831
834
  else if (subkind === 'flow') {
832
- return INITIAL_CODE.bun.script;
835
+ return INITIAL_CODE.bun.clear;
833
836
  }
834
837
  return INITIAL_CODE.bun.script;
835
838
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.406.5",
3
+ "version": "1.406.6",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",