windmill-components 1.501.23 → 1.502.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.
- package/package/components/Dev.svelte +4 -5
- package/package/components/apps/components/display/AppCarouselList.svelte +39 -4
- package/package/components/apps/editor/appUtils.js +4 -0
- package/package/components/apps/editor/componentsPanel/componentControlUtils.js +3 -1
- package/package/components/apps/editor/settingsPanel/ComponentPanelDataSource.svelte +0 -1
- package/package/components/auditLogs/AuditLogsFilters.svelte +12 -2
- package/package/components/auditLogs/AuditLogsTable.svelte +209 -122
- package/package/components/auditLogs/AuditLogsTable.svelte.d.ts +5 -20
- package/package/components/auditLogs/AuditLogsTimeline.svelte +449 -0
- package/package/components/auditLogs/AuditLogsTimeline.svelte.d.ts +16 -0
- package/package/components/copilot/chat/AIChatDisplay.svelte +23 -165
- package/package/components/copilot/chat/AIChatInput.svelte +128 -0
- package/package/components/copilot/chat/AIChatInput.svelte.d.ts +16 -0
- package/package/components/copilot/chat/AIChatManager.svelte.d.ts +4 -1
- package/package/components/copilot/chat/AIChatManager.svelte.js +33 -13
- package/package/components/copilot/chat/AIChatMessage.svelte +93 -0
- package/package/components/copilot/chat/AIChatMessage.svelte.d.ts +12 -0
- package/package/components/copilot/chat/ContextTextarea.svelte +13 -15
- package/package/components/copilot/chat/ContextTextarea.svelte.d.ts +4 -2
- package/package/components/copilot/chat/flow/FlowAIChat.svelte +11 -0
- package/package/components/copilot/chat/shared.d.ts +13 -3
- package/package/components/flow_builder.d.ts +10 -1
- package/package/components/graph/FlowGraphV2.svelte +1 -0
- package/package/components/schema/EditableSchemaWrapper.svelte +3 -3
- package/package/components/search/GlobalSearchModal.svelte +28 -18
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/schemas.gen.d.ts +11 -2
- package/package/gen/schemas.gen.js +11 -2
- package/package/gen/types.gen.d.ts +5 -2
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">import { onDestroy, onMount, tick, untrack } from 'svelte';
|
|
2
2
|
import { AppService, FlowService, RawAppService, ScriptService } from '../../gen';
|
|
3
3
|
import { clickOutside, isMac, scroll_into_view_if_needed_polyfill } from '../../utils';
|
|
4
|
-
import { AlertTriangle, BoxesIcon, CalendarIcon, Code2Icon, Database, DollarSignIcon, HomeIcon, LayoutDashboardIcon, PlayIcon, Route, Search, SearchCode, Unplug } from 'lucide-svelte';
|
|
4
|
+
import { AlertTriangle, BoxesIcon, CalendarIcon, Code2Icon, Database, DollarSignIcon, HomeIcon, LayoutDashboardIcon, PlayIcon, Route, Search, SearchCode, Unplug, WandSparkles } from 'lucide-svelte';
|
|
5
5
|
import Portal from '../Portal.svelte';
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import ContentSearchInner from '../ContentSearchInner.svelte';
|
|
@@ -187,7 +187,7 @@ function removePrefix(str, prefix) {
|
|
|
187
187
|
}
|
|
188
188
|
let opts = {};
|
|
189
189
|
let uf = new uFuzzy(opts);
|
|
190
|
-
let defaultMenuItemLabels = defaultMenuItems.map((item) => item.label)
|
|
190
|
+
// let defaultMenuItemLabels = defaultMenuItems.map((item) => item.label)
|
|
191
191
|
let defaultMenuItemAndHiddenLabels = defaultMenuItemsWithHidden.map((item) => item.label);
|
|
192
192
|
let switchModeItemLabels = switchModeItems.map((item) => item.label);
|
|
193
193
|
let askAiButton = $state();
|
|
@@ -234,7 +234,7 @@ async function handleSearch() {
|
|
|
234
234
|
}
|
|
235
235
|
if (tab === 'default') {
|
|
236
236
|
if (searchTerm === '')
|
|
237
|
-
itemMap['default'] =
|
|
237
|
+
itemMap['default'] = defaultMenuItems;
|
|
238
238
|
else
|
|
239
239
|
itemMap['default'] = fuzzyFilter(searchTerm, defaultMenuItemsWithHidden, defaultMenuItemAndHiddenLabels);
|
|
240
240
|
if (combinedItems) {
|
|
@@ -299,9 +299,6 @@ async function handleKeydown(event) {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
if ((itemMap[tab] ?? []).length === 0 && searchTerm.length > 0 && event.key === 'Enter') {
|
|
303
|
-
askAiButton?.onClick();
|
|
304
|
-
}
|
|
305
302
|
}
|
|
306
303
|
}
|
|
307
304
|
//internal, should not be called outside of the handleSearch function
|
|
@@ -541,10 +538,14 @@ let indexMetadata = $state(undefined);
|
|
|
541
538
|
<div class="overflow-y-auto relative {maxModalHeight(tab)}">
|
|
542
539
|
{#if tab === 'default' || tab === 'switch-mode'}
|
|
543
540
|
{@const items = (itemMap[tab] ?? []).filter((e) =>
|
|
544
|
-
defaultMenuItemsWithHidden.
|
|
541
|
+
defaultMenuItemsWithHidden.some((x) => e.search_id === x.search_id)
|
|
545
542
|
)}
|
|
546
543
|
{#if items.length > 0}
|
|
547
|
-
<div
|
|
544
|
+
<div
|
|
545
|
+
class={tab === 'switch-mode' || itemMap[tab].length === items.length
|
|
546
|
+
? 'p-2'
|
|
547
|
+
: 'p-2 border-b'}
|
|
548
|
+
>
|
|
548
549
|
{#each items as el}
|
|
549
550
|
<QuickMenuItem
|
|
550
551
|
onselect={(shift) => el?.action(shift)}
|
|
@@ -562,8 +563,8 @@ let indexMetadata = $state(undefined);
|
|
|
562
563
|
{/if}
|
|
563
564
|
|
|
564
565
|
{#if tab === 'default'}
|
|
565
|
-
|
|
566
|
-
|
|
566
|
+
{#if (itemMap[tab] ?? []).filter((e) => (combinedItems ?? []).includes(e)).length > 0}
|
|
567
|
+
<div class="p-2">
|
|
567
568
|
<div class="py-2 px-1 text-xs font-semibold text-tertiary">
|
|
568
569
|
Flows/Scripts/Apps
|
|
569
570
|
</div>
|
|
@@ -582,19 +583,28 @@ let indexMetadata = $state(undefined);
|
|
|
582
583
|
bind:mouseMoved
|
|
583
584
|
/>
|
|
584
585
|
{/each}
|
|
585
|
-
|
|
586
|
+
</div>
|
|
587
|
+
{/if}
|
|
586
588
|
|
|
587
|
-
|
|
589
|
+
{#if (itemMap[tab] ?? []).length === 0}
|
|
590
|
+
<div class="p-2">
|
|
591
|
+
<QuickMenuItem
|
|
592
|
+
onselect={() => {
|
|
593
|
+
askAiButton?.onClick()
|
|
594
|
+
}}
|
|
595
|
+
id={'ai:no-results-ask-ai'}
|
|
596
|
+
hovered={true}
|
|
597
|
+
label={`Try asking \`${searchTerm}\` to AI`}
|
|
598
|
+
icon={WandSparkles}
|
|
599
|
+
bind:mouseMoved
|
|
600
|
+
/>
|
|
588
601
|
<div class="flex w-full justify-center items-center">
|
|
589
602
|
<div class="text-tertiary text-center">
|
|
590
|
-
<div class="
|
|
591
|
-
>Nothing found, ask the AI to find what you need!</div
|
|
592
|
-
>
|
|
593
|
-
<div class="text-sm">Tip: press `esc` to quickly clear the search bar</div>
|
|
603
|
+
<div class="pt-1 text-sm">Tip: press `esc` to quickly clear the search bar</div>
|
|
594
604
|
</div>
|
|
595
605
|
</div>
|
|
596
|
-
|
|
597
|
-
|
|
606
|
+
</div>
|
|
607
|
+
{/if}
|
|
598
608
|
{:else if tab === 'content'}
|
|
599
609
|
<ContentSearchInner
|
|
600
610
|
search={removePrefix(searchTerm, '#')}
|
|
@@ -1630,6 +1630,9 @@ export declare const $AuditLog: {
|
|
|
1630
1630
|
readonly parameters: {
|
|
1631
1631
|
readonly type: "object";
|
|
1632
1632
|
};
|
|
1633
|
+
readonly span: {
|
|
1634
|
+
readonly type: "string";
|
|
1635
|
+
};
|
|
1633
1636
|
};
|
|
1634
1637
|
readonly required: readonly ["id", "timestamp", "username", "operation", "action_kind"];
|
|
1635
1638
|
};
|
|
@@ -4246,7 +4249,7 @@ export declare const $LargeFileStorage: {
|
|
|
4246
4249
|
readonly properties: {
|
|
4247
4250
|
readonly type: {
|
|
4248
4251
|
readonly type: "string";
|
|
4249
|
-
readonly enum: readonly ["S3Storage", "AzureBlobStorage", "AzureWorkloadIdentity", "S3AwsOidc"];
|
|
4252
|
+
readonly enum: readonly ["S3Storage", "AzureBlobStorage", "AzureWorkloadIdentity", "S3AwsOidc", "GoogleCloudStorage"];
|
|
4250
4253
|
};
|
|
4251
4254
|
readonly s3_resource_path: {
|
|
4252
4255
|
readonly type: "string";
|
|
@@ -4254,6 +4257,9 @@ export declare const $LargeFileStorage: {
|
|
|
4254
4257
|
readonly azure_blob_resource_path: {
|
|
4255
4258
|
readonly type: "string";
|
|
4256
4259
|
};
|
|
4260
|
+
readonly gcs_resource_path: {
|
|
4261
|
+
readonly type: "string";
|
|
4262
|
+
};
|
|
4257
4263
|
readonly public_resource: {
|
|
4258
4264
|
readonly type: "boolean";
|
|
4259
4265
|
};
|
|
@@ -4264,7 +4270,7 @@ export declare const $LargeFileStorage: {
|
|
|
4264
4270
|
readonly properties: {
|
|
4265
4271
|
readonly type: {
|
|
4266
4272
|
readonly type: "string";
|
|
4267
|
-
readonly enum: readonly ["S3Storage", "AzureBlobStorage", "AzureWorkloadIdentity", "S3AwsOidc"];
|
|
4273
|
+
readonly enum: readonly ["S3Storage", "AzureBlobStorage", "AzureWorkloadIdentity", "S3AwsOidc", "GoogleCloudStorage"];
|
|
4268
4274
|
};
|
|
4269
4275
|
readonly s3_resource_path: {
|
|
4270
4276
|
readonly type: "string";
|
|
@@ -4272,6 +4278,9 @@ export declare const $LargeFileStorage: {
|
|
|
4272
4278
|
readonly azure_blob_resource_path: {
|
|
4273
4279
|
readonly type: "string";
|
|
4274
4280
|
};
|
|
4281
|
+
readonly gcs_resource_path: {
|
|
4282
|
+
readonly type: "string";
|
|
4283
|
+
};
|
|
4275
4284
|
readonly public_resource: {
|
|
4276
4285
|
readonly type: "boolean";
|
|
4277
4286
|
};
|
|
@@ -1664,6 +1664,9 @@ export const $AuditLog = {
|
|
|
1664
1664
|
},
|
|
1665
1665
|
parameters: {
|
|
1666
1666
|
type: 'object'
|
|
1667
|
+
},
|
|
1668
|
+
span: {
|
|
1669
|
+
type: 'string'
|
|
1667
1670
|
}
|
|
1668
1671
|
},
|
|
1669
1672
|
required: ['id', 'timestamp', 'username', 'operation', 'action_kind']
|
|
@@ -4325,7 +4328,7 @@ export const $LargeFileStorage = {
|
|
|
4325
4328
|
properties: {
|
|
4326
4329
|
type: {
|
|
4327
4330
|
type: 'string',
|
|
4328
|
-
enum: ['S3Storage', 'AzureBlobStorage', 'AzureWorkloadIdentity', 'S3AwsOidc']
|
|
4331
|
+
enum: ['S3Storage', 'AzureBlobStorage', 'AzureWorkloadIdentity', 'S3AwsOidc', 'GoogleCloudStorage']
|
|
4329
4332
|
},
|
|
4330
4333
|
s3_resource_path: {
|
|
4331
4334
|
type: 'string'
|
|
@@ -4333,6 +4336,9 @@ export const $LargeFileStorage = {
|
|
|
4333
4336
|
azure_blob_resource_path: {
|
|
4334
4337
|
type: 'string'
|
|
4335
4338
|
},
|
|
4339
|
+
gcs_resource_path: {
|
|
4340
|
+
type: 'string'
|
|
4341
|
+
},
|
|
4336
4342
|
public_resource: {
|
|
4337
4343
|
type: 'boolean'
|
|
4338
4344
|
},
|
|
@@ -4343,7 +4349,7 @@ export const $LargeFileStorage = {
|
|
|
4343
4349
|
properties: {
|
|
4344
4350
|
type: {
|
|
4345
4351
|
type: 'string',
|
|
4346
|
-
enum: ['S3Storage', 'AzureBlobStorage', 'AzureWorkloadIdentity', 'S3AwsOidc']
|
|
4352
|
+
enum: ['S3Storage', 'AzureBlobStorage', 'AzureWorkloadIdentity', 'S3AwsOidc', 'GoogleCloudStorage']
|
|
4347
4353
|
},
|
|
4348
4354
|
s3_resource_path: {
|
|
4349
4355
|
type: 'string'
|
|
@@ -4351,6 +4357,9 @@ export const $LargeFileStorage = {
|
|
|
4351
4357
|
azure_blob_resource_path: {
|
|
4352
4358
|
type: 'string'
|
|
4353
4359
|
},
|
|
4360
|
+
gcs_resource_path: {
|
|
4361
|
+
type: 'string'
|
|
4362
|
+
},
|
|
4354
4363
|
public_resource: {
|
|
4355
4364
|
type: 'boolean'
|
|
4356
4365
|
}
|
|
@@ -518,6 +518,7 @@ export type AuditLog = {
|
|
|
518
518
|
parameters?: {
|
|
519
519
|
[key: string]: unknown;
|
|
520
520
|
};
|
|
521
|
+
span?: string;
|
|
521
522
|
};
|
|
522
523
|
export type MainArgSignature = {
|
|
523
524
|
type: 'Valid' | 'Invalid';
|
|
@@ -1351,15 +1352,17 @@ export type PolarsClientKwargs = {
|
|
|
1351
1352
|
region_name: string;
|
|
1352
1353
|
};
|
|
1353
1354
|
export type LargeFileStorage = {
|
|
1354
|
-
type?: 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc';
|
|
1355
|
+
type?: 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc' | 'GoogleCloudStorage';
|
|
1355
1356
|
s3_resource_path?: string;
|
|
1356
1357
|
azure_blob_resource_path?: string;
|
|
1358
|
+
gcs_resource_path?: string;
|
|
1357
1359
|
public_resource?: boolean;
|
|
1358
1360
|
secondary_storage?: {
|
|
1359
1361
|
[key: string]: {
|
|
1360
|
-
type?: 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc';
|
|
1362
|
+
type?: 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc' | 'GoogleCloudStorage';
|
|
1361
1363
|
s3_resource_path?: string;
|
|
1362
1364
|
azure_blob_resource_path?: string;
|
|
1365
|
+
gcs_resource_path?: string;
|
|
1363
1366
|
public_resource?: boolean;
|
|
1364
1367
|
};
|
|
1365
1368
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "windmill-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.502.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build",
|
|
7
7
|
"preview": "vite preview",
|
|
8
|
+
"postinstall": "node scripts/untar_ui_builder.js && node scripts/patch_files.js",
|
|
8
9
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --threshold warning",
|
|
9
10
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
10
11
|
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
|