Skip to content

Commit

Permalink
TASK: Remove deprecated fusion prototypes
Browse files Browse the repository at this point in the history
The following Fusion prototypes are deprecated for a long time and have been removed. While the documentation has been removed a section "Removed Fusion Prototypes" is added to the reference that mentions the old names and their replacements.

* `Neos.Fusion:Array` has been removed in favor of `Neos.Fusion:Join`
* `Neos.Fusion:RawArray` has been removed in favor of `Neos.Fusion:DataStructure`
* `Neos.Fusion:Collection` has been removed in favor of `Neos.Fusion:Loop`
* `Neos.Fusion:RawCollection` has been removed in favor of `Neos.Fusion:Map`
* `Neos.Fusion:Attributes` as been removed in favor of the property `attributes` in `Neos.Fusion:Tag`

The prototype `Neos.Fusion:UriBuilder` is deprecated aswell but not as long as the others. The fusion file was moved to the deprecated folder and the documentation was moved to the deprecated section.
  • Loading branch information
mficzel committed Sep 20, 2023
1 parent efc4e91 commit 2d4f16b
Show file tree
Hide file tree
Showing 31 changed files with 76 additions and 883 deletions.
14 changes: 7 additions & 7 deletions Neos.Fusion.Afx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,10 @@ Neos.Fusion:Join {

## Examples

### Rendering of Collections with `Neos.Fusion:Collection`
### Rendering of Collections with `Neos.Fusion:Loop`

For rendering of lists or menus a presentational-component usually will recieve arrays of
preprocessed data as prop. To iterate over such an array the `Neos.Fusion:Collection`
preprocessed data as prop. To iterate over such an array the `Neos.Fusion:Loop`
can be used in afx.

```
Expand All @@ -368,11 +368,11 @@ prototype(Vendor.Site:IterationExample) < prototype(Neos.Fusion:Component) {
renderer = afx`
<ul @if.has={props.items ? true : false}>
<Neos.Fusion:Collection collection={props.items} itemName="item">
<li @path='itemRenderer'>
<Neos.Fusion:Loop items={props.items} itemName="item">
<li>
<Vendor.Site:LinkExample {...item} />
</li>
</Neos.Fusion:Collection>
</Neos.Fusion:Loop>
</ul>
`
}
Expand All @@ -389,11 +389,11 @@ prototype(PackageFactory.AtomicFusion.AFX:SliderExample) < prototype(Packagefact
images = ${[]}
renderer = afx`
<div class="slider">
<Neos.Fusion:Collection collection={props.images} itemName="image" iterationName="iteration" @children="itemRenderer">
<Neos.Fusion:Loop items={props.images} itemName="image" iterationName="iteration">
<Neos.Fusion:Augmenter class="slider__slide" data-index={iteration.index}>
<Vendor.Site:ImageExample {...image} />
</Neos.Fusion:Augmenter>
</Neos.Fusion:Collection>
</Neos.Fusion:Loop>
</div>
`
}
Expand Down

This file was deleted.

30 changes: 0 additions & 30 deletions Neos.Fusion/Classes/FusionObjects/ArrayImplementation.php

This file was deleted.

64 changes: 0 additions & 64 deletions Neos.Fusion/Classes/FusionObjects/AttributesImplementation.php

This file was deleted.

43 changes: 0 additions & 43 deletions Neos.Fusion/Classes/FusionObjects/CollectionImplementation.php

This file was deleted.

21 changes: 0 additions & 21 deletions Neos.Fusion/Classes/FusionObjects/RawArrayImplementation.php

This file was deleted.

33 changes: 0 additions & 33 deletions Neos.Fusion/Classes/FusionObjects/RawCollectionImplementation.php

This file was deleted.

5 changes: 0 additions & 5 deletions Neos.Fusion/Resources/Private/Fusion/Deprecated/Array.fusion

This file was deleted.

15 changes: 0 additions & 15 deletions Neos.Fusion/Resources/Private/Fusion/Deprecated/Attributes.fusion

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2d4f16b

Please sign in to comment.