Skip to content

Commit fb74b02

Browse files
committed
chore: fix webui build
1 parent 8e7af39 commit fb74b02

File tree

7 files changed

+41
-22
lines changed

7 files changed

+41
-22
lines changed

packages/webui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@sofie-automation/corelib": "1.52.0-in-development",
4646
"@sofie-automation/meteor-lib": "1.52.0-in-development",
4747
"@sofie-automation/shared-lib": "1.52.0-in-development",
48-
"@sofie-automation/sorensen": "^1.4.3",
48+
"@sofie-automation/sorensen": "^1.5.8",
4949
"@types/sinon": "^10.0.20",
5050
"classnames": "^2.5.1",
5151
"cubic-spline": "^3.0.3",
@@ -102,7 +102,7 @@
102102
"babel-jest": "^29.7.0",
103103
"sass": "^1.83.4",
104104
"sinon": "^14.0.2",
105-
"typescript": "^5.2.2",
105+
"typescript": "~5.5",
106106
"vite": "^6.0.9",
107107
"vite-plugin-node-polyfills": "^0.23.0",
108108
"vite-tsconfig-paths": "^5.1.4",

packages/webui/src/client/lib/triggers/codesToKeyLabels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function toTitleCase(input: string): string {
88
return str.join(' ')
99
}
1010

