@roomle/embedding-lib 4.44.0 → 5.1.0-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.
Files changed (234) hide show
  1. package/.releaserc.json +4 -7
  2. package/README.md +5 -6
  3. package/docs/md/web/embedding/CHANGELOG.md +6 -0
  4. package/drag-in-C2fEQF9W.mjs +7 -0
  5. package/drag-in-CAakt8yw.mjs +250 -0
  6. package/index.d.ts +102 -0
  7. package/package.json +27 -13
  8. package/roomle-embedding-lib.es.js +453 -0
  9. package/roomle-embedding-lib.es.min.js +8 -0
  10. package/roomle-embedding-lib.umd.js +14 -0
  11. package/roomle-embedding-lib.umd.min.js +14 -0
  12. package/docs/__sidebar__.json +0 -14
  13. package/docs/api/.nojekyll +0 -1
  14. package/docs/api/README.md +0 -9
  15. package/docs/api/classes/exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md +0 -47
  16. package/docs/api/classes/exposed_api.ExposedApi.md +0 -255
  17. package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +0 -195
  18. package/docs/api/classes/roomle_configurator_api.default.md +0 -211
  19. package/docs/api/enums/types.UI_BUTTON.md +0 -263
  20. package/docs/api/interfaces/exposed_callbacks.Labels.md +0 -32
  21. package/docs/api/interfaces/exposed_callbacks.Price.md +0 -32
  22. package/docs/api/interfaces/roomle_configurator_api.RoomleEmbeddingApiKeys.md +0 -58
  23. package/docs/api/interfaces/types.ConfiguratorSettings.md +0 -150
  24. package/docs/api/interfaces/types.EmbeddingSkin.md +0 -65
  25. package/docs/api/interfaces/types.UiInitData.md +0 -1199
  26. package/docs/api/interfaces/types.VariantsMap.md +0 -9
  27. package/docs/api/modules/exposed_analytics_callbacks.md +0 -9
  28. package/docs/api/modules/exposed_api.md +0 -9
  29. package/docs/api/modules/exposed_callbacks.md +0 -14
  30. package/docs/api/modules/roomle_configurator_api.md +0 -49
  31. package/docs/api/modules/types.md +0 -16
  32. package/docs/api/modules.md +0 -13
  33. package/docs/examples/00_init.html +0 -38
  34. package/docs/examples/01_small_screen.html +0 -37
  35. package/docs/examples/02_resize_callback.html +0 -46
  36. package/docs/examples/03_instant_start.html +0 -38
  37. package/docs/examples/04_price.html +0 -48
  38. package/docs/examples/05_analytics.html +0 -38
  39. package/docs/examples/06_skinning.html +0 -39
  40. package/docs/examples/07_request_product.html +0 -41
  41. package/docs/examples/08_variants.html +0 -36
  42. package/docs/examples/09_different_products.html +0 -63
  43. package/docs/examples/10_landing_page.html +0 -38
  44. package/docs/examples/11_light_settings.html +0 -126
  45. package/docs/examples/12_email.html +0 -36
  46. package/docs/examples/13_parameters.html +0 -67
  47. package/docs/examples/14_ga_consent.html +0 -39
  48. package/docs/examples/roomle-configurator-api.es.min.js +0 -586
  49. package/docs/hsp.md +0 -61
  50. package/docs/images/parts.png +0 -0
  51. package/docs/images/usm-frames.png +0 -0
  52. package/docs/integration.md +0 -1101
  53. package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +0 -17
  54. package/docs/migration-guides/v2-to-v3.md +0 -135
  55. package/docs/moc/index.md +0 -86
  56. package/docs/simple.md +0 -25
  57. package/roomle-configurator-api.cjs.js +0 -585
  58. package/roomle-configurator-api.cjs.min.js +0 -1
  59. package/roomle-configurator-api.es.js +0 -583
  60. package/roomle-configurator-api.es.min.js +0 -1
  61. package/roomle-configurator-api.js +0 -583
  62. package/types/index.d.ts +0 -1504
  63. package/types/src/common/business-logic/connector.d.ts +0 -8
  64. package/types/src/common/business-logic/event-bus.d.ts +0 -5
  65. package/types/src/common/components/collection-view/-utils/types.d.ts +0 -10
  66. package/types/src/common/plugins/analytics.d.ts +0 -11
  67. package/types/src/common/plugins/localize.d.ts +0 -8
  68. package/types/src/common/store/collection-view-state.d.ts +0 -40
  69. package/types/src/common/store/common-ui-state.d.ts +0 -16
  70. package/types/src/common/store/index.d.ts +0 -111
  71. package/types/src/common/translations/local-translation-source.d.ts +0 -8
  72. package/types/src/common/utils/access-restriction.d.ts +0 -7
  73. package/types/src/common/utils/ar-service.d.ts +0 -14
  74. package/types/src/common/utils/bezier.d.ts +0 -2
  75. package/types/src/common/utils/browser.d.ts +0 -3
  76. package/types/src/common/utils/color.d.ts +0 -2
  77. package/types/src/common/utils/compatibility.d.ts +0 -3
  78. package/types/src/common/utils/dom.d.ts +0 -15
  79. package/types/src/common/utils/font-size-detector.d.ts +0 -1
  80. package/types/src/common/utils/google-analytics.d.ts +0 -67
  81. package/types/src/common/utils/helper.d.ts +0 -43
  82. package/types/src/common/utils/iframe.d.ts +0 -3
  83. package/types/src/common/utils/init-data.d.ts +0 -34
  84. package/types/src/common/utils/merge.d.ts +0 -16
  85. package/types/src/common/utils/parameters.d.ts +0 -18
  86. package/types/src/common/utils/performance.d.ts +0 -2
  87. package/types/src/common/utils/plan.d.ts +0 -1
  88. package/types/src/common/utils/script-loader.d.ts +0 -5
  89. package/types/src/common/utils/share.d.ts +0 -1
  90. package/types/src/common/utils/touch-drag.d.ts +0 -24
  91. package/types/src/common/utils/types.d.ts +0 -19
  92. package/types/src/common/utils/user-agent.d.ts +0 -6
  93. package/types/src/common/utils/variants.d.ts +0 -3
  94. package/types/src/configurator/ar/main.d.ts +0 -1
  95. package/types/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +0 -27
  96. package/types/src/configurator/business-logic/sdk-connector-configurator.d.ts +0 -29
  97. package/types/src/configurator/business-logic/sdk-connector.d.ts +0 -119
  98. package/types/src/configurator/business-logic/ui-callback.d.ts +0 -5
  99. package/types/src/configurator/components/-utils/overlays.d.ts +0 -43
  100. package/types/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +0 -16
  101. package/types/src/configurator/components/utils/-utils/SceneOffsetResizer.d.ts +0 -23
  102. package/types/src/configurator/embedding/example/main.d.ts +0 -1
  103. package/types/src/configurator/embedding/exposed-analytics-callbacks.d.ts +0 -10
  104. package/types/src/configurator/embedding/exposed-api.d.ts +0 -90
  105. package/types/src/configurator/embedding/exposed-callbacks.d.ts +0 -46
  106. package/types/src/configurator/embedding/helper.d.ts +0 -8
  107. package/types/src/configurator/embedding/message-handler.d.ts +0 -31
  108. package/types/src/configurator/embedding/roomle-configurator-api.d.ts +0 -64
  109. package/types/src/configurator/embedding/types.d.ts +0 -159
  110. package/types/src/configurator/embedding/utils.d.ts +0 -15
  111. package/types/src/configurator/plugins/embedding-callbacks-plugin.d.ts +0 -4
  112. package/types/src/configurator/plugins/libs-plugin.d.ts +0 -11
  113. package/types/src/configurator/plugins/sdk-connector-plugin.d.ts +0 -14
  114. package/types/src/configurator/store/core-data.d.ts +0 -34
  115. package/types/src/configurator/store/core-state.d.ts +0 -26
  116. package/types/src/configurator/store/ui-state.d.ts +0 -118
  117. package/types/src/main.d.ts +0 -14
  118. package/types/src/planner/business-logic/general-room-parameters.d.ts +0 -17
  119. package/types/src/planner/business-logic/pre-defined-rooms.d.ts +0 -2
  120. package/types/src/planner/business-logic/rooms.d.ts +0 -37
  121. package/types/src/planner/business-logic/sdk-connector-planner.d.ts +0 -28
  122. package/types/src/planner/store/planner-core-data.d.ts +0 -21
  123. package/types/src/planner/store/planner-ui-state.d.ts +0 -65
  124. package/types/src/planner/utils/interaction.d.ts +0 -3
  125. package/types/src/planner/utils/planner-sidebar.d.ts +0 -19
  126. package/types/src/viewer/business-logic/sdk-connector-viewer.d.ts +0 -18
  127. package/types/tests/helpers/data/base-64-images.d.ts +0 -1
  128. package/types/tests/helpers/data/configurator.d.ts +0 -7
  129. package/types/tests/helpers/data/items.d.ts +0 -208
  130. package/types/tests/helpers/data/materials.d.ts +0 -32
  131. package/types/tests/helpers/data/parameter-groups.d.ts +0 -242
  132. package/types/tests/helpers/data/parameters.d.ts +0 -399
  133. package/types/tests/helpers/data/part-list.d.ts +0 -126
  134. package/types/tests/helpers/data/plan.d.ts +0 -224
  135. package/types/tests/helpers/data/planObject.d.ts +0 -134
  136. package/types/tests/helpers/data/possible-children-tags.d.ts +0 -208
  137. package/types/tests/helpers/data/variants.d.ts +0 -60
  138. package/types/tests/helpers/data/wall-dimensions.d.ts +0 -41
  139. package/types/tests/helpers/dom.d.ts +0 -1
  140. package/types/tests/helpers/mocks/analytics.d.ts +0 -7
  141. package/types/tests/helpers/mocks/data/biohort-parameter.d.ts +0 -32
  142. package/types/tests/helpers/mocks/data/koinor-formia.d.ts +0 -289
  143. package/types/tests/helpers/mocks/embedding-callbacks.d.ts +0 -4
  144. package/types/tests/helpers/mocks/icon.d.ts +0 -3
  145. package/types/tests/helpers/mocks/localize.d.ts +0 -8
  146. package/types/tests/helpers/mocks/message.d.ts +0 -11
  147. package/types/tests/helpers/mocks/parameters.d.ts +0 -47
  148. package/types/tests/helpers/mocks/possible-children.d.ts +0 -596
  149. package/types/tests/helpers/mocks/roomle-sdk-wrapper.d.ts +0 -177
  150. package/types/tests/helpers/mocks/sdk-connector-configurator.d.ts +0 -13
  151. package/types/tests/helpers/mocks/sdk-connector-planner.d.ts +0 -13
  152. package/types/tests/helpers/mocks/sdk-connector.d.ts +0 -35
  153. package/types/tests/helpers/mocks/store.d.ts +0 -11
  154. package/types/tests/helpers/mocks/tag.d.ts +0 -148
  155. package/types/tests/helpers/utils.d.ts +0 -13
  156. package/types/tests/integration/common/components/ActionButtons.spec.d.ts +0 -1
  157. package/types/tests/integration/common/components/BottomBar.spec.d.ts +0 -1
  158. package/types/tests/integration/common/components/BottomButtons.spec.d.ts +0 -1
  159. package/types/tests/integration/common/components/IconButton.spec.d.ts +0 -1
  160. package/types/tests/integration/common/components/SelectionButtons.spec.d.ts +0 -1
  161. package/types/tests/integration/common/components/part-list/part-list/PartListPrint.spec.d.ts +0 -1
  162. package/types/tests/integration/common/components/part-list/part-list/PartListRow.spec.d.ts +0 -1
  163. package/types/tests/integration/configurator/App.spec.d.ts +0 -1
  164. package/types/tests/integration/configurator/components/ARButton.spec.d.ts +0 -1
  165. package/types/tests/integration/configurator/components/ConfiguratorMain.spec.d.ts +0 -9
  166. package/types/tests/integration/configurator/components/CookieBanner.spec.d.ts +0 -1
  167. package/types/tests/integration/configurator/components/Overlays.spec.d.ts +0 -1
  168. package/types/tests/integration/configurator/components/TopBar.spec.d.ts +0 -1
  169. package/types/tests/integration/configurator/components/ViewerMain.spec.d.ts +0 -1
  170. package/types/tests/integration/configurator/components/addons/AddonsTrigger.spec.d.ts +0 -1
  171. package/types/tests/integration/configurator/components/addons/PossibleChildren.spec.d.ts +0 -1
  172. package/types/tests/integration/configurator/components/collection-view/-utils/TabbedNav.spec.d.ts +0 -1
  173. package/types/tests/integration/configurator/components/collection-view/CollectionView.spec.d.ts +0 -1
  174. package/types/tests/integration/configurator/components/grid-view/-utils/CollapsedView.spec.d.ts +0 -1
  175. package/types/tests/integration/configurator/components/grid-view/-utils/ExpandedView.spec.d.ts +0 -1
  176. package/types/tests/integration/configurator/components/grid-view/-utils/GridViewElement.spec.d.ts +0 -1
  177. package/types/tests/integration/configurator/components/grid-view/-utils/GridViewHelper.spec.d.ts +0 -1
  178. package/types/tests/integration/configurator/components/grid-view/GridView.spec.d.ts +0 -1
  179. package/types/tests/integration/configurator/components/overlays/Export3D.spec.d.ts +0 -1
  180. package/types/tests/integration/configurator/components/overlays/NoDocking.spec.d.ts +0 -1
  181. package/types/tests/integration/configurator/components/overlays/PartList.spec.d.ts +0 -1
  182. package/types/tests/integration/configurator/components/overlays/SaveDraft.spec.d.ts +0 -1
  183. package/types/tests/integration/configurator/components/overlays/VariantWarning.spec.d.ts +0 -1
  184. package/types/tests/integration/configurator/components/overlays/ar/OpenARView.spec.d.ts +0 -1
  185. package/types/tests/integration/configurator/components/parameters/BackParameterGroupButton.spec.d.ts +0 -1
  186. package/types/tests/integration/configurator/components/parameters/NextParameterGroupButton.spec.d.ts +0 -1
  187. package/types/tests/integration/configurator/components/parameters/ParameterGroupButton.spec.d.ts +0 -1
  188. package/types/tests/integration/configurator/components/parameters/ParameterGroups.spec.d.ts +0 -1
  189. package/types/tests/integration/configurator/components/parameters/types/MaterialParameter.spec.d.ts +0 -1
  190. package/types/tests/integration/configurator/components/parameters/types/OptionsParameter.spec.d.ts +0 -1
  191. package/types/tests/integration/configurator/components/parameters/types/OptionsParameterValue.spec.d.ts +0 -1
  192. package/types/tests/integration/configurator/components/parameters/types/ProductVariant.spec.d.ts +0 -1
  193. package/types/tests/integration/configurator/components/parameters/types/RangeParameter.spec.d.ts +0 -1
  194. package/types/tests/integration/configurator/components/parameters/types/ThumbnailsParameter.spec.d.ts +0 -1
  195. package/types/tests/integration/configurator/components/utils/BackToWebsite.spec.d.ts +0 -1
  196. package/types/tests/integration/configurator/components/utils/CheckBox.spec.d.ts +0 -1
  197. package/types/tests/integration/configurator/components/utils/FullscreenContainer.spec.d.ts +0 -1
  198. package/types/tests/integration/configurator/components/utils/GdprEmailInput.spec.d.ts +0 -1
  199. package/types/tests/integration/configurator/components/utils/HeightToggle.spec.d.ts +0 -1
  200. package/types/tests/integration/configurator/components/utils/ImageWithFallback.spec.d.ts +0 -1
  201. package/types/tests/integration/configurator/components/utils/InteractionContainer.spec.d.ts +0 -1
  202. package/types/tests/integration/configurator/components/utils/PopUp.spec.d.ts +0 -1
  203. package/types/tests/integration/configurator/components/utils/ScrollHint.spec.d.ts +0 -1
  204. package/types/tests/integration/helper.spec.d.ts +0 -1
  205. package/types/tests/integration/planner/components/CatalogTrigger.spec.d.ts +0 -1
  206. package/types/tests/integration/planner/components/PlannerMain.spec.d.ts +0 -1
  207. package/types/tests/integration/planner/components/PlannerSidebar.spec.d.ts +0 -1
  208. package/types/tests/integration/planner/components/ProductListButton.spec.d.ts +0 -1
  209. package/types/tests/integration/planner/components/SampleRooms.spec.d.ts +0 -1
  210. package/types/tests/integration/planner/components/ShowWallMeasurements.spec.d.ts +0 -1
  211. package/types/tests/integration/planner/components/overlays/product-list/ProductListEntry.spec.d.ts +0 -1
  212. package/types/tests/integration/planner/components/overlays/rooms/RoomGeneralSettings.spec.d.ts +0 -1
  213. package/types/tests/integration/planner/components/overlays/rooms/RoomRangeParameter.spec.d.ts +0 -1
  214. package/types/tests/integration/planner/components/utils/InteractionHeader.spec.d.ts +0 -1
  215. package/types/tests/integration/planner/components/utils/sidebar-nav/SidebarNav.spec.d.ts +0 -1
  216. package/types/tests/unit/common/business-logic/event-bus.spec.d.ts +0 -1
  217. package/types/tests/unit/common/helper.spec.d.ts +0 -1
  218. package/types/tests/unit/common/translations/local-translation-source.spec.d.ts +0 -1
  219. package/types/tests/unit/common/utils/ar-service.spec.d.ts +0 -1
  220. package/types/tests/unit/common/utils/bezier.spec.d.ts +0 -1
  221. package/types/tests/unit/common/utils/color.spec.d.ts +0 -1
  222. package/types/tests/unit/common/utils/dom.spec.d.ts +0 -1
  223. package/types/tests/unit/common/utils/helper.spec.d.ts +0 -1
  224. package/types/tests/unit/common/utils/init-data.spec.d.ts +0 -1
  225. package/types/tests/unit/common/utils/parameters.spec.d.ts +0 -1
  226. package/types/tests/unit/common/utils/touch-drag.spec.d.ts +0 -1
  227. package/types/tests/unit/configurator/business-logic/sdk-connector-configurator.spec.d.ts +0 -1
  228. package/types/tests/unit/configurator/business-logic/sdk-connector.spec.d.ts +0 -1
  229. package/types/tests/unit/configurator/components/utils/-utils/ConfiguratorResizer.spec.d.ts +0 -1
  230. package/types/tests/unit/configurator/components/utils/WordWrap.spec.d.ts +0 -1
  231. package/types/tests/unit/configurator/embedding/exposed-api.spec.d.ts +0 -1
  232. package/types/tests/unit/configurator/embedding/utils.spec.d.ts +0 -1
  233. package/types/tests/unit/configurator/store/index.spec.d.ts +0 -1
  234. package/types/tests/unit/planner/business-logic/sdk-connector-planner.spec.d.ts +0 -1
