@roomle/embedding-lib 5.9.0-alpha.3 → 5.9.0-alpha.4

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 (367) hide show
  1. package/docs/md/web/embedding/CHANGELOG.md +6 -10
  2. package/index.d.ts +2 -179
  3. package/package.json +2 -2
  4. package/packages/build-tools/src/vite-file-size-check.d.ts +8 -0
  5. package/packages/build-tools/src/vite-minify.d.ts +3 -0
  6. package/packages/common/src/utils/browser.d.ts +4 -0
  7. package/packages/common/src/utils/custom-drag.d.ts +26 -0
  8. package/packages/common/src/utils/custom-view.d.ts +2 -0
  9. package/packages/common/src/utils/domain.d.ts +3 -0
  10. package/packages/common/src/utils/drag.d.ts +17 -0
  11. package/packages/common/src/utils/embedding.d.ts +23 -0
  12. package/packages/common/src/utils/get-computed-style-cached.d.ts +8 -0
  13. package/packages/common/src/utils/id-inferrer.d.ts +7 -0
  14. package/packages/common/src/utils/iframe.d.ts +3 -0
  15. package/packages/common/src/utils/init-data.d.ts +66 -0
  16. package/packages/common/src/utils/merge.d.ts +16 -0
  17. package/packages/common/src/utils/message-handler-creator.d.ts +3 -0
  18. package/packages/common/src/utils/message-handler.d.ts +35 -0
  19. package/packages/common/src/utils/promise.d.ts +5 -0
  20. package/packages/common/src/utils/timing.d.ts +1 -0
  21. package/packages/common/src/utils/touch-drag.d.ts +30 -0
  22. package/packages/common/src/utils/touch.d.ts +1 -0
  23. package/packages/embedding-lib/src/connector.d.ts +42 -0
  24. package/packages/embedding-lib/src/embedding-lib.d.ts +64 -0
  25. package/packages/embedding-lib/src/example.d.ts +5 -0
  26. package/packages/embedding-lib/src/examples/api-false.d.ts +10 -0
  27. package/packages/embedding-lib/src/examples/configurator-only.d.ts +7 -0
  28. package/packages/embedding-lib/src/examples/download-partlist.d.ts +7 -0
  29. package/packages/embedding-lib/src/examples/drag-in.d.ts +8 -0
  30. package/packages/embedding-lib/src/examples/ext-catalog/ext-catalog-connection.d.ts +1 -0
  31. package/packages/embedding-lib/src/examples/ext-catalog.d.ts +7 -0
  32. package/packages/embedding-lib/src/examples/ext-selection-overlay.d.ts +8 -0
  33. package/packages/embedding-lib/src/examples/planner-and-configurator.d.ts +7 -0
  34. package/packages/embedding-lib/src/examples/start-and-end-configurator.d.ts +7 -0
  35. package/packages/embedding-lib/src/examples/utils/drag-listeners.d.ts +6 -0
  36. package/packages/embedding-lib/src/overview.d.ts +1 -0
  37. package/packages/embedding-lib/src/plugins/constants.d.ts +19 -0
  38. package/packages/embedding-lib/src/plugins/drag-in.d.ts +33 -0
  39. package/packages/embedding-lib/src/plugins/strategy/from-custom-view.d.ts +31 -0
  40. package/packages/embedding-lib/src/plugins/strategy/from-website.d.ts +27 -0
  41. package/packages/embedding-lib/src/plugins/strategy/types.d.ts +15 -0
  42. package/packages/embedding-lib/src/plugins/types.d.ts +36 -0
  43. package/packages/embedding-lib/src/utils.d.ts +18 -0
  44. package/src/App.vue.d.ts +127 -0
  45. package/src/common/business-logic/connector.d.ts +9 -0
  46. package/src/common/business-logic/event-bus.d.ts +7 -0
  47. package/src/common/business-logic/event-emitter.d.ts +11 -0
  48. package/src/common/components/ActionButtons.vue.d.ts +8 -0
  49. package/src/common/components/BottomBar.vue.d.ts +2 -0
  50. package/src/common/components/BottomButtons.vue.d.ts +9 -0
  51. package/src/common/components/CounterDot.vue.d.ts +6 -0
  52. package/src/common/components/EmbeddedAdditionalInfo.vue.d.ts +12 -0
  53. package/src/common/components/EmbeddedExternalCatalog.vue.d.ts +16 -0
  54. package/src/common/components/EmbeddedInfoWrapper.vue.d.ts +27 -0
  55. package/src/common/components/ExpandableIcons.vue.d.ts +12 -0
  56. package/src/common/components/IconButton.vue.d.ts +15 -0
  57. package/src/common/components/Layer.vue.d.ts +9 -0
  58. package/src/common/components/Layout.vue.d.ts +15 -0
  59. package/src/common/components/LeftHeaderContainer.vue.d.ts +2 -0
  60. package/src/common/components/Loading.vue.d.ts +2 -0
  61. package/src/common/components/LoadingSpinner.vue.d.ts +2 -0
  62. package/src/common/components/MainComponent.vue.d.ts +2 -0
  63. package/src/common/components/SelectionButton.vue.d.ts +9 -0
  64. package/src/common/components/SelectionButtons.vue.d.ts +10 -0
  65. package/src/common/components/ShowCustomView.vue.d.ts +22 -0
  66. package/src/common/components/SwitchButton.vue.d.ts +16 -0
  67. package/src/common/components/ToggleButtons.vue.d.ts +12 -0
  68. package/src/common/components/Tooltip.vue.d.ts +29 -0
  69. package/src/common/components/action-buttons/-utils/ActionButton.vue.d.ts +21 -0
  70. package/src/common/components/collection-view/-utils/BackButton.vue.d.ts +16 -0
  71. package/src/common/components/collection-view/-utils/ParameterTooltip.vue.d.ts +14 -0
  72. package/src/common/components/collection-view/-utils/TabbedNav.vue.d.ts +18 -0
  73. package/src/common/components/collection-view/-utils/TabbedNavMenu.vue.d.ts +30 -0
  74. package/src/common/components/collection-view/-utils/TabbedNavStatic.vue.d.ts +6 -0
  75. package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +3802 -0
  76. package/src/common/components/collection-view/-utils/collection-view-props.d.ts +45 -0
  77. package/src/common/components/collection-view/-utils/helper.d.ts +5 -0
  78. package/src/common/components/collection-view/-utils/render.d.ts +9 -0
  79. package/src/common/components/collection-view/-utils/types.d.ts +45 -0
  80. package/src/common/components/collection-view/CollectionView.vue.d.ts +70 -0
  81. package/src/common/components/collection-view/CollectionViewElement.vue.d.ts +200 -0
  82. package/src/common/components/collection-view/CollectionViewHint.vue.d.ts +10 -0
  83. package/src/common/components/drawer-layout/DrawerElement.vue.d.ts +100 -0
  84. package/src/common/components/drawer-layout/DrawerGroup.vue.d.ts +23 -0
  85. package/src/common/components/drawer-layout/DrawerLayout.vue.d.ts +101 -0
  86. package/src/common/components/flying-menu/FlyingMenu.vue.d.ts +8 -0
  87. package/src/common/components/flying-menu/MergeProductButtons.vue.d.ts +2 -0
  88. package/src/common/components/flying-menu/StartConfiguringButton.vue.d.ts +2 -0
  89. package/src/common/components/helpers.d.ts +6 -0
  90. package/src/common/components/inputs/BaseInput.vue.d.ts +24 -0
  91. package/src/common/components/inputs/NumericInput.vue.d.ts +22 -0
  92. package/src/common/components/inputs/NumericInputWrapper.vue.d.ts +15 -0
  93. package/src/common/components/inputs/RangeSlider.vue.d.ts +34 -0
  94. package/src/common/components/inputs/SelectDropdown.vue.d.ts +18 -0
  95. package/src/common/components/notifications/FirstPersonControlsNotification.vue.d.ts +6 -0
  96. package/src/common/components/notifications/InteractionNotes.vue.d.ts +10 -0
  97. package/src/common/components/notifications/LoadSavedPlanNotification.vue.d.ts +10 -0
  98. package/src/common/components/notifications/NotificationCard.vue.d.ts +19 -0
  99. package/src/common/components/notifications/Notifications.vue.d.ts +2 -0
  100. package/src/common/components/overlays/PartList.vue.d.ts +185 -0
  101. package/src/common/components/overlays/bottom-bar/CloseView.vue.d.ts +220 -0
  102. package/src/common/components/overlays/bottom-bar/ControlButtonsWrapper.vue.d.ts +2 -0
  103. package/src/common/components/overlays/bottom-bar/GoBack.vue.d.ts +49 -0
  104. package/src/common/components/overlays/bottom-bar/cart/AddToBasket.vue.d.ts +6 -0
  105. package/src/common/components/overlays/bottom-bar/cart/CartIconWithBadge.vue.d.ts +12 -0
  106. package/src/common/components/overlays/bottom-bar/cart/ExitBtn.vue.d.ts +40 -0
  107. package/src/common/components/overlays/bottom-bar/cart/GoToCartBtn.vue.d.ts +49 -0
  108. package/src/common/components/overlays/bottom-bar/cart/SaveCartBtn.vue.d.ts +50 -0
  109. package/src/common/components/overlays/part-list/PartListEntry.vue.d.ts +114 -0
  110. package/src/common/components/overlays/part-list/PartListHeader.vue.d.ts +10 -0
  111. package/src/common/components/overlays/part-list/PartListPrint.vue.d.ts +16 -0
  112. package/src/common/components/overlays/part-list/PartListRow.vue.d.ts +60 -0
  113. package/src/common/components/overlays/part-list/partlist-setup.d.ts +17 -0
  114. package/src/common/components/overlays/tutorials/SupaDemoEmbed.vue.d.ts +10 -0
  115. package/src/common/components/overlays/tutorials/Tutorials.vue.d.ts +6 -0
  116. package/src/common/components/overlays/tutorials/YouTubeEmbed.vue.d.ts +10 -0
  117. package/src/common/components/parameters/ColorParameter.vue.d.ts +2229 -0
  118. package/src/common/components/side-bar/BackAction.vue.d.ts +22 -0
  119. package/src/common/components/side-bar/NavigationButtonsWrapper.vue.d.ts +9 -0
  120. package/src/common/components/side-bar/NextAction.vue.d.ts +22 -0
  121. package/src/common/components/tool-bar/ToolBar.vue.d.ts +2 -0
  122. package/src/common/components/tool-bar/ToolBarWrapper.vue.d.ts +4 -0
  123. package/src/common/components/tool-tip/MoreInfoTooltipContent.vue.d.ts +18 -0
  124. package/src/common/components/top-bar/TopBar.vue.d.ts +2 -0
  125. package/src/common/components/utils/-utils/notifications.d.ts +50 -0
  126. package/src/common/components/utils/-utils/overlays.d.ts +65 -0
  127. package/src/common/components/utils/CollapsibleButtonsContainer.vue.d.ts +26 -0
  128. package/src/common/components/utils/HeightToggle.vue.d.ts +34 -0
  129. package/src/common/components/utils/QRCode.vue.d.ts +139 -0
  130. package/src/common/components/utils/ShadowOnStage.vue.d.ts +8 -0
  131. package/src/common/components/utils/StageActivityIndicator.vue.d.ts +2 -0
  132. package/src/common/components/utils/collapsible-buttons-container/CollapsibleButton.vue.d.ts +14 -0
  133. package/src/common/components/utils/collapsible-buttons-container/CollapsibleTrigger.vue.d.ts +27 -0
  134. package/src/common/components/utils/collapsible-buttons-container/collapsible-button-types.d.ts +1 -0
  135. package/src/common/composables/use-analytics.d.ts +3 -0
  136. package/src/common/composables/use-ar-service.d.ts +3 -0
  137. package/src/common/composables/use-async-function.d.ts +8 -0
  138. package/src/common/composables/use-configurator-actions-visibility.d.ts +4 -0
  139. package/src/common/composables/use-configurator-api.d.ts +6 -0
  140. package/src/common/composables/use-core-bound-value.d.ts +8 -0
  141. package/src/common/composables/use-core-instances.d.ts +8 -0
  142. package/src/common/composables/use-embedding-callbacks.d.ts +3 -0
  143. package/src/common/composables/use-event-emitter-listener.d.ts +61 -0
  144. package/src/common/composables/use-fetch-root-tag.d.ts +8 -0
  145. package/src/common/composables/use-intersection-observer.d.ts +8 -0
  146. package/src/common/composables/use-intl.d.ts +14 -0
  147. package/src/common/composables/use-item-variants.d.ts +7 -0
  148. package/src/common/composables/use-libs.d.ts +3 -0
  149. package/src/common/composables/use-local-storage.d.ts +3 -0
  150. package/src/common/composables/use-materials-and-ral-colors.d.ts +10 -0
  151. package/src/common/composables/use-materials-grouped.d.ts +10 -0
  152. package/src/common/composables/use-measurement-styles.d.ts +10 -0
  153. package/src/common/composables/use-on-click-outside.d.ts +7 -0
  154. package/src/common/composables/use-planner-actions-visibility.d.ts +11 -0
  155. package/src/common/composables/use-pointer-pos.d.ts +16 -0
  156. package/src/common/composables/use-product-price.d.ts +11 -0
  157. package/src/common/composables/use-purchasable-count.d.ts +3 -0
  158. package/src/common/composables/use-sdk-connector.d.ts +3 -0
  159. package/src/common/composables/use-sdk-event-emitter-listener.d.ts +36 -0
  160. package/src/common/composables/use-selected-object-center.d.ts +5 -0
  161. package/src/common/composables/use-selected-plan-element.d.ts +7 -0
  162. package/src/common/composables/use-shared-sidebar-setup.d.ts +96 -0
  163. package/src/common/composables/use-stage-activity-indicator.d.ts +9 -0
  164. package/src/common/composables/use-static-item-parameters.d.ts +1114 -0
  165. package/src/common/composables/use-ui-actions.d.ts +3 -0
  166. package/src/common/config/tutorial-data.d.ts +3 -0
  167. package/src/common/plugins/analytics.d.ts +12 -0
  168. package/src/common/plugins/event-emitter.d.ts +4 -0
  169. package/src/common/plugins/local-storage.d.ts +10 -0
  170. package/src/common/plugins/localize.d.ts +2 -0
  171. package/src/common/plugins/ui-actions.d.ts +13 -0
  172. package/src/common/store/collection-view-state.d.ts +51 -0
  173. package/src/common/store/common-ui-state.d.ts +35 -0
  174. package/src/common/store/index.d.ts +35 -0
  175. package/src/common/translations/local-translation-source.d.ts +9 -0
  176. package/src/common/utils/access-restriction.d.ts +8 -0
  177. package/src/common/utils/ar-service.d.ts +14 -0
  178. package/src/common/utils/async-guard.d.ts +12 -0
  179. package/src/common/utils/bezier.d.ts +2 -0
  180. package/src/common/utils/color.d.ts +27 -0
  181. package/src/common/utils/compatibility.d.ts +4 -0
  182. package/src/common/utils/composable-helpers.d.ts +10 -0
  183. package/src/common/utils/dom.d.ts +20 -0
  184. package/src/common/utils/font-size-detector.d.ts +1 -0
  185. package/src/common/utils/fonts.d.ts +3 -0
  186. package/src/common/utils/google-analytics.d.ts +68 -0
  187. package/src/common/utils/helper.d.ts +83 -0
  188. package/src/common/utils/init-data-helper.d.ts +3 -0
  189. package/src/common/utils/log-canvas-coords.d.ts +3 -0
  190. package/src/common/utils/parameters.d.ts +19 -0
  191. package/src/common/utils/performance.d.ts +2 -0
  192. package/src/common/utils/plan.d.ts +1 -0
  193. package/src/common/utils/playwright-handler.d.ts +5 -0
  194. package/src/common/utils/playwright-response-checker.d.ts +3 -0
  195. package/src/common/utils/root-tags.d.ts +5 -0
  196. package/src/common/utils/script-loader.d.ts +6 -0
  197. package/src/common/utils/share.d.ts +1 -0
  198. package/src/common/utils/tutorials.d.ts +6 -0
  199. package/src/common/utils/types.d.ts +145 -0
  200. package/src/common/utils/ui-actions.d.ts +38 -0
  201. package/src/common/utils/user-agent.d.ts +7 -0
  202. package/src/common/utils/variants.d.ts +4 -0
  203. package/src/configurator/ar/AppAR.vue.d.ts +11 -0
  204. package/src/configurator/ar/main.d.ts +1 -0
  205. package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +30 -0
  206. package/src/configurator/business-logic/sdk-connector-configurator.d.ts +39 -0
  207. package/src/configurator/business-logic/sdk-connector.d.ts +136 -0
  208. package/src/configurator/business-logic/ui-callback.d.ts +6 -0
  209. package/src/configurator/components/ActionButtonsParameterGroups.vue.d.ts +6 -0
  210. package/src/configurator/components/ConfiguratorMain.vue.d.ts +2 -0
  211. package/src/configurator/components/ConfiguratorSidebar.vue.d.ts +13 -0
  212. package/src/configurator/components/CookieBanner.vue.d.ts +6 -0
  213. package/src/configurator/components/Overlays.vue.d.ts +842 -0
  214. package/src/configurator/components/PoweredBy.vue.d.ts +10 -0
  215. package/src/configurator/components/SceneContainer.vue.d.ts +2 -0
  216. package/src/configurator/components/StopConfiguringButton.vue.d.ts +2 -0
  217. package/src/configurator/components/addons/AddonsTrigger.vue.d.ts +34 -0
  218. package/src/configurator/components/addons/PossibleChildren.vue.d.ts +19 -0
  219. package/src/configurator/components/grid-view/-utils/CollapsedView.vue.d.ts +107 -0
  220. package/src/configurator/components/grid-view/-utils/ExpandedHeader.vue.d.ts +88 -0
  221. package/src/configurator/components/grid-view/-utils/ExpandedView.vue.d.ts +31 -0
  222. package/src/configurator/components/grid-view/-utils/GridViewElement.vue.d.ts +177 -0
  223. package/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +23 -0
  224. package/src/configurator/components/grid-view/-utils/GridViewMaterialElement.vue.d.ts +44 -0
  225. package/src/configurator/components/grid-view/-utils/GridViewThumbnailsElement.vue.d.ts +60 -0
  226. package/src/configurator/components/grid-view/-utils/GridViewTooltipElement.vue.d.ts +8 -0
  227. package/src/configurator/components/grid-view/GridView.vue.d.ts +327 -0
  228. package/src/configurator/components/overlays/DeleteWarning.vue.d.ts +87 -0
  229. package/src/configurator/components/overlays/ElementDisabled.vue.d.ts +83 -0
  230. package/src/configurator/components/overlays/Export3D.vue.d.ts +6 -0
  231. package/src/configurator/components/overlays/GenericError.vue.d.ts +104 -0
  232. package/src/configurator/components/overlays/LoadProduct.vue.d.ts +13 -0
  233. package/src/configurator/components/overlays/NoDocking.vue.d.ts +83 -0
  234. package/src/configurator/components/overlays/SaveDraft.vue.d.ts +13 -0
  235. package/src/configurator/components/overlays/VariantWarning.vue.d.ts +99 -0
  236. package/src/configurator/components/overlays/ar/OpenAR.vue.d.ts +12 -0
  237. package/src/configurator/components/overlays/ar/OpenARView.vue.d.ts +24 -0
  238. package/src/configurator/components/parameters/BackParameterGroupButton.vue.d.ts +6 -0
  239. package/src/configurator/components/parameters/NextParameterGroupButton.vue.d.ts +6 -0
  240. package/src/configurator/components/parameters/OverflowIndicator.vue.d.ts +12 -0
  241. package/src/configurator/components/parameters/ParameterGroupArrowButton.vue.d.ts +10 -0
  242. package/src/configurator/components/parameters/ParameterGroupButton.vue.d.ts +45 -0
  243. package/src/configurator/components/parameters/ParameterGroups.vue.d.ts +8 -0
  244. package/src/configurator/components/parameters/types/MaterialParameter.vue.d.ts +372 -0
  245. package/src/configurator/components/parameters/types/OptionsParameter.vue.d.ts +18 -0
  246. package/src/configurator/components/parameters/types/OptionsParameterValue.vue.d.ts +14 -0
  247. package/src/configurator/components/parameters/types/ProductVariant.vue.d.ts +374 -0
  248. package/src/configurator/components/parameters/types/RangeParameter.vue.d.ts +15 -0
  249. package/src/configurator/components/parameters/types/ThumbnailsParameter.vue.d.ts +369 -0
  250. package/src/configurator/components/parameters/types/UnknownParameter.vue.d.ts +12 -0
  251. package/src/configurator/components/top-bar/ARButton.vue.d.ts +2 -0
  252. package/src/configurator/components/utils/-utils/SceneOffsetResizer.d.ts +25 -0
  253. package/src/configurator/components/utils/-utils/popup-types.d.ts +1 -0
  254. package/src/configurator/components/utils/ArrowButton.vue.d.ts +8 -0
  255. package/src/configurator/components/utils/AspectRatioBox.vue.d.ts +9 -0
  256. package/src/configurator/components/utils/CheckBox.vue.d.ts +10 -0
  257. package/src/configurator/components/utils/FullscreenContainer.vue.d.ts +15 -0
  258. package/src/configurator/components/utils/GdprEmailInput.vue.d.ts +12 -0
  259. package/src/configurator/components/utils/HeightContainer.vue.d.ts +12 -0
  260. package/src/configurator/components/utils/ImageWithFallback.vue.d.ts +23 -0
  261. package/src/configurator/components/utils/InteractionsContainer.vue.d.ts +18 -0
  262. package/src/configurator/components/utils/PopUp.vue.d.ts +79 -0
  263. package/src/configurator/components/utils/PrimaryButton.vue.d.ts +36 -0
  264. package/src/configurator/components/utils/RadioButton.vue.d.ts +25 -0
  265. package/src/configurator/components/utils/ScrollHint.vue.d.ts +13 -0
  266. package/src/configurator/components/utils/SearchInput.vue.d.ts +41 -0
  267. package/src/configurator/components/utils/Spinner.vue.d.ts +2 -0
  268. package/src/configurator/components/utils/StartConfiguringButton.vue.d.ts +31 -0
  269. package/src/configurator/components/utils/SvgIcon.vue.d.ts +8 -0
  270. package/src/configurator/components/utils/WordWrap.vue.d.ts +33 -0
  271. package/src/configurator/components/utils/transitions/SlideTransitionWrapper.vue.d.ts +10 -0
  272. package/src/configurator/embedding/drag-ghost.d.ts +11 -0
  273. package/src/configurator/embedding/drag-handler.d.ts +11 -0
  274. package/src/configurator/embedding/example/Embedding.vue.d.ts +67 -0
  275. package/src/configurator/embedding/example/GlbConfSwitch.vue.d.ts +21 -0
  276. package/src/configurator/embedding/example/GlbConfSwitchSecret.vue.d.ts +17 -0
  277. package/src/configurator/embedding/example/main.d.ts +1 -0
  278. package/src/configurator/embedding/exposed-analytics-callbacks.d.ts +10 -0
  279. package/src/configurator/embedding/exposed-api.d.ts +169 -0
  280. package/src/configurator/embedding/exposed-callbacks.d.ts +83 -0
  281. package/src/configurator/embedding/helper.d.ts +31 -0
  282. package/src/configurator/embedding/roomle-configurator-api.d.ts +65 -0
  283. package/src/configurator/embedding/types.d.ts +505 -0
  284. package/src/configurator/plugins/ar-service-plugin.d.ts +6 -0
  285. package/src/configurator/plugins/embedding-callbacks-plugin.d.ts +4 -0
  286. package/src/configurator/plugins/libs-plugin.d.ts +11 -0
  287. package/src/configurator/plugins/sdk-connector-plugin.d.ts +21 -0
  288. package/src/configurator/store/core-data.d.ts +25 -0
  289. package/src/configurator/store/core-state.d.ts +21 -0
  290. package/src/configurator/store/ui-state.d.ts +80 -0
  291. package/src/main.d.ts +24 -0
  292. package/src/planner/business-logic/general-room-parameters.d.ts +32 -0
  293. package/src/planner/business-logic/pre-defined-rooms.d.ts +4 -0
  294. package/src/planner/business-logic/rooms.d.ts +62 -0
  295. package/src/planner/business-logic/sdk-connector-planner.d.ts +67 -0
  296. package/src/planner/business-logic/selected-door-parameters.d.ts +10 -0
  297. package/src/planner/business-logic/selected-wall-parameters.d.ts +11 -0
  298. package/src/planner/business-logic/selected-window-parameters.d.ts +10 -0
  299. package/src/planner/components/DraggableButton.vue.d.ts +27 -0
  300. package/src/planner/components/ObjectList.vue.d.ts +19 -0
  301. package/src/planner/components/PlannerMain.vue.d.ts +2 -0
  302. package/src/planner/components/PlannerSidebar.vue.d.ts +15 -0
  303. package/src/planner/components/RotateButton.vue.d.ts +14 -0
  304. package/src/planner/components/RotationButtonWrapper.vue.d.ts +6 -0
  305. package/src/planner/components/RotationIndicator.vue.d.ts +69 -0
  306. package/src/planner/components/StartPlannerButton.vue.d.ts +2 -0
  307. package/src/planner/components/catalog/CatalogTrigger.vue.d.ts +2 -0
  308. package/src/planner/components/measurements/MeasurementDisplayComponent.vue.d.ts +48 -0
  309. package/src/planner/components/measurements/ShowConstructionMeasurements.vue.d.ts +8 -0
  310. package/src/planner/components/measurements/ShowFloorsAreasData.vue.d.ts +8 -0
  311. package/src/planner/components/measurements/ShowMeasurementLineDimension.vue.d.ts +8 -0
  312. package/src/planner/components/measurements/ShowObjectMeasurements.vue.d.ts +10 -0
  313. package/src/planner/components/measurements/ShowWallMeasurements.vue.d.ts +8 -0
  314. package/src/planner/components/measurements/utils/IndicatorArrow.vue.d.ts +14 -0
  315. package/src/planner/components/measurements/utils/IndicatorLine.vue.d.ts +21 -0
  316. package/src/planner/components/measurements/utils/MeasurementText.vue.d.ts +19 -0
  317. package/src/planner/components/overlays/ProductList.vue.d.ts +24 -0
  318. package/src/planner/components/overlays/ProductListButton.vue.d.ts +2 -0
  319. package/src/planner/components/overlays/ProductSettings.vue.d.ts +14 -0
  320. package/src/planner/components/overlays/RoomSidebar.vue.d.ts +14 -0
  321. package/src/planner/components/overlays/product-list/LoadProductButton.vue.d.ts +2 -0
  322. package/src/planner/components/overlays/product-list/ProductListEntry.vue.d.ts +19 -0
  323. package/src/planner/components/overlays/product-list/ProductListType.vue.d.ts +23 -0
  324. package/src/planner/components/overlays/product-list/ProductsTotalPrice.vue.d.ts +12 -0
  325. package/src/planner/components/overlays/product-settings/ProductLabelButton.vue.d.ts +12 -0
  326. package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +10 -0
  327. package/src/planner/components/overlays/product-settings/ProductRangeControl.vue.d.ts +65 -0
  328. package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +8 -0
  329. package/src/planner/components/overlays/product-settings/ProductSettingsControls.vue.d.ts +2 -0
  330. package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +13 -0
  331. package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +8 -0
  332. package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +33 -0
  333. package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +382 -0
  334. package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +5479 -0
  335. package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +111 -0
  336. package/src/planner/components/overlays/rooms/FloorColor.vue.d.ts +3822 -0
  337. package/src/planner/components/overlays/rooms/IconSwitch.vue.d.ts +46 -0
  338. package/src/planner/components/overlays/rooms/ParameterSwitch.vue.d.ts +42 -0
  339. package/src/planner/components/overlays/rooms/RoomDrawControl.vue.d.ts +36 -0
  340. package/src/planner/components/overlays/rooms/RoomDrawControlsDesc.vue.d.ts +2 -0
  341. package/src/planner/components/overlays/rooms/RoomGeneralSettings.vue.d.ts +17 -0
  342. package/src/planner/components/overlays/rooms/RoomRangeParameter.vue.d.ts +47 -0
  343. package/src/planner/components/overlays/rooms/RoomUnitSwitch.vue.d.ts +84 -0
  344. package/src/planner/components/overlays/rooms/RoomsList.vue.d.ts +24 -0
  345. package/src/planner/components/overlays/rooms/SampleRooms.vue.d.ts +14 -0
  346. package/src/planner/components/overlays/rooms/WallGeneralSettings.vue.d.ts +16 -0
  347. package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +17 -0
  348. package/src/planner/components/overlays/rooms/utils/ral-colors.d.ts +1113 -0
  349. package/src/planner/components/utils/AddRoomButton.vue.d.ts +2 -0
  350. package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +6 -0
  351. package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +7 -0
  352. package/src/planner/components/utils/ConfiguratorParameter.vue.d.ts +19 -0
  353. package/src/planner/components/utils/InteractionHeader.vue.d.ts +10 -0
  354. package/src/planner/components/utils/MeasurementsString.vue.d.ts +18 -0
  355. package/src/planner/components/utils/WallSideIcon.vue.d.ts +23 -0
  356. package/src/planner/components/utils/sidebar-nav/NavIndicatorLine.vue.d.ts +14 -0
  357. package/src/planner/components/utils/sidebar-nav/RoomNavOptionElement.vue.d.ts +49 -0
  358. package/src/planner/components/utils/sidebar-nav/SidebarNav.vue.d.ts +50 -0
  359. package/src/planner/store/planner-core-data.d.ts +20 -0
  360. package/src/planner/store/planner-ui-state.d.ts +50 -0
  361. package/src/planner/utils/interaction.d.ts +4 -0
  362. package/src/planner/utils/planner-sidebar.d.ts +16 -0
  363. package/src/planner/utils/rotation-calculation.d.ts +7 -0
  364. package/src/viewer/business-logic/sdk-connector-viewer.d.ts +19 -0
  365. package/src/viewer/components/ARButtonViewer.vue.d.ts +2 -0
  366. package/src/viewer/components/ViewerMain.vue.d.ts +146 -0
  367. package/src/viewer/components/ViewerSidebar.vue.d.ts +33 -0
