Skip to content

Commit 383260b

Browse files
Merge pull request #147 from stavroskasidis/release/1.17
Release/1.17
2 parents 3508fde + dc0c67d commit 383260b

File tree

8 files changed

+23
-19
lines changed

8 files changed

+23
-19
lines changed

BlazorContextMenu/BlazorContextMenu.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<Copyright />
1717
<PackageTags>blazor blazor-component blazor-context-menu context-menu contextmenu menu blazor-menu blazorcontextmenu razor razor-components razorcomponents</PackageTags>
1818
<VersionSuffix>$(VersionSuffix)</VersionSuffix>
19-
<Version>1.16.0</Version>
19+
<Version>1.17.0</Version>
2020
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
2121
<Product>Blazor.ContextMenu</Product>
2222
</PropertyGroup>
@@ -45,7 +45,7 @@
4545
</ItemGroup>
4646

4747
<ItemGroup>
48-
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.0" />
49-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
48+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.25" />
49+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.25" />
5050
</ItemGroup>
5151
</Project>

BlazorContextMenu/gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ gulp.task("clean:css", function (cb) {
1414
});
1515

1616
gulp.task("min:css", function () {
17-
return gulp.src(["wwwroot/**/*.css", "!wwwroot/**/*.css.js"], { base: "." })
17+
return gulp.src(["wwwroot/**/*.css", "!wwwroot/**/*.min.css"], { base: "." })
1818
.pipe(cssmin())
1919
.pipe(rename({
2020
suffix: ".min"

BlazorContextMenu/wwwroot/blazorContextMenu.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ var blazorContextMenu = function (blazorContextMenu) {
7575
}
7676
}
7777

78-
const sleepUntil = async (f, timeoutMs) => {
79-
return new Promise((resolve, reject) => {
80-
const timeWas = new Date();
81-
const wait = setInterval(function () {
78+
var sleepUntil = function (f, timeoutMs) {
79+
return new Promise(function (resolve, reject){
80+
var timeWas = new Date();
81+
var wait = setInterval(function () {
8282
if (f()) {
8383
clearInterval(wait);
8484
resolve();
@@ -135,10 +135,9 @@ var blazorContextMenu = function (blazorContextMenu) {
135135
};
136136

137137
var showMenuCommon = function (menu, menuId, x, y, target, triggerDotnetRef) {
138-
return blazorContextMenu.Show(menuId, x, y, target, triggerDotnetRef).then(async function () {
139-
140-
await sleepUntil(() => menu.clientWidth > 0, 1000); //Wait until the menu has spawned so clientWidth and offsetLeft report correctly
141-
138+
return blazorContextMenu.Show(menuId, x, y, target, triggerDotnetRef).then(function () {
139+
return sleepUntil(function () { return menu.clientWidth > 0 }, 1000); //Wait until the menu has spawned so clientWidth and offsetLeft report correctly
140+
}).then(function () {
142141
//check for overflow
143142
var leftOverflownPixels = menu.offsetLeft + menu.clientWidth - window.innerWidth;
144143
if (leftOverflownPixels > 0) {

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,12 @@ public class Startup
244244
</details>
245245
246246
## Release Notes
247-
<details open="open"><summary>1.16</summary>
247+
<details open="open"><summary>1.17</summary>
248+
249+
>- Upgraded asp .net packages dependencies to 6.0.25 due to security concerns.
250+
</details>
251+
252+
<details><summary>1.16</summary>
248253

249254
>- Fixes issue with opening a contextual menu on the far right side of the window for the first time not properly offsetting. Contributed by [matt-virtualitics](https://github.com/matt-virtualitics).
250255
</details>

TestApps/BlazorContextMenu.TestAppsCommon/BlazorContextMenu.TestAppsCommon.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.25" />
99
</ItemGroup>
1010

1111
<ItemGroup>

TestApps/BlazorTestApp/BlazorContextMenu.BlazorTestApp.Client/BlazorContextMenu.BlazorTestApp.Client.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
9-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" PrivateAssets="all" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.25" />
9+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.25" PrivateAssets="all" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

TestApps/BlazorTestApp/BlazorContextMenu.BlazorTestApp.Server/BlazorContextMenu.BlazorTestApp.Server.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="6.0.0" />
9-
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0" />
8+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="6.0.25" />
9+
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.25" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "6.0.301"
3+
"version": "6.0.417"
44
}
55
}

0 commit comments

Comments
 (0)