Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 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/[email protected]
lane-formio Jul 22, 2025
c7a622f
Updated build: @formio/[email protected]
lane-formio Jul 24, 2025
baffada
Update @aot-technologies/formiojs imports
leodube-aot Aug 25, 2025
b3e063e
Update @aot-technologies/formiojs imports
leodube-aot Aug 25, 2025
aa37be4
Remove console.logs from testing
leodube-aot Aug 27, 2025
6501b7b
Update formiojs to local import
leodube-aot Sep 9, 2025
bff003f
Update to use npm package of formiojs
leodube-aot Sep 23, 2025
b0ff70a
Update package name for npm publish
leodube-aot Sep 23, 2025
77057c2
Update peer dependency to use npm package
leodube-aot Sep 23, 2025
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 "[email protected]"
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 "[email protected]"
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
43 changes: 43 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Contributing

Thank you for helping this project become a better library :)

- [Triage](#triage)
- [Reporting Bugs](#reporting-bugs)
- [Providing a feature request](#providing-a-feature-request)
- [Pull requests](#pull-requests)

## Triage

This is one of the easiest and most effective ways of helping out. If you see an open issue, try and reproduce the bug yourself, and comment with the result. If the issue is lacking any information to reproduce the bug, let the author know.

## Reporting Bugs

Open an issue, making sure to follow the bug report template.

## Providing a feature request

Open an issue, making sure to follow the Feature request template.

## Pull requests

### Getting started

- If there isn't one already, open an issue describing the bug or feature request that you are going to solve in your pull request.
- Create a fork of react-native-maps
- If you already have a fork, make sure it is up to date
- Git clone your fork and run `yarn` in the base of the cloned repo to setup your local development environment.
- Create a branch from the master branch to start working on your changes.

### Committing

- When you made your changes, run `yarn lint` & `yarn test` to make sure the code you introduced doesn't cause any obvious issues.
- When you are ready to commit your changes, use the [Github conventional commits](https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13) convention for you commit messages, as we use your commits when releasing new versions.
- Use present tense: "add awesome component" not "added awesome component"
- Limit the first line of the commit message to 100 characters
- Reference issues and pull requests before committing

### Creating the pull request

- The title of the PR needs to follow the same conventions as your commit messages, as it might be used in case of a squash merge.
- Create the pull request against the beta branch.
Loading
Loading