@ngrok/mantle 0.93.7 → 0.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +13 -1
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1181 -36
- package/dist/alert-CH99Rw-R.js +1 -0
- package/dist/{alert-BcSBNR3S.d.ts → alert-HffaioZM.d.ts} +31 -21
- package/dist/alert-center.d.ts +15 -3
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +15 -2
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +6 -1
- package/dist/alert.js +1 -1
- package/dist/anchor.d.ts +12 -0
- package/dist/app-layout.d.ts +16 -1
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +144 -88
- package/dist/area-chart.js +1 -1
- package/dist/avatar.d.ts +12 -0
- package/dist/badge.d.ts +13 -1
- package/dist/bar-chart.d.ts +144 -89
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +11 -0
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only.d.ts +8 -0
- package/dist/{button-Yxyu1XMd.d.ts → button-BGwOPjGV.d.ts} +7 -1
- package/dist/{button-B8k98Pby.js → button-BWGUuWnu.js} +1 -1
- package/dist/{button-CPsKGDK0.d.ts → button-Cgf2IcEC.d.ts} +8 -1
- package/dist/button-Cu9e3SM7.js +1 -0
- package/dist/{button-BX-4lYUn.d.ts → button-K0pKc3GN.d.ts} +3 -3
- package/dist/button.d.ts +9 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +7 -0
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +6 -1
- package/dist/centered-layout.d.ts +11 -0
- package/dist/chart-BO9EwQ60.js +1 -0
- package/dist/chart-CE5Uaqz9.js +1 -0
- package/dist/chart-DCTGGlWL.js +1 -0
- package/dist/chart-DudCw24t.js +2 -0
- package/dist/{chart-BpfbtOUN.d.ts → chart-jitNqimS.d.ts} +99 -103
- package/dist/{checkbox-DmSQXs26.js → checkbox-CS504fKk.js} +1 -1
- package/dist/checkbox.d.ts +14 -1
- package/dist/checkbox.js +1 -1
- package/dist/{choice-BLR0_MeB.d.ts → choice-BwfmbepO.d.ts} +7 -1
- package/dist/choice-uyYccm0A.js +1 -0
- package/dist/choice.d.ts +6 -1
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +13 -2
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +5 -0
- package/dist/code.d.ts +13 -0
- package/dist/color-CHZbU1Ww.js +1 -0
- package/dist/color.js +1 -1
- package/dist/combobox.d.ts +28 -14
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +14 -2
- package/dist/command.js +1 -1
- package/dist/cx.js +1 -1
- package/dist/data-table.d.ts +50 -19
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +12 -1
- package/dist/dialog-B9JAGy_x.d.ts +28 -0
- package/dist/{dialog-7TUgiSzX.js → dialog-CsugEt2A.js} +1 -1
- package/dist/{dialog-2fRO4ca4.d.ts → dialog-DD5H3EH1.d.ts} +10 -2
- package/dist/dialog.d.ts +7 -2
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-DHdgaw4P.js +1 -0
- package/dist/{dropdown-menu-CpjRwMWe.d.ts → dropdown-menu-DmDxYPde.d.ts} +34 -26
- package/dist/dropdown-menu.d.ts +6 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +5 -0
- package/dist/empty.js +1 -1
- package/dist/{field-V_gnkcmN.d.ts → field-BshcNVe_.d.ts} +1 -1
- package/dist/field.d.ts +17 -6
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +8 -0
- package/dist/hooks.d.ts +5 -0
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +23 -12
- package/dist/{icon-ByLVhdYq.d.ts → icon-NYvyyRMG.d.ts} +6 -0
- package/dist/icon.d.ts +7 -2
- package/dist/icon.js +1 -1
- package/dist/{icons-DP3lQw5O.js → icons-4JA-SGfv.js} +1 -1
- package/dist/icons.d.ts +13 -1
- package/dist/icons.js +1 -1
- package/dist/{index-BhfgyurF.d.ts → index-KJ06KK6t.d.ts} +3 -3
- package/dist/input-BjCDSOPA.js +1 -0
- package/dist/input-DHovzBjS.js +1 -0
- package/dist/{input-Dx5owTCc.d.ts → input-q8o5uMhW.d.ts} +11 -1
- package/dist/input.d.ts +34 -2
- package/dist/input.js +1 -1
- package/dist/kbd.d.ts +12 -0
- package/dist/{label-nHqqYS7e.js → label-DmDwzPD8.js} +1 -1
- package/dist/{label-Dn5CPJUj.d.ts → label-r2sJcSQ4.d.ts} +6 -0
- package/dist/label.d.ts +6 -1
- package/dist/label.js +1 -1
- package/dist/line-chart.d.ts +139 -82
- package/dist/line-chart.js +1 -1
- package/dist/{list-RFRIQxU2.js → list-CO_yLdln.js} +1 -1
- package/dist/list.d.ts +19 -1
- package/dist/list.js +1 -1
- package/dist/live-region.d.ts +14 -1
- package/dist/llms.txt +78 -76
- package/dist/main.d.ts +12 -0
- package/dist/mantle.css +110 -65
- package/dist/media-object.d.ts +12 -0
- package/dist/migrations/0014-chart-named-colors.yml +1389 -0
- package/dist/migrations/0015-segmented-control.yml +788 -0
- package/dist/multi-select.d.ts +15 -2
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +17 -5
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +92 -3
- package/dist/pagination.js +1 -1
- package/dist/popover-BhTFutCz.d.ts +1 -0
- package/dist/{popover-BfB2I9G0.d.ts → popover-lwkwWcRW.d.ts} +16 -7
- package/dist/popover.d.ts +7 -2
- package/dist/progress.d.ts +27 -10
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +9 -1
- package/dist/query.d.ts +2 -2
- package/dist/query.js +1 -1
- package/dist/radio-group-jj2abc0t.js +1 -0
- package/dist/radio-group-sLz5AA9I.d.ts +27 -0
- package/dist/radio-group.d.ts +20 -99
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +14 -1
- package/dist/sandbar.js +1 -1
- package/dist/sandboxed-on-click.d.ts +8 -0
- package/dist/scatter-plot.d.ts +126 -64
- package/dist/scatter-plot.js +1 -1
- package/dist/segmented-control.d.ts +136 -0
- package/dist/segmented-control.js +1 -0
- package/dist/{select-BkhBxtOT.d.ts → select-BqmpVJJT.d.ts} +29 -21
- package/dist/select-C6Su0dU0.js +1 -0
- package/dist/select.d.ts +6 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +13 -2
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-D9AWEkcJ.d.ts → separator-QfH0ot5K.d.ts} +3 -1
- package/dist/separator.d.ts +6 -1
- package/dist/{sheet-CSJc_sB4.js → sheet-Bd2LIhzF.js} +1 -1
- package/dist/sheet.d.ts +15 -2
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +19 -3
- package/dist/sidebar.js +1 -1
- package/dist/skeleton.d.ts +11 -0
- package/dist/skip-to-main-link.d.ts +11 -0
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +10 -0
- package/dist/{slot-C0OCJjdJ.d.ts → slot-D12N_fZJ.d.ts} +3 -1
- package/dist/slot.d.ts +6 -1
- package/dist/split-button.d.ts +14 -3
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +13 -0
- package/dist/switch.d.ts +13 -1
- package/dist/switch.js +1 -1
- package/dist/{table-vT6Okwfa.d.ts → table-rWiVWEgB.d.ts} +79 -0
- package/dist/table.d.ts +6 -1
- package/dist/tabs.d.ts +23 -11
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +11 -1
- package/dist/theme-DdZgLvKH.js +1 -0
- package/dist/theme-switcher.d.ts +16 -2
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +12 -0
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +14 -1
- package/dist/toast.js +1 -1
- package/dist/{tooltip-NcLIeBy5.d.ts → tooltip-CpK3XTor.d.ts} +15 -8
- package/dist/tooltip.d.ts +6 -1
- package/dist/truncated-text.d.ts +27 -13
- package/dist/truncated-text.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/use-inert-siblings-CNmNuS2h.js +1 -0
- package/dist/use-swipe-to-dismiss-i__cTF2v.js +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +13 -0
- package/dist/well.d.ts +6 -1
- package/package.json +6 -6
- package/src/components/chart/d3-license.md +25 -0
- package/dist/alert-P9lwn25X.js +0 -1
- package/dist/button-Dge0D5bl.js +0 -1
- package/dist/chart-BpWfQAwf.js +0 -2
- package/dist/choice-2Lrv8_nl.js +0 -1
- package/dist/dialog-Dp0QGWwo.d.ts +0 -28
- package/dist/dropdown-menu-BHBzCDSZ.js +0 -1
- package/dist/input-CpQ6jlpI.js +0 -1
- package/dist/popover-C96V8SXi.d.ts +0 -1
- package/dist/select-CAAYk4Yj.js +0 -1
- package/dist/theme-C-glc5Q-.js +0 -1
- package/dist/use-swipe-to-dismiss-DceYk1Id.js +0 -1
|
@@ -0,0 +1,788 @@
|
|
|
1
|
+
# Every rule binds $RG to the local name of the `RadioGroup` import from
|
|
2
|
+
# `@ngrok/mantle/radio-group`, so an aliased import matches and another
|
|
3
|
+
# library's `RadioGroup` does not.
|
|
4
|
+
id: radio-group-button-group-to-segmented-control-root
|
|
5
|
+
language: tsx
|
|
6
|
+
message: RadioGroup.ButtonGroup is SegmentedControl.Root
|
|
7
|
+
utils:
|
|
8
|
+
# A node that opens a lexical scope. The shadow search below stops at a
|
|
9
|
+
# nested one, so a sibling function's local name does not count.
|
|
10
|
+
scope:
|
|
11
|
+
any:
|
|
12
|
+
- kind: statement_block
|
|
13
|
+
- kind: function_declaration
|
|
14
|
+
- kind: generator_function_declaration
|
|
15
|
+
- kind: function_expression
|
|
16
|
+
- kind: generator_function
|
|
17
|
+
- kind: arrow_function
|
|
18
|
+
- kind: method_definition
|
|
19
|
+
- kind: class_body
|
|
20
|
+
- kind: for_statement
|
|
21
|
+
- kind: for_in_statement
|
|
22
|
+
- kind: catch_clause
|
|
23
|
+
# An identifier in a binding position: a parameter, a destructured name, a
|
|
24
|
+
# local variable, a function name, or a class name.
|
|
25
|
+
binding-name:
|
|
26
|
+
any:
|
|
27
|
+
- kind: shorthand_property_identifier_pattern
|
|
28
|
+
- kind: identifier
|
|
29
|
+
any:
|
|
30
|
+
- inside: { kind: variable_declarator, field: name }
|
|
31
|
+
- inside: { kind: function_declaration, field: name }
|
|
32
|
+
- inside: { kind: generator_function_declaration, field: name }
|
|
33
|
+
- inside: { kind: function_expression, field: name }
|
|
34
|
+
- inside: { kind: required_parameter, field: pattern }
|
|
35
|
+
- inside: { kind: optional_parameter, field: pattern }
|
|
36
|
+
- inside: { kind: assignment_pattern, field: left }
|
|
37
|
+
- inside: { kind: pair_pattern, field: value }
|
|
38
|
+
- inside: { kind: array_pattern }
|
|
39
|
+
- inside: { kind: rest_pattern }
|
|
40
|
+
- inside: { kind: arrow_function, field: parameter }
|
|
41
|
+
- inside: { kind: catch_clause, field: parameter }
|
|
42
|
+
- kind: type_identifier
|
|
43
|
+
inside: { kind: class_declaration, field: name }
|
|
44
|
+
# A function declaration opens a scope, so the search above stops at it and
|
|
45
|
+
# never reads its name. This matches the declaration itself instead.
|
|
46
|
+
function-declaration:
|
|
47
|
+
any:
|
|
48
|
+
- kind: function_declaration
|
|
49
|
+
- kind: generator_function_declaration
|
|
50
|
+
# The `RadioGroup` import from `@ngrok/mantle/radio-group`. It binds $RG to
|
|
51
|
+
# the local name, so an aliased import matches and another library's
|
|
52
|
+
# `RadioGroup` does not.
|
|
53
|
+
radio-group-import:
|
|
54
|
+
kind: import_statement
|
|
55
|
+
all:
|
|
56
|
+
- has:
|
|
57
|
+
field: source
|
|
58
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
59
|
+
- has:
|
|
60
|
+
stopBy: end
|
|
61
|
+
kind: import_specifier
|
|
62
|
+
has:
|
|
63
|
+
field: name
|
|
64
|
+
regex: ^RadioGroup$
|
|
65
|
+
any:
|
|
66
|
+
- kind: import_specifier
|
|
67
|
+
has:
|
|
68
|
+
field: alias
|
|
69
|
+
pattern: $RG
|
|
70
|
+
- kind: import_specifier
|
|
71
|
+
not:
|
|
72
|
+
has:
|
|
73
|
+
field: alias
|
|
74
|
+
kind: identifier
|
|
75
|
+
has:
|
|
76
|
+
field: name
|
|
77
|
+
pattern: $RG
|
|
78
|
+
# A JSX tag name or a `typeof` type query, `$RG.ButtonGroup` or
|
|
79
|
+
# `$RG.Button`, that reads the import.
|
|
80
|
+
old-part-name:
|
|
81
|
+
kind: member_expression
|
|
82
|
+
all:
|
|
83
|
+
- has:
|
|
84
|
+
field: object
|
|
85
|
+
pattern: $RG
|
|
86
|
+
- has:
|
|
87
|
+
field: property
|
|
88
|
+
regex: ^(ButtonGroup|Button)$
|
|
89
|
+
- any:
|
|
90
|
+
- inside: { kind: jsx_opening_element, field: name }
|
|
91
|
+
- inside: { kind: jsx_closing_element, field: name }
|
|
92
|
+
- inside: { kind: jsx_self_closing_element, field: name }
|
|
93
|
+
- inside: { kind: type_query }
|
|
94
|
+
- inside:
|
|
95
|
+
stopBy: end
|
|
96
|
+
kind: program
|
|
97
|
+
has:
|
|
98
|
+
matches: radio-group-import
|
|
99
|
+
# Why: a parameter or a local under the import's name shadows it, and the
|
|
100
|
+
# rules cannot tell which binding the element reads.
|
|
101
|
+
- not:
|
|
102
|
+
inside:
|
|
103
|
+
stopBy: end
|
|
104
|
+
matches: scope
|
|
105
|
+
has:
|
|
106
|
+
stopBy:
|
|
107
|
+
matches: scope
|
|
108
|
+
any:
|
|
109
|
+
- matches: binding-name
|
|
110
|
+
pattern: $RG
|
|
111
|
+
- matches: function-declaration
|
|
112
|
+
has:
|
|
113
|
+
field: name
|
|
114
|
+
pattern: $RG
|
|
115
|
+
rule:
|
|
116
|
+
matches: old-part-name
|
|
117
|
+
has:
|
|
118
|
+
field: property
|
|
119
|
+
regex: ^ButtonGroup$
|
|
120
|
+
fix: SegmentedControl.Root
|
|
121
|
+
---
|
|
122
|
+
id: radio-group-button-to-segmented-control-item
|
|
123
|
+
language: tsx
|
|
124
|
+
message: RadioGroup.Button is SegmentedControl.Item
|
|
125
|
+
utils:
|
|
126
|
+
# A node that opens a lexical scope. The shadow search below stops at a
|
|
127
|
+
# nested one, so a sibling function's local name does not count.
|
|
128
|
+
scope:
|
|
129
|
+
any:
|
|
130
|
+
- kind: statement_block
|
|
131
|
+
- kind: function_declaration
|
|
132
|
+
- kind: generator_function_declaration
|
|
133
|
+
- kind: function_expression
|
|
134
|
+
- kind: generator_function
|
|
135
|
+
- kind: arrow_function
|
|
136
|
+
- kind: method_definition
|
|
137
|
+
- kind: class_body
|
|
138
|
+
- kind: for_statement
|
|
139
|
+
- kind: for_in_statement
|
|
140
|
+
- kind: catch_clause
|
|
141
|
+
# An identifier in a binding position: a parameter, a destructured name, a
|
|
142
|
+
# local variable, a function name, or a class name.
|
|
143
|
+
binding-name:
|
|
144
|
+
any:
|
|
145
|
+
- kind: shorthand_property_identifier_pattern
|
|
146
|
+
- kind: identifier
|
|
147
|
+
any:
|
|
148
|
+
- inside: { kind: variable_declarator, field: name }
|
|
149
|
+
- inside: { kind: function_declaration, field: name }
|
|
150
|
+
- inside: { kind: generator_function_declaration, field: name }
|
|
151
|
+
- inside: { kind: function_expression, field: name }
|
|
152
|
+
- inside: { kind: required_parameter, field: pattern }
|
|
153
|
+
- inside: { kind: optional_parameter, field: pattern }
|
|
154
|
+
- inside: { kind: assignment_pattern, field: left }
|
|
155
|
+
- inside: { kind: pair_pattern, field: value }
|
|
156
|
+
- inside: { kind: array_pattern }
|
|
157
|
+
- inside: { kind: rest_pattern }
|
|
158
|
+
- inside: { kind: arrow_function, field: parameter }
|
|
159
|
+
- inside: { kind: catch_clause, field: parameter }
|
|
160
|
+
- kind: type_identifier
|
|
161
|
+
inside: { kind: class_declaration, field: name }
|
|
162
|
+
# A function declaration opens a scope, so the search above stops at it and
|
|
163
|
+
# never reads its name. This matches the declaration itself instead.
|
|
164
|
+
function-declaration:
|
|
165
|
+
any:
|
|
166
|
+
- kind: function_declaration
|
|
167
|
+
- kind: generator_function_declaration
|
|
168
|
+
# The `RadioGroup` import from `@ngrok/mantle/radio-group`. It binds $RG to
|
|
169
|
+
# the local name, so an aliased import matches and another library's
|
|
170
|
+
# `RadioGroup` does not.
|
|
171
|
+
radio-group-import:
|
|
172
|
+
kind: import_statement
|
|
173
|
+
all:
|
|
174
|
+
- has:
|
|
175
|
+
field: source
|
|
176
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
177
|
+
- has:
|
|
178
|
+
stopBy: end
|
|
179
|
+
kind: import_specifier
|
|
180
|
+
has:
|
|
181
|
+
field: name
|
|
182
|
+
regex: ^RadioGroup$
|
|
183
|
+
any:
|
|
184
|
+
- kind: import_specifier
|
|
185
|
+
has:
|
|
186
|
+
field: alias
|
|
187
|
+
pattern: $RG
|
|
188
|
+
- kind: import_specifier
|
|
189
|
+
not:
|
|
190
|
+
has:
|
|
191
|
+
field: alias
|
|
192
|
+
kind: identifier
|
|
193
|
+
has:
|
|
194
|
+
field: name
|
|
195
|
+
pattern: $RG
|
|
196
|
+
# A JSX tag name or a `typeof` type query, `$RG.ButtonGroup` or
|
|
197
|
+
# `$RG.Button`, that reads the import.
|
|
198
|
+
old-part-name:
|
|
199
|
+
kind: member_expression
|
|
200
|
+
all:
|
|
201
|
+
- has:
|
|
202
|
+
field: object
|
|
203
|
+
pattern: $RG
|
|
204
|
+
- has:
|
|
205
|
+
field: property
|
|
206
|
+
regex: ^(ButtonGroup|Button)$
|
|
207
|
+
- any:
|
|
208
|
+
- inside: { kind: jsx_opening_element, field: name }
|
|
209
|
+
- inside: { kind: jsx_closing_element, field: name }
|
|
210
|
+
- inside: { kind: jsx_self_closing_element, field: name }
|
|
211
|
+
- inside: { kind: type_query }
|
|
212
|
+
- inside:
|
|
213
|
+
stopBy: end
|
|
214
|
+
kind: program
|
|
215
|
+
has:
|
|
216
|
+
matches: radio-group-import
|
|
217
|
+
# Why: a parameter or a local under the import's name shadows it, and the
|
|
218
|
+
# rules cannot tell which binding the element reads.
|
|
219
|
+
- not:
|
|
220
|
+
inside:
|
|
221
|
+
stopBy: end
|
|
222
|
+
matches: scope
|
|
223
|
+
has:
|
|
224
|
+
stopBy:
|
|
225
|
+
matches: scope
|
|
226
|
+
any:
|
|
227
|
+
- matches: binding-name
|
|
228
|
+
pattern: $RG
|
|
229
|
+
- matches: function-declaration
|
|
230
|
+
has:
|
|
231
|
+
field: name
|
|
232
|
+
pattern: $RG
|
|
233
|
+
rule:
|
|
234
|
+
matches: old-part-name
|
|
235
|
+
has:
|
|
236
|
+
field: property
|
|
237
|
+
regex: ^Button$
|
|
238
|
+
fix: SegmentedControl.Item
|
|
239
|
+
---
|
|
240
|
+
id: add-segmented-control-import
|
|
241
|
+
language: tsx
|
|
242
|
+
message: import SegmentedControl from @ngrok/mantle/segmented-control
|
|
243
|
+
utils:
|
|
244
|
+
# A node that opens a lexical scope. The shadow search below stops at a
|
|
245
|
+
# nested one, so a sibling function's local name does not count.
|
|
246
|
+
scope:
|
|
247
|
+
any:
|
|
248
|
+
- kind: statement_block
|
|
249
|
+
- kind: function_declaration
|
|
250
|
+
- kind: generator_function_declaration
|
|
251
|
+
- kind: function_expression
|
|
252
|
+
- kind: generator_function
|
|
253
|
+
- kind: arrow_function
|
|
254
|
+
- kind: method_definition
|
|
255
|
+
- kind: class_body
|
|
256
|
+
- kind: for_statement
|
|
257
|
+
- kind: for_in_statement
|
|
258
|
+
- kind: catch_clause
|
|
259
|
+
# An identifier in a binding position: a parameter, a destructured name, a
|
|
260
|
+
# local variable, a function name, or a class name.
|
|
261
|
+
binding-name:
|
|
262
|
+
any:
|
|
263
|
+
- kind: shorthand_property_identifier_pattern
|
|
264
|
+
- kind: identifier
|
|
265
|
+
any:
|
|
266
|
+
- inside: { kind: variable_declarator, field: name }
|
|
267
|
+
- inside: { kind: function_declaration, field: name }
|
|
268
|
+
- inside: { kind: generator_function_declaration, field: name }
|
|
269
|
+
- inside: { kind: function_expression, field: name }
|
|
270
|
+
- inside: { kind: required_parameter, field: pattern }
|
|
271
|
+
- inside: { kind: optional_parameter, field: pattern }
|
|
272
|
+
- inside: { kind: assignment_pattern, field: left }
|
|
273
|
+
- inside: { kind: pair_pattern, field: value }
|
|
274
|
+
- inside: { kind: array_pattern }
|
|
275
|
+
- inside: { kind: rest_pattern }
|
|
276
|
+
- inside: { kind: arrow_function, field: parameter }
|
|
277
|
+
- inside: { kind: catch_clause, field: parameter }
|
|
278
|
+
- kind: type_identifier
|
|
279
|
+
inside: { kind: class_declaration, field: name }
|
|
280
|
+
# A function declaration opens a scope, so the search above stops at it and
|
|
281
|
+
# never reads its name. This matches the declaration itself instead.
|
|
282
|
+
function-declaration:
|
|
283
|
+
any:
|
|
284
|
+
- kind: function_declaration
|
|
285
|
+
- kind: generator_function_declaration
|
|
286
|
+
# The `RadioGroup` import from `@ngrok/mantle/radio-group`. It binds $RG to
|
|
287
|
+
# the local name, so an aliased import matches and another library's
|
|
288
|
+
# `RadioGroup` does not.
|
|
289
|
+
radio-group-import:
|
|
290
|
+
kind: import_statement
|
|
291
|
+
all:
|
|
292
|
+
- has:
|
|
293
|
+
field: source
|
|
294
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
295
|
+
- has:
|
|
296
|
+
stopBy: end
|
|
297
|
+
kind: import_specifier
|
|
298
|
+
has:
|
|
299
|
+
field: name
|
|
300
|
+
regex: ^RadioGroup$
|
|
301
|
+
any:
|
|
302
|
+
- kind: import_specifier
|
|
303
|
+
has:
|
|
304
|
+
field: alias
|
|
305
|
+
pattern: $RG
|
|
306
|
+
- kind: import_specifier
|
|
307
|
+
not:
|
|
308
|
+
has:
|
|
309
|
+
field: alias
|
|
310
|
+
kind: identifier
|
|
311
|
+
has:
|
|
312
|
+
field: name
|
|
313
|
+
pattern: $RG
|
|
314
|
+
# A JSX tag name or a `typeof` type query, `$RG.ButtonGroup` or
|
|
315
|
+
# `$RG.Button`, that reads the import.
|
|
316
|
+
old-part-name:
|
|
317
|
+
kind: member_expression
|
|
318
|
+
all:
|
|
319
|
+
- has:
|
|
320
|
+
field: object
|
|
321
|
+
pattern: $RG
|
|
322
|
+
- has:
|
|
323
|
+
field: property
|
|
324
|
+
regex: ^(ButtonGroup|Button)$
|
|
325
|
+
- any:
|
|
326
|
+
- inside: { kind: jsx_opening_element, field: name }
|
|
327
|
+
- inside: { kind: jsx_closing_element, field: name }
|
|
328
|
+
- inside: { kind: jsx_self_closing_element, field: name }
|
|
329
|
+
- inside: { kind: type_query }
|
|
330
|
+
- inside:
|
|
331
|
+
stopBy: end
|
|
332
|
+
kind: program
|
|
333
|
+
has:
|
|
334
|
+
matches: radio-group-import
|
|
335
|
+
# Why: a parameter or a local under the import's name shadows it, and the
|
|
336
|
+
# rules cannot tell which binding the element reads.
|
|
337
|
+
- not:
|
|
338
|
+
inside:
|
|
339
|
+
stopBy: end
|
|
340
|
+
matches: scope
|
|
341
|
+
has:
|
|
342
|
+
stopBy:
|
|
343
|
+
matches: scope
|
|
344
|
+
any:
|
|
345
|
+
- matches: binding-name
|
|
346
|
+
pattern: $RG
|
|
347
|
+
- matches: function-declaration
|
|
348
|
+
has:
|
|
349
|
+
field: name
|
|
350
|
+
pattern: $RG
|
|
351
|
+
# A `@ngrok/mantle/radio-group` import, of any name.
|
|
352
|
+
any-radio-group-import:
|
|
353
|
+
kind: import_statement
|
|
354
|
+
has:
|
|
355
|
+
field: source
|
|
356
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
357
|
+
# An import that supplies the name the renames write: `SegmentedControl`
|
|
358
|
+
# from `@ngrok/mantle/segmented-control`, with no alias. An aliased import
|
|
359
|
+
# does not supply it.
|
|
360
|
+
segmented-control-import:
|
|
361
|
+
kind: import_statement
|
|
362
|
+
all:
|
|
363
|
+
- has:
|
|
364
|
+
field: source
|
|
365
|
+
regex: ^["']@ngrok/mantle/segmented-control["']$
|
|
366
|
+
- has:
|
|
367
|
+
stopBy: end
|
|
368
|
+
kind: import_specifier
|
|
369
|
+
all:
|
|
370
|
+
- has:
|
|
371
|
+
field: name
|
|
372
|
+
regex: ^SegmentedControl$
|
|
373
|
+
- not:
|
|
374
|
+
has:
|
|
375
|
+
field: alias
|
|
376
|
+
kind: identifier
|
|
377
|
+
rule:
|
|
378
|
+
all:
|
|
379
|
+
- pattern: $IMPORT
|
|
380
|
+
# Why the first one: a file with two radio-group imports gets the new
|
|
381
|
+
# import once.
|
|
382
|
+
- matches: any-radio-group-import
|
|
383
|
+
- not:
|
|
384
|
+
follows:
|
|
385
|
+
stopBy: end
|
|
386
|
+
matches: any-radio-group-import
|
|
387
|
+
# A file with a part to rename gets the import. Why no $RG here: the part
|
|
388
|
+
# binds $RG itself, so it can read any of the file's radio-group imports.
|
|
389
|
+
- inside:
|
|
390
|
+
kind: program
|
|
391
|
+
all:
|
|
392
|
+
- has:
|
|
393
|
+
stopBy: end
|
|
394
|
+
matches: old-part-name
|
|
395
|
+
- not:
|
|
396
|
+
has:
|
|
397
|
+
matches: segmented-control-import
|
|
398
|
+
fix: |-
|
|
399
|
+
$IMPORT
|
|
400
|
+
import { SegmentedControl } from "@ngrok/mantle/segmented-control";
|
|
401
|
+
---
|
|
402
|
+
# The same three rules for `.ts` files, with no JSX: a rule reaches only its
|
|
403
|
+
# own language.
|
|
404
|
+
id: radio-group-button-group-to-segmented-control-root
|
|
405
|
+
language: typescript
|
|
406
|
+
message: RadioGroup.ButtonGroup is SegmentedControl.Root
|
|
407
|
+
utils:
|
|
408
|
+
# A node that opens a lexical scope. The shadow search below stops at a
|
|
409
|
+
# nested one, so a sibling function's local name does not count.
|
|
410
|
+
scope:
|
|
411
|
+
any:
|
|
412
|
+
- kind: statement_block
|
|
413
|
+
- kind: function_declaration
|
|
414
|
+
- kind: generator_function_declaration
|
|
415
|
+
- kind: function_expression
|
|
416
|
+
- kind: generator_function
|
|
417
|
+
- kind: arrow_function
|
|
418
|
+
- kind: method_definition
|
|
419
|
+
- kind: class_body
|
|
420
|
+
- kind: for_statement
|
|
421
|
+
- kind: for_in_statement
|
|
422
|
+
- kind: catch_clause
|
|
423
|
+
# An identifier in a binding position: a parameter, a destructured name, a
|
|
424
|
+
# local variable, a function name, or a class name.
|
|
425
|
+
binding-name:
|
|
426
|
+
any:
|
|
427
|
+
- kind: shorthand_property_identifier_pattern
|
|
428
|
+
- kind: identifier
|
|
429
|
+
any:
|
|
430
|
+
- inside: { kind: variable_declarator, field: name }
|
|
431
|
+
- inside: { kind: function_declaration, field: name }
|
|
432
|
+
- inside: { kind: generator_function_declaration, field: name }
|
|
433
|
+
- inside: { kind: function_expression, field: name }
|
|
434
|
+
- inside: { kind: required_parameter, field: pattern }
|
|
435
|
+
- inside: { kind: optional_parameter, field: pattern }
|
|
436
|
+
- inside: { kind: assignment_pattern, field: left }
|
|
437
|
+
- inside: { kind: pair_pattern, field: value }
|
|
438
|
+
- inside: { kind: array_pattern }
|
|
439
|
+
- inside: { kind: rest_pattern }
|
|
440
|
+
- inside: { kind: arrow_function, field: parameter }
|
|
441
|
+
- inside: { kind: catch_clause, field: parameter }
|
|
442
|
+
- kind: type_identifier
|
|
443
|
+
inside: { kind: class_declaration, field: name }
|
|
444
|
+
# A function declaration opens a scope, so the search above stops at it and
|
|
445
|
+
# never reads its name. This matches the declaration itself instead.
|
|
446
|
+
function-declaration:
|
|
447
|
+
any:
|
|
448
|
+
- kind: function_declaration
|
|
449
|
+
- kind: generator_function_declaration
|
|
450
|
+
# The `RadioGroup` import from `@ngrok/mantle/radio-group`. It binds $RG to
|
|
451
|
+
# the local name, so an aliased import matches and another library's
|
|
452
|
+
# `RadioGroup` does not.
|
|
453
|
+
radio-group-import:
|
|
454
|
+
kind: import_statement
|
|
455
|
+
all:
|
|
456
|
+
- has:
|
|
457
|
+
field: source
|
|
458
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
459
|
+
- has:
|
|
460
|
+
stopBy: end
|
|
461
|
+
kind: import_specifier
|
|
462
|
+
has:
|
|
463
|
+
field: name
|
|
464
|
+
regex: ^RadioGroup$
|
|
465
|
+
any:
|
|
466
|
+
- kind: import_specifier
|
|
467
|
+
has:
|
|
468
|
+
field: alias
|
|
469
|
+
pattern: $RG
|
|
470
|
+
- kind: import_specifier
|
|
471
|
+
not:
|
|
472
|
+
has:
|
|
473
|
+
field: alias
|
|
474
|
+
kind: identifier
|
|
475
|
+
has:
|
|
476
|
+
field: name
|
|
477
|
+
pattern: $RG
|
|
478
|
+
# A `typeof` type query, `$RG.ButtonGroup` or `$RG.Button`, that reads the
|
|
479
|
+
# import.
|
|
480
|
+
old-part-name:
|
|
481
|
+
kind: member_expression
|
|
482
|
+
all:
|
|
483
|
+
- has:
|
|
484
|
+
field: object
|
|
485
|
+
pattern: $RG
|
|
486
|
+
- has:
|
|
487
|
+
field: property
|
|
488
|
+
regex: ^(ButtonGroup|Button)$
|
|
489
|
+
- inside: { kind: type_query }
|
|
490
|
+
- inside:
|
|
491
|
+
stopBy: end
|
|
492
|
+
kind: program
|
|
493
|
+
has:
|
|
494
|
+
matches: radio-group-import
|
|
495
|
+
# Why: a parameter or a local under the import's name shadows it, and the
|
|
496
|
+
# rules cannot tell which binding the element reads.
|
|
497
|
+
- not:
|
|
498
|
+
inside:
|
|
499
|
+
stopBy: end
|
|
500
|
+
matches: scope
|
|
501
|
+
has:
|
|
502
|
+
stopBy:
|
|
503
|
+
matches: scope
|
|
504
|
+
any:
|
|
505
|
+
- matches: binding-name
|
|
506
|
+
pattern: $RG
|
|
507
|
+
- matches: function-declaration
|
|
508
|
+
has:
|
|
509
|
+
field: name
|
|
510
|
+
pattern: $RG
|
|
511
|
+
rule:
|
|
512
|
+
matches: old-part-name
|
|
513
|
+
has:
|
|
514
|
+
field: property
|
|
515
|
+
regex: ^ButtonGroup$
|
|
516
|
+
fix: SegmentedControl.Root
|
|
517
|
+
---
|
|
518
|
+
id: radio-group-button-to-segmented-control-item
|
|
519
|
+
language: typescript
|
|
520
|
+
message: RadioGroup.Button is SegmentedControl.Item
|
|
521
|
+
utils:
|
|
522
|
+
# A node that opens a lexical scope. The shadow search below stops at a
|
|
523
|
+
# nested one, so a sibling function's local name does not count.
|
|
524
|
+
scope:
|
|
525
|
+
any:
|
|
526
|
+
- kind: statement_block
|
|
527
|
+
- kind: function_declaration
|
|
528
|
+
- kind: generator_function_declaration
|
|
529
|
+
- kind: function_expression
|
|
530
|
+
- kind: generator_function
|
|
531
|
+
- kind: arrow_function
|
|
532
|
+
- kind: method_definition
|
|
533
|
+
- kind: class_body
|
|
534
|
+
- kind: for_statement
|
|
535
|
+
- kind: for_in_statement
|
|
536
|
+
- kind: catch_clause
|
|
537
|
+
# An identifier in a binding position: a parameter, a destructured name, a
|
|
538
|
+
# local variable, a function name, or a class name.
|
|
539
|
+
binding-name:
|
|
540
|
+
any:
|
|
541
|
+
- kind: shorthand_property_identifier_pattern
|
|
542
|
+
- kind: identifier
|
|
543
|
+
any:
|
|
544
|
+
- inside: { kind: variable_declarator, field: name }
|
|
545
|
+
- inside: { kind: function_declaration, field: name }
|
|
546
|
+
- inside: { kind: generator_function_declaration, field: name }
|
|
547
|
+
- inside: { kind: function_expression, field: name }
|
|
548
|
+
- inside: { kind: required_parameter, field: pattern }
|
|
549
|
+
- inside: { kind: optional_parameter, field: pattern }
|
|
550
|
+
- inside: { kind: assignment_pattern, field: left }
|
|
551
|
+
- inside: { kind: pair_pattern, field: value }
|
|
552
|
+
- inside: { kind: array_pattern }
|
|
553
|
+
- inside: { kind: rest_pattern }
|
|
554
|
+
- inside: { kind: arrow_function, field: parameter }
|
|
555
|
+
- inside: { kind: catch_clause, field: parameter }
|
|
556
|
+
- kind: type_identifier
|
|
557
|
+
inside: { kind: class_declaration, field: name }
|
|
558
|
+
# A function declaration opens a scope, so the search above stops at it and
|
|
559
|
+
# never reads its name. This matches the declaration itself instead.
|
|
560
|
+
function-declaration:
|
|
561
|
+
any:
|
|
562
|
+
- kind: function_declaration
|
|
563
|
+
- kind: generator_function_declaration
|
|
564
|
+
# The `RadioGroup` import from `@ngrok/mantle/radio-group`. It binds $RG to
|
|
565
|
+
# the local name, so an aliased import matches and another library's
|
|
566
|
+
# `RadioGroup` does not.
|
|
567
|
+
radio-group-import:
|
|
568
|
+
kind: import_statement
|
|
569
|
+
all:
|
|
570
|
+
- has:
|
|
571
|
+
field: source
|
|
572
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
573
|
+
- has:
|
|
574
|
+
stopBy: end
|
|
575
|
+
kind: import_specifier
|
|
576
|
+
has:
|
|
577
|
+
field: name
|
|
578
|
+
regex: ^RadioGroup$
|
|
579
|
+
any:
|
|
580
|
+
- kind: import_specifier
|
|
581
|
+
has:
|
|
582
|
+
field: alias
|
|
583
|
+
pattern: $RG
|
|
584
|
+
- kind: import_specifier
|
|
585
|
+
not:
|
|
586
|
+
has:
|
|
587
|
+
field: alias
|
|
588
|
+
kind: identifier
|
|
589
|
+
has:
|
|
590
|
+
field: name
|
|
591
|
+
pattern: $RG
|
|
592
|
+
# A `typeof` type query, `$RG.ButtonGroup` or `$RG.Button`, that reads the
|
|
593
|
+
# import.
|
|
594
|
+
old-part-name:
|
|
595
|
+
kind: member_expression
|
|
596
|
+
all:
|
|
597
|
+
- has:
|
|
598
|
+
field: object
|
|
599
|
+
pattern: $RG
|
|
600
|
+
- has:
|
|
601
|
+
field: property
|
|
602
|
+
regex: ^(ButtonGroup|Button)$
|
|
603
|
+
- inside: { kind: type_query }
|
|
604
|
+
- inside:
|
|
605
|
+
stopBy: end
|
|
606
|
+
kind: program
|
|
607
|
+
has:
|
|
608
|
+
matches: radio-group-import
|
|
609
|
+
# Why: a parameter or a local under the import's name shadows it, and the
|
|
610
|
+
# rules cannot tell which binding the element reads.
|
|
611
|
+
- not:
|
|
612
|
+
inside:
|
|
613
|
+
stopBy: end
|
|
614
|
+
matches: scope
|
|
615
|
+
has:
|
|
616
|
+
stopBy:
|
|
617
|
+
matches: scope
|
|
618
|
+
any:
|
|
619
|
+
- matches: binding-name
|
|
620
|
+
pattern: $RG
|
|
621
|
+
- matches: function-declaration
|
|
622
|
+
has:
|
|
623
|
+
field: name
|
|
624
|
+
pattern: $RG
|
|
625
|
+
rule:
|
|
626
|
+
matches: old-part-name
|
|
627
|
+
has:
|
|
628
|
+
field: property
|
|
629
|
+
regex: ^Button$
|
|
630
|
+
fix: SegmentedControl.Item
|
|
631
|
+
---
|
|
632
|
+
id: add-segmented-control-import
|
|
633
|
+
language: typescript
|
|
634
|
+
message: import SegmentedControl from @ngrok/mantle/segmented-control
|
|
635
|
+
utils:
|
|
636
|
+
# A node that opens a lexical scope. The shadow search below stops at a
|
|
637
|
+
# nested one, so a sibling function's local name does not count.
|
|
638
|
+
scope:
|
|
639
|
+
any:
|
|
640
|
+
- kind: statement_block
|
|
641
|
+
- kind: function_declaration
|
|
642
|
+
- kind: generator_function_declaration
|
|
643
|
+
- kind: function_expression
|
|
644
|
+
- kind: generator_function
|
|
645
|
+
- kind: arrow_function
|
|
646
|
+
- kind: method_definition
|
|
647
|
+
- kind: class_body
|
|
648
|
+
- kind: for_statement
|
|
649
|
+
- kind: for_in_statement
|
|
650
|
+
- kind: catch_clause
|
|
651
|
+
# An identifier in a binding position: a parameter, a destructured name, a
|
|
652
|
+
# local variable, a function name, or a class name.
|
|
653
|
+
binding-name:
|
|
654
|
+
any:
|
|
655
|
+
- kind: shorthand_property_identifier_pattern
|
|
656
|
+
- kind: identifier
|
|
657
|
+
any:
|
|
658
|
+
- inside: { kind: variable_declarator, field: name }
|
|
659
|
+
- inside: { kind: function_declaration, field: name }
|
|
660
|
+
- inside: { kind: generator_function_declaration, field: name }
|
|
661
|
+
- inside: { kind: function_expression, field: name }
|
|
662
|
+
- inside: { kind: required_parameter, field: pattern }
|
|
663
|
+
- inside: { kind: optional_parameter, field: pattern }
|
|
664
|
+
- inside: { kind: assignment_pattern, field: left }
|
|
665
|
+
- inside: { kind: pair_pattern, field: value }
|
|
666
|
+
- inside: { kind: array_pattern }
|
|
667
|
+
- inside: { kind: rest_pattern }
|
|
668
|
+
- inside: { kind: arrow_function, field: parameter }
|
|
669
|
+
- inside: { kind: catch_clause, field: parameter }
|
|
670
|
+
- kind: type_identifier
|
|
671
|
+
inside: { kind: class_declaration, field: name }
|
|
672
|
+
# A function declaration opens a scope, so the search above stops at it and
|
|
673
|
+
# never reads its name. This matches the declaration itself instead.
|
|
674
|
+
function-declaration:
|
|
675
|
+
any:
|
|
676
|
+
- kind: function_declaration
|
|
677
|
+
- kind: generator_function_declaration
|
|
678
|
+
# The `RadioGroup` import from `@ngrok/mantle/radio-group`. It binds $RG to
|
|
679
|
+
# the local name, so an aliased import matches and another library's
|
|
680
|
+
# `RadioGroup` does not.
|
|
681
|
+
radio-group-import:
|
|
682
|
+
kind: import_statement
|
|
683
|
+
all:
|
|
684
|
+
- has:
|
|
685
|
+
field: source
|
|
686
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
687
|
+
- has:
|
|
688
|
+
stopBy: end
|
|
689
|
+
kind: import_specifier
|
|
690
|
+
has:
|
|
691
|
+
field: name
|
|
692
|
+
regex: ^RadioGroup$
|
|
693
|
+
any:
|
|
694
|
+
- kind: import_specifier
|
|
695
|
+
has:
|
|
696
|
+
field: alias
|
|
697
|
+
pattern: $RG
|
|
698
|
+
- kind: import_specifier
|
|
699
|
+
not:
|
|
700
|
+
has:
|
|
701
|
+
field: alias
|
|
702
|
+
kind: identifier
|
|
703
|
+
has:
|
|
704
|
+
field: name
|
|
705
|
+
pattern: $RG
|
|
706
|
+
# A `typeof` type query, `$RG.ButtonGroup` or `$RG.Button`, that reads the
|
|
707
|
+
# import.
|
|
708
|
+
old-part-name:
|
|
709
|
+
kind: member_expression
|
|
710
|
+
all:
|
|
711
|
+
- has:
|
|
712
|
+
field: object
|
|
713
|
+
pattern: $RG
|
|
714
|
+
- has:
|
|
715
|
+
field: property
|
|
716
|
+
regex: ^(ButtonGroup|Button)$
|
|
717
|
+
- inside: { kind: type_query }
|
|
718
|
+
- inside:
|
|
719
|
+
stopBy: end
|
|
720
|
+
kind: program
|
|
721
|
+
has:
|
|
722
|
+
matches: radio-group-import
|
|
723
|
+
# Why: a parameter or a local under the import's name shadows it, and the
|
|
724
|
+
# rules cannot tell which binding the element reads.
|
|
725
|
+
- not:
|
|
726
|
+
inside:
|
|
727
|
+
stopBy: end
|
|
728
|
+
matches: scope
|
|
729
|
+
has:
|
|
730
|
+
stopBy:
|
|
731
|
+
matches: scope
|
|
732
|
+
any:
|
|
733
|
+
- matches: binding-name
|
|
734
|
+
pattern: $RG
|
|
735
|
+
- matches: function-declaration
|
|
736
|
+
has:
|
|
737
|
+
field: name
|
|
738
|
+
pattern: $RG
|
|
739
|
+
# A `@ngrok/mantle/radio-group` import, of any name.
|
|
740
|
+
any-radio-group-import:
|
|
741
|
+
kind: import_statement
|
|
742
|
+
has:
|
|
743
|
+
field: source
|
|
744
|
+
regex: ^["']@ngrok/mantle/radio-group["']$
|
|
745
|
+
# An import that supplies the name the renames write: `SegmentedControl`
|
|
746
|
+
# from `@ngrok/mantle/segmented-control`, with no alias. An aliased import
|
|
747
|
+
# does not supply it.
|
|
748
|
+
segmented-control-import:
|
|
749
|
+
kind: import_statement
|
|
750
|
+
all:
|
|
751
|
+
- has:
|
|
752
|
+
field: source
|
|
753
|
+
regex: ^["']@ngrok/mantle/segmented-control["']$
|
|
754
|
+
- has:
|
|
755
|
+
stopBy: end
|
|
756
|
+
kind: import_specifier
|
|
757
|
+
all:
|
|
758
|
+
- has:
|
|
759
|
+
field: name
|
|
760
|
+
regex: ^SegmentedControl$
|
|
761
|
+
- not:
|
|
762
|
+
has:
|
|
763
|
+
field: alias
|
|
764
|
+
kind: identifier
|
|
765
|
+
rule:
|
|
766
|
+
all:
|
|
767
|
+
- pattern: $IMPORT
|
|
768
|
+
# Why the first one: a file with two radio-group imports gets the new
|
|
769
|
+
# import once.
|
|
770
|
+
- matches: any-radio-group-import
|
|
771
|
+
- not:
|
|
772
|
+
follows:
|
|
773
|
+
stopBy: end
|
|
774
|
+
matches: any-radio-group-import
|
|
775
|
+
# A file with a part to rename gets the import. Why no $RG here: the part
|
|
776
|
+
# binds $RG itself, so it can read any of the file's radio-group imports.
|
|
777
|
+
- inside:
|
|
778
|
+
kind: program
|
|
779
|
+
all:
|
|
780
|
+
- has:
|
|
781
|
+
stopBy: end
|
|
782
|
+
matches: old-part-name
|
|
783
|
+
- not:
|
|
784
|
+
has:
|
|
785
|
+
matches: segmented-control-import
|
|
786
|
+
fix: |-
|
|
787
|
+
$IMPORT
|
|
788
|
+
import { SegmentedControl } from "@ngrok/mantle/segmented-control";
|