@antelopejs/dms-media 0.8.0 → 0.8.1-next.162.g5783c18

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 CHANGED
@@ -37,7 +37,7 @@ Point the module's links at the API's public URL, and allow the dashboard's orig
37
37
  ```ts fragment
38
38
  // antelope.config.ts
39
39
  "dms-media": {
40
- source: { type: "package", package: "@antelopejs/dms-media", version: "^0.7.0" },
40
+ source: { type: "package", package: "@antelopejs/dms-media", version: "^0.8.0" },
41
41
  config: {
42
42
  publicBaseUrl: "${@api.API_PUBLIC_BASE_URL}",
43
43
  },
@@ -1,7 +1,7 @@
1
1
  {
2
- "@antelopejs/mongodb": "1.8.1",
2
+ "@antelopejs/mongodb": "1.8.4",
3
3
  "@antelopejs/auth-jwt": "1.1.2",
4
- "@antelopejs/api": "1.7.4",
4
+ "@antelopejs/api": "1.7.5",
5
5
  "@antelopejs/file-storage-local": "0.2.1",
6
6
  "@antelopejs/nodemailer": "0.0.12"
7
7
  }
@@ -106,6 +106,7 @@ export function createMediaLibrary(options: MediaLibraryOptions) {
106
106
 
107
107
  return {
108
108
  mode: options.mode,
109
+ scopeFolderId: options.scopeFolderId,
109
110
  remaining: options.remaining,
110
111
  accept,
111
112
  acceptedTypesLabel: acceptedTypes,
@@ -12,6 +12,8 @@ const props = defineProps<{
12
12
  mode?: 'upload' | 'pick'
13
13
  /** Types the files must be, for a picker's field: a remembered folder that refuses them is not offered first. */
14
14
  accept?: string[]
15
+ /** The folder a picker is kept inside: only it and its subfolders are offered. */
16
+ scopeFolderId?: string
15
17
  }>()
16
18
  const emit = defineEmits<{ close: [string | null] }>()
17
19
  const { t } = useI18n()
@@ -19,11 +21,11 @@ const api = useMediaApi()
19
21
  const { presentError } = useApiErrorPresenter()
20
22
  const format = useMediaFormat()
21
23
  const nameDialog = useOverlay().create(NameDialog)
22
- const { tree, refresh: reload } = useLibraryTree()
24
+ const { tree, folders: libraryFolders, scopeFolder, refresh: reload } = useLibraryTree({ scopeFolderId: props.scopeFolderId })
23
25
  const pickerRoot = useTemplateRef<HTMLElement>('pickerRoot')
24
26
  const isCreating = ref(false)
25
27
 
26
- const folders = computed(() => tree.value?.folders ?? props.folders)
28
+ const folders = computed(() => (tree.value ? libraryFolders.value : props.folders))
27
29
  const foldersById = computed(() => new Map(folders.value.map((folder) => [folder.id, folder])))
28
30
  const target = ref<string | null | undefined>(
29
31
  props.folders.find((folder) => folder.id === props.initialId && isFitting(folder))?.id,
@@ -34,7 +36,9 @@ function isFitting(folder: MediaFolder): boolean {
34
36
 
35
37
  const targetFolder = computed(() => (target.value ? foldersById.value.get(target.value) : undefined))
36
38
  const canCreate = computed(() =>
37
- targetFolder.value ? targetFolder.value.rights.manage && targetFolder.value.acceptsSubfolders : Boolean(tree.value?.root.manage),
39
+ targetFolder.value
40
+ ? targetFolder.value.rights.manage && targetFolder.value.acceptsSubfolders
41
+ : !scopeFolder.value && Boolean(tree.value?.root.manage),
38
42
  )
39
43
  const acceptedLabel = computed(() =>
40
44
  targetFolder.value?.accepts?.length ? fieldTypesLabel(targetFolder.value.accepts, t) || targetFolder.value.accepts.join(', ') : '',
@@ -97,7 +101,7 @@ const stopFocusing = watch(pickerRoot, (root) => {
97
101
  @dismiss="emit('close', null)"
98
102
  >
99
103
  <div ref="pickerRoot" class="flex flex-col gap-2">
100
- <FolderPickerTree v-model="target" :folders="folders" :is-allowed="isAllowed" />
104
+ <FolderPickerTree v-model="target" :folders="folders" :is-allowed="isAllowed" :reveal-id="scopeFolderId" />
101
105
  <p v-if="acceptedLabel" class="text-muted flex items-center gap-1.5 text-[13px]">
102
106
  <UIcon name="i-ph-link-simple" class="size-3.5 shrink-0" />
103
107
  {{ t('dms_media.dialogs.destination.accepts', { name: targetFolder!.name, types: acceptedLabel }) }}
@@ -69,10 +69,10 @@ const isImageField = computed(() => {
69
69
  })
70
70
  const acceptedTypes = computed(() => fieldTypesLabel(props.accept ?? [], t))
71
71
  const canUpload = computed(() => {
72
- const tree = library.value?.tree.tree.value
73
- return Boolean(
74
- tree?.root.write || tree?.folders.some((folder) => folder.rights.write),
75
- )
72
+ const tree = library.value?.tree
73
+ if (!tree) return false
74
+ if (tree.folders.value.some((folder) => folder.rights.write)) return true
75
+ return !tree.scopeFolder.value && Boolean(tree.tree.value?.root.manage)
76
76
  })
77
77
  const confirmLabel = computed(() => {
78
78
  const noun = isImageField.value ? 'images' : 'files'
@@ -237,13 +237,24 @@ export function useExplorerCommands(library: MediaLibrary, handlers: ExplorerHan
237
237
  ? library.tree.foldersById.value.get(folderId)
238
238
  : library.currentFolder.value
239
239
  if (target?.rights.write) return handlers.pickFiles(target.id, target.name)
240
+ await library.tree.ready()
241
+ const canCreateAtRoot = !library.tree.scopeFolder.value && Boolean(library.tree.tree.value?.root.manage)
242
+ if (!canCreateAtRoot && !library.tree.folders.value.some((folder) => folder.rights.write)) {
243
+ library.toast.add({ title: t('dms_media.toasts.no_writable_folder'), color: 'error', icon: 'i-ph-warning' })
244
+ return
245
+ }
240
246
  const chosen = await destinationDialog.open({
241
247
  folders: library.tree.folders.value,
242
248
  initialId: prefs.value.lastFolderId,
243
249
  accept: library.accept,
250
+ scopeFolderId: library.scopeFolderId,
244
251
  })
245
- const destination = chosen ? await folderById(chosen) : undefined
246
- if (!destination) return
252
+ if (!chosen) return
253
+ const destination = await folderById(chosen)
254
+ if (!destination) {
255
+ library.toast.add({ title: t('dms_media.toasts.destination_unavailable'), color: 'error', icon: 'i-ph-warning' })
256
+ return
257
+ }
247
258
  updatePrefs({ lastFolderId: destination.id })
248
259
  handlers.pickFiles(destination.id, destination.name)
249
260
  }
@@ -918,6 +918,8 @@
918
918
  "toasts": {
919
919
  "alt_failed": "Alt text wasn't saved",
920
920
  "delete_failed": "Couldn't delete",
921
+ "no_writable_folder": "You can't upload to any of these folders. Ask for write access to one of them.",
922
+ "destination_unavailable": "That folder is no longer available. Upload again and choose another folder.",
921
923
  "deleted": "{count} file deleted | {count} files deleted",
922
924
  "download_failed": "Couldn't download",
923
925
  "folder_create_failed": "Couldn't create the folder",
@@ -918,6 +918,8 @@
918
918
  "toasts": {
919
919
  "alt_failed": "Le texte alternatif n'a pas été enregistré",
920
920
  "delete_failed": "Suppression impossible",
921
+ "no_writable_folder": "Vous ne pouvez importer dans aucun de ces dossiers. Demandez l'accès en écriture à l'un d'eux.",
922
+ "destination_unavailable": "Ce dossier n'est plus disponible. Relancez l'import et choisissez un autre dossier.",
921
923
  "deleted": "{count} fichier supprimé | {count} fichiers supprimés",
922
924
  "download_failed": "Téléchargement impossible",
923
925
  "folder_create_failed": "Impossible de créer le dossier",
@@ -6,14 +6,14 @@
6
6
  "main": "./dms.frontend.ts",
7
7
  "packageManager": "pnpm@10.6.5",
8
8
  "engines": {
9
- "@antelopejs/dms-frontend": ">=0.11.1 <0.12.0"
9
+ "@antelopejs/dms-frontend": ">=0.11.4 <0.12.0"
10
10
  },
11
11
  "scripts": {
12
12
  "dev": "pnpm --dir ../playground frontend:dev",
13
13
  "build": "pnpm --dir ../playground exec ajs dms build",
14
14
  "typecheck": "pnpm --dir \"${DMS_FRONTEND_WORKSPACE:?Set DMS_FRONTEND_WORKSPACE to the generated Inertia workspace}\" typecheck",
15
15
  "format": "prettier --write .",
16
- "lint": "eslint . && node ../node_modules/@antelopejs/dms/frontend-vue/scripts/check-api-error-presentation.mjs app",
16
+ "lint": "eslint . && node --input-type=module -e \"import { assertApiErrorPresentation } from '@antelopejs/dms/checks/api-error-presentation'; import { assertDmsComponents } from '@antelopejs/dms/checks/dms-components'; assertApiErrorPresentation(['app']); await assertDmsComponents({ layer: '.', sources: ['../src'] });\"",
17
17
  "lint:fix": "eslint . --fix",
18
18
  "test": "vitest run"
19
19
  },
@@ -26,7 +26,7 @@
26
26
  "zod": "^3.24.2"
27
27
  },
28
28
  "devDependencies": {
29
- "@antelopejs/tooling-configs": "^0.7.1",
29
+ "@antelopejs/tooling-configs": "^0.8.0",
30
30
  "@nuxt/ui": "4.10.0",
31
31
  "@typescript-eslint/parser": "^8.0.0",
32
32
  "@vitejs/plugin-vue": "^6.0.10",
@@ -28,8 +28,8 @@ importers:
28
28
  version: 3.25.76
29
29
  devDependencies:
30
30
  '@antelopejs/tooling-configs':
31
- specifier: ^0.7.1
32
- version: 0.7.1
31
+ specifier: ^0.8.0
32
+ version: 0.8.0
33
33
  '@nuxt/ui':
34
34
  specifier: 4.10.0
35
35
  version: 4.10.0(bde0b3f9741301faabd50d1085263063)
@@ -67,8 +67,8 @@ packages:
67
67
  resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
68
68
  engines: {node: '>=10'}
69
69
 
70
- '@antelopejs/tooling-configs@0.7.1':
71
- resolution: {integrity: sha512-X/mr/nQEgmFI2dMr3ThMS7HcPaU1amsTU/RNfEnQv46+l7au8cv7unpypCZ0BggnfJHjpk2QG2CTOOllpwj3cw==}
70
+ '@antelopejs/tooling-configs@0.8.0':
71
+ resolution: {integrity: sha512-o2sec/CFUH//QtXUjGpbeFp0D/QI0H5+59nDoihgz4biEE2D5Z+o1r69yY9c7cRyOY1nnFxiHluuhKoylasc1g==}
72
72
  engines: {node: '>=22.18.0'}
73
73
  hasBin: true
74
74
  peerDependencies:
@@ -1425,9 +1425,125 @@ packages:
1425
1425
  resolution: {integrity: sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==}
1426
1426
  engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
1427
1427
 
1428
- '@typescript/typescript6@6.0.2':
1429
- resolution: {integrity: sha512-mbCddXd+jm7hfx7w2YU64/Av4/NqqeG3GoRZgxPcgoTxYjhrcfJRw9ULch71SS4G+Q3bOXFhRvPqjguN0Hyp5w==}
1430
- hasBin: true
1428
+ '@typescript/typescript-aix-ppc64@7.0.2':
1429
+ resolution: {integrity: sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==}
1430
+ engines: {node: '>=16.20.0'}
1431
+ cpu: [ppc64]
1432
+ os: [aix]
1433
+
1434
+ '@typescript/typescript-darwin-arm64@7.0.2':
1435
+ resolution: {integrity: sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==}
1436
+ engines: {node: '>=16.20.0'}
1437
+ cpu: [arm64]
1438
+ os: [darwin]
1439
+
1440
+ '@typescript/typescript-darwin-x64@7.0.2':
1441
+ resolution: {integrity: sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==}
1442
+ engines: {node: '>=16.20.0'}
1443
+ cpu: [x64]
1444
+ os: [darwin]
1445
+
1446
+ '@typescript/typescript-freebsd-arm64@7.0.2':
1447
+ resolution: {integrity: sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==}
1448
+ engines: {node: '>=16.20.0'}
1449
+ cpu: [arm64]
1450
+ os: [freebsd]
1451
+
1452
+ '@typescript/typescript-freebsd-x64@7.0.2':
1453
+ resolution: {integrity: sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==}
1454
+ engines: {node: '>=16.20.0'}
1455
+ cpu: [x64]
1456
+ os: [freebsd]
1457
+
1458
+ '@typescript/typescript-linux-arm64@7.0.2':
1459
+ resolution: {integrity: sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==}
1460
+ engines: {node: '>=16.20.0'}
1461
+ cpu: [arm64]
1462
+ os: [linux]
1463
+
1464
+ '@typescript/typescript-linux-arm@7.0.2':
1465
+ resolution: {integrity: sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==}
1466
+ engines: {node: '>=16.20.0'}
1467
+ cpu: [arm]
1468
+ os: [linux]
1469
+
1470
+ '@typescript/typescript-linux-loong64@7.0.2':
1471
+ resolution: {integrity: sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==}
1472
+ engines: {node: '>=16.20.0'}
1473
+ cpu: [loong64]
1474
+ os: [linux]
1475
+
1476
+ '@typescript/typescript-linux-mips64el@7.0.2':
1477
+ resolution: {integrity: sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==}
1478
+ engines: {node: '>=16.20.0'}
1479
+ cpu: [mips64el]
1480
+ os: [linux]
1481
+
1482
+ '@typescript/typescript-linux-ppc64@7.0.2':
1483
+ resolution: {integrity: sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==}
1484
+ engines: {node: '>=16.20.0'}
1485
+ cpu: [ppc64]
1486
+ os: [linux]
1487
+
1488
+ '@typescript/typescript-linux-riscv64@7.0.2':
1489
+ resolution: {integrity: sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==}
1490
+ engines: {node: '>=16.20.0'}
1491
+ cpu: [riscv64]
1492
+ os: [linux]
1493
+
1494
+ '@typescript/typescript-linux-s390x@7.0.2':
1495
+ resolution: {integrity: sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==}
1496
+ engines: {node: '>=16.20.0'}
1497
+ cpu: [s390x]
1498
+ os: [linux]
1499
+
1500
+ '@typescript/typescript-linux-x64@7.0.2':
1501
+ resolution: {integrity: sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==}
1502
+ engines: {node: '>=16.20.0'}
1503
+ cpu: [x64]
1504
+ os: [linux]
1505
+
1506
+ '@typescript/typescript-netbsd-arm64@7.0.2':
1507
+ resolution: {integrity: sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==}
1508
+ engines: {node: '>=16.20.0'}
1509
+ cpu: [arm64]
1510
+ os: [netbsd]
1511
+
1512
+ '@typescript/typescript-netbsd-x64@7.0.2':
1513
+ resolution: {integrity: sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==}
1514
+ engines: {node: '>=16.20.0'}
1515
+ cpu: [x64]
1516
+ os: [netbsd]
1517
+
1518
+ '@typescript/typescript-openbsd-arm64@7.0.2':
1519
+ resolution: {integrity: sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==}
1520
+ engines: {node: '>=16.20.0'}
1521
+ cpu: [arm64]
1522
+ os: [openbsd]
1523
+
1524
+ '@typescript/typescript-openbsd-x64@7.0.2':
1525
+ resolution: {integrity: sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==}
1526
+ engines: {node: '>=16.20.0'}
1527
+ cpu: [x64]
1528
+ os: [openbsd]
1529
+
1530
+ '@typescript/typescript-sunos-x64@7.0.2':
1531
+ resolution: {integrity: sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==}
1532
+ engines: {node: '>=16.20.0'}
1533
+ cpu: [x64]
1534
+ os: [sunos]
1535
+
1536
+ '@typescript/typescript-win32-arm64@7.0.2':
1537
+ resolution: {integrity: sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==}
1538
+ engines: {node: '>=16.20.0'}
1539
+ cpu: [arm64]
1540
+ os: [win32]
1541
+
1542
+ '@typescript/typescript-win32-x64@7.0.2':
1543
+ resolution: {integrity: sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==}
1544
+ engines: {node: '>=16.20.0'}
1545
+ cpu: [x64]
1546
+ os: [win32]
1431
1547
 
1432
1548
  '@unhead/vue@2.1.16':
1433
1549
  resolution: {integrity: sha512-t6QykImeMJcrUTbFB0Coy0cB/OZItHdQFRFLoH8GAVXKWmQORGPrwvueP9me7adOCuMH2uVvrv0nCkbi6zksaA==}
@@ -3227,14 +3343,35 @@ snapshots:
3227
3343
 
3228
3344
  '@alloc/quick-lru@5.2.0': {}
3229
3345
 
3230
- '@antelopejs/tooling-configs@0.7.1':
3346
+ '@antelopejs/tooling-configs@0.8.0':
3231
3347
  dependencies:
3232
3348
  '@oxlint/plugins': 1.81.0
3233
- '@typescript/typescript6': 6.0.2
3234
3349
  dts-bundle-generator: 9.5.1
3235
3350
  minimatch: 10.2.6
3236
3351
  semver: 7.8.5
3352
+ typescript: 6.0.3
3237
3353
  yaml: 2.9.1
3354
+ optionalDependencies:
3355
+ '@typescript/typescript-aix-ppc64': 7.0.2
3356
+ '@typescript/typescript-darwin-arm64': 7.0.2
3357
+ '@typescript/typescript-darwin-x64': 7.0.2
3358
+ '@typescript/typescript-freebsd-arm64': 7.0.2
3359
+ '@typescript/typescript-freebsd-x64': 7.0.2
3360
+ '@typescript/typescript-linux-arm': 7.0.2
3361
+ '@typescript/typescript-linux-arm64': 7.0.2
3362
+ '@typescript/typescript-linux-loong64': 7.0.2
3363
+ '@typescript/typescript-linux-mips64el': 7.0.2
3364
+ '@typescript/typescript-linux-ppc64': 7.0.2
3365
+ '@typescript/typescript-linux-riscv64': 7.0.2
3366
+ '@typescript/typescript-linux-s390x': 7.0.2
3367
+ '@typescript/typescript-linux-x64': 7.0.2
3368
+ '@typescript/typescript-netbsd-arm64': 7.0.2
3369
+ '@typescript/typescript-netbsd-x64': 7.0.2
3370
+ '@typescript/typescript-openbsd-arm64': 7.0.2
3371
+ '@typescript/typescript-openbsd-x64': 7.0.2
3372
+ '@typescript/typescript-sunos-x64': 7.0.2
3373
+ '@typescript/typescript-win32-arm64': 7.0.2
3374
+ '@typescript/typescript-win32-x64': 7.0.2
3238
3375
 
3239
3376
  '@antfu/install-pkg@1.1.0':
3240
3377
  dependencies:
@@ -4481,9 +4618,65 @@ snapshots:
4481
4618
  '@typescript-eslint/types': 8.65.0
4482
4619
  eslint-visitor-keys: 5.0.1
4483
4620
 
4484
- '@typescript/typescript6@6.0.2':
4485
- dependencies:
4486
- '@typescript/old': typescript@6.0.3
4621
+ '@typescript/typescript-aix-ppc64@7.0.2':
4622
+ optional: true
4623
+
4624
+ '@typescript/typescript-darwin-arm64@7.0.2':
4625
+ optional: true
4626
+
4627
+ '@typescript/typescript-darwin-x64@7.0.2':
4628
+ optional: true
4629
+
4630
+ '@typescript/typescript-freebsd-arm64@7.0.2':
4631
+ optional: true
4632
+
4633
+ '@typescript/typescript-freebsd-x64@7.0.2':
4634
+ optional: true
4635
+
4636
+ '@typescript/typescript-linux-arm64@7.0.2':
4637
+ optional: true
4638
+
4639
+ '@typescript/typescript-linux-arm@7.0.2':
4640
+ optional: true
4641
+
4642
+ '@typescript/typescript-linux-loong64@7.0.2':
4643
+ optional: true
4644
+
4645
+ '@typescript/typescript-linux-mips64el@7.0.2':
4646
+ optional: true
4647
+
4648
+ '@typescript/typescript-linux-ppc64@7.0.2':
4649
+ optional: true
4650
+
4651
+ '@typescript/typescript-linux-riscv64@7.0.2':
4652
+ optional: true
4653
+
4654
+ '@typescript/typescript-linux-s390x@7.0.2':
4655
+ optional: true
4656
+
4657
+ '@typescript/typescript-linux-x64@7.0.2':
4658
+ optional: true
4659
+
4660
+ '@typescript/typescript-netbsd-arm64@7.0.2':
4661
+ optional: true
4662
+
4663
+ '@typescript/typescript-netbsd-x64@7.0.2':
4664
+ optional: true
4665
+
4666
+ '@typescript/typescript-openbsd-arm64@7.0.2':
4667
+ optional: true
4668
+
4669
+ '@typescript/typescript-openbsd-x64@7.0.2':
4670
+ optional: true
4671
+
4672
+ '@typescript/typescript-sunos-x64@7.0.2':
4673
+ optional: true
4674
+
4675
+ '@typescript/typescript-win32-arm64@7.0.2':
4676
+ optional: true
4677
+
4678
+ '@typescript/typescript-win32-x64@7.0.2':
4679
+ optional: true
4487
4680
 
4488
4681
  '@unhead/vue@2.1.16(vue@3.5.40(typescript@6.0.3))':
4489
4682
  dependencies:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/dms-media",
3
- "version": "0.8.0",
3
+ "version": "0.8.1-next.162.g5783c18",
4
4
  "description": "Media library for the AntelopeJS DMS: uploads, folders with per-folder permissions, image sizes and light editing, with a Finder-style explorer.",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -42,24 +42,6 @@
42
42
  "provenance": true,
43
43
  "registry": "https://registry.npmjs.org/"
44
44
  },
45
- "scripts": {
46
- "build": "pnpm --filter @antelopejs/interface-dms-media build && rimraf dist && tsc",
47
- "dev:frontend": "pnpm frontend:dev",
48
- "frontend:dev": "cd playground && pnpm frontend:dev",
49
- "dev": "ajs project run -w -p playground",
50
- "typecheck": "pnpm --filter @antelopejs/interface-dms-media exec tsc && tsc --noEmit",
51
- "test": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && ajs module test .",
52
- "test:unit": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && DMS_MEDIA_TEST_DIR=dist/test/unit ajs module test .",
53
- "test:integration": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && DMS_MEDIA_TEST_DIR=dist/test/integration ajs module test .",
54
- "test:reload": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && node --test --test-force-exit tests/hot-reload.test.mjs",
55
- "test:frontend": "ajs dms verify-source --layer node_modules/@antelopejs/dms/frontend-vue --module frontend-vue",
56
- "release": "pnpm run typecheck && pnpm --dir frontend-vue install --frozen-lockfile && release-it",
57
- "prepack": "pnpm run build",
58
- "knip": "knip --dependencies",
59
- "knip:all": "knip",
60
- "test:exports": "node --test tests/package-exports.test.mjs",
61
- "test:playground": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && pnpm --dir playground install --frozen-lockfile --ignore-workspace && pnpm --dir playground build"
62
- },
63
45
  "dependencies": {
64
46
  "@antelopejs/interface-api": ">=0.3.3 <0.4.0",
65
47
  "@antelopejs/interface-api-util": ">=0.3.2 <0.4.0",
@@ -74,11 +56,11 @@
74
56
  "zod": "^3.24.2"
75
57
  },
76
58
  "devDependencies": {
77
- "@antelopejs/core": "~1.23.2",
78
- "@antelopejs/dms": ">=0.20.0 <0.21.0",
79
- "@antelopejs/dms-frontend": ">=0.11.1 <0.12.0",
59
+ "@antelopejs/core": "~1.24.0",
60
+ "@antelopejs/dms": ">=0.20.2 <0.21.0",
61
+ "@antelopejs/dms-frontend": ">=0.11.4 <0.12.0",
80
62
  "@antelopejs/interface-data-api": ">=0.8.0 <0.9.0",
81
- "@antelopejs/tooling-configs": "^0.7.1",
63
+ "@antelopejs/tooling-configs": "^0.8.0",
82
64
  "@types/chai": "^4.3.20",
83
65
  "@types/mocha": "^10",
84
66
  "@types/node": "^24.0.0",
@@ -92,7 +74,6 @@
92
74
  "rimraf": "^6.1.3",
93
75
  "typescript": "^6.0.3"
94
76
  },
95
- "packageManager": "pnpm@10.2.0",
96
77
  "antelopeJs": {
97
78
  "baseUrl": "dist",
98
79
  "implements": [
@@ -103,5 +84,23 @@
103
84
  "./skills"
104
85
  ]
105
86
  },
106
- "dmsFrontend": "dist/frontend-module.js"
107
- }
87
+ "dmsFrontend": "dist/frontend-module.js",
88
+ "gitHead": "5783c181eb0700026197e125336d295978aa1d80",
89
+ "scripts": {
90
+ "build": "pnpm --filter @antelopejs/interface-dms-media build && rimraf dist && tsc",
91
+ "dev:frontend": "pnpm frontend:dev",
92
+ "frontend:dev": "cd playground && pnpm frontend:dev",
93
+ "dev": "ajs project run -w -p playground",
94
+ "typecheck": "pnpm --filter @antelopejs/interface-dms-media exec tsc && tsc --noEmit",
95
+ "test": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && ajs module test .",
96
+ "test:unit": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && DMS_MEDIA_TEST_DIR=dist/test/unit ajs module test .",
97
+ "test:integration": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && DMS_MEDIA_TEST_DIR=dist/test/integration ajs module test .",
98
+ "test:reload": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && node --test --test-force-exit tests/hot-reload.test.mjs",
99
+ "test:frontend": "ajs dms verify-source --layer node_modules/@antelopejs/dms/frontend-vue --module frontend-vue",
100
+ "release": "pnpm run typecheck && pnpm --dir frontend-vue install --frozen-lockfile && release-it",
101
+ "knip": "knip --dependencies",
102
+ "knip:all": "knip",
103
+ "test:exports": "node --test tests/package-exports.test.mjs",
104
+ "test:playground": "[ -n \"$DMS_PREBUILT\" ] || pnpm run build && pnpm --dir playground install --frozen-lockfile --ignore-workspace && pnpm --dir playground build"
105
+ }
106
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
- "@antelopejs/mongodb": "1.8.1",
2
+ "@antelopejs/mongodb": "1.8.4",
3
3
  "@antelopejs/auth-jwt": "1.1.2",
4
- "@antelopejs/api": "1.7.4",
4
+ "@antelopejs/api": "1.7.5",
5
5
  "@antelopejs/file-storage-local": "0.2.1",
6
6
  "@antelopejs/nodemailer": "0.0.12"
7
7
  }