@roomle/embedding-lib 4.24.0-alpha.2 → 4.24.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/docs/api/classes/{exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md → exposed_analytics_callbacks.exposedanalyticscallbacks.md} +9 -11
- package/docs/api/classes/exposed_api.exposedapi.md +191 -0
- package/docs/api/classes/exposed_callbacks.exposedcallbacks.md +145 -0
- package/docs/api/classes/roomle_configurator_api.default.md +42 -78
- package/docs/api/enums/types.ui_button.md +145 -0
- package/docs/api/interfaces/exposed_callbacks.labels.md +28 -0
- package/docs/api/interfaces/exposed_callbacks.price.md +28 -0
- package/docs/api/interfaces/roomle_configurator_api.roomleembeddingapikeys.md +50 -0
- package/docs/api/interfaces/types.configuratorsettings.md +118 -0
- package/docs/api/interfaces/types.embeddingskin.md +55 -0
- package/docs/api/interfaces/types.uiinitdata.md +957 -0
- package/docs/api/interfaces/{types.VariantsMap.md → types.variantsmap.md} +1 -1
- package/docs/api/modules/exposed_analytics_callbacks.md +1 -1
- package/docs/api/modules/exposed_api.md +1 -1
- package/docs/api/modules/exposed_callbacks.md +3 -3
- package/docs/api/modules/roomle_configurator_api.md +7 -13
- package/docs/api/modules/types.md +5 -5
- package/docs/index.md +3 -3
- package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +6 -1
- package/package.json +1 -1
- package/roomle-configurator-api.cjs.js +1 -1
- package/roomle-configurator-api.cjs.min.js +1 -1
- package/roomle-configurator-api.es.js +1 -1
- package/roomle-configurator-api.es.min.js +1 -1
- package/roomle-configurator-api.js +1 -1
- package/docs/api/.nojekyll +0 -1
- package/docs/api/classes/exposed_api.ExposedApi.md +0 -227
- package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +0 -171
- package/docs/api/enums/types.UI_BUTTON.md +0 -175
- package/docs/api/interfaces/exposed_callbacks.Labels.md +0 -32
- package/docs/api/interfaces/exposed_callbacks.Price.md +0 -32
- package/docs/api/interfaces/roomle_configurator_api.RoomleEmbeddingApiKeys.md +0 -58
- package/docs/api/interfaces/types.ConfiguratorSettings.md +0 -150
- package/docs/api/interfaces/types.EmbeddingSkin.md +0 -65
- package/docs/api/interfaces/types.UiInitData.md +0 -1183
|
@@ -8,23 +8,25 @@
|
|
|
8
8
|
|
|
9
9
|
### Constructors
|
|
10
10
|
|
|
11
|
-
- [constructor](exposed_analytics_callbacks.
|
|
11
|
+
- [constructor](exposed_analytics_callbacks.exposedanalyticscallbacks.md#constructor)
|
|
12
12
|
|
|
13
13
|
### Methods
|
|
14
14
|
|
|
15
|
-
- [onGATracking](exposed_analytics_callbacks.
|
|
15
|
+
- [onGATracking](exposed_analytics_callbacks.exposedanalyticscallbacks.md#ongatracking)
|
|
16
16
|
|
|
17
17
|
## Constructors
|
|
18
18
|
|
|
19
19
|
### constructor
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
\+ **new ExposedAnalyticsCallbacks**(): [*ExposedAnalyticsCallbacks*](exposed_analytics_callbacks.exposedanalyticscallbacks.md)
|
|
22
|
+
|
|
23
|
+
**Returns:** [*ExposedAnalyticsCallbacks*](exposed_analytics_callbacks.exposedanalyticscallbacks.md)
|
|
22
24
|
|
|
23
25
|
## Methods
|
|
24
26
|
|
|
25
27
|
### onGATracking
|
|
26
28
|
|
|
27
|
-
▸ **onGATracking**(...`_args
|
|
29
|
+
▸ **onGATracking**(...`_args`: *any*[]): *void*
|
|
28
30
|
|
|
29
31
|
Is called whenever something is sent to google analytics
|
|
30
32
|
Possible parameters are everything which is possible in gtag.js
|
|
@@ -36,12 +38,8 @@ you can intercept events and send them to your own analytics tool
|
|
|
36
38
|
|
|
37
39
|
| Name | Type |
|
|
38
40
|
| :------ | :------ |
|
|
39
|
-
| `..._args` |
|
|
40
|
-
|
|
41
|
-
#### Returns
|
|
42
|
-
|
|
43
|
-
`void`
|
|
41
|
+
| `..._args` | *any*[] |
|
|
44
42
|
|
|
45
|
-
|
|
43
|
+
**Returns:** *void*
|
|
46
44
|
|
|
47
|
-
|
|
45
|
+
Defined in: src/configurator/embedding/exposed-analytics-callbacks.ts:9
|
|
@@ -0,0 +1,191 @@
|
|
|
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
|
+
- [loadConfigurationString](exposed_api.exposedapi.md#loadconfigurationstring)
|
|
21
|
+
- [loadObject](exposed_api.exposedapi.md#loadobject)
|
|
22
|
+
- [pauseConfiguring](exposed_api.exposedapi.md#pauseconfiguring)
|
|
23
|
+
- [setPrice](exposed_api.exposedapi.md#setprice)
|
|
24
|
+
- [startConfiguring](exposed_api.exposedapi.md#startconfiguring)
|
|
25
|
+
- [triggerRequestPlan](exposed_api.exposedapi.md#triggerrequestplan)
|
|
26
|
+
- [triggerRequestProduct](exposed_api.exposedapi.md#triggerrequestproduct)
|
|
27
|
+
|
|
28
|
+
## Constructors
|
|
29
|
+
|
|
30
|
+
### constructor
|
|
31
|
+
|
|
32
|
+
\+ **new ExposedApi**(`sdkConnector`: *SdkConnector*, `messageHandler`: ``null`` \| *MessageHandler*, `sdk`: *default* \| *default* \| *default*, `exposedCallbacks`: [*ExposedCallbacks*](exposed_callbacks.exposedcallbacks.md), `store`: *Store*<StoreState\>, `analytics`: Analytics, `globalCallback`: *GlobalCallback*): [*ExposedApi*](exposed_api.exposedapi.md)
|
|
33
|
+
|
|
34
|
+
#### Parameters
|
|
35
|
+
|
|
36
|
+
| Name | Type |
|
|
37
|
+
| :------ | :------ |
|
|
38
|
+
| `sdkConnector` | *SdkConnector* |
|
|
39
|
+
| `messageHandler` | ``null`` \| *MessageHandler* |
|
|
40
|
+
| `sdk` | *default* \| *default* \| *default* |
|
|
41
|
+
| `exposedCallbacks` | [*ExposedCallbacks*](exposed_callbacks.exposedcallbacks.md) |
|
|
42
|
+
| `store` | *Store*<StoreState\> |
|
|
43
|
+
| `analytics` | Analytics |
|
|
44
|
+
| `globalCallback` | *GlobalCallback* |
|
|
45
|
+
|
|
46
|
+
**Returns:** [*ExposedApi*](exposed_api.exposedapi.md)
|
|
47
|
+
|
|
48
|
+
Defined in: src/configurator/embedding/exposed-api.ts:27
|
|
49
|
+
|
|
50
|
+
## Accessors
|
|
51
|
+
|
|
52
|
+
### callbacks
|
|
53
|
+
|
|
54
|
+
• get **callbacks**(): [*ExposedCallbacks*](exposed_callbacks.exposedcallbacks.md)
|
|
55
|
+
|
|
56
|
+
**Returns:** [*ExposedCallbacks*](exposed_callbacks.exposedcallbacks.md)
|
|
57
|
+
|
|
58
|
+
Defined in: src/configurator/embedding/exposed-api.ts:117
|
|
59
|
+
|
|
60
|
+
## Methods
|
|
61
|
+
|
|
62
|
+
### giveGaConsent
|
|
63
|
+
|
|
64
|
+
▸ **giveGaConsent**(): *void*
|
|
65
|
+
|
|
66
|
+
call this method if consent of Google Analytics is given later and not already in init-data on boot
|
|
67
|
+
|
|
68
|
+
**Returns:** *void*
|
|
69
|
+
|
|
70
|
+
Defined in: src/configurator/embedding/exposed-api.ts:205
|
|
71
|
+
|
|
72
|
+
___
|
|
73
|
+
|
|
74
|
+
### loadConfigurationString
|
|
75
|
+
|
|
76
|
+
▸ **loadConfigurationString**(`configurationString`: *string*): *Promise*<Nullable<LoadResponse\>\>
|
|
77
|
+
|
|
78
|
+
call this method to load the configuration string you want into the 3d Scene
|
|
79
|
+
|
|
80
|
+
#### Parameters
|
|
81
|
+
|
|
82
|
+
| Name | Type | Description |
|
|
83
|
+
| :------ | :------ | :------ |
|
|
84
|
+
| `configurationString` | *string* | string of the configuration, starts with `{` and ends with `}` |
|
|
85
|
+
|
|
86
|
+
**Returns:** *Promise*<Nullable<LoadResponse\>\>
|
|
87
|
+
|
|
88
|
+
Defined in: src/configurator/embedding/exposed-api.ts:136
|
|
89
|
+
|
|
90
|
+
___
|
|
91
|
+
|
|
92
|
+
### loadObject
|
|
93
|
+
|
|
94
|
+
▸ **loadObject**(`id`: *string*): *Promise*<Nullable<LoadResponse\>\>
|
|
95
|
+
|
|
96
|
+
call this method to load the object you want into the 3d Scene
|
|
97
|
+
|
|
98
|
+
#### Parameters
|
|
99
|
+
|
|
100
|
+
| Name | Type | Description |
|
|
101
|
+
| :------ | :------ | :------ |
|
|
102
|
+
| `id` | *string* | database ID of the object you want to load |
|
|
103
|
+
|
|
104
|
+
**Returns:** *Promise*<Nullable<LoadResponse\>\>
|
|
105
|
+
|
|
106
|
+
Defined in: src/configurator/embedding/exposed-api.ts:125
|
|
107
|
+
|
|
108
|
+
___
|
|
109
|
+
|
|
110
|
+
### pauseConfiguring
|
|
111
|
+
|
|
112
|
+
▸ **pauseConfiguring**(): *void*
|
|
113
|
+
|
|
114
|
+
This method can be used to pause configuration
|
|
115
|
+
If the configurator was called in view-only mode
|
|
116
|
+
this method triggers the onBackToWebsite callback.
|
|
117
|
+
To know when the view-only mode is activated see the
|
|
118
|
+
description of the startConfiguring method
|
|
119
|
+
|
|
120
|
+
**Returns:** *void*
|
|
121
|
+
|
|
122
|
+
Defined in: src/configurator/embedding/exposed-api.ts:173
|
|
123
|
+
|
|
124
|
+
___
|
|
125
|
+
|
|
126
|
+
### setPrice
|
|
127
|
+
|
|
128
|
+
▸ **setPrice**(`currencySymbol`: *string*, `price`: *number*): *void*
|
|
129
|
+
|
|
130
|
+
set the price for the UI to show
|
|
131
|
+
most likely needed when implementing your own price service
|
|
132
|
+
|
|
133
|
+
#### Parameters
|
|
134
|
+
|
|
135
|
+
| Name | Type |
|
|
136
|
+
| :------ | :------ |
|
|
137
|
+
| `currencySymbol` | *string* |
|
|
138
|
+
| `price` | *number* |
|
|
139
|
+
|
|
140
|
+
**Returns:** *void*
|
|
141
|
+
|
|
142
|
+
Defined in: src/configurator/embedding/exposed-api.ts:150
|
|
143
|
+
|
|
144
|
+
___
|
|
145
|
+
|
|
146
|
+
### startConfiguring
|
|
147
|
+
|
|
148
|
+
▸ **startConfiguring**(): *void*
|
|
149
|
+
|
|
150
|
+
This method can be used to start configuration when
|
|
151
|
+
3d scene is only initialized as viewer first, the
|
|
152
|
+
configurator is automatically instantiated as viewer
|
|
153
|
+
if the container where the configurator is placed is
|
|
154
|
+
smaller than 1024px (this breakpoint could change in future)
|
|
155
|
+
so do not rely on this exact pixel setting
|
|
156
|
+
|
|
157
|
+
**Returns:** *void*
|
|
158
|
+
|
|
159
|
+
Defined in: src/configurator/embedding/exposed-api.ts:162
|
|
160
|
+
|
|
161
|
+
___
|
|
162
|
+
|
|
163
|
+
### triggerRequestPlan
|
|
164
|
+
|
|
165
|
+
▸ **triggerRequestPlan**(): *Promise*<void\>
|
|
166
|
+
|
|
167
|
+
call this method to trigger the onRequestPlan event from
|
|
168
|
+
outside of the iframe. When this method is called the same
|
|
169
|
+
process is kicked off as if the user would have clicked on
|
|
170
|
+
request plan. Therefore you can just use the same callback
|
|
171
|
+
to react on the response
|
|
172
|
+
|
|
173
|
+
**Returns:** *Promise*<void\>
|
|
174
|
+
|
|
175
|
+
Defined in: src/configurator/embedding/exposed-api.ts:198
|
|
176
|
+
|
|
177
|
+
___
|
|
178
|
+
|
|
179
|
+
### triggerRequestProduct
|
|
180
|
+
|
|
181
|
+
▸ **triggerRequestProduct**(): *Promise*<void\>
|
|
182
|
+
|
|
183
|
+
call this method to trigger the onRequestProduct event from
|
|
184
|
+
outside of the iframe. When this method is called the same
|
|
185
|
+
process is kicked off as if the user would have clicked on
|
|
186
|
+
request product. Therefore you can just use the same callback
|
|
187
|
+
to react on the response
|
|
188
|
+
|
|
189
|
+
**Returns:** *Promise*<void\>
|
|
190
|
+
|
|
191
|
+
Defined in: src/configurator/embedding/exposed-api.ts:187
|
|
@@ -0,0 +1,145 @@
|
|
|
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
|
+
- [onRequestPlan](exposed_callbacks.exposedcallbacks.md#onrequestplan)
|
|
19
|
+
- [onRequestProduct](exposed_callbacks.exposedcallbacks.md#onrequestproduct)
|
|
20
|
+
- [onResize](exposed_callbacks.exposedcallbacks.md#onresize)
|
|
21
|
+
- [onUseFullPage](exposed_callbacks.exposedcallbacks.md#onusefullpage)
|
|
22
|
+
|
|
23
|
+
## Constructors
|
|
24
|
+
|
|
25
|
+
### constructor
|
|
26
|
+
|
|
27
|
+
\+ **new ExposedCallbacks**(): [*ExposedCallbacks*](exposed_callbacks.exposedcallbacks.md)
|
|
28
|
+
|
|
29
|
+
**Returns:** [*ExposedCallbacks*](exposed_callbacks.exposedcallbacks.md)
|
|
30
|
+
|
|
31
|
+
## Methods
|
|
32
|
+
|
|
33
|
+
### onBackToWebsite
|
|
34
|
+
|
|
35
|
+
▸ **onBackToWebsite**(): *void*
|
|
36
|
+
|
|
37
|
+
**Returns:** *void*
|
|
38
|
+
|
|
39
|
+
Defined in: src/configurator/embedding/exposed-callbacks.ts:40
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### onButtonClicked
|
|
44
|
+
|
|
45
|
+
▸ **onButtonClicked**(`name`: [*UI\_BUTTON*](../enums/types.ui_button.md)): *boolean* \| *void* \| *Promise*<boolean\>
|
|
46
|
+
|
|
47
|
+
Gets called when a button in the UI is clicked
|
|
48
|
+
|
|
49
|
+
#### Parameters
|
|
50
|
+
|
|
51
|
+
| Name | Type |
|
|
52
|
+
| :------ | :------ |
|
|
53
|
+
| `name` | [*UI\_BUTTON*](../enums/types.ui_button.md) |
|
|
54
|
+
|
|
55
|
+
**Returns:** *boolean* \| *void* \| *Promise*<boolean\>
|
|
56
|
+
|
|
57
|
+
overrideEventBehaviour true if the event has been consumed and it should not trigger default behaviour, undefined or false otherwise
|
|
58
|
+
|
|
59
|
+
Defined in: src/configurator/embedding/exposed-callbacks.ts:47
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
63
|
+
### onPartListUpdate
|
|
64
|
+
|
|
65
|
+
▸ **onPartListUpdate**(`partList`: KernelPartList, `hash`: *string*): *void*
|
|
66
|
+
|
|
67
|
+
fullList fullList (needed for price calculation) of the current configuration
|
|
68
|
+
|
|
69
|
+
#### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description |
|
|
72
|
+
| :------ | :------ | :------ |
|
|
73
|
+
| `partList` | KernelPartList | the part list with all details, grouped, etc |
|
|
74
|
+
| `hash` | *string* | - |
|
|
75
|
+
|
|
76
|
+
**Returns:** *void*
|
|
77
|
+
|
|
78
|
+
Defined in: src/configurator/embedding/exposed-callbacks.ts:34
|
|
79
|
+
|
|
80
|
+
___
|
|
81
|
+
|
|
82
|
+
### onRequestPlan
|
|
83
|
+
|
|
84
|
+
▸ **onRequestPlan**(`planId`: *string*, `image`: Base64Image, `items`: *any*[]): *void*
|
|
85
|
+
|
|
86
|
+
#### Parameters
|
|
87
|
+
|
|
88
|
+
| Name | Type |
|
|
89
|
+
| :------ | :------ |
|
|
90
|
+
| `planId` | *string* |
|
|
91
|
+
| `image` | Base64Image |
|
|
92
|
+
| `items` | *any*[] |
|
|
93
|
+
|
|
94
|
+
**Returns:** *void*
|
|
95
|
+
|
|
96
|
+
Defined in: src/configurator/embedding/exposed-callbacks.ts:49
|
|
97
|
+
|
|
98
|
+
___
|
|
99
|
+
|
|
100
|
+
### onRequestProduct
|
|
101
|
+
|
|
102
|
+
▸ **onRequestProduct**(`configurationId`: *string*, `image`: Base64Image, `partList`: KernelPartList, `price`: [*Price*](../interfaces/exposed_callbacks.price.md), `labels`: [*Labels*](../interfaces/exposed_callbacks.labels.md), `configuration`: RapiConfigurationEnhanced): *void*
|
|
103
|
+
|
|
104
|
+
Returns all necessary params when 'Request Product'/'Checkout' button has pressed
|
|
105
|
+
|
|
106
|
+
#### Parameters
|
|
107
|
+
|
|
108
|
+
| Name | Type | Description |
|
|
109
|
+
| :------ | :------ | :------ |
|
|
110
|
+
| `configurationId` | *string* | id of the current configuration |
|
|
111
|
+
| `image` | Base64Image | image of the current configuration |
|
|
112
|
+
| `partList` | KernelPartList | the part list with all details, grouped, etc |
|
|
113
|
+
| `price` | [*Price*](../interfaces/exposed_callbacks.price.md) | price of the current configuration, either set via setPrice or from Roomle price service |
|
|
114
|
+
| `labels` | [*Labels*](../interfaces/exposed_callbacks.labels.md) | the label of the catalog and the furniture system |
|
|
115
|
+
| `configuration` | RapiConfigurationEnhanced | the data returned from the Roomle backend |
|
|
116
|
+
|
|
117
|
+
**Returns:** *void*
|
|
118
|
+
|
|
119
|
+
Defined in: src/configurator/embedding/exposed-callbacks.ts:28
|
|
120
|
+
|
|
121
|
+
___
|
|
122
|
+
|
|
123
|
+
### onResize
|
|
124
|
+
|
|
125
|
+
▸ **onResize**(`isDesktop`: *boolean*): *void*
|
|
126
|
+
|
|
127
|
+
#### Parameters
|
|
128
|
+
|
|
129
|
+
| Name | Type |
|
|
130
|
+
| :------ | :------ |
|
|
131
|
+
| `isDesktop` | *boolean* |
|
|
132
|
+
|
|
133
|
+
**Returns:** *void*
|
|
134
|
+
|
|
135
|
+
Defined in: src/configurator/embedding/exposed-callbacks.ts:36
|
|
136
|
+
|
|
137
|
+
___
|
|
138
|
+
|
|
139
|
+
### onUseFullPage
|
|
140
|
+
|
|
141
|
+
▸ **onUseFullPage**(): *void*
|
|
142
|
+
|
|
143
|
+
**Returns:** *void*
|
|
144
|
+
|
|
145
|
+
Defined in: src/configurator/embedding/exposed-callbacks.ts:38
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
## Implements
|
|
15
15
|
|
|
16
|
-
- [
|
|
16
|
+
- [*RoomleEmbeddingApiKeys*](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md)
|
|
17
17
|
|
|
18
18
|
## Table of contents
|
|
19
19
|
|
|
@@ -36,89 +36,69 @@
|
|
|
36
36
|
|
|
37
37
|
### analytics
|
|
38
38
|
|
|
39
|
-
• **analytics**:
|
|
39
|
+
• **analytics**: *object*
|
|
40
40
|
|
|
41
41
|
#### Type declaration
|
|
42
42
|
|
|
43
43
|
| Name | Type |
|
|
44
44
|
| :------ | :------ |
|
|
45
|
-
| `callbacks` | [
|
|
45
|
+
| `callbacks` | [*ExposedAnalyticsCallbacks*](exposed_analytics_callbacks.exposedanalyticscallbacks.md) |
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Implementation of: [RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md).[analytics](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md#analytics)
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
#### Defined in
|
|
52
|
-
|
|
53
|
-
[src/configurator/embedding/roomle-configurator-api.ts:140](https://gitlab.com/roomle/web/roomle-ui/-/blob/fb7c6a6b/src/configurator/embedding/roomle-configurator-api.ts#L140)
|
|
49
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:140
|
|
54
50
|
|
|
55
51
|
___
|
|
56
52
|
|
|
57
53
|
### extended
|
|
58
54
|
|
|
59
|
-
• **extended**:
|
|
60
|
-
|
|
61
|
-
#### Implementation of
|
|
55
|
+
• **extended**: SdkType
|
|
62
56
|
|
|
63
|
-
[RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.
|
|
57
|
+
Implementation of: [RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md).[extended](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md#extended)
|
|
64
58
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
[src/configurator/embedding/roomle-configurator-api.ts:136](https://gitlab.com/roomle/web/roomle-ui/-/blob/fb7c6a6b/src/configurator/embedding/roomle-configurator-api.ts#L136)
|
|
59
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:136
|
|
68
60
|
|
|
69
61
|
___
|
|
70
62
|
|
|
71
63
|
### global
|
|
72
64
|
|
|
73
|
-
• **global**:
|
|
65
|
+
• **global**: *object*
|
|
74
66
|
|
|
75
67
|
#### Type declaration
|
|
76
68
|
|
|
77
69
|
| Name | Type |
|
|
78
70
|
| :------ | :------ |
|
|
79
|
-
| `callbacks` |
|
|
80
|
-
|
|
81
|
-
#### Implementation of
|
|
71
|
+
| `callbacks` | *GlobalCallback* |
|
|
82
72
|
|
|
83
|
-
[RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.
|
|
73
|
+
Implementation of: [RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md).[global](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md#global)
|
|
84
74
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
[src/configurator/embedding/roomle-configurator-api.ts:144](https://gitlab.com/roomle/web/roomle-ui/-/blob/fb7c6a6b/src/configurator/embedding/roomle-configurator-api.ts#L144)
|
|
75
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:144
|
|
88
76
|
|
|
89
77
|
___
|
|
90
78
|
|
|
91
79
|
### ui
|
|
92
80
|
|
|
93
|
-
• **ui**: [
|
|
94
|
-
|
|
95
|
-
#### Implementation of
|
|
81
|
+
• **ui**: [*ExposedApi*](exposed_api.exposedapi.md)
|
|
96
82
|
|
|
97
|
-
[RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.
|
|
83
|
+
Implementation of: [RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md).[ui](../interfaces/roomle_configurator_api.roomleembeddingapikeys.md#ui)
|
|
98
84
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
[src/configurator/embedding/roomle-configurator-api.ts:132](https://gitlab.com/roomle/web/roomle-ui/-/blob/fb7c6a6b/src/configurator/embedding/roomle-configurator-api.ts#L132)
|
|
85
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:132
|
|
102
86
|
|
|
103
87
|
## Methods
|
|
104
88
|
|
|
105
89
|
### teardown
|
|
106
90
|
|
|
107
|
-
▸ **teardown**():
|
|
108
|
-
|
|
109
|
-
#### Returns
|
|
91
|
+
▸ **teardown**(): *void*
|
|
110
92
|
|
|
111
|
-
|
|
93
|
+
**Returns:** *void*
|
|
112
94
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
[src/configurator/embedding/roomle-configurator-api.ts:206](https://gitlab.com/roomle/web/roomle-ui/-/blob/fb7c6a6b/src/configurator/embedding/roomle-configurator-api.ts#L206)
|
|
95
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:206
|
|
116
96
|
|
|
117
97
|
___
|
|
118
98
|
|
|
119
99
|
### create
|
|
120
100
|
|
|
121
|
-
▸ `Static` **create**(`configuratorId
|
|
101
|
+
▸ `Static` **create**(`configuratorId`: *string*, `container`: HTMLElement, `initData`: [*UiInitData*](../interfaces/types.uiinitdata.md)): *Promise*<[*RoomleConfiguratorApi*](../modules/roomle_configurator_api.md#roomleconfiguratorapi)\>
|
|
122
102
|
|
|
123
103
|
Method to create a new instance of a Roomle Configurator
|
|
124
104
|
|
|
@@ -128,23 +108,19 @@ Method to create a new instance of a Roomle Configurator
|
|
|
128
108
|
|
|
129
109
|
| Name | Type | Description |
|
|
130
110
|
| :------ | :------ | :------ |
|
|
131
|
-
| `configuratorId` |
|
|
132
|
-
| `container` |
|
|
133
|
-
| `initData` | [
|
|
134
|
-
|
|
135
|
-
#### Returns
|
|
136
|
-
|
|
137
|
-
`Promise`<[`RoomleConfiguratorApi`](../modules/roomle_configurator_api.md#roomleconfiguratorapi)\>
|
|
111
|
+
| `configuratorId` | *string* | the id which identifies your configurator, you will get this ID from your Roomle Contact Person |
|
|
112
|
+
| `container` | HTMLElement | DOM container in which the configurator should be placed |
|
|
113
|
+
| `initData` | [*UiInitData*](../interfaces/types.uiinitdata.md) | settings with which the configurator should be started |
|
|
138
114
|
|
|
139
|
-
|
|
115
|
+
**Returns:** *Promise*<[*RoomleConfiguratorApi*](../modules/roomle_configurator_api.md#roomleconfiguratorapi)\>
|
|
140
116
|
|
|
141
|
-
|
|
117
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:96
|
|
142
118
|
|
|
143
119
|
___
|
|
144
120
|
|
|
145
121
|
### createConfigurator
|
|
146
122
|
|
|
147
|
-
▸ `Static` **createConfigurator**(`configuratorId
|
|
123
|
+
▸ `Static` **createConfigurator**(`configuratorId`: *string*, `container`: HTMLElement, `initData`: [*UiInitData*](../interfaces/types.uiinitdata.md)): *Promise*<[*RoomleConfiguratorApi*](../modules/roomle_configurator_api.md#roomleconfiguratorapi)\>
|
|
148
124
|
|
|
149
125
|
Method to create a new instance of a Roomle Configurator
|
|
150
126
|
|
|
@@ -152,45 +128,37 @@ Method to create a new instance of a Roomle Configurator
|
|
|
152
128
|
|
|
153
129
|
| Name | Type | Description |
|
|
154
130
|
| :------ | :------ | :------ |
|
|
155
|
-
| `configuratorId` |
|
|
156
|
-
| `container` |
|
|
157
|
-
| `initData` | [
|
|
158
|
-
|
|
159
|
-
#### Returns
|
|
160
|
-
|
|
161
|
-
`Promise`<[`RoomleConfiguratorApi`](../modules/roomle_configurator_api.md#roomleconfiguratorapi)\>
|
|
131
|
+
| `configuratorId` | *string* | the id which identifies your configurator, you will get this ID from your Roomle Contact Person |
|
|
132
|
+
| `container` | HTMLElement | DOM container in which the configurator should be placed |
|
|
133
|
+
| `initData` | [*UiInitData*](../interfaces/types.uiinitdata.md) | settings with which the configurator should be started |
|
|
162
134
|
|
|
163
|
-
|
|
135
|
+
**Returns:** *Promise*<[*RoomleConfiguratorApi*](../modules/roomle_configurator_api.md#roomleconfiguratorapi)\>
|
|
164
136
|
|
|
165
|
-
|
|
137
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:85
|
|
166
138
|
|
|
167
139
|
___
|
|
168
140
|
|
|
169
141
|
### createPlanner
|
|
170
142
|
|
|
171
|
-
▸ `Static` **createPlanner**(`configuratorId
|
|
143
|
+
▸ `Static` **createPlanner**(`configuratorId`: *string*, `container`: HTMLElement, `initData`: [*UiInitData*](../interfaces/types.uiinitdata.md)): *Promise*<[*RoomlePlannerApi*](../modules/roomle_configurator_api.md#roomleplannerapi)\>
|
|
172
144
|
|
|
173
145
|
#### Parameters
|
|
174
146
|
|
|
175
147
|
| Name | Type |
|
|
176
148
|
| :------ | :------ |
|
|
177
|
-
| `configuratorId` |
|
|
178
|
-
| `container` |
|
|
179
|
-
| `initData` | [
|
|
149
|
+
| `configuratorId` | *string* |
|
|
150
|
+
| `container` | HTMLElement |
|
|
151
|
+
| `initData` | [*UiInitData*](../interfaces/types.uiinitdata.md) |
|
|
180
152
|
|
|
181
|
-
|
|
153
|
+
**Returns:** *Promise*<[*RoomlePlannerApi*](../modules/roomle_configurator_api.md#roomleplannerapi)\>
|
|
182
154
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
#### Defined in
|
|
186
|
-
|
|
187
|
-
[src/configurator/embedding/roomle-configurator-api.ts:75](https://gitlab.com/roomle/web/roomle-ui/-/blob/fb7c6a6b/src/configurator/embedding/roomle-configurator-api.ts#L75)
|
|
155
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:75
|
|
188
156
|
|
|
189
157
|
___
|
|
190
158
|
|
|
191
159
|
### createViewer
|
|
192
160
|
|
|
193
|
-
▸ `Static` **createViewer**(`configuratorId
|
|
161
|
+
▸ `Static` **createViewer**(`configuratorId`: *string*, `container`: HTMLElement, `initData`: [*UiInitData*](../interfaces/types.uiinitdata.md)): *Promise*<[*RoomleViewerApi*](../modules/roomle_configurator_api.md#roomleviewerapi)\>
|
|
194
162
|
|
|
195
163
|
Method to create a new instance of a Roomle Viewer
|
|
196
164
|
|
|
@@ -198,14 +166,10 @@ Method to create a new instance of a Roomle Viewer
|
|
|
198
166
|
|
|
199
167
|
| Name | Type | Description |
|
|
200
168
|
| :------ | :------ | :------ |
|
|
201
|
-
| `configuratorId` |
|
|
202
|
-
| `container` |
|
|
203
|
-
| `initData` | [
|
|
204
|
-
|
|
205
|
-
#### Returns
|
|
206
|
-
|
|
207
|
-
`Promise`<[`RoomleViewerApi`](../modules/roomle_configurator_api.md#roomleviewerapi)\>
|
|
169
|
+
| `configuratorId` | *string* | the id which identifies your configurator, you will get this ID from your Roomle Contact Person |
|
|
170
|
+
| `container` | HTMLElement | DOM container in which the configurator should be placed |
|
|
171
|
+
| `initData` | [*UiInitData*](../interfaces/types.uiinitdata.md) | settings with which the configurator should be started |
|
|
208
172
|
|
|
209
|
-
|
|
173
|
+
**Returns:** *Promise*<[*RoomleViewerApi*](../modules/roomle_configurator_api.md#roomleviewerapi)\>
|
|
210
174
|
|
|
211
|
-
|
|
175
|
+
Defined in: src/configurator/embedding/roomle-configurator-api.ts:106
|