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: refine v4 💥 #3709

Merged
merged 200 commits into from Mar 13, 2023
Merged

feat: refine v4 💥 #3709

merged 200 commits into from Mar 13, 2023

Conversation

omeraplak
Copy link
Sponsor Member

Please provide enough information so that others can review your pull request:

TODO: update PR desc

aliemir and others added 30 commits February 8, 2023 11:59
* feat(core): add helper for picking not deprecated value

* feat(core): export pickNotDeprecated

* feat(core): add internal info to pickNotDeprecated
* docs: update `config` usage on docs

* docs: update `config` usage on examples

* fix: `config` usage on `useList` and `useInfiniteList`

* docs: update `useList` and `useInfiniteList` docs

* fix(core): rename `useSelect` prop `sort` to `sorter`

* fix(core): update `config` usage in `useTable`

* docs: rename `sort` to `sorter` on `useSelect` hook

* docs: update import export hook properties

* fix(core): rename `resourceName` to `resource` in import export hooks

* fix(core): add `sorters` to `useResourceSubscription` hook

* fix(core): update `sort` usage in `useCustom`

* fix: rename `sort` to `sorters` in data providers

* docs: fix `sort` usage in dataProvider docs

* fix: update data providers with backword compatibility

* fix: add comment in data providers for giving information about backward compatibility

* docs: rename `sorter` to `sorters` on `useExport` hook

* fix(antd): update field hooks and their docs

* fix(antd): rename `resourceName` to `resource` for `useImport` hook and its doc

* docs(mui): update `useAutoComplete`'s `sort` propery

* fix(examples): update props usage on examples

* docs: update props usage of hooks

* test: update props usage of hooks

* fix: use `pickNotDeprecated` for manage deprecated props

* chore: add changesets

* chore: add new changesets

* chore: update changeset

* chore: update .changeset/slow-wasps-remain.md

* chore: update .changeset/slow-wasps-remain.md

* chore: update .changeset/strange-knives-end.md

* Revert "docs: update `config` usage on examples"

This reverts commit 1ce9513.

* Revert "fix(examples): update props usage on examples"

This reverts commit 51f84f7.

* fix: typo

Co-authored-by: Yıldıray Ünlü <yildirayyunlu@gmail.com>

* fix: typo

Co-authored-by: Yıldıray Ünlü <yildirayyunlu@gmail.com>

---------

