@wizishop/wizi-block 4.2.2-beta → 4.2.23-beta
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/assets/i18n/en.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/bundles/wizishop-wizi-block.umd.js +602 -385
- package/bundles/wizishop-wizi-block.umd.js.map +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js +1 -1
- package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
- package/esm2015/lib/components/configs/configs.component.js +2 -2
- package/esm2015/lib/dtos/blocks/parent-block.dto.js +3 -2
- package/esm2015/lib/dtos/blocks/witness/witness-background-one.dto.js +2 -2
- package/esm2015/lib/dtos/forms/forms.dto.js +2 -2
- package/esm2015/lib/shared/components/editorjs/editorjs.component.js +27 -7
- package/esm2015/lib/shared/components/editorjs/tools/inline/link-tool.component.js +76 -15
- package/esm2015/lib/shared/components/editorjs/tools/inline/text-background-color-tool.component.js +5 -7
- package/esm2015/lib/shared/components/editorjs/tools/inline/text-color-tool.component.js +4 -2
- package/esm2015/lib/shared/components/editorjs/tools/inline/text-size-tool.component.js +4 -3
- package/esm2015/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.js +51 -20
- package/esm2015/lib/shared/components/editorjs/tools/paragraph/text-type-tool.component.js +3 -2
- package/esm2015/lib/shared/components/editorjs/tools/paragraph/tool-type/paragraph-style-tool.component.js +35 -7
- package/esm2015/lib/shared/components/editorjs/tools/paragraph/tool-type/text-edition.component.js +5 -6
- package/esm2015/lib/shared/components/editorjs/tools/utils/editorjs-conversion.service.js +13 -1
- package/esm2015/lib/shared/components/editorjs/tools/utils/editorjs-tool.component.js +35 -2
- package/esm2015/lib/shared/components/editorjs/tools/utils/editorjs-translation.service.js +20 -0
- package/esm2015/lib/structures/text-backgrounds/four-rows-icon-text/text-backgrounds-four-rows-icon-text.component.js +7 -2
- package/esm2015/lib/structures/text-backgrounds/three-rows-icon-text/text-backgrounds-three-rows-icon-text.component.js +2 -2
- package/esm2015/lib/structures/text-backgrounds/two-rows-icon-text/text-backgrounds-two-rows-icon-text.component.js +2 -2
- package/esm2015/lib/structures/texts/quadruple-numbers/texts-quadruple-numbers.component.js +2 -2
- package/esm2015/lib/structures/timer/airport/timer-airport.component.js +2 -2
- package/esm2015/lib/structures/timer/background/timer-background.component.js +2 -2
- package/esm2015/lib/structures/timer/clock/timer-clock.component.js +2 -2
- package/esm2015/lib/structures/timer/multiple-img/timer-multiple-img.component.js +2 -2
- package/esm2015/lib/structures/timer/simple/timer-simple.component.js +2 -2
- package/esm2015/lib/wizi-block.component.js +4 -4
- package/esm2015/wizishop-wizi-block.js +227 -226
- package/fesm2015/wizishop-wizi-block.js +276 -74
- package/fesm2015/wizishop-wizi-block.js.map +1 -1
- package/lib/shared/components/editorjs/editorjs.component.d.ts +5 -1
- package/lib/shared/components/editorjs/tools/inline/link-tool.component.d.ts +1 -0
- package/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.d.ts +2 -2
- package/lib/shared/components/editorjs/tools/paragraph/tool-type/paragraph-style-tool.component.d.ts +5 -0
- package/lib/shared/components/editorjs/tools/utils/editorjs-tool.component.d.ts +2 -0
- package/lib/shared/components/editorjs/tools/utils/editorjs-translation.service.d.ts +7 -0
- package/lib/structures/text-backgrounds/four-rows-icon-text/text-backgrounds-four-rows-icon-text.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizi-block.scss +2133 -1869
- package/wizishop-wizi-block.d.ts +226 -225
- package/wizishop-wizi-block.metadata.json +1 -1
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { EditorJSConversionService } from './tools/utils/editorjs-conversion.service';
|
|
4
|
+
import { EditorJSTranslationService } from './tools/utils/editorjs-translation.service';
|
|
4
5
|
export declare class EditorJsComponent implements OnInit, OnDestroy {
|
|
5
6
|
private translateService;
|
|
6
7
|
private editorJSConversionService;
|
|
8
|
+
private editorJSTranslationService;
|
|
7
9
|
contentChange: EventEmitter<any>;
|
|
8
10
|
content: string;
|
|
9
11
|
placeholder: string;
|
|
12
|
+
position: 'top' | 'bottom';
|
|
10
13
|
editor: any;
|
|
11
14
|
uuid: any;
|
|
12
15
|
timeoutHandle: any;
|
|
13
16
|
timeoutTextEditionHandle: any;
|
|
17
|
+
onChangeTimeoutHandle: any;
|
|
14
18
|
wrapperTags: string;
|
|
15
|
-
constructor(translateService: TranslateService, editorJSConversionService: EditorJSConversionService);
|
|
19
|
+
constructor(translateService: TranslateService, editorJSConversionService: EditorJSConversionService, editorJSTranslationService: EditorJSTranslationService);
|
|
16
20
|
ngOnInit(): Promise<void>;
|
|
17
21
|
ngOnDestroy(): void;
|
|
18
22
|
handleDefaultContentTranslation(): void;
|
|
@@ -32,6 +32,7 @@ export declare class LinkTool extends InlineStyleTool implements InlineTool {
|
|
|
32
32
|
surround(range: Range, applyLink?: boolean): Promise<void>;
|
|
33
33
|
checkState(selection: any): boolean;
|
|
34
34
|
applyLink(): Promise<void>;
|
|
35
|
+
deleteLink(): Promise<void>;
|
|
35
36
|
renderActions(): HTMLDivElement;
|
|
36
37
|
showActions(mark: any): void;
|
|
37
38
|
hideActions(): void;
|
package/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AttributeObject, EditorJSTool, StyleObject } from '../../utils/editorjs-tool.component';
|
|
2
2
|
export declare abstract class InlineStyleTool extends EditorJSTool {
|
|
3
3
|
tag: string;
|
|
4
|
-
containers: string;
|
|
5
4
|
modifiers: string;
|
|
6
5
|
style?: StyleObject;
|
|
7
6
|
foundAnchorOffset: number;
|
|
@@ -23,8 +22,9 @@ export declare abstract class InlineStyleTool extends EditorJSTool {
|
|
|
23
22
|
execCommandStyle(action: string): Promise<void>;
|
|
24
23
|
private updateSelection;
|
|
25
24
|
private replaceSelection;
|
|
25
|
+
private replaceLink;
|
|
26
26
|
private isAnchorBeforeFocus;
|
|
27
|
-
hasStyle(element: HTMLElement): HTMLElement | null;
|
|
27
|
+
hasStyle(element: HTMLElement, firstTimeCall?: boolean): HTMLElement | null;
|
|
28
28
|
private getStyleValue;
|
|
29
29
|
private findStyleNode;
|
|
30
30
|
private createElement;
|
package/lib/shared/components/editorjs/tools/paragraph/tool-type/paragraph-style-tool.component.d.ts
CHANGED
|
@@ -11,7 +11,12 @@ export declare abstract class ParagraphStyleTool extends EditorJSTool {
|
|
|
11
11
|
execCommandStyle(action: string): Promise<void>;
|
|
12
12
|
private checkOrderedListValue;
|
|
13
13
|
private checkFollowingList;
|
|
14
|
+
private getCurrentParagraph;
|
|
14
15
|
private changeContainerTag;
|
|
15
16
|
private changeCurrentClass;
|
|
16
17
|
findParentModifier(element: HTMLElement): HTMLElement | null;
|
|
17
18
|
}
|
|
19
|
+
export declare var listApi: any;
|
|
20
|
+
export declare var listEditor: any;
|
|
21
|
+
export declare function setlistApiEditor(api: any, editor: any): void;
|
|
22
|
+
export declare function onEditList(event: KeyboardEvent): void;
|
|
@@ -11,6 +11,7 @@ export declare class AttributeObject {
|
|
|
11
11
|
}
|
|
12
12
|
export declare abstract class EditorJSTool {
|
|
13
13
|
parentEditor: HTMLDivElement;
|
|
14
|
+
textContainers: string;
|
|
14
15
|
currentSelection?: Selection;
|
|
15
16
|
selectedAnchorNode: Node;
|
|
16
17
|
selectedFocusNode: Node;
|
|
@@ -24,6 +25,7 @@ export declare abstract class EditorJSTool {
|
|
|
24
25
|
resetUserSelection(): void;
|
|
25
26
|
findParentEditor(): HTMLDivElement | null;
|
|
26
27
|
clear(): void;
|
|
28
|
+
private getTextNodes;
|
|
27
29
|
}
|
|
28
30
|
export declare var isTextEditionTool: boolean;
|
|
29
31
|
export declare var isBlockFocused: boolean;
|