@roomle/embedding-lib 4.37.0 → 4.38.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 +1 -1
- package/docs/api/classes/exposed_api.ExposedApi.md +11 -11
- package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +31 -7
- package/docs/api/classes/roomle_configurator_api.default.md +9 -9
- package/docs/api/enums/types.UI_BUTTON.md +22 -22
- package/docs/api/interfaces/exposed_callbacks.Labels.md +2 -2
- package/docs/api/interfaces/exposed_callbacks.Price.md +2 -2
- package/docs/api/interfaces/roomle_configurator_api.RoomleEmbeddingApiKeys.md +4 -4
- package/docs/api/interfaces/types.ConfiguratorSettings.md +5 -5
- package/docs/api/interfaces/types.EmbeddingSkin.md +5 -5
- package/docs/api/interfaces/types.UiInitData.md +16 -16
- package/docs/api/modules/roomle_configurator_api.md +3 -3
- package/docs/examples/11_light_settings.html +1 -0
- package/docs/index.md +2 -1
- package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +41 -2
- package/package.json +2 -2
- package/types/index.d.ts +36 -23
- package/types/src/common/business-logic/connector.d.ts +8 -0
- package/types/src/common/store/index.d.ts +0 -1
- package/types/src/common/utils/touch-drag.d.ts +6 -1
- package/types/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +2 -0
- package/types/src/configurator/business-logic/sdk-connector-configurator.d.ts +3 -5
- package/types/src/configurator/business-logic/sdk-connector.d.ts +4 -7
- package/types/src/configurator/embedding/exposed-api.d.ts +2 -1
- package/types/src/configurator/embedding/exposed-callbacks.d.ts +7 -1
- package/types/src/planner/business-logic/sdk-connector-planner.d.ts +3 -3
- package/types/src/planner/store/planner-ui-state.d.ts +3 -2
- package/types/src/planner/utils/planner-sidebar.d.ts +0 -1
- package/types/src/viewer/business-logic/sdk-connector-viewer.d.ts +2 -2
- package/types/tests/helpers/data/part-list.d.ts +16 -0
- /package/types/tests/integration/{configurator → common}/components/BottomBar.spec.d.ts +0 -0
- /package/types/tests/integration/planner/components/{BottomBar.spec.d.ts → PlannerSidebar.spec.d.ts} +0 -0
|
@@ -127,7 +127,7 @@ to view 3d content. Imagine it then as a <img> tag for 3d content
|
|
|
127
127
|
|
|
128
128
|
#### Defined in
|
|
129
129
|
|
|
130
|
-
[src/configurator/embedding/types.ts:90](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
130
|
+
[src/configurator/embedding/types.ts:90](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L90)
|
|
131
131
|
|
|
132
132
|
___
|
|
133
133
|
|
|
@@ -144,7 +144,7 @@ InitDataDefinition.applyCurrentGlobalParameters
|
|
|
144
144
|
|
|
145
145
|
#### Defined in
|
|
146
146
|
|
|
147
|
-
[src/configurator/embedding/types.ts:137](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
147
|
+
[src/configurator/embedding/types.ts:137](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L137)
|
|
148
148
|
|
|
149
149
|
___
|
|
150
150
|
|
|
@@ -214,7 +214,7 @@ ___
|
|
|
214
214
|
|
|
215
215
|
#### Defined in
|
|
216
216
|
|
|
217
|
-
[src/configurator/embedding/types.ts:39](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
217
|
+
[src/configurator/embedding/types.ts:39](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L39)
|
|
218
218
|
|
|
219
219
|
___
|
|
220
220
|
|
|
@@ -345,7 +345,7 @@ usage: http://www.example.com/configurator?id=#CONFIGURATIONID#
|
|
|
345
345
|
|
|
346
346
|
#### Defined in
|
|
347
347
|
|
|
348
|
-
[src/configurator/embedding/types.ts:77](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
348
|
+
[src/configurator/embedding/types.ts:77](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L77)
|
|
349
349
|
|
|
350
350
|
___
|
|
351
351
|
|
|
@@ -410,7 +410,7 @@ an e-mail
|
|
|
410
410
|
|
|
411
411
|
#### Defined in
|
|
412
412
|
|
|
413
|
-
[src/configurator/embedding/types.ts:95](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
413
|
+
[src/configurator/embedding/types.ts:95](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L95)
|
|
414
414
|
|
|
415
415
|
___
|
|
416
416
|
|
|
@@ -424,7 +424,7 @@ so that we can ensure a smooth transition between different versions of our conf
|
|
|
424
424
|
|
|
425
425
|
#### Defined in
|
|
426
426
|
|
|
427
|
-
[src/configurator/embedding/types.ts:111](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
427
|
+
[src/configurator/embedding/types.ts:111](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L111)
|
|
428
428
|
|
|
429
429
|
___
|
|
430
430
|
|
|
@@ -452,7 +452,7 @@ set this flag to false if the user did not give the consent to Analytics
|
|
|
452
452
|
|
|
453
453
|
#### Defined in
|
|
454
454
|
|
|
455
|
-
[src/configurator/embedding/types.ts:115](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
455
|
+
[src/configurator/embedding/types.ts:115](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L115)
|
|
456
456
|
|
|
457
457
|
___
|
|
458
458
|
|
|
@@ -464,7 +464,7 @@ set this flag to true if you want to group the part list by main components
|
|
|
464
464
|
|
|
465
465
|
#### Defined in
|
|
466
466
|
|
|
467
|
-
[src/configurator/embedding/types.ts:105](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
467
|
+
[src/configurator/embedding/types.ts:105](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L105)
|
|
468
468
|
|
|
469
469
|
___
|
|
470
470
|
|
|
@@ -651,7 +651,7 @@ small div
|
|
|
651
651
|
|
|
652
652
|
#### Defined in
|
|
653
653
|
|
|
654
|
-
[src/configurator/embedding/types.ts:101](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
654
|
+
[src/configurator/embedding/types.ts:101](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L101)
|
|
655
655
|
|
|
656
656
|
___
|
|
657
657
|
|
|
@@ -772,7 +772,7 @@ ___
|
|
|
772
772
|
|
|
773
773
|
#### Defined in
|
|
774
774
|
|
|
775
|
-
[src/configurator/embedding/types.ts:63](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
775
|
+
[src/configurator/embedding/types.ts:63](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L63)
|
|
776
776
|
|
|
777
777
|
___
|
|
778
778
|
|
|
@@ -887,7 +887,7 @@ for details see deeplink, the only change is that the placeholder is <CONF_ID> h
|
|
|
887
887
|
|
|
888
888
|
#### Defined in
|
|
889
889
|
|
|
890
|
-
[src/configurator/embedding/types.ts:68](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
890
|
+
[src/configurator/embedding/types.ts:68](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L68)
|
|
891
891
|
|
|
892
892
|
___
|
|
893
893
|
|
|
@@ -949,7 +949,7 @@ ___
|
|
|
949
949
|
|
|
950
950
|
#### Defined in
|
|
951
951
|
|
|
952
|
-
[src/configurator/embedding/types.ts:60](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
952
|
+
[src/configurator/embedding/types.ts:60](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L60)
|
|
953
953
|
|
|
954
954
|
___
|
|
955
955
|
|
|
@@ -1007,7 +1007,7 @@ You can find all labels here: [Base.json](../../../ui/base.json)
|
|
|
1007
1007
|
|
|
1008
1008
|
#### Defined in
|
|
1009
1009
|
|
|
1010
|
-
[src/configurator/embedding/types.ts:132](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
1010
|
+
[src/configurator/embedding/types.ts:132](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L132)
|
|
1011
1011
|
|
|
1012
1012
|
___
|
|
1013
1013
|
|
|
@@ -1088,7 +1088,7 @@ ___
|
|
|
1088
1088
|
|
|
1089
1089
|
#### Defined in
|
|
1090
1090
|
|
|
1091
|
-
[src/configurator/embedding/types.ts:62](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
1091
|
+
[src/configurator/embedding/types.ts:62](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L62)
|
|
1092
1092
|
|
|
1093
1093
|
___
|
|
1094
1094
|
|
|
@@ -1139,7 +1139,7 @@ usm:frame is loaded all the items from the tag "DB_Start_ohne_Element" are now s
|
|
|
1139
1139
|
|
|
1140
1140
|
#### Defined in
|
|
1141
1141
|
|
|
1142
|
-
[src/configurator/embedding/types.ts:84](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
1142
|
+
[src/configurator/embedding/types.ts:84](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L84)
|
|
1143
1143
|
|
|
1144
1144
|
___
|
|
1145
1145
|
|
|
@@ -1149,7 +1149,7 @@ ___
|
|
|
1149
1149
|
|
|
1150
1150
|
#### Defined in
|
|
1151
1151
|
|
|
1152
|
-
[src/configurator/embedding/types.ts:61](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
1152
|
+
[src/configurator/embedding/types.ts:61](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/types.ts#L61)
|
|
1153
1153
|
|
|
1154
1154
|
___
|
|
1155
1155
|
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
#### Defined in
|
|
28
28
|
|
|
29
|
-
[src/configurator/embedding/roomle-configurator-api.ts:70](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
29
|
+
[src/configurator/embedding/roomle-configurator-api.ts:70](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/roomle-configurator-api.ts#L70)
|
|
30
30
|
|
|
31
31
|
___
|
|
32
32
|
|
|
@@ -36,7 +36,7 @@ ___
|
|
|
36
36
|
|
|
37
37
|
#### Defined in
|
|
38
38
|
|
|
39
|
-
[src/configurator/embedding/roomle-configurator-api.ts:72](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
39
|
+
[src/configurator/embedding/roomle-configurator-api.ts:72](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/roomle-configurator-api.ts#L72)
|
|
40
40
|
|
|
41
41
|
___
|
|
42
42
|
|
|
@@ -46,4 +46,4 @@ ___
|
|
|
46
46
|
|
|
47
47
|
#### Defined in
|
|
48
48
|
|
|
49
|
-
[src/configurator/embedding/roomle-configurator-api.ts:71](https://gitlab.com/roomle/web/roomle-ui/-/blob/
|
|
49
|
+
[src/configurator/embedding/roomle-configurator-api.ts:71](https://gitlab.com/roomle/web/roomle-ui/-/blob/69e35fbb/src/configurator/embedding/roomle-configurator-api.ts#L71)
|
package/docs/index.md
CHANGED
|
@@ -643,7 +643,8 @@ if(!roomleId) {
|
|
|
643
643
|
}
|
|
644
644
|
configurator.ui.loadObject(roomleId);
|
|
645
645
|
```
|
|
646
|
-
You can
|
|
646
|
+
You can test and play around with those settings in this CodeSandbox:
|
|
647
|
+
[](https://codesandbox.io/s/opening-an-existing-configuration-again-lzukpn?file=/index.js)
|
|
647
648
|
|
|
648
649
|
### Using different light settings
|
|
649
650
|
|
|
@@ -1,6 +1,45 @@
|
|
|
1
|
-
## [4.
|
|
1
|
+
## [4.38.0](https://gitlab.com/roomle/web/roomle-ui/compare/embedding-v4.37.0...embedding-v4.38.0) (2022-07-05)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* add bottom bar to configurator in moc ([3196aa6](https://gitlab.com/roomle/web/roomle-ui/commit/3196aa6ef73a687637b5f56c2e384db434155b75))
|
|
7
|
+
* add call back to exposed api for on plan update ([ca48218](https://gitlab.com/roomle/web/roomle-ui/commit/ca482184ae8caabd6a931c77c2232a0586d7a814))
|
|
8
|
+
* add moc docs ([8f8d83f](https://gitlab.com/roomle/web/roomle-ui/commit/8f8d83fb76cc5eaf8afb73cf019e1d699926076e))
|
|
9
|
+
* remove welcome page as default sidebar ([048c73e](https://gitlab.com/roomle/web/roomle-ui/commit/048c73e1c9ff68fc63c52bc727c1bf08da2a34c2))
|
|
10
|
+
* **SDK:** upgrade SDK to version 2.35.0-alpha.2 ([d307caf](https://gitlab.com/roomle/web/roomle-ui/commit/d307caf01e51c2e236df62d7b9be3feeebef1f87))
|
|
11
|
+
* **SDK:** upgrade SDK to version 2.35.0-alpha.3 ([48045c6](https://gitlab.com/roomle/web/roomle-ui/commit/48045c6234b84cb9e1740b97907c3cc09d5c6530))
|
|
12
|
+
* **SDK:** upgrade SDK to version 2.35.0-alpha.4 ([6adf875](https://gitlab.com/roomle/web/roomle-ui/commit/6adf8756031b2dbec9e02f88c0a0703ba5f73279))
|
|
13
|
+
* **SDK:** upgrade SDK to version 2.35.0-alpha.6 ([b2a6fb9](https://gitlab.com/roomle/web/roomle-ui/commit/b2a6fb9ddbb63866bc086f7661fe3d4af717409e))
|
|
14
|
+
* **SDK:** upgrade SDK to version 2.35.0-alpha.9 ([d635fd8](https://gitlab.com/roomle/web/roomle-ui/commit/d635fd86161c24bbe5bb8d24787ad10f43493e3c))
|
|
15
|
+
* **SDK:** upgrade to version 2.34.0 ([040fff7](https://gitlab.com/roomle/web/roomle-ui/commit/040fff75928768578a6ce5e7d5fcdef71d103a42))
|
|
16
|
+
* **SDK:** upgrade to version 2.35.0-alpha.1 ([c13174a](https://gitlab.com/roomle/web/roomle-ui/commit/c13174afd3c6df810aa2fda8f9c79df5fa14d40b))
|
|
17
|
+
* **SDK:** upgrade to version 2.35.0-alpha.2 ([bb7cd51](https://gitlab.com/roomle/web/roomle-ui/commit/bb7cd5198956026c646d2fbafbd96f9c33e3b6e1))
|
|
18
|
+
* **SDK:** upgrade to version 2.35.0-alpha.2 ([ee0cfe3](https://gitlab.com/roomle/web/roomle-ui/commit/ee0cfe3630858e8a2eeeff0a9d29afd2646d1e41))
|
|
19
|
+
* **SDK:** upgrade to version 2.35.0-alpha.3 ([ca28a34](https://gitlab.com/roomle/web/roomle-ui/commit/ca28a34fcc1614ef007d2d53328f0210c94345e6))
|
|
20
|
+
* **SDK:** upgrade to version 2.35.0-alpha.3 ([1a293b0](https://gitlab.com/roomle/web/roomle-ui/commit/1a293b03b9e6c0d624ab2fc35bdba49bc682263f))
|
|
21
|
+
* **SDK:** upgrade to version 2.35.0-alpha.5 ([c90d419](https://gitlab.com/roomle/web/roomle-ui/commit/c90d41949df8af6e959ff52ffed8d0a3dda161a6))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* boolean parameters should not show 0/1 ([e7a4700](https://gitlab.com/roomle/web/roomle-ui/commit/e7a4700e0f9a4939b26937772495625616db6a1d))
|
|
27
|
+
* change search icon ([cf23443](https://gitlab.com/roomle/web/roomle-ui/commit/cf234432df9da1f1756c298e840ee160c7af9415))
|
|
28
|
+
* delete welcome page component ([06fbcd1](https://gitlab.com/roomle/web/roomle-ui/commit/06fbcd116c2648e85f7c3d1dd1c5e1f10cde90b4))
|
|
29
|
+
* eslint errors ([5c8ab2a](https://gitlab.com/roomle/web/roomle-ui/commit/5c8ab2affb37a1ab060a3a39a8319f4e4e0d55e7))
|
|
30
|
+
* failing pipeline test ([eba9910](https://gitlab.com/roomle/web/roomle-ui/commit/eba9910a2bb9fdcab569d9b2e8cd4c992fcbb55b))
|
|
31
|
+
* incorrect isConfiguratorOnly function and failing tests ([33e44a0](https://gitlab.com/roomle/web/roomle-ui/commit/33e44a0c0300e12c96d1d2acef3e532d74f8ceb6))
|
|
32
|
+
* incorrect loco translation ([ad0c303](https://gitlab.com/roomle/web/roomle-ui/commit/ad0c303331364014c87ad4426564214727a35e7f))
|
|
33
|
+
* Label "object Object" is shown on print for partlist ([c8ee282](https://gitlab.com/roomle/web/roomle-ui/commit/c8ee282ac4aab76ebfe1adda5858e89d6abdba96))
|
|
34
|
+
* only call drag end once on mobile ([1764ef6](https://gitlab.com/roomle/web/roomle-ui/commit/1764ef65f716b50d224c105566332e151712bbf8))
|
|
35
|
+
* package-lock ([252a7b7](https://gitlab.com/roomle/web/roomle-ui/commit/252a7b7c245d594f1455dc2561e0da338f82f58f))
|
|
36
|
+
* package-lock ([a5c99bd](https://gitlab.com/roomle/web/roomle-ui/commit/a5c99bd241833f5fc045128e028eb570c6ba5d44))
|
|
37
|
+
* package-lock ([771c03b](https://gitlab.com/roomle/web/roomle-ui/commit/771c03bf69694be0fa982ff5a037c9f9b61c4706))
|
|
38
|
+
* package-lock ([70a4c05](https://gitlab.com/roomle/web/roomle-ui/commit/70a4c05aa5850ad0a73f1eff9ebd7e72d2223595))
|
|
39
|
+
* remove NSDB symbol ([bc8136b](https://gitlab.com/roomle/web/roomle-ui/commit/bc8136b0601fdd2a38b014b5337ac8ad7295d9a9))
|
|
40
|
+
* remove ts error ([bfd5b02](https://gitlab.com/roomle/web/roomle-ui/commit/bfd5b02d7cadd81079ca3b21c62b7bce712dcd49))
|
|
41
|
+
* should not close sidebar if change selection ([027fd9f](https://gitlab.com/roomle/web/roomle-ui/commit/027fd9fa9a6b1e10b8196153649d82e536ea9daf))
|
|
42
|
+
* sidebar should also close if i deselect a item ([d07a00e](https://gitlab.com/roomle/web/roomle-ui/commit/d07a00e971ccf95a3fbf6bcd8053fff8a571a366))
|
|
43
|
+
* sidebar should be opened again after dragged in a object ([ba06ddc](https://gitlab.com/roomle/web/roomle-ui/commit/ba06ddc10bdfef45bd525168fa1a5459ade3795f))
|
|
44
|
+
* touch drag should be only triggered if there is not too much x movement ([5a1261e](https://gitlab.com/roomle/web/roomle-ui/commit/5a1261e2680e4c36137005baee8fa699f9d0584e))
|
|
45
|
+
* type check on interface RoomlePlanner ([a749571](https://gitlab.com/roomle/web/roomle-ui/commit/a749571339b04599659f9950526d1db323f39a2c))
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roomle/embedding-lib",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.38.0",
|
|
4
4
|
"main": "roomle-configurator-api.es.min.js",
|
|
5
5
|
"types": "types/index.d.ts",
|
|
6
6
|
"author": "Roomle Development",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@roomle/web-sdk": "2.
|
|
8
|
+
"@roomle/web-sdk": "2.35.0-alpha.9"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@semantic-release/changelog": "^5.0.1",
|
package/types/index.d.ts
CHANGED
|
@@ -197,7 +197,7 @@ declare module "configurator/embedding/types" {
|
|
|
197
197
|
}
|
|
198
198
|
declare module "configurator/embedding/exposed-callbacks" {
|
|
199
199
|
import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
200
|
-
import { KernelPartList } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
200
|
+
import { KernelPartList, UiPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
201
201
|
import { RapiConfigurationEnhanced } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
202
202
|
import { UI_BUTTON } from "configurator/embedding/types";
|
|
203
203
|
import { Nullable } from "common/utils/types";
|
|
@@ -235,6 +235,12 @@ declare module "configurator/embedding/exposed-callbacks" {
|
|
|
235
235
|
*/
|
|
236
236
|
onButtonClicked: (name: UI_BUTTON) => Promise<boolean> | boolean | void;
|
|
237
237
|
onRequestPlan: (planId: string, image: Base64Image, items: any[]) => void;
|
|
238
|
+
/**
|
|
239
|
+
* Gets called if a plan object gets added, changed or removed
|
|
240
|
+
* Only the move of plan object does NOT trigger this function
|
|
241
|
+
* @param objects
|
|
242
|
+
*/
|
|
243
|
+
onPlanUpdate: (objects: UiPlanObject[]) => void;
|
|
238
244
|
}
|
|
239
245
|
}
|
|
240
246
|
declare module "configurator/store/core-state" {
|
|
@@ -453,7 +459,6 @@ declare module "planner/utils/planner-sidebar" {
|
|
|
453
459
|
import { SdkConnector } from "configurator/business-logic/sdk-connector";
|
|
454
460
|
import { RapiConfiguration, RapiItem } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
455
461
|
export interface PlannerSidebarState {
|
|
456
|
-
welcome: boolean;
|
|
457
462
|
catalog: boolean;
|
|
458
463
|
productList: boolean;
|
|
459
464
|
partList: boolean;
|
|
@@ -490,7 +495,6 @@ declare module "planner/store/planner-ui-state" {
|
|
|
490
495
|
lastWalls: KernelWall[];
|
|
491
496
|
}
|
|
492
497
|
export enum PLANNER_UI_STATE_MUTATIONS {
|
|
493
|
-
SET_SELECTION_PAYLOAD = "PLANNER_UI_STATE_setSelectionPayload",
|
|
494
498
|
SET_SELECTION = "PLANNER_UI_STATE_setSelection",
|
|
495
499
|
SET_IS_LANDSCAPE = "PLANNER_UI_STATE_setIsLandscape",
|
|
496
500
|
SET_INTERACTIONS_EXPANDED = "PLANNER_UI_STATE_setInteractionsExpanded",
|
|
@@ -512,7 +516,9 @@ declare module "planner/store/planner-ui-state" {
|
|
|
512
516
|
export enum PLANNER_UI_STATE_ACTIONS {
|
|
513
517
|
SELECT_VIEW_MODE = "PLANNER_UI_STATE_SELECT_VIEW_MODE",
|
|
514
518
|
SET_INTERACTIONS_EXPANDED = "PLANNER_UI_STATE_SET_INTERACTIONS_EXPANDED",
|
|
515
|
-
DESELECT_SIDEBAR_ACTION_BUTTONS = "DESELECT_SIDEBAR_ACTION_BUTTONS"
|
|
519
|
+
DESELECT_SIDEBAR_ACTION_BUTTONS = "DESELECT_SIDEBAR_ACTION_BUTTONS",
|
|
520
|
+
CLEAR_AND_CLOSE_SIDEBAR = "CLEAR_AND_CLOSE_SIDEBAR",
|
|
521
|
+
SET_SELECTION_PAYLOAD = "PLANNER_UI_STATE_setSelectionPayload"
|
|
516
522
|
}
|
|
517
523
|
export enum PLANNER_UI_STATE_GETTERS {
|
|
518
524
|
CATALOG_ROOT_TAG = "PLANNER_UI_STATE_CATALOG_ROOT_TAG",
|
|
@@ -741,7 +747,6 @@ declare module "common/store/index" {
|
|
|
741
747
|
SET_IS_IN_IFRAME: COMMON_UI_STATE_MUTATIONS.SET_IS_IN_IFRAME;
|
|
742
748
|
SET_IS_VIEW_ONLY: COMMON_UI_STATE_MUTATIONS.SET_IS_VIEW_ONLY;
|
|
743
749
|
SET_LAST_REQUESTED_ID: COMMON_UI_STATE_MUTATIONS.SET_LAST_REQUESTED_ID;
|
|
744
|
-
SET_SELECTION_PAYLOAD: PLANNER_UI_STATE_MUTATIONS.SET_SELECTION_PAYLOAD;
|
|
745
750
|
SET_SELECTION: PLANNER_UI_STATE_MUTATIONS.SET_SELECTION;
|
|
746
751
|
SET_IS_LANDSCAPE: PLANNER_UI_STATE_MUTATIONS.SET_IS_LANDSCAPE;
|
|
747
752
|
SET_INTERACTIONS_EXPANDED: PLANNER_UI_STATE_MUTATIONS.SET_INTERACTIONS_EXPANDED;
|
|
@@ -942,6 +947,7 @@ declare module "configurator/business-logic/roomle-sdk-wrapper" {
|
|
|
942
947
|
import { GlobalInitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
|
|
943
948
|
import { Planner } from '@roomle/web-sdk/lib/definitions/planner-core/src/planner';
|
|
944
949
|
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
950
|
+
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
945
951
|
/**
|
|
946
952
|
* We use this class in a plugin so we
|
|
947
953
|
* can rely on DI to change it during testing
|
|
@@ -953,6 +959,7 @@ declare module "configurator/business-logic/roomle-sdk-wrapper" {
|
|
|
953
959
|
private _currentInstance;
|
|
954
960
|
get hasPlanner(): boolean;
|
|
955
961
|
getConfigurator(element: HTMLElement, initData?: UiInitData): Promise<Configurator>;
|
|
962
|
+
getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<RoomleConfigurator>;
|
|
956
963
|
getGlbViewer(element: HTMLElement, initData?: UiInitData): Promise<GlbViewer>;
|
|
957
964
|
getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner>;
|
|
958
965
|
getRapiAccess(): Promise<RapiAccess>;
|
|
@@ -988,19 +995,28 @@ declare module "configurator/business-logic/ui-callback" {
|
|
|
988
995
|
onSelectionCancel: () => any;
|
|
989
996
|
}
|
|
990
997
|
}
|
|
998
|
+
declare module "common/business-logic/connector" {
|
|
999
|
+
import { RoomleSdkWrapper } from "configurator/business-logic/roomle-sdk-wrapper";
|
|
1000
|
+
import { UiInitData } from "configurator/embedding/types";
|
|
1001
|
+
import { CallbackApi } from "configurator/business-logic/sdk-connector";
|
|
1002
|
+
export abstract class Connector {
|
|
1003
|
+
abstract readonly api: Promise<any>;
|
|
1004
|
+
abstract init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
1005
|
+
addCallback<K extends keyof CallbackApi>(key: K, fun: CallbackApi[K], allowMultiple?: boolean): Promise<void>;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
991
1008
|
declare module "configurator/business-logic/sdk-connector-configurator" {
|
|
992
1009
|
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
993
1010
|
import { Nullable } from "common/utils/types";
|
|
994
|
-
import { Connector } from "configurator/business-logic/sdk-connector";
|
|
995
1011
|
import { UiInitData } from "configurator/embedding/types";
|
|
996
1012
|
import { StoreState } from "common/store/index";
|
|
997
1013
|
import { KernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
998
|
-
import ConfiguratorUiCallbacks from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
|
|
999
1014
|
import { Store } from 'vuex';
|
|
1000
1015
|
import { RoomleSdkWrapper } from "configurator/business-logic/roomle-sdk-wrapper";
|
|
1001
1016
|
import { Analytics } from "common/plugins/analytics";
|
|
1002
1017
|
import { UiCallbacks } from "configurator/business-logic/ui-callback";
|
|
1003
|
-
|
|
1018
|
+
import { Connector } from "common/business-logic/connector";
|
|
1019
|
+
export class SdkConnectorConfigurator extends Connector {
|
|
1004
1020
|
private _configurator;
|
|
1005
1021
|
private _initWaiters;
|
|
1006
1022
|
private _store;
|
|
@@ -1009,8 +1025,7 @@ declare module "configurator/business-logic/sdk-connector-configurator" {
|
|
|
1009
1025
|
constructor(store: Store<StoreState>, analytics?: Nullable<Analytics>);
|
|
1010
1026
|
get api(): Promise<RoomleConfigurator>;
|
|
1011
1027
|
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
1012
|
-
initConfigurator(configurator: RoomleConfigurator): void
|
|
1013
|
-
addCallback<K extends keyof ConfiguratorUiCallbacks>(key: K, fun: ConfiguratorUiCallbacks[K], allowMultiple?: boolean): void;
|
|
1028
|
+
initConfigurator(configurator: RoomleConfigurator): Promise<void>;
|
|
1014
1029
|
setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
|
|
1015
1030
|
setPrice(currencySymbol: string, price: number): void;
|
|
1016
1031
|
addUiCallback(listener: UiCallbacks): void;
|
|
@@ -1022,7 +1037,6 @@ declare module "configurator/business-logic/sdk-connector-configurator" {
|
|
|
1022
1037
|
}
|
|
1023
1038
|
}
|
|
1024
1039
|
declare module "viewer/business-logic/sdk-connector-viewer" {
|
|
1025
|
-
import { Connector } from "configurator/business-logic/sdk-connector";
|
|
1026
1040
|
import { Nullable } from "common/utils/types";
|
|
1027
1041
|
import { Store } from 'vuex';
|
|
1028
1042
|
import { StoreState } from "common/store/index";
|
|
@@ -1030,7 +1044,8 @@ declare module "viewer/business-logic/sdk-connector-viewer" {
|
|
|
1030
1044
|
import { RoomleSdkWrapper } from "configurator/business-logic/roomle-sdk-wrapper";
|
|
1031
1045
|
import { UiInitData } from "configurator/embedding/types";
|
|
1032
1046
|
import RoomleGLBViewer from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
|
|
1033
|
-
|
|
1047
|
+
import { Connector } from "common/business-logic/connector";
|
|
1048
|
+
export class SdkConnectorViewer extends Connector {
|
|
1034
1049
|
private _viewer;
|
|
1035
1050
|
private _initWaiters;
|
|
1036
1051
|
private _store;
|
|
@@ -1050,7 +1065,6 @@ declare module "common/utils/plan" {
|
|
|
1050
1065
|
export const EMPTY_PLAN = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><texters/><measures/><floors/><transparency><layers/></transparency></plan>";
|
|
1051
1066
|
}
|
|
1052
1067
|
declare module "planner/business-logic/sdk-connector-planner" {
|
|
1053
|
-
import { Connector } from "configurator/business-logic/sdk-connector";
|
|
1054
1068
|
import { Nullable } from "common/utils/types";
|
|
1055
1069
|
import { Store } from 'vuex';
|
|
1056
1070
|
import { StoreState } from "common/store/index";
|
|
@@ -1060,7 +1074,8 @@ declare module "planner/business-logic/sdk-connector-planner" {
|
|
|
1060
1074
|
import RoomlePlanner from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
1061
1075
|
import { RapiId, RapiPlan } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
1062
1076
|
import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
1063
|
-
|
|
1077
|
+
import { Connector } from "common/business-logic/connector";
|
|
1078
|
+
export class SdkConnectorPlanner extends Connector {
|
|
1064
1079
|
private _planner;
|
|
1065
1080
|
private _initWaiters;
|
|
1066
1081
|
private _store;
|
|
@@ -1071,7 +1086,7 @@ declare module "planner/business-logic/sdk-connector-planner" {
|
|
|
1071
1086
|
constructor(store: Store<StoreState>, analytics?: Nullable<Analytics>);
|
|
1072
1087
|
get api(): Promise<RoomlePlanner>;
|
|
1073
1088
|
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
1074
|
-
initPlanner(planner: RoomlePlanner): void
|
|
1089
|
+
initPlanner(planner: RoomlePlanner): Promise<void>;
|
|
1075
1090
|
loadPlan(id: RapiId): Promise<void>;
|
|
1076
1091
|
loadPlanBasedOnObjectId(id: RapiId): Promise<void>;
|
|
1077
1092
|
onSelectionCancel(): void;
|
|
@@ -1100,6 +1115,7 @@ declare module "configurator/business-logic/sdk-connector" {
|
|
|
1100
1115
|
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
1101
1116
|
import { UiCallbacks } from "configurator/business-logic/ui-callback";
|
|
1102
1117
|
import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
1118
|
+
import RoomlePlannerUiCallback from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
|
|
1103
1119
|
export enum SDK_MODULES {
|
|
1104
1120
|
VIEWER = 0,
|
|
1105
1121
|
CONFIGURATOR = 1,
|
|
@@ -1116,11 +1132,8 @@ declare module "configurator/business-logic/sdk-connector" {
|
|
|
1116
1132
|
partList: KernelPartList;
|
|
1117
1133
|
}
|
|
1118
1134
|
export const getSelectableEntry: (selected: Selectable, data: Selectable[]) => Nullable<Selectable>;
|
|
1119
|
-
export const REGISTERED_CALLBACKS: Map<keyof
|
|
1120
|
-
export
|
|
1121
|
-
readonly api: any;
|
|
1122
|
-
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
1123
|
-
}
|
|
1135
|
+
export const REGISTERED_CALLBACKS: Map<keyof CallbackApi, boolean>;
|
|
1136
|
+
export type CallbackApi = ConfiguratorUiCallbacks & RoomlePlannerUiCallback;
|
|
1124
1137
|
export class SdkConnector {
|
|
1125
1138
|
protected loadInProgress: boolean;
|
|
1126
1139
|
protected someLoadDone: boolean;
|
|
@@ -1180,8 +1193,7 @@ declare module "configurator/business-logic/sdk-connector" {
|
|
|
1180
1193
|
}): Promise<null>;
|
|
1181
1194
|
loadConfiguration(configurationId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
1182
1195
|
loadComponent(componentId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
1183
|
-
loadSelectedPlanObject(): Promise<
|
|
1184
|
-
loadPlanObjectId(configurationId: string, planObjectId: number): Promise<Nullable<LoadResponse>>;
|
|
1196
|
+
loadSelectedPlanObject(): Promise<void>;
|
|
1185
1197
|
loadConfigurationString(configurationString: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
1186
1198
|
loadConfigurableItem(configurableItemId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
1187
1199
|
isIdAGlb(id: string): Promise<boolean>;
|
|
@@ -1234,9 +1246,9 @@ declare module "configurator/embedding/exposed-api" {
|
|
|
1234
1246
|
import { Nullable } from "common/utils/types";
|
|
1235
1247
|
import { Analytics } from "common/plugins/analytics";
|
|
1236
1248
|
import RoomleGLBViewer from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
|
|
1237
|
-
import RoomlePlanner from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
1238
1249
|
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
1239
1250
|
import { Position3 } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
1251
|
+
import RoomlePlanner from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
1240
1252
|
export class ExposedApi {
|
|
1241
1253
|
private _sdk;
|
|
1242
1254
|
private _exposedCallbacks;
|
|
@@ -1314,6 +1326,7 @@ declare module "configurator/embedding/exposed-api" {
|
|
|
1314
1326
|
private _websiteReady;
|
|
1315
1327
|
private _handleMessage;
|
|
1316
1328
|
private _forwardSdkCallbacks;
|
|
1329
|
+
private _instanceOfRoomlePlanner;
|
|
1317
1330
|
}
|
|
1318
1331
|
}
|
|
1319
1332
|
declare module "common/utils/merge" {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RoomleSdkWrapper } from '@/configurator/business-logic/roomle-sdk-wrapper';
|
|
2
|
+
import { UiInitData } from '@/configurator/embedding/types';
|
|
3
|
+
import { CallbackApi } from '@/configurator/business-logic/sdk-connector';
|
|
4
|
+
export declare abstract class Connector {
|
|
5
|
+
abstract readonly api: Promise<any>;
|
|
6
|
+
abstract init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
7
|
+
addCallback<K extends keyof CallbackApi>(key: K, fun: CallbackApi[K], allowMultiple?: boolean): Promise<void>;
|
|
8
|
+
}
|
|
@@ -26,7 +26,6 @@ export declare const MUTATIONS: {
|
|
|
26
26
|
SET_IS_IN_IFRAME: COMMON_UI_STATE_MUTATIONS.SET_IS_IN_IFRAME;
|
|
27
27
|
SET_IS_VIEW_ONLY: COMMON_UI_STATE_MUTATIONS.SET_IS_VIEW_ONLY;
|
|
28
28
|
SET_LAST_REQUESTED_ID: COMMON_UI_STATE_MUTATIONS.SET_LAST_REQUESTED_ID;
|
|
29
|
-
SET_SELECTION_PAYLOAD: PLANNER_UI_STATE_MUTATIONS.SET_SELECTION_PAYLOAD;
|
|
30
29
|
SET_SELECTION: PLANNER_UI_STATE_MUTATIONS.SET_SELECTION;
|
|
31
30
|
SET_IS_LANDSCAPE: PLANNER_UI_STATE_MUTATIONS.SET_IS_LANDSCAPE;
|
|
32
31
|
SET_INTERACTIONS_EXPANDED: PLANNER_UI_STATE_MUTATIONS.SET_INTERACTIONS_EXPANDED;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Nullable } from '@/common/utils/types';
|
|
2
2
|
export declare const TOUCH_DRAG_TIMEOUT = 500;
|
|
3
|
+
export declare const TOUCH_DRAG_DELAY = 75;
|
|
4
|
+
export declare const TOUCH_DRAG_EPSILON = 10;
|
|
3
5
|
export interface TouchDragCallbacks {
|
|
4
6
|
onTouchDragStart: (payload: Nullable<any>, event: TouchEvent) => void;
|
|
5
7
|
}
|
|
@@ -8,12 +10,15 @@ export declare class TouchDrag<Payload> {
|
|
|
8
10
|
private _onTouchDragStart;
|
|
9
11
|
private _payload;
|
|
10
12
|
private _delay;
|
|
13
|
+
private _firstTouch;
|
|
14
|
+
private _lastTouch;
|
|
11
15
|
constructor(payload: Payload, { onTouchDragStart }: TouchDragCallbacks, options?: {
|
|
12
16
|
delay?: number;
|
|
13
17
|
});
|
|
14
18
|
onTouchStart(event: TouchEvent): void;
|
|
15
19
|
onTouchEnd(): void;
|
|
16
|
-
onTouchMove(
|
|
20
|
+
onTouchMove(event: TouchEvent): void;
|
|
17
21
|
private _clearTimeout;
|
|
18
22
|
private _resetTouches;
|
|
23
|
+
private _checkXDistance;
|
|
19
24
|
}
|
|
@@ -6,6 +6,7 @@ import { UiInitData } from '@/configurator/embedding/types';
|
|
|
6
6
|
import { GlobalInitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
|
|
7
7
|
import { Planner } from '@roomle/web-sdk/lib/definitions/planner-core/src/planner';
|
|
8
8
|
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
9
|
+
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
9
10
|
/**
|
|
10
11
|
* We use this class in a plugin so we
|
|
11
12
|
* can rely on DI to change it during testing
|
|
@@ -17,6 +18,7 @@ export declare class RoomleSdkWrapper {
|
|
|
17
18
|
private _currentInstance;
|
|
18
19
|
get hasPlanner(): boolean;
|
|
19
20
|
getConfigurator(element: HTMLElement, initData?: UiInitData): Promise<Configurator>;
|
|
21
|
+
getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<RoomleConfigurator>;
|
|
20
22
|
getGlbViewer(element: HTMLElement, initData?: UiInitData): Promise<GlbViewer>;
|
|
21
23
|
getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner>;
|
|
22
24
|
getRapiAccess(): Promise<RapiAccess>;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
2
2
|
import { Nullable } from '@/common/utils/types';
|
|
3
|
-
import { Connector } from '@/configurator/business-logic/sdk-connector';
|
|
4
3
|
import { UiInitData } from '@/configurator/embedding/types';
|
|
5
4
|
import { StoreState } from '@/common/store';
|
|
6
5
|
import { KernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
7
|
-
import ConfiguratorUiCallbacks from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
|
|
8
6
|
import { Store } from 'vuex';
|
|
9
7
|
import { RoomleSdkWrapper } from '@/configurator/business-logic/roomle-sdk-wrapper';
|
|
10
8
|
import { Analytics } from '@/common/plugins/analytics';
|
|
11
9
|
import { UiCallbacks } from '@/configurator/business-logic/ui-callback';
|
|
12
|
-
|
|
10
|
+
import { Connector } from '@/common/business-logic/connector';
|
|
11
|
+
export declare class SdkConnectorConfigurator extends Connector {
|
|
13
12
|
private _configurator;
|
|
14
13
|
private _initWaiters;
|
|
15
14
|
private _store;
|
|
@@ -18,8 +17,7 @@ export declare class SdkConnectorConfigurator implements Connector {
|
|
|
18
17
|
constructor(store: Store<StoreState>, analytics?: Nullable<Analytics>);
|
|
19
18
|
get api(): Promise<RoomleConfigurator>;
|
|
20
19
|
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
21
|
-
initConfigurator(configurator: RoomleConfigurator): void
|
|
22
|
-
addCallback<K extends keyof ConfiguratorUiCallbacks>(key: K, fun: ConfiguratorUiCallbacks[K], allowMultiple?: boolean): void;
|
|
20
|
+
initConfigurator(configurator: RoomleConfigurator): Promise<void>;
|
|
23
21
|
setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
|
|
24
22
|
setPrice(currencySymbol: string, price: number): void;
|
|
25
23
|
addUiCallback(listener: UiCallbacks): void;
|
|
@@ -18,6 +18,7 @@ import { RapiConfigurationEnhanced, RapiPlan } from '@roomle/web-sdk/lib/definit
|
|
|
18
18
|
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
19
19
|
import { UiCallbacks } from '@/configurator/business-logic/ui-callback';
|
|
20
20
|
import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
21
|
+
import RoomlePlannerUiCallback from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
|
|
21
22
|
export declare enum SDK_MODULES {
|
|
22
23
|
VIEWER = 0,
|
|
23
24
|
CONFIGURATOR = 1,
|
|
@@ -34,11 +35,8 @@ export interface PartlistResponse {
|
|
|
34
35
|
partList: KernelPartList;
|
|
35
36
|
}
|
|
36
37
|
export declare const getSelectableEntry: (selected: Selectable, data: Selectable[]) => Nullable<Selectable>;
|
|
37
|
-
export declare const REGISTERED_CALLBACKS: Map<keyof
|
|
38
|
-
export
|
|
39
|
-
readonly api: any;
|
|
40
|
-
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
41
|
-
}
|
|
38
|
+
export declare const REGISTERED_CALLBACKS: Map<keyof CallbackApi, boolean>;
|
|
39
|
+
export declare type CallbackApi = ConfiguratorUiCallbacks & RoomlePlannerUiCallback;
|
|
42
40
|
export declare class SdkConnector {
|
|
43
41
|
protected loadInProgress: boolean;
|
|
44
42
|
protected someLoadDone: boolean;
|
|
@@ -98,8 +96,7 @@ export declare class SdkConnector {
|
|
|
98
96
|
}): Promise<null>;
|
|
99
97
|
loadConfiguration(configurationId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
100
98
|
loadComponent(componentId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
101
|
-
loadSelectedPlanObject(): Promise<
|
|
102
|
-
loadPlanObjectId(configurationId: string, planObjectId: number): Promise<Nullable<LoadResponse>>;
|
|
99
|
+
loadSelectedPlanObject(): Promise<void>;
|
|
103
100
|
loadConfigurationString(configurationString: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
104
101
|
loadConfigurableItem(configurableItemId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
|
|
105
102
|
isIdAGlb(id: string): Promise<boolean>;
|
|
@@ -7,9 +7,9 @@ import { StoreState } from '@/common/store';
|
|
|
7
7
|
import { Nullable } from '@/common/utils/types';
|
|
8
8
|
import { Analytics } from '@/common/plugins/analytics';
|
|
9
9
|
import RoomleGLBViewer from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
|
|
10
|
-
import RoomlePlanner from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
11
10
|
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
12
11
|
import { Position3 } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
12
|
+
import RoomlePlanner from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
|
|
13
13
|
export declare class ExposedApi {
|
|
14
14
|
private _sdk;
|
|
15
15
|
private _exposedCallbacks;
|
|
@@ -87,4 +87,5 @@ export declare class ExposedApi {
|
|
|
87
87
|
private _websiteReady;
|
|
88
88
|
private _handleMessage;
|
|
89
89
|
private _forwardSdkCallbacks;
|
|
90
|
+
private _instanceOfRoomlePlanner;
|
|
90
91
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
|
|
2
|
-
import { KernelPartList } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
2
|
+
import { KernelPartList, UiPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
3
3
|
import { RapiConfigurationEnhanced } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
4
4
|
import { UI_BUTTON } from '@/configurator/embedding/types';
|
|
5
5
|
import { Nullable } from '@/common/utils/types';
|
|
@@ -37,4 +37,10 @@ export declare class ExposedCallbacks {
|
|
|
37
37
|
*/
|
|
38
38
|
onButtonClicked: (name: UI_BUTTON) => Promise<boolean> | boolean | void;
|
|
39
39
|
onRequestPlan: (planId: string, image: Base64Image, items: any[]) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Gets called if a plan object gets added, changed or removed
|
|
42
|
+
* Only the move of plan object does NOT trigger this function
|
|
43
|
+
* @param objects
|
|
44
|
+
*/
|
|
45
|
+
onPlanUpdate: (objects: UiPlanObject[]) => void;
|
|
40
46
|
}
|