@makeswift/runtime 0.0.0-20230323143639 → 0.0.0-20230323150243
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.cjs.js
CHANGED
|
@@ -1003,7 +1003,7 @@ function useCachedSite(siteId) {
|
|
|
1003
1003
|
const site = shim.useSyncExternalStore(client.subscribe, getSnapshot, getSnapshot);
|
|
1004
1004
|
return site;
|
|
1005
1005
|
}
|
|
1006
|
-
const version = "0.0.0-
|
|
1006
|
+
const version = "0.0.0-20230323150243";
|
|
1007
1007
|
class Makeswift {
|
|
1008
1008
|
constructor(apiKey, { apiOrigin = "https://api.makeswift.com" } = {}) {
|
|
1009
1009
|
__publicField(this, "apiKey");
|
|
@@ -3932,6 +3932,7 @@ class ElementImperativeHandle {
|
|
|
3932
3932
|
}
|
|
3933
3933
|
callback(getCurrent) {
|
|
3934
3934
|
const current = this.getCurrent();
|
|
3935
|
+
this.getCurrent = getCurrent;
|
|
3935
3936
|
console.log("eih - callback", {
|
|
3936
3937
|
current,
|
|
3937
3938
|
lastPropControllers: this.lastPropControllers,
|
|
@@ -3941,7 +3942,6 @@ class ElementImperativeHandle {
|
|
|
3941
3942
|
this.setPropControllers(null);
|
|
3942
3943
|
else if (this.lastPropControllers !== null)
|
|
3943
3944
|
this.setPropControllers(this.lastPropControllers);
|
|
3944
|
-
this.getCurrent = getCurrent;
|
|
3945
3945
|
}
|
|
3946
3946
|
getBoxModel() {
|
|
3947
3947
|
const current = this.getCurrent();
|