Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
ecb6d61
Asserting CONTRIBUTING guidelines.
JaguarsCodehub Nov 20, 2022
4f1dcda
Several major changes to the @formio/react library, including:
brendanbond May 28, 2024
4846429
update to README and to event props
brendanbond May 29, 2024
5164bc3
v6.0.0-dev.568.4846429
brendanbond May 29, 2024
4110b52
remove unused console log
brendanbond May 31, 2024
5af2a51
refactor base hook; remove errant dep
brendanbond Jun 3, 2024
6025643
v6.0.0-dev.568.5af2a51
brendanbond Jun 3, 2024
68c8669
no longer consume SDK event emitter
brendanbond Jun 4, 2024
2f29df8
v6.0.0-dev.568.68c8669
brendanbond Jun 4, 2024
cb63fcb
make baseUrl and projectUrl optional
brendanbond Jun 4, 2024
cbd0ebf
v6.0.0-dev.568.cb63fcb
brendanbond Jun 4, 2024
7a9e628
decouple form event handlers from instance creation
brendanbond Jun 5, 2024
b453701
wrap auth in useeffect
brendanbond Jun 5, 2024
902ae83
v6.0.0-dev.568.b453701
brendanbond Jun 5, 2024
1f7567b
updates coming in and out should be memoized to ensure non-stable ref…
brendanbond Jun 5, 2024
ced0fbd
update formbuilder prop
brendanbond Jun 5, 2024
5ea507c
v6.0.0-dev.568.ced0fbd
brendanbond Jun 5, 2024
758d04f
formatting
brendanbond Jun 5, 2024
fca109b
add structuredClone polyfill
brendanbond Jun 6, 2024
1849ab7
don't clone event args in Form
brendanbond Jun 10, 2024
7c4f8a7
Merge pull request #568 from formio/FIO-7733-lots-of-react-updates
travist Jun 18, 2024
526dcb6
Update Changelog.md
lane-formio Jun 25, 2024
57fdf68
FIO-8943: upgrade dev dependencies to latest rcs; fix type error (#578)
brendanbond Sep 2, 2024
76aa9c0
Update Changelog.md
TanyaGashtold Sep 2, 2024
eb8cce7
Updated Build
lane-formio Sep 3, 2024
43a1149
Bump webpack from 5.91.0 to 5.94.0
dependabot[bot] Oct 1, 2024
6e16433
Bump ws from 8.17.0 to 8.18.0
dependabot[bot] Oct 1, 2024
2c9a8c7
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Oct 1, 2024
c5286f9
Merge pull request #588 from formio/dependabot/npm_and_yarn/braces-3.0.3
lane-formio Oct 1, 2024
0e09076
Merge pull request #587 from formio/dependabot/npm_and_yarn/ws-8.18.0
lane-formio Oct 1, 2024
9daa55e
Merge pull request #586 from formio/dependabot/npm_and_yarn/webpack-5…
lane-formio Oct 1, 2024
a69a963
Bump micromatch from 4.0.5 to 4.0.8
dependabot[bot] Oct 1, 2024
9f128ea
Merge pull request #585 from formio/dependabot/npm_and_yarn/micromatc…
lane-formio Oct 2, 2024
22e7698
Update bug_report.md
lane-formio Oct 4, 2024
194e2f3
Update README.md
brendanbond Oct 17, 2024
232aa98
FIO-9413: Fix library license check
mikekotikov Dec 6, 2024
eacb4d3
Merge pull request #489 from JaguarsCodehub/patch-1
brendanbond Dec 11, 2024
886f8c8
FIO-9590: Add showing error when trying to save duplicate form names
mikekotikov Jan 16, 2025
b1af695
FIO-9592: Fix default submit button
mikekotikov Jan 17, 2025
ddc3a14
adjust formatting
mikekotikov Jan 17, 2025
9f30377
FIO-9584: removed pdf display option from builder
TanyaGashtold Jan 20, 2025
6020c5a
Merge pull request #594 from formio/FIO-9584-removed-pdf-diplay-option
brendanbond Jan 21, 2025
d39524b
FIO-9589: fixed an issue where form does not work correctly after the…
TanyaGashtold Jan 23, 2025
843a632
FIO-9592: Additional fix
mikekotikov Jan 23, 2025
5bce74f
Merge pull request #595 from formio/FIO-9589-fixed-incorrect-form-wor…
brendanbond Jan 23, 2025
a02986b
Merge pull request #592 from formio/fix/FIO-9590_show_error_with_dupl…
brendanbond Jan 23, 2025
21b7c2c
Revert "FIO-9592: Additional fix"
brendanbond Jan 23, 2025
50d4bde
Merge pull request #593 from formio/fix/FIO-9592_saved_submit_button_…
brendanbond Jan 23, 2025
3a9fe6f
add interface to FormioProvider to allow for extending Formio object
brendanbond Jan 15, 2025
414e8b6
update README
brendanbond Jan 15, 2025
f24f83f
update readme and add temporary currentForm form option
brendanbond Jan 15, 2025
bfe94b3
v6.0.0-dev.591.cd72e93
brendanbond Jan 15, 2025
0d9d0ef
update readme; add currentForm option
brendanbond Jan 15, 2025
27ca44c
fix typo
brendanbond Jan 15, 2025
0c374d5
add github action workflow to build, test, publish
brendanbond Jan 27, 2025
76db3fb
fix case issue in test environment setup
brendanbond Jan 27, 2025
5daa202
refactored Form component code to prevent the exhaustive-deps error f…
TanyaGashtold Jan 28, 2025
93938ce
Merge pull request #597 from formio/skip-hook-all-arguments-eslint-error
brendanbond Jan 28, 2025
928e477
do not recreate form instance if the form json is not changed deeply
TanyaGashtold Jan 29, 2025
1ceda0d
Merge pull request #598 from formio/fixed-instance-recreation-when-js…
brendanbond Jan 29, 2025
100e708
FIO-9671: fix Next pagination button
Feb 4, 2025
74b0cd5
Merge pull request #589 from formio/fix/FIO-9413_library_license_chec…
brendanbond Feb 4, 2025
92a8cb1
Merge pull request #599 from formio/FIO-9671-fix-pagination
brendanbond Feb 5, 2025
197adef
Update repository URL
lane-formio Feb 6, 2025
4196477
Update additional URLs
lane-formio Feb 6, 2025
67a4325
Update Changelog.md
lane-formio Feb 6, 2025
973e616
Update README.md
brendanbond Feb 7, 2025
9001656
FIO-9678: fixed an issue where number value is not displayed is submi…
TanyaGashtold Feb 12, 2025
ac96c69
Merge pull request #600 from formio/FIO-9678-fixed-number-value-displ…
brendanbond Feb 12, 2025
502b8e5
FIO-9881: upgrated up to React19
KirylDrutsko Apr 30, 2025
71918a4
added yarn.lock
KirylDrutsko Apr 30, 2025
52bed4a
Merge pull request #607 from formio/FIO-9881-React19-upgrade
brendanbond May 2, 2025
2ed2ada
add monorepo sync gh action
May 22, 2025
83fa8ef
added sync gh action
May 22, 2025
94bc2ab
FIO-9944: Fixes an issue where some form instances will not be destroyed
KirylDrutsko May 26, 2025
2a16de2
Merge pull request #611 from formio/monorepo-sync
johnformio May 27, 2025
a5b3297
Update sync-pr-to-monorepo.yml
johnformio May 28, 2025
ff9a3ab
Merge pull request #613 from formio/johnformio-patch-1
johnformio May 28, 2025
906f132
Update sync-pr-to-monorepo.yml
johnformio May 28, 2025
d979747
Update sync-pr-to-monorepo.yml
johnformio May 28, 2025
adcc89b
Merge pull request #614 from formio/johnformio-patch-2
johnformio May 28, 2025
28b9afa
Update sync-monorepo.mjs
johnformio May 28, 2025
d57d0ff
Merge pull request #615 from formio/johnformio-patch-3
johnformio May 28, 2025
b1c1a73
Merge pull request #610 from formio/FIO-9944-fix-forms-memory-leak
brendanbond Jun 13, 2025
d8ec97f
Update build
lane-formio Jul 2, 2025
5f9a818
Unpin formiojs and core peer dependencies
lane-formio Jul 10, 2025
dc63161
Updated Build
lane-formio Jul 10, 2025
9acfa4d
Transition 7.0.x branch to 6.1.x
lane-formio Jul 22, 2025
1a5d7cd
Updated build: @formio/react@6.1.0-rc.5
lane-formio Jul 22, 2025
c7a622f
Updated build: @formio/react@6.1.0
lane-formio Jul 24, 2025
20919b0
Update README.md
lane-formio Sep 3, 2025
0c32186
Update README.md
lane-formio Sep 3, 2025
d6f91f5
Update README.md typo
lane-formio Sep 3, 2025
b89734d
$'syncing commit from monorepo. PR: 60, Title: FIO-10505: add depreca…
brendanbond Sep 16, 2025
39ec732
sync nirvana pr 151 to oss react
brendanbond Oct 16, 2025
80011aa
fix oss deps and package json builds; move to npm
brendanbond Oct 16, 2025
82b016d
update readme docs
brendanbond Oct 16, 2025
d082f0f
$'syncing commit from monorepo. PR: 174, Title: FIO-10747: Update rea…
johnformio Oct 21, 2025
bb38244
$'syncing commit from monorepo. PR: 197, Title: minor lint'
brendanbond Oct 27, 2025
08da491
$'syncing commit from monorepo. PR: 231, Title: fix changelog names'
brendanbond Nov 3, 2025
a6a92de
$'syncing commit from monorepo. PR: 232, Title: rename changelog files'
johnformio Nov 3, 2025
48ff01e
$'syncing commit from monorepo. PR: 247, Title: FIO-10798: Fixes an i…
brendanbond Nov 5, 2025
90457a2
$'syncing commit from monorepo. PR: 190, Title: FIO:10763 Apply form …
johnformio Nov 7, 2025
6f01b4a
update package.json to not include formio dev deps
brendanbond Dec 2, 2025
4e89f0e
$'syncing commit from monorepo. PR: 371, Title: FIO 9592: fix builder…
brendanbond Dec 15, 2025
501a5ac
$'syncing commit from monorepo. PR: 394, Title: FIO-9944: Fixes a mem…
brendanbond Jan 2, 2026
6d95843
$'syncing commit from monorepo. PR: 465, Title: FIO-11128: fix strang…
johnformio Jan 20, 2026
d60a7a0
$'syncing commit from monorepo. PR: 587, Title: FIO-11245: fixed an i…
brendanbond Mar 5, 2026
2b98434
chore: apply AOT-specific changes on top of @formio/react 6.1.0 upstream
Josephalexantony-aot Jun 24, 2026
55c1247
chore: include package-lock.json with upstream 6.1.0 dependencies
Josephalexantony-aot Jun 24, 2026
23f4771
chore: merge develop into upgrade branch, resolve all conflicts
Josephalexantony-aot Jun 24, 2026
46f0bf9
fix: resolve TypeScript build errors after @aot-technologies/formiojs…
Josephalexantony-aot Jun 24, 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
34 changes: 30 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,42 @@
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react"],
"rules": {},
"plugins": ["@typescript-eslint", "react"],
"rules": {
"react/prop-types": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true }
],
"no-prototype-builtins": "off"
},
"settings": {
"react": {
"version": "detect"
}
}
},
"ignorePatterns": ["node_modules/", "dist/", "lib/"],
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx"],
"env": {
"jest": true
}
}
]
}
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Sandbox Example**
A reproducible example from an online editor such as CodeSandbox or StackBlitz

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
Expand Down
204 changes: 204 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
name: Build, Test, Publish

