vobi_document 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Home Hero
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # document-generator
2
+
3
+ Biblioteca do gerador de documentos. Build duplo (ESM + CJS) com tipos, schema em
4
+ Zod e componentes React com styled-components.
5
+
6
+ > Task A1 — scaffold. Entry point é placeholder; features entram a partir da A2.
7
+
8
+ ## Stack
9
+
10
+ - **TypeScript** (strict)
11
+ - **tsup** — build ESM + CJS + `.d.ts`
12
+ - **Zod** — schema do documento
13
+ - **styled-components** + **React** (peer dependencies)
14
+ - **Jest** + ts-jest + Testing Library
15
+ - **ESLint 9** (flat config) + airbnb (via FlatCompat) + Prettier
16
+ - **pnpm** — gerenciador
17
+ - **yalc** — link local para consumo na `homehero-app-bo`
18
+
19
+ ## Setup
20
+
21
+ ```bash
22
+ pnpm install
23
+ ```
24
+
25
+ ## Scripts
26
+
27
+ | Script | Ação |
28
+ | --- | --- |
29
+ | `pnpm build` | Build de produção (`dist/`, ESM + CJS + types) |
30
+ | `pnpm dev` | Build em watch |
31
+ | `pnpm typecheck` | `tsc --noEmit` |
32
+ | `pnpm test` | Roda os testes (Jest) |
33
+ | `pnpm test:watch` | Testes em watch |
34
+ | `pnpm test:coverage` | Testes com cobertura |
35
+ | `pnpm lint` | ESLint |
36
+ | `pnpm lint:fix` | ESLint com autofix |
37
+ | `pnpm format` | Prettier write |
38
+ | `pnpm deploy:local` | Build + `yalc push` para os consumidores |
39
+
40
+ ## Consumo local na homehero-app-bo (yalc)
41
+
42
+ Na lib:
43
+
44
+ ```bash
45
+ pnpm build
46
+ yalc publish
47
+ ```
48
+
49
+ Na `homehero-app-bo`:
50
+
51
+ ```bash
52
+ yalc add document-generator
53
+ npm install
54
+ ```
55
+
56
+ Durante o desenvolvimento, `pnpm deploy:local` na lib faz build e dá push para os
57
+ projetos que já têm o link via `yalc add`.
58
+
59
+ ## Publicação npm
60
+
61
+ Fluxo pronto (publish manual no fim do dev):
62
+
63
+ ```bash
64
+ pnpm build # via prepublishOnly
65
+ npm publish
66
+ ```
@@ -0,0 +1,3 @@
1
+ export { ActionBar, Puck, Render, registerOverlayPortal, useGetPuck, usePuck } from '@puckeditor/core';
2
+ //# sourceMappingURL=chunk-SY4NYXKN.js.map
3
+ //# sourceMappingURL=chunk-SY4NYXKN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-SY4NYXKN.js","sourcesContent":[]}