diff --git a/LICENSE.md b/LICENSE.md index 4f7dd61..665f66c 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -2,180 +2,180 @@ Version 2.0, January 2004 http://www.apache.org/licenses/ - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" @@ -186,16 +186,16 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [2023] [Onedoclabs] +Copyright [2024] [CodemMuse, Inc.] - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.md b/README.md index 050b827..18154a2 100644 --- a/README.md +++ b/README.md @@ -61,19 +61,19 @@ Get the _react-print_ component library. ### With npm ```sh npm -npm install @onedoc/react-print +npm install @fileforge/react-print ``` ### With yarn ```sh yarn -yarn add @onedoc/react-print +yarn add @fileforge/react-print ``` ### With pnpm ```sh pnpm -pnpm add @onedoc/react-print +pnpm add @fileforge/react-print ``` ## 2. Import component ↪️ @@ -81,7 +81,7 @@ pnpm add @onedoc/react-print Import the components you need to your PDF template from our list of pre-build components : ```javascript -import { PageTop, PageBottom, PageBreak } from "@onedoc/react-print"; +import { PageTop, PageBottom, PageBreak } from "@fileforge/react-print"; ``` ## 3. Integrate in your document 📄 diff --git a/docgen/buildExample.tsx b/docgen/buildExample.tsx index 08c1e23..f340f5e 100644 --- a/docgen/buildExample.tsx +++ b/docgen/buildExample.tsx @@ -33,7 +33,7 @@ export const buildExample = async ( \`\`\`jsx template.tsx import { ${component}${ example.imports ? `, ${example.imports.join(", ")}` : "" - } } from "@onedoc/react-print";${ + } } from "@fileforge/react-print";${ example.externalImports ? `\n${example.externalImports.join("\n")}` : "" } diff --git a/docgen/buildFileMarkdown.ts b/docgen/buildFileMarkdown.ts index 98cec09..c2ac4ee 100644 --- a/docgen/buildFileMarkdown.ts +++ b/docgen/buildFileMarkdown.ts @@ -105,7 +105,7 @@ ${docConfig.description ? `description: "${docConfig.description}"` : ""} } } } else { - markdown += `\`\`\`jsx\nimport { ${componentName} } from "@onedoc/react-print";\n\`\`\`\n\n`; + markdown += `\`\`\`jsx\nimport { ${componentName} } from "@fileforge/react-print";\n\`\`\`\n\n`; } if ( diff --git a/docgen/buildTemplates.tsx b/docgen/buildTemplates.tsx index a4a0b5d..71200b1 100644 --- a/docgen/buildTemplates.tsx +++ b/docgen/buildTemplates.tsx @@ -38,7 +38,7 @@ export async function buildTemplates() { esbuildPlugins: [ mdx({ remarkPlugins: [remarkFrontmatter], - providerImportSource: "@onedoc/react-print/mdx", + providerImportSource: "@fileforge/react-print/mdx", }), RawPlugin(), ], diff --git a/docs/components/compile.mdx b/docs/components/compile.mdx index 9fc994c..4129094 100644 --- a/docs/components/compile.mdx +++ b/docs/components/compile.mdx @@ -28,7 +28,7 @@ const html = await compile(, { emotion: true });
```jsx template.tsx -import { compile } from "@onedoc/react-print"; +import { compile } from "@fileforge/react-print"; import { Button, ChakraProvider, extendTheme } from "@chakra-ui/react"; <> diff --git a/docs/components/css.mdx b/docs/components/css.mdx index 0a2fa78..130cab9 100644 --- a/docs/components/css.mdx +++ b/docs/components/css.mdx @@ -26,7 +26,7 @@ Use a simple CSS print property to set the page size.
```jsx template.tsx -import { CSS } from "@onedoc/react-print"; +import { CSS } from "@fileforge/react-print"; {`@page { size: a4 landscape; }`}; @@ -55,7 +55,7 @@ Load a Google Font using the `@import` rule.
```jsx template.tsx -import { CSS } from "@onedoc/react-print"; +import { CSS } from "@fileforge/react-print"; @@ -91,7 +91,7 @@ You can use the `@page` at-rule in CSS to manage all aspects of printed pages. M
```jsx template.tsx -import { CSS } from "@onedoc/react-print"; +import { CSS } from "@fileforge/react-print"; {`@page {size: A4;margin-top:1cm;margin-right:1cm;margin-left:1cm;margin-bottom:1cm;`} diff --git a/docs/components/footnote.mdx b/docs/components/footnote.mdx index b0e8646..4b96c2a 100644 --- a/docs/components/footnote.mdx +++ b/docs/components/footnote.mdx @@ -24,7 +24,7 @@ Creates an automatically numbered footnote. This will remove the footnote conten
```jsx template.tsx -import { Footnote } from "@onedoc/react-print"; +import { Footnote } from "@fileforge/react-print"; This is a sample footnote.; diff --git a/docs/components/latex.mdx b/docs/components/latex.mdx index 8ec0819..67be790 100644 --- a/docs/components/latex.mdx +++ b/docs/components/latex.mdx @@ -30,7 +30,7 @@ Support
```jsx template.tsx -import { Latex } from "@onedoc/react-print"; +import { Latex } from "@fileforge/react-print"; {String.raw`\frac{1}{2}`}; @@ -57,7 +57,7 @@ body {
```jsx template.tsx -import { Latex } from "@onedoc/react-print"; +import { Latex } from "@fileforge/react-print"; {String.raw`% \f is defined as #1f(#2) using the macro \f\relax{x} = \int_{-\infty}^\infty diff --git a/docs/components/markdown.mdx b/docs/components/markdown.mdx index f75beaa..174ab44 100644 --- a/docs/components/markdown.mdx +++ b/docs/components/markdown.mdx @@ -26,7 +26,7 @@ Support
```jsx template.tsx -import { Markdown } from "@onedoc/react-print"; +import { Markdown } from "@fileforge/react-print"; {`# Hello, world! @@ -61,7 +61,7 @@ You can leverage the `overrides` prop to replace Markdown components with your o
```jsx template.tsx -import { Markdown } from "@onedoc/react-print"; +import { Markdown } from "@fileforge/react-print"; ```jsx template.tsx -import { PageTop } from "@onedoc/react-print"; +import { PageTop } from "@fileforge/react-print"; ; @@ -62,7 +62,7 @@ Displays content in the top of the current page. This component will override the content of the `PageTop` component for the current page. ```jsx -import { CurrentPageTop } from "@onedoc/react-print"; +import { CurrentPageTop } from "@fileforge/react-print"; ``` ## PageBottom @@ -85,7 +85,7 @@ Displays content in the bottom of all the pages.
```jsx template.tsx -import { PageBottom } from "@onedoc/react-print"; +import { PageBottom } from "@fileforge/react-print"; ; @@ -119,7 +119,7 @@ Support Forces a page break. ```jsx -import { PageBreak } from "@onedoc/react-print"; +import { PageBreak } from "@fileforge/react-print"; ``` ## NoBreak @@ -135,7 +135,7 @@ Support Prevents a page break. Wrap this component around content that should not be broken across pages. ```jsx -import { NoBreak } from "@onedoc/react-print"; +import { NoBreak } from "@fileforge/react-print"; ``` ## FloatBottom @@ -158,7 +158,7 @@ Floats the content to the bottom of the page.
```jsx template.tsx -import { FloatBottom } from "@onedoc/react-print"; +import { FloatBottom } from "@fileforge/react-print"; Here are some floated contents; diff --git a/docs/components/signature.mdx b/docs/components/signature.mdx index ec8c8ba..4f13540 100644 --- a/docs/components/signature.mdx +++ b/docs/components/signature.mdx @@ -59,7 +59,7 @@ Supported fields:
```jsx template.tsx -import { Field } from "@onedoc/react-print"; +import { Field } from "@fileforge/react-print"; <> diff --git a/docs/components/tailwind.mdx b/docs/components/tailwind.mdx index b239c4f..5ed431a 100644 --- a/docs/components/tailwind.mdx +++ b/docs/components/tailwind.mdx @@ -26,7 +26,7 @@ Support
```jsx template.tsx -import { Tailwind } from "@onedoc/react-print"; +import { Tailwind } from "@fileforge/react-print";
@@ -61,7 +61,7 @@ You can also pass a custom Tailwind config to the Tailwind component.
```jsx template.tsx -import { Tailwind } from "@onedoc/react-print"; +import { Tailwind } from "@fileforge/react-print"; ```jsx template.tsx -import { PageNumber } from "@onedoc/react-print"; +import { PageNumber } from "@fileforge/react-print"; ; @@ -53,7 +53,7 @@ You can use a custom CSS counter-style, by passing a known name or a custom coun
```jsx template.tsx -import { PageNumber } from "@onedoc/react-print"; +import { PageNumber } from "@fileforge/react-print"; ; @@ -106,7 +106,7 @@ Returns the total number of pages.
```jsx template.tsx -import { PagesNumber, PageNumber } from "@onedoc/react-print"; +import { PagesNumber, PageNumber } from "@fileforge/react-print"; <> @@ -165,7 +165,7 @@ Show the current running header of level 1 in the page header. All running heade
```jsx template.tsx -import { RunningH1 } from "@onedoc/react-print"; +import { RunningH1 } from "@fileforge/react-print"; @@ -204,7 +204,7 @@ Support Returns the current page's running header of level 2. ```jsx -import { RunningH2 } from "@onedoc/react-print"; +import { RunningH2 } from "@fileforge/react-print"; ``` ## RunningH3 @@ -220,7 +220,7 @@ Support Returns the current page's running header of level 3. ```jsx -import { RunningH3 } from "@onedoc/react-print"; +import { RunningH3 } from "@fileforge/react-print"; ``` ## RunningH4 @@ -236,7 +236,7 @@ Support Returns the current page's running header of level 4. ```jsx -import { RunningH4 } from "@onedoc/react-print"; +import { RunningH4 } from "@fileforge/react-print"; ``` ## RunningH5 @@ -252,7 +252,7 @@ Support Returns the current page's running header of level 5. ```jsx -import { RunningH5 } from "@onedoc/react-print"; +import { RunningH5 } from "@fileforge/react-print"; ``` ## RunningH6 @@ -268,6 +268,6 @@ Support Returns the current page's running header of level 6. ```jsx -import { RunningH6 } from "@onedoc/react-print"; +import { RunningH6 } from "@fileforge/react-print"; ``` diff --git a/docs/getting-started/setup.mdx b/docs/getting-started/setup.mdx index a876fa1..ea4a7e9 100644 --- a/docs/getting-started/setup.mdx +++ b/docs/getting-started/setup.mdx @@ -22,15 +22,15 @@ Get the react-print package locally ```sh npm -npm install @onedoc/react-print +npm install @fileforge/react-print ``` ```sh yarn -yarn add @onedoc/react-print +yarn add @fileforge/react-print ``` ```sh pnpm -pnpm add @onedoc/react-print +pnpm add @fileforge/react-print ``` @@ -40,7 +40,7 @@ pnpm add @onedoc/react-print Create a new folder call `documents`, then create a new file inside call `index.tsx` and copy the following code: ```jsx document/index.tsx -import { PageTop, PageBottom, PageBreak } from "@onedoc/react-print"; +import { PageTop, PageBottom, PageBreak } from "@fileforge/react-print"; import * as React from "react"; export const Document = ({ props }) => { @@ -63,7 +63,7 @@ export const Document = ({ props }) => { ## 4. Compile your document to HTML ```js index.tsx -import { compile } from "@onedoc/react-print"; +import { compile } from "@fileforge/react-print"; import { Document } from "./document"; const html = await compile(); diff --git a/docs/images/previews/ui-templates-nda-markdown-0c872119/document.1.jpg b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.1.jpg new file mode 100644 index 0000000..9dd66fd Binary files /dev/null and b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.1.jpg differ diff --git a/docs/images/previews/ui-templates-nda-markdown-0c872119/document.2.jpg b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.2.jpg new file mode 100644 index 0000000..635dce8 Binary files /dev/null and b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.2.jpg differ diff --git a/docs/images/previews/ui-templates-nda-markdown-0c872119/document.3.jpg b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.3.jpg new file mode 100644 index 0000000..37d80fc Binary files /dev/null and b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.3.jpg differ diff --git a/docs/images/previews/ui-templates-nda-markdown-0c872119/document.4.jpg b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.4.jpg new file mode 100644 index 0000000..bd8813b Binary files /dev/null and b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.4.jpg differ diff --git a/docs/images/previews/ui-templates-nda-markdown-0c872119/document.5.jpg b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.5.jpg new file mode 100644 index 0000000..06ac3b2 Binary files /dev/null and b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.5.jpg differ diff --git a/docs/images/previews/ui-templates-nda-markdown-0c872119/document.pdf b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.pdf new file mode 100644 index 0000000..63f7d2d Binary files /dev/null and b/docs/images/previews/ui-templates-nda-markdown-0c872119/document.pdf differ diff --git a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.1.jpg b/docs/images/previews/ui-templates-nda-markdown-555147ca/document.1.jpg deleted file mode 100644 index cb6b195..0000000 Binary files a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.1.jpg and /dev/null differ diff --git a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.2.jpg b/docs/images/previews/ui-templates-nda-markdown-555147ca/document.2.jpg deleted file mode 100644 index ed1ace3..0000000 Binary files a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.2.jpg and /dev/null differ diff --git a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.3.jpg b/docs/images/previews/ui-templates-nda-markdown-555147ca/document.3.jpg deleted file mode 100644 index ebe9ef2..0000000 Binary files a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.3.jpg and /dev/null differ diff --git a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.4.jpg b/docs/images/previews/ui-templates-nda-markdown-555147ca/document.4.jpg deleted file mode 100644 index 8e98f7f..0000000 Binary files a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.4.jpg and /dev/null differ diff --git a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.5.jpg b/docs/images/previews/ui-templates-nda-markdown-555147ca/document.5.jpg deleted file mode 100644 index 1faa607..0000000 Binary files a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.5.jpg and /dev/null differ diff --git a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.pdf b/docs/images/previews/ui-templates-nda-markdown-555147ca/document.pdf deleted file mode 100644 index eef8754..0000000 Binary files a/docs/images/previews/ui-templates-nda-markdown-555147ca/document.pdf and /dev/null differ diff --git a/docs/images/previews/ui-templates-report-charts-568a756b/document.1.jpg b/docs/images/previews/ui-templates-report-charts-568a756b/document.1.jpg deleted file mode 100644 index 3a33b59..0000000 Binary files a/docs/images/previews/ui-templates-report-charts-568a756b/document.1.jpg and /dev/null differ diff --git a/docs/images/previews/ui-templates-report-charts-568a756b/document.pdf b/docs/images/previews/ui-templates-report-charts-568a756b/document.pdf deleted file mode 100644 index 42c6e0c..0000000 Binary files a/docs/images/previews/ui-templates-report-charts-568a756b/document.pdf and /dev/null differ diff --git a/docs/images/previews/ui-templates-report-charts-7d5e23ad/document.1.jpg b/docs/images/previews/ui-templates-report-charts-7d5e23ad/document.1.jpg new file mode 100644 index 0000000..41c3197 Binary files /dev/null and b/docs/images/previews/ui-templates-report-charts-7d5e23ad/document.1.jpg differ diff --git a/docs/images/previews/ui-templates-report-charts-7d5e23ad/document.pdf b/docs/images/previews/ui-templates-report-charts-7d5e23ad/document.pdf new file mode 100644 index 0000000..6d6ab9a Binary files /dev/null and b/docs/images/previews/ui-templates-report-charts-7d5e23ad/document.pdf differ diff --git a/docs/images/previews/ui-templates-scientific-report-01382231/document.1.jpg b/docs/images/previews/ui-templates-scientific-report-01382231/document.1.jpg deleted file mode 100644 index 5d53ee4..0000000 Binary files a/docs/images/previews/ui-templates-scientific-report-01382231/document.1.jpg and /dev/null differ diff --git a/docs/images/previews/ui-templates-scientific-report-d26af32f/document.1.jpg b/docs/images/previews/ui-templates-scientific-report-d26af32f/document.1.jpg new file mode 100644 index 0000000..f939dd6 Binary files /dev/null and b/docs/images/previews/ui-templates-scientific-report-d26af32f/document.1.jpg differ diff --git a/docs/images/previews/ui-templates-scientific-report-01382231/document.2.jpg b/docs/images/previews/ui-templates-scientific-report-d26af32f/document.2.jpg similarity index 100% rename from docs/images/previews/ui-templates-scientific-report-01382231/document.2.jpg rename to docs/images/previews/ui-templates-scientific-report-d26af32f/document.2.jpg diff --git a/docs/images/previews/ui-templates-scientific-report-01382231/document.pdf b/docs/images/previews/ui-templates-scientific-report-d26af32f/document.pdf similarity index 78% rename from docs/images/previews/ui-templates-scientific-report-01382231/document.pdf rename to docs/images/previews/ui-templates-scientific-report-d26af32f/document.pdf index 6622d17..8e65e81 100644 Binary files a/docs/images/previews/ui-templates-scientific-report-01382231/document.pdf and b/docs/images/previews/ui-templates-scientific-report-d26af32f/document.pdf differ diff --git a/docs/integrations/onedoc.mdx b/docs/integrations/onedoc.mdx index 16e20f5..66ff7a3 100644 --- a/docs/integrations/onedoc.mdx +++ b/docs/integrations/onedoc.mdx @@ -89,7 +89,7 @@ import React from "react"; import { PDFTemplate } from "./components/pdf-template"; import { Onedoc } from "@onedoc/client"; import { readFileSync, writeFileSync } from "fs"; -import { compile } from "@onedoc/react-print"; +import { compile } from "@fileforge/react-print"; import { join } from "path"; const ONEDOC_API_KEY = "####-####-####-####"; // replace with your api key diff --git a/docs/troubleshooting/faq.mdx b/docs/troubleshooting/faq.mdx index 26a2a12..6ff0a5b 100644 --- a/docs/troubleshooting/faq.mdx +++ b/docs/troubleshooting/faq.mdx @@ -6,4 +6,4 @@ title: "FAQ" `react-print` ships both for server and client side. Some components are only available for the server side such as `Tailwind`. -If you plan to use `react-print` on the client side, you should import your components from `@onedoc/react-print/client` instead of `@onedoc/react-print` or `@onedoc/react-print/server`. +If you plan to use `react-print` on the client side, you should import your components from `@fileforge/react-print/client` instead of `@fileforge/react-print` or `@fileforge/react-print/server`. diff --git a/docs/ui/templates.mdx b/docs/ui/templates.mdx index 5f8a470..dc1c360 100644 --- a/docs/ui/templates.mdx +++ b/docs/ui/templates.mdx @@ -8,12 +8,12 @@ icon: list
- +
- +
@@ -33,7 +33,7 @@ icon: list
- +
diff --git a/docs/ui/templates/invoice-advanced.mdx b/docs/ui/templates/invoice-advanced.mdx index f2ed88a..a1225bd 100644 --- a/docs/ui/templates/invoice-advanced.mdx +++ b/docs/ui/templates/invoice-advanced.mdx @@ -7,7 +7,7 @@ category: Invoices ```jsx -import { Footnote, PageBottom, Tailwind, CSS } from "@onedoc/react-print"; +import { Footnote, PageBottom, Tailwind, CSS } from "@fileforge/react-print"; import { QRCodeSVG } from "qrcode.react"; import { ArrowRightIcon } from "@heroicons/react/20/solid"; diff --git a/docs/ui/templates/invoice.mdx b/docs/ui/templates/invoice.mdx index 76dba6c..8bc6a23 100644 --- a/docs/ui/templates/invoice.mdx +++ b/docs/ui/templates/invoice.mdx @@ -7,7 +7,7 @@ category: Invoices ```jsx -import { Footnote, PageBottom, Tailwind } from "@onedoc/react-print"; +import { Footnote, PageBottom, Tailwind } from "@fileforge/react-print";
diff --git a/docs/ui/templates/nda-markdown.mdx b/docs/ui/templates/nda-markdown.mdx index 2ca45ae..ba461dc 100644 --- a/docs/ui/templates/nda-markdown.mdx +++ b/docs/ui/templates/nda-markdown.mdx @@ -4,7 +4,7 @@ icon: file-contract category: NDA --- - + ```jsx import React from "react"; @@ -17,7 +17,7 @@ import { PageBottom, PageTop, RunningH1, -} from "@onedoc/react-print"; +} from "@fileforge/react-print"; import fs from "fs"; import path from "path"; @@ -75,131 +75,241 @@ import path from "path"; }, }} > - {`# Mutual Nondisclosure Agreement + {`# Mutual Nondisclosure Agreement +
-This Mutual Nondisclosure Agreement (the “Agreement”) is entered into as of January 28, 2016 by and between OpenConcept Consulting Inc. ("OpenConcept"), and [FULL ADDRESS] [NAME 2] ("[BUSINESS 2]"). +This Mutual Nondisclosure Agreement (the “Agreement”) is entered into as of January 28, 2016 by and between OpenConcept Consulting Inc. ("OpenConcept"), and [FULL ADDRESS] [NAME 2] ("[BUSINESS 2]"). +
-OpenConcept is a incorporated business registered under the laws of Ontario, Canada, with an address of 571 Somerset St. West, operating in and therefore subject to the laws of Ontario, Canada, and represented by Mike Gifford. +OpenConcept is a incorporated business registered under the laws of Ontario, Canada, +with an address of 571 Somerset St. West, operating in and therefore subject to the +laws of Ontario, Canada, and represented by Mike Gifford.
-[BUSINESS 2] is a CORPORATION registered under the laws of [SOMEWHERE], USA, with an address of [ADDRESS 2], operating in and therefore subject to the laws of [SOMEWHERE], USA, and represented by [JOHN DOE].
-To explore the possibility of a business relationship between OpenConcept and [BUSINESS 2], each party (“Discloser”) may disclose sensitive information to the other (“Recipient”). +[BUSINESS 2] is a CORPORATION registered under the laws of [SOMEWHERE], USA, with +an address of [ADDRESS 2], operating in and therefore subject to the laws of [SOMEWHERE], +USA, and represented by [JOHN DOE].
+To explore the possibility of a business relationship between OpenConcept and +[BUSINESS 2], each party (“Discloser”) may disclose sensitive information to the +other (“Recipient”).
-IN CONSIDERATION OF THE MUTUAL PROMISES AND COVENANTS CONTAINED IN THIS AGREEMENT, THE PARTIES AGREE AS FOLLOWS. +IN CONSIDERATION OF THE MUTUAL PROMISES AND COVENANTS CONTAINED IN THIS +AGREEMENT, THE PARTIES AGREE AS FOLLOWS.
# Article 1. Confidential Information -**Section 1. Definition of Confidential Information.** [ The term “Confidential Information” shall mean information of OpenConcept and/or [BUSINESS 2], to the extent not considered a Trade Secret under applicable law, that (i) relates to the business of OpenConcept and/or [BUSINESS 2], (ii) possesses an element of value to OpenConcept and/or [BUSINESS 2], (iii) is not generally known to OpenConcept’s and/or [BUSINESS 2]’s competitors, and (iv) would damage OpenConcept and/or [BUSINESS 2] if disclosed.] [ The term “Confidential Information” means any financial, business, legal and technical information disclosed to Recipient by or for Discloser or any of its affiliates, suppliers, customers and employees. Information includes research, development, operations, marketing, transactions, regulatory affairs, discoveries, inventions, methods, processes, articles, materials, algorithms, software, specifications, designs, drawings, data, strategies, plans, prospects, know-how and ideas, and including any copies, abstracts, summaries, analyses and other derivatives thereof.] Disclosure includes any act of transmitting the information whether previously, presently, or subsequently disclosed to recipient. For convenience, the Disclosing Party may, but is not required to, mark written Confidential Information with the legend "Confidential" or an equivalent designation, Confidential Information also includes information that by its nature would be understood by a reasonable person to be confidential. +**Section 1. Definition of Confidential Information.** [ The term “Confidential Information” shall mean information of OpenConcept and/or [BUSINESS 2], to the extent not considered a Trade Secret under applicable law, that (i) relates to the business of OpenConcept and/or [BUSINESS 2], (ii) possesses an element of value to OpenConcept and/or [BUSINESS 2], (iii) is not generally known to OpenConcept’s and/or [BUSINESS 2]’s competitors, and (iv) would damage OpenConcept and/or [BUSINESS 2] if disclosed.] [ The term “Confidential Information” means any financial, business, legal and technical information disclosed to Recipient by or for Discloser or any of its affiliates, suppliers, customers and employees. Information includes research, development, operations, marketing, transactions, regulatory affairs, discoveries, inventions, methods, processes, articles, materials, algorithms, software, specifications, designs, drawings, data, strategies, plans, prospects, know-how and ideas, and including any copies, abstracts, summaries, analyses and other derivatives thereof.] Disclosure includes any act of transmitting the information whether previously, presently, or subsequently disclosed to recipient. For convenience, the Disclosing Party may, but is not required to, mark written Confidential Information with the legend "Confidential" or an equivalent designation, Confidential Information also includes information that by its nature would be understood by a reasonable person to be confidential. +
-[ll. Trade Secrets*. The term "Trade Secrets" shall mean information of OpenConcept and/or [BUSINESS 2], and their licensors, suppliers, clients and customers which is not commonly known or available to the public and which information (i) derives actual or potential economic value from not being generally known to, and not being readily ascertainable by proper means by, other persons who can obtain economic value from its disclosure or use, and (ii) is the subject of efforts that are reasonable under the circumstances to maintain its secrecy. Trade Secrets include, but are not limited to, technical or non-technical data, formulas, patterns, compilations, programs, devices, methods, techniques, drawings, processes, financial data, financial plans, product plans, or a list of actual or potential customers or suppliers. Notwithstanding anything to the contrary contained in this definition, the Trade Secrets of either party shall not include any information provided by the Discloer to the Recevier as part of the disclosed Confidential Information.] +[ll. Trade Secrets*. The term "Trade Secrets" shall mean information of OpenConcept +and/or [BUSINESS 2], and their licensors, suppliers, clients and customers which +is not commonly known or available to the public and which information (i) derives +actual or potential economic value from not being generally known to, and not being +readily ascertainable by proper means by, other persons who can obtain economic value +from its disclosure or use, and (ii) is the subject of efforts that are reasonable +under the circumstances to maintain its secrecy. Trade Secrets include, but are not +limited to, technical or non-technical data, formulas, patterns, compilations, programs, +devices, methods, techniques, drawings, processes, financial data, financial plans, +product plans, or a list of actual or potential customers or suppliers. Notwithstanding +anything to the contrary contained in this definition, the Trade Secrets of either +party shall not include any information provided by the Discloer to the Recevier +as part of the disclosed Confidential Information.]
-**Section 2. Exceptions to Confidential Information.** Confidential Information shall not include any information that: +**Section 2. Exceptions to Confidential Information.** Confidential Information shall +not include any information that:
-   (a) was rightfully known to Recipient without restriction before receipt from Discloser; +   (a) was rightfully known to Recipient without restriction before +receipt from Discloser;
-   (b) is rightfully disclosed to Recipient without restriction by a third party; +   (b) is rightfully disclosed to Recipient without restriction by +a third party;
-   (c) is or becomes generally known to the public, otherwise known as within the pulic domain, without violation of this Agreement by Recipient; or +   (c) is or becomes generally known to the public, otherwise known +as within the pulic domain, without violation of this Agreement by Recipient; or
-   (d) is independently developed by Recipient or its employees without access to or reliance on such information. +   (d) is independently developed by Recipient or its employees without +access to or reliance on such information.
-**Section 3. Authority to Disclose Confidential Information.** Discloser represents and warrants to Recipient that it, and any human persons disclosing Confidential Information, are authorized to disclose any Confidential Information made available to Recipient under this Agreement. Discloser further represents and warrants to Recipient that it is not bound by the terms of any other Non-Disclosure Agreement or any other legally binding Agreement which restricts the disclosure of the Confidential Information that is or will be necessary to disclose to Recipient. -
+**Section 3. Authority to Disclose Confidential Information.** Discloser represents and warrants to Recipient that it, and any human persons disclosing Confidential Information, are authorized to disclose any Confidential Information made available to Recipient under this Agreement. Discloser further represents and warrants to Recipient that it is not bound by the terms of any other Non-Disclosure Agreement or any other legally binding Agreement which restricts the disclosure of the Confidential Information that is or will be necessary to disclose to Recipient. + +
# Article 2. Use of Confidential Information -**Section 1. Restrictions and Duties.** Recipient agrees to: -
-   (a) use the Confidential Information only for its consideration internally of a business relationship or transaction between the parties, and its performance in any resulting arrangement, but not for any other purpose; -
-   (b) protect the confidentiality of such Confidential Information with the same degree of care with which it protects the confidentiality of its own confidential information, and in no event with less than a reasonable degree of care to prevent any unauthorized access, use, or disclosure of the Confidential Information; -
-   (c) not disclose the Confidential Information to any third party other than Recipient’s employees and agents who have a need to know, and who have been authorized by Recipient to receive, for the permitted purpose and who have been made aware of the confidential nature of the Confidential Information and all of the restrictions in this Agreement; -
-   (d) not copy, using any means of creating a duplicate version, the Confidential Information; -
-   (e) not decompile, disassemble or otherwise reverse engineer any Confidential Information, or use any similar means to discover its underlying composition, structure, source code or trade secrets; and -
-   (f) not to export or re-export any Confidential Information or product thereof in violation of export control laws or regulations. -
-**Section 2. Terms of Transaction are Expressly Confidential Information.** Both parties agree that the terms and conditions of any transaction or possible transaction between the parties, the fact that disclosures, evaluations or discussions are taking place, and the status and results thereof will also be held in confidence by both parties and not disclosed to any third party. -
-**Section 3. Responsibility for Disclosure.** Each party shall be responsible for any breach of its confidentiality obligations by its respective employees and agents. Both parties agree that upon the event of an unauthorized disclosure, Recipient will indemnify the Discloser against any and all losses, damages, claims, expenses, and attorneys' fees incurred or suffered by the Discloser as a result of a material breach of this Agreement by the Recipient or its employees or agents. -
-# Article 3. Compelled Disclosures. +**Section 1. Restrictions and Duties.** Recipient agrees to: -**Section 1. Compliance with Legal Requirements.** This Agreement will not prevent either party from complying with any law, regulation, court order or other legal requirement that purports to compel disclosure of any Confidential Information. -
-**Section 2. Notification of Compelled Disclosure.** Recipient will promptly notify Discloser upon learning of any such legal requirement, and cooperate with Discloser in the exercise of its right to protect the confidentiality of the Confidential Information before any tribunal or governmental agency.
+   (a) use the Confidential Information only for its consideration +internally of a business relationship or transaction between the parties, and its +performance in any resulting arrangement, but not for any other purpose; +
+   (b) protect the confidentiality of such Confidential Information +with the same degree of care with which it protects the confidentiality of its own +confidential information, and in no event with less than a reasonable degree of care +to prevent any unauthorized access, use, or disclosure of the Confidential Information; +
+   (c) not disclose the Confidential Information to any third party +other than Recipient’s employees and agents who have a need to know, and who have +been authorized by Recipient to receive, for the permitted purpose and who have been +made aware of the confidential nature of the Confidential Information and all of +the restrictions in this Agreement; +
+   (d) not copy, using any means of creating a duplicate version, +the Confidential Information; +
+   (e) not decompile, disassemble or otherwise reverse engineer any +Confidential Information, or use any similar means to discover its underlying composition, +structure, source code or trade secrets; and +
+   (f) not to export or re-export any Confidential Information or +product thereof in violation of export control laws or regulations. +
+**Section 2. Terms of Transaction are Expressly Confidential Information.** Both +parties agree that the terms and conditions of any transaction or possible transaction +between the parties, the fact that disclosures, evaluations or discussions are taking +place, and the status and results thereof will also be held in confidence by both +parties and not disclosed to any third party. +
+**Section 3. Responsibility for Disclosure.** Each party shall be responsible for +any breach of its confidentiality obligations by its respective employees and agents. +Both parties agree that upon the event of an unauthorized disclosure, Recipient will +indemnify the Discloser against any and all losses, damages, claims, expenses, and +attorneys' fees incurred or suffered by the Discloser as a result of a material breach +of this Agreement by the Recipient or its employees or agents. +
# Article 3. Compelled Disclosures. -# Article 4. No Warranties or Licenses +**Section 1. Compliance with Legal Requirements.** This Agreement will not prevent either party from complying with any law, regulation, court order or other legal requirement that purports to compel disclosure of any Confidential Information. -**Section 1. Express Disclaimer of Any Warranties of Fitness.** ALL CONFIDENTIAL INFORMATION IS PROVIDED "AS IS". THE DISCLOSING PARTY MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING NON-INFRINGEMENT OF THIRD PARTY RIGHTS OR ITS ACCURACY, COMPLETENESS OR PERFORMANCE. Both parties agree that Discloser will not be liable to Recipient for damages arising from any use of the Confidential Information, from errors, omissions or otherwise. -
-**Section 2. Owner of Confidential Information.** All of Discloser’s rights in and to its Confidential Information remain the exclusive property of Discloser. -
-**Section 3. No License.** Neither this Agreement, nor any disclosure of Confidential Information hereunder, will:
-   (a) grant to Recipient any right or license under any copyright, patent, mask work, trade secret or other intellectual property right, except solely for the use expressly permitted herein; +**Section 2. Notification of Compelled Disclosure.** Recipient will promptly notify +Discloser upon learning of any such legal requirement, and cooperate with Discloser +in the exercise of its right to protect the confidentiality of the Confidential Information +before any tribunal or governmental agency.
-   (b) obligate either party to disclose or receive any information, perform any work or enter into any agreement; -
-   (c) limit either party from developing, manufacturing or marketing products or services that may be competitive with those of the other except insofar as this Agreement limits the use and disclosure of Confidential Information; -
-   (d) limit either party from assigning or reassigning its employees in any way; or -
-   (e) limit either party from entering into any business relationship with third parties which are not the subject of or substantially related to the transaction or possible transaction between the parties. -
-# Article 5. Termination and Remedies -**Section 1. Termination.** This Agreement will terminate as to the further exchange of Confidential Information immediately upon the earlier of receipt by one party of written notice from the other or one year after the date of this Agreement. -
-**Section 2. Survival.** The obligations within this Agreement, as they apply to any Confidential Information disclosed prior to the termination of this Agreement, will survive termination for a period of 5 years; *provided*, Recipient’s obligations hereunder shall survive and continue in effect thereafter with respect to any Confidential Information that is a trade secret under applicable law. -
-**Section 3. Return of Confidential Information.** Upon termination of this Agreement for any reason, or upon Discloser’s request at any time, Recipient shall promptly return to Discloser all originals and any authorized copies of any Confidential Information and destroy all information, records and materials developed therefrom. -
-**Section 4. Remedies.** Due to the unique nature of the Confidential Information, the parties agree that any breach or threatened breach of this Agreement will cause not only financial harm to Discloser, but also irreparable harm for which money damages will not be an adequate remedy. Therefore, Discloser shall be entitled, in addition to any other legal or equitable remedies, to an injunction or similar equitable relief against any such breach or threatened breach without the necessity of posting any bond. -
-​l. Final Provisions. -
-**Section 5. Entire Agreement.** This Agreement constitutes the entire agreement, and supersedes all prior negotiations, understandings or agreements (oral or written), between the parties concerning the subject matter hereof. +# Article 4. No Warranties or Licenses + +**Section 1. Express Disclaimer of Any Warranties of Fitness.** ALL CONFIDENTIAL INFORMATION IS PROVIDED "AS IS". THE DISCLOSING PARTY MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING NON-INFRINGEMENT OF THIRD PARTY RIGHTS OR ITS ACCURACY, COMPLETENESS OR PERFORMANCE. Both parties agree that Discloser will not be liable to Recipient for damages arising from any use of the Confidential Information, from errors, omissions or otherwise. +
-**Section 6. Counterparts.** This Agreement may be executed in one or more counterparts, each of which is an original, but taken together constituting one and the same instrument. Execution of a facsimile or electronic copy shall have the same force and effect as execution of an original, and a facsimile or electronic signature shall be deemed an original and valid signature. +**Section 2. Owner of Confidential Information.** All of Discloser’s rights in and +to its Confidential Information remain the exclusive property of Discloser.
-**Section 7. Waivers.** No change, consent or waiver to this Agreement will be effective unless in writing and signed by the party against which enforcement is sought. The failure of either party to enforce its rights under this Agreement at any time for any period shall not be construed as a waiver of such rights. +**Section 3. No License.** Neither this Agreement, nor any disclosure of Confidential +Information hereunder, will:
-**Section 8. Notice.** Any notice hereunder will be effective upon receipt and shall be given in writing, in English and delivered to the other party at its address given herein or at such other address designated by written notice. +   (a) grant to Recipient any right or license under any copyright, +patent, mask work, trade secret or other intellectual property right, except solely +for the use expressly permitted herein;
-**Section 9. Rights.** Unless expressly provided otherwise, each right and remedy in this Agreement is in addition to any other right or remedy, at law or in equity, and the exercise of one right or remedy will not be deemed a waiver of any other right or remedy. +   (b) obligate either party to disclose or receive any information, +perform any work or enter into any agreement;
-**Section 10. Severability.** In the event that any provision of this Agreement shall be determined to be illegal or unenforceable, that provision will be limited or eliminated to the minimum extent necessary so that the Agreement shall otherwise remain in full force and effect and enforceable. +   (c) limit either party from developing, manufacturing or marketing +products or services that may be competitive with those of the other except insofar +as this Agreement limits the use and disclosure of Confidential Information;
-**Section 11. Governing Law.** This Agreement shall be governed by and construed in accordance with the laws of the Ontario, Canada without regard to the conflicts of laws provisions thereof. Exclusive jurisdiction and venue for any action arising under this Agreement is in the federal and provincial courts having jurisdiction over OpenConcept's principal office, and both parties hereby consent to such jurisdiction and venue for this purpose. +   (d) limit either party from assigning or reassigning its employees +in any way; or
-**Section 12. Attorney's Fees and Costs.** In any action or proceeding to enforce or interpret this Agreement, the prevailing party will be entitled to recover from the other party its costs and expenses (including reasonable attorneys' fees) incurred in connection with such action or proceeding and enforcing any judgment or order obtained. +   (e) limit either party from entering into any business relationship +with third parties which are not the subject of or substantially related to the transaction +or possible transaction between the parties. +
# Article 5. Termination and Remedies + +**Section 1. Termination.** This Agreement will terminate as to the further exchange of Confidential Information immediately upon the earlier of receipt by one party of written notice from the other or one year after the date of this Agreement. +
-IN WITNESS HEREOF, the parties have executed this Agreement as a sealed instrument as of the date set forth above. +**Section 2. Survival.** The obligations within this Agreement, as they apply to +any Confidential Information disclosed prior to the termination of this Agreement, +will survive termination for a period of 5 years; *provided*, Recipient’s obligations +hereunder shall survive and continue in effect thereafter with respect to any Confidential +Information that is a trade secret under applicable law. +
+**Section 3. Return of Confidential Information.** Upon termination of this Agreement +for any reason, or upon Discloser’s request at any time, Recipient shall promptly +return to Discloser all originals and any authorized copies of any Confidential Information +and destroy all information, records and materials developed therefrom. +
+**Section 4. Remedies.** Due to the unique nature of the Confidential Information, +the parties agree that any breach or threatened breach of this Agreement will cause +not only financial harm to Discloser, but also irreparable harm for which money damages +will not be an adequate remedy. Therefore, Discloser shall be entitled, in addition +to any other legal or equitable remedies, to an injunction or similar equitable relief +against any such breach or threatened breach without the necessity of posting any +bond. +
+​l. Final Provisions. +
+**Section 5. Entire Agreement.** This Agreement constitutes the entire agreement, +and supersedes all prior negotiations, understandings or agreements (oral or written), +between the parties concerning the subject matter hereof. +
+**Section 6. Counterparts.** This Agreement may be executed in one or more counterparts, +each of which is an original, but taken together constituting one and the same instrument. +Execution of a facsimile or electronic copy shall have the same force and effect +as execution of an original, and a facsimile or electronic signature shall be deemed +an original and valid signature. +
+**Section 7. Waivers.** No change, consent or waiver to this Agreement will be effective +unless in writing and signed by the party against which enforcement is sought. The +failure of either party to enforce its rights under this Agreement at any time for +any period shall not be construed as a waiver of such rights. +
+**Section 8. Notice.** Any notice hereunder will be effective upon receipt and shall +be given in writing, in English and delivered to the other party at its address given +herein or at such other address designated by written notice. +
+**Section 9. Rights.** Unless expressly provided otherwise, each right and remedy +in this Agreement is in addition to any other right or remedy, at law or in equity, +and the exercise of one right or remedy will not be deemed a waiver of any other +right or remedy. +
+**Section 10. Severability.** In the event that any provision of this Agreement shall +be determined to be illegal or unenforceable, that provision will be limited or eliminated +to the minimum extent necessary so that the Agreement shall otherwise remain in full +force and effect and enforceable. +
+**Section 11. Governing Law.** This Agreement shall be governed by and construed +in accordance with the laws of the Ontario, Canada without regard to the conflicts +of laws provisions thereof. Exclusive jurisdiction and venue for any action arising +under this Agreement is in the federal and provincial courts having jurisdiction +over OpenConcept's principal office, and both parties hereby consent to such jurisdiction +and venue for this purpose. +
+**Section 12. Attorney's Fees and Costs.** In any action or proceeding to enforce +or interpret this Agreement, the prevailing party will be entitled to recover from +the other party its costs and expenses (including reasonable attorneys' fees) incurred +in connection with such action or proceeding and enforcing any judgment or order +obtained. +
+IN WITNESS HEREOF, the parties have executed this Agreement as a sealed instrument +as of the date set forth above.

-
-

OpenConcept Consulting

-
-

Signature:

-
-

Date:

-
-
-

[BUSINESS 2]

-
-

Signature:

-
-

Date:

+
+

+ OpenConcept Consulting +

+
+

Signature:

+
+

Date:

+
+
+

+ [BUSINESS 2] +

+
+

Signature:

+
+

Date:

+
-
`} +`} ; diff --git a/docs/ui/templates/receipt.mdx b/docs/ui/templates/receipt.mdx index 544c470..d60215c 100644 --- a/docs/ui/templates/receipt.mdx +++ b/docs/ui/templates/receipt.mdx @@ -7,7 +7,7 @@ category: Receipts ```jsx -import { Footnote, Tailwind } from "@onedoc/react-print"; +import { Footnote, Tailwind } from "@fileforge/react-print";
diff --git a/docs/ui/templates/report-charts.mdx b/docs/ui/templates/report-charts.mdx index ab08a3e..c881d3d 100644 --- a/docs/ui/templates/report-charts.mdx +++ b/docs/ui/templates/report-charts.mdx @@ -4,10 +4,10 @@ icon: chart-pie category: Reports --- - + ```jsx -import { Footnote, PageBottom, Tailwind, CSS } from "@onedoc/react-print"; +import { Footnote, PageBottom, Tailwind, CSS } from "@fileforge/react-print"; import { BarChart, XAxis, diff --git a/docs/ui/templates/scientific-report.mdx b/docs/ui/templates/scientific-report.mdx index 8e96985..77e817d 100644 --- a/docs/ui/templates/scientific-report.mdx +++ b/docs/ui/templates/scientific-report.mdx @@ -4,7 +4,7 @@ icon: flask category: Reports --- - + ```jsx import React, { createContext, useEffect, useState } from "react"; @@ -15,7 +15,7 @@ import { PageBreak, Footnote, Markdown, -} from "@onedoc/react-print"; +} from "@fileforge/react-print"; export const SectionComponent = ({ title, content, isSection }) => { return ( @@ -32,7 +32,7 @@ export const SectionComponent = ({ title, content, isSection }) => { }; - {/* A CSS snippet to define the page size, margins, fonts, etc. + {/* A CSS snippet to define the page size, margins, fonts, etc. It also enforce the space between line to be small*/} {String.raw` @@ -44,7 +44,7 @@ export const SectionComponent = ({ title, content, isSection }) => { body { line-height: 1.1; } - + `} @@ -298,8 +298,9 @@ export const SectionComponent = ({ title, content, isSection }) => {
               
                 {String.raw`function helloWorld() {
-  console.log("Hello, World!");
-  console.log("This is a code snippet");
+
+console.log("Hello, World!");
+console.log("This is a code snippet");
 }`}
               
             
diff --git a/package-lock.json b/package-lock.json index 940b382..6f1d0a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "@onedoc/react-print", + "name": "@fileforge/react-print", "version": "0.1.133", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@onedoc/react-print", - "version": "0.1.133", + "name": "@fileforge/react-print", + "version": "0.1.132", "license": "ISC", "dependencies": { "@emotion/cache": "^11.11.0", diff --git a/package.json b/package.json index 0b602ed..11c1a3b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "@onedoc/react-print", + "name": "@fileforge/react-print", "version": "0.1.133", - "description": "Onedoc components for JavaScript React", + "description": "Fileforge components for JavaScript React", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", @@ -32,7 +32,7 @@ } }, "scripts": { - "build": "patch-package && tsup --external @onedoc/react-print --clean && tsup --external @onedoc/react-print", + "build": "patch-package && tsup --external @fileforge/react-print --clean && tsup --external @fileforge/react-print", "test": "vitest --browser chrome", "dev": "(cd ./docs && mintlify dev --watch)", "build-components": "npm run build && tsx ./docgen/index.ts", diff --git a/src/ui/templates/invoice-advanced.mdx b/src/ui/templates/invoice-advanced.mdx index f66d1f0..9f43b9c 100644 --- a/src/ui/templates/invoice-advanced.mdx +++ b/src/ui/templates/invoice-advanced.mdx @@ -4,7 +4,7 @@ icon: file-invoice category: Invoices --- -import { Footnote, PageBottom, Tailwind, CSS } from "@onedoc/react-print"; +import { Footnote, PageBottom, Tailwind, CSS } from "@fileforge/react-print"; import { QRCodeSVG } from "qrcode.react"; import { ArrowRightIcon } from "@heroicons/react/20/solid"; diff --git a/src/ui/templates/invoice.mdx b/src/ui/templates/invoice.mdx index 3de7ff0..83c3325 100644 --- a/src/ui/templates/invoice.mdx +++ b/src/ui/templates/invoice.mdx @@ -4,7 +4,7 @@ icon: file-invoice category: Invoices --- -import { Footnote, PageBottom, Tailwind } from "@onedoc/react-print"; +import { Footnote, PageBottom, Tailwind } from "@fileforge/react-print";
diff --git a/src/ui/templates/nda-markdown.mdx b/src/ui/templates/nda-markdown.mdx index 0f2fb36..f771b26 100644 --- a/src/ui/templates/nda-markdown.mdx +++ b/src/ui/templates/nda-markdown.mdx @@ -4,7 +4,6 @@ icon: file-contract category: NDA --- - import React from "react"; import { Markdown, @@ -15,12 +14,10 @@ import { PageBottom, PageTop, RunningH1, -} from "@onedoc/react-print"; +} from "@fileforge/react-print"; import fs from "fs"; import path from "path"; - - {`@page {size: A4;margin-top:2cm;margin-right:4cm;margin-left:2cm;margin-bottom:2cm;`} @@ -76,134 +73,244 @@ import path from "path"; }, }} > - {`# Mutual Nondisclosure Agreement + {`# Mutual Nondisclosure Agreement +
-This Mutual Nondisclosure Agreement (the “Agreement”) is entered into as of January 28, 2016 by and between OpenConcept Consulting Inc. ("OpenConcept"), and [FULL ADDRESS] [NAME 2] ("[BUSINESS 2]"). +This Mutual Nondisclosure Agreement (the “Agreement”) is entered into as of January 28, 2016 by and between OpenConcept Consulting Inc. ("OpenConcept"), and [FULL ADDRESS] [NAME 2] ("[BUSINESS 2]"). +
-OpenConcept is a incorporated business registered under the laws of Ontario, Canada, with an address of 571 Somerset St. West, operating in and therefore subject to the laws of Ontario, Canada, and represented by Mike Gifford. +OpenConcept is a incorporated business registered under the laws of Ontario, Canada, +with an address of 571 Somerset St. West, operating in and therefore subject to the +laws of Ontario, Canada, and represented by Mike Gifford.
-[BUSINESS 2] is a CORPORATION registered under the laws of [SOMEWHERE], USA, with an address of [ADDRESS 2], operating in and therefore subject to the laws of [SOMEWHERE], USA, and represented by [JOHN DOE].
-To explore the possibility of a business relationship between OpenConcept and [BUSINESS 2], each party (“Discloser”) may disclose sensitive information to the other (“Recipient”). +[BUSINESS 2] is a CORPORATION registered under the laws of [SOMEWHERE], USA, with +an address of [ADDRESS 2], operating in and therefore subject to the laws of [SOMEWHERE], +USA, and represented by [JOHN DOE].
+To explore the possibility of a business relationship between OpenConcept and +[BUSINESS 2], each party (“Discloser”) may disclose sensitive information to the +other (“Recipient”).
-IN CONSIDERATION OF THE MUTUAL PROMISES AND COVENANTS CONTAINED IN THIS AGREEMENT, THE PARTIES AGREE AS FOLLOWS. +IN CONSIDERATION OF THE MUTUAL PROMISES AND COVENANTS CONTAINED IN THIS +AGREEMENT, THE PARTIES AGREE AS FOLLOWS.
# Article 1. Confidential Information -**Section 1. Definition of Confidential Information.** [ The term “Confidential Information” shall mean information of OpenConcept and/or [BUSINESS 2], to the extent not considered a Trade Secret under applicable law, that (i) relates to the business of OpenConcept and/or [BUSINESS 2], (ii) possesses an element of value to OpenConcept and/or [BUSINESS 2], (iii) is not generally known to OpenConcept’s and/or [BUSINESS 2]’s competitors, and (iv) would damage OpenConcept and/or [BUSINESS 2] if disclosed.] [ The term “Confidential Information” means any financial, business, legal and technical information disclosed to Recipient by or for Discloser or any of its affiliates, suppliers, customers and employees. Information includes research, development, operations, marketing, transactions, regulatory affairs, discoveries, inventions, methods, processes, articles, materials, algorithms, software, specifications, designs, drawings, data, strategies, plans, prospects, know-how and ideas, and including any copies, abstracts, summaries, analyses and other derivatives thereof.] Disclosure includes any act of transmitting the information whether previously, presently, or subsequently disclosed to recipient. For convenience, the Disclosing Party may, but is not required to, mark written Confidential Information with the legend "Confidential" or an equivalent designation, Confidential Information also includes information that by its nature would be understood by a reasonable person to be confidential. +**Section 1. Definition of Confidential Information.** [ The term “Confidential Information” shall mean information of OpenConcept and/or [BUSINESS 2], to the extent not considered a Trade Secret under applicable law, that (i) relates to the business of OpenConcept and/or [BUSINESS 2], (ii) possesses an element of value to OpenConcept and/or [BUSINESS 2], (iii) is not generally known to OpenConcept’s and/or [BUSINESS 2]’s competitors, and (iv) would damage OpenConcept and/or [BUSINESS 2] if disclosed.] [ The term “Confidential Information” means any financial, business, legal and technical information disclosed to Recipient by or for Discloser or any of its affiliates, suppliers, customers and employees. Information includes research, development, operations, marketing, transactions, regulatory affairs, discoveries, inventions, methods, processes, articles, materials, algorithms, software, specifications, designs, drawings, data, strategies, plans, prospects, know-how and ideas, and including any copies, abstracts, summaries, analyses and other derivatives thereof.] Disclosure includes any act of transmitting the information whether previously, presently, or subsequently disclosed to recipient. For convenience, the Disclosing Party may, but is not required to, mark written Confidential Information with the legend "Confidential" or an equivalent designation, Confidential Information also includes information that by its nature would be understood by a reasonable person to be confidential. +
-[ll. Trade Secrets*. The term "Trade Secrets" shall mean information of OpenConcept and/or [BUSINESS 2], and their licensors, suppliers, clients and customers which is not commonly known or available to the public and which information (i) derives actual or potential economic value from not being generally known to, and not being readily ascertainable by proper means by, other persons who can obtain economic value from its disclosure or use, and (ii) is the subject of efforts that are reasonable under the circumstances to maintain its secrecy. Trade Secrets include, but are not limited to, technical or non-technical data, formulas, patterns, compilations, programs, devices, methods, techniques, drawings, processes, financial data, financial plans, product plans, or a list of actual or potential customers or suppliers. Notwithstanding anything to the contrary contained in this definition, the Trade Secrets of either party shall not include any information provided by the Discloer to the Recevier as part of the disclosed Confidential Information.] +[ll. Trade Secrets*. The term "Trade Secrets" shall mean information of OpenConcept +and/or [BUSINESS 2], and their licensors, suppliers, clients and customers which +is not commonly known or available to the public and which information (i) derives +actual or potential economic value from not being generally known to, and not being +readily ascertainable by proper means by, other persons who can obtain economic value +from its disclosure or use, and (ii) is the subject of efforts that are reasonable +under the circumstances to maintain its secrecy. Trade Secrets include, but are not +limited to, technical or non-technical data, formulas, patterns, compilations, programs, +devices, methods, techniques, drawings, processes, financial data, financial plans, +product plans, or a list of actual or potential customers or suppliers. Notwithstanding +anything to the contrary contained in this definition, the Trade Secrets of either +party shall not include any information provided by the Discloer to the Recevier +as part of the disclosed Confidential Information.]
-**Section 2. Exceptions to Confidential Information.** Confidential Information shall not include any information that: +**Section 2. Exceptions to Confidential Information.** Confidential Information shall +not include any information that:
-   (a) was rightfully known to Recipient without restriction before receipt from Discloser; +   (a) was rightfully known to Recipient without restriction before +receipt from Discloser;
-   (b) is rightfully disclosed to Recipient without restriction by a third party; +   (b) is rightfully disclosed to Recipient without restriction by +a third party;
-   (c) is or becomes generally known to the public, otherwise known as within the pulic domain, without violation of this Agreement by Recipient; or +   (c) is or becomes generally known to the public, otherwise known +as within the pulic domain, without violation of this Agreement by Recipient; or
-   (d) is independently developed by Recipient or its employees without access to or reliance on such information. +   (d) is independently developed by Recipient or its employees without +access to or reliance on such information.
-**Section 3. Authority to Disclose Confidential Information.** Discloser represents and warrants to Recipient that it, and any human persons disclosing Confidential Information, are authorized to disclose any Confidential Information made available to Recipient under this Agreement. Discloser further represents and warrants to Recipient that it is not bound by the terms of any other Non-Disclosure Agreement or any other legally binding Agreement which restricts the disclosure of the Confidential Information that is or will be necessary to disclose to Recipient. -
+**Section 3. Authority to Disclose Confidential Information.** Discloser represents and warrants to Recipient that it, and any human persons disclosing Confidential Information, are authorized to disclose any Confidential Information made available to Recipient under this Agreement. Discloser further represents and warrants to Recipient that it is not bound by the terms of any other Non-Disclosure Agreement or any other legally binding Agreement which restricts the disclosure of the Confidential Information that is or will be necessary to disclose to Recipient. + +
# Article 2. Use of Confidential Information -**Section 1. Restrictions and Duties.** Recipient agrees to: -
-   (a) use the Confidential Information only for its consideration internally of a business relationship or transaction between the parties, and its performance in any resulting arrangement, but not for any other purpose; -
-   (b) protect the confidentiality of such Confidential Information with the same degree of care with which it protects the confidentiality of its own confidential information, and in no event with less than a reasonable degree of care to prevent any unauthorized access, use, or disclosure of the Confidential Information; -
-   (c) not disclose the Confidential Information to any third party other than Recipient’s employees and agents who have a need to know, and who have been authorized by Recipient to receive, for the permitted purpose and who have been made aware of the confidential nature of the Confidential Information and all of the restrictions in this Agreement; -
-   (d) not copy, using any means of creating a duplicate version, the Confidential Information; -
-   (e) not decompile, disassemble or otherwise reverse engineer any Confidential Information, or use any similar means to discover its underlying composition, structure, source code or trade secrets; and -
-   (f) not to export or re-export any Confidential Information or product thereof in violation of export control laws or regulations. -
-**Section 2. Terms of Transaction are Expressly Confidential Information.** Both parties agree that the terms and conditions of any transaction or possible transaction between the parties, the fact that disclosures, evaluations or discussions are taking place, and the status and results thereof will also be held in confidence by both parties and not disclosed to any third party. -
-**Section 3. Responsibility for Disclosure.** Each party shall be responsible for any breach of its confidentiality obligations by its respective employees and agents. Both parties agree that upon the event of an unauthorized disclosure, Recipient will indemnify the Discloser against any and all losses, damages, claims, expenses, and attorneys' fees incurred or suffered by the Discloser as a result of a material breach of this Agreement by the Recipient or its employees or agents. -
-# Article 3. Compelled Disclosures. +**Section 1. Restrictions and Duties.** Recipient agrees to: -**Section 1. Compliance with Legal Requirements.** This Agreement will not prevent either party from complying with any law, regulation, court order or other legal requirement that purports to compel disclosure of any Confidential Information. -
-**Section 2. Notification of Compelled Disclosure.** Recipient will promptly notify Discloser upon learning of any such legal requirement, and cooperate with Discloser in the exercise of its right to protect the confidentiality of the Confidential Information before any tribunal or governmental agency.
+   (a) use the Confidential Information only for its consideration +internally of a business relationship or transaction between the parties, and its +performance in any resulting arrangement, but not for any other purpose; +
+   (b) protect the confidentiality of such Confidential Information +with the same degree of care with which it protects the confidentiality of its own +confidential information, and in no event with less than a reasonable degree of care +to prevent any unauthorized access, use, or disclosure of the Confidential Information; +
+   (c) not disclose the Confidential Information to any third party +other than Recipient’s employees and agents who have a need to know, and who have +been authorized by Recipient to receive, for the permitted purpose and who have been +made aware of the confidential nature of the Confidential Information and all of +the restrictions in this Agreement; +
+   (d) not copy, using any means of creating a duplicate version, +the Confidential Information; +
+   (e) not decompile, disassemble or otherwise reverse engineer any +Confidential Information, or use any similar means to discover its underlying composition, +structure, source code or trade secrets; and +
+   (f) not to export or re-export any Confidential Information or +product thereof in violation of export control laws or regulations. +
+**Section 2. Terms of Transaction are Expressly Confidential Information.** Both +parties agree that the terms and conditions of any transaction or possible transaction +between the parties, the fact that disclosures, evaluations or discussions are taking +place, and the status and results thereof will also be held in confidence by both +parties and not disclosed to any third party. +
+**Section 3. Responsibility for Disclosure.** Each party shall be responsible for +any breach of its confidentiality obligations by its respective employees and agents. +Both parties agree that upon the event of an unauthorized disclosure, Recipient will +indemnify the Discloser against any and all losses, damages, claims, expenses, and +attorneys' fees incurred or suffered by the Discloser as a result of a material breach +of this Agreement by the Recipient or its employees or agents. +
# Article 3. Compelled Disclosures. -# Article 4. No Warranties or Licenses +**Section 1. Compliance with Legal Requirements.** This Agreement will not prevent either party from complying with any law, regulation, court order or other legal requirement that purports to compel disclosure of any Confidential Information. -**Section 1. Express Disclaimer of Any Warranties of Fitness.** ALL CONFIDENTIAL INFORMATION IS PROVIDED "AS IS". THE DISCLOSING PARTY MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING NON-INFRINGEMENT OF THIRD PARTY RIGHTS OR ITS ACCURACY, COMPLETENESS OR PERFORMANCE. Both parties agree that Discloser will not be liable to Recipient for damages arising from any use of the Confidential Information, from errors, omissions or otherwise. -
-**Section 2. Owner of Confidential Information.** All of Discloser’s rights in and to its Confidential Information remain the exclusive property of Discloser. -
-**Section 3. No License.** Neither this Agreement, nor any disclosure of Confidential Information hereunder, will:
-   (a) grant to Recipient any right or license under any copyright, patent, mask work, trade secret or other intellectual property right, except solely for the use expressly permitted herein; +**Section 2. Notification of Compelled Disclosure.** Recipient will promptly notify +Discloser upon learning of any such legal requirement, and cooperate with Discloser +in the exercise of its right to protect the confidentiality of the Confidential Information +before any tribunal or governmental agency.
-   (b) obligate either party to disclose or receive any information, perform any work or enter into any agreement; -
-   (c) limit either party from developing, manufacturing or marketing products or services that may be competitive with those of the other except insofar as this Agreement limits the use and disclosure of Confidential Information; -
-   (d) limit either party from assigning or reassigning its employees in any way; or -
-   (e) limit either party from entering into any business relationship with third parties which are not the subject of or substantially related to the transaction or possible transaction between the parties. -
-# Article 5. Termination and Remedies -**Section 1. Termination.** This Agreement will terminate as to the further exchange of Confidential Information immediately upon the earlier of receipt by one party of written notice from the other or one year after the date of this Agreement. -
-**Section 2. Survival.** The obligations within this Agreement, as they apply to any Confidential Information disclosed prior to the termination of this Agreement, will survive termination for a period of 5 years; *provided*, Recipient’s obligations hereunder shall survive and continue in effect thereafter with respect to any Confidential Information that is a trade secret under applicable law. -
-**Section 3. Return of Confidential Information.** Upon termination of this Agreement for any reason, or upon Discloser’s request at any time, Recipient shall promptly return to Discloser all originals and any authorized copies of any Confidential Information and destroy all information, records and materials developed therefrom. -
-**Section 4. Remedies.** Due to the unique nature of the Confidential Information, the parties agree that any breach or threatened breach of this Agreement will cause not only financial harm to Discloser, but also irreparable harm for which money damages will not be an adequate remedy. Therefore, Discloser shall be entitled, in addition to any other legal or equitable remedies, to an injunction or similar equitable relief against any such breach or threatened breach without the necessity of posting any bond. -
-​l. Final Provisions. -
-**Section 5. Entire Agreement.** This Agreement constitutes the entire agreement, and supersedes all prior negotiations, understandings or agreements (oral or written), between the parties concerning the subject matter hereof. +# Article 4. No Warranties or Licenses + +**Section 1. Express Disclaimer of Any Warranties of Fitness.** ALL CONFIDENTIAL INFORMATION IS PROVIDED "AS IS". THE DISCLOSING PARTY MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING NON-INFRINGEMENT OF THIRD PARTY RIGHTS OR ITS ACCURACY, COMPLETENESS OR PERFORMANCE. Both parties agree that Discloser will not be liable to Recipient for damages arising from any use of the Confidential Information, from errors, omissions or otherwise. +
-**Section 6. Counterparts.** This Agreement may be executed in one or more counterparts, each of which is an original, but taken together constituting one and the same instrument. Execution of a facsimile or electronic copy shall have the same force and effect as execution of an original, and a facsimile or electronic signature shall be deemed an original and valid signature. +**Section 2. Owner of Confidential Information.** All of Discloser’s rights in and +to its Confidential Information remain the exclusive property of Discloser.
-**Section 7. Waivers.** No change, consent or waiver to this Agreement will be effective unless in writing and signed by the party against which enforcement is sought. The failure of either party to enforce its rights under this Agreement at any time for any period shall not be construed as a waiver of such rights. +**Section 3. No License.** Neither this Agreement, nor any disclosure of Confidential +Information hereunder, will:
-**Section 8. Notice.** Any notice hereunder will be effective upon receipt and shall be given in writing, in English and delivered to the other party at its address given herein or at such other address designated by written notice. +   (a) grant to Recipient any right or license under any copyright, +patent, mask work, trade secret or other intellectual property right, except solely +for the use expressly permitted herein;
-**Section 9. Rights.** Unless expressly provided otherwise, each right and remedy in this Agreement is in addition to any other right or remedy, at law or in equity, and the exercise of one right or remedy will not be deemed a waiver of any other right or remedy. +   (b) obligate either party to disclose or receive any information, +perform any work or enter into any agreement;
-**Section 10. Severability.** In the event that any provision of this Agreement shall be determined to be illegal or unenforceable, that provision will be limited or eliminated to the minimum extent necessary so that the Agreement shall otherwise remain in full force and effect and enforceable. +   (c) limit either party from developing, manufacturing or marketing +products or services that may be competitive with those of the other except insofar +as this Agreement limits the use and disclosure of Confidential Information;
-**Section 11. Governing Law.** This Agreement shall be governed by and construed in accordance with the laws of the Ontario, Canada without regard to the conflicts of laws provisions thereof. Exclusive jurisdiction and venue for any action arising under this Agreement is in the federal and provincial courts having jurisdiction over OpenConcept's principal office, and both parties hereby consent to such jurisdiction and venue for this purpose. +   (d) limit either party from assigning or reassigning its employees +in any way; or
-**Section 12. Attorney's Fees and Costs.** In any action or proceeding to enforce or interpret this Agreement, the prevailing party will be entitled to recover from the other party its costs and expenses (including reasonable attorneys' fees) incurred in connection with such action or proceeding and enforcing any judgment or order obtained. +   (e) limit either party from entering into any business relationship +with third parties which are not the subject of or substantially related to the transaction +or possible transaction between the parties. +
# Article 5. Termination and Remedies + +**Section 1. Termination.** This Agreement will terminate as to the further exchange of Confidential Information immediately upon the earlier of receipt by one party of written notice from the other or one year after the date of this Agreement. +
-IN WITNESS HEREOF, the parties have executed this Agreement as a sealed instrument as of the date set forth above. +**Section 2. Survival.** The obligations within this Agreement, as they apply to +any Confidential Information disclosed prior to the termination of this Agreement, +will survive termination for a period of 5 years; *provided*, Recipient’s obligations +hereunder shall survive and continue in effect thereafter with respect to any Confidential +Information that is a trade secret under applicable law. +
+**Section 3. Return of Confidential Information.** Upon termination of this Agreement +for any reason, or upon Discloser’s request at any time, Recipient shall promptly +return to Discloser all originals and any authorized copies of any Confidential Information +and destroy all information, records and materials developed therefrom. +
+**Section 4. Remedies.** Due to the unique nature of the Confidential Information, +the parties agree that any breach or threatened breach of this Agreement will cause +not only financial harm to Discloser, but also irreparable harm for which money damages +will not be an adequate remedy. Therefore, Discloser shall be entitled, in addition +to any other legal or equitable remedies, to an injunction or similar equitable relief +against any such breach or threatened breach without the necessity of posting any +bond. +
+​l. Final Provisions. +
+**Section 5. Entire Agreement.** This Agreement constitutes the entire agreement, +and supersedes all prior negotiations, understandings or agreements (oral or written), +between the parties concerning the subject matter hereof. +
+**Section 6. Counterparts.** This Agreement may be executed in one or more counterparts, +each of which is an original, but taken together constituting one and the same instrument. +Execution of a facsimile or electronic copy shall have the same force and effect +as execution of an original, and a facsimile or electronic signature shall be deemed +an original and valid signature. +
+**Section 7. Waivers.** No change, consent or waiver to this Agreement will be effective +unless in writing and signed by the party against which enforcement is sought. The +failure of either party to enforce its rights under this Agreement at any time for +any period shall not be construed as a waiver of such rights. +
+**Section 8. Notice.** Any notice hereunder will be effective upon receipt and shall +be given in writing, in English and delivered to the other party at its address given +herein or at such other address designated by written notice. +
+**Section 9. Rights.** Unless expressly provided otherwise, each right and remedy +in this Agreement is in addition to any other right or remedy, at law or in equity, +and the exercise of one right or remedy will not be deemed a waiver of any other +right or remedy. +
+**Section 10. Severability.** In the event that any provision of this Agreement shall +be determined to be illegal or unenforceable, that provision will be limited or eliminated +to the minimum extent necessary so that the Agreement shall otherwise remain in full +force and effect and enforceable. +
+**Section 11. Governing Law.** This Agreement shall be governed by and construed +in accordance with the laws of the Ontario, Canada without regard to the conflicts +of laws provisions thereof. Exclusive jurisdiction and venue for any action arising +under this Agreement is in the federal and provincial courts having jurisdiction +over OpenConcept's principal office, and both parties hereby consent to such jurisdiction +and venue for this purpose. +
+**Section 12. Attorney's Fees and Costs.** In any action or proceeding to enforce +or interpret this Agreement, the prevailing party will be entitled to recover from +the other party its costs and expenses (including reasonable attorneys' fees) incurred +in connection with such action or proceeding and enforcing any judgment or order +obtained. +
+IN WITNESS HEREOF, the parties have executed this Agreement as a sealed instrument +as of the date set forth above.

-
-

OpenConcept Consulting

-
-

Signature:

-
-

Date:

+
+

+ OpenConcept Consulting +

+
+

Signature:

+
+

Date:

+
+
+

+ [BUSINESS 2] +

+
+

Signature:

+
+

Date:

+
-
-

[BUSINESS 2]

-
-

Signature:

-
-

Date:

-
-
`} +`} - +
-
+ diff --git a/src/ui/templates/receipt.mdx b/src/ui/templates/receipt.mdx index a13ee90..3f34c9d 100644 --- a/src/ui/templates/receipt.mdx +++ b/src/ui/templates/receipt.mdx @@ -4,7 +4,7 @@ icon: receipt category: Receipts --- -import { Footnote, Tailwind } from "@onedoc/react-print"; +import { Footnote, Tailwind } from "@fileforge/react-print";
diff --git a/src/ui/templates/report-charts.mdx b/src/ui/templates/report-charts.mdx index 9ee4627..de66bb7 100644 --- a/src/ui/templates/report-charts.mdx +++ b/src/ui/templates/report-charts.mdx @@ -4,7 +4,7 @@ icon: chart-pie category: Reports --- -import { Footnote, PageBottom, Tailwind, CSS } from "@onedoc/react-print"; +import { Footnote, PageBottom, Tailwind, CSS } from "@fileforge/react-print"; import { BarChart, XAxis, diff --git a/src/ui/templates/scientific-report.mdx b/src/ui/templates/scientific-report.mdx index fd68fa6..af2d96e 100644 --- a/src/ui/templates/scientific-report.mdx +++ b/src/ui/templates/scientific-report.mdx @@ -5,25 +5,31 @@ category: Reports --- import React, { createContext, useEffect, useState } from "react"; -import {Tailwind, CSS, Latex, PageBreak, Footnote, Markdown} from "@onedoc/react-print"; +import { + Tailwind, + CSS, + Latex, + PageBreak, + Footnote, + Markdown, +} from "@fileforge/react-print"; export const SectionComponent = ({ title, content, isSection }) => { return ( -
- {isSection ? ( -

{title}

- ) : ( -

{title}

- )} - {/* The content should have an indent on the first sentence, not after*/} -
{content}
-
+
+ {isSection ? ( +

{title}

+ ) : ( +

{title}

+ )} + {/* The content should have an indent on the first sentence, not after*/} +
{content}
+
); }; - - {/* A CSS snippet to define the page size, margins, fonts, etc. + {/* A CSS snippet to define the page size, margins, fonts, etc. It also enforce the space between line to be small*/} {String.raw` @@ -35,7 +41,7 @@ export const SectionComponent = ({ title, content, isSection }) => { body { line-height: 1.1; } - + `} @@ -49,9 +55,9 @@ export const SectionComponent = ({ title, content, isSection }) => {

- + {/* A Tailwind component to define the layout of the page */} - + {/* 2 columns */}
{/* Abstract*/} @@ -71,14 +77,14 @@ export const SectionComponent = ({ title, content, isSection }) => { title="A. Sub Section" content={

- Lorem ipsum dolor sit amet [2], consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Footnote 1 + Lorem ipsum dolor sit amet [2], consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Footnote 1

} isSection={false} />
- + {/* A sub section with a title and a content with a formula */} {
- + } isSection={false} /> @@ -127,7 +133,7 @@ export const SectionComponent = ({ title, content, isSection }) => { {/* A section Data with */} - {/* A sub section with a title and a content */} + {/* A sub section with a title and a content */} { {/* A Section Methodology */} - {/* A sub section with a title and a content */} + {/* A sub section with a title and a content */} {
- {/* A sub section with a title and a content, and a code snippet */} + {/* A sub section with a title and a content, and a code snippet */} {
                   
                     {String.raw`function helloWorld() {
-  console.log("Hello, World!");
-  console.log("This is a code snippet");
+
+console.log("Hello, World!");
+console.log("This is a code snippet");
 }`}
-                  
-                
- - } - isSection={false} - /> + + + +} +isSection={false} +/>

@@ -270,7 +277,7 @@ export const SectionComponent = ({ title, content, isSection }) => { } isSection={false} - /> + />
@@ -317,4 +324,3 @@ export const SectionComponent = ({ title, content, isSection }) => {
-