fix: sentry-6451187280 (#11533)

Closes: BS-3075
This commit is contained in:
Saul-Mirone
2025-04-08 06:06:16 +00:00
parent 558e84138c
commit a28b8b1b11

View File

@@ -53,7 +53,7 @@ export class BlockComponent<
options?: { global?: boolean; flavour?: boolean } options?: { global?: boolean; flavour?: boolean }
) => { ) => {
this._disposables.add( this._disposables.add(
this.host.event.add(name, handler, { this.std.event.add(name, handler, {
flavour: options?.global flavour: options?.global
? undefined ? undefined
: options?.flavour : options?.flavour
@@ -135,12 +135,12 @@ export class BlockComponent<
if (!rootId) { if (!rootId) {
return null; return null;
} }
const rootComponent = this.host.view.getBlock(rootId); const rootComponent = this.std.view.getBlock(rootId);
return rootComponent ?? null; return rootComponent ?? null;
} }
get selection() { get selection() {
return this.host.selection; return this.std.selection;
} }
get service(): Service { get service(): Service {
@@ -162,7 +162,7 @@ export class BlockComponent<
return Object.keys(this.widgets).reduce( return Object.keys(this.widgets).reduce(
(mapping, key) => ({ (mapping, key) => ({
...mapping, ...mapping,
[key]: this.host.view.getWidget(key, this.blockId), [key]: this.std.view.getWidget(key, this.blockId),
}), }),
{} {}
); );
@@ -197,7 +197,7 @@ export class BlockComponent<
keymap: Record<string, UIEventHandler>, keymap: Record<string, UIEventHandler>,
options?: { global?: boolean; flavour?: boolean } options?: { global?: boolean; flavour?: boolean }
) { ) {
const dispose = this.host.event.bindHotkey(keymap, { const dispose = this.std.event.bindHotkey(keymap, {
flavour: options?.global flavour: options?.global
? undefined ? undefined
: options?.flavour : options?.flavour