@emailmaker/extensions-app 1.0.111-dev.3 → 1.0.111-dev.5
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.js +2 -2
- package/package.json +2 -2
- package/types.d.ts +18 -3
package/index.js
CHANGED
|
@@ -107,7 +107,7 @@ var _ = g();
|
|
|
107
107
|
n.packages[e.id] = e, n.validateAll();
|
|
108
108
|
}, t.__compat.registerPackage({
|
|
109
109
|
id: "extensions-api",
|
|
110
|
-
version: "1.0.111-dev.
|
|
110
|
+
version: "1.0.111-dev.5",
|
|
111
111
|
requires: { host: "^1.0.105" }
|
|
112
112
|
});
|
|
113
113
|
}
|
|
@@ -180,6 +180,6 @@ var x = class {
|
|
|
180
180
|
function D(e = b()) {
|
|
181
181
|
return e;
|
|
182
182
|
}
|
|
183
|
-
var O = d(s.DependencyResolver), k = "1.0.111-dev.
|
|
183
|
+
var O = d(s.DependencyResolver), k = "1.0.111-dev.5";
|
|
184
184
|
//#endregion
|
|
185
185
|
export { O as DomComponentRegistry, S as ElementsApi, E as EmailSettingsApi, C as MessageService, T as ModalApi, x as SandboxScriptApi, w as SettingsPanelApi, D as createComponentIdentifier, _ as pluginRegistry, k as version };
|
package/package.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types.d.ts",
|
|
7
7
|
"name": "@emailmaker/extensions-app",
|
|
8
|
-
"version": "1.0.111-dev.
|
|
8
|
+
"version": "1.0.111-dev.5",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@emailmaker/emailmaker": "1.0.111-dev.
|
|
10
|
+
"@emailmaker/emailmaker": "1.0.111-dev.5"
|
|
11
11
|
}
|
|
12
12
|
}
|
package/types.d.ts
CHANGED
|
@@ -212,6 +212,21 @@ interface IModalApi {
|
|
|
212
212
|
/**
|
|
213
213
|
* API for managing styles and scripts in a sandboxed environment (e.g., an iframe).
|
|
214
214
|
*/
|
|
215
|
+
interface ISandboxScriptHandle extends IDisposable$1 {
|
|
216
|
+
/**
|
|
217
|
+
* Resolves when the corresponding sandbox `<script>` tag is loaded in iframe.
|
|
218
|
+
* Rejects if script loading fails or registration is disposed before load completes.
|
|
219
|
+
*/
|
|
220
|
+
readonly loaded: Promise<void>;
|
|
221
|
+
/**
|
|
222
|
+
* Resolves when sandbox script is ready to receive messages.
|
|
223
|
+
* If script did not synchronously create sandbox plugins during evaluation,
|
|
224
|
+
* `ready` resolves together with `loaded`.
|
|
225
|
+
* If it did, `ready` waits until those synchronously created plugins finish
|
|
226
|
+
* lifecycle initialization (`afterInit`).
|
|
227
|
+
*/
|
|
228
|
+
readonly ready: Promise<void>;
|
|
229
|
+
}
|
|
215
230
|
interface ISandboxScriptApi {
|
|
216
231
|
/**
|
|
217
232
|
* Registers an external CSS file inside the sandboxed environment.
|
|
@@ -224,11 +239,11 @@ interface ISandboxScriptApi {
|
|
|
224
239
|
/**
|
|
225
240
|
* Registers an external JavaScript file inside the sandboxed environment.
|
|
226
241
|
*/
|
|
227
|
-
registerSandboxScript(url: string):
|
|
242
|
+
registerSandboxScript(url: string): ISandboxScriptHandle;
|
|
228
243
|
/**
|
|
229
244
|
* Registers a block of JavaScript code inside the sandboxed environment.
|
|
230
245
|
*/
|
|
231
|
-
registerSandboxScriptCode(key: string, code: string):
|
|
246
|
+
registerSandboxScriptCode(key: string, code: string): ISandboxScriptHandle;
|
|
232
247
|
}
|
|
233
248
|
/**
|
|
234
249
|
* Options for adding extra tabs in the interface.
|
|
@@ -542,4 +557,4 @@ declare module '@emailmaker/emailmaker' {
|
|
|
542
557
|
}
|
|
543
558
|
declare const pluginRegistry: PluginRegistry;
|
|
544
559
|
declare const version: string;
|
|
545
|
-
export { ComponentId, ComponentInput, ComponentInputRegistry, ComponentType, DomComponentRegistry, ElementsApi, EmailContentStyles, EmailLayoutSettings, EmailSettingsApi, type IDisposable, IDomComponent, IDomComponentFactory, IDomComponentRegistry, Identifier, MayBePromise, MessageService, ModalApi, SandboxScriptApi, SettingsPanelApi, createComponentIdentifier, pluginRegistry, version };
|
|
560
|
+
export { ComponentId, ComponentInput, ComponentInputRegistry, ComponentType, DomComponentRegistry, ElementsApi, EmailContentStyles, EmailLayoutSettings, EmailSettingsApi, type IDisposable, IDomComponent, IDomComponentFactory, IDomComponentRegistry, type ISandboxScriptHandle, Identifier, MayBePromise, MessageService, ModalApi, SandboxScriptApi, SettingsPanelApi, createComponentIdentifier, pluginRegistry, version };
|