@3dsource/metabox-modular-configurator-api 3.0.19-dev.12 → 3.0.19-dev.13
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
|
|
@@ -120,7 +100,7 @@ declare const MetaboxDomain = "metabox.3dsource.com";
|
|
|
120
100
|
*/
|
|
121
101
|
declare const BasicRouteUrl = "metabox-configurator/modular";
|
|
122
102
|
|
|
123
|
-
declare const VERSION = "3.0.19-dev.
|
|
103
|
+
declare const VERSION = "3.0.19-dev.13";
|
|
124
104
|
|
|
125
105
|
/**
|
|
126
106
|
* Configuration options for integrating the Metabox Modular Configurator iframe into a host page.
|
|
@@ -205,7 +185,6 @@ declare const MetaboxModularConfiguratorActions: {
|
|
|
205
185
|
readonly getCallToActionInformation: "getCallToActionInformation";
|
|
206
186
|
readonly getScreenshot: "getScreenshot";
|
|
207
187
|
readonly showEmbeddedMenu: "showEmbeddedMenu";
|
|
208
|
-
readonly forceSetDeviceType: "forceSetDeviceType";
|
|
209
188
|
readonly showOverlayInterface: "showOverlayInterface";
|
|
210
189
|
readonly getCamera: "getCamera";
|
|
211
190
|
readonly setCamera: "setCamera";
|
|
@@ -289,9 +268,6 @@ interface ToMetaboxMessagePayloads {
|
|
|
289
268
|
[MetaboxModularConfiguratorActions.showOverlayInterface]: {
|
|
290
269
|
visible: boolean;
|
|
291
270
|
};
|
|
292
|
-
[MetaboxModularConfiguratorActions.forceSetDeviceType]: {
|
|
293
|
-
deviceType: ApplicationDeviceTypes;
|
|
294
|
-
};
|
|
295
271
|
[MetaboxModularConfiguratorActions.getCamera]: void;
|
|
296
272
|
[MetaboxModularConfiguratorActions.setCamera]: {
|
|
297
273
|
camera: CameraCommandPayload;
|
|
@@ -2120,34 +2096,6 @@ declare class HideMeasurement extends CommandBase {
|
|
|
2120
2096
|
constructor();
|
|
2121
2097
|
}
|
|
2122
2098
|
|
|
2123
|
-
/**
|
|
2124
|
-
* Represents a command to force set the device type.
|
|
2125
|
-
* This class sends a message to the Metabox API to force set the device type.
|
|
2126
|
-
*
|
|
2127
|
-
* ### What does it unlock?
|
|
2128
|
-
* Forces the specification of device type (desktop or mobile) for the MetaBox configurator. Possibly deprecated.
|
|
2129
|
-
*
|
|
2130
|
-
* ### Practical Application
|
|
2131
|
-
* Forces device type override (desktop/tablet/mobile). Likely deprecated — MetaBox auto-detects via ApplicationDeviceTypes.
|
|
2132
|
-
* Only relevant for kiosk or showroom setups where you need to force a specific rendering mode.
|
|
2133
|
-
*
|
|
2134
|
-
* ### AI Coding Best Practices
|
|
2135
|
-
* Avoid unless you have a confirmed kiosk/showroom use case. If needed, set it once during initialization only.
|
|
2136
|
-
* Prefer letting MetaBox handle device detection automatically.
|
|
2137
|
-
*
|
|
2138
|
-
* @example
|
|
2139
|
-
* import { ForceSetDeviceType, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
2140
|
-
*
|
|
2141
|
-
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
2142
|
-
* api.sendCommandToMetabox(new ForceSetDeviceType('desktop'));
|
|
2143
|
-
* };
|
|
2144
|
-
*
|
|
2145
|
-
* @param {ApplicationDeviceTypes} deviceType - The device type to force set.
|
|
2146
|
-
*/
|
|
2147
|
-
declare class ForceSetDeviceType extends CommandBase {
|
|
2148
|
-
constructor(deviceType: ApplicationDeviceTypes);
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
2099
|
/**
|
|
2152
2100
|
* Represents a command to resume the pixel streaming session.
|
|
2153
2101
|
* This class sends a message to the Metabox API to resume a paused or disconnected stream.
|
|
@@ -2173,5 +2121,5 @@ declare class ResumeStream extends CommandBase {
|
|
|
2173
2121
|
constructor();
|
|
2174
2122
|
}
|
|
2175
2123
|
|
|
2176
|
-
export { AppLoaded, AppLoaded_V3, ApplyZoom, BasicRouteUrl, CommandBase, Communicator, EventDispatcher,
|
|
2177
|
-
export type {
|
|
2124
|
+
export { AppLoaded, AppLoaded_V3, ApplyZoom, BasicRouteUrl, CommandBase, Communicator, EventDispatcher, GetCallToActionInformation, GetCamera, GetPdf, GetScreenshot, HideMeasurement, InitShowcase, Metabox, MetaboxConfig, MetaboxDomain, MetaboxHost, MetaboxHost_V3, MetaboxModularConfiguratorActions, Metabox_V3, PauseShowcase, PlayShowcase, ResetCamera, ResumeStream, SetCamera, SetComponent, SetComponentMaterial, SetEnvironment, SetEnvironmentMaterial, ShowEmbeddedMenu, ShowMeasurement, ShowOverlayInterface, StopShowcase, UnrealCommand, VERSION, fromCommunicatorEvent, integrateMetabox, prepareIframeSrc, saveImage };
|
|
2125
|
+
export type { CameraCommandPayload, ComponentWithParent, Cta, EcomConfigurator, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxMessagePayloads, FromMetaboxTarget, InitialModularConfigurator, IntegrateMetaboxConfig, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MetaboxCommandConfig, MetaboxEnvironment, MimeType, ModularConfiguratorComponent, ModularConfiguratorComponentType, ModularConfiguratorConnector, ModularConfiguratorEnvelope, ModularConfiguratorEnvironment, ModularConfiguratorVirtualSocketToConnector, Product, SelectedIds, ShowCaseStatus, Showcase, Slot, Thumbnail, Timecode, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads, ToMetaboxTarget, VideoResolution };
|