@mcp-use/client 2.1.4 → 2.1.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/dist/index-browser.js
CHANGED
package/dist/index.js
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -1900,7 +1900,7 @@ var HttpConnector = class extends BaseConnector {
|
|
|
1900
1900
|
};
|
|
1901
1901
|
|
|
1902
1902
|
// src/utils/version.ts
|
|
1903
|
-
var VERSION = "2.1.
|
|
1903
|
+
var VERSION = "2.1.5";
|
|
1904
1904
|
function getPackageVersion() {
|
|
1905
1905
|
return VERSION;
|
|
1906
1906
|
}
|
|
@@ -7967,6 +7967,10 @@ var OPENAI_COMPATIBILITY_BRIDGE_SCRIPT = `<script>
|
|
|
7967
7967
|
};
|
|
7968
7968
|
api.setWidgetState = api.setWidgetState || function (state) {
|
|
7969
7969
|
dispatchGlobals({ widgetState: state });
|
|
7970
|
+
// The Apps SDK setter is promise-based. Keep the local state update
|
|
7971
|
+
// synchronous, but return a promise so legacy useWidget() code can safely
|
|
7972
|
+
// await or chain .catch() on the compatibility API.
|
|
7973
|
+
return Promise.resolve();
|
|
7970
7974
|
};
|
|
7971
7975
|
api.notifyIntrinsicHeight = api.notifyIntrinsicHeight || function (height) {
|
|
7972
7976
|
sendNotification("ui/notifications/size-changed", { height: height });
|