@punica/editor 1.0.4 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punica/editor",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Punica Editor",
5
5
  "private": false,
6
6
  "type": "module",
package/types/index.d.ts CHANGED
@@ -16,7 +16,7 @@ declare module 'punica' {
16
16
 
17
17
  declare global {
18
18
  interface Window {
19
- punica: any;
19
+ punica: typeof import('punica');
20
20
  }
21
21
  }
22
22
 
@@ -124,8 +124,31 @@ declare module 'punica' {
124
124
  }
125
125
 
126
126
  interface IExtensionManager {
127
+ /**
128
+ * Load one or more extensions from URL or file path.
129
+ */
127
130
  load(extensionPath: string, ...args: string[]): Promise<void>;
128
- activate(extensionName): Promise<void>;
131
+
132
+ /**
133
+ * Activate a specific extension by name.
134
+ */
135
+ activate(extensionName: string): Promise<void>;
136
+
137
+ /**
138
+ * Trigger activation of all extensions that declare `onStartup:begin`
139
+ * in their activationEvents.
140
+ */
141
+ startupBegin(): Promise<void>;
142
+
143
+ /**
144
+ * Trigger activation of all extensions that declare `onStartup:finish`
145
+ * in their activationEvents.
146
+ */
147
+ startupFinish(): Promise<void>;
148
+
149
+ /**
150
+ * Get loaded extension metadata by name.
151
+ */
129
152
  getExtension(extensionName: string): Extension | undefined;
130
153
  }
131
154
 
@@ -1,7 +1,6 @@
1
1
  declare module 'punica' {
2
2
  export namespace Layout {
3
3
  type ItemType =
4
- | 'appBar'
5
4
  | 'activityBar'
6
5
  | 'content'
7
6
  | 'statusbar'