Skip to content

Commit

Permalink
feat: Upgrade/react18 (#2050)
Browse files Browse the repository at this point in the history
* Update package.json dependencies

* Use tailwind config type provided by tailwindcss package and fix missing explicit children

* fix typescript error on bodiless-cli

* update react-tag-autocomplete version and informed upgrade

* Solve typescript errors related to informed

* Restore css generation and copy command in @bodiless/ui

* Remove forms page from test-sites because react-mde doesn't support react18

* Replace reach-sortable-hoc with @dnd-kit/sortable

* @bodiless/ui: Add content to tailwind configuration and remove safelist

* regenerate package-lock

* Defining field type when using informed useField

* Update React and react-dom version to ^18.2.0

* Typescript fixes required by React18

* Fix validation property Informed field

* Fix Lint errors

* Fix Page management forms and rerender of compoundForm

* Revert formState optional for type FormBodyProps

* Fix tests, skip the test not simple to fix

* FIx dependency cycle in @bodiless/vital-accordion and linting issue

* Fix duplicated dipendency informed

* Fix tags editing

* Fix React.Children props wrongly added to the Component

* Fix test Menu helper

* Fix broken static replacement of withResetButton

* Fix Redirect Alias form

* Fix Disable page form

* Remove unused variables from PageDisableForm

* Fix type exports

* Fix circular dependency in shadowing file

* Fix filter by group

* Fix @bodiless/filting tests

* Fix tests for @bodiless/git

* Fix @bodiless/core contextMenuForm test

* Fix default filter form and code/data tests

* Fix playwright selectors

* Shadowing refactor to prevent circular dependencies

* Rename shadow to base in shadowing refactoring

* Fix maximum call stack size exceeded on vital-demo

* Remove undesired vertical padding from hero cards
  • Loading branch information
marcopagliarulo committed May 3, 2023
1 parent 2240ac2 commit d889687
Show file tree
Hide file tree
Showing 403 changed files with 30,891 additions and 28,515 deletions.
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

0 comments on commit d889687

Please sign in to comment.