@3dsource/metabox-front-api 3.0.32-dev.0 → 3.0.33
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 +4 -4
- package/fesm2022/3dsource-metabox-front-api.mjs +495 -1886
- package/fesm2022/3dsource-metabox-front-api.mjs.map +1 -1
- package/llms.txt +32 -0
- package/package.json +1 -1
- package/types/3dsource-metabox-front-api.d.ts +655 -695
package/README.md
CHANGED
|
@@ -351,6 +351,7 @@ interface IntegrateMetaboxConfig {
|
|
|
351
351
|
- Throws if a container element not found
|
|
352
352
|
- Throws if URL is not HTTPS
|
|
353
353
|
- Replaces existing iframe with ID `embeddedContent`
|
|
354
|
+
- 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.
|
|
354
355
|
|
|
355
356
|
**Example:**
|
|
356
357
|
|
|
@@ -545,8 +546,8 @@ api.sendCommandToMetabox(new ResetUserInactivityTimer());
|
|
|
545
546
|
| Command | Parameters | Description | Event Triggered |
|
|
546
547
|
| ---------------------------- | --------------------------------------------------- | -------------------- | ---------------------- |
|
|
547
548
|
| `GetScreenshot` | `mimeType: MimeType, size?: {x: number, y: number}` | Render screenshot | `screenshotReady` |
|
|
548
|
-
| `GetPdf` | None | Generate PDF export |
|
|
549
|
-
| `GetCallToActionInformation` | None | Trigger CTA workflow |
|
|
549
|
+
| `GetPdf` | None | Generate PDF export | Server-side (no event) |
|
|
550
|
+
| `GetCallToActionInformation` | None | Trigger CTA workflow | Backend redirect |
|
|
550
551
|
|
|
551
552
|
**Screenshot Example:**
|
|
552
553
|
|
|
@@ -572,13 +573,12 @@ Event-driven architecture for reactive state management. Register listeners via
|
|
|
572
573
|
| `showcaseStatusChanged` | `ShowCaseStatus` | Animation playback status | Update play/pause button state |
|
|
573
574
|
| `statusMessageChanged` | `string \| null` | Loading/progress message | Display user feedback |
|
|
574
575
|
| `screenshotReady` | `string \| null` | Base64 screenshot data | Download or display image |
|
|
575
|
-
| `pdfStatusChanged` | `PdfStatus` | PDF render status changed | Disable export button, show error |
|
|
576
|
-
| `ctaStatusChanged` | `CtaStatus` | CTA workflow status changed | Disable CTA button, log failure |
|
|
577
576
|
| `getCameraResult` | `CameraCommandPayload` | Current camera data returned | Capture/store current camera |
|
|
578
577
|
| `videoResolutionChanged` | `VideoResolution` | Stream resolution changed | Adjust viewport layout |
|
|
579
578
|
| `videoStatsUpdated` | `VideoStats` | Video stream quality metrics | QoS dashboards, adaptive behavior |
|
|
580
579
|
| `loadingStatusChanged` | `{ percents: number; loaderVisible: boolean }` | Loading progress or overlay changed | Show custom loading progress bar |
|
|
581
580
|
| `userInactivityDetected` | `{ remainingSecondsToDisconnect: number; countdownVisible: boolean }` | AFK countdown started or updated | Show "Stay connected?" prompt |
|
|
581
|
+
| `configuratorNotFound` | `true` | The configurator id does not exist | Show an error instead of waiting |
|
|
582
582
|
|
|
583
583
|
#### Event Examples
|
|
584
584
|
|