forlogic-core 2.2.6 → 2.2.7

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 (69) hide show
  1. package/.note/memory/features/import/attachment-idempotency-registry.md +8 -8
  2. package/.note/memory/features/import/attachment-strategy.md +30 -30
  3. package/.note/memory/patterns/admin-i18n-policy.md +20 -20
  4. package/.note/memory/patterns/alias-url-resolution.md +69 -69
  5. package/.note/memory/patterns/doc-sync-rule.md +35 -35
  6. package/.note/memory/patterns/documentation-standard.md +17 -17
  7. package/.note/memory/patterns/dynamic-supabase-config.md +4 -4
  8. package/.note/memory/patterns/environment-detection-logic.md +35 -35
  9. package/.note/memory/patterns/i18n-architecture.md +3 -3
  10. package/README.md +120 -120
  11. package/dist/README.md +1079 -0
  12. package/dist/bin/bootstrap.js +40 -0
  13. package/dist/bin/pull-docs.js +186 -0
  14. package/dist/components/ui/color-picker.d.ts +2 -0
  15. package/dist/components/ui/combo-tree.d.ts +3 -1
  16. package/dist/components/ui/combobox.d.ts +2 -1
  17. package/dist/components/ui/select.d.ts +9 -2
  18. package/dist/docs/KNOWLEDGE.md +109 -0
  19. package/dist/index.css +1 -1
  20. package/dist/index.css.map +1 -1
  21. package/dist/index.esm.js +1 -1
  22. package/dist/index.js +1 -1
  23. package/docs/PUBLISH.md +168 -168
  24. package/docs/STORAGE_BUCKETS.md +456 -456
  25. package/docs/SUPABASE_SECRETS.md +122 -122
  26. package/docs/WORKSPACE_KNOWLEDGE.md +154 -154
  27. package/docs/design-system/buttons-actions.md +130 -130
  28. package/docs/design-system/charts-dashboards.md +301 -340
  29. package/docs/design-system/crud.md +114 -174
  30. package/docs/design-system/data-display.md +106 -106
  31. package/docs/design-system/dialogs.md +212 -212
  32. package/docs/design-system/domain.md +329 -319
  33. package/docs/design-system/examples.md +275 -275
  34. package/docs/design-system/foundation.md +1 -1
  35. package/docs/design-system/inputs.md +137 -132
  36. package/docs/design-system/layout.md +154 -202
  37. package/docs/design-system/navigation.md +331 -272
  38. package/docs/design-system/notifications-feedback.md +34 -34
  39. package/docs/design-system/patterns/README.md +53 -53
  40. package/docs/design-system/patterns/action-button.md +22 -22
  41. package/docs/design-system/patterns/alertdialog-deletion.md +46 -46
  42. package/docs/design-system/patterns/baseform-custom-fields.md +59 -59
  43. package/docs/design-system/patterns/baseform-usage.md +42 -42
  44. package/docs/design-system/patterns/body-content-scroll.md +56 -56
  45. package/docs/design-system/patterns/combo-tree.md +23 -23
  46. package/docs/design-system/patterns/components-registry.md +17 -17
  47. package/docs/design-system/patterns/core-providers.md +41 -41
  48. package/docs/design-system/patterns/crud-bulk-actions.md +12 -12
  49. package/docs/design-system/patterns/crud-config-props.md +16 -16
  50. package/docs/design-system/patterns/crud-defaults.md +17 -17
  51. package/docs/design-system/patterns/crud-toolbar.md +28 -28
  52. package/docs/design-system/patterns/delete-confirmation.md +40 -40
  53. package/docs/design-system/patterns/dialog-body-scroll.md +26 -26
  54. package/docs/design-system/patterns/dialog-structure.md +32 -32
  55. package/docs/design-system/patterns/dialog-variants.md +41 -41
  56. package/docs/design-system/patterns/feature-flags.md +81 -81
  57. package/docs/design-system/patterns/header-metadata.md +57 -57
  58. package/docs/design-system/patterns/i18n-setup.md +117 -117
  59. package/docs/design-system/patterns/pagination.md +27 -27
  60. package/docs/design-system/patterns/single-scroll.md +39 -39
  61. package/docs/design-system/patterns/vite-tailwind-setup.md +49 -49
  62. package/docs/design-system/platform.md +18 -18
  63. package/docs/design-system/selectors.md +287 -258
  64. package/docs/design-system/tables-grids.md +38 -95
  65. package/package.json +152 -152
  66. package/dist/assets/docs-BEwTKYu3.css +0 -1
  67. package/dist/assets/docs-Bgpz6ETN.js +0 -10752
  68. package/dist/assets/index-SqMwTzMJ.js +0 -97
  69. package/dist/index.html +0 -34
