@variantic/player 0.0.16 → 0.0.18

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,8 +1,8 @@
1
- export * from "../../../schemas/web-component/api/player/viewer/src";
2
- export * from "../../../schemas/web-component/api/player/ar/src";
3
- export * from "../../../schemas/web-component/api/player/configuration/src";
4
- export * from "../../../schemas/web-component/api/player/documentation/src";
5
- export * from "../../../schemas/web-component/api/player/integration-connector/src";
6
- export * from "../../../schemas/web-component/api/player/layout/src";
7
- export * from "../../../schemas/web-component/api/player/snapshot/src";
8
- export * from "../../../schemas/web-component/api/player/player/src";
1
+ export * from '@variantic/schemas/web-component-apis/player/viewer';
2
+ export * from '@variantic/schemas/web-component-apis/player/ar';
3
+ export * from '@variantic/schemas/web-component-apis/player/configuration';
4
+ export * from '@variantic/schemas/web-component-apis/player/documentation';
5
+ export * from '@variantic/schemas/web-component-apis/player/integrationConnector';
6
+ export * from '@variantic/schemas/web-component-apis/player/layout';
7
+ export * from '@variantic/schemas/web-component-apis/player/snapshot';
8
+ export * from '@variantic/schemas/web-component-apis/player';
@@ -1,4 +1,4 @@
1
- import type { TExportConfigurationFile } from "../../../file-types/export-configuration/src";
1
+ import type { TExportConfigurationFile } from '@variantic/schemas/file-types/export-configuration';
2
2
  export interface ILibraryApi {
3
3
  /**
4
4
  * Returns the URL for the asset with the given ID for current library version.
@@ -1,5 +1,5 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TWebComponentEvents } from "../../../events/src";
2
+ import type { TWebComponentEvents } from '@variantic/schemas/web-component-apis/player/events';
3
3
  /**
4
4
  * @category Addons API
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TWebComponentEvents } from "../../../events/src";
2
+ import type { TWebComponentEvents } from '@variantic/schemas/web-component-apis/player/events';
3
3
  /**
4
4
  * @category Addons API
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TWebComponentEvents } from "../../../events/src";
2
+ import type { TWebComponentEvents } from '@variantic/schemas/web-component-apis/player/events';
3
3
  export type TPrimitive = bigint | boolean | null | number | string | symbol | undefined;
4
4
  /**
5
5
  * @category Addons API
@@ -1,5 +1,5 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TWebComponentEvents } from "../../../events/src";
2
+ import type { TWebComponentEvents } from '@variantic/schemas/web-component-apis/player/events';
3
3
  /**
4
4
  * @category Addons API
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TWebComponentEvents } from "../../../events/src";
2
+ import type { TWebComponentEvents } from '@variantic/schemas/web-component-apis/player/events';
3
3
  /**
4
4
  * @category Addons API
5
5
  */
@@ -1,13 +1,13 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TViewerApi } from "../../../viewer/src";
3
- import type { TARApi } from "../../../ar/src";
4
- import type { TConfigurationApi } from "../../../configuration/src";
5
- import type { TDocumentationApi } from "../../../documentation/src";
6
- import type { TIntegrationConnectorApi } from "../../../integration-connector/src";
7
- import type { TLayoutApi } from "../../../layout/src";
8
- import type { TSnapshotApi } from "../../../snapshot/src";
9
- import type { TWebComponentEvents } from "../../../events/src";
10
- import type { ILibraryApi } from "../../../../../../library-api/src";
2
+ import type { TViewerApi } from '@variantic/schemas/web-component-apis/player/viewer';
3
+ import type { TARApi } from '@variantic/schemas/web-component-apis/player/ar';
4
+ import type { TConfigurationApi } from '@variantic/schemas/web-component-apis/player/configuration';
5
+ import type { TDocumentationApi } from '@variantic/schemas/web-component-apis/player/documentation';
6
+ import type { TIntegrationConnectorApi } from '@variantic/schemas/web-component-apis/player/integrationConnector';
7
+ import type { TLayoutApi } from '@variantic/schemas/web-component-apis/player/layout';
8
+ import type { TSnapshotApi } from '@variantic/schemas/web-component-apis/player/snapshot';
9
+ import type { TWebComponentEvents } from '@variantic/schemas/web-component-apis/player/events';
10
+ import type { ILibraryApi } from '@variantic/schemas/library-api';
11
11
  /**
12
12
  * @category Addons API
13
13
  */
@@ -1,5 +1,5 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TWebComponentEvents } from "../../../events/src";
2
+ import type { TWebComponentEvents } from '@variantic/schemas/web-component-apis/player/events';
3
3
  /**
4
4
  * @category Addons API
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import type Emittery from 'emittery';
2
- import type { TTimestampEventPayload, TWebComponentEvents, TMouseClickedPayload, TMouseMovedPayload } from "../../../events/src";
2
+ import type { TTimestampEventPayload, TWebComponentEvents, TMouseClickedPayload, TMouseMovedPayload } from '@variantic/schemas/web-component-apis/player/events';
3
3
  /**
4
4
  * @category Addons API
5
5
  */
@@ -158,6 +158,10 @@ export type TViewerApi = {
158
158
  * Toggles dimension visibility based on the state and optional dimension IDs or presets.
159
159
  */
160
160
  toggleDimensions(state: boolean, dimensions?: number[] | 'default' | 'defaultNotControlledByEvent'): void;
161
+ /**
162
+ * Loads preset with given ID and reloads the viewer
163
+ */
164
+ loadPreset(id: string | TPreset): Promise<void>;
161
165
  };
162
166
  export type TViewerApiEvents = TWebComponentEvents<{
163
167
  loaded: TTimestampEventPayload;
@@ -440,4 +444,9 @@ export type TPricingData = {
440
444
  finalPrice: number;
441
445
  sections: TPricingSection[];
442
446
  };
447
+ export type TPreset = {
448
+ id: string;
449
+ name: string;
450
+ configuration: any;
451
+ };
443
452
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@variantic/player",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"