2023-05-09 02:00:53 +00:00
|
|
|
//@ts-check
|
|
|
|
|
|
|
|
import { changeTitle } from "./changeTitle.mjs";
|
2023-05-13 15:26:48 +00:00
|
|
|
//import { createCustomElement } from "./createCustomElement.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { createElementStatusModes } from "./createElementStatusModes.mjs";
|
2023-06-06 22:45:16 +00:00
|
|
|
import { createTrackedResponse } from "./createTrackedResponse.mjs";
|
|
|
|
import { decodeContentLength } from "./decodeContentLength.mjs";
|
|
|
|
import { deferredPromise } from "./deferredPromise.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { documentState } from "./documentState.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { elementMode } from "./elementMode.mjs";
|
|
|
|
import { escapeRegExp } from "./escapeRegExp.mjs";
|
2023-06-06 22:45:16 +00:00
|
|
|
import { fetchContentLength } from "./fetchContentLength.mjs";
|
|
|
|
import { fetchHeaders } from "./fetchHeaders.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { fetchMarkdown } from "./fetchMarkdown.mjs";
|
|
|
|
import { fetchText } from "./fetchText.mjs";
|
|
|
|
import { generateDomFromString } from "./generateDomFromString.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { getAspectRatio } from "./getAspectRatio.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import {
|
|
|
|
getCurrentHashUrl,
|
|
|
|
hasCurrentHashUrl,
|
|
|
|
hasNoHashUrl,
|
|
|
|
} from "./getCurrentHashUrl.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { getElement } from "./getElement.mjs";
|
2023-05-13 15:26:48 +00:00
|
|
|
import { getElementByCSSSelector } from "./getElementByCSSSelector.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { getElementById } from "./getElementById.mjs";
|
|
|
|
import { getFirstTitleContent } from "./getFirstTitleContent.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { getLocale } from "./getLocale.mjs";
|
2023-06-07 16:51:18 +00:00
|
|
|
import { getPageUniqueId } from "./getPageUniqueId.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { getRandomId } from "./getRandomId.mjs";
|
2023-06-07 16:51:18 +00:00
|
|
|
import { getReasonableUuid } from "./getReasonableUuid.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { identity, awaitedIdentity } from "./identity.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { isElement } from "./isElement.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { html } from "./html.mjs";
|
|
|
|
import { isExternalUrl } from "./isExternalUrl.mjs";
|
|
|
|
import { isLocalHost } from "./isLocalHost.mjs";
|
|
|
|
import { isNotNull } from "./isNotNull.mjs";
|
2023-06-07 16:51:18 +00:00
|
|
|
import { makeBoundConsole } from "./makeBoundConsole.mjs";
|
2023-06-06 22:45:16 +00:00
|
|
|
import { makeEventEmitter } from "./makeEventEmitter.mjs";
|
|
|
|
import { makeFileLoader, makeFileLoadersTracker } from "./makeFileLoader.mjs";
|
|
|
|
import { makeFileSizeFetcher } from "./makeFileSizeFetcher.mjs";
|
|
|
|
import { makeSignal } from "./makeSignal.mjs";
|
2023-05-18 21:33:33 +00:00
|
|
|
import { markdownToMarkup } from "./markdownToMarkup.mjs";
|
|
|
|
import { markupToDom } from "./markupToDom.mjs";
|
|
|
|
import { memoize } from "./memoize.mjs";
|
2023-06-06 22:45:16 +00:00
|
|
|
import { noOp } from "./noOp.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { not } from "./not.mjs";
|
|
|
|
import {
|
|
|
|
onDocumentKeyUp,
|
|
|
|
onDocumentKeyDown,
|
|
|
|
onDocumentKey,
|
|
|
|
} from "./onDocumentKey.mjs";
|
2023-06-07 16:51:18 +00:00
|
|
|
import {
|
|
|
|
basename,
|
|
|
|
filename,
|
|
|
|
stripExtension,
|
|
|
|
dirName,
|
|
|
|
extension,
|
|
|
|
metadata,
|
|
|
|
} from "./path.mjs";
|
2023-06-06 22:45:16 +00:00
|
|
|
import { percentFromProgress } from "./percentFromProgress.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { print, makeTemplate } from "./print.mjs";
|
|
|
|
import {
|
|
|
|
querySelectorDoc,
|
|
|
|
querySelectorParent,
|
|
|
|
querySelectorAll,
|
|
|
|
} from "./querySelectorAll.mjs";
|
2023-06-06 22:45:16 +00:00
|
|
|
import { retryPromise } from "./retryPromise.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { rewriteLocalUrls } from "./rewriteLocalUrls.mjs";
|
2023-06-07 20:07:47 +00:00
|
|
|
import { throttle } from "./throttle.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { today } from "./today.mjs";
|
2023-06-06 22:45:16 +00:00
|
|
|
import { UnreachableCaseError } from "./UnreachableCaseError.mjs";
|
2023-05-09 02:00:53 +00:00
|
|
|
import { wait } from "./wait.mjs";
|
|
|
|
import { waitIfLocalHost } from "./waitIfLocalHost.mjs";
|
|
|
|
|
|
|
|
export {
|
|
|
|
changeTitle,
|
2023-06-07 20:07:47 +00:00
|
|
|
createElementStatusModes,
|
2023-06-06 22:45:16 +00:00
|
|
|
createTrackedResponse,
|
|
|
|
decodeContentLength,
|
|
|
|
deferredPromise,
|
2023-06-07 20:07:47 +00:00
|
|
|
elementMode as documentMode,
|
2023-05-09 02:00:53 +00:00
|
|
|
documentState,
|
2023-06-07 20:07:47 +00:00
|
|
|
escapeRegExp,
|
2023-06-06 22:45:16 +00:00
|
|
|
fetchContentLength,
|
|
|
|
fetchHeaders,
|
2023-05-09 02:00:53 +00:00
|
|
|
fetchMarkdown,
|
|
|
|
fetchText,
|
|
|
|
generateDomFromString,
|
2023-06-07 20:07:47 +00:00
|
|
|
getAspectRatio,
|
2023-05-09 02:00:53 +00:00
|
|
|
getCurrentHashUrl,
|
|
|
|
hasCurrentHashUrl,
|
|
|
|
hasNoHashUrl,
|
2023-06-07 20:07:47 +00:00
|
|
|
getElement,
|
2023-05-13 15:26:48 +00:00
|
|
|
getElementByCSSSelector,
|
2023-05-09 02:00:53 +00:00
|
|
|
getElementById,
|
|
|
|
getFirstTitleContent,
|
2023-06-07 20:07:47 +00:00
|
|
|
getLocale,
|
2023-06-07 16:51:18 +00:00
|
|
|
getPageUniqueId,
|
2023-06-07 20:07:47 +00:00
|
|
|
getRandomId,
|
2023-06-07 16:51:18 +00:00
|
|
|
getReasonableUuid,
|
2023-05-09 02:00:53 +00:00
|
|
|
html,
|
|
|
|
identity,
|
|
|
|
awaitedIdentity,
|
2023-06-07 20:07:47 +00:00
|
|
|
isElement,
|
2023-05-09 02:00:53 +00:00
|
|
|
isExternalUrl,
|
|
|
|
isLocalHost,
|
|
|
|
isNotNull,
|
2023-06-07 16:51:18 +00:00
|
|
|
makeBoundConsole,
|
2023-06-06 22:45:16 +00:00
|
|
|
makeEventEmitter,
|
|
|
|
makeFileLoader,
|
|
|
|
makeFileLoadersTracker,
|
|
|
|
makeFileSizeFetcher,
|
|
|
|
makeSignal,
|
2023-05-18 21:33:33 +00:00
|
|
|
markdownToMarkup,
|
|
|
|
markupToDom,
|
|
|
|
memoize,
|
2023-05-09 02:00:53 +00:00
|
|
|
not,
|
2023-06-06 22:45:16 +00:00
|
|
|
noOp,
|
2023-05-09 02:00:53 +00:00
|
|
|
onDocumentKeyUp,
|
|
|
|
onDocumentKeyDown,
|
|
|
|
onDocumentKey,
|
2023-06-07 16:51:18 +00:00
|
|
|
basename,
|
|
|
|
filename,
|
|
|
|
stripExtension,
|
|
|
|
dirName,
|
|
|
|
extension,
|
|
|
|
metadata,
|
2023-06-06 22:45:16 +00:00
|
|
|
percentFromProgress,
|
2023-05-09 02:00:53 +00:00
|
|
|
print,
|
|
|
|
makeTemplate,
|
|
|
|
querySelectorDoc,
|
|
|
|
querySelectorParent,
|
|
|
|
querySelectorAll,
|
2023-06-06 22:45:16 +00:00
|
|
|
retryPromise,
|
2023-05-09 02:00:53 +00:00
|
|
|
rewriteLocalUrls,
|
2023-06-07 20:07:47 +00:00
|
|
|
throttle,
|
2023-05-09 02:00:53 +00:00
|
|
|
today,
|
2023-06-06 22:45:16 +00:00
|
|
|
UnreachableCaseError,
|
2023-05-09 02:00:53 +00:00
|
|
|
wait,
|
|
|
|
waitIfLocalHost,
|
|
|
|
};
|