@@ -1,49 +1,49 @@
1
- # Padrão: Setup Vite + Tailwind para Projetos Consumidores
2
-
3
- ## Vite — Security Headers
4
-
5
- ```ts
6
- import { createSecurityHeadersPlugin } from 'forlogic-core/vite';
7
-
8
- export default defineConfig(({ mode }) => ({
9
- plugins: [
10
- react(),
11
- createSecurityHeadersPlugin(mode === 'development', {
12
- supabaseUrls: ['https://SEU_PROJETO.supabase.co'],
13
- additionalConnectSrc: ['https://*.qualiex.com'],
14
- }),
15
- ],
16
- resolve: {
17
- alias: { '@': path.resolve(__dirname, './src') },
18
- },
19
- publicDir: false,
20
- esbuild: { sourcemap: true, target: 'es2020' },
21
- build: { chunkSizeWarningLimit: 4000 },
22
- }));
23
- ```
24
-
25
- Opções do plugin: `supabaseUrls`, `trustedOrigins`, `additionalScriptSrc`, `additionalStyleSrc`, `additionalConnectSrc`, `cspReportUri`, `enableTrustedTypes` (default true), `upgradeInsecureRequests` (default true).
26
-
27
- Alternativa: `createForlogicViteConfig()` factory que retorna config completa (ver README).
28
-
29
- ## Tailwind
30
-
31
- ```ts
32
- import { forlogicTailwindPreset, forlogicContentPaths } from 'forlogic-core/tailwind';
33
-
34
- export default {
35
- presets: [forlogicTailwindPreset],
36
- content: [...forlogicContentPaths],
37
- } satisfies Config;
38
- ```
39
-
40
- `forlogicContentPaths` inclui: `./src/**/*.{ts,tsx}`, `./lib/**/*.{ts,tsx}`, `./node_modules/forlogic-core/dist/**/*.{js,ts,jsx,tsx}`, etc.
41
-
42
- ## Checklist
43
-
44
- - [ ] `createSecurityHeadersPlugin` no vite.config.ts com URLs do Supabase
45
- - [ ] `resolve.alias` usa `path.resolve(__dirname, ...)`
46
- - [ ] `forlogicTailwindPreset` no tailwind.config.ts
47
- - [ ] `forlogicContentPaths` no content
48
- - [ ] Variáveis CSS definidas no index.css (--primary, --background, etc.)
49
- - [ ] `VITE_SUPABASE_PK_OVERRIDE` no `.env` com a publishable key correta (ver `feature-flags.md`)
1
+ # Padrão: Setup Vite + Tailwind para Projetos Consumidores
2
+
3
+ ## Vite — Security Headers
4
+
5
+ ```ts
6
+ import { createSecurityHeadersPlugin } from 'forlogic-core/vite';
7
+
8
+ export default defineConfig(({ mode }) => ({
9
+ plugins: [
10
+ react(),
11
+ createSecurityHeadersPlugin(mode === 'development', {
12
+ supabaseUrls: ['https://SEU_PROJETO.supabase.co'],
13
+ additionalConnectSrc: ['https://*.qualiex.com'],
14
+ }),
15
+ ],
16
+ resolve: {
17
+ alias: { '@': path.resolve(__dirname, './src') },
18
+ },
19
+ publicDir: false,
20
+ esbuild: { sourcemap: true, target: 'es2020' },
21
+ build: { chunkSizeWarningLimit: 4000 },
22
+ }));
23
+ ```
24
+
25
+ Opções do plugin: `supabaseUrls`, `trustedOrigins`, `additionalScriptSrc`, `additionalStyleSrc`, `additionalConnectSrc`, `cspReportUri`, `enableTrustedTypes` (default true), `upgradeInsecureRequests` (default true).
26
+
27
+ Alternativa: `createForlogicViteConfig()` factory que retorna config completa (ver README).
28
+
29
+ ## Tailwind
30
+
31
+ ```ts
32
+ import { forlogicTailwindPreset, forlogicContentPaths } from 'forlogic-core/tailwind';
33
+
34
+ export default {
35
+ presets: [forlogicTailwindPreset],
36
+ content: [...forlogicContentPaths],
37
+ } satisfies Config;
38
+ ```
39
+
40
+ `forlogicContentPaths` inclui: `./src/**/*.{ts,tsx}`, `./lib/**/*.{ts,tsx}`, `./node_modules/forlogic-core/dist/**/*.{js,ts,jsx,tsx}`, etc.
41
+
42
+ ## Checklist
43
+
44
+ - [ ] `createSecurityHeadersPlugin` no vite.config.ts com URLs do Supabase
45
+ - [ ] `resolve.alias` usa `path.resolve(__dirname, ...)`
46
+ - [ ] `forlogicTailwindPreset` no tailwind.config.ts
47
+ - [ ] `forlogicContentPaths` no content
48
+ - [ ] Variáveis CSS definidas no index.css (--primary, --background, etc.)
49
+ - [ ] `VITE_SUPABASE_PK_OVERRIDE` no `.env` com a publishable key correta (ver `feature-flags.md`)
@@ -29,23 +29,23 @@ Componente único multi-provider de assinatura digital com fluxo em 3 fases: Upl
29
29
 
