@grafana/scenes 5.6.2--canary.844.10073621961.0 → 5.6.2--canary.844.10073643378.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,14 +21,14 @@ class SafeSerializableSceneObject {
21
21
  constructor(value) {
22
22
  __privateAdd(this, _test, void 0);
23
23
  this.text = "__sceneObject";
24
+ this.valueOf = () => {
25
+ return __privateGet(this, _test);
26
+ };
24
27
  __privateSet(this, _test, value);
25
28
  }
26
29
  toString() {
27
30
  return void 0;
28
31
  }
29
- valueOf() {
30
- return __privateGet(this, _test);
31
- }
32
32
  get value() {
33
33
  return this;
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SafeSerializableSceneObject.js","sources":["../../../src/utils/SafeSerializableSceneObject.ts"],"sourcesContent":["import { ScopedVar } from '@grafana/data';\nimport { SceneObject } from '../core/types';\n\nexport class SafeSerializableSceneObject implements ScopedVar {\n #test: SceneObject;\n\n public text = '__sceneObject';\n\n public constructor(value: SceneObject) {\n this.#test = value;\n }\n\n public toString() {\n return undefined;\n }\n\n public valueOf() {\n return this.#test;\n }\n\n public get value() {\n return this;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAA,KAAA,CAAA;AAGO,MAAM,2BAAiD,CAAA;AAAA,EAKrD,YAAY,KAAoB,EAAA;AAJvC,IAAA,YAAA,CAAA,IAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAEA,IAAA,IAAA,CAAO,IAAO,GAAA,eAAA,CAAA;AAGZ,IAAA,YAAA,CAAA,IAAA,EAAK,KAAQ,EAAA,KAAA,CAAA,CAAA;AAAA,GACf;AAAA,EAEO,QAAW,GAAA;AAChB,IAAO,OAAA,KAAA,CAAA,CAAA;AAAA,GACT;AAAA,EAEO,OAAU,GAAA;AACf,IAAA,OAAO,YAAK,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AAAA,GACd;AAAA,EAEA,IAAW,KAAQ,GAAA;AACjB,IAAO,OAAA,IAAA,CAAA;AAAA,GACT;AACF,CAAA;AAnBE,KAAA,GAAA,IAAA,OAAA,EAAA;;;;"}
1
+ {"version":3,"file":"SafeSerializableSceneObject.js","sources":["../../../src/utils/SafeSerializableSceneObject.ts"],"sourcesContent":["import { ScopedVar } from '@grafana/data';\nimport { SceneObject } from '../core/types';\n\nexport class SafeSerializableSceneObject implements ScopedVar {\n #test: SceneObject;\n\n public text = '__sceneObject';\n\n public constructor(value: SceneObject) {\n this.#test = value;\n }\n\n public toString() {\n return undefined;\n }\n\n public valueOf = () => {\n return this.#test;\n };\n\n public get value() {\n return this;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAA,KAAA,CAAA;AAGO,MAAM,2BAAiD,CAAA;AAAA,EAKrD,YAAY,KAAoB,EAAA;AAJvC,IAAA,YAAA,CAAA,IAAA,EAAA,KAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAEA,IAAA,IAAA,CAAO,IAAO,GAAA,eAAA,CAAA;AAUd,IAAA,IAAA,CAAO,UAAU,MAAM;AACrB,MAAA,OAAO,YAAK,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AAAA,KACd,CAAA;AATE,IAAA,YAAA,CAAA,IAAA,EAAK,KAAQ,EAAA,KAAA,CAAA,CAAA;AAAA,GACf;AAAA,EAEO,QAAW,GAAA;AAChB,IAAO,OAAA,KAAA,CAAA,CAAA;AAAA,GACT;AAAA,EAMA,IAAW,KAAQ,GAAA;AACjB,IAAO,OAAA,IAAA,CAAA;AAAA,GACT;AACF,CAAA;AAnBE,KAAA,GAAA,IAAA,OAAA,EAAA;;;;"}
package/dist/index.d.ts CHANGED
@@ -2663,7 +2663,7 @@ declare class SafeSerializableSceneObject implements ScopedVar {
2663
2663
  text: string;
2664
2664
  constructor(value: SceneObject);
2665
2665
  toString(): undefined;
2666
- valueOf(): SceneObject<SceneObjectState>;
2666
+ valueOf: () => SceneObject<SceneObjectState>;
2667
2667
  get value(): this;
2668
2668
  }
2669
2669
 
package/dist/index.js CHANGED
@@ -3143,14 +3143,14 @@ class SafeSerializableSceneObject {
3143
3143
  constructor(value) {
3144
3144
  __privateAdd$1(this, _test, void 0);
3145
3145
  this.text = "__sceneObject";
3146
+ this.valueOf = () => {
3147
+ return __privateGet$1(this, _test);
3148
+ };
3146
3149
  __privateSet$1(this, _test, value);
3147
3150
  }
3148
3151
  toString() {
3149
3152
  return void 0;
3150
3153
  }
3151
- valueOf() {
3152
- return __privateGet$1(this, _test);
3153
- }
3154
3154
  get value() {
3155
3155
  return this;
3156
3156
  }