@3dsource/metabox-front-api 3.0.16-dev.7 → 3.0.16-dev.8
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,25 +1,5 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Device type identifiers used by {@link ForceSetDeviceType} to override the auto-detected device.
|
|
5
|
-
*
|
|
6
|
-
* - `'deviceTypeAuto'` — let the configurator detect the device automatically.
|
|
7
|
-
* - `'deviceTypeMobile'` — force mobile layout and controls.
|
|
8
|
-
* - `'deviceTypeDesktop'` — force desktop layout and controls.
|
|
9
|
-
*
|
|
10
|
-
* ### What does it unlock?
|
|
11
|
-
* Type alias defining available application device types (desktop, mobile, etc.). Specifies supported device targets.
|
|
12
|
-
*
|
|
13
|
-
* ### Practical Application
|
|
14
|
-
* Used by MetaBox for responsive rendering behavior. Typically auto-detected — only override with
|
|
15
|
-
* ForceSetDeviceType for specific kiosk or showroom setups.
|
|
16
|
-
*
|
|
17
|
-
* ### AI Coding Best Practices
|
|
18
|
-
* Prefer auto-detection. Use standard browser APIs for your own responsive logic. Only reference this type
|
|
19
|
-
* if you need to force a device mode via ForceSetDeviceType, which is likely deprecated.
|
|
20
|
-
*/
|
|
21
|
-
type ApplicationDeviceTypes = 'deviceTypeAuto' | 'deviceTypeMobile' | 'deviceTypeDesktop';
|
|
22
|
-
|
|
23
3
|
/**
|
|
24
4
|
* @internal
|
|
25
5
|
* @hidden
|
|
@@ -119,7 +99,7 @@ declare const MetaboxDomain = "metabox.3dsource.com";
|
|
|
119
99
|
*/
|
|
120
100
|
declare const BasicRouteUrl = "metabox-configurator/basic";
|
|
121
101
|
|
|
122
|
-
declare const VERSION = "3.0.16-dev.
|
|
102
|
+
declare const VERSION = "3.0.16-dev.8";
|
|
123
103
|
|
|
124
104
|
/**
|
|
125
105
|
* Configuration options for integrating the Metabox Basic Configurator iframe into a host page.
|
|
@@ -204,7 +184,6 @@ declare const MetaboxBasicConfiguratorActions: {
|
|
|
204
184
|
readonly getCallToActionInformation: "getCallToActionInformation";
|
|
205
185
|
readonly getScreenshot: "getScreenshot";
|
|
206
186
|
readonly showEmbeddedMenu: "showEmbeddedMenu";
|
|
207
|
-
readonly forceSetDeviceType: "forceSetDeviceType";
|
|
208
187
|
readonly showOverlayInterface: "showOverlayInterface";
|
|
209
188
|
readonly getCamera: "getCamera";
|
|
210
189
|
readonly setCamera: "setCamera";
|
|
@@ -286,9 +265,6 @@ interface ToMetaboxMessagePayloads {
|
|
|
286
265
|
[MetaboxBasicConfiguratorActions.showOverlayInterface]: {
|
|
287
266
|
visible: boolean;
|
|
288
267
|
};
|
|
289
|
-
[MetaboxBasicConfiguratorActions.forceSetDeviceType]: {
|
|
290
|
-
deviceType: ApplicationDeviceTypes;
|
|
291
|
-
};
|
|
292
268
|
[MetaboxBasicConfiguratorActions.getCamera]: void;
|
|
293
269
|
[MetaboxBasicConfiguratorActions.setCamera]: {
|
|
294
270
|
camera: CameraCommandPayload;
|
|
@@ -2017,34 +1993,6 @@ declare class HideMeasurement extends CommandBase {
|
|
|
2017
1993
|
constructor();
|
|
2018
1994
|
}
|
|
2019
1995
|
|
|
2020
|
-
/**
|
|
2021
|
-
* Represents a command to force set the device type.
|
|
2022
|
-
* This class sends a message to the Metabox API to force set the device type.
|
|
2023
|
-
*
|
|
2024
|
-
* ### What does it unlock?
|
|
2025
|
-
* Forces the specification of device type (desktop or mobile) for the MetaBox configurator. Possibly deprecated.
|
|
2026
|
-
*
|
|
2027
|
-
* ### Practical Application
|
|
2028
|
-
* Forces device type override (desktop/tablet/mobile). Likely deprecated — MetaBox auto-detects via ApplicationDeviceTypes.
|
|
2029
|
-
* Only relevant for kiosk or showroom setups where you need to force a specific rendering mode.
|
|
2030
|
-
*
|
|
2031
|
-
* ### AI Coding Best Practices
|
|
2032
|
-
* Avoid unless you have a confirmed kiosk/showroom use case. If needed, set it once during initialization only.
|
|
2033
|
-
* Prefer letting MetaBox handle device detection automatically.
|
|
2034
|
-
*
|
|
2035
|
-
* @example
|
|
2036
|
-
* import { ForceSetDeviceType, Communicator } from '@3dsource/metabox-front-api';
|
|
2037
|
-
*
|
|
2038
|
-
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
2039
|
-
* api.sendCommandToMetabox(new ForceSetDeviceType('desktop'));
|
|
2040
|
-
* };
|
|
2041
|
-
*
|
|
2042
|
-
* @param {ApplicationDeviceTypes} deviceType - The device type to force set.
|
|
2043
|
-
*/
|
|
2044
|
-
declare class ForceSetDeviceType extends CommandBase {
|
|
2045
|
-
constructor(deviceType: ApplicationDeviceTypes);
|
|
2046
|
-
}
|
|
2047
|
-
|
|
2048
1996
|
/**
|
|
2049
1997
|
* Represents a command to resume the pixel streaming session.
|
|
2050
1998
|
* This class sends a message to the Metabox API to resume a paused or disconnected stream.
|
|
@@ -2070,5 +2018,5 @@ declare class ResumeStream extends CommandBase {
|
|
|
2070
2018
|
constructor();
|
|
2071
2019
|
}
|
|
2072
2020
|
|
|
2073
|
-
export { AppLoaded, AppLoaded_V3, ApplyZoom, BasicRouteUrl, CommandBase, Communicator, EventDispatcher,
|
|
2074
|
-
export type {
|
|
2021
|
+
export { AppLoaded, AppLoaded_V3, ApplyZoom, BasicRouteUrl, CommandBase, Communicator, EventDispatcher, GetCallToActionInformation, GetCamera, GetPdf, GetScreenshot, HideMeasurement, InitShowcase, Metabox, MetaboxBasicConfiguratorActions, MetaboxConfig, MetaboxDomain, MetaboxHost, MetaboxHost_V3, Metabox_V3, PauseShowcase, PlayShowcase, ResetCamera, ResumeStream, SetCamera, SetEnvironment, SetEnvironmentMaterial, SetProduct, SetProductMaterial, ShowEmbeddedMenu, ShowMeasurement, ShowOverlayInterface, StopShowcase, UnrealCommand, VERSION, fromCommunicatorEvent, getUrlParams, integrateMetabox, prepareIframeSrc, saveImage, setUrlParams };
|
|
2022
|
+
export type { CameraCommandPayload, ConfiguratorEnvelope, Cta, EcomConfigurator, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxMessagePayloads, FromMetaboxTarget, IntegrateMetaboxConfig, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MetaboxCommandConfig, MetaboxEnvironment, MimeType, Product, SelectedIds, ShowCaseStatus, Showcase, Slot, Thumbnail, Timecode, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads, ToMetaboxTarget, UniversalConfigurator, UniversalConfiguratorEnvironment, UniversalConfiguratorProduct, VideoResolution };
|