@3dsource/metabox-modular-configurator-api 3.0.19-dev.11 → 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
|
|
@@ -57,22 +37,6 @@ declare const Metabox = "metabox";
|
|
|
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
|
*
|
|
@@ -88,7 +52,7 @@ declare const MetaboxData = "metaboxData";
|
|
|
88
52
|
*
|
|
89
53
|
* @internal
|
|
90
54
|
*/
|
|
91
|
-
declare const AppLoaded = "
|
|
55
|
+
declare const AppLoaded = "appLoaded";
|
|
92
56
|
/**
|
|
93
57
|
* Default MetaBox domain for production environments.
|
|
94
58
|
*
|
|
@@ -136,7 +100,7 @@ declare const MetaboxDomain = "metabox.3dsource.com";
|
|
|
136
100
|
*/
|
|
137
101
|
declare const BasicRouteUrl = "metabox-configurator/modular";
|
|
138
102
|
|
|
139
|
-
declare const VERSION = "3.0.19-dev.
|
|
103
|
+
declare const VERSION = "3.0.19-dev.13";
|
|
140
104
|
|
|
141
105
|
/**
|
|
142
106
|
* Configuration options for integrating the Metabox Modular Configurator iframe into a host page.
|
|
@@ -221,7 +185,6 @@ declare const MetaboxModularConfiguratorActions: {
|
|
|
221
185
|
readonly getCallToActionInformation: "getCallToActionInformation";
|
|
222
186
|
readonly getScreenshot: "getScreenshot";
|
|
223
187
|
readonly showEmbeddedMenu: "showEmbeddedMenu";
|
|
224
|
-
readonly forceSetDeviceType: "forceSetDeviceType";
|
|
225
188
|
readonly showOverlayInterface: "showOverlayInterface";
|
|
226
189
|
readonly getCamera: "getCamera";
|
|
227
190
|
readonly setCamera: "setCamera";
|
|
@@ -305,9 +268,6 @@ interface ToMetaboxMessagePayloads {
|
|
|
305
268
|
[MetaboxModularConfiguratorActions.showOverlayInterface]: {
|
|
306
269
|
visible: boolean;
|
|
307
270
|
};
|
|
308
|
-
[MetaboxModularConfiguratorActions.forceSetDeviceType]: {
|
|
309
|
-
deviceType: ApplicationDeviceTypes;
|
|
310
|
-
};
|
|
311
271
|
[MetaboxModularConfiguratorActions.getCamera]: void;
|
|
312
272
|
[MetaboxModularConfiguratorActions.setCamera]: {
|
|
313
273
|
camera: CameraCommandPayload;
|
|
@@ -2136,34 +2096,6 @@ declare class HideMeasurement extends CommandBase {
|
|
|
2136
2096
|
constructor();
|
|
2137
2097
|
}
|
|
2138
2098
|
|
|
2139
|
-
/**
|
|
2140
|
-
* Represents a command to force set the device type.
|
|
2141
|
-
* This class sends a message to the Metabox API to force set the device type.
|
|
2142
|
-
*
|
|
2143
|
-
* ### What does it unlock?
|
|
2144
|
-
* Forces the specification of device type (desktop or mobile) for the MetaBox configurator. Possibly deprecated.
|
|
2145
|
-
*
|
|
2146
|
-
* ### Practical Application
|
|
2147
|
-
* Forces device type override (desktop/tablet/mobile). Likely deprecated — MetaBox auto-detects via ApplicationDeviceTypes.
|
|
2148
|
-
* Only relevant for kiosk or showroom setups where you need to force a specific rendering mode.
|
|
2149
|
-
*
|
|
2150
|
-
* ### AI Coding Best Practices
|
|
2151
|
-
* Avoid unless you have a confirmed kiosk/showroom use case. If needed, set it once during initialization only.
|
|
2152
|
-
* Prefer letting MetaBox handle device detection automatically.
|
|
2153
|
-
*
|
|
2154
|
-
* @example
|
|
2155
|
-
* import { ForceSetDeviceType, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
2156
|
-
*
|
|
2157
|
-
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
2158
|
-
* api.sendCommandToMetabox(new ForceSetDeviceType('desktop'));
|
|
2159
|
-
* };
|
|
2160
|
-
*
|
|
2161
|
-
* @param {ApplicationDeviceTypes} deviceType - The device type to force set.
|
|
2162
|
-
*/
|
|
2163
|
-
declare class ForceSetDeviceType extends CommandBase {
|
|
2164
|
-
constructor(deviceType: ApplicationDeviceTypes);
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
2099
|
/**
|
|
2168
2100
|
* Represents a command to resume the pixel streaming session.
|
|
2169
2101
|
* This class sends a message to the Metabox API to resume a paused or disconnected stream.
|
|
@@ -2189,5 +2121,5 @@ declare class ResumeStream extends CommandBase {
|
|
|
2189
2121
|
constructor();
|
|
2190
2122
|
}
|
|
2191
2123
|
|
|
2192
|
-
export { AppLoaded, AppLoaded_V3, ApplyZoom, BasicRouteUrl, CommandBase, Communicator, EventDispatcher,
|
|
2193
|
-
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 };
|