@teambit/react.ui.component-highlighter 0.2.0 → 0.2.2

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 (49) hide show
  1. package/.bit-capsule-ready +0 -0
  2. package/dist/children-highlighter/children-highlighter.composition.d.ts +6 -6
  3. package/dist/children-highlighter/children-highlighter.d.ts +3 -3
  4. package/dist/children-highlighter/use-children-highlighter.d.ts +2 -2
  5. package/dist/element-highlighter/element-highlighter.compositions.d.ts +8 -8
  6. package/dist/element-highlighter/element-highlighter.compositions.js +5 -1
  7. package/dist/element-highlighter/element-highlighter.compositions.js.map +1 -1
  8. package/dist/element-highlighter/element-highlighter.d.ts +2 -2
  9. package/dist/element-highlighter/element-highlighter.module.scss +1 -3
  10. package/dist/frame/frame.d.ts +1 -1
  11. package/dist/frame/frame.js +5 -1
  12. package/dist/frame/frame.js.map +1 -1
  13. package/dist/hover-highlighter/bubble-to-component.d.ts +1 -1
  14. package/dist/hover-highlighter/bubble-to-component.js.map +1 -1
  15. package/dist/hover-highlighter/hover-highlighter.compositions.d.ts +4 -4
  16. package/dist/hover-highlighter/hover-highlighter.compositions.js +5 -1
  17. package/dist/hover-highlighter/hover-highlighter.compositions.js.map +1 -1
  18. package/dist/hover-highlighter/hover-highlighter.d.ts +3 -3
  19. package/dist/hover-highlighter/use-hover-highlighter.d.ts +5 -5
  20. package/dist/hover-highlighter/use-hover-highlighter.js.map +1 -1
  21. package/dist/hybrid-highlighter/hybrid-highlighter.d.ts +1 -1
  22. package/dist/hybrid-highlighter/hybrid-highlighter.js +5 -1
  23. package/dist/hybrid-highlighter/hybrid-highlighter.js.map +1 -1
  24. package/dist/ignore-highlighter.d.ts +3 -3
  25. package/dist/label/component-strip.compositions.d.ts +2 -2
  26. package/dist/label/component-strip.js +5 -1
  27. package/dist/label/component-strip.js.map +1 -1
  28. package/dist/label/label-container.d.ts +1 -1
  29. package/dist/label/label-container.js +5 -1
  30. package/dist/label/label-container.js.map +1 -1
  31. package/dist/label/label.d.ts +1 -1
  32. package/dist/label/label.js +5 -1
  33. package/dist/label/label.js.map +1 -1
  34. package/dist/label/other-components.d.ts +3 -3
  35. package/dist/mock-component.d.ts +14 -4
  36. package/dist/rule-matcher.d.ts +3 -3
  37. package/dist/rule-matcher.js.map +1 -1
  38. package/dist/tsconfig.json +5 -1
  39. package/element-highlighter/element-highlighter.module.scss +1 -3
  40. package/package.json +17 -16
  41. package/schema.json +2952 -0
  42. package/static/css/teambit.react/ui/component-highlighter.5d8cd801.css +1 -0
  43. package/teambit_react_ui_component_highlighter-component.js +42 -0
  44. package/teambit_react_ui_component_highlighter-preview.js +101 -0
  45. package/package-tar/teambit-react.ui.component-highlighter-0.2.0.tgz +0 -0
  46. package/preview-1657547073447.js +0 -8
  47. package/tsconfig.json +0 -32
  48. package/types/asset.d.ts +0 -29
  49. package/types/style.d.ts +0 -42
package/schema.json ADDED
@@ -0,0 +1,2952 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "ExportSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 1,
21
+ "character": 31
22
+ },
23
+ "name": "HybridHighlighter",
24
+ "exportNode": {
25
+ "__schema": "ReactSchema",
26
+ "location": {
27
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
28
+ "line": 49,
29
+ "character": 1
30
+ },
31
+ "doc": {
32
+ "__schema": "DocSchema",
33
+ "location": {
34
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
35
+ "line": 48,
36
+ "character": 1
37
+ },
38
+ "raw": "/** automatically highlight components on hover */",
39
+ "comment": "automatically highlight components on hover"
40
+ },
41
+ "signature": "function HybridHighlighter({ disabled, mode, debounceSelection, watchMotion, placement, rule, componentRule, classes, highlightStyle, className, style, bgColor, bgColorHover, bgColorActive, children, ...rest }: HybridHighlighterProps): React.JSX.Element",
42
+ "name": "HybridHighlighter",
43
+ "props": {
44
+ "__schema": "ParameterSchema",
45
+ "location": {
46
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
47
+ "line": 49,
48
+ "character": 35
49
+ },
50
+ "name": "{ disabled, mode = 'hover', debounceSelection = 80, watchMotion = true, placement, rule, componentRule, classes, highlightStyle, className, style, bgColor, bgColorHover, bgColorActive, children, ...rest }",
51
+ "type": {
52
+ "__schema": "TypeRefSchema",
53
+ "location": {
54
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
55
+ "line": 67,
56
+ "character": 4
57
+ },
58
+ "name": "HybridHighlighterProps"
59
+ },
60
+ "isOptional": false,
61
+ "objectBindingNodes": [
62
+ {
63
+ "__schema": "InferenceTypeSchema",
64
+ "location": {
65
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
66
+ "line": 50,
67
+ "character": 3
68
+ },
69
+ "name": "disabled",
70
+ "type": "boolean",
71
+ "isSpread": false
72
+ },
73
+ {
74
+ "__schema": "InferenceTypeSchema",
75
+ "location": {
76
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
77
+ "line": 51,
78
+ "character": 3
79
+ },
80
+ "name": "mode",
81
+ "type": "\"allChildren\" | \"hover\"",
82
+ "defaultValue": "'hover'",
83
+ "isSpread": false
84
+ },
85
+ {
86
+ "__schema": "InferenceTypeSchema",
87
+ "location": {
88
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
89
+ "line": 52,
90
+ "character": 3
91
+ },
92
+ "name": "debounceSelection",
93
+ "type": "number",
94
+ "defaultValue": "80",
95
+ "isSpread": false
96
+ },
97
+ {
98
+ "__schema": "InferenceTypeSchema",
99
+ "location": {
100
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
101
+ "line": 53,
102
+ "character": 3
103
+ },
104
+ "name": "watchMotion",
105
+ "type": "boolean",
106
+ "defaultValue": "true",
107
+ "isSpread": false
108
+ },
109
+ {
110
+ "__schema": "InferenceTypeSchema",
111
+ "location": {
112
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
113
+ "line": 54,
114
+ "character": 3
115
+ },
116
+ "name": "placement",
117
+ "type": "Placement",
118
+ "isSpread": false
119
+ },
120
+ {
121
+ "__schema": "InferenceTypeSchema",
122
+ "location": {
123
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
124
+ "line": 55,
125
+ "character": 3
126
+ },
127
+ "name": "rule",
128
+ "type": "MatchRule",
129
+ "isSpread": false
130
+ },
131
+ {
132
+ "__schema": "InferenceTypeSchema",
133
+ "location": {
134
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
135
+ "line": 56,
136
+ "character": 3
137
+ },
138
+ "name": "componentRule",
139
+ "type": "ComponentMatchRule",
140
+ "isSpread": false
141
+ },
142
+ {
143
+ "__schema": "InferenceTypeSchema",
144
+ "location": {
145
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
146
+ "line": 58,
147
+ "character": 3
148
+ },
149
+ "name": "classes",
150
+ "type": "HighlightClasses",
151
+ "isSpread": false
152
+ },
153
+ {
154
+ "__schema": "InferenceTypeSchema",
155
+ "location": {
156
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
157
+ "line": 59,
158
+ "character": 3
159
+ },
160
+ "name": "highlightStyle",
161
+ "type": "React.CSSProperties",
162
+ "isSpread": false
163
+ },
164
+ {
165
+ "__schema": "InferenceTypeSchema",
166
+ "location": {
167
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
168
+ "line": 60,
169
+ "character": 3
170
+ },
171
+ "name": "className",
172
+ "type": "string",
173
+ "isSpread": false
174
+ },
175
+ {
176
+ "__schema": "InferenceTypeSchema",
177
+ "location": {
178
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
179
+ "line": 61,
180
+ "character": 3
181
+ },
182
+ "name": "style",
183
+ "type": "React.CSSProperties",
184
+ "isSpread": false
185
+ },
186
+ {
187
+ "__schema": "InferenceTypeSchema",
188
+ "location": {
189
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
190
+ "line": 62,
191
+ "character": 3
192
+ },
193
+ "name": "bgColor",
194
+ "type": "string",
195
+ "isSpread": false
196
+ },
197
+ {
198
+ "__schema": "InferenceTypeSchema",
199
+ "location": {
200
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
201
+ "line": 63,
202
+ "character": 3
203
+ },
204
+ "name": "bgColorHover",
205
+ "type": "string",
206
+ "isSpread": false
207
+ },
208
+ {
209
+ "__schema": "InferenceTypeSchema",
210
+ "location": {
211
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
212
+ "line": 64,
213
+ "character": 3
214
+ },
215
+ "name": "bgColorActive",
216
+ "type": "string",
217
+ "isSpread": false
218
+ },
219
+ {
220
+ "__schema": "InferenceTypeSchema",
221
+ "location": {
222
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
223
+ "line": 65,
224
+ "character": 3
225
+ },
226
+ "name": "children",
227
+ "type": "React.ReactNode",
228
+ "isSpread": false
229
+ },
230
+ {
231
+ "__schema": "InferenceTypeSchema",
232
+ "location": {
233
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
234
+ "line": 66,
235
+ "character": 6
236
+ },
237
+ "name": "rest",
238
+ "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 249 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
239
+ "isSpread": true
240
+ }
241
+ ],
242
+ "isSpread": false
243
+ },
244
+ "returnType": {
245
+ "__schema": "TypeRefSchema",
246
+ "location": {
247
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
248
+ "line": 49,
249
+ "character": 1
250
+ },
251
+ "name": "React.JSX.Element",
252
+ "packageName": "react"
253
+ },
254
+ "modifiers": [
255
+ "export"
256
+ ]
257
+ },
258
+ "alias": "ComponentHighlighter"
259
+ },
260
+ {
261
+ "__schema": "ExportSchema",
262
+ "location": {
263
+ "filePath": "index.ts",
264
+ "line": 2,
265
+ "character": 41
266
+ },
267
+ "name": "HybridHighlighterProps",
268
+ "exportNode": {
269
+ "__schema": "InterfaceSchema",
270
+ "location": {
271
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
272
+ "line": 14,
273
+ "character": 1
274
+ },
275
+ "signature": "interface HybridHighlighterProps",
276
+ "name": "HybridHighlighterProps",
277
+ "members": [
278
+ {
279
+ "__schema": "VariableLikeSchema",
280
+ "location": {
281
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
282
+ "line": 16,
283
+ "character": 3
284
+ },
285
+ "doc": {
286
+ "__schema": "DocSchema",
287
+ "location": {
288
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
289
+ "line": 15,
290
+ "character": 3
291
+ },
292
+ "raw": "/** stop all highlighting and drop listeners */",
293
+ "comment": "stop all highlighting and drop listeners"
294
+ },
295
+ "signature": "(property) HybridHighlighterProps.disabled?: boolean",
296
+ "name": "disabled",
297
+ "type": {
298
+ "__schema": "KeywordTypeSchema",
299
+ "location": {
300
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
301
+ "line": 16,
302
+ "character": 14
303
+ },
304
+ "name": "boolean"
305
+ },
306
+ "isOptional": true
307
+ },
308
+ {
309
+ "__schema": "VariableLikeSchema",
310
+ "location": {
311
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
312
+ "line": 18,
313
+ "character": 3
314
+ },
315
+ "doc": {
316
+ "__schema": "DocSchema",
317
+ "location": {
318
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
319
+ "line": 17,
320
+ "character": 3
321
+ },
322
+ "raw": "/** default pop location for the label */",
323
+ "comment": "default pop location for the label"
324
+ },
325
+ "signature": "(property) HybridHighlighterProps.placement?: Placement",
326
+ "name": "placement",
327
+ "type": {
328
+ "__schema": "TypeRefSchema",
329
+ "location": {
330
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
331
+ "line": 18,
332
+ "character": 3
333
+ },
334
+ "name": "Placement"
335
+ },
336
+ "isOptional": true
337
+ },
338
+ {
339
+ "__schema": "VariableLikeSchema",
340
+ "location": {
341
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
342
+ "line": 20,
343
+ "character": 3
344
+ },
345
+ "doc": {
346
+ "__schema": "DocSchema",
347
+ "location": {
348
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
349
+ "line": 19,
350
+ "character": 3
351
+ },
352
+ "raw": "/** customize styles */",
353
+ "comment": "customize styles"
354
+ },
355
+ "signature": "(property) HybridHighlighterProps.classes?: HighlightClasses",
356
+ "name": "classes",
357
+ "type": {
358
+ "__schema": "TypeRefSchema",
359
+ "location": {
360
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
361
+ "line": 20,
362
+ "character": 3
363
+ },
364
+ "name": "HighlightClasses"
365
+ },
366
+ "isOptional": true
367
+ },
368
+ {
369
+ "__schema": "VariableLikeSchema",
370
+ "location": {
371
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
372
+ "line": 22,
373
+ "character": 3
374
+ },
375
+ "doc": {
376
+ "__schema": "DocSchema",
377
+ "location": {
378
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
379
+ "line": 21,
380
+ "character": 3
381
+ },
382
+ "raw": "/** customize highlighter */",
383
+ "comment": "customize highlighter"
384
+ },
385
+ "signature": "(property) HybridHighlighterProps.highlightStyle?: React.CSSProperties",
386
+ "name": "highlightStyle",
387
+ "type": {
388
+ "__schema": "TypeRefSchema",
389
+ "location": {
390
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
391
+ "line": 22,
392
+ "character": 20
393
+ },
394
+ "name": "CSSProperties",
395
+ "packageName": "react"
396
+ },
397
+ "isOptional": true
398
+ },
399
+ {
400
+ "__schema": "VariableLikeSchema",
401
+ "location": {
402
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
403
+ "line": 28,
404
+ "character": 3
405
+ },
406
+ "doc": {
407
+ "__schema": "DocSchema",
408
+ "location": {
409
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
410
+ "line": 23,
411
+ "character": 3
412
+ },
413
+ "raw": "/** debounces element hover selection.\n * A higher value will reduce element lookups as well as \"keep\" the highlight on the current element for longer.\n * Initial selection (when no element is currently selected) will always happen immediately to improve the user experience.\n * @default 80ms\n */",
414
+ "comment": "debounces element hover selection.\nA higher value will reduce element lookups as well as \"keep\" the highlight on the current element for longer.\nInitial selection (when no element is currently selected) will always happen immediately to improve the user experience.",
415
+ "tags": [
416
+ {
417
+ "__schema": "TagSchema",
418
+ "location": {
419
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
420
+ "line": 26,
421
+ "character": 6
422
+ },
423
+ "tagName": "default",
424
+ "comment": "80ms"
425
+ }
426
+ ]
427
+ },
428
+ "signature": "(property) HybridHighlighterProps.debounceSelection?: number",
429
+ "name": "debounceSelection",
430
+ "type": {
431
+ "__schema": "KeywordTypeSchema",
432
+ "location": {
433
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
434
+ "line": 28,
435
+ "character": 23
436
+ },
437
+ "name": "number"
438
+ },
439
+ "isOptional": true
440
+ },
441
+ {
442
+ "__schema": "VariableLikeSchema",
443
+ "location": {
444
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
445
+ "line": 30,
446
+ "character": 3
447
+ },
448
+ "doc": {
449
+ "__schema": "DocSchema",
450
+ "location": {
451
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
452
+ "line": 29,
453
+ "character": 3
454
+ },
455
+ "raw": "/** continually update frame position to match moving elements */",
456
+ "comment": "continually update frame position to match moving elements"
457
+ },
458
+ "signature": "(property) HybridHighlighterProps.watchMotion?: boolean",
459
+ "name": "watchMotion",
460
+ "type": {
461
+ "__schema": "KeywordTypeSchema",
462
+ "location": {
463
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
464
+ "line": 30,
465
+ "character": 17
466
+ },
467
+ "name": "boolean"
468
+ },
469
+ "isOptional": true
470
+ },
471
+ {
472
+ "__schema": "VariableLikeSchema",
473
+ "location": {
474
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
475
+ "line": 33,
476
+ "character": 3
477
+ },
478
+ "doc": {
479
+ "__schema": "DocSchema",
480
+ "location": {
481
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
482
+ "line": 32,
483
+ "character": 3
484
+ },
485
+ "raw": "/** filter highlighter targets by this query selector. (May be a more complex object in the future) */",
486
+ "comment": "filter highlighter targets by this query selector. (May be a more complex object in the future)"
487
+ },
488
+ "signature": "(property) HybridHighlighterProps.rule?: MatchRule",
489
+ "name": "rule",
490
+ "type": {
491
+ "__schema": "TypeRefSchema",
492
+ "location": {
493
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
494
+ "line": 33,
495
+ "character": 3
496
+ },
497
+ "name": "MatchRule"
498
+ },
499
+ "isOptional": true
500
+ },
501
+ {
502
+ "__schema": "VariableLikeSchema",
503
+ "location": {
504
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
505
+ "line": 35,
506
+ "character": 3
507
+ },
508
+ "doc": {
509
+ "__schema": "DocSchema",
510
+ "location": {
511
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
512
+ "line": 34,
513
+ "character": 3
514
+ },
515
+ "raw": "/** filter components to match this rule. Can be id, array of ids, or a function */",
516
+ "comment": "filter components to match this rule. Can be id, array of ids, or a function"
517
+ },
518
+ "signature": "(property) HybridHighlighterProps.componentRule?: ComponentMatchRule",
519
+ "name": "componentRule",
520
+ "type": {
521
+ "__schema": "TypeRefSchema",
522
+ "location": {
523
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
524
+ "line": 35,
525
+ "character": 3
526
+ },
527
+ "name": "ComponentMatchRule",
528
+ "internalFilePath": "rule-matcher.tsx"
529
+ },
530
+ "isOptional": true
531
+ },
532
+ {
533
+ "__schema": "VariableLikeSchema",
534
+ "location": {
535
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
536
+ "line": 42,
537
+ "character": 3
538
+ },
539
+ "doc": {
540
+ "__schema": "DocSchema",
541
+ "location": {
542
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
543
+ "line": 37,
544
+ "character": 3
545
+ },
546
+ "raw": "/** set the behavior of the highlighter.\n * `disabled` - stops highlighting.\n * `allChildren` - highlights all components rendered under children\n * `hover` - highlighters the component immediately under the mouse cursor\n * */",
547
+ "comment": "set the behavior of the highlighter.\n`disabled` - stops highlighting.\n`allChildren` - highlights all components rendered under children\n`hover` - highlighters the component immediately under the mouse cursor"
548
+ },
549
+ "signature": "(property) HybridHighlighterProps.mode?: \"allChildren\" | \"hover\"",
550
+ "name": "mode",
551
+ "type": {
552
+ "__schema": "TypeUnionSchema",
553
+ "location": {
554
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
555
+ "line": 42,
556
+ "character": 10
557
+ },
558
+ "types": [
559
+ {
560
+ "__schema": "LiteralTypeSchema",
561
+ "location": {
562
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
563
+ "line": 42,
564
+ "character": 10
565
+ },
566
+ "name": "'allChildren'"
567
+ },
568
+ {
569
+ "__schema": "LiteralTypeSchema",
570
+ "location": {
571
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
572
+ "line": 42,
573
+ "character": 26
574
+ },
575
+ "name": "'hover'"
576
+ }
577
+ ]
578
+ },
579
+ "isOptional": true
580
+ },
581
+ {
582
+ "__schema": "VariableLikeSchema",
583
+ "location": {
584
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
585
+ "line": 43,
586
+ "character": 3
587
+ },
588
+ "signature": "(property) HybridHighlighterProps.bgColor?: string",
589
+ "name": "bgColor",
590
+ "type": {
591
+ "__schema": "KeywordTypeSchema",
592
+ "location": {
593
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
594
+ "line": 43,
595
+ "character": 13
596
+ },
597
+ "name": "string"
598
+ },
599
+ "isOptional": true
600
+ },
601
+ {
602
+ "__schema": "VariableLikeSchema",
603
+ "location": {
604
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
605
+ "line": 44,
606
+ "character": 3
607
+ },
608
+ "signature": "(property) HybridHighlighterProps.bgColorHover?: string",
609
+ "name": "bgColorHover",
610
+ "type": {
611
+ "__schema": "KeywordTypeSchema",
612
+ "location": {
613
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
614
+ "line": 44,
615
+ "character": 18
616
+ },
617
+ "name": "string"
618
+ },
619
+ "isOptional": true
620
+ },
621
+ {
622
+ "__schema": "VariableLikeSchema",
623
+ "location": {
624
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
625
+ "line": 45,
626
+ "character": 3
627
+ },
628
+ "signature": "(property) HybridHighlighterProps.bgColorActive?: string",
629
+ "name": "bgColorActive",
630
+ "type": {
631
+ "__schema": "KeywordTypeSchema",
632
+ "location": {
633
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
634
+ "line": 45,
635
+ "character": 19
636
+ },
637
+ "name": "string"
638
+ },
639
+ "isOptional": true
640
+ }
641
+ ],
642
+ "extendsNodes": [
643
+ {
644
+ "__schema": "ExpressionWithTypeArgumentsSchema",
645
+ "location": {
646
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
647
+ "line": 14,
648
+ "character": 49
649
+ },
650
+ "name": "extends React.HTMLAttributes<HTMLDivElement>",
651
+ "typeArgs": [
652
+ {
653
+ "__schema": "TypeRefSchema",
654
+ "location": {
655
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
656
+ "line": 14,
657
+ "character": 70
658
+ },
659
+ "name": "HTMLDivElement"
660
+ }
661
+ ],
662
+ "expression": {
663
+ "__schema": "TypeRefSchema",
664
+ "location": {
665
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
666
+ "line": 14,
667
+ "character": 49
668
+ },
669
+ "name": "React",
670
+ "packageName": "/tmp/capsules-root/sign-capsules/2024-5-21/v98z65/teambit.react_ui_component-highlighter@8ff9cdb292ef95ab5647b5b8034ea2519b829c6c/hybrid-highlighter/hybrid-highlighter.tsx"
671
+ }
672
+ }
673
+ ]
674
+ },
675
+ "alias": "ComponentHighlightProps"
676
+ },
677
+ {
678
+ "__schema": "ExportSchema",
679
+ "location": {
680
+ "filePath": "index.ts",
681
+ "line": 4,
682
+ "character": 10
683
+ },
684
+ "name": "HoverHighlighter",
685
+ "exportNode": {
686
+ "__schema": "ReactSchema",
687
+ "location": {
688
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
689
+ "line": 6,
690
+ "character": 1
691
+ },
692
+ "signature": "function HoverHighlighter({ ...props }: HoverHighlighterProps): React.JSX.Element",
693
+ "name": "HoverHighlighter",
694
+ "props": {
695
+ "__schema": "ParameterSchema",
696
+ "location": {
697
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
698
+ "line": 6,
699
+ "character": 34
700
+ },
701
+ "name": "{ ...props }",
702
+ "type": {
703
+ "__schema": "TypeRefSchema",
704
+ "location": {
705
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
706
+ "line": 6,
707
+ "character": 48
708
+ },
709
+ "name": "HoverHighlighterProps"
710
+ },
711
+ "isOptional": false,
712
+ "objectBindingNodes": [
713
+ {
714
+ "__schema": "InferenceTypeSchema",
715
+ "location": {
716
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
717
+ "line": 6,
718
+ "character": 39
719
+ },
720
+ "name": "props",
721
+ "type": "{\n disabled?: boolean;\n debounceSelection?: number;\n watchMotion?: boolean;\n placement?: Placement;\n rule?: MatchRule;\n componentRule?: ComponentMatchRule;\n ... 263 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
722
+ "isSpread": true
723
+ }
724
+ ],
725
+ "isSpread": false
726
+ },
727
+ "returnType": {
728
+ "__schema": "TypeRefSchema",
729
+ "location": {
730
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
731
+ "line": 6,
732
+ "character": 1
733
+ },
734
+ "name": "React.JSX.Element",
735
+ "packageName": "react"
736
+ },
737
+ "modifiers": [
738
+ "export"
739
+ ]
740
+ }
741
+ },
742
+ {
743
+ "__schema": "ExportSchema",
744
+ "location": {
745
+ "filePath": "index.ts",
746
+ "line": 5,
747
+ "character": 15
748
+ },
749
+ "name": "HoverHighlighterProps",
750
+ "exportNode": {
751
+ "__schema": "TypeSchema",
752
+ "location": {
753
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
754
+ "line": 4,
755
+ "character": 1
756
+ },
757
+ "signature": "type HoverHighlighterProps = {\n disabled?: boolean;\n debounceSelection?: number;\n watchMotion?: boolean;\n placement?: Placement;\n rule?: MatchRule;\n componentRule?: ComponentMatchRule;\n ... 263 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
758
+ "name": "HoverHighlighterProps",
759
+ "type": {
760
+ "__schema": "TypeRefSchema",
761
+ "location": {
762
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
763
+ "line": 4,
764
+ "character": 37
765
+ },
766
+ "name": "Omit",
767
+ "typeArgs": [
768
+ {
769
+ "__schema": "TypeRefSchema",
770
+ "location": {
771
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
772
+ "line": 4,
773
+ "character": 42
774
+ },
775
+ "name": "HybridHighlighterProps"
776
+ },
777
+ {
778
+ "__schema": "LiteralTypeSchema",
779
+ "location": {
780
+ "filePath": "hover-highlighter/hover-highlighter.tsx",
781
+ "line": 4,
782
+ "character": 66
783
+ },
784
+ "name": "'mode'"
785
+ }
786
+ ]
787
+ }
788
+ }
789
+ },
790
+ {
791
+ "__schema": "ExportSchema",
792
+ "location": {
793
+ "filePath": "index.ts",
794
+ "line": 7,
795
+ "character": 10
796
+ },
797
+ "name": "ChildrenHighlighter",
798
+ "exportNode": {
799
+ "__schema": "ReactSchema",
800
+ "location": {
801
+ "filePath": "children-highlighter/children-highlighter.tsx",
802
+ "line": 7,
803
+ "character": 1
804
+ },
805
+ "signature": "function ChildrenHighlighter({ watchMotion, ...props }: ChildrenHighlighterProps): React.JSX.Element",
806
+ "name": "ChildrenHighlighter",
807
+ "props": {
808
+ "__schema": "ParameterSchema",
809
+ "location": {
810
+ "filePath": "children-highlighter/children-highlighter.tsx",
811
+ "line": 7,
812
+ "character": 37
813
+ },
814
+ "name": "{ watchMotion = false, ...props }",
815
+ "type": {
816
+ "__schema": "TypeRefSchema",
817
+ "location": {
818
+ "filePath": "children-highlighter/children-highlighter.tsx",
819
+ "line": 7,
820
+ "character": 72
821
+ },
822
+ "name": "ChildrenHighlighterProps"
823
+ },
824
+ "isOptional": false,
825
+ "objectBindingNodes": [
826
+ {
827
+ "__schema": "InferenceTypeSchema",
828
+ "location": {
829
+ "filePath": "children-highlighter/children-highlighter.tsx",
830
+ "line": 7,
831
+ "character": 39
832
+ },
833
+ "name": "watchMotion",
834
+ "type": "boolean",
835
+ "defaultValue": "false",
836
+ "isSpread": false
837
+ },
838
+ {
839
+ "__schema": "InferenceTypeSchema",
840
+ "location": {
841
+ "filePath": "children-highlighter/children-highlighter.tsx",
842
+ "line": 7,
843
+ "character": 63
844
+ },
845
+ "name": "props",
846
+ "type": "{\n disabled?: boolean;\n debounceSelection?: number;\n placement?: Placement;\n rule?: MatchRule;\n componentRule?: ComponentMatchRule;\n classes?: HighlightClasses;\n ... 262 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
847
+ "isSpread": true
848
+ }
849
+ ],
850
+ "isSpread": false
851
+ },
852
+ "returnType": {
853
+ "__schema": "TypeRefSchema",
854
+ "location": {
855
+ "filePath": "children-highlighter/children-highlighter.tsx",
856
+ "line": 7,
857
+ "character": 1
858
+ },
859
+ "name": "React.JSX.Element",
860
+ "packageName": "react"
861
+ },
862
+ "modifiers": [
863
+ "export"
864
+ ]
865
+ }
866
+ },
867
+ {
868
+ "__schema": "ExportSchema",
869
+ "location": {
870
+ "filePath": "index.ts",
871
+ "line": 8,
872
+ "character": 15
873
+ },
874
+ "name": "ChildrenHighlighterProps",
875
+ "exportNode": {
876
+ "__schema": "TypeSchema",
877
+ "location": {
878
+ "filePath": "children-highlighter/children-highlighter.tsx",
879
+ "line": 5,
880
+ "character": 1
881
+ },
882
+ "signature": "type ChildrenHighlighterProps = {\n disabled?: boolean;\n debounceSelection?: number;\n watchMotion?: boolean;\n placement?: Placement;\n rule?: MatchRule;\n componentRule?: ComponentMatchRule;\n ... 263 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
883
+ "name": "ChildrenHighlighterProps",
884
+ "type": {
885
+ "__schema": "TypeRefSchema",
886
+ "location": {
887
+ "filePath": "children-highlighter/children-highlighter.tsx",
888
+ "line": 5,
889
+ "character": 40
890
+ },
891
+ "name": "Omit",
892
+ "typeArgs": [
893
+ {
894
+ "__schema": "TypeRefSchema",
895
+ "location": {
896
+ "filePath": "children-highlighter/children-highlighter.tsx",
897
+ "line": 5,
898
+ "character": 45
899
+ },
900
+ "name": "HybridHighlighterProps"
901
+ },
902
+ {
903
+ "__schema": "LiteralTypeSchema",
904
+ "location": {
905
+ "filePath": "children-highlighter/children-highlighter.tsx",
906
+ "line": 5,
907
+ "character": 69
908
+ },
909
+ "name": "'mode'"
910
+ }
911
+ ]
912
+ }
913
+ }
914
+ },
915
+ {
916
+ "__schema": "ExportSchema",
917
+ "location": {
918
+ "filePath": "index.ts",
919
+ "line": 10,
920
+ "character": 10
921
+ },
922
+ "name": "ElementHighlighter",
923
+ "exportNode": {
924
+ "__schema": "ReactSchema",
925
+ "location": {
926
+ "filePath": "element-highlighter/element-highlighter.tsx",
927
+ "line": 31,
928
+ "character": 1
929
+ },
930
+ "signature": "function ElementHighlighter({ targetRef, components, placement, watchMotion, className, classes, ...props }: ElementHighlighterProps): React.JSX.Element",
931
+ "name": "ElementHighlighter",
932
+ "props": {
933
+ "__schema": "ParameterSchema",
934
+ "location": {
935
+ "filePath": "element-highlighter/element-highlighter.tsx",
936
+ "line": 31,
937
+ "character": 36
938
+ },
939
+ "name": "{ targetRef, components, placement = 'top', watchMotion, className, classes, ...props }",
940
+ "type": {
941
+ "__schema": "TypeRefSchema",
942
+ "location": {
943
+ "filePath": "element-highlighter/element-highlighter.tsx",
944
+ "line": 39,
945
+ "character": 4
946
+ },
947
+ "name": "ElementHighlighterProps"
948
+ },
949
+ "isOptional": false,
950
+ "objectBindingNodes": [
951
+ {
952
+ "__schema": "InferenceTypeSchema",
953
+ "location": {
954
+ "filePath": "element-highlighter/element-highlighter.tsx",
955
+ "line": 32,
956
+ "character": 3
957
+ },
958
+ "name": "targetRef",
959
+ "type": "React.RefObject<HTMLElement>",
960
+ "isSpread": false
961
+ },
962
+ {
963
+ "__schema": "InferenceTypeSchema",
964
+ "location": {
965
+ "filePath": "element-highlighter/element-highlighter.tsx",
966
+ "line": 33,
967
+ "character": 3
968
+ },
969
+ "name": "components",
970
+ "type": "(string | ComponentMetaHolder)[]",
971
+ "isSpread": false
972
+ },
973
+ {
974
+ "__schema": "InferenceTypeSchema",
975
+ "location": {
976
+ "filePath": "element-highlighter/element-highlighter.tsx",
977
+ "line": 34,
978
+ "character": 3
979
+ },
980
+ "name": "placement",
981
+ "type": "Placement",
982
+ "defaultValue": "'top'",
983
+ "isSpread": false
984
+ },
985
+ {
986
+ "__schema": "InferenceTypeSchema",
987
+ "location": {
988
+ "filePath": "element-highlighter/element-highlighter.tsx",
989
+ "line": 35,
990
+ "character": 3
991
+ },
992
+ "name": "watchMotion",
993
+ "type": "boolean",
994
+ "isSpread": false
995
+ },
996
+ {
997
+ "__schema": "InferenceTypeSchema",
998
+ "location": {
999
+ "filePath": "element-highlighter/element-highlighter.tsx",
1000
+ "line": 36,
1001
+ "character": 3
1002
+ },
1003
+ "name": "className",
1004
+ "type": "string",
1005
+ "isSpread": false
1006
+ },
1007
+ {
1008
+ "__schema": "InferenceTypeSchema",
1009
+ "location": {
1010
+ "filePath": "element-highlighter/element-highlighter.tsx",
1011
+ "line": 37,
1012
+ "character": 3
1013
+ },
1014
+ "name": "classes",
1015
+ "type": "HighlightClasses",
1016
+ "isSpread": false
1017
+ },
1018
+ {
1019
+ "__schema": "InferenceTypeSchema",
1020
+ "location": {
1021
+ "filePath": "element-highlighter/element-highlighter.tsx",
1022
+ "line": 38,
1023
+ "character": 6
1024
+ },
1025
+ "name": "props",
1026
+ "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 251 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
1027
+ "isSpread": true
1028
+ }
1029
+ ],
1030
+ "isSpread": false
1031
+ },
1032
+ "returnType": {
1033
+ "__schema": "TypeRefSchema",
1034
+ "location": {
1035
+ "filePath": "element-highlighter/element-highlighter.tsx",
1036
+ "line": 31,
1037
+ "character": 1
1038
+ },
1039
+ "name": "React.JSX.Element",
1040
+ "packageName": "react"
1041
+ },
1042
+ "modifiers": [
1043
+ "export"
1044
+ ]
1045
+ }
1046
+ },
1047
+ {
1048
+ "__schema": "ExportSchema",
1049
+ "location": {
1050
+ "filePath": "index.ts",
1051
+ "line": 11,
1052
+ "character": 15
1053
+ },
1054
+ "name": "ElementHighlighterProps",
1055
+ "exportNode": {
1056
+ "__schema": "InterfaceSchema",
1057
+ "location": {
1058
+ "filePath": "element-highlighter/element-highlighter.tsx",
1059
+ "line": 9,
1060
+ "character": 1
1061
+ },
1062
+ "signature": "interface ElementHighlighterProps",
1063
+ "name": "ElementHighlighterProps",
1064
+ "members": [
1065
+ {
1066
+ "__schema": "VariableLikeSchema",
1067
+ "location": {
1068
+ "filePath": "element-highlighter/element-highlighter.tsx",
1069
+ "line": 11,
1070
+ "character": 3
1071
+ },
1072
+ "doc": {
1073
+ "__schema": "DocSchema",
1074
+ "location": {
1075
+ "filePath": "element-highlighter/element-highlighter.tsx",
1076
+ "line": 10,
1077
+ "character": 3
1078
+ },
1079
+ "raw": "/** highlight this element */",
1080
+ "comment": "highlight this element"
1081
+ },
1082
+ "signature": "(property) ElementHighlighterProps.targetRef: React.RefObject<HTMLElement>",
1083
+ "name": "targetRef",
1084
+ "type": {
1085
+ "__schema": "TypeRefSchema",
1086
+ "location": {
1087
+ "filePath": "element-highlighter/element-highlighter.tsx",
1088
+ "line": 11,
1089
+ "character": 14
1090
+ },
1091
+ "name": "RefObject",
1092
+ "packageName": "react",
1093
+ "typeArgs": [
1094
+ {
1095
+ "__schema": "TypeUnionSchema",
1096
+ "location": {
1097
+ "filePath": "element-highlighter/element-highlighter.tsx",
1098
+ "line": 11,
1099
+ "character": 24
1100
+ },
1101
+ "types": [
1102
+ {
1103
+ "__schema": "TypeRefSchema",
1104
+ "location": {
1105
+ "filePath": "element-highlighter/element-highlighter.tsx",
1106
+ "line": 11,
1107
+ "character": 24
1108
+ },
1109
+ "name": "HTMLElement"
1110
+ },
1111
+ {
1112
+ "__schema": "LiteralTypeSchema",
1113
+ "location": {
1114
+ "filePath": "element-highlighter/element-highlighter.tsx",
1115
+ "line": 11,
1116
+ "character": 38
1117
+ },
1118
+ "name": "null"
1119
+ }
1120
+ ]
1121
+ }
1122
+ ]
1123
+ },
1124
+ "isOptional": false
1125
+ },
1126
+ {
1127
+ "__schema": "VariableLikeSchema",
1128
+ "location": {
1129
+ "filePath": "element-highlighter/element-highlighter.tsx",
1130
+ "line": 13,
1131
+ "character": 3
1132
+ },
1133
+ "doc": {
1134
+ "__schema": "DocSchema",
1135
+ "location": {
1136
+ "filePath": "element-highlighter/element-highlighter.tsx",
1137
+ "line": 12,
1138
+ "character": 3
1139
+ },
1140
+ "raw": "/** components with metadata to show in the label */",
1141
+ "comment": "components with metadata to show in the label"
1142
+ },
1143
+ "signature": "(property) ElementHighlighterProps.components?: (string | ComponentMetaHolder)[]",
1144
+ "name": "components",
1145
+ "type": {
1146
+ "__schema": "TypeArraySchema",
1147
+ "location": {
1148
+ "filePath": "element-highlighter/element-highlighter.tsx",
1149
+ "line": 13,
1150
+ "character": 16
1151
+ },
1152
+ "type": {
1153
+ "__schema": "ParenthesizedTypeSchema",
1154
+ "location": {
1155
+ "filePath": "element-highlighter/element-highlighter.tsx",
1156
+ "line": 13,
1157
+ "character": 16
1158
+ },
1159
+ "type": {
1160
+ "__schema": "TypeUnionSchema",
1161
+ "location": {
1162
+ "filePath": "element-highlighter/element-highlighter.tsx",
1163
+ "line": 13,
1164
+ "character": 17
1165
+ },
1166
+ "types": [
1167
+ {
1168
+ "__schema": "TypeRefSchema",
1169
+ "location": {
1170
+ "filePath": "element-highlighter/element-highlighter.tsx",
1171
+ "line": 13,
1172
+ "character": 17
1173
+ },
1174
+ "name": "ComponentMetaHolder",
1175
+ "componentId": {
1176
+ "scope": "teambit.react",
1177
+ "name": "ui/highlighter/component-metadata/bit-component-meta",
1178
+ "version": "0.0.21"
1179
+ }
1180
+ },
1181
+ {
1182
+ "__schema": "KeywordTypeSchema",
1183
+ "location": {
1184
+ "filePath": "element-highlighter/element-highlighter.tsx",
1185
+ "line": 13,
1186
+ "character": 39
1187
+ },
1188
+ "name": "string"
1189
+ }
1190
+ ]
1191
+ }
1192
+ }
1193
+ },
1194
+ "isOptional": true
1195
+ },
1196
+ {
1197
+ "__schema": "VariableLikeSchema",
1198
+ "location": {
1199
+ "filePath": "element-highlighter/element-highlighter.tsx",
1200
+ "line": 16,
1201
+ "character": 3
1202
+ },
1203
+ "doc": {
1204
+ "__schema": "DocSchema",
1205
+ "location": {
1206
+ "filePath": "element-highlighter/element-highlighter.tsx",
1207
+ "line": 15,
1208
+ "character": 3
1209
+ },
1210
+ "raw": "/** default location of the label */",
1211
+ "comment": "default location of the label"
1212
+ },
1213
+ "signature": "(property) ElementHighlighterProps.placement?: Placement",
1214
+ "name": "placement",
1215
+ "type": {
1216
+ "__schema": "TypeRefSchema",
1217
+ "location": {
1218
+ "filePath": "element-highlighter/element-highlighter.tsx",
1219
+ "line": 16,
1220
+ "character": 3
1221
+ },
1222
+ "name": "Placement"
1223
+ },
1224
+ "isOptional": true
1225
+ },
1226
+ {
1227
+ "__schema": "VariableLikeSchema",
1228
+ "location": {
1229
+ "filePath": "element-highlighter/element-highlighter.tsx",
1230
+ "line": 18,
1231
+ "character": 3
1232
+ },
1233
+ "doc": {
1234
+ "__schema": "DocSchema",
1235
+ "location": {
1236
+ "filePath": "element-highlighter/element-highlighter.tsx",
1237
+ "line": 17,
1238
+ "character": 3
1239
+ },
1240
+ "raw": "/** customize styles */",
1241
+ "comment": "customize styles"
1242
+ },
1243
+ "signature": "(property) ElementHighlighterProps.classes?: HighlightClasses",
1244
+ "name": "classes",
1245
+ "type": {
1246
+ "__schema": "TypeRefSchema",
1247
+ "location": {
1248
+ "filePath": "element-highlighter/element-highlighter.tsx",
1249
+ "line": 18,
1250
+ "character": 3
1251
+ },
1252
+ "name": "HighlightClasses"
1253
+ },
1254
+ "isOptional": true
1255
+ },
1256
+ {
1257
+ "__schema": "VariableLikeSchema",
1258
+ "location": {
1259
+ "filePath": "element-highlighter/element-highlighter.tsx",
1260
+ "line": 20,
1261
+ "character": 3
1262
+ },
1263
+ "doc": {
1264
+ "__schema": "DocSchema",
1265
+ "location": {
1266
+ "filePath": "element-highlighter/element-highlighter.tsx",
1267
+ "line": 19,
1268
+ "character": 3
1269
+ },
1270
+ "raw": "/** continually update highlighter to match moving elements */",
1271
+ "comment": "continually update highlighter to match moving elements"
1272
+ },
1273
+ "signature": "(property) ElementHighlighterProps.watchMotion?: boolean",
1274
+ "name": "watchMotion",
1275
+ "type": {
1276
+ "__schema": "KeywordTypeSchema",
1277
+ "location": {
1278
+ "filePath": "element-highlighter/element-highlighter.tsx",
1279
+ "line": 20,
1280
+ "character": 17
1281
+ },
1282
+ "name": "boolean"
1283
+ },
1284
+ "isOptional": true
1285
+ }
1286
+ ],
1287
+ "extendsNodes": [
1288
+ {
1289
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1290
+ "location": {
1291
+ "filePath": "element-highlighter/element-highlighter.tsx",
1292
+ "line": 9,
1293
+ "character": 50
1294
+ },
1295
+ "name": "extends React.HTMLAttributes<HTMLDivElement>",
1296
+ "typeArgs": [
1297
+ {
1298
+ "__schema": "TypeRefSchema",
1299
+ "location": {
1300
+ "filePath": "element-highlighter/element-highlighter.tsx",
1301
+ "line": 9,
1302
+ "character": 71
1303
+ },
1304
+ "name": "HTMLDivElement"
1305
+ }
1306
+ ],
1307
+ "expression": {
1308
+ "__schema": "TypeRefSchema",
1309
+ "location": {
1310
+ "filePath": "element-highlighter/element-highlighter.tsx",
1311
+ "line": 9,
1312
+ "character": 50
1313
+ },
1314
+ "name": "React",
1315
+ "packageName": "/tmp/capsules-root/sign-capsules/2024-5-21/v98z65/teambit.react_ui_component-highlighter@8ff9cdb292ef95ab5647b5b8034ea2519b829c6c/element-highlighter/element-highlighter.tsx"
1316
+ }
1317
+ }
1318
+ ]
1319
+ }
1320
+ },
1321
+ {
1322
+ "__schema": "ExportSchema",
1323
+ "location": {
1324
+ "filePath": "index.ts",
1325
+ "line": 11,
1326
+ "character": 40
1327
+ },
1328
+ "name": "Placement",
1329
+ "exportNode": {
1330
+ "__schema": "TypeRefSchema",
1331
+ "location": {
1332
+ "filePath": "index.ts",
1333
+ "line": 11,
1334
+ "character": 40
1335
+ },
1336
+ "name": "Placement"
1337
+ }
1338
+ },
1339
+ {
1340
+ "__schema": "ExportSchema",
1341
+ "location": {
1342
+ "filePath": "index.ts",
1343
+ "line": 11,
1344
+ "character": 51
1345
+ },
1346
+ "name": "HighlightClasses",
1347
+ "exportNode": {
1348
+ "__schema": "TypeSchema",
1349
+ "location": {
1350
+ "filePath": "element-highlighter/element-highlighter.tsx",
1351
+ "line": 25,
1352
+ "character": 1
1353
+ },
1354
+ "signature": "type HighlightClasses = {\n container?: string;\n frame?: string;\n label?: string;\n}",
1355
+ "name": "HighlightClasses",
1356
+ "type": {
1357
+ "__schema": "TypeLiteralSchema",
1358
+ "location": {
1359
+ "filePath": "element-highlighter/element-highlighter.tsx",
1360
+ "line": 25,
1361
+ "character": 32
1362
+ },
1363
+ "members": [
1364
+ {
1365
+ "__schema": "VariableLikeSchema",
1366
+ "location": {
1367
+ "filePath": "element-highlighter/element-highlighter.tsx",
1368
+ "line": 26,
1369
+ "character": 3
1370
+ },
1371
+ "signature": "(property) container?: string",
1372
+ "name": "container",
1373
+ "type": {
1374
+ "__schema": "KeywordTypeSchema",
1375
+ "location": {
1376
+ "filePath": "element-highlighter/element-highlighter.tsx",
1377
+ "line": 26,
1378
+ "character": 15
1379
+ },
1380
+ "name": "string"
1381
+ },
1382
+ "isOptional": true
1383
+ },
1384
+ {
1385
+ "__schema": "VariableLikeSchema",
1386
+ "location": {
1387
+ "filePath": "element-highlighter/element-highlighter.tsx",
1388
+ "line": 27,
1389
+ "character": 3
1390
+ },
1391
+ "signature": "(property) frame?: string",
1392
+ "name": "frame",
1393
+ "type": {
1394
+ "__schema": "KeywordTypeSchema",
1395
+ "location": {
1396
+ "filePath": "element-highlighter/element-highlighter.tsx",
1397
+ "line": 27,
1398
+ "character": 11
1399
+ },
1400
+ "name": "string"
1401
+ },
1402
+ "isOptional": true
1403
+ },
1404
+ {
1405
+ "__schema": "VariableLikeSchema",
1406
+ "location": {
1407
+ "filePath": "element-highlighter/element-highlighter.tsx",
1408
+ "line": 28,
1409
+ "character": 3
1410
+ },
1411
+ "signature": "(property) label?: string",
1412
+ "name": "label",
1413
+ "type": {
1414
+ "__schema": "KeywordTypeSchema",
1415
+ "location": {
1416
+ "filePath": "element-highlighter/element-highlighter.tsx",
1417
+ "line": 28,
1418
+ "character": 11
1419
+ },
1420
+ "name": "string"
1421
+ },
1422
+ "isOptional": true
1423
+ }
1424
+ ]
1425
+ }
1426
+ }
1427
+ },
1428
+ {
1429
+ "__schema": "ExportSchema",
1430
+ "location": {
1431
+ "filePath": "index.ts",
1432
+ "line": 14,
1433
+ "character": 3
1434
+ },
1435
+ "name": "ExcludeHighlighter",
1436
+ "exportNode": {
1437
+ "__schema": "ReactSchema",
1438
+ "location": {
1439
+ "filePath": "ignore-highlighter.tsx",
1440
+ "line": 13,
1441
+ "character": 1
1442
+ },
1443
+ "doc": {
1444
+ "__schema": "DocSchema",
1445
+ "location": {
1446
+ "filePath": "ignore-highlighter.tsx",
1447
+ "line": 12,
1448
+ "character": 1
1449
+ },
1450
+ "raw": "/** children of this element will be excluded by the automatic highlighter */",
1451
+ "comment": "children of this element will be excluded by the automatic highlighter"
1452
+ },
1453
+ "signature": "function ExcludeHighlighter(props: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element",
1454
+ "name": "ExcludeHighlighter",
1455
+ "props": {
1456
+ "__schema": "ParameterSchema",
1457
+ "location": {
1458
+ "filePath": "ignore-highlighter.tsx",
1459
+ "line": 13,
1460
+ "character": 36
1461
+ },
1462
+ "name": "props",
1463
+ "type": {
1464
+ "__schema": "TypeRefSchema",
1465
+ "location": {
1466
+ "filePath": "ignore-highlighter.tsx",
1467
+ "line": 13,
1468
+ "character": 43
1469
+ },
1470
+ "name": "React.HTMLAttributes",
1471
+ "typeArgs": [
1472
+ {
1473
+ "__schema": "TypeRefSchema",
1474
+ "location": {
1475
+ "filePath": "ignore-highlighter.tsx",
1476
+ "line": 13,
1477
+ "character": 64
1478
+ },
1479
+ "name": "HTMLDivElement"
1480
+ }
1481
+ ]
1482
+ },
1483
+ "isOptional": false,
1484
+ "isSpread": false
1485
+ },
1486
+ "returnType": {
1487
+ "__schema": "TypeRefSchema",
1488
+ "location": {
1489
+ "filePath": "ignore-highlighter.tsx",
1490
+ "line": 13,
1491
+ "character": 1
1492
+ },
1493
+ "name": "React.JSX.Element",
1494
+ "packageName": "react"
1495
+ },
1496
+ "modifiers": [
1497
+ "export"
1498
+ ]
1499
+ }
1500
+ },
1501
+ {
1502
+ "__schema": "ExportSchema",
1503
+ "location": {
1504
+ "filePath": "index.ts",
1505
+ "line": 15,
1506
+ "character": 3
1507
+ },
1508
+ "name": "excludeHighlighterAtt",
1509
+ "exportNode": {
1510
+ "__schema": "VariableLikeSchema",
1511
+ "location": {
1512
+ "filePath": "ignore-highlighter.tsx",
1513
+ "line": 10,
1514
+ "character": 14
1515
+ },
1516
+ "signature": "const excludeHighlighterAtt: {\n \"data-ignore-component-highlight\": boolean;\n}",
1517
+ "name": "excludeHighlighterAtt",
1518
+ "type": {
1519
+ "__schema": "InferenceTypeSchema",
1520
+ "location": {
1521
+ "filePath": "ignore-highlighter.tsx",
1522
+ "line": 10,
1523
+ "character": 14
1524
+ },
1525
+ "type": "{\n \"data-ignore-component-highlight\": boolean;\n}"
1526
+ },
1527
+ "isOptional": false,
1528
+ "defaultValue": "{ [excludeHighlighterAttrName]: true }"
1529
+ }
1530
+ },
1531
+ {
1532
+ "__schema": "ExportSchema",
1533
+ "location": {
1534
+ "filePath": "index.ts",
1535
+ "line": 16,
1536
+ "character": 3
1537
+ },
1538
+ "name": "excludeHighlighterAttrName",
1539
+ "exportNode": {
1540
+ "__schema": "VariableLikeSchema",
1541
+ "location": {
1542
+ "filePath": "ignore-highlighter.tsx",
1543
+ "line": 4,
1544
+ "character": 14
1545
+ },
1546
+ "signature": "const excludeHighlighterAttrName: \"data-ignore-component-highlight\"",
1547
+ "name": "excludeHighlighterAttrName",
1548
+ "type": {
1549
+ "__schema": "InferenceTypeSchema",
1550
+ "location": {
1551
+ "filePath": "ignore-highlighter.tsx",
1552
+ "line": 4,
1553
+ "character": 14
1554
+ },
1555
+ "type": "\"data-ignore-component-highlight\""
1556
+ },
1557
+ "isOptional": false,
1558
+ "defaultValue": "'data-ignore-component-highlight'"
1559
+ }
1560
+ },
1561
+ {
1562
+ "__schema": "ExportSchema",
1563
+ "location": {
1564
+ "filePath": "index.ts",
1565
+ "line": 17,
1566
+ "character": 3
1567
+ },
1568
+ "name": "skipHighlighterAttr",
1569
+ "exportNode": {
1570
+ "__schema": "VariableLikeSchema",
1571
+ "location": {
1572
+ "filePath": "ignore-highlighter.tsx",
1573
+ "line": 20,
1574
+ "character": 14
1575
+ },
1576
+ "signature": "const skipHighlighterAttr: {\n \"data-skip-component-highlight\": boolean;\n}",
1577
+ "name": "skipHighlighterAttr",
1578
+ "type": {
1579
+ "__schema": "InferenceTypeSchema",
1580
+ "location": {
1581
+ "filePath": "ignore-highlighter.tsx",
1582
+ "line": 20,
1583
+ "character": 14
1584
+ },
1585
+ "type": "{\n \"data-skip-component-highlight\": boolean;\n}"
1586
+ },
1587
+ "isOptional": false,
1588
+ "defaultValue": "{ [skipHighlighterAttrName]: true }"
1589
+ }
1590
+ },
1591
+ {
1592
+ "__schema": "ExportSchema",
1593
+ "location": {
1594
+ "filePath": "index.ts",
1595
+ "line": 18,
1596
+ "character": 3
1597
+ },
1598
+ "name": "skipHighlighterAttrName",
1599
+ "exportNode": {
1600
+ "__schema": "VariableLikeSchema",
1601
+ "location": {
1602
+ "filePath": "ignore-highlighter.tsx",
1603
+ "line": 18,
1604
+ "character": 14
1605
+ },
1606
+ "signature": "const skipHighlighterAttrName: \"data-skip-component-highlight\"",
1607
+ "name": "skipHighlighterAttrName",
1608
+ "type": {
1609
+ "__schema": "InferenceTypeSchema",
1610
+ "location": {
1611
+ "filePath": "ignore-highlighter.tsx",
1612
+ "line": 18,
1613
+ "character": 14
1614
+ },
1615
+ "type": "\"data-skip-component-highlight\""
1616
+ },
1617
+ "isOptional": false,
1618
+ "defaultValue": "'data-skip-component-highlight'"
1619
+ }
1620
+ },
1621
+ {
1622
+ "__schema": "ExportSchema",
1623
+ "location": {
1624
+ "filePath": "index.ts",
1625
+ "line": 21,
1626
+ "character": 15
1627
+ },
1628
+ "name": "MatchRule",
1629
+ "exportNode": {
1630
+ "__schema": "TypeSchema",
1631
+ "location": {
1632
+ "filePath": "rule-matcher.tsx",
1633
+ "line": 5,
1634
+ "character": 1
1635
+ },
1636
+ "signature": "type MatchRule = string | ((element: HTMLElement) => boolean)",
1637
+ "name": "MatchRule",
1638
+ "type": {
1639
+ "__schema": "TypeUnionSchema",
1640
+ "location": {
1641
+ "filePath": "rule-matcher.tsx",
1642
+ "line": 5,
1643
+ "character": 25
1644
+ },
1645
+ "types": [
1646
+ {
1647
+ "__schema": "KeywordTypeSchema",
1648
+ "location": {
1649
+ "filePath": "rule-matcher.tsx",
1650
+ "line": 5,
1651
+ "character": 25
1652
+ },
1653
+ "name": "undefined"
1654
+ },
1655
+ {
1656
+ "__schema": "KeywordTypeSchema",
1657
+ "location": {
1658
+ "filePath": "rule-matcher.tsx",
1659
+ "line": 5,
1660
+ "character": 37
1661
+ },
1662
+ "name": "string"
1663
+ },
1664
+ {
1665
+ "__schema": "ParenthesizedTypeSchema",
1666
+ "location": {
1667
+ "filePath": "rule-matcher.tsx",
1668
+ "line": 5,
1669
+ "character": 46
1670
+ },
1671
+ "type": {
1672
+ "__schema": "FunctionLikeSchema",
1673
+ "location": {
1674
+ "filePath": "rule-matcher.tsx",
1675
+ "line": 5,
1676
+ "character": 47
1677
+ },
1678
+ "signature": "(element: HTMLElement): boolean",
1679
+ "name": "",
1680
+ "params": [
1681
+ {
1682
+ "__schema": "ParameterSchema",
1683
+ "location": {
1684
+ "filePath": "rule-matcher.tsx",
1685
+ "line": 5,
1686
+ "character": 48
1687
+ },
1688
+ "name": "element",
1689
+ "type": {
1690
+ "__schema": "TypeRefSchema",
1691
+ "location": {
1692
+ "filePath": "rule-matcher.tsx",
1693
+ "line": 5,
1694
+ "character": 57
1695
+ },
1696
+ "name": "HTMLElement"
1697
+ },
1698
+ "isOptional": false,
1699
+ "isSpread": false
1700
+ }
1701
+ ],
1702
+ "returnType": {
1703
+ "__schema": "KeywordTypeSchema",
1704
+ "location": {
1705
+ "filePath": "rule-matcher.tsx",
1706
+ "line": 5,
1707
+ "character": 73
1708
+ },
1709
+ "name": "boolean"
1710
+ },
1711
+ "modifiers": []
1712
+ }
1713
+ }
1714
+ ]
1715
+ }
1716
+ }
1717
+ }
1718
+ ],
1719
+ "internals": []
1720
+ },
1721
+ "internals": [
1722
+ {
1723
+ "__schema": "ModuleSchema",
1724
+ "location": {
1725
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1726
+ "line": 1,
1727
+ "character": 1
1728
+ },
1729
+ "exports": [
1730
+ {
1731
+ "__schema": "InterfaceSchema",
1732
+ "location": {
1733
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1734
+ "line": 14,
1735
+ "character": 1
1736
+ },
1737
+ "signature": "interface HybridHighlighterProps",
1738
+ "name": "HybridHighlighterProps",
1739
+ "members": [
1740
+ {
1741
+ "__schema": "VariableLikeSchema",
1742
+ "location": {
1743
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1744
+ "line": 16,
1745
+ "character": 3
1746
+ },
1747
+ "doc": {
1748
+ "__schema": "DocSchema",
1749
+ "location": {
1750
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1751
+ "line": 15,
1752
+ "character": 3
1753
+ },
1754
+ "raw": "/** stop all highlighting and drop listeners */",
1755
+ "comment": "stop all highlighting and drop listeners"
1756
+ },
1757
+ "signature": "(property) HybridHighlighterProps.disabled?: boolean",
1758
+ "name": "disabled",
1759
+ "type": {
1760
+ "__schema": "KeywordTypeSchema",
1761
+ "location": {
1762
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1763
+ "line": 16,
1764
+ "character": 14
1765
+ },
1766
+ "name": "boolean"
1767
+ },
1768
+ "isOptional": true
1769
+ },
1770
+ {
1771
+ "__schema": "VariableLikeSchema",
1772
+ "location": {
1773
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1774
+ "line": 18,
1775
+ "character": 3
1776
+ },
1777
+ "doc": {
1778
+ "__schema": "DocSchema",
1779
+ "location": {
1780
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1781
+ "line": 17,
1782
+ "character": 3
1783
+ },
1784
+ "raw": "/** default pop location for the label */",
1785
+ "comment": "default pop location for the label"
1786
+ },
1787
+ "signature": "(property) HybridHighlighterProps.placement?: Placement",
1788
+ "name": "placement",
1789
+ "type": {
1790
+ "__schema": "TypeRefSchema",
1791
+ "location": {
1792
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1793
+ "line": 18,
1794
+ "character": 3
1795
+ },
1796
+ "name": "Placement"
1797
+ },
1798
+ "isOptional": true
1799
+ },
1800
+ {
1801
+ "__schema": "VariableLikeSchema",
1802
+ "location": {
1803
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1804
+ "line": 20,
1805
+ "character": 3
1806
+ },
1807
+ "doc": {
1808
+ "__schema": "DocSchema",
1809
+ "location": {
1810
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1811
+ "line": 19,
1812
+ "character": 3
1813
+ },
1814
+ "raw": "/** customize styles */",
1815
+ "comment": "customize styles"
1816
+ },
1817
+ "signature": "(property) HybridHighlighterProps.classes?: HighlightClasses",
1818
+ "name": "classes",
1819
+ "type": {
1820
+ "__schema": "TypeRefSchema",
1821
+ "location": {
1822
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1823
+ "line": 20,
1824
+ "character": 3
1825
+ },
1826
+ "name": "HighlightClasses"
1827
+ },
1828
+ "isOptional": true
1829
+ },
1830
+ {
1831
+ "__schema": "VariableLikeSchema",
1832
+ "location": {
1833
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1834
+ "line": 22,
1835
+ "character": 3
1836
+ },
1837
+ "doc": {
1838
+ "__schema": "DocSchema",
1839
+ "location": {
1840
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1841
+ "line": 21,
1842
+ "character": 3
1843
+ },
1844
+ "raw": "/** customize highlighter */",
1845
+ "comment": "customize highlighter"
1846
+ },
1847
+ "signature": "(property) HybridHighlighterProps.highlightStyle?: React.CSSProperties",
1848
+ "name": "highlightStyle",
1849
+ "type": {
1850
+ "__schema": "TypeRefSchema",
1851
+ "location": {
1852
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1853
+ "line": 22,
1854
+ "character": 20
1855
+ },
1856
+ "name": "CSSProperties",
1857
+ "packageName": "react"
1858
+ },
1859
+ "isOptional": true
1860
+ },
1861
+ {
1862
+ "__schema": "VariableLikeSchema",
1863
+ "location": {
1864
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1865
+ "line": 28,
1866
+ "character": 3
1867
+ },
1868
+ "doc": {
1869
+ "__schema": "DocSchema",
1870
+ "location": {
1871
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1872
+ "line": 23,
1873
+ "character": 3
1874
+ },
1875
+ "raw": "/** debounces element hover selection.\n * A higher value will reduce element lookups as well as \"keep\" the highlight on the current element for longer.\n * Initial selection (when no element is currently selected) will always happen immediately to improve the user experience.\n * @default 80ms\n */",
1876
+ "comment": "debounces element hover selection.\nA higher value will reduce element lookups as well as \"keep\" the highlight on the current element for longer.\nInitial selection (when no element is currently selected) will always happen immediately to improve the user experience.",
1877
+ "tags": [
1878
+ {
1879
+ "__schema": "TagSchema",
1880
+ "location": {
1881
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1882
+ "line": 26,
1883
+ "character": 6
1884
+ },
1885
+ "tagName": "default",
1886
+ "comment": "80ms"
1887
+ }
1888
+ ]
1889
+ },
1890
+ "signature": "(property) HybridHighlighterProps.debounceSelection?: number",
1891
+ "name": "debounceSelection",
1892
+ "type": {
1893
+ "__schema": "KeywordTypeSchema",
1894
+ "location": {
1895
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1896
+ "line": 28,
1897
+ "character": 23
1898
+ },
1899
+ "name": "number"
1900
+ },
1901
+ "isOptional": true
1902
+ },
1903
+ {
1904
+ "__schema": "VariableLikeSchema",
1905
+ "location": {
1906
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1907
+ "line": 30,
1908
+ "character": 3
1909
+ },
1910
+ "doc": {
1911
+ "__schema": "DocSchema",
1912
+ "location": {
1913
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1914
+ "line": 29,
1915
+ "character": 3
1916
+ },
1917
+ "raw": "/** continually update frame position to match moving elements */",
1918
+ "comment": "continually update frame position to match moving elements"
1919
+ },
1920
+ "signature": "(property) HybridHighlighterProps.watchMotion?: boolean",
1921
+ "name": "watchMotion",
1922
+ "type": {
1923
+ "__schema": "KeywordTypeSchema",
1924
+ "location": {
1925
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1926
+ "line": 30,
1927
+ "character": 17
1928
+ },
1929
+ "name": "boolean"
1930
+ },
1931
+ "isOptional": true
1932
+ },
1933
+ {
1934
+ "__schema": "VariableLikeSchema",
1935
+ "location": {
1936
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1937
+ "line": 33,
1938
+ "character": 3
1939
+ },
1940
+ "doc": {
1941
+ "__schema": "DocSchema",
1942
+ "location": {
1943
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1944
+ "line": 32,
1945
+ "character": 3
1946
+ },
1947
+ "raw": "/** filter highlighter targets by this query selector. (May be a more complex object in the future) */",
1948
+ "comment": "filter highlighter targets by this query selector. (May be a more complex object in the future)"
1949
+ },
1950
+ "signature": "(property) HybridHighlighterProps.rule?: MatchRule",
1951
+ "name": "rule",
1952
+ "type": {
1953
+ "__schema": "TypeRefSchema",
1954
+ "location": {
1955
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1956
+ "line": 33,
1957
+ "character": 3
1958
+ },
1959
+ "name": "MatchRule"
1960
+ },
1961
+ "isOptional": true
1962
+ },
1963
+ {
1964
+ "__schema": "VariableLikeSchema",
1965
+ "location": {
1966
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1967
+ "line": 35,
1968
+ "character": 3
1969
+ },
1970
+ "doc": {
1971
+ "__schema": "DocSchema",
1972
+ "location": {
1973
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1974
+ "line": 34,
1975
+ "character": 3
1976
+ },
1977
+ "raw": "/** filter components to match this rule. Can be id, array of ids, or a function */",
1978
+ "comment": "filter components to match this rule. Can be id, array of ids, or a function"
1979
+ },
1980
+ "signature": "(property) HybridHighlighterProps.componentRule?: ComponentMatchRule",
1981
+ "name": "componentRule",
1982
+ "type": {
1983
+ "__schema": "TypeRefSchema",
1984
+ "location": {
1985
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1986
+ "line": 35,
1987
+ "character": 3
1988
+ },
1989
+ "name": "ComponentMatchRule",
1990
+ "internalFilePath": "rule-matcher.tsx"
1991
+ },
1992
+ "isOptional": true
1993
+ },
1994
+ {
1995
+ "__schema": "VariableLikeSchema",
1996
+ "location": {
1997
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
1998
+ "line": 42,
1999
+ "character": 3
2000
+ },
2001
+ "doc": {
2002
+ "__schema": "DocSchema",
2003
+ "location": {
2004
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2005
+ "line": 37,
2006
+ "character": 3
2007
+ },
2008
+ "raw": "/** set the behavior of the highlighter.\n * `disabled` - stops highlighting.\n * `allChildren` - highlights all components rendered under children\n * `hover` - highlighters the component immediately under the mouse cursor\n * */",
2009
+ "comment": "set the behavior of the highlighter.\n`disabled` - stops highlighting.\n`allChildren` - highlights all components rendered under children\n`hover` - highlighters the component immediately under the mouse cursor"
2010
+ },
2011
+ "signature": "(property) HybridHighlighterProps.mode?: \"allChildren\" | \"hover\"",
2012
+ "name": "mode",
2013
+ "type": {
2014
+ "__schema": "TypeUnionSchema",
2015
+ "location": {
2016
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2017
+ "line": 42,
2018
+ "character": 10
2019
+ },
2020
+ "types": [
2021
+ {
2022
+ "__schema": "LiteralTypeSchema",
2023
+ "location": {
2024
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2025
+ "line": 42,
2026
+ "character": 10
2027
+ },
2028
+ "name": "'allChildren'"
2029
+ },
2030
+ {
2031
+ "__schema": "LiteralTypeSchema",
2032
+ "location": {
2033
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2034
+ "line": 42,
2035
+ "character": 26
2036
+ },
2037
+ "name": "'hover'"
2038
+ }
2039
+ ]
2040
+ },
2041
+ "isOptional": true
2042
+ },
2043
+ {
2044
+ "__schema": "VariableLikeSchema",
2045
+ "location": {
2046
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2047
+ "line": 43,
2048
+ "character": 3
2049
+ },
2050
+ "signature": "(property) HybridHighlighterProps.bgColor?: string",
2051
+ "name": "bgColor",
2052
+ "type": {
2053
+ "__schema": "KeywordTypeSchema",
2054
+ "location": {
2055
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2056
+ "line": 43,
2057
+ "character": 13
2058
+ },
2059
+ "name": "string"
2060
+ },
2061
+ "isOptional": true
2062
+ },
2063
+ {
2064
+ "__schema": "VariableLikeSchema",
2065
+ "location": {
2066
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2067
+ "line": 44,
2068
+ "character": 3
2069
+ },
2070
+ "signature": "(property) HybridHighlighterProps.bgColorHover?: string",
2071
+ "name": "bgColorHover",
2072
+ "type": {
2073
+ "__schema": "KeywordTypeSchema",
2074
+ "location": {
2075
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2076
+ "line": 44,
2077
+ "character": 18
2078
+ },
2079
+ "name": "string"
2080
+ },
2081
+ "isOptional": true
2082
+ },
2083
+ {
2084
+ "__schema": "VariableLikeSchema",
2085
+ "location": {
2086
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2087
+ "line": 45,
2088
+ "character": 3
2089
+ },
2090
+ "signature": "(property) HybridHighlighterProps.bgColorActive?: string",
2091
+ "name": "bgColorActive",
2092
+ "type": {
2093
+ "__schema": "KeywordTypeSchema",
2094
+ "location": {
2095
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2096
+ "line": 45,
2097
+ "character": 19
2098
+ },
2099
+ "name": "string"
2100
+ },
2101
+ "isOptional": true
2102
+ }
2103
+ ],
2104
+ "extendsNodes": [
2105
+ {
2106
+ "__schema": "ExpressionWithTypeArgumentsSchema",
2107
+ "location": {
2108
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2109
+ "line": 14,
2110
+ "character": 49
2111
+ },
2112
+ "name": "extends React.HTMLAttributes<HTMLDivElement>",
2113
+ "typeArgs": [
2114
+ {
2115
+ "__schema": "TypeRefSchema",
2116
+ "location": {
2117
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2118
+ "line": 14,
2119
+ "character": 70
2120
+ },
2121
+ "name": "HTMLDivElement"
2122
+ }
2123
+ ],
2124
+ "expression": {
2125
+ "__schema": "TypeRefSchema",
2126
+ "location": {
2127
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2128
+ "line": 14,
2129
+ "character": 49
2130
+ },
2131
+ "name": "React",
2132
+ "packageName": "/tmp/capsules-root/sign-capsules/2024-5-21/v98z65/teambit.react_ui_component-highlighter@8ff9cdb292ef95ab5647b5b8034ea2519b829c6c/hybrid-highlighter/hybrid-highlighter.tsx"
2133
+ }
2134
+ }
2135
+ ]
2136
+ },
2137
+ {
2138
+ "__schema": "ReactSchema",
2139
+ "location": {
2140
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2141
+ "line": 49,
2142
+ "character": 1
2143
+ },
2144
+ "doc": {
2145
+ "__schema": "DocSchema",
2146
+ "location": {
2147
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2148
+ "line": 48,
2149
+ "character": 1
2150
+ },
2151
+ "raw": "/** automatically highlight components on hover */",
2152
+ "comment": "automatically highlight components on hover"
2153
+ },
2154
+ "signature": "function HybridHighlighter({ disabled, mode, debounceSelection, watchMotion, placement, rule, componentRule, classes, highlightStyle, className, style, bgColor, bgColorHover, bgColorActive, children, ...rest }: HybridHighlighterProps): React.JSX.Element",
2155
+ "name": "HybridHighlighter",
2156
+ "props": {
2157
+ "__schema": "ParameterSchema",
2158
+ "location": {
2159
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2160
+ "line": 49,
2161
+ "character": 35
2162
+ },
2163
+ "name": "{ disabled, mode = 'hover', debounceSelection = 80, watchMotion = true, placement, rule, componentRule, classes, highlightStyle, className, style, bgColor, bgColorHover, bgColorActive, children, ...rest }",
2164
+ "type": {
2165
+ "__schema": "TypeRefSchema",
2166
+ "location": {
2167
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2168
+ "line": 67,
2169
+ "character": 4
2170
+ },
2171
+ "name": "HybridHighlighterProps"
2172
+ },
2173
+ "isOptional": false,
2174
+ "objectBindingNodes": [
2175
+ {
2176
+ "__schema": "InferenceTypeSchema",
2177
+ "location": {
2178
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2179
+ "line": 50,
2180
+ "character": 3
2181
+ },
2182
+ "name": "disabled",
2183
+ "type": "boolean",
2184
+ "isSpread": false
2185
+ },
2186
+ {
2187
+ "__schema": "InferenceTypeSchema",
2188
+ "location": {
2189
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2190
+ "line": 51,
2191
+ "character": 3
2192
+ },
2193
+ "name": "mode",
2194
+ "type": "\"allChildren\" | \"hover\"",
2195
+ "defaultValue": "'hover'",
2196
+ "isSpread": false
2197
+ },
2198
+ {
2199
+ "__schema": "InferenceTypeSchema",
2200
+ "location": {
2201
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2202
+ "line": 52,
2203
+ "character": 3
2204
+ },
2205
+ "name": "debounceSelection",
2206
+ "type": "number",
2207
+ "defaultValue": "80",
2208
+ "isSpread": false
2209
+ },
2210
+ {
2211
+ "__schema": "InferenceTypeSchema",
2212
+ "location": {
2213
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2214
+ "line": 53,
2215
+ "character": 3
2216
+ },
2217
+ "name": "watchMotion",
2218
+ "type": "boolean",
2219
+ "defaultValue": "true",
2220
+ "isSpread": false
2221
+ },
2222
+ {
2223
+ "__schema": "InferenceTypeSchema",
2224
+ "location": {
2225
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2226
+ "line": 54,
2227
+ "character": 3
2228
+ },
2229
+ "name": "placement",
2230
+ "type": "Placement",
2231
+ "isSpread": false
2232
+ },
2233
+ {
2234
+ "__schema": "InferenceTypeSchema",
2235
+ "location": {
2236
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2237
+ "line": 55,
2238
+ "character": 3
2239
+ },
2240
+ "name": "rule",
2241
+ "type": "MatchRule",
2242
+ "isSpread": false
2243
+ },
2244
+ {
2245
+ "__schema": "InferenceTypeSchema",
2246
+ "location": {
2247
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2248
+ "line": 56,
2249
+ "character": 3
2250
+ },
2251
+ "name": "componentRule",
2252
+ "type": "ComponentMatchRule",
2253
+ "isSpread": false
2254
+ },
2255
+ {
2256
+ "__schema": "InferenceTypeSchema",
2257
+ "location": {
2258
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2259
+ "line": 58,
2260
+ "character": 3
2261
+ },
2262
+ "name": "classes",
2263
+ "type": "HighlightClasses",
2264
+ "isSpread": false
2265
+ },
2266
+ {
2267
+ "__schema": "InferenceTypeSchema",
2268
+ "location": {
2269
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2270
+ "line": 59,
2271
+ "character": 3
2272
+ },
2273
+ "name": "highlightStyle",
2274
+ "type": "React.CSSProperties",
2275
+ "isSpread": false
2276
+ },
2277
+ {
2278
+ "__schema": "InferenceTypeSchema",
2279
+ "location": {
2280
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2281
+ "line": 60,
2282
+ "character": 3
2283
+ },
2284
+ "name": "className",
2285
+ "type": "string",
2286
+ "isSpread": false
2287
+ },
2288
+ {
2289
+ "__schema": "InferenceTypeSchema",
2290
+ "location": {
2291
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2292
+ "line": 61,
2293
+ "character": 3
2294
+ },
2295
+ "name": "style",
2296
+ "type": "React.CSSProperties",
2297
+ "isSpread": false
2298
+ },
2299
+ {
2300
+ "__schema": "InferenceTypeSchema",
2301
+ "location": {
2302
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2303
+ "line": 62,
2304
+ "character": 3
2305
+ },
2306
+ "name": "bgColor",
2307
+ "type": "string",
2308
+ "isSpread": false
2309
+ },
2310
+ {
2311
+ "__schema": "InferenceTypeSchema",
2312
+ "location": {
2313
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2314
+ "line": 63,
2315
+ "character": 3
2316
+ },
2317
+ "name": "bgColorHover",
2318
+ "type": "string",
2319
+ "isSpread": false
2320
+ },
2321
+ {
2322
+ "__schema": "InferenceTypeSchema",
2323
+ "location": {
2324
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2325
+ "line": 64,
2326
+ "character": 3
2327
+ },
2328
+ "name": "bgColorActive",
2329
+ "type": "string",
2330
+ "isSpread": false
2331
+ },
2332
+ {
2333
+ "__schema": "InferenceTypeSchema",
2334
+ "location": {
2335
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2336
+ "line": 65,
2337
+ "character": 3
2338
+ },
2339
+ "name": "children",
2340
+ "type": "React.ReactNode",
2341
+ "isSpread": false
2342
+ },
2343
+ {
2344
+ "__schema": "InferenceTypeSchema",
2345
+ "location": {
2346
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2347
+ "line": 66,
2348
+ "character": 6
2349
+ },
2350
+ "name": "rest",
2351
+ "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 249 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
2352
+ "isSpread": true
2353
+ }
2354
+ ],
2355
+ "isSpread": false
2356
+ },
2357
+ "returnType": {
2358
+ "__schema": "TypeRefSchema",
2359
+ "location": {
2360
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2361
+ "line": 49,
2362
+ "character": 1
2363
+ },
2364
+ "name": "React.JSX.Element",
2365
+ "packageName": "react"
2366
+ },
2367
+ "modifiers": [
2368
+ "export"
2369
+ ]
2370
+ }
2371
+ ],
2372
+ "internals": [
2373
+ {
2374
+ "__schema": "TypeSchema",
2375
+ "location": {
2376
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2377
+ "line": 12,
2378
+ "character": 1
2379
+ },
2380
+ "signature": "type HighlightTarget = {\n element: HTMLElement;\n components: ComponentMetaHolder[];\n}",
2381
+ "name": "HighlightTarget",
2382
+ "type": {
2383
+ "__schema": "TypeLiteralSchema",
2384
+ "location": {
2385
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2386
+ "line": 12,
2387
+ "character": 24
2388
+ },
2389
+ "members": [
2390
+ {
2391
+ "__schema": "VariableLikeSchema",
2392
+ "location": {
2393
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2394
+ "line": 12,
2395
+ "character": 26
2396
+ },
2397
+ "signature": "(property) element: HTMLElement",
2398
+ "name": "element",
2399
+ "type": {
2400
+ "__schema": "TypeRefSchema",
2401
+ "location": {
2402
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2403
+ "line": 12,
2404
+ "character": 35
2405
+ },
2406
+ "name": "HTMLElement"
2407
+ },
2408
+ "isOptional": false
2409
+ },
2410
+ {
2411
+ "__schema": "VariableLikeSchema",
2412
+ "location": {
2413
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2414
+ "line": 12,
2415
+ "character": 48
2416
+ },
2417
+ "signature": "(property) components: ComponentMetaHolder[]",
2418
+ "name": "components",
2419
+ "type": {
2420
+ "__schema": "TypeArraySchema",
2421
+ "location": {
2422
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2423
+ "line": 12,
2424
+ "character": 60
2425
+ },
2426
+ "type": {
2427
+ "__schema": "TypeRefSchema",
2428
+ "location": {
2429
+ "filePath": "hybrid-highlighter/hybrid-highlighter.tsx",
2430
+ "line": 12,
2431
+ "character": 60
2432
+ },
2433
+ "name": "ComponentMetaHolder",
2434
+ "componentId": {
2435
+ "scope": "teambit.react",
2436
+ "name": "ui/highlighter/component-metadata/bit-component-meta",
2437
+ "version": "0.0.21"
2438
+ }
2439
+ }
2440
+ },
2441
+ "isOptional": false
2442
+ }
2443
+ ]
2444
+ }
2445
+ }
2446
+ ]
2447
+ },
2448
+ {
2449
+ "__schema": "ModuleSchema",
2450
+ "location": {
2451
+ "filePath": "element-highlighter/element-highlighter.tsx",
2452
+ "line": 1,
2453
+ "character": 1
2454
+ },
2455
+ "exports": [
2456
+ {
2457
+ "__schema": "InterfaceSchema",
2458
+ "location": {
2459
+ "filePath": "element-highlighter/element-highlighter.tsx",
2460
+ "line": 9,
2461
+ "character": 1
2462
+ },
2463
+ "signature": "interface ElementHighlighterProps",
2464
+ "name": "ElementHighlighterProps",
2465
+ "members": [
2466
+ {
2467
+ "__schema": "VariableLikeSchema",
2468
+ "location": {
2469
+ "filePath": "element-highlighter/element-highlighter.tsx",
2470
+ "line": 11,
2471
+ "character": 3
2472
+ },
2473
+ "doc": {
2474
+ "__schema": "DocSchema",
2475
+ "location": {
2476
+ "filePath": "element-highlighter/element-highlighter.tsx",
2477
+ "line": 10,
2478
+ "character": 3
2479
+ },
2480
+ "raw": "/** highlight this element */",
2481
+ "comment": "highlight this element"
2482
+ },
2483
+ "signature": "(property) ElementHighlighterProps.targetRef: React.RefObject<HTMLElement>",
2484
+ "name": "targetRef",
2485
+ "type": {
2486
+ "__schema": "TypeRefSchema",
2487
+ "location": {
2488
+ "filePath": "element-highlighter/element-highlighter.tsx",
2489
+ "line": 11,
2490
+ "character": 14
2491
+ },
2492
+ "name": "RefObject",
2493
+ "packageName": "react",
2494
+ "typeArgs": [
2495
+ {
2496
+ "__schema": "TypeUnionSchema",
2497
+ "location": {
2498
+ "filePath": "element-highlighter/element-highlighter.tsx",
2499
+ "line": 11,
2500
+ "character": 24
2501
+ },
2502
+ "types": [
2503
+ {
2504
+ "__schema": "TypeRefSchema",
2505
+ "location": {
2506
+ "filePath": "element-highlighter/element-highlighter.tsx",
2507
+ "line": 11,
2508
+ "character": 24
2509
+ },
2510
+ "name": "HTMLElement"
2511
+ },
2512
+ {
2513
+ "__schema": "LiteralTypeSchema",
2514
+ "location": {
2515
+ "filePath": "element-highlighter/element-highlighter.tsx",
2516
+ "line": 11,
2517
+ "character": 38
2518
+ },
2519
+ "name": "null"
2520
+ }
2521
+ ]
2522
+ }
2523
+ ]
2524
+ },
2525
+ "isOptional": false
2526
+ },
2527
+ {
2528
+ "__schema": "VariableLikeSchema",
2529
+ "location": {
2530
+ "filePath": "element-highlighter/element-highlighter.tsx",
2531
+ "line": 13,
2532
+ "character": 3
2533
+ },
2534
+ "doc": {
2535
+ "__schema": "DocSchema",
2536
+ "location": {
2537
+ "filePath": "element-highlighter/element-highlighter.tsx",
2538
+ "line": 12,
2539
+ "character": 3
2540
+ },
2541
+ "raw": "/** components with metadata to show in the label */",
2542
+ "comment": "components with metadata to show in the label"
2543
+ },
2544
+ "signature": "(property) ElementHighlighterProps.components?: (string | ComponentMetaHolder)[]",
2545
+ "name": "components",
2546
+ "type": {
2547
+ "__schema": "TypeArraySchema",
2548
+ "location": {
2549
+ "filePath": "element-highlighter/element-highlighter.tsx",
2550
+ "line": 13,
2551
+ "character": 16
2552
+ },
2553
+ "type": {
2554
+ "__schema": "ParenthesizedTypeSchema",
2555
+ "location": {
2556
+ "filePath": "element-highlighter/element-highlighter.tsx",
2557
+ "line": 13,
2558
+ "character": 16
2559
+ },
2560
+ "type": {
2561
+ "__schema": "TypeUnionSchema",
2562
+ "location": {
2563
+ "filePath": "element-highlighter/element-highlighter.tsx",
2564
+ "line": 13,
2565
+ "character": 17
2566
+ },
2567
+ "types": [
2568
+ {
2569
+ "__schema": "TypeRefSchema",
2570
+ "location": {
2571
+ "filePath": "element-highlighter/element-highlighter.tsx",
2572
+ "line": 13,
2573
+ "character": 17
2574
+ },
2575
+ "name": "ComponentMetaHolder",
2576
+ "componentId": {
2577
+ "scope": "teambit.react",
2578
+ "name": "ui/highlighter/component-metadata/bit-component-meta",
2579
+ "version": "0.0.21"
2580
+ }
2581
+ },
2582
+ {
2583
+ "__schema": "KeywordTypeSchema",
2584
+ "location": {
2585
+ "filePath": "element-highlighter/element-highlighter.tsx",
2586
+ "line": 13,
2587
+ "character": 39
2588
+ },
2589
+ "name": "string"
2590
+ }
2591
+ ]
2592
+ }
2593
+ }
2594
+ },
2595
+ "isOptional": true
2596
+ },
2597
+ {
2598
+ "__schema": "VariableLikeSchema",
2599
+ "location": {
2600
+ "filePath": "element-highlighter/element-highlighter.tsx",
2601
+ "line": 16,
2602
+ "character": 3
2603
+ },
2604
+ "doc": {
2605
+ "__schema": "DocSchema",
2606
+ "location": {
2607
+ "filePath": "element-highlighter/element-highlighter.tsx",
2608
+ "line": 15,
2609
+ "character": 3
2610
+ },
2611
+ "raw": "/** default location of the label */",
2612
+ "comment": "default location of the label"
2613
+ },
2614
+ "signature": "(property) ElementHighlighterProps.placement?: Placement",
2615
+ "name": "placement",
2616
+ "type": {
2617
+ "__schema": "TypeRefSchema",
2618
+ "location": {
2619
+ "filePath": "element-highlighter/element-highlighter.tsx",
2620
+ "line": 16,
2621
+ "character": 3
2622
+ },
2623
+ "name": "Placement"
2624
+ },
2625
+ "isOptional": true
2626
+ },
2627
+ {
2628
+ "__schema": "VariableLikeSchema",
2629
+ "location": {
2630
+ "filePath": "element-highlighter/element-highlighter.tsx",
2631
+ "line": 18,
2632
+ "character": 3
2633
+ },
2634
+ "doc": {
2635
+ "__schema": "DocSchema",
2636
+ "location": {
2637
+ "filePath": "element-highlighter/element-highlighter.tsx",
2638
+ "line": 17,
2639
+ "character": 3
2640
+ },
2641
+ "raw": "/** customize styles */",
2642
+ "comment": "customize styles"
2643
+ },
2644
+ "signature": "(property) ElementHighlighterProps.classes?: HighlightClasses",
2645
+ "name": "classes",
2646
+ "type": {
2647
+ "__schema": "TypeRefSchema",
2648
+ "location": {
2649
+ "filePath": "element-highlighter/element-highlighter.tsx",
2650
+ "line": 18,
2651
+ "character": 3
2652
+ },
2653
+ "name": "HighlightClasses"
2654
+ },
2655
+ "isOptional": true
2656
+ },
2657
+ {
2658
+ "__schema": "VariableLikeSchema",
2659
+ "location": {
2660
+ "filePath": "element-highlighter/element-highlighter.tsx",
2661
+ "line": 20,
2662
+ "character": 3
2663
+ },
2664
+ "doc": {
2665
+ "__schema": "DocSchema",
2666
+ "location": {
2667
+ "filePath": "element-highlighter/element-highlighter.tsx",
2668
+ "line": 19,
2669
+ "character": 3
2670
+ },
2671
+ "raw": "/** continually update highlighter to match moving elements */",
2672
+ "comment": "continually update highlighter to match moving elements"
2673
+ },
2674
+ "signature": "(property) ElementHighlighterProps.watchMotion?: boolean",
2675
+ "name": "watchMotion",
2676
+ "type": {
2677
+ "__schema": "KeywordTypeSchema",
2678
+ "location": {
2679
+ "filePath": "element-highlighter/element-highlighter.tsx",
2680
+ "line": 20,
2681
+ "character": 17
2682
+ },
2683
+ "name": "boolean"
2684
+ },
2685
+ "isOptional": true
2686
+ }
2687
+ ],
2688
+ "extendsNodes": [
2689
+ {
2690
+ "__schema": "ExpressionWithTypeArgumentsSchema",
2691
+ "location": {
2692
+ "filePath": "element-highlighter/element-highlighter.tsx",
2693
+ "line": 9,
2694
+ "character": 50
2695
+ },
2696
+ "name": "extends React.HTMLAttributes<HTMLDivElement>",
2697
+ "typeArgs": [
2698
+ {
2699
+ "__schema": "TypeRefSchema",
2700
+ "location": {
2701
+ "filePath": "element-highlighter/element-highlighter.tsx",
2702
+ "line": 9,
2703
+ "character": 71
2704
+ },
2705
+ "name": "HTMLDivElement"
2706
+ }
2707
+ ],
2708
+ "expression": {
2709
+ "__schema": "TypeRefSchema",
2710
+ "location": {
2711
+ "filePath": "element-highlighter/element-highlighter.tsx",
2712
+ "line": 9,
2713
+ "character": 50
2714
+ },
2715
+ "name": "React",
2716
+ "packageName": "/tmp/capsules-root/sign-capsules/2024-5-21/v98z65/teambit.react_ui_component-highlighter@8ff9cdb292ef95ab5647b5b8034ea2519b829c6c/element-highlighter/element-highlighter.tsx"
2717
+ }
2718
+ }
2719
+ ]
2720
+ },
2721
+ {
2722
+ "__schema": "ExportSchema",
2723
+ "location": {
2724
+ "filePath": "element-highlighter/element-highlighter.tsx",
2725
+ "line": 23,
2726
+ "character": 10
2727
+ },
2728
+ "name": "Placement",
2729
+ "exportNode": {
2730
+ "__schema": "TypeRefSchema",
2731
+ "location": {
2732
+ "filePath": "element-highlighter/element-highlighter.tsx",
2733
+ "line": 23,
2734
+ "character": 10
2735
+ },
2736
+ "name": "Placement"
2737
+ }
2738
+ },
2739
+ {
2740
+ "__schema": "TypeSchema",
2741
+ "location": {
2742
+ "filePath": "element-highlighter/element-highlighter.tsx",
2743
+ "line": 25,
2744
+ "character": 1
2745
+ },
2746
+ "signature": "type HighlightClasses = {\n container?: string;\n frame?: string;\n label?: string;\n}",
2747
+ "name": "HighlightClasses",
2748
+ "type": {
2749
+ "__schema": "TypeLiteralSchema",
2750
+ "location": {
2751
+ "filePath": "element-highlighter/element-highlighter.tsx",
2752
+ "line": 25,
2753
+ "character": 32
2754
+ },
2755
+ "members": [
2756
+ {
2757
+ "__schema": "VariableLikeSchema",
2758
+ "location": {
2759
+ "filePath": "element-highlighter/element-highlighter.tsx",
2760
+ "line": 26,
2761
+ "character": 3
2762
+ },
2763
+ "signature": "(property) container?: string",
2764
+ "name": "container",
2765
+ "type": {
2766
+ "__schema": "KeywordTypeSchema",
2767
+ "location": {
2768
+ "filePath": "element-highlighter/element-highlighter.tsx",
2769
+ "line": 26,
2770
+ "character": 15
2771
+ },
2772
+ "name": "string"
2773
+ },
2774
+ "isOptional": true
2775
+ },
2776
+ {
2777
+ "__schema": "VariableLikeSchema",
2778
+ "location": {
2779
+ "filePath": "element-highlighter/element-highlighter.tsx",
2780
+ "line": 27,
2781
+ "character": 3
2782
+ },
2783
+ "signature": "(property) frame?: string",
2784
+ "name": "frame",
2785
+ "type": {
2786
+ "__schema": "KeywordTypeSchema",
2787
+ "location": {
2788
+ "filePath": "element-highlighter/element-highlighter.tsx",
2789
+ "line": 27,
2790
+ "character": 11
2791
+ },
2792
+ "name": "string"
2793
+ },
2794
+ "isOptional": true
2795
+ },
2796
+ {
2797
+ "__schema": "VariableLikeSchema",
2798
+ "location": {
2799
+ "filePath": "element-highlighter/element-highlighter.tsx",
2800
+ "line": 28,
2801
+ "character": 3
2802
+ },
2803
+ "signature": "(property) label?: string",
2804
+ "name": "label",
2805
+ "type": {
2806
+ "__schema": "KeywordTypeSchema",
2807
+ "location": {
2808
+ "filePath": "element-highlighter/element-highlighter.tsx",
2809
+ "line": 28,
2810
+ "character": 11
2811
+ },
2812
+ "name": "string"
2813
+ },
2814
+ "isOptional": true
2815
+ }
2816
+ ]
2817
+ }
2818
+ },
2819
+ {
2820
+ "__schema": "ReactSchema",
2821
+ "location": {
2822
+ "filePath": "element-highlighter/element-highlighter.tsx",
2823
+ "line": 31,
2824
+ "character": 1
2825
+ },
2826
+ "signature": "function ElementHighlighter({ targetRef, components, placement, watchMotion, className, classes, ...props }: ElementHighlighterProps): React.JSX.Element",
2827
+ "name": "ElementHighlighter",
2828
+ "props": {
2829
+ "__schema": "ParameterSchema",
2830
+ "location": {
2831
+ "filePath": "element-highlighter/element-highlighter.tsx",
2832
+ "line": 31,
2833
+ "character": 36
2834
+ },
2835
+ "name": "{ targetRef, components, placement = 'top', watchMotion, className, classes, ...props }",
2836
+ "type": {
2837
+ "__schema": "TypeRefSchema",
2838
+ "location": {
2839
+ "filePath": "element-highlighter/element-highlighter.tsx",
2840
+ "line": 39,
2841
+ "character": 4
2842
+ },
2843
+ "name": "ElementHighlighterProps"
2844
+ },
2845
+ "isOptional": false,
2846
+ "objectBindingNodes": [
2847
+ {
2848
+ "__schema": "InferenceTypeSchema",
2849
+ "location": {
2850
+ "filePath": "element-highlighter/element-highlighter.tsx",
2851
+ "line": 32,
2852
+ "character": 3
2853
+ },
2854
+ "name": "targetRef",
2855
+ "type": "React.RefObject<HTMLElement>",
2856
+ "isSpread": false
2857
+ },
2858
+ {
2859
+ "__schema": "InferenceTypeSchema",
2860
+ "location": {
2861
+ "filePath": "element-highlighter/element-highlighter.tsx",
2862
+ "line": 33,
2863
+ "character": 3
2864
+ },
2865
+ "name": "components",
2866
+ "type": "(string | ComponentMetaHolder)[]",
2867
+ "isSpread": false
2868
+ },
2869
+ {
2870
+ "__schema": "InferenceTypeSchema",
2871
+ "location": {
2872
+ "filePath": "element-highlighter/element-highlighter.tsx",
2873
+ "line": 34,
2874
+ "character": 3
2875
+ },
2876
+ "name": "placement",
2877
+ "type": "Placement",
2878
+ "defaultValue": "'top'",
2879
+ "isSpread": false
2880
+ },
2881
+ {
2882
+ "__schema": "InferenceTypeSchema",
2883
+ "location": {
2884
+ "filePath": "element-highlighter/element-highlighter.tsx",
2885
+ "line": 35,
2886
+ "character": 3
2887
+ },
2888
+ "name": "watchMotion",
2889
+ "type": "boolean",
2890
+ "isSpread": false
2891
+ },
2892
+ {
2893
+ "__schema": "InferenceTypeSchema",
2894
+ "location": {
2895
+ "filePath": "element-highlighter/element-highlighter.tsx",
2896
+ "line": 36,
2897
+ "character": 3
2898
+ },
2899
+ "name": "className",
2900
+ "type": "string",
2901
+ "isSpread": false
2902
+ },
2903
+ {
2904
+ "__schema": "InferenceTypeSchema",
2905
+ "location": {
2906
+ "filePath": "element-highlighter/element-highlighter.tsx",
2907
+ "line": 37,
2908
+ "character": 3
2909
+ },
2910
+ "name": "classes",
2911
+ "type": "HighlightClasses",
2912
+ "isSpread": false
2913
+ },
2914
+ {
2915
+ "__schema": "InferenceTypeSchema",
2916
+ "location": {
2917
+ "filePath": "element-highlighter/element-highlighter.tsx",
2918
+ "line": 38,
2919
+ "character": 6
2920
+ },
2921
+ "name": "props",
2922
+ "type": "{\n defaultChecked?: boolean;\n defaultValue?: string | number | readonly string[];\n suppressContentEditableWarning?: boolean;\n suppressHydrationWarning?: boolean;\n accessKey?: string;\n autoFocus?: boolean;\n ... 251 more ...;\n onTransitionEndCapture?: React.TransitionEventHandler<...>;\n}",
2923
+ "isSpread": true
2924
+ }
2925
+ ],
2926
+ "isSpread": false
2927
+ },
2928
+ "returnType": {
2929
+ "__schema": "TypeRefSchema",
2930
+ "location": {
2931
+ "filePath": "element-highlighter/element-highlighter.tsx",
2932
+ "line": 31,
2933
+ "character": 1
2934
+ },
2935
+ "name": "React.JSX.Element",
2936
+ "packageName": "react"
2937
+ },
2938
+ "modifiers": [
2939
+ "export"
2940
+ ]
2941
+ }
2942
+ ],
2943
+ "internals": []
2944
+ }
2945
+ ],
2946
+ "componentId": {
2947
+ "scope": "teambit.react",
2948
+ "name": "ui/component-highlighter",
2949
+ "version": "8ff9cdb292ef95ab5647b5b8034ea2519b829c6c"
2950
+ },
2951
+ "taggedModuleExports": []
2952
+ }