windmill-components 1.352.7 → 1.352.8

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.
@@ -37,6 +37,7 @@ export let collabMode = false;
37
37
  export let edit = true;
38
38
  export let noHistory = false;
39
39
  export let saveToWorkspace = false;
40
+ export let watchChanges = false;
40
41
  let websocketAlive = {
41
42
  pyright: false,
42
43
  deno: false,
@@ -44,6 +45,10 @@ let websocketAlive = {
44
45
  ruff: false,
45
46
  shellcheck: false
46
47
  };
48
+ const dispatch = createEventDispatcher();
49
+ $: watchChanges &&
50
+ (code != undefined || schema != undefined) &&
51
+ dispatch('change', { code, schema });
47
52
  let width = 1200;
48
53
  let testJobLoader;
49
54
  // Test args input
@@ -156,7 +161,6 @@ export function disableCollaboration() {
156
161
  onDestroy(() => {
157
162
  disableCollaboration();
158
163
  });
159
- const dispatch = createEventDispatcher();
160
164
  function asKind(str) {
161
165
  return str;
162
166
  }
@@ -21,6 +21,7 @@ declare const __propDef: {
21
21
  edit?: boolean | undefined;
22
22
  noHistory?: boolean | undefined;
23
23
  saveToWorkspace?: boolean | undefined;
24
+ watchChanges?: boolean | undefined;
24
25
  inferSchema?: ((code: string, nlang?: SupportedLanguage) => Promise<void>) | undefined;
25
26
  setCollaborationMode?: (() => Promise<void>) | undefined;
26
27
  disableCollaboration?: (() => void) | undefined;
@@ -28,6 +29,7 @@ declare const __propDef: {
28
29
  events: {
29
30
  createScriptFromInlineScript: CustomEvent<any>;
30
31
  format: CustomEvent<any>;
32
+ change: CustomEvent<any>;
31
33
  } & {
32
34
  [evt: string]: CustomEvent<any>;
33
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.352.7",
3
+ "version": "1.352.8",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",