12 Commits

4 changed files with 43 additions and 6 deletions

View File

@ -1,5 +1,40 @@
# Changelog # Changelog
## 2024-06-28 - 1.1.2 - fix(elements)
Fix blur effect in UptimelinkWebwidget component
- Changed blur effect from true to false in the DeesWindowLayer setup
## 2024-06-27 - 1.1.1 - fix(build)
Fix build script to use correct tsbuild command
- Corrected the build script in package.json to use 'tsbuild tsfolders --allowimplicitany && tsbundle element --production' instead of 'tsbuild element --allowimplicitany && tsbundle element --production'.
## 2024-06-27 - 1.1.0 - feat(elements)
Add performance improvements to uptimelink-webwidget
- Added 'will-change: transform' to improve performance of the transform property
- Increased transition speed for element opacity from 0.2s to 0.1s for faster visual feedback
- Added scale transformation effect to the focused state of the widget
## 2024-06-27 - 1.0.82 - fix(core)
No code changes detected. Preparing for version increment based on package state.
## 2024-06-26 - 1.0.81 - fix(core)
Updated dependencies and improved code documentation.
- Updated internal dependencies to newer versions.
- Improved code documentation within TypeScript files.
- Adjusted scripts in package.json for better build performance.
## 2024-06-26 - 1.0.80 - fix(documentation)
Update package description and README for clarity
- Updated the README to provide better installation and usage instructions.
- Ensured that all sections contain relevant TypeScript and HTML examples.
- Added styling and advanced interaction examples to README.
## 2024-06-26 - 1.0.79 - fix(core) ## 2024-06-26 - 1.0.79 - fix(core)
Fixed various package metadata issues and improved component interactions Fixed various package metadata issues and improved component interactions

View File

@ -1,6 +1,6 @@
{ {
"name": "@uptime.link/webwidget", "name": "@uptime.link/webwidget",
"version": "1.0.79", "version": "1.1.2",
"private": false, "private": false,
"description": "The web widget for public use of uptimelink, allowing users to monitor uptime status through a user-friendly interface.", "description": "The web widget for public use of uptimelink, allowing users to monitor uptime status through a user-friendly interface.",
"main": "dist_ts_web/index.js", "main": "dist_ts_web/index.js",
@ -8,7 +8,7 @@
"type": "module", "type": "module",
"scripts": { "scripts": {
"test": "npm run build", "test": "npm run build",
"build": "tsbuild element --allowimplicitany && tsbundle element --production", "build": "tsbuild tsfolders --allowimplicitany && tsbundle element --production",
"watch": "tswatch element" "watch": "tswatch element"
}, },
"author": "Lossless GmbH", "author": "Lossless GmbH",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@uptime.link/webwidget', name: '@uptime.link/webwidget',
version: '1.0.79', version: '1.1.2',
description: 'The web widget for public use of uptimelink, allowing users to monitor uptime status through a user-friendly interface.' description: 'The web widget for public use of uptimelink, allowing users to monitor uptime status through a user-friendly interface.'
} }

View File

@ -67,6 +67,7 @@ export class UptimelinkWebwidget extends DeesElement {
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
overflow: hidden; overflow: hidden;
will-change: transform;
} }
.firstLine { .firstLine {
@ -77,6 +78,7 @@ export class UptimelinkWebwidget extends DeesElement {
.mainbox.focused { .mainbox.focused {
width: 182px; width: 182px;
height: 117px; height: 117px;
transform: scale(1.1, 1.1);
} }
.statusindicator { .statusindicator {
@ -91,7 +93,7 @@ export class UptimelinkWebwidget extends DeesElement {
.expanded { .expanded {
opacity: 0; opacity: 0;
transition: opacity 0.2s; transition: opacity 0.1s;
} }
.miniHeading { .miniHeading {
@ -191,7 +193,7 @@ export class UptimelinkWebwidget extends DeesElement {
this.isElevated = true; this.isElevated = true;
this.isFocused = true; this.isFocused = true;
this.windowLayer = await DeesWindowLayer.createAndShow({ this.windowLayer = await DeesWindowLayer.createAndShow({
blur: true, blur: false,
}); });
await domtools.convenience.smartdelay.delayFor(200); await domtools.convenience.smartdelay.delayFor(200);
if (!this.isFocused) { if (!this.isFocused) {
@ -199,7 +201,7 @@ export class UptimelinkWebwidget extends DeesElement {
} }
this.showExpanded = true; this.showExpanded = true;
await this.performUpdate(); await this.performUpdate();
await (await this.domtoolsPromise).convenience.smartdelay.delayFor(50); await domtools.convenience.smartdelay.delayFor(0);
const expandedDiv = this.shadowRoot.querySelector('.expanded') as HTMLElement; const expandedDiv = this.shadowRoot.querySelector('.expanded') as HTMLElement;
expandedDiv.style.opacity = '1'; expandedDiv.style.opacity = '1';
}; };