@wire-dsl/language-support 0.0.2 → 0.1.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/INTEGRATION-GUIDE.md +1 -1
- package/LICENSE +0 -15
- package/README.md +2 -1
- package/dist/completions.js +16 -16
- package/dist/completions.js.map +1 -1
- package/dist/components.d.ts +12 -12
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +143 -209
- package/dist/components.js.map +1 -1
- package/dist/context-detection.d.ts.map +1 -1
- package/dist/context-detection.js +8 -9
- package/dist/context-detection.js.map +1 -1
- package/dist/documentation.d.ts.map +1 -1
- package/dist/documentation.js +17 -15
- package/dist/documentation.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/INTEGRATION-GUIDE.md
CHANGED
|
@@ -32,7 +32,7 @@ packages/
|
|
|
32
32
|
## Cómo Usar en Monaco (Web)
|
|
33
33
|
|
|
34
34
|
```typescript
|
|
35
|
-
//
|
|
35
|
+
// apps/web/src/monaco/wireLanguage.ts
|
|
36
36
|
import { ALL_KEYWORDS, getCompletions } from '@wire-dsl/language-support';
|
|
37
37
|
|
|
38
38
|
export function registerWireLanguage() {
|
package/LICENSE
CHANGED
|
@@ -19,18 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Third-Party Components & Assets
|
|
26
|
-
|
|
27
|
-
### Feather Icons
|
|
28
|
-
|
|
29
|
-
This project includes icons from Feather Icons (https://feathericons.com), created by Cole Bemis and contributors.
|
|
30
|
-
|
|
31
|
-
- **License**: MIT License
|
|
32
|
-
- **Repository**: https://github.com/feathericons/feather
|
|
33
|
-
- **Location in project**: `packages/core/src/renderer/icons/`
|
|
34
|
-
- **Full details**: See `packages/core/src/renderer/icons/ICONS-LICENSE.md`
|
|
35
|
-
|
|
36
|
-
Feather Icons are used under the terms of the MIT License, which is fully compatible with this project's MIT License.
|
package/README.md
CHANGED
|
@@ -23,7 +23,8 @@ const suggestions = getCompletions('but'); // → [button, ...]
|
|
|
23
23
|
|
|
24
24
|
## What's Included
|
|
25
25
|
|
|
26
|
-
- **
|
|
26
|
+
- **Core Keywords** - project, screen, theme, layout, component, define
|
|
27
|
+
- **30+ UI Components** - All built-in components with autocomplete
|
|
27
28
|
- **Autocomplete Logic** - Context-aware suggestions
|
|
28
29
|
- **Syntax Grammar** - For Monaco, VS Code, and TextMate editors
|
|
29
30
|
|
package/dist/completions.js
CHANGED
|
@@ -266,13 +266,13 @@ export function getComponentProperties(componentName) {
|
|
|
266
266
|
if (!component || !component.properties) {
|
|
267
267
|
return [];
|
|
268
268
|
}
|
|
269
|
-
return Object.
|
|
270
|
-
.map((
|
|
271
|
-
label:
|
|
269
|
+
return Object.values(component.properties)
|
|
270
|
+
.map((prop) => ({
|
|
271
|
+
label: prop.name,
|
|
272
272
|
kind: 'Property',
|
|
273
|
-
detail:
|
|
274
|
-
documentation: `Property: ${
|
|
275
|
-
insertText: `${
|
|
273
|
+
detail: prop.type,
|
|
274
|
+
documentation: `Property: ${prop.name} (${prop.type})`,
|
|
275
|
+
insertText: `${prop.name}: `,
|
|
276
276
|
}));
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
@@ -284,13 +284,13 @@ export function getComponentPropertiesForCompletion(componentName, alreadyDeclar
|
|
|
284
284
|
if (!componentMeta) {
|
|
285
285
|
return PROPERTY_COMPLETIONS;
|
|
286
286
|
}
|
|
287
|
-
const availableProps = Object.
|
|
288
|
-
.filter((
|
|
289
|
-
.map((
|
|
290
|
-
label:
|
|
287
|
+
const availableProps = Object.values(componentMeta.properties || {})
|
|
288
|
+
.filter((prop) => !alreadyDeclaredProps.includes(prop.name))
|
|
289
|
+
.map((prop) => ({
|
|
290
|
+
label: prop.name,
|
|
291
291
|
kind: 'Property',
|
|
292
|
-
documentation: `Type: ${
|
|
293
|
-
insertText: `${
|
|
292
|
+
documentation: `Type: ${prop.type}`,
|
|
293
|
+
insertText: `${prop.name}: `,
|
|
294
294
|
detail: `${componentName} property`,
|
|
295
295
|
}));
|
|
296
296
|
return [...availableProps, ...PROPERTY_COMPLETIONS];
|
|
@@ -300,14 +300,14 @@ export function getComponentPropertiesForCompletion(componentName, alreadyDeclar
|
|
|
300
300
|
*/
|
|
301
301
|
export function getPropertyValueSuggestions(componentName, propertyName) {
|
|
302
302
|
const componentMeta = COMPONENTS[componentName];
|
|
303
|
-
if (!componentMeta
|
|
303
|
+
if (!componentMeta) {
|
|
304
304
|
return [];
|
|
305
305
|
}
|
|
306
|
-
const
|
|
307
|
-
if (!
|
|
306
|
+
const propDef = componentMeta.properties[propertyName];
|
|
307
|
+
if (!propDef || propDef.type !== 'enum' || !propDef.options) {
|
|
308
308
|
return [];
|
|
309
309
|
}
|
|
310
|
-
return (
|
|
310
|
+
return (propDef.options).map((value) => ({
|
|
311
311
|
label: value.toString(),
|
|
312
312
|
kind: 'Value',
|
|
313
313
|
documentation: `Value for ${propertyName}`,
|
package/dist/completions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completions.js","sourceRoot":"","sources":["../src/completions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"completions.js","sourceRoot":"","sources":["../src/completions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAA8C,MAAM,cAAc,CAAC;AAsBtF,oCAAoC;AACpC,MAAM,CAAC,MAAM,mBAAmB,GAAqB;IACnD;QACE,KAAK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,IAAI,EAAE,SAAS;oBACf,MAAM,EAAE,2BAA2B;oBACnC,aAAa,EAAE,2CAA2C;oBAC1D,UAAU,EAAE,wDAAwD;iBACrE;gBACD,GAAG,qBAAqB;aACzB,CAAC;YACF,OAAO,iBAAiB,CAAC;QAE3B,KAAK,eAAe;YAClB,gDAAgD;YAChD,OAAO;gBACL,GAAG,qBAAqB,EAAG,uBAAuB;gBAClD;oBACE,KAAK,EAAE,MAAM;oBACb,IAAI,EAAE,SAAS;oBACf,MAAM,EAAE,yBAAyB;oBACjC,aAAa,EAAE,sBAAsB;oBACrC,UAAU,EAAE,8BAA8B;iBAC3C;gBACD,GAAG,qBAAqB;aACzB,CAAC;QAEJ;YACE,OAAO,EAAE,CAAC;IACd,CAAC;AACH,CAAC;AAED,eAAe;IACb,mBAAmB;IACnB,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,iBAAiB;IACjB,mCAAmC;IACnC,2BAA2B;IAC3B,wBAAwB;IACxB,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,sBAAsB;CACvB,CAAC"}
|
package/dist/components.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wire DSL Component Metadata
|
|
3
|
-
* Used for autocompletion and
|
|
3
|
+
* Used for autocompletion, validation, and code intelligence.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* 1. Built-in components: Check packages/core/src/renderer/index.ts renderComponent() method
|
|
7
|
-
* for latest component implementations. Update this file when new components are added.
|
|
8
|
-
* 2. User-defined components: Syntax is `define Component "Name" { ... }`
|
|
9
|
-
* These are parsed and resolved before IR generation.
|
|
10
|
-
*
|
|
11
|
-
* Total components: 32 built-in + unlimited user-defined
|
|
12
|
-
* Last synced: February 2, 2026
|
|
5
|
+
* Last synced: February 9, 2026
|
|
13
6
|
*/
|
|
7
|
+
export interface PropertyMetadata {
|
|
8
|
+
name: string;
|
|
9
|
+
type: 'string' | 'enum' | 'boolean' | 'number' | 'color';
|
|
10
|
+
description?: string;
|
|
11
|
+
defaultValue?: any;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
options?: string[];
|
|
14
|
+
}
|
|
14
15
|
export interface ComponentMetadata {
|
|
15
16
|
name: string;
|
|
16
17
|
description: string;
|
|
17
|
-
properties: string
|
|
18
|
-
propertyValues?: Record<string, string[]>;
|
|
18
|
+
properties: Record<string, PropertyMetadata>;
|
|
19
19
|
example: string;
|
|
20
20
|
}
|
|
21
21
|
export interface LayoutMetadata {
|
|
22
22
|
name: string;
|
|
23
23
|
description: string;
|
|
24
|
-
properties: string
|
|
24
|
+
properties: Record<string, PropertyMetadata>;
|
|
25
25
|
example: string;
|
|
26
26
|
requiredProperties?: string[];
|
|
27
27
|
}
|
package/dist/components.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAWD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAoJxD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAsBlD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CASpD,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;CAOpB,CAAC"}
|
package/dist/components.js
CHANGED
|
@@ -1,265 +1,199 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wire DSL Component Metadata
|
|
3
|
-
* Used for autocompletion and
|
|
3
|
+
* Used for autocompletion, validation, and code intelligence.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* 1. Built-in components: Check packages/core/src/renderer/index.ts renderComponent() method
|
|
7
|
-
* for latest component implementations. Update this file when new components are added.
|
|
8
|
-
* 2. User-defined components: Syntax is `define Component "Name" { ... }`
|
|
9
|
-
* These are parsed and resolved before IR generation.
|
|
10
|
-
*
|
|
11
|
-
* Total components: 32 built-in + unlimited user-defined
|
|
12
|
-
* Last synced: February 2, 2026
|
|
5
|
+
* Last synced: February 9, 2026
|
|
13
6
|
*/
|
|
7
|
+
// Reusable Enum Definitions
|
|
8
|
+
const sizeEnum = { name: 'size', type: 'enum', options: ['sm', 'md', 'lg'] };
|
|
9
|
+
const colorEnum = { name: 'color', type: 'color', options: ['primary', 'secondary', 'danger', 'warning', 'info'] };
|
|
10
|
+
const variantEnum = { name: 'variant', type: 'enum', options: ['primary', 'secondary', 'danger', 'warning', 'info'] };
|
|
11
|
+
const orientationEnum = { name: 'orientation', type: 'enum', options: ['horizontal', 'vertical'] };
|
|
12
|
+
const alignEnum = { name: 'align', type: 'enum', options: ['justify', 'left', 'center', 'right'] };
|
|
13
|
+
const paddingEnum = { name: 'padding', type: 'enum', options: ['sm', 'md', 'lg'] };
|
|
14
|
+
const gapEnum = { name: 'gap', type: 'enum', options: ['sm', 'md', 'lg'] };
|
|
14
15
|
export const COMPONENTS = {
|
|
15
16
|
// Text Components
|
|
16
17
|
Heading: {
|
|
17
18
|
name: 'Heading',
|
|
18
19
|
description: 'Large heading/title text',
|
|
19
|
-
properties:
|
|
20
|
+
properties: {
|
|
21
|
+
text: { name: 'text', type: 'string' },
|
|
22
|
+
},
|
|
20
23
|
example: 'component Heading text: "Users"',
|
|
21
24
|
},
|
|
22
25
|
Text: {
|
|
23
26
|
name: 'Text',
|
|
24
27
|
description: 'Regular paragraph text',
|
|
25
|
-
properties:
|
|
28
|
+
properties: {
|
|
29
|
+
content: { name: 'content', type: 'string' },
|
|
30
|
+
},
|
|
26
31
|
example: 'component Text content: "Lorem ipsum dolor sit amet..."',
|
|
27
32
|
},
|
|
28
33
|
Label: {
|
|
29
34
|
name: 'Label',
|
|
30
35
|
description: 'Small label text',
|
|
31
|
-
properties:
|
|
36
|
+
properties: {
|
|
37
|
+
text: { name: 'text', type: 'string' },
|
|
38
|
+
},
|
|
32
39
|
example: 'component Label text: "Field label"',
|
|
33
40
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
properties: ['label', 'placeholder'],
|
|
45
|
-
example: 'component Input label: "Username" placeholder: "Enter name..."',
|
|
46
|
-
},
|
|
47
|
-
Textarea: {
|
|
48
|
-
name: 'Textarea',
|
|
49
|
-
description: 'Multi-line text input',
|
|
50
|
-
properties: ['label', 'placeholder', 'rows'],
|
|
51
|
-
example: 'component Textarea label: "Description" rows: 6',
|
|
41
|
+
// Visual Components
|
|
42
|
+
Icon: {
|
|
43
|
+
name: 'Icon',
|
|
44
|
+
description: 'Renders an icon from a specified set.',
|
|
45
|
+
properties: {
|
|
46
|
+
icon: { name: 'icon', type: 'string' }, // Treated as string as requested
|
|
47
|
+
size: sizeEnum,
|
|
48
|
+
color: colorEnum,
|
|
49
|
+
},
|
|
50
|
+
example: 'component Icon icon: "home" size: md color: primary',
|
|
52
51
|
},
|
|
53
|
-
|
|
54
|
-
name: '
|
|
55
|
-
description: '
|
|
56
|
-
properties:
|
|
57
|
-
|
|
52
|
+
Image: {
|
|
53
|
+
name: 'Image',
|
|
54
|
+
description: 'Displays an image.',
|
|
55
|
+
properties: {
|
|
56
|
+
src: { name: 'src', type: 'string' },
|
|
57
|
+
alt: { name: 'alt', type: 'string' },
|
|
58
|
+
width: { name: 'width', type: 'number' },
|
|
59
|
+
height: { name: 'height', type: 'number' },
|
|
60
|
+
},
|
|
61
|
+
example: 'component Image src: "/path/to/image.png" alt: "An example image"',
|
|
58
62
|
},
|
|
59
|
-
|
|
60
|
-
name: '
|
|
61
|
-
description: '
|
|
62
|
-
properties:
|
|
63
|
-
|
|
63
|
+
Avatar: {
|
|
64
|
+
name: 'Avatar',
|
|
65
|
+
description: 'Represents a user with an image or initials.',
|
|
66
|
+
properties: {
|
|
67
|
+
// Properties not defined as per user request
|
|
68
|
+
},
|
|
69
|
+
example: 'component Avatar src: "/path/to/user.png"',
|
|
64
70
|
},
|
|
65
|
-
|
|
66
|
-
name: '
|
|
67
|
-
description: '
|
|
68
|
-
properties:
|
|
69
|
-
|
|
71
|
+
Spinner: {
|
|
72
|
+
name: 'Spinner',
|
|
73
|
+
description: 'Indicates a loading state.',
|
|
74
|
+
properties: {
|
|
75
|
+
size: sizeEnum,
|
|
76
|
+
},
|
|
77
|
+
example: 'component Spinner size: lg',
|
|
70
78
|
},
|
|
71
|
-
|
|
72
|
-
name: '
|
|
73
|
-
description: '
|
|
74
|
-
properties:
|
|
75
|
-
|
|
79
|
+
Divider: {
|
|
80
|
+
name: 'Divider',
|
|
81
|
+
description: 'A horizontal or vertical line to separate content.',
|
|
82
|
+
properties: {
|
|
83
|
+
orientation: orientationEnum,
|
|
84
|
+
},
|
|
85
|
+
example: 'component Divider orientation: horizontal',
|
|
76
86
|
},
|
|
77
|
-
//
|
|
87
|
+
// Interactive Components
|
|
78
88
|
Button: {
|
|
79
89
|
name: 'Button',
|
|
80
|
-
description: '
|
|
81
|
-
properties:
|
|
82
|
-
|
|
83
|
-
variant:
|
|
90
|
+
description: 'A clickable button.',
|
|
91
|
+
properties: {
|
|
92
|
+
text: { name: 'text', type: 'string' },
|
|
93
|
+
variant: variantEnum,
|
|
94
|
+
icon: { name: 'icon', type: 'string' }, // Treated as string
|
|
95
|
+
onClick: { name: 'onClick', type: 'string' }, // Should be an action/event handler
|
|
84
96
|
},
|
|
85
|
-
example: 'component Button text: "
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
name: '
|
|
89
|
-
description: '
|
|
90
|
-
properties:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
example: 'component Button text: "Click me" variant: primary',
|
|
98
|
+
},
|
|
99
|
+
Link: {
|
|
100
|
+
name: 'Link',
|
|
101
|
+
description: 'A hyperlink.',
|
|
102
|
+
properties: {
|
|
103
|
+
text: { name: 'text', type: 'string' },
|
|
104
|
+
href: { name: 'href', type: 'string' },
|
|
105
|
+
target: { name: 'target', type: 'string' },
|
|
94
106
|
},
|
|
95
|
-
example: 'component
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
description: 'Top navigation bar',
|
|
107
|
-
properties: ['title'],
|
|
108
|
-
example: 'component Topbar title: "Dashboard"',
|
|
109
|
-
},
|
|
110
|
-
Breadcrumbs: {
|
|
111
|
-
name: 'Breadcrumbs',
|
|
112
|
-
description: 'Breadcrumb navigation trail',
|
|
113
|
-
properties: ['items'],
|
|
114
|
-
example: 'component Breadcrumbs items: ["Home", "Users", "Detail"]',
|
|
115
|
-
},
|
|
116
|
-
Tabs: {
|
|
117
|
-
name: 'Tabs',
|
|
118
|
-
description: 'Tabbed content switcher',
|
|
119
|
-
properties: ['items', 'activeIndex'],
|
|
120
|
-
example: 'component Tabs items: ["Profile", "Settings", "Logs"]',
|
|
107
|
+
example: 'component Link text: "Go to Google" href: "https://google.com"',
|
|
108
|
+
},
|
|
109
|
+
TextInput: {
|
|
110
|
+
name: 'TextInput',
|
|
111
|
+
description: 'An input field for text.',
|
|
112
|
+
properties: {
|
|
113
|
+
placeholder: { name: 'placeholder', type: 'string' },
|
|
114
|
+
value: { name: 'value', type: 'string' },
|
|
115
|
+
label: { name: 'label', type: 'string' },
|
|
116
|
+
},
|
|
117
|
+
example: 'component TextInput label: "Name" placeholder: "Enter your name"',
|
|
121
118
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
Checkbox: {
|
|
120
|
+
name: 'Checkbox',
|
|
121
|
+
description: 'A checkbox input.',
|
|
122
|
+
properties: {
|
|
123
|
+
label: { name: 'label', type: 'string' },
|
|
124
|
+
checked: { name: 'checked', type: 'boolean' },
|
|
125
|
+
},
|
|
126
|
+
example: 'component Checkbox label: "I agree" checked: true',
|
|
128
127
|
},
|
|
129
|
-
|
|
130
|
-
name: '
|
|
131
|
-
description: '
|
|
132
|
-
properties:
|
|
133
|
-
|
|
128
|
+
Switch: {
|
|
129
|
+
name: 'Switch',
|
|
130
|
+
description: 'A toggle switch.',
|
|
131
|
+
properties: {
|
|
132
|
+
checked: { name: 'checked', type: 'boolean' },
|
|
133
|
+
},
|
|
134
|
+
example: 'component Switch checked: false',
|
|
134
135
|
},
|
|
135
136
|
// Container Components
|
|
136
|
-
|
|
137
|
-
name: '
|
|
138
|
-
description: '
|
|
139
|
-
properties:
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
Card: {
|
|
138
|
+
name: 'Card',
|
|
139
|
+
description: 'A container with a visual border, often with a title.',
|
|
140
|
+
properties: {
|
|
141
|
+
title: { name: 'title', type: 'string' },
|
|
142
|
+
subtitle: { name: 'subtitle', type: 'string' },
|
|
142
143
|
},
|
|
143
|
-
example: 'component
|
|
144
|
+
example: 'component Card title: "My Card" { ... }',
|
|
144
145
|
},
|
|
145
146
|
Alert: {
|
|
146
147
|
name: 'Alert',
|
|
147
|
-
description: '
|
|
148
|
-
properties:
|
|
149
|
-
|
|
150
|
-
|
|
148
|
+
description: 'A message box to draw attention.',
|
|
149
|
+
properties: {
|
|
150
|
+
message: { name: 'message', type: 'string' },
|
|
151
|
+
type: { name: 'type', type: 'color', options: colorEnum.options },
|
|
151
152
|
},
|
|
152
|
-
example: 'component Alert
|
|
153
|
+
example: 'component Alert type: danger message: "An error occurred."',
|
|
153
154
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
propertyValues: {
|
|
160
|
-
size: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
161
|
-
},
|
|
162
|
-
example: 'component Icon type: "home" size: "md"',
|
|
163
|
-
},
|
|
164
|
-
Divider: {
|
|
165
|
-
name: 'Divider',
|
|
166
|
-
description: 'Horizontal divider line',
|
|
167
|
-
properties: [],
|
|
168
|
-
example: 'component Divider',
|
|
169
|
-
},
|
|
170
|
-
Image: {
|
|
171
|
-
name: 'Image',
|
|
172
|
-
description: 'Image placeholder or actual image',
|
|
173
|
-
properties: ['src', 'alt', 'height', 'placeholder'],
|
|
174
|
-
propertyValues: {
|
|
175
|
-
placeholder: ['square', 'landscape', 'avatar', 'icon'],
|
|
176
|
-
},
|
|
177
|
-
example: 'component Image placeholder: "landscape" height: 300',
|
|
178
|
-
},
|
|
179
|
-
ChartPlaceholder: {
|
|
180
|
-
name: 'ChartPlaceholder',
|
|
181
|
-
description: 'Chart visualization placeholder',
|
|
182
|
-
properties: ['type', 'height'],
|
|
183
|
-
propertyValues: {
|
|
184
|
-
type: ['bar', 'line', 'pie'],
|
|
155
|
+
Table: {
|
|
156
|
+
name: 'Table',
|
|
157
|
+
description: 'Displays data in a tabular format.',
|
|
158
|
+
properties: {
|
|
159
|
+
// Properties not defined as per user request
|
|
185
160
|
},
|
|
186
|
-
example: 'component
|
|
187
|
-
},
|
|
188
|
-
Sidebar: {
|
|
189
|
-
name: 'Sidebar',
|
|
190
|
-
description: 'Sidebar navigation panel',
|
|
191
|
-
properties: ['title', 'items'],
|
|
192
|
-
example: 'component Sidebar title: "Navigation" items: ["Dashboard", "Users"]',
|
|
193
|
-
},
|
|
194
|
-
// Feedback Components
|
|
195
|
-
Modal: {
|
|
196
|
-
name: 'Modal',
|
|
197
|
-
description: 'Modal dialog window',
|
|
198
|
-
properties: ['title', 'content'],
|
|
199
|
-
example: 'component Modal title: "Confirm?" content: "Are you sure?"',
|
|
200
|
-
},
|
|
201
|
-
StatCard: {
|
|
202
|
-
name: 'StatCard',
|
|
203
|
-
description: 'Statistic card showing metric value',
|
|
204
|
-
properties: ['title', 'value'],
|
|
205
|
-
example: 'component StatCard title: "Total Users" value: "1,234"',
|
|
206
|
-
},
|
|
207
|
-
Spinner: {
|
|
208
|
-
name: 'Spinner',
|
|
209
|
-
description: 'Loading spinner/indicator',
|
|
210
|
-
properties: [],
|
|
211
|
-
example: 'component Spinner',
|
|
161
|
+
example: 'component Table data: [...] { ... }',
|
|
212
162
|
},
|
|
213
163
|
};
|
|
214
164
|
export const LAYOUTS = {
|
|
215
165
|
stack: {
|
|
216
166
|
name: 'stack',
|
|
217
|
-
description: '
|
|
218
|
-
properties:
|
|
219
|
-
|
|
220
|
-
|
|
167
|
+
description: 'Lays out items in a single line (horizontal or vertical).',
|
|
168
|
+
properties: {
|
|
169
|
+
direction: { name: 'direction', type: 'enum', options: ['horizontal', 'vertical'] },
|
|
170
|
+
align: alignEnum,
|
|
171
|
+
padding: paddingEnum,
|
|
172
|
+
gap: gapEnum,
|
|
173
|
+
},
|
|
174
|
+
example: 'layout stack(direction: horizontal, gap: md) { ... }',
|
|
221
175
|
},
|
|
222
176
|
grid: {
|
|
223
177
|
name: 'grid',
|
|
224
|
-
description: '
|
|
225
|
-
properties:
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
description: 'Split layout - sidebar + main content',
|
|
232
|
-
properties: ['sidebar', 'gap', 'padding'],
|
|
233
|
-
example: 'layout split(sidebar: 260, gap: md) { ... }',
|
|
234
|
-
requiredProperties: ['sidebar'],
|
|
235
|
-
},
|
|
236
|
-
panel: {
|
|
237
|
-
name: 'panel',
|
|
238
|
-
description: 'Panel layout - container with border and padding',
|
|
239
|
-
properties: ['padding', 'background', 'radius', 'border'],
|
|
240
|
-
example: 'layout panel(padding: md, background: white) { ... }',
|
|
241
|
-
requiredProperties: [],
|
|
242
|
-
},
|
|
243
|
-
card: {
|
|
244
|
-
name: 'card',
|
|
245
|
-
description: 'Card layout - flexible vertical container',
|
|
246
|
-
properties: ['padding', 'gap', 'radius', 'border', 'background'],
|
|
247
|
-
example: 'layout card(padding: md, gap: md, radius: md) { ... }',
|
|
248
|
-
requiredProperties: [],
|
|
178
|
+
description: 'Lays out items in a grid.',
|
|
179
|
+
properties: {
|
|
180
|
+
columns: { name: 'columns', type: 'number' },
|
|
181
|
+
gap: gapEnum,
|
|
182
|
+
align: alignEnum,
|
|
183
|
+
},
|
|
184
|
+
example: 'layout grid(columns: 3, gap: lg) { ... }',
|
|
249
185
|
},
|
|
250
186
|
};
|
|
251
|
-
// Property values for specific properties (layout-related)
|
|
252
187
|
export const PROPERTY_VALUES = {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
188
|
+
size: sizeEnum.options,
|
|
189
|
+
color: colorEnum.options,
|
|
190
|
+
variant: variantEnum.options,
|
|
191
|
+
orientation: orientationEnum.options,
|
|
192
|
+
align: alignEnum.options,
|
|
193
|
+
padding: paddingEnum.options,
|
|
194
|
+
gap: gapEnum.options,
|
|
195
|
+
direction: ['horizontal', 'vertical'],
|
|
261
196
|
};
|
|
262
|
-
// Keywords
|
|
263
197
|
export const KEYWORDS = {
|
|
264
198
|
topLevel: ['project', 'theme', 'colors', 'mocks', 'define'],
|
|
265
199
|
screen: ['screen'],
|
package/dist/components.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA0BH,4BAA4B;AAC5B,MAAM,QAAQ,GAAqB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;AAC/F,MAAM,SAAS,GAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;AACrI,MAAM,WAAW,GAAqB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC;AACxI,MAAM,eAAe,GAAqB,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE,CAAC;AACrH,MAAM,SAAS,GAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,EA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,GAAG,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,CAAC;IAClE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,MAAM,EACrB,eAAe,GAAE,GAAG,CAAC,MAAM,CAAa,GACvC,cAAc,EAAE,CA6BlB;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAS1E"}
|
|
@@ -111,22 +111,21 @@ export function getComponentPropertiesForCompletion(componentName, alreadyDeclar
|
|
|
111
111
|
if (!component)
|
|
112
112
|
return [];
|
|
113
113
|
const items = [];
|
|
114
|
-
const properties = component.properties || [];
|
|
115
|
-
for (const
|
|
114
|
+
const properties = Object.values(component.properties) || [];
|
|
115
|
+
for (const prop of properties) {
|
|
116
116
|
// Skip if this property is already declared
|
|
117
|
-
if (alreadyDeclared.has(
|
|
117
|
+
if (alreadyDeclared.has(prop.name)) {
|
|
118
118
|
continue;
|
|
119
119
|
}
|
|
120
120
|
const item = {
|
|
121
|
-
label:
|
|
121
|
+
label: prop.name,
|
|
122
122
|
kind: 'Property',
|
|
123
123
|
detail: `Property of ${componentName}`,
|
|
124
|
-
insertText: `${
|
|
124
|
+
insertText: `${prop.name}: `,
|
|
125
125
|
};
|
|
126
126
|
// Add property values if available
|
|
127
|
-
if (
|
|
128
|
-
|
|
129
|
-
item.insertText = `${propName}: ${values.length === 1 ? values[0] : ''}`;
|
|
127
|
+
if (prop.type === 'enum' && prop.options && prop.options.length > 0) {
|
|
128
|
+
item.insertText = `${prop.name}: ${prop.options.length === 1 ? prop.options[0] : ''}`;
|
|
130
129
|
}
|
|
131
130
|
items.push(item);
|
|
132
131
|
}
|
|
@@ -139,7 +138,7 @@ export function getComponentPropertiesForCompletion(componentName, alreadyDeclar
|
|
|
139
138
|
export function getAlreadyDeclaredProperties(lineText) {
|
|
140
139
|
const declaredProps = new Set();
|
|
141
140
|
const matches = lineText.matchAll(/(\w+):\s*/g);
|
|
142
|
-
for (const match of matches) {
|
|
141
|
+
for (const match of Array.from(matches)) {
|
|
143
142
|
declaredProps.add(match[1]);
|
|
144
143
|
}
|
|
145
144
|
return declaredProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-detection.js","sourceRoot":"","sources":["../src/context-detection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAW1C;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,gBAAwB;IACrD,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;IAE7F,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,uDAAuD;IACvD,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,gBAAgB,GAAG,CAAC,CAAC;IACzB,IAAI,gBAAgB,GAAG,CAAC,CAAC;IAEzB,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,SAAS,GAAG,KAAK,CAAC;IAEtB,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,iBAAiB;QACjB,IAAI,IAAI,CAAC,KAAK,CAAC,sBAAsB,CAAC,EAAE,CAAC;YACvC,UAAU,GAAG,IAAI,CAAC;QACpB,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,CAAC,uCAAuC,CAAC,EAAE,CAAC;YACxD,SAAS,GAAG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S;QACX,CAAC;QAED,MAAM,IAAI,GAAmB;YAC3B,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,eAAe,aAAa,EAAE;YACtC,UAAU,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI;SAC7B,CAAC;QAEF,mCAAmC;QACnC,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpE,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACxF,CAAC;QAED,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAAC,QAAgB;IAC3D,MAAM,aAAa,GAAG,IAAI,GAAG,EAAU,CAAC;IACxC,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAEhD,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACxC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentation.d.ts","sourceRoot":"","sources":["../src/documentation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"documentation.d.ts","sourceRoot":"","sources":["../src/documentation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAsB9E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA2BxE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAiCnG;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAoBtE;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC"}
|
package/dist/documentation.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Wire DSL Documentation Data
|
|
3
3
|
* Provides detailed hover documentation for components, layouts, and properties
|
|
4
4
|
*/
|
|
5
|
-
import { COMPONENTS, LAYOUTS
|
|
5
|
+
import { COMPONENTS, LAYOUTS } from './components';
|
|
6
6
|
/**
|
|
7
7
|
* Generate markdown documentation for a component
|
|
8
8
|
*/
|
|
@@ -12,12 +12,13 @@ export function getComponentDocumentation(componentName) {
|
|
|
12
12
|
return null;
|
|
13
13
|
let doc = `## ${component.name}\n\n`;
|
|
14
14
|
doc += `${component.description}\n\n`;
|
|
15
|
-
|
|
15
|
+
const properties = Object.values(component.properties);
|
|
16
|
+
if (properties.length > 0) {
|
|
16
17
|
doc += `**Properties:**\n`;
|
|
17
|
-
|
|
18
|
-
const propDoc = getPropertyDocumentation(componentName, prop);
|
|
19
|
-
const typeInfo = propDoc ? ` - ${propDoc}` :
|
|
20
|
-
doc += `- \`${prop}\`${typeInfo}\n`;
|
|
18
|
+
properties.forEach((prop) => {
|
|
19
|
+
const propDoc = getPropertyDocumentation(componentName, prop.name);
|
|
20
|
+
const typeInfo = propDoc ? ` - ${propDoc}` : `(${prop.type})`;
|
|
21
|
+
doc += `- \`${prop.name}\`${typeInfo}\n`;
|
|
21
22
|
});
|
|
22
23
|
doc += '\n';
|
|
23
24
|
}
|
|
@@ -34,12 +35,13 @@ export function getLayoutDocumentation(layoutName) {
|
|
|
34
35
|
return null;
|
|
35
36
|
let doc = `## ${layout.name.toUpperCase()} Layout\n\n`;
|
|
36
37
|
doc += `${layout.description}\n\n`;
|
|
37
|
-
|
|
38
|
+
const properties = Object.values(layout.properties);
|
|
39
|
+
if (properties.length > 0) {
|
|
38
40
|
doc += `**Properties:**\n`;
|
|
39
|
-
|
|
40
|
-
const values =
|
|
41
|
-
const valuesInfo = values ? ` - Values: \`${values.join(' | ')}\`` :
|
|
42
|
-
doc += `- \`${prop}\`${valuesInfo}\n`;
|
|
41
|
+
properties.forEach((prop) => {
|
|
42
|
+
const values = prop.options;
|
|
43
|
+
const valuesInfo = values ? ` - Values: \`${values.join(' | ')}\`` : `(${prop.type})`;
|
|
44
|
+
doc += `- \`${prop.name}\`${valuesInfo}\n`;
|
|
43
45
|
});
|
|
44
46
|
doc += '\n';
|
|
45
47
|
}
|
|
@@ -58,12 +60,12 @@ export function getPropertyDocumentation(componentName, propertyName) {
|
|
|
58
60
|
const component = COMPONENTS[componentName];
|
|
59
61
|
if (!component)
|
|
60
62
|
return null;
|
|
61
|
-
|
|
63
|
+
const propDef = component.properties[propertyName];
|
|
64
|
+
if (!propDef)
|
|
62
65
|
return null;
|
|
63
66
|
// Check if property has enum values
|
|
64
|
-
if (
|
|
65
|
-
|
|
66
|
-
return `Values: \`${values.join(' | ')}\``;
|
|
67
|
+
if (propDef.type === 'enum' && propDef.options) {
|
|
68
|
+
return `Values: \`${propDef.options.join(' | ')}\``;
|
|
67
69
|
}
|
|
68
70
|
// Return generic property documentation based on name
|
|
69
71
|
const propertyDocs = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentation.js","sourceRoot":"","sources":["../src/documentation.ts"],"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;QAC9E,SAAS,EAAE,wCAAwC;QACnD,KAAK,EAAE,kEAAkE;QACzE,MAAM,EAAE,4BAA4B;QACpC,KAAK,EAAE,iCAAiC;QACxC,KAAK,EAAE,+CAA+C;QACtD,IAAI,EAAE,uCAAuC;QAC7C,KAAK,EAAE,uCAAuC;QAC9C,KAAK,EAAE,kDAAkD;QACzD,IAAI,EAAE,2CAA2C;KAClD,CAAC;IAEF,OAAO,WAAW,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,yBAAyB;IACzB,sBAAsB;IACtB,wBAAwB;IACxB,uBAAuB;CACxB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Wire DSL Language Support
|
|
3
3
|
* Shared language definitions, syntax, and code intelligence for Monaco, VS Code, and other editors
|
|
4
4
|
*/
|
|
5
|
-
export { COMPONENTS, LAYOUTS, PROPERTY_VALUES, KEYWORDS, type ComponentMetadata, type LayoutMetadata, } from './components';
|
|
5
|
+
export { COMPONENTS, LAYOUTS, PROPERTY_VALUES, KEYWORDS, type ComponentMetadata, type LayoutMetadata, type PropertyMetadata, } from './components';
|
|
6
6
|
export { getComponentDocumentation, getLayoutDocumentation, getPropertyDocumentation, getKeywordDocumentation, } from './documentation';
|
|
7
7
|
export { extractComponentDefinitions, getTokenAtPosition, isComponentReference, extractComponentReferences, extractScreenDefinitions, getPositionOfDefinition, findComponentReferences, type ComponentDefinition, } from './document-parser';
|
|
8
8
|
export { determineScope, detectComponentContext, getComponentPropertiesForCompletion as getAvailableProperties, getAlreadyDeclaredProperties, type DocumentScope, type CompletionItem, } from './context-detection';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EACL,UAAU,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Q,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,eAAO,MAAM,YAAY,EAAE,iBAAiB,EA2C3C,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,GAAE,MAAW,GAAG,oBAAoB,EAAE,CAW1E"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0BAA0B;AAC1B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEpD,6BAA6B;AAC7B,OAAO,EACL,UAAU,EACV,OAAO,EACP,eAAe,EACf,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0BAA0B;AAC1B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEpD,6BAA6B;AAC7B,OAAO,EACL,UAAU,EACV,OAAO,EACP,eAAe,EACf,QAAQ,GAIT,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,2BAA2B,EAC3B,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,GAExB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,mCAAmC,IAAI,sBAAsB,EAC7D,4BAA4B,GAG7B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,mCAAmC,EACnC,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,E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3B,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QACnD,IAAI;QACJ,IAAI,EAAE,WAAoB;QAC1B,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,cAAc,IAAI,EAAE;KACtD,CAAC,CAAC;CACJ,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,SAAiB,EAAE;IAChD,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC;IACzC,OAAO,YAAY;SAChB,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;SAC3D,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACV,KAAK,EAAE,EAAE,CAAC,IAAI;QACd,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;QACnD,MAAM,EAAE,EAAE,CAAC,WAAW;QACtB,aAAa,EAAE,EAAE,CAAC,WAAW;QAC7B,QAAQ,EAAE,EAAE,CAAC,IAAI;KAClB,CAAC,CAAC,CAAC;AACR,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wire-dsl/language-support",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Wire DSL language definitions for Monaco, VS Code, and other editors. Keywords, components, properties, autocompletion, grammar, and document parsing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|