Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sad-knives-return.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lynx-js/genui": patch
---

fix: export catalog jsx components
2 changes: 1 addition & 1 deletion packages/genui/a2ui/src/catalog/Button/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2026 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
import { A2UIRenderer } from '../../react/A2UIRenderer.js';
import { A2UIRenderer } from '../../react/A2UIRenderer.jsx';
import { useChecks } from '../../react/useChecks.js';
import type { CheckLike } from '../../react/useChecks.js';
import type { GenericComponentProps } from '../../store/types.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/genui/a2ui/src/catalog/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2026 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
import { NodeRenderer } from '../../react/A2UIRenderer.js';
import { NodeRenderer } from '../../react/A2UIRenderer.jsx';
import type { GenericComponentProps } from '../../store/types.js';

import '../../../styles/catalog/Card.css';
Expand Down
2 changes: 1 addition & 1 deletion packages/genui/a2ui/src/catalog/Column/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2026 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
import { NodeRenderer } from '../../react/A2UIRenderer.js';
import { NodeRenderer } from '../../react/A2UIRenderer.jsx';
import { useDataBinding } from '../../react/useDataBinding.js';
import type {
ComponentInstance,
Expand Down
2 changes: 1 addition & 1 deletion packages/genui/a2ui/src/catalog/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LICENSE file in the root directory of this source tree.
import type * as v0_9 from '@a2ui/web_core/v0_9';

import { NodeRenderer } from '../../react/A2UIRenderer.js';
import { NodeRenderer } from '../../react/A2UIRenderer.jsx';
import { useDataBinding } from '../../react/useDataBinding.js';
import type { GenericComponentProps } from '../../store/types.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/genui/a2ui/src/catalog/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '@lynx-js/lynx-ui';
import { useState } from '@lynx-js/react';

import { NodeRenderer } from '../../react/A2UIRenderer.js';
import { NodeRenderer } from '../../react/A2UIRenderer.jsx';
import type {
ComponentInstance,
GenericComponentProps,
Expand Down
2 changes: 1 addition & 1 deletion packages/genui/a2ui/src/catalog/Row/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2026 The Lynx Authors. All rights reserved.
// Licensed under the Apache License Version 2.0 that can be found in the
// LICENSE file in the root directory of this source tree.
import { NodeRenderer } from '../../react/A2UIRenderer.js';
import { NodeRenderer } from '../../react/A2UIRenderer.jsx';
import type { GenericComponentProps } from '../../store/types.js';

import '../../../styles/catalog/Row.css';
Expand Down
2 changes: 1 addition & 1 deletion packages/genui/a2ui/src/catalog/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// LICENSE file in the root directory of this source tree.
import { useState } from '@lynx-js/react';

import { NodeRenderer } from '../../react/A2UIRenderer.js';
import { NodeRenderer } from '../../react/A2UIRenderer.jsx';
import type { GenericComponentProps, Surface } from '../../store/types.js';

import '../../../styles/catalog/Tabs.css';
Expand Down
38 changes: 19 additions & 19 deletions packages/genui/a2ui/src/catalog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ export const catalogManifests: Record<string, CatalogManifest> = {};
// Per-component re-exports so consumers can pick exactly what they need.
// Each is an independently tree-shakeable ESM re-export — pulling `Text`
// does not drag `Button` into the bundle.
export { Button } from './Button/index.js';
export { Card } from './Card/index.js';
export { CheckBox } from './CheckBox/index.js';
export { ChoicePicker } from './ChoicePicker/index.js';
export { DateTimeInput } from './DateTimeInput/index.js';
export { LineChart } from './LineChart/index.js';
export { PieChart } from './PieChart/index.js';
export { Column } from './Column/index.js';
export { Divider } from './Divider/index.js';
export { Icon } from './Icon/index.js';
export { Image } from './Image/index.js';
export { List } from './List/index.js';
export { Modal } from './Modal/index.js';
export { RadioGroup } from './RadioGroup/index.js';
export { Row } from './Row/index.js';
export { Slider } from './Slider/index.js';
export { Tabs } from './Tabs/index.js';
export { Text } from './Text/index.js';
export { TextField } from './TextField/index.js';
export { Button } from './Button/index.jsx';
export { Card } from './Card/index.jsx';
export { CheckBox } from './CheckBox/index.jsx';
export { ChoicePicker } from './ChoicePicker/index.jsx';
export { DateTimeInput } from './DateTimeInput/index.jsx';
export { LineChart } from './LineChart/index.jsx';
export { PieChart } from './PieChart/index.jsx';
export { Column } from './Column/index.jsx';
export { Divider } from './Divider/index.jsx';
export { Icon } from './Icon/index.jsx';
export { Image } from './Image/index.jsx';
export { List } from './List/index.jsx';
export { Modal } from './Modal/index.jsx';
export { RadioGroup } from './RadioGroup/index.jsx';
export { Row } from './Row/index.jsx';
export { Slider } from './Slider/index.jsx';
export { Tabs } from './Tabs/index.jsx';
export { Text } from './Text/index.jsx';
export { TextField } from './TextField/index.jsx';
export { DEFAULT_CHART_COLORS, escapeXml, formatValue } from './utils/chart.js';
6 changes: 3 additions & 3 deletions packages/genui/a2ui/src/react/A2UI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import {
} from '@lynx-js/react';
import type { ReactNode } from '@lynx-js/react';

import { A2UIProvider } from './A2UIProvider.js';
import { A2UIRenderer } from './A2UIRenderer.js';
import type { UnsupportedInfo } from './A2UIRenderer.js';
import { A2UIProvider } from './A2UIProvider.jsx';
import { A2UIRenderer } from './A2UIRenderer.jsx';
import type { UnsupportedInfo } from './A2UIRenderer.jsx';
import type { Catalog, CatalogInput } from '../catalog/defineCatalog.js';
import { defineCatalog } from '../catalog/defineCatalog.js';
import { MessageProcessor } from '../store/MessageProcessor.js';
Expand Down
6 changes: 3 additions & 3 deletions packages/genui/a2ui/src/react/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
// that aggregates input validity — exporting the context now would
// pre-commit the package to a Provider-based API before there's a real
// consumer to validate it.
export { A2UI } from './A2UI.js';
export type { A2UIProps } from './A2UI.js';
export { NodeRenderer } from './A2UIRenderer.js';
export { A2UI } from './A2UI.jsx';
export type { A2UIProps } from './A2UI.jsx';
export { NodeRenderer } from './A2UIRenderer.jsx';
export { useAction } from './useAction.js';
export type { ActionProps } from './useAction.js';
export { useDataBinding, useResolvedProps } from './useDataBinding.js';
Expand Down
4 changes: 2 additions & 2 deletions packages/genui/a2ui/src/react/useA2UIContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// LICENSE file in the root directory of this source tree.
import { useContext } from '@lynx-js/react';

import { A2UIContext } from './A2UIProvider.js';
import type { A2UIInternalContext } from './A2UIProvider.js';
import { A2UIContext } from './A2UIProvider.jsx';
import type { A2UIInternalContext } from './A2UIProvider.jsx';

/**
* Internal helper used by catalog-component hooks (`useAction`, the
Expand Down
2 changes: 1 addition & 1 deletion packages/genui/a2ui/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"noEmit": false,
"rootDir": "./src",
"jsx": "react-jsx",
"jsx": "preserve",
"tsBuildInfoFile": "./dist/tsconfig.build.tsbuildinfo",
},
"include": ["src"],
Expand Down
Loading