@acryldev/blends-frame 0.2.4 → 0.2.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/lib/client.js +25 -3
- package/lib/client.js.map +1 -1
- package/lib/types/client/AppIconRow.d.ts +4 -2
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -48285,8 +48285,8 @@ body[data-bf-settings-full] { --bf-pane-h: calc(100vh - 24px); }
|
|
|
48285
48285
|
// src/client/AppIconRow.tsx
|
|
48286
48286
|
/**
|
|
48287
48287
|
* 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
|
|
48288
|
-
* the frame's host, which keeps it as assets/icon.png: the browser tab shows it at once, the desktop window
|
|
48289
|
-
*
|
|
48288
|
+
* the frame's host, which keeps it as assets/icon.png: the browser tab shows it at once, and so do the desktop window and the Dock (the desktop
|
|
48289
|
+
* shell watches the file).
|
|
48290
48290
|
*/
|
|
48291
48291
|
const SIZE = 512;
|
|
48292
48292
|
/** The image as a 512 px PNG, centred and kept whole, as base64. */
|
|
@@ -48340,7 +48340,7 @@ body[data-bf-settings-full] { --bf-pane-h: calc(100vh - 24px); }
|
|
|
48340
48340
|
setVersion(next);
|
|
48341
48341
|
refreshTabIcon(next);
|
|
48342
48342
|
setNote({
|
|
48343
|
-
text: "Saved. The
|
|
48343
|
+
text: "Saved. The tab and the window show it now.",
|
|
48344
48344
|
error: false
|
|
48345
48345
|
});
|
|
48346
48346
|
} catch (cause) {
|
|
@@ -48384,6 +48384,20 @@ body[data-bf-settings-full] { --bf-pane-h: calc(100vh - 24px); }
|
|
|
48384
48384
|
]
|
|
48385
48385
|
});
|
|
48386
48386
|
}
|
|
48387
|
+
/** Settings > App in an app without the product's desktop bridge (every app people make): its icon. */
|
|
48388
|
+
function AppIconSection() {
|
|
48389
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
48390
|
+
className: "acrylBlendsApp",
|
|
48391
|
+
children: [
|
|
48392
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: "App" }),
|
|
48393
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
48394
|
+
className: "acrylBlendsPluginsSub",
|
|
48395
|
+
children: "This app's own look."
|
|
48396
|
+
}),
|
|
48397
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AppIconRow, {})
|
|
48398
|
+
]
|
|
48399
|
+
});
|
|
48400
|
+
}
|
|
48387
48401
|
// src/client/desktop-app.ts
|
|
48388
48402
|
/** The product's app, read through the bridge: a store of its state (the bar's name and the first start's question follow it) and its operations. */
|
|
48389
48403
|
var DesktopApp = class {
|
|
@@ -50648,6 +50662,14 @@ body[data-bf-settings-full] [data-shortcut-modal="settings"] { width: calc(100vw
|
|
|
50648
50662
|
locale: LOCALE_NAMESPACE,
|
|
50649
50663
|
inject: () => ({ app: desktop })
|
|
50650
50664
|
}, AppSection));
|
|
50665
|
+
else child.slots.inject("settings.section", () => child.slots.register({
|
|
50666
|
+
name: "settings.section",
|
|
50667
|
+
id: "acryl-blends-app",
|
|
50668
|
+
order: 5,
|
|
50669
|
+
label: () => t("app"),
|
|
50670
|
+
locale: LOCALE_NAMESPACE,
|
|
50671
|
+
inject: () => ({})
|
|
50672
|
+
}, AppIconSection));
|
|
50651
50673
|
const shareApp = createShareAppApi();
|
|
50652
50674
|
child.slots.inject("settings.section", () => child.slots.register({
|
|
50653
50675
|
name: "settings.section",
|