@edrlab/thorium-web 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{StatefulReader-BU_EpfhE.d.mts → StatefulReader-BjH7bkU1.d.mts} +1 -1
- package/dist/{ThPreferencesAdapter-CYSE2wnE.d.mts → ThPreferencesAdapter-x_D4c7wI.d.mts} +1 -2
- package/dist/{chunk-6JMWZYOA.mjs → chunk-2JHEFF46.mjs} +7 -9
- package/dist/chunk-2JHEFF46.mjs.map +1 -0
- package/dist/chunk-B3WDMWCT.mjs +9 -0
- package/dist/chunk-B3WDMWCT.mjs.map +1 -0
- package/dist/{chunk-NHUVBN7S.mjs → chunk-EY4D4BZN.mjs} +4 -4
- package/dist/{chunk-NHUVBN7S.mjs.map → chunk-EY4D4BZN.mjs.map} +1 -1
- package/dist/{chunk-DCW6H2DC.mjs → chunk-IRA4ZKAX.mjs} +108 -7
- package/dist/chunk-IRA4ZKAX.mjs.map +1 -0
- package/dist/{chunk-RNED2SPT.mjs → chunk-IYAFKTPL.mjs} +3 -3
- package/dist/chunk-IYAFKTPL.mjs.map +1 -0
- package/dist/{chunk-OWJCESNF.mjs → chunk-VETE7ULS.mjs} +16 -17
- package/dist/chunk-VETE7ULS.mjs.map +1 -0
- package/dist/components/Epub/index.d.mts +3 -3
- package/dist/components/Epub/index.mjs +10 -10
- package/dist/components/Misc/index.mjs +2 -2
- package/dist/components/WebPub/index.d.mts +5 -5
- package/dist/components/WebPub/index.mjs +10 -10
- package/dist/core/Hooks/index.mjs +1 -1
- package/dist/i18n/index.mjs +4 -4
- package/dist/lib/index.d.mts +1 -1
- package/dist/locales/da/thorium-shared.json +3 -9
- package/dist/locales/el/thorium-web.json +12 -0
- package/dist/locales/en/thorium-shared.json +62 -24
- package/dist/locales/et/thorium-shared.json +17 -12
- package/dist/locales/et/thorium-web.json +95 -1
- package/dist/locales/fi/thorium-shared.json +60 -9
- package/dist/locales/fr/thorium-shared.json +12 -13
- package/dist/locales/it/thorium-shared.json +15 -25
- package/dist/locales/it/thorium-web.json +95 -1
- package/dist/locales/lt/thorium-shared.json +12 -24
- package/dist/locales/pt-BR/thorium-shared.json +12 -24
- package/dist/locales/pt-PT/thorium-shared.json +12 -24
- package/dist/locales/sv/thorium-shared.json +12 -24
- package/dist/locales/tr/thorium-shared.json +14 -24
- package/dist/preferences/index.d.mts +3 -3
- package/dist/preferences/index.mjs +2 -2
- package/dist/{usePreferences-aGLrGdNR.d.mts → usePreferences-CRjFlZvF.d.mts} +1 -1
- package/package.json +3 -2
- package/dist/chunk-6JMWZYOA.mjs.map +0 -1
- package/dist/chunk-DCW6H2DC.mjs.map +0 -1
- package/dist/chunk-J5NR3FTV.mjs +0 -106
- package/dist/chunk-J5NR3FTV.mjs.map +0 -1
- package/dist/chunk-OWJCESNF.mjs.map +0 -1
- package/dist/chunk-RNED2SPT.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/Hooks/useDocumentTitle.ts","../src/core/Hooks/useIsClient.ts","../src/core/Hooks/useFullscreen.ts","../src/core/Hooks/useLocalStorage.ts","../src/core/Hooks/useTimeline.ts","../src/core/Hooks/Epub/useEpubNavigator.ts","../src/core/Hooks/WebPub/useWebPubNavigator.ts"],"names":["useState","useEffect","useRef","useCallback","positionsList","timelineItems","currentItem","useMemo","Layout","currentLocator","navigatorInstance"],"mappings":";;;;;AAIO,IAAM,gBAAA,GAAmB,CAAC,KAAA,KAAmB;AAClD,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,IAAI,KAAA,WAAgB,KAAA,GAAQ,KAAA;AAAA,EAC9B,CAAA,EAAG,CAAC,KAAK,CAAC,CAAA;AACZ;ACJO,IAAM,cAAc,MAAM;AAC/B,EAAA,MAAM,CAAC,QAAA,EAAU,WAAW,CAAA,GAAI,SAAS,KAAK,CAAA;AAE9C,EAAA,eAAA,CAAgB,MAAM;AACpB,IAAA,IAAI,OAAO,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,EAAE,CAAA;AAEL,EAAA,MAAM,WAAA,GAAcP,YAAY,MAAM;AACpC,IAAA,OAAOO,kBAAAA,EAAmB,WAAA;AAAA,EAC5B,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,MAAM,UAAA,GAAaP,YAAY,MAAM;AACnC,IAAA,OAAOO,kBAAAA,EAAmB,QAAA;AAAA,EAC5B,CAAA,EAAG,EAAE,CAAA;AAEL,EAAA,OAAO;AAAA,IACL,mBAAA;AAAA,IACA,sBAAA;AAAA,IACA,OAAA;AAAA,IACA,MAAA;AAAA,IACA,UAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA;AAAA,IACA,EAAA;AAAA,IACA,cAAA;AAAA,IACA,eAAA;AAAA,IACA,WAAA;AAAA,IACA,gBAAA;AAAA,IACA,aAAA;AAAA,IACA,YAAA;AAAA,IACA,aAAA;AAAA,IACA,WAAA;AAAA,IACA,mBAAmBA,kBAAAA,EAAmB,iBAAA;AAAA,IACtC,UAAA;AAAA,IACA,iBAAA;AAAA,IACA;AAAA,GACF;AACF","file":"chunk-VETE7ULS.mjs","sourcesContent":["\"use client\";\n\nimport { useEffect } from \"react\";\n\nexport const useDocumentTitle = (title?: string) => {\n useEffect(() => {\n if (title) document.title = title;\n }, [title]);\n};","\"use client\";\n\nimport { useLayoutEffect, useState } from \"react\";\n\nexport const useIsClient = () => {\n const [isClient, setIsClient] = useState(false);\n\n useLayoutEffect(() => {\n if (typeof window !== \"undefined\") setIsClient(true);\n }, []);\n\n return isClient;\n}","\"use client\";\n\nimport { useCallback, useEffect, useState } from \"react\";\nimport { useIsClient } from \"./useIsClient\";\n\nexport const useFullscreen = (onChange?: (isFullscreen: boolean) => void) => {\n const [isFullscreen, setIsFullscreen] = useState(false);\n const isClient = useIsClient();\n\n const handleFullscreen = useCallback(() => {\n if (!isClient) return;\n\n if (!document.fullscreenElement) {\n document.documentElement.requestFullscreen();\n } else if (document.exitFullscreen) {\n document.exitFullscreen();\n }\n }, [isClient]);\n\n useEffect(() => {\n const onFSchange = () => {\n const isFs = Boolean(document.fullscreenElement);\n setIsFullscreen(isFs);\n onChange && onChange(isFs);\n }\n document.addEventListener(\"fullscreenchange\", onFSchange);\n\n return () => {\n document.removeEventListener(\"fullscreenchange\", onFSchange);\n }\n }, [onChange]);\n\n return {\n isFullscreen,\n handleFullscreen\n }\n}","\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\n\nexport const useLocalStorage = (key: string) => {\n const [localData, setLocalData] = useState<any>(null);\n const cachedLocalData = useRef<any>(null);\n\n const setValue = (newValue: any) => {\n setLocalData(newValue);\n localStorage.setItem(key, JSON.stringify(newValue));\n };\n\n const getValue = () => {\n if (localData !== null) return localData;\n const value = localStorage.getItem(key);\n return value ? JSON.parse(value) : null;\n };\n\n const clearValue = () => {\n setLocalData(null);\n localStorage.removeItem(key);\n };\n\n useEffect(() => {\n cachedLocalData.current = localData;\n }, [localData])\n\n return {\n setLocalData: setValue,\n getLocalData: getValue,\n clearLocalData: clearValue,\n localData,\n cachedLocalData\n };\n};","import { useCallback, useEffect, useRef, useState, useMemo } from \"react\";\n\nimport { Layout, Link, Locator, Publication } from \"@readium/shared\";\n\nexport interface TocItem {\n id: string;\n href: string;\n title?: string;\n children?: TocItem[];\n position?: number;\n}\n\nexport interface TimelineItem {\n href: string;\n readingOrderIndex?: number;\n title?: string;\n fragments?: string[];\n positionRange?: [number, number?];\n progressionRange?: [number, number?];\n totalProgressionRange?: [number, number?];\n children?: TimelineItem[];\n}\n\nexport interface TimelineProgression {\n totalItems?: number;\n currentIndex?: number;\n totalPositions?: number;\n currentPositions?: number[];\n relativeProgression?: number;\n totalProgression?: number;\n currentChapter?: string;\n positionsLeft?: number;\n}\n\nexport interface UnstableTimeline {\n title?: string;\n items?: {\n [href: string]: TimelineItem;\n };\n toc?: {\n tree?: TocItem[];\n currentEntry?: string | null;\n };\n currentItem?: TimelineItem | null;\n previousItem?: TimelineItem | null;\n nextItem?: TimelineItem | null;\n progression?: TimelineProgression;\n}\n\nexport let timelineInstance: UnstableTimeline | undefined;\n\nexport const useTimeline = ({\n publication, \n currentLocation, \n currentPositions,\n positionsList,\n onChange\n}: {\n publication: Publication | null, \n currentLocation?: Locator, \n currentPositions?: number[],\n positionsList?: Locator[],\n onChange?: (timeline: UnstableTimeline) => void\n}): UnstableTimeline => {\n const layout = publication?.metadata.effectiveLayout || Layout.reflowable;\n\n const [timelineItems, setTimelineItems] = useState<{ [href: string]: TimelineItem }>({});\n const [tocTree, setTocTree] = useState<TocItem[]>([]);\n const [currentTocEntry, setCurrentTocEntry] = useState<string | null>(null);\n const [currentItem, setCurrentItem] = useState<TimelineItem | null>(null);\n const [previousItem, setPreviousItem] = useState<TimelineItem | null>(null);\n const [nextItem, setNextItem] = useState<TimelineItem | null>(null);\n\n const [relativeProgression, setRelativeProgression] = useState<number | undefined>(undefined);\n const [totalProgression, setTotalProgression] = useState<number | undefined>(undefined);\n\n const idCounterRef = useRef(0);\n\n // Create the timeline object\n const timeline = useMemo(() => ({\n title: publication?.metadata.title.getTranslation(\"en\"),\n items: timelineItems,\n toc: {\n tree: tocTree,\n currentEntry: currentTocEntry\n },\n currentItem,\n previousItem,\n nextItem,\n progression: {\n totalItems: publication?.readingOrder.items.length,\n currentIndex: currentItem?.readingOrderIndex !== undefined ? currentItem.readingOrderIndex + 1 : undefined,\n totalPositions: positionsList?.length,\n currentPositions: currentPositions || [],\n relativeProgression: relativeProgression,\n totalProgression: totalProgression,\n currentChapter: currentItem?.title,\n positionsLeft: (() => {\n const endPosition = currentItem?.positionRange?.[1];\n const currentPosition = currentPositions?.[0];\n \n // Only calculate positionsLeft if we have all required position data\n if (!positionsList?.length || endPosition === undefined || currentPosition === undefined) {\n return undefined;\n }\n \n return Math.max(0, endPosition - currentPosition);\n })()\n }\n }), [\n publication?.metadata.title,\n publication?.readingOrder.items,\n timelineItems,\n tocTree,\n currentTocEntry,\n currentItem,\n previousItem,\n nextItem,\n positionsList,\n currentPositions,\n relativeProgression,\n totalProgression\n ]);\n\n const buildTocTree = useCallback((\n links: Link[],\n idGenerator: () => string,\n positionsList?: Locator[],\n publicationTitle?: string\n ): TocItem[] => {\n return links.map((link) => {\n // Generate a new ID for the current Link\n const newId = idGenerator();\n \n // Create a plain object for compatibility with Tree components\n let href = link.href;\n const fragmentIndex = href.indexOf(\"#\");\n if (fragmentIndex !== -1) {\n const baseHref = href.substring(0, fragmentIndex);\n const duplicateLink = links.find((l) => l.href.startsWith(baseHref) && l.href !== href);\n if (!duplicateLink) {\n href = baseHref;\n }\n }\n \n const treeNode: TocItem = {\n id: newId,\n href: href,\n title: link.title || (\n publicationTitle \n ? `${ publicationTitle } ${ idCounterRef.current }` \n : newId\n ),\n position: positionsList?.find((position) => position.href === href)?.locations.position\n };\n \n // Recursively process children if they exist\n if (link.children) {\n treeNode.children = buildTocTree(link.children.items, idGenerator, positionsList, publicationTitle);\n }\n \n return treeNode;\n });\n }, []);\n\n const handleTocEntryOnNav = useCallback((locator?: Locator, currentPos?: number[]) => {\n if (!locator || !tocTree.length) return;\n\n const findMatch = (items: TocItem[], link?: Link): TocItem | undefined => {\n for (const item of items) {\n if (item.href === link?.href) {\n return item;\n }\n if (item.children) {\n const match = findMatch(item.children, link);\n if (match) return match;\n }\n }\n return undefined;\n };\n\n const currentMatch = findMatch(tocTree, new Link(locator));\n if (currentMatch) {\n setCurrentTocEntry(currentMatch.id);\n return;\n }\n\n // If we're in FXL and didn't find a match, try to find a match for the other position in the spread\n if (layout === Layout.fixed) {\n if (currentPos && currentPos.length === 2) {\n const otherPosition = currentPos[0] === locator.locations.position ? currentPos[1] : currentPos[0];\n const otherPositionInList = positionsList?.find((pos: Locator) => pos.locations.position === otherPosition);\n if (otherPositionInList) {\n const match = findMatch(tocTree, new Link(otherPositionInList));\n if (match) {\n setCurrentTocEntry(match.id);\n return;\n }\n }\n }\n }\n\n // If no match, try to find a match for other positions\n const otherPositions = currentPos?.filter(pos => pos !== locator.locations.position) || [];\n for (const otherPosition of otherPositions) {\n const otherPositionInList = positionsList?.find((pos: Locator) => pos.locations.position === otherPosition);\n if (otherPositionInList) {\n const match = findMatch(tocTree, new Link(otherPositionInList));\n if (match) {\n setCurrentTocEntry(match.id);\n return;\n }\n }\n }\n }, [tocTree, layout, positionsList]);\n\n const buildTimelineItems = useCallback(() => {\n const timelineItems: { [href: string]: TimelineItem } = {};\n const readingOrder = publication?.readingOrder?.items || [];\n const toc = publication?.toc?.items && publication?.toc?.items.length > 0\n ? publication.toc.items\n : publication?.readingOrder?.items || [];\n const flatToc = toc.flatMap(t => [t, ...(t.children?.items || [])]);\n \n // Helper function to get URL base (without params and fragment)\n const getBaseUrl = (url: string): string => {\n const [base] = url.split(\"#\");\n const [path] = base.split(\"?\");\n return path;\n };\n\n // Function to find the first non-empty title by searching backward \n // in flatToc from the current item\"s position\n // The issue with this fallback is that for progressionOfResource\n // the progression is effectively scoped to the reading order item\n // so we have to differentiate using the index \n const findNearestTitle = (currentHref: string): string => {\n const currentIndex = readingOrder.findIndex(item => getBaseUrl(item.href) === getBaseUrl(currentHref));\n \n if (currentIndex === -1) return \"\";\n \n for (let i = currentIndex; i >= 0; i--) {\n const item = readingOrder[i];\n // Find matching TOC items for this reading order item\n const matchingTocItems = flatToc.filter(t => \n getBaseUrl(t.href) === getBaseUrl(item.href)\n );\n \n // If we have a matching TOC item with a title, return it with the difference in indices\n const title = matchingTocItems[0]?.title?.trim();\n if (title) {\n const diff = currentIndex - i;\n return diff > 0 ? `${ title } (${ diff + 1 })` : title;\n }\n }\n \n return \"\";\n };\n\n // Process reading order items\n readingOrder.forEach((item, index) => {\n // Find all matching TOC items (with or without fragment)\n const matchingTocItems = flatToc.filter(t => {\n const baseHref = getBaseUrl(t.href);\n const baseItemHref = getBaseUrl(item.href);\n return baseHref === baseItemHref;\n });\n\n // Create timeline item with all matching titles\n const timelineItem: TimelineItem = {\n href: item.href,\n readingOrderIndex: index,\n title: item.title || matchingTocItems[0]?.title || findNearestTitle(item.href),\n fragments: matchingTocItems\n .map(t => t.href.split(\"#\")[1])\n .filter(Boolean),\n children: matchingTocItems[0]?.children?.items?.map(child => ({\n // We do not care about index for children\n // since currentLocation is guaranteed to be in the reading order\n title: child.title,\n href: child.href\n })) || []\n };\n\n timelineItems[item.href] = timelineItem;\n });\n \n // Then add position and progression information from positionsList\n for (const item of readingOrder) {\n const timelineItem = timelineItems[item.href];\n if (!timelineItem) continue;\n\n const positions = positionsList\n ? positionsList\n .filter(p => p.href === item.href)\n .sort((a, b) => (a.locations.position || 0) - (b.locations.position || 0))\n : [];\n \n if (positions.length > 0) {\n const start = positions[0].locations;\n // For single position, use the same location for start and end\n const end = positions.length > 1 \n ? positions[positions.length - 1].locations \n : start; // Use start as end for single position\n \n timelineItem.positionRange = start.position !== undefined \n ? [start.position, end.position]\n : undefined;\n \n timelineItem.progressionRange = start.progression !== undefined \n ? [start.progression, end.progression]\n : undefined;\n \n timelineItem.totalProgressionRange = start.totalProgression !== undefined \n ? [start.totalProgression, end.totalProgression]\n : undefined;\n }\n }\n\n return timelineItems;\n }, [publication?.readingOrder?.items, publication?.toc?.items, positionsList]);\n\n const updateTimelineItems = useCallback((currentLoc?: Locator) => {\n if (!currentLoc || !timelineItems) {\n setPreviousItem(null);\n setNextItem(null);\n setCurrentItem(null);\n return;\n }\n\n const currentItem = timelineItems[currentLoc.href];\n if (!currentItem) {\n setPreviousItem(null);\n setNextItem(null);\n setCurrentItem(null);\n return;\n }\n\n setCurrentItem(currentItem);\n\n const timelineItemsArray = Object.values(timelineItems);\n const currentIndex = timelineItemsArray.findIndex(item => item.href === currentLoc.href);\n\n if (currentIndex === -1) {\n setPreviousItem(null);\n setNextItem(null);\n } else {\n setPreviousItem(currentIndex > 0 ? timelineItemsArray[currentIndex - 1] : null);\n setNextItem(currentIndex < timelineItemsArray.length - 1 ? timelineItemsArray[currentIndex + 1] : null);\n }\n }, [timelineItems]);\n\n useEffect(() => {\n if (!publication) return;\n\n const idGenerator = () => `toc-${ ++idCounterRef.current }`;\n const tocItems = publication.toc?.items && publication.toc.items.length > 0\n ? publication.toc.items\n : publication.readingOrder?.items || [];\n const publicationTitle = publication?.metadata.title.getTranslation(\"en\");\n setTocTree(buildTocTree(tocItems, idGenerator, positionsList, publicationTitle));\n setTimelineItems(buildTimelineItems());\n }, [publication, positionsList, buildTocTree, buildTimelineItems]);\n\n useEffect(() => {\n if (!tocTree.length || !timelineItems) return;\n\n // If we have a current location, use it\n if (currentLocation) {\n handleTocEntryOnNav(currentLocation, currentPositions);\n }\n // Otherwise, use the first TOC entry\n else if (tocTree.length > 0) {\n handleTocEntryOnNav(new Locator({ href: tocTree[0].href, type: \"\" }), currentPositions);\n }\n\n updateTimelineItems(currentLocation);\n\n // Update progression state when location changes\n setRelativeProgression(currentLocation?.locations.progression);\n setTotalProgression(currentLocation?.locations.totalProgression);\n }, [currentLocation, currentPositions, tocTree, timelineItems, handleTocEntryOnNav, updateTimelineItems]);\n\n // Update the singleton and call onChange\n useEffect(() => {\n timelineInstance = timeline;\n if (onChange) {\n onChange(timeline);\n }\n }, [timeline, onChange]);\n\n return timeline;\n};","\"use client\";\n\nimport { useCallback, useMemo, useRef } from \"react\";\n\nimport { \n Layout, \n Link, \n Locator, \n Publication \n} from \"@readium/shared\";\nimport { \n EpubNavigator, \n EpubNavigatorListeners, \n EpubPreferences, \n EpubSettings, \n IEpubDefaults, \n IEpubPreferences\n} from \"@readium/navigator\";\n\ntype cbb = (ok: boolean) => void;\n\n// Module scoped, singleton instance of navigator\nlet navigatorInstance: EpubNavigator | null = null;\n\nexport interface EpubNavigatorLoadProps {\n container: HTMLDivElement | null;\n publication: Publication;\n listeners: EpubNavigatorListeners;\n positionsList?: Locator[];\n initialPosition?: Locator;\n preferences?: IEpubPreferences;\n defaults?: IEpubDefaults;\n}\n\nexport const useEpubNavigator = () => {\n const container = useRef<HTMLDivElement | null>(null);\n const containerParent = useRef<HTMLElement | null>(null);\n const publication = useRef<Publication | null>(null);\n\n const submitPreferences = useCallback(async (preferences: IEpubPreferences) => {\n await navigatorInstance?.submitPreferences(new EpubPreferences(preferences));\n }, []);\n\n const getSetting = useCallback(<K extends keyof EpubSettings>(settingKey: K) => {\n return navigatorInstance?.settings[settingKey] as EpubSettings[K];\n }, []);\n\n // [TMP] Working around positionChanged not firing consistently for FXL\n // We’re observing the FXLFramePoolManager spine div element’s style\n // and checking whether its translate3d has changed.\n // Sure IntersectionObserver should be the obvious one to use here,\n // observing iframes instead of the style attribute on the spine element\n // but there’s additional complexity to handle as a spread = 2 iframes\n // And keeping in sync while the FramePool is re-aligning on resize can be suboptimal\n let FXLPositionChangedCallback: ((locator: Locator) => void) | undefined;\n const FXLPositionChanged = useMemo(() => { \n return new MutationObserver((mutationsList: MutationRecord[]) => {\n for (const mutation of mutationsList) {\n const re = /translate3d\\(([^)]+)\\)/;\n const newVal = (mutation.target as HTMLElement).getAttribute(mutation.attributeName as string);\n const oldVal = mutation.oldValue;\n if (newVal?.split(re)[1] !== oldVal?.split(re)[1]) {\n const locator = navigatorInstance?.currentLocator;\n if (locator) {\n FXLPositionChangedCallback?.(locator);\n }\n }\n }\n });\n }, [FXLPositionChangedCallback]);\n\n const EpubNavigatorLoad = useCallback((config: EpubNavigatorLoadProps, cb: Function) => {\n if (config.container) {\n container.current = config.container;\n containerParent.current = container.current? container.current.parentElement : null;\n \n publication.current = config.publication;\n\n navigatorInstance = new EpubNavigator(\n config.container, \n config.publication, \n config.listeners, \n config.positionsList, \n config.initialPosition, \n { preferences: config.preferences || {}, defaults: config.defaults || {} }\n );\n\n navigatorInstance.load().then(() => {\n cb();\n\n if (navigatorInstance?.layout === Layout.fixed) {\n // @ts-ignore\n FXLPositionChanged.observe((navigatorInstance?.pool.spineElement as HTMLElement), {\n attributeFilter: [\"style\"], \n attributeOldValue: true\n });\n }\n });\n }\n }, [FXLPositionChanged]);\n\n const EpubNavigatorDestroy = useCallback((cb: Function) => {\n cb();\n\n if (navigatorInstance?.layout === Layout.fixed) {\n FXLPositionChanged.disconnect();\n }\n navigatorInstance?.destroy;\n }, [FXLPositionChanged]);\n\n const goRight = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goRight(animated, callback);\n }, []);\n\n const goLeft = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goLeft(animated, callback)\n }, []);\n\n const goBackward = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goBackward(animated, callback);\n }, []);\n\n const goForward = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goForward(animated, callback);\n }, []);\n\n const goLink = useCallback((link: Link, animated: boolean, callback: cbb) => {\n navigatorInstance?.goLink(link, animated, callback);\n }, []);\n\n const go = useCallback((locator: Locator, animated: boolean, callback: cbb) => {\n navigatorInstance?.go(locator, animated, callback);\n }, []);\n\n const navLayout = useCallback(() => {\n return navigatorInstance?.layout;\n }, []);\n\n const currentLocator = useCallback(() => {\n return navigatorInstance?.currentLocator;\n }, []);\n\n const getLocatorAtOffset = useCallback((offset: number) => {\n const readingOrder = navigatorInstance?.publication?.readingOrder;\n if (!readingOrder) return null;\n\n const currentLocator = navigatorInstance?.currentLocator;\n if (!currentLocator) return null;\n\n const currentLocatorIndex = readingOrder.findIndexWithHref(currentLocator.href);\n if (currentLocatorIndex === -1) return null;\n \n const newIndex = currentLocatorIndex + offset;\n if (newIndex < 0 || newIndex >= readingOrder.items.length) return null;\n \n return readingOrder.items[newIndex];\n }, []);\n\n const previousLocator = useCallback(() => {\n const link = getLocatorAtOffset(-1);\n if (!link) return null;\n return navigatorInstance?.publication?.manifest?.locatorFromLink(link);\n }, [getLocatorAtOffset]);\n\n const nextLocator = useCallback(() => {\n const link = getLocatorAtOffset(1);\n if (!link) return null;\n return navigatorInstance?.publication?.manifest?.locatorFromLink(link);\n }, [getLocatorAtOffset]);\n\n const currentPositions = useCallback(() => {\n return navigatorInstance?.viewport?.positions;\n }, []);\n\n const canGoBackward = useCallback(() => {\n return navigatorInstance?.canGoBackward;\n }, []);\n\n const canGoForward = useCallback(() => {\n return navigatorInstance?.canGoForward;\n }, []);\n\n const isScrollStart = useCallback(() => {\n return navigatorInstance?.isScrollStart;\n }, []);\n\n const isScrollEnd = useCallback(() => {\n return navigatorInstance?.isScrollEnd;\n }, []);\n\n // Warning: this is an internal member that will become private, do not rely on it\n // See https://github.com/edrlab/thorium-web/issues/25\n const getCframes = useCallback(() => {\n return navigatorInstance?._cframes;\n }, []);\n\n return { \n EpubNavigatorLoad, \n EpubNavigatorDestroy, \n goRight, \n goLeft, \n goBackward, \n goForward,\n goLink, \n go, \n navLayout, \n currentLocator,\n previousLocator,\n nextLocator,\n currentPositions,\n canGoBackward,\n canGoForward,\n isScrollStart,\n isScrollEnd,\n preferencesEditor: navigatorInstance?.preferencesEditor,\n getSetting,\n submitPreferences,\n getCframes,\n onFXLPositionChange: (cb: (locator: Locator) => void) => {\n FXLPositionChangedCallback = cb;\n }\n }\n}","\"use client\";\n\nimport { useCallback, useRef } from \"react\";\n\nimport {\n Link,\n Locator,\n Publication\n} from \"@readium/shared\";\nimport {\n ExperimentalWebPubNavigator,\n WebPubNavigatorListeners,\n WebPubPreferences,\n WebPubSettings,\n IWebPubDefaults,\n IWebPubPreferences,\n\n} from \"@readium/navigator\";\n\ntype cbb = (ok: boolean) => void;\n\n// Module scoped, singleton instance of navigator\nlet navigatorInstance: InstanceType<typeof ExperimentalWebPubNavigator> | null = null;\n\nexport interface WebPubNavigatorLoadProps {\n container: HTMLDivElement | null;\n publication: Publication;\n listeners: WebPubNavigatorListeners;\n initialPosition?: Locator;\n preferences?: IWebPubPreferences;\n defaults?: IWebPubDefaults;\n}\n\nexport const useWebPubNavigator = () => {\n const container = useRef<HTMLDivElement | null>(null);\n const containerParent = useRef<HTMLElement | null>(null);\n const publication = useRef<Publication | null>(null);\n\n const submitPreferences = useCallback(async (preferences: IWebPubPreferences) => {\n await navigatorInstance?.submitPreferences(new WebPubPreferences(preferences));\n }, []);\n \n const getSetting = useCallback(<K extends keyof WebPubSettings>(settingKey: K) => {\n return navigatorInstance?.settings[settingKey] as WebPubSettings[K];\n }, []);\n\n const WebPubNavigatorLoad = useCallback((config: WebPubNavigatorLoadProps, cb: Function) => {\n if (config.container) {\n container.current = config.container;\n containerParent.current = container.current?.parentElement || null;\n\n publication.current = config.publication;\n\n navigatorInstance = new ExperimentalWebPubNavigator(\n config.container, \n config.publication, \n config.listeners, \n config.initialPosition, \n { preferences: config.preferences || {}, defaults: config.defaults || {} }\n );\n\n navigatorInstance.load().then(() => {\n cb();\n });\n }\n }, []);\n\n const WebPubNavigatorDestroy = useCallback((cb: Function) => {\n cb();\n navigatorInstance?.destroy();\n }, []);\n\n const goRight = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goRight(animated, callback);\n }, []);\n\n const goLeft = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goLeft(animated, callback);\n }, []);\n\n const goBackward = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goBackward(animated, callback);\n }, []);\n\n const goForward = useCallback((animated: boolean, callback: cbb) => {\n navigatorInstance?.goForward(animated, callback);\n }, []);\n\n const goLink = useCallback((link: Link, animated: boolean, callback: cbb) => {\n navigatorInstance?.goLink(link, animated, callback);\n }, []);\n\n const go = useCallback((locator: Locator, animated: boolean, callback: cbb) => {\n navigatorInstance?.go(locator, animated, callback);\n }, []);\n\n const currentLocator = useCallback(() => {\n return navigatorInstance?.currentLocator;\n }, []);\n\n const getLocatorAtOffset = useCallback((offset: number) => {\n const readingOrder = navigatorInstance?.publication?.readingOrder;\n if (!readingOrder) return null;\n\n const currentLocator = navigatorInstance?.currentLocator;\n if (!currentLocator) return null;\n\n const currentLocatorIndex = readingOrder.findIndexWithHref(currentLocator.href);\n if (currentLocatorIndex === -1) return null;\n\n const newIndex = currentLocatorIndex + offset;\n if (newIndex < 0 || newIndex >= readingOrder.items.length) return null;\n\n return readingOrder.items[newIndex];\n }, []);\n\n const previousLocator = useCallback(() => {\n const link = getLocatorAtOffset(-1);\n if (!link) return null;\n return navigatorInstance?.publication?.manifest?.locatorFromLink(link);\n }, [getLocatorAtOffset]);\n\n const nextLocator = useCallback(() => {\n const link = getLocatorAtOffset(1);\n if (!link) return null;\n return navigatorInstance?.publication?.manifest?.locatorFromLink(link);\n }, [getLocatorAtOffset]);\n\n const currentPositions = useCallback(() => {\n return navigatorInstance?.viewport?.positions;\n }, []);\n\n const canGoBackward = useCallback(() => {\n return navigatorInstance?.canGoBackward;\n }, []);\n\n const canGoForward = useCallback(() => {\n return navigatorInstance?.canGoForward;\n }, []);\n\n const isScrollStart = useCallback(() => {\n return navigatorInstance?.isScrollStart;\n }, []);\n\n const isScrollEnd = useCallback(() => {\n return navigatorInstance?.isScrollEnd;\n }, []);\n\n const getCframes = useCallback(() => {\n return navigatorInstance?._cframes;\n }, []);\n\n return {\n WebPubNavigatorLoad, \n WebPubNavigatorDestroy, \n goRight, \n goLeft, \n goBackward, \n goForward,\n goLink, \n go, \n currentLocator,\n previousLocator,\n nextLocator,\n currentPositions,\n canGoBackward,\n canGoForward,\n isScrollStart,\n isScrollEnd,\n preferencesEditor: navigatorInstance?.preferencesEditor,\n getSetting,\n submitPreferences,\n getCframes\n }\n}"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ai as ReadiumCSSSettings, a7 as ScrimPref, e as StatefulActionContainerProps, n as StatefulActionIcon, m as StatefulActionIconProps, d as StatefulActionTriggerProps, c as StatefulActionsMapObject, a8 as StatefulBottomSheet, a6 as StatefulBottomSheetProps, r as StatefulCollapsibleActionsBar, q as StatefulCollapsibleActionsBarProps, aa as StatefulDockedSheet, a9 as StatefulDockedSheetProps, A as StatefulDropdown, z as StatefulDropdownProps, Z as StatefulFontFamily, ac as StatefulFullScreenSheet, ab as StatefulFullScreenSheetProps, f as StatefulFullscreenTrigger, y as StatefulGroupWrapper, x as StatefulGroupWrapperProps, $ as StatefulHyphens, g as StatefulJumpToPositionContainer, h as StatefulJumpToPositionTrigger, N as StatefulLetterSpacing, O as StatefulLineHeight, C as StatefulNumberField, B as StatefulNumberFieldProps, t as StatefulOverflowMenu, p as StatefulOverflowMenuItem, o as StatefulOverflowMenuItemProps, s as StatefulOverflowMenuProps, P as StatefulParagraphIndent, Q as StatefulParagraphSpacing, ae as StatefulPopoverSheet, ad as StatefulPopoverSheetProps, ah as StatefulPreferencesProvider, a4 as StatefulPublisherStyles, E as StatefulRadioGroup, D as StatefulRadioGroupProps, ak as StatefulReader, S as StatefulReaderProps, i as StatefulSettingsContainer, M as StatefulSettingsItemProps, j as StatefulSettingsTrigger, ag as StatefulSheet, af as StatefulSheetWrapper, G as StatefulSlider, F as StatefulSliderProps, R as StatefulSpacingGroup, U as StatefulSpacingGroupContainer, V as StatefulSpacingPresets, I as StatefulSwitch, H as StatefulSwitchProps, a0 as StatefulTextAlign, a1 as StatefulTextGroup, a2 as StatefulTextGroupContainer, a3 as StatefulTextNormalize, k as StatefulTocContainer, l as StatefulTocTrigger, W as StatefulWordSpacing, a5 as StatefulZoom, aj as StatelessCache, T as ThPlugin, _ as UnstableStatefulFontWeight, w as createDefaultPlugin, v as useDocking, K as useGridNavigation, J as useGridNavigationProps, L as useGridTemplate, X as useLineHeight, u as useNavigator, a as usePublication, b as useReaderTransitions, Y as useSpacingPresets } from '../../StatefulReader-
|
|
1
|
+
export { ai as ReadiumCSSSettings, a7 as ScrimPref, e as StatefulActionContainerProps, n as StatefulActionIcon, m as StatefulActionIconProps, d as StatefulActionTriggerProps, c as StatefulActionsMapObject, a8 as StatefulBottomSheet, a6 as StatefulBottomSheetProps, r as StatefulCollapsibleActionsBar, q as StatefulCollapsibleActionsBarProps, aa as StatefulDockedSheet, a9 as StatefulDockedSheetProps, A as StatefulDropdown, z as StatefulDropdownProps, Z as StatefulFontFamily, ac as StatefulFullScreenSheet, ab as StatefulFullScreenSheetProps, f as StatefulFullscreenTrigger, y as StatefulGroupWrapper, x as StatefulGroupWrapperProps, $ as StatefulHyphens, g as StatefulJumpToPositionContainer, h as StatefulJumpToPositionTrigger, N as StatefulLetterSpacing, O as StatefulLineHeight, C as StatefulNumberField, B as StatefulNumberFieldProps, t as StatefulOverflowMenu, p as StatefulOverflowMenuItem, o as StatefulOverflowMenuItemProps, s as StatefulOverflowMenuProps, P as StatefulParagraphIndent, Q as StatefulParagraphSpacing, ae as StatefulPopoverSheet, ad as StatefulPopoverSheetProps, ah as StatefulPreferencesProvider, a4 as StatefulPublisherStyles, E as StatefulRadioGroup, D as StatefulRadioGroupProps, ak as StatefulReader, S as StatefulReaderProps, i as StatefulSettingsContainer, M as StatefulSettingsItemProps, j as StatefulSettingsTrigger, ag as StatefulSheet, af as StatefulSheetWrapper, G as StatefulSlider, F as StatefulSliderProps, R as StatefulSpacingGroup, U as StatefulSpacingGroupContainer, V as StatefulSpacingPresets, I as StatefulSwitch, H as StatefulSwitchProps, a0 as StatefulTextAlign, a1 as StatefulTextGroup, a2 as StatefulTextGroupContainer, a3 as StatefulTextNormalize, k as StatefulTocContainer, l as StatefulTocTrigger, W as StatefulWordSpacing, a5 as StatefulZoom, aj as StatelessCache, T as ThPlugin, _ as UnstableStatefulFontWeight, w as createDefaultPlugin, v as useDocking, K as useGridNavigation, J as useGridNavigationProps, L as useGridTemplate, X as useLineHeight, u as useNavigator, a as usePublication, b as useReaderTransitions, Y as useSpacingPresets } from '../../StatefulReader-BjH7bkU1.mjs';
|
|
2
2
|
export { canRenderProgressionFormat, getBestMatchingProgressionFormat, getPlatform, getSupportedProgressionFormats, isActiveElement, isIOSish, isInteractiveElement, isIpadOS, isKeyboardTriggered, isMacish, makeBreakpointsMap, propsToCSSVars } from '../../core/Helpers/index.mjs';
|
|
3
3
|
export { U as UnstableKey, a as UnstableMetaKey, c as UnstableMetaKeys, g as UnstablePShortcut, b as UnstablePlatformModifier, f as UnstableShortcut, d as UnstableShortcutMetaKeywords, e as UnstableShortcutRepresentation, j as buildShortcut, h as defaultPlatformModifier, i as getPlatformModifier, m as metaKeys } from '../../keyboardUtilities-BWAyLS_D.mjs';
|
|
4
4
|
export { AppDispatch, AppState, AppStore, L10nObject, LineLengthStateObject, PaginatedAffordanceObject, PaginatedAffordancePayload, PaginatedAffordanceProperties, PreferencesReducerState, PublicationReducerState, ReaderReducerState, RenditionChangePayload, RenditionObject, RenditionProperties, RootState, SetLineLengthPayload, SetSpacingPresetPayload, SetSpacingSettingPayload, SettingsReducerState, SpacingStateKey, SpacingStateObject, ThReduxPreferencesAdapter, ThStoreProvider, ThemeReducerState, ThemeStateChangePayload, ThemeStateObject, UIChangePayload, WebPubSettingsReducerState, handleSpacingSetting, initialSettingsState, initialWebPubSettingsState, makeStore, preferencesSlice, publicationSlice, readerSlice, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setHyphens, setImmersive, setL10n, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setPaginatedAffordance, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgressionFormat, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRunningHeadFormat, setScroll, setScrollAffordance, setScrollAffordances, setSettingsContainer, setSpacingPreset, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setUI, setUserNavigated, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLineHeight, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, setWordSpacing, settingsSlice, themeSlice, toggleImmersive, updateFromPreferences, useAppDispatch, useAppSelector, useAppStore, webPubSettingsSlice } from '../../lib/index.mjs';
|
|
5
5
|
export { f as ActionOverflowOpenPayload, c as ActionStateDockPayload, g as ActionStateDockedPayload, a as ActionStateObject, d as ActionStateOpenPayload, h as ActionStateSlotPayload, i as ActionStateSlotWidthPayload, e as ActionStateTogglePayload, k as ActionsReducerState, A as ActionsStateKeys, j as DockState, D as DockStateObject, O as OverflowStateKeys, b as OverflowStateObject, l as actionsSlice, o as activateDockPanel, q as collapseDockPanel, p as deactivateDockPanel, m as dockAction, r as expandDockPanel, s as setActionOpen, u as setDockPanelWidth, n as setOverflow, t as toggleActionOpen } from '../../actionsReducer-BKoeohBu.mjs';
|
|
6
|
-
export { u as useTheming } from '../../ThPreferencesAdapter-
|
|
7
|
-
export { T as ThPreferencesProvider, u as usePreferences } from '../../usePreferences-
|
|
6
|
+
export { u as useTheming } from '../../ThPreferencesAdapter-x_D4c7wI.mjs';
|
|
7
|
+
export { T as ThPreferencesProvider, u as usePreferences } from '../../usePreferences-CRjFlZvF.mjs';
|
|
8
8
|
export { Trans } from 'react-i18next';
|
|
9
9
|
export { DEFAULT_CONFIG, ThI18nProvider, initI18n, useI18n } from '../../i18n/index.mjs';
|
|
10
10
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ThPluginRegistry, createDefaultPlugin, ThPluginProvider, useSpacingPresets, useLineHeight, Peripherals, NavigatorProvider, thorium_web_reader_app_default, StatefulDockingWrapper, getReaderClassNames, StatefulReaderHeader, StatefulReaderFooter, useReaderTransitions, thorium_web_button_default } from '../../chunk-
|
|
2
|
-
export { StatefulActionIcon, StatefulBottomSheet, StatefulCollapsibleActionsBar, StatefulColumns, StatefulDockedSheet, StatefulDropdown, StatefulFontFamily, StatefulFullScreenSheet, StatefulFullscreenTrigger, StatefulGroupWrapper, StatefulHyphens, StatefulJumpToPositionContainer, StatefulJumpToPositionTrigger, StatefulLayout, StatefulLetterSpacing, StatefulLineHeight, StatefulNumberField, StatefulOverflowMenu, StatefulOverflowMenuItem, StatefulParagraphIndent, StatefulParagraphSpacing, StatefulPopoverSheet, StatefulPreferencesProvider, StatefulPublisherStyles, StatefulRadioGroup, StatefulSettingsContainer, StatefulSettingsTrigger, StatefulSheetWrapper, StatefulSlider, StatefulSpacingGroup, StatefulSpacingGroupContainer, StatefulSpacingPresets, StatefulSwitch, StatefulTextAlign, StatefulTextGroup, StatefulTextGroupContainer, StatefulTextNormalize, StatefulTheme, StatefulTocContainer, StatefulTocTrigger, StatefulWordSpacing, StatefulZoom, UnstableStatefulFontWeight, createDefaultPlugin, useDocking, useGridNavigation, useGridTemplate, useLineHeight, useNavigator, usePublication, useReaderTransitions, useSpacingPresets } from '../../chunk-
|
|
1
|
+
import { ThPluginRegistry, createDefaultPlugin, ThPluginProvider, useSpacingPresets, useLineHeight, Peripherals, NavigatorProvider, thorium_web_reader_app_default, StatefulDockingWrapper, getReaderClassNames, StatefulReaderHeader, StatefulReaderFooter, useReaderTransitions, thorium_web_button_default } from '../../chunk-2JHEFF46.mjs';
|
|
2
|
+
export { StatefulActionIcon, StatefulBottomSheet, StatefulCollapsibleActionsBar, StatefulColumns, StatefulDockedSheet, StatefulDropdown, StatefulFontFamily, StatefulFullScreenSheet, StatefulFullscreenTrigger, StatefulGroupWrapper, StatefulHyphens, StatefulJumpToPositionContainer, StatefulJumpToPositionTrigger, StatefulLayout, StatefulLetterSpacing, StatefulLineHeight, StatefulNumberField, StatefulOverflowMenu, StatefulOverflowMenuItem, StatefulParagraphIndent, StatefulParagraphSpacing, StatefulPopoverSheet, StatefulPreferencesProvider, StatefulPublisherStyles, StatefulRadioGroup, StatefulSettingsContainer, StatefulSettingsTrigger, StatefulSheetWrapper, StatefulSlider, StatefulSpacingGroup, StatefulSpacingGroupContainer, StatefulSpacingPresets, StatefulSwitch, StatefulTextAlign, StatefulTextGroup, StatefulTextGroupContainer, StatefulTextNormalize, StatefulTheme, StatefulTocContainer, StatefulTocTrigger, StatefulWordSpacing, StatefulZoom, UnstableStatefulFontWeight, createDefaultPlugin, useDocking, useGridNavigation, useGridTemplate, useLineHeight, useNavigator, usePublication, useReaderTransitions, useSpacingPresets } from '../../chunk-2JHEFF46.mjs';
|
|
3
3
|
import { makeBreakpointsMap, isActiveElement } from '../../chunk-VH22EPOM.mjs';
|
|
4
4
|
export { canRenderProgressionFormat, getBestMatchingProgressionFormat, getSupportedProgressionFormats, isActiveElement, isInteractiveElement, isKeyboardTriggered, makeBreakpointsMap } from '../../chunk-VH22EPOM.mjs';
|
|
5
|
-
import { useFullscreen, useEpubNavigator, useLocalStorage, useTimeline, useDocumentTitle } from '../../chunk-
|
|
6
|
-
export { useEpubNavigator } from '../../chunk-
|
|
7
|
-
export { ThI18nProvider, Trans } from '../../chunk-
|
|
5
|
+
import { useFullscreen, useEpubNavigator, useLocalStorage, useTimeline, useDocumentTitle } from '../../chunk-VETE7ULS.mjs';
|
|
6
|
+
export { useEpubNavigator } from '../../chunk-VETE7ULS.mjs';
|
|
7
|
+
export { ThI18nProvider, Trans } from '../../chunk-EY4D4BZN.mjs';
|
|
8
8
|
import { useAppSelector, useAppDispatch, setReducedTransparency, setReducedMotion, setMonochrome, setForcedColors, setContrast, setColorScheme, setBreakpoint, setFullscreen, setTimeline, setImmersive, setHovering, toggleImmersive, useAppStore, toggleActionOpen, setDirection, setPlatformModifier, setReaderProfile, setRTL, setFXL, setHasDisplayTransformability, setUserNavigated, setScrollAffordance, debounce, setPublicationStart, setPublicationEnd, setTheme, setPositionsList, setLoading, setHasArrows } from '../../chunk-HE3WFPGE.mjs';
|
|
9
9
|
export { ThReduxPreferencesAdapter, ThStoreProvider, actionsSlice, activateDockPanel, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, handleSpacingSetting, initialSettingsState, initialWebPubSettingsState, makeStore, preferencesSlice, publicationSlice, readerSlice, setActionOpen, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setDockPanelWidth, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setHyphens, setImmersive, setL10n, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setOverflow, setPaginatedAffordance, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgressionFormat, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRunningHeadFormat, setScroll, setScrollAffordance, setScrollAffordances, setSettingsContainer, setSpacingPreset, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setUI, setUserNavigated, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLineHeight, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, setWordSpacing, settingsSlice, themeSlice, toggleActionOpen, toggleImmersive, updateFromPreferences, useAppDispatch, useAppSelector, useAppStore, webPubSettingsSlice } from '../../chunk-HE3WFPGE.mjs';
|
|
10
|
-
import { usePreferenceKeys, usePreferences, useTheming, prefixString, buildThemeObject } from '../../chunk-
|
|
11
|
-
export { ThPreferencesProvider, usePreferences, useTheming } from '../../chunk-
|
|
10
|
+
import { usePreferenceKeys, usePreferences, useTheming, prefixString, buildThemeObject, defaultFontFamilyOptions } from '../../chunk-IRA4ZKAX.mjs';
|
|
11
|
+
export { ThPreferencesProvider, usePreferences, useTheming } from '../../chunk-IRA4ZKAX.mjs';
|
|
12
12
|
import { propsToCSSVars } from '../../chunk-7CGMWOZN.mjs';
|
|
13
13
|
export { propsToCSSVars } from '../../chunk-7CGMWOZN.mjs';
|
|
14
14
|
import '../../chunk-BNPR6V7V.mjs';
|
|
15
15
|
import { getPlatformModifier } from '../../chunk-5LUMM7FW.mjs';
|
|
16
16
|
export { UnstableShortcutMetaKeywords, UnstableShortcutRepresentation, buildShortcut, defaultPlatformModifier, getPlatform, getPlatformModifier, isIOSish, isIpadOS, isMacish, metaKeys } from '../../chunk-5LUMM7FW.mjs';
|
|
17
17
|
import '../../chunk-NQ2ZSGCX.mjs';
|
|
18
|
-
import { useI18n } from '../../chunk-
|
|
19
|
-
export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../../chunk-
|
|
20
|
-
import
|
|
18
|
+
import { useI18n } from '../../chunk-IYAFKTPL.mjs';
|
|
19
|
+
export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../../chunk-IYAFKTPL.mjs';
|
|
20
|
+
import '../../chunk-B3WDMWCT.mjs';
|
|
21
21
|
import { ThNavigationButton } from '../../chunk-GZDYMUV7.mjs';
|
|
22
22
|
import { usePrevious } from '../../chunk-YZ73DHRU.mjs';
|
|
23
23
|
import '../../chunk-MLEYTQGK.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useI18n } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
import { useI18n } from '../../chunk-IYAFKTPL.mjs';
|
|
2
|
+
import '../../chunk-B3WDMWCT.mjs';
|
|
3
3
|
import { ThGrid, ThLoader } from '../../chunk-GZDYMUV7.mjs';
|
|
4
4
|
import '../../chunk-YZ73DHRU.mjs';
|
|
5
5
|
import '../../chunk-MLEYTQGK.mjs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { S as StatefulReaderProps } from '../../StatefulReader-
|
|
2
|
-
export { a7 as ScrimPref, e as StatefulActionContainerProps, n as StatefulActionIcon, m as StatefulActionIconProps, d as StatefulActionTriggerProps, c as StatefulActionsMapObject, a8 as StatefulBottomSheet, a6 as StatefulBottomSheetProps, r as StatefulCollapsibleActionsBar, q as StatefulCollapsibleActionsBarProps, aa as StatefulDockedSheet, a9 as StatefulDockedSheetProps, A as StatefulDropdown, z as StatefulDropdownProps, Z as StatefulFontFamily, ac as StatefulFullScreenSheet, ab as StatefulFullScreenSheetProps, f as StatefulFullscreenTrigger, y as StatefulGroupWrapper, x as StatefulGroupWrapperProps, $ as StatefulHyphens, g as StatefulJumpToPositionContainer, h as StatefulJumpToPositionTrigger, N as StatefulLetterSpacing, O as StatefulLineHeight, C as StatefulNumberField, B as StatefulNumberFieldProps, t as StatefulOverflowMenu, p as StatefulOverflowMenuItem, o as StatefulOverflowMenuItemProps, s as StatefulOverflowMenuProps, P as StatefulParagraphIndent, Q as StatefulParagraphSpacing, ae as StatefulPopoverSheet, ad as StatefulPopoverSheetProps, ah as StatefulPreferencesProvider, a4 as StatefulPublisherStyles, E as StatefulRadioGroup, D as StatefulRadioGroupProps, i as StatefulSettingsContainer, M as StatefulSettingsItemProps, j as StatefulSettingsTrigger, ag as StatefulSheet, af as StatefulSheetWrapper, G as StatefulSlider, F as StatefulSliderProps, R as StatefulSpacingGroup, U as StatefulSpacingGroupContainer, V as StatefulSpacingPresets, I as StatefulSwitch, H as StatefulSwitchProps, a0 as StatefulTextAlign, a1 as StatefulTextGroup, a2 as StatefulTextGroupContainer, a3 as StatefulTextNormalize, k as StatefulTocContainer, l as StatefulTocTrigger, W as StatefulWordSpacing, a5 as StatefulZoom, T as ThPlugin, _ as UnstableStatefulFontWeight, w as createDefaultPlugin, v as useDocking, K as useGridNavigation, J as useGridNavigationProps, L as useGridTemplate, X as useLineHeight, u as useNavigator, a as usePublication, b as useReaderTransitions, Y as useSpacingPresets } from '../../StatefulReader-
|
|
1
|
+
import { S as StatefulReaderProps } from '../../StatefulReader-BjH7bkU1.mjs';
|
|
2
|
+
export { a7 as ScrimPref, e as StatefulActionContainerProps, n as StatefulActionIcon, m as StatefulActionIconProps, d as StatefulActionTriggerProps, c as StatefulActionsMapObject, a8 as StatefulBottomSheet, a6 as StatefulBottomSheetProps, r as StatefulCollapsibleActionsBar, q as StatefulCollapsibleActionsBarProps, aa as StatefulDockedSheet, a9 as StatefulDockedSheetProps, A as StatefulDropdown, z as StatefulDropdownProps, Z as StatefulFontFamily, ac as StatefulFullScreenSheet, ab as StatefulFullScreenSheetProps, f as StatefulFullscreenTrigger, y as StatefulGroupWrapper, x as StatefulGroupWrapperProps, $ as StatefulHyphens, g as StatefulJumpToPositionContainer, h as StatefulJumpToPositionTrigger, N as StatefulLetterSpacing, O as StatefulLineHeight, C as StatefulNumberField, B as StatefulNumberFieldProps, t as StatefulOverflowMenu, p as StatefulOverflowMenuItem, o as StatefulOverflowMenuItemProps, s as StatefulOverflowMenuProps, P as StatefulParagraphIndent, Q as StatefulParagraphSpacing, ae as StatefulPopoverSheet, ad as StatefulPopoverSheetProps, ah as StatefulPreferencesProvider, a4 as StatefulPublisherStyles, E as StatefulRadioGroup, D as StatefulRadioGroupProps, i as StatefulSettingsContainer, M as StatefulSettingsItemProps, j as StatefulSettingsTrigger, ag as StatefulSheet, af as StatefulSheetWrapper, G as StatefulSlider, F as StatefulSliderProps, R as StatefulSpacingGroup, U as StatefulSpacingGroupContainer, V as StatefulSpacingPresets, I as StatefulSwitch, H as StatefulSwitchProps, a0 as StatefulTextAlign, a1 as StatefulTextGroup, a2 as StatefulTextGroupContainer, a3 as StatefulTextNormalize, k as StatefulTocContainer, l as StatefulTocTrigger, W as StatefulWordSpacing, a5 as StatefulZoom, T as ThPlugin, _ as UnstableStatefulFontWeight, w as createDefaultPlugin, v as useDocking, K as useGridNavigation, J as useGridNavigationProps, L as useGridTemplate, X as useLineHeight, u as useNavigator, a as usePublication, b as useReaderTransitions, Y as useSpacingPresets } from '../../StatefulReader-BjH7bkU1.mjs';
|
|
3
3
|
export { canRenderProgressionFormat, getBestMatchingProgressionFormat, getPlatform, getSupportedProgressionFormats, isActiveElement, isIOSish, isInteractiveElement, isIpadOS, isKeyboardTriggered, isMacish, makeBreakpointsMap, propsToCSSVars } from '../../core/Helpers/index.mjs';
|
|
4
4
|
export { U as UnstableKey, a as UnstableMetaKey, c as UnstableMetaKeys, g as UnstablePShortcut, b as UnstablePlatformModifier, f as UnstableShortcut, d as UnstableShortcutMetaKeywords, e as UnstableShortcutRepresentation, j as buildShortcut, h as defaultPlatformModifier, i as getPlatformModifier, m as metaKeys } from '../../keyboardUtilities-BWAyLS_D.mjs';
|
|
5
5
|
export { AppDispatch, AppState, AppStore, L10nObject, LineLengthStateObject, PaginatedAffordanceObject, PaginatedAffordancePayload, PaginatedAffordanceProperties, PreferencesReducerState, PublicationReducerState, ReaderReducerState, RenditionChangePayload, RenditionObject, RenditionProperties, RootState, SetLineLengthPayload, SetSpacingPresetPayload, SetSpacingSettingPayload, SettingsReducerState, SpacingStateKey, SpacingStateObject, ThReduxPreferencesAdapter, ThStoreProvider, ThemeReducerState, ThemeStateChangePayload, ThemeStateObject, UIChangePayload, WebPubSettingsReducerState, handleSpacingSetting, initialSettingsState, initialWebPubSettingsState, makeStore, preferencesSlice, publicationSlice, readerSlice, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setHyphens, setImmersive, setL10n, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setPaginatedAffordance, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgressionFormat, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRunningHeadFormat, setScroll, setScrollAffordance, setScrollAffordances, setSettingsContainer, setSpacingPreset, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setUI, setUserNavigated, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLineHeight, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, setWordSpacing, settingsSlice, themeSlice, toggleImmersive, updateFromPreferences, useAppDispatch, useAppSelector, useAppStore, webPubSettingsSlice } from '../../lib/index.mjs';
|
|
6
6
|
export { f as ActionOverflowOpenPayload, c as ActionStateDockPayload, g as ActionStateDockedPayload, a as ActionStateObject, d as ActionStateOpenPayload, h as ActionStateSlotPayload, i as ActionStateSlotWidthPayload, e as ActionStateTogglePayload, k as ActionsReducerState, A as ActionsStateKeys, j as DockState, D as DockStateObject, O as OverflowStateKeys, b as OverflowStateObject, l as actionsSlice, o as activateDockPanel, q as collapseDockPanel, p as deactivateDockPanel, m as dockAction, r as expandDockPanel, s as setActionOpen, u as setDockPanelWidth, n as setOverflow, t as toggleActionOpen } from '../../actionsReducer-BKoeohBu.mjs';
|
|
7
|
-
import { d as defaultFontFamilyOptions } from '../../ThPreferencesAdapter-
|
|
8
|
-
export { u as useTheming } from '../../ThPreferencesAdapter-
|
|
9
|
-
export { T as ThPreferencesProvider, u as usePreferences } from '../../usePreferences-
|
|
7
|
+
import { d as defaultFontFamilyOptions } from '../../ThPreferencesAdapter-x_D4c7wI.mjs';
|
|
8
|
+
export { u as useTheming } from '../../ThPreferencesAdapter-x_D4c7wI.mjs';
|
|
9
|
+
export { T as ThPreferencesProvider, u as usePreferences } from '../../usePreferences-CRjFlZvF.mjs';
|
|
10
10
|
export { Trans } from 'react-i18next';
|
|
11
11
|
export { DEFAULT_CONFIG, ThI18nProvider, initI18n, useI18n } from '../../i18n/index.mjs';
|
|
12
12
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ThPluginRegistry, createDefaultPlugin, ThPluginProvider, useSpacingPresets, useLineHeight, Peripherals, NavigatorProvider, thorium_web_reader_app_default, StatefulDockingWrapper, StatefulReaderHeader, StatefulReaderFooter, getReaderClassNames } from '../../chunk-
|
|
2
|
-
export { StatefulActionIcon, StatefulBottomSheet, StatefulCollapsibleActionsBar, StatefulDockedSheet, StatefulDropdown, StatefulFontFamily, StatefulFullScreenSheet, StatefulFullscreenTrigger, StatefulGroupWrapper, StatefulHyphens, StatefulJumpToPositionContainer, StatefulJumpToPositionTrigger, StatefulLetterSpacing, StatefulLineHeight, StatefulNumberField, StatefulOverflowMenu, StatefulOverflowMenuItem, StatefulParagraphIndent, StatefulParagraphSpacing, StatefulPopoverSheet, StatefulPreferencesProvider, StatefulPublisherStyles, StatefulRadioGroup, StatefulSettingsContainer, StatefulSettingsTrigger, StatefulSheetWrapper, StatefulSlider, StatefulSpacingGroup, StatefulSpacingGroupContainer, StatefulSpacingPresets, StatefulSwitch, StatefulTextAlign, StatefulTextGroup, StatefulTextGroupContainer, StatefulTextNormalize, StatefulTocContainer, StatefulTocTrigger, StatefulWordSpacing, StatefulZoom, UnstableStatefulFontWeight, createDefaultPlugin, useDocking, useGridNavigation, useGridTemplate, useLineHeight, useNavigator, usePublication, useReaderTransitions, useSpacingPresets } from '../../chunk-
|
|
1
|
+
import { ThPluginRegistry, createDefaultPlugin, ThPluginProvider, useSpacingPresets, useLineHeight, Peripherals, NavigatorProvider, thorium_web_reader_app_default, StatefulDockingWrapper, StatefulReaderHeader, StatefulReaderFooter, getReaderClassNames } from '../../chunk-2JHEFF46.mjs';
|
|
2
|
+
export { StatefulActionIcon, StatefulBottomSheet, StatefulCollapsibleActionsBar, StatefulDockedSheet, StatefulDropdown, StatefulFontFamily, StatefulFullScreenSheet, StatefulFullscreenTrigger, StatefulGroupWrapper, StatefulHyphens, StatefulJumpToPositionContainer, StatefulJumpToPositionTrigger, StatefulLetterSpacing, StatefulLineHeight, StatefulNumberField, StatefulOverflowMenu, StatefulOverflowMenuItem, StatefulParagraphIndent, StatefulParagraphSpacing, StatefulPopoverSheet, StatefulPreferencesProvider, StatefulPublisherStyles, StatefulRadioGroup, StatefulSettingsContainer, StatefulSettingsTrigger, StatefulSheetWrapper, StatefulSlider, StatefulSpacingGroup, StatefulSpacingGroupContainer, StatefulSpacingPresets, StatefulSwitch, StatefulTextAlign, StatefulTextGroup, StatefulTextGroupContainer, StatefulTextNormalize, StatefulTocContainer, StatefulTocTrigger, StatefulWordSpacing, StatefulZoom, UnstableStatefulFontWeight, createDefaultPlugin, useDocking, useGridNavigation, useGridTemplate, useLineHeight, useNavigator, usePublication, useReaderTransitions, useSpacingPresets } from '../../chunk-2JHEFF46.mjs';
|
|
3
3
|
export { canRenderProgressionFormat, getBestMatchingProgressionFormat, getSupportedProgressionFormats, isActiveElement, isInteractiveElement, isKeyboardTriggered, makeBreakpointsMap } from '../../chunk-VH22EPOM.mjs';
|
|
4
|
-
import { useFullscreen, useWebPubNavigator, useLocalStorage, useTimeline, useDocumentTitle } from '../../chunk-
|
|
5
|
-
export { useWebPubNavigator } from '../../chunk-
|
|
6
|
-
export { ThI18nProvider, Trans } from '../../chunk-
|
|
4
|
+
import { useFullscreen, useWebPubNavigator, useLocalStorage, useTimeline, useDocumentTitle } from '../../chunk-VETE7ULS.mjs';
|
|
5
|
+
export { useWebPubNavigator } from '../../chunk-VETE7ULS.mjs';
|
|
6
|
+
export { ThI18nProvider, Trans } from '../../chunk-EY4D4BZN.mjs';
|
|
7
7
|
import { useAppSelector, useAppDispatch, setReducedTransparency, setReducedMotion, setMonochrome, setForcedColors, setContrast, setColorScheme, setBreakpoint, setFullscreen, setTimeline, setHovering, toggleImmersive, useAppStore, toggleActionOpen, setDirection, setPlatformModifier, setReaderProfile, setRTL, setHasDisplayTransformability, setLoading, setPublicationStart, setPublicationEnd } from '../../chunk-HE3WFPGE.mjs';
|
|
8
8
|
export { ThReduxPreferencesAdapter, ThStoreProvider, actionsSlice, activateDockPanel, collapseDockPanel, deactivateDockPanel, dockAction, expandDockPanel, handleSpacingSetting, initialSettingsState, initialWebPubSettingsState, makeStore, preferencesSlice, publicationSlice, readerSlice, setActionOpen, setBreakpoint, setColorScheme, setColumnCount, setContrast, setDirection, setDockPanelWidth, setFXL, setFontFamily, setFontSize, setFontWeight, setForcedColors, setFullscreen, setHasArrows, setHasDisplayTransformability, setHovering, setHyphens, setImmersive, setL10n, setLetterSpacing, setLineHeight, setLineLength, setLoading, setMonochrome, setOverflow, setPaginatedAffordance, setParagraphIndent, setParagraphSpacing, setPlatformModifier, setPositionsList, setProgressionFormat, setPublicationEnd, setPublicationStart, setPublisherStyles, setRTL, setReaderProfile, setReducedMotion, setReducedTransparency, setRunningHeadFormat, setScroll, setScrollAffordance, setScrollAffordances, setSettingsContainer, setSpacingPreset, setTextAlign, setTextNormalization, setTheme, setTimeline, setTocEntry, setTocTree, setUI, setUserNavigated, setWebPubFontFamily, setWebPubFontWeight, setWebPubHyphens, setWebPubLetterSpacing, setWebPubLineHeight, setWebPubParagraphIndent, setWebPubParagraphSpacing, setWebPubPublisherStyles, setWebPubSpacingPreset, setWebPubTextAlign, setWebPubTextNormalization, setWebPubWordSpacing, setWebPubZoom, setWordSpacing, settingsSlice, themeSlice, toggleActionOpen, toggleImmersive, updateFromPreferences, useAppDispatch, useAppSelector, useAppStore, webPubSettingsSlice } from '../../chunk-HE3WFPGE.mjs';
|
|
9
|
-
import { usePreferences, useTheming, prefixString } from '../../chunk-
|
|
10
|
-
export { ThPreferencesProvider, usePreferences, useTheming } from '../../chunk-
|
|
9
|
+
import { usePreferences, useTheming, prefixString, defaultFontFamilyOptions } from '../../chunk-IRA4ZKAX.mjs';
|
|
10
|
+
export { ThPreferencesProvider, usePreferences, useTheming } from '../../chunk-IRA4ZKAX.mjs';
|
|
11
11
|
import { propsToCSSVars } from '../../chunk-7CGMWOZN.mjs';
|
|
12
12
|
export { propsToCSSVars } from '../../chunk-7CGMWOZN.mjs';
|
|
13
13
|
import '../../chunk-BNPR6V7V.mjs';
|
|
14
14
|
import { getPlatformModifier } from '../../chunk-5LUMM7FW.mjs';
|
|
15
15
|
export { UnstableShortcutMetaKeywords, UnstableShortcutRepresentation, buildShortcut, defaultPlatformModifier, getPlatform, getPlatformModifier, isIOSish, isIpadOS, isMacish, metaKeys } from '../../chunk-5LUMM7FW.mjs';
|
|
16
16
|
import '../../chunk-NQ2ZSGCX.mjs';
|
|
17
|
-
import { useI18n } from '../../chunk-
|
|
18
|
-
export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../../chunk-
|
|
19
|
-
import
|
|
17
|
+
import { useI18n } from '../../chunk-IYAFKTPL.mjs';
|
|
18
|
+
export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../../chunk-IYAFKTPL.mjs';
|
|
19
|
+
import '../../chunk-B3WDMWCT.mjs';
|
|
20
20
|
import '../../chunk-GZDYMUV7.mjs';
|
|
21
21
|
import '../../chunk-YZ73DHRU.mjs';
|
|
22
22
|
import '../../chunk-MLEYTQGK.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { timelineInstance, useDocumentTitle, useEpubNavigator, useFullscreen, useIsClient, useLocalStorage, useTimeline, useWebPubNavigator } from '../../chunk-
|
|
1
|
+
export { timelineInstance, useDocumentTitle, useEpubNavigator, useFullscreen, useIsClient, useLocalStorage, useTimeline, useWebPubNavigator } from '../../chunk-VETE7ULS.mjs';
|
|
2
2
|
export { useBreakpoints, useForcedColors, useMonochrome, useReducedMotion, useReducedTransparency } from '../../chunk-BNPR6V7V.mjs';
|
|
3
3
|
export { ThColorScheme, ThContrast, useColorScheme, useContrast, useMediaQuery } from '../../chunk-NQ2ZSGCX.mjs';
|
|
4
4
|
export { usePrevious } from '../../chunk-YZ73DHRU.mjs';
|
package/dist/i18n/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ThI18nProvider, Trans } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ThI18nProvider, Trans } from '../chunk-EY4D4BZN.mjs';
|
|
2
|
+
import '../chunk-IRA4ZKAX.mjs';
|
|
3
3
|
import '../chunk-7CGMWOZN.mjs';
|
|
4
4
|
import '../chunk-BNPR6V7V.mjs';
|
|
5
5
|
import '../chunk-5LUMM7FW.mjs';
|
|
6
6
|
import '../chunk-NQ2ZSGCX.mjs';
|
|
7
|
-
export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
export { DEFAULT_CONFIG, i18n, initI18n, useI18n } from '../chunk-IYAFKTPL.mjs';
|
|
8
|
+
import '../chunk-B3WDMWCT.mjs';
|
|
9
9
|
import '../chunk-MLEYTQGK.mjs';
|
|
10
10
|
import '../chunk-CVM2ZAPL.mjs';
|
|
11
11
|
//# sourceMappingURL=index.mjs.map
|
package/dist/lib/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ import { W as WritableDraft, k as ActionsReducerState } from '../actionsReducer-
|
|
|
5
5
|
export { f as ActionOverflowOpenPayload, c as ActionStateDockPayload, g as ActionStateDockedPayload, a as ActionStateObject, d as ActionStateOpenPayload, h as ActionStateSlotPayload, i as ActionStateSlotWidthPayload, e as ActionStateTogglePayload, A as ActionsStateKeys, j as DockState, D as DockStateObject, O as OverflowStateKeys, b as OverflowStateObject, l as actionsSlice, o as activateDockPanel, q as collapseDockPanel, p as deactivateDockPanel, m as dockAction, r as expandDockPanel, s as setActionOpen, u as setDockPanelWidth, n as setOverflow, t as toggleActionOpen } from '../actionsReducer-BKoeohBu.mjs';
|
|
6
6
|
import { b as UnstablePlatformModifier } from '../keyboardUtilities-BWAyLS_D.mjs';
|
|
7
7
|
import { v as ThLayoutDirection, q as ThSettingsContainerKeys, T as ThLineHeightOptions, i as ThSpacingPresetKeys, h as ThSpacingSettingsKeys, a as ThTextAlignOptions, b as ThBreakpoints, o as ThProgressionFormat, n as ThRunningHeadFormat, j as ThLayoutUI } from '../enums-CBaXSsr9.mjs';
|
|
8
|
-
import { d as defaultFontFamilyOptions, y as ThPaginatedAffordancePrefValue, a as ThPreferences, C as CustomizableKeys, T as ThPreferencesAdapter } from '../ThPreferencesAdapter-
|
|
8
|
+
import { d as defaultFontFamilyOptions, y as ThPaginatedAffordancePrefValue, a as ThPreferences, C as CustomizableKeys, T as ThPreferencesAdapter } from '../ThPreferencesAdapter-x_D4c7wI.mjs';
|
|
9
9
|
import { T as ThColorScheme, a as ThContrast } from '../useContrast-Cgsrl7GS.mjs';
|
|
10
10
|
import { Locator } from '@readium/shared';
|
|
11
11
|
import { U as UnstableTimeline } from '../useTimeline-DyMx_aWY.mjs';
|
|
@@ -119,15 +119,9 @@
|
|
|
119
119
|
},
|
|
120
120
|
"progression": {
|
|
121
121
|
"percentage": "{{ percentage }}%",
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
"positionsLeftInChapter": {
|
|
126
|
-
"other": "{{ count }} tilbage i nuværende kapitel"
|
|
127
|
-
},
|
|
128
|
-
"positionsLeftInPublication": {
|
|
129
|
-
"other": "{{ count }} tilbage i bogen"
|
|
130
|
-
},
|
|
122
|
+
"positionsLeftInChapter_other": "{{ count }} tilbage i nuværende kapitel",
|
|
123
|
+
"positionsLeftInPublication_other": "{{ count }} tilbage i bogen",
|
|
124
|
+
"positionsLeft_other": "{{ count }} tilbage",
|
|
131
125
|
"range": "{{ start }}–{{ end }}",
|
|
132
126
|
"xOfY": {
|
|
133
127
|
"compact": "{{ x }} af {{ y }}",
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"compact": "Next",
|
|
38
38
|
"descriptive": "Next page"
|
|
39
39
|
},
|
|
40
|
+
"goToNextSentence": {
|
|
41
|
+
"compact": "Next",
|
|
42
|
+
"descriptive": "Next sentence"
|
|
43
|
+
},
|
|
40
44
|
"goToPosition": {
|
|
41
45
|
"compact": "Go to…",
|
|
42
46
|
"descriptive": "Go to position"
|
|
@@ -48,9 +52,14 @@
|
|
|
48
52
|
"goToPreviousPage": {
|
|
49
53
|
"compact": "Previous",
|
|
50
54
|
"descriptive": "Previous page"
|
|
55
|
+
},
|
|
56
|
+
"goToPreviousSentence": {
|
|
57
|
+
"compact": "Previous",
|
|
58
|
+
"descriptive": "Previous sentence"
|
|
51
59
|
}
|
|
52
60
|
},
|
|
53
61
|
"preferences": {
|
|
62
|
+
"brightness": "Brightness",
|
|
54
63
|
"columns": {
|
|
55
64
|
"auto": "Auto",
|
|
56
65
|
"dual": {
|
|
@@ -63,6 +72,18 @@
|
|
|
63
72
|
},
|
|
64
73
|
"title": "Columns"
|
|
65
74
|
},
|
|
75
|
+
"fit": {
|
|
76
|
+
"auto": {
|
|
77
|
+
"compact": "Auto"
|
|
78
|
+
},
|
|
79
|
+
"page": {
|
|
80
|
+
"compact": "Page"
|
|
81
|
+
},
|
|
82
|
+
"title": "Fit",
|
|
83
|
+
"width": {
|
|
84
|
+
"compact": "Width"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
66
87
|
"fontFamily": {
|
|
67
88
|
"humanist": {
|
|
68
89
|
"compact": "Humanist",
|
|
@@ -104,12 +125,28 @@
|
|
|
104
125
|
"small": "Tight",
|
|
105
126
|
"title": "Line height"
|
|
106
127
|
},
|
|
128
|
+
"offsetFirstPage": "Display first page on its own",
|
|
107
129
|
"paragraphIndent": "Paragraph indent",
|
|
108
130
|
"paragraphSpacing": "Paragraph spacing",
|
|
109
131
|
"publisherStyles": {
|
|
110
132
|
"label": "Use original formatting",
|
|
111
133
|
"title": "Publisher styles"
|
|
112
134
|
},
|
|
135
|
+
"readingDirection": {
|
|
136
|
+
"default": {
|
|
137
|
+
"compact": "Default",
|
|
138
|
+
"descriptive": "Use original reading direction"
|
|
139
|
+
},
|
|
140
|
+
"ltr": {
|
|
141
|
+
"compact": "Right",
|
|
142
|
+
"descriptive": "Left to right"
|
|
143
|
+
},
|
|
144
|
+
"rtl": {
|
|
145
|
+
"compact": "Left",
|
|
146
|
+
"descriptive": "Right to left"
|
|
147
|
+
},
|
|
148
|
+
"title": "Reading direction"
|
|
149
|
+
},
|
|
113
150
|
"spacing": {
|
|
114
151
|
"presets": {
|
|
115
152
|
"accessible": "Accessible",
|
|
@@ -122,6 +159,18 @@
|
|
|
122
159
|
},
|
|
123
160
|
"title": "Spacing"
|
|
124
161
|
},
|
|
162
|
+
"spread": {
|
|
163
|
+
"always": {
|
|
164
|
+
"compact": "Dual page"
|
|
165
|
+
},
|
|
166
|
+
"auto": {
|
|
167
|
+
"compact": "Auto"
|
|
168
|
+
},
|
|
169
|
+
"never": {
|
|
170
|
+
"compact": "Single page"
|
|
171
|
+
},
|
|
172
|
+
"title": "Spread"
|
|
173
|
+
},
|
|
125
174
|
"text": "Text",
|
|
126
175
|
"textAlign": {
|
|
127
176
|
"default": "Default",
|
|
@@ -140,6 +189,7 @@
|
|
|
140
189
|
"contrast2": "Contrast 2",
|
|
141
190
|
"contrast3": "Contrast 3",
|
|
142
191
|
"dark": "Dark",
|
|
192
|
+
"gray": "Gray",
|
|
143
193
|
"light": "Light",
|
|
144
194
|
"paper": "Paper",
|
|
145
195
|
"sepia": "Sepia",
|
|
@@ -150,31 +200,19 @@
|
|
|
150
200
|
"zoom": "Zoom"
|
|
151
201
|
},
|
|
152
202
|
"progression": {
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
},
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
"other": "{{ count }} pages left in chapter"
|
|
160
|
-
},
|
|
161
|
-
"pagesLeftInPublication": {
|
|
162
|
-
"one": "{{ count }} page left in publication",
|
|
163
|
-
"other": "{{ count }} pages left in publication"
|
|
164
|
-
},
|
|
203
|
+
"pagesLeftInChapter_one": "{{ count }} page left in chapter",
|
|
204
|
+
"pagesLeftInChapter_other": "{{ count }} pages left in chapter",
|
|
205
|
+
"pagesLeftInPublication_one": "{{ count }} page left in publication",
|
|
206
|
+
"pagesLeftInPublication_other": "{{ count }} pages left in publication",
|
|
207
|
+
"pagesLeft_one": "{{ count }} page left",
|
|
208
|
+
"pagesLeft_other": "{{ count }} pages left",
|
|
165
209
|
"percentage": "{{ percentage }}%",
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
"other": "{{ count }} positions left in chapter"
|
|
173
|
-
},
|
|
174
|
-
"positionsLeftInPublication": {
|
|
175
|
-
"one": "{{ count }} position left in publication",
|
|
176
|
-
"other": "{{ count }} positions left in publication"
|
|
177
|
-
},
|
|
210
|
+
"positionsLeftInChapter_one": "{{ count }} position left in chapter",
|
|
211
|
+
"positionsLeftInChapter_other": "{{ count }} positions left in chapter",
|
|
212
|
+
"positionsLeftInPublication_one": "{{ count }} position left in publication",
|
|
213
|
+
"positionsLeftInPublication_other": "{{ count }} positions left in publication",
|
|
214
|
+
"positionsLeft_one": "{{ count }} position left",
|
|
215
|
+
"positionsLeft_other": "{{ count }} positions left",
|
|
178
216
|
"range": "{{ start }}–{{ end }}",
|
|
179
217
|
"xOfY": {
|
|
180
218
|
"compact": "{{ x }} of {{ y }}",
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
{
|
|
2
|
+
"common": {
|
|
3
|
+
"actions": {
|
|
4
|
+
"cancel": "Katkesta",
|
|
5
|
+
"close": "Sulge",
|
|
6
|
+
"collapse": "Ahenda vaadet",
|
|
7
|
+
"collapseAll": "Ahenda kõik",
|
|
8
|
+
"expand": "Laienda vaadet",
|
|
9
|
+
"expandAll": "Laienda kõik",
|
|
10
|
+
"search": "Otsi"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
2
13
|
"reader": {
|
|
3
14
|
"actions": {
|
|
4
15
|
"goBackward": "Mine tagasi",
|
|
@@ -16,18 +27,12 @@
|
|
|
16
27
|
}
|
|
17
28
|
},
|
|
18
29
|
"progression": {
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"other": "Peatükis on jäänud {{ count }} lehte"
|
|
26
|
-
},
|
|
27
|
-
"pagesLeftInPublication": {
|
|
28
|
-
"one": "Köites on jäänud {{ count }} leht",
|
|
29
|
-
"other": "Köites on jäänud {{ count }} lehte"
|
|
30
|
-
}
|
|
30
|
+
"pagesLeftInChapter_one": "Peatükis on jäänud {{ count }} leht",
|
|
31
|
+
"pagesLeftInChapter_other": "Peatükis on jäänud {{ count }} lehte",
|
|
32
|
+
"pagesLeftInPublication_one": "Köites on jäänud {{ count }} leht",
|
|
33
|
+
"pagesLeftInPublication_other": "Köites on jäänud {{ count }} lehte",
|
|
34
|
+
"pagesLeft_one": "Jäänud on {{ count }} leht",
|
|
35
|
+
"pagesLeft_other": "Jäänud on {{ count }} lehte"
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
}
|