• Robert Knight's avatar
    Convert `Excerpt` component to Preact · d1485d0b
    Robert Knight authored
    Convert the `Excerpt` component to Preact. Rather than convert the
    existing implementation verbatim, this is a completely new implementation which
    should be easier to understand and use. Instead of requiring callers to
    provide an input property which represents the displayed data, which triggers a
    re-measurement if it changes, the new implementation observes the DOM
    directly for size changes.
    
    This component renders caller-provided content (ie. it accepts a `children`
    prop), which is not supported by the Preact <-> Angular bridge. Therefore it was
    also necessary to create components (`AnnotationBody`, `AnnotationQuote`) that
    encapsulate uses of `Excerpt` inside the `<annotation>` component.
    
     - Add `observe-element-size` utility module to watch for changes in
       the size of a DOM node using APIs available in the current browser
    
     - Add new `Excerpt` implementation and remove the old one
    
     - Remove `excerpt-overflow-monitor` utility that is not used by the new
       implementation
    
     - Add `AnnotationBody` component to render an annotation's markup body
       inside a (new) excerpt and convert the Angular template for
       `<annotation>` (annotation.html) to use it.
    
     - Add `AnnotationQuote` component to render an annotation's quote
       inside an excerpt and convert `annotation.html` to use it
    d1485d0b
Name
Last commit
Last update
..
hooks Loading commit data...
test Loading commit data...
annotation-action-button.js Loading commit data...
annotation-body.js Loading commit data...
annotation-document-info.js Loading commit data...
annotation-header.js Loading commit data...
annotation-publish-control.js Loading commit data...
annotation-quote.js Loading commit data...
annotation-share-dialog.js Loading commit data...
annotation-share-info.js Loading commit data...
annotation-thread.js Loading commit data...
annotation-user.js Loading commit data...
annotation-viewer-content.js Loading commit data...
annotation.js Loading commit data...
excerpt.js Loading commit data...
focused-mode-header.js Loading commit data...
group-list-item.js Loading commit data...
group-list-section.js Loading commit data...
group-list.js Loading commit data...
help-panel.js Loading commit data...
hypothesis-app.js Loading commit data...
logged-out-message.js Loading commit data...
markdown-editor.js Loading commit data...
markdown-view.js Loading commit data...
menu-item.js Loading commit data...
menu-section.js Loading commit data...
menu.js Loading commit data...
moderation-banner.js Loading commit data...
new-note-btn.js Loading commit data...
search-input.js Loading commit data...
search-status-bar.js Loading commit data...
selection-tabs.js Loading commit data...
share-annotations-panel.js Loading commit data...
sidebar-content-error.js Loading commit data...
sidebar-content.js Loading commit data...
sidebar-panel.js Loading commit data...
slider.js Loading commit data...
sort-menu.js Loading commit data...
spinner.js Loading commit data...
stream-content.js Loading commit data...
stream-search-input.js Loading commit data...
svg-icon.js Loading commit data...
tag-editor.js Loading commit data...
thread-list.js Loading commit data...
timestamp.js Loading commit data...
top-bar.js Loading commit data...
tutorial.js Loading commit data...
user-menu.js Loading commit data...
version-info.js Loading commit data...