@vyr/builtin 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,11 +1,12 @@
1
- import { DatasetAttr } from '@vyr/engine';
1
+ import { HttpDataConfig } from '@vyr/engine';
2
2
  type __VLS_Props = {
3
- data: DatasetAttr;
3
+ index: number;
4
+ config: HttpDataConfig;
4
5
  };
5
6
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- remove: (...args: any[]) => void;
7
+ change: (...args: any[]) => void;
7
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
- onRemove?: ((...args: any[]) => any) | undefined;
9
+ onChange?: ((...args: any[]) => any) | undefined;
9
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
11
  declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -1,9 +1,11 @@
1
- import { DeserializationObject, RoutineDescriptor } from '@vyr/engine';
1
+ import { Draggable } from '@vyr/design';
2
+ import { DeserializationObject, InteractionDescriptor } from '@vyr/engine';
2
3
  interface Props {
3
- routine: DeserializationObject<RoutineDescriptor>;
4
+ interaction: DeserializationObject<InteractionDescriptor>;
4
5
  readonly?: boolean;
5
6
  inputReadonly?: boolean;
6
7
  addable?: boolean;
8
+ draggable?: Draggable;
7
9
  }
8
10
  declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
11
  change: (...args: any[]) => void;
@@ -1,8 +1,12 @@
1
+ import { InteractionInput } from '@vyr/engine';
2
+ import { ScriptPropertyOptionsGetters } from '@vyr/runtime';
1
3
  import { Option } from '@vyr/design';
2
4
  type __VLS_Props = {
3
5
  data: Option;
6
+ input: InteractionInput;
4
7
  readonly?: boolean;
5
8
  inputReadonly?: boolean;
9
+ getters?: ScriptPropertyOptionsGetters;
6
10
  };
7
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
12
  change: (...args: any[]) => void;
@@ -1,6 +1,7 @@
1
1
  import VyrRuleItem from './RuleItem.vue';
2
2
  import VyrColorItem from './ColorItem.vue';
3
3
  import VyrInteractionItem from './InteractionItem.vue';
4
+ import VyrDatasetItem from './DatasetItem.vue';
4
5
  import VyrVariableItem from './VariableItem.vue';
5
6
  import VyrInputItem from './InputItem.vue';
6
7
  import VyrDirectory from './Directory.vue';
@@ -10,4 +11,4 @@ import VyrGraph from './Graph.vue';
10
11
  import VyrCodeEditor from './CodeEditor.vue';
11
12
  import ErrorComponent from './ErrorComponent.vue';
12
13
  import LoadingComponent from './LoadingComponent.vue';
13
- export { VyrRuleItem, VyrColorItem, VyrInteractionItem, VyrVariableItem, VyrInputItem, VyrDirectory, VyrTimeline, VyrWindowSetting, VyrGraph, VyrCodeEditor, ErrorComponent, LoadingComponent, };
14
+ export { VyrRuleItem, VyrColorItem, VyrInteractionItem, VyrDatasetItem, VyrVariableItem, VyrInputItem, VyrDirectory, VyrTimeline, VyrWindowSetting, VyrGraph, VyrCodeEditor, ErrorComponent, LoadingComponent, };
@@ -4,7 +4,7 @@ interface ZhCNLanguageProvider extends LanguageProvider {
4
4
  'descriptor.type.TS': string;
5
5
  'descriptor.type.Style': string;
6
6
  'descriptor.type.Dataset': string;
7
- 'descriptor.type.Routine': string;
7
+ 'descriptor.type.Interaction': string;
8
8
  'descriptor.type.Prefabe': string;
9
9
  'descriptor.type.Prefabe.scene': string;
10
10
  'descriptor.type.Prefabe.html': string;
@@ -252,7 +252,9 @@ interface ZhCNLanguageProvider extends LanguageProvider {
252
252
  'inspector.Dataset.attr.value.placeholder': string;
253
253
  'inspector.Dataset.title': string;
254
254
  'inspector.Dataset.placeholder': string;
255
- 'inspector.Dataset.divider': string;
255
+ 'inspector.Dataset.divider.dynamic': string;
256
+ 'inspector.Dataset.dataConfig.key': string;
257
+ 'inspector.Dataset.dataConfig.url': string;
256
258
  'inspector.Interaction.title': string;
257
259
  'inspector.Interaction.confirm.title': string;
258
260
  'inspector.Style.inherit': string;
@@ -1,6 +1,6 @@
1
- import { executePreset } from '@vyr/engine';
2
- declare const requetsTypeOptions: {
1
+ import { HttpType } from '@vyr/engine';
2
+ declare const httpTypeOptions: {
3
3
  label: string;
4
- value: executePreset.net.request.RequestType;
4
+ value: HttpType;
5
5
  }[];
6
- export { requetsTypeOptions };
6
+ export { httpTypeOptions };
@@ -7,7 +7,7 @@ declare const booleanOptions: {
7
7
  value: boolean;
8
8
  }[];
9
9
  export { stateOptions, booleanOptions, };
10
- export * as net from './Net';
10
+ export * as Net from './Net';
11
11
  export * as Color from './Color';
12
12
  export * as Style from './Style';
13
13
  export * as Variable from './Variable';
@@ -1,5 +1,3 @@
1
- declare const scripts: {
2
- label: string;
3
- value: string;
4
- }[];
1
+ import { ScriptOption } from "@vyr/runtime";
2
+ declare const scripts: ScriptOption[];
5
3
  export { scripts };
@@ -20,8 +20,8 @@ declare class AssetNavigator extends SidebarNavigator {
20
20
  [k: string]: boolean;
21
21
  };
22
22
  finishedWhereInspectorDraggable(draggable: Draggable, dragData: DraggableData<VirtualNode>, targetData: DraggableData, type: DraggableEndType): void;
23
- ensureReadonlyWhereRoutine(client: string): boolean;
24
- saveWhereRoutine(content: DeserializationObject<Descriptor>): void;
23
+ ensureReadonlyWhereInteraction(client: string): boolean;
24
+ saveWhereInteraction(content: DeserializationObject<Descriptor>): void;
25
25
  remoteTransformEvent(task: InstanceType<typeof Job['invoke']['transform']['Response']>): void;
26
26
  remotePickEvent(task: InstanceType<typeof Job['invoke']['pick']['Response']>): Promise<void>;
27
27
  }
@@ -28,8 +28,8 @@ declare class SceneNavigator extends SidebarNavigator {
28
28
  [k: string]: boolean;
29
29
  };
30
30
  finishedWhereInspectorDraggable(draggable: Draggable, dragData: DraggableData<VirtualNode>, targetData: DraggableData, type: DraggableEndType): void;
31
- ensureReadonlyWhereRoutine(client: string): boolean;
32
- saveWhereRoutine(content: DeserializationObject<Descriptor>): void;
31
+ ensureReadonlyWhereInteraction(client: string): boolean;
32
+ saveWhereInteraction(content: DeserializationObject<Descriptor>): void;
33
33
  remoteTransformEvent(task: InstanceType<typeof Job['invoke']['transform']['Response']>): void;
34
34
  remotePickEvent(task: InstanceType<typeof Job['invoke']['pick']['Response']>): Promise<void>;
35
35
  }
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@vyr/builtin",
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/design": "0.0.1",
13
- "@vyr/engine": "0.0.1",
14
- "@vyr/runtime": "0.0.1",
15
- "@vyr/service-asset": "0.0.1",
16
- "@vyr/service-rpc": "0.0.1",
17
- "@vyr/remote": "0.0.1",
18
- "@vyr/service-graph": "0.0.1"
10
+ "@vyr/locale": "0.0.2",
11
+ "@vyr/declare": "0.0.2",
12
+ "@vyr/design": "0.0.2",
13
+ "@vyr/engine": "0.0.2",
14
+ "@vyr/runtime": "0.0.2",
15
+ "@vyr/service-asset": "0.0.2",
16
+ "@vyr/service-rpc": "0.0.2",
17
+ "@vyr/remote": "0.0.2",
18
+ "@vyr/service-graph": "0.0.2"
19
19
  },