Co-authored-by: Yıldıray Ünlü <yildirayyunlu@gmail.com>
…ny, useUpdateMany) (#3567)

* feat: support on createMany hook

* test: useCreateMany

* feat: support on useDeleteMany hook

* test: useDeleteMany

* feat: support on useUpdateMany hook

* fix: type error on useUpdateHook

* test: useUpdateMany

* test: useCreate

* test: useDelete

* chore: changeset

* docs: add many hooks on audit log provider

* docs: add event tabs

* docs: update
* feat(core): add generic to option label-value on use select

Co-authored-by: Ali Emir Şen <senaliemir@gmail.com>

* fix(finefoods-antd): useSelect types

* fix(core): changeset semver patch to minor

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

---------

Co-authored-by: Ali Emir Şen <senaliemir@gmail.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
…#3571)

* feat(core): hasPagination default value set to false on useSelect

* fix(core): useSelect tests

* fix(changeset): semver major to minor

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* fix(docs): code styling on mantine useSelect

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

---------

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
Co-authored-by: Ali Emir Şen <senaliemir@gmail.com>
* feat(core): refactor resource option to meta

* fix: build issue

* feat(examples): change resource options to meta on examples

* feat(examples): change resource options to meta on docs

* feat(test): change resource options to meta on tests

* feat: add changeset

* fix: remove unnecessary changesets

* revert(examples): change resource options to meta on examples

---------

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
* feat(antd-mui): remove useMenu

* feat(codemod): add move useMenu import to core

* feat(changeset): added

* chore(codemod): rename transformer file

* feat(codemod): update changeset text

* fix(mui): changeset package name

Co-authored-by: Ali Emir Şen <senaliemir@gmail.com>

* fix(antd): changeset package name

Co-authored-by: Ali Emir Şen <senaliemir@gmail.com>

---------

Co-authored-by: Ali Emir Şen <senaliemir@gmail.com>
Co-authored-by: Ali Emir Sen <senaliemir@gmail.com>
* feat: rename metaData to meta

* feat(docs): update metaData prop to meta

* feat(codemod): transform metaData prop to meta

* fix(test): core useSelect test

* feat(core): update meta to logMeta on useLog

* chore(codemod): better variable name

* fix(codemod): remove debug code

* fix(core): fix auditLog tests

* feat: add changeset

* revert(core): update meta to logMeta on useLog

This reverts commit a81411c.

Revert "fix(core): fix auditLog tests"

* chore(codemod): remove console.log

* feat(codemod): improve metaData to meta algorithm

* fix(codemod): add shorthand property control

* chore(examples): run `use-menu-to-core` transformation

* chore(pixels-admin): silence warning on CI

---------

Co-authored-by: Ali Emir Sen <senaliemir@gmail.com>
* fix(core): deprecate ReadyPage, add WelcomePage

* fix(antd): deprecate ReadyPage, add WelcomePage

* fix(mui): deprecate ReadyPage, add WelcomePage

* fix(mantine): deprecate ReadyPage, add WelcomePage

* fix(chakra-ui): deprecate ReadyPage, add WelcomePage

* feat(chakra-ui): add ts doc about welcome page

* chore: add changeset
…#3603)

* chore: remove antd exports

* fix: revert remove antd on packagejson

* feat: codemod

* chore: move file on codemod

* chore: changeset

* feat: add rename object support

* fix: `Table->Column` generic type removed

* fix: separate import codemod

* refactor: add antd dependency on examples

* fix: separate import codemod

* refactor: add antd dependency on examples

* fix: components/antd imports

* refactor: antd usage for audit-log

* refactor: antd usage for demo-sidebar

* refactor: antd usage for inferencer

* fix: finefoods multiple usage

* fix: refineflix example

* feat: support otherImports

* feat: support icons

* feat: add icon library support

* feat: update ignored path

* refactor: move icons component

* fix: blog-mail-subscription build error

* refactor: remove icons for antd package

* fix: build error on finefoods-antd

* fix: build error on customization-offlayout-area

* fix: useMenu hook for examples

* refactor: remove white space

* fix: with-vite build error

* fix: with-storybook-antd build error

* fix: with-web3 build error

* fix: command-palette-kbar build error

* fix: multi-level-menu build error

* fix: with-cloud build error

* fix: with-cloud build error

* chore: changeset

* refactor(codemod): separate imports

* fix(codemod): multiple add on next library import

* feat(codemod): install antd icon package

* chore(examples): remove unused antd-icon package on package.json

* revert(examples): revert codemod changes in examples

* chore(codemod): upgrade ts version

* chore(codemod): upgrade jscodeshift

* feat(codemod): add package if necessary once

* refactor(codemod): get spacing of package.json

* feat(codemod): check for multiple replacements

* refactor(codemod): import replacement with renames

* fix(codemod): update replacement

* feat(codemod): install if any packages are added

* chore(examples): run antd replacement codemod on examples

* chore(examples): fix manually (codemod error)

* chore(examples): update icons versions

* chore(packages): update antd-icons versions

* chore(changesets): add changeset

* Revert "chore(examples): update icons versions"

This reverts commit 2f1dba4.

* refactor(examples): move useMenu hook import on refine-core

* Revert "Revert "chore(examples): update icons versions""

This reverts commit 66720a8.

* Revert "chore(examples): update icons versions"

This reverts commit 2f1dba4.

* Revert "chore(examples): run antd replacement codemod on examples"

This reverts commit 8ddafdf.

* fix(codemod): always use imported name

* chore(examples): fix use-menu duplication

* chore(examples): update antd examples

* fix(codemods): update icon default imports

* chore(examples): run with fixed antd codemod

* fix(inferencer): antd components move antd imports

* fix(antd): update peer dependency version

* feat(tutorial): add antd-icons package

* refactor(examples): icon imports

* fix(customization-offlayout-area): build error

* docs(v4): remove `Antd` exports (#3639)

* docs: refactor for remove antd export

* docs: fix wrong import

Co-authored-by: Alican Erdurmaz <alicanerdurmaz@gmail.com>

* docs: fix wrong import

Co-authored-by: Alican Erdurmaz <alicanerdurmaz@gmail.com>

* docs: typofix

Co-authored-by: Batuhan Wilhelm <batuhanwilhelm@gmail.com>

* docs: update breadcrumb icon

* feat(live-previews): add antd dependency

* fix: antd icons

* docs: minnor update

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* docs: minnor update

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* docs: minnor update

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

---------

Co-authored-by: Alican Erdurmaz <alicanerdurmaz@gmail.com>
Co-authored-by: Batuhan Wilhelm <batuhanwilhelm@gmail.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

---------

Co-authored-by: Ali Emir Sen <senaliemir@gmail.com>
Co-authored-by: Alican Erdurmaz <alicanerdurmaz@gmail.com>
Co-authored-by: Batuhan Wilhelm <batuhanwilhelm@gmail.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
* feat(codemod): separate imports for mui

* feat(mui): remove mui exports

* fix(live-previews): add mui packages

* fix(codemod): update installed packages

* docs: update declare module

* chore(changeset): add changeset and theme breaking

* fix(example-finefoods-mui): remove @ts-expect-error

* chore(examples): codemod

* fix(codemod): remove icon-material package

* chore(examples): add mui dependences

* fix(codemod): add GridSelectionModel

* Revert "chore(examples): codemod"

This reverts commit d6addcf.

* chore(examples): codemod

* feat(live-previews): add mui packages

* refactor(inferencer): move mui imports

* fix(codemod): fix MuiList component

* Revert "chore(examples): codemod"

This reverts commit 4687c8e.

* chore(examples): codemod

* fix(inferencer): revert div to Box

* docs: separate imports

* docs: fix wrapper

* chore: fix version

* chore(mui): update peer dependencies

* chore(changeset): fix import module

* docs: fix module import

* chore(examples): update breaking import

* fix(mui): add refine-hook-form on peer dependencies

* fix(swizzle): import path

* chore(changeset): update
* feat(core): add `mode` property to `Pagination` interface

* fix(core): generate query key according to pagination mode

* fix(core): remove overloads, add pagination mode

* fix(simple-rest): add pagination mode support

* fix(react-table): remove overloads, add pagination mode support

* fix(antd): add pagination mode support

* fix(core): update query key when mode is not defined

* fix(core): update syncWithLocation logic

* fix(mui): remove overloads, add pagination mode support

* test(core): remove disabled pagination test

* test(antd): remove disabled pagination test

* test(mui): remove disabled pagination test

* fix(antd): add pagination mode support to `useSimpleList`

* refactor: refactoring if statements

* fix(data-providers): add pagination mode support

* fix(core): add query option select support

* test(core): add `useList` test to check query key

* test: add `useTable` tests to check pagination mode

* fix(antd): pass `pagination` prop to useTable in useSimpleList

* test(antd): add pagination mode tests

* fix: add `sorters` and `setSorters`, deprecate `sorter` and `setSorter`

* fix(core): remove `sorter` prop on internal method

* chore: add changesets

* docs: add `pagination.mode` to hook docs and deprecated some props

* feat(core): add default `mode` value to ts doc

* fix(finefoods): fix `useSimpleList` usage on finefoods

* fix: multiple `syncWithLocation` issue

* fix: fix multiple syncWithLocation in a same page issue on finefoods

* feat: add prettify utilize to pretify types

* fix(core): update `Pagination` interface

* refactor(core): refactoring `useList`

* fix(core): pass `pagination.mode` to `useList` in `useSelect`

* fix: export Prettify helper

* fix(core): move `select` logic to `useList` and refactoring useTable

* fix: update useTable extend's hooks

* fix(data-providers): update data providers

* test: update tests

* test: fix `useTable` tests

* chore: update changeset

* fix: update data providers without backward compability

* fix: mark deprecated to `hasPagination`

* feat: create `handlePagination` helper

* refactor(core): use `handlePagination

* refactor(core): refactoring `useInfiniteList`

* revert: livecontext changes

* fix(core): add default mode to getList

* test: fix useInfiniteList tests

* test(core): update tests

* test: remove repetitive tests

* test: update data provider tests

* fix(inferencer): add default pagination values

* Revert "fix(inferencer): add default pagination values"

This reverts commit ab51933.

* Revert "test: update data provider tests"

This reverts commit 8bb6d5d.

* fix: fix data providers test

* fix: add default pagination values to data providers

* fix: rename handlePagination to handlePaginationParams

* test: rename metaData to meta

* fix: add default mode value

* test: fix import and name

* chore: fix typo

* fix: update documentation/docs/api-reference/core/hooks/useTable/index.md

Co-authored-by: Batuhan Wilhelm <batuhanwilhelm@gmail.com>

* docs: update pagination.mode information

* chore: update changeset

---------

Co-authored-by: Ali Emir Sen <senaliemir@gmail.com>
Co-authored-by: Batuhan Wilhelm <batuhanwilhelm@gmail.com>
feat(codemod): add deprecation transformations

---------

Co-authored-by: Ali Emir Sen <senaliemir@gmail.com>
* feat(v4-core): deprecate authProvider, implement new one

* feat(v4-test): update tests to use legacyAuthProvider

feat(v4-test): update tests to use legacyAuthProvider

* feat(v4): update ui packages to use provided data provider

* feat(ui-test): update tests to use new authProvider

* feat(codemod): add legacy true to auth hooks

* feat(codemod): add authProvider to legacyAuthProvider

* feat(examples): run codemod authProvider to legacyAuthProvider

* feat(changeset): add changeset

* feat(codemod): add missing hook name to to legacy true to auth hooks

* fix(core): typo

* chore(core): update query key getUserIdentity to getIdentity

* feat(examples): run codemod add legacy true to auth hooks

* feat(v4-core): add useIsAuthenticated export

* feat(v4-core): update invalidateQueries key getUserIdentity to getIdentity in auth context

* feat(v4-core): add combined props to useIsAuthenticated for better type safety

* feat(v4-core): update useAuthenticated query key to useIsAuthenticated

* feat(sider): remove default redirect path

* chore(core): remove unnecessary jsdoc

* feat(react-router-v6): update react router to work with both auth provider

* feat(react-router-v6): update isAuthenticated logic

* feat(exampels): update headless-auth exmaple to new auth provider

* chore(v4-core): prop name legacy to v3LegacyAuthProviderCompatible

* feat(v4-core): add redirect to, to param from url logic to useLogin

* feat(examples): run codemod authProvider to legacyAuthProvider

* fix(react-router-v6): update isAuthenticated logic

* fix(react-router-v6): fix typo

* feat(v4-core): add open notification when success is false and onError to auth mutation hooks

* feat(v4-core): remove omit onSuccess from auth mutation hooks

* feat(v4-core): rename useProvidedAuthProvider to useActiveAuthProvider

* feat(v4-core): rename auth mutation hooks return variable name

* chore(v4-core): add new test to useActiveAuthProvider
…#3651)

* refactor(mantine): remove mantine exports

* refactor(mantine): update peer dependencies

* feat(codemod): add separate imports

* refactor(inferencer): separate mantine imports

* chore(inferencer-mantine): separate imports

* refactor(live-previews): update for mantine

* chore(examples): add mantine dependencies

* chore(examples): codemod

* docs: update separate imports

* fix(codemod): import path

* fix(inferencer): number input type

* fix(swizzle): import path

* chore: changeset

* fix(codemod): update Global and MantineProvider import

* Revert "chore(examples): codemod"

This reverts commit f2555da.

* chore(examples): codemod

* chore(inferencer): update peerDependenciesMeta

* fix: typo
* feat(core): add `mode` property to `Pagination` interface

* fix(core): generate query key according to pagination mode

* fix(core): remove overloads, add pagination mode

* fix(simple-rest): add pagination mode support

* fix(react-table): remove overloads, add pagination mode support

* fix(antd): add pagination mode support

* fix(core): update query key when mode is not defined

* fix(core): update syncWithLocation logic

* fix(mui): remove overloads, add pagination mode support

* test(core): remove disabled pagination test

* test(antd): remove disabled pagination test

* test(mui): remove disabled pagination test

* fix(antd): add pagination mode support to `useSimpleList`

* refactor: refactoring if statements

* fix(data-providers): add pagination mode support

* fix(core): add query option select support

* test(core): add `useList` test to check query key

* test: add `useTable` tests to check pagination mode

* fix(antd): pass `pagination` prop to useTable in useSimpleList

* test(antd): add pagination mode tests

* fix: add `sorters` and `setSorters`, deprecate `sorter` and `setSorter`

* fix(core): remove `sorter` prop on internal method

* chore: add changesets

* docs: add `pagination.mode` to hook docs and deprecated some props

* feat(core): add default `mode` value to ts doc

* fix(finefoods): fix `useSimpleList` usage on finefoods

* fix: multiple `syncWithLocation` issue

* fix: fix multiple syncWithLocation in a same page issue on finefoods

* feat: add prettify utilize to pretify types

* fix(core): update `Pagination` interface

* refactor(core): refactoring `useList`

* fix(core): pass `pagination.mode` to `useList` in `useSelect`

* fix: export Prettify helper

* fix(core): move `select` logic to `useList` and refactoring useTable

* fix: update useTable extend's hooks

* fix(data-providers): update data providers

* test: update tests

* test: fix `useTable` tests

* chore: update changeset

* fix: update data providers without backward compability

* fix: mark deprecated to `hasPagination`

* feat: create `handlePagination` helper

* refactor(core): use `handlePagination

* refactor(core): refactoring `useInfiniteList`

* revert: livecontext changes

* fix(core): add default mode to getList

* test: fix useInfiniteList tests

* test(core): update tests

* test: remove repetitive tests

* test: update data provider tests

* fix(inferencer): add default pagination values

* Revert "fix(inferencer): add default pagination values"

This reverts commit ab51933.

* Revert "test: update data provider tests"

This reverts commit 8bb6d5d.

* fix: fix data providers test

* fix: add default pagination values to data providers

* fix: rename handlePagination to handlePaginationParams

* test: rename metaData to meta

* fix: add default mode value

* test: fix import and name

* fix(core): add `sorters` and `filters` prop to `useTable`

* fix(core): deprecate some `useTable` props

* fix(core): provide backward compability to support deprecated props

* fix(antd): pass new props to `useTable` from core

* fix(mui): pass new props to `useTable` from core

* chore: fix indent

* fix(mui): update tsdoc to show `defaultBehavior` default value

* fix(core): provide default behavior backward compability

* test(core): add tests about deprecated props

* test: use new props instead of deprecated values

* feat(codemod): improve `useTable` transformation method to use new props instead of deprecated props

* docs: fix deprecated prop usage on useTable related docs

---------

Co-authored-by: Ali Emir Sen <senaliemir@gmail.com>
#3656)

* refactor(chakra): remove reexports

* feat(codemod): separate imports

* chore(examples): add chakra-ui packages

* refactor(inferencer): separate imports

* chore(codemod): add inquirer

* feat(live-previews): separate imports

* chore(examples): codemod

* chore: add changeset

* refactor(chakraui): fix swizzle import

* docs: refactor imports

* chore: update changeset
@refine-bot refine-bot temporarily deployed to deploy-preview-website-3709 March 12, 2023 13:07 Inactive
Co-authored-by: Ali Emir Şen <senaliemir@gmail.com>
@refine-bot refine-bot temporarily deployed to deploy-preview-website-3709 March 12, 2023 17:10 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-website-3709 March 12, 2023 20:23 Inactive
@refine-bot refine-bot temporarily deployed to deploy-preview-website-3709 March 12, 2023 22:06 Inactive
aliemir and others added 9 commits March 13, 2023 16:09
* feat(codemod): add antd 3x arning to codemod

* fix(codemod): warning text

* fix(codemod): warning text

* fix(examples): remove debug code

* revert(examples): base-antd
* docs(blog): add refine v4 post

* docs(blog): update post

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* docs(blog): update link

Co-authored-by: Alican Erdurmaz <alicanerdurmaz@gmail.com>

* docs(blog): add emoji

* docs(blog): update links

* docs(blog): revert resource name

---------

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
Co-authored-by: Alican Erdurmaz <alicanerdurmaz@gmail.com>
* feat(packages): add refine v4 announcement to package postinstalls (#3822)

* feat(packages): add refine v4 announcement to package postinstalls

* fix(mantine): update peer dependencies versions

* feat(cli): add v4 notifier to cli post commands

* fix(packages): revert package version changes

* chore: add changeset

* chore: remove postinstall from react router location

* chore: syntax error on package.json

---------

Co-authored-by: Alican Erdurmaz <alicanerdurmaz@gmail.com>

* ci(changesets): next version packages (#3840)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: remove _changeset folder

* chore(docs): remove post install

* chore(docs): remove changelogs

* chore(docs): remove changelogs

* fix: version

---------

Co-authored-by: Batuhan Wilhelm <batuhanwilhelm@gmail.com>
Co-authored-by: Refine Community Bot <53254888+refine-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
@refine-bot refine-bot temporarily deployed to deploy-preview-website-3709 March 13, 2023 16:10 Inactive
aliemir and others added 4 commits March 13, 2023 19:45
* docs(v4-routers): add examples for react router v6 usage

* docs(react-router-v6): update usage section

* docs: typo fix

* docs: typo react-router-v6

* docs: typo fix

* docs: typo fix

---------

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
#3841)

* fix(codemod): remove refine cli from devDependencies and add to dependencies

* fix(codemod): check-antd-version

* chore(codemod): ignore theme.d.ts
* chore(documentation): update tutorial

* chore(documentation): update resources tutorial and add UI examples

* chore(documentation): update tutorial

* chore(documentation): fix imports

* chore(documentation): add UnsavedChangesNotifier to CRUD live previews

* chore(documentation): fix crud pages for antd and chakra

* chore(documentation): fix crud pages for headless

* chore(documentation): fix crud pages for mantine and mui

* chore(documentation): add UnsavedChangesNotifier to intro examples
@aliemir aliemir merged commit 3ec08ea into next Mar 13, 2023
26 of 29 checks passed
@omeraplak omeraplak deleted the v4/next branch March 15, 2023 06:01
@aliemir aliemir restored the v4/next branch March 14, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants