@tinywork/glass 1.0.10 → 1.0.12
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/index.d.ts +5 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -360,6 +360,10 @@ declare global {
|
|
|
360
360
|
params: ContextMenuParams;
|
|
361
361
|
menus?: MenuItem[];
|
|
362
362
|
}>;
|
|
363
|
+
/** 点击插件注册的菜单项 */
|
|
364
|
+
onMenuClick?: IGlassExtensionEvent<{
|
|
365
|
+
params: MenuItem;
|
|
366
|
+
}>;
|
|
363
367
|
|
|
364
368
|
onRuleDefault?: IGlassExtensionEvent<{
|
|
365
369
|
docs: DocSchema[];
|
|
@@ -465,6 +469,7 @@ declare global {
|
|
|
465
469
|
percent: number;
|
|
466
470
|
text?: string;
|
|
467
471
|
}): IGlassExtensionInvokeResponse<void>;
|
|
472
|
+
closeProgress(): IGlassExtensionInvokeResponse<void>;
|
|
468
473
|
|
|
469
474
|
transformDocToJsonSchema(
|
|
470
475
|
doc: DocFullSchema
|