@opencorestack/opengridx 0.1.2 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@
5
5
 
6
6
  ---
7
7
 
8
+ ## [0.1.3] — March 10, 2026 🐛✨
9
+
10
+ ### Added
11
+ - `llms.txt` bundled inside the npm package — a machine-readable AI agent API context file with complete props reference, type definitions, and usage examples. Located at `node_modules/@opencorestack/opengridx/llms.txt` after installation.
12
+
13
+ ### Fixed
14
+ - CSS now explicitly imported at the barrel entry (`lib/index.ts`), ensuring styles are never silently dropped by bundlers (Vite, Webpack, Next.js App Router) that don't auto-resolve side-effect CSS from library packages.
15
+ - Column resize: `ColumnResizeHandle` now uses the logical stored width (`currentWidth` prop) instead of reading DOM `getBoundingClientRect()`, fixing resize jitter and incorrect delta calculations on second+ drag.
16
+ - Pinned column resize: Resizing a pinned (sticky) column no longer corrupts its displayed width — the DOM measurement was previously offset by the sticky `left`/`right` position, causing an erroneous width jump on first drag.
17
+
18
+ ### Docs
19
+ - Updated `README.md` to accurately describe CSS handling and provide a clear fallback import instruction for all environments.
20
+
21
+ ---
22
+
8
23
  ## [0.1.2] — March 6, 2026 🐛
9
24
 
10
25
  ### Fixed
package/README.md CHANGED
@@ -17,17 +17,19 @@ npm install @opencorestack/opengridx
17
17
  ```
18
18
 
19
19
  ```tsx
20
- // Styles are automatically included — no separate CSS import needed
21
20
  import { DataGrid } from '@opencorestack/opengridx';
22
21
  ```
23
22
 
24
- > **Note:** Styles are bundled inside the component. For SSR or CSS-in-JS setups use the explicit styles export:
23
+ > **Styles:** The CSS is bundled as a separate file (`opengridx.css`) alongside the JS. It is imported automatically via the package barrel in most setups.
24
+ > However, **if your grid appears unstyled** (Vite, Next.js App Router, or SSR environments sometimes skip side-effect CSS auto-detection), add this explicit import once — typically in your app's root file (`main.tsx` / `layout.tsx`):
25
+ >
25
26
  > ```tsx
26
27
  > import '@opencorestack/opengridx/styles';
27
28
  > ```
28
29
 
29
30
  ---
30
31
 
32
+
31
33
  ## ⚡ Basic Example
32
34
 
33
35
  ```tsx