@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.
Files changed (46) hide show
  1. package/assets/i18n/en.json +1 -1
  2. package/assets/i18n/fr.json +1 -1
  3. package/bundles/wizishop-wizi-block.umd.js +602 -385
  4. package/bundles/wizishop-wizi-block.umd.js.map +1 -1
  5. package/bundles/wizishop-wizi-block.umd.min.js +1 -1
  6. package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
  7. package/esm2015/lib/components/configs/configs.component.js +2 -2
  8. package/esm2015/lib/dtos/blocks/parent-block.dto.js +3 -2
  9. package/esm2015/lib/dtos/blocks/witness/witness-background-one.dto.js +2 -2
  10. package/esm2015/lib/dtos/forms/forms.dto.js +2 -2
  11. package/esm2015/lib/shared/components/editorjs/editorjs.component.js +27 -7
  12. package/esm2015/lib/shared/components/editorjs/tools/inline/link-tool.component.js +76 -15
  13. package/esm2015/lib/shared/components/editorjs/tools/inline/text-background-color-tool.component.js +5 -7
  14. package/esm2015/lib/shared/components/editorjs/tools/inline/text-color-tool.component.js +4 -2
  15. package/esm2015/lib/shared/components/editorjs/tools/inline/text-size-tool.component.js +4 -3
  16. package/esm2015/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.js +51 -20
  17. package/esm2015/lib/shared/components/editorjs/tools/paragraph/text-type-tool.component.js +3 -2
  18. package/esm2015/lib/shared/components/editorjs/tools/paragraph/tool-type/paragraph-style-tool.component.js +35 -7
  19. package/esm2015/lib/shared/components/editorjs/tools/paragraph/tool-type/text-edition.component.js +5 -6
  20. package/esm2015/lib/shared/components/editorjs/tools/utils/editorjs-conversion.service.js +13 -1
  21. package/esm2015/lib/shared/components/editorjs/tools/utils/editorjs-tool.component.js +35 -2
  22. package/esm2015/lib/shared/components/editorjs/tools/utils/editorjs-translation.service.js +20 -0
  23. package/esm2015/lib/structures/text-backgrounds/four-rows-icon-text/text-backgrounds-four-rows-icon-text.component.js +7 -2
  24. package/esm2015/lib/structures/text-backgrounds/three-rows-icon-text/text-backgrounds-three-rows-icon-text.component.js +2 -2
  25. package/esm2015/lib/structures/text-backgrounds/two-rows-icon-text/text-backgrounds-two-rows-icon-text.component.js +2 -2
  26. package/esm2015/lib/structures/texts/quadruple-numbers/texts-quadruple-numbers.component.js +2 -2
  27. package/esm2015/lib/structures/timer/airport/timer-airport.component.js +2 -2
  28. package/esm2015/lib/structures/timer/background/timer-background.component.js +2 -2
  29. package/esm2015/lib/structures/timer/clock/timer-clock.component.js +2 -2
  30. package/esm2015/lib/structures/timer/multiple-img/timer-multiple-img.component.js +2 -2
  31. package/esm2015/lib/structures/timer/simple/timer-simple.component.js +2 -2
  32. package/esm2015/lib/wizi-block.component.js +4 -4
  33. package/esm2015/wizishop-wizi-block.js +227 -226
  34. package/fesm2015/wizishop-wizi-block.js +276 -74
  35. package/fesm2015/wizishop-wizi-block.js.map +1 -1
  36. package/lib/shared/components/editorjs/editorjs.component.d.ts +5 -1
  37. package/lib/shared/components/editorjs/tools/inline/link-tool.component.d.ts +1 -0
  38. package/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.d.ts +2 -2
  39. package/lib/shared/components/editorjs/tools/paragraph/tool-type/paragraph-style-tool.component.d.ts +5 -0
  40. package/lib/shared/components/editorjs/tools/utils/editorjs-tool.component.d.ts +2 -0
  41. package/lib/shared/components/editorjs/tools/utils/editorjs-translation.service.d.ts +7 -0
  42. package/lib/structures/text-backgrounds/four-rows-icon-text/text-backgrounds-four-rows-icon-text.component.d.ts +1 -0
  43. package/package.json +1 -1
  44. package/wizi-block.scss +2133 -1869
  45. package/wizishop-wizi-block.d.ts +226 -225
  46. 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;
@@ -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;
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { I18nConfig } from '@editorjs/editorjs';
2
+ export declare var editorJSI18nDictionnary: I18nConfig;
3
+ export declare class EditorJSTranslationService {
4
+ constructor();
5
+ setDictionnary(dictionnary: I18nConfig): void;
6
+ get(key: string): string;
7
+ }
@@ -22,4 +22,5 @@ export declare class TextBackgroundsFourRowsIconTextComponent extends Structures
22
22
  addNewImage(row: any, column: any): void;
23
23
  addBackgroundImageMedia(media: any): void;
24
24
  stopPropagation($event: any): void;
25
+ triggerConfig(uuid: any): void;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/wizi-block",
3
- "version": "4.2.2-beta",
3
+ "version": "4.2.23-beta",
4
4
  "description": "## To use WiziBlock, you have to :",
5
5
  "repository": {
6
6
  "type": "git",