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

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,24 +16,24 @@ var __privateSet = (obj, member, value, setter) => {
16
16
  setter ? setter.call(obj, value) : member.set(obj, value);
17
17
  return value;
18
18
  };
19
- var _test;
19
+ var _value;
20
20
  class SafeSerializableSceneObject {
21
21
  constructor(value) {
22
- __privateAdd(this, _test, void 0);
22
+ __privateAdd(this, _value, void 0);
23
23
  this.text = "__sceneObject";
24
- __privateSet(this, _test, value);
24
+ this.valueOf = () => {
25
+ return __privateGet(this, _value);
26
+ };
27
+ __privateSet(this, _value, 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
  }
35
35
  }
36
- _test = new WeakMap();
36
+ _value = new WeakMap();
37
37
 
38
38
  export { SafeSerializableSceneObject };
39
39
  //# sourceMappingURL=SafeSerializableSceneObject.js.map
@@ -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 #value: SceneObject;\n\n public text = '__sceneObject';\n\n public constructor(value: SceneObject) {\n this.#value = value;\n }\n\n public toString() {\n return undefined;\n }\n\n public valueOf = () => {\n return this.#value;\n };\n\n public get value() {\n return this;\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAA,MAAA,CAAA;AAGO,MAAM,2BAAiD,CAAA;AAAA,EAKrD,YAAY,KAAoB,EAAA;AAJvC,IAAA,YAAA,CAAA,IAAA,EAAA,MAAA,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,MAAA,CAAA,CAAA;AAAA,KACd,CAAA;AATE,IAAA,YAAA,CAAA,IAAA,EAAK,MAAS,EAAA,KAAA,CAAA,CAAA;AAAA,GAChB;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,MAAA,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
@@ -3138,24 +3138,24 @@ var __privateSet$1 = (obj, member, value, setter) => {
3138
3138
  setter ? setter.call(obj, value) : member.set(obj, value);
3139
3139
  return value;
3140
3140
  };
3141
- var _test;
3141
+ var _value;
3142
3142
  class SafeSerializableSceneObject {
3143
3143
  constructor(value) {
3144
- __privateAdd$1(this, _test, void 0);
3144
+ __privateAdd$1(this, _value, void 0);
3145
3145
  this.text = "__sceneObject";
3146
- __privateSet$1(this, _test, value);
3146
+ this.valueOf = () => {
3147
+ return __privateGet$1(this, _value);
3148
+ };
3149
+ __privateSet$1(this, _value, 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
  }
3157
3157
  }
3158
- _test = new WeakMap();
3158
+ _value = new WeakMap();
3159
3159
 
3160
3160
  var __defProp$z = Object.defineProperty;
3161
3161
  var __defProps$n = Object.defineProperties;