Skip to content

Commit 9a5e6dd

Browse files
committed
feat: add named exports for improved import flexibility and organization
1 parent d098890 commit 9a5e6dd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

core/src/index.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,31 @@ JsonView.Row = Row;
214214

215215
JsonView.displayName = 'JVR.JsonView';
216216

217+
// Named exports for better import flexibility
218+
export { JsonView };
219+
export type { JsonViewComponent };
220+
221+
// Named exports for type components
222+
export {
223+
Bigint,
224+
Date as JsonDate,
225+
False,
226+
Float,
227+
Int,
228+
Map as JsonMap,
229+
Nan,
230+
Null,
231+
Set as JsonSet,
232+
StringText as JsonString,
233+
True,
234+
Undefined,
235+
Url,
236+
};
237+
238+
// Named exports for symbol components
239+
export { BraceLeft, BraceRight, BracketsLeft, BracketsRight, Arrow, Colon, Quote, ValueQuote };
240+
241+
// Named exports for section components
242+
export { Copied, CountInfo, CountInfoExtra, Ellipsis, KeyName, Row };
243+
217244
export default JsonView;

0 commit comments

Comments
 (0)