@atlaskit/media-document-viewer 0.6.9 → 0.6.10
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/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { PageRangeContent } from './types';
|
|
1
|
+
import type { Font, PageContent, PageRangeContent } from './types';
|
|
2
2
|
export declare function usePageContent(getContent: (startIndex: number, endIndex: number) => Promise<PageRangeContent>, paginationSize: number): {
|
|
3
3
|
getPageContent: (pageInd: number) => {
|
|
4
|
-
page:
|
|
5
|
-
fonts: readonly
|
|
4
|
+
page: PageContent;
|
|
5
|
+
fonts: readonly Font[];
|
|
6
6
|
};
|
|
7
7
|
loadPageContent: (pageInd: number) => Promise<void>;
|
|
8
8
|
documentMetadata: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
1
2
|
export declare const useIntersectionObserver: (options: IntersectionObserverInit, onVisible: () => void) => {
|
|
2
3
|
observedRef: (node: HTMLElement | null) => void;
|
|
3
|
-
isVisibleRef:
|
|
4
|
+
isVisibleRef: MutableRefObject<boolean>;
|
|
4
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { PageRangeContent } from './types';
|
|
1
|
+
import type { Font, PageContent, PageRangeContent } from './types';
|
|
2
2
|
export declare function usePageContent(getContent: (startIndex: number, endIndex: number) => Promise<PageRangeContent>, paginationSize: number): {
|
|
3
3
|
getPageContent: (pageInd: number) => {
|
|
4
|
-
page:
|
|
5
|
-
fonts: readonly
|
|
4
|
+
page: PageContent;
|
|
5
|
+
fonts: readonly Font[];
|
|
6
6
|
};
|
|
7
7
|
loadPageContent: (pageInd: number) => Promise<void>;
|
|
8
8
|
documentMetadata: {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
1
2
|
export declare const useIntersectionObserver: (options: IntersectionObserverInit, onVisible: () => void) => {
|
|
2
3
|
observedRef: (node: HTMLElement | null) => void;
|
|
3
|
-
isVisibleRef:
|
|
4
|
+
isVisibleRef: MutableRefObject<boolean>;
|
|
4
5
|
};
|
package/package.json
CHANGED
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@atlaskit/media-common": "^13.0.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
31
31
|
"@atlaskit/primitives": "^18.1.0",
|
|
32
|
-
"@atlaskit/spinner": "^19.
|
|
33
|
-
"@atlaskit/tokens": "^
|
|
32
|
+
"@atlaskit/spinner": "^19.1.0",
|
|
33
|
+
"@atlaskit/tokens": "^12.0.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
35
|
"@compiled/react": "^0.20.0"
|
|
36
36
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@af/integration-testing": "workspace:^",
|
|
42
42
|
"@af/visual-regression": "workspace:^",
|
|
43
43
|
"@atlaskit/ssr": "workspace:^",
|
|
44
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
44
|
+
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
45
45
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
46
46
|
"@testing-library/react": "^16.3.0",
|
|
47
47
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
}
|
|
89
89
|
},
|
|
90
90
|
"name": "@atlaskit/media-document-viewer",
|
|
91
|
-
"version": "0.6.
|
|
91
|
+
"version": "0.6.10",
|
|
92
92
|
"description": "Modern and fast document viewer",
|
|
93
93
|
"author": "Atlassian Pty Ltd",
|
|
94
94
|
"license": "Apache-2.0",
|