65 KiB
@refinedev/mantine
4.5.17
Patch Changes
-
#5373
dff476ca41
Thanks @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
dff476ca41
Thanks @aliemir! - Fixed the issue of wrongfully assumingid
key of relational fields in Chakra UI and Headless edit inferencers. Fixes #5274 -
#5373
dff476ca41
Thanks @aliemir! - Even thoughid
is required for Refine to work properly, in some list queries there may not be anid
field. Material UI Datagrid requires an identifier for each row, if there's noid
field, we're fallbacking to the first key of the row. Fixes the errors thrown for this case in Material UI List inferencers. -
#5373
dff476ca41
Thanks @aliemir! - Updated the object field inferencer to check for fields end withname
andlabel
and 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 withname
orlabel
which results with more accurate code generation. -
Updated dependencies [
75bb61dd3b
,93e00fd770
,e5888b6b9c
,b621223bfb
,19ceffbe9f
]:- @refinedev/core@4.46.2
4.5.16
Patch Changes
- #5425
190af9fce2
Thanks @aliemir! - Updated@refinedev/core
peer dependencies to latest (^4.46.1
)
4.5.15
Patch Changes
-
#5335
9321a02a8f
Thanks @alicanerdurmaz! - fix: Material UI snapshots tests. -
Updated dependencies [
17aa8c1cd6
,dd8f1270f6
,4c49ef0a06
,3bdb9cb1cb
,f8e407f850
]:- @refinedev/core@4.46.0
4.5.14
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies []:
- @refinedev/core@4.42.4
4.5.13
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies []:
- @refinedev/core@4.42.3
4.5.12
Patch Changes
-
#4975
ff66a862e46
Thanks @aliemir! - Updated dependency of@tabler/icons
tov1.119.0
to fix the issue of using misconfigured versions. (Fixes #4921) -
Updated dependencies [
d8e464fa2c4
]:- @refinedev/core@4.42.0
4.5.11
Patch Changes
- #4975
ff66a862e46
Thanks @aliemir! - Updated dependency of@tabler/icons
tov1.119.0
to fix the issue of using misconfigured versions. (Fixes #4921)
4.5.10
Patch Changes
- #4964
85b1ac0db5f
Thanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
4.5.9
Patch Changes
- #4964
85b1ac0db5f
Thanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
4.5.8
Patch Changes
- #4951
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077
]:- @refinedev/core@4.38.4
4.5.7
Patch Changes
- #4951
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077
]:- @refinedev/core@4.38.3
4.5.6
Patch Changes
-
#4948
8e5efffbb23
Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23
]:- @refinedev/core@4.38.2
4.5.5
Patch Changes
-
#4948
8e5efffbb23
Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23
]:- @refinedev/core@4.38.1
4.5.4
Patch Changes
-
#4797
a680aea865b
Thanks @yildirayunlu! - fix: relation fields are not correctly inferred forshow
viewsShows
title
forcategory
without using theuseOne
hook when showing thecategory
key.{ "title": "My title", "description": "My description", "category": { "id": 1, "name": "My category" } }
4.5.3
Patch Changes
-
#4797
a680aea865b
Thanks @yildirayunlu! - fix: relation fields are not correctly inferred forshow
viewsShows
title
forcategory
without using theuseOne
hook when showing thecategory
key.{ "title": "My title", "description": "My description", "category": { "id": 1, "name": "My category" } }
4.5.2
Patch Changes
-
#4774
030a9dda75a
Thanks @yildirayunlu! - feat: unlock and upgrade@mui/material
to^5.14.2
-
Updated dependencies [
e3e38de4114
]:- @refinedev/core@4.32.2
4.5.1
Patch Changes
-
#4774
030a9dda75a
Thanks @yildirayunlu! - feat: unlock and upgrade@mui/material
to^5.14.2
-
Updated dependencies [
e3e38de4114
]:- @refinedev/core@4.32.1
4.5.0
Minor Changes
- #4741
026ccf34356
Thanks @aliemir! - AddedsideEffects: false
topackage.json
to help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356
]:- @refinedev/core@4.32.0
4.4.0
Minor Changes
- #4741
026ccf34356
Thanks @aliemir! - AddedsideEffects: false
topackage.json
to help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356
]:- @refinedev/core@4.31.0
4.3.4
Patch Changes
- #4717
c1c10e5d7bd
Thanks @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
c1c10e5d7bd
Thanks @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
5de50a6af75
Thanks @aliemir! - Added an additional info log and a link to the documentation into the inferencer components after relation requests are made. -
Updated dependencies [
03597ed8a9a
]:- @refinedev/core@4.26.4
4.3.1
Patch Changes
-
#4634
5de50a6af75
Thanks @aliemir! - Added an additional info log and a link to the documentation into the inferencer components after relation requests are made. -
Updated dependencies [
03597ed8a9a
]:- @refinedev/core@4.26.3
4.3.0
Minor Changes
- #4582
2edadc3a2aa
Thanks @rasitcolakel! - fix: added predefined relationInfer control
Patch Changes
-
#4601
090653717d6
Thanks @aliemir! - Updated inferencer functions to check for relational fields with representable values. If the inferencer type isshow
orlist
, 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
tags
field in list and show inferencers using thename
property instead of trying to fetch the relational data. Butedit
andcreate
inferencers will still work with the relational data. -
Updated dependencies [
c3c0deed564
,8c2b3be35b0
,5bb6f47a4d4
]:- @refinedev/core@4.26.0
4.2.0
Minor Changes
- #4582
2edadc3a2aa
Thanks @rasitcolakel! - fix: added predefined relationInfer control
Patch Changes
-
#4601
090653717d6
Thanks @aliemir! - Updated inferencer functions to check for relational fields with representable values. If the inferencer type isshow
orlist
, 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
tags
field in list and show inferencers using thename
property instead of trying to fetch the relational data. Butedit
andcreate
inferencers will still work with the relational data. -
Updated dependencies [
5bb6f47a4d4
]:- @refinedev/core@4.25.1
4.1.4
Patch Changes
-
#4561
9812a3d874a
Thanks @yildirayunlu! - fix: select current value on<Select>
component forChakra-UI
andheadless
-
Updated dependencies [
18d446b1069
,ceadcd29fc9
,18d446b1069
]:- @refinedev/core@4.24.0
4.1.3
Patch Changes
-
#4561
9812a3d874a
Thanks @yildirayunlu! - fix: select current value on<Select>
component forChakra-UI
andheadless
-
Updated dependencies [
18d446b1069
,ceadcd29fc9
,18d446b1069
]:- @refinedev/core@4.23.0
4.1.2
Patch Changes
- #4499
b120a0394f8
Thanks @BatuhanW! - fix: show code button for inferencers was not visible in smaller screens.
4.1.1
Patch Changes
- #4499
b120a0394f8
Thanks @BatuhanW! - fix: show code button for inferencers was not visible in smaller screens.
4.1.0
Minor Changes
-
#4454
4bae8add99f
Thanks @aliemir! - According to the changes made in@refinedev/mui
to support the latest version of the@mui/x-data-grid
package, we've updated the@refinedev/inferencer
package 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/mui
is updated to^5.0.0
and the peer dependency of@mui/x-data-grid
is updated to^6.6.0
.
Patch Changes
-
#4454
4bae8add99f
Thanks @aliemir! - Updated theListInferencer
logic to check forcanDelete
property in resource definitions to decide whether to includeDeleteButton
in the actions column of theList
view or not. -
Updated dependencies [
c82006f712a
]:- @refinedev/core@4.20.0
4.0.0
Major Changes
-
#4454
4bae8add99f
Thanks @aliemir! - According to the changes made in@refinedev/mui
to support the latest version of the@mui/x-data-grid
package, we've updated the@refinedev/inferencer
package 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/mui
is updated to^5.0.0
and the peer dependency of@mui/x-data-grid
is updated to^6.6.0
.
Patch Changes
-
#4454
4bae8add99f
Thanks @aliemir! - Updated theListInferencer
logic to check forcanDelete
property in resource definitions to decide whether to includeDeleteButton
in the actions column of theList
view or not. -
Updated dependencies [
c82006f712a
,4bae8add99f
,4bae8add99f
,4bae8add99f
]:- @refinedev/core@4.19.0
- @refinedev/mui@5.0.0
3.5.8
Patch Changes
- #4427
b4298166b6f
Thanks @alicanerdurmaz! - fixed: Inferencer assumesid
is number in custom pages. From now on, ifid
istypeof string
, andinferencer
will infer it asstring
. - Updated dependencies [
cf07d59587f
,c29a3618cf6
,0602f4cdf1c
,cf07d59587f
]:- @refinedev/core@4.18.0
3.5.7
Patch Changes
- #4427
b4298166b6f
Thanks @alicanerdurmaz! - fixed: Inferencer assumesid
is number in custom pages. From now on, ifid
istypeof string
, andinferencer
will infer it asstring
. - Updated dependencies [
cf07d59587f
,c29a3618cf6
,0602f4cdf1c
,cf07d59587f
]:- @refinedev/core@4.17.0
3.5.6
Patch Changes
-
#4402
4c41be2a2ae
Thanks @aliemir! - Added missingtranslate
function dependency to the table hooks ifi18n
is enabled. -
Updated dependencies [
473bbe5b31d
,473bbe5b31d
]:- @refinedev/core@4.16.2
3.5.5
Patch Changes
- #4402
4c41be2a2ae
Thanks @aliemir! - Added missingtranslate
function dependency to the table hooks ifi18n
is enabled.
3.5.4
Patch Changes
- #4398
8a424c227a8
Thanks @aliemir! - Updated the type imports in the files to get thetsc
working for the type definitions in thedist
folder. This will fix the issue with the components not being properly typed in user projects.
3.5.3
Patch Changes
- #4398
8a424c227a8
Thanks @aliemir! - Updated the type imports in the files to get thetsc
working for the type definitions in thedist
folder. This will fix the issue with the components not being properly typed in user projects.
3.5.2
Patch Changes
-
#4381
500cf2becc2
Thanks @yildirayunlu! - feat: support i18nSupports i18n if
i18nProvider
is defined. -
Updated dependencies [
500cf2becc2
,28fe67047a0
]:- @refinedev/core@4.16.0
3.5.1
Patch Changes
-
#4381
500cf2becc2
Thanks @yildirayunlu! - feat: support i18nSupports i18n if
i18nProvider
is defined. -
Updated dependencies [
500cf2becc2
,28fe67047a0
]:- @refinedev/core@4.15.0
3.5.0
Minor Changes
-
#4382
83ff1076f5c
Thanks @aliemir! - Updated the inference process forlist
andcreate
actions 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
list
andcreate
actions, 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
8b3137e9e9d
Thanks @aliemir! - Fixed the code generation issue with Mantine'screate
andedit
inferencers when used withmeta
values.
3.4.0
Minor Changes
-
#4382
83ff1076f5c
Thanks @aliemir! - Updated the inference process forlist
andcreate
actions 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
list
andcreate
actions, 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
8b3137e9e9d
Thanks @aliemir! - Fixed the code generation issue with Mantine'screate
andedit
inferencers when used withmeta
values.
3.3.6
Patch Changes
- #4355
bf4011f1d00
Thanks @aliemir! - Updated@mui/material
and@mui/icons-material
imports to use subpath imports.
3.3.5
Patch Changes
- #4355
bf4011f1d00
Thanks @aliemir! - Updated@mui/material
and@mui/icons-material
imports to use subpath imports.
3.3.4
Patch Changes
- #4293
7fa008b7ff7
Thanks @salihozdemir! - refactor: minimized the packages scope
3.3.3
Patch Changes
- #4293
7fa008b7ff7
Thanks @salihozdemir! - refactor: minimized the packages scope
3.3.2
Patch Changes
- #4265
ff43684f787
Thanks @salihozdemir! - fix: fixed an issue that caused the duplicate field error
3.3.1
Patch Changes
- #4265
ff43684f787
Thanks @salihozdemir! - fix: fixed an issue that caused the duplicate field error
3.3.0
Minor Changes
-
#4141
e7188abba8b
Thanks @aliemir! - ##meta
property for inferencer componentsAdded
meta
property to the inferencer components. This allows you to passmeta
to the data hooks included in the inferencer's generated code. This is useful when your data provider relies on themeta
property which made@refinedev/inferencer
unusable before. Now you will be able to passmeta
properties and generate code that will work with your data provider.meta
property 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 differentmeta
values for each of their methods (such asgetList
andgetOne
).Type
<AntdListInferencer meta={{ [resourceNameOrIdentifier: string]: { [methodName: "default" | "getList" | "getMany" | "getOne" | "update"]: Record<string, unknown>, } }} />
default
is the defaultmeta
value for all the methods. In the absence of a specificmeta
value for a method for a resource, thedefault
value 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
getOne
method 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 agetMany
andgetOne
in a different manner which may not be compatible with each other.In the generated code, fields with multiple values are handled via
useMany
hook but the inference was using thegetOne
method regardless of the field's cardinality. This has been fixed and the inferencer components will now use thegetMany
method for fields with multiple values andgetOne
method 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
list
andshow
actions fields with displayable values are preferred over the fields with relational values. Inedit
andcreate
actions, fields with relational values are preferred over the fields with displayable values.For example, if a
posts
resource item has bothcategory_id
(number
orstring
) andcategory
(record with keytitle
andid
) fields. Thelist
andshow
actions will use thecategory
field and theedit
andcreate
actions will use thecategory_id
field.Ability to hide code viewer in production
Added an option
hideCodeViewerInProduction
to 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
e7188abba8b
Thanks @aliemir! - ##meta
property for inferencer componentsAdded
meta
property to the inferencer components. This allows you to passmeta
to the data hooks included in the inferencer's generated code. This is useful when your data provider relies on themeta
property which made@refinedev/inferencer
unusable before. Now you will be able to passmeta
properties and generate code that will work with your data provider.meta
property 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 differentmeta
values for each of their methods (such asgetList
andgetOne
).Type
<AntdListInferencer meta={{ [resourceNameOrIdentifier: string]: { [methodName: "default" | "getList" | "getMany" | "getOne" | "update"]: Record<string, unknown>, } }} />
default
is the defaultmeta
value for all the methods. In the absence of a specificmeta
value for a method for a resource, thedefault
value 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
getOne
method 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 agetMany
andgetOne
in a different manner which may not be compatible with each other.In the generated code, fields with multiple values are handled via
useMany
hook but the inference was using thegetOne
method regardless of the field's cardinality. This has been fixed and the inferencer components will now use thegetMany
method for fields with multiple values andgetOne
method 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
list
andshow
actions fields with displayable values are preferred over the fields with relational values. Inedit
andcreate
actions, fields with relational values are preferred over the fields with displayable values.For example, if a
posts
resource item has bothcategory_id
(number
orstring
) andcategory
(record with keytitle
andid
) fields. Thelist
andshow
actions will use thecategory
field and theedit
andcreate
actions will use thecategory_id
field.Ability to hide code viewer in production
Added an option
hideCodeViewerInProduction
to 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
c6637089837
Thanks @yildirayunlu! - Fixed the warning about using theisOptionEqualToValue
props of theAutocomplete
component.
3.1.6
Patch Changes
- #4092
f973878dc47
Thanks @salihozdemir! - Fix the wrong import path for MuiCheckbox
component.
3.1.5
Patch Changes
- #4092
f973878dc47
Thanks @salihozdemir! - Fix the wrong import path for MuiCheckbox
component.
3.1.4
Patch Changes
- #4025
a82937e9296
Thanks @aliemir! - Fix wrong resource data usage and key conflicts on route change.
3.1.3
Patch Changes
- #4025
a82937e9296
Thanks @aliemir! - Fix wrong resource data usage and key conflicts on route change.
3.1.2
Patch Changes
-
#3871
2a0cb4ed5a0
Thanks @BatuhanW! - fix: wrong import for controller -
Updated dependencies [
5ed083a8050
]:- @refinedev/core@4.1.2
3.1.1
Patch Changes
-
#3871
2a0cb4ed5a0
Thanks @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
meta
instead ofoptions
to pick which data provider to use. Ifmeta
is not defined, it will useoptions
as fallback. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Upgrade
@ant-design/icons
to^5.0.1
for consistency. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
AuthProvider
is renamed toLegacyAuthProvider
with refine@4. Components and functions are updated to supportLegacyAuthProvider
. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Moving to the
@refinedev
scope 🎉🎉Moved to the
@refinedev
scope and updated our packages to use the new scope. From now on, all packages will be published under the@refinedev
scope with their new names.Now, we're also removing the
refine
prefix from all packages. So, the@pankod/refine-core
package is now@refinedev/core
,@pankod/refine-antd
is now@refinedev/antd
, and so on.
Patch Changes
2.10.0
Minor Changes
- #3822
0baa99ba787
Thanks @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
]:- @pankod/refine-core@3.103.0
2.9.0
Minor Changes
- #3822
0baa99ba787
Thanks @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
]:- @pankod/refine-core@3.102.0
2.8.2
Patch Changes
- #3636
f4f4c38a0ea
Thanks @BatuhanW! - Updated date inferencer to check existence of date separators.
2.8.1
Patch Changes
- #3636
f4f4c38a0ea
Thanks @BatuhanW! - Updated date inferencer to check existence of date separators.
2.8.0
Minor Changes
- #3622
499e9ccc2f6
Thanks @aliemir! - Additional checks are added fornumber
field types. Now, number check still works if the field value is a string.
2.7.0
Minor Changes
- #3622
499e9ccc2f6
Thanks @aliemir! - Additional checks are added fornumber
field types. Now, number check still works if the field value is a string.
2.6.0
Minor Changes
- #3600
c733eeb7449
Thanks @aliemir! - Updated Error components of inferencer to reflect the errors in a more descriptive way. #3596
Patch Changes
- #3592
ea015a22797
Thanks @aliemir! - Fixed the syntax error atMuiListInferencer
in@pankod/refine-inferencer/mui
2.5.0
Minor Changes
- #3600
c733eeb7449
Thanks @aliemir! - Updated Error components of inferencer to reflect the errors in a more descriptive way. #3596
2.4.1
Patch Changes
- #3592
ea015a22797
Thanks @aliemir! - Fixed the syntax error atMuiListInferencer
in@pankod/refine-inferencer/mui
2.4.0
Minor Changes
- #3502
92c052a8d92
Thanks @aliemir! - Export utilities used in inferencer components to let users create their own inferencer components throughcreateInferencer
function and utilities.
2.3.0
Minor Changes
- #3502
92c052a8d92
Thanks @aliemir! - Export utilities used in inferencer components to let users create their own inferencer components throughcreateInferencer
function and utilities.
2.2.4
Patch Changes
-
#3441
68eeacdbc15
Thanks @aliemir! - Update component name generation for non-latin characters with a fallback value to the resource name. -
Updated dependencies [
8f2954611fa
,ea74f3a8408
,96d93eb2d71
]:- @pankod/refine-core@3.97.0
2.2.3
Patch Changes
-
#3441
68eeacdbc15
Thanks @aliemir! - Update component name generation for non-latin characters with a fallback value to the resource name. -
Updated dependencies [
8f2954611fa
,ea74f3a8408
,96d93eb2d71
]:- @pankod/refine-core@3.96.0
2.2.2
Patch Changes
- #3376
7de42162c6b
Thanks @aliemir! - Remove repeatedReact
import fromheadless/list
inferencer.
2.2.1
Patch Changes
- #3376
7de42162c6b
Thanks @aliemir! - Remove repeatedReact
import fromheadless/list
inferencer.
2.2.0
Minor Changes
- #3361
abcd9a7ed6b
Thanks @aliemir! - - fix: updated date inference logic to have a minimum length limit- feat: added headless inferencer using
@pankod/refine-react-table
and@pankod/refine-react-hook-form
packages. exported from/headless
path.
- feat: added headless inferencer using
Patch Changes
- Updated dependencies [
98a1fbec65a
,310ebd05990
]:- @pankod/refine-core@3.94.2
2.1.0
Minor Changes
- #3361
abcd9a7ed6b
Thanks @aliemir! - - fix: updated date inference logic to have a minimum length limit- feat: added headless inferencer using
@pankod/refine-react-table
and@pankod/refine-react-hook-form
packages. exported from/headless
path.
- feat: added headless inferencer using
Patch Changes
- Updated dependencies [
98a1fbec65a
,310ebd05990
]:- @pankod/refine-core@3.94.1
2.0.2
Patch Changes
-
#3340
52489a0d8bc
Thanks @aliemir! - UpdateuseInferFetch
hook logic to work withoutid
inlist
andcreate
type of inferencer. -
#3339
8c764ecc566
Thanks @aliemir! - Fix type inconsistency inuseInferFetch
due to changes in@pankod/refine-core
'suseResource
hook. -
Updated dependencies [
ce6acf2b3d4
]:- @pankod/refine-core@3.94.0
2.0.1
Patch Changes
-
#3340
52489a0d8bc
Thanks @aliemir! - UpdateuseInferFetch
hook logic to work withoutid
inlist
andcreate
type of inferencer. -
#3339
8c764ecc566
Thanks @aliemir! - Fix type inconsistency inuseInferFetch
due to changes in@pankod/refine-core
'suseResource
hook. -
Updated dependencies [
ce6acf2b3d4
]:- @pankod/refine-core@3.93.0
2.0.0
Patch Changes
- Updated dependencies [
fd2e1882e06
,214ea79c81c
]:- @pankod/refine-antd@4.0.0
1.6.1
Patch Changes
- #3200
8c9efbd40db
Thanks @aliemir! - Handle kebab-case relation suffixes for a wider case support. (e.g.category-id
,category-ids
)
1.6.0
Minor Changes
- #3173
15402d3a70f
Thanks @aliemir! - - AddedfieldTransformer
prop 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
15402d3a70f
Thanks @aliemir! - - AddedfieldTransformer
prop 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
b41e89ea7eb
Thanks @aliemir! - Replacedreact-live
package with a maintained fork@aliemir/react-live
with TypeScript support.
1.3.0
Minor Changes
- #3166
b41e89ea7eb
Thanks @aliemir! - Replacedreact-live
package with a maintained fork@aliemir/react-live
with TypeScript support.
1.2.2
Patch Changes
- #3123
5e480338852
Thanks @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
5e480338852
Thanks @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
177d0a764fe
Thanks @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'sresources
prop.<Refine resources={[ { name: "posts", list: AntdListInferencer, show: AntdShowInferencer, edit: AntdEditInferencer, }, ]} />
Tip: Relation data is only handled if the resource is present in the
resources
array. For example, if you have aposts
resource with ausers
relation, you need to addusers
resource to theresources
array as well. Otherwise, inferencer will try to show the relation data as a simple field like string or a number.
Patch Changes
- #3064
27df262dd0a
Thanks @aliemir! - Addedundefined
check for date field values in@pankod/refine-inferencer/antd
'sEditInferencer
component to prevent setting it to current date when it's not provided.
1.1.0
Minor Changes
-
#3027
177d0a764fe
Thanks @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'sresources
prop.<Refine resources={[ { name: "posts", list: AntdListInferencer, show: AntdShowInferencer, edit: AntdEditInferencer, }, ]} />
Tip: Relation data is only handled if the resource is present in the
resources
array. For example, if you have aposts
resource with ausers
relation, you need to addusers
resource to theresources
array as well. Otherwise, inferencer will try to show the relation data as a simple field like string or a number.
Patch Changes
- #3064
27df262dd0a
Thanks @aliemir! - Addedundefined
check for date field values in@pankod/refine-inferencer/antd
'sEditInferencer
component 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
3960549907
Thanks @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
501aebe997
Thanks @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
0eaddb65ee
Thanks @salihozdemir! - Fixed responsive design for mobile devices
1.6.5
Patch Changes
-
- Added
<LoadingOverlay />
component to basic view components. - Update
goBack
prop usage, now it can be passed to<ActionButton />
's children. - Fixed the issue that when
title
prop is passed to basic views, the back button is not shown. - Default title size decreased from
h2
toh3
.
- Added
- Updated dependencies []:
- @pankod/refine-ui-types@0.11.4
1.6.4
Patch Changes
- #2718
d78d2a2a99
Thanks @salihozdemir! - - Added<LoadingOverlay />
component to basic view components.- Update
goBack
prop usage, now it can be passed to<ActionButton />
's children. - Fixed the issue that when
title
prop is passed to basic views, the back button is not shown. - Default title size decreased from
h2
toh3
.
- Update
- Updated dependencies [
d78d2a2a99
]:- @pankod/refine-ui-types@0.11.3
1.6.3
Patch Changes
- Fixed
providers
property empty array state in<AuthPage />
component
1.6.2
Patch Changes
- Fixed
providers
property empty array state in<AuthPage />
component
1.6.1
Patch Changes
- #2712
c434055011
Thanks @omeraplak! - Fixedproviders
property empty array state in<AuthPage />
component
1.6.0
Minor Changes
- Updated
formProps
property on<AuthPage />
component
Patch Changes
- Added
clearable
prop touseSelect
hook that istrue
by default.
1.5.0
Minor Changes
- #2663
c624a52b23
Thanks @yildirayunlu! - UpdatedformProps
property on<AuthPage />
component
Patch Changes
- #2701
ddd9eb3aff
Thanks @salihozdemir! - Addedclearable
prop touseSelect
hook that istrue
by default.
1.4.0
Minor Changes
-
- Added new component core and mantine support.
- Move Auth types
@pankod/refine-ui-types
to@pankod/refine-core
1.3.0
Minor Changes
- #2627
c5fb45d61f
Thanks @yildirayunlu! - - Added new component core and mantine support.- Move Auth types
@pankod/refine-ui-types
to@pankod/refine-core
- Move Auth types
1.2.0
Minor Changes
- First release of
@pankod/refine-mantine
🎉
1.1.0
Minor Changes
- #2505
a4dbb63c88
Thanks @salihozdemir! - First release of@pankod/refine-mantine
🎉
1.0.6
Patch Changes
- Updated dependencies []:
- @pankod/refine-ui-types@0.11.0
1.0.5
Patch Changes
- Updated dependencies [
a65525de6f
]:- @pankod/refine-ui-types@0.10.0
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
4095a578d4
Thanks @omeraplak! - Fixed version of react-router to6.3.0