refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.

MIT License

Downloads
1.1M
Stars
25.3K
Committers
269

Bot releases are visible (Hide)

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4313 28fe67047a0 Thanks @abdellah711! - feat: implement generateDefaultDocumentTitle function

    This function generates a default document title based on the current route by following these rules (resource in this case is "Post"):

    • list -> Posts | refine
    • edit -> #{id} Edit Post | refine
    • show -> #{id} Show Post | refine
    • create -> Create new Post | refine
    • default (not a resource) -> refine

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4382 83ff1076f5c Thanks @aliemir! - Updated the inference process for list and create 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 and create 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's create and edit inferencers when used with meta values.
refine - [email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4303 0c569f42b4e Thanks @alicanerdurmaz! - feat: added crud component types.
    Now ActionButtonRenderer has a new generic type TExtraProps. This will allow us to pass extra props to the renderer.

    feat: added TEditButtonProps, TDeleteButtonProps, TRefreshButtonProps, and, TListButtonProps generic types to RefineCrudShowProps.
    Now RefineCrudShowProps can take generic types for all the buttons.

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4303 0c569f42b4e Thanks @alicanerdurmaz! - feat: added default button props into the renderer functions headerButtons and footerButtons in CRUD components.
    Now, customization of the header and footer buttons can be achieved without losing the default functionality.

    import {
        DeleteButton,
        EditButton,
        ListButton,
        RefreshButton,
        Show,
    } from "@refinedev/mui";
    
    const PostShow = () => {
        return (
            <Show
                headerButtons={({
                    deleteButtonProps,
                    editButtonProps,
                    listButtonProps,
                    refreshButtonProps,
                }) => {
                    return (
                        <>
                            {/* custom components */}
                            {listButtonProps && (
                                <ListButton
                                    {...listButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {editButtonProps && (
                                <EditButton
                                    {...editButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {deleteButtonProps && (
                                <DeleteButton
                                    {...deleteButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            <RefreshButton
                                {...refreshButtonProps}
                                meta={{ foo: "bar" }}
                            />
                        </>
                    );
                }}
            >
                {/* ... */}
            </Show>
        );
    };
    

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4306 e6eb4dea627 Thanks @yildirayunlu! - feat: syncWithLocation.syncId default to true for useModalForm.

  • #4303 0c569f42b4e Thanks @alicanerdurmaz! - feat: added default button props into the renderer functions headerButtons and footerButtons in CRUD components.
    Now, customization of the header and footer buttons can be achieved without losing the default functionality.

    import {
        DeleteButton,
        EditButton,
        ListButton,
        RefreshButton,
        Show,
    } from "@refinedev/mantine";
    
    const PostShow = () => {
        return (
            <Show
                headerButtons={({
                    deleteButtonProps,
                    editButtonProps,
                    listButtonProps,
                    refreshButtonProps,
                }) => {
                    return (
                        <>
                            {/* custom components */}
                            {listButtonProps && (
                                <ListButton
                                    {...listButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {editButtonProps && (
                                <EditButton
                                    {...editButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {deleteButtonProps && (
                                <DeleteButton
                                    {...deleteButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            <RefreshButton
                                {...refreshButtonProps}
                                meta={{ foo: "bar" }}
                            />
                        </>
                    );
                }}
            >
                {/* ... */}
            </Show>
        );
    };
    

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4303 0c569f42b4e Thanks @alicanerdurmaz! - feat: added default button props into the renderer functions headerButtons and footerButtons in CRUD components.
    Now, customization of the header and footer buttons can be achieved without losing the default functionality.

    import {
        DeleteButton,
        EditButton,
        ListButton,
        RefreshButton,
        Show,
    } from "@refinedev/chakra-ui";
    
    const PostShow = () => {
        return (
            <Show
                headerButtons={({
                    deleteButtonProps,
                    editButtonProps,
                    listButtonProps,
                    refreshButtonProps,
                }) => {
                    return (
                        <>
                            {/* custom components */}
                            {listButtonProps && (
                                <ListButton
                                    {...listButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {editButtonProps && (
                                <EditButton
                                    {...editButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {deleteButtonProps && (
                                <DeleteButton
                                    {...deleteButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            <RefreshButton
                                {...refreshButtonProps}
                                meta={{ foo: "bar" }}
                            />
                        </>
                    );
                }}
            >
                {/* ... */}
            </Show>
        );
    };
    

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4303 0c569f42b4e Thanks @alicanerdurmaz! - feat: added default button props into the renderer functions headerButtons and footerButtons in CRUD components.
    Now, customization of the header and footer buttons can be achieved without losing the default functionality.

    import {
        DeleteButton,
        EditButton,
        ListButton,
        RefreshButton,
        Show,
    } from "@refinedev/antd";
    
    const PostShow = () => {
        return (
            <Show
                headerButtons={({
                    deleteButtonProps,
                    editButtonProps,
                    listButtonProps,
                    refreshButtonProps,
                }) => {
                    return (
                        <>
                            {/* custom components */}
                            {listButtonProps && (
                                <ListButton
                                    {...listButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {editButtonProps && (
                                <EditButton
                                    {...editButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            {deleteButtonProps && (
                                <DeleteButton
                                    {...deleteButtonProps}
                                    meta={{ foo: "bar" }}
                                />
                            )}
                            <RefreshButton
                                {...refreshButtonProps}
                                meta={{ foo: "bar" }}
                            />
                        </>
                    );
                }}
            >
                {/* ... */}
            </Show>
        );
    };
    
  • #4306 e6eb4dea627 Thanks @yildirayunlu! - feat: syncWithLocation.syncId default to true for useDrawerForm and useModalForm.

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Patch Changes

refine - @refinedev/[email protected]

Published by refine-bot over 1 year ago

Minor Changes

  • #4291 dc62abc890f Thanks @salihozdemir! - feat: added a new prop that sticky to RefineThemedLayoutV2HeaderProps type

    fix: deprecated the isStick prop of RefineThemedLayoutV2HeaderProps type

    To provide backwards compatibility, isSticky is still supported, but it is deprecated and will be removed in the next major version.