@roomle/embedding-lib 5.13.0-alpha.1 → 5.13.0-alpha.3

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 (62) hide show
  1. package/docs/md/web/embedding/CHANGELOG.md +4 -22
  2. package/package.json +2 -2
  3. package/packages/common/src/utils/init-data.d.ts +1 -0
  4. package/packages/embedding-lib/src/connector.d.ts +1 -1
  5. package/packages/embedding-lib/src/embedding-lib.d.ts +1 -1
  6. package/roomle-embedding-lib.es.js +8 -7
  7. package/roomle-embedding-lib.es.min.js +1 -1
  8. package/roomle-embedding-lib.umd.js +1 -1
  9. package/roomle-embedding-lib.umd.min.js +2 -2
  10. package/src/common/components/collection-view/-utils/collection-view-dynamic-components.d.ts +86 -965
  11. package/src/common/components/overlays/PartList.vue.d.ts +3 -4
  12. package/src/common/components/overlays/part-list/partlist-setup.d.ts +3 -4
  13. package/src/common/composables/use-configurator-api.d.ts +2 -2
  14. package/src/common/composables/use-core-instances.d.ts +2 -2
  15. package/src/common/composables/use-event-emitter-listener.d.ts +2 -0
  16. package/src/common/composables/use-open-close-anim.d.ts +9 -0
  17. package/src/common/composables/use-static-item-parameters.d.ts +2 -2
  18. package/src/common/utils/helper.d.ts +6 -7
  19. package/src/common/utils/parameters.d.ts +2 -2
  20. package/src/common/utils/types.d.ts +9 -1
  21. package/src/common/utils/ui-actions.d.ts +2 -3
  22. package/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +3 -4
  23. package/src/configurator/business-logic/sdk-connector-configurator.d.ts +3 -4
  24. package/src/configurator/business-logic/sdk-connector.d.ts +7 -8
  25. package/src/configurator/components/grid-view/-utils/ExpandedView.vue.d.ts +2 -2
  26. package/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +2 -2
  27. package/src/configurator/components/grid-view/GridView.vue.d.ts +25 -319
  28. package/src/configurator/components/parameters/types/MaterialParameter.vue.d.ts +27 -320
  29. package/src/configurator/components/parameters/types/ProductVariant.vue.d.ts +27 -320
  30. package/src/configurator/components/parameters/types/ThumbnailsParameter.vue.d.ts +27 -320
  31. package/src/configurator/embedding/exposed-api.d.ts +2 -4
  32. package/src/configurator/embedding/exposed-callbacks.d.ts +2 -1
  33. package/src/configurator/embedding/helper.d.ts +4 -3
  34. package/src/configurator/embedding/types.d.ts +5 -0
  35. package/src/planner/business-logic/sdk-connector-planner.d.ts +5 -5
  36. package/src/planner/components/ObjectList.vue.d.ts +4 -2
  37. package/src/planner/components/measurements/MeasurementDisplayComponent.vue.d.ts +4 -0
  38. package/src/planner/components/measurements/ShowWallAtticMeasurements.vue.d.ts +8 -0
  39. package/src/planner/components/measurements/utils/AtticLabel.vue.d.ts +24 -0
  40. package/src/planner/components/measurements/utils/AtticLine.vue.d.ts +26 -0
  41. package/src/planner/components/overlays/ProductList.vue.d.ts +2 -2
  42. package/src/planner/components/overlays/ProductSettings.vue.d.ts +3 -4
  43. package/src/planner/components/overlays/product-list/ProductListEntry.vue.d.ts +2 -2
  44. package/src/planner/components/overlays/product-list/ProductListType.vue.d.ts +2 -2
  45. package/src/planner/components/overlays/product-settings/ProductPositions.vue.d.ts +3 -3
  46. package/src/planner/components/overlays/product-settings/ProductRotation.vue.d.ts +3 -3
  47. package/src/planner/components/overlays/product-settings/ProductSettingsInfos.vue.d.ts +3 -3
  48. package/src/planner/components/overlays/product-settings/ProductSize.vue.d.ts +3 -3
  49. package/src/planner/components/overlays/product-settings/ProductXYZChanger.vue.d.ts +3 -3
  50. package/src/planner/components/overlays/rooms/ConstructionVariants.vue.d.ts +28 -321
  51. package/src/planner/components/overlays/rooms/DoorParametersSetting.vue.d.ts +33 -326
  52. package/src/planner/components/overlays/rooms/ElementLengthScaling.vue.d.ts +2 -2
  53. package/src/planner/components/overlays/rooms/FloorColor.vue.d.ts +2 -2
  54. package/src/planner/components/overlays/rooms/RoomGeneralSettings.vue.d.ts +2 -2
  55. package/src/planner/components/overlays/rooms/RoomsList.vue.d.ts +2 -2
  56. package/src/planner/components/overlays/rooms/SlopingRoof.vue.d.ts +2 -2
  57. package/src/planner/components/overlays/rooms/SlopingRoofDirection.vue.d.ts +2 -2
  58. package/src/planner/components/overlays/rooms/WallGeneralSettings.vue.d.ts +2 -2
  59. package/src/planner/components/overlays/rooms/WindowParametersSetting.vue.d.ts +3 -4
  60. package/src/planner/components/utils/AssureConfiguratorHandlers.vue.d.ts +1 -1
  61. package/src/planner/components/utils/AssureSdkHandlers.vue.d.ts +1 -1
  62. package/src/planner/utils/planner-sidebar.d.ts +2 -2
