@seshuk/payload-media-preview 1.0.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.
Files changed (143) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +507 -0
  3. package/dist/components/Cell/Cell.client.d.ts +18 -0
  4. package/dist/components/Cell/Cell.client.js +131 -0
  5. package/dist/components/Cell/Cell.scss +43 -0
  6. package/dist/components/Cell/Cell.server.d.ts +11 -0
  7. package/dist/components/Cell/Cell.server.js +33 -0
  8. package/dist/components/ExternalLinkIcon/ExternalLinkIcon.d.ts +5 -0
  9. package/dist/components/ExternalLinkIcon/ExternalLinkIcon.js +17 -0
  10. package/dist/components/ExternalLinkIcon/ExternalLinkIcon.scss +19 -0
  11. package/dist/components/Field/Field.d.ts +18 -0
  12. package/dist/components/Field/Field.js +107 -0
  13. package/dist/components/Field/Field.scss +14 -0
  14. package/dist/components/MediaPreview.constants.d.ts +4 -0
  15. package/dist/components/MediaPreview.constants.js +28 -0
  16. package/dist/components/MediaPreview.d.ts +10 -0
  17. package/dist/components/MediaPreview.js +57 -0
  18. package/dist/components/MediaPreview.types.d.ts +2 -0
  19. package/dist/components/MediaPreview.types.js +1 -0
  20. package/dist/components/MediaPreview.utils.d.ts +6 -0
  21. package/dist/components/MediaPreview.utils.js +38 -0
  22. package/dist/components/Modal/Modal.constants.d.ts +16 -0
  23. package/dist/components/Modal/Modal.constants.js +16 -0
  24. package/dist/components/Modal/Modal.d.ts +19 -0
  25. package/dist/components/Modal/Modal.js +277 -0
  26. package/dist/components/Modal/Modal.scss +173 -0
  27. package/dist/components/Viewer/AudioViewer.d.ts +3 -0
  28. package/dist/components/Viewer/AudioViewer.js +24 -0
  29. package/dist/components/Viewer/IframeViewer.d.ts +3 -0
  30. package/dist/components/Viewer/IframeViewer.js +14 -0
  31. package/dist/components/Viewer/ImageViewer.d.ts +3 -0
  32. package/dist/components/Viewer/ImageViewer.js +10 -0
  33. package/dist/components/Viewer/VideoViewer.d.ts +3 -0
  34. package/dist/components/Viewer/VideoViewer.js +25 -0
  35. package/dist/components/Viewer/Viewer.d.ts +12 -0
  36. package/dist/components/Viewer/Viewer.js +50 -0
  37. package/dist/components/adapterResolver.d.ts +13 -0
  38. package/dist/components/adapterResolver.js +43 -0
  39. package/dist/exports/client.d.ts +5 -0
  40. package/dist/exports/client.js +5 -0
  41. package/dist/exports/rsc.d.ts +2 -0
  42. package/dist/exports/rsc.js +2 -0
  43. package/dist/field.d.ts +18 -0
  44. package/dist/field.js +36 -0
  45. package/dist/index.d.ts +6 -0
  46. package/dist/index.js +90 -0
  47. package/dist/translations/index.d.ts +8 -0
  48. package/dist/translations/index.js +90 -0
  49. package/dist/translations/locales/ar.d.ts +2 -0
  50. package/dist/translations/locales/ar.js +11 -0
  51. package/dist/translations/locales/az.d.ts +2 -0
  52. package/dist/translations/locales/az.js +11 -0
  53. package/dist/translations/locales/bg.d.ts +2 -0
  54. package/dist/translations/locales/bg.js +11 -0
  55. package/dist/translations/locales/bnBd.d.ts +2 -0
  56. package/dist/translations/locales/bnBd.js +11 -0
  57. package/dist/translations/locales/bnIn.d.ts +2 -0
  58. package/dist/translations/locales/bnIn.js +11 -0
  59. package/dist/translations/locales/ca.d.ts +2 -0
  60. package/dist/translations/locales/ca.js +11 -0
  61. package/dist/translations/locales/cs.d.ts +2 -0
  62. package/dist/translations/locales/cs.js +11 -0
  63. package/dist/translations/locales/da.d.ts +2 -0
  64. package/dist/translations/locales/da.js +11 -0
  65. package/dist/translations/locales/de.d.ts +2 -0
  66. package/dist/translations/locales/de.js +11 -0
  67. package/dist/translations/locales/en.d.ts +2 -0
  68. package/dist/translations/locales/en.js +11 -0
  69. package/dist/translations/locales/es.d.ts +2 -0
  70. package/dist/translations/locales/es.js +11 -0
  71. package/dist/translations/locales/et.d.ts +2 -0
  72. package/dist/translations/locales/et.js +11 -0
  73. package/dist/translations/locales/fa.d.ts +2 -0
  74. package/dist/translations/locales/fa.js +11 -0
  75. package/dist/translations/locales/fr.d.ts +2 -0
  76. package/dist/translations/locales/fr.js +11 -0
  77. package/dist/translations/locales/he.d.ts +2 -0
  78. package/dist/translations/locales/he.js +11 -0
  79. package/dist/translations/locales/hr.d.ts +2 -0
  80. package/dist/translations/locales/hr.js +11 -0
  81. package/dist/translations/locales/hu.d.ts +2 -0
  82. package/dist/translations/locales/hu.js +11 -0
  83. package/dist/translations/locales/hy.d.ts +2 -0
  84. package/dist/translations/locales/hy.js +11 -0
  85. package/dist/translations/locales/id.d.ts +2 -0
  86. package/dist/translations/locales/id.js +11 -0
  87. package/dist/translations/locales/is.d.ts +2 -0
  88. package/dist/translations/locales/is.js +11 -0
  89. package/dist/translations/locales/it.d.ts +2 -0
  90. package/dist/translations/locales/it.js +11 -0
  91. package/dist/translations/locales/ja.d.ts +2 -0
  92. package/dist/translations/locales/ja.js +11 -0
  93. package/dist/translations/locales/ko.d.ts +2 -0
  94. package/dist/translations/locales/ko.js +11 -0
  95. package/dist/translations/locales/lt.d.ts +2 -0
  96. package/dist/translations/locales/lt.js +11 -0
  97. package/dist/translations/locales/lv.d.ts +2 -0
  98. package/dist/translations/locales/lv.js +11 -0
  99. package/dist/translations/locales/my.d.ts +2 -0
  100. package/dist/translations/locales/my.js +11 -0
  101. package/dist/translations/locales/nb.d.ts +2 -0
  102. package/dist/translations/locales/nb.js +11 -0
  103. package/dist/translations/locales/nl.d.ts +2 -0
  104. package/dist/translations/locales/nl.js +11 -0
  105. package/dist/translations/locales/pl.d.ts +2 -0
  106. package/dist/translations/locales/pl.js +11 -0
  107. package/dist/translations/locales/pt.d.ts +2 -0
  108. package/dist/translations/locales/pt.js +11 -0
  109. package/dist/translations/locales/ro.d.ts +2 -0
  110. package/dist/translations/locales/ro.js +11 -0
  111. package/dist/translations/locales/rs.d.ts +2 -0
  112. package/dist/translations/locales/rs.js +11 -0
  113. package/dist/translations/locales/rsLatin.d.ts +2 -0
  114. package/dist/translations/locales/rsLatin.js +11 -0
  115. package/dist/translations/locales/ru.d.ts +2 -0
  116. package/dist/translations/locales/ru.js +11 -0
  117. package/dist/translations/locales/sk.d.ts +2 -0
  118. package/dist/translations/locales/sk.js +11 -0
  119. package/dist/translations/locales/sl.d.ts +2 -0
  120. package/dist/translations/locales/sl.js +11 -0
  121. package/dist/translations/locales/sv.d.ts +2 -0
  122. package/dist/translations/locales/sv.js +11 -0
  123. package/dist/translations/locales/ta.d.ts +2 -0
  124. package/dist/translations/locales/ta.js +11 -0
  125. package/dist/translations/locales/th.d.ts +2 -0
  126. package/dist/translations/locales/th.js +11 -0
  127. package/dist/translations/locales/tr.d.ts +2 -0
  128. package/dist/translations/locales/tr.js +11 -0
  129. package/dist/translations/locales/uk.d.ts +2 -0
  130. package/dist/translations/locales/uk.js +11 -0
  131. package/dist/translations/locales/vi.d.ts +2 -0
  132. package/dist/translations/locales/vi.js +11 -0
  133. package/dist/translations/locales/zh.d.ts +2 -0
  134. package/dist/translations/locales/zh.js +11 -0
  135. package/dist/translations/locales/zhTw.d.ts +2 -0
  136. package/dist/translations/locales/zhTw.js +11 -0
  137. package/dist/translations/types.d.ts +11 -0
  138. package/dist/translations/types.js +1 -0
  139. package/dist/types.d.ts +130 -0
  140. package/dist/types.js +2 -0
  141. package/dist/utils/insertField.d.ts +3 -0
  142. package/dist/utils/insertField.js +97 -0
  143. package/package.json +121 -0
