@3dsource/metabox-front-api 3.0.16-dev.6 → 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
|
|
@@ -57,22 +37,6 @@ declare const Metabox = "metabox_v3";
|
|
|
57
37
|
* @internal
|
|
58
38
|
*/
|
|
59
39
|
declare const MetaboxHost = "metaboxHost";
|
|
60
|
-
/**
|
|
61
|
-
* Identifier used as the `host` field in postMessage envelopes received from the iframe.
|
|
62
|
-
*
|
|
63
|
-
* ### What does it unlock?
|
|
64
|
-
* Constant identifier used internally to reference and compare MetaBox data. Used for data validation and internal routing.
|
|
65
|
-
*
|
|
66
|
-
* ### Practical Application
|
|
67
|
-
* Internal data reference constant used for validation and message routing within the communication layer.
|
|
68
|
-
* Not needed in front-end application code.
|
|
69
|
-
*
|
|
70
|
-
* ### AI Coding Best Practices
|
|
71
|
-
* Skip in application code. Only relevant if debugging very low-level message traffic between your app and the MetaBox iframe.
|
|
72
|
-
*
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
declare const MetaboxData = "metaboxData";
|
|
76
40
|
/**
|
|
77
41
|
* Action string dispatched by the iframe when the configurator app has loaded.
|
|
78
42
|
*
|
|
@@ -135,7 +99,7 @@ declare const MetaboxDomain = "metabox.3dsource.com";
|
|
|
135
99
|
*/
|
|
136
100
|
declare const BasicRouteUrl = "metabox-configurator/basic";
|
|
137
101
|
|
|
138
|
-
declare const VERSION = "3.0.16-dev.
|
|
102
|
+
declare const VERSION = "3.0.16-dev.8";
|
|
139
103
|
|
|
140
104
|
/**
|
|
141
105
|
* Configuration options for integrating the Metabox Basic Configurator iframe into a host page.
|
|
@@ -220,7 +184,6 @@ declare const MetaboxBasicConfiguratorActions: {
|
|
|
220
184
|
readonly getCallToActionInformation: "getCallToActionInformation";
|
|
221
185
|
readonly getScreenshot: "getScreenshot";
|
|
222
186
|
readonly showEmbeddedMenu: "showEmbeddedMenu";
|
|
223
|
-
readonly forceSetDeviceType: "forceSetDeviceType";
|
|
224
187
|
readonly showOverlayInterface: "showOverlayInterface";
|
|
225
188
|
readonly getCamera: "getCamera";
|
|
226
189
|
readonly setCamera: "setCamera";
|
|
@@ -302,9 +265,6 @@ interface ToMetaboxMessagePayloads {
|
|
|
302
265
|
[MetaboxBasicConfiguratorActions.showOverlayInterface]: {
|
|
303
266
|
visible: boolean;
|
|
304
267
|
};
|
|
305
|
-
[MetaboxBasicConfiguratorActions.forceSetDeviceType]: {
|
|
306
|
-
deviceType: ApplicationDeviceTypes;
|
|
307
|
-
};
|
|
308
268
|
[MetaboxBasicConfiguratorActions.getCamera]: void;
|
|
309
269
|
[MetaboxBasicConfiguratorActions.setCamera]: {
|
|
310
270
|
camera: CameraCommandPayload;
|
|
@@ -2033,34 +1993,6 @@ declare class HideMeasurement extends CommandBase {
|
|
|
2033
1993
|
constructor();
|
|
2034
1994
|
}
|
|
2035
1995
|
|
|
2036
|
-
/**
|
|
2037
|
-
* Represents a command to force set the device type.
|
|
2038
|
-
* This class sends a message to the Metabox API to force set the device type.
|
|
2039
|
-
*
|
|
2040
|
-
* ### What does it unlock?
|
|
2041
|
-
* Forces the specification of device type (desktop or mobile) for the MetaBox configurator. Possibly deprecated.
|
|
2042
|
-
*
|
|
2043
|
-
* ### Practical Application
|
|
2044
|
-
* Forces device type override (desktop/tablet/mobile). Likely deprecated — MetaBox auto-detects via ApplicationDeviceTypes.
|
|
2045
|
-
* Only relevant for kiosk or showroom setups where you need to force a specific rendering mode.
|
|
2046
|
-
*
|
|
2047
|
-
* ### AI Coding Best Practices
|
|
2048
|
-
* Avoid unless you have a confirmed kiosk/showroom use case. If needed, set it once during initialization only.
|
|
2049
|
-
* Prefer letting MetaBox handle device detection automatically.
|
|
2050
|
-
*
|
|
2051
|
-
* @example
|
|
2052
|
-
* import { ForceSetDeviceType, Communicator } from '@3dsource/metabox-front-api';
|
|
2053
|
-
*
|
|
2054
|
-
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
2055
|
-
* api.sendCommandToMetabox(new ForceSetDeviceType('desktop'));
|
|
2056
|
-
* };
|
|
2057
|
-
*
|
|
2058
|
-
* @param {ApplicationDeviceTypes} deviceType - The device type to force set.
|
|
2059
|
-
*/
|
|
2060
|
-
declare class ForceSetDeviceType extends CommandBase {
|
|
2061
|
-
constructor(deviceType: ApplicationDeviceTypes);
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
1996
|
/**
|
|
2065
1997
|
* Represents a command to resume the pixel streaming session.
|
|
2066
1998
|
* This class sends a message to the Metabox API to resume a paused or disconnected stream.
|
|
@@ -2086,5 +2018,5 @@ declare class ResumeStream extends CommandBase {
|
|
|
2086
2018
|
constructor();
|
|
2087
2019
|
}
|
|
2088
2020
|
|
|
2089
|
-
export { AppLoaded, AppLoaded_V3, ApplyZoom, BasicRouteUrl, CommandBase, Communicator, EventDispatcher,
|
|
2090
|
-
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 };
|