@teambit/react.ui.component-highlighter 0.2.4 → 0.2.5

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