@wire-dsl/language-support 0.2.3 → 0.3.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.
Files changed (41) hide show
  1. package/INTEGRATION-GUIDE.md +50 -194
  2. package/README.md +39 -33
  3. package/dist/completions.d.ts.map +1 -1
  4. package/dist/completions.js +8 -1
  5. package/dist/completions.js.map +1 -1
  6. package/dist/components.d.ts +0 -6
  7. package/dist/components.d.ts.map +1 -1
  8. package/dist/components.js +80 -35
  9. package/dist/components.js.map +1 -1
  10. package/dist/context-detection.js +2 -2
  11. package/dist/context-detection.js.map +1 -1
  12. package/dist/document-parser.d.ts +12 -0
  13. package/dist/document-parser.d.ts.map +1 -1
  14. package/dist/document-parser.js +49 -0
  15. package/dist/document-parser.js.map +1 -1
  16. package/dist/documentation.js +1 -1
  17. package/dist/documentation.js.map +1 -1
  18. package/dist/icon-names.d.ts +8 -0
  19. package/dist/icon-names.d.ts.map +1 -0
  20. package/dist/icon-names.js +295 -0
  21. package/dist/icon-names.js.map +1 -0
  22. package/dist/index.d.ts +6 -5
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +7 -6
  25. package/dist/index.js.map +1 -1
  26. package/dist-cjs/completions.js +394 -0
  27. package/dist-cjs/completions.js.map +1 -0
  28. package/dist-cjs/components.js +495 -0
  29. package/dist-cjs/components.js.map +1 -0
  30. package/dist-cjs/context-detection.js +153 -0
  31. package/dist-cjs/context-detection.js.map +1 -0
  32. package/dist-cjs/document-parser.js +323 -0
  33. package/dist-cjs/document-parser.js.map +1 -0
  34. package/dist-cjs/documentation.js +133 -0
  35. package/dist-cjs/documentation.js.map +1 -0
  36. package/dist-cjs/icon-names.js +298 -0
  37. package/dist-cjs/icon-names.js.map +1 -0
  38. package/dist-cjs/index.js +114 -0
  39. package/dist-cjs/index.js.map +1 -0
  40. package/dist-cjs/package.json +1 -0
  41. package/package.json +14 -3
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Canonical icon names supported by Wire DSL renderers.
3
+ * Synced from packages/engine/src/renderer/icons/iconLibrary.ts
4
+ */
5
+ export declare const ICON_NAMES: readonly ["activity", "airplay", "alert-circle", "alert-octagon", "alert-triangle", "align-center", "align-justify", "align-left", "align-right", "anchor", "aperture", "archive", "arrow-down-circle", "arrow-down-left", "arrow-down-right", "arrow-down", "arrow-left-circle", "arrow-left", "arrow-right-circle", "arrow-right", "arrow-up-circle", "arrow-up-left", "arrow-up-right", "arrow-up", "at-sign", "award", "bar-chart-2", "bar-chart", "battery-charging", "battery", "bell-off", "bell", "bluetooth", "bold", "book-open", "book", "bookmark", "box", "briefcase", "calendar", "camera-off", "camera", "cast", "check-circle", "check-square", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevrons-down", "chevrons-left", "chevrons-right", "chevrons-up", "chrome", "circle", "clipboard", "clock", "cloud-drizzle", "cloud-lightning", "cloud-off", "cloud-rain", "cloud-snow", "cloud", "code", "codepen", "codesandbox", "coffee", "columns", "command", "compass", "copy", "corner-down-left", "corner-down-right", "corner-left-down", "corner-left-up", "corner-right-down", "corner-right-up", "corner-up-left", "corner-up-right", "cpu", "credit-card", "crop", "crosshair", "database", "delete", "disc", "divide-circle", "divide-square", "divide", "dollar-sign", "download-cloud", "download", "dribbble", "droplet", "edit-2", "edit-3", "edit", "external-link", "eye-off", "eye", "facebook", "fast-forward", "feather", "figma", "file-minus", "file-plus", "file-text", "file", "film", "filter", "flag", "folder-minus", "folder-plus", "folder", "framer", "frown", "gift", "git-branch", "git-commit", "git-merge", "git-pull-request", "github", "gitlab", "globe", "grid", "hard-drive", "hash", "headphones", "heart", "help-circle", "hexagon", "home", "image", "inbox", "info", "instagram", "italic", "key", "layers", "layout", "life-buoy", "link-2", "link", "linkedin", "list", "loader", "lock", "log-in", "log-out", "mail", "map-pin", "map", "maximize-2", "maximize", "meh", "menu", "message-circle", "message-square", "mic-off", "mic", "minimize-2", "minimize", "minus-circle", "minus-square", "minus", "monitor", "moon", "more-horizontal", "more-vertical", "mouse-pointer", "move", "music", "navigation-2", "navigation", "octagon", "package", "paperclip", "pause-circle", "pause", "pen-tool", "percent", "phone-call", "phone-forwarded", "phone-incoming", "phone-missed", "phone-off", "phone-outgoing", "phone", "pie-chart", "play-circle", "play", "plus-circle", "plus-square", "plus", "pocket", "power", "printer", "radio", "refresh-ccw", "refresh-cw", "repeat", "rewind", "rotate-ccw", "rotate-cw", "rss", "save", "scissors", "search", "send", "server", "settings", "share-2", "share", "shield-off", "shield", "shopping-bag", "shopping-cart", "shuffle", "sidebar", "skip-back", "skip-forward", "slack", "slash", "sliders", "smartphone", "smile", "speaker", "square", "star", "stop-circle", "sun", "sunrise", "sunset", "table", "tablet", "tag", "target", "terminal", "thermometer", "thumbs-down", "thumbs-up", "toggle-left", "toggle-right", "tool", "trash-2", "trash", "trello", "trending-down", "trending-up", "triangle", "truck", "tv", "twitch", "twitter", "type", "umbrella", "underline", "unlock", "upload-cloud", "upload", "user-check", "user-minus", "user-plus", "user-x", "user", "users", "video-off", "video", "voicemail", "volume-1", "volume-2", "volume-x", "volume", "watch", "wifi-off", "wifi", "wind", "x-circle", "x-octagon", "x-square", "x", "youtube", "zap-off", "zap", "zoom-in", "zoom-out"];
6
+ export type IconName = (typeof ICON_NAMES)[number];
7
+ export declare const ICON_NAME_OPTIONS: string[];
8
+ //# sourceMappingURL=icon-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-names.d.ts","sourceRoot":"","sources":["../src/icon-names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,UAAU,o8GAgSb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,iBAAiB,EAAE,MAAM,EAAoB,CAAC"}
@@ -0,0 +1,295 @@
1
+ /**
2
+ * Canonical icon names supported by Wire DSL renderers.
3
+ * Synced from packages/engine/src/renderer/icons/iconLibrary.ts
4
+ */
5
+ export const ICON_NAMES = [
6
+ 'activity',
7
+ 'airplay',
8
+ 'alert-circle',
9
+ 'alert-octagon',
10
+ 'alert-triangle',
11
+ 'align-center',
12
+ 'align-justify',
13
+ 'align-left',
14
+ 'align-right',
15
+ 'anchor',
16
+ 'aperture',
17
+ 'archive',
18
+ 'arrow-down-circle',
19
+ 'arrow-down-left',
20
+ 'arrow-down-right',
21
+ 'arrow-down',
22
+ 'arrow-left-circle',
23
+ 'arrow-left',
24
+ 'arrow-right-circle',
25
+ 'arrow-right',
26
+ 'arrow-up-circle',
27
+ 'arrow-up-left',
28
+ 'arrow-up-right',
29
+ 'arrow-up',
30
+ 'at-sign',
31
+ 'award',
32
+ 'bar-chart-2',
33
+ 'bar-chart',
34
+ 'battery-charging',
35
+ 'battery',
36
+ 'bell-off',
37
+ 'bell',
38
+ 'bluetooth',
39
+ 'bold',
40
+ 'book-open',
41
+ 'book',
42
+ 'bookmark',
43
+ 'box',
44
+ 'briefcase',
45
+ 'calendar',
46
+ 'camera-off',
47
+ 'camera',
48
+ 'cast',
49
+ 'check-circle',
50
+ 'check-square',
51
+ 'check',
52
+ 'chevron-down',
53
+ 'chevron-left',
54
+ 'chevron-right',
55
+ 'chevron-up',
56
+ 'chevrons-down',
57
+ 'chevrons-left',
58
+ 'chevrons-right',
59
+ 'chevrons-up',
60
+ 'chrome',
61
+ 'circle',
62
+ 'clipboard',
63
+ 'clock',
64
+ 'cloud-drizzle',
65
+ 'cloud-lightning',
66
+ 'cloud-off',
67
+ 'cloud-rain',
68
+ 'cloud-snow',
69
+ 'cloud',
70
+ 'code',
71
+ 'codepen',
72
+ 'codesandbox',
73
+ 'coffee',
74
+ 'columns',
75
+ 'command',
76
+ 'compass',
77
+ 'copy',
78
+ 'corner-down-left',
79
+ 'corner-down-right',
80
+ 'corner-left-down',
81
+ 'corner-left-up',
82
+ 'corner-right-down',
83
+ 'corner-right-up',
84
+ 'corner-up-left',
85
+ 'corner-up-right',
86
+ 'cpu',
87
+ 'credit-card',
88
+ 'crop',
89
+ 'crosshair',
90
+ 'database',
91
+ 'delete',
92
+ 'disc',
93
+ 'divide-circle',
94
+ 'divide-square',
95
+ 'divide',
96
+ 'dollar-sign',
97
+ 'download-cloud',
98
+ 'download',
99
+ 'dribbble',
100
+ 'droplet',
101
+ 'edit-2',
102
+ 'edit-3',
103
+ 'edit',
104
+ 'external-link',
105
+ 'eye-off',
106
+ 'eye',
107
+ 'facebook',
108
+ 'fast-forward',
109
+ 'feather',
110
+ 'figma',
111
+ 'file-minus',
112
+ 'file-plus',
113
+ 'file-text',
114
+ 'file',
115
+ 'film',
116
+ 'filter',
117
+ 'flag',
118
+ 'folder-minus',
119
+ 'folder-plus',
120
+ 'folder',
121
+ 'framer',
122
+ 'frown',
123
+ 'gift',
124
+ 'git-branch',
125
+ 'git-commit',
126
+ 'git-merge',
127
+ 'git-pull-request',
128
+ 'github',
129
+ 'gitlab',
130
+ 'globe',
131
+ 'grid',
132
+ 'hard-drive',
133
+ 'hash',
134
+ 'headphones',
135
+ 'heart',
136
+ 'help-circle',
137
+ 'hexagon',
138
+ 'home',
139
+ 'image',
140
+ 'inbox',
141
+ 'info',
142
+ 'instagram',
143
+ 'italic',
144
+ 'key',
145
+ 'layers',
146
+ 'layout',
147
+ 'life-buoy',
148
+ 'link-2',
149
+ 'link',
150
+ 'linkedin',
151
+ 'list',
152
+ 'loader',
153
+ 'lock',
154
+ 'log-in',
155
+ 'log-out',
156
+ 'mail',
157
+ 'map-pin',
158
+ 'map',
159
+ 'maximize-2',
160
+ 'maximize',
161
+ 'meh',
162
+ 'menu',
163
+ 'message-circle',
164
+ 'message-square',
165
+ 'mic-off',
166
+ 'mic',
167
+ 'minimize-2',
168
+ 'minimize',
169
+ 'minus-circle',
170
+ 'minus-square',
171
+ 'minus',
172
+ 'monitor',
173
+ 'moon',
174
+ 'more-horizontal',
175
+ 'more-vertical',
176
+ 'mouse-pointer',
177
+ 'move',
178
+ 'music',
179
+ 'navigation-2',
180
+ 'navigation',
181
+ 'octagon',
182
+ 'package',
183
+ 'paperclip',
184
+ 'pause-circle',
185
+ 'pause',
186
+ 'pen-tool',
187
+ 'percent',
188
+ 'phone-call',
189
+ 'phone-forwarded',
190
+ 'phone-incoming',
191
+ 'phone-missed',
192
+ 'phone-off',
193
+ 'phone-outgoing',
194
+ 'phone',
195
+ 'pie-chart',
196
+ 'play-circle',
197
+ 'play',
198
+ 'plus-circle',
199
+ 'plus-square',
200
+ 'plus',
201
+ 'pocket',
202
+ 'power',
203
+ 'printer',
204
+ 'radio',
205
+ 'refresh-ccw',
206
+ 'refresh-cw',
207
+ 'repeat',
208
+ 'rewind',
209
+ 'rotate-ccw',
210
+ 'rotate-cw',
211
+ 'rss',
212
+ 'save',
213
+ 'scissors',
214
+ 'search',
215
+ 'send',
216
+ 'server',
217
+ 'settings',
218
+ 'share-2',
219
+ 'share',
220
+ 'shield-off',
221
+ 'shield',
222
+ 'shopping-bag',
223
+ 'shopping-cart',
224
+ 'shuffle',
225
+ 'sidebar',
226
+ 'skip-back',
227
+ 'skip-forward',
228
+ 'slack',
229
+ 'slash',
230
+ 'sliders',
231
+ 'smartphone',
232
+ 'smile',
233
+ 'speaker',
234
+ 'square',
235
+ 'star',
236
+ 'stop-circle',
237
+ 'sun',
238
+ 'sunrise',
239
+ 'sunset',
240
+ 'table',
241
+ 'tablet',
242
+ 'tag',
243
+ 'target',
244
+ 'terminal',
245
+ 'thermometer',
246
+ 'thumbs-down',
247
+ 'thumbs-up',
248
+ 'toggle-left',
249
+ 'toggle-right',
250
+ 'tool',
251
+ 'trash-2',
252
+ 'trash',
253
+ 'trello',
254
+ 'trending-down',
255
+ 'trending-up',
256
+ 'triangle',
257
+ 'truck',
258
+ 'tv',
259
+ 'twitch',
260
+ 'twitter',
261
+ 'type',
262
+ 'umbrella',
263
+ 'underline',
264
+ 'unlock',
265
+ 'upload-cloud',
266
+ 'upload',
267
+ 'user-check',
268
+ 'user-minus',
269
+ 'user-plus',
270
+ 'user-x',
271
+ 'user',
272
+ 'users',
273
+ 'video-off',
274
+ 'video',
275
+ 'voicemail',
276
+ 'volume-1',
277
+ 'volume-2',
278
+ 'volume-x',
279
+ 'volume',
280
+ 'watch',
281
+ 'wifi-off',
282
+ 'wifi',
283
+ 'wind',
284
+ 'x-circle',
285
+ 'x-octagon',
286
+ 'x-square',
287
+ 'x',
288
+ 'youtube',
289
+ 'zap-off',
290
+ 'zap',
291
+ 'zoom-in',
292
+ 'zoom-out',
293
+ ];
294
+ export const ICON_NAME_OPTIONS = [...ICON_NAMES];
295
+ //# sourceMappingURL=icon-names.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-names.js","sourceRoot":"","sources":["../src/icon-names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,UAAU;IACV,SAAS;IACT,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,YAAY;IACZ,aAAa;IACb,QAAQ;IACR,UAAU;IACV,SAAS;IACT,mBAAmB;IACnB,iBAAiB;IACjB,kBAAkB;IAClB,YAAY;IACZ,mBAAmB;IACnB,YAAY;IACZ,oBAAoB;IACpB,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,gBAAgB;IAChB,UAAU;IACV,SAAS;IACT,OAAO;IACP,aAAa;IACb,WAAW;IACX,kBAAkB;IAClB,SAAS;IACT,UAAU;IACV,MAAM;IACN,WAAW;IACX,MAAM;IACN,WAAW;IACX,MAAM;IACN,UAAU;IACV,KAAK;IACL,WAAW;IACX,UAAU;IACV,YAAY;IACZ,QAAQ;IACR,MAAM;IACN,cAAc;IACd,cAAc;IACd,OAAO;IACP,cAAc;IACd,cAAc;IACd,eAAe;IACf,YAAY;IACZ,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,aAAa;IACb,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,OAAO;IACP,eAAe;IACf,iBAAiB;IACjB,WAAW;IACX,YAA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UAAU;IACV,WAAW;IACX,UAAU;IACV,GAAG;IACH,SAAS;IACT,SAAS;IACT,KAAK;IACL,SAAS;IACT,UAAU;CACF,CAAC;AAIX,MAAM,CAAC,MAAM,iBAAiB,GAAa,CAAC,GAAG,UAAU,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -2,11 +2,12 @@
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 ComponentCategory, type LayoutMetadata, type PropertyMetadata, } from './components';
6
- export { getComponentDocumentation, getLayoutDocumentation, getPropertyDocumentation, getKeywordDocumentation, } from './documentation';
7
- export { extractComponentDefinitions, getTokenAtPosition, isComponentReference, extractComponentReferences, extractScreenDefinitions, getPositionOfDefinition, findComponentReferences, type ComponentDefinition, } from './document-parser';
8
- export { determineScope, detectComponentContext, getComponentPropertiesForCompletion as getAvailableProperties, getAlreadyDeclaredProperties, type DocumentScope, type CompletionItem, } from './context-detection';
9
- export { KEYWORD_COMPLETIONS, CONTAINER_COMPLETIONS, COMPONENT_COMPLETIONS, PROPERTY_COMPLETIONS, isPropertyContext, getComponentPropertiesForCompletion, getPropertyValueSuggestions, getScopeBasedCompletions, detectComponentKeyword, detectPropertyValueContext, getAvailableComponents, getComponentProperties, } from './completions';
5
+ export { COMPONENTS, LAYOUTS, PROPERTY_VALUES, KEYWORDS, type ComponentMetadata, type ComponentCategory, type LayoutMetadata, type PropertyMetadata, } from './components.js';
6
+ export { ICON_NAMES, ICON_NAME_OPTIONS, type IconName } from './icon-names.js';
7
+ export { getComponentDocumentation, getLayoutDocumentation, getPropertyDocumentation, getKeywordDocumentation, } from './documentation.js';
8
+ export { extractComponentDefinitions, extractLayoutDefinitions, getTokenAtPosition, isComponentReference, extractComponentReferences, extractScreenDefinitions, getPositionOfDefinition, findComponentReferences, type ComponentDefinition, type LayoutDefinition, } from './document-parser.js';
9
+ export { determineScope, detectComponentContext, getComponentPropertiesForCompletion as getAvailableProperties, getAlreadyDeclaredProperties, type DocumentScope, type CompletionItem, } from './context-detection.js';
10
+ export { KEYWORD_COMPLETIONS, CONTAINER_COMPLETIONS, COMPONENT_COMPLETIONS, PROPERTY_COMPLETIONS, isPropertyContext, getComponentPropertiesForCompletion, getPropertyValueSuggestions, getScopeBasedCompletions, detectComponentKeyword, detectPropertyValueContext, getAvailableComponents, getComponentProperties, } from './completions.js';
10
11
  export interface KeywordDefinition {
11
12
  name: string;
12
13
  type: 'keyword' | 'component' | 'property';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,EACL,UAAU,EACV,OAAO,EACP,eAAe,EACf,QAAQ,EACR,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,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,EACvB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,mCAAmC,IAAI,sBAAsB,EAC7D,4BAA4B,EAC5B,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,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,EACtB,sBAAsB,GACvB,MAAM,eAAe,CA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Ac,GACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,mCAAmC,EACnC,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAG1B,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,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 CHANGED
@@ -3,13 +3,14 @@
3
3
  * Shared language definitions, syntax, and code intelligence for Monaco, VS Code, and other editors
4
4
  */
5
5
  // Import for internal use
6
- import { COMPONENTS, KEYWORDS } from './components';
6
+ import { COMPONENTS, KEYWORDS } from './components.js';
7
7
  // Re-export new core modules
8
- export { COMPONENTS, LAYOUTS, PROPERTY_VALUES, KEYWORDS, } from './components';
9
- export { getComponentDocumentation, getLayoutDocumentation, getPropertyDocumentation, getKeywordDocumentation, } from './documentation';
10
- export { extractComponentDefinitions, getTokenAtPosition, isComponentReference, extractComponentReferences, extractScreenDefinitions, getPositionOfDefinition, findComponentReferences, } from './document-parser';
11
- export { determineScope, detectComponentContext, getComponentPropertiesForCompletion as getAvailableProperties, getAlreadyDeclaredProperties, } from './context-detection';
12
- export { KEYWORD_COMPLETIONS, CONTAINER_COMPLETIONS, COMPONENT_COMPLETIONS, PROPERTY_COMPLETIONS, isPropertyContext, getComponentPropertiesForCompletion, getPropertyValueSuggestions, getScopeBasedCompletions, detectComponentKeyword, detectPropertyValueContext, getAvailableComponents, getComponentProperties, } from './completions';
8
+ export { COMPONENTS, LAYOUTS, PROPERTY_VALUES, KEYWORDS, } from './components.js';
9
+ export { ICON_NAMES, ICON_NAME_OPTIONS } from './icon-names.js';
10
+ export { getComponentDocumentation, getLayoutDocumentation, getPropertyDocumentation, getKeywordDocumentation, } from './documentation.js';
11
+ export { extractComponentDefinitions, extractLayoutDefinitions, getTokenAtPosition, isComponentReference, extractComponentReferences, extractScreenDefinitions, getPositionOfDefinition, findComponentReferences, } from './document-parser.js';
12
+ export { determineScope, detectComponentContext, getComponentPropertiesForCompletion as getAvailableProperties, getAlreadyDeclaredProperties, } from './context-detection.js';
13
+ export { KEYWORD_COMPLETIONS, CONTAINER_COMPLETIONS, COMPONENT_COMPLETIONS, PROPERTY_COMPLETIONS, isPropertyContext, getComponentPropertiesForCompletion, getPropertyValueSuggestions, getScopeBasedCompletions, detectComponentKeyword, detectPropertyValueContext, getAvailableComponents, getComponentProperties, } from './completions.js';
13
14
  // Build ALL_KEYWORDS using ACTUAL Wire DSL keywords
14
15
  export const ALL_KEYWORDS = [
15
16
  // Top-level keywords
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,GAKT,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,iBAAiB,CA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