@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.
- package/libs/packages/player/src/index.d.ts +8 -8
- package/libs/schemas/library-api/src/lib/library-api.d.ts +1 -1
- package/libs/schemas/web-component/api/player/ar/src/lib/ar.d.ts +1 -1
- package/libs/schemas/web-component/api/player/configuration/src/lib/configuration.d.ts +1 -1
- package/libs/schemas/web-component/api/player/documentation/src/lib/documentation.d.ts +1 -1
- package/libs/schemas/web-component/api/player/integration-connector/src/lib/integration-connector.d.ts +1 -1
- package/libs/schemas/web-component/api/player/layout/src/lib/layout.d.ts +1 -1
- package/libs/schemas/web-component/api/player/player/src/lib/player.d.ts +9 -9
- package/libs/schemas/web-component/api/player/snapshot/src/lib/snapshot.d.ts +1 -1
- package/libs/schemas/web-component/api/player/viewer/src/lib/viewer.d.ts +10 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
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
|
|
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
|
|
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,13 +1,13 @@
|
|
|
1
1
|
import type Emittery from 'emittery';
|
|
2
|
-
import type { TViewerApi } from
|
|
3
|
-
import type { TARApi } from
|
|
4
|
-
import type { TConfigurationApi } from
|
|
5
|
-
import type { TDocumentationApi } from
|
|
6
|
-
import type { TIntegrationConnectorApi } from
|
|
7
|
-
import type { TLayoutApi } from
|
|
8
|
-
import type { TSnapshotApi } from
|
|
9
|
-
import type { TWebComponentEvents } from
|
|
10
|
-
import type { ILibraryApi } from
|
|
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 { TTimestampEventPayload, TWebComponentEvents, TMouseClickedPayload, TMouseMovedPayload } from
|
|
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 {};
|