@kubohiroya/turbowarp-plus-editor-code-views 0.21.2 → 0.22.0
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/EDITOR-MIGRATION.md +5 -0
- package/README.ja.md +16 -1
- package/dist/code-pane.d.ts +7 -1
- package/dist/code-pane.js +45 -3
- package/dist/code-popout.d.ts +10 -0
- package/dist/code-popout.js +402 -0
- package/dist/context-menu-icons.d.ts +15 -0
- package/dist/context-menu-icons.js +204 -0
- package/dist/desktop-code.d.ts +11 -0
- package/dist/desktop-code.js +47 -0
- package/dist/horizontal-block-palette.d.ts +39 -0
- package/dist/horizontal-block-palette.js +774 -0
- package/dist/palette-delete-preview.d.ts +3 -0
- package/dist/palette-delete-preview.js +73 -0
- package/dist/script-arrows.js +106 -12
- package/dist/script-layout-view.js +122 -6
- package/dist/script-layout-workspace.js +7 -2
- package/dist/script-layout.d.ts +1 -1
- package/dist/script-layout.js +3 -3
- package/dist/script-projection.d.ts +8 -0
- package/dist/script-projection.js +10 -0
- package/dist/script-view-menu.d.ts +1 -0
- package/dist/script-view-menu.js +4 -2
- package/dist/serial-script-editor.d.ts +4 -0
- package/dist/serial-script-editor.js +43 -0
- package/dist/workspace-overview.js +67 -25
- package/dist/workspace.d.ts +1 -0
- package/dist/workspace.js +3 -2
- package/package.json +27 -3
- package/src/code-pane.ts +41 -3
- package/src/code-popout.tsx +399 -0
- package/src/context-menu-icons.css +14 -0
- package/src/context-menu-icons.ts +215 -0
- package/src/desktop-code.ts +45 -0
- package/src/horizontal-block-palette.css +111 -0
- package/src/horizontal-block-palette.ts +765 -0
- package/src/palette-delete-preview.css +21 -0
- package/src/palette-delete-preview.ts +79 -0
- package/src/pin-off.svg +6 -0
- package/src/pin.svg +5 -0
- package/src/script-arrows.ts +98 -12
- package/src/script-layout-view.ts +114 -6
- package/src/script-layout-workspace.ts +7 -2
- package/src/script-layout.ts +4 -3
- package/src/script-projection.ts +12 -0
- package/src/script-view-menu.ts +5 -2
- package/src/serial-script-editor.ts +41 -0
- package/src/styles.css +80 -5
- package/src/trash.svg +3 -0
- package/src/workspace-overview.ts +63 -22
- package/src/workspace.ts +3 -2
- package/tsconfig.json +87 -1
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export function createContextMenuIcons({ enabled, addonMessages, styles, renderSectionIcon, createSectionIcon }) {
|
|
4
|
+
const paths = {
|
|
5
|
+
open: 'M13 4h7v7m0-7-9 9m-1-8H4v15h15v-6',
|
|
6
|
+
duplicate: 'M8 8V4h12v12h-4M4 8h12v12H4z',
|
|
7
|
+
copy: 'M8 4h12v12M4 8h12v12H4zM7 12h6m-6 4h4',
|
|
8
|
+
cut: 'M8 8 20 20M8 16 20 4M8 8a3 3 0 1 0-6 0 3 3 0 0 0 6 0Zm0 8a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z',
|
|
9
|
+
paste: 'M9 5H5v16h14V5h-4M9 3h6v5H9zM8 12h8m-8 4h8',
|
|
10
|
+
export: 'M12 3v12m-4-4 4 4 4-4M4 16v5h16v-5',
|
|
11
|
+
import: 'M12 15V3m-4 4 4-4 4 4M4 16v5h16v-5',
|
|
12
|
+
edit: 'm4 16-1 5 5-1L21 7l-4-4L4 16Zm10-10 4 4',
|
|
13
|
+
delete: 'M4 6h16M9 6V3h6v3M6 6l1 15h10l1-15M10 10v7m4-7v7',
|
|
14
|
+
addComment: 'M5 4h14v13h-8l-5 4v-4H5zM9 10h6m-3-3v6',
|
|
15
|
+
removeComment: 'M5 4h14v13h-8l-5 4v-4H5zM9 10h6',
|
|
16
|
+
undo: 'm9 4-5 5 5 5M4 9h10a5 5 0 0 1 0 10h-3',
|
|
17
|
+
redo: 'm15 4 5 5-5 5m5-5H10a5 5 0 0 0 0 10h3',
|
|
18
|
+
restoreDeletion: 'M4 7h16M9 7V4h6v3M6 10l1 10h10l1-10m-7 3-2 2 2 2m-2-2h5',
|
|
19
|
+
findAndReplace: 'M10.5 4a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM15 15l5 5',
|
|
20
|
+
cleanup: 'M4 4v16M8 5h12M8 12h8m-8 7h10',
|
|
21
|
+
space: 'M4 4h16M4 20h16M12 7v10m-3-7 3-3 3 3m-6 4 3 3 3-3',
|
|
22
|
+
moveTop: 'M4 3h16m-8 18V7m-5 5 5-5 5 5',
|
|
23
|
+
moveBottom: 'M4 21h16M12 3v14m-5-5 5 5 5-5',
|
|
24
|
+
folderAdd: 'M3 5h7l2 2h9v13H3zM8 13h8m-4-4v8',
|
|
25
|
+
folderRemove: 'M3 5h7l2 2h9v13H3zM8 13h8',
|
|
26
|
+
folderMove: 'M3 5h7l2 2h9v13H3zM7 13h10m-3-3 3 3-3 3',
|
|
27
|
+
collapse: 'm6 3 6 6 6-6M6 21l6-6 6 6',
|
|
28
|
+
expand: 'm6 9 6-6 6 6M6 15l6 6 6-6',
|
|
29
|
+
paletteHorizontal: 'M3 4h18v16H3zM3 9h18M7 6.5h.01m4 0h.01m4 0h.01',
|
|
30
|
+
paletteVertical: 'M3 4h18v16H3zM9 4v16M6 8h.01m0 4h.01m0 4h.01',
|
|
31
|
+
switch: 'M3 8h17m-4-4 4 4-4 4M21 16H4m4-4-4 4 4 4',
|
|
32
|
+
locate: 'M12 2v4m0 12v4M2 12h4m12 0h4M12 6a6 6 0 1 0 0 12 6 6 0 0 0 0-12z',
|
|
33
|
+
help: 'M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9 9a3 3 0 1 1 4.5 2.6c-1 .6-1.5 1.2-1.5 2.4m0 3h.01',
|
|
34
|
+
// A ladybug, the mark of debugging in the editor (breakpoints, the debugger).
|
|
35
|
+
debug: 'M5.5 14a6.5 6.5 0 1 0 13 0 6.5 6.5 0 1 0-13 0M9 8.2a3 3 0 0 1 6 0M12 7.5v13M10.3 5.8 8.8 3.6m4.9 2.2 1.5-2.2M9 12h.01M15 12h.01M9 16.5h.01M15 16.5h.01'
|
|
36
|
+
};
|
|
37
|
+
const messageActions = {
|
|
38
|
+
DUPLICATE: 'duplicate',
|
|
39
|
+
ADD_COMMENT: 'addComment',
|
|
40
|
+
REMOVE_COMMENT: 'removeComment',
|
|
41
|
+
DELETE: 'delete',
|
|
42
|
+
DELETE_BLOCK: 'delete',
|
|
43
|
+
DELETE_X_BLOCKS: 'delete',
|
|
44
|
+
DELETE_VARIABLE: 'delete',
|
|
45
|
+
DELETE_LIST: 'delete',
|
|
46
|
+
UNDO: 'undo',
|
|
47
|
+
REDO: 'redo',
|
|
48
|
+
CLEAN_UP: 'cleanup',
|
|
49
|
+
COLLAPSE_ALL: 'collapse',
|
|
50
|
+
EXPAND_ALL: 'expand',
|
|
51
|
+
EDIT_PROCEDURE: 'edit',
|
|
52
|
+
RENAME_VARIABLE: 'edit',
|
|
53
|
+
RENAME_LIST: 'edit',
|
|
54
|
+
SHOW_PROCEDURE_DEFINITION: 'locate',
|
|
55
|
+
PROCEDURES_TO_REPORTER: 'switch',
|
|
56
|
+
PROCEDURES_TO_STATEMENT: 'switch',
|
|
57
|
+
HELP: 'help'
|
|
58
|
+
};
|
|
59
|
+
const blockAddonActions = {
|
|
60
|
+
'editor-devtools/paste': 'paste',
|
|
61
|
+
'editor-devtools/make-space': 'space',
|
|
62
|
+
'editor-devtools/copy-all': 'copy',
|
|
63
|
+
'editor-devtools/copy-block': 'copy',
|
|
64
|
+
'editor-devtools/cut-block': 'cut',
|
|
65
|
+
'editor-devtools/swap': 'switch',
|
|
66
|
+
'blocks2image/export_all_to_SVG': 'export',
|
|
67
|
+
'blocks2image/export_all_to_PNG': 'export',
|
|
68
|
+
'blocks2image/export_selected_to_SVG': 'export',
|
|
69
|
+
'blocks2image/export_selected_to_PNG': 'export',
|
|
70
|
+
'swap-local-global/edit-variable-option': 'edit',
|
|
71
|
+
'swap-local-global/edit-list-option': 'edit',
|
|
72
|
+
'swap-local-global/to-local': 'switch',
|
|
73
|
+
'swap-local-global/to-global': 'switch'
|
|
74
|
+
};
|
|
75
|
+
const assetActions = {
|
|
76
|
+
'gui.spriteSelectorItem.contextMenuDuplicate': 'duplicate',
|
|
77
|
+
'gui.spriteSelectorItem.contextMenuExport': 'export',
|
|
78
|
+
'tw.spriteSelectorItem.rename': 'edit',
|
|
79
|
+
'gui.spriteSelectorItem.contextMenuDelete': 'delete'
|
|
80
|
+
};
|
|
81
|
+
const defaultAssetActions = new Map([
|
|
82
|
+
['duplicate', 'duplicate'], ['export', 'export'], ['rename', 'edit'], ['delete', 'delete'],
|
|
83
|
+
['Open', 'open'], ['開く', 'open']
|
|
84
|
+
]);
|
|
85
|
+
const assetAddonActions = {
|
|
86
|
+
'move-to-top-bottom/top': 'moveTop',
|
|
87
|
+
'move-to-top-bottom/bottom': 'moveBottom'
|
|
88
|
+
};
|
|
89
|
+
const folderActions = {
|
|
90
|
+
'sa-folders-create-folder': 'folderAdd',
|
|
91
|
+
'sa-folders-rename-folder': 'edit',
|
|
92
|
+
'sa-folders-remove-folder': 'folderRemove',
|
|
93
|
+
'sa-folders-remove-from-folder': 'folderRemove',
|
|
94
|
+
'sa-folders-add-to-folder': 'folderMove'
|
|
95
|
+
};
|
|
96
|
+
// The GUI loads addon translations into this same catalog before registering their menus.
|
|
97
|
+
const matchesMessage = (text, message, placeholder) => {
|
|
98
|
+
if (typeof message !== 'string')
|
|
99
|
+
return false;
|
|
100
|
+
if (text === message)
|
|
101
|
+
return true;
|
|
102
|
+
const [prefix, suffix] = message.split(placeholder);
|
|
103
|
+
return suffix !== undefined && text.length > prefix.length + suffix.length &&
|
|
104
|
+
text.startsWith(prefix) && text.endsWith(suffix);
|
|
105
|
+
};
|
|
106
|
+
const localizedAction = (text, messages, actions, placeholder) => {
|
|
107
|
+
const id = Object.keys(actions).find(key => matchesMessage(text, messages[key], placeholder));
|
|
108
|
+
return actions[id];
|
|
109
|
+
};
|
|
110
|
+
const renderMenuIcon = action => (action === 'functions' || action === 'calls') && renderSectionIcon ?
|
|
111
|
+
renderSectionIcon(action, styles.icon) : paths[action] ? React.createElement('svg', {
|
|
112
|
+
className: styles.icon, 'aria-hidden': 'true', focusable: 'false', viewBox: '0 0 24 24'
|
|
113
|
+
}, React.createElement('path', { d: paths[action] })) : null;
|
|
114
|
+
const renderContextMenuIcon = action => enabled ? renderMenuIcon(action) : null;
|
|
115
|
+
const svgNamespace = 'http://www.w3.org/2000/svg';
|
|
116
|
+
const installed = new WeakSet();
|
|
117
|
+
function createContextMenuIcon(document, action) {
|
|
118
|
+
if ((action === 'functions' || action === 'calls') && createSectionIcon) {
|
|
119
|
+
return createSectionIcon(document, action, styles.icon);
|
|
120
|
+
}
|
|
121
|
+
if (!Object.hasOwn(paths, action))
|
|
122
|
+
return null;
|
|
123
|
+
const icon = document.createElementNS(svgNamespace, 'svg');
|
|
124
|
+
icon.setAttribute('class', styles.icon);
|
|
125
|
+
icon.setAttribute('aria-hidden', 'true');
|
|
126
|
+
icon.setAttribute('focusable', 'false');
|
|
127
|
+
icon.setAttribute('viewBox', '0 0 24 24');
|
|
128
|
+
const path = document.createElementNS(svgNamespace, 'path');
|
|
129
|
+
path.setAttribute('d', paths[action]);
|
|
130
|
+
icon.appendChild(path);
|
|
131
|
+
return icon;
|
|
132
|
+
}
|
|
133
|
+
function attachAssetContextMenuIcons(document, getMessages) {
|
|
134
|
+
if (!enabled || !getMessages)
|
|
135
|
+
return null;
|
|
136
|
+
const window = document.defaultView;
|
|
137
|
+
if (!window)
|
|
138
|
+
return null;
|
|
139
|
+
const onShow = ({ detail }) => {
|
|
140
|
+
const target = detail?.target;
|
|
141
|
+
if (!target?.matches('[class*="sprite-selector-item_sprite-selector-item_"]'))
|
|
142
|
+
return;
|
|
143
|
+
const menu = target.querySelector('nav.react-contextmenu');
|
|
144
|
+
if (!menu)
|
|
145
|
+
return;
|
|
146
|
+
const messages = getMessages() || {};
|
|
147
|
+
for (const item of menu.children) {
|
|
148
|
+
if (!item.classList.contains('react-contextmenu-item'))
|
|
149
|
+
continue;
|
|
150
|
+
if (item.hasAttribute('data-tw-plus-menu-icon'))
|
|
151
|
+
continue;
|
|
152
|
+
const text = item.textContent;
|
|
153
|
+
const folderClass = Object.keys(folderActions).find(name => item.classList.contains(name));
|
|
154
|
+
const action = item.classList.contains('sa-ctx-menu') ?
|
|
155
|
+
folderActions[folderClass] || localizedAction(text, addonMessages, assetAddonActions) :
|
|
156
|
+
localizedAction(text, messages, assetActions) || defaultAssetActions.get(text);
|
|
157
|
+
item.querySelector(`.${styles.icon}`)?.remove();
|
|
158
|
+
const icon = createContextMenuIcon(item.ownerDocument, action);
|
|
159
|
+
if (icon)
|
|
160
|
+
item.prepend(icon);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
window.addEventListener('REACT_CONTEXTMENU_SHOW', onShow);
|
|
164
|
+
return { dispose: () => window.removeEventListener('REACT_CONTEXTMENU_SHOW', onShow) };
|
|
165
|
+
}
|
|
166
|
+
function installBlockContextMenuIcons(ScratchBlocks, showIcons = enabled) {
|
|
167
|
+
if (!showIcons || installed.has(ScratchBlocks))
|
|
168
|
+
return;
|
|
169
|
+
const { ContextMenu, WidgetDiv } = ScratchBlocks;
|
|
170
|
+
const populate = ContextMenu.populate_;
|
|
171
|
+
const data = ScratchBlocks.Constants.Data;
|
|
172
|
+
const variableOptionCallback = data.VARIABLE_OPTION_CALLBACK_FACTORY;
|
|
173
|
+
const variableChoices = new WeakSet();
|
|
174
|
+
// Blockly uses the project's variable or list name as the label for these choices.
|
|
175
|
+
data.VARIABLE_OPTION_CALLBACK_FACTORY = function (...args) {
|
|
176
|
+
const callback = variableOptionCallback.apply(this, args);
|
|
177
|
+
variableChoices.add(callback);
|
|
178
|
+
return callback;
|
|
179
|
+
};
|
|
180
|
+
// Decorate the final labels before Blockly measures the menu, after addons have read the strings.
|
|
181
|
+
ContextMenu.populate_ = function (options, rtl) {
|
|
182
|
+
const document = WidgetDiv.DIV.ownerDocument;
|
|
183
|
+
const { Msg } = ScratchBlocks;
|
|
184
|
+
const block = ScratchBlocks.mainWorkspace?.currentGesture_?.targetBlock_;
|
|
185
|
+
const isArgument = block?.type === 'argument_reporter_string_number' ||
|
|
186
|
+
block?.type === 'argument_reporter_boolean';
|
|
187
|
+
const decorated = options.map(option => {
|
|
188
|
+
const { text } = option;
|
|
189
|
+
if (typeof text !== 'string')
|
|
190
|
+
return option;
|
|
191
|
+
const action = option.twPlusMenuIcon || (variableChoices.has(option.callback) && 'switch') ||
|
|
192
|
+
localizedAction(text, Msg, messageActions, '%1') ||
|
|
193
|
+
localizedAction(text, addonMessages, blockAddonActions, '{var}') ||
|
|
194
|
+
((isArgument || Object.keys(addonMessages).some(key => key.startsWith('block-switching/') &&
|
|
195
|
+
addonMessages[key] === text)) && 'switch');
|
|
196
|
+
const icon = createContextMenuIcon(document, action);
|
|
197
|
+
return icon ? { ...option, text: [icon, document.createTextNode(text)] } : option;
|
|
198
|
+
});
|
|
199
|
+
return populate.call(this, decorated, rtl);
|
|
200
|
+
};
|
|
201
|
+
installed.add(ScratchBlocks);
|
|
202
|
+
}
|
|
203
|
+
return { renderMenuIcon, renderContextMenuIcon, attachAssetContextMenuIcons, installBlockContextMenuIcons };
|
|
204
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SurfaceHost } from '@kubohiroya/turbowarp-plus-editor-windows/surfaces';
|
|
2
|
+
export declare function createDesktopCode({ host, layoutMenu }: {
|
|
3
|
+
host: SurfaceHost<any, any> | null;
|
|
4
|
+
layoutMenu: boolean;
|
|
5
|
+
}): {
|
|
6
|
+
desktopCodeEnabled: boolean;
|
|
7
|
+
openDesktopCode: () => any;
|
|
8
|
+
attachDesktopCode: (context: any) => {
|
|
9
|
+
dispose(): void;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
import { createCodeSession } from '@kubohiroya/turbowarp-plus-editor-code-views';
|
|
3
|
+
import { createSurface, pendingSurfaceEdits } from '@kubohiroya/turbowarp-plus-editor-windows/surfaces';
|
|
4
|
+
export function createDesktopCode({ host, layoutMenu }) {
|
|
5
|
+
const desktopCodeEnabled = Boolean(host);
|
|
6
|
+
let openCode = null;
|
|
7
|
+
const openDesktopCode = () => openCode?.();
|
|
8
|
+
function attachDesktopCode(context) {
|
|
9
|
+
if (!host)
|
|
10
|
+
return null;
|
|
11
|
+
const session = createCodeSession(context);
|
|
12
|
+
const unregister = pendingSurfaceEdits.register(() => session.flush());
|
|
13
|
+
const surfaces = new Set();
|
|
14
|
+
const menu = layoutMenu;
|
|
15
|
+
const open = (target = context.vm.editingTarget) => {
|
|
16
|
+
if (!target?.isOriginal || !context.canUse() || surfaces.size >= 2)
|
|
17
|
+
return;
|
|
18
|
+
let detach;
|
|
19
|
+
const surface = createSurface(host, state => {
|
|
20
|
+
if (state.kind === 'external') {
|
|
21
|
+
detach = session.attach({ ...state.target, target, close: () => surface.dock(),
|
|
22
|
+
duplicate: menu ? next => open(next) : undefined, layoutMenu: menu });
|
|
23
|
+
}
|
|
24
|
+
else if (state.kind === 'docked') {
|
|
25
|
+
surfaces.delete(surface);
|
|
26
|
+
detach?.();
|
|
27
|
+
if (menu)
|
|
28
|
+
session.setCanDuplicate(surfaces.size < 2);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
surfaces.add(surface);
|
|
32
|
+
if (menu)
|
|
33
|
+
session.setCanDuplicate(surfaces.size < 2);
|
|
34
|
+
surface.undock({ timeoutMs: 15000 });
|
|
35
|
+
};
|
|
36
|
+
openCode = open;
|
|
37
|
+
return { dispose() {
|
|
38
|
+
if (openCode === open)
|
|
39
|
+
openCode = null;
|
|
40
|
+
unregister();
|
|
41
|
+
session.dispose();
|
|
42
|
+
for (const surface of surfaces)
|
|
43
|
+
surface.dock();
|
|
44
|
+
} };
|
|
45
|
+
}
|
|
46
|
+
return { desktopCodeEnabled, openDesktopCode, attachDesktopCode };
|
|
47
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { PaletteCategoryInfo } from './palette-category-visibility.js';
|
|
2
|
+
/** Each editor host has its own palette state and lifecycle. */
|
|
3
|
+
export declare function createHorizontalBlockPalette({ getScratchBlocks, openExtensionLibrary: openHostLibrary, styles }: {
|
|
4
|
+
getScratchBlocks(): {
|
|
5
|
+
getMainWorkspace?(): object;
|
|
6
|
+
} | undefined;
|
|
7
|
+
openExtensionLibrary(document: Document): void;
|
|
8
|
+
styles: Record<string, string>;
|
|
9
|
+
}): {
|
|
10
|
+
connectPaletteVisibility: (vm: {
|
|
11
|
+
editingTarget?: any;
|
|
12
|
+
runtime: {
|
|
13
|
+
targets?: any[];
|
|
14
|
+
_blockInfo?: PaletteCategoryInfo[];
|
|
15
|
+
_fillExtensionCategory?(...args: any[]): unknown;
|
|
16
|
+
getTargetForStage(): any;
|
|
17
|
+
emitProjectChanged(): void;
|
|
18
|
+
on(event: string, listener: (...args: any[]) => void): void;
|
|
19
|
+
off(event: string, listener: (...args: any[]) => void): void;
|
|
20
|
+
};
|
|
21
|
+
on(event: string, listener: (...args: any[]) => void): void;
|
|
22
|
+
off(event: string, listener: (...args: any[]) => void): void;
|
|
23
|
+
addSprite?(...args: any[]): Promise<unknown>;
|
|
24
|
+
duplicateSprite?(targetId: string): Promise<unknown>;
|
|
25
|
+
}, getScreenState?: () => {
|
|
26
|
+
register(key: string, slice: {
|
|
27
|
+
capture(): unknown;
|
|
28
|
+
}): () => void;
|
|
29
|
+
whenLoaded(): Promise<{
|
|
30
|
+
slices: Record<string, unknown>;
|
|
31
|
+
} | undefined>;
|
|
32
|
+
} | undefined) => () => void;
|
|
33
|
+
setHorizontalBlockPalette: (horizontal: boolean) => void;
|
|
34
|
+
openDetachedBlockPalette: (options: any) => void;
|
|
35
|
+
installHorizontalBlockPalette: (ScratchBlocks: any, { allowManualToggle, allowCategoryReorder }?: {
|
|
36
|
+
allowManualToggle?: boolean;
|
|
37
|
+
allowCategoryReorder?: boolean;
|
|
38
|
+
}) => void;
|
|
39
|
+
};
|