@roomle/embedding-lib 4.43.0 → 5.0.1-debug.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/.releaserc.json +4 -7
- package/README.md +5 -6
- package/docs/md/web/embedding/CHANGELOG.md +8 -0
- package/{types/src/configurator/embedding/roomle-configurator-api.d.ts → index.d.ts} +26 -18
- package/package.json +27 -13
- package/roomle-embedding-lib.es.js +431 -0
- package/roomle-embedding-lib.es.min.js +8 -0
- package/roomle-embedding-lib.umd.js +8 -0
- package/roomle-embedding-lib.umd.min.js +8 -0
- package/docs/__sidebar__.json +0 -14
- package/docs/api/.nojekyll +0 -1
- package/docs/api/README.md +0 -9
- package/docs/api/classes/exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md +0 -47
- package/docs/api/classes/exposed_api.ExposedApi.md +0 -255
- package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +0 -195
- package/docs/api/classes/roomle_configurator_api.default.md +0 -211
- package/docs/api/enums/types.UI_BUTTON.md +0 -263
- 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 -1199
- package/docs/api/interfaces/types.VariantsMap.md +0 -9
- package/docs/api/modules/exposed_analytics_callbacks.md +0 -9
- package/docs/api/modules/exposed_api.md +0 -9
- package/docs/api/modules/exposed_callbacks.md +0 -14
- package/docs/api/modules/roomle_configurator_api.md +0 -49
- package/docs/api/modules/types.md +0 -16
- package/docs/api/modules.md +0 -13
- package/docs/examples/00_init.html +0 -38
- package/docs/examples/01_small_screen.html +0 -37
- package/docs/examples/02_resize_callback.html +0 -46
- package/docs/examples/03_instant_start.html +0 -38
- package/docs/examples/04_price.html +0 -48
- package/docs/examples/05_analytics.html +0 -38
- package/docs/examples/06_skinning.html +0 -39
- package/docs/examples/07_request_product.html +0 -41
- package/docs/examples/08_variants.html +0 -36
- package/docs/examples/09_different_products.html +0 -63
- package/docs/examples/10_landing_page.html +0 -38
- package/docs/examples/11_light_settings.html +0 -126
- package/docs/examples/12_email.html +0 -36
- package/docs/examples/13_parameters.html +0 -67
- package/docs/examples/14_ga_consent.html +0 -39
- package/docs/examples/roomle-configurator-api.es.min.js +0 -586
- package/docs/hsp.md +0 -61
- package/docs/images/parts.png +0 -0
- package/docs/images/usm-frames.png +0 -0
- package/docs/integration.md +0 -1101
- package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +0 -63
- package/docs/migration-guides/v2-to-v3.md +0 -135
- package/docs/moc/index.md +0 -86
- package/docs/simple.md +0 -25
- package/roomle-configurator-api.cjs.js +0 -585
- package/roomle-configurator-api.cjs.min.js +0 -1
- package/roomle-configurator-api.es.js +0 -583
- package/roomle-configurator-api.es.min.js +0 -1
- package/roomle-configurator-api.js +0 -583
- package/types/index.d.ts +0 -1500
- package/types/src/common/business-logic/connector.d.ts +0 -8
- package/types/src/common/business-logic/event-bus.d.ts +0 -5
- package/types/src/common/components/collection-view/-utils/types.d.ts +0 -10
- package/types/src/common/plugins/analytics.d.ts +0 -11
- package/types/src/common/plugins/localize.d.ts +0 -8
- package/types/src/common/store/collection-view-state.d.ts +0 -40
- package/types/src/common/store/common-ui-state.d.ts +0 -16
- package/types/src/common/store/index.d.ts +0 -111
- package/types/src/common/translations/local-translation-source.d.ts +0 -8
- package/types/src/common/utils/access-restriction.d.ts +0 -7
- package/types/src/common/utils/ar-service.d.ts +0 -14
- package/types/src/common/utils/bezier.d.ts +0 -2
- package/types/src/common/utils/browser.d.ts +0 -3
- package/types/src/common/utils/color.d.ts +0 -2
- package/types/src/common/utils/compatibility.d.ts +0 -3
- package/types/src/common/utils/dom.d.ts +0 -15
- package/types/src/common/utils/font-size-detector.d.ts +0 -1
- package/types/src/common/utils/google-analytics.d.ts +0 -67
- package/types/src/common/utils/helper.d.ts +0 -43
- package/types/src/common/utils/iframe.d.ts +0 -3
- package/types/src/common/utils/init-data.d.ts +0 -34
- package/types/src/common/utils/merge.d.ts +0 -16
- package/types/src/common/utils/parameters.d.ts +0 -18
- package/types/src/common/utils/performance.d.ts +0 -2
- package/types/src/common/utils/plan.d.ts +0 -1
- package/types/src/common/utils/script-loader.d.ts +0 -5
- package/types/src/common/utils/share.d.ts +0 -1
- package/types/src/common/utils/touch-drag.d.ts +0 -24
- package/types/src/common/utils/types.d.ts +0 -19
- package/types/src/common/utils/user-agent.d.ts +0 -6
- package/types/src/common/utils/variants.d.ts +0 -3
- package/types/src/configurator/ar/main.d.ts +0 -1
- package/types/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +0 -27
- package/types/src/configurator/business-logic/sdk-connector-configurator.d.ts +0 -29
- package/types/src/configurator/business-logic/sdk-connector.d.ts +0 -119
- package/types/src/configurator/business-logic/ui-callback.d.ts +0 -5
- package/types/src/configurator/components/-utils/overlays.d.ts +0 -43
- package/types/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +0 -16
- package/types/src/configurator/components/utils/-utils/SceneOffsetResizer.d.ts +0 -23
- package/types/src/configurator/embedding/example/main.d.ts +0 -1
- package/types/src/configurator/embedding/exposed-analytics-callbacks.d.ts +0 -10
- package/types/src/configurator/embedding/exposed-api.d.ts +0 -90
- package/types/src/configurator/embedding/exposed-callbacks.d.ts +0 -46
- package/types/src/configurator/embedding/helper.d.ts +0 -8
- package/types/src/configurator/embedding/message-handler.d.ts +0 -31
- package/types/src/configurator/embedding/types.d.ts +0 -159
- package/types/src/configurator/embedding/utils.d.ts +0 -15
- package/types/src/configurator/plugins/embedding-callbacks-plugin.d.ts +0 -4
- package/types/src/configurator/plugins/libs-plugin.d.ts +0 -11
- package/types/src/configurator/plugins/sdk-connector-plugin.d.ts +0 -14
- package/types/src/configurator/store/core-data.d.ts +0 -34
- package/types/src/configurator/store/core-state.d.ts +0 -26
- package/types/src/configurator/store/ui-state.d.ts +0 -118
- package/types/src/main.d.ts +0 -14
- package/types/src/planner/business-logic/general-room-parameters.d.ts +0 -17
- package/types/src/planner/business-logic/pre-defined-rooms.d.ts +0 -2
- package/types/src/planner/business-logic/rooms.d.ts +0 -37
- package/types/src/planner/business-logic/sdk-connector-planner.d.ts +0 -28
- package/types/src/planner/store/planner-core-data.d.ts +0 -21
- package/types/src/planner/store/planner-ui-state.d.ts +0 -61
- package/types/src/planner/utils/interaction.d.ts +0 -3
- package/types/src/planner/utils/planner-sidebar.d.ts +0 -19
- package/types/src/viewer/business-logic/sdk-connector-viewer.d.ts +0 -18
- package/types/tests/helpers/data/base-64-images.d.ts +0 -1
- package/types/tests/helpers/data/configurator.d.ts +0 -7
- package/types/tests/helpers/data/items.d.ts +0 -208
- package/types/tests/helpers/data/materials.d.ts +0 -32
- package/types/tests/helpers/data/parameter-groups.d.ts +0 -242
- package/types/tests/helpers/data/parameters.d.ts +0 -399
- package/types/tests/helpers/data/part-list.d.ts +0 -126
- package/types/tests/helpers/data/plan.d.ts +0 -224
- package/types/tests/helpers/data/planObject.d.ts +0 -134
- package/types/tests/helpers/data/possible-children-tags.d.ts +0 -208
- package/types/tests/helpers/data/variants.d.ts +0 -60
- package/types/tests/helpers/dom.d.ts +0 -1
- package/types/tests/helpers/mocks/analytics.d.ts +0 -7
- package/types/tests/helpers/mocks/data/biohort-parameter.d.ts +0 -32
- package/types/tests/helpers/mocks/data/koinor-formia.d.ts +0 -289
- package/types/tests/helpers/mocks/embedding-callbacks.d.ts +0 -4
- package/types/tests/helpers/mocks/icon.d.ts +0 -3
- package/types/tests/helpers/mocks/localize.d.ts +0 -8
- package/types/tests/helpers/mocks/message.d.ts +0 -11
- package/types/tests/helpers/mocks/parameters.d.ts +0 -47
- package/types/tests/helpers/mocks/possible-children.d.ts +0 -596
- package/types/tests/helpers/mocks/roomle-sdk-wrapper.d.ts +0 -177
- package/types/tests/helpers/mocks/sdk-connector-configurator.d.ts +0 -13
- package/types/tests/helpers/mocks/sdk-connector-planner.d.ts +0 -13
- package/types/tests/helpers/mocks/sdk-connector.d.ts +0 -35
- package/types/tests/helpers/mocks/store.d.ts +0 -11
- package/types/tests/helpers/mocks/tag.d.ts +0 -148
- package/types/tests/helpers/utils.d.ts +0 -13
- package/types/tests/integration/common/components/ActionButtons.spec.d.ts +0 -1
- package/types/tests/integration/common/components/BottomBar.spec.d.ts +0 -1
- package/types/tests/integration/common/components/BottomButtons.spec.d.ts +0 -1
- package/types/tests/integration/common/components/IconButton.spec.d.ts +0 -1
- package/types/tests/integration/common/components/SelectionButtons.spec.d.ts +0 -1
- package/types/tests/integration/common/components/part-list/part-list/PartListPrint.spec.d.ts +0 -1
- package/types/tests/integration/common/components/part-list/part-list/PartListRow.spec.d.ts +0 -1
- package/types/tests/integration/configurator/App.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/ARButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/ConfiguratorMain.spec.d.ts +0 -9
- package/types/tests/integration/configurator/components/CookieBanner.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/Overlays.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/TopBar.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/ViewerMain.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/addons/AddonsTrigger.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/addons/PossibleChildren.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/collection-view/-utils/TabbedNav.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/collection-view/CollectionView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/CollapsedView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/ExpandedView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/GridViewElement.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/GridViewHelper.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/GridView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/Export3D.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/NoDocking.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/PartList.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/SaveDraft.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/VariantWarning.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/ar/OpenARView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/BackParameterGroupButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/NextParameterGroupButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/ParameterGroupButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/ParameterGroups.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/MaterialParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/OptionsParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/OptionsParameterValue.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/ProductVariant.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/RangeParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/ThumbnailsParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/BackToWebsite.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/CheckBox.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/FullscreenContainer.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/GdprEmailInput.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/HeightToggle.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/ImageWithFallback.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/InteractionContainer.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/PopUp.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/ScrollHint.spec.d.ts +0 -1
- package/types/tests/integration/helper.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/CatalogTrigger.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/PlannerMain.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/PlannerSidebar.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/ProductListButton.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/SampleRooms.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/overlays/product-list/ProductListEntry.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/overlays/rooms/RoomGeneralSettings.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/overlays/rooms/RoomRangeParameter.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/utils/sidebar-nav/SidebarNav.spec.d.ts +0 -1
- package/types/tests/unit/common/business-logic/event-bus.spec.d.ts +0 -1
- package/types/tests/unit/common/helper.spec.d.ts +0 -1
- package/types/tests/unit/common/translations/local-translation-source.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/ar-service.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/bezier.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/color.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/dom.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/helper.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/init-data.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/parameters.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/touch-drag.spec.d.ts +0 -1
- package/types/tests/unit/configurator/business-logic/sdk-connector-configurator.spec.d.ts +0 -1
- package/types/tests/unit/configurator/business-logic/sdk-connector.spec.d.ts +0 -1
- package/types/tests/unit/configurator/components/utils/-utils/ConfiguratorResizer.spec.d.ts +0 -1
- package/types/tests/unit/configurator/components/utils/WordWrap.spec.d.ts +0 -1
- package/types/tests/unit/configurator/embedding/exposed-api.spec.d.ts +0 -1
- package/types/tests/unit/configurator/embedding/utils.spec.d.ts +0 -1
- package/types/tests/unit/configurator/store/index.spec.d.ts +0 -1
- package/types/tests/unit/planner/business-logic/sdk-connector-planner.spec.d.ts +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](../README.md) / [Modules](../modules.md) / exposed-analytics-callbacks
|
|
2
|
-
|
|
3
|
-
# Module: exposed-analytics-callbacks
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Classes
|
|
8
|
-
|
|
9
|
-
- [ExposedAnalyticsCallbacks](../classes/exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md)
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](../README.md) / [Modules](../modules.md) / exposed-callbacks
|
|
2
|
-
|
|
3
|
-
# Module: exposed-callbacks
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Classes
|
|
8
|
-
|
|
9
|
-
- [ExposedCallbacks](../classes/exposed_callbacks.ExposedCallbacks.md)
|
|
10
|
-
|
|
11
|
-
### Interfaces
|
|
12
|
-
|
|
13
|
-
- [Labels](../interfaces/exposed_callbacks.Labels.md)
|
|
14
|
-
- [Price](../interfaces/exposed_callbacks.Price.md)
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](../README.md) / [Modules](../modules.md) / roomle-configurator-api
|
|
2
|
-
|
|
3
|
-
# Module: roomle-configurator-api
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Classes
|
|
8
|
-
|
|
9
|
-
- [default](../classes/roomle_configurator_api.default.md)
|
|
10
|
-
|
|
11
|
-
### Interfaces
|
|
12
|
-
|
|
13
|
-
- [RoomleEmbeddingApiKeys](../interfaces/roomle_configurator_api.RoomleEmbeddingApiKeys.md)
|
|
14
|
-
|
|
15
|
-
### Type aliases
|
|
16
|
-
|
|
17
|
-
- [RoomleConfiguratorApi](roomle_configurator_api.md#roomleconfiguratorapi)
|
|
18
|
-
- [RoomlePlannerApi](roomle_configurator_api.md#roomleplannerapi)
|
|
19
|
-
- [RoomleViewerApi](roomle_configurator_api.md#roomleviewerapi)
|
|
20
|
-
|
|
21
|
-
## Type aliases
|
|
22
|
-
|
|
23
|
-
### RoomleConfiguratorApi
|
|
24
|
-
|
|
25
|
-
Ƭ **RoomleConfiguratorApi**: [`default`](../classes/roomle_configurator_api.default.md)<`RoomleConfigurator`, `ConfiguratorUiCallbacks`\>
|
|
26
|
-
|
|
27
|
-
#### Defined in
|
|
28
|
-
|
|
29
|
-
[src/configurator/embedding/roomle-configurator-api.ts:70](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/roomle-configurator-api.ts#L70)
|
|
30
|
-
|
|
31
|
-
___
|
|
32
|
-
|
|
33
|
-
### RoomlePlannerApi
|
|
34
|
-
|
|
35
|
-
Ƭ **RoomlePlannerApi**: [`default`](../classes/roomle_configurator_api.default.md)<`RoomlePlanner`, `ConfiguratorUiCallbacks`\>
|
|
36
|
-
|
|
37
|
-
#### Defined in
|
|
38
|
-
|
|
39
|
-
[src/configurator/embedding/roomle-configurator-api.ts:72](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/roomle-configurator-api.ts#L72)
|
|
40
|
-
|
|
41
|
-
___
|
|
42
|
-
|
|
43
|
-
### RoomleViewerApi
|
|
44
|
-
|
|
45
|
-
Ƭ **RoomleViewerApi**: [`default`](../classes/roomle_configurator_api.default.md)<`RoomleGLBViewer`, `ConfiguratorUiCallbacks`\>
|
|
46
|
-
|
|
47
|
-
#### Defined in
|
|
48
|
-
|
|
49
|
-
[src/configurator/embedding/roomle-configurator-api.ts:71](https://github.com/roomle-dev/roomle-ui/blob/2bf71fb3/src/configurator/embedding/roomle-configurator-api.ts#L71)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](../README.md) / [Modules](../modules.md) / types
|
|
2
|
-
|
|
3
|
-
# Module: types
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Enumerations
|
|
8
|
-
|
|
9
|
-
- [UI\_BUTTON](../enums/types.UI_BUTTON.md)
|
|
10
|
-
|
|
11
|
-
### Interfaces
|
|
12
|
-
|
|
13
|
-
- [ConfiguratorSettings](../interfaces/types.ConfiguratorSettings.md)
|
|
14
|
-
- [EmbeddingSkin](../interfaces/types.EmbeddingSkin.md)
|
|
15
|
-
- [UiInitData](../interfaces/types.UiInitData.md)
|
|
16
|
-
- [VariantsMap](../interfaces/types.VariantsMap.md)
|
package/docs/api/modules.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
[Embedding API Reference](README.md) / Modules
|
|
2
|
-
|
|
3
|
-
# Embedding API Reference
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
6
|
-
|
|
7
|
-
### Modules
|
|
8
|
-
|
|
9
|
-
- [exposed-analytics-callbacks](modules/exposed_analytics_callbacks.md)
|
|
10
|
-
- [exposed-api](modules/exposed_api.md)
|
|
11
|
-
- [exposed-callbacks](modules/exposed_callbacks.md)
|
|
12
|
-
- [roomle-configurator-api](modules/roomle_configurator_api.md)
|
|
13
|
-
- [types](modules/types.md)
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
}
|
|
8
|
-
.configurator-container {
|
|
9
|
-
width: 800px;
|
|
10
|
-
height: 600px;
|
|
11
|
-
}
|
|
12
|
-
</style>
|
|
13
|
-
</head>
|
|
14
|
-
|
|
15
|
-
<body>
|
|
16
|
-
<button id="button-to-load-product-x">Load Product X</button>
|
|
17
|
-
<div id="configurator-container-1" class="configurator-container"></div>
|
|
18
|
-
<div id="configurator-container-2" class="configurator-container"></div>
|
|
19
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
20
|
-
<script type="module">
|
|
21
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
22
|
-
(async ()=> {
|
|
23
|
-
const objectToLoadId = 'usm:frame:BB3BB3E7951BC15109B1FF86D78C95DE3FB46E9F78714C46FFA2DE91866A2C2B';
|
|
24
|
-
const configuratorId = 'demoConfigurator';
|
|
25
|
-
const domElement1 = document.getElementById('configurator-container-1');
|
|
26
|
-
const domElement2 = document.getElementById('configurator-container-2');
|
|
27
|
-
const configurator1 = await RoomleConfiguratorApi.createConfigurator(configuratorId, domElement1, {id: objectToLoadId});
|
|
28
|
-
// instantiate the second configurator, because you can now :-) and wait with the load of the object
|
|
29
|
-
// until the user clicks on a specific product
|
|
30
|
-
const configurator2 = await RoomleConfiguratorApi.createConfigurator(configuratorId, domElement2, {});
|
|
31
|
-
// load the object into the second configurator when the user clicks on a specific button
|
|
32
|
-
document.getElementById('button-to-load-product-x').addEventListener('click', () => {
|
|
33
|
-
configurator2.ui.loadObject(objectToLoadId);
|
|
34
|
-
});
|
|
35
|
-
})();
|
|
36
|
-
</script>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 800px;
|
|
11
|
-
height: 600px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<button>Start configure</button>
|
|
18
|
-
<div id="configurator-container"></div>
|
|
19
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
20
|
-
<script type="module">
|
|
21
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
22
|
-
(async ()=> {
|
|
23
|
-
const options = {
|
|
24
|
-
id: 'usm:frame',
|
|
25
|
-
buttons: {startconfigure: false}
|
|
26
|
-
};
|
|
27
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
28
|
-
'demoConfigurator',
|
|
29
|
-
document.getElementById('configurator-container'),
|
|
30
|
-
options,
|
|
31
|
-
);
|
|
32
|
-
const button = document.querySelector('button');
|
|
33
|
-
button.addEventListener('click', () => configurator.ui.startConfiguring());
|
|
34
|
-
})();
|
|
35
|
-
</script>
|
|
36
|
-
</body>
|
|
37
|
-
</html>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 800px;
|
|
11
|
-
height: 600px;
|
|
12
|
-
}
|
|
13
|
-
button {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
</head>
|
|
18
|
-
|
|
19
|
-
<body>
|
|
20
|
-
<button>Start configure</button>
|
|
21
|
-
<div id="configurator-container"></div>
|
|
22
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
23
|
-
<script type="module">
|
|
24
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
25
|
-
(async ()=> {
|
|
26
|
-
const options = {
|
|
27
|
-
id: 'usm:frame',
|
|
28
|
-
};
|
|
29
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
30
|
-
'demoConfigurator',
|
|
31
|
-
document.getElementById('configurator-container'),
|
|
32
|
-
options,
|
|
33
|
-
);
|
|
34
|
-
const button = document.querySelector('button');
|
|
35
|
-
configurator.ui.callbacks.onResize = (isDesktop) => {
|
|
36
|
-
if (!isDesktop) {
|
|
37
|
-
button.style.display = 'block';
|
|
38
|
-
} else {
|
|
39
|
-
button.style.display = 'none';
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
button.addEventListener('click', () => configurator.ui.startConfiguring());
|
|
43
|
-
})();
|
|
44
|
-
</script>
|
|
45
|
-
</body>
|
|
46
|
-
</html>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 800px;
|
|
11
|
-
height: 600px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<button>Start configure</button>
|
|
18
|
-
<div id="configurator-container"></div>
|
|
19
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
20
|
-
<script type="module">
|
|
21
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
22
|
-
(async ()=> {
|
|
23
|
-
const options = {
|
|
24
|
-
id: 'usm:frame',
|
|
25
|
-
};
|
|
26
|
-
const button = document.querySelector('button');
|
|
27
|
-
button.addEventListener('click', async () => {
|
|
28
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
29
|
-
'demoConfigurator',
|
|
30
|
-
document.getElementById('configurator-container'),
|
|
31
|
-
options,
|
|
32
|
-
);
|
|
33
|
-
configurator.ui.startConfiguring();
|
|
34
|
-
});
|
|
35
|
-
})();
|
|
36
|
-
</script>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 800px;
|
|
11
|
-
height: 600px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<div id="configurator-container"></div>
|
|
18
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
19
|
-
<script type="module">
|
|
20
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
21
|
-
(async ()=> {
|
|
22
|
-
const options = {
|
|
23
|
-
id: 'usm:frame',
|
|
24
|
-
};
|
|
25
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
26
|
-
'demoConfigurator',
|
|
27
|
-
document.getElementById('configurator-container'),
|
|
28
|
-
options,
|
|
29
|
-
);
|
|
30
|
-
// fake implementation of a database
|
|
31
|
-
// only for showcase purpose
|
|
32
|
-
const priceDataBase = {};
|
|
33
|
-
configurator.ui.callbacks.onPartListUpdate = (partList) => {
|
|
34
|
-
const parts = partList.fullList;
|
|
35
|
-
let priceSum = parts.reduce((sum, part) => {
|
|
36
|
-
if (!priceDataBase[part.articleNr]) {
|
|
37
|
-
priceDataBase[part.articleNr] = Math.random() * 10;
|
|
38
|
-
}
|
|
39
|
-
return sum += priceDataBase[part.articleNr];
|
|
40
|
-
}, 0);
|
|
41
|
-
const shippingCosts = 30;
|
|
42
|
-
// Tell the Roomle Configurator to show the current price
|
|
43
|
-
configurator.ui.setPrice('€', priceSum + shippingCosts);
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
46
|
-
</script>
|
|
47
|
-
</body>
|
|
48
|
-
</html>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 800px;
|
|
11
|
-
height: 600px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<div id="configurator-container"></div>
|
|
18
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
19
|
-
<script type="module">
|
|
20
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
21
|
-
(async ()=> {
|
|
22
|
-
const options = {
|
|
23
|
-
id: 'usm:frame',
|
|
24
|
-
};
|
|
25
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
26
|
-
'demoConfigurator',
|
|
27
|
-
document.getElementById('configurator-container'),
|
|
28
|
-
options,
|
|
29
|
-
);
|
|
30
|
-
const fakeGtag = () => undefined;
|
|
31
|
-
configurator.analytics.callbacks.onGATracking = function () {
|
|
32
|
-
console.log('Analytics event from iframe');
|
|
33
|
-
fakeGtag(...arguments);
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
</script>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 1024px;
|
|
11
|
-
height: 768px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<div id="configurator-container"></div>
|
|
18
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
19
|
-
<script type="module">
|
|
20
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
21
|
-
(async ()=> {
|
|
22
|
-
const options = {
|
|
23
|
-
id: 'usm:frame',
|
|
24
|
-
skin: {
|
|
25
|
-
'primary-color': '#1d68bd', // optional but please use a CSS RGB hex like #ff00ff if you want to rely on the color detection see explaination above
|
|
26
|
-
'color-on-primary': '#f4e440', // optional, Roomle can decide this for you
|
|
27
|
-
'cta-color': '#980d3f', // please use a CSS RGB hex like #ff00ff if you want to rely on the color detection see explaination above
|
|
28
|
-
'color-on-cta': '#8e8e8e', // optional, Roomle can decide this for you
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
32
|
-
'demoConfigurator',
|
|
33
|
-
document.getElementById('configurator-container'),
|
|
34
|
-
options,
|
|
35
|
-
);
|
|
36
|
-
})();
|
|
37
|
-
</script>
|
|
38
|
-
</body>
|
|
39
|
-
</html>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 1024px;
|
|
11
|
-
height: 768px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<div id="trigger-request">Trigger request</div>
|
|
18
|
-
<div id="configurator-container"></div>
|
|
19
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
20
|
-
<script type="module">
|
|
21
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
22
|
-
(async ()=> {
|
|
23
|
-
const options = {
|
|
24
|
-
id: 'usm:frame',
|
|
25
|
-
};
|
|
26
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
27
|
-
'demoConfigurator',
|
|
28
|
-
document.getElementById('configurator-container'),
|
|
29
|
-
options,
|
|
30
|
-
);
|
|
31
|
-
configurator.ui.callbacks.onRequestProduct = (configurationId, image, partlist, price, labels, configuration) => {
|
|
32
|
-
console.log(configurationId, image, partlist, price, labels, configuration);
|
|
33
|
-
};
|
|
34
|
-
document.getElementById('trigger-request').addEventListener('click', async () => {
|
|
35
|
-
await configurator.ui.triggerRequestProduct();
|
|
36
|
-
console.log('trigger-request-done');
|
|
37
|
-
});
|
|
38
|
-
})();
|
|
39
|
-
</script>
|
|
40
|
-
</body>
|
|
41
|
-
</html>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 1024px;
|
|
11
|
-
height: 768px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<div id="configurator-container"></div>
|
|
18
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
19
|
-
<script type="module">
|
|
20
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
21
|
-
(async ()=> {
|
|
22
|
-
const options = {
|
|
23
|
-
id: 'usm:frame',
|
|
24
|
-
variants: {
|
|
25
|
-
'usm:frame': 'DB_Start_ohne_Element'
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
29
|
-
'demoConfigurator',
|
|
30
|
-
document.getElementById('configurator-container'),
|
|
31
|
-
options,
|
|
32
|
-
);
|
|
33
|
-
})();
|
|
34
|
-
</script>
|
|
35
|
-
</body>
|
|
36
|
-
</html>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
.product {
|
|
10
|
-
width: 90px;
|
|
11
|
-
height: 90px;
|
|
12
|
-
margin: 10px;
|
|
13
|
-
background-color:azure;
|
|
14
|
-
border: 1px solid blue;
|
|
15
|
-
color: #090909;
|
|
16
|
-
text-align: center;
|
|
17
|
-
float: left;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
cursor: pointer;
|
|
21
|
-
}
|
|
22
|
-
.product div {
|
|
23
|
-
width: 100%;
|
|
24
|
-
}
|
|
25
|
-
#configurator-container {
|
|
26
|
-
width: 1024px;
|
|
27
|
-
height: 600px;
|
|
28
|
-
}
|
|
29
|
-
</style>
|
|
30
|
-
</head>
|
|
31
|
-
|
|
32
|
-
<body>
|
|
33
|
-
<div class="product" data-roomle-id="usm:frame:39F98154FEE57E476A65433664F29007583432D6B4DA75B9A2CBC6977EFD6BBE"><div>Product 1</div></div>
|
|
34
|
-
<div class="product" data-roomle-id="usm:frame:68AB2631D0E02A9FBBCA1371621CD23BB68818685738868D7DEB5B830BD5CD2D"><div>Product 2</div></div>
|
|
35
|
-
<div class="product" data-roomle-id="usm:frame:98CAB167BA04B19AFD9CF30A73ECE546B0541E03F9E40E1446B8378BAAD8BAB4"><div>Product 3</div></div>
|
|
36
|
-
<div id="configurator-container"></div>
|
|
37
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
38
|
-
<script type="module">
|
|
39
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
40
|
-
(async ()=> {
|
|
41
|
-
const options = {
|
|
42
|
-
id: 'usm:frame'
|
|
43
|
-
};
|
|
44
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
45
|
-
'demoConfigurator',
|
|
46
|
-
document.getElementById('configurator-container'),
|
|
47
|
-
options,
|
|
48
|
-
);
|
|
49
|
-
const buttons = document.querySelectorAll('.product');
|
|
50
|
-
[...buttons].forEach((button) => {
|
|
51
|
-
button.addEventListener('click', (productDomNode) => {
|
|
52
|
-
const target = productDomNode.target;
|
|
53
|
-
let roomleId = target.getAttribute('data-roomle-id') || target.parentElement.getAttribute('data-roomle-id');
|
|
54
|
-
if(!roomleId) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
configurator.ui.loadObject(roomleId);
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
})();
|
|
61
|
-
</script>
|
|
62
|
-
</body>
|
|
63
|
-
</html>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<style>
|
|
4
|
-
body {
|
|
5
|
-
margin: 0;
|
|
6
|
-
padding: 0;
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
9
|
-
#configurator-container {
|
|
10
|
-
width: 1024px;
|
|
11
|
-
height: 768px;
|
|
12
|
-
}
|
|
13
|
-
</style>
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
<div id="configurator-container"></div>
|
|
18
|
-
<script src="./roomle-configurator-api.es.min.js" type="module"></script>
|
|
19
|
-
<script type="module">
|
|
20
|
-
import RoomleConfiguratorApi from './roomle-configurator-api.es.min.js';
|
|
21
|
-
(async ()=> {
|
|
22
|
-
const options = {};
|
|
23
|
-
const configurator = await RoomleConfiguratorApi.createConfigurator(
|
|
24
|
-
'demoConfigurator',
|
|
25
|
-
document.getElementById('configurator-container'),
|
|
26
|
-
options,
|
|
27
|
-
);
|
|
28
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
29
|
-
const roomleId = urlParams.get('roomleId');
|
|
30
|
-
if(!roomleId) {
|
|
31
|
-
console.warn('Please add the query param roomleId to the URL, as test value you can use: usm:frame:68AB2631D0E02A9FBBCA1371621CD23BB68818685738868D7DEB5B830BD5CD2D');
|
|
32
|
-
return;
|
|
33
|
-
}
|
|
34
|
-
configurator.ui.loadObject(roomleId);
|
|
35
|
-
})();
|
|
36
|
-
</script>
|
|
37
|
-
</body>
|
|
38
|
-
</html>
|