@tinywork/glass 0.0.26 → 0.0.28

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 +2 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -103,6 +103,7 @@ export interface IGlassContext {
103
103
  }) => Promise<void>;
104
104
  showProgress: () => IProgress;
105
105
  transformDocToJsonSchema: (doc: DocFullSchema) => JSONSchema;
106
+ genDataFromDocSchema: (doc: DocFullSchema) => Record<string, any>;
106
107
  postMessage: (message: Partial<NetLog>) => Promise<void>;
107
108
  }
108
109
  export interface IGlassExtension {
@@ -124,7 +125,7 @@ export interface IGlassExtension {
124
125
  }): Promise<void>;
125
126
  deactivate?(context: IGlassContext): Promise<void>;
126
127
  uninstall?(context: IGlassContext): Promise<void>;
127
- onDocChange?(context: IGlassContext, doc: DocSchema | null, originDoc: DocSchema | null): Promise<boolean>;
128
+ onDocChange?(context: IGlassContext, doc: DocFullSchema | null, originDoc: DocFullSchema | null): Promise<boolean>;
128
129
  onGroupChange?(context: IGlassContext, group: GroupSchema | null, originGroup: GroupSchema | null): Promise<boolean>;
129
130
  getDefaultRule?(context: IGlassContext, docs: DocSchema[], log: NetLog, rule?: {
130
131
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [