@apollion-dsi/core 4.5.0 → 4.5.1

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/README.md CHANGED
@@ -28,6 +28,22 @@ Peer dependencies (React 19) precisam estar no consumidor:
28
28
  yarn add react@19.2.6 react-dom@19.2.6 styled-components@^6
29
29
  ```
30
30
 
31
+ ## Imports (v4 — subpaths-only)
32
+
33
+ A partir do **v4.0.0** (ADR-006 §3.7 E7) o barrel raiz **não reexporta** os
34
+ componentes. O único símbolo em `@apollion-dsi/core` é `APOLLION_CORE_VERSION`.
35
+ Importe sempre de subpaths granulares — habilita tree-shaking por componente:
36
+
37
+ ```ts
38
+ import { ApollionProvider, createTheme } from '@apollion-dsi/core/themes';
39
+ import { Button } from '@apollion-dsi/core/elements/button';
40
+ import { Flex } from '@apollion-dsi/core/containers/flex';
41
+
42
+ // ❌ erro de ESLint (no-restricted-imports); o codemod `apollion-migrate v4`
43
+ // converte automaticamente — ver docs/migration/MIGRATION-v4.md
44
+ import { Button } from '@apollion-dsi/core';
45
+ ```
46
+
31
47
  ## Setup mínimo
32
48
 
33
49
  Envolva sua aplicação com `ApollionProvider` (que também monta o
@@ -35,7 +51,7 @@ Envolva sua aplicação com `ApollionProvider` (que também monta o
35
51
 
36
52
  ```tsx
37
53
  import { createRoot } from 'react-dom/client';
38
- import { ApollionProvider } from '@apollion-dsi/core';
54
+ import { ApollionProvider } from '@apollion-dsi/core/themes';
39
55
  import { App } from './app';
40
56
 
41
57
  createRoot(document.getElementById('root')!).render(
@@ -73,7 +89,8 @@ O `ThemeProvider` expõe tokens semânticos (cores, espaçamentos, tipografia,
73
89
  bordas, sombras). Componentes consomem o tema via styled-components:
74
90
 
75
91
  ```tsx
76
- import { Flex, Text } from '@apollion-dsi/core';
92
+ import { Text } from '@apollion-dsi/core/elements/text';
93
+ import { Flex } from '@apollion-dsi/core/containers/flex';
77
94
 
78
95
  <Flex bgColor="primary.light" p="large">
79
96
  <Text color="primary.dark" fontWeight="bold">
package/lib/index.d.ts CHANGED
@@ -23,5 +23,12 @@
23
23
  * @see PRD-002 §S7
24
24
  * @see packages/core/docs/migration/MIGRATION-v4.md (greenfield consumer setup)
25
25
  */
26
- /** Package version exposed for runtime introspection (e.g. devtools). */
27
- export declare const APOLLION_CORE_VERSION: "4.1.0";
26
+ /**
27
+ * Package version exposed for runtime introspection (e.g. devtools).
28
+ *
29
+ * MUST equal `package.json#version`. This literal is hand-maintained, so it
30
+ * silently drifted across 4.2→4.5 (published 4.5.0 still reported `4.1.0`).
31
+ * `index.test.ts` now asserts the two stay in lockstep, so a stale bump fails
32
+ * `validate` before it can ship again.
33
+ */
34
+ export declare const APOLLION_CORE_VERSION: "4.5.1";
package/lib/index.esm.js CHANGED
@@ -1 +1 @@
1
- import"./chunks/chunk-GZONWSRB.esm.js";var O="4.1.0";export{O as APOLLION_CORE_VERSION};
1
+ import"./chunks/chunk-GZONWSRB.esm.js";var O="4.5.1";export{O as APOLLION_CORE_VERSION};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var c=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var N=(o,O)=>{for(var t in O)c(o,t,{get:O[t],enumerable:!0})},R=(o,O,t,n)=>{if(O&&typeof O=="object"||typeof O=="function")for(let s of I(O))!L.call(o,s)&&s!==t&&c(o,s,{get:()=>O[s],enumerable:!(n=E(O,s))||n.enumerable});return o};var _=o=>R(c({},"__esModule",{value:!0}),o);var e={};N(e,{APOLLION_CORE_VERSION:()=>a});module.exports=_(e);var a="4.1.0";0&&(module.exports={APOLLION_CORE_VERSION});
1
+ "use strict";var c=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var L=Object.prototype.hasOwnProperty;var N=(o,O)=>{for(var t in O)c(o,t,{get:O[t],enumerable:!0})},R=(o,O,t,n)=>{if(O&&typeof O=="object"||typeof O=="function")for(let s of I(O))!L.call(o,s)&&s!==t&&c(o,s,{get:()=>O[s],enumerable:!(n=E(O,s))||n.enumerable});return o};var _=o=>R(c({},"__esModule",{value:!0}),o);var e={};N(e,{APOLLION_CORE_VERSION:()=>a});module.exports=_(e);var a="4.5.1";0&&(module.exports={APOLLION_CORE_VERSION});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollion-dsi/core",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Apollion Design System — Component Library",
5
5
  "homepage": "https://github.com/apollion-ds/apollion",
6
6
  "license": "MIT",
@@ -329,7 +329,7 @@
329
329
  "zod": "4.4.3"
330
330
  },
331
331
  "optionalDependencies": {
332
- "@apollion-dsi/tokens": "4.5.0"
332
+ "@apollion-dsi/tokens": "4.5.1"
333
333
  },
334
334
  "devDependencies": {
335
335
  "@apollion-dsi/eslint-config": "0.8.0",