Commit ebc15d5a authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Eduardo

Guest: convert to named export

parent ac12bdbb
......@@ -116,7 +116,7 @@ function removeTextSelection() {
* @implements {Annotator}
* @implements {Destroyable}
*/
export default class Guest {
export class Guest {
/**
* @param {HTMLElement} element -
* The root element in which the `Guest` instance should be able to anchor
......
......@@ -11,7 +11,7 @@ registerIcons(iconSet);
import { PortProvider } from '../shared/messaging';
import { getConfig } from './config/index';
import Guest from './guest';
import { Guest } from './guest';
import Notebook from './notebook';
import Sidebar from './sidebar';
import { EventBus } from './util/emitter';
......
......@@ -14,7 +14,7 @@ import { ToolbarController } from './toolbar';
import { createShadowRoot } from './util/shadow-root';
/**
* @typedef {import('./guest').default} Guest
* @typedef {import('./guest').Guest} Guest
* @typedef {import('../types/annotator').AnchorPosition} AnchorPosition
* @typedef {import('../types/annotator').SidebarLayout} SidebarLayout
* @typedef {import('../types/annotator').Destroyable} Destroyable
......
import { delay } from '../../test-util/wait';
import Guest, { $imports } from '../guest';
import { Guest, $imports } from '../guest';
class FakeAdder {
constructor(container, options) {
......
// Tests that the expected parts of the page are highlighted when annotations
// with various combinations of selector are anchored.
import Guest, { $imports as guestImports } from '../../guest';
import { Guest, $imports as guestImports } from '../../guest';
import testPageHTML from './test-page.html';
function quoteSelector(quote) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment