Skip to content

Commit 2b3cec2

Browse files
v4.0.2
1 parent cd889f4 commit 2b3cec2

27 files changed

+1685
-1390
lines changed

.github/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ The Umbraco v16 version of this package is [available via NuGet](https://www.nug
2424
To install the package, you can use either .NET CLI:
2525

2626
```
27-
dotnet add package Umbraco.Community.BlockPreview --version 4.0.1
27+
dotnet add package Umbraco.Community.BlockPreview --version 4.0.2
2828
```
2929

3030
or the NuGet Package Manager:
3131

3232
```
33-
Install-Package Umbraco.Community.BlockPreview -Version 4.0.1
33+
Install-Package Umbraco.Community.BlockPreview -Version 4.0.2
3434
```
3535

3636
## Setup

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.1
1+
4.0.2

src/Umbraco.Cms.16.x/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
Enabled = true,
2020
Stylesheet = "/css/myblockgridlayout.css"
2121
};
22-
options.RichText.Enabled = true;
22+
options.RichText = new()
23+
{
24+
Enabled = true,
25+
Stylesheet = "/css/myblockgridlayout.css"
26+
};
2327
})
2428
.Build();
2529

src/Umbraco.Cms.16.x/uSync/v16/Content/home.config

Lines changed: 38 additions & 30 deletions
Large diffs are not rendered by default.

src/Umbraco.Community.BlockPreview.UI/openapi-ts.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { defineConfig } from '@hey-api/openapi-ts';
2+
23
export default defineConfig({
34
debug: true,
45
input: 'http://localhost:26293/umbraco/swagger/management/swagger.json',

src/Umbraco.Community.BlockPreview.UI/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Umbraco.Community.BlockPreview.UI/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "assets",
33
"private": true,
4-
"version": "4.0.1",
4+
"version": "4.0.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -19,7 +19,7 @@
1919
"devDependencies": {
2020
"@hey-api/client-fetch": "^0.12.0",
2121
"@hey-api/openapi-ts": "^0.71.0",
22-
"@umbraco-cms/backoffice": "16.1.1",
22+
"@umbraco-cms/backoffice": "^16.1.1",
2323
"typescript": "^5.8.3",
2424
"vite": "^6.3.5"
2525
}

src/Umbraco.Community.BlockPreview.UI/public/umbraco-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "../umbraco-package-schema.json",
33
"name": "Umbraco.Community.BlockPreview",
44
"id": "Umbraco.Community.BlockPreview",
5-
"version": "4.0.1",
5+
"version": "4.0.2",
66
"allowTelemetry": true,
77
"extensions": [
88
{

src/Umbraco.Community.BlockPreview.UI/src/api/types.gen.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,7 @@ export type AvailableMemberTypeCompositionResponseModel = {
7676
export type BlockPreviewOptions = {
7777
blockGrid: BlockWithStylesheetSettings;
7878
blockList: BlockWithStylesheetSettings;
79-
richText: BlockTypeSettings;
80-
};
81-
82-
export type BlockTypeSettings = {
83-
enabled: boolean;
84-
viewLocations?: Array<string> | null;
85-
contentTypes?: Array<string> | null;
79+
richText: BlockWithStylesheetSettings;
8680
};
8781

8882
export type BlockWithStylesheetSettings = {

src/Umbraco.Community.BlockPreview.UI/src/blockEditor/block-grid-preview.custom-view.element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ export class BlockGridPreviewCustomView
294294
this._isLoading = false;
295295
}
296296
else if (UmbApiError.isUmbApiError(error)) {
297-
debugger;
298297
this._error = error.message;
299298
this._isLoading = false;
300299
}
@@ -364,6 +363,7 @@ export class BlockGridPreviewCustomView
364363
href=${ifDefined(this._blockContext.workspaceEditContentPath)}
365364
@click=${this._handleClick}
366365
aria-label="Edit block"
366+
class="block-preview-edit"
367367
role="button"
368368
>
369369
${unsafeHTML(this._htmlMarkup)}
@@ -386,15 +386,15 @@ export class BlockGridPreviewCustomView
386386

387387
static styles = [
388388
css`
389-
a {
389+
a.block-preview-edit {
390390
display: block;
391391
color: inherit;
392392
text-decoration: inherit;
393393
border: 1px solid transparent;
394394
border-radius: 2px;
395395
}
396396
397-
a:hover {
397+
a.block-preview-edit:hover {
398398
border-color: var(--uui-color-interactive-emphasis, #3544b1);
399399
}
400400

0 commit comments

Comments
 (0)