architwin 1.16.8 → 1.16.9
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.
|
@@ -24,7 +24,9 @@ export function renderThemePane() {
|
|
|
24
24
|
<img class="at_image at_theme_image" src="${_mpConfig.bundlePath ? `https://cdn.jsdelivr.net/npm/architwin@latest/static/images/${theme}thumbnail.png` : `../../../../architwin/static/images/${theme}thumbnail.png`}" alt="Property Image" id="at-theme-card-image-${theme}" theme-id="${theme}">
|
|
25
25
|
<div style="padding:.5rem;" card-id="at-${theme}-card">
|
|
26
26
|
<div class="at_card-title">
|
|
27
|
-
|
|
27
|
+
<h2 class="at_title_small" id="at-theme-title-${theme}" data-cy="at-theme-title-${theme}">
|
|
28
|
+
${theme === "azusa" ? "DEFAULT" : theme.toUpperCase()}
|
|
29
|
+
</h2>
|
|
28
30
|
</div>
|
|
29
31
|
</div>
|
|
30
32
|
</div>
|
package/lib/superviz.d.ts
CHANGED
|
@@ -11,15 +11,15 @@ declare function createMeeting(spaceId?: string, hostName?: string, title?: stri
|
|
|
11
11
|
guest: string;
|
|
12
12
|
meeting_id: string;
|
|
13
13
|
}>;
|
|
14
|
-
declare function getMeeting(meetingId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
-
declare function getSpaceMeetings(spaceId: number): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
declare function getMeeting(meetingId: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
15
|
+
declare function getSpaceMeetings(spaceId: number): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
16
16
|
declare function startMeeting(meetingUrl: string, meetingPassword?: string, meetingConfig?: MeetingConfig): Promise<void>;
|
|
17
17
|
declare function getMeetingParticipants(): IMpParticipant[];
|
|
18
18
|
declare function stopMeeting(): Promise<void>;
|
|
19
19
|
declare function isMeetingExists(meetingId: string): Promise<boolean>;
|
|
20
20
|
declare function isMeetingActive(meetingId: string): Promise<boolean>;
|
|
21
|
-
declare function updateMeetingTitle(meetingId: any, meetingTitle: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
-
declare function updateMeetingStart(meetingId: any, meetingStart: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
|
-
declare function updateMeetingSpace(meetingId: any, spaceId: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
|
-
declare function updateMeetingStatus(meetingId: any, meetingStatus: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
|
+
declare function updateMeetingTitle(meetingId: any, meetingTitle: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
22
|
+
declare function updateMeetingStart(meetingId: any, meetingStart: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
23
|
+
declare function updateMeetingSpace(meetingId: any, spaceId: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
24
|
+
declare function updateMeetingStatus(meetingId: any, meetingStatus: any): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
25
25
|
export { isMeetingInitialized, getMeetingParticipants, createMeeting, startMeeting, stopMeeting, generateMeetingURL, updateMeetingTitle, updateMeetingStart, updateMeetingStatus, updateMeetingSpace, getMeeting, getSpaceMeetings, isMeetingExists, isMeetingActive, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "architwin",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.9",
|
|
4
4
|
"description": "ArchiTwin Library for Matterport",
|
|
5
5
|
"main": "./lib/architwin.js",
|
|
6
6
|
"types": "./lib/architwin.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@superviz/matterport-plugin": "^0.8.8",
|
|
33
33
|
"@superviz/sdk": "^4.13.9",
|
|
34
34
|
"@zoom/videosdk": "^1.11.10",
|
|
35
|
-
"architwin": "1.
|
|
35
|
+
"architwin": "1.16.9",
|
|
36
36
|
"axios": "^1.4.0",
|
|
37
37
|
"buffer": "^6.0.3",
|
|
38
38
|
"date-fns": "^2.30.0",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare class ActionPartitionHistory {
|
|
2
|
-
private history;
|
|
3
|
-
private index;
|
|
4
|
-
private current;
|
|
5
|
-
addToHistory(partition: any): void;
|
|
6
|
-
undo(): any;
|
|
7
|
-
redo(): any;
|
|
8
|
-
getCurrent(): any;
|
|
9
|
-
setCurrent(partition: any): any;
|
|
10
|
-
getAllHistory(): {
|
|
11
|
-
history: any[];
|
|
12
|
-
index: number;
|
|
13
|
-
};
|
|
14
|
-
clearHistory(): void;
|
|
15
|
-
canUndo(): boolean;
|
|
16
|
-
canRedo(): boolean;
|
|
17
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import log from "loglevel";
|
|
2
|
-
export class ActionPartitionHistory {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.history = []; // all recorded partition states
|
|
5
|
-
this.index = -1; // current pointer
|
|
6
|
-
this.current = null; // fallback for "original" state
|
|
7
|
-
}
|
|
8
|
-
addToHistory(partition) {
|
|
9
|
-
const newPartition = structuredClone(partition);
|
|
10
|
-
if (this.index < this.history.length - 1) {
|
|
11
|
-
this.history = this.history.slice(0, this.index + 1);
|
|
12
|
-
}
|
|
13
|
-
if (this.history.length === 0 ||
|
|
14
|
-
JSON.stringify(this.history[this.history.length - 1]) !== JSON.stringify(newPartition)) {
|
|
15
|
-
this.history.push(newPartition);
|
|
16
|
-
this.index = this.history.length - 1;
|
|
17
|
-
log.info("newPartition", newPartition, this.current, this.history.length);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
undo() {
|
|
21
|
-
if (!this.canUndo())
|
|
22
|
-
return null;
|
|
23
|
-
this.index--;
|
|
24
|
-
if (this.index < 0)
|
|
25
|
-
return this.current ? this.current : null;
|
|
26
|
-
return this.getCurrent();
|
|
27
|
-
}
|
|
28
|
-
redo() {
|
|
29
|
-
if (!this.canRedo())
|
|
30
|
-
return null;
|
|
31
|
-
this.index++;
|
|
32
|
-
return this.getCurrent();
|
|
33
|
-
}
|
|
34
|
-
getCurrent() {
|
|
35
|
-
if (this.index >= 0 && this.index < this.history.length) {
|
|
36
|
-
return structuredClone(this.history[this.index]);
|
|
37
|
-
}
|
|
38
|
-
return this.current ? this.current : null;
|
|
39
|
-
}
|
|
40
|
-
setCurrent(partition) {
|
|
41
|
-
this.current = structuredClone(partition); // or _.cloneDeep(partition)
|
|
42
|
-
return this.current;
|
|
43
|
-
}
|
|
44
|
-
getAllHistory() {
|
|
45
|
-
return {
|
|
46
|
-
history: this.history.map(p => structuredClone(p)),
|
|
47
|
-
index: this.index,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
clearHistory() {
|
|
51
|
-
this.history = [];
|
|
52
|
-
this.index = -1;
|
|
53
|
-
this.current = null;
|
|
54
|
-
console.log("History cleared.");
|
|
55
|
-
}
|
|
56
|
-
canUndo() {
|
|
57
|
-
return this.index >= 0;
|
|
58
|
-
}
|
|
59
|
-
canRedo() {
|
|
60
|
-
return this.index < this.history.length - 1;
|
|
61
|
-
}
|
|
62
|
-
}
|