@sharadox/legal-web-library 0.0.0-stage → 0.1.0-prerelease-workflows.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/LICENCA.md +76 -0
  2. package/LICENSE.md +76 -0
  3. package/NOTICE.md +3 -0
  4. package/README.md +31 -2
  5. package/distribution/company-identification/index.d.ts +28 -0
  6. package/distribution/company-identification/index.d.ts.map +1 -0
  7. package/distribution/company-identification/index.js +28 -0
  8. package/distribution/company-identification/index.js.map +1 -0
  9. package/distribution/company-identification/type.d.ts +15 -0
  10. package/distribution/company-identification/type.d.ts.map +1 -0
  11. package/distribution/company-identification/type.js +2 -0
  12. package/distribution/company-identification/type.js.map +1 -0
  13. package/distribution/complaints-book/index.d.ts +13 -0
  14. package/distribution/complaints-book/index.d.ts.map +1 -0
  15. package/distribution/complaints-book/index.js +10 -0
  16. package/distribution/complaints-book/index.js.map +1 -0
  17. package/distribution/complaints-book-link/index.d.ts +4 -0
  18. package/distribution/complaints-book-link/index.d.ts.map +1 -0
  19. package/distribution/complaints-book-link/index.js +7 -0
  20. package/distribution/complaints-book-link/index.js.map +1 -0
  21. package/distribution/complaints-book-link/type.d.ts +6 -0
  22. package/distribution/complaints-book-link/type.d.ts.map +1 -0
  23. package/distribution/complaints-book-link/type.js +2 -0
  24. package/distribution/complaints-book-link/type.js.map +1 -0
  25. package/distribution/dispute-notice/index.d.ts +21 -0
  26. package/distribution/dispute-notice/index.d.ts.map +1 -0
  27. package/distribution/dispute-notice/index.js +21 -0
  28. package/distribution/dispute-notice/index.js.map +1 -0
  29. package/distribution/dispute-notice/type.d.ts +8 -0
  30. package/distribution/dispute-notice/type.d.ts.map +1 -0
  31. package/distribution/dispute-notice/type.js +2 -0
  32. package/distribution/dispute-notice/type.js.map +1 -0
  33. package/distribution/dispute-resolution/index.d.ts +20 -0
  34. package/distribution/dispute-resolution/index.d.ts.map +1 -0
  35. package/distribution/dispute-resolution/index.js +17 -0
  36. package/distribution/dispute-resolution/index.js.map +1 -0
  37. package/distribution/dispute-resolution/type.d.ts +6 -0
  38. package/distribution/dispute-resolution/type.d.ts.map +1 -0
  39. package/distribution/dispute-resolution/type.js +2 -0
  40. package/distribution/dispute-resolution/type.js.map +1 -0
  41. package/distribution/legal-locale/type.d.ts +5 -0
  42. package/distribution/legal-locale/type.d.ts.map +1 -0
  43. package/distribution/legal-locale/type.js +2 -0
  44. package/distribution/legal-locale/type.js.map +1 -0
  45. package/llms.txt +12 -0
  46. package/package.json +96 -3
