1. 16 May, 2022 6 commits
  2. 12 May, 2022 1 commit
  3. 11 May, 2022 7 commits
  4. 10 May, 2022 5 commits
  5. 09 May, 2022 9 commits
  6. 06 May, 2022 9 commits
  7. 05 May, 2022 3 commits
    • Robert Knight's avatar
      s/Setup/Set up · beb10ec9
      Robert Knight authored
      beb10ec9
    • Robert Knight's avatar
      Remove flag map argument from "flagsChanged" event · f4d0412b
      Robert Knight authored
      This encourages reading of specific flags to be done via `flagEnabled`, which
      checks for usage of unknown flags.
      f4d0412b
    • Robert Knight's avatar
      Support feature flags in guest frames · 928548b0
      Robert Knight authored
      Rewrite the infrastructure that sends feature flags to annotator code, to
      support feature-flagging functionality in guest frames, instead of just the host
      frame.
      
       - Remove `FeaturesService` in the sidebar and move the logic for
         syncing feature flags from the sidebar to other frames into
         `FrameSyncService`.  This is a better place since `FrameSyncService`
         knows when frames connect and thus when to send flags to them. The
         logic for monitoring for flag changes is very simple and doesn't
         needs its own service.
      
       - Within `FrameSyncService`, send "featureFlagsUpdated" notifications to
         both host frames and guest frames.
      
       - Convert the functions and global variables in `annotator/features.js`
         into a `FeatureFlags` class, which encapsulates storage of flags,
         access to them and notifying consumers when flags change.
      
       - Instantiate `FeatureFlags` instances in the host frame and guest
         frame and update the flags stored in them when "featureFlagsUpdated" events
         are received from the sidebar.
      928548b0