fix(build): migrate smart config setup and align TypeScript compatibility updates
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@social.io/catalog',
|
||||
version: '1.7.0',
|
||||
version: '1.7.1',
|
||||
description: 'catalog for social.io'
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ export class SioCombox extends DeesElement {
|
||||
}
|
||||
|
||||
@property({ type: Object })
|
||||
public accessor referenceObject: HTMLElement;
|
||||
public accessor referenceObject: HTMLElement = null as any;
|
||||
|
||||
@state()
|
||||
private accessor selectedConversationId: string | null = null;
|
||||
|
||||
@@ -57,9 +57,9 @@ export class SioDropdownMenu extends DeesElement {
|
||||
@state()
|
||||
private accessor isOpen: boolean = false;
|
||||
|
||||
private documentClickHandler: (e: MouseEvent) => void;
|
||||
private scrollHandler: () => void;
|
||||
private resizeHandler: () => void;
|
||||
private documentClickHandler!: (e: MouseEvent) => void;
|
||||
private scrollHandler!: () => void;
|
||||
private resizeHandler!: () => void;
|
||||
|
||||
public static styles = [
|
||||
cssManager.defaultStyles,
|
||||
|
||||
@@ -29,7 +29,7 @@ export class SioIcon extends DeesElement {
|
||||
`;
|
||||
|
||||
@property({ type: String })
|
||||
public accessor icon: string;
|
||||
public accessor icon: string = '';
|
||||
|
||||
@property({ type: Number })
|
||||
public accessor size: number = 24;
|
||||
@@ -140,7 +140,7 @@ export class SioIcon extends DeesElement {
|
||||
|
||||
// Limit cache size
|
||||
if (SioIcon.iconCache.size > SioIcon.MAX_CACHE_SIZE) {
|
||||
const firstKey = SioIcon.iconCache.keys().next().value;
|
||||
const firstKey = SioIcon.iconCache.keys().next().value!;
|
||||
SioIcon.iconCache.delete(firstKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -523,7 +523,7 @@ export class SioPdfViewer extends DeesElement {
|
||||
this.renderTask = page.render(renderContext);
|
||||
await this.renderTask.promise;
|
||||
} catch (error) {
|
||||
if (error.name !== 'RenderingCancelledException') {
|
||||
if ((error as any).name !== 'RenderingCancelledException') {
|
||||
console.error('Error rendering page:', error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,11 +177,11 @@ export class SioRecorder extends DeesElement {
|
||||
public async fixPosition() {
|
||||
await this.domtoolsPromise;
|
||||
await this.domtools.convenience.smartdelay.delayFor(0);
|
||||
const playbackDiv = this.shadowRoot.querySelector('#playback') as HTMLElement;
|
||||
const replayerWrapper = this.shadowRoot.querySelector('.replayer-wrapper') as HTMLElement;
|
||||
const replayerMouse = this.shadowRoot.querySelector('.replayer-mouse') as HTMLElement;
|
||||
const replayerMouseTail = this.shadowRoot.querySelector('.replayer-mouse-tail') as HTMLElement;
|
||||
const iframe = this.shadowRoot.querySelector('iframe');
|
||||
const playbackDiv = this.shadowRoot!.querySelector('#playback') as HTMLElement;
|
||||
const replayerWrapper = this.shadowRoot!.querySelector('.replayer-wrapper') as HTMLElement;
|
||||
const replayerMouse = this.shadowRoot!.querySelector('.replayer-mouse') as HTMLElement;
|
||||
const replayerMouseTail = this.shadowRoot!.querySelector('.replayer-mouse-tail') as HTMLElement;
|
||||
const iframe = this.shadowRoot!.querySelector('iframe')!;
|
||||
replayerWrapper.style.position = 'absolute';
|
||||
replayerWrapper.style.top = '0px';
|
||||
replayerWrapper.style.left = '0px';
|
||||
|
||||
Reference in New Issue
Block a user