@shapediver/sdk.platform-api-sdk-v1
Advanced tools
Comparing version 2.18.8 to 2.18.9
@@ -86,6 +86,9 @@ import { ResourcesApi } from "./commons/ResourcesApi"; | ||
* @param slug - the model slug. | ||
* @param parameters - optional parameters | ||
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseIFrameData} as data. | ||
*/ | ||
iframeEmbedding(slug: string): Promise<SdPlatformPostResponse<SdPlatformResponseIFrameData>>; | ||
iframeEmbedding(slug: string, parameters?: { | ||
saved_states?: boolean; | ||
}): Promise<SdPlatformPostResponse<SdPlatformResponseIFrameData>>; | ||
} | ||
//# sourceMappingURL=SdPlatformModelApi.d.ts.map |
@@ -105,5 +105,6 @@ "use strict"; | ||
* @param slug - the model slug. | ||
* @param parameters - optional parameters | ||
* @returns the {@link SdPlatformPostResponse} with {@link SdPlatformResponseIFrameData} as data. | ||
*/ | ||
iframeEmbedding(slug) { | ||
iframeEmbedding(slug, parameters = {}) { | ||
const is_iframe = parent !== window; | ||
@@ -113,3 +114,3 @@ const origin = is_iframe | ||
: window.location.origin; | ||
return super.__action(SdPlatformRequestId_1.RequestId.ModelIframeData, ResourcesApi_1.Action.Post, `iframe/${slug}`, {}, { | ||
return super.__action(SdPlatformRequestId_1.RequestId.ModelIframeData, ResourcesApi_1.Action.Post, `iframe/${slug}`, parameters, { | ||
"X-ShapeDiver-Origin": origin | ||
@@ -116,0 +117,0 @@ }); |
{ | ||
"name": "@shapediver/sdk.platform-api-sdk-v1", | ||
"version": "2.18.8", | ||
"version": "2.18.9", | ||
"description": "SDK to communicate with the Platform API version 1", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@shapediver/api.platform-api-dto-v1": "~2.18.8", | ||
"@shapediver/api.platform-api-dto-v1": "~2.18.9", | ||
"@shapediver/api.geometry-api-dto-v2": "~1.11.0", | ||
@@ -44,0 +44,0 @@ "axios": "^0.26.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
373118
5526