windmill-components 1.309.4 → 1.309.5

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,5 +1,4 @@
1
1
  <script>import { DraftService, ScriptService, ScheduleService } from '../gen';
2
- import { page } from '$app/stores';
3
2
  import { inferArgs } from '../infer';
4
3
  import { initialCode } from '../script_helpers';
5
4
  import { defaultScripts, enterpriseLicense, userStore, workspaceStore } from '../stores';
@@ -40,10 +39,11 @@ export let lockedLanguage = false;
40
39
  export let showMeta = false;
41
40
  export let diffDrawer = undefined;
42
41
  export let savedScript = undefined;
42
+ export let searchParams = new URLSearchParams();
43
43
  let metadataOpen = showMeta ||
44
44
  (initialPath == '' &&
45
- $page.url.searchParams.get('state') == undefined &&
46
- $page.url.searchParams.get('collab') == undefined);
45
+ searchParams.get('state') == undefined &&
46
+ searchParams.get('collab') == undefined);
47
47
  let editor = undefined;
48
48
  let scriptEditor = undefined;
49
49
  let scheduleStore = writable({
@@ -106,8 +106,8 @@ let loadingDraft = false;
106
106
  $: {
107
107
  ;
108
108
  ['collab', 'path'].forEach((x) => {
109
- if ($page.url.searchParams.get(x)) {
110
- $page.url.searchParams.delete(x);
109
+ if (searchParams.get(x)) {
110
+ searchParams.delete(x);
111
111
  }
112
112
  });
113
113
  }
@@ -11,6 +11,7 @@ declare const __propDef: {
11
11
  showMeta?: boolean | undefined;
12
12
  diffDrawer?: DiffDrawer | undefined;
13
13
  savedScript?: NewScriptWithDraft | undefined;
14
+ searchParams?: URLSearchParams | undefined;
14
15
  setCode?: ((code: string) => void) | undefined;
15
16
  };
16
17
  events: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.309.4",
3
+ "version": "1.309.5",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",