@beekeeperstudio/plugin 1.4.0-beta.2 → 1.4.0-beta.3
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.d.ts +48 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,52 @@ type TableFilter$1 = {
|
|
|
30
30
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
31
31
|
[key: string]: JsonValue;
|
|
32
32
|
};
|
|
33
|
+
type ActiveRange = {
|
|
34
|
+
rows: number[];
|
|
35
|
+
columns: string[];
|
|
36
|
+
value: JsonValue[][];
|
|
37
|
+
};
|
|
38
|
+
type CellMenuTarget = {
|
|
39
|
+
type: "cell";
|
|
40
|
+
row: number;
|
|
41
|
+
column: string;
|
|
42
|
+
value: JsonValue;
|
|
43
|
+
};
|
|
44
|
+
type ColumnMenuTarget = {
|
|
45
|
+
type: "column";
|
|
46
|
+
column: string;
|
|
47
|
+
rows: number[];
|
|
48
|
+
value: JsonValue[];
|
|
49
|
+
};
|
|
50
|
+
type RowMenuTarget = {
|
|
51
|
+
type: "row";
|
|
52
|
+
row: number;
|
|
53
|
+
columns: string[];
|
|
54
|
+
value: JsonValue[];
|
|
55
|
+
};
|
|
56
|
+
type CornerMenuTarget = {
|
|
57
|
+
type: "corner";
|
|
58
|
+
rows: number[];
|
|
59
|
+
columns: string[];
|
|
60
|
+
value: JsonValue[][];
|
|
61
|
+
};
|
|
62
|
+
type CellMenuParams = {
|
|
63
|
+
target: CellMenuTarget;
|
|
64
|
+
activeRange: ActiveRange;
|
|
65
|
+
};
|
|
66
|
+
type ColumnMenuParams = {
|
|
67
|
+
target: ColumnMenuTarget;
|
|
68
|
+
activeRange: ActiveRange;
|
|
69
|
+
};
|
|
70
|
+
type RowMenuParams = {
|
|
71
|
+
target: RowMenuTarget;
|
|
72
|
+
activeRange: ActiveRange;
|
|
73
|
+
};
|
|
74
|
+
type CornerMenuParams = {
|
|
75
|
+
target: CornerMenuTarget;
|
|
76
|
+
activeRange: ActiveRange;
|
|
77
|
+
};
|
|
78
|
+
type LoadViewParams = CornerMenuParams | RowMenuParams | ColumnMenuParams | CellMenuParams;
|
|
33
79
|
|
|
34
80
|
interface BaseRequest {
|
|
35
81
|
id: string;
|
|
@@ -201,7 +247,7 @@ type ViewLoadedNotification = {
|
|
|
201
247
|
name: "viewLoaded";
|
|
202
248
|
args: {
|
|
203
249
|
command: string;
|
|
204
|
-
|
|
250
|
+
params?: CellMenuParams | ColumnMenuParams | RowMenuParams | CornerMenuParams;
|
|
205
251
|
};
|
|
206
252
|
};
|
|
207
253
|
type PluginNotificationData = ThemeChangedNotification | WindowEventNotification | PluginErrorNotification | ViewLoadedNotification | BroadcastNotification;
|
|
@@ -441,4 +487,4 @@ declare const clipboard: {
|
|
|
441
487
|
};
|
|
442
488
|
|
|
443
489
|
export { addNotificationListener, checkForUpdate, clipboard, expandTableResult, getAppInfo, getColumns, getConnectionInfo, getData, getEncryptedData, getTableKeys, getTables, getViewState, notify, openExternal, openTab, removeNotificationListener, request, runQuery, setData, setDebugComms, setEncryptedData, setTabTitle, setViewState };
|
|
444
|
-
export type { AppTheme, BroadcastNotification, CheckForUpdateRequest, CheckForUpdateResponse, ClipboardReadTextRequest, ClipboardReadTextResponse, ClipboardWriteTextRequest, ClipboardWriteTextResponse, ExpandTableResultRequest, ExpandTableResultResponse, GetAppInfoRequest, GetAppInfoResponse, GetColumnsRequest, GetColumnsResponse, GetConnectionInfoRequest, GetConnectionInfoResponse, GetDataRequest, GetDataResponse, GetEncryptedDataRequest, GetEncryptedDataResponse, GetTableKeysRequest, GetTableKeysResponse, GetTablesRequest, GetTablesResponse, GetViewStateRequest, GetViewStateResponse, JsonValue, OpenExternalRequest, OpenExternalResponse, OpenQueryTabRequest, OpenTabRequest, OpenTabResponse, OpenTableStructureTabRequest, OpenTableTableTabRequest, PluginErrorNotification, PluginNotificationData, PluginRequestData, PluginRequestPayload, PluginResponseData, PluginResponsePayload, QueryResult, RunQueryRequest, RunQueryResponse, SetDataRequest, SetDataResponse, SetEncryptedDataRequest, SetEncryptedDataResponse, SetTabTitleRequest, SetTabTitleResponse, SetViewStateRequest, SetViewStateResponse, TabResponse, TableFilter$1 as TableFilter, TableKey, ThemeChangedNotification, ThemeType, ViewLoadedNotification, WindowEventClass, WindowEventInits, WindowEventNotification };
|
|
490
|
+
export type { ActiveRange, AppTheme, BroadcastNotification, CellMenuParams, CellMenuTarget, CheckForUpdateRequest, CheckForUpdateResponse, ClipboardReadTextRequest, ClipboardReadTextResponse, ClipboardWriteTextRequest, ClipboardWriteTextResponse, ColumnMenuParams, ColumnMenuTarget, CornerMenuParams, CornerMenuTarget, ExpandTableResultRequest, ExpandTableResultResponse, GetAppInfoRequest, GetAppInfoResponse, GetColumnsRequest, GetColumnsResponse, GetConnectionInfoRequest, GetConnectionInfoResponse, GetDataRequest, GetDataResponse, GetEncryptedDataRequest, GetEncryptedDataResponse, GetTableKeysRequest, GetTableKeysResponse, GetTablesRequest, GetTablesResponse, GetViewStateRequest, GetViewStateResponse, JsonValue, LoadViewParams, OpenExternalRequest, OpenExternalResponse, OpenQueryTabRequest, OpenTabRequest, OpenTabResponse, OpenTableStructureTabRequest, OpenTableTableTabRequest, PluginErrorNotification, PluginNotificationData, PluginRequestData, PluginRequestPayload, PluginResponseData, PluginResponsePayload, QueryResult, RowMenuParams, RowMenuTarget, RunQueryRequest, RunQueryResponse, SetDataRequest, SetDataResponse, SetEncryptedDataRequest, SetEncryptedDataResponse, SetTabTitleRequest, SetTabTitleResponse, SetViewStateRequest, SetViewStateResponse, TabResponse, TableFilter$1 as TableFilter, TableKey, ThemeChangedNotification, ThemeType, ViewLoadedNotification, WindowEventClass, WindowEventInits, WindowEventNotification };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beekeeperstudio/plugin",
|
|
3
|
-
"version": "1.4.0-beta.
|
|
3
|
+
"version": "1.4.0-beta.3",
|
|
4
4
|
"description": "A simple TypeScript wrapper to send messages from your Beekeeper Studio plugin to the main app.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|