@variantic/player 0.0.17 → 0.0.19

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
  */
@@ -21,6 +21,7 @@ export type TConfigurationApiEvents = TWebComponentEvents<{
21
21
  export type TConfigurationUrl = {
22
22
  id: string;
23
23
  url: string;
24
+ dataUrl: string;
24
25
  configuration: TConfigurationContent;
25
26
  };
26
27
  export type TConfigurationContent = Record<string, unknown>;
@@ -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
  */
@@ -18,6 +18,7 @@ export type TPlayerApi = {
18
18
  * Returns the current site identifier as a string.
19
19
  */
20
20
  getSiteId: () => string;
21
+ isDevelopmentMode: () => boolean;
21
22
  /**
22
23
  * Returns the current library version as a string.
23
24
  */
@@ -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
  */
@@ -448,5 +448,6 @@ export type TPreset = {
448
448
  id: string;
449
449
  name: string;
450
450
  configuration: any;
451
+ ignore?: string[];
451
452
  };
452
453
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@variantic/player",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"