@vibes.diy/base 14.3.448 → 14.3.450
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.
|
@@ -169,7 +169,7 @@ export function VibeMenu(props) {
|
|
|
169
169
|
const nav = navFor(state);
|
|
170
170
|
switch (section) {
|
|
171
171
|
case "home":
|
|
172
|
-
return (React.createElement(HomeCard, { viewer: viewer, homeHref: props.homeHref, onHome: props.onHome, myVibesHref: props.myVibesHref, newAppHref: props.newAppHref, recommended: props.recommended, recommendedLoading: props.recommendedLoading, recommendedHeading: props.recommendedHeading, onMakeYourOwn: state.banner === "madeHere" ? props.onMadeHereAsk : undefined, madeHereStarter: state.banner === "madeHere" ? props.madeHereStarter : undefined, onGetFullApp: props.onGetFullApp, onReport: props.onReport, tabRow: props.homeTabRow === true }));
|
|
172
|
+
return (React.createElement(HomeCard, { viewer: viewer, homeHref: props.homeHref, onHome: props.onHome, myVibesHref: props.myVibesHref, newAppHref: props.newAppHref, recommended: props.recommended, recommendedLoading: props.recommendedLoading, recommendedHeading: props.recommendedHeading, onMakeYourOwn: state.banner === "madeHere" ? props.onMadeHereAsk : undefined, madeHereStarter: state.banner === "madeHere" ? props.madeHereStarter : undefined, onGetFullApp: props.onGetFullApp, onInstallApp: props.onInstallApp, onReport: props.onReport, onAbout: props.onAbout, tabRow: props.homeTabRow === true }));
|
|
173
173
|
case "settings":
|
|
174
174
|
return React.createElement(AccountCard, { viewer: viewer, account: account, nav: nav });
|
|
175
175
|
case "vibe":
|
|
@@ -12,12 +12,16 @@ export declare const HOME_COPY: Readonly<{
|
|
|
12
12
|
recommended: "Recommended";
|
|
13
13
|
recent: "Recent";
|
|
14
14
|
getFullApp: "Get the full Vibes app";
|
|
15
|
+
installApp: "Install app";
|
|
16
|
+
about: "About";
|
|
15
17
|
report: "Report";
|
|
16
18
|
}>;
|
|
17
19
|
export declare const HOME_TAB_LABELS: Readonly<{
|
|
18
20
|
site: "vibes.diy home";
|
|
19
21
|
myVibes: "My Vibes";
|
|
20
22
|
getApp: "Get the app";
|
|
23
|
+
install: "Install";
|
|
24
|
+
about: "About";
|
|
21
25
|
report: "Report";
|
|
22
26
|
}>;
|
|
23
27
|
export declare const HOME_CARD_CSS = "\n[data-vibe-menu] .vm-app-name { white-space: nowrap; }\n[data-vibe-menu] .vm-row.is-placeholder .vm-dot,\n[data-vibe-menu] .vm-row.is-placeholder .vm-bar {\n background: var(--line-hairline);\n animation: vm-placeholder-pulse 1.2s ease-in-out infinite;\n}\n[data-vibe-menu] .vm-row.is-placeholder .vm-bar {\n height: 16px;\n width: 55%;\n border-radius: var(--radius-full);\n}\n[data-vibe-menu] .vm-row.is-placeholder + .vm-row.is-placeholder .vm-dot,\n[data-vibe-menu] .vm-row.is-placeholder + .vm-row.is-placeholder .vm-bar { animation-delay: 0.15s; }\n[data-vibe-menu] .vm-row.is-placeholder + .vm-row.is-placeholder + .vm-row.is-placeholder .vm-dot,\n[data-vibe-menu] .vm-row.is-placeholder + .vm-row.is-placeholder + .vm-row.is-placeholder .vm-bar { animation-delay: 0.3s; }\n@keyframes vm-placeholder-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.4; }\n}\n@media (prefers-reduced-motion: reduce) {\n [data-vibe-menu] .vm-row.is-placeholder .vm-dot,\n [data-vibe-menu] .vm-row.is-placeholder .vm-bar { animation: none; }\n}\n";
|
|
@@ -37,6 +41,8 @@ export interface HomeCardProps {
|
|
|
37
41
|
readonly onMakeYourOwn?: () => void;
|
|
38
42
|
readonly madeHereStarter?: string;
|
|
39
43
|
readonly onGetFullApp?: () => void;
|
|
44
|
+
readonly onInstallApp?: () => void;
|
|
45
|
+
readonly onAbout?: () => void;
|
|
40
46
|
readonly onReport?: () => void;
|
|
41
47
|
readonly tabRow?: boolean;
|
|
42
48
|
}
|
|
@@ -14,12 +14,16 @@ export const HOME_COPY = Object.freeze({
|
|
|
14
14
|
recommended: "Recommended",
|
|
15
15
|
recent: "Recent",
|
|
16
16
|
getFullApp: "Get the full Vibes app",
|
|
17
|
+
installApp: "Install app",
|
|
18
|
+
about: "About",
|
|
17
19
|
report: "Report",
|
|
18
20
|
});
|
|
19
21
|
export const HOME_TAB_LABELS = Object.freeze({
|
|
20
22
|
site: HOME_COPY.home,
|
|
21
23
|
myVibes: HOME_COPY.myVibes,
|
|
22
24
|
getApp: "Get the app",
|
|
25
|
+
install: "Install",
|
|
26
|
+
about: HOME_COPY.about,
|
|
23
27
|
report: HOME_COPY.report,
|
|
24
28
|
});
|
|
25
29
|
export const HOME_CARD_CSS = `
|
|
@@ -101,6 +105,14 @@ export function homeTabItems(props) {
|
|
|
101
105
|
if (onGetFullApp !== undefined) {
|
|
102
106
|
items.push({ key: "getApp", label: HOME_TAB_LABELS.getApp, glyph: "app", kind: "action", onClick: () => onGetFullApp() });
|
|
103
107
|
}
|
|
108
|
+
const onInstallApp = props.onInstallApp;
|
|
109
|
+
if (onInstallApp !== undefined) {
|
|
110
|
+
items.push({ key: "install", label: HOME_TAB_LABELS.install, glyph: "app", kind: "action", onClick: () => onInstallApp() });
|
|
111
|
+
}
|
|
112
|
+
const onAbout = props.onAbout;
|
|
113
|
+
if (onAbout !== undefined) {
|
|
114
|
+
items.push({ key: "about", label: HOME_TAB_LABELS.about, glyph: "file", kind: "action", onClick: () => onAbout() });
|
|
115
|
+
}
|
|
104
116
|
const onReport = props.onReport;
|
|
105
117
|
if (onReport !== undefined && showsReport(props.viewer)) {
|
|
106
118
|
items.push({ key: "report", label: HOME_TAB_LABELS.report, glyph: "shield", kind: "action", onClick: () => onReport() });
|
|
@@ -164,6 +176,8 @@ export function HomeCard(props) {
|
|
|
164
176
|
React.createElement(HomeRow, { href: props.homeHref, onHome: props.onHome }),
|
|
165
177
|
signedIn ? React.createElement(Row, { lead: "layout-grid", label: HOME_COPY.myVibes, href: props.myVibesHref }) : null,
|
|
166
178
|
props.onGetFullApp === undefined ? null : React.createElement(Row, { lead: "app", label: HOME_COPY.getFullApp, onClick: props.onGetFullApp }),
|
|
179
|
+
props.onInstallApp === undefined ? null : React.createElement(Row, { lead: "app", label: HOME_COPY.installApp, onClick: props.onInstallApp }),
|
|
180
|
+
props.onAbout === undefined ? null : React.createElement(Row, { lead: "file", label: HOME_COPY.about, onClick: props.onAbout }),
|
|
167
181
|
props.onReport === undefined || showsReport(props.viewer) === false ? null : (React.createElement(Row, { lead: "shield", label: HOME_COPY.report, onClick: props.onReport }))),
|
|
168
182
|
recs.length > 0 ? (React.createElement(React.Fragment, null,
|
|
169
183
|
React.createElement("h3", { className: "vm-subhead" }, heading),
|
|
@@ -395,7 +395,9 @@ export interface VibeMenuProps {
|
|
|
395
395
|
onMadeHereAsk?: () => void;
|
|
396
396
|
madeHereStarter?: string;
|
|
397
397
|
onGetFullApp?: () => void;
|
|
398
|
+
onInstallApp?: () => void;
|
|
398
399
|
onReport?: () => void;
|
|
400
|
+
onAbout?: () => void;
|
|
399
401
|
recommended: readonly {
|
|
400
402
|
title: string;
|
|
401
403
|
href: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/base",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.450",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@adviser/cement": "~0.5.37",
|
|
12
12
|
"@emotion/css": "~11.13.5",
|
|
13
|
-
"@vibes.diy/api-types": "14.3.
|
|
14
|
-
"@vibes.diy/use-vibes-types": "14.3.
|
|
15
|
-
"@vibes.diy/vibe-runtime": "14.3.
|
|
16
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
17
|
-
"arktype": "~2.2.
|
|
18
|
-
"officeparser": "~8.
|
|
13
|
+
"@vibes.diy/api-types": "14.3.450",
|
|
14
|
+
"@vibes.diy/use-vibes-types": "14.3.450",
|
|
15
|
+
"@vibes.diy/vibe-runtime": "14.3.450",
|
|
16
|
+
"@vibes.diy/vibe-types": "14.3.450",
|
|
17
|
+
"arktype": "~2.2.10",
|
|
18
|
+
"officeparser": "~8.9.0",
|
|
19
19
|
"qrcode-generator": "~2.0.4",
|
|
20
20
|
"react": "~19.2.9"
|
|
21
21
|
},
|