windmill-components 1.430.5 → 1.433.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.
Files changed (35) hide show
  1. package/package/components/AppConnectInner.svelte +27 -2
  2. package/package/components/ConfirmButton.svelte +31 -0
  3. package/package/components/ConfirmButton.svelte.d.ts +20 -0
  4. package/package/components/DiffEditor.svelte +0 -6
  5. package/package/components/FlowStatusViewerInner.svelte +8 -4
  6. package/package/components/InstanceSettings.svelte +20 -1
  7. package/package/components/Login.svelte +31 -6
  8. package/package/components/ServiceLogsInner.svelte +365 -337
  9. package/package/components/apps/components/buttons/AppSchemaForm.svelte +1 -1
  10. package/package/components/apps/components/display/AppNavbarItem.svelte +1 -1
  11. package/package/components/apps/components/helpers/RunnableComponent.svelte +2 -2
  12. package/package/components/apps/components/inputs/AppS3FileInput.svelte +1 -1
  13. package/package/components/apps/editor/AppEditor.svelte +18 -8
  14. package/package/components/apps/editor/AppEditor.svelte.d.ts +5 -0
  15. package/package/components/apps/editor/AppEditorHeader.svelte +58 -58
  16. package/package/components/apps/editor/AppEditorHeader.svelte.d.ts +2 -0
  17. package/package/components/apps/editor/AppPreview.svelte +6 -1
  18. package/package/components/apps/editor/AppReportsDrawer.svelte +3 -613
  19. package/package/components/apps/editor/AppReportsDrawerInner.svelte +622 -0
  20. package/package/components/apps/editor/AppReportsDrawerInner.svelte.d.ts +17 -0
  21. package/package/components/apps/editor/component/components.d.ts +79 -79
  22. package/package/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte +1 -1
  23. package/package/components/apps/editor/inlineScriptsPanel/InlineScriptEditor.svelte +1 -1
  24. package/package/components/apps/editor/settingsPanel/GridNavbar.svelte +1 -1
  25. package/package/components/apps/types.d.ts +1 -1
  26. package/package/components/splitPanes/SplitPanesOrColumnOnMobile.svelte +34 -0
  27. package/package/components/splitPanes/SplitPanesOrColumnOnMobile.svelte.d.ts +23 -0
  28. package/package/components/wizards/AppPicker.svelte +4 -4
  29. package/package/gen/core/OpenAPI.js +1 -1
  30. package/package/gen/schemas.gen.d.ts +2 -2
  31. package/package/gen/schemas.gen.js +2 -2
  32. package/package/gen/services.gen.d.ts +0 -1
  33. package/package/gen/services.gen.js +0 -2
  34. package/package/gen/types.gen.d.ts +2 -4
  35. package/package.json +5 -5
@@ -38,7 +38,7 @@ async function createInlineScriptByLanguage(language, path, subkind = undefined)
38
38
  return newInlineScript(content, language, path);
39
39
  }
