generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MWPW-146703 [MILO][MEP][GNAV2.0] Apply MEP actions to the contents of…
… the gnav file (#2252) * Merging inline-block to milo branch for further updates (#2170) * MWPW-135821 introduce custom action - and inaugurating first custom action for replacing cards in collection * MWPW-135821 use prefix in selector * MWPW-135821 adding preview data --------- Co-authored-by: Nicolas Peltier <npeltier@adobe.com> Co-authored-by: Nicolas Peltier <1032754+npeltier@users.noreply.github.com> * initial commit with TODO * registerCustomAction updated * fragment, highlight fragment and merch-card update * chain fragment support added * inBlock fragments with URL and path as keys * css selectors starting to work * Add forceInline to handleCommands * stash * unit tests mostly done * fix mocking issue * add martech-metadata to unit test mock and check for replace * change name of registerCustomAction to registerInBlockActions * indent issue * remove mep useBlockCode Example * merch-card-collection-fix * update merch-card-collection unit test * ignore lines that cannot be reached by unit tests * rename CUSTOM_SELECTOR_PREFIX * Update libs/features/personalization/personalization.js Co-authored-by: Chris Peyer <chrischrischris@users.noreply.github.com> * Update libs/features/personalization/personalization.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update libs/features/personalization/personalization.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * call addHash once, not twice * Update libs/features/personalization/personalization.js Co-authored-by: Chris Peyer <chrischrischris@users.noreply.github.com> --------- Co-authored-by: Nicolas Peltier <npeltier@adobe.com> Co-authored-by: Nicolas Peltier <1032754+npeltier@users.noreply.github.com> Co-authored-by: markpadbe <markp@adobe.com> Co-authored-by: Chris Peyer <chrischrischris@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Okan Sahin <39759830+mokimo@users.noreply.github.com>
- Loading branch information
1 parent
de12698
commit 2caf32a
Showing
18 changed files
with
317 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export default { | ||
inBlock: { | ||
'global-navigation': { | ||
commands: [ | ||
{ | ||
action: 'replace', | ||
target: '/test/blocks/global-navigation/mocks/mep-large-menu-table', | ||
manifestId: 'manifest.json', | ||
selector: '.large-menu', | ||
}, | ||
], | ||
fragments: { | ||
'/old/navigation': { | ||
action: 'replace', | ||
target: '/test/blocks/global-navigation/mocks/mep-global-navigation', | ||
manifestId: 'manifest.json', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
41 changes: 41 additions & 0 deletions
41
test/blocks/global-navigation/mocks/mep-global-navigation.plain.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
<div> | ||
<div id="only-in-new-menu" class="gnav-brand logo"> | ||
<div> | ||
<div><a href="https://www.adobe.com/">Adobe</a></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<div class="large-menu section"> | ||
<div> | ||
<div> | ||
<h2 id="creative-cloud"><a href="/cc-shared/gnav/section-menu-creativecloud">Creative Cloud</a></h2> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<div class="large-menu section"> | ||
<div> | ||
<div> | ||
<h2 id="pdf--e-signatures"><a href="/cc-shared/gnav/section-menu-acrobat">PDF & E-signatures</a></h2> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<div class="profile"></div> | ||
</div> | ||
<div> | ||
<div class="martech-metadata"> | ||
<div> | ||
<div> | ||
buy-now | ||
</div> | ||
<div> | ||
Buy Now | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div> | ||
<div class="large-menu section"> | ||
<div> | ||
<div> | ||
<h2 id="mep-large-menu-table-title"><a href="/cc-shared/gnav/section-menu-creativecloud">MEP Large Menu Table Title</a></h2> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.