@variantic/player 0.0.11 → 0.0.12

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.
@@ -0,0 +1 @@
1
+ export * from './lib/export-configuration';
@@ -0,0 +1,10 @@
1
+ import { type Static } from '@sinclair/typebox';
2
+ export declare const exportConfigurationSchema: import("@sinclair/typebox").TObject<{
3
+ exports: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
4
+ name: import("@sinclair/typebox").TString;
5
+ bomTemplateId: import("@sinclair/typebox").TNumber;
6
+ bomFilterId: import("@sinclair/typebox").TNumber;
7
+ }>>;
8
+ v: import("@sinclair/typebox").TLiteral<1>;
9
+ }>;
10
+ export type TExportConfigurationFile = Static<typeof exportConfigurationSchema>;
@@ -1,3 +1,4 @@
1
+ import type { TExportConfigurationFile } from "../../../file-types/export-configuration/src";
1
2
  export interface ILibraryApi {
2
3
  /**
3
4
  * Returns the URL for the asset with the given ID for current library version.
@@ -19,4 +20,8 @@ export interface ILibraryApi {
19
20
  * Retrieves the configuration data for current library version.
20
21
  */
21
22
  getConfigurationData(): Promise<unknown>;
23
+ /**
24
+ * Retrieves the export configuration data for current library version.
25
+ */
26
+ getExportConfiguration(): Promise<TExportConfigurationFile>;
22
27
  }
@@ -238,6 +238,7 @@ export type TLayoutSettings = {
238
238
  primaryColor: string;
239
239
  secondaryColor: string;
240
240
  };
241
+ defaultConfigurationMode: 'configuration' | 'materials';
241
242
  };
242
243
  export type TFilterGroupingQuery = {
243
244
  name: string;
@@ -356,22 +357,38 @@ type TListStyleSettings = {
356
357
  export type TParameterListOptions = TParameterBase<'list-options', {
357
358
  defaultValue: string;
358
359
  options: Record<string, string>;
360
+ optionsOrdered: {
361
+ key: string;
362
+ value: string;
363
+ }[];
359
364
  styleSettings?: TListStyleSettings;
360
365
  }>;
361
366
  export type TParameterListButtons = TParameterBase<'list-buttons', {
362
367
  defaultValue: string;
363
368
  options: Record<string, string>;
369
+ optionsOrdered: {
370
+ key: string;
371
+ value: string;
372
+ }[];
364
373
  styleSettings?: TListStyleSettings;
365
374
  }>;
366
375
  export type TParameterListImageOptions = TParameterBase<'list-image-options', {
367
376
  defaultValue: string;
368
377
  options: Record<string, string>;
378
+ optionsOrdered: {
379
+ key: string;
380
+ value: string;
381
+ }[];
369
382
  optionsImages: Record<string, string>;
370
383
  styleSettings?: TListStyleSettings;
371
384
  }>;
372
385
  export type TParameterListImageButtons = TParameterBase<'list-image-buttons', {
373
386
  defaultValue: string;
374
387
  options: Record<string, string>;
388
+ optionsOrdered: {
389
+ key: string;
390
+ value: string;
391
+ }[];
375
392
  optionsImages: Record<string, string>;
376
393
  styleSettings?: TListStyleSettings;
377
394
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@variantic/player",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"