Skip to content

Commit

Permalink
Upgrades to Fileforge's API
Browse files Browse the repository at this point in the history
  • Loading branch information
Titou325 committed Sep 9, 2024
1 parent 7c39fc1 commit e47c4b6
Show file tree
Hide file tree
Showing 99 changed files with 125 additions and 129 deletions.
61 changes: 28 additions & 33 deletions docgen/renderPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import { config } from "dotenv";

import { Onedoc } from "@onedoc/client";
import { FileforgeClient } from "@fileforge/client";
import * as crypto from "crypto";
import * as path from "path";
import * as fs from "fs";
import { fromBuffer } from "pdf2pic";
import { glob } from "glob";
import { compile, CompileOptions } from "../dist";
import React from "react";
import { pipeline } from "stream/promises";

config({ path: ".env.local" });
config();

const onedoc = new Onedoc(process.env.ONEDOC_API_KEY!);
const ff = new FileforgeClient({
apiKey: process.env.ONEDOC_API_KEY!,
});

export const baseCss = fs.readFileSync(path.join(__dirname, "./base.css"));
export const indexCss = fs.readFileSync(
Expand All @@ -29,7 +32,10 @@ export async function renderPreview(
const Component = component;
const Element = <>{Component}</>;

const html = (await compile(Element, compileOptions)) as string;
const html = `<!doctype html><html><head>
<link rel="stylesheet" href="base.css" />
<link rel="stylesheet" href="index.css" />
</head><body>${await compile(Element, compileOptions)}</body></html>` as string;

const hash = crypto.createHash("sha256");
hash.update(html);
Expand All @@ -41,45 +47,34 @@ export async function renderPreview(

// If the file doesn't exist, create it by generating the document with Onedoc
if (!fs.existsSync(targetFolder)) {
const { file, info, error } = await onedoc.render({
html,
assets: [
...(useBaseCss
? [
{
path: "base.css",
content: baseCss,
},
]
: [
{
path: "default.css",
content: Buffer.from(`@page { size: A4; }`),
},
]),
{
path: "index.css",
content: indexCss,
},
const file = await ff.pdf.generate(
[
new File([html], "index.html", { type: "text/html" }),
useBaseCss
? new File([baseCss], "base.css", { type: "text/css" })
: new File([`@page { size: A4; }`], "base.css", { type: "text/css" }),
new File([indexCss], "index.css", { type: "text/css" }),
],
save: false,
test: false,
});

if (error) {
throw new Error(`Error rendering the document: ${error}`);
}
{
options: {
host: false,
test: false,
},
}
);

// Create the directory
fs.mkdirSync(targetFolder, { recursive: true });

// Write the HTML to a file
fs.writeFileSync(path.join(targetFolder, "index.html"), html);

const buffer = Buffer.from(file);
await pipeline(
file,
fs.createWriteStream(path.join(targetFolder, "document.pdf"))
);

// Save the buffer to a file called id.pdf
fs.writeFileSync(path.join(targetFolder, "document.pdf"), buffer);
const buffer = fs.readFileSync(path.join(targetFolder, "document.pdf"));

const pdf2pic = fromBuffer(buffer, {
density: 300,
Expand Down
4 changes: 2 additions & 2 deletions docs/components/compile/compile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A simple function to compile a React component to an HTML string with the Onedoc
const html = await compile(<Component />);
```

<Frame background="subtle"><img src="../../images/previews/compile-5570a5ba/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/compile-f31067dd/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down Expand Up @@ -60,7 +60,7 @@ Pass `{ emotion: true }` as the second compile option to merge and extract criti
const html = await compile(<Component />, { emotion: true });
```

<Frame background="subtle"><img src="../../images/previews/compile-cbbe811f/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/compile-8dbcfb7e/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/css/css.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

Use a simple CSS tag to support CSS in your document.

<Frame background="subtle"><img src="../../images/previews/css-7dd14403/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/css-fa74d9a5/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/css/font.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

Load a Google Font its URL. This will allow you to use the font in your document.

<Frame background="subtle"><img src="../../images/previews/font-e0a8ef44/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/font-0d283416/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/css/margins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

Set the page ratio and margin sizes in px. You can also use the `@page` at-rule in CSS to manage all aspects of printed pages. More on this [here](https://developer.mozilla.org/en-US/docs/Web/CSS/@page).

<Frame background="subtle"><img src="../../images/previews/margins-50add8b7/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/margins-35fa1266/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/footnote/footnote.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/footnote-fa9b006a/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/footnote-e49ec577/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
4 changes: 2 additions & 2 deletions docs/components/latex/latex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

Use a simple Latex tag to support Latex in your document.

<Frame background="subtle"><img src="../../images/previews/latex-f2f93949/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/latex-2663e15e/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down Expand Up @@ -51,7 +51,7 @@ body {

Write complex LaTeX formulas in your document.

<Frame background="subtle"><img src="../../images/previews/latex-df0188b4/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/latex-c1cd8f84/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
6 changes: 3 additions & 3 deletions docs/components/markdown/markdown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

Use a simple Markdown tag to support Markdown in your document.

<Frame background="subtle"><img src="../../images/previews/markdown-788360ba/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/markdown-f4432de3/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down Expand Up @@ -57,7 +57,7 @@ body {

You can leverage the `overrides` prop to replace Markdown components with your own components. This is useful for custom components or even for dynamic content.

<Frame background="subtle"><img src="../../images/previews/markdown-7e966af7/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/markdown-cdc02780/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand All @@ -74,7 +74,7 @@ import { Markdown } from "@fileforge/react-print";
component: () => "John Doe",
},
KPI: {
component: ({ children }) => (
component: ({ children }: { children: React.ReactNode }) => (
<div style={{ color: "blue", fontSize: "2rem" }}>{children}</div>
),
},
Expand Down
2 changes: 1 addition & 1 deletion docs/components/shell/currentpagetop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/currentpagetop-81734720/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/currentpagetop-2643a477/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/shell/floatbottom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/floatbottom-17237ced/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/floatbottom-1c4af231/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/shell/nobreak.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/nobreak-47b8dd06/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/nobreak-ba337df4/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/shell/pagebottom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/pagebottom-f6fd9841/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/pagebottom-fd5eaff9/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/shell/pagebreak.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/pagebreak-d3424866/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/pagebreak-bb162ea2/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/shell/pagetop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/pagetop-ef21c693/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/pagetop-53bf6bd2/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/signature/field.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Supported fields:
| signerAttachment | Signer attachment field |
| signerAttachmentOptional | Optional signer attachment field |

<Frame background="subtle"><img src="../../images/previews/field-0dfd9c56/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/field-8e7a7bcb/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
6 changes: 3 additions & 3 deletions docs/components/tailwind/tailwind.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

Use a simple Tailwind tag to support Tailwind in your document.

<Frame background="subtle"><img src="../../images/previews/tailwind-319e2653/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/tailwind-e99fe796/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down Expand Up @@ -57,7 +57,7 @@ body {

You can also pass a custom Tailwind config to the Tailwind component.

<Frame background="subtle"><img src="../../images/previews/tailwind-bc09d01e/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/tailwind-b7e447a6/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down Expand Up @@ -106,7 +106,7 @@ body {

You can disable the Tailwind Preflight CSS.

<Frame background="subtle"><img src="../../images/previews/tailwind-33b7c4e5/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/tailwind-1aadcc0c/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
4 changes: 2 additions & 2 deletions docs/components/variables/pagenumber.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/pagenumber-ea46baaf/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/pagenumber-fe8490ef/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down Expand Up @@ -51,7 +51,7 @@ body {

You can use a custom CSS counter-style, by passing a known name or a custom counter style.

<Frame background="subtle"><img src="../../images/previews/pagenumber-391d6c27/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/pagenumber-4d636b47/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/variables/pagesnumber.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Support

#### Preview

<Frame background="subtle"><img src="../../images/previews/pagesnumber-10c1cbad/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/pagesnumber-ba7ca0ce/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
2 changes: 1 addition & 1 deletion docs/components/variables/runningh1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Support

Show the current running header of level 1 in the page header. All running headers are reset when any of their parent headings are encountered (e.g. a level 2 heading resets the level 3, 4, 5 and 6 headings).

<Frame background="subtle"><img src="../../images/previews/runningh1-16658c8e/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>
<Frame background="subtle"><img src="../../images/previews/runningh1-230ef375/document.1.jpg" style={{ width: '100%', height: 'auto', maxHeight: '500px', borderRadius: "0.25rem", overflow: "hidden", border: '1px solid #E5E4E2' }} /></Frame>

<div style={{paddingTop: "1rem", paddingBottom: "1rem"}}><CodeBlocks>
<CodeBlock title="template.tsx">
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed docs/images/previews/field-0dfd9c56/document.pdf
Binary file not shown.
Binary file added docs/images/previews/field-8e7a7bcb/document.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/sortedDocs.json

Large diffs are not rendered by default.

Loading

0 comments on commit e47c4b6

Please sign in to comment.