• Robert Knight's avatar
    Add `PreactContainer` utility and refactor adder/bucket-bar to use it · a13024c2
    Robert Knight authored
    The various top-level Hypothesis UI elements in the annotator have a
    common structure where:
    
     - There is a `<hypothesis-{name}>` container element
    
     - The container has a shadow root with the annotator stylesheet loaded
       into it
    
     - Preact is used to render the contents of the element, into the shadow
       root.
    
     - There is a controller which wraps the container element and has
       methods to read/write the displayed data. When the data is changed,
       the Preact tree is re-rendered.
    
    Add a `PreactContainer` utility which implements common parts of this pattern,
    and refactor two of the top-level UI controls (bucket bar and adder) to use it.
    a13024c2
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
integrations Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.tsx Loading commit data...
annotation-counts.ts Loading commit data...
bucket-bar-client.ts Loading commit data...
bucket-bar.tsx Loading commit data...
events.ts Loading commit data...
features.ts Loading commit data...
frame-observer.ts Loading commit data...
guest.ts Loading commit data...
highlight-clusters.tsx Loading commit data...
highlighter.ts Loading commit data...
hypothesis-injector.ts Loading commit data...
index.ts Loading commit data...
notebook.tsx Loading commit data...
profile.tsx Loading commit data...
range-util.ts Loading commit data...
selection-observer.ts Loading commit data...
sidebar-trigger.ts Loading commit data...
sidebar.tsx Loading commit data...
toolbar.tsx Loading commit data...