tsquare 0.6.0 → 0.7.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.
package/dist/prompt.d.ts CHANGED
@@ -18,5 +18,7 @@ export declare const TEXT_FORMAT = "## Output format: wireframe text\nOne elemen
18
18
  export declare const EXAMPLE_REQUEST = "Two phone screens for a recipe app: a browse screen with search, category tabs, a grid of recipe cards and a tab bar; and a recipe detail screen with its options sheet open.";
19
19
  /** The system prompt for writing wireframe text. */
20
20
  export declare function wireframePrompt(): string;
21
+ /** The language itself: format, rules, a worked example and every component. Shared by the prompt and the MCP guide. */
22
+ export declare function languageReference(): string;
21
23
  /** Follow-up message asking a model to fix the problems in its last reply. */
22
24
  export declare function repairPrompt(issues: string): string;
package/dist/text.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare const PRIMARY_PROP: Record<string, string>;
26
26
  * For an error message: where a prop name or bare word that this component doesn't take
27
27
  * belongs instead, e.g. fullWidth on an input → "fullWidth is a Button prop". Empty if nowhere.
28
28
  */
29
- export declare function belongsElsewhere(component: string, word: string, asProp: boolean): string;
29
+ export declare function belongsElsewhere(component: string, word: string, asProp: boolean, value?: unknown): string;
30
30
  /** What a component accepts as bare words, for docs: option values (with their prop), ambiguous values, and boolean props. */
31
31
  export declare function bareWords(component: string): {
32
32
  options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsquare",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Wireframes in plain text: easy for LLMs to write, fast to render as SVG or PNG.",
5
5
  "keywords": [
6
6
  "wireframe",