windmill-components 1.35.0 → 1.35.1

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.
@@ -1,11 +1,11 @@
1
- <script>import { faGithub } from '@fortawesome/free-brands-svg-icons';
2
- import Icon from 'svelte-awesome';
1
+ <script>import Icon from 'svelte-awesome';
3
2
  import AirtableIcon from './icons/AirtableIcon.svelte';
4
3
  import DbIcon from './icons/DbIcon.svelte';
5
4
  import DiscordIcon from './icons/DiscordIcon.svelte';
6
5
  import GcalIcon from './icons/GcalIcon.svelte';
7
6
  import GCloudIcon from './icons/GCloudIcon.svelte';
8
7
  import GdriveIcon from './icons/GdriveIcon.svelte';
8
+ import GithubIcon from './icons/GithubIcon.svelte';
9
9
  import GitlabIcon from './icons/GItlabIcon.svelte';
10
10
  import GmailIcon from './icons/GmailIcon.svelte';
11
11
  import GSheetsIcon from './icons/GSheetsIcon.svelte';
@@ -42,7 +42,7 @@ export let width = '24px';
42
42
  {:else if name === 'slack'}
43
43
  <Slack {height} {width} />
44
44
  {:else if name === 'github'}
45
- <Icon data={faGithub} scale={1.4} />
45
+ <Icon data={GithubIcon} scale={1.4} />
46
46
  {:else if name === 'gmail'}
47
47
  <GmailIcon {height} {width} />
48
48
  {:else if name === 'gsheets'}
@@ -0,0 +1,17 @@
1
+ <script>export let height = '24px';
2
+ export let width = '24px';
3
+ </script>
4
+
5
+ <svg
6
+ xmlns="http://www.w3.org/2000/svg"
7
+ x="0px"
8
+ y="0px"
9
+ {width}
10
+ {height}
11
+ viewBox="0 0 30 30"
12
+ style=" fill:#000000;"
13
+ >
14
+ <path
15
+ d="M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"
16
+ /></svg
17
+ >
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ height?: string | undefined;
5
+ width?: string | undefined;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type GithubIconProps = typeof __propDef.props;
13
+ export declare type GithubIconEvents = typeof __propDef.events;
14
+ export declare type GithubIconSlots = typeof __propDef.slots;
15
+ export default class GithubIcon extends SvelteComponentTyped<GithubIconProps, GithubIconEvents, GithubIconSlots> {
16
+ }
17
+ export {};
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '/api',
3
- VERSION: '1.34.0',
3
+ VERSION: '1.35.0',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -14,7 +14,7 @@ export declare class ScriptService {
14
14
  summary: string;
15
15
  app: string;
16
16
  approved: boolean;
17
- is_trigger: boolean;
17
+ kind?: string;
18
18
  votes: number;
19
19
  views: number;
20
20
  }>;
@@ -32,7 +32,7 @@ export declare class ScriptService {
32
32
  * @returns Script All available scripts
33
33
  * @throws ApiError
34
34
  */
35
- static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, isTrigger, }: {
35
+ static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, }: {
36
36
  workspace: string;
37
37
  /**
38
38
  * which page to return (start at 1, default 1)
@@ -96,12 +96,10 @@ export declare class ScriptService {
96
96
  isTemplate?: boolean;
97
97
  /**
98
98
  * (default regardless)
99
- * if true show only the trigger scripts
100
- * if false show only the non trigger scripts
101
- * if not defined, show all regardless of if the script is a trigger script
99
+ * script kind
102
100
  *
103
101
  */
104
- isTrigger?: boolean;
102
+ kind?: string;
105
103
  }): CancelablePromise<Array<Script>>;
106
104
  /**
107
105
  * create script
@@ -31,7 +31,7 @@ export class ScriptService {
31
31
  * @returns Script All available scripts
32
32
  * @throws ApiError
33
33
  */
34
- static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, isTrigger, }) {
34
+ static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, }) {
35
35
  return __request(OpenAPI, {
36
36
  method: 'GET',
37
37
  url: '/w/{workspace}/scripts/list',
@@ -50,7 +50,7 @@ export class ScriptService {
50
50
  'parent_hash': parentHash,
51
51
  'show_archived': showArchived,
52
52
  'is_template': isTemplate,
53
- 'is_trigger': isTrigger,
53
+ 'kind': kind,
54
54
  },
55
55
  });
56
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.35.0",
3
+ "version": "1.35.1",
4
4
  "devDependencies": {
5
5
  "@playwright/test": "^1.25.1",
6
6
  "@sveltejs/adapter-static": "^1.0.0-next.39",
@@ -157,6 +157,7 @@
157
157
  "./components/icons/GSheetsIcon.svelte": "./components/icons/GSheetsIcon.svelte",
158
158
  "./components/icons/GcalIcon.svelte": "./components/icons/GcalIcon.svelte",
159
159
  "./components/icons/GdriveIcon.svelte": "./components/icons/GdriveIcon.svelte",
160
+ "./components/icons/GithubIcon.svelte": "./components/icons/GithubIcon.svelte",
160
161
  "./components/icons/GmailIcon.svelte": "./components/icons/GmailIcon.svelte",
161
162
  "./components/icons/HttpIcon.svelte": "./components/icons/HttpIcon.svelte",
162
163
  "./components/icons/Mail.svelte": "./components/icons/Mail.svelte",
package/utils.js CHANGED
@@ -428,7 +428,7 @@ export async function loadHubScripts() {
428
428
  path: `hub/${x.id}/${x.app}/${x.summary.toLowerCase().replaceAll(/\s+/g, '_')}`,
429
429
  summary: `${x.summary} (${x.app}) ${x.views} uses`,
430
430
  approved: x.approved,
431
- kind: x.kind,
431
+ is_trigger: x.is_trigger,
432
432
  app: x.app,
433
433
  views: x.views,
434
434
  votes: x.votes,