@acryldev/blends-frame 0.2.2 → 0.2.3
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/lib/client.js +13 -1
- package/lib/client.js.map +1 -1
- package/lib/types/client/recover.d.ts +6 -0
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -48683,6 +48683,18 @@ body[data-bf-settings-full] { --bf-pane-h: calc(100vh - 24px); }
|
|
|
48683
48683
|
target.removeEventListener("unhandledrejection", listener);
|
|
48684
48684
|
};
|
|
48685
48685
|
}
|
|
48686
|
+
const INSTALLED = Symbol.for("acrylBlends.recovery");
|
|
48687
|
+
/**
|
|
48688
|
+
* Install the recovery once for the page, never removed. Not owned by the plugin's lifecycle on purpose: the race that blanks the page is DSH
|
|
48689
|
+
* replacing the slots service, which unloads the frame's client plugin (it injects `slots`), and an effect-owned listener was gone at exactly the
|
|
48690
|
+
* moment the error fired (seen on Windows with 0.2.2). A second call (the plugin applied again) finds the first listener and adds nothing.
|
|
48691
|
+
*/
|
|
48692
|
+
function installRecoveryOnce(target, now = Date.now) {
|
|
48693
|
+
const marked = target;
|
|
48694
|
+
if (marked[INSTALLED]) return;
|
|
48695
|
+
marked[INSTALLED] = true;
|
|
48696
|
+
installRecovery(target, now);
|
|
48697
|
+
}
|
|
48686
48698
|
// src/client/ShareAppSection.tsx
|
|
48687
48699
|
/**
|
|
48688
48700
|
* Settings > Share, in every app (window or browser tab): send the whole app, as it is now, to a GitHub repository of the person's own. The plan
|
|
@@ -50192,7 +50204,7 @@ body[data-bf-settings-full] [data-shortcut-modal="settings"] { width: calc(100vw
|
|
|
50192
50204
|
}
|
|
50193
50205
|
}
|
|
50194
50206
|
function apply(ctx) {
|
|
50195
|
-
|
|
50207
|
+
installRecoveryOnce(window);
|
|
50196
50208
|
const layout = new _acryldev_app_shell_client.DesktopLayoutState();
|
|
50197
50209
|
const canvas = new AppCanvasState();
|
|
50198
50210
|
const selection = new SelectionStore();
|