11-
export function codesToKeyLabels(keys: string, sorensen: Sorensen): string {
11+
export function codesToKeyLabels(keys: string, sorensen: typeof Sorensen): string {
1212
return keys
1313
.split(/\s+/gi)
1414
.map((note) =>
@@ -20,7 +20,7 @@ export function codesToKeyLabels(keys: string, sorensen: Sorensen): string {
2020
.join(' ')
2121
}
2222

23-
export function keyLabelsToCodes(labels: string, sorensen: Sorensen): string {
23+
export function keyLabelsToCodes(labels: string, sorensen: typeof Sorensen): string {
2424
return labels
2525
.split(/\s+/gi)
2626
.map((note) => {

packages/webui/src/client/lib/ui/containers/modals/Modal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ export type SomeEvent = Event | React.SyntheticEvent<object>
1616

1717
export class Modal extends React.Component<React.PropsWithChildren<IModalAttributes>> {
1818
boundKeys: Array<string> = []
19-
sorensen: Sorensen | undefined
19+
sorensen: typeof Sorensen | undefined
2020

2121
constructor(props: IModalAttributes) {
2222
super(props)
2323
}
2424

2525
componentDidMount(): void {
26-
this.sorensen = this.context as Sorensen
26+
this.sorensen = this.context as typeof Sorensen
2727
this.bindKeys()
2828
}
2929

packages/webui/src/client/lib/viewPort.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,7 @@ export function lockPointer(): void {
317317
if (pointerLockTurnstile === 0) {
318318
// pointerLockTurnstile === 0 means that no requests for locking the pointer have been made
319319
// since we last unlocked it
320-
document.body.requestPointerLock().catch(() => {
321-
console.warn('Failed to get pointer lock')
322-
})
320+
document.body.requestPointerLock()
323321
// attach the event handlers only once. Once they are attached, we will track the
324322
// locked state and act according to the turnstile
325323
if (!pointerHandlerAttached) {

packages/webui/src/client/ui/SegmentTimeline/SegmentTimelineZoomControls.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ interface IStateHeader {
2424
width: number
2525
}
2626

27-
export const SegmentTimelineZoomControls = class SegmentTimelineZoomControls extends React.Component<
28-
IPropsHeader,
29-
IStateHeader
30-
> {
27+
export class SegmentTimelineZoomControls extends React.Component<IPropsHeader, IStateHeader> {
3128
parentElement: HTMLDivElement | null = null
3229
selAreaElement: HTMLDivElement | null = null
3330
parentOffsetX = 0

packages/webui/src/client/ui/Shelf/HotkeyHelpPanel.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ interface IProps {
2424

2525
const _isMacLike = navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i) ? true : false
2626

27-
function mountedTriggerToHotkeyList(hotkeys: MongoCursor<MountedTrigger>, sorensen: Sorensen | null, t: TFunction) {
27+
function mountedTriggerToHotkeyList(
28+
hotkeys: MongoCursor<MountedTrigger>,
29+
sorensen: typeof Sorensen | null,
30+
t: TFunction
31+
) {
2832
return hotkeys.map((mountedTrigger) => ({
2933
key: (sorensen ? mountedTrigger.keys.map((codes) => codesToKeyLabels(codes, sorensen)) : mountedTrigger.keys).join(
3034
', '

packages/yarn.lock

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6056,10 +6056,10 @@ __metadata:
60566056
languageName: unknown
60576057
linkType: soft
60586058

6059-
"@sofie-automation/sorensen@npm:^1.4.3":
6060-
version: 1.4.3
6061-
resolution: "@sofie-automation/sorensen@npm:1.4.3"
6062-
checksum: 10c0/d9b9d739acd009a3ca1b3025d10cca7e152ae244795faf7019e6616ad6f442aff2d8b58ca48487bd9d9d170703458fc46e370523607cd1ce9d73c0af6e428c36
6059+
"@sofie-automation/sorensen@npm:^1.5.8":
6060+
version: 1.5.8
6061+
resolution: "@sofie-automation/sorensen@npm:1.5.8"
6062+
checksum: 10c0/cc0bcf1c82f58e59f8c8325bfc9653f57ecd84327f68994c4449c546160492316725fb4040a2fbb9c6e56bbb6598c4fa2e05b69fc413444bd318699f4f179f85
60636063
languageName: node
60646064
linkType: hard
60656065

@@ -6080,7 +6080,7 @@ __metadata:
60806080
"@sofie-automation/corelib": "npm:1.52.0-in-development"
60816081
"@sofie-automation/meteor-lib": "npm:1.52.0-in-development"
60826082
"@sofie-automation/shared-lib": "npm:1.52.0-in-development"
6083-
"@sofie-automation/sorensen": "npm:^1.4.3"
6083+
"@sofie-automation/sorensen": "npm:^1.5.8"
60846084
"@types/classnames": "npm:^2.3.4"
60856085
"@types/deep-extend": "npm:^0.6.2"
60866086
"@types/react": "npm:^18.3.18"
@@ -6129,7 +6129,7 @@ __metadata:
61296129
sha.js: "npm:^2.4.11"
61306130
sinon: "npm:^14.0.2"
61316131
type-fest: "npm:^4.32.0"
6132-
typescript: "npm:^5.2.2"
6132+
typescript: "npm:~5.5"
61336133
underscore: "npm:^1.13.7"
61346134
velocity-animate: "npm:^1.5.2"
61356135
velocity-react: "npm:^1.4.3"
@@ -28137,7 +28137,7 @@ asn1@evs-broadcast/node-asn1:
2813728137
languageName: node
2813828138
linkType: hard
2813928139

28140-
"typescript@npm:>=3 < 6, typescript@npm:^5.2.2":
28140+
"typescript@npm:>=3 < 6":
2814128141
version: 5.7.3
2814228142
resolution: "typescript@npm:5.7.3"
2814328143
bin:
@@ -28167,7 +28167,17 @@ asn1@evs-broadcast/node-asn1:
2816728167
languageName: node
2816828168
linkType: hard
2816928169

28170-
"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>":
28170+
"typescript@npm:~5.5":
28171+
version: 5.5.4
28172+
resolution: "typescript@npm:5.5.4"
28173+
bin:
28174+
tsc: bin/tsc
28175+
tsserver: bin/tsserver
28176+
checksum: 10c0/422be60f89e661eab29ac488c974b6cc0a660fb2228003b297c3d10c32c90f3bcffc1009b43876a082515a3c376b1eefcce823d6e78982e6878408b9a923199c
28177+
languageName: node
28178+
linkType: hard
28179+
28180+
"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin<compat/typescript>":
2817128181
version: 5.7.3
2817228182
resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5"
2817328183
bin:
@@ -28197,6 +28207,16 @@ asn1@evs-broadcast/node-asn1:
2819728207
languageName: node
2819828208
linkType: hard
2819928209

28210+
"typescript@patch:typescript@npm%3A~5.5#optional!builtin<compat/typescript>":
28211+
version: 5.5.4
28212+
resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin<compat/typescript>::version=5.5.4&hash=379a07"
28213+
bin:
28214+
tsc: bin/tsc
28215+
tsserver: bin/tsserver
28216+
checksum: 10c0/73409d7b9196a5a1217b3aaad929bf76294d3ce7d6e9766dd880ece296ee91cf7d7db6b16c6c6c630ee5096eccde726c0ef17c7dfa52b01a243e57ae1f09ef07
28217+
languageName: node
28218+
linkType: hard
28219+
2820028220
"uc.micro@npm:^1.0.1, uc.micro@npm:^1.0.5":
2820128221
version: 1.0.6
2820228222
resolution: "uc.micro@npm:1.0.6"

0 commit comments

Comments
 (0)