message: refactor(helpers): remove default export
diff: @@ -107,6 +107,23 @@ export interface SelectionInfoMutable {
  note: string
  }
  +export function getDefaultSelectionInfo (extra: Partial<SelectionInfo> = {}): SelectionInfo {
  + return {
  + text: '',
  + context: '',
  + title: '',
  + url: '',
  + favicon: '',
  + trans: '',
  + note: '',
  + ...extra,
  + }
  +}
  +
  +export function isSameSelection (a: SelectionInfo, b: SelectionInfo) {
  + return a.text === b.text && a.context === b.context
  +}
  +
  export function getSelectionInfo (): SelectionInfo {
  return {
  text: getSelectionText(),
  @@ -120,13 +137,6 @@ export function getSelectionInfo (): SelectionInfo {
  }
  }
  -export default {
  - hasSelection,
  - getSelectionText,
  - getSelectionSentence,
  - getSelectionInfo
  -}
  -
  function cleanText (text: string): string {
  return text
  .replace(/^\s+\n/gm, '\n') // compress multiple \n to two
  