@@ -1,119 +0,0 @@
1
- import { Store } from 'vuex';
2
- import { StoreState } from '@/common/store';
3
- import { Nullable } from '@/common/utils/types';
4
- import { KernelParameter, KernelPartList, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
5
- import ConfiguratorUiCallbacks from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
6
- import { Analytics } from '@/common/plugins/analytics';
7
- import { RoomleSdkWrapper } from '@/configurator/business-logic/roomle-sdk-wrapper';
8
- import RoomleGLBViewer from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
9
- import RapiAccess from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
10
- import type { MessageHandler } from '@/configurator/embedding/message-handler';
11
- import type { ExposedCallbacks } from '@/configurator/embedding/exposed-callbacks';
12
- import { UiInitData } from '@/configurator/embedding/types';
13
- import RoomlePlanner from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
14
- import { SdkConnectorConfigurator } from '@/configurator/business-logic/sdk-connector-configurator';
15
- import { SdkConnectorViewer } from '@/viewer/business-logic/sdk-connector-viewer';
16
- import { SdkConnectorPlanner } from '@/planner/business-logic/sdk-connector-planner';
17
- import { RapiConfigurationEnhanced, RapiPlan } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
18
- import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
19
- import { UiCallbacks } from '@/configurator/business-logic/ui-callback';
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';
22
- export declare enum SDK_MODULES {
23
- VIEWER = 0,
24
- CONFIGURATOR = 1,
25
- PLANNER = 2
26
- }
27
- export interface Selectable {
28
- key: string;
29
- }
30
- export interface UiPossibleChildTagWithKey extends UiPossibleChildTag {
31
- key: string;
32
- }
33
- export declare type LoadResponse = PartlistResponse | void;
34
- export interface PartlistResponse {
35
- partList: KernelPartList;
36
- }
37
- export declare const getSelectableEntry: (selected: Selectable, data: Selectable[]) => Nullable<Selectable>;
38
- export declare const REGISTERED_CALLBACKS: Map<keyof CallbackApi, boolean>;
39
- export declare type CallbackApi = ConfiguratorUiCallbacks & RoomlePlannerUiCallback;
40
- export declare class SdkConnector {
41
- protected loadInProgress: boolean;
42
- protected someLoadDone: boolean;
43
- private _store;
44
- private _loadWaiters;
45
- private _analytics;
46
- private _sdkWrapper;
47
- private _messageHandler;
48
- private _embeddingCallbacks;
49
- private _initWaitersConfiguratorConnector;
50
- private _initWaitersViewerConnector;
51
- private _initWaitersPlannerConnector;
52
- private _waitForCanvasElementCallback;
53
- private _canvasElement;
54
- private _configuratorSettingsCache;
55
- private _connectorConfigurator;
56
- private _connectorViewer;
57
- private _connectorPlanner;
58
- get configuratorConnector(): Promise<SdkConnectorConfigurator>;
59
- get viewerConnector(): Promise<SdkConnectorViewer>;
60
- get plannerConnector(): Promise<SdkConnectorPlanner>;
61
- get configuratorApi(): Promise<RoomleConfigurator>;
62
- get plannerApi(): Promise<RoomlePlanner>;
63
- get viewerApi(): Promise<RoomleGLBViewer>;
64
- constructor(sdkWrapper: RoomleSdkWrapper, store: Store<StoreState>, analytics?: Nullable<Analytics>, embeddingCallbacks?: Nullable<ExposedCallbacks>);
65
- setMessageHandler(messageHandler: MessageHandler): void;
66
- createExposedApi(module: SDK_MODULES): Promise<void>;
67
- getRapiAccess(): Promise<RapiAccess>;
68
- waitForLoad(): Promise<Nullable<LoadResponse>>;
69
- goBack(): Promise<void>;
70
- /**
71
- * @deprecated use .configuratorConnector.then((connector) => connector.addUiCallback(listener))
72
- * @param listener
73
- */
74
- addUiCallback(listener: UiCallbacks): void;
75
- /**
76
- * @deprecated use configuratorConnector.then((connector) => connector.removeUiCallback(listener))
77
- * @param listener
78
- */
79
- removeUiCallback(listener: UiCallbacks): void;
80
- setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
81
- hasActivePackage(): Promise<boolean>;
82
- isCorrectConfiguratorDomain(configuratorId: string): Promise<boolean>;
83
- /**
84
- * Load a object which can be one of the following:
85
- * - Component (use your component id and prefix it with 'component:', e.g. component:demoCatalogId:externalMeshes)
86
- * - Plan
87
- * - Static item (e.g. GLB)
88
- * - Configurable Item
89
- * - Configuration
90
- * @param id
91
- */
92
- loadObject(id: string): Promise<Nullable<LoadResponse>>;
93
- loadStaticItem(id: Nullable<string>): Promise<null>;
94
- loadPlan(id: Nullable<string>, options?: {
95
- isObjectId?: boolean;
96
- }): Promise<null>;
97
- loadConfiguration(configurationId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
98
- loadComponent(componentId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
99
- loadSelectedPlanObject(): Promise<void>;
100
- loadConfigurationString(configurationString: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
101
- loadConfigurableItem(configurableItemId: string, initData?: UiInitData | undefined): Promise<Nullable<LoadResponse>>;
102
- isIdAGlb(id: string): Promise<boolean>;
103
- canvasElementReady(element: HTMLElement): void;
104
- initCanvasElement(module: SDK_MODULES): Promise<void>;
105
- getTenant(): Promise<import("@roomle/web-sdk/lib/definitions/typings/rapi-types").RapiTenant>;
106
- saveCurrentConfiguration(): Promise<RapiConfigurationEnhanced>;
107
- giveGaConsent(): void;
108
- get hasPlanner(): boolean;
109
- saveCurrentObject(): Promise<RapiPlan | RapiConfigurationEnhanced>;
110
- preparePerspectiveImage(): Promise<Base64Image>;
111
- finishLoading(kernelParts: Nullable<LoadResponse>): void;
112
- private _waitForCanvasElement;
113
- private _needsInit;
114
- private _fetchVariants;
115
- private _execLoadingConfiguratorProcess;
116
- private _startLoading;
117
- private _showGenericError;
118
- private _selectFirstObjAndStartConfiguring;
119
- }
@@ -1,5 +0,0 @@
1
- import { KernelComponent } from '@roomle/web-sdk/lib/definitions/typings/kernel';
2
- export declare class UiCallbacks {
3
- onSelectionChange: (_selectionMode: string, _isRoot: boolean, _hasChildren: boolean, _components: KernelComponent[]) => any;
4
- onSelectionCancel: () => any;
5
- }
@@ -1,43 +0,0 @@
1
- export declare enum OVERLAYS {
2
- NO_DOCKING = 0,
3
- SAVE_DRAFT = 1,
4
- VARIANT_WARNING = 2,
5
- OPEN_AR = 3,
6
- EXPORT_3D = 4,
7
- ELEMENT_DISABLED = 5,
8
- DELETE_WARNING = 6,
9
- GENERIC_ERROR = 7
10
- }
11
- export interface OverlayState {
12
- open: boolean;
13
- payload?: any;
14
- }
15
- export declare type OverlaysOpenState = {
16
- [key in OVERLAYS]: OverlayState;
17
- };
18
- export declare const initialOverlaysState: {
19
- 0: {
20
- open: boolean;
21
- };
22
- 1: {
23
- open: boolean;
24
- };
25
- 2: {
26
- open: boolean;
27
- };
28
- 3: {
29
- open: boolean;
30
- };
31
- 4: {
32
- open: boolean;
33
- };
34
- 5: {
35
- open: boolean;
36
- };
37
- 6: {
38
- open: boolean;
39
- };
40
- 7: {
41
- open: boolean;
42
- };
43
- };
@@ -1,16 +0,0 @@
1
- import { RapiItem, RapiMaterial } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
2
- import { KernelValue, UiPossibleChild } from '@roomle/web-sdk/lib/definitions/typings/kernel';
3
- import { Nullable } from '@/common/utils/types';
4
- export interface GridViewElement<T = (RapiMaterial | KernelValue | UiPossibleChild | RapiItem)> {
5
- key: string;
6
- payload: T;
7
- }
8
- export interface GridViewVariantElement extends GridViewElement {
9
- hash: string;
10
- }
11
- export interface GridViewGroup {
12
- id: string;
13
- label: Nullable<string>;
14
- elements: GridViewElement[];
15
- }
16
- export declare const toGridViewElements: <T = RapiItem | RapiMaterial | UiPossibleChild | KernelValue>(elements: T[], key: string) => GridViewElement<T>[];
@@ -1,23 +0,0 @@
1
- import { CanvasOffset } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
2
- import { GlobalAPI } from '@roomle/web-sdk/lib/definitions/common-core/src/main';
3
- export interface SceneOffsetResizerCallback {
4
- onStart: () => void;
5
- onProgress: (remaining: CanvasOffset) => void;
6
- onFinished: () => void;
7
- }
8
- export declare class SceneOffsetResizer {
9
- static getCameraOffset(parentWidth: number, width: number, parentHeight: number, height: number, isFullscreenOrMobileLandscape: boolean, isExpanded: boolean, isDesktop: boolean, hasGroups: boolean): CanvasOffset;
10
- private _api;
11
- private _targetOffset;
12
- private _startOffset;
13
- private _distance;
14
- private _startTime;
15
- private _duration;
16
- constructor(api: GlobalAPI);
17
- animateOffset(target: CanvasOffset, duration: number, callback?: SceneOffsetResizerCallback): void;
18
- private _resize;
19
- private _addOffsets;
20
- private _multiplyScalar;
21
- private _easeInOutBezier;
22
- private _getRemainingDistance;
23
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- export declare class ExposedAnalyticsCallbacks {
2
- /**
3
- * Is called whenever something is sent to google analytics
4
- * Possible parameters are everything which is possible in gtag.js
5
- * If you need further details about gtag.js: https://developers.google.com/gtagjs
6
- * Currently we use Google Analytics in combination with gtag.js so
7
- * you can intercept events and send them to your own analytics tool
8
- */
9
- onGATracking: (..._args: any[]) => void;
10
- }
@@ -1,90 +0,0 @@
1
- import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
2
- import { ExposedCallbacks } from '@/configurator/embedding/exposed-callbacks';
3
- import { LoadResponse, SdkConnector } from '@/configurator/business-logic/sdk-connector';
4
- import { MessageHandler } from '@/configurator/embedding/message-handler';
5
- import { Store } from 'vuex';
6
- import { StoreState } from '@/common/store';
7
- import { Nullable } from '@/common/utils/types';
8
- import { Analytics } from '@/common/plugins/analytics';
9
- import RoomleGLBViewer from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
10
- import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
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
- export declare class ExposedApi {
14
- private _sdk;
15
- private _exposedCallbacks;
16
- private _sdkConnector;
17
- private _store;
18
- private _analytics;
19
- private _exposedAnalyticsCallbacks;
20
- private _isWebsiteReady;
21
- constructor(sdkConnector: SdkConnector, messageHandler: MessageHandler | null, sdk: RoomleConfigurator | RoomleGLBViewer | RoomlePlanner, exposedCallbacks: ExposedCallbacks, store: Store<StoreState>, analytics: Analytics, globalCallback: GlobalCallback);
22
- get callbacks(): ExposedCallbacks;
23
- /**
24
- * call this method to load the object you want into the 3d Scene
25
- * @param id database ID of the object you want to load
26
- */
27
- loadObject(id: string): Promise<Nullable<LoadResponse>>;
28
- /**
29
- * call this method to load the configuration string you want into the 3d Scene
30
- * @param configurationString string of the configuration, starts with `{` and ends with `}`
31
- * @returns null if configuration can not be loaded
32
- */
33
- loadConfigurationString(configurationString: string): Promise<Nullable<LoadResponse>>;
34
- /**
35
- * set the price for the UI to show
36
- * most likely needed when implementing your own price service
37
- *
38
- * @param currencySymbol
39
- * @param price
40
- */
41
- setPrice(currencySymbol: string, price: number): void;
42
- /**
43
- * This method can be used to start configuration when
44
- * 3d scene is only initialized as viewer first, the
45
- * configurator is automatically instantiated as viewer
46
- * if the container where the configurator is placed is
47
- * smaller than 1024px (this breakpoint could change in future)
48
- * so do not rely on this exact pixel setting
49
- */
50
- startConfiguring(): void;
51
- /**
52
- * This method can be used to pause configuration
53
- * If the configurator was called in view-only mode
54
- * this method triggers the onBackToWebsite callback.
55
- * To know when the view-only mode is activated see the
56
- * description of the startConfiguring method
57
- */
58
- pauseConfiguring(): void;
59
- /**
60
- * call this method to trigger the onRequestProduct event from
61
- * outside of the iframe. When this method is called the same
62
- * process is kicked off as if the user would have clicked on
63
- * request product. Therefore you can just use the same callback
64
- * to react on the response
65
- */
66
- triggerRequestProduct(): Promise<void>;
67
- /**
68
- * call this method to trigger the onRequestPlan event from
69
- * outside of the iframe. When this method is called the same
70
- * process is kicked off as if the user would have clicked on
71
- * request plan. Therefore you can just use the same callback
72
- * to react on the response
73
- */
74
- triggerRequestPlan(): Promise<void>;
75
- /**
76
- * call this method if consent of Google Analytics is given later and not already in init-data on boot
77
- */
78
- giveGaConsent(): void;
79
- /**
80
- * Insert an object into the current MOC/planner scene
81
- * If no position or rotation is set then it will be placed automatically (without overlapping other objects) with rotation 0
82
- * @param id
83
- * @param position as x (left/right), y (up/down) and z (front/back)
84
- * @param rotation in radians
85
- */
86
- insertObject(id: string, position?: Position3, rotation?: number): Promise<void>;
87
- private _websiteReady;
88
- private _handleMessage;
89
- private _forwardSdkCallbacks;
90
- }
@@ -1,46 +0,0 @@
1
- import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
2
- import { KernelPartList, UiPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
3
- import { RapiConfigurationEnhanced } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
4
- import { UI_BUTTON } from '@/configurator/embedding/types';
5
- import { Nullable } from '@/common/utils/types';
6
- export interface Price {
7
- currencySymbol: Nullable<string>;
8
- price: Nullable<number>;
9
- }
10
- export interface Labels {
11
- catalogLabel: Nullable<string>;
12
- label: Nullable<string>;
13
- }
14
- export declare class ExposedCallbacks {
15
- /**
16
- * Returns all necessary params when 'Request Product'/'Checkout' button has pressed
17
- * @param configurationId id of the current configuration
18
- * @param image image of the current configuration
19
- * @param partList the part list with all details, grouped, etc
20
- * @param price price of the current configuration, either set via setPrice or from Roomle price service
21
- * @param labels the label of the catalog and the furniture system
22
- * @param configuration the data returned from the Roomle backend
23
- */
24
- onRequestProduct: (configurationId: string, image: Base64Image, partList: KernelPartList, price: Price, labels: Labels, configuration: RapiConfigurationEnhanced) => void;
25
- /**
26
- * fullList fullList (needed for price calculation) of the current configuration
27
- * @param partList the part list with all details, grouped, etc
28
- */
29
- onPartListUpdate: (partList: KernelPartList, hash: string) => void;
30
- onResize: (isDesktop: boolean) => void;
31
- onUseFullPage: () => void;
32
- onBackToWebsite: () => void;
33
- /**
34
- * Gets called when a button in the UI is clicked
35
- * @param name
36
- * @return overrideEventBehaviour true if the event has been consumed and it should not trigger default behaviour, undefined or false otherwise
37
- */
38
- onButtonClicked: (name: UI_BUTTON) => Promise<boolean> | boolean | void;
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;
46
- }
@@ -1,8 +0,0 @@
1
- import { ExposedCallbacks } from '@/configurator/embedding/exposed-callbacks';
2
- import { Store } from 'vuex';
3
- import { StoreState } from '@/common/store';
4
- import { SdkConnector } from '@/configurator/business-logic/sdk-connector';
5
- import { Analytics } from '@/common/plugins/analytics';
6
- export declare const startConfiguring: (store: Store<StoreState>, exposedCallbacks: ExposedCallbacks) => void;
7
- export declare const triggerRequestProduct: (embeddingCallbacks: ExposedCallbacks, sdkConnector: SdkConnector, store: Store<StoreState>, analytics: Analytics) => Promise<void>;
8
- export declare const triggerRequestPlan: (embeddingCallbacks: ExposedCallbacks, sdkConnector: SdkConnector, store: Store<StoreState>, analytics: Analytics) => Promise<void>;
@@ -1,31 +0,0 @@
1
- import { Nullable } from '@/common/utils/types';
2
- interface IncomingMessageBus {
3
- addEventListener(type: 'message', listener: (this: Window, ev: WindowEventMap['message']) => any, options?: boolean | AddEventListenerOptions): void;
4
- }
5
- interface OutgoingMessageBus {
6
- postMessage: (message: any, targetOrigin: string, transfer?: Transferable[]) => void;
7
- }
8
- declare type CommunicationSide = 'iframe' | 'website';
9
- export declare type MessageExecutionResult = Promise<EmbeddingResponse> | undefined;
10
- declare type MessageExecution = (message: EmbeddingCommand, event: MessageEvent) => MessageExecutionResult;
11
- export interface EmbeddingResponse {
12
- result?: any;
13
- error?: string;
14
- }
15
- export interface EmbeddingCommand {
16
- message: string;
17
- args: any[];
18
- }
19
- export declare class MessageHandler {
20
- private _side;
21
- private _incomingMessageBus;
22
- private _outgoingMessageBus;
23
- private _execMessage;
24
- constructor(side: CommunicationSide, incomingMessageBus: IncomingMessageBus, outgoingMessageBus: Nullable<OutgoingMessageBus>, messageExecution: Nullable<MessageExecution>);
25
- setOutgoingMessageBus(outgoingMessageBus: OutgoingMessageBus): void;
26
- setMessageExecution(fun: MessageExecution): void;
27
- sendMessage(message: string, args?: any[]): Promise<any>;
28
- private _handleMessage;
29
- private _prepareError;
30
- }
31
- export {};
@@ -1,64 +0,0 @@
1
- import type { ExposedApi } from '@/configurator/embedding/exposed-api';
2
- import type { UiInitData } from '@/configurator/embedding/types';
3
- import type ConfiguratorUiCallbacks from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
4
- import type RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
5
- import type { ExposedAnalyticsCallbacks } from '@/configurator/embedding/exposed-analytics-callbacks';
6
- import type RoomleGLBViewer from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
7
- import type RoomlePlanner from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
8
- import type { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
9
- export interface RoomleEmbeddingApiKeys {
10
- extended: any;
11
- ui: any;
12
- analytics: any;
13
- global: any;
14
- }
15
- export declare type RoomleConfiguratorApi = RoomleEmbeddingApi<RoomleConfigurator, ConfiguratorUiCallbacks>;
16
- export declare type RoomleViewerApi = RoomleEmbeddingApi<RoomleGLBViewer, ConfiguratorUiCallbacks>;
17
- export declare type RoomlePlannerApi = RoomleEmbeddingApi<RoomlePlanner, ConfiguratorUiCallbacks>;
18
- export default class RoomleEmbeddingApi<SdkType, SdkCallbacks> implements RoomleEmbeddingApiKeys {
19
- static createPlanner(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomlePlannerApi>;
20
- /**
21
- * Method to create a new instance of a Roomle Configurator
22
- * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
23
- * @param container DOM container in which the configurator should be placed
24
- * @param initData settings with which the configurator should be started
25
- */
26
- static createConfigurator(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomleConfiguratorApi>;
27
- /**
28
- * Method to create a new instance of a Roomle Configurator
29
- * @deprecated please use "createConfigurator"
30
- * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
31
- * @param container DOM container in which the configurator should be placed
32
- * @param initData settings with which the configurator should be started
33
- */
34
- static create(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomleConfiguratorApi>;
35
- /**
36
- * Method to create a new instance of a Roomle Viewer
37
- * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
38
- * @param container DOM container in which the configurator should be placed
39
- * @param initData settings with which the configurator should be started
40
- */
41
- static createViewer(configuratorId: string, container: HTMLElement, initData: UiInitData): Promise<RoomleViewerApi>;
42
- private static _create;
43
- ui: ExposedApi;
44
- extended: SdkType;
45
- analytics: {
46
- callbacks: ExposedAnalyticsCallbacks;
47
- };
48
- global: {
49
- callbacks: GlobalCallback;
50
- };
51
- private _waitForIframe;
52
- private _container;
53
- private _messageHandler;
54
- private _configuratorSettings;
55
- private _initData;
56
- private _iframe;
57
- private constructor();
58
- teardown(): void;
59
- private _createIframe;
60
- private _onResize;
61
- private _onUseFullPage;
62
- private _onBackToWebsite;
63
- private _executeMessage;
64
- }
@@ -1,159 +0,0 @@
1
- import { GlobalInitDataDefinition, InitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
2
- import { RapiConfiguratorSettings, RapiId } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
3
- export declare enum UI_BUTTON {
4
- AR = "ar",
5
- PARTLIST = "partlist",
6
- MULTISELECT = "multiselect",
7
- DIMENSIONS = "dimensions",
8
- FULLSCREEN = "fullscreen",
9
- RESETCAMERA = "resetcamera",
10
- RENDERIMAGE = "renderimage",
11
- ADDONS = "addons",
12
- REQUESTPRODUCT = "requestproduct",
13
- REQUESTPLAN = "requestplan",
14
- SAVEDRAFT = "savedraft",
15
- STARTCONFIGURE = "startconfigure",
16
- PAUSECONFIGURE = "pauseconfigure",
17
- EXPORT_3D = "export3d",
18
- ROTATE = "rotate",
19
- SNAPPING = "snapping",
20
- UNDO = "undo",
21
- REDO = "redo",
22
- PARTLIST_PLANNER = "partlist_planner",
23
- PRODUCTLIST = "productlist",
24
- TWO_D_VIEW = "2dview",
25
- ADD_ROOM = "add_room",
26
- STARTPLANNER = "startPlanner"
27
- }
28
- interface FeatureFlags {
29
- realPartList?: boolean;
30
- globalCallbacks?: boolean;
31
- }
32
- export interface VariantsMap {
33
- [key: string]: RapiId;
34
- }
35
- export interface UiInitData extends InitDataDefinition, GlobalInitDataDefinition {
36
- buttons?: {
37
- [UI_BUTTON.AR]?: boolean;
38
- [UI_BUTTON.PARTLIST]?: boolean;
39
- [UI_BUTTON.MULTISELECT]?: boolean;
40
- [UI_BUTTON.DIMENSIONS]?: boolean;
41
- [UI_BUTTON.FULLSCREEN]?: boolean;
42
- [UI_BUTTON.RESETCAMERA]?: boolean;
43
- [UI_BUTTON.RENDERIMAGE]?: boolean;
44
- [UI_BUTTON.ADDONS]?: boolean;
45
- [UI_BUTTON.REQUESTPRODUCT]?: boolean;
46
- [UI_BUTTON.SAVEDRAFT]?: boolean;
47
- [UI_BUTTON.STARTCONFIGURE]?: boolean;
48
- [UI_BUTTON.PAUSECONFIGURE]?: boolean;
49
- [UI_BUTTON.EXPORT_3D]?: boolean;
50
- [UI_BUTTON.SNAPPING]?: boolean;
51
- [UI_BUTTON.UNDO]?: boolean;
52
- [UI_BUTTON.REDO]?: boolean;
53
- [UI_BUTTON.TWO_D_VIEW]?: boolean;
54
- [UI_BUTTON.PARTLIST_PLANNER]?: boolean;
55
- [UI_BUTTON.ADD_ROOM]?: boolean;
56
- [UI_BUTTON.STARTPLANNER]?: boolean;
57
- };
58
- skin?: EmbeddingSkin;
59
- zIndex?: number;
60
- useLocalRoomle?: boolean;
61
- overrideServerUrl?: string;
62
- /**
63
- * @deprecated
64
- * for details see deeplink, the only change is that the placeholder is <CONF_ID> here instead of #CONFIGURATIONID#
65
- */
66
- shareUrl?: string;
67
- /**
68
- * Set this parameter to use your custom share url.
69
- * The provided url has to contain a configuration id parameter (`#CONFIGURATIONID#`) which will be replaced with the real
70
- * configuration id.
71
- * default: not set -> use Roomle short url service (linking to roomle.com domain)
72
- * usage: http://www.example.com/configurator?id=#CONFIGURATIONID#
73
- */
74
- deeplink?: string;
75
- /**
76
- * Define to which variants you can switch from which root component id. This is a simple JS object which is
77
- * used like a map, e.g.: { "usm:frame": "DB_Start_ohne_Element" } now if a configuration with root component
78
- * usm:frame is loaded all the items from the tag "DB_Start_ohne_Element" are now shown as variants
79
- */
80
- variants?: VariantsMap;
81
- /**
82
- * if set to true you can load the configurator in an iframe.src but without any embedding lib
83
- * This is needed if you do not want to interact with the configurator and only want to use it
84
- * to view 3d content. Imagine it then as a <img> tag for 3d content
85
- */
86
- api?: boolean;
87
- /**
88
- * if this is set to true the "save draft" will be done by sending
89
- * an e-mail
90
- */
91
- emails?: boolean;
92
- /**
93
- * set this flag to true if you want to configure on small devices in landscape as well
94
- * this is relevant for things like Rubens Admin, where the configurator is embedded into a very
95
- * small div
96
- */
97
- mobileLandscape?: boolean;
98
- /**
99
- * set this flag to true if you want to group the part list by main components
100
- */
101
- groupPartList?: boolean;
102
- /**
103
- * @internal
104
- * this is an object which is for Roomle internal usage, we can set feature flags
105
- * so that we can ensure a smooth transition between different versions of our configurator
106
- */
107
- featureFlags?: FeatureFlags;
108
- /**
109
- * set this flag to false if the user did not give the consent to Analytics
110
- */
111
- gaConsent?: boolean;
112
- /**
113
- * override translations to change labels for some or all languages.
114
- * Example:
115
- *
116
- * ```
117
- * "translations": {
118
- * "en": {
119
- * "params": {
120
- * "request-product": "Add to cart",
121
- * }
122
- * }
123
- * }
124
- * ```
125
- *
126
- * You can find all labels here: [Base.json](../../../ui/base.json)
127
- */
128
- translations?: any;
129
- /**
130
- * set this flag to false and global parameters are not applied when switching variants
131
- * default: true
132
- */
133
- applyCurrentGlobalParameters?: boolean;
134
- /**
135
- * set this flag to true if you want that a user can select more than one material category at once
136
- * default: false
137
- */
138
- materialMultiSelect?: boolean;
139
- /**
140
- * set this flag to true if you want to start the moc in configuring mode if there is only one object in the scene
141
- * default: true
142
- */
143
- initMocInConfiguringMode?: boolean;
144
- }
145
- export interface EmbeddingSkin {
146
- 'primary-color'?: string;
147
- 'primary-color-in-rgb'?: string;
148
- 'color-on-primary'?: string;
149
- 'cta-color'?: string;
150
- 'color-on-cta'?: string;
151
- }
152
- export interface ConfiguratorSettings extends RapiConfiguratorSettings {
153
- id: string;
154
- allowedHost: string;
155
- tenant: number;
156
- url: string;
157
- settings: UiInitData;
158
- }
159
- export {};
@@ -1,15 +0,0 @@
1
- import { RoomleEmbeddingApiKeys } from '@/configurator/embedding/roomle-configurator-api';
2
- import { ConfiguratorSettings, UiInitData } from '@/configurator/embedding/types';
3
- export declare const NAMESPACE: {
4
- [key: string]: keyof RoomleEmbeddingApiKeys | 'callbacks';
5
- };
6
- export declare const NAMESPACE_SEPARATOR = ".";
7
- export declare const SDK_CALLBACK: string;
8
- export declare const HANDSHAKE_MESSAGES: {
9
- REQUEST_BOOT: string;
10
- SETUP: string;
11
- WEBSITE_READY: string;
12
- };
13
- export declare const isExposable: (name: string) => boolean;
14
- export declare const getMethodNames: (proto: any, namespace: string, isCallback?: boolean) => string[];
15
- export declare const getConfiguratorSettings: (configuratorId: string, initData: UiInitData) => Promise<ConfiguratorSettings>;
@@ -1,4 +0,0 @@
1
- declare const EmbeddingCallbacksPlugin: {
2
- install(Vue: any): void;
3
- };
4
- export default EmbeddingCallbacksPlugin;
@@ -1,11 +0,0 @@
1
- /// <reference types="jspdf" />
2
- export declare class Libs {
3
- getJsPdf(): Promise<{
4
- jsPDF: typeof import("jspdf").jsPDF;
5
- autoTable: typeof import("jspdf-autotable").default;
6
- }>;
7
- }
8
- declare const LibsPlugin: {
9
- install(Vue: any): void;
10
- };
11
- export default LibsPlugin;