@tinywork/glass 0.0.22 → 0.0.24

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +0 -8
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -7,13 +7,6 @@ import querystring from 'node:querystring';
7
7
  import axios from 'axios';
8
8
  import { BrowserWindow, type MenuItemConstructorOptions, type Session } from 'electron';
9
9
  type ResourceType = 'Fetch/XHR' | 'JS' | 'CSS' | 'Img' | 'Media' | 'Font' | 'Doc' | 'WS' | 'Wasm' | 'Other';
10
- type Operation = {
11
- key: string | number;
12
- type: 'button';
13
- text: string;
14
- onClick: () => Promise<void>;
15
- };
16
- declare function registerPageHooks(name: 'doc-edit', cb: (params: Partial<DocSchema>) => Operation[]): void;
17
10
  export type DocSchema = {
18
11
  apiId: string;
19
12
  groupId: string;
@@ -91,7 +84,6 @@ export interface IGlassContext {
91
84
  }) => Promise<void>;
92
85
  showProgress: () => IProgress;
93
86
  postMessage: (message: Partial<NetLog>) => Promise<void>;
94
- registerPageHooks: typeof registerPageHooks;
95
87
  }
96
88
  export interface IGlassExtension {
97
89
  install?(context: IGlassContext): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [