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() { ...@@ -116,7 +116,7 @@ function removeTextSelection() {
* @implements {Annotator} * @implements {Annotator}
* @implements {Destroyable} * @implements {Destroyable}
*/ */
export default class Guest { export class Guest {
/** /**
* @param {HTMLElement} element - * @param {HTMLElement} element -
* The root element in which the `Guest` instance should be able to anchor * The root element in which the `Guest` instance should be able to anchor
......
...@@ -11,7 +11,7 @@ registerIcons(iconSet); ...@@ -11,7 +11,7 @@ registerIcons(iconSet);
import { PortProvider } from '../shared/messaging'; import { PortProvider } from '../shared/messaging';
import { getConfig } from './config/index'; import { getConfig } from './config/index';
import Guest from './guest'; import { Guest } from './guest';
import Notebook from './notebook'; import Notebook from './notebook';
import Sidebar from './sidebar'; import Sidebar from './sidebar';
import { EventBus } from './util/emitter'; import { EventBus } from './util/emitter';
......
...@@ -14,7 +14,7 @@ import { ToolbarController } from './toolbar'; ...@@ -14,7 +14,7 @@ import { ToolbarController } from './toolbar';
import { createShadowRoot } from './util/shadow-root'; 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').AnchorPosition} AnchorPosition
* @typedef {import('../types/annotator').SidebarLayout} SidebarLayout * @typedef {import('../types/annotator').SidebarLayout} SidebarLayout
* @typedef {import('../types/annotator').Destroyable} Destroyable * @typedef {import('../types/annotator').Destroyable} Destroyable
......
import { delay } from '../../test-util/wait'; import { delay } from '../../test-util/wait';
import Guest, { $imports } from '../guest'; import { Guest, $imports } from '../guest';
class FakeAdder { class FakeAdder {
constructor(container, options) { constructor(container, options) {
......
// Tests that the expected parts of the page are highlighted when annotations // Tests that the expected parts of the page are highlighted when annotations
// with various combinations of selector are anchored. // 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'; import testPageHTML from './test-page.html';
function quoteSelector(quote) { 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