Skip to content

Commit 8fe25fd

Browse files
committed
chore: fix webui build
1 parent 4eb4811 commit 8fe25fd

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
"@testing-library/user-event": "^14.6.0",
5050
"@types/sinon": "^10.0.20",
5151
"classnames": "^2.5.1",
@@ -106,7 +106,7 @@
106106
"babel-jest": "^29.7.0",
107107
"sass": "^1.83.4",
108108
"sinon": "^14.0.2",
109-
"typescript": "^5.2.2",
109+
"typescript": "~5.5",
110110
"vite": "^6.0.9",
111111
"vite-plugin-node-polyfills": "^0.23.0",
112112
"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
@@ -6063,10 +6063,10 @@ __metadata:
60636063
languageName: unknown
60646064
linkType: soft
60656065

6066-
"@sofie-automation/sorensen@npm:^1.4.3":
6067-
version: 1.4.3
6068-
resolution: "@sofie-automation/sorensen@npm:1.4.3"
6069-
checksum: 10c0/d9b9d739acd009a3ca1b3025d10cca7e152ae244795faf7019e6616ad6f442aff2d8b58ca48487bd9d9d170703458fc46e370523607cd1ce9d73c0af6e428c36
6066+
"@sofie-automation/sorensen@npm:^1.5.8":
6067+
version: 1.5.8
6068+
resolution: "@sofie-automation/sorensen@npm:1.5.8"
6069+
checksum: 10c0/cc0bcf1c82f58e59f8c8325bfc9653f57ecd84327f68994c4449c546160492316725fb4040a2fbb9c6e56bbb6598c4fa2e05b69fc413444bd318699f4f179f85
60706070
languageName: node
60716071
linkType: hard
60726072

@@ -6087,7 +6087,7 @@ __metadata:
60876087
"@sofie-automation/corelib": "npm:1.52.0-in-development"
60886088
"@sofie-automation/meteor-lib": "npm:1.52.0-in-development"
60896089
"@sofie-automation/shared-lib": "npm:1.52.0-in-development"
6090-
"@sofie-automation/sorensen": "npm:^1.4.3"
6090+
"@sofie-automation/sorensen": "npm:^1.5.8"
60916091
"@testing-library/dom": "npm:^10.4.0"
60926092
"@testing-library/jest-dom": "npm:^6.6.3"
60936093
"@testing-library/react": "npm:^16.2.0"
@@ -6140,7 +6140,7 @@ __metadata:
61406140
sha.js: "npm:^2.4.11"
61416141
sinon: "npm:^14.0.2"
61426142
type-fest: "npm:^4.32.0"
6143-
typescript: "npm:^5.2.2"
6143+
typescript: "npm:~5.5"
61446144
underscore: "npm:^1.13.7"
61456145
velocity-animate: "npm:^1.5.2"
61466146
velocity-react: "npm:^1.4.3"
@@ -28289,7 +28289,7 @@ asn1@evs-broadcast/node-asn1:
2828928289
languageName: node
2829028290
linkType: hard
2829128291

28292-
"typescript@npm:>=3 < 6, typescript@npm:^5.2.2":
28292+
"typescript@npm:>=3 < 6":
2829328293
version: 5.7.3
2829428294
resolution: "typescript@npm:5.7.3"
2829528295
bin:
@@ -28319,7 +28319,17 @@ asn1@evs-broadcast/node-asn1:
2831928319
languageName: node
2832028320
linkType: hard
2832128321

28322-
"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin<compat/typescript>, typescript@patch:typescript@npm%3A^5.2.2#optional!builtin<compat/typescript>":
28322+
"typescript@npm:~5.5":
28323+
version: 5.5.4
28324+
resolution: "typescript@npm:5.5.4"
28325+
bin:
28326+
tsc: bin/tsc
28327+
tsserver: bin/tsserver
28328+
checksum: 10c0/422be60f89e661eab29ac488c974b6cc0a660fb2228003b297c3d10c32c90f3bcffc1009b43876a082515a3c376b1eefcce823d6e78982e6878408b9a923199c
28329+
languageName: node
28330+
linkType: hard
28331+
28332+
"typescript@patch:typescript@npm%3A>=3 < 6#optional!builtin<compat/typescript>":
2832328333
version: 5.7.3
2832428334
resolution: "typescript@patch:typescript@npm%3A5.7.3#optional!builtin<compat/typescript>::version=5.7.3&hash=5786d5"
2832528335
bin:
@@ -28349,6 +28359,16 @@ asn1@evs-broadcast/node-asn1:
2834928359
languageName: node
2835028360
linkType: hard
2835128361

28362+
"typescript@patch:typescript@npm%3A~5.5#optional!builtin<compat/typescript>":
28363+
version: 5.5.4
28364+
resolution: "typescript@patch:typescript@npm%3A5.5.4#optional!builtin<compat/typescript>::version=5.5.4&hash=379a07"
28365+
bin:
28366+
tsc: bin/tsc
28367+
tsserver: bin/tsserver
28368+
checksum: 10c0/73409d7b9196a5a1217b3aaad929bf76294d3ce7d6e9766dd880ece296ee91cf7d7db6b16c6c6c630ee5096eccde726c0ef17c7dfa52b01a243e57ae1f09ef07
28369+
languageName: node
28370+
linkType: hard
28371+
2835228372
"uc.micro@npm:^1.0.1, uc.micro@npm:^1.0.5":
2835328373
version: 1.0.6
2835428374
resolution: "uc.micro@npm:1.0.6"

0 commit comments

Comments
 (0)