@tinywork/glass 0.0.23 → 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 -9
  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
- declare function registerPageHooks(name: 'doc-edit', cb: (params: Partial<DocSchema>) => Operation[]): void;
11
- export type Operation = {
12
- key: string | number;
13
- type: 'button';
14
- text: string;
15
- onClick: () => Promise<void>;
16
- };
17
10
  export type DocSchema = {
18
11
  apiId: string;
19
12
  groupId: string;
@@ -91,8 +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
- unRegisterPageHooks: typeof registerPageHooks;
96
87
  }
97
88
  export interface IGlassExtension {
98
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.23",
3
+ "version": "0.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [