@roomle/embedding-lib 4.43.0 → 5.0.1-debug.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.releaserc.json +4 -7
- package/README.md +5 -6
- package/docs/md/web/embedding/CHANGELOG.md +8 -0
- package/{types/src/configurator/embedding/roomle-configurator-api.d.ts → index.d.ts} +26 -18
- package/package.json +27 -13
- package/roomle-embedding-lib.es.js +431 -0
- package/roomle-embedding-lib.es.min.js +8 -0
- package/roomle-embedding-lib.umd.js +8 -0
- package/roomle-embedding-lib.umd.min.js +8 -0
- package/docs/__sidebar__.json +0 -14
- package/docs/api/.nojekyll +0 -1
- package/docs/api/README.md +0 -9
- package/docs/api/classes/exposed_analytics_callbacks.ExposedAnalyticsCallbacks.md +0 -47
- package/docs/api/classes/exposed_api.ExposedApi.md +0 -255
- package/docs/api/classes/exposed_callbacks.ExposedCallbacks.md +0 -195
- package/docs/api/classes/roomle_configurator_api.default.md +0 -211
- package/docs/api/enums/types.UI_BUTTON.md +0 -263
- package/docs/api/interfaces/exposed_callbacks.Labels.md +0 -32
- package/docs/api/interfaces/exposed_callbacks.Price.md +0 -32
- package/docs/api/interfaces/roomle_configurator_api.RoomleEmbeddingApiKeys.md +0 -58
- package/docs/api/interfaces/types.ConfiguratorSettings.md +0 -150
- package/docs/api/interfaces/types.EmbeddingSkin.md +0 -65
- package/docs/api/interfaces/types.UiInitData.md +0 -1199
- package/docs/api/interfaces/types.VariantsMap.md +0 -9
- package/docs/api/modules/exposed_analytics_callbacks.md +0 -9
- package/docs/api/modules/exposed_api.md +0 -9
- package/docs/api/modules/exposed_callbacks.md +0 -14
- package/docs/api/modules/roomle_configurator_api.md +0 -49
- package/docs/api/modules/types.md +0 -16
- package/docs/api/modules.md +0 -13
- package/docs/examples/00_init.html +0 -38
- package/docs/examples/01_small_screen.html +0 -37
- package/docs/examples/02_resize_callback.html +0 -46
- package/docs/examples/03_instant_start.html +0 -38
- package/docs/examples/04_price.html +0 -48
- package/docs/examples/05_analytics.html +0 -38
- package/docs/examples/06_skinning.html +0 -39
- package/docs/examples/07_request_product.html +0 -41
- package/docs/examples/08_variants.html +0 -36
- package/docs/examples/09_different_products.html +0 -63
- package/docs/examples/10_landing_page.html +0 -38
- package/docs/examples/11_light_settings.html +0 -126
- package/docs/examples/12_email.html +0 -36
- package/docs/examples/13_parameters.html +0 -67
- package/docs/examples/14_ga_consent.html +0 -39
- package/docs/examples/roomle-configurator-api.es.min.js +0 -586
- package/docs/hsp.md +0 -61
- package/docs/images/parts.png +0 -0
- package/docs/images/usm-frames.png +0 -0
- package/docs/integration.md +0 -1101
- package/docs/md/web/ui/EMBEDDING-CHANGELOG.md +0 -63
- package/docs/migration-guides/v2-to-v3.md +0 -135
- package/docs/moc/index.md +0 -86
- package/docs/simple.md +0 -25
- package/roomle-configurator-api.cjs.js +0 -585
- package/roomle-configurator-api.cjs.min.js +0 -1
- package/roomle-configurator-api.es.js +0 -583
- package/roomle-configurator-api.es.min.js +0 -1
- package/roomle-configurator-api.js +0 -583
- package/types/index.d.ts +0 -1500
- package/types/src/common/business-logic/connector.d.ts +0 -8
- package/types/src/common/business-logic/event-bus.d.ts +0 -5
- package/types/src/common/components/collection-view/-utils/types.d.ts +0 -10
- package/types/src/common/plugins/analytics.d.ts +0 -11
- package/types/src/common/plugins/localize.d.ts +0 -8
- package/types/src/common/store/collection-view-state.d.ts +0 -40
- package/types/src/common/store/common-ui-state.d.ts +0 -16
- package/types/src/common/store/index.d.ts +0 -111
- package/types/src/common/translations/local-translation-source.d.ts +0 -8
- package/types/src/common/utils/access-restriction.d.ts +0 -7
- package/types/src/common/utils/ar-service.d.ts +0 -14
- package/types/src/common/utils/bezier.d.ts +0 -2
- package/types/src/common/utils/browser.d.ts +0 -3
- package/types/src/common/utils/color.d.ts +0 -2
- package/types/src/common/utils/compatibility.d.ts +0 -3
- package/types/src/common/utils/dom.d.ts +0 -15
- package/types/src/common/utils/font-size-detector.d.ts +0 -1
- package/types/src/common/utils/google-analytics.d.ts +0 -67
- package/types/src/common/utils/helper.d.ts +0 -43
- package/types/src/common/utils/iframe.d.ts +0 -3
- package/types/src/common/utils/init-data.d.ts +0 -34
- package/types/src/common/utils/merge.d.ts +0 -16
- package/types/src/common/utils/parameters.d.ts +0 -18
- package/types/src/common/utils/performance.d.ts +0 -2
- package/types/src/common/utils/plan.d.ts +0 -1
- package/types/src/common/utils/script-loader.d.ts +0 -5
- package/types/src/common/utils/share.d.ts +0 -1
- package/types/src/common/utils/touch-drag.d.ts +0 -24
- package/types/src/common/utils/types.d.ts +0 -19
- package/types/src/common/utils/user-agent.d.ts +0 -6
- package/types/src/common/utils/variants.d.ts +0 -3
- package/types/src/configurator/ar/main.d.ts +0 -1
- package/types/src/configurator/business-logic/roomle-sdk-wrapper.d.ts +0 -27
- package/types/src/configurator/business-logic/sdk-connector-configurator.d.ts +0 -29
- package/types/src/configurator/business-logic/sdk-connector.d.ts +0 -119
- package/types/src/configurator/business-logic/ui-callback.d.ts +0 -5
- package/types/src/configurator/components/-utils/overlays.d.ts +0 -43
- package/types/src/configurator/components/grid-view/-utils/GridViewHelper.d.ts +0 -16
- package/types/src/configurator/components/utils/-utils/SceneOffsetResizer.d.ts +0 -23
- package/types/src/configurator/embedding/example/main.d.ts +0 -1
- package/types/src/configurator/embedding/exposed-analytics-callbacks.d.ts +0 -10
- package/types/src/configurator/embedding/exposed-api.d.ts +0 -90
- package/types/src/configurator/embedding/exposed-callbacks.d.ts +0 -46
- package/types/src/configurator/embedding/helper.d.ts +0 -8
- package/types/src/configurator/embedding/message-handler.d.ts +0 -31
- package/types/src/configurator/embedding/types.d.ts +0 -159
- package/types/src/configurator/embedding/utils.d.ts +0 -15
- package/types/src/configurator/plugins/embedding-callbacks-plugin.d.ts +0 -4
- package/types/src/configurator/plugins/libs-plugin.d.ts +0 -11
- package/types/src/configurator/plugins/sdk-connector-plugin.d.ts +0 -14
- package/types/src/configurator/store/core-data.d.ts +0 -34
- package/types/src/configurator/store/core-state.d.ts +0 -26
- package/types/src/configurator/store/ui-state.d.ts +0 -118
- package/types/src/main.d.ts +0 -14
- package/types/src/planner/business-logic/general-room-parameters.d.ts +0 -17
- package/types/src/planner/business-logic/pre-defined-rooms.d.ts +0 -2
- package/types/src/planner/business-logic/rooms.d.ts +0 -37
- package/types/src/planner/business-logic/sdk-connector-planner.d.ts +0 -28
- package/types/src/planner/store/planner-core-data.d.ts +0 -21
- package/types/src/planner/store/planner-ui-state.d.ts +0 -61
- package/types/src/planner/utils/interaction.d.ts +0 -3
- package/types/src/planner/utils/planner-sidebar.d.ts +0 -19
- package/types/src/viewer/business-logic/sdk-connector-viewer.d.ts +0 -18
- package/types/tests/helpers/data/base-64-images.d.ts +0 -1
- package/types/tests/helpers/data/configurator.d.ts +0 -7
- package/types/tests/helpers/data/items.d.ts +0 -208
- package/types/tests/helpers/data/materials.d.ts +0 -32
- package/types/tests/helpers/data/parameter-groups.d.ts +0 -242
- package/types/tests/helpers/data/parameters.d.ts +0 -399
- package/types/tests/helpers/data/part-list.d.ts +0 -126
- package/types/tests/helpers/data/plan.d.ts +0 -224
- package/types/tests/helpers/data/planObject.d.ts +0 -134
- package/types/tests/helpers/data/possible-children-tags.d.ts +0 -208
- package/types/tests/helpers/data/variants.d.ts +0 -60
- package/types/tests/helpers/dom.d.ts +0 -1
- package/types/tests/helpers/mocks/analytics.d.ts +0 -7
- package/types/tests/helpers/mocks/data/biohort-parameter.d.ts +0 -32
- package/types/tests/helpers/mocks/data/koinor-formia.d.ts +0 -289
- package/types/tests/helpers/mocks/embedding-callbacks.d.ts +0 -4
- package/types/tests/helpers/mocks/icon.d.ts +0 -3
- package/types/tests/helpers/mocks/localize.d.ts +0 -8
- package/types/tests/helpers/mocks/message.d.ts +0 -11
- package/types/tests/helpers/mocks/parameters.d.ts +0 -47
- package/types/tests/helpers/mocks/possible-children.d.ts +0 -596
- package/types/tests/helpers/mocks/roomle-sdk-wrapper.d.ts +0 -177
- package/types/tests/helpers/mocks/sdk-connector-configurator.d.ts +0 -13
- package/types/tests/helpers/mocks/sdk-connector-planner.d.ts +0 -13
- package/types/tests/helpers/mocks/sdk-connector.d.ts +0 -35
- package/types/tests/helpers/mocks/store.d.ts +0 -11
- package/types/tests/helpers/mocks/tag.d.ts +0 -148
- package/types/tests/helpers/utils.d.ts +0 -13
- package/types/tests/integration/common/components/ActionButtons.spec.d.ts +0 -1
- package/types/tests/integration/common/components/BottomBar.spec.d.ts +0 -1
- package/types/tests/integration/common/components/BottomButtons.spec.d.ts +0 -1
- package/types/tests/integration/common/components/IconButton.spec.d.ts +0 -1
- package/types/tests/integration/common/components/SelectionButtons.spec.d.ts +0 -1
- package/types/tests/integration/common/components/part-list/part-list/PartListPrint.spec.d.ts +0 -1
- package/types/tests/integration/common/components/part-list/part-list/PartListRow.spec.d.ts +0 -1
- package/types/tests/integration/configurator/App.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/ARButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/ConfiguratorMain.spec.d.ts +0 -9
- package/types/tests/integration/configurator/components/CookieBanner.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/Overlays.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/TopBar.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/ViewerMain.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/addons/AddonsTrigger.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/addons/PossibleChildren.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/collection-view/-utils/TabbedNav.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/collection-view/CollectionView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/CollapsedView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/ExpandedView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/GridViewElement.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/-utils/GridViewHelper.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/grid-view/GridView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/Export3D.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/NoDocking.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/PartList.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/SaveDraft.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/VariantWarning.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/overlays/ar/OpenARView.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/BackParameterGroupButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/NextParameterGroupButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/ParameterGroupButton.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/ParameterGroups.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/MaterialParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/OptionsParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/OptionsParameterValue.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/ProductVariant.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/RangeParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/parameters/types/ThumbnailsParameter.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/BackToWebsite.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/CheckBox.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/FullscreenContainer.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/GdprEmailInput.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/HeightToggle.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/ImageWithFallback.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/InteractionContainer.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/PopUp.spec.d.ts +0 -1
- package/types/tests/integration/configurator/components/utils/ScrollHint.spec.d.ts +0 -1
- package/types/tests/integration/helper.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/CatalogTrigger.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/PlannerMain.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/PlannerSidebar.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/ProductListButton.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/SampleRooms.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/overlays/product-list/ProductListEntry.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/overlays/rooms/RoomGeneralSettings.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/overlays/rooms/RoomRangeParameter.spec.d.ts +0 -1
- package/types/tests/integration/planner/components/utils/sidebar-nav/SidebarNav.spec.d.ts +0 -1
- package/types/tests/unit/common/business-logic/event-bus.spec.d.ts +0 -1
- package/types/tests/unit/common/helper.spec.d.ts +0 -1
- package/types/tests/unit/common/translations/local-translation-source.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/ar-service.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/bezier.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/color.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/dom.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/helper.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/init-data.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/parameters.spec.d.ts +0 -1
- package/types/tests/unit/common/utils/touch-drag.spec.d.ts +0 -1
- package/types/tests/unit/configurator/business-logic/sdk-connector-configurator.spec.d.ts +0 -1
- package/types/tests/unit/configurator/business-logic/sdk-connector.spec.d.ts +0 -1
- package/types/tests/unit/configurator/components/utils/-utils/ConfiguratorResizer.spec.d.ts +0 -1
- package/types/tests/unit/configurator/components/utils/WordWrap.spec.d.ts +0 -1
- package/types/tests/unit/configurator/embedding/exposed-api.spec.d.ts +0 -1
- package/types/tests/unit/configurator/embedding/utils.spec.d.ts +0 -1
- package/types/tests/unit/configurator/store/index.spec.d.ts +0 -1
- package/types/tests/unit/planner/business-logic/sdk-connector-planner.spec.d.ts +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RoomleSdkWrapper } from '@/configurator/business-logic/roomle-sdk-wrapper';
|
|
2
|
-
import { UiInitData } from '@/configurator/embedding/types';
|
|
3
|
-
import { CallbackApi } from '@/configurator/business-logic/sdk-connector';
|
|
4
|
-
export declare abstract class Connector {
|
|
5
|
-
abstract readonly api: Promise<any>;
|
|
6
|
-
abstract init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
7
|
-
addCallback<K extends keyof CallbackApi>(key: K, fun: CallbackApi[K], allowMultiple?: boolean): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '@/common/utils/types';
|
|
2
|
-
import { UiKernelParameter, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
3
|
-
import { RapiTagForUi } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
4
|
-
export declare type CollectionViewElementType = 'addon' | 'parameter' | 'variant' | 'object' | 'room' | 'generalRoomSetting' | 'unitSwitch';
|
|
5
|
-
export interface CollectionViewElement<T = (UiPossibleChildTag | UiKernelParameter | RapiTagForUi)> {
|
|
6
|
-
label: Nullable<string>;
|
|
7
|
-
key: string;
|
|
8
|
-
payload: T;
|
|
9
|
-
type: CollectionViewElementType;
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import GoogleAnalytics from '@/common/utils/google-analytics';
|
|
2
|
-
export interface Analytics {
|
|
3
|
-
ga: GoogleAnalytics;
|
|
4
|
-
}
|
|
5
|
-
declare const AnalyticsPlugin: {
|
|
6
|
-
install(Vue: any, { configuratorId, useTracking }: {
|
|
7
|
-
configuratorId: string;
|
|
8
|
-
useTracking: boolean;
|
|
9
|
-
}): void;
|
|
10
|
-
};
|
|
11
|
-
export default AnalyticsPlugin;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Module } from 'vuex';
|
|
2
|
-
import { Nullable } from '@/common/utils/types';
|
|
3
|
-
import { CollectionViewElement } from '@/common/components/collection-view/-utils/types';
|
|
4
|
-
import { StoreState } from '@/common/store';
|
|
5
|
-
export declare type ViewTypeState = 'listView' | 'gridViewSmall' | 'gridViewBig';
|
|
6
|
-
export interface GridViewUiState {
|
|
7
|
-
filter: string[];
|
|
8
|
-
search: Nullable<string>;
|
|
9
|
-
userInitiatedSearch: boolean;
|
|
10
|
-
viewType: ViewTypeState;
|
|
11
|
-
hasGroupLabel: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface CollectionViewUiState {
|
|
14
|
-
selected: Nullable<CollectionViewElement>;
|
|
15
|
-
showsDetails: boolean;
|
|
16
|
-
gridView: GridViewUiState;
|
|
17
|
-
}
|
|
18
|
-
export declare const getInitialCollectionViewState: () => CollectionViewUiState;
|
|
19
|
-
export declare const getInitialViewType: () => ViewTypeState;
|
|
20
|
-
export declare enum COLLECTION_VIEW_STATE_MUTATIONS {
|
|
21
|
-
ELEMENT_EXPANDED = "CV_ELEMENT_EXPANDED",
|
|
22
|
-
SET_SELECTED_ELEMENT = "CV_SET_SELECTED_ELEMENT",
|
|
23
|
-
RESET_COLLECTION_VIEW = "RESET_COLLECTION_VIEW"
|
|
24
|
-
}
|
|
25
|
-
export declare enum GRID_VIEW_STATE_MUTATIONS {
|
|
26
|
-
SET_SEARCH = "GV_SET_SEARCH",
|
|
27
|
-
TOGGLE_FILTER = "GV_TOGGLE_FILTER",
|
|
28
|
-
SET_USER_INITIATED_SEARCH = "GV_SET_USER_INITIATED_SEARCH",
|
|
29
|
-
SET_VIEW_TYPE = "SET_VIEW_TYPE",
|
|
30
|
-
SET_HAS_GROUP_LABEL = "SET_HAS_GROUP_LABEL",
|
|
31
|
-
RESET_FILTER = "RESET_FILTER"
|
|
32
|
-
}
|
|
33
|
-
interface MuationPayload<T, V> {
|
|
34
|
-
state: T;
|
|
35
|
-
value: V;
|
|
36
|
-
}
|
|
37
|
-
export declare type GridViewMutationPayload<T> = MuationPayload<GridViewUiState, T>;
|
|
38
|
-
export declare type CollectionViewMutationPayload<T> = MuationPayload<CollectionViewUiState, T>;
|
|
39
|
-
export declare const collectionViewUiStateHelper: Module<CollectionViewUiState, StoreState>;
|
|
40
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Module } from 'vuex';
|
|
2
|
-
import { StoreState } from '@/common/store';
|
|
3
|
-
import { Nullable } from '@/common/utils/types';
|
|
4
|
-
import { RapiId } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
5
|
-
export interface CommonUiState {
|
|
6
|
-
isInIframe: boolean;
|
|
7
|
-
isViewOnly: Nullable<boolean>;
|
|
8
|
-
lastRequestedId: Nullable<RapiId>;
|
|
9
|
-
}
|
|
10
|
-
export declare const initialState: CommonUiState;
|
|
11
|
-
export declare enum COMMON_UI_STATE_MUTATIONS {
|
|
12
|
-
SET_IS_IN_IFRAME = "SET_IS_IN_IFRAME",
|
|
13
|
-
SET_IS_VIEW_ONLY = "SET_IS_VIEW_ONLY",
|
|
14
|
-
SET_LAST_REQUESTED_ID = "SET_LAST_REQUESTED_ID"
|
|
15
|
-
}
|
|
16
|
-
export declare const commonUiState: Module<CommonUiState, StoreState>;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { CORE_STATE_ACTIONS, CORE_STATE_MUTATIONS, CoreState } from '@/configurator/store/core-state';
|
|
2
|
-
import { CORE_DATA_MUTATIONS, CoreData } from '@/configurator/store/core-data';
|
|
3
|
-
import { BUTTON_ACTIONS, UI_STATE_ACTIONS, UI_STATE_MUTATIONS, UiState } from '@/configurator/store/ui-state';
|
|
4
|
-
import { PLANNER_UI_STATE_MUTATIONS, PlannerUiState } from '@/planner/store/planner-ui-state';
|
|
5
|
-
import { COMMON_UI_STATE_MUTATIONS, CommonUiState } from '@/common/store/common-ui-state';
|
|
6
|
-
import { COLLECTION_VIEW_STATE_MUTATIONS, CollectionViewUiState } from '@/common/store/collection-view-state';
|
|
7
|
-
import { Nullable } from '@/common/utils/types';
|
|
8
|
-
import { PLANNER_CORE_DATA_ACTIONS, PLANNER_CORE_DATA_MUTATIONS, PlannerCoreData } from '@/planner/store/planner-core-data';
|
|
9
|
-
export interface SharedUiState {
|
|
10
|
-
interactionsExpanded: boolean;
|
|
11
|
-
isFullscreen: boolean;
|
|
12
|
-
isDesktop: boolean;
|
|
13
|
-
isLandscape: boolean;
|
|
14
|
-
lastRegularViewMode: Nullable<boolean>;
|
|
15
|
-
wasDesktopBefore: boolean;
|
|
16
|
-
sidebar: CollectionViewUiState;
|
|
17
|
-
topBarSelectedActions: BUTTON_ACTIONS[];
|
|
18
|
-
}
|
|
19
|
-
export declare const MUTATIONS: {
|
|
20
|
-
UPDATE_PRODUCT_LIST: PLANNER_CORE_DATA_MUTATIONS.UPDATE_PRODUCT_LIST;
|
|
21
|
-
UPDATE_PRICE_VALUE: PLANNER_CORE_DATA_MUTATIONS.UPDATE_PRICE_VALUE;
|
|
22
|
-
UPDATE_CURRENCY_SYMBOL: PLANNER_CORE_DATA_MUTATIONS.UPDATE_CURRENCY_SYMBOL;
|
|
23
|
-
ELEMENT_EXPANDED: COLLECTION_VIEW_STATE_MUTATIONS.ELEMENT_EXPANDED;
|
|
24
|
-
SET_SELECTED_ELEMENT: COLLECTION_VIEW_STATE_MUTATIONS.SET_SELECTED_ELEMENT;
|
|
25
|
-
RESET_COLLECTION_VIEW: COLLECTION_VIEW_STATE_MUTATIONS.RESET_COLLECTION_VIEW;
|
|
26
|
-
SET_IS_IN_IFRAME: COMMON_UI_STATE_MUTATIONS.SET_IS_IN_IFRAME;
|
|
27
|
-
SET_IS_VIEW_ONLY: COMMON_UI_STATE_MUTATIONS.SET_IS_VIEW_ONLY;
|
|
28
|
-
SET_LAST_REQUESTED_ID: COMMON_UI_STATE_MUTATIONS.SET_LAST_REQUESTED_ID;
|
|
29
|
-
SET_SELECTION: PLANNER_UI_STATE_MUTATIONS.SET_SELECTION;
|
|
30
|
-
SET_IS_LANDSCAPE: PLANNER_UI_STATE_MUTATIONS.SET_IS_LANDSCAPE;
|
|
31
|
-
SET_INTERACTIONS_EXPANDED: PLANNER_UI_STATE_MUTATIONS.SET_INTERACTIONS_EXPANDED;
|
|
32
|
-
SET_IS_FULLSCREEN: PLANNER_UI_STATE_MUTATIONS.SET_IS_FULLSCREEN;
|
|
33
|
-
SET_IS_DESKTOP: PLANNER_UI_STATE_MUTATIONS.SET_IS_DESKTOP;
|
|
34
|
-
SET_LAST_REGULAR_VIEW_MODE: PLANNER_UI_STATE_MUTATIONS.SET_LAST_REGULAR_VIEW_MODE;
|
|
35
|
-
SET_CATALOG_ROOT_TAG: PLANNER_UI_STATE_MUTATIONS.SET_CATALOG_ROOT_TAG;
|
|
36
|
-
SET_IS_DRAG: PLANNER_UI_STATE_MUTATIONS.SET_IS_DRAG;
|
|
37
|
-
SET_ACTION_SELECTED: PLANNER_UI_STATE_MUTATIONS.SET_ACTION_SELECTED;
|
|
38
|
-
SET_ACTION_DESELECTED: PLANNER_UI_STATE_MUTATIONS.SET_ACTION_DESELECTED;
|
|
39
|
-
SET_ACTION_MENU_EXPANDED: PLANNER_UI_STATE_MUTATIONS.SET_ACTION_MENU_EXPANDED;
|
|
40
|
-
SET_TOPBAR_ACTION_SELECTED: PLANNER_UI_STATE_MUTATIONS.SET_TOPBAR_ACTION_SELECTED;
|
|
41
|
-
SET_TOPBAR_ACTION_DESELECTED: PLANNER_UI_STATE_MUTATIONS.SET_TOPBAR_ACTION_DESELECTED;
|
|
42
|
-
PUSH_SIDEBAR_VIEW: PLANNER_UI_STATE_MUTATIONS.PUSH_SIDEBAR_VIEW;
|
|
43
|
-
POP_SIDEBAR_VIEW: PLANNER_UI_STATE_MUTATIONS.POP_SIDEBAR_VIEW;
|
|
44
|
-
CLEAR_SIDEBAR: PLANNER_UI_STATE_MUTATIONS.CLEAR_SIDEBAR;
|
|
45
|
-
SET_LAST_WALLS: PLANNER_UI_STATE_MUTATIONS.SET_LAST_WALLS;
|
|
46
|
-
SET_MEASUREMENT_UNIT: PLANNER_UI_STATE_MUTATIONS.SET_MEASUREMENT_UNIT;
|
|
47
|
-
SET_IS_DRAWING: PLANNER_UI_STATE_MUTATIONS.SET_IS_DRAWING;
|
|
48
|
-
SET_HAS_WALLS: PLANNER_UI_STATE_MUTATIONS.SET_HAS_WALLS;
|
|
49
|
-
SET_SELECTED_GROUP: UI_STATE_MUTATIONS.SET_SELECTED_GROUP;
|
|
50
|
-
SET_IS_PART_LIST_SHOWN: UI_STATE_MUTATIONS.SET_IS_PART_LIST_SHOWN;
|
|
51
|
-
SHOW_ONLY_ADDONS: UI_STATE_MUTATIONS.SHOW_ONLY_ADDONS;
|
|
52
|
-
SHOW_ALL_COLLECTION_VIEW_ELEMENTS: UI_STATE_MUTATIONS.SHOW_ALL_COLLECTION_VIEW_ELEMENTS;
|
|
53
|
-
SET_ACTIVE_ADDON: UI_STATE_MUTATIONS.SET_ACTIVE_ADDON;
|
|
54
|
-
SET_CURRENT_SELECTION: UI_STATE_MUTATIONS.SET_CURRENT_SELECTION;
|
|
55
|
-
SET_OVERLAY_STATE: UI_STATE_MUTATIONS.SET_OVERLAY_STATE;
|
|
56
|
-
CLOSE_ALL_OVERLAYS: UI_STATE_MUTATIONS.CLOSE_ALL_OVERLAYS;
|
|
57
|
-
SET_INIT_DATA: UI_STATE_MUTATIONS.SET_INIT_DATA;
|
|
58
|
-
SET_IS_EXPANDED_FOR_CONFIGURE: UI_STATE_MUTATIONS.SET_IS_EXPANDED_FOR_CONFIGURE;
|
|
59
|
-
SET_IS_LOADING_IN_PROGRESS: UI_STATE_MUTATIONS.SET_IS_LOADING_IN_PROGRESS;
|
|
60
|
-
SET_CURRENT_VARIANTS: UI_STATE_MUTATIONS.SET_CURRENT_VARIANTS;
|
|
61
|
-
SET_SHOW_VARIANTS: UI_STATE_MUTATIONS.SET_SHOW_VARIANTS;
|
|
62
|
-
SET_EMAIL: UI_STATE_MUTATIONS.SET_EMAIL;
|
|
63
|
-
RESET_UI: UI_STATE_MUTATIONS.RESET_UI;
|
|
64
|
-
SET_LAST_SELECTED_VARIANT: UI_STATE_MUTATIONS.SET_LAST_SELECTED_VARIANT;
|
|
65
|
-
SET_UNDO: UI_STATE_MUTATIONS.SET_UNDO;
|
|
66
|
-
SET_REDO: UI_STATE_MUTATIONS.SET_REDO;
|
|
67
|
-
SET_UNDO_PLANNER: UI_STATE_MUTATIONS.SET_UNDO_PLANNER;
|
|
68
|
-
SET_REDO_PLANNER: UI_STATE_MUTATIONS.SET_REDO_PLANNER;
|
|
69
|
-
SET_WALLS_DIMENSIONS: UI_STATE_MUTATIONS.SET_WALLS_DIMENSIONS;
|
|
70
|
-
SET_PLANNER_OBJ_POS: UI_STATE_MUTATIONS.SET_PLANNER_OBJ_POS;
|
|
71
|
-
SET_PLANNER_INIT_WITH_OBJ_ID: UI_STATE_MUTATIONS.SET_PLANNER_INIT_WITH_OBJ_ID;
|
|
72
|
-
UPDATE_GROUPS: CORE_DATA_MUTATIONS.UPDATE_GROUPS;
|
|
73
|
-
UPDATE_PARAMETERS: CORE_DATA_MUTATIONS.UPDATE_PARAMETERS;
|
|
74
|
-
UPDATE_ADDONS: CORE_DATA_MUTATIONS.UPDATE_ADDONS;
|
|
75
|
-
UPDATE_PART_LIST: CORE_DATA_MUTATIONS.UPDATE_PART_LIST;
|
|
76
|
-
UPDATE_BOUNDS: CORE_DATA_MUTATIONS.UPDATE_BOUNDS;
|
|
77
|
-
UPDATE_CURRENCY: CORE_DATA_MUTATIONS.UPDATE_CURRENCY;
|
|
78
|
-
SET_LABEL: CORE_STATE_MUTATIONS.SET_LABEL;
|
|
79
|
-
SET_COMPONENT_HAS_CHILDREN: CORE_STATE_MUTATIONS.SET_COMPONENT_HAS_CHILDREN;
|
|
80
|
-
SET_CATALOG_LABEL: CORE_STATE_MUTATIONS.SET_CATALOG_LABEL;
|
|
81
|
-
SET_INITIAL_HASH: CORE_STATE_MUTATIONS.SET_INITIAL_HASH;
|
|
82
|
-
SET_CURRENT_HASH: CORE_STATE_MUTATIONS.SET_CURRENT_HASH;
|
|
83
|
-
};
|
|
84
|
-
export declare const ACTIONS: {
|
|
85
|
-
UPDATE_PRICE: PLANNER_CORE_DATA_ACTIONS.UPDATE_PRICE;
|
|
86
|
-
SELECT_GROUP: UI_STATE_ACTIONS.SELECT_GROUP;
|
|
87
|
-
SELECT_VIEW_MODE: UI_STATE_ACTIONS.SELECT_VIEW_MODE;
|
|
88
|
-
SET_INTERACTIONS_EXPANDED: UI_STATE_ACTIONS.SET_INTERACTIONS_EXPANDED;
|
|
89
|
-
SELECTION_CHANGE: UI_STATE_ACTIONS.SELECTION_CHANGE;
|
|
90
|
-
RESET_COLLECTION_VIEW: UI_STATE_ACTIONS.RESET_COLLECTION_VIEW;
|
|
91
|
-
START_CONFIGURING: UI_STATE_ACTIONS.START_CONFIGURING;
|
|
92
|
-
PAUSE_CONFIGURING: UI_STATE_ACTIONS.PAUSE_CONFIGURING;
|
|
93
|
-
USE_VIEWER: UI_STATE_ACTIONS.USE_VIEWER;
|
|
94
|
-
USE_PLANNER: UI_STATE_ACTIONS.USE_PLANNER;
|
|
95
|
-
USE_CONFIGURATOR: UI_STATE_ACTIONS.USE_CONFIGURATOR;
|
|
96
|
-
SHOW_PARAMS: UI_STATE_ACTIONS.SHOW_PARAMS;
|
|
97
|
-
SHOW_ROOMS: UI_STATE_ACTIONS.SHOW_ROOMS;
|
|
98
|
-
SET_LABEL: CORE_STATE_ACTIONS.SET_LABEL;
|
|
99
|
-
SET_COMPONENT_HAS_CHILDREN: CORE_STATE_ACTIONS.SET_COMPONENT_HAS_CHILDREN;
|
|
100
|
-
UPDATE_HASH: CORE_STATE_ACTIONS.UPDATE_HASH;
|
|
101
|
-
};
|
|
102
|
-
export interface StoreState {
|
|
103
|
-
coreState: CoreState;
|
|
104
|
-
coreData: CoreData;
|
|
105
|
-
uiState: UiState;
|
|
106
|
-
plannerUiState: PlannerUiState;
|
|
107
|
-
plannerCoreData: PlannerCoreData;
|
|
108
|
-
commonUiState: CommonUiState;
|
|
109
|
-
}
|
|
110
|
-
declare const _default: import("vuex").Store<StoreState>;
|
|
111
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TranslationSource } from '@/common/plugins/localize';
|
|
2
|
-
export default class LocalTranslationSource implements TranslationSource {
|
|
3
|
-
private _locale;
|
|
4
|
-
private _overrideTranslation;
|
|
5
|
-
constructor(locale: string, overrideTranslation?: any);
|
|
6
|
-
getTranslations(): Promise<any>;
|
|
7
|
-
private _getFallbackTranslations;
|
|
8
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '@/common/plugins/analytics';
|
|
2
|
-
import { SdkConnector } from '@/configurator/business-logic/sdk-connector';
|
|
3
|
-
export interface AccessCheckResult {
|
|
4
|
-
isCorrectDomain: boolean;
|
|
5
|
-
hasActivePackage: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const isShowSceneAllowed: (configuratorId: string, sdkConnector: SdkConnector, analytics: Analytics) => Promise<AccessCheckResult>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default class ARService {
|
|
2
|
-
private _configuratorId;
|
|
3
|
-
constructor(configuratorId: string);
|
|
4
|
-
getArUrl(configurationId: string): string | null;
|
|
5
|
-
getArUrlWithUrls(glbUrl?: string | null, usdzUrl?: string | null): string | null;
|
|
6
|
-
getMobileArUrl(id: string): string;
|
|
7
|
-
private _getAndroidSceneViewerUrl;
|
|
8
|
-
private _getBaseUrl;
|
|
9
|
-
private _getAndroidLink;
|
|
10
|
-
private _getIosLink;
|
|
11
|
-
private _encodeUrl;
|
|
12
|
-
private _getGlbUrl;
|
|
13
|
-
private _getUsdzUrl;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '@/common/utils/types';
|
|
2
|
-
export declare const isScrolledToRightEnd: (element: Nullable<HTMLElement>, threshold?: number) => boolean;
|
|
3
|
-
export declare const hasVerticalOverflow: (element: HTMLElement) => boolean;
|
|
4
|
-
export declare const hasHorizontalOverflow: (element: HTMLElement) => boolean;
|
|
5
|
-
export declare const lastVisibleElement: (container: HTMLElement, threshold?: number) => Element | null;
|
|
6
|
-
export declare const cssVariableToNumber: (cssVariable: string) => number;
|
|
7
|
-
export declare const remToPixel: (remValue: string, remBase: number) => number;
|
|
8
|
-
export declare const percentInStringToFloat: (percentInString: string) => number;
|
|
9
|
-
export declare const animationDurationInMsToFloat: (animationDuration: string) => number;
|
|
10
|
-
export declare const calcIsDesktop: () => boolean;
|
|
11
|
-
export declare const removeLoadingScreen: () => Promise<void>;
|
|
12
|
-
export declare const showLoadingScreen: () => Promise<void>;
|
|
13
|
-
export declare const copyToClipboard: (text: string) => void;
|
|
14
|
-
export declare const setLoadingProgress: (percent: number) => void;
|
|
15
|
-
export declare const hideLoadingCircle: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentFontSize: () => number;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '@/common/utils/types';
|
|
2
|
-
export declare const GA_DIMENSIONS: {
|
|
3
|
-
[key: string]: string;
|
|
4
|
-
};
|
|
5
|
-
export declare const GA_METRICS: {
|
|
6
|
-
RESPONSE_END_TIME: string;
|
|
7
|
-
DOM_LOAD_TIME: string;
|
|
8
|
-
WINDOW_LOAD_TIME: string;
|
|
9
|
-
TIME_TO_FIRST_BTYE: string;
|
|
10
|
-
KERNEL_IS_READY: string;
|
|
11
|
-
INIT_LOADING_SCREEN_CLOSE: string;
|
|
12
|
-
};
|
|
13
|
-
declare enum GA_ACTION_TYPE {
|
|
14
|
-
EXCEPTION = "exception",
|
|
15
|
-
TIMING = "timing_complete"
|
|
16
|
-
}
|
|
17
|
-
declare enum CUSTOM_ACTION_TYPE {
|
|
18
|
-
TRACK_TIMING = "track_timing"
|
|
19
|
-
}
|
|
20
|
-
export declare const GA_NULL_VALUE = "(not set)";
|
|
21
|
-
export declare enum GA_CATEGORY {
|
|
22
|
-
ERROR = "Error",
|
|
23
|
-
NAVIGATION_TIMING = "Navigation Timing",
|
|
24
|
-
TIMING = "Timing",
|
|
25
|
-
INTERACTION = "Interaction",
|
|
26
|
-
TRACKING = "Tracking",
|
|
27
|
-
DEPRECATION = "Deprecation"
|
|
28
|
-
}
|
|
29
|
-
export declare type GoogleAnalyticsCallback = (...args: any[]) => void;
|
|
30
|
-
export declare const MAX_QUEUE_LENGTH = 1500;
|
|
31
|
-
export default class GoogleAnalytics {
|
|
32
|
-
history: IArguments[];
|
|
33
|
-
private _settings;
|
|
34
|
-
private _queue;
|
|
35
|
-
private _trackingId;
|
|
36
|
-
private _useTracking;
|
|
37
|
-
private _callbacks;
|
|
38
|
-
private _gaReady;
|
|
39
|
-
private get _gtag();
|
|
40
|
-
constructor(configuratorId: string, useTracking?: boolean);
|
|
41
|
-
giveConsent(): void;
|
|
42
|
-
trackEvent(action: CUSTOM_ACTION_TYPE | GA_ACTION_TYPE | string, category: GA_CATEGORY, label: string, value?: Nullable<number>, fieldsObject?: object): void;
|
|
43
|
-
trackTiming(category: GA_CATEGORY, label: any, value: number, fieldsObject?: object): void;
|
|
44
|
-
setDimension(dimension: string, value: any): void;
|
|
45
|
-
setDimensions(dimensions: {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
}): void;
|
|
48
|
-
trackError(message: string, specialErrorName?: Nullable<string>): void;
|
|
49
|
-
trackContentError(message: string): void;
|
|
50
|
-
addCallback(listener: GoogleAnalyticsCallback): void;
|
|
51
|
-
removeUiCallback(listener: GoogleAnalyticsCallback): void;
|
|
52
|
-
cleanUpHistory(): void;
|
|
53
|
-
trackWrongDomain(): void;
|
|
54
|
-
trackNoActivePackage(): void;
|
|
55
|
-
private _execCommand;
|
|
56
|
-
private _loadLibScript;
|
|
57
|
-
private _send;
|
|
58
|
-
private _flushQueue;
|
|
59
|
-
private _setObjectProperties;
|
|
60
|
-
private _trackException;
|
|
61
|
-
private _trackErrors;
|
|
62
|
-
private _trackErrorEvent;
|
|
63
|
-
private _setSettings;
|
|
64
|
-
private _findDimension;
|
|
65
|
-
private _sendNavigationTimingMetrics;
|
|
66
|
-
}
|
|
67
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '@/common/utils/types';
|
|
2
|
-
import { RapiConfiguration, RapiItem, RapiTenant } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
3
|
-
export declare const throttle: <T extends (...args: any[]) => any>(func: T, delay?: number) => (...funcArgs: Parameters<T>) => void;
|
|
4
|
-
export declare const round: (float: number, precision: number) => number;
|
|
5
|
-
export declare const isIdAnItem: (id: string) => boolean;
|
|
6
|
-
export declare const isIdAPlan: (id: string) => boolean;
|
|
7
|
-
export declare const isIdAComponent: (id: string) => boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Get cloudinary (cdn) url for given parameters
|
|
10
|
-
* @param url
|
|
11
|
-
* @param format
|
|
12
|
-
* @param size
|
|
13
|
-
* @param step
|
|
14
|
-
*/
|
|
15
|
-
export declare const getImageURL: (url: string, size?: number, step?: number) => string;
|
|
16
|
-
export interface KeyValuePair {
|
|
17
|
-
key: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}
|
|
20
|
-
export declare const addMetaHeaderTag: (id: string, attributes: KeyValuePair[]) => void;
|
|
21
|
-
export declare const uuid: (a?: Nullable<string>) => string;
|
|
22
|
-
export declare const snakeCase: (str: string) => string;
|
|
23
|
-
export interface KernelBoundsFormatted {
|
|
24
|
-
width: string;
|
|
25
|
-
height: string;
|
|
26
|
-
depth: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const deepCopy: <T>(o: T) => T;
|
|
29
|
-
export declare const toBoolean: (value: boolean | undefined, defaultValue?: boolean) => boolean;
|
|
30
|
-
export declare const wait: (delayInMs: number) => Promise<void>;
|
|
31
|
-
export declare const NAMES_FOR_LOCALHOST: string[];
|
|
32
|
-
export declare const getHostname: () => string | null;
|
|
33
|
-
export declare const isDemoHostname: (hostname: string) => boolean;
|
|
34
|
-
export declare const scriptInfo: (...args: any[]) => void;
|
|
35
|
-
export declare const getGlbAssetUrl: (obj: RapiItem | RapiConfiguration) => Nullable<string>;
|
|
36
|
-
export declare const getUsdzAssetUrl: (obj: RapiItem | RapiConfiguration) => Nullable<string>;
|
|
37
|
-
export declare const hasArAssets: (item: RapiItem) => boolean;
|
|
38
|
-
export declare const formatPrice: (currencySymbol: Nullable<string>, price: Nullable<number>) => Nullable<string>;
|
|
39
|
-
export declare const normalizeFloatingNumber: (num: number, decimals?: number) => number;
|
|
40
|
-
export declare const checkForActivePackage: (tenant: RapiTenant) => boolean;
|
|
41
|
-
export declare const oneTimeInterval: (callback: () => void, delay: number) => number;
|
|
42
|
-
export declare const runOnIdle: any;
|
|
43
|
-
export declare const isLocationJestTest: () => boolean;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ConfiguratorSettings, UiInitData } from '@/configurator/embedding/types';
|
|
2
|
-
import RapiAccess from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
|
|
3
|
-
import { Nullable } from '@/common/utils/types';
|
|
4
|
-
import type { MessageHandler } from '@/configurator/embedding/message-handler';
|
|
5
|
-
import { RoomleSdkWrapper } from '@/configurator/business-logic/roomle-sdk-wrapper';
|
|
6
|
-
export declare const CONFIGURATOR_IDLE = "(idle)";
|
|
7
|
-
export declare const getInitData: (useFallbackId?: boolean) => UiInitData;
|
|
8
|
-
export declare const castAndFixInitData: (initData: UiInitData) => UiInitData;
|
|
9
|
-
export declare const castInitData: (obj: Nullable<{
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}>) => void;
|
|
12
|
-
export declare const mergeInitData: (configuratorSettings: ConfiguratorSettings | {
|
|
13
|
-
id: string;
|
|
14
|
-
settings: UiInitData;
|
|
15
|
-
}, currentInitData: UiInitData) => UiInitData;
|
|
16
|
-
export declare const getEmbeddingInitData: (messageHandler: MessageHandler) => Promise<UiInitData>;
|
|
17
|
-
export declare const getRemoteInitData: (rapiAccess: RapiAccess, configuratorId: string) => Promise<UiInitData>;
|
|
18
|
-
export declare const getFallbackInitData: () => UiInitData;
|
|
19
|
-
export declare const LEGACY_SHARE_PLACEHOLDER = "<CONF_ID>";
|
|
20
|
-
export declare const SHARE_PLACEHOLDER = "#CONFIGURATIONID#";
|
|
21
|
-
/**
|
|
22
|
-
* combines init data in this order: query params > embedding > remote > fallback
|
|
23
|
-
*
|
|
24
|
-
* some exceptions to consider:
|
|
25
|
-
* - tenant: when do we need the tenant and where do we get it from?
|
|
26
|
-
*
|
|
27
|
-
* @param messageHandler
|
|
28
|
-
* @param sdkWrapper
|
|
29
|
-
* @param fallbackInitData
|
|
30
|
-
*/
|
|
31
|
-
export declare const combineInitData: (messageHandler: Nullable<MessageHandler>, sdkWrapper: RoomleSdkWrapper, queryParamsInitData: UiInitData) => Promise<UiInitData>;
|
|
32
|
-
export declare const setProperty: (o: {
|
|
33
|
-
[key: string]: any;
|
|
34
|
-
}, path: string, value: any) => void;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RapiMaterial, RapiMaterialGroup, RapiTagForUi, RapiTexture } from '@roomle/web-sdk/lib/definitions/typings/rapi-types';
|
|
2
|
-
import { KernelPartListParameter, UiPossibleChildTag } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
3
|
-
import { CollectionViewElement } from '@/common/components/collection-view/-utils/types';
|
|
4
|
-
import { VariantsMap } from '@/configurator/embedding/types';
|
|
5
|
-
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
6
|
-
export interface RapiMaterialEmbeddedTextures extends RapiMaterial {
|
|
7
|
-
embeddedTextures?: RapiTexture[];
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}
|
|
10
|
-
export declare const getAllMaterials: (groups?: RapiMaterialGroup[]) => RapiMaterialEmbeddedTextures[];
|
|
11
|
-
export declare const mapAddons: (addons: UiPossibleChildTag[]) => CollectionViewElement[];
|
|
12
|
-
export declare const mapVariants: (tag: RapiTagForUi) => CollectionViewElement[];
|
|
13
|
-
export declare const mapCatalogRootTag: (tags: RapiTagForUi[]) => CollectionViewElement[];
|
|
14
|
-
export declare const filterAndMapAddons: (addons: UiPossibleChildTag[], selectedGroup: string | undefined) => CollectionViewElement[];
|
|
15
|
-
export declare const addonsHaveGroups: (addons: UiPossibleChildTag[]) => boolean;
|
|
16
|
-
export declare const extractRootComponentId: (id: string) => string | undefined;
|
|
17
|
-
export declare const getCurrentVariants: (api: RoomleConfigurator, id: string, variantChangeMap?: VariantsMap) => Promise<RapiTagForUi | undefined>;
|
|
18
|
-
export declare const prepareParametersForUi: (parameters: KernelPartListParameter[]) => KernelPartListParameter[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const EMPTY_PLAN = "<plan version=\"2\"><walls><nodes/><edges/></walls><planobjects/><texters/><measures/><floors/><transparency><layers/></transparency></plan>";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createShareLinkFromUrl: (url: string) => string;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '@/common/utils/types';
|
|
2
|
-
export declare const TOUCH_DRAG_TIMEOUT = 500;
|
|
3
|
-
export declare const TOUCH_DRAG_DELAY = 75;
|
|
4
|
-
export declare const TOUCH_DRAG_EPSILON = 10;
|
|
5
|
-
export interface TouchDragCallbacks {
|
|
6
|
-
onTouchDragStart: (payload: Nullable<any>, event: TouchEvent) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare class TouchDrag<Payload> {
|
|
9
|
-
private _touchDragTimeOut;
|
|
10
|
-
private _onTouchDragStart;
|
|
11
|
-
private _payload;
|
|
12
|
-
private _delay;
|
|
13
|
-
private _firstTouch;
|
|
14
|
-
private _lastTouch;
|
|
15
|
-
constructor(payload: Payload, { onTouchDragStart }: TouchDragCallbacks, options?: {
|
|
16
|
-
delay?: number;
|
|
17
|
-
});
|
|
18
|
-
onTouchStart(event: TouchEvent): void;
|
|
19
|
-
onTouchEnd(): void;
|
|
20
|
-
onTouchMove(event: TouchEvent): void;
|
|
21
|
-
private _clearTimeout;
|
|
22
|
-
private _resetTouches;
|
|
23
|
-
private _checkXDistance;
|
|
24
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare type Nullable<T> = T | null;
|
|
2
|
-
export declare type AnyFunction<T = void> = (...args: any[]) => T;
|
|
3
|
-
export interface CssHash {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const enum USER_ACTION_MODULE {
|
|
7
|
-
CONFIGURATOR = 3
|
|
8
|
-
}
|
|
9
|
-
export declare enum USER_ACTION {
|
|
10
|
-
CONVERSION = 11,
|
|
11
|
-
SHARE_AR = 301,
|
|
12
|
-
SAVE_DRAFT = 302
|
|
13
|
-
}
|
|
14
|
-
export declare type ToggleCallback = (isExpanded: boolean) => void;
|
|
15
|
-
export declare type CloseReason = 'toggle';
|
|
16
|
-
export declare enum MEASUREMENT_UNIT {
|
|
17
|
-
CM = "cm",
|
|
18
|
-
INCH = "inchfeet"
|
|
19
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '@/common/utils/types';
|
|
2
|
-
export declare const isIOs: () => false;
|
|
3
|
-
export declare const hasARQuicklook: () => Nullable<boolean>;
|
|
4
|
-
export declare const isInAppBrowser: () => Nullable<boolean>;
|
|
5
|
-
export declare const isAndroid: () => boolean;
|
|
6
|
-
export declare const deviceSupportsAR: () => boolean;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Analytics } from '@/common/plugins/analytics';
|
|
2
|
-
import { SdkConnector } from '@/configurator/business-logic/sdk-connector';
|
|
3
|
-
export declare const loadVariant: (id: string, applyCurrentGlobalParameters: boolean, sdkConnector: SdkConnector, analytics?: Analytics | undefined) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import RapiAccess from '@roomle/web-sdk/lib/definitions/common-core/src/rapi-access';
|
|
2
|
-
import { GlbViewer } from '@roomle/web-sdk/lib/definitions/glb-viewer-core/src/glb-viewer';
|
|
3
|
-
import { Configurator } from '@roomle/web-sdk/lib/definitions/configurator-core/src/configurator';
|
|
4
|
-
import { Nullable } from '@/common/utils/types';
|
|
5
|
-
import { UiInitData } from '@/configurator/embedding/types';
|
|
6
|
-
import { GlobalInitDataDefinition } from '@roomle/web-sdk/lib/definitions/common-core/src/utils/shims';
|
|
7
|
-
import { Planner } from '@roomle/web-sdk/lib/definitions/planner-core/src/planner';
|
|
8
|
-
import { GlobalCallback } from '@roomle/web-sdk/lib/definitions/common-core/src/services/global-callback';
|
|
9
|
-
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
10
|
-
/**
|
|
11
|
-
* We use this class in a plugin so we
|
|
12
|
-
* can rely on DI to change it during testing
|
|
13
|
-
*/
|
|
14
|
-
export declare class RoomleSdkWrapper {
|
|
15
|
-
private _configuratorInstance;
|
|
16
|
-
private _viewerInstance;
|
|
17
|
-
private _plannerInstance;
|
|
18
|
-
private _currentInstance;
|
|
19
|
-
get hasPlanner(): boolean;
|
|
20
|
-
getConfigurator(element: HTMLElement, initData?: UiInitData): Promise<Configurator>;
|
|
21
|
-
getConfiguratorApi(element: HTMLElement, initData?: UiInitData): Promise<RoomleConfigurator>;
|
|
22
|
-
getGlbViewer(element: HTMLElement, initData?: UiInitData): Promise<GlbViewer>;
|
|
23
|
-
getPlanner(element: HTMLElement, initData?: UiInitData): Promise<Planner>;
|
|
24
|
-
getRapiAccess(): Promise<RapiAccess>;
|
|
25
|
-
getGlobalCallback(): Promise<GlobalCallback>;
|
|
26
|
-
setGlobalInitData(initData: Nullable<GlobalInitDataDefinition>): void;
|
|
27
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import RoomleConfigurator from '@roomle/web-sdk/lib/definitions/configurator-core/src/roomle-configurator';
|
|
2
|
-
import { Nullable } from '@/common/utils/types';
|
|
3
|
-
import { UiInitData } from '@/configurator/embedding/types';
|
|
4
|
-
import { StoreState } from '@/common/store';
|
|
5
|
-
import { KernelParameter } from '@roomle/web-sdk/lib/definitions/typings/kernel';
|
|
6
|
-
import { Store } from 'vuex';
|
|
7
|
-
import { RoomleSdkWrapper } from '@/configurator/business-logic/roomle-sdk-wrapper';
|
|
8
|
-
import { Analytics } from '@/common/plugins/analytics';
|
|
9
|
-
import { UiCallbacks } from '@/configurator/business-logic/ui-callback';
|
|
10
|
-
import { Connector } from '@/common/business-logic/connector';
|
|
11
|
-
export declare class SdkConnectorConfigurator extends Connector {
|
|
12
|
-
private _configurator;
|
|
13
|
-
private _initWaiters;
|
|
14
|
-
private _store;
|
|
15
|
-
private _analytics;
|
|
16
|
-
private _uiCallbacks;
|
|
17
|
-
constructor(store: Store<StoreState>, analytics?: Nullable<Analytics>);
|
|
18
|
-
get api(): Promise<RoomleConfigurator>;
|
|
19
|
-
init(sdkWrapper: RoomleSdkWrapper, element: HTMLElement, initData: UiInitData): Promise<void>;
|
|
20
|
-
initConfigurator(configurator: RoomleConfigurator): Promise<void>;
|
|
21
|
-
setParameter(parameter: KernelParameter, value: string, isRaw?: boolean): Promise<void>;
|
|
22
|
-
setPrice(currencySymbol: string, price: number): void;
|
|
23
|
-
addUiCallback(listener: UiCallbacks): void;
|
|
24
|
-
removeUiCallback(listener: UiCallbacks): void;
|
|
25
|
-
private _updateParameters;
|
|
26
|
-
private _updateParameterGroups;
|
|
27
|
-
private _updateAddons;
|
|
28
|
-
private _checkParameterGroups;
|
|
29
|
-
}
|