@@ -1,8 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { EventBus } from '../../business-logic/event-bus';
3
- import { CloseReason, ToggleCallback } from '../../utils/types';
3
+ import { CloseReason, RoomlePlannerWithExtObjs, ToggleCallback } from '../../utils/types';
4
4
  import { SelectionPayload } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
5
- import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
6
5
  import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
7
6
 
8
7
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -12,7 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
11
  };
13
12
  icToggleEvent: PropType<EventBus<ToggleCallback>>;
14
13
  api: {
15
- type: PropType<RoomleConfigurator | RoomlePlanner>;
14
+ type: PropType<RoomlePlannerWithExtObjs | RoomleConfigurator<readonly []>>;
16
15
  required: true;
17
16
  };
18
17
  }>, {
@@ -39,7 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
39
38
  };
40
39
  icToggleEvent: PropType<EventBus<ToggleCallback>>;
41
40
  api: {
42
- type: PropType<RoomleConfigurator | RoomlePlanner>;
41
+ type: PropType<RoomlePlannerWithExtObjs | RoomleConfigurator<readonly []>>;
43
42
  required: true;
44
43
  };
45
44
  }>> & Readonly<{}>, {}, {}, {
@@ -1,12 +1,11 @@
1
1
  import { KernelPartList, KernelPartListPrice, KernelPlanObject } from '@roomle/web-sdk/lib/definitions/typings/kernel';
2
- import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
3
2
  import { Store } from 'vuex';
4
3
  import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
5
- import { Nullable } from '../../../utils/types';
4
+ import { Nullable, RoomlePlannerWithExtObjs } from '../../../utils/types';
6
5
  import { StoreState } from '../../../store';
7
6
 
8
- export default function setupPartList(api: Nullable<RoomlePlanner> | Nullable<RoomleConfigurator>, storeIn?: Store<StoreState>, plannerCoreInstance?: {
9
- api: Nullable<RoomlePlanner>;
7
+ export default function setupPartList(api: Nullable<RoomlePlannerWithExtObjs> | Nullable<RoomleConfigurator>, storeIn?: Store<StoreState>, plannerCoreInstance?: {
8
+ api: Nullable<RoomlePlannerWithExtObjs>;
10
9
  }, planObject?: KernelPlanObject): () => {
11
10
  store: any;
12
11
  label: import('vue').ComputedRef<any>;
@@ -1,6 +1,6 @@
1
1
  import { ShallowRef } from 'vue';
2
- import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
2
+ import { RoomleConfiguratorType } from '../utils/types';
3
3
 
4
4
  export declare const useConfiguratorApi: () => {
5
- configuratorApi: ShallowRef<RoomleConfigurator>;
5
+ configuratorApi: ShallowRef<RoomleConfiguratorType>;
6
6
  };
@@ -1,8 +1,8 @@
1
1
  import { ShallowRef } from 'vue';
2
- import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
3
2
  import { PlanInteractionHandler } from '@roomle/web-sdk/lib/definitions/typings/planner';
3
+ import { RoomlePlannerWithExtObjs } from '../utils/types';
4
4
 
5
5
  export declare const useCoreInstances: () => {
6
- api: ShallowRef<RoomlePlanner>;
6
+ api: ShallowRef<RoomlePlannerWithExtObjs>;
7
7
  planInteractionHandler: ShallowRef<PlanInteractionHandler>;
8
8
  };
@@ -39,9 +39,11 @@ export interface NotificationEventTypes {
39
39
  }
40
40
  export declare const UPDATE_EVENTS: {
41
41
  readonly WALL_LENGTH: "update-wall-length";
42
+ readonly WALL_HEIGHT: "update-wall-height";
42
43
  };
43
44
  export interface UpdateEventTypes {
44
45
  [UPDATE_EVENTS.WALL_LENGTH]: void;
46
+ [UPDATE_EVENTS.WALL_HEIGHT]: void;
45
47
  }
46
48
  export declare const CUSTOM_VIEW_EVENTS: {
47
49
  readonly SHOW: "show-custom-view";
@@ -0,0 +1,9 @@
1
+ import { CollectionViewElement as CollectionViewElementType } from '../components/collection-view/-utils/types';
2
+ import { UiKernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
3
+
4
+ export declare const OPEN_CLOSE_ANIMATION_PARAM_KEY = "animation:openClose";
5
+ export declare const useOpenCloseAnim: () => {
6
+ openCloseAnimationParameter: import('vue').ComputedRef<CollectionViewElementType<UiKernelParameter>>;
7
+ isAnimationToggled: import('vue').ComputedRef<boolean>;
8
+ toggleOpenCloseAnimation: () => Promise<void>;
9
+ };
@@ -1,8 +1,8 @@
1
1
  import { GridViewElement } from '../../configurator/components/grid-view/-utils/GridViewHelper';
2
- import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
3
2
  import { MaterialsForObjects } from '../../planner/business-logic/rooms';
3
+ import { RoomlePlannerWithExtObjs } from '../utils/types';
4
4
 
5
- export declare const useStaticItemParameters: (api: RoomlePlanner, materialRootTag?: string[] | string) => {
5
+ export declare const useStaticItemParameters: (api: RoomlePlannerWithExtObjs, materialRootTag?: string[] | string) => {
6
6
  show: {
7
7
  sizeControls: boolean;
8
8
  colorControls: boolean;
@@ -1,12 +1,11 @@
1
- import { Enumify, CATALOG_INFOS_TYPES, ExtendedKernelVector3, GroupedCollection, Nullable } from './types';
1
+ import { Enumify, CATALOG_INFOS_TYPES, RoomlePlannerWithExtObjs, RoomleConfiguratorType, ExtendedKernelVector3, GroupedCollection, Nullable } from './types';
2
2
  import { RapiConfiguration, RapiItem, RapiTenant, AdditionalInfo, RapiMaterial, RapiComponent, RapiPlanSnapshotGetData } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
3
3
  import { StoreState } from '../store';
4
4
  import { UiInitData } from '../../configurator/embedding/types';
5
5
  import { BUTTON_ACTIONS } from '../../configurator/store/ui-state';
6
- import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
7
- import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
8
6
  import { KernelVector3 } from '@roomle/web-sdk/lib/definitions/typings/kernel';
9
7
  import { PlannerUiState } from '../../planner/store/planner-ui-state';
8
+ import { ExternalConfiguration } from '@roomle/web-sdk/lib/definitions/typings/external-objects';
10
9
 
11
10
  export declare const throttle: <T extends (...args: any[]) => any>(func: T, delay?: number) => (...funcArgs: Parameters<T>) => void;
12
11
  export declare const round: (float: number, precision: number) => number;
@@ -34,8 +33,8 @@ export interface KernelBoundsFormatted {
34
33
  export declare const deepCopy: <T>(o: T) => T;
35
34
  export declare const toBoolean: (value: boolean | undefined, defaultValue?: boolean) => boolean;
36
35
  export declare const scriptInfo: (...args: any[]) => void;
37
- export declare const getGlbAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData) => Nullable<string>;
38
- export declare const getUsdzAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData) => Nullable<string>;
36
+ export declare const getGlbAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData | ExternalConfiguration) => Nullable<string>;
37
+ export declare const getUsdzAssetUrl: (obj: RapiItem | RapiConfiguration | RapiPlanSnapshotGetData | ExternalConfiguration) => Nullable<string>;
39
38
  export declare const hasArAssets: (item: RapiItem) => boolean;
40
39
  export declare const formatPrice: (currencySymbol: Nullable<string>, price: Nullable<number>) => Nullable<string>;
41
40
  export declare const normalizeFloatingNumber: (num: number, decimals?: number) => number;
@@ -49,7 +48,7 @@ export declare const parseColorToHexDecimalString: (color: string) => string;
49
48
  export declare const groupArrayBy: <T>(collection: T[], key: keyof T) => GroupedCollection<T>;
50
49
  export declare const setupStoreWithInitData: (initData: UiInitData, store: Store<StoreState>) => void;
51
50
  export declare const isActionActive: (state: PlannerUiState, action: BUTTON_ACTIONS) => boolean;
52
- export declare const setMeasurementUnit: (sdkConnector: RoomlePlanner | RoomleConfigurator, store: Store<StoreState>) => void;
51
+ export declare const setMeasurementUnit: (sdkConnector: RoomlePlannerWithExtObjs | RoomleConfiguratorType, store: Store<StoreState>) => void;
53
52
  export declare const getStartConfiguringOrViewingIcon: (store: Store<StoreState>) => string;
54
53
  export interface Tooltip {
55
54
  [key: string]: string;
@@ -67,7 +66,7 @@ export type WithRequired<T, K extends keyof T> = T & {
67
66
  };
68
67
  export declare const radToDeg: (rad: number) => number;
69
68
  export declare const isValidPlanID: (planId: string) => boolean;
70
- export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api: Nullable<RoomlePlanner>) => {
69
+ export declare const convertToUIValuesHelper: (valuesMM: KernelVector3, api: Nullable<RoomlePlannerWithExtObjs>) => {
71
70
  x: string;
72
71
  y: string;
73
72
  z: string;
@@ -2,7 +2,7 @@ import { RapiMaterial, RapiMaterialGroup, RapiTagForUi, RapiTexture } from '@roo
2
2
  import { KernelPartListParameter, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
3
3
  import { CollectionViewElement, TabCategory } from '../components/collection-view/-utils/types';
4
4
  import { VariantsMap } from '../../configurator/embedding/types';
5
- import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
5
+ import { RoomleConfiguratorType } from './types';
6
6
 
7
7
  export interface RapiMaterialEmbeddedTextures extends RapiMaterial {
8
8
  embeddedTextures?: RapiTexture[];
@@ -15,5 +15,5 @@ export declare const mapRootTagToCollectionViewArray: (tags: RapiTagForUi[], tab
15
15
  export declare const filterAndMapAddons: (addons: UiPossibleChildTag[], selectedGroup: string | undefined) => CollectionViewElement[];
16
16
  export declare const addonsHaveGroups: (addons: UiPossibleChildTag[]) => boolean;
17
17
  export declare const extractRootComponentId: (id: string) => string;
18
- export declare const getCurrentVariants: (api: RoomleConfigurator, id: string, variantChangeMap?: VariantsMap) => Promise<RapiTagForUi>;
18
+ export declare const getCurrentVariants: (api: RoomleConfiguratorType, id: string, variantChangeMap?: VariantsMap) => Promise<RapiTagForUi>;
19
19
  export declare const prepareParametersForUi: (parameters: KernelPartListParameter[]) => KernelPartListParameter[];
@@ -1,3 +1,6 @@
1
+ import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
2
+ import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
3
+ import { ExternalConfiguration } from '@roomle/web-sdk/lib/definitions/typings/external-objects';
1
4
  import { KernelVector3 } from '@roomle/web-sdk/lib/definitions/typings/kernel';
2
5
  import { RapiConfigurationEnhanced, RapiPlanSnapshotGetData, RapiPlan } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
3
6
  import { ComponentPublicInstance } from 'vue';
@@ -120,7 +123,7 @@ export interface MessageEventData {
120
123
  export type DraftTypes = 'plan' | 'configuration';
121
124
  export interface SaveDraftPayload {
122
125
  type: Nullable<DraftTypes>;
123
- payload: Nullable<RapiConfigurationEnhanced | RapiPlanSnapshotGetData | RapiPlan>;
126
+ payload: Nullable<RapiConfigurationEnhanced | RapiPlanSnapshotGetData | RapiPlan | ExternalConfiguration>;
124
127
  }
125
128
  export interface SaveDraft {
126
129
  id: string;
@@ -144,3 +147,8 @@ export type TutorialData = {
144
147
  [key: string]: CustomTutorialTranslation | CustomTutorialPlatform | CustomTutorialScope;
145
148
  };
146
149
  export type TooltipTarget<T> = ComponentPublicInstance<T>;
150
+ export type RoomlePlannerWithExtObjs = RoomlePlanner<['external-objects']>;
151
+ export type RoomleConfiguratorWithExtObjs = RoomleConfigurator<[
152
+ 'external-objects'
153
+ ]>;
154
+ export type RoomleConfiguratorType = RoomleConfigurator | RoomleConfiguratorWithExtObjs;
@@ -2,9 +2,8 @@ import { SdkConnector } from '../../configurator/business-logic/sdk-connector';
2
2
  import { StoreState } from '../store';
3
3
  import { Store } from 'vuex';
4
4
  import { ExposedCallbacks } from '../../configurator/embedding/exposed-callbacks';
5
- import { Nullable } from './types';
5
+ import { Nullable, RoomlePlannerWithExtObjs } from './types';
6
6
  import { default as PlanElementViewModel } from '@roomle/web-sdk/lib/definitions/common-core/src/view-model/plan-element-view-model';
7
- import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
8
7
  import { SidebarType } from '../composables/use-event-emitter-listener';
9
8
  import { default as EventEmitter } from '../business-logic/event-emitter';
10
9
 
@@ -33,6 +32,6 @@ export default class UiActions {
33
32
  preparePartList(buttonAction: number): Promise<void>;
34
33
  private _toggleAction;
35
34
  switchProduct(): Promise<void>;
36
- swapObject(api: RoomlePlanner, planElement: PlanElementViewModel, itemId: string): Promise<Nullable<number>>;
35
+ swapObject(api: RoomlePlannerWithExtObjs, planElement: PlanElementViewModel, itemId: string): Promise<Nullable<number>>;
37
36
  popSidebar(): void;
38
37
  }
@@ -1,12 +1,11 @@
1
1
  import { default as RapiAccess } from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
2
2
  import { GlbViewer } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/glb-viewer';
3
3
  import { Configurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/configurator';
4
- import { Nullable } from '../../common/utils/types';
4
+ import { Nullable, RoomleConfiguratorType } from '../../common/utils/types';
5
5
  import { UiInitData } from '../embedding/types';
6
6
  import { GlobalInitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
7
7
  import { Planner } from '@roomle/web-sdk/lib/definitions/planner-core/src/planner';
8
8
  import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
9
- import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
10
9
  import { default as IdbManager } from '@roomle/web-sdk/lib/definitions/common-core/src/services/idb-manager';
11
10
 
12
11
  /**
@@ -20,9 +19,9 @@ export declare class RoomleSdkWrapper {
20
19
  private _currentInstance;
21
20
  get hasPlanner(): boolean;
22
21
  getConfigurator(element: HTMLElement, initData?: UiInitData): Promise<Configurator>;
23
- getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<RoomleConfigurator>;
22
+ getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<RoomleConfiguratorType>;
24
23
  getGlbViewer(element: HTMLElement, initData?: UiInitData): Promise<GlbViewer>;
25
- getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner>;
24
+ getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner<['external-objects']>>;
26
25
  getRapiAccess(): Promise<RapiAccess>;
27
26
  getGlobalCallback(): Promise<GlobalCallback>;
28
27
  getStorage(): Nullable<IdbManager>;
@@ -1,5 +1,4 @@
1
- import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
2
- import { Nullable } from '../../common/utils/types';
1
+ import { Nullable, RoomleConfiguratorType } from '../../common/utils/types';
3
2
  import { UiInitData } from '../embedding/types';
4
3
  import { StoreState } from '../../common/store';
5
4
  import { KernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
@@ -20,9 +19,9 @@ export declare class SdkConnectorConfigurator extends Connector {
20
19
  private _previousParameters;
21
20
  private _uiCallbacks;
22
21
  constructor(store: Store<StoreState>, analytics: Nullable<Analytics>, eventEmitter: EventEmitter);
23
- get api(): Promise<RoomleConfigurator>;
22
+ get api(): Promise<RoomleConfiguratorType>;
24
23
  init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
25
- initConfigurator(configurator: RoomleConfigurator): Promise<void>;
24
+ initConfigurator(configurator: RoomleConfiguratorType): Promise<void>;
26
25
  setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
27
26
  setPrice(currencySymbol: string, price: number): void;
28
27
  addUiCallback(listener: UiCallbacks): void;
@@ -1,6 +1,6 @@
1
1
  import { Store } from 'vuex';
2
2
  import { StoreState } from '../../common/store';
3
- import { Nullable } from '../../common/utils/types';
3
+ import { Nullable, RoomleConfiguratorType, RoomlePlannerWithExtObjs } from '../../common/utils/types';
4
4
  import { KernelParameter, KernelPartList, RuntimeId, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
5
5
  import { default as ConfiguratorUiCallbacks } from '@roomle/web-sdk/lib/definitions/configurator-core/src/services/configurator-ui-callback';
6
6
  import { Analytics } from '../../common/plugins/analytics';
@@ -10,12 +10,10 @@ import { default as RapiAccess } from '@roomle/web-sdk/lib/definitions/common-co
10
10
  import { MessageHandler } from '../../../packages/common/src/utils/message-handler';
11
11
  import { ExposedCallbacks } from '../embedding/exposed-callbacks';
12
12
  import { UiInitData } from '../embedding/types';
13
- import { default as RoomlePlanner } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner';
14
13
  import { SdkConnectorConfigurator } from './sdk-connector-configurator';
15
14
  import { SdkConnectorViewer } from '../../viewer/business-logic/sdk-connector-viewer';
16
15
  import { SdkConnectorPlanner } from '../../planner/business-logic/sdk-connector-planner';
17
16
  import { RapiConfigurationEnhanced, RapiPlan, RapiPlanSnapshotGetData } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
18
- import { default as RoomleConfigurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
19
17
  import { UiCallbacks } from './ui-callback';
20
18
  import { Base64Image } from '@roomle/web-sdk/lib/definitions/common-core/src/common-interfaces';
21
19
  import { default as RoomlePlannerUiCallback } from '@roomle/web-sdk/lib/definitions/planner-core/src/roomle-planner-ui-callback';
@@ -23,6 +21,7 @@ import { default as AsyncGuard } from '../../common/utils/async-guard';
23
21
  import { default as EventEmitter } from '../../common/business-logic/event-emitter';
24
22
  import { Translator } from '../../common/composables/use-intl';
25
23
  import { Libs } from '../plugins/libs-plugin';
24
+ import { ExternalConfiguration } from '@roomle/web-sdk/lib/definitions/typings/external-objects';
26
25
 
27
26
  export declare enum SDK_MODULES {
28
27
  VIEWER = 0,
@@ -68,8 +67,8 @@ export declare class SdkConnector {
68
67
  get configuratorConnector(): Promise<SdkConnectorConfigurator>;
69
68
  get viewerConnector(): Promise<SdkConnectorViewer>;
70
69
  get plannerConnector(): Promise<SdkConnectorPlanner>;
71
- get configuratorApi(): Promise<RoomleConfigurator>;
72
- get plannerApi(): Promise<RoomlePlanner>;
70
+ get configuratorApi(): Promise<RoomleConfiguratorType>;
71
+ get plannerApi(): Promise<RoomlePlannerWithExtObjs>;
73
72
  get viewerApi(): Promise<RoomleGLBViewer>;
74
73
  constructor(sdkWrapper: RoomleSdkWrapper, store: Store<StoreState>, analytics: Analytics, embeddingCallbacks: ExposedCallbacks, eventEmitter: EventEmitter, intl: Translator, libs: Libs);
75
74
  createExposedApi(module: SDK_MODULES, mainMessageHandler: MessageHandler, eventEmitter: EventEmitter): Promise<void>;
@@ -121,11 +120,11 @@ export declare class SdkConnector {
121
120
  initCanvasElement(module: SDK_MODULES): Promise<void>;
122
121
  initConfigurator(): Promise<void>;
123
122
  getTenant(): Promise<import('@roomle/web-sdk/lib/definitions/typings/rapi-types').RapiTenant>;
124
- saveCurrentConfiguration(): Promise<RapiConfigurationEnhanced>;
125
- saveCurrentPlanOrConfiguration(): Promise<RapiConfigurationEnhanced | RapiPlanSnapshotGetData>;
123
+ saveCurrentConfiguration(): Promise<RapiConfigurationEnhanced | ExternalConfiguration>;
124
+ saveCurrentPlanOrConfiguration(): Promise<RapiConfigurationEnhanced | RapiPlanSnapshotGetData | ExternalConfiguration>;
126
125
  giveGaConsent(): void;
127
126
  get hasPlanner(): boolean;
128
- saveCurrentObject(): Promise<RapiPlan | RapiPlanSnapshotGetData | RapiConfigurationEnhanced>;
127
+ saveCurrentObject(): Promise<RapiPlan | RapiPlanSnapshotGetData | RapiConfigurationEnhanced | ExternalConfiguration>;
129
128
  preparePerspectiveImage(): Promise<Base64Image>;
130
129
  private _finishLoading;
131
130
  private _waitForCanvasElement;
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<{
10
10
  onTouchStart: (element: GridViewElement<import('./GridViewHelper').GridViewElementPossiblePayload>, event: TouchEvent) => void;
11
11
  onTouchEnd: (element: GridViewElement<import('./GridViewHelper').GridViewElementPossiblePayload>, event: TouchEvent) => void;
12
12
  onTouchMove: (element: GridViewElement<import('./GridViewHelper').GridViewElementPossiblePayload>, event: TouchEvent) => void;
13
- onCollapse?: (_payload: MouseEvent) => void;
13
+ onCollapse?: (mouseEvent: MouseEvent) => void;
14
14
  state: GridViewUiState;
15
15
  isDesktop?: boolean;
16
16
  isDraggable?: boolean;
@@ -23,7 +23,7 @@ declare const _default: import('vue').DefineComponent<{
23
23
  onTouchStart: (element: GridViewElement<import('./GridViewHelper').GridViewElementPossiblePayload>, event: TouchEvent) => void;
24
24
  onTouchEnd: (element: GridViewElement<import('./GridViewHelper').GridViewElementPossiblePayload>, event: TouchEvent) => void;
25
25
  onTouchMove: (element: GridViewElement<import('./GridViewHelper').GridViewElementPossiblePayload>, event: TouchEvent) => void;
26
- onCollapse?: (_payload: MouseEvent) => void;
26
+ onCollapse?: (mouseEvent: MouseEvent) => void;
27
27
  state: GridViewUiState;
28
28
  isDesktop?: boolean;
29
29
  isDraggable?: boolean;
@@ -1,11 +1,11 @@
1
1
  import { RapiComponent, RapiItem, RapiMaterial } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
2
2
  import { KernelValue, UiPossibleChild, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
3
3
  import { Nullable } from '../../../../common/utils/types';
4
- import { SampleRoom } from '../../../../planner/business-logic/rooms';
4
+ import { MaterialsForObjects, SampleRoom } from '../../../../planner/business-logic/rooms';
5
5
  import { SampleMaterial } from '../../../../planner/components/overlays/rooms/utils/ral-colors';
6
6
  import { CollectionViewElement } from '../../../../common/components/collection-view/-utils/types';
7
7
 
8
- export type GridViewElementPossiblePayload = RapiMaterial | KernelValue | UiPossibleChild | RapiItem | SampleRoom | SampleMaterial | RapiComponent;
8
+ export type GridViewElementPossiblePayload = RapiMaterial | KernelValue | UiPossibleChild | RapiItem | SampleRoom | SampleMaterial | RapiComponent | MaterialsForObjects;
9
9
  export interface GridViewElement<T = GridViewElementPossiblePayload> {
10
10
  key: string;
11
11
  payload: T;