Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Upgrade/react18 #2050

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
a6988d8
Update package.json dependencies
marcopagliarulo Apr 26, 2023
9e17fea
Use tailwind config type provided by tailwindcss package and fix miss…
marcopagliarulo Apr 26, 2023
7c28c5a
fix typescript error on bodiless-cli
marcopagliarulo Apr 26, 2023
38178b5
update react-tag-autocomplete version and informed upgrade
marcopagliarulo Apr 26, 2023
4b875b4
Solve typescript errors related to informed
marcopagliarulo Apr 26, 2023
e49df29
Restore css generation and copy command in @bodiless/ui
marcopagliarulo Apr 26, 2023
eee3779
Remove forms page from test-sites because react-mde doesn't support r…
marcopagliarulo Apr 26, 2023
3e8d9bb
Replace reach-sortable-hoc with @dnd-kit/sortable
marcopagliarulo Apr 26, 2023
a1268d6
@bodiless/ui: Add content to tailwind configuration and remove safelist
marcopagliarulo Apr 26, 2023
4d2df0d
regenerate package-lock
marcopagliarulo Apr 26, 2023
cf7d3af
Defining field type when using informed useField
marcopagliarulo Apr 26, 2023
3e0ae92
Update React and react-dom version to ^18.2.0
marcopagliarulo Apr 26, 2023
027276d
Typescript fixes required by React18
marcopagliarulo Apr 26, 2023
64acc5b
Fix validation property Informed field
marcopagliarulo Apr 26, 2023
7261fc0
Fix Lint errors
marcopagliarulo Apr 26, 2023
f128d3f
Fix Page management forms and rerender of compoundForm
marcopagliarulo Apr 26, 2023
a7eb0b0
Revert formState optional for type FormBodyProps
marcopagliarulo Apr 26, 2023
456329d
Fix tests, skip the test not simple to fix
marcopagliarulo Apr 27, 2023
b6e809b
FIx dependency cycle in @bodiless/vital-accordion and linting issue
marcopagliarulo Apr 27, 2023
e18bd5a
Fix duplicated dipendency informed
marcopagliarulo Apr 27, 2023
1453d19
Fix tags editing
marcopagliarulo Apr 27, 2023
8a60b70
Fix React.Children props wrongly added to the Component
marcopagliarulo Apr 27, 2023
eb25323
Fix test Menu helper
marcopagliarulo Apr 27, 2023
73642ae
Fix broken static replacement of withResetButton
marcopagliarulo Apr 27, 2023
f15b393
Fix Redirect Alias form
marcopagliarulo Apr 28, 2023
1b3e550
Fix Disable page form
marcopagliarulo Apr 28, 2023
73f7d51
Remove unused variables from PageDisableForm
marcopagliarulo Apr 28, 2023
8cf4571
Fix type exports
marcopagliarulo Apr 28, 2023
e8069f8
Fix circular dependency in shadowing file
marcopagliarulo Apr 28, 2023
1842843
Fix filter by group
marcopagliarulo Apr 28, 2023
57cbea5
Fix @bodiless/filting tests
marcopagliarulo Apr 29, 2023
0473e6b
Fix tests for @bodiless/git
marcopagliarulo Apr 29, 2023
370a0fb
Fix @bodiless/core contextMenuForm test
marcopagliarulo Apr 29, 2023
ceebdfc
Fix default filter form and code/data tests
marcopagliarulo Apr 30, 2023
46f6590
Fix playwright selectors
marcopagliarulo Apr 30, 2023
3acf8ed
Shadowing refactor to prevent circular dependencies
marcopagliarulo May 1, 2023
bcb7e2d
Rename shadow to base in shadowing refactoring
marcopagliarulo May 1, 2023
ae595f8
Fix maximum call stack size exceeded on vital-demo
marcopagliarulo May 2, 2023
27bdd46
Remove undesired vertical padding from hero cards
marcopagliarulo May 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
html.js
**/lib
**/doc
packages/gatsby-theme-bodiless/dist
packages/gatsby-theme-bodiless/cjs
packages/gatsby-theme-bodiless/index.js
Expand Down
8 changes: 7 additions & 1 deletion config/jestTestSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@
*/

const enzyme = require('enzyme');
const EnzymeAdapter = require('@wojtekmaj/enzyme-adapter-react-17');
const EnzymeAdapter = require('@cfaester/enzyme-adapter-react-18').default;

enzyme.configure({ adapter: new EnzymeAdapter() });

const util = require('util');

Object.defineProperty(global, 'TextEncoder', {
value: util.TextEncoder,
});

if (global.window && global.window.getSelection) {
global.window.getSelection = () => ({
removeAllRanges: () => {},
Expand Down