@texturehq/edges 0.0.20 → 0.0.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@texturehq/edges",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "author": "Nicholas Brown <nick@texturehq.com>",
5
5
  "description": "A shared component library for Texture",
6
6
  "type": "module",
@@ -90,10 +90,13 @@
90
90
  "storybook": "^8.6.12",
91
91
  "tailwindcss": "^4.1.3",
92
92
  "tsup": "^8.0.2",
93
- "typescript": "~5.4.2",
93
+ "typescript": "~5.9.2",
94
94
  "vite": "^5.1.6",
95
95
  "vite-plugin-svgr": "^4.3.0",
96
96
  "vitest": "^3.1.1",
97
97
  "yalc": "^1.0.0-pre.53"
98
+ },
99
+ "publishConfig": {
100
+ "registry": "https://npm.pkg.github.com"
98
101
  }
99
102
  }
@@ -101,16 +101,40 @@ const setupCursorRules = () => {
101
101
  '---',
102
102
  '',
103
103
  `## @texturehq/edges Components (v${manifest.version || 'unknown'})`,
104
+ '',
105
+ '### Quick Reference',
104
106
  ''
105
107
  ];
108
+
109
+ // Add quick reference list
106
110
  for (const c of manifest.components || []) {
107
- cursorLines.push(`- ${c.name}`);
108
- if (c.importRoot) cursorLines.push(` - Import: \`import { ${c.name} } from "${c.importRoot}"\``);
109
- if (c.importPath) cursorLines.push(` - Subpath: \`import { ${c.name} } from "${c.importPath}"\``);
111
+ cursorLines.push(`- **${c.name}** - ${c.description || 'Component'}`);
112
+ }
113
+
114
+ cursorLines.push('');
115
+ cursorLines.push('### Detailed Component Reference');
116
+ cursorLines.push('');
117
+
118
+ for (const c of manifest.components || []) {
119
+ cursorLines.push(`#### ${c.name}`);
120
+ if (c.description) {
121
+ cursorLines.push(`${c.description}`);
122
+ }
123
+ cursorLines.push('');
124
+ cursorLines.push('**Imports:**');
125
+ cursorLines.push(`- \`import { ${c.name} } from "@texturehq/edges"\``);
126
+ cursorLines.push(`- \`import { ${c.name} } from "@texturehq/edges/components/${c.name}"\``);
127
+ cursorLines.push('');
128
+
110
129
  if (c.props && c.props.length) {
111
- const propNames = c.props.slice(0, 8).map(p => p.name).join(', ');
112
- cursorLines.push(` - Props: ${propNames}${c.props.length > 8 ? ', …' : ''}`);
130
+ cursorLines.push('**Props:**');
131
+ c.props.forEach(prop => {
132
+ cursorLines.push(`- \`${prop.name}: ${prop.type}\``);
133
+ });
134
+ cursorLines.push('');
113
135
  }
136
+ cursorLines.push('---');
137
+ cursorLines.push('');
114
138
  }
115
139
  const cursorOutPath = path.join(rulesDir, 'edges-components.mdc');
116
140
  // Backup existing components manifest before overwriting
@@ -125,14 +149,37 @@ const setupCursorRules = () => {
125
149
 
126
150
  // Generate Claude components list
127
151
  const claudeLines = [];
152
+ claudeLines.push('### Quick Reference');
153
+ claudeLines.push('');
154
+
155
+ // Add quick reference list
128
156
  for (const c of manifest.components || []) {
129
- claudeLines.push(`- **${c.name}**`);
130
- if (c.description) claudeLines.push(` - ${c.description}`);
131
- if (c.importPath) claudeLines.push(` - Import: \`import { ${c.name} } from "${c.importPath}"\``);
157
+ claudeLines.push(`- **${c.name}** - ${c.description || 'Component'}`);
158
+ }
159
+
160
+ claudeLines.push('');
161
+ claudeLines.push('### Detailed Component Reference');
162
+ claudeLines.push('');
163
+
164
+ for (const c of manifest.components || []) {
165
+ claudeLines.push(`#### ${c.name}`);
166
+ if (c.description) {
167
+ claudeLines.push(`${c.description}`);
168
+ }
169
+ claudeLines.push('');
170
+ claudeLines.push('**Imports:**');
171
+ claudeLines.push(`- \`import { ${c.name} } from "@texturehq/edges"\``);
172
+ claudeLines.push(`- \`import { ${c.name} } from "@texturehq/edges/components/${c.name}"\``);
173
+ claudeLines.push('');
174
+
132
175
  if (c.props && c.props.length) {
133
- const propNames = c.props.slice(0, 6).map(p => p.name).join(', ');
134
- claudeLines.push(` - Props: ${propNames}${c.props.length > 6 ? ', …' : ''}`);
176
+ claudeLines.push('**Props:**');
177
+ c.props.forEach(prop => {
178
+ claudeLines.push(`- \`${prop.name}: ${prop.type}\``);
179
+ });
180
+ claudeLines.push('');
135
181
  }
182
+ claudeLines.push('---');
136
183
  claudeLines.push('');
137
184
  }
138
185