@clepit/core 0.6.0-beta.407 → 0.6.0-beta.409

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.
@@ -12,7 +12,10 @@ export declare class ImageInput {
12
12
  private static handleFileSelect;
13
13
  private static isValidImageFile;
14
14
  private static processImageFile;
15
+ private static showRefusal;
15
16
  private static showLoading;
17
+ private static showUploadFailed;
18
+ private static showInvalidType;
16
19
  private static showError;
17
20
  static setAlignment(block: HTMLElement, alignment: Alignment): void;
18
21
  static isEmpty(blockElement: HTMLElement): boolean;
package/dist/types.d.ts CHANGED
@@ -923,6 +923,15 @@ export interface BlockTune {
923
923
  save: (element: HTMLElement) => BlockTuneData;
924
924
  }
925
925
  export type UploadFunction = (file: File) => Promise<string>;
926
+ export type UploadNotice = {
927
+ action?: {
928
+ href: string;
929
+ label: string;
930
+ };
931
+ body: string;
932
+ remove: string;
933
+ title: string;
934
+ };
926
935
  /**
927
936
  * One tune's value.
928
937
  *
@@ -1020,7 +1029,7 @@ export type EditorConfig = {
1020
1029
  };
1021
1030
  export declare const BLOCK_TOOLBAR_OPERATIONS: readonly ["convert", "moveUp", "moveDown", "delete"];
1022
1031
  export type BlockToolbarOperation = (typeof BLOCK_TOOLBAR_OPERATIONS)[number];
1023
- export declare const BLOCK_MENU_LABELS: readonly ["searchBlocks", "searchOperations", "searchConvertOptions", "searchLanguages", "searchThemes", "noBlockTypesFound", "noOperationsFound", "noConvertOptionsFound", "alignLeft", "alignCenter", "alignRight", "codeLanguage", "codeTheme", "headingH1", "headingH2", "headingH3", "headingH4", "headingH5", "headingH6", "listUnordered", "listOrdered", "variantInfo", "variantWarning", "variantError", "variantSuccess", "variantPlain", "delimiterLine", "delimiterStars", "embedShowLive", "embedShowCard", "embedShowLink", "embedCopyLink", "embedShowChip", "alertTextHint", "checklistItemHint", "codeHint", "collapsibleTitleHint", "glanceLabelHint", "glanceValueHint", "headerHint", "listItemHint", "mediaCaptionHint", "openApiSourceHint", "quoteAuthorHint", "quoteBodyHint", "tableCaptionHint", "tableCellHint", "tableHeaderHint", "diagramTitleHint", "formulaTitleHint"];
1032
+ export declare const BLOCK_MENU_LABELS: readonly ["searchBlocks", "searchOperations", "searchConvertOptions", "searchLanguages", "searchThemes", "noBlockTypesFound", "noOperationsFound", "noConvertOptionsFound", "alignLeft", "alignCenter", "alignRight", "codeLanguage", "codeTheme", "headingH1", "headingH2", "headingH3", "headingH4", "headingH5", "headingH6", "listUnordered", "listOrdered", "variantInfo", "variantWarning", "variantError", "variantSuccess", "variantPlain", "delimiterLine", "delimiterStars", "embedShowLive", "embedShowCard", "embedShowLink", "embedCopyLink", "embedShowChip", "alertTextHint", "checklistItemHint", "codeHint", "collapsibleTitleHint", "glanceLabelHint", "glanceValueHint", "headerHint", "listItemHint", "mediaCaptionHint", "openApiSourceHint", "quoteAuthorHint", "quoteBodyHint", "tableCaptionHint", "tableCellHint", "tableHeaderHint", "diagramTitleHint", "formulaTitleHint", "imageDropTitle", "imageDropAction", "imageDropFormats", "imageUploading", "imageUploadFailed", "imageInvalidType"];
1024
1033
  export type BlockMenuLabel = (typeof BLOCK_MENU_LABELS)[number];
1025
1034
  export declare const CONTROL_LABELS: readonly ["editView", "previewView", "jsonView", "copyJson", "downloadJson", "clearEditor"];
1026
1035
  export type ControlLabel = (typeof CONTROL_LABELS)[number];
package/package.json CHANGED
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "sideEffects": false,
55
55
  "types": "dist/index.d.ts",
56
- "version": "0.6.0-beta.407"
56
+ "version": "0.6.0-beta.409"
57
57
  }