@ram_28/kf-ai-sdk 2.0.21 → 2.0.22
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.
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
SelectTrigger,
|
|
24
24
|
SelectValue,
|
|
25
25
|
} from "@/components/ui/select";
|
|
26
|
-
import { ReferenceSelect } from "@/components/
|
|
27
|
-
import { FileUpload } from "@/components/
|
|
28
|
-
import { ImageUpload } from "@/components/
|
|
29
|
-
import { FilePreview } from "@/components/
|
|
30
|
-
import { ImageThumbnail } from "@/components/
|
|
26
|
+
import { ReferenceSelect } from "@/components/system/reference-select";
|
|
27
|
+
import { FileUpload } from "@/components/system/file-upload";
|
|
28
|
+
import { ImageUpload } from "@/components/system/image-upload";
|
|
29
|
+
import { FilePreview } from "@/components/system/file-preview";
|
|
30
|
+
import { ImageThumbnail } from "@/components/system/image-thumbnail";
|
|
31
31
|
|
|
32
32
|
export default function ComplexFieldsForm({ recordId }: { recordId?: string }) {
|
|
33
33
|
const fieldTest = useMemo(() => new AdminFieldTest(), []);
|
|
@@ -204,8 +204,8 @@ export default function ComplexFieldsForm({ recordId }: { recordId?: string }) {
|
|
|
204
204
|
For tables and detail pages, use `<FilePreview>` and `<ImageThumbnail>`:
|
|
205
205
|
|
|
206
206
|
```tsx
|
|
207
|
-
import { FilePreview } from "@/components/
|
|
208
|
-
import { ImageThumbnail } from "@/components/
|
|
207
|
+
import { FilePreview } from "@/components/system/file-preview";
|
|
208
|
+
import { ImageThumbnail } from "@/components/system/image-thumbnail";
|
|
209
209
|
|
|
210
210
|
// In a table row or detail page
|
|
211
211
|
function RecordRow({ record }: { record: ItemType<...> }) {
|
package/docs/fields/README.md
CHANGED
|
@@ -126,13 +126,13 @@ const { data: options = [] } = useQuery({
|
|
|
126
126
|
|
|
127
127
|
## UI Components
|
|
128
128
|
|
|
129
|
-
| Component | Field | Mode | Key Props |
|
|
130
|
-
| ------------------- | --------- | --------- | ------------------------------------------------- |
|
|
131
|
-
| `<ReferenceSelect>` | Reference | Edit | `bdoField`, `instanceId`, `value`, `onChange` |
|
|
132
|
-
| `<FileUpload>` | File | Edit | `field`, `value`, `boId`, `instanceId`, `fieldId` |
|
|
133
|
-
| `<ImageUpload>` | Image | Edit | `field`, `value`, `boId`, `instanceId`, `fieldId` |
|
|
134
|
-
| `<FilePreview>` | File | Read-only | `boId`, `instanceId`, `fieldId`, `value` |
|
|
135
|
-
| `<ImageThumbnail>` | Image | Read-only | `boId`, `instanceId`, `fieldId`, `value` |
|
|
129
|
+
| Component | Field | Mode | Import Path | Key Props |
|
|
130
|
+
| ------------------- | --------- | --------- | -------------------------------------- | ------------------------------------------------- |
|
|
131
|
+
| `<ReferenceSelect>` | Reference | Edit | `@/components/system/reference-select` | `bdoField`, `instanceId`, `value`, `onChange` |
|
|
132
|
+
| `<FileUpload>` | File | Edit | `@/components/system/file-upload` | `field`, `value`, `boId`, `instanceId`, `fieldId` |
|
|
133
|
+
| `<ImageUpload>` | Image | Edit | `@/components/system/image-upload` | `field`, `value`, `boId`, `instanceId`, `fieldId` |
|
|
134
|
+
| `<FilePreview>` | File | Read-only | `@/components/system/file-preview` | `boId`, `instanceId`, `fieldId`, `value` |
|
|
135
|
+
| `<ImageThumbnail>` | Image | Read-only | `@/components/system/image-thumbnail` | `boId`, `instanceId`, `fieldId`, `value` |
|
|
136
136
|
|
|
137
137
|
## Further Reading
|
|
138
138
|
|