@vyr/runtime 0.0.1 → 0.0.2

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,4 +1,5 @@
1
1
  import { Service } from "@vyr/service";
2
+ import { ScriptOption } from './data/global';
2
3
  import { Header } from "./data/header";
3
4
  import { Body } from './data/body';
4
5
  import { Sidebar } from './data/sidebar';
@@ -6,10 +7,7 @@ import { Inspector } from "./data/inspector";
6
7
  import { Footer } from './data/footer';
7
8
  import { Status } from './data/status';
8
9
  declare class DataService extends Service {
9
- readonly scripts: {
10
- label: string;
11
- value: string;
12
- }[];
10
+ readonly scripts: ScriptOption[];
13
11
  readonly header: Header;
14
12
  readonly body: Body;
15
13
  readonly sidebar: Sidebar;
@@ -18,9 +16,7 @@ declare class DataService extends Service {
18
16
  readonly status: Status;
19
17
  constructor(name: string);
20
18
  setup(): Promise<void>;
21
- addScripte(script: {
22
- label: string;
23
- value: string;
24
- }): void;
19
+ addScripte(script: ScriptOption): void;
25
20
  }
26
21
  export { DataService };
22
+ export * from './data/global';
@@ -17,6 +17,7 @@ declare class PresetService extends Service {
17
17
  private _eventProviderCollection;
18
18
  constructor(name: string);
19
19
  private _addGlobalInteractionProvider;
20
+ private _addDatasetInteractionProvider;
20
21
  private _addHTMLInteractionProvider;
21
22
  get(value: string): Preset;
22
23
  getByType(type: string): Preset[];
@@ -0,0 +1,15 @@
1
+ import { InteractionInput } from "@vyr/engine";
2
+ interface ScriptPropertyOptions extends Array<{
3
+ [k: string]: any;
4
+ }> {
5
+ }
6
+ interface ScriptPropertyOptionsGetters {
7
+ [k: string]: (input: InteractionInput) => ScriptPropertyOptions;
8
+ }
9
+ interface ScriptOption {
10
+ label: string;
11
+ value: string;
12
+ getDefaultInput(): any;
13
+ getPropertyOptions?: () => ScriptPropertyOptionsGetters;
14
+ }
15
+ export { ScriptPropertyOptions, ScriptPropertyOptionsGetters, ScriptOption };
@@ -2,6 +2,7 @@ import { LanguageProvider } from '@vyr/locale';
2
2
  interface ZhCNLanguageProvider extends LanguageProvider {
3
3
  'preset.Interaction.id.mount': string;
4
4
  'preset.Interaction.id.click': string;
5
+ 'preset.Interaction.id.compile': string;
5
6
  'preset.Interaction.id.mousedown': string;
6
7
  'preset.Interaction.id.mouseup': string;
7
8
  'preset.Interaction.id.mouseenter': string;
@@ -44,8 +44,8 @@ declare abstract class SidebarNavigator {
44
44
  on(rpc: RpcService, key: string, cb: (...args: any[]) => void): (...args: any[]) => void;
45
45
  unAll(rpc: RpcService): void;
46
46
  abstract finishedWhereInspectorDraggable(draggable: Draggable, dragData: DraggableData<VirtualNode>, targetData: DraggableData, type: DraggableEndType): void;
47
- abstract ensureReadonlyWhereRoutine(client: string): boolean;
48
- abstract saveWhereRoutine(content: DeserializationObject<Descriptor>): void;
47
+ abstract ensureReadonlyWhereInteraction(client: string): boolean;
48
+ abstract saveWhereInteraction(content: DeserializationObject<Descriptor>): void;
49
49
  abstract remoteTransformEvent(...args: any[]): void;
50
50
  abstract remotePickEvent(task: InstanceType<typeof Job['invoke']['pick']['Response']>): void;
51
51
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@vyr/runtime",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": " - Type Declarations",
5
5
  "main": "",
6
6
  "author": "",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
9
  "vue": "3.5.22",
10
- "@vyr/locale": "0.0.1",
11
- "@vyr/declare": "0.0.1",
12
- "@vyr/engine": "0.0.1",
13
- "@vyr/remote": "0.0.1",
14
- "@vyr/service": "0.0.1",
15
- "@vyr/service-rpc": "0.0.1"
10
+ "@vyr/locale": "0.0.2",
11
+ "@vyr/declare": "0.0.2",
12
+ "@vyr/engine": "0.0.2",
13
+ "@vyr/remote": "0.0.2",
14
+ "@vyr/service": "0.0.2",
15
+ "@vyr/service-rpc": "0.0.2"
16
16
  },
17
17
  "files": [
18
18
  "**/*.d.ts"