@clepit/core 0.6.0-beta.396 → 0.6.0-beta.397
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/core/labels.d.ts +3 -0
- package/dist/core/managers/block/css.d.ts +1 -1
- package/dist/core/managers/block/index.d.ts +1 -0
- package/dist/core/store.d.ts +1 -0
- package/dist/core/toolbars/block/index.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/tools/block/openapi/input.d.ts +1 -1
- package/dist/tools/block/typeset/input.d.ts +2 -2
- package/dist/types.d.ts +6 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { InputConfig, OpenApiData } from '../../../types';
|
|
|
2
2
|
export declare class OpenApiInput {
|
|
3
3
|
static placeholder: string;
|
|
4
4
|
private static dataMap;
|
|
5
|
-
static render(
|
|
5
|
+
static render(containerId: string, data?: OpenApiData, _config?: InputConfig<'openapi'>): HTMLElement;
|
|
6
6
|
static save(element: HTMLElement): OpenApiData;
|
|
7
7
|
static isEmpty(blockElement: HTMLElement): boolean;
|
|
8
8
|
static isEmptyData(data: OpenApiData): boolean;
|
|
@@ -2,7 +2,7 @@ import { InputConfig, TypesetData } from '../../../types';
|
|
|
2
2
|
export declare class LatexInput {
|
|
3
3
|
static placeholder: string;
|
|
4
4
|
static save(element: HTMLElement): TypesetData;
|
|
5
|
-
static render(
|
|
5
|
+
static render(containerId: string, data?: TypesetData, config?: InputConfig<'latex'>): HTMLElement;
|
|
6
6
|
static isEmpty(blockElement: HTMLElement): boolean;
|
|
7
7
|
static isEmptyData(data: TypesetData): boolean;
|
|
8
8
|
static destroy(_containerId: string): void;
|
|
@@ -10,7 +10,7 @@ export declare class LatexInput {
|
|
|
10
10
|
export declare class MermaidInput {
|
|
11
11
|
static placeholder: string;
|
|
12
12
|
static save(element: HTMLElement): TypesetData;
|
|
13
|
-
static render(
|
|
13
|
+
static render(containerId: string, data?: TypesetData, config?: InputConfig<'mermaid'>): HTMLElement;
|
|
14
14
|
static isEmpty(blockElement: HTMLElement): boolean;
|
|
15
15
|
static isEmptyData(data: TypesetData): boolean;
|
|
16
16
|
static destroy(_containerId: string): void;
|
package/dist/types.d.ts
CHANGED
|
@@ -982,6 +982,8 @@ export type EditorConfig = {
|
|
|
982
982
|
initialData?: EditorData;
|
|
983
983
|
initialView?: EditorView;
|
|
984
984
|
allowJsonViewEditing?: boolean;
|
|
985
|
+
hasViewSwitcher?: boolean;
|
|
986
|
+
hasDocumentActions?: boolean;
|
|
985
987
|
margins?: BlockMargins;
|
|
986
988
|
styles?: EditorStyles;
|
|
987
989
|
classNames?: EditorClassNames;
|
|
@@ -999,6 +1001,7 @@ export type EditorConfig = {
|
|
|
999
1001
|
inlineRewriteTooltip?: string;
|
|
1000
1002
|
blockToolLabels?: Partial<Record<BlockToolType, string>>;
|
|
1001
1003
|
blockToolbarLabels?: Partial<Record<BlockToolbarLabel, string>>;
|
|
1004
|
+
controlLabels?: Partial<Record<ControlLabel, string>>;
|
|
1002
1005
|
resolveLink?: (url: string) => Promise<Partial<EmbedData>>;
|
|
1003
1006
|
onEmbedAction?: (action: EmbedAction, blockId: string) => void;
|
|
1004
1007
|
disabledEmbedProviders?: readonly string[];
|
|
@@ -1015,8 +1018,10 @@ export type EditorConfig = {
|
|
|
1015
1018
|
};
|
|
1016
1019
|
export declare const BLOCK_TOOLBAR_OPERATIONS: readonly ["convert", "moveUp", "moveDown", "delete"];
|
|
1017
1020
|
export type BlockToolbarOperation = (typeof BLOCK_TOOLBAR_OPERATIONS)[number];
|
|
1018
|
-
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"];
|
|
1021
|
+
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"];
|
|
1019
1022
|
export type BlockMenuLabel = (typeof BLOCK_MENU_LABELS)[number];
|
|
1023
|
+
export declare const CONTROL_LABELS: readonly ["editView", "previewView", "jsonView", "copyJson", "downloadJson", "clearEditor"];
|
|
1024
|
+
export type ControlLabel = (typeof CONTROL_LABELS)[number];
|
|
1020
1025
|
export type BlockToolbarLabel = BlockToolbarOperation | BlockMenuLabel;
|
|
1021
1026
|
export declare const INLINE_REWRITE_ACTIONS: readonly ["improve", "shorten", "lengthen", "simplify", "fix_grammar"];
|
|
1022
1027
|
export type InlineRewriteAction = (typeof INLINE_REWRITE_ACTIONS)[number];
|
package/package.json
CHANGED