@variantic/player 0.0.22 → 0.0.23

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.
@@ -32,6 +32,24 @@ export type TRootData = Partial<{
32
32
  documentation: TDocumentation;
33
33
  }>;
34
34
  export type TRenderDataObjectTag = `subcomponent:${string}`;
35
+ export type TAnimationRenderData = {
36
+ key: string;
37
+ clips: {
38
+ name: string;
39
+ duration: number;
40
+ channels: {
41
+ target: {
42
+ path: 'translation' | 'rotation';
43
+ };
44
+ sampler: {
45
+ start: 'current';
46
+ times: number[];
47
+ easings: string[];
48
+ values: TValue[][];
49
+ };
50
+ }[];
51
+ }[];
52
+ };
35
53
  export type TRenderDataObject = Partial<{
36
54
  controlledVisibility: boolean;
37
55
  inAvailableSpace: boolean;
@@ -61,6 +79,13 @@ export type TRenderDataObject = Partial<{
61
79
  collision: boolean;
62
80
  interact: boolean;
63
81
  occluder: boolean;
82
+ rangefinder: boolean;
83
+ };
84
+ rangefinder: {
85
+ tags: string[];
86
+ axis: Array<'x' | 'y' | 'z'>;
87
+ near: number;
88
+ far: number;
64
89
  };
65
90
  dynamicConfiguration: Record<string, number>;
66
91
  layers: number[];
@@ -86,6 +111,7 @@ export type TRenderDataObject = Partial<{
86
111
  shadow: [boolean, boolean];
87
112
  order: number;
88
113
  };
114
+ animation: TAnimationRenderData;
89
115
  tags: TRenderDataObjectTag[];
90
116
  }>;
91
117
  type TUniqueRenderDataObject = {
@@ -15,7 +15,7 @@ export type TPublicationBlock = {
15
15
  id: string;
16
16
  label: string;
17
17
  events: TEvents;
18
- kind: TBlockNumberRange | TBlockNumberPredefined | TBlockText | TBlockList;
18
+ kind: TBlockNumberRange | TBlockNumberPredefined | TBlockText | TBlockTextInput | TBlockBoolean | TBlockList;
19
19
  };
20
20
  export type TBlockNumberRange = {
21
21
  type: 'number-range';
@@ -36,6 +36,16 @@ export type TBlockText = {
36
36
  type: 'text';
37
37
  value: string;
38
38
  };
39
+ export type TBlockTextInput = {
40
+ type: 'text-input';
41
+ value: string;
42
+ maxLength: number;
43
+ placeholder: string;
44
+ };
45
+ export type TBlockBoolean = {
46
+ type: 'boolean';
47
+ value: boolean;
48
+ };
39
49
  export type TBlockList = {
40
50
  type: 'list';
41
51
  style: TBlockListDropdownStyle | TBlockListButtonsStyle | TBlockListDropdownImageStyle | TBlockListButtonsImageStyle;
@@ -134,6 +134,7 @@ export declare const vasFileSchema: import("@sinclair/typebox").TObject<{
134
134
  settings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
135
135
  general: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
136
136
  assemblyMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"multi-object">, import("@sinclair/typebox").TLiteral<"single-object">]>>;
137
+ editorMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"default">, import("@sinclair/typebox").TLiteral<"assembly">, import("@sinclair/typebox").TNull]>>;
137
138
  }>>;
138
139
  assetsPalette: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
139
140
  nodes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
@@ -192,6 +193,11 @@ export declare const vasFileSchema: import("@sinclair/typebox").TObject<{
192
193
  offsetX: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
193
194
  offsetY: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
194
195
  offsetZ: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
196
+ rangefinder: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
197
+ lineColor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
198
+ textColor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
199
+ textBackgroundColor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
200
+ }>>;
195
201
  }>>;
196
202
  autoSnap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
197
203
  enabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
@@ -309,6 +315,11 @@ export declare const vasFileSchema: import("@sinclair/typebox").TObject<{
309
315
  secondaryColor: import("@sinclair/typebox").TString;
310
316
  }>>;
311
317
  defaultLayoutMode: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"configuration">, import("@sinclair/typebox").TLiteral<"materials">]>>;
318
+ layersButtons: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
319
+ label: import("@sinclair/typebox").TString;
320
+ layers: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TInteger>;
321
+ defaultState: import("@sinclair/typebox").TBoolean;
322
+ }>>>;
312
323
  }>>;
313
324
  }>>;
314
325
  pricingSettings: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
@@ -352,7 +352,7 @@ export type TUnit = {
352
352
  unit: string;
353
353
  label: string;
354
354
  };
355
- export type TParameterTypes = 'number-range' | 'number-predefined' | 'number-constant' | 'text-constant' | 'list-options' | 'list-buttons' | 'list-image-options' | 'list-image-buttons' | 'list-images' | 'button';
355
+ export type TParameterTypes = 'number-range' | 'number-predefined' | 'number-constant' | 'text-constant' | 'text-input' | 'boolean' | 'list-options' | 'list-buttons' | 'list-image-options' | 'list-image-buttons' | 'list-images' | 'button';
356
356
  export type TParameterEvents = {
357
357
  [K in keyof GlobalEventHandlersEventMap]?: (event: GlobalEventHandlersEventMap[K]) => void;
358
358
  };
@@ -436,8 +436,13 @@ export type TParameterListImages = TParameterBase<'list-images', {
436
436
  }>;
437
437
  }>;
438
438
  export type TParameterText = TParameterBase<'text-constant'>;
439
+ export type TParameterTextInput = TParameterBase<'text-input', {
440
+ maxLength: number;
441
+ placeholder: string;
442
+ }>;
443
+ export type TParameterBoolean = TParameterBase<'boolean'>;
439
444
  export type TParameterButton = TParameterBase<'button'>;
440
- export type TParameter = TParameterNumberRange | TParameterNumberPredefined | TParameterNumberConstant | TParameterListOptions | TParameterListButtons | TParameterListImageOptions | TParameterListImageButtons | TParameterListImages | TParameterText | TParameterButton;
445
+ export type TParameter = TParameterNumberRange | TParameterNumberPredefined | TParameterNumberConstant | TParameterListOptions | TParameterListButtons | TParameterListImageOptions | TParameterListImageButtons | TParameterListImages | TParameterText | TParameterTextInput | TParameterBoolean | TParameterButton;
441
446
  export type TCategory = {
442
447
  id: number;
443
448
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@variantic/player",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"