@glint/template 1.4.1-unstable.b6f19ff → 1.4.1-unstable.bb2c7cd

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.
@@ -9,7 +9,12 @@ import {
9
9
  TemplateContext,
10
10
  NamedArgs,
11
11
  } from '../integration';
12
- import { ElementForTagName } from './types';
12
+ import {
13
+ AttributesForElement,
14
+ ElementForTagName,
15
+ MathMlElementForTagName,
16
+ SVGElementForTagName,
17
+ } from './types';
13
18
 
14
19
  /**
15
20
  * Used during emit to denote an object literal that corresponds
@@ -38,15 +43,29 @@ export declare function emitContent(value: ContentValue): void;
38
43
  *
39
44
  * Would produce code like:
40
45
  *
41
- * emitElement('div', (𝛄) => {
42
- * applySplattributes(𝚪.element, 𝛄.element);
43
- * applyAttributes(𝛄.element, { class: 'hello' });
44
- * applyModifier(𝛄.element, resolve(on)({}, 'click', this.clicked));
46
+ * emitElement('div', (__glintY__) => {
47
+ * applySplattributes(__glintRef__.element, __glintY__.element);
48
+ * applyAttributes(__glintY__.element, { class: 'hello' });
49
+ * applyModifier(__glintY__.element, resolve(on)({}, 'click', this.clicked));
45
50
  * });
46
51
  */
47
- export declare function emitElement<Name extends string>(
52
+ export declare function emitElement<Name extends keyof HTMLElementTagNameMap | 'math' | 'svg'>(
53
+ name: Name,
54
+ ): {
55
+ element: Name extends 'math'
56
+ ? MathMlElementForTagName<'math'>
57
+ : Name extends 'svg'
58
+ ? SVGElementForTagName<'svg'>
59
+ : ElementForTagName<Name>;
60
+ };
61
+
62
+ export declare function emitSVGElement<Name extends keyof SVGElementTagNameMap>(
63
+ name: Name,
64
+ ): { element: SVGElementForTagName<Name> };
65
+
66
+ export declare function emitMathMlElement<Name extends keyof MathMLElementTagNameMap>(
48
67
  name: Name,
49
- ): { element: ElementForTagName<Name> };
68
+ ): { element: MathMlElementForTagName<Name> };
50
69
 
51
70
  /*
52
71
  * Emits the given value as an entity that expects to receive blocks
@@ -60,8 +79,8 @@ export declare function emitElement<Name extends string>(
60
79
  * This form of invocation is the only one in a template that may have
61
80
  * blocks bound to it. The final line above would produce code like:
62
81
  *
63
- * emitComponent(resolve(Value)({ foo: bar })), (𝛄) => {
64
- * applyModifier(𝛄.element, resolve(baz)({}));
82
+ * emitComponent(resolve(Value)({ foo: bar })), (__glintY__) => {
83
+ * applyModifier(__glintY__.element, resolve(baz)({}));
65
84
  * });
66
85
  */
