@adatechnology/content-ui 0.4.0 → 0.5.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.
- package/dist/index.d.ts +72 -5
- package/dist/index.js +1147 -422
- package/dist/index.js.map +1 -1
- package/dist/styles.css +233 -0
- package/dist/styles.css.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -163,6 +163,29 @@ var imageDialogTitle = "Inserir imagem";
|
|
|
163
163
|
var imageUploadFromDevice = "Enviar do aparelho";
|
|
164
164
|
var dialogInsert = "Inserir";
|
|
165
165
|
var fileNoneChosen = "Nenhum arquivo escolhido";
|
|
166
|
+
var photoDialogTitle = "Inserir fotos";
|
|
167
|
+
var photoPickButton = "Escolher fotos";
|
|
168
|
+
var photoDropHint = "Arraste as fotos para cá, cole com Ctrl+V ou escolha do aparelho.";
|
|
169
|
+
var photoCount = "{count} de {max} fotos";
|
|
170
|
+
var photoItemLabel = "Foto {position}";
|
|
171
|
+
var photoAltLabel = "Descrição da foto";
|
|
172
|
+
var photoAltWarning = "Sem descrição, quem usa leitor de tela não saberá o que a foto mostra.";
|
|
173
|
+
var photoCaptionLabel = "Legenda (opcional)";
|
|
174
|
+
var photoRemove = "Remover foto";
|
|
175
|
+
var photoMoveUp = "Mover para cima";
|
|
176
|
+
var photoMoveDown = "Mover para baixo";
|
|
177
|
+
var photoStatusWaiting = "Aguardando";
|
|
178
|
+
var photoStatusReducing = "Reduzindo";
|
|
179
|
+
var photoStatusUploading = "Enviando";
|
|
180
|
+
var photoStatusDone = "Pronta";
|
|
181
|
+
var photoStatusError = "Falhou";
|
|
182
|
+
var photoRetry = "Tentar de novo";
|
|
183
|
+
var photoSending = "Enviando fotos…";
|
|
184
|
+
var photoNotImage = "{name} não é uma imagem.";
|
|
185
|
+
var photoLimitReached = "O máximo é {max} fotos por vez; {count} ficaram de fora.";
|
|
186
|
+
var photoErrorDecode = "Não foi possível ler esta foto. Tente JPG, PNG ou WebP.";
|
|
187
|
+
var photoErrorEncode = "Este navegador não consegue preparar a foto para envio.";
|
|
188
|
+
var photoErrorTooLarge = "A foto continua grande demais mesmo depois de reduzida.";
|
|
166
189
|
var emojiTitle = "Escolher emoji";
|
|
167
190
|
var emojiSearch = "Buscar emoji";
|
|
168
191
|
var emojiCategories = "Categorias de emoji";
|
|
@@ -174,6 +197,12 @@ var emojiNature = "Natureza";
|
|
|
174
197
|
var emojiTravel = "Lugares";
|
|
175
198
|
var emojiObjects = "Objetos";
|
|
176
199
|
var emojiSymbols = "Símbolos";
|
|
200
|
+
var imageOpen = "Ampliar foto {n} de {total}";
|
|
201
|
+
var imageViewer = "Visualizador de fotos";
|
|
202
|
+
var imagePosition = "Foto {n} de {total}";
|
|
203
|
+
var imageCounter = "{n} / {total}";
|
|
204
|
+
var imagePrevious = "Foto anterior";
|
|
205
|
+
var imageNext = "Próxima foto";
|
|
177
206
|
var ptBR = {
|
|
178
207
|
statusDraft: statusDraft,
|
|
179
208
|
statusScheduled: statusScheduled,
|
|
@@ -335,6 +364,29 @@ var ptBR = {
|
|
|
335
364
|
imageUploadFromDevice: imageUploadFromDevice,
|
|
336
365
|
dialogInsert: dialogInsert,
|
|
337
366
|
fileNoneChosen: fileNoneChosen,
|
|
367
|
+
photoDialogTitle: photoDialogTitle,
|
|
368
|
+
photoPickButton: photoPickButton,
|
|
369
|
+
photoDropHint: photoDropHint,
|
|
370
|
+
photoCount: photoCount,
|
|
371
|
+
photoItemLabel: photoItemLabel,
|
|
372
|
+
photoAltLabel: photoAltLabel,
|
|
373
|
+
photoAltWarning: photoAltWarning,
|
|
374
|
+
photoCaptionLabel: photoCaptionLabel,
|
|
375
|
+
photoRemove: photoRemove,
|
|
376
|
+
photoMoveUp: photoMoveUp,
|
|
377
|
+
photoMoveDown: photoMoveDown,
|
|
378
|
+
photoStatusWaiting: photoStatusWaiting,
|
|
379
|
+
photoStatusReducing: photoStatusReducing,
|
|
380
|
+
photoStatusUploading: photoStatusUploading,
|
|
381
|
+
photoStatusDone: photoStatusDone,
|
|
382
|
+
photoStatusError: photoStatusError,
|
|
383
|
+
photoRetry: photoRetry,
|
|
384
|
+
photoSending: photoSending,
|
|
385
|
+
photoNotImage: photoNotImage,
|
|
386
|
+
photoLimitReached: photoLimitReached,
|
|
387
|
+
photoErrorDecode: photoErrorDecode,
|
|
388
|
+
photoErrorEncode: photoErrorEncode,
|
|
389
|
+
photoErrorTooLarge: photoErrorTooLarge,
|
|
338
390
|
emojiTitle: emojiTitle,
|
|
339
391
|
emojiSearch: emojiSearch,
|
|
340
392
|
emojiCategories: emojiCategories,
|
|
@@ -345,7 +397,13 @@ var ptBR = {
|
|
|
345
397
|
emojiNature: emojiNature,
|
|
346
398
|
emojiTravel: emojiTravel,
|
|
347
399
|
emojiObjects: emojiObjects,
|
|
348
|
-
emojiSymbols: emojiSymbols
|
|
400
|
+
emojiSymbols: emojiSymbols,
|
|
401
|
+
imageOpen: imageOpen,
|
|
402
|
+
imageViewer: imageViewer,
|
|
403
|
+
imagePosition: imagePosition,
|
|
404
|
+
imageCounter: imageCounter,
|
|
405
|
+
imagePrevious: imagePrevious,
|
|
406
|
+
imageNext: imageNext
|
|
349
407
|
};
|
|
350
408
|
|
|
351
409
|
/**
|
|
@@ -403,6 +461,11 @@ type ContentAdminApi = {
|
|
|
403
461
|
removeRecurrence?(id: string): Promise<void>;
|
|
404
462
|
/** Ausente: o filtro de tag vira campo livre e o editor não sugere tags. */
|
|
405
463
|
listTags?(): Promise<readonly TagCount[]>;
|
|
464
|
+
/** Upload genérico de foto; ausente, o editor cai em `uploadCoverImage`. */
|
|
465
|
+
uploadImage?(file: File): Promise<{
|
|
466
|
+
readonly url: string;
|
|
467
|
+
readonly key: string;
|
|
468
|
+
}>;
|
|
406
469
|
/** Ausente: a capa é só por URL — sem alvo de upload que sempre falharia. */
|
|
407
470
|
uploadCoverImage?(file: File): Promise<{
|
|
408
471
|
readonly url: string;
|
|
@@ -652,13 +715,17 @@ declare function EmojiPicker({ onPick, onClose }: EmojiPickerProps): react.JSX.E
|
|
|
652
715
|
* `<input type="file">` nativo mostra o idioma do navegador e não aceita estilo).
|
|
653
716
|
*/
|
|
654
717
|
type FilePickerProps = {
|
|
655
|
-
readonly
|
|
656
|
-
|
|
718
|
+
readonly labels: {
|
|
719
|
+
readonly button: string;
|
|
720
|
+
readonly empty: string;
|
|
721
|
+
};
|
|
657
722
|
readonly accept: string;
|
|
658
723
|
readonly isBusy?: boolean;
|
|
659
|
-
|
|
724
|
+
/** Com vários, o `onPick` recebe todos de uma vez e o campo mantém o texto vazio (dica). */
|
|
725
|
+
readonly isMultiple?: boolean;
|
|
726
|
+
readonly onPick: (files: readonly File[]) => void;
|
|
660
727
|
};
|
|
661
|
-
declare function FilePicker({
|
|
728
|
+
declare function FilePicker({ labels, accept, isBusy, isMultiple, onPick }: FilePickerProps): react.JSX.Element;
|
|
662
729
|
|
|
663
730
|
type StatusChipProps = {
|
|
664
731
|
readonly status: PostStatus;
|