@@ -1,18 +1,14 @@
1
- ## [5.9.0-alpha.3](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.9.0-alpha.2...embedding-lib-v5.9.0-alpha.3) (2025-01-09)
1
+ ## [5.9.0-alpha.4](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.9.0-alpha.3...embedding-lib-v5.9.0-alpha.4) (2025-01-14)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * make interaction notes hideable ([5ffda3a](https://github.com/roomle-dev/roomle-ui/commit/5ffda3a39316352e6df4776594b35f6fa0b45a9e))
7
- * make things hideable ([9a937b9](https://github.com/roomle-dev/roomle-ui/commit/9a937b98fa3ecafc4862bee829df449ff9504e71))
8
- * **SDK:** upgrade to version 2.91.0-alpha.7 ([6b06fae](https://github.com/roomle-dev/roomle-ui/commit/6b06faeb4b06d1efc81950c81e2f738c4aabd69b))
9
- * **SDK:** upgrade to version 2.91.0-alpha.8 ([78e37f4](https://github.com/roomle-dev/roomle-ui/commit/78e37f4fad47b0d305fe9e8eea1985ede0ced638))
10
- * **SDK:** upgrade to version 2.91.0-alpha.9 ([6771441](https://github.com/roomle-dev/roomle-ui/commit/6771441c1cb8de85c1bd11237bd2649f1c748c7a))
11
- * use createPlanFromObject to create an empty plan with object ([13ae60e](https://github.com/roomle-dev/roomle-ui/commit/13ae60eae2a71e427a96927991e9de2885b61454))
6
+ * **SDK:** upgrade to version 2.91.0-alpha.10 ([#1420](https://github.com/roomle-dev/roomle-ui/issues/1420)) ([ac343ad](https://github.com/roomle-dev/roomle-ui/commit/ac343ad9eeabd3aa1f51ccaf6d005904de30dbe7))
12
7
 
13
8
 
14
9
  ### Bug Fixes
15
10
 
16
- * remove unnecessary console.log ([4eb4da8](https://github.com/roomle-dev/roomle-ui/commit/4eb4da819aafeb10b280045ead12d023199a4c05))
17
- * send module 8 when open AR inside planner edit mode ([a591432](https://github.com/roomle-dev/roomle-ui/commit/a591432e1bf70ed4b32e45a69eb2327c931258a4))
18
- * tests ([d5b6c49](https://github.com/roomle-dev/roomle-ui/commit/d5b6c49422bc04a7c5f4bee7f3443a2a2808aacc))
11
+ * import all the things ([d946aa9](https://github.com/roomle-dev/roomle-ui/commit/d946aa9f2c21a17eb194aca0c01c46812d576224))
12
+ * publish types how RuAd needs it ([76e828d](https://github.com/roomle-dev/roomle-ui/commit/76e828d9d4b2bf7c9dee4bfb568517881453a65b))
13
+ * remove exception ([d91d042](https://github.com/roomle-dev/roomle-ui/commit/d91d042f44f33eee9140868f8c8f13e7d3eb8db2))
14
+ * some ts errors ([26ae95e](https://github.com/roomle-dev/roomle-ui/commit/26ae95e4368f8321ddc15c026a0d4a2f8d730155))
package/index.d.ts CHANGED
@@ -1,179 +1,2 @@
1
- import { default as default_2 } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
2
- import { default as default_3 } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
3
- import { default as default_4 } from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
4
- import { default as default_5 } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
5
- import { EmbeddingCommand } from '../../common/src/utils/message-handler';
6
- import { ExposedAnalyticsCallbacks } from '../../../src/configurator/embedding/exposed-analytics-callbacks';
7
- import { ExposedApi } from '../../../../src/configurator/embedding/exposed-api';
8
- import { ExposedApi as ExposedApi_2 } from '../../../src/configurator/embedding/exposed-api';
9
- import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
10
- import { MessageHandler } from '../../common/src/utils/message-handler';
11
- import { Nullable } from '../../../src/common/utils/types';
12
- import { OnBeforeUpdateDragGhost } from '../../../../common/src/utils/drag';
13
- import { OnBeforeUpdateDragGhost as OnBeforeUpdateDragGhost_2 } from '../../../common/src/utils/drag';
14
- import { PossibleCustomViews } from '../../../src/configurator/embedding/types';
15
- import { PossibleCustomViewsAndMain } from '../../../src/configurator/embedding/types';
16
- import { PossibleCustomViewsAndMain as PossibleCustomViewsAndMain_2 } from '../../../../src/configurator/embedding/types';
17
- import { RapiId } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
18
- import { UiInitData } from '../../../src/configurator/embedding/types';
19
-
20
- declare type AvailablePlugins = {
21
- [K in keyof PluginMap]?: InstanceType<PluginMap[K]>;
22
- };
23
-
24
- declare class Connector<SdkType, SdkCallbacks> implements RoomleEmbeddingApiKeys {
25
- protected _messageHandler: Nullable<MessageHandler>;
26
- isSetupDone: boolean;
27
- viewName: PossibleCustomViewsAndMain;
28
- plugins: AvailablePlugins;
29
- pluginsLoaded: Array<Promise<void>>;
30
- ui: ExposedApi_2;
31
- extended: SdkType;
32
- configurator: default_2;
33
- analytics: {
34
- callbacks: ExposedAnalyticsCallbacks;
35
- };
36
- global: {
37
- callbacks: GlobalCallback;
38
- };
39
- setMessageHandler(messageHandler: MessageHandler): void;
40
- handleSetup(methodsAndCallbacks: {
41
- methods: string[];
42
- callbacks: string[];
43
- }): void;
44
- executeMessage({ message, args }: EmbeddingCommand): Promise<{
45
- result: any;
46
- }>;
47
- setupPlugins(plugins: PluginDefinitions, iframe: HTMLIFrameElement | HTMLBodyElement, mode?: EmbeddingPluginMode): void;
48
- }
49
-
50
- declare class DragIn extends EmbeddingPlugin implements DragInStrategy {
51
- options: DragInSettings;
52
- private _strategy;
53
- private _customDragSignal;
54
- private _injectStyles;
55
- private _initializeDragGhost;
56
- constructor(instance: ExposedApi, mainDomElement: HTMLIFrameElement | HTMLBodyElement, mode: EmbeddingPluginMode, viewName: PossibleCustomViewsAndMain_2);
57
- init(): Promise<void>;
58
- get isDragging(): boolean;
59
- dragStart(id: RapiId, event: DragEvent | TouchEvent | MouseEvent, type?: string): void;
60
- dragUpdate(event: DragEvent | TouchEvent | MouseEvent): void;
61
- dragEnd(): void;
62
- touchStart(id: RapiId, event: TouchEvent, type?: string): void;
63
- touchMove(event: TouchEvent): void;
64
- touchEnd(): void;
65
- dispose(): void;
66
- beforeUpdateGhost(handler: OnBeforeUpdateDragGhost_2): void;
67
- registerCustomDrag({ customDragStart, customDragEnd, customDragUpdate, beforeUpdateGhost, }: {
68
- customDragStart: (event: MouseEvent | TouchEvent) => void;
69
- customDragEnd: (event: MouseEvent | TouchEvent) => void;
70
- customDragUpdate: (event: MouseEvent | TouchEvent) => void;
71
- beforeUpdateGhost?: OnBeforeUpdateDragGhost_2;
72
- }): void;
73
- unregisterCustomDrag(): void;
74
- releaseInput(event: DragEvent | TouchEvent | MouseEvent): void;
75
- }
76
-
77
- declare interface DragInSettings {
78
- dragInOverlapX?: number;
79
- dragInOverlapY?: number;
80
- fingerSize?: number;
81
- touchDragDelay?: number;
82
- touchDragEpsilon?: number;
83
- customDragDelay?: number;
84
- customDragEpsilon?: number;
85
- }
86
-
87
- declare interface DragInStrategy {
88
- isDragging: boolean;
89
- dragStart(id: RapiId, event: DragEvent | TouchEvent | MouseEvent, type: string): void;
90
- dragUpdate(event: DragEvent | TouchEvent | MouseEvent): void;
91
- dragEnd(): void;
92
- touchStart(id: RapiId, event: TouchEvent, type: string): void;
93
- touchMove(event: TouchEvent): void;
94
- touchEnd(): void;
95
- beforeUpdateGhost(handler: OnBeforeUpdateDragGhost): void;
96
- releaseInput(event: DragEvent | TouchEvent | MouseEvent): void;
97
- dispose(): void;
98
- }
99
-
100
- declare class EmbeddingPlugin {
101
- protected _mainDomElement: HTMLIFrameElement | HTMLBodyElement;
102
- protected _instance: ExposedApi;
103
- protected _mode: EmbeddingPluginMode;
104
- protected _viewName: PossibleCustomViewsAndMain_2;
105
- constructor(instance: ExposedApi, iframe: HTMLIFrameElement | HTMLBodyElement, mode: EmbeddingPluginMode, viewName: PossibleCustomViewsAndMain_2);
106
- init(): Promise<void>;
107
- }
108
-
109
- declare type EmbeddingPluginMode = 'website' | 'custom-view';
110
-
111
- declare type PluginConstructors = {
112
- [K in keyof PluginMap]: PluginMap[K];
113
- };
114
-
115
- declare type PluginDefinitions = Array<keyof AvailablePlugins | {
116
- name: keyof AvailablePlugins;
117
- loader: () => Promise<PluginConstructors[keyof PluginConstructors]>;
118
- }>;
119
-
120
- declare interface PluginMap {
121
- dragIn: typeof DragIn;
122
- }
123
-
124
- declare type RoomleConfiguratorApi = RoomleEmbeddingApi<default_2, default_4>;
125
-
126
- declare class RoomleEmbeddingApi<SdkType, SdkCallbacks> extends Connector<SdkType, SdkCallbacks> {
127
- static createPlanner(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomlePlannerApi>;
128
- static connect(customView: PossibleCustomViews, plugins?: PluginDefinitions): Promise<Connector<default_2, default_4>>;
129
- /**
130
- * Method to create a new instance of a Roomle Configurator
131
- * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
132
- * @param container DOM container in which the configurator should be placed
133
- * @param initData settings with which the configurator should be started
134
- */
135
- static createConfigurator(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomleConfiguratorApi>;
136
- /**
137
- * Method to create a new instance of a Roomle Configurator
138
- * @deprecated please use "createConfigurator"
139
- * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
140
- * @param container DOM container in which the configurator should be placed
141
- * @param initData settings with which the configurator should be started
142
- */
143
- static create(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins: PluginDefinitions): Promise<RoomleConfiguratorApi>;
144
- /**
145
- * Method to create a new instance of a Roomle Viewer
146
- * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
147
- * @param container DOM container in which the configurator should be placed
148
- * @param initData settings with which the configurator should be started
149
- */
150
- static createViewer(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomleViewerApi>;
151
- private static _create;
152
- private _waitForIframe;
153
- private _container;
154
- private _configuratorSettings;
155
- private _initData;
156
- private _iframe;
157
- private constructor();
158
- teardown(): void;
159
- private _createIframe;
160
- private _onResize;
161
- private _onUseFullPage;
162
- private _onBackToWebsite;
163
- private _executeMessage;
164
- }
165
- export default RoomleEmbeddingApi;
166
-
167
- declare interface RoomleEmbeddingApiKeys {
168
- extended: any;
169
- configurator: any;
170
- ui: any;
171
- analytics: any;
172
- global: any;
173
- }
174
-
175
- declare type RoomlePlannerApi = RoomleEmbeddingApi<default_3, default_4>;
176
-
177
- declare type RoomleViewerApi = RoomleEmbeddingApi<default_5, default_4>;
178
-
179
- export { }
1
+ import _default from './packages/embedding-lib/src/embedding-lib'
2
+ export default _default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomle/embedding-lib",
3
- "version": "5.9.0-alpha.3",
3
+ "version": "5.9.0-alpha.4",
4
4
  "description": "This is a small library which can be used to communicate with the Roomle Configurator",
5
5
  "type": "module",
6
6
  "main": "./roomle-embedding-lib.umd.js",
@@ -29,7 +29,7 @@
29
29
  "npm": "8.3.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@roomle/web-sdk": "2.91.0-alpha.9"
32
+ "@roomle/web-sdk": "2.91.0-alpha.10"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
@@ -0,0 +1,8 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ interface FileSizeCheckOptions {
4
+ warnOnly?: boolean;
5
+ logSize?: boolean;
6
+ }
7
+ export default function fileSizeCheck(maxSizeKB: number, options?: FileSizeCheckOptions): Plugin;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ export default function minify(): Plugin<any>;
@@ -0,0 +1,4 @@
1
+ import { Nullable } from '../../../../src/common/utils/types';
2
+
3
+ export declare const BROWSER_LANGUAGE_PROPERTY_KEYS_KNOWN: string[];
4
+ export declare const getLanguage: (lang?: Nullable<string>) => any;
@@ -0,0 +1,26 @@
1
+ export interface CustomDragInterface<EventType> {
2
+ onMove(event: EventType): void;
3
+ onEnd(): void;
4
+ onStart(event: EventType): void;
5
+ }
6
+ export interface CustomDragOptions {
7
+ delay?: number;
8
+ epsilon?: number;
9
+ }
10
+ export interface CustomDragCallbacks {
11
+ onCustomDragStart: (event: MouseEvent) => void;
12
+ }
13
+ export declare class CustomDrag implements CustomDragInterface<MouseEvent> {
14
+ private _startX;
15
+ private _startY;
16
+ private _lastX;
17
+ private _lastY;
18
+ private _epsilon;
19
+ private _isWaiting;
20
+ private _onCustomDragStart;
21
+ constructor({ onCustomDragStart }: CustomDragCallbacks, options?: CustomDragOptions);
22
+ onMove(event: MouseEvent): void;
23
+ onStart(event: MouseEvent): void;
24
+ onEnd(): void;
25
+ private _reset;
26
+ }
@@ -0,0 +1,2 @@
1
+ export declare const getCustomViewSelector: (viewName: string) => string;
2
+ export declare const cancelEvent: (event: Event) => void;
@@ -0,0 +1,3 @@
1
+ export declare const NAMES_FOR_LOCALHOST: string[];
2
+ export declare const getHostname: () => string | null;
3
+ export declare const isDemoHostname: (hostname: string) => boolean;
@@ -0,0 +1,17 @@
1
+ import { DragInOptions } from '../../../embedding-lib/src/plugins/types';
2
+
3
+ export interface PointRect {
4
+ x: number;
5
+ y: number;
6
+ height: number;
7
+ width: number;
8
+ }
9
+ export type OnBeforeUpdateDragGhost = (x: number, y: number, options: DragInOptions) => {
10
+ x?: number;
11
+ y?: number;
12
+ options?: Partial<DragInOptions>;
13
+ };
14
+ export declare const isPointInRectangle: (point: {
15
+ x: number;
16
+ y: number;
17
+ }, rect: PointRect, overlapX?: number, overlapY?: number) => boolean;
@@ -0,0 +1,23 @@
1
+ import { RoomleEmbeddingApiKeys } from '../../../embedding-lib/src/connector';
2
+ import { ConfiguratorSettings, UiInitData } from '../../../../src/configurator/embedding/types';
3
+
4
+ export declare const NAMESPACE: {
5
+ [key: string]: keyof RoomleEmbeddingApiKeys | 'callbacks';
6
+ };
7
+ export declare const NAMESPACE_SEPARATOR = ".";
8
+ export declare const SDK_CALLBACK: string;
9
+ export declare const HANDSHAKE_MESSAGES: {
10
+ REQUEST_BOOT: string;
11
+ SETUP: string;
12
+ WEBSITE_READY: string;
13
+ };
14
+ export declare const WELL_KNOWN_MESSAGES: {
15
+ GET_METHODS: string;
16
+ RETURN_METHODS: string;
17
+ REGISTER_CUSTOM_VIEW: string;
18
+ REGISTER_CUSTOM_VIEW_DONE: string;
19
+ };
20
+ export declare const isExposable: (name: string) => boolean;
21
+ export declare const getMethodNames: (proto: any, namespace: string, isCallback?: boolean) => string[];
22
+ export declare const getConfiguratorSettings: (configuratorId: string, initData: UiInitData) => Promise<ConfiguratorSettings>;
23
+ export declare const INTERACTION_CONTAINER_SELECTOR = "data-rml-interaction-container";
@@ -0,0 +1,8 @@
1
+ export declare class ComputedStyleCached {
2
+ private _computedStyleCache;
3
+ private _maxLifetime;
4
+ private _cacheCleanInterval;
5
+ constructor(maxLifetime?: number);
6
+ get(element: HTMLElement): CSSStyleDeclaration;
7
+ private _cleanUpCache;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { RapiId } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
2
+
3
+ export declare const isIdAnItem: (id: string) => boolean;
4
+ export declare const isIdAPlan: (id: string) => boolean;
5
+ export declare const isIdAComponent: (id: string) => boolean;
6
+ export declare const isIdAConfigurationString: (id: string) => boolean;
7
+ export declare const isPlanSnapshotId: (id: string | RapiId) => id is `ps_${string}`;
@@ -0,0 +1,3 @@
1
+ export declare const isInIframe: () => boolean;
2
+ export declare const useEmbeddingApi: () => boolean;
3
+ export declare const sameOrigin: () => boolean;
@@ -0,0 +1,66 @@
1
+ import { ConfiguratorSettings, PossibleCustomViewSettings, UiInitData } from '../../../../src/configurator/embedding/types';
2
+ import { MessageHandler } from './message-handler';
3
+ import { default as RapiAccess } from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
4
+ import { Nullable } from '../../../../src/common/utils/types';
5
+ import { RoomleSdkWrapper } from '../../../../src/configurator/business-logic/roomle-sdk-wrapper';
6
+
7
+ export declare const cleanUpInitData: (key: keyof UiInitData, initData: UiInitData) => void;
8
+ export declare const FALLBACK_INIT_DATA: {
9
+ mobileLandscape: boolean;
10
+ floorMaterialRootTag: string;
11
+ buttons: {
12
+ renderimage: boolean;
13
+ requestproduct: boolean;
14
+ requestplan: boolean;
15
+ load_product: boolean;
16
+ partlist_print: boolean;
17
+ };
18
+ elements: {
19
+ interaction_notes: boolean;
20
+ };
21
+ helpcenter: {
22
+ roomdesigner: boolean;
23
+ configurator: boolean;
24
+ disable: boolean;
25
+ };
26
+ firstPersonView: boolean;
27
+ saveToIdb: boolean;
28
+ featureFlags: {
29
+ mocAr: boolean;
30
+ wallAutoHeight: boolean;
31
+ };
32
+ rotationSnapDegrees: number;
33
+ };
34
+ export declare const CONFIGURATOR_IDLE = "(idle)";
35
+ export declare const getInitData: (useFallbackId?: boolean) => UiInitData;
36
+ export declare const castAndFixInitData: (initData: UiInitData) => UiInitData;
37
+ export declare const mergeStringArrays: (initData: any) => any;
38
+ export declare const castInitData: (obj: {
39
+ [key: string]: any;
40
+ }) => void;
41
+ export declare const mergeInitData: (configuratorSettings: ConfiguratorSettings | {
42
+ id: string;
43
+ settings: UiInitData;
44
+ }, currentInitData: UiInitData) => UiInitData;
45
+ export declare const getEmbeddingInitData: (messageHandler: MessageHandler) => Promise<UiInitData>;
46
+ export declare const getRemoteInitData: (rapiAccess: RapiAccess, configuratorId: string) => Promise<UiInitData>;
47
+ export declare const getFallbackInitData: () => UiInitData;
48
+ export declare const LEGACY_SHARE_PLACEHOLDER = "<CONF_ID>";
49
+ export declare const SHARE_PLACEHOLDER = "#CONFIGURATIONID#";
50
+ /**
51
+ * combines init data in this order: query params > embedding > remote > fallback
52
+ *
53
+ * some exceptions to consider:
54
+ * - tenant: when do we need the tenant and where do we get it from?
55
+ *
56
+ * @param messageHandler
57
+ * @param sdkWrapper
58
+ * @param queryParamsInitData
59
+ */
60
+ export declare const combineInitData: (messageHandler: Nullable<MessageHandler>, sdkWrapper: RoomleSdkWrapper, queryParamsInitData: UiInitData) => Promise<UiInitData>;
61
+ export declare const setProperty: (o: {
62
+ [key: string]: any;
63
+ }, path: string, value: any) => void;
64
+ export declare const isCustomViewSettingsForIframe: (customViewSetting: PossibleCustomViewSettings) => boolean;
65
+ export declare const hasCustomViewAsIframe: (initData: UiInitData) => boolean;
66
+ export declare const setFeatureFlagsDefaults: (fallbackInitData: UiInitData) => void;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Recursively merge properties of two objects.
3
+ * If a property exists in both it, property of obj2 is used.
4
+ * Returns a new object (copy)
5
+ * @param obj1
6
+ * @param obj2
7
+ */
8
+ export declare const deepMergeCopy: (obj1: any, obj2: any) => any;
9
+ /**
10
+ * Recursively merge properties of two objects.
11
+ * If a property exists in both it, property of obj2 is used.
12
+ * Warning: This returns obj1 and not a copy!
13
+ * @param obj1
14
+ * @param obj2
15
+ */
16
+ export declare const deepMerge: (obj1: any, obj2: any) => any;
@@ -0,0 +1,3 @@
1
+ import { MessageHandler } from './message-handler';
2
+
3
+ export declare const getMessageHandlerClass: () => Promise<typeof MessageHandler>;
@@ -0,0 +1,35 @@
1
+ import { Nullable } from '../../../../src/common/utils/types';
2
+ import { PossibleCustomViews } from '../../../../src/configurator/embedding/types';
3
+
4
+ interface IncomingMessageBus {
5
+ addEventListener(type: 'message', listener: (this: Window, ev: WindowEventMap['message']) => any, options?: boolean | AddEventListenerOptions): void;
6
+ }
7
+ interface OutgoingMessageBus {
8
+ postMessage: (message: any, targetOrigin: string, transfer?: Transferable[]) => void;
9
+ }
10
+ export type CustomViewCommunicationSide = `custom-view-${PossibleCustomViews}`;
11
+ export type CustomViewCommunicationSideParent = `custom-view-${PossibleCustomViews}-parent`;
12
+ type CommunicationSide = 'iframe' | 'website' | 'main' | CustomViewCommunicationSide | CustomViewCommunicationSideParent;
13
+ export type MessageExecutionResult = Promise<EmbeddingResponse | void> | undefined;
14
+ type MessageExecution = (message: EmbeddingCommand, event: MessageEvent) => MessageExecutionResult | Promise<MessageExecutionResult>;
15
+ export interface EmbeddingResponse {
16
+ result?: any;
17
+ error?: string;
18
+ }
19
+ export interface EmbeddingCommand {
20
+ message: string;
21
+ args: any[];
22
+ }
23
+ export declare class MessageHandler {
24
+ private _side;
25
+ private _incomingMessageBus;
26
+ private _outgoingMessageBus;
27
+ private _execMessage;
28
+ constructor(side: CommunicationSide, incomingMessageBus: Nullable<IncomingMessageBus>, outgoingMessageBus: Nullable<OutgoingMessageBus>, messageExecution: Nullable<MessageExecution>);
29
+ setOutgoingMessageBus(outgoingMessageBus: OutgoingMessageBus): void;
30
+ setMessageExecution(fun: MessageExecution): void;
31
+ sendMessage(message: string, args?: any[]): Promise<any>;
32
+ private _handleMessage;
33
+ private _prepareError;
34
+ }
35
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const promiseWithResolvers: <T>() => {
2
+ promise: Promise<T>;
3
+ resolve: (value: T) => void;
4
+ reject: (reason?: any) => void;
5
+ };
@@ -0,0 +1 @@
1
+ export declare const wait: (delayInMs: number) => Promise<void>;
@@ -0,0 +1,30 @@
1
+ import { Nullable } from '../../../../src/common/utils/types';
2
+ import { CustomDragInterface } from './custom-drag';
3
+
4
+ export declare const TOUCH_DRAG_DELAY = 500;
5
+ export declare const TOUCH_DRAG_EPSILON = 10;
6
+ export declare const CUSTOM_DRAG_DELAY = 100;
7
+ export declare const CUSTOM_DRAG_EPSILON = 15;
8
+ export interface TouchDragOptions {
9
+ delay?: number;
10
+ epsilon?: number;
11
+ }
12
+ export interface TouchDragCallbacks {
13
+ onTouchDragStart: (payload: Nullable<any>, event: TouchEvent) => void;
14
+ }
15
+ export declare class TouchDrag<Payload> implements CustomDragInterface<TouchEvent> {
16
+ private _touchDragTimeOut;
17
+ private _onTouchDragStart;
18
+ private _payload;
19
+ private _delay;
20
+ private _firstTouch;
21
+ private _lastTouch;
22
+ private _epsilon;
23
+ constructor(payload: Payload, { onTouchDragStart }: TouchDragCallbacks, options?: TouchDragOptions);
24
+ onStart(event: TouchEvent): void;
25
+ onEnd(): void;
26
+ onMove(event: TouchEvent | MouseEvent): void;
27
+ private _clearTimeout;
28
+ private _resetTouches;
29
+ private _checkXDistance;
30
+ }
@@ -0,0 +1 @@
1
+ export declare const isTouchEvent: (event: Event) => event is TouchEvent;
@@ -0,0 +1,42 @@
1
+ import { Nullable } from '../../../src/common/utils/types';
2
+ import { ExposedAnalyticsCallbacks } from '../../../src/configurator/embedding/exposed-analytics-callbacks';
3
+ import { ExposedApi } from '../../../src/configurator/embedding/exposed-api';
4
+ import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
5
+ import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
6
+ import { EmbeddingCommand, MessageHandler } from '../../common/src/utils/message-handler';
7
+ import { AvailablePlugins, PluginDefinitions } from './embedding-lib';
8
+ import { EmbeddingPluginMode } from './plugins/types';
9
+ import { PossibleCustomViewsAndMain } from '../../../src/configurator/embedding/types';
10
+
11
+ export interface RoomleEmbeddingApiKeys {
12
+ extended: any;
13
+ configurator: any;
14
+ ui: any;
15
+ analytics: any;
16
+ global: any;
17
+ }
18
+ export declare class Connector<SdkType, SdkCallbacks> implements RoomleEmbeddingApiKeys {
19
+ protected _messageHandler: Nullable<MessageHandler>;
20
+ isSetupDone: boolean;
21
+ viewName: PossibleCustomViewsAndMain;
22
+ plugins: AvailablePlugins;
23
+ pluginsLoaded: Array<Promise<void>>;
24
+ ui: ExposedApi;
25
+ extended: SdkType;
26
+ configurator: RoomleConfigurator;
27
+ analytics: {
28
+ callbacks: ExposedAnalyticsCallbacks;
29
+ };
30
+ global: {
31
+ callbacks: GlobalCallback;
32
+ };
33
+ setMessageHandler(messageHandler: MessageHandler): void;
34
+ handleSetup(methodsAndCallbacks: {
35
+ methods: string[];
36
+ callbacks: string[];
37
+ }): void;
38
+ executeMessage({ message, args }: EmbeddingCommand): Promise<{
39
+ result: any;
40
+ }>;
41
+ setupPlugins(plugins: PluginDefinitions, iframe: HTMLIFrameElement | HTMLBodyElement, mode?: EmbeddingPluginMode): void;
42
+ }
@@ -0,0 +1,64 @@
1
+ import { PossibleCustomViews, UiInitData } from '../../../src/configurator/embedding/types';
2
+ import { default as ConfiguratorUiCallbacks } from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
3
+ import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
4
+ import { default as RoomleGLBViewer } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/roomle-glb-viewer';
5
+ import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
6
+ import { DragIn } from './plugins/drag-in';
7
+ import { Connector } from './connector';
8
+
9
+ interface PluginMap {
10
+ dragIn: typeof DragIn;
11
+ }
12
+ export type AvailablePlugins = {
13
+ [K in keyof PluginMap]?: InstanceType<PluginMap[K]>;
14
+ };
15
+ export type PluginConstructors = {
16
+ [K in keyof PluginMap]: PluginMap[K];
17
+ };
18
+ export type PluginDefinitions = Array<keyof AvailablePlugins | {
19
+ name: keyof AvailablePlugins;
20
+ loader: () => Promise<PluginConstructors[keyof PluginConstructors]>;
21
+ }>;
22
+ export type RoomleConfiguratorApi = RoomleEmbeddingApi<RoomleConfigurator, ConfiguratorUiCallbacks>;
23
+ export type RoomleViewerApi = RoomleEmbeddingApi<RoomleGLBViewer, ConfiguratorUiCallbacks>;
24
+ export type RoomlePlannerApi = RoomleEmbeddingApi<RoomlePlanner, ConfiguratorUiCallbacks>;
25
+ export default class RoomleEmbeddingApi<SdkType, SdkCallbacks> extends Connector<SdkType, SdkCallbacks> {
26
+ static createPlanner(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomlePlannerApi>;
27
+ static connect(customView: PossibleCustomViews, plugins?: PluginDefinitions): Promise<Connector<RoomleConfigurator, ConfiguratorUiCallbacks>>;
28
+ /**
29
+ * Method to create a new instance of a Roomle Configurator
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 createConfigurator(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomleConfiguratorApi>;
35
+ /**
36
+ * Method to create a new instance of a Roomle Configurator
37
+ * @deprecated please use "createConfigurator"
38
+ * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
39
+ * @param container DOM container in which the configurator should be placed
40
+ * @param initData settings with which the configurator should be started
41
+ */
42
+ static create(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins: PluginDefinitions): Promise<RoomleConfiguratorApi>;
43
+ /**
44
+ * Method to create a new instance of a Roomle Viewer
45
+ * @param configuratorId the id which identifies your configurator, you will get this ID from your Roomle Contact Person
46
+ * @param container DOM container in which the configurator should be placed
47
+ * @param initData settings with which the configurator should be started
48
+ */
49
+ static createViewer(configuratorId: string, container: HTMLElement, initData: UiInitData, plugins?: PluginDefinitions): Promise<RoomleViewerApi>;
50
+ private static _create;
51
+ private _waitForIframe;
52
+ private _container;
53
+ private _configuratorSettings;
54
+ private _initData;
55
+ private _iframe;
56
+ private constructor();
57
+ teardown(): void;
58
+ private _createIframe;
59
+ private _onResize;
60
+ private _onUseFullPage;
61
+ private _onBackToWebsite;
62
+ private _executeMessage;
63
+ }
64
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface Example {
2
+ setupHtml(parent: HTMLElement): Promise<void>;
3
+ runExample(): Promise<void>;
4
+ closeExample(): Promise<void>;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { Example } from '../example';
2
+
3
+ export default class ExtCatalog implements Example {
4
+ url: string;
5
+ setupHtml(parent: HTMLElement): Promise<void>;
6
+ closeExample(): Promise<void>;
7
+ runExample(): Promise<void>;
8
+ }
9
+ export declare const getHtml: () => string;
10
+ export declare const getIframeUrl: (url: string) => string;