@wizishop/wizi-block 4.2.32-beta → 4.2.33-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 (40) hide show
  1. package/bundles/wizishop-wizi-block.umd.js +118 -103
  2. package/bundles/wizishop-wizi-block.umd.js.map +1 -1
  3. package/bundles/wizishop-wizi-block.umd.min.js +1 -1
  4. package/bundles/wizishop-wizi-block.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/editorjs/editorjs.component.js +21 -12
  6. package/esm2015/lib/shared/components/editorjs/tools/inline/bold-tool.component.js +1 -1
  7. package/esm2015/lib/shared/components/editorjs/tools/inline/capitalize-tool.component.js +1 -1
  8. package/esm2015/lib/shared/components/editorjs/tools/inline/italic-tool.component.js +1 -1
  9. package/esm2015/lib/shared/components/editorjs/tools/inline/link-tool.component.js +1 -1
  10. package/esm2015/lib/shared/components/editorjs/tools/inline/strike-tool.component.js +1 -1
  11. package/esm2015/lib/shared/components/editorjs/tools/inline/subscript-tool.component.js +1 -1
  12. package/esm2015/lib/shared/components/editorjs/tools/inline/superscript-tool.component.js +1 -1
  13. package/esm2015/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.js +100 -64
  14. package/esm2015/lib/shared/components/editorjs/tools/inline/tool-type/text-tool.component.js +1 -18
  15. package/esm2015/lib/shared/components/editorjs/tools/inline/underline-tool.component.js +1 -1
  16. package/esm2015/lib/shared/components/editorjs/tools/paragraph/ordered-list-tool.component.js +2 -2
  17. package/esm2015/lib/shared/components/editorjs/tools/paragraph/quote-tool.component.js +2 -2
  18. package/esm2015/lib/shared/components/editorjs/tools/paragraph/text-align-tool.component.js +2 -2
  19. package/esm2015/lib/shared/components/editorjs/tools/paragraph/text-type-tool.component.js +2 -2
  20. package/esm2015/lib/shared/components/editorjs/tools/paragraph/tool-type/paragraph-style-tool.component.js +2 -18
  21. package/esm2015/lib/shared/components/editorjs/tools/paragraph/tool-type/text-edition.component.js +1 -1
  22. package/esm2015/lib/shared/components/editorjs/tools/paragraph/unordered-list-tool.component.js +2 -2
  23. package/esm2015/lib/shared/components/editorjs/tools/utils/editorjs-tool.component.js +8 -1
  24. package/fesm2015/wizishop-wizi-block.js +132 -113
  25. package/fesm2015/wizishop-wizi-block.js.map +1 -1
  26. package/lib/shared/components/editorjs/editorjs.component.d.ts +1 -0
  27. package/lib/shared/components/editorjs/tools/inline/bold-tool.component.d.ts +1 -1
  28. package/lib/shared/components/editorjs/tools/inline/capitalize-tool.component.d.ts +1 -1
  29. package/lib/shared/components/editorjs/tools/inline/italic-tool.component.d.ts +1 -1
  30. package/lib/shared/components/editorjs/tools/inline/link-tool.component.d.ts +1 -1
  31. package/lib/shared/components/editorjs/tools/inline/strike-tool.component.d.ts +1 -1
  32. package/lib/shared/components/editorjs/tools/inline/subscript-tool.component.d.ts +1 -1
  33. package/lib/shared/components/editorjs/tools/inline/superscript-tool.component.d.ts +1 -1
  34. package/lib/shared/components/editorjs/tools/inline/tool-type/inline-style-tool.component.d.ts +2 -0
  35. package/lib/shared/components/editorjs/tools/inline/tool-type/text-tool.component.d.ts +0 -1
  36. package/lib/shared/components/editorjs/tools/inline/underline-tool.component.d.ts +1 -1
  37. package/lib/shared/components/editorjs/tools/paragraph/tool-type/paragraph-style-tool.component.d.ts +0 -1
  38. package/lib/shared/components/editorjs/tools/utils/editorjs-tool.component.d.ts +2 -0
  39. package/package.json +1 -1
  40. package/wizishop-wizi-block.metadata.json +1 -1
@@ -15,6 +15,7 @@ export declare class EditorJsComponent implements OnInit, OnDestroy {
15
15
  timeoutHandle: any;
16
16
  timeoutTextEditionHandle: any;
17
17
  onChangeTimeoutHandle: any;
18
+ editorInitialized: boolean;
18
19
  wrapperTags: string;
19
20
  constructor(translateService: TranslateService, editorJSConversionService: EditorJSConversionService, editorJSTranslationService: EditorJSTranslationService);
20
21
  ngOnInit(): Promise<void>;
@@ -5,7 +5,7 @@ export declare class BoldTool extends InlineStyleTool implements InlineTool {
5
5
  private readonly commandName;
6
6
  private readonly CSS;
7
7
  private nodes;
8
- private api;
8
+ api: any;
9
9
  private _state;
10
10
  tag: string;
11
11
  hasSeparatorBefore: boolean;
@@ -6,7 +6,7 @@ export declare class CapitalizeTool extends InlineStyleTool implements InlineToo
6
6
  private readonly commandName;
7
7
  private readonly CSS;
8
8
  private nodes;
9
- private api;
9
+ api: any;
10
10
  private _state;
11
11
  tag: string;
12
12
  style: StyleObject;
@@ -5,7 +5,7 @@ export declare class ItalicTool extends InlineStyleTool implements InlineTool {
5
5
  private readonly commandName;
6
6
  private readonly CSS;
7
7
  private nodes;
8
- private api;
8
+ api: any;
9
9
  private _state;
10
10
  tag: string;
11
11
  modifies: {
@@ -6,7 +6,7 @@ export declare class LinkTool extends InlineStyleTool implements InlineTool {
6
6
  private readonly commandName;
7
7
  private readonly CSS;
8
8
  private nodes;
9
- private api;
9
+ api: any;
10
10
  private _state;
11
11
  tag: string;
12
12
  hasSeparatorBefore: boolean;
@@ -5,7 +5,7 @@ export declare class StrikeTool extends InlineStyleTool implements InlineTool {
5
5
  private readonly commandName;
6
6
  private readonly CSS;
7
7
  private nodes;
8
- private api;
8
+ api: any;
9
9
  private _state;
10
10
  tag: string;
11
11
  modifies: {
@@ -5,7 +5,7 @@ export declare class SubscriptTool extends InlineStyleTool implements InlineTool
5
5
  private readonly commandName;
6
6
  private readonly CSS;
7
7
  private nodes;
8
- private api;
8
+ api: any;
9
9
  private _state;
10
10
  tag: string;
11
11
  modifies: {
@@ -5,7 +5,7 @@ export declare class SuperscriptTool extends InlineStyleTool implements InlineTo
5
5
  private readonly commandName;
6
6
  private readonly CSS;
7
7
  private nodes;
8
- private api;
8
+ api: any;
9
9
  private _state;
10
10
  tag: string;
11
11
  modifies: {
@@ -30,9 +30,11 @@ export declare abstract class InlineStyleTool extends EditorJSTool {
30
30
  private findStyleNode;
31
31
  private createElement;
32
32
  private removeChildrenClasses;
33
+ parentHasStyle(currentElement: HTMLElement, referenceElement: HTMLElement): boolean;
33
34
  private cleanupContainer;
34
35
  private hasNoAttributes;
35
36
  private identicalClassList;
37
+ private identicalAttributes;
36
38
  private identicalInlineStyle;
37
39
  private sortInlineStyle;
38
40
  private getInlineStyle;
@@ -17,5 +17,4 @@ export declare abstract class InlineTextTool extends InlineStyleTool {
17
17
  saveUserSelection(): void;
18
18
  resetUserSelection(): void;
19
19
  isDropdownFocusedOut($event: any): boolean;
20
- findParentModifier(element: HTMLElement): HTMLElement | null;
21
20
  }
@@ -6,7 +6,7 @@ export declare class UnderlineTool extends InlineStyleTool implements InlineTool
6
6
  private readonly commandName;
7
7
  private readonly CSS;
8
8
  private nodes;
9
- private api;
9
+ api: any;
10
10
  private _state;
11
11
  tag: string;
12
12
  style: StyleObject;
@@ -14,7 +14,6 @@ export declare abstract class ParagraphStyleTool extends EditorJSTool {
14
14
  private getCurrentParagraph;
15
15
  private changeContainerTag;
16
16
  private changeCurrentClass;
17
- findParentModifier(element: HTMLElement): HTMLElement | null;
18
17
  }
19
18
  export declare var listApi: any;
20
19
  export declare var listEditor: any;
@@ -10,6 +10,7 @@ export declare class AttributeObject {
10
10
  value: string;
11
11
  }
12
12
  export declare abstract class EditorJSTool {
13
+ api: any;
13
14
  parentEditor: HTMLDivElement;
14
15
  textContainers: string;
15
16
  currentSelection?: Selection;
@@ -25,6 +26,7 @@ export declare abstract class EditorJSTool {
25
26
  resetUserSelection(): void;
26
27
  collapseSelection(): void;
27
28
  findParentEditor(): HTMLDivElement | null;
29
+ findParentModifier(): HTMLElement | null;
28
30
  clear(): void;
29
31
  private getTextNodes;
30
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wizishop/wizi-block",
3
- "version": "4.2.32-beta",
3
+ "version": "4.2.33-beta",
4
4
  "description": "## To use WiziBlock, you have to :",
5
5
  "repository": {
6
6
  "type": "git",