Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
54a0a79
chore: edit text canvas preview changes
jamesalphanome Nov 21, 2025
4a95ac0
chore: show code editor also
jamesalphanome Nov 21, 2025
116eafd
chore: simple changes
jamesalphanome Nov 23, 2025
02df9ca
4.0.2-0
jamesalphanome Nov 23, 2025
583f4c6
Revert "4.0.2-0"
jamesalphanome Nov 23, 2025
2d2338a
chore: v 4.2.0-beta-1
jamesalphanome Nov 23, 2025
75eb3c8
chore: package.lock version update
jamesalphanome Nov 23, 2025
2f34461
chore: some dependencies issuses fix
jamesalphanome Nov 24, 2025
918f262
chore: rollup config changes
jamesalphanome Nov 24, 2025
9a2a3b5
chore: remove package-lock json
jamesalphanome Nov 24, 2025
9f36b04
Revert "chore: key destructing warning fix"
jamesalphanome Nov 24, 2025
85fdf45
chore: v 4.2.0-beta-2
jamesalphanome Nov 24, 2025
3e06068
chore: destructing key in react element
jamesalphanome Nov 24, 2025
1501e9b
chore: wrong component export bug fix
jamesalphanome Nov 24, 2025
eae27e3
chore: v 4.2.0-beta-3
jamesalphanome Nov 24, 2025
b29112f
Revert "chore: rollup config changes"
jamesalphanome Nov 24, 2025
6f5123b
chore: remove unused file
jamesalphanome Nov 24, 2025
62e95a0
chore: v 4.2.0-beta-6
jamesalphanome Nov 24, 2025
735e5e7
chore: v 4.2.0-beta.7
jamesalphanome Nov 24, 2025
3be33a0
chore: changes - rollup.mjs, remove type in package.json ...
jamesalphanome Nov 24, 2025
3dfdce0
chore: added proper id react-code-canvas to preview
jamesalphanome Nov 25, 2025
6dc3be6
chore: interoperability issue - Editor from react-simple-code-editor
jamesalphanome Nov 25, 2025
8cff80a
chore: v 4.2.0-beta.8
jamesalphanome Nov 25, 2025
2ccb4f1
chore: text changes
jamesalphanome Nov 25, 2025
5222569
chore: changelog changes
jamesalphanome Nov 25, 2025
6d30702
chore: added motion-react to scope
jamesalphanome Nov 25, 2025
a3f1fd1
chore: added doc links to scopes
jamesalphanome Nov 25, 2025
cc4d451
chore: do not include sourcemaps
jamesalphanome Nov 25, 2025
ec03c65
chore: v 4.2.0-beta.9
jamesalphanome Nov 25, 2025
7201f4f
chore: edited changelog
jamesalphanome Nov 25, 2025
ca90e13
chore: v 4.2.0-beta.10
jamesalphanome Nov 25, 2025
8880a45
chore: fixes to motion scope
jamesalphanome Nov 25, 2025
6a841c6
chore: v 4.2.0-beta.11
jamesalphanome Nov 25, 2025
99efb5d
chore: changes to changlog
jamesalphanome Nov 25, 2025
9274f70
chore: remove tailwind - Twind
jamesalphanome Nov 25, 2025
4ada445
chore: readme change
jamesalphanome Nov 25, 2025
57b1e69
chore: added test for scope
jamesalphanome Nov 25, 2025
a521a66
chore: include tailwind script in stories
jamesalphanome Nov 25, 2025
400c741
chore: v 4.2.0-beta.12
jamesalphanome Nov 25, 2025
de415f8
chore: readme change
jamesalphanome Nov 25, 2025
163a8f0
v 4.2.0-beta.13
jamesalphanome Nov 26, 2025
06d41d5
chore: added Helmet async to scope
jamesalphanome Nov 26, 2025
3861375
chore: use helmet async
jamesalphanome Nov 26, 2025
17afc24
chore: add hemlet to scope
jamesalphanome Nov 26, 2025
3cfc867
chore: tailwind css cdn
jamesalphanome Nov 26, 2025
fb01b60
chore: v 4.2.0-beta.14
jamesalphanome Nov 26, 2025
41fcc32
chore: v 4.2.0-beta.15
jamesalphanome Nov 26, 2025
3971567
chore: test file changes
jamesalphanome Dec 18, 2025
2484b5a
chore: handle errors in babel transformer & in edit text canvas
jamesalphanome Dec 18, 2025
b3574ac
chore: updated tests
jamesalphanome Dec 18, 2025
d31a065
chore: changes to edit text story
jamesalphanome Dec 18, 2025
18d37d6
chore: readme update - onError
jamesalphanome Dec 18, 2025
c2e5cf3
chore: proper error casting
jamesalphanome Dec 18, 2025
236495e
chore: github cicd test
jamesalphanome Dec 18, 2025
b1cfd33
fix: github workflow
jamesalphanome Dec 18, 2025
074c32b
fix: use npm install
jamesalphanome Dec 18, 2025
3a5e86e
chore: action cache issue
jamesalphanome Dec 18, 2025
76e6e75
chore: v - 4.2.0-beta.16
jamesalphanome Dec 18, 2025
3c45efe
chore: react canvas error message has an id now
jamesalphanome Jan 21, 2026
08c4119
chore: port to bun
jamestitus299 Jun 10, 2026
7ea4431
chore: added templates for issues, bug report & contribution.md etc.
jamestitus299 Jun 10, 2026
34f7deb
chore: commented unwanted block in feature request template - for now
jamestitus299 Jun 10, 2026
2e5730b
chore: description update
jamestitus299 Jun 10, 2026
0fe514c
chore: removed prepare script
jamestitus299 Jun 10, 2026
3b32463
chore: added rrc icon
jamestitus299 Jun 10, 2026
928e69c
chore: tsconfig.json deprecation fixes
jamestitus299 Jun 10, 2026
dad0e16
chore: readme edit
jamestitus299 Jun 10, 2026
b783c3f
chore: added changelog.md file
jamestitus299 Jun 10, 2026
1528606
chore: organized the run test file
jamestitus299 Jun 10, 2026
0460bc9
feat: docs site
jamestitus299 Jun 10, 2026
f9b8563
chore: docs ui changes
jamestitus299 Jun 10, 2026
3aec323
chore: added types and export fields to package.json
jamestitus299 Jun 17, 2026
9a93e50
chore: added agent.md - minimal
jamestitus299 Jun 17, 2026
6c549d3
chore: canvas can now persist react component to localstorage, also a…
jamestitus299 Jun 18, 2026
d4ff804
chore: docs landing page redesign
jamestitus299 Jun 18, 2026
cd306cc
chore: packaged version bump
jamestitus299 Jul 30, 2026
0e2a47e
chore: loading spinner when canvas is rendering/processing the react …
jamestitus299 Jul 30, 2026
38b9e32
chore: docs update
jamestitus299 Jul 30, 2026
5a733fe
chore: docs update
jamestitus299 Jul 30, 2026
2f1c2cf
chore: error toast with custom component support, fix spinner masking…
jamestitus299 Jul 30, 2026
14ab55f
chore: spinner overlay
jamestitus299 Jul 30, 2026
a2bf37c
chore: lazy loading babel
jamestitus299 Jul 30, 2026
d4fdb4b
chore: removed react-fa
jamestitus299 Jul 30, 2026
2b8e5ec
chore: added analyzeCode to analyze and validate react code
jamestitus299 Jul 31, 2026
d6f3de0
chore: added a react-code-canvas skill file for external use
jamestitus299 Jul 31, 2026
f02a660
chore: lazy load needed scope
jamestitus299 Jul 31, 2026
cd79aec
chore: onerror callback on reactcanvas
jamestitus299 Jul 31, 2026
7178a79
chore: v5.0.0-beta.2
jamestitus299 Jul 31, 2026
bd24251
chore: react-icons fa added to scope
jamestitus299 Aug 1, 2026
9f7c507
chore: lucid react version update
jamestitus299 Aug 3, 2026
191287a
chore: skill update
jamestitus299 Aug 3, 2026
9ca4f10
chore: v 5.0.0 beta 4
jamestitus299 Aug 3, 2026
c5cce8c
docs: update for 5.0.0
jamestitus299 Aug 3, 2026
43e3d53
feat: v 5.0.0
jamestitus299 Aug 3, 2026
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
91 changes: 91 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Bug report
description: Report a reproducible problem in react-code-canvas
title: "[Bug]: "
labels:
- bug
body:
- type: markdown
attributes:
value: |
Thanks for reporting a bug. Please include enough detail for maintainers to reproduce the issue.

- type: textarea
id: description
attributes:
label: Description
description: What happened?
placeholder: Describe the bug and what you expected to happen instead.
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Provide a minimal code sample, repository, sandbox, or step-by-step instructions.
placeholder: |
1. Render ...
2. Pass this code ...
3. See error ...
validations:
required: true

- type: input
id: package-version
attributes:
label: Package version
placeholder: "0.0.1"
validations:
required: true

- type: input
id: react-version
attributes:
label: React version
placeholder: "18.3.1"
validations:
required: true

# - type: dropdown
# id: component
# attributes:
# label: Affected API
# options:
# - ReactCanvas
# - EditTextReactCanvas
# - Scope/dependencies
# - Build/package output
# - Documentation
# - Other
# validations:
# required: true

- type: textarea
id: environment
attributes:
label: Environment
description: Browser, OS, Bun or Node version, bundler/framework, and any relevant dependency versions.
placeholder: |
Browser:
OS:
Bun/Node:
Bundler/framework:
validations:
required: true

- type: textarea
id: logs
attributes:
label: Logs or screenshots
description: Paste relevant errors, stack traces, or screenshots.
render: shell

- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I searched existing issues before opening this one.
required: true
- label: I provided a minimal reproduction or clear steps to reproduce.
required: true
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Contributing guide
url: https://github.com/jamestitus299/react-code-canvas/blob/master/CONTRIBUTING.md
about: Read this before opening an issue or pull request.
- name: Security note
url: https://github.com/jamestitus299/react-code-canvas/blob/master/CONTRIBUTING.md#security
about: Report sensitive security issues privately when possible.
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Feature request
description: Suggest an improvement or new capability
title: "[Feature]: "
labels:
- enhancement
body:
- type: markdown
attributes:
value: |
Thanks for suggesting an improvement. Please describe the problem first so the proposed change is easier to evaluate.

