@roomle/embedding-lib 4.24.0 → 4.25.0-alpha.1
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/.nojekyll +1 -0
- package/docs/api/README.md +1 -1
- package/docs/api/classes/{exposed_analytics_callbacks.exposedanalyticscallbacks.md → exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md} +11 -9
- package/docs/api/classes/exposed_api.ExposedApi.md +255 -0
- package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +171 -0
- package/docs/api/classes/roomle_configurator_api.default.md +78 -42
- package/docs/api/enums/types.UI_BUTTON.md +208 -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 +1204 -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 +13 -7
- package/docs/api/modules/types.md +5 -5
- package/docs/index.md +31 -0
- package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +67 -7
- package/package.json +28 -1
- package/roomle-configurator-api.cjs.js +47 -3
- package/roomle-configurator-api.cjs.min.js +1 -1
- package/roomle-configurator-api.es.js +47 -3
- package/roomle-configurator-api.es.min.js +1 -1
- package/roomle-configurator-api.js +47 -3
- package/types/index.d.ts +190 -129
- package/types/src/common/store/collection-view-state.d.ts +2 -2
- package/types/src/common/store/index.d.ts +6 -0
- package/types/src/common/utils/helper.d.ts +3 -0
- package/types/src/common/utils/types.d.ts +3 -2
- package/types/src/configurator/business-logic/sdk-connector.d.ts +1 -0
- package/types/src/configurator/components/-utils/overlays.d.ts +8 -8
- package/types/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +3 -0
- package/types/src/configurator/embedding/exposed-api.d.ts +10 -0
- package/types/src/configurator/embedding/types.d.ts +7 -1
- package/types/src/configurator/store/ui-state.d.ts +19 -3
- package/types/tests/helpers/data/variants.d.ts +60 -0
- package/types/tests/helpers/mocks/sdk-connector-planner.d.ts +13 -0
- package/types/tests/helpers/mocks/sdk-connector.d.ts +5 -0
- package/types/tests/integration/configurator/components/{overlays/PartList.spec.d.ts → parameters/types/ProductVariant.spec.d.ts} +0 -0
- package/types/tests/integration/planner/components/BottomBar.spec.d.ts +1 -0
- package/docs/api/classes/exposed_api.exposedapi.md +0 -191
- package/docs/api/classes/exposed_callbacks.exposedcallbacks.md +0 -145
- package/docs/api/enums/types.ui_button.md +0 -145
- package/docs/api/interfaces/exposed_callbacks.labels.md +0 -28
- package/docs/api/interfaces/exposed_callbacks.price.md +0 -28
- package/docs/api/interfaces/roomle_configurator_api.roomleembeddingapikeys.md +0 -50
- package/docs/api/interfaces/types.configuratorsettings.md +0 -118
- package/docs/api/interfaces/types.embeddingskin.md +0 -55
- package/docs/api/interfaces/types.uiinitdata.md +0 -957
|
@@ -6,6 +6,7 @@ import { KernelComponent, UiPossibleChild } from '@roomle/web-sdk/lib/definition
|
|
|
6
6
|
import { OverlaysOpenState } from '@/configurator/components/-utils/overlays';
|
|
7
7
|
import { UiInitData } from '@/configurator/embedding/types';
|
|
8
8
|
import { RapiTagForUi } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
9
|
+
import { GridViewVariantElement } from '@/configurator/components/grid-view/-utils/GridViewHelper';
|
|
9
10
|
export declare enum BUTTON_ACTIONS {
|
|
10
11
|
AR = 0,
|
|
11
12
|
PARTLIST = 1,
|
|
@@ -14,7 +15,10 @@ export declare enum BUTTON_ACTIONS {
|
|
|
14
15
|
FULLSCREEN = 4,
|
|
15
16
|
RESET_CAMERA = 5,
|
|
16
17
|
RENDER_IMAGE = 6,
|
|
17
|
-
ROTATE = 7
|
|
18
|
+
ROTATE = 7,
|
|
19
|
+
SNAPPING = 8,
|
|
20
|
+
UNDO = 9,
|
|
21
|
+
REDO = 10
|
|
18
22
|
}
|
|
19
23
|
export interface SceneSelection {
|
|
20
24
|
selectionMode: string;
|
|
@@ -38,6 +42,11 @@ export interface UiState extends SharedUiState {
|
|
|
38
42
|
isConfigurator: boolean;
|
|
39
43
|
isPlanner: boolean;
|
|
40
44
|
email: Nullable<string>;
|
|
45
|
+
lastSelectedVariant: Nullable<GridViewVariantElement>;
|
|
46
|
+
undoEnabled: boolean;
|
|
47
|
+
redoEnabled: boolean;
|
|
48
|
+
undoEnabledPlanner: boolean;
|
|
49
|
+
redoEnabledPlanner: boolean;
|
|
41
50
|
}
|
|
42
51
|
export declare enum UI_STATE_MUTATIONS {
|
|
43
52
|
SET_SELECTED_GROUP = "setSelectedGroup",
|
|
@@ -61,7 +70,12 @@ export declare enum UI_STATE_MUTATIONS {
|
|
|
61
70
|
SET_CURRENT_VARIANTS = "SET_CURRENT_VARIANTS",
|
|
62
71
|
SET_SHOW_VARIANTS = "SET_SHOW_VARIANTS",
|
|
63
72
|
SET_EMAIL = "SET_EMAIL",
|
|
64
|
-
RESET_UI = "RESET_UI"
|
|
73
|
+
RESET_UI = "RESET_UI",
|
|
74
|
+
SET_LAST_SELECTED_VARIANT = "SET_LAST_SELECTED_VARIANT",
|
|
75
|
+
SET_UNDO = "SET_UNDO",
|
|
76
|
+
SET_REDO = "SET_REDO",
|
|
77
|
+
SET_UNDO_PLANNER = "SET_UNDO_PLANNER",
|
|
78
|
+
SET_REDO_PLANNER = "SET_REDO_PLANNER"
|
|
65
79
|
}
|
|
66
80
|
export declare enum UI_STATE_ACTIONS {
|
|
67
81
|
SELECT_GROUP = "SELECT_GROUP",
|
|
@@ -73,10 +87,12 @@ export declare enum UI_STATE_ACTIONS {
|
|
|
73
87
|
PAUSE_CONFIGURING = "PAUSE_CONFIGURING",
|
|
74
88
|
USE_VIEWER = "USE_VIEWER",
|
|
75
89
|
USE_PLANNER = "USE_PLANNER",
|
|
76
|
-
USE_CONFIGURATOR = "USE_CONFIGURATOR"
|
|
90
|
+
USE_CONFIGURATOR = "USE_CONFIGURATOR",
|
|
91
|
+
SHOW_PARAMS = "SHOW_PARAMS"
|
|
77
92
|
}
|
|
78
93
|
export declare enum UI_STATE_GETTERS {
|
|
79
94
|
USE_REGULAR_LAYOUT = "USE_REGULAR_LAYOUT",
|
|
95
|
+
PART_LIST_SHOWN = "PART_LIST_SHOWN",
|
|
80
96
|
COLLECTION_VIEW_ELEMENTS = "COLLECTION_VIEW_ELEMENTS",
|
|
81
97
|
COLLECTION_VIEW_ADDON_ELEMENTS = "COLLECTION_VIEW_ADDON_ELEMENTS",
|
|
82
98
|
COLLECTION_VIEW_VARIANTS = "COLLECTION_VIEW_VARIANTS",
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const ROLF_BENZ_VARIANTS: {
|
|
2
|
+
id: string;
|
|
3
|
+
global: boolean;
|
|
4
|
+
created: string;
|
|
5
|
+
updated: string;
|
|
6
|
+
links: {
|
|
7
|
+
items: string;
|
|
8
|
+
materials: string;
|
|
9
|
+
};
|
|
10
|
+
catalog: string;
|
|
11
|
+
label: string;
|
|
12
|
+
language: string;
|
|
13
|
+
items: {
|
|
14
|
+
height: number;
|
|
15
|
+
width: number;
|
|
16
|
+
depth: number;
|
|
17
|
+
displayedHeight: number;
|
|
18
|
+
displayedWidth: number;
|
|
19
|
+
displayedDepth: number;
|
|
20
|
+
perspectiveImage: string;
|
|
21
|
+
topImage: string;
|
|
22
|
+
assets: {};
|
|
23
|
+
externalIdentifier: string;
|
|
24
|
+
manufacturerSKU: string;
|
|
25
|
+
configuration: string;
|
|
26
|
+
rootComponentId: string;
|
|
27
|
+
hidden: boolean;
|
|
28
|
+
visibilityStatus: number;
|
|
29
|
+
created: string;
|
|
30
|
+
updated: string;
|
|
31
|
+
flipable: boolean;
|
|
32
|
+
scaleable: boolean;
|
|
33
|
+
colorable: boolean;
|
|
34
|
+
layer: number;
|
|
35
|
+
sort: number;
|
|
36
|
+
basecolor: string;
|
|
37
|
+
orderable: boolean;
|
|
38
|
+
requestable: boolean;
|
|
39
|
+
retailPriceAllowed: boolean;
|
|
40
|
+
label: string;
|
|
41
|
+
language: string;
|
|
42
|
+
catalog: string;
|
|
43
|
+
id: string;
|
|
44
|
+
tags: string[];
|
|
45
|
+
links: {
|
|
46
|
+
tags: string;
|
|
47
|
+
similarItems: string;
|
|
48
|
+
perfectFit: string;
|
|
49
|
+
additionalContents: string;
|
|
50
|
+
};
|
|
51
|
+
attributes: never[];
|
|
52
|
+
version: number;
|
|
53
|
+
__rapi_path__: string;
|
|
54
|
+
sketch: string;
|
|
55
|
+
}[];
|
|
56
|
+
parents: string[];
|
|
57
|
+
hidden: boolean;
|
|
58
|
+
__rapi_path__: string;
|
|
59
|
+
materials: never[];
|
|
60
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SdkConnectorPlanner } from '@/planner/business-logic/sdk-connector-planner';
|
|
2
|
+
export interface MockSdkConnectorPlannerOverrides {
|
|
3
|
+
planner?: object;
|
|
4
|
+
api?: object;
|
|
5
|
+
store?: object;
|
|
6
|
+
analytics?: object;
|
|
7
|
+
}
|
|
8
|
+
export declare class MockSdkConnectorPlanner extends SdkConnectorPlanner {
|
|
9
|
+
overrides: MockSdkConnectorPlannerOverrides;
|
|
10
|
+
constructor(overrides?: MockSdkConnectorPlannerOverrides);
|
|
11
|
+
get api(): Promise<any>;
|
|
12
|
+
setParameter: () => Promise<void>;
|
|
13
|
+
}
|
|
@@ -2,7 +2,9 @@ import { SdkConnector } from '@/configurator/business-logic/sdk-connector';
|
|
|
2
2
|
import { RapiTenant } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
3
3
|
export interface MockSdkConnectorOverrides {
|
|
4
4
|
configurator?: object;
|
|
5
|
+
planner?: object;
|
|
5
6
|
configuratorConnector?: object;
|
|
7
|
+
plannerConnector?: object;
|
|
6
8
|
loadInProgress?: boolean;
|
|
7
9
|
someLoadDone?: boolean;
|
|
8
10
|
rapiAccess?: object;
|
|
@@ -23,7 +25,10 @@ export declare class MockSdkConnector extends SdkConnector {
|
|
|
23
25
|
constructor(overrides?: MockSdkConnectorOverrides);
|
|
24
26
|
getTenant(): Promise<RapiTenant>;
|
|
25
27
|
initConfigurator(): void;
|
|
28
|
+
initPlanner(): void;
|
|
26
29
|
get configuratorApi(): Promise<any>;
|
|
30
|
+
get plannerApi(): Promise<any>;
|
|
27
31
|
get configuratorConnector(): Promise<any>;
|
|
32
|
+
get plannerConnector(): Promise<any>;
|
|
28
33
|
setParameter: () => Promise<void>;
|
|
29
34
|
}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,191 +0,0 @@
|
|
|
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
|
|
@@ -1,145 +0,0 @@
|
|
|
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
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](../README.md) / [Modules](../modules.md) / [types](../modules/types.md) / UI_BUTTON
|
|
2
|
-
|
|
3
|
-
# Enumeration: UI\_BUTTON
|
|
4
|
-
|
|
5
|
-
[types](../modules/types.md).UI_BUTTON
|
|
6
|
-
|
|
7
|
-
## Table of contents
|
|
8
|
-
|
|
9
|
-
### Enumeration members
|
|
10
|
-
|
|
11
|
-
- [ADDONS](types.ui_button.md#addons)
|
|
12
|
-
- [AR](types.ui_button.md#ar)
|
|
13
|
-
- [DIMENSIONS](types.ui_button.md#dimensions)
|
|
14
|
-
- [EXPORT\_3D](types.ui_button.md#export_3d)
|
|
15
|
-
- [FULLSCREEN](types.ui_button.md#fullscreen)
|
|
16
|
-
- [MULTISELECT](types.ui_button.md#multiselect)
|
|
17
|
-
- [PARTLIST](types.ui_button.md#partlist)
|
|
18
|
-
- [PAUSECONFIGURE](types.ui_button.md#pauseconfigure)
|
|
19
|
-
- [RENDERIMAGE](types.ui_button.md#renderimage)
|
|
20
|
-
- [REQUESTPLAN](types.ui_button.md#requestplan)
|
|
21
|
-
- [REQUESTPRODUCT](types.ui_button.md#requestproduct)
|
|
22
|
-
- [RESETCAMERA](types.ui_button.md#resetcamera)
|
|
23
|
-
- [ROTATE](types.ui_button.md#rotate)
|
|
24
|
-
- [SAVEDRAFT](types.ui_button.md#savedraft)
|
|
25
|
-
- [STARTCONFIGURE](types.ui_button.md#startconfigure)
|
|
26
|
-
|
|
27
|
-
## Enumeration members
|
|
28
|
-
|
|
29
|
-
### ADDONS
|
|
30
|
-
|
|
31
|
-
• **ADDONS**: = "addons"
|
|
32
|
-
|
|
33
|
-
Defined in: src/configurator/embedding/types.ts:15
|
|
34
|
-
|
|
35
|
-
___
|
|
36
|
-
|
|
37
|
-
### AR
|
|
38
|
-
|
|
39
|
-
• **AR**: = "ar"
|
|
40
|
-
|
|
41
|
-
Defined in: src/configurator/embedding/types.ts:8
|
|
42
|
-
|
|
43
|
-
___
|
|
44
|
-
|
|
45
|
-
### DIMENSIONS
|
|
46
|
-
|
|
47
|
-
• **DIMENSIONS**: = "dimensions"
|
|
48
|
-
|
|
49
|
-
Defined in: src/configurator/embedding/types.ts:11
|
|
50
|
-
|
|
51
|
-
___
|
|
52
|
-
|
|
53
|
-
### EXPORT\_3D
|
|
54
|
-
|
|
55
|
-
• **EXPORT\_3D**: = "export3d"
|
|
56
|
-
|
|
57
|
-
Defined in: src/configurator/embedding/types.ts:21
|
|
58
|
-
|
|
59
|
-
___
|
|
60
|
-
|
|
61
|
-
### FULLSCREEN
|
|
62
|
-
|
|
63
|
-
• **FULLSCREEN**: = "fullscreen"
|
|
64
|
-
|
|
65
|
-
Defined in: src/configurator/embedding/types.ts:12
|
|
66
|
-
|
|
67
|
-
___
|
|
68
|
-
|
|
69
|
-
### MULTISELECT
|
|
70
|
-
|
|
71
|
-
• **MULTISELECT**: = "multiselect"
|
|
72
|
-
|
|
73
|
-
Defined in: src/configurator/embedding/types.ts:10
|
|
74
|
-
|
|
75
|
-
___
|
|
76
|
-
|
|
77
|
-
### PARTLIST
|
|
78
|
-
|
|
79
|
-
• **PARTLIST**: = "partlist"
|
|
80
|
-
|
|
81
|
-
Defined in: src/configurator/embedding/types.ts:9
|
|
82
|
-
|
|
83
|
-
___
|
|
84
|
-
|
|
85
|
-
### PAUSECONFIGURE
|
|
86
|
-
|
|
87
|
-
• **PAUSECONFIGURE**: = "pauseconfigure"
|
|
88
|
-
|
|
89
|
-
Defined in: src/configurator/embedding/types.ts:20
|
|
90
|
-
|
|
91
|
-
___
|
|
92
|
-
|
|
93
|
-
### RENDERIMAGE
|
|
94
|
-
|
|
95
|
-
• **RENDERIMAGE**: = "renderimage"
|
|
96
|
-
|
|
97
|
-
Defined in: src/configurator/embedding/types.ts:14
|
|
98
|
-
|
|
99
|
-
___
|
|
100
|
-
|
|
101
|
-
### REQUESTPLAN
|
|
102
|
-
|
|
103
|
-
• **REQUESTPLAN**: = "requestplan"
|
|
104
|
-
|
|
105
|
-
Defined in: src/configurator/embedding/types.ts:17
|
|
106
|
-
|
|
107
|
-
___
|
|
108
|
-
|
|
109
|
-
### REQUESTPRODUCT
|
|
110
|
-
|
|
111
|
-
• **REQUESTPRODUCT**: = "requestproduct"
|
|
112
|
-
|
|
113
|
-
Defined in: src/configurator/embedding/types.ts:16
|
|
114
|
-
|
|
115
|
-
___
|
|
116
|
-
|
|
117
|
-
### RESETCAMERA
|
|
118
|
-
|
|
119
|
-
• **RESETCAMERA**: = "resetcamera"
|
|
120
|
-
|
|
121
|
-
Defined in: src/configurator/embedding/types.ts:13
|
|
122
|
-
|
|
123
|
-
___
|
|
124
|
-
|
|
125
|
-
### ROTATE
|
|
126
|
-
|
|
127
|
-
• **ROTATE**: = "rotate"
|
|
128
|
-
|
|
129
|
-
Defined in: src/configurator/embedding/types.ts:22
|
|
130
|
-
|
|
131
|
-
___
|
|
132
|
-
|
|
133
|
-
### SAVEDRAFT
|
|
134
|
-
|
|
135
|
-
• **SAVEDRAFT**: = "savedraft"
|
|
136
|
-
|
|
137
|
-
Defined in: src/configurator/embedding/types.ts:18
|
|
138
|
-
|
|
139
|
-
___
|
|
140
|
-
|
|
141
|
-
### STARTCONFIGURE
|
|
142
|
-
|
|
143
|
-
• **STARTCONFIGURE**: = "startconfigure"
|
|
144
|
-
|
|
145
|
-
Defined in: src/configurator/embedding/types.ts:19
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](../README.md) / [Modules](../modules.md) / [exposed-callbacks](../modules/exposed_callbacks.md) / Labels
|
|
2
|
-
|
|
3
|
-
# Interface: Labels
|
|
4
|
-
|
|
5
|
-
[exposed-callbacks](../modules/exposed_callbacks.md).Labels
|
|
6
|
-
|
|
7
|
-
## Table of contents
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- [catalogLabel](exposed_callbacks.labels.md#cataloglabel)
|
|
12
|
-
- [label](exposed_callbacks.labels.md#label)
|
|
13
|
-
|
|
14
|
-
## Properties
|
|
15
|
-
|
|
16
|
-
### catalogLabel
|
|
17
|
-
|
|
18
|
-
• **catalogLabel**: *Nullable*<string\>
|
|
19
|
-
|
|
20
|
-
Defined in: src/configurator/embedding/exposed-callbacks.ts:14
|
|
21
|
-
|
|
22
|
-
___
|
|
23
|
-
|
|
24
|
-
### label
|
|
25
|
-
|
|
26
|
-
• **label**: *Nullable*<string\>
|
|
27
|
-
|
|
28
|
-
Defined in: src/configurator/embedding/exposed-callbacks.ts:15
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](../README.md) / [Modules](../modules.md) / [exposed-callbacks](../modules/exposed_callbacks.md) / Price
|
|
2
|
-
|
|
3
|
-
# Interface: Price
|
|
4
|
-
|
|
5
|
-
[exposed-callbacks](../modules/exposed_callbacks.md).Price
|
|
6
|
-
|
|
7
|
-
## Table of contents
|
|
8
|
-
|
|
9
|
-
### Properties
|
|
10
|
-
|
|
11
|
-
- [currencySymbol](exposed_callbacks.price.md#currencysymbol)
|
|
12
|
-
- [price](exposed_callbacks.price.md#price)
|
|
13
|
-
|
|
14
|
-
## Properties
|
|
15
|
-
|
|
16
|
-
### currencySymbol
|
|
17
|
-
|
|
18
|
-
• **currencySymbol**: *Nullable*<string\>
|
|
19
|
-
|
|
20
|
-
Defined in: src/configurator/embedding/exposed-callbacks.ts:9
|
|
21
|
-
|
|
22
|
-
___
|
|
23
|
-
|
|
24
|
-
### price
|
|
25
|
-
|
|
26
|
-
• **price**: *Nullable*<number\>
|
|
27
|
-
|
|
28
|
-
Defined in: src/configurator/embedding/exposed-callbacks.ts:10
|