Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit efef5d6

Browse files
Merge pull request #766 from SuperViz/beta
Beta
2 parents 098150f + 5abee05 commit efef5d6

File tree

98 files changed

+937
-1435
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+937
-1435
lines changed

.esbuild/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ const esbuild = require('esbuild');
66
await Promise.all([
77
esbuild.build({
88
...cjsConfig,
9-
outfile: 'lib/index.cjs.js',
9+
outfile: 'dist/index.cjs.js',
1010
}),
1111

1212
esbuild.build({
1313
...esmConfig,
14-
outdir: 'lib',
14+
outdir: 'dist',
1515
}),
1616
]);
1717
} catch (error) {

__mocks__/config.mock.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { LIMITS_MOCK } from './limits.mock';
66
import { WATERMARK_MOCK } from './watermark.mock';
77

88
export const MOCK_CONFIG: Configuration = {
9-
ablyKey: 'unit-test-ably-key',
109
apiKey: 'unit-test-api-key',
1110
apiUrl: 'http://unit-test-api-url',
1211
conferenceLayerUrl: 'https://unit-test-conference-layer-url',

__mocks__/io.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { jest } from '@jest/globals';
2-
import { Room } from '../src/lib/socket';
2+
import { Room } from '@superviz/socket-client';
33

44
export const MOCK_IO = {
55
ClientState: {

jest.setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ global.DOMPoint = class {
3636
}
3737
};
3838

39-
jest.mock('./src/lib/socket', () => MOCK_IO);
39+
jest.mock('@superviz/socket-client', () => MOCK_IO);

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"name": "@superviz/sdk",
33
"version": "0.0.0-development",
44
"description": "SuperViz SDK",
5-
"main": "./lib/index.js",
6-
"types": "./lib/index.d.ts",
5+
"main": "./dist/index.js",
6+
"types": "./dist/index.d.ts",
77
"exports": {
8-
"import": "./lib/index.js",
9-
"require": "./lib/index.cjs.js"
8+
"import": "./dist/index.js",
9+
"require": "./dist/index.cjs.js"
1010
},
1111
"files": [
12-
"lib"
12+
"dist"
1313
],
1414
"scripts": {
1515
"prepare": "husky install",
@@ -92,7 +92,7 @@
9292
"luxon": "^3.4.4",
9393
"rxjs": "^7.8.1",
9494
"semantic-release-version-file": "^1.0.2",
95-
"socket.io-client": "^4.7.5",
95+
"@superviz/socket-client": "^1.10.0",
9696
"zod": "^3.23.8"
9797
},
9898
"config": {

src/common/styles/global.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
--sv-primary: 98, 16, 204;
66
}
77

8-
html, body {
8+
html,
9+
body {
910
width: 100%;
1011
height: 100%;
1112
overflow: hidden;
@@ -46,14 +47,14 @@ html, body {
4647
display: none;
4748
}
4849

49-
5050
/* Presence Mouse */
5151

5252
.pointer-mouse {
5353
display: flex;
54-
height: 17px;
55-
width: 17px;
54+
height: 15px;
55+
width: 16px;
5656
background-image: url(https://production.cdn.superviz.com/static/pointers/0.svg);
57+
background-repeat: no-repeat;
5758
}
5859

5960
.mouse-user-name {
@@ -76,4 +77,4 @@ html, body {
7677
display: block;
7778
z-index: 2;
7879
transition: all 150ms linear, opacity 100s ease-in;
79-
}
80+
}

src/common/types/cdn.types.ts

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {
1+
import type {
22
CanvasPin,
33
HTMLPin,
44
Comments,
@@ -8,15 +8,18 @@ import {
88
WhoIsOnline,
99
FormElements,
1010
} from '../../components';
11-
import { RealtimeComponentEvent, RealtimeComponentState } from '../../components/realtime/types';
12-
import { LauncherFacade } from '../../core/launcher/types';
13-
import {
11+
import type {
12+
RealtimeComponentEvent,
13+
RealtimeComponentState,
14+
} from '../../components/realtime/types';
15+
import type { LauncherFacade } from '../../core/launcher/types';
16+
import type {
1417
CamerasPosition,
1518
LayoutMode,
1619
LayoutPosition,
1720
} from '../../services/video-conference-manager/types';
1821

19-
import {
22+
import type {
2023
DeviceEvent,
2124
MeetingEvent,
2225
RealtimeEvent,
@@ -31,6 +34,10 @@ import {
3134
} from './events.types';
3235
import { ParticipantType } from './participant.types';
3336
import { SuperVizSdkOptions } from './sdk-options.types';
37+
import { StoreType } from '../types/stores.types';
38+
import { PresenceEvents } from '@superviz/socket-client';
39+
import { FieldEvents } from '../../components/form-elements/types';
40+
import { PinMode } from '../../web-components/comments/components/types';
3441

3542
export interface SuperVizCdn {
3643
init: (apiKey: string, options: SuperVizSdkOptions) => Promise<LauncherFacade>;
@@ -59,4 +66,9 @@ export interface SuperVizCdn {
5966
FormElements: typeof FormElements;
6067
RealtimeComponentState: typeof RealtimeComponentState;
6168
RealtimeComponentEvent: typeof RealtimeComponentEvent;
69+
StoreType: typeof StoreType;
70+
PresenceEvents: typeof PresenceEvents;
71+
FieldEvents: typeof FieldEvents;
72+
PinMode: typeof PinMode;
73+
Comment: typeof Comment;
6274
}

src/common/types/sdk-options.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ export interface SuperVizSdkOptions {
1111
roomId: string;
1212
participant: {
1313
id: string;
14-
name: string;
14+
name?: string;
1515
avatar?: Avatar;
16+
email?: string;
1617
};
1718
group: Group;
1819
customColors?: ColorsVariables;

src/components/base/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Socket from '../../lib/socket';
1+
import * as Socket from '@superviz/socket-client';
22

33
import { ComponentLifeCycleEvent } from '../../common/types/events.types';
44
import { Group } from '../../common/types/participant.types';

src/components/comments/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ApiService from '../../services/api';
1111
import { IOC } from '../../services/io';
1212
import { Presence3DManager } from '../../services/presence-3d-manager';
1313
import { useGlobalStore } from '../../services/stores';
14-
import { CommentsFloatButton } from '../../web-components';
14+
import type { CommentsFloatButton } from '../../web-components/comments/components/float-button';
1515
import { ComponentNames } from '../types';
1616

1717
import { PinAdapter, CommentsSide, Annotation, PinCoordinates } from './types';

0 commit comments

Comments
 (0)