@motor-cms/ui-media 1.0.1-alpha.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.
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Grid column metadata — auto-generated from OpenAPI spec.
3
+ * Do not edit manually. Run `npm run sync:api` to regenerate.
4
+ */
5
+
6
+ export const fileMeta = {
7
+ schemaName: 'FileResource',
8
+ fields: {
9
+ id: { type: 'integer', renderer: 'number', hideable: false },
10
+ client_id: { type: 'string' },
11
+ client: { type: 'ref', renderer: 'text', ref: 'ClientResource', labelKey: 'name' },
12
+ description: { type: 'string' },
13
+ author: { type: 'string' },
14
+ source: { type: 'string' },
15
+ is_global: { type: 'boolean', renderer: 'boolean' },
16
+ alt_text: { type: 'string' },
17
+ file: { type: 'unknown' },
18
+ categories: { type: 'ref[]', renderer: 'list', ref: 'CategoryResource', labelKey: 'name' },
19
+ exists: { type: 'unknown' },
20
+ is_excluded_from_search_index: { type: 'boolean', renderer: 'boolean' },
21
+ tags: { type: 'string' }
22
+ }
23
+ } as const
24
+
25
+ export const mediaMeta = {
26
+ schemaName: 'MediaResource',
27
+ fields: {
28
+ collection: { type: 'string' },
29
+ name: { type: 'string', sortable: true, hideable: false },
30
+ file_name: { type: 'string' },
31
+ size: { type: 'integer', renderer: 'number' },
32
+ size_human: { type: 'string' },
33
+ mime_type: { type: 'string' },
34
+ url: { type: 'string', renderer: 'link' },
35
+ local_url: { type: 'string', renderer: 'link' },
36
+ path: { type: 'string' },
37
+ uuid: { type: 'string' },
38
+ created_at: { type: 'string' },
39
+ conversions: { type: 'string' }
40
+ }
41
+ } as const
@@ -0,0 +1,16 @@
1
+ export interface MediaFile {
2
+ url?: string
3
+ file_name?: string
4
+ mime_type?: string
5
+ size_human?: string
6
+ created_at?: string
7
+ conversions?: Record<string, { url: string }> | Array<{ name: string, url: string }> | string
8
+ }
9
+
10
+ export interface FileResource {
11
+ id: number
12
+ description: string
13
+ file: MediaFile | null
14
+ categories?: { id: number, name: string }[] | null
15
+ [key: string]: unknown
16
+ }
@@ -0,0 +1 @@
1
+ export interface ImageRendererProps {}
package/nuxt.config.ts ADDED
@@ -0,0 +1 @@
1
+ export default defineNuxtConfig({})
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@motor-cms/ui-media",
3
+ "version": "1.0.1-alpha.0",
4
+ "type": "module",
5
+ "main": "./nuxt.config.ts",
6
+ "files": [
7
+ "app",
8
+ "server",
9
+ "public",
10
+ "nuxt.config.ts"
11
+ ],
12
+ "dependencies": {
13
+ "@vueuse/core": "^14.0.0",
14
+ "@motor-cms/ui-core": "1.0.1-alpha.0"
15
+ },
16
+ "peerDependencies": {
17
+ "nuxt": "^4.0.0",
18
+ "vue": "^3.5.0"
19
+ }
20
+ }