@craftile/editor 0.6.3 → 0.7.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.
- package/dist/index.js +3776 -3191
- package/dist/managers/ui.d.ts +7 -0
- package/dist/types/i18n.d.ts +7 -0
- package/package.json +5 -5
package/dist/managers/ui.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createToaster } from '@ark-ui/vue/toast';
|
|
2
2
|
import { EventBus } from '@craftile/event-bus';
|
|
3
|
+
import { BlockStructure } from '@craftile/types';
|
|
3
4
|
import { ConfigurationPanel, HeaderAction, KeyboardShortcut, ModalConfig, PropertyFieldConfig, SidebarPanel } from './../types/ui';
|
|
4
5
|
export interface UIState {
|
|
5
6
|
activeSidebarPanel: string;
|
|
@@ -14,6 +15,9 @@ export interface UIState {
|
|
|
14
15
|
layersPanel: {
|
|
15
16
|
expandedBlocks: Set<string>;
|
|
16
17
|
};
|
|
18
|
+
clipboard: {
|
|
19
|
+
copiedBlock: BlockStructure | null;
|
|
20
|
+
};
|
|
17
21
|
}
|
|
18
22
|
export declare class UIManager {
|
|
19
23
|
private events;
|
|
@@ -38,4 +42,7 @@ export declare class UIManager {
|
|
|
38
42
|
closeModal(id: string): void;
|
|
39
43
|
registerKeyboardShortcut(config: KeyboardShortcut): void;
|
|
40
44
|
removeKeyboardShortcut(key: string): void;
|
|
45
|
+
copyBlock(block: BlockStructure): void;
|
|
46
|
+
getCopiedBlock(): BlockStructure | null;
|
|
47
|
+
clearClipboard(): void;
|
|
41
48
|
}
|
package/dist/types/i18n.d.ts
CHANGED
|
@@ -17,12 +17,19 @@ export interface I18n {
|
|
|
17
17
|
block: {
|
|
18
18
|
show: string;
|
|
19
19
|
hide: string;
|
|
20
|
+
copy: string;
|
|
21
|
+
pasteAfter: string;
|
|
20
22
|
duplicate: string;
|
|
21
23
|
remove: string;
|
|
22
24
|
moveToNext: string;
|
|
23
25
|
moveToPrevious: string;
|
|
24
26
|
enable: string;
|
|
25
27
|
disable: string;
|
|
28
|
+
insertBlockBefore: string;
|
|
29
|
+
insertBlockAfter: string;
|
|
30
|
+
insertSiblingBefore: string;
|
|
31
|
+
insertSiblingAfter: string;
|
|
32
|
+
copyAsJson: string;
|
|
26
33
|
};
|
|
27
34
|
layers: {
|
|
28
35
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@craftile/editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Vue.js-based editor UI components for craftile blocks engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"craftile",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"vue": "^3.5.17",
|
|
40
40
|
"vue-draggable-plus": "^0.6.0",
|
|
41
|
-
"@craftile/core": "0.
|
|
42
|
-
"@craftile/event-bus": "0.
|
|
43
|
-
"@craftile/messenger": "0.
|
|
44
|
-
"@craftile/types": "0.
|
|
41
|
+
"@craftile/core": "0.7.1",
|
|
42
|
+
"@craftile/event-bus": "0.7.1",
|
|
43
|
+
"@craftile/messenger": "0.7.1",
|
|
44
|
+
"@craftile/types": "0.7.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@ark-ui/vue": "^5.24.1",
|