67
86
  export declare function emitComponent<T extends ComponentReturn<any, any>>(
@@ -81,7 +100,9 @@ export declare function emitComponent<T extends ComponentReturn<any, any>>(
81
100
  export declare function templateExpression<
82
101
  Signature extends AnyFunction = () => ComponentReturn<{}>,
83
102
  Context extends AnyContext = TemplateContext<void, {}, {}, void>,
84
- >(f: (𝚪: Context, χ: never) => void): new () => InvokableInstance<Signature> & HasContext<Context>;
103
+ >(
104
+ f: (__glintRef__: Context, __glintDSL__: never) => void,
105
+ ): new () => InvokableInstance<Signature> & HasContext<Context>;
85
106
 
86
107
  /*
87
108
  * Wraps a template body that's backed by a known value (typically a class), either
@@ -98,7 +119,7 @@ export declare function templateExpression<
98
119
  */
99
120
  export declare function templateForBackingValue<Args extends unknown[], Context extends AnyContext>(
100
121
  backingValue: abstract new (...args: Args) => HasContext<Context>,
101
- body: (𝚪: Context, χ: never) => void,
122
+ body: (__glintRef__: Context, __glintDSL__: never) => void,
102
123
  ): abstract new () => unknown;
103
124
 
104
125
  /*
@@ -108,10 +129,10 @@ export declare function templateForBackingValue<Args extends unknown[], Context
108
129
  *
109
130
  * Is equivalent to:
110
131
  *
111
- * yieldToBlock(𝚪, 'name')(foo, bar);
132
+ * yieldToBlock(__glintRef__, 'name')(foo, bar);
112
133
  */
113
134
  export declare function yieldToBlock<Context extends AnyContext, K extends keyof Context['blocks']>(
114
- 𝚪: Context,
135
+ __glintRef__: Context,
115
136
  to: K,
116
137
  ): (...values: NonNullable<Context['blocks'][K]>) => void;
117
138
 
@@ -133,7 +154,10 @@ export declare function applySplattributes<
133
154
  * <div foo={{bar}}></div>
134
155
  * <AnotherComponent foo={{bar}} />
135
156
  */
136
- export declare function applyAttributes(element: Element, attrs: Record<string, AttrValue>): void;
157
+ export declare function applyAttributes<T extends Element>(
158
+ element: T,
159
+ attrs: Partial<AttributesForElement<T>>,
160
+ ): void;
137
161
 
138
162
  /*
139
163
  * Applies a modifier to an element or component.
@@ -0,0 +1,508 @@
1
+ //generated by scrips/build-augmentations.mjs
2
+ export const GlintSymbol: unique symbol = Symbol();
3
+
4
+ declare global {
5
+ interface HTMLAnchorElement {
6
+ [GlintSymbol]: 'HTMLAnchorElement';
7
+ }
8
+
9
+ interface HTMLElement {
10
+ [GlintSymbol]: 'HTMLElement';
11
+ }
12
+
13
+ interface HTMLAreaElement {
14
+ [GlintSymbol]: 'HTMLAreaElement';
15
+ }
16
+
17
+ interface HTMLAudioElement {
18
+ [GlintSymbol]: 'HTMLAudioElement';
19
+ }
20
+
21
+ interface HTMLBaseElement {
22
+ [GlintSymbol]: 'HTMLBaseElement';
23
+ }
24
+
25
+ interface HTMLQuoteElement {
26
+ [GlintSymbol]: 'HTMLQuoteElement';
27
+ }
28
+
29
+ interface HTMLBodyElement {
30
+ [GlintSymbol]: 'HTMLBodyElement';
31
+ }
32
+
33
+ interface HTMLBRElement {
34
+ [GlintSymbol]: 'HTMLBRElement';
35
+ }
36
+
37
+ interface HTMLButtonElement {
38
+ [GlintSymbol]: 'HTMLButtonElement';
39
+ }
40
+
41
+ interface HTMLCanvasElement {
42
+ [GlintSymbol]: 'HTMLCanvasElement';
43
+ }
44
+
45
+ interface HTMLTableCaptionElement {
46
+ [GlintSymbol]: 'HTMLTableCaptionElement';
47
+ }
48
+
49
+ interface HTMLTableColElement {
50
+ [GlintSymbol]: 'HTMLTableColElement';
51
+ }
52
+
53
+ interface HTMLDataElement {
54
+ [GlintSymbol]: 'HTMLDataElement';
55
+ }
56
+
57
+ interface HTMLDataListElement {
58
+ [GlintSymbol]: 'HTMLDataListElement';
59
+ }
60
+
61
+ interface HTMLModElement {
62
+ [GlintSymbol]: 'HTMLModElement';
63
+ }
64
+
65
+ interface HTMLDetailsElement {
66
+ [GlintSymbol]: 'HTMLDetailsElement';
67
+ }
68
+
69
+ interface HTMLDialogElement {
70
+ [GlintSymbol]: 'HTMLDialogElement';
71
+ }
72
+
73
+ interface HTMLDivElement {
74
+ [GlintSymbol]: 'HTMLDivElement';
75
+ }
76
+
77
+ interface HTMLDListElement {
78
+ [GlintSymbol]: 'HTMLDListElement';
79
+ }
80
+
81
+ interface HTMLEmbedElement {
82
+ [GlintSymbol]: 'HTMLEmbedElement';
83
+ }
84
+
85
+ interface HTMLFieldSetElement {
86
+ [GlintSymbol]: 'HTMLFieldSetElement';
87
+ }
88
+
89
+ interface HTMLFormElement {
90
+ [GlintSymbol]: 'HTMLFormElement';
91
+ }
92
+
93
+ interface HTMLHeadingElement {
94
+ [GlintSymbol]: 'HTMLHeadingElement';
95
+ }
96
+
97
+ interface HTMLHeadElement {
98
+ [GlintSymbol]: 'HTMLHeadElement';
99
+ }
100
+
101
+ interface HTMLHRElement {
102
+ [GlintSymbol]: 'HTMLHRElement';
103
+ }
104
+
105
+ interface HTMLHtmlElement {
106
+ [GlintSymbol]: 'HTMLHtmlElement';
107
+ }
108
+
109
+ interface HTMLIFrameElement {
110
+ [GlintSymbol]: 'HTMLIFrameElement';
111
+ }
112
+
113
+ interface HTMLImageElement {
114
+ [GlintSymbol]: 'HTMLImageElement';
115
+ }
116
+
117
+ interface HTMLInputElement {
118
+ [GlintSymbol]: 'HTMLInputElement';
119
+ }
120
+
121
+ interface HTMLLabelElement {
122
+ [GlintSymbol]: 'HTMLLabelElement';
123
+ }
124
+
125
+ interface HTMLLegendElement {
126
+ [GlintSymbol]: 'HTMLLegendElement';
127
+ }
128
+
129
+ interface HTMLLIElement {
130
+ [GlintSymbol]: 'HTMLLIElement';
131
+ }
132
+
133
+ interface HTMLLinkElement {
134
+ [GlintSymbol]: 'HTMLLinkElement';
135
+ }
136
+
137
+ interface HTMLMapElement {
138
+ [GlintSymbol]: 'HTMLMapElement';
139
+ }
140
+
141
+ interface HTMLMenuElement {
142
+ [GlintSymbol]: 'HTMLMenuElement';
143
+ }
144
+
145
+ interface HTMLMetaElement {
146
+ [GlintSymbol]: 'HTMLMetaElement';
147
+ }
148
+
149
+ interface HTMLMeterElement {
150
+ [GlintSymbol]: 'HTMLMeterElement';
151
+ }
152
+
153
+ interface HTMLObjectElement {
154
+ [GlintSymbol]: 'HTMLObjectElement';
155
+ }
156
+
157
+ interface HTMLOListElement {
158
+ [GlintSymbol]: 'HTMLOListElement';
159
+ }
160
+
161
+ interface HTMLOptGroupElement {
162
+ [GlintSymbol]: 'HTMLOptGroupElement';
163
+ }
164
+
165
+ interface HTMLOptionElement {
166
+ [GlintSymbol]: 'HTMLOptionElement';
167
+ }
168
+
169
+ interface HTMLOutputElement {
170
+ [GlintSymbol]: 'HTMLOutputElement';
171
+ }
172
+
173
+ interface HTMLParagraphElement {
174
+ [GlintSymbol]: 'HTMLParagraphElement';
175
+ }
176
+
177
+ interface HTMLPictureElement {
178
+ [GlintSymbol]: 'HTMLPictureElement';
179
+ }
180
+
181
+ interface HTMLPreElement {
182
+ [GlintSymbol]: 'HTMLPreElement';
183
+ }
184
+
185
+ interface HTMLProgressElement {
186
+ [GlintSymbol]: 'HTMLProgressElement';
187
+ }
188
+
189
+ interface HTMLScriptElement {
190
+ [GlintSymbol]: 'HTMLScriptElement';
191
+ }
192
+
193
+ interface HTMLSelectElement {
194
+ [GlintSymbol]: 'HTMLSelectElement';
195
+ }
196
+
197
+ interface HTMLSlotElement {
198
+ [GlintSymbol]: 'HTMLSlotElement';
199
+ }
200
+
201
+ interface HTMLSourceElement {
202
+ [GlintSymbol]: 'HTMLSourceElement';
203
+ }
204
+
205
+ interface HTMLSpanElement {
206
+ [GlintSymbol]: 'HTMLSpanElement';
207
+ }
208
+
209
+ interface HTMLStyleElement {
210
+ [GlintSymbol]: 'HTMLStyleElement';
211
+ }
212
+
213
+ interface HTMLTableElement {
214
+ [GlintSymbol]: 'HTMLTableElement';
215
+ }
216
+
217
+ interface HTMLTableSectionElement {
218
+ [GlintSymbol]: 'HTMLTableSectionElement';
219
+ }
220
+
221
+ interface HTMLTableCellElement {
222
+ [GlintSymbol]: 'HTMLTableCellElement';
223
+ }
224
+
225
+ interface HTMLTemplateElement {
226
+ [GlintSymbol]: 'HTMLTemplateElement';
227
+ }
228
+
229
+ interface HTMLTextAreaElement {
230
+ [GlintSymbol]: 'HTMLTextAreaElement';
231
+ }
232
+
233
+ interface HTMLTimeElement {
234
+ [GlintSymbol]: 'HTMLTimeElement';
235
+ }
236
+
237
+ interface HTMLTitleElement {
238
+ [GlintSymbol]: 'HTMLTitleElement';
239
+ }
240
+
241
+ interface HTMLTableRowElement {
242
+ [GlintSymbol]: 'HTMLTableRowElement';
243
+ }
244
+
245
+ interface HTMLTrackElement {
246
+ [GlintSymbol]: 'HTMLTrackElement';
247
+ }
248
+
249
+ interface HTMLUListElement {
250
+ [GlintSymbol]: 'HTMLUListElement';
251
+ }
252
+
253
+ interface HTMLVideoElement {
254
+ [GlintSymbol]: 'HTMLVideoElement';
255
+ }
256
+
257
+ interface SVGAElement {
258
+ [GlintSymbol]: 'SVGAElement';
259
+ }
260
+
261
+ interface SVGAnimateElement {
262
+ [GlintSymbol]: 'SVGAnimateElement';
263
+ }
264
+
265
+ interface SVGAnimateMotionElement {
266
+ [GlintSymbol]: 'SVGAnimateMotionElement';
267
+ }
268
+
269
+ interface SVGAnimateTransformElement {
270
+ [GlintSymbol]: 'SVGAnimateTransformElement';
271
+ }
272
+
273
+ interface SVGCircleElement {
274
+ [GlintSymbol]: 'SVGCircleElement';
275
+ }
276
+
277
+ interface SVGClipPathElement {
278
+ [GlintSymbol]: 'SVGClipPathElement';
279
+ }
280
+
281
+ interface SVGDefsElement {
282
+ [GlintSymbol]: 'SVGDefsElement';
283
+ }
284
+
285
+ interface SVGDescElement {
286
+ [GlintSymbol]: 'SVGDescElement';
287
+ }
288
+
289
+ interface SVGEllipseElement {
290
+ [GlintSymbol]: 'SVGEllipseElement';
291
+ }
292
+
293
+ interface SVGFEBlendElement {
294
+ [GlintSymbol]: 'SVGFEBlendElement';
295
+ }
296
+
297
+ interface SVGFEColorMatrixElement {
298
+ [GlintSymbol]: 'SVGFEColorMatrixElement';
299
+ }
300
+
301
+ interface SVGFEComponentTransferElement {
302
+ [GlintSymbol]: 'SVGFEComponentTransferElement';
303
+ }
304
+
305
+ interface SVGFECompositeElement {
306
+ [GlintSymbol]: 'SVGFECompositeElement';
307
+ }
308
+
309
+ interface SVGFEConvolveMatrixElement {
310
+ [GlintSymbol]: 'SVGFEConvolveMatrixElement';
311
+ }
312
+
313
+ interface SVGFEDiffuseLightingElement {
314
+ [GlintSymbol]: 'SVGFEDiffuseLightingElement';
315
+ }
316
+
317
+ interface SVGFEDisplacementMapElement {
318
+ [GlintSymbol]: 'SVGFEDisplacementMapElement';
319
+ }
320
+
321
+ interface SVGFEDistantLightElement {
322
+ [GlintSymbol]: 'SVGFEDistantLightElement';
323
+ }
324
+
325
+ interface SVGFEDropShadowElement {
326
+ [GlintSymbol]: 'SVGFEDropShadowElement';
327
+ }
328
+
329
+ interface SVGFEFloodElement {
330
+ [GlintSymbol]: 'SVGFEFloodElement';
331
+ }
332
+
333
+ interface SVGFEFuncAElement {
334
+ [GlintSymbol]: 'SVGFEFuncAElement';
335
+ }
336
+
337
+ interface SVGFEFuncBElement {
338
+ [GlintSymbol]: 'SVGFEFuncBElement';
339
+ }
340
+
341
+ interface SVGFEFuncGElement {
342
+ [GlintSymbol]: 'SVGFEFuncGElement';
343
+ }
344
+
345
+ interface SVGFEFuncRElement {
346
+ [GlintSymbol]: 'SVGFEFuncRElement';
347
+ }
348
+
349
+ interface SVGFEGaussianBlurElement {
350
+ [GlintSymbol]: 'SVGFEGaussianBlurElement';
351
+ }
352
+
353
+ interface SVGFEImageElement {
354
+ [GlintSymbol]: 'SVGFEImageElement';
355
+ }
356
+
357
+ interface SVGFEMergeElement {
358
+ [GlintSymbol]: 'SVGFEMergeElement';
359
+ }
360
+
361
+ interface SVGFEMergeNodeElement {
362
+ [GlintSymbol]: 'SVGFEMergeNodeElement';
363
+ }
364
+
365
+ interface SVGFEMorphologyElement {
366
+ [GlintSymbol]: 'SVGFEMorphologyElement';
367
+ }
368
+
369
+ interface SVGFEOffsetElement {
370
+ [GlintSymbol]: 'SVGFEOffsetElement';
371
+ }
372
+
373
+ interface SVGFEPointLightElement {
374
+ [GlintSymbol]: 'SVGFEPointLightElement';
375
+ }
376
+
377
+ interface SVGFESpecularLightingElement {
378
+ [GlintSymbol]: 'SVGFESpecularLightingElement';
379
+ }
380
+
381
+ interface SVGFESpotLightElement {
382
+ [GlintSymbol]: 'SVGFESpotLightElement';
383
+ }
384
+
385
+ interface SVGFETileElement {
386
+ [GlintSymbol]: 'SVGFETileElement';
387
+ }
388
+
389
+ interface SVGFETurbulenceElement {
390
+ [GlintSymbol]: 'SVGFETurbulenceElement';
391
+ }
392
+
393
+ interface SVGFilterElement {
394
+ [GlintSymbol]: 'SVGFilterElement';
395
+ }
396
+
397
+ interface SVGForeignObjectElement {
398
+ [GlintSymbol]: 'SVGForeignObjectElement';
399
+ }
400
+
401
+ interface SVGGElement {
402
+ [GlintSymbol]: 'SVGGElement';
403
+ }
404
+
405
+ interface SVGImageElement {
406
+ [GlintSymbol]: 'SVGImageElement';
407
+ }
408
+
409
+ interface SVGLineElement {
410
+ [GlintSymbol]: 'SVGLineElement';
411
+ }
412
+
413
+ interface SVGLinearGradientElement {
414
+ [GlintSymbol]: 'SVGLinearGradientElement';
415
+ }
416
+
417
+ interface SVGMarkerElement {
418
+ [GlintSymbol]: 'SVGMarkerElement';
419
+ }
420
+
421
+ interface SVGMaskElement {
422
+ [GlintSymbol]: 'SVGMaskElement';
423
+ }
424
+
425
+ interface SVGMetadataElement {
426
+ [GlintSymbol]: 'SVGMetadataElement';
427
+ }
428
+
429
+ interface SVGMPathElement {
430
+ [GlintSymbol]: 'SVGMPathElement';
431
+ }
432
+
433
+ interface SVGPathElement {
434
+ [GlintSymbol]: 'SVGPathElement';
435
+ }
436
+
437
+ interface SVGPatternElement {
438
+ [GlintSymbol]: 'SVGPatternElement';
439
+ }
440
+
441
+ interface SVGPolygonElement {
442
+ [GlintSymbol]: 'SVGPolygonElement';
443
+ }
444
+
445
+ interface SVGPolylineElement {
446
+ [GlintSymbol]: 'SVGPolylineElement';
447
+ }
448
+
449
+ interface SVGRadialGradientElement {
450
+ [GlintSymbol]: 'SVGRadialGradientElement';
451
+ }
452
+
453
+ interface SVGRectElement {
454
+ [GlintSymbol]: 'SVGRectElement';
455
+ }
456
+
457
+ interface SVGScriptElement {
458
+ [GlintSymbol]: 'SVGScriptElement';
459
+ }
460
+
461
+ interface SVGSetElement {
462
+ [GlintSymbol]: 'SVGSetElement';
463
+ }
464
+
465
+ interface SVGStopElement {
466
+ [GlintSymbol]: 'SVGStopElement';
467
+ }
468
+
469
+ interface SVGStyleElement {
470
+ [GlintSymbol]: 'SVGStyleElement';
471
+ }
472
+
473
+ interface SVGSVGElement {
474
+ [GlintSymbol]: 'SVGSVGElement';
475
+ }
476
+
477
+ interface SVGSwitchElement {
478
+ [GlintSymbol]: 'SVGSwitchElement';
479
+ }
480
+
481
+ interface SVGSymbolElement {
482
+ [GlintSymbol]: 'SVGSymbolElement';
483
+ }
484
+
485
+ interface SVGTextElement {
486
+ [GlintSymbol]: 'SVGTextElement';
487
+ }
488
+
489
+ interface SVGTextPathElement {
490
+ [GlintSymbol]: 'SVGTextPathElement';
491
+ }
492
+
493
+ interface SVGTitleElement {
494
+ [GlintSymbol]: 'SVGTitleElement';
495
+ }
496
+
497
+ interface SVGTSpanElement {
498
+ [GlintSymbol]: 'SVGTSpanElement';
499
+ }
500
+
501
+ interface SVGUseElement {
502
+ [GlintSymbol]: 'SVGUseElement';
503
+ }
504
+
505
+ interface SVGViewElement {
506
+ [GlintSymbol]: 'SVGViewElement';
507
+ }
508
+ }
@@ -1,3 +1,7 @@
1
+ import { HtmlElementAttributes, SvgElementAttributes } from './elements';
2
+ import { AttrValue } from '../index';
3
+ import { GlintSymbol } from './lib.dom.augmentation';
4
+
1
5
  /**
2
6
  * A utility for constructing the type of an environment's `resolveOrReturn` from
3
7
  * the type of its `resolve` function.
@@ -9,9 +13,25 @@ export type ResolveOrReturn<T> = T & (<U>(item: U) => () => U);
9
13
  * NOTE: This will return a union for elements that exist both in HTML and SVG. Technically, this will be too permissive.
10
14
  */
11
15
  export type ElementForTagName<Name extends string> = Name extends keyof HTMLElementTagNameMap
12
- ? Name extends keyof SVGElementTagNameMap
13
- ? HTMLElementTagNameMap[Name] & SVGElementTagNameMap[Name]
14
- : HTMLElementTagNameMap[Name]
15
- : Name extends keyof SVGElementTagNameMap
16
- ? SVGElementTagNameMap[Name]
17
- : Element;
16
+ ? HTMLElementTagNameMap[Name]
17
+ : Element;
18
+
19
+ export type SVGElementForTagName<Name extends string> = Name extends keyof SVGElementTagNameMap
20
+ ? SVGElementTagNameMap[Name]
21
+ : Element;
22
+
23
+ export type MathMlElementForTagName<Name extends string> =
24
+ Name extends keyof MathMLElementTagNameMap ? MathMLElementTagNameMap[Name] : Element;
25
+
26
+ type WithDataAttributes<T> = T & Record<`data-${string}`, AttrValue>;
27
+
28
+ export type AttributesForElement<
29
+ Elem extends Element,
30
+ K = Elem[typeof GlintSymbol],
31
+ > = K extends keyof HtmlElementAttributes.HtmlElements
32
+ ? WithDataAttributes<HtmlElementAttributes.HtmlElements[K]>
33
+ : K extends keyof SvgElementAttributes.SvgElements
34
+ ? WithDataAttributes<SvgElementAttributes.SvgElements[K]>
35
+ : K extends keyof SvgElementAttributes.SvgElements
36
+ ? WithDataAttributes<SvgElementAttributes.SvgElements[K]>
37
+ : Record<string, AttrValue>;
package/package.json CHANGED
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "name": "@glint/template",
3
- "version": "1.4.1-unstable.b6f19ff",
3
+ "version": "1.4.1-unstable.bb2c7cd",
4
4
  "repository": "typed-ember/glint",
5
5
  "description": "Type definitions to back typechecking for Glimmer templates",
6
6
  "license": "MIT",
7
7
  "author": "Dan Freeman (https://github.com/dfreeman)",
8
8
  "types": "-private/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./-private/index.d.ts"
12
+ },
13
+ "./*": {
14
+ "types": "./*.d.ts"
15
+ }
16
+ },
9
17
  "scripts": {
10
18
  "test": "echo 'no standalone tests within this project'",
11
19
  "test:typecheck": "tsc --project __tests__",
@@ -18,9 +26,15 @@
18
26
  ],
19
27
  "devDependencies": {
20
28
  "@glimmer/component": "^1.1.2",
21
- "@types/ember__component": "~4.0.8",
22
29
  "expect-type": "^0.15.0",
23
- "sums-up": "^2.1.0"
30
+ "sums-up": "^2.1.0",
31
+ "ember-source": "^6.2.0",
32
+ "typescript": ">=5.6.0",
33
+ "aria-attributes": "^2.0.1",
34
+ "html-element-attributes": "^3.3.0",
35
+ "html-event-attributes": "^2.2.0",
36
+ "svg-element-attributes": "^2.1.0",
37
+ "svg-event-attributes": "^2.0.2"
24
38
  },
25
39
  "publishConfig": {
26
40
  "access": "public"