@acryldev/blends-frame 0.2.2 → 0.2.4
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/app-icon.d.ts +12 -0
- package/lib/client.js +119 -1
- package/lib/client.js.map +1 -1
- package/lib/contract.d.ts +2 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +49 -1
- package/lib/index.js.map +1 -1
- package/lib/types/client/AppIconRow.d.ts +6 -0
- package/lib/types/client/recover.d.ts +6 -0
- package/lib/types/contract.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Settings > App > Icon: the app's own icon. The picked image (PNG, JPEG, SVG, WebP...) is drawn on a 512 px square in the page and sent as a PNG to
|
|
3
|
+
* the frame's host, which keeps it as assets/icon.png: the browser tab shows it at once, the desktop window too, and the Dock on macOS from the
|
|
4
|
+
* window's next start.
|
|
5
|
+
*/
|
|
6
|
+
export declare function AppIconRow(): import("react").JSX.Element;
|
|
@@ -25,3 +25,9 @@ export interface RecoverWindow {
|
|
|
25
25
|
}
|
|
26
26
|
/** Install the recovery; returns its disposer. */
|
|
27
27
|
export declare function installRecovery(target: RecoverWindow, now?: () => number): () => void;
|
|
28
|
+
/**
|
|
29
|
+
* 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
|
|
30
|
+
* replacing the slots service, which unloads the frame's client plugin (it injects `slots`), and an effect-owned listener was gone at exactly the
|
|
31
|
+
* 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.
|
|
32
|
+
*/
|
|
33
|
+
export declare function installRecoveryOnce(target: RecoverWindow, now?: () => number): void;
|
package/lib/types/contract.d.ts
CHANGED
|
@@ -148,6 +148,8 @@ export declare const FRAME_PLUGINS_SWITCH_PATH = "/api/acryl-blends-frame/plugin
|
|
|
148
148
|
export declare const FRAME_APP_SHARE_PLAN_PATH = "/api/acryl-blends-frame/app/share-plan";
|
|
149
149
|
/** POST `{ owner?, visibility?, confirm }`: share the app exactly as the confirmed plan says, or nothing. */
|
|
150
150
|
export declare const FRAME_APP_SHARE_PATH = "/api/acryl-blends-frame/app/share";
|
|
151
|
+
/** POST `{ png: base64 }`: the app's own icon (assets/icon.png), drawn by the page at 512 px. */
|
|
152
|
+
export declare const FRAME_APP_ICON_PATH = "/api/acryl-blends-frame/app/icon";
|
|
151
153
|
/** Who may see a shared app, and under which account; both optional (the signed-in account, blend.yaml's visibility). */
|
|
152
154
|
export interface AppShareRequest {
|
|
153
155
|
readonly owner?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acryldev/blends-frame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "ACRYL Blends frame: the workbench around an app being built - a top bar, the branches and versions on the left, the app alone in the centre, and the agents on the right - as one Cordis plugin with a Host and a client half",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-dom": "18.3.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@acryldev/blends": "1.7.
|
|
73
|
+
"@acryldev/blends": "1.7.5",
|
|
74
74
|
"@acryldev/ui": "0.4.0",
|
|
75
75
|
"@deepseek-ai/cordis": "4.0.4",
|
|
76
76
|
"@deepseek-ai/cordis-plugin-loader": "1.0.5",
|