- type: textarea
id: problem
attributes:
label: Problem
description: What problem would this solve?
placeholder: I want to...
validations:
required: true

- type: textarea
id: proposal
attributes:
label: Proposed solution
description: What should change?
placeholder: Add support for...
validations:
required: true

# - type: dropdown
# id: area
# attributes:
# label: Area
# options:
# - ReactCanvas
# - EditTextReactCanvas
# - Scope/dependencies
# - Build/package output
# - Documentation
# - Developer experience
# - Other
# validations:
# required: true

- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: What other approaches or workarounds have you tried?

- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add screenshots, examples, links, or implementation notes.

- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I searched existing issues before opening this one.
required: true
- label: This request fits the scope of react-code-canvas.
required: true
26 changes: 26 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Summary

Describe what changed and why.

## Type of Change

- [ ] Bug fix
- [ ] Feature
- [ ] Documentation
- [ ] Refactor
- [ ] Build or CI change

## Testing

- [ ] I ran `bun run test`
- [ ] I ran `bun run build`
- [ ] I added or updated tests where needed
- [ ] I updated docs if behavior, setup, or public APIs changed

## Notes

Call out breaking changes, security implications, migration notes, or follow-up work.

## Related Issues

Closes #
56 changes: 56 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy Docs

on:
push:
branches: [master]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Install Dependencies
working-directory: doc_site
run: bun install --frozen-lockfile

- name: Build Docs
working-directory: doc_site
run: bun run build

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: doc_site/build

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test Suite

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14

- name: Install Dependencies
run: bun install --frozen-lockfile

- name: Run Jest Tests
run: bun run test

- name: Build Check
run: bun run build
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# dependencies
/node_modules
/doc_site/node_modules
/.pnp
.pnp.js
package-lock.json

# testing
/coverage

# production
# build
/dist
/storybook-static
/doc_site/.docusaurus
/doc_site/build

# misc
.DS_Store
Expand All @@ -22,4 +27,7 @@ yarn-error.log*

*storybook.log

*.html
bundle-analysis.html

# Agent
.claude/
4 changes: 2 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const config: StorybookConfig = {
],
"addons": [
"@storybook/addon-webpack5-compiler-swc",
"@storybook/addon-essentials",
"@storybook/addon-onboarding",
"@chromatic-com/storybook",
"@storybook/addon-interactions"
"@storybook/addon-mcp",
"@storybook/addon-docs"
],
"framework": {
"name": "@storybook/react-webpack5",
Expand Down
5 changes: 5 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Storybook injects this into every preview iframe's <head>, before any story
mounts. Loading the Tailwind CDN script here (instead of per-story via
<Helmet>) makes it load unconditionally and removes any dependency on
Helmet/React version behavior for something that's just dev tooling. -->
<script src="https://cdn.tailwindcss.com"></script>
2 changes: 1 addition & 1 deletion .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Preview } from '@storybook/react'
import type { Preview } from '@storybook/react-vite'

const preview: Preview = {
parameters: {
Expand Down
Loading
Loading