@llmnative/react 1.5.1 → 1.6.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.
@@ -71,6 +71,9 @@ export interface I18nDict {
71
71
  removeFile: string;
72
72
  uploadAnother: string;
73
73
  dropToParse: string;
74
+ insertFromUrl: string;
75
+ urlPlaceholder: string;
76
+ invalidUrl: string;
74
77
  };
75
78
  notifications: {
76
79
  title: string;
@@ -67,7 +67,14 @@ export interface UploadImageProps extends UploadDocumentProps {
67
67
  feedback?: string;
68
68
  /** Pixel widths for responsive variants. Set with uploadPath to generate <name>_400w.jpg etc. and populate srcset/sizes in the Form record. */
69
69
  srcsetWidths?: number[];
70
+ /**
71
+ * Show a small link icon on the drop zone that opens a dialog for pasting an image URL
72
+ * instead of uploading a file. The confirmed URL is stored as a file entry (progress 100,
73
+ * no upload) — same shape and preview as a real upload, indistinguishable to the Form field.
74
+ * Default `false`.
75
+ */
76
+ allowUrl?: boolean;
70
77
  }
71
78
  export declare const getFileUrl: (file: FileProps, suffix?: string) => string;
72
79
  export declare const UploadDocument: ({ name, onChange, label, required, editable, multiple, max, accept, uploadPath, storageKey, storageProvider, before, after, wrapperClassName, className, }: UploadDocumentProps) => React.JSX.Element;
73
- export declare const UploadImage: ({ name, onChange, label, feedback, editable, multiple, accept, required, max, previewHeight, previewWidth, uploadPath, srcsetWidths, storageKey, storageProvider, before, after, wrapperClassName, className, }: UploadImageProps) => React.JSX.Element;
80
+ export declare const UploadImage: ({ name, onChange, label, feedback, editable, multiple, accept, required, max, previewHeight, previewWidth, uploadPath, srcsetWidths, storageKey, storageProvider, allowUrl, before, after, wrapperClassName, className, }: UploadImageProps) => React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llmnative/react",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "LLM-native React framework for deterministic UI generation. Data-driven by default, schema-driven optional. Ultra-low token consumption — built for AI agents, not just humans.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",