[MGNLFE-42] Add inEditorPreview() to template-annotations library Created: 27/Apr/20  Updated: 18/May/20  Resolved: 13/May/20

Status: Closed
Project: Magnolia Frontend Helpers
Component/s: None
Affects Version/s: 1.0.0
Fix Version/s: 1.0.2

Type: Improvement Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Canh Nguyen
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5d
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes MGNLFE-48 DOC: inEditorPreview() added to templ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Documentation update required:
Yes
Date of First Response:
Epic Link: SPA Editor
Sprint: HL & LD 2
Story Points: 1

 Description   

Angular has a method to determine whether app is running in context of the Preview, but React does not.

Move the inEditorPreview() function to template-annotations so both libraries can use it.


Generated at Mon Feb 12 05:43:40 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.