@texturehq/edges 1.9.0 → 1.10.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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "1.9.0",
3
- "generatedAt": "2025-10-21T19:04:50.171Z",
2
+ "version": "1.10.0",
3
+ "generatedAt": "2025-10-22T14:55:00.108Z",
4
4
  "categories": {
5
5
  "hooks": {
6
6
  "description": "React hooks for common functionality like breakpoints, debouncing, local storage, and media queries",
@@ -33,6 +33,13 @@
33
33
  "category": "hooks",
34
34
  "file": "hooks/useDebounce.ts"
35
35
  },
36
+ {
37
+ "name": "useElementSize",
38
+ "type": "function",
39
+ "description": "useElementSize A performant hook that tracks the dimensions of a DOM element using ResizeObserver. Returns a callback ref to attach to the element and its current width/height. Performance optimizations: - Uses ResizeObserver for efficient resize detection - Debounces updates using requestAnimationFrame - Cleans up observer on unmount ```tsx const { ref, width, height } = useElementSize(); return ( <div ref={ref}> Width: {width}px, Height: {height}px </div> ); ```",
40
+ "category": "hooks",
41
+ "file": "hooks/useElementSize.ts"
42
+ },
36
43
  {
37
44
  "name": "useLocalStorage",
38
45
  "type": "function",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",
@@ -741,7 +741,9 @@ The theme includes ${Object.keys(colorVars).length} color variables organized by
741
741
 
742
742
  ### Action Colors
743
743
  - \`action-primary\` - Primary actions
744
+ - \`action-brand\` - Brand-focused actions
744
745
  - \`action-secondary\` - Secondary actions
746
+ - \`action-default\` - Default gray actions
745
747
  - \`action-destructive\` - Destructive actions
746
748
 
747
749
  ### Feedback Colors
@@ -61,9 +61,9 @@ function generateVizRuntime() {
61
61
  * because Tailwind 4's @theme directive filters them out (similar issue as data-* prefix).
62
62
  *
63
63
  * AUTO-GENERATED by scripts/generate-viz-runtime.js
64
- * DO NOT EDIT MANUALLY - Edit tokens/base/data-visualization.json instead.
65
- *
66
- * To customize dark mode viz colors, edit the "viz" section in tokens/themes/dark.json
64
+ * DO NOT EDIT MANUALLY - Edit theme-specific viz colors in:
65
+ * - tokens/themes/light.json (light mode viz colors)
66
+ * - tokens/themes/dark.json (dark mode viz colors)
67
67
  */
68
68
 
69
69
  /* Light theme (default) */