package/LICENCA.md ADDED
@@ -0,0 +1,76 @@
1
+ # Licença Sharadox de Código Aberto
2
+
3
+ Versão 0.1.0
4
+
5
+ O texto em língua portuguesa é o único texto original e vinculativo desta licença. A tradução para inglês (`LICENSE.md`) é meramente informativa; em caso de divergência prevalece o texto em português.
6
+
7
+ ## 1. Definições
8
+
9
+ Para efeitos desta licença:
10
+
11
+ 1. **«Obra»** — o programa de computador, a sua documentação e quaisquer outros conteúdos disponibilizados pelo Licenciante ao abrigo desta licença, em código-fonte ou em qualquer outra forma.
12
+ 2. **«Licenciante»** — o titular dos direitos de autor identificado no aviso de direitos de autor que acompanha a Obra.
13
+ 3. **«Licenciado»** — qualquer pessoa, singular ou coletiva, que exerça os direitos concedidos por esta licença.
14
+ 4. **«Obra Derivada»** — qualquer obra baseada na Obra ou que a incorpore, total ou parcialmente, com ou sem modificações, incluindo traduções, adaptações e programas que a integrem.
15
+ 5. **«Aviso»** — o aviso de direitos de autor do Licenciante e a indicação de que a Obra está licenciada ao abrigo desta licença, incluindo a respetiva versão.
16
+
17
+ ## 2. Concessão de direitos
18
+
19
+ 1. Nos termos desta licença, o Licenciante concede ao Licenciado uma licença mundial, gratuita, não exclusiva e por todo o prazo de proteção dos direitos de autor para:
20
+ 1. utilizar a Obra para qualquer finalidade, incluindo finalidades comerciais;
21
+ 2. reproduzir a Obra, total ou parcialmente, por qualquer meio e sob qualquer forma;
22
+ 3. modificar, traduzir, adaptar e transformar a Obra e criar Obras Derivadas;
23
+ 4. distribuir, publicar, comunicar ao público, colocar à disposição, vender e sublicenciar a Obra e as Obras Derivadas.
24
+ 2. Na medida em que o Licenciante seja titular de patentes necessariamente infringidas pela Obra tal como por si disponibilizada, concede igualmente ao Licenciado, nos mesmos termos, uma licença para utilizar essas patentes no exercício dos direitos previstos no número anterior.
25
+ 3. Esta licença não transmite a titularidade de quaisquer direitos, que permanecem do Licenciante.
26
+
27
+ ## 3. Condições
28
+
29
+ O exercício dos direitos concedidos fica sujeito às seguintes condições:
30
+
31
+ 1. Todas as cópias da Obra, ou de partes substanciais da mesma, e todas as Obras Derivadas distribuídas devem incluir o Aviso e uma cópia desta licença ou uma ligação estável para o seu texto.
32
+ 2. Quem distribuir uma versão modificada da Obra deve indicar de forma visível que a mesma foi modificada, não podendo apresentá-la como versão original do Licenciante.
33
+ 3. O Licenciado pode licenciar as suas próprias modificações ao abrigo de outros termos, desde que a parte da Obra que delas faça parte continue sujeita às condições desta licença.
34
+
35
+ ## 4. Nomes e marcas
36
+
37
+ Esta licença não concede qualquer direito sobre o nome, as marcas, os logótipos ou outros sinais distintivos do Licenciante, incluindo a designação «Sharadox», salvo na medida estritamente necessária para cumprir o dever de incluir o Aviso. É proibido utilizá-los para promover ou sugerir o apoio do Licenciante a Obras Derivadas ou a quaisquer produtos ou serviços sem autorização prévia e escrita.
38
+
39
+ ## 5. Exclusão de garantias
40
+
41
+ A Obra é disponibilizada «tal como está» e «conforme disponível», sem qualquer garantia, expressa ou tácita, incluindo, designadamente, garantias de comerciabilidade, de adequação a um fim específico, de ausência de erros ou de não violação de direitos de terceiros, na medida máxima permitida pela lei aplicável.
42
+
43
+ ## 6. Limitação de responsabilidade
44
+
45
+ 1. Na medida máxima permitida pela lei aplicável, o Licenciante não é responsável por quaisquer danos, diretos ou indiretos, incluindo lucros cessantes, perda de dados ou interrupção de atividade, resultantes da utilização ou da impossibilidade de utilização da Obra, ainda que tenha sido avisado da possibilidade da sua ocorrência.
46
+ 2. Nada nesta licença exclui ou limita a responsabilidade do Licenciante nos casos em que tal exclusão ou limitação não seja permitida por lei, designadamente por atos praticados com dolo ou culpa grave, nos termos do artigo 809.º e do n.º 2 do artigo 800.º do Código Civil, nem afeta os direitos que a lei imperativamente reconheça aos consumidores.
47
+
48
+ ## 7. Cessação
49
+
50
+ 1. Os direitos concedidos por esta licença cessam automaticamente se o Licenciado violar qualquer das suas condições.
51
+ 2. Os direitos são repostos se a violação for sanada no prazo de 30 dias a contar do momento em que o Licenciado dela tome conhecimento, salvo se o Licenciante tiver entretanto comunicado por escrito a sua oposição.
52
+ 3. A cessação não afeta as licenças validamente concedidas pelo Licenciado a terceiros que cumpram esta licença.
53
+
54
+ ## 8. Lei aplicável e foro
55
+
56
+ 1. Esta licença rege-se pela lei portuguesa, designadamente pelo Código do Direito de Autor e dos Direitos Conexos, aprovado pelo Decreto-Lei n.º 63/85, de 14 de março, e pelo Decreto-Lei n.º 252/94, de 20 de outubro, relativo à proteção jurídica dos programas de computador.
57
+ 2. Para a resolução de quaisquer litígios emergentes desta licença é competente o Tribunal Judicial da Comarca de Faro, sem prejuízo das normas imperativas de competência aplicáveis, nomeadamente as que protegem os consumidores.
58
+
59
+ ## 9. Versões da licença
60
+
61
+ O Licenciante pode publicar novas versões desta licença, identificadas por um número de versão. A Obra fica sujeita à versão indicada no Aviso. O Licenciado pode, se o Aviso o permitir, optar por qualquer versão posterior.
62
+
63
+ ## 10. Disposições finais
64
+
65
+ 1. Se alguma disposição desta licença for considerada inválida ou ineficaz, as restantes mantêm-se em vigor, devendo a disposição afetada ser interpretada de forma a aproximar-se, tanto quanto possível, da intenção original.
66
+ 2. A não exigência, em qualquer momento, do cumprimento de uma disposição desta licença não constitui renúncia ao direito de o exigir posteriormente.
67
+
68
+ ## Como aplicar esta licença
69
+
70
+ Inclua na Obra um ficheiro `LICENCA.md` com este texto, a tradução `LICENSE.md` e o seguinte aviso, preenchendo o ano e o titular:
71
+
72
+ ```
73
+ Direitos de autor © <ano> <titular>.
74
+ Licenciado ao abrigo da Licença Sharadox de Código Aberto, versão 0.1.0.
75
+ https://github.com/Sharadox/sharadox-open-source-license
76
+ ```
package/LICENSE.md ADDED
@@ -0,0 +1,76 @@
1
+ # Sharadox Open Source Licence
2
+
3
+ Version 0.1.0
4
+
5
+ This is an informative English translation. The Portuguese text (`LICENCA.md`) is the only original and binding text of this licence; if the two differ, the Portuguese text prevails.
6
+
7
+ ## 1. Definitions
8
+
9
+ For the purposes of this licence:
10
+
11
+ 1. **"Work"** — the computer program, its documentation and any other content made available by the Licensor under this licence, in source code or in any other form.
12
+ 2. **"Licensor"** — the copyright holder identified in the copyright notice that accompanies the Work.
13
+ 3. **"Licensee"** — any natural or legal person exercising the rights granted by this licence.
14
+ 4. **"Derivative Work"** — any work based on or incorporating the Work, in whole or in part, with or without modifications, including translations, adaptations and programs that integrate it.
15
+ 5. **"Notice"** — the Licensor's copyright notice and the statement that the Work is licensed under this licence, including its version.
16
+
17
+ ## 2. Grant of rights
18
+
19
+ 1. Under this licence, the Licensor grants the Licensee a worldwide, royalty-free, non-exclusive licence, for the whole term of copyright protection, to:
20
+ 1. use the Work for any purpose, including commercial purposes;
21
+ 2. reproduce the Work, in whole or in part, by any means and in any form;
22
+ 3. modify, translate, adapt and transform the Work and create Derivative Works;
23
+ 4. distribute, publish, communicate to the public, make available, sell and sublicense the Work and Derivative Works.
24
+ 2. To the extent the Licensor holds patents necessarily infringed by the Work as made available by it, the Licensor also grants the Licensee, on the same terms, a licence to use those patents in exercising the rights in the previous paragraph.
25
+ 3. This licence does not transfer ownership of any rights, which remain with the Licensor.
26
+
27
+ ## 3. Conditions
28
+
29
+ The exercise of the rights granted is subject to the following conditions:
30
+
31
+ 1. Every copy of the Work, or of substantial parts of it, and every distributed Derivative Work must include the Notice and a copy of this licence or a stable link to its text.
32
+ 2. Anyone distributing a modified version of the Work must state visibly that it has been modified and may not present it as the Licensor's original version.
33
+ 3. The Licensee may license their own modifications under other terms, provided the part of the Work included in them remains subject to the conditions of this licence.
34
+
35
+ ## 4. Names and trademarks
36
+
37
+ This licence grants no rights to the Licensor's name, trademarks, logos or other distinctive signs, including the name "Sharadox", except as strictly necessary to comply with the duty to include the Notice. Using them to promote or suggest the Licensor's endorsement of Derivative Works or of any products or services without prior written permission is prohibited.
38
+
39
+ ## 5. Disclaimer of warranties
40
+
41
+ The Work is provided "as is" and "as available", without any warranty, express or implied, including in particular warranties of merchantability, fitness for a particular purpose, absence of errors or non-infringement of third-party rights, to the maximum extent permitted by applicable law.
42
+
43
+ ## 6. Limitation of liability
44
+
45
+ 1. To the maximum extent permitted by applicable law, the Licensor is not liable for any damages, direct or indirect, including loss of profits, loss of data or business interruption, arising from the use of or inability to use the Work, even if advised of the possibility of such damages.
46
+ 2. Nothing in this licence excludes or limits the Licensor's liability where such exclusion or limitation is not permitted by law, in particular for acts committed with intent or gross negligence, under article 809 and article 800(2) of the Portuguese Civil Code, nor does it affect rights that the law mandatorily grants to consumers.
47
+
48
+ ## 7. Termination
49
+
50
+ 1. The rights granted by this licence terminate automatically if the Licensee breaches any of its conditions.
51
+ 2. The rights are reinstated if the breach is remedied within 30 days of the Licensee becoming aware of it, unless the Licensor has meanwhile objected in writing.
52
+ 3. Termination does not affect licences validly granted by the Licensee to third parties who comply with this licence.
53
+
54
+ ## 8. Governing law and jurisdiction
55
+
56
+ 1. This licence is governed by Portuguese law, in particular the Code of Copyright and Related Rights, approved by Decree-Law no. 63/85 of 14 March, and Decree-Law no. 252/94 of 20 October on the legal protection of computer programs.
57
+ 2. The Judicial Court of the District of Faro has jurisdiction over any dispute arising from this licence, without prejudice to applicable mandatory rules of jurisdiction, in particular those protecting consumers.
58
+
59
+ ## 9. Licence versions
60
+
61
+ The Licensor may publish new versions of this licence, identified by a version number. The Work is subject to the version stated in the Notice. If the Notice allows it, the Licensee may choose any later version.
62
+
63
+ ## 10. Final provisions
64
+
65
+ 1. If any provision of this licence is held invalid or unenforceable, the remaining provisions stay in force, and the affected provision shall be interpreted as closely as possible to its original intent.
66
+ 2. Failure to enforce any provision of this licence at any time does not waive the right to enforce it later.
67
+
68
+ ## How to apply this licence
69
+
70
+ Include in the Work a `LICENCA.md` file with the Portuguese text, this translation as `LICENSE.md`, and the following notice, filling in the year and holder:
71
+
72
+ ```
73
+ Direitos de autor © <ano> <titular>.
74
+ Licenciado ao abrigo da Licença Sharadox de Código Aberto, versão 0.1.0.
75
+ https://github.com/Sharadox/sharadox-open-source-license
76
+ ```
package/NOTICE.md ADDED
@@ -0,0 +1,3 @@
1
+ Direitos de autor © 2026 Micael Pires (Sharadox).
2
+ Licenciado ao abrigo da Licença Sharadox de Código Aberto, versão 0.1.0.
3
+ https://github.com/Sharadox/sharadox-open-source-license
package/README.md CHANGED
@@ -1,3 +1,32 @@
1
- # Temporary Holding Version
1
+ # @sharadox/legal-web-library
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ What a website in Portugal must show by law, written once for every site:
4
+
5
+ | Import | What it is | Law |
6
+ | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
7
+ | `…/complaints-book` | `COMPLAINTS_BOOK`: the electronic complaints book's address and name | Decreto-Lei 156/2005 (Decreto-Lei 74/2017) |
8
+ | `…/complaints-book-link` | `<ComplaintsBookLink locale className? />`: the link to it, in a new tab | the same |
9
+ | `…/dispute-resolution` | `DISPUTE_RESOLUTION_CENTERS` (`algarve`: CIMAAL; `national`: CNIACC, for regions without their own) and `CONSUMER_PORTAL` | Lei 144/2015, article 18 |
10
+ | `…/dispute-notice` | `<DisputeNotice center locale />`: "In case of a consumer dispute, you can turn to…", the center and the consumer portal, as text and links; `DISPUTE_NOTICE`, its words | the same |
11
+ | `…/company-identification` | `<CompanyIdentification company={{ office, number, shareCapital? }} locale />`: registered office, registration number and share capital; `formatEuros`, `COMPANY_IDENTIFICATION` | Código das Sociedades Comerciais, article 171 |
12
+
13
+ Texts come in English and Portuguese (`LegalLocale`, `"en" | "pt"`). The components are unstyled text and links, so they sit in any paragraph of any design:
14
+
15
+ ```tsx
16
+ import { ComplaintsBookLink } from "@sharadox/legal-web-library/complaints-book-link";
17
+ import { DisputeNotice } from "@sharadox/legal-web-library/dispute-notice";
18
+ import { DISPUTE_RESOLUTION_CENTERS } from "@sharadox/legal-web-library/dispute-resolution";
19
+
20
+ <ComplaintsBookLink locale="pt" className={styles.link} />
21
+ <p><DisputeNotice center={DISPUTE_RESOLUTION_CENTERS.algarve} locale="pt" /></p>
22
+ ```
23
+
24
+ The European online dispute resolution platform closed in July 2025, so sites no longer link to it.
25
+
26
+ ## Develop
27
+
28
+ `pnpm verify` runs formatting, lint, type-check, tests with 100% coverage and the build. Branches follow `<feature>.development` → `development` → `index`, and releases are `v<version>` tags on `index`.
29
+
30
+ ## License
31
+
32
+ Licença Sharadox de Código Aberto, versão 0.1.0. See [português](LICENCA.md) (the binding text) and the [English translation](LICENSE.md).
@@ -0,0 +1,28 @@
1
+ import type { CompanyIdentificationProperties } from "@sharadox/legal-web-library/company-identification/type";
2
+ import type { LegalLocale } from "@sharadox/legal-web-library/legal-locale/type";
3
+ /** The identification's labels. */
4
+ export declare const COMPANY_IDENTIFICATION: {
5
+ readonly office: {
6
+ readonly en: "Registered office";
7
+ readonly pt: "Sede";
8
+ };
9
+ readonly number: {
10
+ readonly en: "Registered at the Portuguese Commercial Registry under the single registration and tax number";
11
+ readonly pt: "Matriculada no Registo Comercial sob o número único de matrícula e de pessoa coletiva";
12
+ };
13
+ readonly shareCapital: {
14
+ readonly en: "Share capital";
15
+ readonly pt: "Capital social";
16
+ };
17
+ };
18
+ /** An amount in euros, written the way the language writes it ("€1,000.00", "1000,00 €"). */
19
+ export declare function formatEuros(amount: number, locale: LegalLocale): string;
20
+ /**
21
+ * The company identification: registered office, then registration number and share capital. Text only, so it sits
22
+ * in any paragraph.
23
+ *
24
+ * @example
25
+ * <p><CompanyIdentification company={{ office: "…", number: "513385207", shareCapital: 1000 }} locale="en" /></p>
26
+ */
27
+ export declare function CompanyIdentification({ company, locale }: CompanyIdentificationProperties): import("react").JSX.Element;
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/company-identification/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAEjF,mCAAmC;AACnC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAOzB,CAAC;AAEX,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,MAAM,CAIvE;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,+BAA+B,+BAYzF"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { SEPARATOR } from "@sharadox/web-library/text/separator";
3
+ /** The identification's labels. */
4
+ export const COMPANY_IDENTIFICATION = {
5
+ office: { en: "Registered office", pt: "Sede" },
6
+ number: {
7
+ en: "Registered at the Portuguese Commercial Registry under the single registration and tax number",
8
+ pt: "Matriculada no Registo Comercial sob o número único de matrícula e de pessoa coletiva",
9
+ },
10
+ shareCapital: { en: "Share capital", pt: "Capital social" },
11
+ };
12
+ /** An amount in euros, written the way the language writes it ("€1,000.00", "1000,00 €"). */
13
+ export function formatEuros(amount, locale) {
14
+ return new Intl.NumberFormat(locale === "pt" ? "pt-PT" : "en-US", { style: "currency", currency: "EUR" }).format(amount);
15
+ }
16
+ /**
17
+ * The company identification: registered office, then registration number and share capital. Text only, so it sits
18
+ * in any paragraph.
19
+ *
20
+ * @example
21
+ * <p><CompanyIdentification company={{ office: "…", number: "513385207", shareCapital: 1000 }} locale="en" /></p>
22
+ */
23
+ export function CompanyIdentification({ company, locale }) {
24
+ return (_jsxs(_Fragment, { children: [COMPANY_IDENTIFICATION.office[locale], ": ", company.office, ".", _jsx("br", {}), COMPANY_IDENTIFICATION.number[locale], " ", company.number, company.shareCapital === undefined
25
+ ? ""
26
+ : ` ${SEPARATOR} ${COMPANY_IDENTIFICATION.shareCapital[locale]} ${formatEuros(company.shareCapital, locale)}`, "."] }));
27
+ }
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/company-identification/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAIjE,mCAAmC;AACnC,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,MAAM,EAAE,EAAE,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,MAAM,EAAE;IAC/C,MAAM,EAAE;QACN,EAAE,EAAE,+FAA+F;QACnG,EAAE,EAAE,uFAAuF;KAC5F;IACD,YAAY,EAAE,EAAE,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,gBAAgB,EAAE;CACnD,CAAC;AAEX,6FAA6F;AAC7F,MAAM,UAAU,WAAW,CAAC,MAAc,EAAE,MAAmB;IAC7D,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAC9G,MAAM,CACP,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAmC;IACxF,OAAO,CACL,8BACG,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,QAAI,OAAO,CAAC,MAAM,OACxD,cAAM,EACL,sBAAsB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAG,OAAO,CAAC,MAAM,EACtD,OAAO,CAAC,YAAY,KAAK,SAAS;gBACjC,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,IAAI,SAAS,IAAI,sBAAsB,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,SAE9G,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { LegalLocale } from "@sharadox/legal-web-library/legal-locale/type";
2
+ /** What Portuguese company law asks a company to show (Código das Sociedades Comerciais, article 171). */
3
+ export interface Company {
4
+ /** The registered office ("sede"), as in the commercial registry. */
5
+ office: string;
6
+ /** The single registration and tax number ("número único de matrícula e de pessoa coletiva"). */
7
+ number: string;
8
+ /** Share capital in euros; companies without one (sole traders) leave it out. */
9
+ shareCapital?: number;
10
+ }
11
+ export interface CompanyIdentificationProperties {
12
+ company: Company;
13
+ locale: LegalLocale;
14
+ }
15
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/company-identification/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAEjF,0GAA0G;AAC1G,MAAM,WAAW,OAAO;IACtB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,iGAAiG;IACjG,MAAM,EAAE,MAAM,CAAC;IACf,iFAAiF;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/company-identification/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Portugal's official electronic complaints book. Every business that serves consumers in Portugal links to it from
3
+ * its website (Decreto-Lei 156/2005, as changed by Decreto-Lei 74/2017). Its legal name stays in Portuguese; the
4
+ * English adds what it is.
5
+ */
6
+ export declare const COMPLAINTS_BOOK: {
7
+ readonly url: "https://www.livroreclamacoes.pt/";
8
+ readonly name: {
9
+ readonly en: "Livro de Reclamações (Complaints Book)";
10
+ readonly pt: "Livro de Reclamações";
11
+ };
12
+ };
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/complaints-book/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,eAAe;;;;;;CAGlB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Portugal's official electronic complaints book. Every business that serves consumers in Portugal links to it from
3
+ * its website (Decreto-Lei 156/2005, as changed by Decreto-Lei 74/2017). Its legal name stays in Portuguese; the
4
+ * English adds what it is.
5
+ */
6
+ export const COMPLAINTS_BOOK = {
7
+ url: "https://www.livroreclamacoes.pt/",
8
+ name: { en: "Livro de Reclamações (Complaints Book)", pt: "Livro de Reclamações" },
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/complaints-book/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,EAAE,kCAAkC;IACvC,IAAI,EAAE,EAAE,EAAE,EAAE,wCAAwC,EAAE,EAAE,EAAE,sBAAsB,EAAE;CAC1E,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { ComplaintsBookLinkProperties } from "@sharadox/legal-web-library/complaints-book-link/type";
2
+ /** The link to Portugal's electronic complaints book, opening in a new tab. Unstyled: style it through `className`. */
3
+ export declare function ComplaintsBookLink({ locale, className }: ComplaintsBookLinkProperties): import("react").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/complaints-book-link/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uDAAuD,CAAC;AAE1G,uHAAuH;AACvH,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,4BAA4B,+BAMrF"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { COMPLAINTS_BOOK } from "@sharadox/legal-web-library/complaints-book";
3
+ /** The link to Portugal's electronic complaints book, opening in a new tab. Unstyled: style it through `className`. */
4
+ export function ComplaintsBookLink({ locale, className }) {
5
+ return (_jsx("a", { href: COMPLAINTS_BOOK.url, target: "_blank", rel: "noopener noreferrer", className: className, children: COMPLAINTS_BOOK.name[locale] }));
6
+ }
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/complaints-book-link/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAG9E,uHAAuH;AACvH,MAAM,UAAU,kBAAkB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAgC;IACpF,OAAO,CACL,YAAG,IAAI,EAAE,eAAe,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,EAAC,SAAS,EAAE,SAAS,YACzF,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,GAC3B,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { LegalLocale } from "@sharadox/legal-web-library/legal-locale/type";
2
+ export interface ComplaintsBookLinkProperties {
3
+ locale: LegalLocale;
4
+ className?: string;
5
+ }
6
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/complaints-book-link/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAEjF,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/complaints-book-link/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import type { DisputeNoticeProperties } from "@sharadox/legal-web-library/dispute-notice/type";
2
+ /** The notice's words around the two links. */
3
+ export declare const DISPUTE_NOTICE: {
4
+ readonly lead: {
5
+ readonly en: "In case of a consumer dispute, you can turn to the alternative dispute resolution center";
6
+ readonly pt: "Em caso de litígio de consumo, pode recorrer à entidade de resolução alternativa de litígios";
7
+ };
8
+ readonly more: {
9
+ readonly en: "More information at";
10
+ readonly pt: "Mais informações em";
11
+ };
12
+ };
13
+ /**
14
+ * The consumer dispute notice (Lei 144/2015, article 18): the center's name and website, then the consumer portal.
15
+ * Text and links only, so it sits in any paragraph.
16
+ *
17
+ * @example
18
+ * <p><DisputeNotice center={DISPUTE_RESOLUTION_CENTERS.algarve} locale="pt" /></p>
19
+ */
20
+ export declare function DisputeNotice({ center, locale }: DisputeNoticeProperties): import("react").JSX.Element;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/dispute-notice/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAE/F,+CAA+C;AAC/C,eAAO,MAAM,cAAc;;;;;;;;;CAMjB,CAAC;AAEX;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,uBAAuB,+BAcxE"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CONSUMER_PORTAL } from "@sharadox/legal-web-library/dispute-resolution";
3
+ /** The notice's words around the two links. */
4
+ export const DISPUTE_NOTICE = {
5
+ lead: {
6
+ en: "In case of a consumer dispute, you can turn to the alternative dispute resolution center",
7
+ pt: "Em caso de litígio de consumo, pode recorrer à entidade de resolução alternativa de litígios",
8
+ },
9
+ more: { en: "More information at", pt: "Mais informações em" },
10
+ };
11
+ /**
12
+ * The consumer dispute notice (Lei 144/2015, article 18): the center's name and website, then the consumer portal.
13
+ * Text and links only, so it sits in any paragraph.
14
+ *
15
+ * @example
16
+ * <p><DisputeNotice center={DISPUTE_RESOLUTION_CENTERS.algarve} locale="pt" /></p>
17
+ */
18
+ export function DisputeNotice({ center, locale }) {
19
+ return (_jsxs(_Fragment, { children: [DISPUTE_NOTICE.lead[locale], " ", _jsx("a", { href: center.url, target: "_blank", rel: "noopener noreferrer", children: center.name }), ". ", DISPUTE_NOTICE.more[locale], " ", _jsx("a", { href: CONSUMER_PORTAL.url, target: "_blank", rel: "noopener noreferrer", children: CONSUMER_PORTAL.name }), "."] }));
20
+ }
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/dispute-notice/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AAGjF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE;QACJ,EAAE,EAAE,0FAA0F;QAC9F,EAAE,EAAE,8FAA8F;KACnG;IACD,IAAI,EAAE,EAAE,EAAE,EAAE,qBAAqB,EAAE,EAAE,EAAE,qBAAqB,EAAE;CACtD,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,MAAM,EAA2B;IACvE,OAAO,CACL,8BACG,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,EACjC,YAAG,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,YAC3D,MAAM,CAAC,IAAI,GACV,QACD,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,EACnC,YAAG,IAAI,EAAE,eAAe,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,YACpE,eAAe,CAAC,IAAI,GACnB,SAEH,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { DisputeResolutionCenter } from "@sharadox/legal-web-library/dispute-resolution/type";
2
+ import type { LegalLocale } from "@sharadox/legal-web-library/legal-locale/type";
3
+ export interface DisputeNoticeProperties {
4
+ /** The business's center, from `DISPUTE_RESOLUTION_CENTERS`. */
5
+ center: DisputeResolutionCenter;
6
+ locale: LegalLocale;
7
+ }
8
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/dispute-notice/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AACnG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAEjF,MAAM,WAAW,uBAAuB;IACtC,gEAAgE;IAChE,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,WAAW,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/dispute-notice/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The consumer dispute resolution centers a business names on its website (Lei 144/2015, article 18): the one for
3
+ * its region, or the national one where no regional center covers it.
4
+ */
5
+ export declare const DISPUTE_RESOLUTION_CENTERS: {
6
+ readonly algarve: {
7
+ readonly name: "CIMAAL – Centro de Informação, Mediação e Arbitragem de Conflitos de Consumo do Algarve";
8
+ readonly url: "https://www.consumoalgarve.pt/";
9
+ };
10
+ readonly national: {
11
+ readonly name: "CNIACC – Centro Nacional de Informação e Arbitragem de Conflitos de Consumo";
12
+ readonly url: "https://www.cniacc.pt/";
13
+ };
14
+ };
15
+ /** Portugal's consumer portal, which lists every center. */
16
+ export declare const CONSUMER_PORTAL: {
17
+ readonly name: "consumidor.gov.pt";
18
+ readonly url: "https://www.consumidor.gov.pt/";
19
+ };
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/dispute-resolution/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;CASqB,CAAC;AAE7D,4DAA4D;AAC5D,eAAO,MAAM,eAAe;;;CAAgF,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The consumer dispute resolution centers a business names on its website (Lei 144/2015, article 18): the one for
3
+ * its region, or the national one where no regional center covers it.
4
+ */
5
+ export const DISPUTE_RESOLUTION_CENTERS = {
6
+ algarve: {
7
+ name: "CIMAAL – Centro de Informação, Mediação e Arbitragem de Conflitos de Consumo do Algarve",
8
+ url: "https://www.consumoalgarve.pt/",
9
+ },
10
+ national: {
11
+ name: "CNIACC – Centro Nacional de Informação e Arbitragem de Conflitos de Consumo",
12
+ url: "https://www.cniacc.pt/",
13
+ },
14
+ };
15
+ /** Portugal's consumer portal, which lists every center. */
16
+ export const CONSUMER_PORTAL = { name: "consumidor.gov.pt", url: "https://www.consumidor.gov.pt/" };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/dispute-resolution/index.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,OAAO,EAAE;QACP,IAAI,EAAE,yFAAyF;QAC/F,GAAG,EAAE,gCAAgC;KACtC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,6EAA6E;QACnF,GAAG,EAAE,wBAAwB;KAC9B;CACyD,CAAC;AAE7D,4DAA4D;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,IAAI,EAAE,mBAAmB,EAAE,GAAG,EAAE,gCAAgC,EAAW,CAAC"}
@@ -0,0 +1,6 @@
1
+ /** A consumer dispute resolution center (an "entidade de resolução alternativa de litígios de consumo"). */
2
+ export interface DisputeResolutionCenter {
3
+ name: string;
4
+ url: string;
5
+ }
6
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/dispute-resolution/type.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/dispute-resolution/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /** The languages the legal texts come in. */
2
+ export type LegalLocale = "en" | "pt";
3
+ /** A text in every legal locale. */
4
+ export type LegalText = Readonly<Record<LegalLocale, string>>;
5
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/legal-locale/type.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC,oCAAoC;AACpC,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/legal-locale/type.ts"],"names":[],"mappings":""}
package/llms.txt ADDED
@@ -0,0 +1,12 @@
1
+ # @sharadox/legal-web-library
2
+
3
+ > What a Portuguese website must show by law, en/pt: complaints book link, consumer dispute notice, company identification. Unstyled text and links.
4
+
5
+ - complaints-book COMPLAINTS_BOOK { url https://www.livroreclamacoes.pt/, name { en, pt } } (DL 156/2005)
6
+ - complaints-book-link <ComplaintsBookLink locale className? /> (new tab)
7
+ - dispute-resolution DISPUTE_RESOLUTION_CENTERS { algarve: CIMAAL consumoalgarve.pt, national: CNIACC cniacc.pt }, CONSUMER_PORTAL consumidor.gov.pt (Lei 144/2015 art. 18)
8
+ - dispute-notice <DisputeNotice center locale /> text + links (fragment); DISPUTE_NOTICE { lead, more }
9
+ - company-identification <CompanyIdentification company={{ office, number, shareCapital? }} locale /> (fragment with <br>); formatEuros(amount, locale); COMPANY_IDENTIFICATION labels (CSC art. 171)
10
+ - legal-locale/type LegalLocale "en" | "pt", LegalText
11
+ - EU ODR platform closed July 2025: no link needed
12
+ - 0.1.0: first release
package/package.json CHANGED
@@ -1,6 +1,99 @@
1
1
  {
2
2
  "name": "@sharadox/legal-web-library",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0-prerelease-workflows.2",
4
+ "description": "What a website in Portugal must show by law: the complaints book, the consumer dispute resolution center for each region and the company's identification.",
5
+ "private": false,
6
+ "license": "SEE LICENSE IN LICENCA.md",
7
+ "author": "Sharadox <contact@sharadox.com>",
8
+ "type": "module",
9
+ "exports": {
10
+ "./*/type": {
11
+ "sharadox-source": "./source/*/type.ts",
12
+ "types": "./distribution/*/type.d.ts"
13
+ },
14
+ "./*": {
15
+ "sharadox-source": [
16
+ "./source/*/index.ts",
17
+ "./source/*/index.tsx"
18
+ ],
19
+ "types": "./distribution/*/index.d.ts",
20
+ "default": "./distribution/*/index.js"
21
+ }
22
+ },
23
+ "files": [
24
+ "distribution",
25
+ "LICENCA.md",
26
+ "LICENSE.md",
27
+ "NOTICE.md",
28
+ "llms.txt"
29
+ ],
30
+ "sideEffects": [
31
+ "**/*.css"
32
+ ],
33
+ "engines": {
34
+ "node": ">=26"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "peerDependencies": {
40
+ "react": ">=19"
41
+ },
42
+ "peerDependenciesMeta": {
43
+ "react": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "lint-staged": {
48
+ "*.{ts,tsx,js,mjs,cjs}": [
49
+ "prettier --write",
50
+ "eslint --fix --max-warnings=0"
51
+ ],
52
+ "*.{json,md,yml,yaml,scss}": "prettier --write"
53
+ },
54
+ "dependencies": {
55
+ "@sharadox/web-library": "^0.7.0"
56
+ },
57
+ "devDependencies": {
58
+ "@sharadox/es-lint-configuration-web-library": "^0.1.1",
59
+ "@sharadox/library-build-web-library": "^0.1.1",
60
+ "@sharadox/prettier-configuration-web-library": "^0.1.0",
61
+ "@sharadox/turborepo-configuration-web-library": "^0.1.0",
62
+ "@sharadox/type-script-configuration-web-library": "^0.2.0",
63
+ "@sharadox/vitest-configuration-web-library": "^0.1.3",
64
+ "@testing-library/dom": "^10.4.2",
65
+ "@testing-library/react": "^16.3.3",
66
+ "@types/node": "^24.19.2",
67
+ "@types/react": "^19.3.0",
68
+ "@types/react-dom": "^19.3.0",
69
+ "@vitest/coverage-v8": "^5.1.0",
70
+ "eslint": "9.39.5",
71
+ "happy-dom": "^21.0.4",
72
+ "husky": "^9.1.7",
73
+ "lint-staged": "^17.6.0",
74
+ "prettier": "^3.10.0",
75
+ "react": "^19.3.1",
76
+ "react-dom": "^19.3.1",
77
+ "sass": "^1.108.2",
78
+ "turbo": "^2.11.10",
79
+ "typedoc": "^0.28.20",
80
+ "typescript": "6.0.3",
81
+ "vitest": "^5.1.0"
82
+ },
83
+ "repository": {
84
+ "type": "git",
85
+ "url": "git+https://github.com/Sharadox/legal-web-library.git"
86
+ },
87
+ "homepage": "https://github.com/Sharadox/legal-web-library#readme",
88
+ "scripts": {
89
+ "build": "library-build",
90
+ "lint": "eslint --max-warnings=0 .",
91
+ "format": "prettier --write .",
92
+ "format:check": "prettier --check .",
93
+ "type-check": "tsc --noEmit",
94
+ "test:unit": "vitest run --coverage",
95
+ "test:benchmark": "vitest bench --run --passWithNoTests",
96
+ "documentation": "typedoc",
97
+ "verify": "turbo run format:check lint type-check test:unit test:benchmark build"
98
+ }
6
99
  }