on:
pull_request:
types: [opened, synchronize, reopened]

env:
NODE_VERSION: 20.x

jobs:
setup:
runs-on: ubuntu-latest
steps:
- run: echo "Triggered by ${{ github.event_name }} event."

- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Installing dependencies
if: steps.cache.outputs.cache-hit != 'true'
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile

- name: Lint
uses: borales/actions-yarn@v4
with:
cmd: lint

- name: dependencies
run: |
echo "Installing dependencies"
yarn list --depth=0

##################################################################
## Build
##################################################################
build:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build

##################################################################
## Test
##################################################################
test-current:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Test
uses: borales/actions-yarn@v4
with:
cmd: test

test-target:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Merge target branch into current branch
run: |
git config --global user.email "pkgbot@form.io"
git config --global user.name "pkgbot"
git fetch origin ${{ github.event.pull_request.base.ref }}:${{ github.event.pull_request.base.ref }}
git merge ${{ github.event.pull_request.base.ref }} --no-commit --no-ff
if ! git merge --no-commit --no-ff ${{ github.event.pull_request.base.ref }}; then
echo "Merge conflicts detected."
git merge --abort
exit 1
else
echo "Merge successful."
fi

- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Test
uses: borales/actions-yarn@v4
with:
cmd: test

##################################################################
## Publish
##################################################################
publish:
needs: [setup, test-current, test-target]
if: ${{ github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'synchronize') }}
runs-on: ubuntu-latest
steps:
- name: Check out repository code ${{ github.repository }} on ${{ github.ref }}
uses: actions/checkout@v3

