Disable BlockGridEditor (#13229)

* Disable BlockGridEditor

* Fix typeloader test

* Update src/Umbraco.Core/Models/Blocks/BlockGridItem.cs

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

* Apply suggestions from code review

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>

Co-authored-by: Kenn Jacobsen <kja@umbraco.dk>
This commit is contained in:
Mole
2022-10-18 12:53:32 +02:00
committed by GitHub
parent af468b6f28
commit 4e9aa8dac2
11 changed files with 37 additions and 13 deletions

View File

@@ -1,11 +1,13 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System.ComponentModel;
using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Models.Blocks;
[DataContract(Name = "area", Namespace = "")]
[EditorBrowsable(EditorBrowsableState.Never)] // TODO: Remove this for V11/V10.4
public class BlockGridArea : BlockModelCollection<BlockGridItem>
{
/// <summary>

View File

@@ -1,6 +1,7 @@
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System.ComponentModel;
using System.Runtime.Serialization;
using Umbraco.Cms.Core.Models.PublishedContent;
@@ -9,8 +10,9 @@ namespace Umbraco.Cms.Core.Models.Blocks
/// <summary>
/// Represents a layout item for the Block Grid editor.
/// </summary>
/// <seealso cref="Umbraco.Core.Models.Blocks.IBlockReference{Umbraco.Core.Models.PublishedContent.IPublishedElement,Umbraco.Core.Models.PublishedContent.IPublishedElement}" />
/// <seealso cref="IBlockReference{TContent,TSettings}" />
[DataContract(Name = "block", Namespace = "")]
[EditorBrowsable(EditorBrowsableState.Never)] // TODO: Remove this for V11/V10.4
public class BlockGridItem : IBlockReference<IPublishedElement, IPublishedElement>
{
/// <summary>
@@ -116,7 +118,6 @@ namespace Umbraco.Cms.Core.Models.Blocks
/// Represents a layout item with a generic content type for the Block List editor.
/// </summary>
/// <typeparam name="T">The type of the content.</typeparam>
/// <seealso cref="Umbraco.Core.Models.Blocks.IBlockReference{Umbraco.Core.Models.PublishedContent.IPublishedElement}" />
public class BlockGridItem<T> : BlockGridItem
where T : IPublishedElement
{
@@ -149,7 +150,6 @@ namespace Umbraco.Cms.Core.Models.Blocks
/// </summary>
/// <typeparam name="TContent">The type of the content.</typeparam>
/// <typeparam name="TSettings">The type of the settings.</typeparam>
/// <seealso cref="Umbraco.Core.Models.Blocks.IBlockReference{Umbraco.Core.Models.PublishedContent.IPublishedElement}" />
public class BlockGridItem<TContent, TSettings> : BlockGridItem<TContent>
where TContent : IPublishedElement
where TSettings : IPublishedElement

View File

@@ -2,6 +2,7 @@
// See LICENSE for more details.
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.Serialization;
namespace Umbraco.Cms.Core.Models.Blocks;
@@ -11,6 +12,7 @@ namespace Umbraco.Cms.Core.Models.Blocks;
/// </summary>
/// <seealso cref="ReadOnlyCollection{BlockGridItem}" />
[DataContract(Name = "blockgrid", Namespace = "")]
[EditorBrowsable(EditorBrowsableState.Never)] // TODO: Remove this for V11/V10.4
public class BlockGridModel : BlockModelCollection<BlockGridItem>
{
/// <summary>