@premieroctet/next-admin
6.1.6
Patch Changes
- 56ea03b (opens in a new tab): feat: add depth selection for actions (#443 (opens in a new tab))
- 81b2e54 (opens in a new tab): Fix relation one-to-many - nullable relation
- 3225788 (opens in a new tab): Fix image (get async)
6.1.5
Patch Changes
- 6077955 (opens in a new tab): fix: default boolean display (#466 (opens in a new tab))
- c25f61c (opens in a new tab): fix: crash on undefined relationship length (#465 (opens in a new tab))
6.1.4
Patch Changes
- 11dff98 (opens in a new tab): Fix in/notin operators in advanced filters
6.1.3
Patch Changes
- 62436a5 (opens in a new tab): fix: pass locale to page router props (#452 (opens in a new tab))
6.1.2
Patch Changes
- 017a2e0 (opens in a new tab): Add refresh on action perform (list and form)
- 89b38df (opens in a new tab): add refresh on dialog action
6.1.1
Patch Changes
- 003805d (opens in a new tab): fix: correctly display path in advanced search
- 84ae5d6 (opens in a new tab): improve dialog UI
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 onactions
itemsaction
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
- 0ccbbab (opens in a new tab): Add align on RichText Editor
- a338dda (opens in a new tab): Add conditional action through
canExecute
function - 68700e6 (opens in a new tab): Fix form action message
6.0.1
Patch Changes
- 497ab87 (opens in a new tab): Add translation for success/error messages in form
- f5347cf (opens in a new tab): Fix dialog action in form
- f5347cf (opens in a new tab): Add icons on action dropdown
- 32f5562 (opens in a new tab): Fix user pictures in menu
6.0.0
Major Changes
- db30b5c (opens in a new tab): feat: use exports field (#379 (opens in a new tab))
Minor Changes
- cdebaac (opens in a new tab): feat: add client actions (#401 (opens in a new tab))
5.5.0
Minor Changes
- 0ad77be (opens in a new tab): feat: add advanced search (#326 (opens in a new tab))
5.4.2
Patch Changes
- 8c9405f (opens in a new tab): fix crash when edit object is not defined in options.model
5.4.1
Patch Changes
- c868ce7 (opens in a new tab): fix: set hashed password optional
5.4.0
Minor Changes
- 0c80933 (opens in a new tab): add ability to define custom fields in edit
5.3.1
Patch Changes
- a554eaf (opens in a new tab): default resource names to title before the resource in lowercase
5.3.0
Minor Changes
- 7dda967 (opens in a new tab): feat: add hooks to model edition (#386 (opens in a new tab))
5.2.0
Minor Changes
- 2bf5933 (opens in a new tab): eat: allow controlling the visibility of an edit field (#372 (opens in a new tab))
- d16560a (opens in a new tab): fix: fix one-to-one display for one side (#393 (opens in a new tab))
- b013f25 (opens in a new tab): add support to arrays of enums
- 5fb2889 (opens in a new tab): feat: add search by relation (#385 (opens in a new tab))
- e161e99 (opens in a new tab): chore: upgrade to headlessui v2 (#396 (opens in a new tab))
- b013f25 (opens in a new tab): feat: add support for scalar array (#322 (opens in a new tab))
Patch Changes
- 2fa281d (opens in a new tab): feat: display actions in table rows (#387 (opens in a new tab))
5.1.0
Minor Changes
- 9f5affb (opens in a new tab): 1. Avoid importing Head in app router project 2. Allow to change styles of sidebar group title
5.0.0
Major Changes
-
a005fdf (opens in a new tab): ## Major Changes
-
Breaking Change:
- New implementation of
NextAdmin
. Usage ofAPI route
instead ofserver actions
. - Configuration of
page.tsx
androute.ts
files in theapp/admin/[[...nextadmin]]
andapp/api/[[...nextadmin]]
folders respectively. createHandler
function now available inappHandler
andpageHandler
modules to configure the API route.getNextAdminProps
function now available inappRouter
andpageRouter
modules to configure the page route.
- New implementation of
-
Patch Changes
- f120d10 (opens in a new tab): Add
next-themes
to handle color scheme - 119a053 (opens in a new tab): Redirect useEffect
- 5b295bb (opens in a new tab): add dist
- 12de962 (opens in a new tab): Change logout system (Request or server action)
- 170a48b (opens in a new tab): Fix images CORS issues
- f3636ad (opens in a new tab): Small fixes (select, dark mode, dashboard, layout, doc)
- 60afe2f (opens in a new tab): Add history on redirect
Save
- 0221476 (opens in a new tab): Fix date input and add time-second format
- 4e0e774 (opens in a new tab): Add
isDirty
for form to submit only fields touched - ed78f46 (opens in a new tab): Dependency
next-themes
- b5322db (opens in a new tab): add URL redirect support for logout
- 818f1e4 (opens in a new tab): Merge main branch
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
- 170a48b (opens in a new tab): Fix images CORS issues
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
- 60afe2f (opens in a new tab): Add history on redirect
Save
5.0.0-rc.5
Patch Changes
- Dependency
next-themes
5.0.0-rc.4
Patch Changes
- f120d10 (opens in a new tab): Add
next-themes
to handle color scheme
5.0.0-rc.3
Patch Changes
- Merge main branch
4.4.5
Patch Changes
-
- e52ed18 (opens in a new tab): Don't prefetch export Link in header
- 8512b5e (opens in a new tab): Restore Buffer for
upload
function, add informations as second parameter - 6da22fc (opens in a new tab): Add loader on select
4.4.4
Patch Changes
- 192c4e8 (opens in a new tab): Reponsive breadcrumb and actions
4.4.3
Patch Changes
- 46683c4 (opens in a new tab): Fix selection in form for Safari browser (#355 (opens in a new tab))
- e709378 (opens in a new tab): Fix padding form
4.4.2
Patch Changes
- c45a87d (opens in a new tab): Add resizable button and scroll richtext (#348 (opens in a new tab))
- b33de41 (opens in a new tab): Set null value instead of empty string (#345 (opens in a new tab))
- c5180af (opens in a new tab): Minify html for richtext and support div (#347 (opens in a new tab))
- e1c455f (opens in a new tab): Modify to be undeleteable from the list if you do not have permission to delete
- 9b194f6 (opens in a new tab): Fix disabled fields when default value (#340 (opens in a new tab))
4.4.1
Patch Changes
- e79b338 (opens in a new tab): Add row context to formatter function
- 4d5b7f8 (opens in a new tab): Fix selector fields for enum and relationships
- 9d778ae (opens in a new tab): Disable creation button on list based on permission
- 9a139fb (opens in a new tab): Possibility to translate model names and field names
- 7ce8ebf (opens in a new tab): Fix boolean fields submission
4.4.0
Minor Changes
- af271ed (opens in a new tab): feat: handle explicit many-to-many and sorting (#261 (opens in a new tab))
Patch Changes
- 4d90eb5 (opens in a new tab): Fix search on all scalar list
4.3.0
Minor Changes
- 7ebf263 (opens in a new tab): minor typo fix
Patch Changes
- 3dc9fd2 (opens in a new tab): Add possibility to set an export url for data (#265 (opens in a new tab))
- 3dc9fd2 (opens in a new tab): Add code snippets in doc
- 324e99b (opens in a new tab): feat: update preset to apply on body feat: add form header to add new resource from edit form
4.2.4
Patch Changes
- b202581 (opens in a new tab): Fill package information
- 2751e7d (opens in a new tab): Remove html warning (#307 (opens in a new tab))
4.2.3
Patch Changes
- 484d087 (opens in a new tab): Upgrade Prisma to 5.13.0
4.2.2
Patch Changes
- 6cd3362 (opens in a new tab): Add slug inside breadcrumb (#263 (opens in a new tab))
4.2.1
Patch Changes
- d6e88ea (opens in a new tab): Remove querystring library (#273 (opens in a new tab))
4.2.0
Minor Changes
- 167517b (opens in a new tab): Add preconfigured prisma filters on list page
- f5afd73 (opens in a new tab): feat: add field selection for relationship sort (#258 (opens in a new tab))
- 58a2727 (opens in a new tab): Change file handler function parameter type to File (more informations)
- 3049a83 (opens in a new tab): Add possibly to apply required HTML validation on fields (#257 (opens in a new tab))
- 50ed9a0 (opens in a new tab): feat: add deletion message customization (#254 (opens in a new tab))
Patch Changes
- 4fe6dac (opens in a new tab): Fix no fields options error (#268 (opens in a new tab))
- 8093d5f (opens in a new tab): Fix outline for checkbox and sr-only span position
4.1.0
Minor Changes
- 31685cb (opens in a new tab): feat: add possibility to disable fields
- ec6bf9f (opens in a new tab): Add display for relation fields
Patch Changes
- 8621043 (opens in a new tab): Allow permissions to model ('create', 'edit', 'delete') (#222 (opens in a new tab))
- 33dd15b (opens in a new tab): fix: sort many-to-one relationship in list (#248 (opens in a new tab))
- 41cdf6e (opens in a new tab): fix: formatter on boolean fields (#249 (opens in a new tab))
- 07a076e (opens in a new tab): - Remove dynamic metadata from appRouter
suppressHydrationWarning
on html tag in example- Remove manual submission on form
- Add empty string as default value for RichTextEditor
- afe70ec (opens in a new tab): - Move alert message
- Fix reponsive style
- 0a2f3e8 (opens in a new tab): Fix dropdown - filter with non-selected value only (#236 (opens in a new tab))
4.0.0
Major Changes
-
cd2accd (opens in a new tab): Create an internal preset tailwind
Breaking change
You cannot import the
styles.css
file from the library. You now need to configure Tailwind in your app. See docs (opens in a new tab)
Minor Changes
- eae1f85 (opens in a new tab): feat: add default sort option
Patch Changes
- cd2accd (opens in a new tab): Add dark mode system
- f67fa2f (opens in a new tab): fix: throw error for missing params
- 6f87ce8 (opens in a new tab): fix: handle plain strings for rich text html
3.6.1
Patch Changes
- 664160d (opens in a new tab): fix: richtext html field render
- c899971 (opens in a new tab): feat: add default label formatting
- 2572ab9 (opens in a new tab): chore: upgrade prisma-json-schema-generator version fix: selector field for Enums
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
- Add new
Patch Changes
- b784778 (opens in a new tab): fix: slugify all resources in urls
- c050494 (opens in a new tab): feat: add loading state on form
- 02518f0 (opens in a new tab): fix: label margin with input
3.5.3
Patch Changes
- 2735171 (opens in a new tab): fix: fix checkboxes appearance + firefox issue
3.5.2
Patch Changes
- 8ee0209 (opens in a new tab): fix: custom pages in menu
3.5.1
Patch Changes
- 15482d4 (opens in a new tab): fix: ui fixes on Menu component
3.5.0
Minor Changes
- c09c70c (opens in a new tab): feat: revamp design
- 3fa5cd7 (opens in a new tab): feat: add tooltip, helper text and notice
- 9aec4d0 (opens in a new tab): feat: configure global title
- 03bdc6d (opens in a new tab): feat: add icons for resources in sidebar and titles
- 2325ddd (opens in a new tab): feat: add option for external links in sidebar
- 289539d (opens in a new tab): feat: update checkbox ui, fix rich text editor
- e8b0225 (opens in a new tab): feat: add user informations & logout
- df2efce (opens in a new tab): feat: add groups configuration in sidebar
- f6ba512 (opens in a new tab): feat: redirect to first resource if dashboard doesnt exist
3.4.0
Minor Changes
- 150787b (opens in a new tab): feat: ui revamp, add theming capability
3.3.1
Patch Changes
- 4c34134 (opens in a new tab): feat: migrate to nextjs-toploader, compatible with app dir
- 5d40824 (opens in a new tab): feat: add clipboard for table cells
- 5ca2b7b (opens in a new tab): feat: add search for enum fields
- cbc3797 (opens in a new tab): fix: fix combobox search on nullable values
3.3.0
Minor Changes
- e16aa42 (opens in a new tab): feat: add custom error message for upload handler (#144 (opens in a new tab)) feat: add custom error message for form submission
Patch Changes
- 104aaba (opens in a new tab): fix: image display in file input field (#154 (opens in a new tab))
3.2.7
Patch Changes
- 55a6506 (opens in a new tab): Fix: allow sublevel on items in select
- 15d2e83 (opens in a new tab): Turn utils function file into non server component
- b4b8a92 (opens in a new tab): Remove query-builder and unused styles
- 4ef126f (opens in a new tab): Fix: Order by alias name in list
3.2.6
Patch Changes
- 382ac9a (opens in a new tab): Richtext Editor : Add
slate
dependencies as optional = To use richtext editor, install the corresponding version ofslate
,slate-history
andslate-react
- bb41a1d (opens in a new tab): Change button in form, add save and continue button
- c01ca4d (opens in a new tab): Fix text area input field
- 5098926 (opens in a new tab): Add a warning message if the form is modified and not saved
- 89d1a85 (opens in a new tab): Custom style for form
- 2253dbd (opens in a new tab): Apply search on formatted field in form
- c3b875e (opens in a new tab): Add
@monaco-editor
as optionalDependencies - To use the JSON editor, install the corresponding version of@monaco-editor/react
3.2.5
Patch Changes
- 6697dd2 (opens in a new tab): Add deep access for relationship formatter
3.2.4
Patch Changes
- 8434ec4 (opens in a new tab): BigInt support
3.2.3
Patch Changes
- b26d0ae (opens in a new tab): Support Decimal and Float Prisma
- e3ee58a (opens in a new tab): Add one level of access model in optionFormatter option
3.2.2
Patch Changes
- 08d8a1e (opens in a new tab): Add redirection on relationship fields
- 961996d (opens in a new tab): Fix optional relationship on creation
- 84dc855 (opens in a new tab): Possibility hide even id column in form
- 6285e36 (opens in a new tab): Possibility to not display search field on list if search option is an empty array. In case search options are not defined, all scalar fields are concerned
- a1aa499 (opens in a new tab): Add aliases options to rename columns name and form label
3.2.1
Patch Changes
- 8af3cc9 (opens in a new tab): Fix parse error on relationship
3.2.0
Minor Changes
- ce1c30c (opens in a new tab): Only allow the relationship field in the configuration, not the field that carries the relationship at all - this allows several fields to be used in the Prisma @relation options
- 2da9588 (opens in a new tab): 🌐 add i18n support
Patch Changes
- 8fcfa08 (opens in a new tab): Add limit of 20 items on select for relationship
- 8fcfa08 (opens in a new tab): Fix search in enumeration selector
- 7204981 (opens in a new tab): Fix search for relationship fields and enum fields
- c962865 (opens in a new tab): Order fields in form according to display options order
- e1ee443 (opens in a new tab): Fix insensitive search for MySQL providers
- ce1c30c (opens in a new tab): Form submitted with error will keep the state with user modification
3.1.2
Patch Changes
- 318748b (opens in a new tab): Fix form issue: relationship field are not displayed in form
- 318748b (opens in a new tab): Display all properties even if editOptions are not empty
3.1.1
Patch Changes
- 3c67158 (opens in a new tab): Fix optionFormatter function
3.1.0
Minor Changes
-
cbf6925 (opens in a new tab): 📄 add option for custom pages
In the
options
, addpages: { "/custom": { title: "Custom page", component: CustomPage, }, },
In the above example, navigating to
<basePath>/custom
will render theCustomPage
component, in addition with the persistent Next Admin components (header, sidebar, message). -
a261bc5 (opens in a new tab): # New feature
✏️ add ability to render a custom input
-
4ddf12f (opens in a new tab): 🛠 add ability to create custom actions on resources
-
244820a (opens in a new tab): use the
@id
field of a model as the id field instead of defaulting to "id" -
2d3f8ac (opens in a new tab): # New feature
✨ Override model name in UI
-
28053ff (opens in a new tab): add option
optionFormatter
to format select option of a related model at field option level -
603b499 (opens in a new tab): 🛠 add support for JSON fields
-
af7f123 (opens in a new tab): 🪄 allow sort by relationship count
Patch Changes
- 11c3b5a (opens in a new tab): feat: allow slug version of model in url
3.0.1
Patch Changes
- 84ea409 (opens in a new tab): chore: update docs
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
id
column in list if it doesn't havedisplay: 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
andsearch
properties: fields are now entered as an array
- Hide
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
- 02a7fac (opens in a new tab): fix: validation crash and improve typing
- 52d5838 (opens in a new tab): feat: improve ui and demo
1.4.0
Minor Changes
- 1fe2774 (opens in a new tab): feat: display currently selected menu
- dd0aa0d (opens in a new tab): feat: loading indicator on client side navigation
- 96dd99b (opens in a new tab): Add e2e tests
- c6459e8 (opens in a new tab): feat: add Prisma 5 compatibility
- 06c44a7 (opens in a new tab): feat: dynamic base path
- 088bfc9 (opens in a new tab): feat: data server validation
1.3.8
Patch Changes
- 649b547 (opens in a new tab): feat: field formatter option
- 1c3f590 (opens in a new tab): feat: hide models that are not defined in admin options
- bb27872 (opens in a new tab): refactor: ressource -> resource
1.3.7
Patch Changes
-
7bcf33c (opens in a new tab): change package properties
Change type: fix
1.3.6
Patch Changes
- 7bcf33c (opens in a new tab): change package properties
1.3.5
Patch Changes
- c7bbf42 (opens in a new tab): Support differents name case
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
- e752c5b (opens in a new tab): Fix multiple entry points and css bundling
1.0.0
Major Changes
- 6af8145 (opens in a new tab): Fist release of @premieroctet/next-admin package (unstable)