30
30
  **Uso:**
31
31
  ```tsx
32
- // Uso básico — provedor resolvido automaticamente pela config da unidade
33
- <DocumentSigner
34
- showEventLog
35
- onDocumentSigned={(data) => {
36
- // data.provider → 'clicksign' ou 'd4sign'
37
- // data.envelope_id, data.document_id, data.signer_id, data.environment
38
- console.log('Assinado:', data);
39
- }}
40
- onError={(error) => {
41
- console.error('Erro:', error.message);
42
- }}
43
- />
44
-
45
- // Passando PDF programaticamente (sem upload manual)
46
- <DocumentSigner
47
- file={meuArquivoPdf}
48
- onDocumentSigned={(data) => console.log('Assinado:', data)}
32
+ // Uso básico — provedor resolvido automaticamente pela config da unidade
33
+ <DocumentSigner
34
+ showEventLog
35
+ onDocumentSigned={(data) => {
36
+ // data.provider → 'clicksign' ou 'd4sign'
37
+ // data.envelope_id, data.document_id, data.signer_id, data.environment
38
+ console.log('Assinado:', data);
39
+ }}
40
+ onError={(error) => {
41
+ console.error('Erro:', error.message);
42
+ }}
43
+ />
44
+
45
+ // Passando PDF programaticamente (sem upload manual)
46
+ <DocumentSigner
47
+ file={meuArquivoPdf}
48
+ onDocumentSigned={(data) => console.log('Assinado:', data)}
49
49
  />
50
50
  ```
51
51
 
@@ -78,7 +78,7 @@ import { DocumentSigner } from
78
78
  - permite busca manual ilimitada.
79
79
  - Configuração de produção: Admin → /a/cs (aba Assinatura digital).
80
80
 
81
- > Fonte: `src/design-system/docs/components/SignDoc.tsx`
81
+ > Fonte: `src\design-system\docs\components\SignDoc.tsx`
82
82
 
83
83
  ---
84
84