@lobb-js/studio 0.1.40 → 0.1.41

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.
@@ -29,7 +29,9 @@
29
29
  </div>
30
30
  <div class="flex justify-end p-2 text-xs text-muted-foreground/50">
31
31
  <div class="flex flex-col text-end">
32
- <div>studio: v{ctx.studioVersion}</div>
32
+ {#if ctx.studioVersion}
33
+ <div>studio: v{ctx.studioVersion}</div>
34
+ {/if}
33
35
  <div>core: v{ctx.meta.version}</div>
34
36
  </div>
35
37
  </div>
@@ -36,15 +36,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
36
36
  };
37
37
  import { Lobb } from './Lobb';
38
38
  import { toast } from 'svelte-sonner';
39
- import pkg from '../../package.json';
40
39
  if (!window.APP_ENV) {
41
40
  window.APP_ENV = {};
42
41
  }
43
42
  if (window.APP_ENV.LOBB_URL === '%LOBB_URL%') {
44
43
  window.APP_ENV.LOBB_URL = null;
45
44
  }
45
+ // TODO: this state should be passed to the Studio component in the App.svelte it should be its paramters
46
+ // TODO: using a global variable is not good to pass data to children components. using the context api is better for only components builder or wrappers
47
+ // TODO: you should totally remove this file
48
+ // TODO: when you finish doind that add the studioVersion back
46
49
  export var ctx = $state.raw({
47
- studioVersion: pkg.version,
50
+ // studioVersion: pkg.version,
48
51
  lobbUrl: window.APP_ENV.LOBB_URL || localStorage.getItem("lobb_url"),
49
52
  extensions: {},
50
53
  meta: {
@@ -17,7 +17,7 @@ interface Meta {
17
17
  studio_workflows: any[];
18
18
  }
19
19
  export interface CTX {
20
- studioVersion: string;
20
+ studioVersion?: string;
21
21
  lobbUrl: string | null;
22
22
  extensions: Record<string, Extension>;
23
23
  meta: Meta;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobb-js/studio",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"