@roomle/embedding-lib 5.31.0-alpha.2 → 5.31.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.
- package/docs/md/web/embedding/CHANGELOG.md +1 -27
- package/package.json +1 -1
- package/src/common/components/overlays/PartList.vue.d.ts +82 -0
- package/src/common/store/index.d.ts +2 -4
- package/src/common/utils/types.d.ts +1 -0
- package/src/configurator/store/core-data-store.d.ts +90 -0
- package/src/configurator/store/ui-state.d.ts +1 -1
- package/src/configurator/store/core-data.d.ts +0 -25
|
@@ -1,27 +1 @@
|
|
|
1
|
-
## [5.31.0-alpha.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* change the look and feel of the normal dimensions ([70a4944](https://github.com/roomle-dev/roomle-ui/commit/70a4944068b402c0dcf5311c0d502c6fd756d502))
|
|
7
|
-
* core api - docking preview ([b59ebcb](https://github.com/roomle-dev/roomle-ui/commit/b59ebcb47c245dc08e2c4df1a0eb61ff4a6601be))
|
|
8
|
-
* implement camera-aware dimension line positioning ([4f43eb4](https://github.com/roomle-dev/roomle-ui/commit/4f43eb487bef2ef43384a655f1231f8a1a8c7769))
|
|
9
|
-
* insert item from external catalog on click ([4ea3635](https://github.com/roomle-dev/roomle-ui/commit/4ea3635a8fad46ba08de383320bdee0f8fbfb64d))
|
|
10
|
-
* swap object in plan with item from external catalog ([aff3317](https://github.com/roomle-dev/roomle-ui/commit/aff3317d1129cca74b0693c5642a535ff9904795))
|
|
11
|
-
* **core:** upgrade to version 2.63.0-alpha.5 ([8728856](https://github.com/roomle-dev/roomle-ui/commit/87288561dd628c775b70211c5566008fae77a16c))
|
|
12
|
-
* **core:** upgrade to version 2.63.0-alpha.6 ([4194874](https://github.com/roomle-dev/roomle-ui/commit/4194874530ec7dcef5a15f52a8d76ec125f4cdf2))
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Bug Fixes
|
|
16
|
-
|
|
17
|
-
* checked style ([736ff22](https://github.com/roomle-dev/roomle-ui/commit/736ff229985f3648e8cbda733129003aa810a2d4))
|
|
18
|
-
* e2e tests ([84907b4](https://github.com/roomle-dev/roomle-ui/commit/84907b4d7ccdae1f174db714744f6a2973d8ce3b))
|
|
19
|
-
* element length scaling ([4259eec](https://github.com/roomle-dev/roomle-ui/commit/4259eec32f83370f018aca72dc3ff97f80285d52))
|
|
20
|
-
* feedback fixes ([56d4d74](https://github.com/roomle-dev/roomle-ui/commit/56d4d746e529f0d623626c1cc34218f8b4e780db))
|
|
21
|
-
* hide the rotation icon on subcomponents in the planner ([a0e6c31](https://github.com/roomle-dev/roomle-ui/commit/a0e6c31b7bcd02e728b378ef706db0ecad5c79c2))
|
|
22
|
-
* implement catalog management UX feedback ([eef28b4](https://github.com/roomle-dev/roomle-ui/commit/eef28b406a58df1a433d33423de760eb73532e4b))
|
|
23
|
-
* merge conflicts ([8b891dd](https://github.com/roomle-dev/roomle-ui/commit/8b891ddf2c7641eda01eeb459e8cab1051c255c1))
|
|
24
|
-
* remove unneeded comments ([ac8784f](https://github.com/roomle-dev/roomle-ui/commit/ac8784fc643d7c4e2b1ce0c46d225d67846dc67b))
|
|
25
|
-
* replace generic inputs ([30e6acb](https://github.com/roomle-dev/roomle-ui/commit/30e6acbfe22858665606b3f33fcc17411f8ed676))
|
|
26
|
-
* return return null if plan snapshot doesn't exist ([ba6d95c](https://github.com/roomle-dev/roomle-ui/commit/ba6d95c87260ebfa52b9a19368dfba33b08fb103))
|
|
27
|
-
* use possible children component ([162e2e5](https://github.com/roomle-dev/roomle-ui/commit/162e2e505058d3aaeea104482da0cb3cc192e6a3))
|
|
1
|
+
## [5.31.0-alpha.4](https://github.com/roomle-dev/roomle-ui/compare/embedding-lib-v5.31.0-alpha.3...embedding-lib-v5.31.0-alpha.4) (2025-10-30)
|
package/package.json
CHANGED
|
@@ -13,6 +13,88 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
15
|
}>, {
|
|
16
|
+
coreDataStore: import('pinia').Store<"coreDataStore", Pick<{
|
|
17
|
+
groups: import('vue').Ref<{
|
|
18
|
+
parameters: any[];
|
|
19
|
+
}[], import('../../../configurator/store/core-data-store').ParameterGroup[] | {
|
|
20
|
+
parameters: any[];
|
|
21
|
+
}[]>;
|
|
22
|
+
parameters: import('vue').Ref<any[], any[] | UiKernelParameter[]>;
|
|
23
|
+
addons: import('vue').Ref<any[], any[] | UiPossibleChildTag[]>;
|
|
24
|
+
partList: import('vue').Ref<KernelPartList, KernelPartList>;
|
|
25
|
+
bounds: import('vue').Ref<{
|
|
26
|
+
width: string;
|
|
27
|
+
height: string;
|
|
28
|
+
depth: string;
|
|
29
|
+
}, import('../../utils/helper').KernelBoundsFormatted | {
|
|
30
|
+
width: string;
|
|
31
|
+
height: string;
|
|
32
|
+
depth: string;
|
|
33
|
+
}>;
|
|
34
|
+
currencySymbol: import('vue').Ref<string, string>;
|
|
35
|
+
price: import('vue').Ref<number, number>;
|
|
36
|
+
currentPrice: import('vue').ComputedRef<string>;
|
|
37
|
+
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
38
|
+
updatePrice: (priceData: {
|
|
39
|
+
currencySymbol: string;
|
|
40
|
+
price: number;
|
|
41
|
+
}) => void;
|
|
42
|
+
setPiniaVuexReference: (store: Store<import('../../store').StoreState>) => void;
|
|
43
|
+
}, "parameters" | "groups" | "addons" | "partList" | "bounds" | "currencySymbol" | "price">, Pick<{
|
|
44
|
+
groups: import('vue').Ref<{
|
|
45
|
+
parameters: any[];
|
|
46
|
+
}[], import('../../../configurator/store/core-data-store').ParameterGroup[] | {
|
|
47
|
+
parameters: any[];
|
|
48
|
+
}[]>;
|
|
49
|
+
parameters: import('vue').Ref<any[], any[] | UiKernelParameter[]>;
|
|
50
|
+
addons: import('vue').Ref<any[], any[] | UiPossibleChildTag[]>;
|
|
51
|
+
partList: import('vue').Ref<KernelPartList, KernelPartList>;
|
|
52
|
+
bounds: import('vue').Ref<{
|
|
53
|
+
width: string;
|
|
54
|
+
height: string;
|
|
55
|
+
depth: string;
|
|
56
|
+
}, import('../../utils/helper').KernelBoundsFormatted | {
|
|
57
|
+
width: string;
|
|
58
|
+
height: string;
|
|
59
|
+
depth: string;
|
|
60
|
+
}>;
|
|
61
|
+
currencySymbol: import('vue').Ref<string, string>;
|
|
62
|
+
price: import('vue').Ref<number, number>;
|
|
63
|
+
currentPrice: import('vue').ComputedRef<string>;
|
|
64
|
+
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
65
|
+
updatePrice: (priceData: {
|
|
66
|
+
currencySymbol: string;
|
|
67
|
+
price: number;
|
|
68
|
+
}) => void;
|
|
69
|
+
setPiniaVuexReference: (store: Store<import('../../store').StoreState>) => void;
|
|
70
|
+
}, "currentPrice" | "hasNonGroupAddons">, Pick<{
|
|
71
|
+
groups: import('vue').Ref<{
|
|
72
|
+
parameters: any[];
|
|
73
|
+
}[], import('../../../configurator/store/core-data-store').ParameterGroup[] | {
|
|
74
|
+
parameters: any[];
|
|
75
|
+
}[]>;
|
|
76
|
+
parameters: import('vue').Ref<any[], any[] | UiKernelParameter[]>;
|
|
77
|
+
addons: import('vue').Ref<any[], any[] | UiPossibleChildTag[]>;
|
|
78
|
+
partList: import('vue').Ref<KernelPartList, KernelPartList>;
|
|
79
|
+
bounds: import('vue').Ref<{
|
|
80
|
+
width: string;
|
|
81
|
+
height: string;
|
|
82
|
+
depth: string;
|
|
83
|
+
}, import('../../utils/helper').KernelBoundsFormatted | {
|
|
84
|
+
width: string;
|
|
85
|
+
height: string;
|
|
86
|
+
depth: string;
|
|
87
|
+
}>;
|
|
88
|
+
currencySymbol: import('vue').Ref<string, string>;
|
|
89
|
+
price: import('vue').Ref<number, number>;
|
|
90
|
+
currentPrice: import('vue').ComputedRef<string>;
|
|
91
|
+
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
92
|
+
updatePrice: (priceData: {
|
|
93
|
+
currencySymbol: string;
|
|
94
|
+
price: number;
|
|
95
|
+
}) => void;
|
|
96
|
+
setPiniaVuexReference: (store: Store<import('../../store').StoreState>) => void;
|
|
97
|
+
}, "setPiniaVuexReference" | "updatePrice">>;
|
|
16
98
|
store: any;
|
|
17
99
|
label: import('vue').ComputedRef<any>;
|
|
18
100
|
price: import('vue').ComputedRef<string>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CoreState } from '../../configurator/store/core-state';
|
|
2
|
-
import { CoreData } from '../../configurator/store/core-data';
|
|
3
2
|
import { BUTTON_ACTIONS, UiState } from '../../configurator/store/ui-state';
|
|
4
3
|
import { PlannerUiState } from '../../planner/store/planner-ui-state';
|
|
5
4
|
import { Nullable } from '../utils/types';
|
|
@@ -15,14 +14,13 @@ export interface SharedUiState {
|
|
|
15
14
|
topBarSelectedActions: BUTTON_ACTIONS[];
|
|
16
15
|
}
|
|
17
16
|
export declare const MUTATIONS: {
|
|
18
|
-
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `
|
|
17
|
+
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `CORE_STATE_${string}` | `PLANNER_CORE_STATE_${string}`;
|
|
19
18
|
};
|
|
20
19
|
export declare const ACTIONS: {
|
|
21
|
-
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `
|
|
20
|
+
[x: string]: `UI_STATE_${string}` | `PLANNER_UI_STATE_${string}` | `CORE_STATE_${string}` | `PLANNER_CORE_STATE_${string}`;
|
|
22
21
|
};
|
|
23
22
|
export interface StoreState {
|
|
24
23
|
coreState: CoreState;
|
|
25
|
-
coreData: CoreData;
|
|
26
24
|
uiState: UiState;
|
|
27
25
|
plannerUiState: PlannerUiState;
|
|
28
26
|
plannerCoreData: PlannerCoreData;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { StoreState } from '../../common/store';
|
|
2
|
+
import { KernelParameterGroup, UiKernelParameter } from '@roomle/web-sdk/typings/kernel';
|
|
3
|
+
import { KernelBoundsFormatted } from '../../common/utils/helper';
|
|
4
|
+
|
|
5
|
+
export interface ParameterGroup extends KernelParameterGroup {
|
|
6
|
+
parameters: UiKernelParameter[];
|
|
7
|
+
}
|
|
8
|
+
export declare const useCoreDataStore: import('pinia').StoreDefinition<"coreDataStore", Pick<{
|
|
9
|
+
groups: import('vue').Ref<{
|
|
10
|
+
parameters: any[];
|
|
11
|
+
}[], ParameterGroup[] | {
|
|
12
|
+
parameters: any[];
|
|
13
|
+
}[]>;
|
|
14
|
+
parameters: import('vue').Ref<any[], any[] | UiKernelParameter[]>;
|
|
15
|
+
addons: import('vue').Ref<any[], any[] | UiPossibleChildTag[]>;
|
|
16
|
+
partList: import('vue').Ref<KernelPartList, KernelPartList>;
|
|
17
|
+
bounds: import('vue').Ref<{
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
depth: string;
|
|
21
|
+
}, KernelBoundsFormatted | {
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
depth: string;
|
|
25
|
+
}>;
|
|
26
|
+
currencySymbol: import('vue').Ref<string, string>;
|
|
27
|
+
price: import('vue').Ref<number, number>;
|
|
28
|
+
currentPrice: import('vue').ComputedRef<string>;
|
|
29
|
+
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
30
|
+
updatePrice: (priceData: {
|
|
31
|
+
currencySymbol: string;
|
|
32
|
+
price: number;
|
|
33
|
+
}) => void;
|
|
34
|
+
setPiniaVuexReference: (store: Store<StoreState>) => void;
|
|
35
|
+
}, "parameters" | "groups" | "addons" | "partList" | "bounds" | "currencySymbol" | "price">, Pick<{
|
|
36
|
+
groups: import('vue').Ref<{
|
|
37
|
+
parameters: any[];
|
|
38
|
+
}[], ParameterGroup[] | {
|
|
39
|
+
parameters: any[];
|
|
40
|
+
}[]>;
|
|
41
|
+
parameters: import('vue').Ref<any[], any[] | UiKernelParameter[]>;
|
|
42
|
+
addons: import('vue').Ref<any[], any[] | UiPossibleChildTag[]>;
|
|
43
|
+
partList: import('vue').Ref<KernelPartList, KernelPartList>;
|
|
44
|
+
bounds: import('vue').Ref<{
|
|
45
|
+
width: string;
|
|
46
|
+
height: string;
|
|
47
|
+
depth: string;
|
|
48
|
+
}, KernelBoundsFormatted | {
|
|
49
|
+
width: string;
|
|
50
|
+
height: string;
|
|
51
|
+
depth: string;
|
|
52
|
+
}>;
|
|
53
|
+
currencySymbol: import('vue').Ref<string, string>;
|
|
54
|
+
price: import('vue').Ref<number, number>;
|
|
55
|
+
currentPrice: import('vue').ComputedRef<string>;
|
|
56
|
+
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
57
|
+
updatePrice: (priceData: {
|
|
58
|
+
currencySymbol: string;
|
|
59
|
+
price: number;
|
|
60
|
+
}) => void;
|
|
61
|
+
setPiniaVuexReference: (store: Store<StoreState>) => void;
|
|
62
|
+
}, "currentPrice" | "hasNonGroupAddons">, Pick<{
|
|
63
|
+
groups: import('vue').Ref<{
|
|
64
|
+
parameters: any[];
|
|
65
|
+
}[], ParameterGroup[] | {
|
|
66
|
+
parameters: any[];
|
|
67
|
+
}[]>;
|
|
68
|
+
parameters: import('vue').Ref<any[], any[] | UiKernelParameter[]>;
|
|
69
|
+
addons: import('vue').Ref<any[], any[] | UiPossibleChildTag[]>;
|
|
70
|
+
partList: import('vue').Ref<KernelPartList, KernelPartList>;
|
|
71
|
+
bounds: import('vue').Ref<{
|
|
72
|
+
width: string;
|
|
73
|
+
height: string;
|
|
74
|
+
depth: string;
|
|
75
|
+
}, KernelBoundsFormatted | {
|
|
76
|
+
width: string;
|
|
77
|
+
height: string;
|
|
78
|
+
depth: string;
|
|
79
|
+
}>;
|
|
80
|
+
currencySymbol: import('vue').Ref<string, string>;
|
|
81
|
+
price: import('vue').Ref<number, number>;
|
|
82
|
+
currentPrice: import('vue').ComputedRef<string>;
|
|
83
|
+
hasNonGroupAddons: import('vue').ComputedRef<boolean>;
|
|
84
|
+
updatePrice: (priceData: {
|
|
85
|
+
currencySymbol: string;
|
|
86
|
+
price: number;
|
|
87
|
+
}) => void;
|
|
88
|
+
setPiniaVuexReference: (store: Store<StoreState>) => void;
|
|
89
|
+
}, "setPiniaVuexReference" | "updatePrice">>;
|
|
90
|
+
export type CoreDataStore = ReturnType<typeof useCoreDataStore>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Module } from 'vuex';
|
|
2
2
|
import { SharedUiState, StoreState } from '../../common/store';
|
|
3
3
|
import { INTERACTION_VIEW_TYPE, Nullable, Enumify } from '../../common/utils/types';
|
|
4
|
-
import { ParameterGroup } from './core-data';
|
|
4
|
+
import { ParameterGroup } from './core-data-store';
|
|
5
5
|
import { KernelComponent, UiPossibleChild } from '@roomle/web-sdk/typings/kernel';
|
|
6
6
|
import { OverlaysOpenState } from '../../common/components/utils/-utils/overlays';
|
|
7
7
|
import { UiInitData } from '../embedding/types';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Module } from 'vuex';
|
|
2
|
-
import { StoreState } from '../../common/store';
|
|
3
|
-
import { KernelParameterGroup, KernelPartList, UiKernelParameter, UiPossibleChildTag } from '@roomle/web-sdk/typings/kernel';
|
|
4
|
-
import { Nullable } from '../../common/utils/types';
|
|
5
|
-
import { KernelBoundsFormatted } from '../../common/utils/helper';
|
|
6
|
-
import { EnsurePrefix } from './ui-state';
|
|
7
|
-
|
|
8
|
-
export interface ParameterGroup extends KernelParameterGroup {
|
|
9
|
-
parameters: UiKernelParameter[];
|
|
10
|
-
}
|
|
11
|
-
type CoreDataIdentifier = EnsurePrefix<'CORE_DATA_'>;
|
|
12
|
-
export interface CoreData {
|
|
13
|
-
groups: ParameterGroup[];
|
|
14
|
-
parameters: UiKernelParameter[];
|
|
15
|
-
addons: UiPossibleChildTag[];
|
|
16
|
-
partList: KernelPartList;
|
|
17
|
-
bounds: Nullable<KernelBoundsFormatted>;
|
|
18
|
-
currencySymbol: string;
|
|
19
|
-
price: Nullable<number>;
|
|
20
|
-
}
|
|
21
|
-
export declare const CORE_DATA_MUTATIONS: CoreDataIdentifier;
|
|
22
|
-
export declare const CORE_DATA_ACTIONS: CoreDataIdentifier;
|
|
23
|
-
export declare const CORE_DATA_GETTERS: CoreDataIdentifier;
|
|
24
|
-
export declare const coreData: Module<CoreData, StoreState>;
|
|
25
|
-
export {};
|