@roomle/embedding-lib 4.43.0-debug.1 → 4.44.0
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/.releaserc.json +1 -1
- package/docs/api/.nojekyll +1 -0
- package/docs/api/README.md +9 -0
- package/docs/api/classes/exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md +47 -0
- package/docs/api/classes/exposed_api.ExposedApi.md +255 -0
- package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +195 -0
- package/docs/api/classes/roomle_configurator_api.default.md +211 -0
- package/docs/api/enums/types.UI_BUTTON.md +263 -0
- package/docs/api/interfaces/exposed_callbacks.Labels.md +32 -0
- package/docs/api/interfaces/exposed_callbacks.Price.md +32 -0
- package/docs/api/interfaces/roomle_configurator_api.RoomleEmbeddingApiKeys.md +58 -0
- package/docs/api/interfaces/types.ConfiguratorSettings.md +150 -0
- package/docs/api/interfaces/types.EmbeddingSkin.md +65 -0
- package/docs/api/interfaces/types.UiInitData.md +1199 -0
- package/docs/api/interfaces/types.VariantsMap.md +9 -0
- package/docs/api/modules/exposed_analytics_callbacks.md +9 -0
- package/docs/api/modules/exposed_api.md +9 -0
- package/docs/api/modules/exposed_callbacks.md +14 -0
- package/docs/api/modules/roomle_configurator_api.md +49 -0
- package/docs/api/modules/types.md +16 -0
- package/docs/api/modules.md +13 -0
- package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +9 -119
- package/package.json +28 -1
- package/types/index.d.ts +8 -4
- package/types/src/common/store/index.d.ts +1 -1
- package/types/src/configurator/components/utils/-utils/SceneOffsetResizer.d.ts +1 -1
- package/types/src/planner/store/planner-ui-state.d.ts +7 -3
- package/types/tests/helpers/data/wall-dimensions.d.ts +41 -0
- package/types/tests/integration/planner/components/ShowWallMeasurements.spec.d.ts +1 -0
- package/types/tests/integration/planner/components/utils/InteractionHeader.spec.d.ts +1 -0
package/.releaserc.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Embedding API Reference / [Modules](modules.md)
|
|
2
|
+
|
|
3
|
+
# Overview
|
|
4
|
+
|
|
5
|
+
The Embedding API reference does not contain every file/class used, but the interfaces used to communicate with the modules.
|
|
6
|
+
|
|
7
|
+
## Init Data / Settings
|
|
8
|
+
|
|
9
|
+
You can find all possible settings (init data) for the Embedding API in the [UiInitData](interfaces/types.UiInitData.md)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[Embedding API Reference](../README.md) / [Modules](../modules.md) / [exposed-analytics-callbacks](../modules/exposed_analytics_callbacks.md) / ExposedAnalyticsCallbacks
|
|
2
|
+
|
|
3
|
+
# Class: ExposedAnalyticsCallbacks
|
|
4
|
+
|
|
5
|
+
[exposed-analytics-callbacks](../modules/exposed_analytics_callbacks.md).ExposedAnalyticsCallbacks
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Methods
|
|
14
|
+
|
|
15
|
+
- [onGATracking](exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md#ongatracking)
|
|
16
|
+
|
|
17
|
+
## Constructors
|
|
18
|
+
|
|
19
|
+
### constructor
|
|
20
|
+
|
|
21
|
+
• **new ExposedAnalyticsCallbacks**()
|
|
22
|
+
|
|
23
|
+
## Methods
|
|
24
|
+
|
|
25
|
+
### onGATracking
|
|
26
|
+
|
|
27
|
+
▸ **onGATracking**(...`_args`): `void`
|
|
28
|
+
|
|
29
|
+
Is called whenever something is sent to google analytics
|
|
30
|
+
Possible parameters are everything which is possible in gtag.js
|
|
31
|
+
If you need further details about gtag.js: https://developers.google.com/gtagjs
|
|
32
|
+
Currently we use Google Analytics in combination with gtag.js so
|
|
33
|
+
you can intercept events and send them to your own analytics tool
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
| Name | Type |
|
|
38
|
+
| :------ | :------ |
|
|
39
|
+
| `..._args` | `any`[] |
|
|
40
|
+
|
|
41
|
+
#### Returns
|
|
42
|
+
|
|
43
|
+
`void`
|
|
44
|
+
|
|
45
|
+
#### Defined in
|
|
46
|
+
|
|
47
|
+
[src/configurator/embedding/exposed-analytics-callbacks.ts:9](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-analytics-callbacks.ts#L9)
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
[Embedding API Reference](../README.md) / [Modules](../modules.md) / [exposed-api](../modules/exposed_api.md) / ExposedApi
|
|
2
|
+
|
|
3
|
+
# Class: ExposedApi
|
|
4
|
+
|
|
5
|
+
[exposed-api](../modules/exposed_api.md).ExposedApi
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](exposed_api.ExposedApi.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Accessors
|
|
14
|
+
|
|
15
|
+
- [callbacks](exposed_api.ExposedApi.md#callbacks)
|
|
16
|
+
|
|
17
|
+
### Methods
|
|
18
|
+
|
|
19
|
+
- [giveGaConsent](exposed_api.ExposedApi.md#givegaconsent)
|
|
20
|
+
- [insertObject](exposed_api.ExposedApi.md#insertobject)
|
|
21
|
+
- [loadConfigurationString](exposed_api.ExposedApi.md#loadconfigurationstring)
|
|
22
|
+
- [loadObject](exposed_api.ExposedApi.md#loadobject)
|
|
23
|
+
- [pauseConfiguring](exposed_api.ExposedApi.md#pauseconfiguring)
|
|
24
|
+
- [setPrice](exposed_api.ExposedApi.md#setprice)
|
|
25
|
+
- [startConfiguring](exposed_api.ExposedApi.md#startconfiguring)
|
|
26
|
+
- [triggerRequestPlan](exposed_api.ExposedApi.md#triggerrequestplan)
|
|
27
|
+
- [triggerRequestProduct](exposed_api.ExposedApi.md#triggerrequestproduct)
|
|
28
|
+
|
|
29
|
+
## Constructors
|
|
30
|
+
|
|
31
|
+
### constructor
|
|
32
|
+
|
|
33
|
+
• **new ExposedApi**(`sdkConnector`, `messageHandler`, `sdk`, `exposedCallbacks`, `store`, `analytics`, `globalCallback`)
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
| Name | Type |
|
|
38
|
+
| :------ | :------ |
|
|
39
|
+
| `sdkConnector` | `SdkConnector` |
|
|
40
|
+
| `messageHandler` | null \| `MessageHandler` |
|
|
41
|
+
| `sdk` | `default` \| `default` \| `default` |
|
|
42
|
+
| `exposedCallbacks` | [`ExposedCallbacks`](exposed_callbacks.ExposedCallbacks.md) |
|
|
43
|
+
| `store` | `Store`<`StoreState`\> |
|
|
44
|
+
| `analytics` | `Analytics` |
|
|
45
|
+
| `globalCallback` | `GlobalCallback` |
|
|
46
|
+
|
|
47
|
+
#### Defined in
|
|
48
|
+
|
|
49
|
+
[src/configurator/embedding/exposed-api.ts:30](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L30)
|
|
50
|
+
|
|
51
|
+
## Accessors
|
|
52
|
+
|
|
53
|
+
### callbacks
|
|
54
|
+
|
|
55
|
+
• `get` **callbacks**(): [`ExposedCallbacks`](exposed_callbacks.ExposedCallbacks.md)
|
|
56
|
+
|
|
57
|
+
#### Returns
|
|
58
|
+
|
|
59
|
+
[`ExposedCallbacks`](exposed_callbacks.ExposedCallbacks.md)
|
|
60
|
+
|
|
61
|
+
#### Defined in
|
|
62
|
+
|
|
63
|
+
[src/configurator/embedding/exposed-api.ts:127](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L127)
|
|
64
|
+
|
|
65
|
+
## Methods
|
|
66
|
+
|
|
67
|
+
### giveGaConsent
|
|
68
|
+
|
|
69
|
+
▸ **giveGaConsent**(): `void`
|
|
70
|
+
|
|
71
|
+
call this method if consent of Google Analytics is given later and not already in init-data on boot
|
|
72
|
+
|
|
73
|
+
#### Returns
|
|
74
|
+
|
|
75
|
+
`void`
|
|
76
|
+
|
|
77
|
+
#### Defined in
|
|
78
|
+
|
|
79
|
+
[src/configurator/embedding/exposed-api.ts:216](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L216)
|
|
80
|
+
|
|
81
|
+
___
|
|
82
|
+
|
|
83
|
+
### insertObject
|
|
84
|
+
|
|
85
|
+
▸ **insertObject**(`id`, `position?`, `rotation?`): `Promise`<`void`\>
|
|
86
|
+
|
|
87
|
+
Insert an object into the current MOC/planner scene
|
|
88
|
+
If no position or rotation is set then it will be placed automatically (without overlapping other objects) with rotation 0
|
|
89
|
+
|
|
90
|
+
#### Parameters
|
|
91
|
+
|
|
92
|
+
| Name | Type | Description |
|
|
93
|
+
| :------ | :------ | :------ |
|
|
94
|
+
| `id` | `string` | |
|
|
95
|
+
| `position?` | `Position3` | as x (left/right), y (up/down) and z (front/back) |
|
|
96
|
+
| `rotation?` | `number` | in radians |
|
|
97
|
+
|
|
98
|
+
#### Returns
|
|
99
|
+
|
|
100
|
+
`Promise`<`void`\>
|
|
101
|
+
|
|
102
|
+
#### Defined in
|
|
103
|
+
|
|
104
|
+
[src/configurator/embedding/exposed-api.ts:231](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L231)
|
|
105
|
+
|
|
106
|
+
___
|
|
107
|
+
|
|
108
|
+
### loadConfigurationString
|
|
109
|
+
|
|
110
|
+
▸ **loadConfigurationString**(`configurationString`): `Promise`<`Nullable`<`LoadResponse`\>\>
|
|
111
|
+
|
|
112
|
+
call this method to load the configuration string you want into the 3d Scene
|
|
113
|
+
|
|
114
|
+
#### Parameters
|
|
115
|
+
|
|
116
|
+
| Name | Type | Description |
|
|
117
|
+
| :------ | :------ | :------ |
|
|
118
|
+
| `configurationString` | `string` | string of the configuration, starts with `{` and ends with `}` |
|
|
119
|
+
|
|
120
|
+
#### Returns
|
|
121
|
+
|
|
122
|
+
`Promise`<`Nullable`<`LoadResponse`\>\>
|
|
123
|
+
|
|
124
|
+
null if configuration can not be loaded
|
|
125
|
+
|
|
126
|
+
#### Defined in
|
|
127
|
+
|
|
128
|
+
[src/configurator/embedding/exposed-api.ts:147](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L147)
|
|
129
|
+
|
|
130
|
+
___
|
|
131
|
+
|
|
132
|
+
### loadObject
|
|
133
|
+
|
|
134
|
+
▸ **loadObject**(`id`): `Promise`<`Nullable`<`LoadResponse`\>\>
|
|
135
|
+
|
|
136
|
+
call this method to load the object you want into the 3d Scene
|
|
137
|
+
|
|
138
|
+
#### Parameters
|
|
139
|
+
|
|
140
|
+
| Name | Type | Description |
|
|
141
|
+
| :------ | :------ | :------ |
|
|
142
|
+
| `id` | `string` | database ID of the object you want to load |
|
|
143
|
+
|
|
144
|
+
#### Returns
|
|
145
|
+
|
|
146
|
+
`Promise`<`Nullable`<`LoadResponse`\>\>
|
|
147
|
+
|
|
148
|
+
#### Defined in
|
|
149
|
+
|
|
150
|
+
[src/configurator/embedding/exposed-api.ts:135](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L135)
|
|
151
|
+
|
|
152
|
+
___
|
|
153
|
+
|
|
154
|
+
### pauseConfiguring
|
|
155
|
+
|
|
156
|
+
▸ **pauseConfiguring**(): `void`
|
|
157
|
+
|
|
158
|
+
This method can be used to pause configuration
|
|
159
|
+
If the configurator was called in view-only mode
|
|
160
|
+
this method triggers the onBackToWebsite callback.
|
|
161
|
+
To know when the view-only mode is activated see the
|
|
162
|
+
description of the startConfiguring method
|
|
163
|
+
|
|
164
|
+
#### Returns
|
|
165
|
+
|
|
166
|
+
`void`
|
|
167
|
+
|
|
168
|
+
#### Defined in
|
|
169
|
+
|
|
170
|
+
[src/configurator/embedding/exposed-api.ts:184](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L184)
|
|
171
|
+
|
|
172
|
+
___
|
|
173
|
+
|
|
174
|
+
### setPrice
|
|
175
|
+
|
|
176
|
+
▸ **setPrice**(`currencySymbol`, `price`): `void`
|
|
177
|
+
|
|
178
|
+
set the price for the UI to show
|
|
179
|
+
most likely needed when implementing your own price service
|
|
180
|
+
|
|
181
|
+
#### Parameters
|
|
182
|
+
|
|
183
|
+
| Name | Type |
|
|
184
|
+
| :------ | :------ |
|
|
185
|
+
| `currencySymbol` | `string` |
|
|
186
|
+
| `price` | `number` |
|
|
187
|
+
|
|
188
|
+
#### Returns
|
|
189
|
+
|
|
190
|
+
`void`
|
|
191
|
+
|
|
192
|
+
#### Defined in
|
|
193
|
+
|
|
194
|
+
[src/configurator/embedding/exposed-api.ts:161](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L161)
|
|
195
|
+
|
|
196
|
+
___
|
|
197
|
+
|
|
198
|
+
### startConfiguring
|
|
199
|
+
|
|
200
|
+
▸ **startConfiguring**(): `void`
|
|
201
|
+
|
|
202
|
+
This method can be used to start configuration when
|
|
203
|
+
3d scene is only initialized as viewer first, the
|
|
204
|
+
configurator is automatically instantiated as viewer
|
|
205
|
+
if the container where the configurator is placed is
|
|
206
|
+
smaller than 1024px (this breakpoint could change in future)
|
|
207
|
+
so do not rely on this exact pixel setting
|
|
208
|
+
|
|
209
|
+
#### Returns
|
|
210
|
+
|
|
211
|
+
`void`
|
|
212
|
+
|
|
213
|
+
#### Defined in
|
|
214
|
+
|
|
215
|
+
[src/configurator/embedding/exposed-api.ts:173](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L173)
|
|
216
|
+
|
|
217
|
+
___
|
|
218
|
+
|
|
219
|
+
### triggerRequestPlan
|
|
220
|
+
|
|
221
|
+
▸ **triggerRequestPlan**(): `Promise`<`void`\>
|
|
222
|
+
|
|
223
|
+
call this method to trigger the onRequestPlan event from
|
|
224
|
+
outside of the iframe. When this method is called the same
|
|
225
|
+
process is kicked off as if the user would have clicked on
|
|
226
|
+
request plan. Therefore you can just use the same callback
|
|
227
|
+
to react on the response
|
|
228
|
+
|
|
229
|
+
#### Returns
|
|
230
|
+
|
|
231
|
+
`Promise`<`void`\>
|
|
232
|
+
|
|
233
|
+
#### Defined in
|
|
234
|
+
|
|
235
|
+
[src/configurator/embedding/exposed-api.ts:209](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L209)
|
|
236
|
+
|
|
237
|
+
___
|
|
238
|
+
|
|
239
|
+
### triggerRequestProduct
|
|
240
|
+
|
|
241
|
+
▸ **triggerRequestProduct**(): `Promise`<`void`\>
|
|
242
|
+
|
|
243
|
+
call this method to trigger the onRequestProduct event from
|
|
244
|
+
outside of the iframe. When this method is called the same
|
|
245
|
+
process is kicked off as if the user would have clicked on
|
|
246
|
+
request product. Therefore you can just use the same callback
|
|
247
|
+
to react on the response
|
|
248
|
+
|
|
249
|
+
#### Returns
|
|
250
|
+
|
|
251
|
+
`Promise`<`void`\>
|
|
252
|
+
|
|
253
|
+
#### Defined in
|
|
254
|
+
|
|
255
|
+
[src/configurator/embedding/exposed-api.ts:198](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-api.ts#L198)
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
[Embedding API Reference](../README.md) / [Modules](../modules.md) / [exposed-callbacks](../modules/exposed_callbacks.md) / ExposedCallbacks
|
|
2
|
+
|
|
3
|
+
# Class: ExposedCallbacks
|
|
4
|
+
|
|
5
|
+
[exposed-callbacks](../modules/exposed_callbacks.md).ExposedCallbacks
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](exposed_callbacks.ExposedCallbacks.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Methods
|
|
14
|
+
|
|
15
|
+
- [onBackToWebsite](exposed_callbacks.ExposedCallbacks.md#onbacktowebsite)
|
|
16
|
+
- [onButtonClicked](exposed_callbacks.ExposedCallbacks.md#onbuttonclicked)
|
|
17
|
+
- [onPartListUpdate](exposed_callbacks.ExposedCallbacks.md#onpartlistupdate)
|
|
18
|
+
- [onPlanUpdate](exposed_callbacks.ExposedCallbacks.md#onplanupdate)
|
|
19
|
+
- [onRequestPlan](exposed_callbacks.ExposedCallbacks.md#onrequestplan)
|
|
20
|
+
- [onRequestProduct](exposed_callbacks.ExposedCallbacks.md#onrequestproduct)
|
|
21
|
+
- [onResize](exposed_callbacks.ExposedCallbacks.md#onresize)
|
|
22
|
+
- [onUseFullPage](exposed_callbacks.ExposedCallbacks.md#onusefullpage)
|
|
23
|
+
|
|
24
|
+
## Constructors
|
|
25
|
+
|
|
26
|
+
### constructor
|
|
27
|
+
|
|
28
|
+
• **new ExposedCallbacks**()
|
|
29
|
+
|
|
30
|
+
## Methods
|
|
31
|
+
|
|
32
|
+
### onBackToWebsite
|
|
33
|
+
|
|
34
|
+
▸ **onBackToWebsite**(): `void`
|
|
35
|
+
|
|
36
|
+
#### Returns
|
|
37
|
+
|
|
38
|
+
`void`
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[src/configurator/embedding/exposed-callbacks.ts:40](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L40)
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### onButtonClicked
|
|
47
|
+
|
|
48
|
+
▸ **onButtonClicked**(`name`): false \| true \| `void` \| `Promise`<`boolean`\>
|
|
49
|
+
|
|
50
|
+
Gets called when a button in the UI is clicked
|
|
51
|
+
|
|
52
|
+
#### Parameters
|
|
53
|
+
|
|
54
|
+
| Name | Type |
|
|
55
|
+
| :------ | :------ |
|
|
56
|
+
| `name` | [`UI_BUTTON`](../enums/types.UI_BUTTON.md) |
|
|
57
|
+
|
|
58
|
+
#### Returns
|
|
59
|
+
|
|
60
|
+
false \| true \| `void` \| `Promise`<`boolean`\>
|
|
61
|
+
|
|
62
|
+
overrideEventBehaviour true if the event has been consumed and it should not trigger default behaviour, undefined or false otherwise
|
|
63
|
+
|
|
64
|
+
#### Defined in
|
|
65
|
+
|
|
66
|
+
[src/configurator/embedding/exposed-callbacks.ts:47](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L47)
|
|
67
|
+
|
|
68
|
+
___
|
|
69
|
+
|
|
70
|
+
### onPartListUpdate
|
|
71
|
+
|
|
72
|
+
▸ **onPartListUpdate**(`partList`, `hash`): `void`
|
|
73
|
+
|
|
74
|
+
fullList fullList (needed for price calculation) of the current configuration
|
|
75
|
+
|
|
76
|
+
#### Parameters
|
|
77
|
+
|
|
78
|
+
| Name | Type | Description |
|
|
79
|
+
| :------ | :------ | :------ |
|
|
80
|
+
| `partList` | `KernelPartList` | the part list with all details, grouped, etc |
|
|
81
|
+
| `hash` | `string` | - |
|
|
82
|
+
|
|
83
|
+
#### Returns
|
|
84
|
+
|
|
85
|
+
`void`
|
|
86
|
+
|
|
87
|
+
#### Defined in
|
|
88
|
+
|
|
89
|
+
[src/configurator/embedding/exposed-callbacks.ts:34](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L34)
|
|
90
|
+
|
|
91
|
+
___
|
|
92
|
+
|
|
93
|
+
### onPlanUpdate
|
|
94
|
+
|
|
95
|
+
▸ **onPlanUpdate**(`objects`): `void`
|
|
96
|
+
|
|
97
|
+
Gets called if a plan object gets added, changed or removed
|
|
98
|
+
Only the move of plan object does NOT trigger this function
|
|
99
|
+
|
|
100
|
+
#### Parameters
|
|
101
|
+
|
|
102
|
+
| Name | Type |
|
|
103
|
+
| :------ | :------ |
|
|
104
|
+
| `objects` | `UiPlanObject`[] |
|
|
105
|
+
|
|
106
|
+
#### Returns
|
|
107
|
+
|
|
108
|
+
`void`
|
|
109
|
+
|
|
110
|
+
#### Defined in
|
|
111
|
+
|
|
112
|
+
[src/configurator/embedding/exposed-callbacks.ts:56](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L56)
|
|
113
|
+
|
|
114
|
+
___
|
|
115
|
+
|
|
116
|
+
### onRequestPlan
|
|
117
|
+
|
|
118
|
+
▸ **onRequestPlan**(`planId`, `image`, `items`): `void`
|
|
119
|
+
|
|
120
|
+
#### Parameters
|
|
121
|
+
|
|
122
|
+
| Name | Type |
|
|
123
|
+
| :------ | :------ |
|
|
124
|
+
| `planId` | `string` |
|
|
125
|
+
| `image` | `Base64Image` |
|
|
126
|
+
| `items` | `any`[] |
|
|
127
|
+
|
|
128
|
+
#### Returns
|
|
129
|
+
|
|
130
|
+
`void`
|
|
131
|
+
|
|
132
|
+
#### Defined in
|
|
133
|
+
|
|
134
|
+
[src/configurator/embedding/exposed-callbacks.ts:49](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L49)
|
|
135
|
+
|
|
136
|
+
___
|
|
137
|
+
|
|
138
|
+
### onRequestProduct
|
|
139
|
+
|
|
140
|
+
▸ **onRequestProduct**(`configurationId`, `image`, `partList`, `price`, `labels`, `configuration`): `void`
|
|
141
|
+
|
|
142
|
+
Returns all necessary params when 'Request Product'/'Checkout' button has pressed
|
|
143
|
+
|
|
144
|
+
#### Parameters
|
|
145
|
+
|
|
146
|
+
| Name | Type | Description |
|
|
147
|
+
| :------ | :------ | :------ |
|
|
148
|
+
| `configurationId` | `string` | id of the current configuration |
|
|
149
|
+
| `image` | `Base64Image` | image of the current configuration |
|
|
150
|
+
| `partList` | `KernelPartList` | the part list with all details, grouped, etc |
|
|
151
|
+
| `price` | [`Price`](../interfaces/exposed_callbacks.Price.md) | price of the current configuration, either set via setPrice or from Roomle price service |
|
|
152
|
+
| `labels` | [`Labels`](../interfaces/exposed_callbacks.Labels.md) | the label of the catalog and the furniture system |
|
|
153
|
+
| `configuration` | `RapiConfigurationEnhanced` | the data returned from the Roomle backend |
|
|
154
|
+
|
|
155
|
+
#### Returns
|
|
156
|
+
|
|
157
|
+
`void`
|
|
158
|
+
|
|
159
|
+
#### Defined in
|
|
160
|
+
|
|
161
|
+
[src/configurator/embedding/exposed-callbacks.ts:28](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L28)
|
|
162
|
+
|
|
163
|
+
___
|
|
164
|
+
|
|
165
|
+
### onResize
|
|
166
|
+
|
|
167
|
+
▸ **onResize**(`isDesktop`): `void`
|
|
168
|
+
|
|
169
|
+
#### Parameters
|
|
170
|
+
|
|
171
|
+
| Name | Type |
|
|
172
|
+
| :------ | :------ |
|
|
173
|
+
| `isDesktop` | `boolean` |
|
|
174
|
+
|
|
175
|
+
#### Returns
|
|
176
|
+
|
|
177
|
+
`void`
|
|
178
|
+
|
|
179
|
+
#### Defined in
|
|
180
|
+
|
|
181
|
+
[src/configurator/embedding/exposed-callbacks.ts:36](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L36)
|
|
182
|
+
|
|
183
|
+
___
|
|
184
|
+
|
|
185
|
+
### onUseFullPage
|
|
186
|
+
|
|
187
|
+
▸ **onUseFullPage**(): `void`
|
|
188
|
+
|
|
189
|
+
#### Returns
|
|
190
|
+
|
|
191
|
+
`void`
|
|
192
|
+
|
|
193
|
+
#### Defined in
|
|
194
|
+
|
|
195
|
+
[src/configurator/embedding/exposed-callbacks.ts:38](https://github.com/roomle-dev/roomle-ui/blob/8222e2cc/src/configurator/embedding/exposed-callbacks.ts#L38)
|