@swisper.ai/web-file-preview 0.0.2 → 0.0.4
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/components/file-preview/components/renderer-types.d.ts +4 -1
- package/dist/components/file-preview/components/renderer-types.d.ts.map +1 -1
- package/dist/components/file-preview/components/viewer/viewer-components.stories.d.ts.map +1 -1
- package/dist/components/file-preview/file-preview.d.ts.map +1 -1
- package/dist/components/file-preview/file-preview.stories.d.ts +49 -2
- package/dist/components/file-preview/file-preview.stories.d.ts.map +1 -1
- package/dist/components/file-thumbnail/components/previews/html-preview.d.ts.map +1 -1
- package/dist/components/file-thumbnail/components/previews/image-preview.d.ts.map +1 -1
- package/dist/components/file-thumbnail/components/previews/markdown-preview.d.ts.map +1 -1
- package/dist/components/file-thumbnail/components/previews/reveal-class-name.d.ts +4 -2
- package/dist/components/file-thumbnail/components/previews/reveal-class-name.d.ts.map +1 -1
- package/dist/components/file-thumbnail/components/previews/scaled-page.d.ts +4 -1
- package/dist/components/file-thumbnail/components/previews/scaled-page.d.ts.map +1 -1
- package/dist/components/file-thumbnail/file-thumbnail.d.ts +2 -0
- package/dist/components/file-thumbnail/file-thumbnail.d.ts.map +1 -1
- package/dist/components/file-thumbnail/file-thumbnail.stories.d.ts +76 -10
- package/dist/components/file-thumbnail/file-thumbnail.stories.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +50 -33
- package/dist/index.es.js.map +1 -1
- package/package.json +14 -6
- package/src/__storybook__/parent-block.tsx +21 -0
- package/src/components/file-preview/__stories__/fixtures.ts +66 -0
- package/src/components/file-preview/components/renderer-types.ts +4 -1
- package/src/components/file-preview/components/viewer/viewer-components.stories.tsx +2 -8
- package/src/components/file-preview/file-preview.json +15 -0
- package/src/components/file-preview/file-preview.stories.tsx +378 -38
- package/src/components/file-preview/file-preview.tsx +7 -2
- package/src/components/file-thumbnail/__stories__/fixtures.ts +99 -0
- package/src/components/file-thumbnail/__stories__/types.ts +26 -0
- package/src/components/file-thumbnail/components/previews/html-preview.tsx +5 -1
- package/src/components/file-thumbnail/components/previews/image-preview.tsx +3 -1
- package/src/components/file-thumbnail/components/previews/markdown-preview.tsx +5 -1
- package/src/components/file-thumbnail/components/previews/reveal-class-name.ts +8 -8
- package/src/components/file-thumbnail/components/previews/scaled-page.tsx +6 -1
- package/src/components/file-thumbnail/file-thumbnail.json +17 -1
- package/src/components/file-thumbnail/file-thumbnail.stories.tsx +551 -84
- package/src/components/file-thumbnail/file-thumbnail.tsx +24 -7
- /package/src/components/file-thumbnail/components/shared/__tests__/{generation-queue.spec.ts → generation-queue.test.ts} +0 -0
- /package/src/components/file-thumbnail/hooks/__tests__/{use-object-url.spec.ts → use-object-url.test.ts} +0 -0
- /package/src/lib/__tests__/{file-kinds.spec.ts → file-kinds.test.ts} +0 -0
|
@@ -16,7 +16,10 @@ export interface FilePreviewRendererProps {
|
|
|
16
16
|
* would split a shared chunk out of the published `index.es.js`.
|
|
17
17
|
*/
|
|
18
18
|
theme: FilePreviewTheme;
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* Already hides the root while the preview's `data-status` is `loading`, so half-rendered
|
|
21
|
+
* content never shows.
|
|
22
|
+
*/
|
|
20
23
|
className: string;
|
|
21
24
|
/** Call once, after the file has painted. */
|
|
22
25
|
onLoad: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer-types.d.ts","sourceRoot":"","sources":["../../../../src/components/file-preview/components/renderer-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,IAAI,EAAE,IAAI,CAAC;IACX,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,gBAAgB,CAAC;IACxB
|
|
1
|
+
{"version":3,"file":"renderer-types.d.ts","sourceRoot":"","sources":["../../../../src/components/file-preview/components/renderer-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,IAAI,EAAE,IAAI,CAAC;IACX,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,qFAAqF;IACrF,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-components.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-preview/components/viewer/viewer-components.stories.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAmC5D,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"viewer-components.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-preview/components/viewer/viewer-components.stories.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAmC5D,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AA6DtB,wEAAwE;AACxE,eAAO,MAAM,OAAO,EAAE,KAyBrB,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,aAAa,EAAE,KAc3B,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,aAAa,EAAE,KAiB3B,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,iBAAiB,EAAE,KAa/B,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,WAAW,EAAE,KAczB,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,OAAO,EAAE,KAarB,CAAC;AAEF,gEAAgE;AAChE,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,WAAW,EAAE,KAwBzB,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,aAAa,EAAE,KAe3B,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,0BAA0B,EAAE,KAYxC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,sEAAsE;AACtE,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-preview.d.ts","sourceRoot":"","sources":["../../../src/components/file-preview/file-preview.tsx"],"names":[],"mappings":"AACA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA8Df,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AA8B/D,UAAU,oBAAoB;IAC5B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,UAAU,mBAAmB;IAC3B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,oBAAoB;IAC5B;;;;;OAKG;IACH,QAAQ,EAAE,IAAI,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC;CACb;AAED,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,CAAC,mBAAmB,GAAG,oBAAoB,CAAC,CAAC;AAanG;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"file-preview.d.ts","sourceRoot":"","sources":["../../../src/components/file-preview/file-preview.tsx"],"names":[],"mappings":"AACA,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA8Df,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AA8B/D,UAAU,oBAAoB;IAC5B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,UAAU,mBAAmB;IAC3B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,oBAAoB;IAC5B;;;;;OAKG;IACH,QAAQ,EAAE,IAAI,CAAC;IACf,GAAG,CAAC,EAAE,KAAK,CAAC;CACb;AAED,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG,CAAC,mBAAmB,GAAG,oBAAoB,CAAC,CAAC;AAanG;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE,gBAAgB,+BAmJlB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,8GAoC3B,CAAC;AAIF,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,SAAS,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,kHAqB5B,CAAC;AAqDF,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sFAAsF;IACtF,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,mHAuB7B,CAAC"}
|
|
@@ -1,17 +1,64 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { FilePreview } from './file-preview';
|
|
2
|
+
import { FilePreview, FilePreviewProps } from './file-preview';
|
|
3
|
+
import { FilePreviewTheme } from './hooks/use-file-preview-theme';
|
|
4
|
+
interface DocumentPreviewProps extends Omit<FilePreviewProps, 'children'> {
|
|
5
|
+
/** Offered instead of a retry when the file type cannot be previewed at all. */
|
|
6
|
+
onDownload?: () => void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* How a host composes a preview: the file, the default loader, and an error slot with a
|
|
10
|
+
* neutral line and a way forward. The developer message goes to `onError`, never on screen.
|
|
11
|
+
*/
|
|
12
|
+
declare function DocumentPreview({ onDownload, ...props }: DocumentPreviewProps): import('react').JSX.Element;
|
|
3
13
|
declare const meta: Meta<typeof FilePreview>;
|
|
4
14
|
export default meta;
|
|
5
15
|
type Story = StoryObj<typeof FilePreview>;
|
|
16
|
+
/** A PDF, the most common file: the format is picked from `fileName`. */
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
/** A PDF in the shared viewer: page navigation, zoom, rotate and a thumbnail sidebar. */
|
|
6
19
|
export declare const Pdf: Story;
|
|
20
|
+
/** A PowerPoint deck as continuous slides, with slide navigation, zoom and thumbnails. */
|
|
7
21
|
export declare const Presentation: Story;
|
|
22
|
+
/** A CSV export the user picked from disk, passed as `fileBlob`: 500 rows in a virtualised table. */
|
|
8
23
|
export declare const Csv: Story;
|
|
24
|
+
/** An Excel workbook, read-only, with formulas, charts and sheet tabs. */
|
|
9
25
|
export declare const Spreadsheet: Story;
|
|
26
|
+
/** A Word document laid out as pages and reflowed to the container width. */
|
|
10
27
|
export declare const Word: Story;
|
|
28
|
+
/** A Markdown file, sanitised and rendered with GitHub-flavoured tables and lists. */
|
|
11
29
|
export declare const Markdown: Story;
|
|
30
|
+
/** An HTML file in a `sandbox=""` frame: shown as authored, with script switched off. */
|
|
12
31
|
export declare const Html: Story;
|
|
13
32
|
/** The default loader: `Skeleton` document lines after 300ms, and a line after 5s. */
|
|
14
33
|
export declare const Loading: Story;
|
|
34
|
+
/** A file its renderer cannot open: the error slot shows a neutral line and a retry. */
|
|
15
35
|
export declare const LoadError: Story;
|
|
16
|
-
|
|
36
|
+
type DocumentStory = StoryObj<typeof DocumentPreview>;
|
|
37
|
+
/**
|
|
38
|
+
* A legacy `.doc`, rejected by its extension before any request is made. A host checks
|
|
39
|
+
* `isFilePreviewSupported(fileName)` first and offers the download without rendering a preview.
|
|
40
|
+
*/
|
|
41
|
+
export declare const UnsupportedFile: DocumentStory;
|
|
42
|
+
export declare const LoadsFromSrc: Story;
|
|
43
|
+
export declare const RetryAfterLoadError: Story;
|
|
44
|
+
export declare const UnsupportedFileOffersDownload: DocumentStory;
|
|
45
|
+
/** The preview in each place it is allowed: a dialog body, the chat side panel, a drawer and a document page. */
|
|
46
|
+
export declare const Examples: Story;
|
|
47
|
+
interface FilePreviewPlaygroundProps {
|
|
48
|
+
src: string;
|
|
49
|
+
fileName: string;
|
|
50
|
+
className: string;
|
|
51
|
+
theme: FilePreviewTheme;
|
|
52
|
+
hasLoader: boolean;
|
|
53
|
+
loaderLabel: string;
|
|
54
|
+
hasError: boolean;
|
|
55
|
+
errorMessage: string;
|
|
56
|
+
asChild: boolean;
|
|
57
|
+
onLoad: () => void;
|
|
58
|
+
onError: (error: Error) => void;
|
|
59
|
+
onRetry: () => void;
|
|
60
|
+
}
|
|
61
|
+
declare function FilePreviewPlayground({ src, fileName, className, theme, hasLoader, loaderLabel, hasError, errorMessage, asChild, onLoad, onError, onRetry, }: FilePreviewPlaygroundProps): import('react').JSX.Element;
|
|
62
|
+
/** Every part of the preview at once, with each part and prop on the Controls panel. */
|
|
63
|
+
export declare const Playground: StoryObj<typeof FilePreviewPlayground>;
|
|
17
64
|
//# sourceMappingURL=file-preview.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-preview.stories.d.ts","sourceRoot":"","sources":["../../../src/components/file-preview/file-preview.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"file-preview.stories.d.ts","sourceRoot":"","sources":["../../../src/components/file-preview/file-preview.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAsB5D,OAAO,EACL,WAAW,EAIX,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AACxB,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F,eAAO,MAAM,6BAA6B,EAAE,aAuB3C,CAAC;AAEF,iHAAiH;AACjH,eAAO,MAAM,QAAQ,EAAE,KAmFtB,CAAC;AAEF,UAAU,0BAA0B;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,gBAAgB,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,iBAAS,qBAAqB,CAAC,EAC7B,GAAG,EACH,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,MAAM,EACN,OAAO,EACP,OAAO,GACR,EAAE,0BAA0B,+BAgD5B;AAED,wFAAwF;AACxF,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,OAAO,qBAAqB,CAgD7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/html-preview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,kFAAkF;IAClF,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA4BD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,WAA+B,EAC/B,MAAM,EACN,MAAM,EACN,SAAS,GACV,EAAE,gBAAgB,+
|
|
1
|
+
{"version":3,"file":"html-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/html-preview.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD,kFAAkF;IAClF,IAAI,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA4BD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,WAA+B,EAC/B,MAAM,EACN,MAAM,EACN,SAAS,GACV,EAAE,gBAAgB,+BAkBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/image-preview.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,QAAQ,CAAC;CAChB;AAcD;;;GAGG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"image-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/image-preview.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,QAAQ,CAAC;CAChB;AAcD;;;GAGG;AACH,eAAO,MAAM,YAAY,gHAuDxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/markdown-preview.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAWpD,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,GACV,EAAE,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"markdown-preview.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/markdown-preview.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAWpD,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,mFAAmF;AACnF,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,GACV,EAAE,oBAAoB,+BAmBtB"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { PreviewRevealStatus } from '../../hooks/use-preview-reveal';
|
|
2
1
|
/**
|
|
3
2
|
* Extend's reveal: every preview stays mounted while it loads, hidden and blurred, then
|
|
4
3
|
* fades and sharpens in once drawn. Shared so image, Markdown and HTML reveal alike.
|
|
4
|
+
*
|
|
5
|
+
* Styled from the preview's own `data-status`, so a consumer can restyle either state with the
|
|
6
|
+
* same selector (`data-[status=loaded]:opacity-90`).
|
|
5
7
|
*/
|
|
6
|
-
export declare
|
|
8
|
+
export declare const revealClassName: string;
|
|
7
9
|
//# sourceMappingURL=reveal-class-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reveal-class-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/reveal-class-name.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"reveal-class-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/reveal-class-name.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,QAI3B,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { PreviewRevealStatus } from '../../hooks/use-preview-reveal';
|
|
2
3
|
interface ScaledPageProps {
|
|
3
4
|
/** The width the content is laid out at, in CSS pixels, before it is scaled to the tile. */
|
|
4
5
|
designWidth: number;
|
|
6
|
+
/** The preview's load status, exposed as `data-status` for the reveal. */
|
|
7
|
+
status: PreviewRevealStatus;
|
|
5
8
|
className?: string;
|
|
6
9
|
children: ReactNode;
|
|
7
10
|
}
|
|
@@ -9,6 +12,6 @@ interface ScaledPageProps {
|
|
|
9
12
|
* A white page laid out at `designWidth` and scaled down to the tile's width, top-left
|
|
10
13
|
* anchored, cropped at the tile's bottom - the first screen of the document in miniature.
|
|
11
14
|
*/
|
|
12
|
-
export declare function ScaledPage({ designWidth, className, children }: ScaledPageProps): import('react').JSX.Element;
|
|
15
|
+
export declare function ScaledPage({ designWidth, status, className, children }: ScaledPageProps): import('react').JSX.Element;
|
|
13
16
|
export {};
|
|
14
17
|
//# sourceMappingURL=scaled-page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaled-page.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/scaled-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"scaled-page.d.ts","sourceRoot":"","sources":["../../../../../src/components/file-thumbnail/components/previews/scaled-page.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAG1E,UAAU,eAAe;IACvB,4FAA4F;IAC5F,WAAW,EAAE,MAAM,CAAC;IACpB,0EAA0E;IAC1E,MAAM,EAAE,mBAAmB,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,+BA0BvF"}
|
|
@@ -129,6 +129,8 @@ export interface FileThumbnailFallbackProps {
|
|
|
129
129
|
/** Replaces the default file-name label. */
|
|
130
130
|
children?: ReactNode;
|
|
131
131
|
className?: string;
|
|
132
|
+
/** Extra classes for the default file-name label. Unused once `children` replace it. */
|
|
133
|
+
labelClassName?: string;
|
|
132
134
|
}
|
|
133
135
|
/**
|
|
134
136
|
* Shown when there is no picture: video, plain text, an unsupported type, or a file that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-thumbnail.d.ts","sourceRoot":"","sources":["../../../src/components/file-thumbnail/file-thumbnail.tsx"],"names":[],"mappings":"AACA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuBf,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAExF,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAkKtD,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACvC;AAED,UAAU,qBAAqB;IAC7B;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,sBAAsB;IAC9B;;;;OAIG;IACH,QAAQ,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,GAAG,CAAC,EAAE,KAAK,CAAC;CACb;AAED,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACrD,CAAC,qBAAqB,GAAG,sBAAsB,CAAC,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,aAAa,+
|
|
1
|
+
{"version":3,"file":"file-thumbnail.d.ts","sourceRoot":"","sources":["../../../src/components/file-thumbnail/file-thumbnail.tsx"],"names":[],"mappings":"AACA,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAuBf,OAAO,EAAoB,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAExF,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAkKtD,UAAU,sBAAsB;IAC9B;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAI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,CAAC,EAAE,OAAO,CAAC;IAClB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA+BD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,uHAsBjC,CAAC"}
|
|
@@ -1,30 +1,96 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof
|
|
2
|
+
import { ThumbnailFile } from './__stories__/types';
|
|
3
|
+
import { FileThumbnail } from './file-thumbnail';
|
|
4
|
+
declare const meta: Meta<typeof FileThumbnail>;
|
|
5
5
|
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof
|
|
6
|
+
type Story = StoryObj<typeof FileThumbnail>;
|
|
7
|
+
/** The thumbnail of an image file, loaded from `src`. */
|
|
8
|
+
export declare const Default: Story;
|
|
9
|
+
/** An image draws as itself, cropped to cover the tile from its centre. */
|
|
7
10
|
export declare const Image: Story;
|
|
11
|
+
/** A PDF shows its first page, cropped from the top. */
|
|
8
12
|
export declare const Pdf: Story;
|
|
13
|
+
/** A Word document shows its first page. */
|
|
9
14
|
export declare const Word: Story;
|
|
15
|
+
/** A workbook shows its first sheet, whole, from the top-left corner. */
|
|
10
16
|
export declare const Spreadsheet: Story;
|
|
17
|
+
/** A deck shows its first slide, whole and centred. */
|
|
11
18
|
export declare const Presentation: Story;
|
|
19
|
+
/** A Markdown file shows its rendered text, laid out as a page and scaled to the tile. */
|
|
12
20
|
export declare const Markdown: Story;
|
|
21
|
+
/** An HTML page loads by URL in a sandboxed frame, scaled down from a desktop width. */
|
|
13
22
|
export declare const Html: Story;
|
|
23
|
+
/** An HTML file passed as `fileBlob` draws from its markup, and its script never runs. */
|
|
14
24
|
export declare const HtmlFromBlob: Story;
|
|
25
|
+
/** A CSV shows its first rows as a table. */
|
|
15
26
|
export declare const Csv: Story;
|
|
27
|
+
/** A picture your server already rendered is drawn instead of the file, so no engine loads. */
|
|
16
28
|
export declare const PreviewImageUrl: Story;
|
|
17
|
-
|
|
29
|
+
interface DocumentThumbnailProps {
|
|
30
|
+
fileName: string;
|
|
31
|
+
/** The app's own request for the file, e.g. an authenticated download. */
|
|
32
|
+
onFetchDocument: () => Promise<Blob>;
|
|
33
|
+
onLoaded?: () => void;
|
|
34
|
+
}
|
|
35
|
+
/** A document the app downloads itself, starting once its tile is on screen. */
|
|
36
|
+
declare function DocumentThumbnail({ fileName, onFetchDocument, onLoaded }: DocumentThumbnailProps): import('react').JSX.Element;
|
|
37
|
+
type DocumentThumbnailStory = StoryObj<typeof DocumentThumbnail>;
|
|
38
|
+
/** The host still fetching the file: the loader shows, not the fallback, until the blob arrives. */
|
|
39
|
+
export declare const BlobArrivesLater: DocumentThumbnailStory;
|
|
40
|
+
/** Your own pipeline still producing the picture: `isLoading` keeps the loader up and nothing is drawn. */
|
|
18
41
|
export declare const Loading: Story;
|
|
42
|
+
/** An image that fails to load falls back to its file name, truncated in the middle. */
|
|
19
43
|
export declare const BrokenImage: Story;
|
|
44
|
+
/** A PDF that cannot be downloaded falls back the same way; the cause goes to `onLoadFailed`. */
|
|
20
45
|
export declare const BrokenPdf: Story;
|
|
46
|
+
/** A video is never drawn: the fallback is the first paint and nothing is fetched. */
|
|
21
47
|
export declare const Video: Story;
|
|
48
|
+
/** A type the tile does not know shows the fallback at once. */
|
|
22
49
|
export declare const Unsupported: Story;
|
|
50
|
+
/** Your own fallback content in place of the file name, kept short and free of controls. */
|
|
23
51
|
export declare const CustomFallback: Story;
|
|
52
|
+
/** Every kind and state side by side: drawn files, a server-rendered picture, loading, and the fallbacks. */
|
|
24
53
|
export declare const Gallery: Story;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
54
|
+
interface DocumentGalleryProps {
|
|
55
|
+
files: ThumbnailFile[];
|
|
56
|
+
onLoadAvailable?: (fileName: string) => void;
|
|
57
|
+
onLoaded?: (fileName: string) => void;
|
|
58
|
+
}
|
|
59
|
+
/** A gallery of tiles, reporting which file each callback is for. */
|
|
60
|
+
declare function DocumentGallery({ files, onLoadAvailable, onLoaded }: DocumentGalleryProps): import('react').JSX.Element;
|
|
61
|
+
type DocumentGalleryStory = StoryObj<typeof DocumentGallery>;
|
|
62
|
+
/** Tiles load only while on screen: scroll down and the next row starts. */
|
|
63
|
+
export declare const ScrollingGallery: DocumentGalleryStory;
|
|
64
|
+
/** Draws the image and fades it in: the tile leaves `loading`, reports each step once and fills its parent. */
|
|
65
|
+
export declare const DefaultLoadsAndReveals: Story;
|
|
66
|
+
/** While `isLoading` is set the tile stays busy behind the loader and never starts drawing the file. */
|
|
67
|
+
export declare const LoadingHoldsDrawing: Story;
|
|
68
|
+
/** A broken image ends on the fallback with the whole file name, and reports the failure once. */
|
|
69
|
+
export declare const BrokenImageShowsFallback: Story;
|
|
70
|
+
/** Asks for the file once when the tile is on screen, stays busy until the blob arrives, then draws it. */
|
|
71
|
+
export declare const BlobArrivesLaterDrawsOnArrival: DocumentThumbnailStory;
|
|
72
|
+
/** A tile below the fold loads nothing until it is scrolled on screen. */
|
|
73
|
+
export declare const ScrollingGalleryLoadsOnScroll: DocumentGalleryStory;
|
|
74
|
+
/** The tile in each place it goes: a grid of shared files, an upload queue, an attachment tray and a scrolling gallery. */
|
|
75
|
+
export declare const Examples: Story;
|
|
76
|
+
interface FileThumbnailPlaygroundProps {
|
|
77
|
+
fileName: string;
|
|
78
|
+
src: string;
|
|
79
|
+
previewImageUrl?: string;
|
|
80
|
+
className?: string;
|
|
81
|
+
previewClassName?: string;
|
|
82
|
+
labelClassName?: string;
|
|
83
|
+
fallback: string;
|
|
84
|
+
isLoading: boolean;
|
|
85
|
+
hasLoader: boolean;
|
|
86
|
+
hasPreview: boolean;
|
|
87
|
+
hasFallback: boolean;
|
|
88
|
+
onLoadAvailable: () => void;
|
|
89
|
+
onLoadStarted: () => void;
|
|
90
|
+
onLoaded: () => void;
|
|
91
|
+
onLoadFailed: (error: Error) => void;
|
|
92
|
+
}
|
|
93
|
+
declare function FileThumbnailPlayground({ previewClassName, labelClassName, fallback, hasLoader, hasPreview, hasFallback, ...rest }: FileThumbnailPlaygroundProps): import('react').JSX.Element;
|
|
94
|
+
/** All three parts at once, with every prop of the root and the parts on the Controls panel. */
|
|
95
|
+
export declare const Playground: StoryObj<typeof FileThumbnailPlayground>;
|
|
30
96
|
//# sourceMappingURL=file-thumbnail.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-thumbnail.stories.d.ts","sourceRoot":"","sources":["../../../src/components/file-thumbnail/file-thumbnail.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"file-thumbnail.stories.d.ts","sourceRoot":"","sources":["../../../src/components/file-thumbnail/file-thumbnail.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAwB5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACL,aAAa,EAKd,MAAM,kBAAkB,CAAC;AAgC1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,aAAa,CA+DpC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,aAAa,CAAC,CAAC;AAE5C,yDAAyD;AACzD,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,2EAA2E;AAC3E,eAAO,MAAM,KAAK,EAAE,KAEnB,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,GAAG,EAAE,KAGjB,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,IAAI,EAAE,KAElB,CAAC;AA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