Skip to content
Draft
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
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,39 @@ jobs:
- name: Test
run: npm test --prefix js/packages/truapi-host

ts-react-renderer:
name: "@parity/truapi-react-renderer"
runs-on: ubuntu-latest
needs: codegen
env:
TRUAPI_REQUIRE_GENERATED: 1
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 22

- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: latest

- name: Download codegen output
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: codegen-output

- name: Install
run: npm ci --ignore-scripts

- name: Build
run: npm run build --prefix js/packages/truapi-react-renderer

- name: Test
run: npm test --prefix js/packages/truapi-react-renderer

playground:
name: Playground (build + lint)
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ playground/tsconfig.tsbuildinfo
js/packages/truapi/dist/
js/packages/truapi/node_modules/
REVIEW_TODO*.md
js/packages/truapi-react-renderer/dist/
3 changes: 3 additions & 0 deletions js/packages/truapi-react-renderer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
*.tsbuildinfo
dist/
47 changes: 47 additions & 0 deletions js/packages/truapi-react-renderer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@parity/truapi-react-renderer",
"version": "0.0.0",
"description": "React renderer for TrUAPI custom chat messages: maps a React component tree to CustomRendererNode widget trees",
"license": "MIT",
"author": "Parity Technologies <admin@parity.io>",
"repository": {
"type": "git",
"url": "git+https://github.com/paritytech/truapi.git",
"directory": "js/packages/truapi-react-renderer"
},
"homepage": "https://github.com/paritytech/truapi#readme",
"bugs": {
"url": "https://github.com/paritytech/truapi/issues"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsc -b",
"typecheck": "npm run build",
"test": "bun test"
},
"dependencies": {
"@parity/truapi": "^0.7.0",
"react-reconciler": "0.33.0"
},
"peerDependencies": {
"react": "^19.2.0"
},
"devDependencies": {
"@types/bun": "^1.3.0",
"@types/react": "^19.0.0",
"@types/react-reconciler": "0.33.0",
"react": "^19.2.0",
"typescript": "^5.7"
}
}
Loading