@wecode-team/we0-cms 1.1.31 → 1.1.32
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/README.md +18 -0
- package/dist/components/fields/AssetField.d.ts +1 -0
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/asset-utils.d.ts +6 -0
- package/dist/services/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2,6 +2,12 @@ export declare function isHttpUrl(v: string): boolean;
|
|
|
2
2
|
export declare function isProbablyImageUrl(v: string): boolean;
|
|
3
3
|
export declare function formatFileSize(bytes: number): string;
|
|
4
4
|
export declare function matchesAccept(file: Pick<File, "name" | "type">, accept?: string): boolean;
|
|
5
|
+
export type AssetKind = "auto" | "image" | "file";
|
|
6
|
+
export declare function resolveAssetPreviewMode(params: {
|
|
7
|
+
assetKind?: AssetKind;
|
|
8
|
+
accept?: string;
|
|
9
|
+
value?: string | null;
|
|
10
|
+
}): "image" | "file";
|
|
5
11
|
export declare function normalizeUploadResult(result: {
|
|
6
12
|
url: string;
|
|
7
13
|
}): string;
|
package/dist/services/index.d.ts
CHANGED