npm package diff

Package: @forge/bridge

Versions: 4.1.1 - 4.2.0-next.0

File: package/out/view/frame.js

Index: package/out/view/frame.js
===================================================================
--- package/out/view/frame.js
+++ package/out/view/frame.js
@@ -1,24 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.frame = void 0;
-const internal_1 = require("../internal");
-const events_1 = require("../events");
-const frameEventKey = (eventKey, frameId) => `frame:${eventKey}:${frameId}`;
-const EVENT_KEY_FRAME_PROPS = 'props';
-const EVENT_KEY_FRAME_LOADED = 'loaded';
-const onPropsUpdate = async (handler) => {
-    const frameId = await (0, internal_1.getFrameId)();
-    if (!frameId) {
-        throw new Error('Frame could not be found, please ensure the custom props enabled Frame component is set up correctly.');
-    }
-    const sub = events_1.events.on(frameEventKey(EVENT_KEY_FRAME_PROPS, frameId), handler);
-    const unsubscribe = async () => {
-        const subscription = await sub;
-        subscription.unsubscribe();
-    };
-    void events_1.events.emit(frameEventKey(EVENT_KEY_FRAME_LOADED, frameId), { loaded: true });
-    return unsubscribe;
-};
-exports.frame = {
-    onPropsUpdate
-};