corpushub-design-system 0.0.2 → 0.0.4

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.
@@ -10,6 +10,7 @@ import { useMessageUtils } from '../../configs/useMessageUtils';
10
10
  import AppModalConfirm from '../AppModal/AppModalConfirm';
11
11
  import { DropzoneShell, useDropzoneMessages, } from '../AppDropzoneShell';
12
12
  import UploadService from './UploadService';
13
+ import { withMediaDisplayUrl } from './toMediaDisplayUrl';
13
14
  function isFileAlreadyExistsError(err) {
14
15
  return (err?.response?.status === 409 &&
15
16
  err?.response?.data?.description === 'upload.file.already.exists');
@@ -56,7 +57,7 @@ function AppDropzoneBodyInner({ folder, onSuccess, onError, accept, messages, on
56
57
  };
57
58
  const executeUpload = async (currentFile, replace) => {
58
59
  const response = await UploadService.execute(buildUploadFormData(currentFile, replace));
59
- onSuccess(response.data);
60
+ onSuccess(withMediaDisplayUrl(response.data));
60
61
  };
61
62
  const upload = async (replace = false) => {
62
63
  const currentFile = fileRef.current;
@@ -1,6 +1,8 @@
1
1
  export interface UploadedFile {
2
2
  url: string;
3
3
  path: string;
4
+ /** Public URL base from upload API (app.upload.path); join with path for display. */
5
+ httpPrefix?: string;
4
6
  filetype: string;
5
7
  name: string;
6
8
  original: string;
@@ -2,3 +2,5 @@ import AppDropzone from './AppDropzone';
2
2
  import AppDropzoneBody, { type AppDropzoneBodyProps, type AppDropzoneBodyRef } from './AppDropzoneBody';
3
3
  export default AppDropzone;
4
4
  export { AppDropzoneBody, type AppDropzoneBodyProps, type AppDropzoneBodyRef };
5
+ export { toMediaDisplayUrl, withMediaDisplayUrl } from './toMediaDisplayUrl';
6
+ export type { UploadedFile } from './UploadedFile';
@@ -2,3 +2,4 @@ import AppDropzone from './AppDropzone';
2
2
  import AppDropzoneBody from './AppDropzoneBody';
3
3
  export default AppDropzone;
4
4
  export { AppDropzoneBody };
5
+ export { toMediaDisplayUrl, withMediaDisplayUrl } from './toMediaDisplayUrl';
@@ -0,0 +1,10 @@
1
+ import type { UploadedFile } from './UploadedFile';
2
+ /**
3
+ * Builds a browser-usable media URL from an upload response.
4
+ * Prefer httpPrefix + path (relative key); fall back to url when prefix is absent.
5
+ */
6
+ export declare function toMediaDisplayUrl(file: Pick<UploadedFile, 'path' | 'url' | 'httpPrefix'>): string;
7
+ /**
8
+ * Keeps path as the relative persistence key and sets url to the display URL.
9
+ */
10
+ export declare function withMediaDisplayUrl(file: UploadedFile): UploadedFile;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Builds a browser-usable media URL from an upload response.
3
+ * Prefer httpPrefix + path (relative key); fall back to url when prefix is absent.
4
+ */
5
+ export function toMediaDisplayUrl(file) {
6
+ const prefix = file.httpPrefix?.replace(/\/+$/, '');
7
+ const key = file.path || file.url || '';
8
+ if (!prefix) {
9
+ return key;
10
+ }
11
+ if (!key) {
12
+ return prefix;
13
+ }
14
+ const normalizedKey = key.startsWith('/') ? key : `/${key}`;
15
+ return `${prefix}${normalizedKey}`;
16
+ }
17
+ /**
18
+ * Keeps path as the relative persistence key and sets url to the display URL.
19
+ */
20
+ export function withMediaDisplayUrl(file) {
21
+ return {
22
+ ...file,
23
+ path: file.path,
24
+ url: toMediaDisplayUrl(file),
25
+ httpPrefix: file.httpPrefix,
26
+ };
27
+ }
@@ -3,7 +3,7 @@ export { default as AppClarity } from './AppClarity';
3
3
  export { default as AppCard } from './AppCard/AppCard';
4
4
  export { default as AppClipboard } from './AppClipboard';
5
5
  export { default as AppColorpicker } from './AppColorpicker';
6
- export { default as AppDropzone, AppDropzoneBody, type AppDropzoneBodyProps, type AppDropzoneBodyRef, } from './AppDropzone';
6
+ export { default as AppDropzone, AppDropzoneBody, type AppDropzoneBodyProps, type AppDropzoneBodyRef, toMediaDisplayUrl, withMediaDisplayUrl, } from './AppDropzone';
7
7
  export type { UploadedFile } from './AppDropzone/UploadedFile';
8
8
  export { default as AppDropzoneLocal, AppDropzoneBodyLocal, type AppDropzoneBodyLocalProps, type AppDropzoneBodyLocalRef, type UploadedFileLocal, } from './AppDropzoneLocal';
9
9
  export { default as AppEditable } from './AppEditable';
@@ -3,7 +3,7 @@ export { default as AppClarity } from './AppClarity';
3
3
  export { default as AppCard } from './AppCard/AppCard';
4
4
  export { default as AppClipboard } from './AppClipboard';
5
5
  export { default as AppColorpicker } from './AppColorpicker';
6
- export { default as AppDropzone, AppDropzoneBody, } from './AppDropzone';
6
+ export { default as AppDropzone, AppDropzoneBody, toMediaDisplayUrl, withMediaDisplayUrl, } from './AppDropzone';
7
7
  export { default as AppDropzoneLocal, AppDropzoneBodyLocal, } from './AppDropzoneLocal';
8
8
  export { default as AppEditable } from './AppEditable';
9
9
  export { validateFormField } from './AppEditable/FormField';
@@ -1,152 +1,152 @@
1
1
  export declare const CommentsTexts: {
2
2
  en: {
3
- "label.title.comments": string;
4
- "label.header.add": string;
5
- "placeholder.comment.text": string;
6
- "placeholder.comment.title": string;
7
- "placeholder.comment.person": string;
8
- "label.button.add": string;
9
- "label.button.update": string;
10
- "label.requested.to": string;
11
- "label.posted.on": string;
12
- "label.on": string;
13
- "placeholder.comments.empty": string;
14
- "tooltip.edit": string;
15
- "tooltip.delete": string;
16
- "tooltip.read": string;
17
- "tooltip.reply": string;
18
- "tooltip.resolve": string;
19
- "tooltip.details": string;
20
- "modal.title.details": string;
21
- "label.author": string;
22
- "label.edited.on": string;
23
- "label.read": string;
24
- "label.unread": string;
25
- "label.read.on": string;
26
- "label.requested": string;
27
- "modal.title.footnote": string;
28
- "placeholder.footnote.text": string;
29
- "modal.title.footnote.remove": string;
30
- "modal.text.footnote.remove": string;
31
- "button.add": string;
32
- "input.value": string;
33
- "input.title": string;
34
- "input.user": string;
35
- "input.user.reply": string;
36
- "button.discard": string;
37
- "notification.title": string;
38
- "notification.unread": string;
39
- "notification.all": string;
40
- "notification.empty": string;
41
- "notification.text": string;
42
- "label.edited": string;
43
- "label.resolved": string;
44
- "tab.write": string;
45
- "tab.preview": string;
46
- "placeholder.preview.empty": string;
47
- "menu.undock": string;
48
- "menu.dock.left": string;
49
- "menu.dock.bottom": string;
50
- "menu.dock.right": string;
3
+ 'label.title.comments': string;
4
+ 'label.header.add': string;
5
+ 'placeholder.comment.text': string;
6
+ 'placeholder.comment.title': string;
7
+ 'placeholder.comment.person': string;
8
+ 'label.button.add': string;
9
+ 'label.button.update': string;
10
+ 'label.requested.to': string;
11
+ 'label.posted.on': string;
12
+ 'label.on': string;
13
+ 'placeholder.comments.empty': string;
14
+ 'tooltip.edit': string;
15
+ 'tooltip.delete': string;
16
+ 'tooltip.read': string;
17
+ 'tooltip.reply': string;
18
+ 'tooltip.resolve': string;
19
+ 'tooltip.details': string;
20
+ 'modal.title.details': string;
21
+ 'label.author': string;
22
+ 'label.edited.on': string;
23
+ 'label.read': string;
24
+ 'label.unread': string;
25
+ 'label.read.on': string;
26
+ 'label.requested': string;
27
+ 'modal.title.footnote': string;
28
+ 'placeholder.footnote.text': string;
29
+ 'modal.title.footnote.remove': string;
30
+ 'modal.text.footnote.remove': string;
31
+ 'button.add': string;
32
+ 'input.value': string;
33
+ 'input.title': string;
34
+ 'input.user': string;
35
+ 'input.user.reply': string;
36
+ 'button.discard': string;
37
+ 'notification.title': string;
38
+ 'notification.unread': string;
39
+ 'notification.all': string;
40
+ 'notification.empty': string;
41
+ 'notification.text': string;
42
+ 'label.edited': string;
43
+ 'label.resolved': string;
44
+ 'tab.write': string;
45
+ 'tab.preview': string;
46
+ 'placeholder.preview.empty': string;
47
+ 'menu.undock': string;
48
+ 'menu.dock.left': string;
49
+ 'menu.dock.bottom': string;
50
+ 'menu.dock.right': string;
51
51
  };
52
- "pt-BR": {
53
- "label.title.comments": string;
54
- "label.header.add": string;
55
- "placeholder.comment.text": string;
56
- "placeholder.comment.title": string;
57
- "placeholder.comment.person": string;
58
- "label.button.add": string;
59
- "label.button.update": string;
60
- "label.requested.to": string;
61
- "label.posted.on": string;
62
- "label.on": string;
63
- "placeholder.comments.empty": string;
64
- "tooltip.edit": string;
65
- "tooltip.delete": string;
66
- "tooltip.read": string;
67
- "tooltip.reply": string;
68
- "tooltip.resolve": string;
69
- "tooltip.details": string;
70
- "modal.title.details": string;
71
- "label.author": string;
72
- "label.edited.on": string;
73
- "label.read": string;
74
- "label.unread": string;
75
- "label.read.on": string;
76
- "label.requested": string;
77
- "modal.title.footnote": string;
78
- "placeholder.footnote.text": string;
79
- "modal.title.footnote.remove": string;
80
- "modal.text.footnote.remove": string;
81
- "button.add": string;
82
- "input.value": string;
83
- "input.title": string;
84
- "input.user": string;
85
- "input.user.reply": string;
86
- "button.discard": string;
87
- "notification.title": string;
88
- "notification.unread": string;
89
- "notification.all": string;
90
- "notification.empty": string;
91
- "notification.text": string;
92
- "label.edited": string;
93
- "label.resolved": string;
94
- "tab.write": string;
95
- "tab.preview": string;
96
- "placeholder.preview.empty": string;
97
- "menu.undock": string;
98
- "menu.dock.left": string;
99
- "menu.dock.bottom": string;
100
- "menu.dock.right": string;
52
+ 'pt-BR': {
53
+ 'label.title.comments': string;
54
+ 'label.header.add': string;
55
+ 'placeholder.comment.text': string;
56
+ 'placeholder.comment.title': string;
57
+ 'placeholder.comment.person': string;
58
+ 'label.button.add': string;
59
+ 'label.button.update': string;
60
+ 'label.requested.to': string;
61
+ 'label.posted.on': string;
62
+ 'label.on': string;
63
+ 'placeholder.comments.empty': string;
64
+ 'tooltip.edit': string;
65
+ 'tooltip.delete': string;
66
+ 'tooltip.read': string;
67
+ 'tooltip.reply': string;
68
+ 'tooltip.resolve': string;
69
+ 'tooltip.details': string;
70
+ 'modal.title.details': string;
71
+ 'label.author': string;
72
+ 'label.edited.on': string;
73
+ 'label.read': string;
74
+ 'label.unread': string;
75
+ 'label.read.on': string;
76
+ 'label.requested': string;
77
+ 'modal.title.footnote': string;
78
+ 'placeholder.footnote.text': string;
79
+ 'modal.title.footnote.remove': string;
80
+ 'modal.text.footnote.remove': string;
81
+ 'button.add': string;
82
+ 'input.value': string;
83
+ 'input.title': string;
84
+ 'input.user': string;
85
+ 'input.user.reply': string;
86
+ 'button.discard': string;
87
+ 'notification.title': string;
88
+ 'notification.unread': string;
89
+ 'notification.all': string;
90
+ 'notification.empty': string;
91
+ 'notification.text': string;
92
+ 'label.edited': string;
93
+ 'label.resolved': string;
94
+ 'tab.write': string;
95
+ 'tab.preview': string;
96
+ 'placeholder.preview.empty': string;
97
+ 'menu.undock': string;
98
+ 'menu.dock.left': string;
99
+ 'menu.dock.bottom': string;
100
+ 'menu.dock.right': string;
101
101
  };
102
102
  it: {
103
- "label.title.comments": string;
104
- "label.header.add": string;
105
- "placeholder.comment.text": string;
106
- "placeholder.comment.title": string;
107
- "placeholder.comment.person": string;
108
- "label.button.add": string;
109
- "label.button.update": string;
110
- "label.requested.to": string;
111
- "label.posted.on": string;
112
- "label.on": string;
113
- "placeholder.comments.empty": string;
114
- "tooltip.edit": string;
115
- "tooltip.delete": string;
116
- "tooltip.read": string;
117
- "tooltip.reply": string;
118
- "tooltip.resolve": string;
119
- "tooltip.details": string;
120
- "modal.title.details": string;
121
- "label.author": string;
122
- "label.edited.on": string;
123
- "label.read": string;
124
- "label.unread": string;
125
- "label.read.on": string;
126
- "label.requested": string;
127
- "modal.title.footnote": string;
128
- "placeholder.footnote.text": string;
129
- "modal.title.footnote.remove": string;
130
- "modal.text.footnote.remove": string;
131
- "button.add": string;
132
- "input.value": string;
133
- "input.title": string;
134
- "input.user": string;
135
- "input.user.reply": string;
136
- "button.discard": string;
137
- "notification.title": string;
138
- "notification.unread": string;
139
- "notification.all": string;
140
- "notification.empty": string;
141
- "notification.text": string;
142
- "label.edited": string;
143
- "label.resolved": string;
144
- "tab.write": string;
145
- "tab.preview": string;
146
- "placeholder.preview.empty": string;
147
- "menu.undock": string;
148
- "menu.dock.left": string;
149
- "menu.dock.bottom": string;
150
- "menu.dock.right": string;
103
+ 'label.title.comments': string;
104
+ 'label.header.add': string;
105
+ 'placeholder.comment.text': string;
106
+ 'placeholder.comment.title': string;
107
+ 'placeholder.comment.person': string;
108
+ 'label.button.add': string;
109
+ 'label.button.update': string;
110
+ 'label.requested.to': string;
111
+ 'label.posted.on': string;
112
+ 'label.on': string;
113
+ 'placeholder.comments.empty': string;
114
+ 'tooltip.edit': string;
115
+ 'tooltip.delete': string;
116
+ 'tooltip.read': string;
117
+ 'tooltip.reply': string;
118
+ 'tooltip.resolve': string;
119
+ 'tooltip.details': string;
120
+ 'modal.title.details': string;
121
+ 'label.author': string;
122
+ 'label.edited.on': string;
123
+ 'label.read': string;
124
+ 'label.unread': string;
125
+ 'label.read.on': string;
126
+ 'label.requested': string;
127
+ 'modal.title.footnote': string;
128
+ 'placeholder.footnote.text': string;
129
+ 'modal.title.footnote.remove': string;
130
+ 'modal.text.footnote.remove': string;
131
+ 'button.add': string;
132
+ 'input.value': string;
133
+ 'input.title': string;
134
+ 'input.user': string;
135
+ 'input.user.reply': string;
136
+ 'button.discard': string;
137
+ 'notification.title': string;
138
+ 'notification.unread': string;
139
+ 'notification.all': string;
140
+ 'notification.empty': string;
141
+ 'notification.text': string;
142
+ 'label.edited': string;
143
+ 'label.resolved': string;
144
+ 'tab.write': string;
145
+ 'tab.preview': string;
146
+ 'placeholder.preview.empty': string;
147
+ 'menu.undock': string;
148
+ 'menu.dock.left': string;
149
+ 'menu.dock.bottom': string;
150
+ 'menu.dock.right': string;
151
151
  };
152
152
  };
@@ -1,152 +1,152 @@
1
1
  export const CommentsTexts = {
2
2
  en: {
3
- "label.title.comments": "Comments",
4
- "label.header.add": "Add a comment",
5
- "placeholder.comment.text": "Your comment",
6
- "placeholder.comment.title": "Title (optional)",
7
- "placeholder.comment.person": "Select person",
8
- "label.button.add": "Add comment",
9
- "label.button.update": "Update comment",
10
- "label.requested.to": "Sent to:",
11
- "label.posted.on": "Posted on:",
12
- "label.on": "on",
13
- "placeholder.comments.empty": "No comments available.",
14
- "tooltip.edit": "Edit comment",
15
- "tooltip.delete": "Remove comment",
16
- "tooltip.read": "Mark as read",
17
- "tooltip.reply": "Reply",
18
- "tooltip.resolve": "Mark as resolved",
19
- "tooltip.details": "See detailed information",
20
- "modal.title.details": "Comment details",
21
- "label.author": "Author",
22
- "label.edited.on": "Edited on:",
23
- "label.read": "Read",
24
- "label.unread": "Unread",
25
- "label.read.on": "Read on:",
26
- "label.requested": "Requested",
27
- "modal.title.footnote": "Edit footnote",
28
- "placeholder.footnote.text": "Enter footnote",
29
- "modal.title.footnote.remove": "Confirm footnote removal",
30
- "modal.text.footnote.remove": "Are you sure you want to remove this footnote? This action is irreversible.",
31
- "button.add": "Add comment",
32
- "input.value": "Comment",
33
- "input.title": "Title",
34
- "input.user": "Send to users",
35
- "input.user.reply": "Reply to users",
36
- "button.discard": "Discard",
37
- "notification.title": "Notifications",
38
- "notification.unread": "Unread",
39
- "notification.all": "Read",
40
- "notification.empty": "No more notifications",
41
- "notification.text": "{{user}} added a new comment.",
42
- "label.edited": "edited",
43
- "label.resolved": "resolved",
44
- "tab.write": "Write",
45
- "tab.preview": "Preview",
46
- "placeholder.preview.empty": "Nothing to preview",
47
- "menu.undock": "Undock into separate window",
48
- "menu.dock.left": "Dock to left",
49
- "menu.dock.bottom": "Dock to bottom",
50
- "menu.dock.right": "Dock to right",
3
+ 'label.title.comments': 'Comments',
4
+ 'label.header.add': 'Add a comment',
5
+ 'placeholder.comment.text': 'Your comment',
6
+ 'placeholder.comment.title': 'Title (optional)',
7
+ 'placeholder.comment.person': 'Select person',
8
+ 'label.button.add': 'Add comment',
9
+ 'label.button.update': 'Update comment',
10
+ 'label.requested.to': 'Sent to:',
11
+ 'label.posted.on': 'Posted on:',
12
+ 'label.on': 'on',
13
+ 'placeholder.comments.empty': 'No comments available.',
14
+ 'tooltip.edit': 'Edit comment',
15
+ 'tooltip.delete': 'Remove comment',
16
+ 'tooltip.read': 'Mark as read',
17
+ 'tooltip.reply': 'Reply',
18
+ 'tooltip.resolve': 'Mark as resolved',
19
+ 'tooltip.details': 'See detailed information',
20
+ 'modal.title.details': 'Comment details',
21
+ 'label.author': 'Author',
22
+ 'label.edited.on': 'Edited on:',
23
+ 'label.read': 'Read',
24
+ 'label.unread': 'Unread',
25
+ 'label.read.on': 'Read on:',
26
+ 'label.requested': 'Requested',
27
+ 'modal.title.footnote': 'Edit footnote',
28
+ 'placeholder.footnote.text': 'Enter footnote',
29
+ 'modal.title.footnote.remove': 'Confirm footnote removal',
30
+ 'modal.text.footnote.remove': 'Are you sure you want to remove this footnote? This action is irreversible.',
31
+ 'button.add': 'Add comment',
32
+ 'input.value': 'Comment',
33
+ 'input.title': 'Title',
34
+ 'input.user': 'Send to users',
35
+ 'input.user.reply': 'Reply to users',
36
+ 'button.discard': 'Discard',
37
+ 'notification.title': 'Notifications',
38
+ 'notification.unread': 'Unread',
39
+ 'notification.all': 'Read',
40
+ 'notification.empty': 'No more notifications',
41
+ 'notification.text': '{{user}} added a new comment.',
42
+ 'label.edited': 'edited',
43
+ 'label.resolved': 'resolved',
44
+ 'tab.write': 'Write',
45
+ 'tab.preview': 'Preview',
46
+ 'placeholder.preview.empty': 'Nothing to preview',
47
+ 'menu.undock': 'Undock into separate window',
48
+ 'menu.dock.left': 'Dock to left',
49
+ 'menu.dock.bottom': 'Dock to bottom',
50
+ 'menu.dock.right': 'Dock to right',
51
51
  },
52
- "pt-BR": {
53
- "label.title.comments": "Comentários",
54
- "label.header.add": "Adicionar um comentário",
55
- "placeholder.comment.text": "Sua comentário",
56
- "placeholder.comment.title": "Título (opcional)",
57
- "placeholder.comment.person": "Selecione a pessoa",
58
- "label.button.add": "Adicionar comentário",
59
- "label.button.update": "Atualizar comentário",
60
- "label.requested.to": "Enviado para:",
61
- "label.posted.on": "Postado em:",
62
- "label.on": "em",
63
- "placeholder.comments.empty": "Nenhum comentário disponível.",
64
- "tooltip.edit": "Editar comentário",
65
- "tooltip.delete": "Remover comentário",
66
- "tooltip.read": "Marcar como lido",
67
- "tooltip.reply": "Responder",
68
- "tooltip.resolve": "Marcar como resolvido",
69
- "tooltip.details": "Ver informações detalhadas",
70
- "modal.title.details": "Detalhes do comentário",
71
- "label.author": "Autor",
72
- "label.edited.on": "Editado em:",
73
- "label.read": "Lido",
74
- "label.unread": "Não lido",
75
- "label.read.on": "Lido em:",
76
- "label.requested": "Solicitados",
77
- "modal.title.footnote": "Editar nota de rodapé",
78
- "placeholder.footnote.text": "Entre o texto da nota de rodapé",
79
- "modal.title.footnote.remove": "Confirmação de exclusão de nota de rodapé",
80
- "modal.text.footnote.remove": "Tem certeza de que deseja remover esta nota de rodapé? Esta ação é irreversível.",
81
- "button.add": "Adicionar comentário",
82
- "input.value": "Comentário",
83
- "input.title": "Título",
84
- "input.user": "Enviar para usuários",
85
- "input.user.reply": "Responder para usuários",
86
- "button.discard": "Descartar",
87
- "notification.title": "Notificações",
88
- "notification.unread": "Não lidas",
89
- "notification.all": "Lidas",
90
- "notification.empty": "Não há notificações",
91
- "notification.text": "{{user}} adicionou um novo comentário.",
92
- "label.edited": "editado",
93
- "label.resolved": "resolvido",
94
- "tab.write": "Escrever",
95
- "tab.preview": "Visualizar",
96
- "placeholder.preview.empty": "Nada para visualizar",
97
- "menu.undock": "Desencaixar em janela separada",
98
- "menu.dock.left": "Encaixar à esquerda",
99
- "menu.dock.bottom": "Encaixar embaixo",
100
- "menu.dock.right": "Encaixar à direita",
52
+ 'pt-BR': {
53
+ 'label.title.comments': 'Comentários',
54
+ 'label.header.add': 'Adicionar um comentário',
55
+ 'placeholder.comment.text': 'Seu comentário',
56
+ 'placeholder.comment.title': 'Título (opcional)',
57
+ 'placeholder.comment.person': 'Selecione a pessoa',
58
+ 'label.button.add': 'Adicionar comentário',
59
+ 'label.button.update': 'Atualizar comentário',
60
+ 'label.requested.to': 'Enviado para:',
61
+ 'label.posted.on': 'Postado em:',
62
+ 'label.on': 'em',
63
+ 'placeholder.comments.empty': 'Nenhum comentário disponível.',
64
+ 'tooltip.edit': 'Editar comentário',
65
+ 'tooltip.delete': 'Remover comentário',
66
+ 'tooltip.read': 'Marcar como lido',
67
+ 'tooltip.reply': 'Responder',
68
+ 'tooltip.resolve': 'Marcar como resolvido',
69
+ 'tooltip.details': 'Ver informações detalhadas',
70
+ 'modal.title.details': 'Detalhes do comentário',
71
+ 'label.author': 'Autor',
72
+ 'label.edited.on': 'Editado em:',
73
+ 'label.read': 'Lido',
74
+ 'label.unread': 'Não lido',
75
+ 'label.read.on': 'Lido em:',
76
+ 'label.requested': 'Solicitados',
77
+ 'modal.title.footnote': 'Editar nota de rodapé',
78
+ 'placeholder.footnote.text': 'Entre o texto da nota de rodapé',
79
+ 'modal.title.footnote.remove': 'Confirmação de exclusão de nota de rodapé',
80
+ 'modal.text.footnote.remove': 'Tem certeza de que deseja remover esta nota de rodapé? Esta ação é irreversível.',
81
+ 'button.add': 'Adicionar comentário',
82
+ 'input.value': 'Comentário',
83
+ 'input.title': 'Título',
84
+ 'input.user': 'Enviar para usuários',
85
+ 'input.user.reply': 'Responder para usuários',
86
+ 'button.discard': 'Descartar',
87
+ 'notification.title': 'Notificações',
88
+ 'notification.unread': 'Não lidas',
89
+ 'notification.all': 'Lidas',
90
+ 'notification.empty': 'Não há notificações',
91
+ 'notification.text': '{{user}} adicionou um novo comentário.',
92
+ 'label.edited': 'editado',
93
+ 'label.resolved': 'resolvido',
94
+ 'tab.write': 'Escrever',
95
+ 'tab.preview': 'Visualizar',
96
+ 'placeholder.preview.empty': 'Nada para visualizar',
97
+ 'menu.undock': 'Desencaixar em janela separada',
98
+ 'menu.dock.left': 'Encaixar à esquerda',
99
+ 'menu.dock.bottom': 'Encaixar embaixo',
100
+ 'menu.dock.right': 'Encaixar à direita',
101
101
  },
102
102
  it: {
103
- "label.title.comments": "Commenti",
104
- "label.header.add": "Aggiungi un commento",
105
- "placeholder.comment.text": "Il tuo commento",
106
- "placeholder.comment.title": "Titolo (facoltativo)",
107
- "placeholder.comment.person": "Seleziona persona",
108
- "label.button.add": "Aggiungi commento",
109
- "label.button.update": "Aggiorna commento",
110
- "label.requested.to": "Inviato a:",
111
- "label.posted.on": "Pubblicato il:",
112
- "label.on": "il",
113
- "placeholder.comments.empty": "Nessun commento disponibile.",
114
- "tooltip.edit": "Modifica commento",
115
- "tooltip.delete": "Rimuovi commento",
116
- "tooltip.read": "Segnala come letto",
117
- "tooltip.reply": "Rispondi",
118
- "tooltip.resolve": "Segna come risolto",
119
- "tooltip.details": "Vedi informazioni dettagliate",
120
- "modal.title.details": "Dettagli del commento",
121
- "label.author": "Autore",
122
- "label.edited.on": "Modificato il:",
123
- "label.read": "Letto",
124
- "label.unread": "Non letto",
125
- "label.read.on": "Letto il:",
126
- "label.requested": "Richiesti",
127
- "modal.title.footnote": "Modifica nota a piè di pagina",
128
- "placeholder.footnote.text": "Inserisci nota a piè di pagina",
129
- "modal.title.footnote.remove": "Conferma rimozione nota a piè di pagina",
130
- "modal.text.footnote.remove": "Sei sicuro di voler rimuovere questa nota a piè di pagina? Questa azione è irreversibile.",
131
- "button.add": "Aggiungi commento",
132
- "input.value": "Commento",
133
- "input.title": "Titolo",
134
- "input.user": "Invia agli utenti",
135
- "input.user.reply": "Rispondi agli utenti",
136
- "button.discard": "Scarta",
137
- "notification.title": "Notifiche",
138
- "notification.unread": "Non letto",
139
- "notification.all": "Letti",
140
- "notification.empty": "Nessun'altra notifica",
141
- "notification.text": "{{user}} ha aggiunto un commento all'inserimento {{entry}}.",
142
- "label.edited": "modificato",
143
- "label.resolved": "risolto",
144
- "tab.write": "Scrivi",
145
- "tab.preview": "Anteprima",
146
- "placeholder.preview.empty": "Niente da visualizzare",
147
- "menu.undock": "Sgancia in una finestra separata",
148
- "menu.dock.left": "Aggancia a sinistra",
149
- "menu.dock.bottom": "Aggancia in basso",
150
- "menu.dock.right": "Aggancia a destra",
103
+ 'label.title.comments': 'Commenti',
104
+ 'label.header.add': 'Aggiungi un commento',
105
+ 'placeholder.comment.text': 'Il tuo commento',
106
+ 'placeholder.comment.title': 'Titolo (facoltativo)',
107
+ 'placeholder.comment.person': 'Seleziona persona',
108
+ 'label.button.add': 'Aggiungi commento',
109
+ 'label.button.update': 'Aggiorna commento',
110
+ 'label.requested.to': 'Inviato a:',
111
+ 'label.posted.on': 'Pubblicato il:',
112
+ 'label.on': 'il',
113
+ 'placeholder.comments.empty': 'Nessun commento disponibile.',
114
+ 'tooltip.edit': 'Modifica commento',
115
+ 'tooltip.delete': 'Rimuovi commento',
116
+ 'tooltip.read': 'Segnala come letto',
117
+ 'tooltip.reply': 'Rispondi',
118
+ 'tooltip.resolve': 'Segna come risolto',
119
+ 'tooltip.details': 'Vedi informazioni dettagliate',
120
+ 'modal.title.details': 'Dettagli del commento',
121
+ 'label.author': 'Autore',
122
+ 'label.edited.on': 'Modificato il:',
123
+ 'label.read': 'Letto',
124
+ 'label.unread': 'Non letto',
125
+ 'label.read.on': 'Letto il:',
126
+ 'label.requested': 'Richiesti',
127
+ 'modal.title.footnote': 'Modifica nota a piè di pagina',
128
+ 'placeholder.footnote.text': 'Inserisci nota a piè di pagina',
129
+ 'modal.title.footnote.remove': 'Conferma rimozione nota a piè di pagina',
130
+ 'modal.text.footnote.remove': 'Sei sicuro di voler rimuovere questa nota a piè di pagina? Questa azione è irreversibile.',
131
+ 'button.add': 'Aggiungi commento',
132
+ 'input.value': 'Commento',
133
+ 'input.title': 'Titolo',
134
+ 'input.user': 'Invia agli utenti',
135
+ 'input.user.reply': 'Rispondi agli utenti',
136
+ 'button.discard': 'Scarta',
137
+ 'notification.title': 'Notifiche',
138
+ 'notification.unread': 'Non letto',
139
+ 'notification.all': 'Letti',
140
+ 'notification.empty': "Nessun'altra notifica",
141
+ 'notification.text': "{{user}} ha aggiunto un commento all'inserimento {{entry}}.",
142
+ 'label.edited': 'modificato',
143
+ 'label.resolved': 'risolto',
144
+ 'tab.write': 'Scrivi',
145
+ 'tab.preview': 'Anteprima',
146
+ 'placeholder.preview.empty': 'Niente da visualizzare',
147
+ 'menu.undock': 'Sgancia in una finestra separata',
148
+ 'menu.dock.left': 'Aggancia a sinistra',
149
+ 'menu.dock.bottom': 'Aggancia in basso',
150
+ 'menu.dock.right': 'Aggancia a destra',
151
151
  },
152
152
  };
@@ -1,6 +1,9 @@
1
1
  export type CorpusImage = {
2
2
  type?: CorpusImageType;
3
+ /** Relative storage key (or legacy absolute). Prefer url for browser src. */
3
4
  path: string;
5
+ /** Absolute HTTP URL when returned from API serializers. */
6
+ url?: string;
4
7
  };
5
8
  export type CorpusImageType = 'COVER' | 'SLIDESHOW';
6
9
  export declare const CorpusImageTypeNames: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corpushub-design-system",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {