@vyr/runtime 0.0.19 → 0.0.21

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,5 @@
1
1
  import { Service } from "@vyr/service";
2
- import { ScriptOption } from './data/global';
2
+ import { Global, ScriptOption } from './data/global';
3
3
  import { Header } from "./data/header";
4
4
  import { Body } from './data/body';
5
5
  import { Sidebar } from './data/sidebar';
@@ -7,7 +7,7 @@ import { Inspector } from "./data/inspector";
7
7
  import { Footer } from './data/footer';
8
8
  import { Status } from './data/status';
9
9
  declare class DataService extends Service {
10
- readonly scripts: ScriptOption[];
10
+ readonly global: Global;
11
11
  readonly header: Header;
12
12
  readonly body: Body;
13
13
  readonly sidebar: Sidebar;
@@ -22,6 +22,7 @@ declare abstract class Draggable<D extends AdditionalData = AdditionalData, T ex
22
22
  abstract finished(dragData: DraggableData<D>, targetData: DraggableData<T>, type: DraggableEndType): void;
23
23
  }
24
24
  declare class DraggableKey {
25
+ example: string;
25
26
  scene: string;
26
27
  asset: string;
27
28
  inspector: string;
@@ -12,4 +12,11 @@ interface ScriptOption {
12
12
  getDefaultInput(): any;
13
13
  getPropertyOptions?: () => ScriptPropertyOptionsGetters;
14
14
  }
15
- export { ScriptPropertyOptions, ScriptPropertyOptionsGetters, ScriptOption };
15
+ declare class Template {
16
+ visible: boolean;
17
+ }
18
+ declare class Global {
19
+ readonly scripts: ScriptOption[];
20
+ readonly template: Template;
21
+ }
22
+ export { ScriptPropertyOptions, ScriptPropertyOptionsGetters, ScriptOption, Global, };
@@ -21,8 +21,7 @@ declare class Status {
21
21
  }
22
22
  /**该类会被响应式对象使用,定义方法时不要使用箭头函数(会导致在方法里修改变量时,直接修改了原始对象) */
23
23
  declare abstract class SidebarNavigator {
24
- static key: string;
25
- readonly key: string;
24
+ abstract readonly key: string;
26
25
  readonly label: string;
27
26
  readonly icon: string;
28
27
  readonly root: Descriptor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyr/runtime",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": " - Type Declarations",
5
5
  "main": "",
6
6
  "author": "",