20
20
  "files": [
21
21
  "**/*.d.ts"
@@ -1,19 +0,0 @@
1
- import { Draggable } from '@vyr/runtime';
2
- import { Option } from '@vyr/design';
3
- type __VLS_Props = {
4
- data: Option;
5
- index: number;
6
- selectOptions: Option[];
7
- draggable: Draggable;
8
- };
9
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- change: (...args: any[]) => void;
11
- setting: (...args: any[]) => void;
12
- setUrl: (...args: any[]) => void;
13
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onChange?: ((...args: any[]) => any) | undefined;
15
- onSetting?: ((...args: any[]) => any) | undefined;
16
- onSetUrl?: ((...args: any[]) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,21 +0,0 @@
1
- import { Option } from '@vyr/design';
2
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- raw: {
4
- default: string;
5
- };
6
- selectOptions: {
7
- default(): Option[];
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- raw: {
11
- default: string;
12
- };
13
- selectOptions: {
14
- default(): Option[];
15
- };
16
- }>> & Readonly<{}>, {
17
- raw: string;
18
- selectOptions: Option[];
19
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
- declare const _default: typeof __VLS_export;
21
- export default _default;
@@ -1,6 +0,0 @@
1
- import { DatasetAttrType } from '@vyr/engine';
2
- declare const typeOptions: {
3
- label: string;
4
- value: DatasetAttrType;
5
- }[];
6
- export { typeOptions };
@@ -1,25 +0,0 @@
1
- import { Action } from '@vyr/runtime';
2
- declare class AddScriptAction extends Action {
3
- static id: string;
4
- static generate: (label: string, category: string) => {
5
- label: string;
6
- update(): void;
7
- validator(): boolean;
8
- execute(): void;
9
- readonly id: string;
10
- readonly value: number;
11
- order: number;
12
- trigger: number;
13
- show: boolean;
14
- disabled: boolean;
15
- children: Action[];
16
- active(): boolean;
17
- };
18
- label: string;
19
- order: number;
20
- constructor();
21
- update(): void;
22
- validator(): boolean;
23
- execute(): void;
24
- }
25
- export { AddScriptAction };
@@ -1,5 +0,0 @@
1
- import { Descriptor, Graphics, Scriptable, UpdateArgs } from '@vyr/engine';
2
- declare class Script extends Scriptable {
3
- execute(descriptor: Descriptor, graphics: Graphics, args: UpdateArgs): void;
4
- }
5
- export default Script;
@@ -1,14 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { RoutineNode } from '@vyr/engine';
3
- import { DraggableData, DraggableEndType } from '@vyr/declare';
4
- import { Draggable } from "@vyr/runtime";
5
- import { VirtualAsset } from '@vyr/service-rpc';
6
- declare class GraphDraggable extends Draggable<VirtualAsset> {
7
- readonly id: string;
8
- readonly current: Ref<RoutineNode | null, RoutineNode | null>;
9
- constructor(current: Ref<RoutineNode | null>);
10
- starter(dragData: VirtualAsset): boolean;
11
- validator(dragData: DraggableData<VirtualAsset>, targetData: DraggableData): boolean;
12
- finished(dragData: DraggableData<VirtualAsset>, targetData: DraggableData, type: DraggableEndType): void;
13
- }
14
- export { GraphDraggable };
@@ -1 +0,0 @@
1
- export * from './GraphDraggable';
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- raw: string;
3
- uuid: string;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;