Changelog
Versions

@premieroctet/next-admin

6.1.6

Patch Changes

6.1.5

Patch Changes

6.1.4

Patch Changes

6.1.3

Patch Changes

6.1.2

Patch Changes

6.1.1

Patch Changes

6.1.0

Minor Changes

  • 68700e6 (opens in a new tab): - Allow custom actions messages
    • Allow custom dialog actions messages
    • type prop is now required on actions items
    • action function now can return a Message object to display a message after the action is done
    • Error thrown by action function are now caught and displayed in a message
    • onClose prop can now receive a Message object to display a message after the dialog is closed

Patch Changes

6.0.1

Patch Changes

6.0.0

Major Changes

Minor Changes

5.5.0

Minor Changes

5.4.2

Patch Changes

5.4.1

Patch Changes

5.4.0

Minor Changes

5.3.1

Patch Changes

5.3.0

Minor Changes

5.2.0

Minor Changes

Patch Changes

5.1.0

Minor Changes

5.0.0

Major Changes

  • a005fdf (opens in a new tab): ## Major Changes

    • Breaking Change:

      • New implementation of NextAdmin. Usage of API route instead of server actions.
      • Configuration of page.tsx and route.ts files in the app/admin/[[...nextadmin]] and app/api/[[...nextadmin]] folders respectively.
      • createHandler function now available in appHandler and pageHandler modules to configure the API route.
      • getNextAdminProps function now available in appRouter and pageRouter modules to configure the page route.

Patch Changes

5.0.0-rc.14

Patch Changes

  • add dist

5.0.0-rc.13

Patch Changes

  • add URL redirect support for logout

5.0.0-rc.12

Patch Changes

5.0.0-rc.11

Patch Changes

  • Fix date input and add time-second format

5.0.0-rc.10

Patch Changes

  • Add isDirty for form to submit only fields touched

5.0.0-rc.9

Patch Changes

  • Change logout system (Request or server action)

5.0.0-rc.8

Patch Changes

  • Small fixes (select, dark mode, dashboard, layout, doc)

5.0.0-rc.7

Patch Changes

  • Redirect useEffect

5.0.0-rc.6

Patch Changes

5.0.0-rc.5

Patch Changes

  • Dependency next-themes

5.0.0-rc.4

Patch Changes

5.0.0-rc.3

Patch Changes

  • Merge main branch

4.4.5

Patch Changes

4.4.4

Patch Changes

4.4.3

Patch Changes

4.4.2

Patch Changes

4.4.1

Patch Changes

4.4.0

Minor Changes

Patch Changes

4.3.0

Minor Changes

Patch Changes

4.2.4

Patch Changes

4.2.3

Patch Changes

4.2.2

Patch Changes

4.2.1

Patch Changes

4.2.0

Minor Changes

Patch Changes

4.1.0

Minor Changes

Patch Changes

4.0.0

Major Changes

Minor Changes

Patch Changes

3.6.1

Patch Changes

3.6.0

Minor Changes

  • ddf9c8f (opens in a new tab): - Remove search on formatted fields in selector
    • Add new searchPaginatedResourceAction option that is required for App Router to do research in Select fields other than enums

Patch Changes

3.5.3

Patch Changes

3.5.2

Patch Changes

3.5.1

Patch Changes

3.5.0

Minor Changes

3.4.0

Minor Changes

3.3.1

Patch Changes

3.3.0

Minor Changes

Patch Changes

3.2.7

Patch Changes

3.2.6

Patch Changes

3.2.5

Patch Changes

3.2.4

Patch Changes

3.2.3

Patch Changes

3.2.2

Patch Changes

3.2.1

Patch Changes

3.2.0

Minor Changes

Patch Changes

3.1.2

Patch Changes

3.1.1

Patch Changes

3.1.0

Minor Changes

Patch Changes

3.0.1

Patch Changes

3.0.0

Major Changes

  • 16aba39 (opens in a new tab): # New feature

    • App router is now supported. You can find an exemple of its usage in the example app.
    • New context object, currently passed only to the formatter function

    You can now use App Router like the following:

    // app/admin/[[...nextadmin]]/page.tsx
    import { NextAdmin } from "@premieroctet/next-admin";
    import { getPropsFromParams } from "@premieroctet/next-admin/dist/appRouter";
    import "@premieroctet/next-admin/dist/styles.css";
    import Dashboard from "../../../components/Dashboard";
    import { options } from "../../../options";
    import { prisma } from "../../../prisma";
    import schema from "../../../prisma/json-schema/json-schema.json"; // generated by prisma-json-schema-generator on yarn run prisma generate
    import "../../../styles.css";
    import { submitFormAction } from "../../../actions/nextadmin";
     
    export default async function AdminPage({
      params,
      searchParams,
    }: {
      params: { [key: string]: string[] };
      searchParams: { [key: string]: string | string[] | undefined } | undefined;
    }) {
      const props = await getPropsFromParams({
        params: params.nextadmin,
        searchParams,
        options,
        prisma,
        schema,
        action: submitFormAction,
      });
     
      return <NextAdmin {...props} dashboard={Dashboard} />;
    }

2.0.0

Major Changes

  • dbb5a3e (opens in a new tab): - Always fetch id property from items

    • Hide idcolumn in list if it doesn't have display: true options
    • Mutualize NextAdminOptions to reduce useless duplication of code
    • Add file upload input

    ⚠️ Breaking Changes

    To reduce the complexity and duplication of next-admin options, this PR contains major changes to the structure of the options.

    • Changed structure for display and search properties: fields are now entered as an array

Patch Changes

  • dbb5a3e (opens in a new tab): Add formatting system to relationship column
  • dbb5a3e (opens in a new tab): Add ability to choose format type for Date property between date-time and date in edit options Introduce handler object to handle custom logic for a property in edit mode Add ability to use input variant in edit mode Fix datetime-local input to store correct datetime

1.4.1

Patch Changes

1.4.0

Minor Changes

1.3.8

Patch Changes

1.3.7

Patch Changes

1.3.6

Patch Changes

1.3.5

Patch Changes

1.3.4

Patch Changes

  • Date input changes

1.3.3

Patch Changes

  • change list style, serialize date

1.3.2

Patch Changes

  • Patch

1.3.1

Patch Changes

  • Support id as string

1.3.0

Minor Changes

  • Relationships of model

1.2.0

Minor Changes

  • Fix prisma peer dependency

1.1.1

Patch Changes

  • Fix router compat

1.1.0

Minor Changes

1.0.0

Major Changes