pukaad-ui-lib 1.235.0 → 1.236.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.235.0",
4
+ "version": "1.236.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -7,7 +7,7 @@ interface User {
7
7
  }
8
8
  interface CardUserBlogProps {
9
9
  id: string;
10
- ispinned?: boolean;
10
+ is_pinned?: boolean;
11
11
  user: User;
12
12
  view_count: number;
13
13
  create_at: string;
@@ -99,11 +99,11 @@ const props = defineProps({
99
99
  });
100
100
  const router = useRouter();
101
101
  const emit = defineEmits(["blog-updated"]);
102
- const isPinned = ref(props.item.ispinned);
102
+ const isPinned = ref(props.item.is_pinned);
103
103
  const isEditDrawerOpen = ref(false);
104
104
  const editBlogItem = ref(null);
105
105
  watch(
106
- () => props.item.ispinned,
106
+ () => props.item.is_pinned,
107
107
  (val) => {
108
108
  isPinned.value = !!val;
109
109
  }
@@ -136,7 +136,8 @@ const onBlogEdit = async () => {
136
136
  try {
137
137
  const res = await api(`/blogs/${props.item.id}`, { method: "GET" });
138
138
  const blog = res.data;
139
- const content = blog.content?.ops ?? (Array.isArray(blog.content) ? blog.content : []);
139
+ const rawContent = blog.content;
140
+ const content = rawContent?.ops ? { ops: rawContent.ops } : Array.isArray(rawContent) ? { ops: rawContent } : { ops: [] };
140
141
  editBlogItem.value = {
141
142
  id: blog.id,
142
143
  title: blog.title,
@@ -7,7 +7,7 @@ interface User {
7
7
  }
8
8
  interface CardUserBlogProps {
9
9
  id: string;
10
- ispinned?: boolean;
10
+ is_pinned?: boolean;
11
11
  user: User;
12
12
  view_count: number;
13
13
  create_at: string;
@@ -1,7 +1,8 @@
1
1
  export interface DrawerPostBlogItem {
2
2
  id?: string;
3
3
  title: string;
4
- content: object[];
4
+ /** Quill Delta — either { ops: [...] } or plain ops array */
5
+ content: any;
5
6
  tags: any[];
6
7
  disableComment: boolean;
7
8
  coverImage: {
@@ -1,7 +1,8 @@
1
1
  export interface DrawerPostBlogItem {
2
2
  id?: string;
3
3
  title: string;
4
- content: object[];
4
+ /** Quill Delta — either { ops: [...] } or plain ops array */
5
+ content: any;
5
6
  tags: any[];
6
7
  disableComment: boolean;
7
8
  coverImage: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.235.0",
3
+ "version": "1.236.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",