65 KiB
@refinedev/mantine
4.5.17
Patch Changes
-
#5373
dff476ca41Thanks @aliemir! - Show and List type inferencers were failing to provide a preview when there's a relational property without a presentational key. Updated generated code blocks to handle fields with no accessor keys and display a placeholder message instead. Fixes #5184 -
#5373
dff476ca41Thanks @aliemir! - Fixed the issue of wrongfully assumingidkey of relational fields in Chakra UI and Headless edit inferencers. Fixes #5274 -
#5373
dff476ca41Thanks @aliemir! - Even thoughidis required for Refine to work properly, in some list queries there may not be anidfield. Material UI Datagrid requires an identifier for each row, if there's noidfield, we're fallbacking to the first key of the row. Fixes the errors thrown for this case in Material UI List inferencers. -
#5373
dff476ca41Thanks @aliemir! - Updated the object field inferencer to check for fields end withnameandlabeland use them as the display name for the field. Previously the check was done for a predefined set of properties, now it's done for any property that ends withnameorlabelwhich results with more accurate code generation. -
Updated dependencies [
75bb61dd3b,93e00fd770,e5888b6b9c,b621223bfb,19ceffbe9f]:
4.5.16
Patch Changes
- #5425
190af9fce2Thanks @aliemir! - Updated@refinedev/corepeer dependencies to latest (^4.46.1)
4.5.15
Patch Changes
-
#5335
9321a02a8fThanks @alicanerdurmaz! - fix: Material UI snapshots tests. -
Updated dependencies [
17aa8c1cd6,dd8f1270f6,4c49ef0a06,3bdb9cb1cb,f8e407f850]:
4.5.14
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies []:
4.5.13
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies []:
4.5.12
Patch Changes
-
#4975
ff66a862e46Thanks @aliemir! - Updated dependency of@tabler/iconstov1.119.0to fix the issue of using misconfigured versions. (Fixes #4921) -
Updated dependencies [
d8e464fa2c4]:
4.5.11
Patch Changes
- #4975
ff66a862e46Thanks @aliemir! - Updated dependency of@tabler/iconstov1.119.0to fix the issue of using misconfigured versions. (Fixes #4921)
4.5.10
Patch Changes
- #4964
85b1ac0db5fThanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
4.5.9
Patch Changes
- #4964
85b1ac0db5fThanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
4.5.8
Patch Changes
- #4951
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077]:
4.5.7
Patch Changes
- #4951
04837c62077Thanks @aliemir! - - Update build configuration foresbuildto use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077]:
4.5.6
Patch Changes
-
#4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23]:
4.5.5
Patch Changes
-
#4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23]:
4.5.4
Patch Changes
-
#4797
a680aea865bThanks @yildirayunlu! - fix: relation fields are not correctly inferred forshowviewsShows
titleforcategorywithout using theuseOnehook when showing thecategorykey.{ "title": "My title", "description": "My description", "category": { "id": 1, "name": "My category" } }
4.5.3
Patch Changes
-
#4797
a680aea865bThanks @yildirayunlu! - fix: relation fields are not correctly inferred forshowviewsShows
titleforcategorywithout using theuseOnehook when showing thecategorykey.{ "title": "My title", "description": "My description", "category": { "id": 1, "name": "My category" } }
4.5.2
Patch Changes
-
#4774
030a9dda75aThanks @yildirayunlu! - feat: unlock and upgrade@mui/materialto^5.14.2 -
Updated dependencies [
e3e38de4114]:
4.5.1
Patch Changes
-
#4774
030a9dda75aThanks @yildirayunlu! - feat: unlock and upgrade@mui/materialto^5.14.2 -
Updated dependencies [
e3e38de4114]:
4.5.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffects: falsetopackage.jsonto help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356]:
4.4.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffects: falsetopackage.jsonto help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356]:
4.3.4
Patch Changes
- #4717
c1c10e5d7bdThanks @aliemir! - Added a classname to the inferencer's code viewer component to determine a simple selector for the code viewer.
4.3.3
Patch Changes
- #4717
c1c10e5d7bdThanks @aliemir! - Added a classname to the inferencer's code viewer component to determine a simple selector for the code viewer.
4.3.2
Patch Changes
-
#4634
5de50a6af75Thanks @aliemir! - Added an additional info log and a link to the documentation into the inferencer components after relation requests are made. -
Updated dependencies [
03597ed8a9a]:
4.3.1
Patch Changes
-
#4634
5de50a6af75Thanks @aliemir! - Added an additional info log and a link to the documentation into the inferencer components after relation requests are made. -
Updated dependencies [
03597ed8a9a]:
4.3.0
Minor Changes
- #4582
2edadc3a2aaThanks @rasitcolakel! - fix: added predefined relationInfer control
Patch Changes
-
#4601
090653717d6Thanks @aliemir! - Updated inferencer functions to check for relational fields with representable values. If the inferencer type isshoworlist, the inferencer will use the available properties to show the field instead of trying to fetch the relational data.// posts/1 { id: 1, name: "Post 1", tags: [ { id: 5, name: "Tag 5" }, { id: 6, name: "Tag 6" } ], content: "...", }Above structure will show the
tagsfield in list and show inferencers using thenameproperty instead of trying to fetch the relational data. Buteditandcreateinferencers will still work with the relational data. -
Updated dependencies [
c3c0deed564,8c2b3be35b0,5bb6f47a4d4]:
4.2.0
Minor Changes
- #4582
2edadc3a2aaThanks @rasitcolakel! - fix: added predefined relationInfer control
Patch Changes
-
#4601
090653717d6Thanks @aliemir! - Updated inferencer functions to check for relational fields with representable values. If the inferencer type isshoworlist, the inferencer will use the available properties to show the field instead of trying to fetch the relational data.// posts/1 { id: 1, name: "Post 1", tags: [ { id: 5, name: "Tag 5" }, { id: 6, name: "Tag 6" } ], content: "...", }Above structure will show the
tagsfield in list and show inferencers using thenameproperty instead of trying to fetch the relational data. Buteditandcreateinferencers will still work with the relational data. -
Updated dependencies [
5bb6f47a4d4]:
4.1.4
Patch Changes
-
#4561
9812a3d874aThanks @yildirayunlu! - fix: select current value on<Select>component forChakra-UIandheadless -
Updated dependencies [
18d446b1069,ceadcd29fc9,18d446b1069]:
4.1.3
Patch Changes
-
#4561
9812a3d874aThanks @yildirayunlu! - fix: select current value on<Select>component forChakra-UIandheadless -
Updated dependencies [
18d446b1069,ceadcd29fc9,18d446b1069]:
4.1.2
Patch Changes
- #4499
b120a0394f8Thanks @BatuhanW! - fix: show code button for inferencers was not visible in smaller screens.
4.1.1
Patch Changes
- #4499
b120a0394f8Thanks @BatuhanW! - fix: show code button for inferencers was not visible in smaller screens.
4.1.0
Minor Changes
-
#4454
4bae8add99fThanks @aliemir! - According to the changes made in@refinedev/muito support the latest version of the@mui/x-data-gridpackage, we've updated the@refinedev/inferencerpackage to support the changes in the generated codes. While the usage of the components did not change, the generated code in Material UI inferencer components have changed.Breaking Changes
With this release, the peer dependency of
@refinedev/muiis updated to^5.0.0and the peer dependency of@mui/x-data-gridis updated to^6.6.0.
Patch Changes
-
#4454
4bae8add99fThanks @aliemir! - Updated theListInferencerlogic to check forcanDeleteproperty in resource definitions to decide whether to includeDeleteButtonin the actions column of theListview or not. -
Updated dependencies [
c82006f712a]:
4.0.0
Major Changes
-
#4454
4bae8add99fThanks @aliemir! - According to the changes made in@refinedev/muito support the latest version of the@mui/x-data-gridpackage, we've updated the@refinedev/inferencerpackage to support the changes in the generated codes. While the usage of the components did not change, the generated code in Material UI inferencer components have changed.Breaking Changes
With this release, the peer dependency of
@refinedev/muiis updated to^5.0.0and the peer dependency of@mui/x-data-gridis updated to^6.6.0.
Patch Changes
-
#4454
4bae8add99fThanks @aliemir! - Updated theListInferencerlogic to check forcanDeleteproperty in resource definitions to decide whether to includeDeleteButtonin the actions column of theListview or not. -
Updated dependencies [
c82006f712a,4bae8add99f,4bae8add99f,4bae8add99f]:- @refinedev/core@4.19.0
- @refinedev/mui@5.0.0
3.5.8
Patch Changes
- #4427
b4298166b6fThanks @alicanerdurmaz! - fixed: Inferencer assumesidis number in custom pages. From now on, ifidistypeof string, andinferencerwill infer it asstring. - Updated dependencies [
cf07d59587f,c29a3618cf6,0602f4cdf1c,cf07d59587f]:
3.5.7
Patch Changes
- #4427
b4298166b6fThanks @alicanerdurmaz! - fixed: Inferencer assumesidis number in custom pages. From now on, ifidistypeof string, andinferencerwill infer it asstring. - Updated dependencies [
cf07d59587f,c29a3618cf6,0602f4cdf1c,cf07d59587f]:
3.5.6
Patch Changes
-
#4402
4c41be2a2aeThanks @aliemir! - Added missingtranslatefunction dependency to the table hooks ifi18nis enabled. -
Updated dependencies [
473bbe5b31d,473bbe5b31d]:
3.5.5
Patch Changes
- #4402
4c41be2a2aeThanks @aliemir! - Added missingtranslatefunction dependency to the table hooks ifi18nis enabled.
3.5.4
Patch Changes
- #4398
8a424c227a8Thanks @aliemir! - Updated the type imports in the files to get thetscworking for the type definitions in thedistfolder. This will fix the issue with the components not being properly typed in user projects.
3.5.3
Patch Changes
- #4398
8a424c227a8Thanks @aliemir! - Updated the type imports in the files to get thetscworking for the type definitions in thedistfolder. This will fix the issue with the components not being properly typed in user projects.
3.5.2
Patch Changes
-
#4381
500cf2becc2Thanks @yildirayunlu! - feat: support i18nSupports i18n if
i18nProvideris defined. -
Updated dependencies [
500cf2becc2,28fe67047a0]:
3.5.1
Patch Changes
-
#4381
500cf2becc2Thanks @yildirayunlu! - feat: support i18nSupports i18n if
i18nProvideris defined. -
Updated dependencies [
500cf2becc2,28fe67047a0]:
3.5.0
Minor Changes
-
#4382
83ff1076f5cThanks @aliemir! - Updated the inference process forlistandcreateactions to use all items in the list instead of just the first item. This is done to avoid breaking the output when a single record is corrupted or wrongfully inferred.Now, for the
listandcreateactions, each item in the list response will be used to infer the fields then the most repeated fields will be accepted as the type for the field.
Patch Changes
- #4383
8b3137e9e9dThanks @aliemir! - Fixed the code generation issue with Mantine'screateandeditinferencers when used withmetavalues.
3.4.0
Minor Changes
-
#4382
83ff1076f5cThanks @aliemir! - Updated the inference process forlistandcreateactions to use all items in the list instead of just the first item. This is done to avoid breaking the output when a single record is corrupted or wrongfully inferred.Now, for the
listandcreateactions, each item in the list response will be used to infer the fields then the most repeated fields will be accepted as the type for the field.
Patch Changes
- #4383
8b3137e9e9dThanks @aliemir! - Fixed the code generation issue with Mantine'screateandeditinferencers when used withmetavalues.
3.3.6
Patch Changes
- #4355
bf4011f1d00Thanks @aliemir! - Updated@mui/materialand@mui/icons-materialimports to use subpath imports.
3.3.5
Patch Changes
- #4355
bf4011f1d00Thanks @aliemir! - Updated@mui/materialand@mui/icons-materialimports to use subpath imports.
3.3.4
Patch Changes
- #4293
7fa008b7ff7Thanks @salihozdemir! - refactor: minimized the packages scope
3.3.3
Patch Changes
- #4293
7fa008b7ff7Thanks @salihozdemir! - refactor: minimized the packages scope
3.3.2
Patch Changes
- #4265
ff43684f787Thanks @salihozdemir! - fix: fixed an issue that caused the duplicate field error
3.3.1
Patch Changes
- #4265
ff43684f787Thanks @salihozdemir! - fix: fixed an issue that caused the duplicate field error
3.3.0
Minor Changes
-
#4141
e7188abba8bThanks @aliemir! - ##metaproperty for inferencer componentsAdded
metaproperty to the inferencer components. This allows you to passmetato the data hooks included in the inferencer's generated code. This is useful when your data provider relies on themetaproperty which made@refinedev/inferencerunusable before. Now you will be able to passmetaproperties and generate code that will work with your data provider.metaproperty of the inferencer components has a nested structure unlike the rest of the refine codebase. This is because the inferencer components are designed to infer the relational data as well which may require differentmetavalues for each of their methods (such asgetListandgetOne).Type
<AntdListInferencer meta={{ [resourceNameOrIdentifier: string]: { [methodName: "default" | "getList" | "getMany" | "getOne" | "update"]: Record<string, unknown>, } }} />defaultis the defaultmetavalue for all the methods. In the absence of a specificmetavalue for a method for a resource, thedefaultvalue will be used.Example Usage
<AntdListInferencer meta={{ posts: { getList: { fields: [ "id", "title", "content", "category_id", "created_at", ], }, }, categories: { default: { fields: ["id", "title"], }, }, }} />Using the appropriate method to infer the relational data
The inferencer components were using the
getOnemethod of the data providers to infer the relational field data in a record. This has a chance of breaking the generated code and the preview if the data provider implements agetManyandgetOnein a different manner which may not be compatible with each other.In the generated code, fields with multiple values are handled via
useManyhook but the inference was using thegetOnemethod regardless of the field's cardinality. This has been fixed and the inferencer components will now use thegetManymethod for fields with multiple values andgetOnemethod for fields with single values.Redesigned code viewer components
Updated the code viewers components and the bottom buttons and unified the design. The code viewers now use the same components.
Sortable actions in Material UI list inferencer
Fixed the actions column in the Material UI list inferencer to be sortable.
Repeated relational fields
Added a check for repeated relational fields and excluded the duplicate fields from the generated code according to the context of the inferencer. In
listandshowactions fields with displayable values are preferred over the fields with relational values. Ineditandcreateactions, fields with relational values are preferred over the fields with displayable values.For example, if a
postsresource item has bothcategory_id(numberorstring) andcategory(record with keytitleandid) fields. Thelistandshowactions will use thecategoryfield and theeditandcreateactions will use thecategory_idfield.Ability to hide code viewer in production
Added an option
hideCodeViewerInProductionto hide code viewer components in production environments. This is added for presentational purposes and keep in mind that the Inferencer components are not meant for production use and may generate broken code.
3.2.0
Minor Changes
-
#4141
e7188abba8bThanks @aliemir! - ##metaproperty for inferencer componentsAdded
metaproperty to the inferencer components. This allows you to passmetato the data hooks included in the inferencer's generated code. This is useful when your data provider relies on themetaproperty which made@refinedev/inferencerunusable before. Now you will be able to passmetaproperties and generate code that will work with your data provider.metaproperty of the inferencer components has a nested structure unlike the rest of the refine codebase. This is because the inferencer components are designed to infer the relational data as well which may require differentmetavalues for each of their methods (such asgetListandgetOne).Type
<AntdListInferencer meta={{ [resourceNameOrIdentifier: string]: { [methodName: "default" | "getList" | "getMany" | "getOne" | "update"]: Record<string, unknown>, } }} />defaultis the defaultmetavalue for all the methods. In the absence of a specificmetavalue for a method for a resource, thedefaultvalue will be used.Example Usage
<AntdListInferencer meta={{ posts: { getList: { fields: [ "id", "title", "content", "category_id", "created_at", ], }, }, categories: { default: { fields: ["id", "title"], }, }, }} />Using the appropriate method to infer the relational data
The inferencer components were using the
getOnemethod of the data providers to infer the relational field data in a record. This has a chance of breaking the generated code and the preview if the data provider implements agetManyandgetOnein a different manner which may not be compatible with each other.In the generated code, fields with multiple values are handled via
useManyhook but the inference was using thegetOnemethod regardless of the field's cardinality. This has been fixed and the inferencer components will now use thegetManymethod for fields with multiple values andgetOnemethod for fields with single values.Redesigned code viewer components
Updated the code viewers components and the bottom buttons and unified the design. The code viewers now use the same components.
Sortable actions in Material UI list inferencer
Fixed the actions column in the Material UI list inferencer to be sortable.
Repeated relational fields
Added a check for repeated relational fields and excluded the duplicate fields from the generated code according to the context of the inferencer. In
listandshowactions fields with displayable values are preferred over the fields with relational values. Ineditandcreateactions, fields with relational values are preferred over the fields with displayable values.For example, if a
postsresource item has bothcategory_id(numberorstring) andcategory(record with keytitleandid) fields. Thelistandshowactions will use thecategoryfield and theeditandcreateactions will use thecategory_idfield.Ability to hide code viewer in production
Added an option
hideCodeViewerInProductionto hide code viewer components in production environments. This is added for presentational purposes and keep in mind that the Inferencer components are not meant for production use and may generate broken code.
3.1.7
Patch Changes
- #4093
c6637089837Thanks @yildirayunlu! - Fixed the warning about using theisOptionEqualToValueprops of theAutocompletecomponent.
3.1.6
Patch Changes
- #4092
f973878dc47Thanks @salihozdemir! - Fix the wrong import path for MuiCheckboxcomponent.
3.1.5
Patch Changes
- #4092
f973878dc47Thanks @salihozdemir! - Fix the wrong import path for MuiCheckboxcomponent.
3.1.4
Patch Changes
- #4025
a82937e9296Thanks @aliemir! - Fix wrong resource data usage and key conflicts on route change.
3.1.3
Patch Changes
- #4025
a82937e9296Thanks @aliemir! - Fix wrong resource data usage and key conflicts on route change.
3.1.2
Patch Changes
-
#3871
2a0cb4ed5a0Thanks @BatuhanW! - fix: wrong import for controller -
Updated dependencies [
5ed083a8050]:- @refinedev/core@4.1.2
3.1.1
Patch Changes
-
#3871
2a0cb4ed5a0Thanks @BatuhanW! - fix: wrong import for controller -
Updated dependencies [
5ed083a8050]:- @refinedev/core@4.1.1
3.1.0
Minor Changes
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Inferecer uses the resource
metainstead ofoptionsto pick which data provider to use. Ifmetais not defined, it will useoptionsas fallback. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Upgrade
@ant-design/iconsto^5.0.1for consistency. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
AuthProvideris renamed toLegacyAuthProviderwith refine@4. Components and functions are updated to supportLegacyAuthProvider. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Moving to the
@refinedevscope 🎉🎉Moved to the
@refinedevscope and updated our packages to use the new scope. From now on, all packages will be published under the@refinedevscope with their new names.Now, we're also removing the
refineprefix from all packages. So, the@pankod/refine-corepackage is now@refinedev/core,@pankod/refine-antdis now@refinedev/antd, and so on.
Patch Changes
2.10.0
Minor Changes
- #3822
0baa99ba787Thanks @BatuhanW! - - refine v4 release announcement added to "postinstall". - refine v4 is released 🎉 The new version is 100% backward compatible. You can upgrade to v4 with a single command! See the migration guide here: https://refine.dev/docs/migration-guide/3x-to-4x
Patch Changes
- Updated dependencies [
0baa99ba787]:
2.9.0
Minor Changes
- #3822
0baa99ba787Thanks @BatuhanW! - - refine v4 release announcement added to "postinstall". - refine v4 is released 🎉 The new version is 100% backward compatible. You can upgrade to v4 with a single command! See the migration guide here: https://refine.dev/docs/migration-guide/3x-to-4x
Patch Changes
- Updated dependencies [
0baa99ba787]:
2.8.2
Patch Changes
- #3636
f4f4c38a0eaThanks @BatuhanW! - Updated date inferencer to check existence of date separators.
2.8.1
Patch Changes
- #3636
f4f4c38a0eaThanks @BatuhanW! - Updated date inferencer to check existence of date separators.
2.8.0
Minor Changes
- #3622
499e9ccc2f6Thanks @aliemir! - Additional checks are added fornumberfield types. Now, number check still works if the field value is a string.
2.7.0
Minor Changes
- #3622
499e9ccc2f6Thanks @aliemir! - Additional checks are added fornumberfield types. Now, number check still works if the field value is a string.
2.6.0
Minor Changes
- #3600
c733eeb7449Thanks @aliemir! - Updated Error components of inferencer to reflect the errors in a more descriptive way. #3596
Patch Changes
- #3592
ea015a22797Thanks @aliemir! - Fixed the syntax error atMuiListInferencerin@pankod/refine-inferencer/mui
2.5.0
Minor Changes
- #3600
c733eeb7449Thanks @aliemir! - Updated Error components of inferencer to reflect the errors in a more descriptive way. #3596
2.4.1
Patch Changes
- #3592
ea015a22797Thanks @aliemir! - Fixed the syntax error atMuiListInferencerin@pankod/refine-inferencer/mui
2.4.0
Minor Changes
- #3502
92c052a8d92Thanks @aliemir! - Export utilities used in inferencer components to let users create their own inferencer components throughcreateInferencerfunction and utilities.
2.3.0
Minor Changes
- #3502
92c052a8d92Thanks @aliemir! - Export utilities used in inferencer components to let users create their own inferencer components throughcreateInferencerfunction and utilities.
2.2.4
Patch Changes
-
#3441
68eeacdbc15Thanks @aliemir! - Update component name generation for non-latin characters with a fallback value to the resource name. -
Updated dependencies [
8f2954611fa,ea74f3a8408,96d93eb2d71]:
2.2.3
Patch Changes
-
#3441
68eeacdbc15Thanks @aliemir! - Update component name generation for non-latin characters with a fallback value to the resource name. -
Updated dependencies [
8f2954611fa,ea74f3a8408,96d93eb2d71]:
2.2.2
Patch Changes
- #3376
7de42162c6bThanks @aliemir! - Remove repeatedReactimport fromheadless/listinferencer.
2.2.1
Patch Changes
- #3376
7de42162c6bThanks @aliemir! - Remove repeatedReactimport fromheadless/listinferencer.
2.2.0
Minor Changes
- #3361
abcd9a7ed6bThanks @aliemir! - - fix: updated date inference logic to have a minimum length limit- feat: added headless inferencer using
@pankod/refine-react-tableand@pankod/refine-react-hook-formpackages. exported from/headlesspath.
- feat: added headless inferencer using
Patch Changes
- Updated dependencies [
98a1fbec65a,310ebd05990]:
2.1.0
Minor Changes
- #3361
abcd9a7ed6bThanks @aliemir! - - fix: updated date inference logic to have a minimum length limit- feat: added headless inferencer using
@pankod/refine-react-tableand@pankod/refine-react-hook-formpackages. exported from/headlesspath.
- feat: added headless inferencer using
Patch Changes
- Updated dependencies [
98a1fbec65a,310ebd05990]:
2.0.2
Patch Changes
-
#3340
52489a0d8bcThanks @aliemir! - UpdateuseInferFetchhook logic to work withoutidinlistandcreatetype of inferencer. -
#3339
8c764ecc566Thanks @aliemir! - Fix type inconsistency inuseInferFetchdue to changes in@pankod/refine-core'suseResourcehook. -
Updated dependencies [
ce6acf2b3d4]:
2.0.1
Patch Changes
-
#3340
52489a0d8bcThanks @aliemir! - UpdateuseInferFetchhook logic to work withoutidinlistandcreatetype of inferencer. -
#3339
8c764ecc566Thanks @aliemir! - Fix type inconsistency inuseInferFetchdue to changes in@pankod/refine-core'suseResourcehook. -
Updated dependencies [
ce6acf2b3d4]:
2.0.0
Patch Changes
- Updated dependencies [
fd2e1882e06,214ea79c81c]:- @pankod/refine-antd@4.0.0
1.6.1
Patch Changes
- #3200
8c9efbd40dbThanks @aliemir! - Handle kebab-case relation suffixes for a wider case support. (e.g.category-id,category-ids)
1.6.0
Minor Changes
- #3173
15402d3a70fThanks @aliemir! - - AddedfieldTransformerprop to inferencer components to let users transform or hide the field to be rendered.- Hide networks errors caused by the relation detection process.
- Added the ability to detect relations from basic types like
"text"and"number".
1.5.0
Minor Changes
- #3173
15402d3a70fThanks @aliemir! - - AddedfieldTransformerprop to inferencer components to let users transform or hide the field to be rendered.- Hide networks errors caused by the relation detection process.
- Added the ability to detect relations from basic types like
"text"and"number".
1.4.0
Minor Changes
- #3166
b41e89ea7ebThanks @aliemir! - Replacedreact-livepackage with a maintained fork@aliemir/react-livewith TypeScript support.
1.3.0
Minor Changes
- #3166
b41e89ea7ebThanks @aliemir! - Replacedreact-livepackage with a maintained fork@aliemir/react-livewith TypeScript support.
1.2.2
Patch Changes
- #3123
5e480338852Thanks @salihozdemir! - - Removed the requirement to define resource for relations.- Component names and variable names are now generated primarily by label after the resource name.
- Added a new base interface component
- import { - AntdShowInferencer, - AntdEditInferencer, - AntdListInferencer, - AntdEditInferencer, - } from "@pankod/refine-inferencer/antd"; + import { AntdInferencer } from "@pankod/refine-inferencer/antd"; <Refine ... resources={[ { name: "samples", - list: AntdListInferencer, + list: AntdInferencer, - edit: AntdEditInferencer, + edit: AntdInferencer, - show: AntdShowInferencer, + show: AntdInferencer, - create: AntdEditInferencer, + create: AntdInferencer, }, ]} />
1.2.1
Patch Changes
- #3123
5e480338852Thanks @salihozdemir! - - Removed the requirement to define resource for relations.- Component names and variable names are now generated primarily by label after the resource name.
- Added a new base interface component
- import { - AntdShowInferencer, - AntdEditInferencer, - AntdListInferencer, - AntdEditInferencer, - } from "@pankod/refine-inferencer/antd"; + import { AntdInferencer } from "@pankod/refine-inferencer/antd"; <Refine ... resources={[ { name: "samples", - list: AntdListInferencer, + list: AntdInferencer, - edit: AntdEditInferencer, + edit: AntdInferencer, - show: AntdShowInferencer, + show: AntdInferencer, - create: AntdEditInferencer, + create: AntdInferencer, }, ]} />
1.2.0
Minor Changes
-
#3027
177d0a764feThanks @aliemir! - Initial release of the Inferencer package.This package provides series of components per each UI integration to generate list, show and edit pages for your resources. The fields and their representation are inferred from your resource's API response. Code is generated and presented with a preview and option to copy and edit in your project.
Note: It's highly advised to only use this package in development environments. While generating the sample code, multiple requests are made to the API and the result might not be the best application for your data.
Usage
Components for UI integrations are exported in sub directories. For example, to use the components for Ant Design integration, you can import them like this:
After importing the component, you can directly use it in
<Refine/>component'sresourcesprop.<Refine resources={[ { name: "posts", list: AntdListInferencer, show: AntdShowInferencer, edit: AntdEditInferencer, }, ]} />Tip: Relation data is only handled if the resource is present in the
resourcesarray. For example, if you have apostsresource with ausersrelation, you need to addusersresource to theresourcesarray as well. Otherwise, inferencer will try to show the relation data as a simple field like string or a number.
Patch Changes
- #3064
27df262dd0aThanks @aliemir! - Addedundefinedcheck for date field values in@pankod/refine-inferencer/antd'sEditInferencercomponent to prevent setting it to current date when it's not provided.
1.1.0
Minor Changes
-
#3027
177d0a764feThanks @aliemir! - Initial release of the Inferencer package.This package provides series of components per each UI integration to generate list, show and edit pages for your resources. The fields and their representation are inferred from your resource's API response. Code is generated and presented with a preview and option to copy and edit in your project.
Note: It's highly advised to only use this package in development environments. While generating the sample code, multiple requests are made to the API and the result might not be the best application for your data.
Usage
Components for UI integrations are exported in sub directories. For example, to use the components for Ant Design integration, you can import them like this:
After importing the component, you can directly use it in
<Refine/>component'sresourcesprop.<Refine resources={[ { name: "posts", list: AntdListInferencer, show: AntdShowInferencer, edit: AntdEditInferencer, }, ]} />Tip: Relation data is only handled if the resource is present in the
resourcesarray. For example, if you have apostsresource with ausersrelation, you need to addusersresource to theresourcesarray as well. Otherwise, inferencer will try to show the relation data as a simple field like string or a number.
Patch Changes
- #3064
27df262dd0aThanks @aliemir! - Addedundefinedcheck for date field values in@pankod/refine-inferencer/antd'sEditInferencercomponent to prevent setting it to current date when it's not provided.
1.6.11
Patch Changes
- Add primary color to
<SaveButton/>'s<ActionIcon/>component.
1.6.10
Patch Changes
- #2758
3960549907Thanks @salihozdemir! - Add primary color to<SaveButton/>'s<ActionIcon/>component.
1.6.9
Patch Changes
- Fixed incorrectly used hooks in AuthPage component
1.6.8
Patch Changes
- #2769
501aebe997Thanks @dgelineau! - Fixed incorrectly used hooks in AuthPage component
1.6.7
Patch Changes
- Fixed responsive design for mobile devices
1.6.6
Patch Changes
- #2748
0eaddb65eeThanks @salihozdemir! - Fixed responsive design for mobile devices
1.6.5
Patch Changes
-
- Added
<LoadingOverlay />component to basic view components. - Update
goBackprop usage, now it can be passed to<ActionButton />'s children. - Fixed the issue that when
titleprop is passed to basic views, the back button is not shown. - Default title size decreased from
h2toh3.
- Added
- Updated dependencies []:
1.6.4
Patch Changes
- #2718
d78d2a2a99Thanks @salihozdemir! - - Added<LoadingOverlay />component to basic view components.- Update
goBackprop usage, now it can be passed to<ActionButton />'s children. - Fixed the issue that when
titleprop is passed to basic views, the back button is not shown. - Default title size decreased from
h2toh3.
- Update
- Updated dependencies [
d78d2a2a99]:
1.6.3
Patch Changes
- Fixed
providersproperty empty array state in<AuthPage />component
1.6.2
Patch Changes
- Fixed
providersproperty empty array state in<AuthPage />component
1.6.1
Patch Changes
- #2712
c434055011Thanks @omeraplak! - Fixedprovidersproperty empty array state in<AuthPage />component
1.6.0
Minor Changes
- Updated
formPropsproperty on<AuthPage />component
Patch Changes
- Added
clearableprop touseSelecthook that istrueby default.
1.5.0
Minor Changes
- #2663
c624a52b23Thanks @yildirayunlu! - UpdatedformPropsproperty on<AuthPage />component
Patch Changes
- #2701
ddd9eb3affThanks @salihozdemir! - Addedclearableprop touseSelecthook that istrueby default.
1.4.0
Minor Changes
-
- Added new component core and mantine support.
- Move Auth types
@pankod/refine-ui-typesto@pankod/refine-core
1.3.0
Minor Changes
- #2627
c5fb45d61fThanks @yildirayunlu! - - Added new component core and mantine support.- Move Auth types
@pankod/refine-ui-typesto@pankod/refine-core
- Move Auth types
1.2.0
Minor Changes
- First release of
@pankod/refine-mantine🎉
1.1.0
Minor Changes
- #2505
a4dbb63c88Thanks @salihozdemir! - First release of@pankod/refine-mantine🎉
1.0.6
Patch Changes
- Updated dependencies []:
1.0.5
Patch Changes
- Updated dependencies [
a65525de6f]:
1.0.4
Patch Changes
- Updated dependencies []:
- @pankod/refine-ui-types@0.9.0
1.0.3
Patch Changes
- Updated dependencies [
ad99916d6d]:- @pankod/refine-ui-types@0.8.0
1.0.2
Patch Changes
-
Fixed version of react-router to
6.3.0 -
Updated dependencies []:
- @pankod/refine-ui-types@0.7.0
1.0.1
Patch Changes
- #2501
4095a578d4Thanks @omeraplak! - Fixed version of react-router to6.3.0