@hedhog/blog 0.0.8 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ import { IconEdit, IconPlus, IconTrash } from "@tabler/icons-react";
8
8
  import { useState } from "react";
9
9
  import { useTranslation } from "react-i18next";
10
10
  import AuthorCreatePanel from "./components/author-create-panel";
11
- import { AuthorUpdatePanel } from "./components/author-update-panel";
11
+ import AuthorUpdatePanel from "./components/author-update-panel";
12
12
 
13
13
  export default function Page() {
14
14
  const [selectedItems, setSelectedItems] = useState<Author[]>([]);
@@ -1,9 +1,6 @@
1
- import { Overlay } from "@/components/custom/overlay";
2
1
  import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
3
- import { TabPanel } from "@/components/panels/tab-panel";
4
2
  import { EnumFieldType } from "@/enums/EnumFieldType";
5
- import { useAuthorGet, useAuthorUpdate } from "@/features/blog/author";
6
- import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
3
+ import { useAuthorCreate } from "@/features/blog/author";
7
4
  import { Author } from "@/types/models";
8
5
  import { forwardRef, useImperativeHandle, useRef } from "react";
9
6
  import { useTranslation } from "react-i18next";
@@ -1,8 +1,8 @@
1
- import FormPanel, { FormPanelRef } from "@/components/custom/form-panel";
1
+ import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
2
2
  import { Overlay } from "@/components/custom/overlay";
3
- import { TabPanel } from "@/components/custom/tab-panel";
3
+ import { TabPanel } from "@/components/panels/tab-panel";
4
4
  import { EnumFieldType } from "@/enums/EnumFieldType";
5
- import { useAuthorGet, useAuthorUpdate } from "@/features/author";
5
+ import { useAuthorGet, useAuthorUpdate } from "@/features/blog/author";
6
6
  import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
7
7
  import { Author } from "@/types/models";
8
8
  import { forwardRef, useImperativeHandle, useRef } from "react";
@@ -8,7 +8,7 @@ import { IconEdit, IconPlus, IconTrash } from "@tabler/icons-react";
8
8
  import { useState } from "react";
9
9
  import { useTranslation } from "react-i18next";
10
10
  import CategoryCreatePanel from "./components/category-create-panel";
11
- import { CategoryUpdatePanel } from "./components/category-update-panel";
11
+ import CategoryUpdatePanel from "./components/category-update-panel";
12
12
 
13
13
  export default function Page() {
14
14
  const [selectedItems, setSelectedItems] = useState<Category[]>([]);
@@ -1,12 +1,9 @@
1
- import { Overlay } from "@/components/custom/overlay";
2
1
  import FormPanel, {
3
2
  FormPanelRef,
4
3
  getFieldsLocale,
5
4
  } from "@/components/panels/form-panel";
6
- import { TabPanel } from "@/components/panels/tab-panel";
7
5
  import { EnumFieldType } from "@/enums/EnumFieldType";
8
- import { useCategoryGet, useCategoryUpdate } from "@/features/blog/category";
9
- import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
6
+ import { useCategoryCreate } from "@/features/blog/category";
10
7
  import { Category } from "@/types/models";
11
8
  import { forwardRef, useImperativeHandle, useRef } from "react";
12
9
  import { useTranslation } from "react-i18next";
@@ -1,11 +1,11 @@
1
1
  import FormPanel, {
2
2
  FormPanelRef,
3
3
  getFieldsLocale,
4
- } from "@/components/custom/form-panel";
4
+ } from "@/components/panels/form-panel";
5
5
  import { Overlay } from "@/components/custom/overlay";
6
- import { TabPanel } from "@/components/custom/tab-panel";
6
+ import { TabPanel } from "@/components/panels/tab-panel";
7
7
  import { EnumFieldType } from "@/enums/EnumFieldType";
8
- import { useCategoryGet, useCategoryUpdate } from "@/features/category";
8
+ import { useCategoryGet, useCategoryUpdate } from "@/features/blog/category";
9
9
  import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
10
10
  import { Category } from "@/types/models";
11
11
  import { forwardRef, useImperativeHandle, useRef } from "react";
@@ -1,9 +1,6 @@
1
- import { Overlay } from "@/components/custom/overlay";
2
1
  import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
3
- import { TabPanel } from "@/components/panels/tab-panel";
4
2
  import { EnumFieldType } from "@/enums/EnumFieldType";
5
- import { usePostGet, usePostUpdate } from "@/features/blog/post";
6
- import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
3
+ import { usePostCreate } from "@/features/blog/post";
7
4
  import { Post } from "@/types/models";
8
5
  import { forwardRef, useImperativeHandle, useRef } from "react";
9
6
  import { useTranslation } from "react-i18next";
@@ -8,7 +8,7 @@ import { IconEdit, IconPlus, IconTrash } from "@tabler/icons-react";
8
8
  import { useState } from "react";
9
9
  import { useTranslation } from "react-i18next";
10
10
  import PostCreatePanel from "./components/post-create-panel";
11
- import { PostUpdatePanel } from "./components/post-update-panel";
11
+ import PostUpdatePanel from "./components/post-update-panel";
12
12
 
13
13
  export default function Page() {
14
14
  const [selectedItems, setSelectedItems] = useState<Post[]>([]);
@@ -1,8 +1,8 @@
1
- import FormPanel, { FormPanelRef } from "@/components/custom/form-panel";
1
+ import FormPanel, { FormPanelRef } from "@/components/panels/form-panel";
2
2
  import { Overlay } from "@/components/custom/overlay";
3
- import { TabPanel } from "@/components/custom/tab-panel";
3
+ import { TabPanel } from "@/components/panels/tab-panel";
4
4
  import { EnumFieldType } from "@/enums/EnumFieldType";
5
- import { usePostGet, usePostUpdate } from "@/features/post";
5
+ import { usePostGet, usePostUpdate } from "@/features/blog/post";
6
6
  import useEffectAfterFirstUpdate from "@/hooks/use-effect-after-first-update";
7
7
  import { Post } from "@/types/models";
8
8
  import { forwardRef, useImperativeHandle, useRef } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/blog",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {