windmill-components 1.655.1 → 1.655.2

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.
@@ -45,6 +45,7 @@ export type FlowBuilderWhitelabelCustomUi = {
45
45
  tagSelectNoLabel?: boolean;
46
46
  tagLabel?: string;
47
47
  aiAgent?: boolean;
48
+ aiSandbox?: boolean;
48
49
  };
49
50
  export type DisplayResultUi = {
50
51
  disableAiFix?: boolean;
@@ -251,7 +251,7 @@ let customUi = getContext('customUi');
251
251
  {/each}
252
252
  </div>
253
253
 
254
- {#if !failureModule && !preprocessorModule}
254
+ {#if !failureModule && !preprocessorModule && customUi?.aiSandbox != false}
255
255
  <h3 class="pb-2 pt-4">AI Sandbox</h3>
256
256
  <div class="flex flex-row flex-wrap gap-2">
257
257
  <FlowScriptPicker
@@ -402,7 +402,7 @@ let aiLength = $derived(funcDesc?.length > 0 && !disableAi && selectedKind != 'f
402
402
  {/await}
403
403
  <div class="pb-1"></div>
404
404
  {/if}
405
- {#if selectedKind === 'script' && preFilter === 'all' && !selected}
405
+ {#if selectedKind === 'script' && preFilter === 'all' && !selected && customUi?.aiSandbox != false}
406
406
  <div class="pb-0 text-2xs font-normal text-secondary ml-2">AI Sandbox</div>
407
407
  <FlowScriptPickerQuick
408
408
  eeRestricted={false}
@@ -159,6 +159,7 @@ let displayPath = $derived(width > 650 || height > 400);
159
159
  }}
160
160
  />
161
161
  {/if}
162
+ {#if customUi?.aiSandbox != false}
162
163
  <TopLevelNode
163
164
  label="AI Sandbox"
164
165
  selected={selectedKind === 'aisandbox'}
@@ -167,6 +168,7 @@ let displayPath = $derived(width > 650 || height > 400);
167
168
  }}
168
169
  />
169
170
  {/if}
171
+ {/if}
170
172
  </div>
171
173
  {/if}
172
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.655.1",
3
+ "version": "1.655.2",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",