40
40
  async function newInlineScript(content, language, path) {
41
- const fullPath = `${appPath}/${path}`;
41
+ const fullPath = `${$appPath}/${path}`;
42
42
  let schema = emptySchema();
43
43
  schema = await inferInlineScriptSchema(language, content, schema);
44
44
  const newInlineScript = {
@@ -42,7 +42,7 @@ async function inferInlineScriptSchema(language, content, schema) {
42
42
  return schema;
43
43
  }
44
44
  $: inlineScript &&
45
- (inlineScript.path = `${defaultIfEmptyString(appPath, `u/${$userStore?.username ?? 'unknown'}/newapp`)}/${name?.replaceAll(' ', '_')}`);
45
+ (inlineScript.path = `${defaultIfEmptyString($appPath, `u/${$userStore?.username ?? 'unknown'}/newapp`)}/${name?.replaceAll(' ', '_')}`);
46
46
  onMount(async () => {
47
47
  if (inlineScript && !inlineScript.schema) {
48
48
  if (inlineScript.language != 'frontend') {
@@ -162,7 +162,7 @@ let resolvedLabels = [];
162
162
  {#if resolvedPaths[item.originalIndex]}
163
163
  <div class="text-xs text-tertiary flex gap-2 flex-row flex-wrap">
164
164
  Path: <Badge small>{resolvedPaths[item.originalIndex]}</Badge>
165
- {#if appPath && resolvedPaths[item.originalIndex]?.includes(appPath)}
165
+ {#if $appPath && resolvedPaths[item.originalIndex]?.includes($appPath)}
166
166
  <Badge small color="blue"
167
167
  >Current app
168
168
 
@@ -152,7 +152,7 @@ export type AppViewerContext = {
152
152
  cb: ((inlineScript?: InlineScript, setRunnableJob?: boolean) => CancelablePromise<void>)[];
153
153
  }>>;
154
154
  staticExporter: Writable<Record<string, () => any>>;
155
- appPath: string;
155
+ appPath: Writable<string>;
156
156
  workspace: string;
157
157
  onchange: (() => void) | undefined;
158
158
  isEditor: boolean;
@@ -0,0 +1,34 @@
1
+ <script>import { Pane, Splitpanes } from 'svelte-splitpanes';
2
+ import SplitPanesWrapper from './SplitPanesWrapper.svelte';
3
+ export let leftPaneSize = 30;
4
+ export let leftPaneMinSize = 25;
5
+ export let rightPaneSize = 70;
6
+ export let rightPaneMinSize = 25;
7
+ export let rightPaneIsFirstInCol = false;
8
+ let clientWidth = window.innerWidth;
9
+ </script>
10
+
11
+ <main class="h-screen w-full" bind:clientWidth>
12
+ {#if clientWidth >= 768}
13
+ <SplitPanesWrapper class="hidden md:block">
14
+ <Splitpanes>
15
+ <Pane size={30} minSize={25}>
16
+ <slot name="left-pane" />
17
+ </Pane>
18
+ <Pane size={70} minSize={25}>
19
+ <slot name="right-pane" />
20
+ </Pane>
21
+ </Splitpanes>
22
+ </SplitPanesWrapper>
23
+ {:else}
24
+ <div class="flex flex-col">
25
+ {#if rightPaneIsFirstInCol}
26
+ <slot name="right-pane" />
27
+ <slot name="left-pane" />
28
+ {:else}
29
+ <slot name="left-pane" />
30
+ <slot name="right-pane" />
31
+ {/if}
32
+ </div>
33
+ {/if}
34
+ </main>
@@ -0,0 +1,23 @@
1
+ import { SvelteComponent } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ leftPaneSize?: number | undefined;
5
+ leftPaneMinSize?: number | undefined;
6
+ rightPaneSize?: number | undefined;
7
+ rightPaneMinSize?: number | undefined;
8
+ rightPaneIsFirstInCol?: boolean | undefined;
9
+ };
10
+ events: {
11
+ [evt: string]: CustomEvent<any>;
12
+ };
13
+ slots: {
14
+ 'left-pane': {};
15
+ 'right-pane': {};
16
+ };
17
+ };
18
+ export type SplitPanesOrColumnOnMobileProps = typeof __propDef.props;
19
+ export type SplitPanesOrColumnOnMobileEvents = typeof __propDef.events;
20
+ export type SplitPanesOrColumnOnMobileSlots = typeof __propDef.slots;
21
+ export default class SplitPanesOrColumnOnMobile extends SvelteComponent<SplitPanesOrColumnOnMobileProps, SplitPanesOrColumnOnMobileEvents, SplitPanesOrColumnOnMobileSlots> {
22
+ }
23
+ export {};
@@ -24,8 +24,8 @@ async function loadApps() {
24
24
  onMount(() => {
25
25
  loadApps();
26
26
  if (selecteValue === '') {
27
- selecteValue = appPath;
28
- value = appPath;
27
+ selecteValue = $appPath;
28
+ value = $appPath;
29
29
  }
30
30
  });
31
31
  </script>
@@ -45,7 +45,7 @@ onMount(() => {
45
45
  items={apps.map((app) => {
46
46
  return {
47
47
  value: app.path,
48
- label: app.path === appPath ? `${app.path} (current app)` : app.path
48
+ label: app.path === $appPath ? `${app.path} (current app)` : app.path
49
49
  }
50
50
  })}
51
51
  placeholder="Pick an app"
@@ -60,7 +60,7 @@ onMount(() => {
60
60
  Current app is not selectable until you have deployed this app at least once.
61
61
  </Alert>
62
62
  {/if}
63
- {#if appPath && appPath === value}
63
+ {#if appPath && $appPath === value}
64
64
  <div class="text-2xs">
65
65
  The current app is selected. If the path changes, the path needs to be updated manually.
66
66
  </div>
@@ -21,7 +21,7 @@ export const OpenAPI = {
21
21
  PASSWORD: undefined,
22
22
  TOKEN: undefined,
23
23
  USERNAME: undefined,
24
- VERSION: '1.430.1',
24
+ VERSION: '1.433.0',
25
25
  WITH_CREDENTIALS: false,
26
26
  interceptors: {
27
27
  request: new Interceptors(),
@@ -385,7 +385,7 @@ export declare const $QueuedJob: {
385
385
  };
386
386
  readonly job_kind: {
387
387
  readonly type: "string";
388
- readonly enum: readonly ["script", "preview", "dependencies", "flowdependencies", "appdependencies", "flow", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow"];
388
+ readonly enum: readonly ["script", "preview", "dependencies", "flowdependencies", "appdependencies", "flow", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow", "flowscript"];
389
389
  };
390
390
  readonly schedule_path: {
391
391
  readonly type: "string";
@@ -495,7 +495,7 @@ export declare const $CompletedJob: {
495
495
  };
496
496
  readonly job_kind: {
497
497
  readonly type: "string";
498
- readonly enum: readonly ["script", "preview", "dependencies", "flow", "flowdependencies", "appdependencies", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow"];
498
+ readonly enum: readonly ["script", "preview", "dependencies", "flow", "flowdependencies", "appdependencies", "flowpreview", "script_hub", "identity", "deploymentcallback", "singlescriptflow", "flowscript"];
499
499
  };
500
500
  readonly schedule_path: {
501
501
  readonly type: "string";
@@ -390,7 +390,7 @@ export const $QueuedJob = {
390
390
  },
391
391
  job_kind: {
392
392
  type: 'string',
393
- enum: ['script', 'preview', 'dependencies', 'flowdependencies', 'appdependencies', 'flow', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow']
393
+ enum: ['script', 'preview', 'dependencies', 'flowdependencies', 'appdependencies', 'flow', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow', 'flowscript']
394
394
  },
395
395
  schedule_path: {
396
396
  type: 'string'
@@ -502,7 +502,7 @@ export const $CompletedJob = {
502
502
  },
503
503
  job_kind: {
504
504
  type: 'string',
505
- enum: ['script', 'preview', 'dependencies', 'flow', 'flowdependencies', 'appdependencies', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow']
505
+ enum: ['script', 'preview', 'dependencies', 'flow', 'flowdependencies', 'appdependencies', 'flowpreview', 'script_hub', 'identity', 'deploymentcallback', 'singlescriptflow', 'flowscript']
506
506
  },
507
507
  schedule_path: {
508
508
  type: 'string'
@@ -3889,7 +3889,6 @@ export declare class IndexSearchService {
3889
3889
  * Search and count the log line hits on every provided host
3890
3890
  * @param data The data for the request.
3891
3891
  * @param data.searchQuery
3892
- * @param data.hosts
3893
3892
  * @param data.minTs
3894
3893
  * @param data.maxTs
3895
3894
  * @returns unknown search results
@@ -7837,7 +7837,6 @@ export class IndexSearchService {
7837
7837
  * Search and count the log line hits on every provided host
7838
7838
  * @param data The data for the request.
7839
7839
  * @param data.searchQuery
7840
- * @param data.hosts
7841
7840
  * @param data.minTs
7842
7841
  * @param data.maxTs
7843
7842
  * @returns unknown search results
@@ -7849,7 +7848,6 @@ export class IndexSearchService {
7849
7848
  url: '/srch/index/search/count_service_logs',
7850
7849
  query: {
7851
7850
  search_query: data.searchQuery,
7852
- hosts: data.hosts,
7853
7851
  min_ts: data.minTs,
7854
7852
  max_ts: data.maxTs
7855
7853
  }
@@ -130,7 +130,7 @@ export type QueuedJob = {
130
130
  canceled_by?: string;
131
131
  canceled_reason?: string;
132
132
  last_ping?: string;
133
- job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow';
133
+ job_kind: 'script' | 'preview' | 'dependencies' | 'flowdependencies' | 'appdependencies' | 'flow' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript';
134
134
  schedule_path?: string;
135
135
  /**
136
136
  * The user (u/userfoo) or group (g/groupfoo) whom
@@ -170,7 +170,7 @@ export type CompletedJob = {
170
170
  canceled: boolean;
171
171
  canceled_by?: string;
172
172
  canceled_reason?: string;
173
- job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow';
173
+ job_kind: 'script' | 'preview' | 'dependencies' | 'flow' | 'flowdependencies' | 'appdependencies' | 'flowpreview' | 'script_hub' | 'identity' | 'deploymentcallback' | 'singlescriptflow' | 'flowscript';
174
174
  schedule_path?: string;
175
175
  /**
176
176
  * The user (u/userfoo) or group (g/groupfoo) whom
@@ -5400,7 +5400,6 @@ export type SearchLogsIndexResponse = {
5400
5400
  hits?: Array<LogSearchHit>;
5401
5401
  };
5402
5402
  export type CountSearchLogsIndexData = {
5403
- hosts: string;
5404
5403
  maxTs?: string;
5405
5404
  minTs?: string;
5406
5405
  searchQuery: string;
@@ -12861,7 +12860,6 @@ export type $OpenApiTs = {
12861
12860
  '/srch/index/search/count_service_logs': {
12862
12861
  get: {
12863
12862
  req: {
12864
- hosts: string;
12865
12863
  maxTs?: string;
12866
12864
  minTs?: string;
12867
12865
  searchQuery: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.430.5",
3
+ "version": "1.433.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",
@@ -256,9 +256,9 @@
256
256
  "default": "./package/components/FlowBuilder.svelte"
257
257
  },
258
258
  "./components/AppEditor.svelte": {
259
- "types": "./package/components/app/editor/AppEditor.svelte.d.ts",
260
- "svelte": "./package/components/app/editor/AppEditor.svelte",
261
- "default": "./package/components/app/editor/AppEditor.svelte"
259
+ "types": "./package/components/apps/editor/AppEditor.svelte.d.ts",
260
+ "svelte": "./package/components/apps/editor/AppEditor.svelte",
261
+ "default": "./package/components/apps/editor/AppEditor.svelte"
262
262
  },
263
263
  "./components/ScriptBuilder.svelte": {
264
264
  "types": "./package/components/ScriptBuilder.svelte.d.ts",
@@ -438,7 +438,7 @@
438
438
  "./package/components/FlowBuilder.svelte.d.ts"
439
439
  ],
440
440
  "components/AppEditor.svelte": [
441
- "./package/components/app/editor/AppEditor.svelte.d.ts"
441
+ "./package/components/apps/editor/AppEditor.svelte.d.ts"
442
442
  ],
443
443
  "components/ScriptBuilder.svelte": [
444
444
  "./package/components/ScriptBuilder.svelte.d.ts"