@firestitch/block-editor 12.0.0 → 12.1.1

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 (39) hide show
  1. package/app/components/artboard/artboard.component.d.ts +35 -0
  2. package/app/components/block/block.component.d.ts +58 -78
  3. package/app/components/block-editor/block-editor.component.d.ts +27 -37
  4. package/app/components/sidebar/sidebar.component.d.ts +74 -61
  5. package/app/consts/block-types.const.d.ts +12 -0
  6. package/app/consts/index.d.ts +1 -0
  7. package/app/directives/block-editor-margin.directive.d.ts +9 -9
  8. package/app/directives/block-editor-sidebar-panel.directive.d.ts +10 -10
  9. package/app/enums/block-type.enum.d.ts +11 -0
  10. package/app/enums/index.d.ts +1 -0
  11. package/app/fs-block-editor.module.d.ts +26 -22
  12. package/app/interfaces/block-editor-config.d.ts +20 -18
  13. package/app/interfaces/block.d.ts +48 -37
  14. package/app/services/block-editor.service.d.ts +54 -36
  15. package/app/services/index.d.ts +1 -0
  16. package/bundles/firestitch-block-editor.umd.js +1521 -1466
  17. package/bundles/firestitch-block-editor.umd.js.map +1 -1
  18. package/esm2015/app/components/artboard/artboard.component.js +129 -0
  19. package/esm2015/app/components/block/block.component.js +317 -370
  20. package/esm2015/app/components/block-editor/block-editor.component.js +80 -141
  21. package/esm2015/app/components/sidebar/sidebar.component.js +234 -299
  22. package/esm2015/app/consts/block-types.const.js +13 -0
  23. package/esm2015/app/consts/index.js +2 -0
  24. package/esm2015/app/directives/block-editor-margin.directive.js +18 -18
  25. package/esm2015/app/directives/block-editor-sidebar-panel.directive.js +20 -20
  26. package/esm2015/app/enums/block-type.enum.js +13 -0
  27. package/esm2015/app/enums/index.js +2 -0
  28. package/esm2015/app/fs-block-editor.module.js +94 -79
  29. package/esm2015/app/interfaces/block-editor-config.js +2 -2
  30. package/esm2015/app/interfaces/block.js +2 -2
  31. package/esm2015/app/services/block-editor.service.js +230 -99
  32. package/esm2015/app/services/index.js +2 -0
  33. package/esm2015/firestitch-block-editor.js +4 -4
  34. package/esm2015/public_api.js +7 -8
  35. package/fesm2015/firestitch-block-editor.js +1072 -974
  36. package/fesm2015/firestitch-block-editor.js.map +1 -1
  37. package/firestitch-block-editor.d.ts +5 -5
  38. package/package.json +3 -6
  39. package/public_api.d.ts +8 -6
@@ -1,36 +1,54 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import { Block } from './../interfaces/block';
3
- import { FsBlockComponent } from '../components/block/block.component';
4
- import { BlockEditorConfig } from '../interfaces/block-editor-config';
5
- import * as i0 from "@angular/core";
6
- export declare class BlockEditorService {
7
- container: any;
8
- margin: any;
9
- blockComponents: FsBlockComponent[];
10
- config: BlockEditorConfig;
11
- private _blocks$;
12
- private _selectionRange;
13
- private _selectedBlockComponents$;
14
- constructor();
15
- get elementGuidelines(): any[];
16
- addBlock(block: Block<any>): void;
17
- removeBlock(block: Block<any>): void;
18
- get blocks$(): BehaviorSubject<any[]>;
19
- get blocks(): any[];
20
- set blocks(blocks: any[]);
21
- isSelectedBlock(block: any): boolean;
22
- indexOf(block: any): number;
23
- set selectedBlockComponents(blocks: FsBlockComponent[]);
24
- get selectedBlockComponents(): FsBlockComponent[];
25
- get selectedBlocks(): Block<any>[];
26
- get selectedBlockComponents$(): BehaviorSubject<FsBlockComponent[]>;
27
- saveSelection(): void;
28
- restoreSelection(): void;
29
- hasSelectionRange(): boolean;
30
- registerBlock(block: FsBlockComponent): void;
31
- registerContainer(container: any): void;
32
- registerMargin(margin: any): void;
33
- sanitizeBlock(block: any): any;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<BlockEditorService, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<BlockEditorService>;
36
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable, Subject } from 'rxjs';
3
+ import { Block } from './../interfaces/block';
4
+ import { FsBlockComponent } from '../components/block/block.component';
5
+ import { BlockEditorConfig } from '../interfaces/block-editor-config';
6
+ import { FsFile } from '@firestitch/file';
7
+ import * as i0 from "@angular/core";
8
+ export declare class BlockEditorService implements OnDestroy {
9
+ container: any;
10
+ margin: any;
11
+ config: BlockEditorConfig;
12
+ private _blockChanged$;
13
+ private _blockRemoved$;
14
+ private _blockAdded$;
15
+ private _blocks$;
16
+ private _selectedBlocks$;
17
+ private _selectionRange;
18
+ private _blockComponents;
19
+ private _destroy$;
20
+ get elementGuidelines(): any[];
21
+ get blockComponents(): FsBlockComponent[];
22
+ get selectedComponentBlocks(): FsBlockComponent[];
23
+ blockUpload(block: Block, fsFile: FsFile): void;
24
+ blockAdd(block: Block<any>): void;
25
+ private _updateIndexesFor;
26
+ removeBlock(block: Block<any>): void;
27
+ removeSelectedBlocks(): void;
28
+ get blocks$(): Observable<Block[]>;
29
+ get blockChanged$(): Subject<any>;
30
+ get blockRemoved$(): Subject<any>;
31
+ get blockAdded$(): Subject<any>;
32
+ blockChange(block: any): void;
33
+ get blocks(): Block[];
34
+ set blocks(blocks: Block[]);
35
+ isSelectedBlock(block: any): boolean;
36
+ indexOf(block: any): number;
37
+ selectedBlockComponentChangeProperty(value: any, name: any): void;
38
+ get selectedBlocks$(): Observable<Block<any>[]>;
39
+ set selectedBlock(block: Block<any>);
40
+ set selectedBlocks(blocks: Block<any>[]);
41
+ get selectedBlocks(): Block<any>[];
42
+ saveSelection(): void;
43
+ restoreSelection(): void;
44
+ hasSelectionRange(): boolean;
45
+ registerBlock(block: Block, blockComponent: FsBlockComponent): void;
46
+ unregisterBlock(block: Block): void;
47
+ registerContainer(container: any): void;
48
+ registerMargin(margin: any): void;
49
+ sanitizeNewBlock(block: any): any;
50
+ sanitizeBlock(block: any): any;
51
+ ngOnDestroy(): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<BlockEditorService, never>;
53
+ static ɵprov: i0.ɵɵInjectableDeclaration<BlockEditorService>;
54
+ }
@@ -0,0 +1 @@
1
+ export * from './block-editor.service';