plugin-build-ui-template 1.0.1 → 1.0.3

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "displayName.zh-CN": "构建UI模板",
6
6
  "description": "Generate standard UI Block and Popup templates using AI, saving directly to plugin-ui-templates.",
7
7
  "description.vi-VN": "Tạo block và popup template bằng AI, lưu trực tiếp vào plugin-ui-templates.",
8
- "version": "1.0.1",
8
+ "version": "1.0.3",
9
9
  "license": "Apache-2.0",
10
10
  "keywords": [
11
11
  "ai",
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import { useAPIClient } from '@nocobase/client';
2
+ import { useApp } from '@nocobase/client-v2';
3
3
  import {
4
4
  Card,
5
5
  Space,
@@ -31,7 +31,7 @@ import {
31
31
  const { Title, Paragraph, Text } = Typography;
32
32
 
33
33
  export const BuildUITemplateManager: React.FC = () => {
34
- const api = useAPIClient();
34
+ const api = useApp().apiClient;
35
35
  const [spaces, setSpaces] = useState<any[]>([]);
36
36
  const [collections, setCollections] = useState<any[]>([]);
37
37
  const [services, setServices] = useState<any[]>([]);