- name: Configure Git user
run: |
git config --global user.email "pkgbot@form.io"
git config --global user.name "pkgbot"

- name: Add npm token to .npmrc
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
registry-url: 'https://registry.npmjs.org/'

- name: Restore node modules from cache
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Build
uses: borales/actions-yarn@v4
with:
cmd: build

- name: Prepare version for publish
id: prep
run: |
# Extract the pull request number and the short SHA of the commit
PR_NUMBER=$(echo ${{ github.event.number }})
COMMIT_SHORT_SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7)

# Extract the current version from package.json
CURRENT_VERSION=$(node -p "require('./package.json').version")

# If the current version includes '-rc.', remove it and everything after
# This step ensures that we start with a base version like '3.0.0' even if it was a release candidate
BASE_VERSION=$(echo "$CURRENT_VERSION" | cut -d'-' -f1)

# Construct the new version string
NEW_VERSION="${BASE_VERSION}-dev.${PR_NUMBER}.${COMMIT_SHORT_SHA}"

# Output the new version for use in subsequent GitHub Actions steps
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV

- name: Echo version to Publish
run: |
echo "Version to publish: $NEW_VERSION"

- name: Publish to npm
run: |
npm version $NEW_VERSION
yarn publish --tag dev
11 changes: 11 additions & 0 deletions .github/workflows/sync-monorepo.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { syncFromGithubAction } from 'monorepo-sync';

