@3dsource/metabox-modular-configurator-api 3.0.36-dev.0 → 3.0.37
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.
package/README.md
CHANGED
|
@@ -378,6 +378,7 @@ interface IntegrateMetaboxConfig {
|
|
|
378
378
|
- Throws if a container element not found
|
|
379
379
|
- Throws if URL is not HTTPS
|
|
380
380
|
- Replaces existing iframe with ID `embeddedContent`
|
|
381
|
+
- Grants the iframe `autoplay; fullscreen; encrypted-media`, plus `tools` in browsers with WebMCP, so an in-browser AI agent on your page can use the tools the configurator registers. If you build the iframe yourself, add `tools` to its `allow` attribute for the same effect.
|
|
381
382
|
|
|
382
383
|
**Example:**
|
|
383
384
|
|
|
@@ -839,8 +840,8 @@ api.sendCommandToMetabox(new ResetUserInactivityTimer());
|
|
|
839
840
|
| Command | Parameters | Description | Event Triggered |
|
|
840
841
|
| ---------------------------- | --------------------------------------------------- | -------------------- | ---------------------- |
|
|
841
842
|
| `GetScreenshot` | `mimeType: MimeType, size?: {x: number, y: number}` | Render screenshot | `screenshotReady` |
|
|
842
|
-
| `GetPdf` | None | Generate PDF export |
|
|
843
|
-
| `GetCallToActionInformation` | None | Trigger CTA workflow |
|
|
843
|
+
| `GetPdf` | None | Generate PDF export | Server-side (no event) |
|
|
844
|
+
| `GetCallToActionInformation` | None | Trigger CTA workflow | Backend redirect |
|
|
844
845
|
|
|
845
846
|
##### `saveImage()`
|
|
846
847
|
|
|
@@ -881,13 +882,12 @@ Event-driven architecture for reactive state management. Register listeners via
|
|
|
881
882
|
| `showcaseStatusChanged` | `ShowCaseStatus` | Animation playback status | Update play/pause button state |
|
|
882
883
|
| `statusMessageChanged` | `string \| null` | Loading/progress message | Display user feedback |
|
|
883
884
|
| `screenshotReady` | `string \| null` | Base64 screenshot data | Download or display image |
|
|
884
|
-
| `pdfStatusChanged` | `PdfStatus` | PDF render status changed | Disable export button, show error |
|
|
885
|
-
| `ctaStatusChanged` | `CtaStatus` | CTA workflow status changed | Disable CTA button, log failure |
|
|
886
885
|
| `getCameraResult` | `CameraCommandPayload` | Current camera data returned | Capture/store current camera |
|
|
887
886
|
| `videoResolutionChanged` | `{width: number\|null, height: number\|null}` | Stream resolution changed | Adjust viewport layout |
|
|
888
887
|
| `videoStatsUpdated` | `VideoStats` | Video stream quality metrics | QoS dashboards, adaptive behavior |
|
|
889
888
|
| `loadingStatusChanged` | `{ percents: number; loaderVisible: boolean }` | Loading progress or overlay changed | Show custom loading progress bar |
|
|
890
889
|
| `userInactivityDetected` | `{ remainingSecondsToDisconnect: number; countdownVisible: boolean }` | AFK countdown started or updated | Show "Stay connected?" prompt |
|
|
890
|
+
| `configuratorNotFound` | `true` | The configurator id does not exist | Show an error instead of waiting |
|
|
891
891
|
|
|
892
892
|
#### Event Examples
|
|
893
893
|
|