@@ -0,0 +1,2 @@
1
+ export { MediaPreviewCell } from "../components/Cell/Cell.server.js";
2
+ export { MediaPreview } from "../components/MediaPreview.js";
@@ -0,0 +1,18 @@
1
+ import type { UIField } from 'payload';
2
+ import type { MediaPreviewContentMode, MediaPreviewMode } from './types.js';
3
+ export type MediaPreviewFieldOptions = {
4
+ /** Which adapters to try when resolving a preview (by name). */
5
+ adapterNames?: string[];
6
+ contentMode?: Partial<MediaPreviewContentMode>;
7
+ /**
8
+ * Preview display mode.
9
+ *
10
+ * - `'auto'` — popup in cell (desktop), fullscreen in field and on mobile.
11
+ * - `'fullscreen'` — always fullscreen modal.
12
+ * @default 'auto'
13
+ */
14
+ mode?: MediaPreviewMode;
15
+ /** Payload UI field overrides (`name` and `type` cannot be changed). */
16
+ overrides?: Partial<Omit<UIField, 'name' | 'type'>>;
17
+ };
18
+ export declare const mediaPreviewField: (props?: MediaPreviewFieldOptions) => UIField;
package/dist/field.js ADDED
@@ -0,0 +1,36 @@
1
+ export const mediaPreviewField = (props)=>{
2
+ const { adapterNames, contentMode, mode = 'auto', overrides } = props || {};
3
+ return {
4
+ // @ts-expect-error - Payload supports label as a function but types are incorrect
5
+ label: ({ t })=>t('@seshuk/payload-media-preview:label'),
6
+ ...overrides,
7
+ name: 'mediaPreview',
8
+ type: 'ui',
9
+ admin: {
10
+ components: {
11
+ ...overrides?.admin?.components || {},
12
+ Cell: {
13
+ clientProps: {
14
+ contentMode,
15
+ mode
16
+ },
17
+ path: '@seshuk/payload-media-preview/rsc#MediaPreviewCell',
18
+ serverProps: {
19
+ adapterNames
20
+ }
21
+ },
22
+ Field: {
23
+ clientProps: {
24
+ contentMode,
25
+ mode
26
+ },
27
+ path: '@seshuk/payload-media-preview/rsc#MediaPreview',
28
+ serverProps: {
29
+ adapterNames
30
+ }
31
+ }
32
+ },
33
+ ...overrides?.admin || {}
34
+ }
35
+ };
36
+ };
@@ -0,0 +1,6 @@
1
+ import type { Config } from 'payload';
2
+ import type { MediaPreviewPluginConfig } from './types.js';
3
+ export { mediaPreviewField } from './field.js';
4
+ export type { MediaPreviewFieldOptions } from './field.js';
5
+ export type { AudioViewerProps, IframeViewerProps, ImageViewerProps, InsertPosition, MediaPreviewAdapter, MediaPreviewAdapterInlineResult, MediaPreviewAdapterNewTabResult, MediaPreviewAdapterResolveArgs, MediaPreviewAdapterResolveResult, MediaPreviewCollectionConfig, MediaPreviewContentMode, MediaPreviewContentModeType, MediaPreviewContentType, MediaPreviewFieldConfig, MediaPreviewMode, MediaPreviewPlugin, MediaPreviewPluginConfig, VideoViewerProps, } from './types.js';
6
+ export declare const mediaPreview: (pluginConfig: MediaPreviewPluginConfig) => (incomingConfig: Config) => Config;
package/dist/index.js ADDED
@@ -0,0 +1,90 @@
1
+ import { mediaPreviewField } from "./field.js";
2
+ import { translations } from "./translations/index.js";
3
+ import { insertField } from "./utils/insertField.js";
4
+ export { mediaPreviewField } from "./field.js";
5
+ export const mediaPreview = (pluginConfig)=>(incomingConfig)=>{
6
+ if (pluginConfig.enabled === false) {
7
+ return incomingConfig;
8
+ }
9
+ const allAdapters = [
10
+ ...pluginConfig.adapters ?? []
11
+ ];
12
+ for (const [, collConfig] of Object.entries(pluginConfig.collections)){
13
+ if (collConfig && typeof collConfig === 'object' && collConfig.adapters) {
14
+ for (const adapter of collConfig.adapters){
15
+ if (!allAdapters.some((a)=>a.name === adapter.name)) {
16
+ allAdapters.push(adapter);
17
+ }
18
+ }
19
+ }
20
+ }
21
+ const adapterDependencies = {};
22
+ for (const adapter of allAdapters){
23
+ if (adapter.Component) {
24
+ adapterDependencies[`media-preview-viewer-${adapter.name}`] = {
25
+ type: 'component',
26
+ path: adapter.Component
27
+ };
28
+ }
29
+ }
30
+ const finalConfig = {
31
+ ...incomingConfig,
32
+ admin: {
33
+ ...incomingConfig.admin,
34
+ dependencies: {
35
+ ...incomingConfig.admin?.dependencies,
36
+ ...adapterDependencies
37
+ }
38
+ },
39
+ collections: (incomingConfig.collections || []).map((collection)=>{
40
+ const collConfig = pluginConfig.collections[collection.slug];
41
+ if (!collConfig) {
42
+ return collection;
43
+ }
44
+ if (!collection.upload) {
45
+ return collection;
46
+ }
47
+ const resolved = collConfig === true ? {} : collConfig;
48
+ if (resolved.field === false) {
49
+ return collection;
50
+ }
51
+ const fieldConfig = typeof resolved.field === 'object' ? resolved.field : {};
52
+ const position = fieldConfig.position ?? 'last';
53
+ const collAdapters = resolved.adapters ?? pluginConfig.adapters;
54
+ const adapterNames = collAdapters?.map((a)=>a.name);
55
+ const fields = insertField(collection.fields, position, mediaPreviewField({
56
+ adapterNames,
57
+ contentMode: resolved.contentMode,
58
+ mode: resolved.mode,
59
+ overrides: fieldConfig.overrides
60
+ }));
61
+ return {
62
+ ...collection,
63
+ fields
64
+ };
65
+ }),
66
+ custom: {
67
+ ...incomingConfig.custom,
68
+ '@seshuk/payload-media-preview': {
69
+ adapters: allAdapters
70
+ }
71
+ },
72
+ i18n: {
73
+ ...incomingConfig.i18n,
74
+ translations: {
75
+ ...incomingConfig.i18n?.translations,
76
+ ...Object.entries(translations).reduce((acc, [locale, i18nObject])=>{
77
+ const typedLocale = locale;
78
+ return {
79
+ ...acc,
80
+ [typedLocale]: {
81
+ ...incomingConfig.i18n?.translations?.[typedLocale],
82
+ '@seshuk/payload-media-preview': i18nObject?.['@seshuk/payload-media-preview']
83
+ }
84
+ };
85
+ }, {})
86
+ }
87
+ }
88
+ };
89
+ return finalConfig;
90
+ };
@@ -0,0 +1,8 @@
1
+ import type { AcceptedLanguages, DefaultTranslationKeys, NestedKeysStripped, TFunction } from '@payloadcms/translations';
2
+ import type { PluginDefaultTranslationsObject } from './types.js';
3
+ export declare const translations: {
4
+ [key in AcceptedLanguages]?: PluginDefaultTranslationsObject;
5
+ };
6
+ export type PluginMediaPreviewTranslations = typeof translations.en;
7
+ export type PluginMediaPreviewTranslationsKeys = NestedKeysStripped<PluginMediaPreviewTranslations>;
8
+ export type PluginMediaPreviewTFunction = TFunction<DefaultTranslationKeys | PluginMediaPreviewTranslationsKeys>;
@@ -0,0 +1,90 @@
1
+ import { ar } from "./locales/ar.js";
2
+ import { az } from "./locales/az.js";
3
+ import { bg } from "./locales/bg.js";
4
+ import { bnBd } from "./locales/bnBd.js";
5
+ import { bnIn } from "./locales/bnIn.js";
6
+ import { ca } from "./locales/ca.js";
7
+ import { cs } from "./locales/cs.js";
8
+ import { da } from "./locales/da.js";
9
+ import { de } from "./locales/de.js";
10
+ import { en } from "./locales/en.js";
11
+ import { es } from "./locales/es.js";
12
+ import { et } from "./locales/et.js";
13
+ import { fa } from "./locales/fa.js";
14
+ import { fr } from "./locales/fr.js";
15
+ import { he } from "./locales/he.js";
16
+ import { hr } from "./locales/hr.js";
17
+ import { hu } from "./locales/hu.js";
18
+ import { hy } from "./locales/hy.js";
19
+ import { id } from "./locales/id.js";
20
+ import { is } from "./locales/is.js";
21
+ import { it } from "./locales/it.js";
22
+ import { ja } from "./locales/ja.js";
23
+ import { ko } from "./locales/ko.js";
24
+ import { lt } from "./locales/lt.js";
25
+ import { lv } from "./locales/lv.js";
26
+ import { my } from "./locales/my.js";
27
+ import { nb } from "./locales/nb.js";
28
+ import { nl } from "./locales/nl.js";
29
+ import { pl } from "./locales/pl.js";
30
+ import { pt } from "./locales/pt.js";
31
+ import { ro } from "./locales/ro.js";
32
+ import { rs } from "./locales/rs.js";
33
+ import { rsLatin } from "./locales/rsLatin.js";
34
+ import { ru } from "./locales/ru.js";
35
+ import { sk } from "./locales/sk.js";
36
+ import { sl } from "./locales/sl.js";
37
+ import { sv } from "./locales/sv.js";
38
+ import { ta } from "./locales/ta.js";
39
+ import { th } from "./locales/th.js";
40
+ import { tr } from "./locales/tr.js";
41
+ import { uk } from "./locales/uk.js";
42
+ import { vi } from "./locales/vi.js";
43
+ import { zh } from "./locales/zh.js";
44
+ import { zhTw } from "./locales/zhTw.js";
45
+ export const translations = {
46
+ id,
47
+ ar,
48
+ az,
49
+ bg,
50
+ 'bn-BD': bnBd,
51
+ 'bn-IN': bnIn,
52
+ ca,
53
+ cs,
54
+ da,
55
+ de,
56
+ en,
57
+ es,
58
+ et,
59
+ fa,
60
+ fr,
61
+ he,
62
+ hr,
63
+ hu,
64
+ hy,
65
+ is,
66
+ it,
67
+ ja,
68
+ ko,
69
+ lt,
70
+ lv,
71
+ my,
72
+ nb,
73
+ nl,
74
+ pl,
75
+ pt,
76
+ ro,
77
+ rs,
78
+ 'rs-latin': rsLatin,
79
+ ru,
80
+ sk,
81
+ sl,
82
+ sv,
83
+ ta,
84
+ th,
85
+ tr,
86
+ uk,
87
+ vi,
88
+ zh,
89
+ 'zh-TW': zhTw
90
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const ar: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const ar = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'إغلاق',
4
+ label: 'معاينة',
5
+ open: 'فتح',
6
+ titleAudio: 'معاينة الصوت',
7
+ titleDocument: 'معاينة المستند',
8
+ titleImage: 'معاينة الصورة',
9
+ titleVideo: 'معاينة الفيديو'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const az: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const az = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Bağlamaq',
4
+ label: 'Önizləmə',
5
+ open: 'Açmaq',
6
+ titleAudio: 'Audio önizləmə',
7
+ titleDocument: 'Sənəd önizləmə',
8
+ titleImage: 'Şəkil önizləmə',
9
+ titleVideo: 'Video önizləmə'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const bg: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const bg = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Затвори',
4
+ label: 'Преглед',
5
+ open: 'Отвори',
6
+ titleAudio: 'Аудио преглед',
7
+ titleDocument: 'Преглед на документ',
8
+ titleImage: 'Преглед на изображение',
9
+ titleVideo: 'Видео преглед'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const bnBd: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const bnBd = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'বন্ধ করুন',
4
+ label: 'প্রাকদর্শন',
5
+ open: 'খুলুন',
6
+ titleAudio: 'অডিও প্রিভিউ',
7
+ titleDocument: 'ডকুমেন্ট প্রিভিউ',
8
+ titleImage: 'ছবি প্রিভিউ',
9
+ titleVideo: 'ভিডিও প্রিভিউ'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const bnIn: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const bnIn = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'বন্ধ করুন',
4
+ label: 'प्रीव्यू',
5
+ open: 'খুলুন',
6
+ titleAudio: 'অডিও প্রিভিউ',
7
+ titleDocument: 'ডকুমেন্ট প্রিভিউ',
8
+ titleImage: 'ছবি প্রিভিউ',
9
+ titleVideo: 'ভিডিও প্রিভিউ'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const ca: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const ca = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Tancar',
4
+ label: 'Vista prèvia',
5
+ open: 'Obrir',
6
+ titleAudio: 'Previsualització d\'àudio',
7
+ titleDocument: 'Previsualització de document',
8
+ titleImage: 'Previsualització d\'imatge',
9
+ titleVideo: 'Previsualització de vídeo'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const cs: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const cs = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Zavřít',
4
+ label: 'Náhled',
5
+ open: 'Otevřít',
6
+ titleAudio: 'Náhled audia',
7
+ titleDocument: 'Náhled dokumentu',
8
+ titleImage: 'Náhled obrázku',
9
+ titleVideo: 'Náhled videa'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const da: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const da = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Luk',
4
+ label: 'Forhåndsvisning',
5
+ open: 'Åbn',
6
+ titleAudio: 'Lydforhåndsvisning',
7
+ titleDocument: 'Dokumentforhåndsvisning',
8
+ titleImage: 'Billedforhåndsvisning',
9
+ titleVideo: 'Videoforhåndsvisning'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const de: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const de = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Schließen',
4
+ label: 'Vorschau',
5
+ open: 'Öffnen',
6
+ titleAudio: 'Audio-Vorschau',
7
+ titleDocument: 'Dokument-Vorschau',
8
+ titleImage: 'Bild-Vorschau',
9
+ titleVideo: 'Video-Vorschau'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const en: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const en = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Close',
4
+ label: 'Preview',
5
+ open: 'Open',
6
+ titleAudio: 'Audio preview',
7
+ titleDocument: 'Document preview',
8
+ titleImage: 'Image preview',
9
+ titleVideo: 'Video preview'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const es: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const es = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Cerrar',
4
+ label: 'Vista previa',
5
+ open: 'Abrir',
6
+ titleAudio: 'Vista previa de audio',
7
+ titleDocument: 'Vista previa de documento',
8
+ titleImage: 'Vista previa de imagen',
9
+ titleVideo: 'Vista previa de video'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const et: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const et = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Sulge',
4
+ label: 'Eelvaade',
5
+ open: 'Ava',
6
+ titleAudio: 'Audio eelvaade',
7
+ titleDocument: 'Dokumendi eelvaade',
8
+ titleImage: 'Pildi eelvaade',
9
+ titleVideo: 'Video eelvaade'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const fa: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const fa = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'بستن',
4
+ label: 'پیش‌نمایش',
5
+ open: 'باز کردن',
6
+ titleAudio: 'پیش‌نمایش صوت',
7
+ titleDocument: 'پیش‌نمایش سند',
8
+ titleImage: 'پیش‌نمایش تصویر',
9
+ titleVideo: 'پیش‌نمایش ویدیو'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const fr: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const fr = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Fermer',
4
+ label: 'Aperçu',
5
+ open: 'Ouvrir',
6
+ titleAudio: 'Aperçu audio',
7
+ titleDocument: 'Aperçu du document',
8
+ titleImage: 'Aperçu de l\'image',
9
+ titleVideo: 'Aperçu vidéo'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const he: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const he = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'סגור',
4
+ label: 'תצוגה מקדימה',
5
+ open: 'פתח',
6
+ titleAudio: 'תצוגה מקדימה של שמע',
7
+ titleDocument: 'תצוגה מקדימה של מסמך',
8
+ titleImage: 'תצוגה מקדימה של תמונה',
9
+ titleVideo: 'תצוגה מקדימה של וידאו'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const hr: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const hr = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Zatvori',
4
+ label: 'Pregled',
5
+ open: 'Otvori',
6
+ titleAudio: 'Pregled zvuka',
7
+ titleDocument: 'Pregled dokumenta',
8
+ titleImage: 'Pregled slike',
9
+ titleVideo: 'Pregled videa'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const hu: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const hu = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Bezárás',
4
+ label: 'Előnézet',
5
+ open: 'Megnyitás',
6
+ titleAudio: 'Hanganyag előnézet',
7
+ titleDocument: 'Dokumentum előnézet',
8
+ titleImage: 'Kép előnézet',
9
+ titleVideo: 'Videó előnézet'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const hy: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const hy = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Փակել',
4
+ label: 'Նախադիտում',
5
+ open: 'Բացել',
6
+ titleAudio: 'Աուդիո նախադիտում',
7
+ titleDocument: 'Փաստաթղթի նախադիտում',
8
+ titleImage: 'Նկարի նախադիտում',
9
+ titleVideo: 'Վիդեո նախադիտում'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const id: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const id = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Tutup',
4
+ label: 'Pratinjau',
5
+ open: 'Buka',
6
+ titleAudio: 'Pratinjau audio',
7
+ titleDocument: 'Pratinjau dokumen',
8
+ titleImage: 'Pratinjau gambar',
9
+ titleVideo: 'Pratinjau video'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const is: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const is = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Loka',
4
+ label: 'Forskoðun',
5
+ open: 'Opna',
6
+ titleAudio: 'Hljóðforskoðun',
7
+ titleDocument: 'Skjalaforskoðun',
8
+ titleImage: 'Myndaforskoðun',
9
+ titleVideo: 'Myndbandsforskoðun'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const it: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const it = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: 'Chiudi',
4
+ label: 'Anteprima',
5
+ open: 'Apri',
6
+ titleAudio: 'Anteprima audio',
7
+ titleDocument: 'Anteprima documento',
8
+ titleImage: 'Anteprima immagine',
9
+ titleVideo: 'Anteprima video'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const ja: PluginDefaultTranslationsObject;
@@ -0,0 +1,11 @@
1
+ export const ja = {
2
+ '@seshuk/payload-media-preview': {
3
+ close: '閉じる',
4
+ label: 'プレビュー',
5
+ open: '開く',
6
+ titleAudio: 'オーディオプレビュー',
7
+ titleDocument: 'ドキュメントプレビュー',
8
+ titleImage: '画像プレビュー',
9
+ titleVideo: 'ビデオプレビュー'
10
+ }
11
+ };
@@ -0,0 +1,2 @@
1
+ import type { PluginDefaultTranslationsObject } from '../types.js';
2
+ export declare const ko: PluginDefaultTranslationsObject;