syncFromGithubAction()
.then(() => {
console.log('Sync completed successfully');
process.exit(0);
})
.catch((error) => {
console.error('Error during sync:', error);
process.exit(1);
});
64 changes: 64 additions & 0 deletions .github/workflows/sync-pr-to-monorepo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Sync Merged PR to Monorepo

on:
pull_request:
types: [closed]
branches:
- main
- master

jobs:
sync-to-monorepo:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
env:
NODE_VERSION: 20.x
GH_TOKEN: ${{ secrets.MONOREPO_SYNC_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
PR_TITLE: ${{ github.event.pull_request.title }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
SOURCE_REPO_NAME: ${{ github.event.repository.name }}
MONOREPO_PACKAGE_LOCATION: packages/${{ github.event.repository.name }}
MONOREPO_PATH: ${{ github.workspace }}/monorepo

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}

- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-

- name: Installing dependencies
if: steps.cache.outputs.cache-hit != 'true'
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile

- name: Install zx
run: yarn add zx

- name: Install monorepo-sync package
run: yarn add git+https://github.com/formio/monorepo-sync.git

- name: Clone Monorepo
run: |
gh repo clone formio/formio-monorepo monorepo -- --depth=1

- name: Sync to Monorepo
run: |
echo "Syncing PR #${PR_NUMBER}: ${PR_TITLE}"
node .github/workflows/sync-monorepo.mjs

#update
Loading
Loading