@olimsaidov/icdp 0.1.0

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.
@@ -0,0 +1,17 @@
1
+ //#region src/frame/index.d.ts
2
+ type FrameAgentOptions = {
3
+ /**
4
+ * Origins allowed to act as Host. The agent stays dormant unless the parent
5
+ * matches. "*" hands full DOM read/write/eval to ANY embedder — only use it
6
+ * for pages that are themselves sandboxed or throwaway.
7
+ */
8
+ allowedParents: string[] | "*";
9
+ };
10
+ /**
11
+ * Boot the Frame Agent. No-op when the page is not embedded. The agent stays
12
+ * dormant (announces, but never adopts a channel) unless a parent on the
13
+ * allowlist answers with a welcome.
14
+ */
15
+ declare function startFrameAgent(options: FrameAgentOptions): void;
16
+ //#endregion
17
+ export { FrameAgentOptions, startFrameAgent };