@firestitch/block-editor 12.3.34 → 12.3.35
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/app/components/sidebar/sidebar.component.d.ts +3 -3
- package/bundles/firestitch-block-editor.umd.js +4 -3
- package/bundles/firestitch-block-editor.umd.js.map +1 -1
- package/esm2015/app/components/sidebar/sidebar.component.js +9 -8
- package/fesm2015/firestitch-block-editor.js +4 -3
- package/fesm2015/firestitch-block-editor.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { FsClipboard } from '@firestitch/clipboard';
|
|
4
|
-
import { FsFile } from '@firestitch/file';
|
|
5
2
|
import { FormControl } from '@angular/forms';
|
|
6
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { FsClipboard } from '@firestitch/clipboard';
|
|
5
|
+
import { FsFile } from '@firestitch/file';
|
|
7
6
|
import { FsMessage } from '@firestitch/message';
|
|
8
7
|
import { FsPrompt } from '@firestitch/prompt';
|
|
9
8
|
import { FsZoomPanComponent } from '@firestitch/zoom-pan';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
10
|
import { FsBlockEditorSidebarPanelDirective } from '../../directives';
|
|
11
11
|
import { BlockType } from '../../enums';
|
|
12
12
|
import { Block, BlockGroup } from '../../interfaces';
|
|
@@ -1824,7 +1824,7 @@
|
|
|
1824
1824
|
block: this.block,
|
|
1825
1825
|
blockEditor: this._blockEditor,
|
|
1826
1826
|
blockGroup: blockGroup,
|
|
1827
|
-
}
|
|
1827
|
+
},
|
|
1828
1828
|
})
|
|
1829
1829
|
.afterClosed()
|
|
1830
1830
|
.pipe(operators.filter(function (block) { return !!block; }), operators.takeUntil(this._destroy$));
|
|
@@ -1910,7 +1910,7 @@
|
|
|
1910
1910
|
};
|
|
1911
1911
|
SidebarComponent.prototype.blockDuplicateClick = function () {
|
|
1912
1912
|
var selectedBlock = this._blockEditor.selectedBlocks[0];
|
|
1913
|
-
var block = Object.assign(Object.assign({}, selectedBlock), { guid: null, top: selectedBlock.top + selectedBlock.height + .1 });
|
|
1913
|
+
var block = Object.assign(Object.assign({}, selectedBlock), { id: null, data: null, guid: null, top: selectedBlock.top + selectedBlock.height + .1 });
|
|
1914
1914
|
this._blockEditor.blockAdd(block);
|
|
1915
1915
|
};
|
|
1916
1916
|
SidebarComponent.prototype.blockRemoveClick = function () {
|
|
@@ -1942,7 +1942,8 @@
|
|
|
1942
1942
|
var sorted = this._blockEditor.blocks.sort(function (a, b) {
|
|
1943
1943
|
return a.index > b.index ? 1 : -1;
|
|
1944
1944
|
});
|
|
1945
|
-
sorted
|
|
1945
|
+
sorted
|
|
1946
|
+
.forEach(function (block, index) {
|
|
1946
1947
|
block.index = index;
|
|
1947
1948
|
_this._blockEditor.blockChange(block);
|
|
1948
1949
|
});
|