@vibes.diy/base 14.3.449 → 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, onInstallApp: props.onInstallApp, 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":
@@ -13,6 +13,7 @@ export declare const HOME_COPY: Readonly<{
13
13
  recent: "Recent";
14
14
  getFullApp: "Get the full Vibes app";
15
15
  installApp: "Install app";
16
+ about: "About";
16
17
  report: "Report";
17
18
  }>;
18
19
  export declare const HOME_TAB_LABELS: Readonly<{
@@ -20,6 +21,7 @@ export declare const HOME_TAB_LABELS: Readonly<{
20
21
  myVibes: "My Vibes";
21
22
  getApp: "Get the app";
22
23
  install: "Install";
24
+ about: "About";
23
25
  report: "Report";
24
26
  }>;
25
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";
@@ -40,6 +42,7 @@ export interface HomeCardProps {
40
42
  readonly madeHereStarter?: string;
41
43
  readonly onGetFullApp?: () => void;
42
44
  readonly onInstallApp?: () => void;
45
+ readonly onAbout?: () => void;
43
46
  readonly onReport?: () => void;
44
47
  readonly tabRow?: boolean;
45
48
  }
@@ -15,6 +15,7 @@ export const HOME_COPY = Object.freeze({
15
15
  recent: "Recent",
16
16
  getFullApp: "Get the full Vibes app",
17
17
  installApp: "Install app",
18
+ about: "About",
18
19
  report: "Report",
19
20
  });
20
21
  export const HOME_TAB_LABELS = Object.freeze({
@@ -22,6 +23,7 @@ export const HOME_TAB_LABELS = Object.freeze({
22
23
  myVibes: HOME_COPY.myVibes,
23
24
  getApp: "Get the app",
24
25
  install: "Install",
26
+ about: HOME_COPY.about,
25
27
  report: HOME_COPY.report,
26
28
  });
27
29
  export const HOME_CARD_CSS = `
@@ -107,6 +109,10 @@ export function homeTabItems(props) {
107
109
  if (onInstallApp !== undefined) {
108
110
  items.push({ key: "install", label: HOME_TAB_LABELS.install, glyph: "app", kind: "action", onClick: () => onInstallApp() });
109
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
+ }
110
116
  const onReport = props.onReport;
111
117
  if (onReport !== undefined && showsReport(props.viewer)) {
112
118
  items.push({ key: "report", label: HOME_TAB_LABELS.report, glyph: "shield", kind: "action", onClick: () => onReport() });
@@ -171,6 +177,7 @@ export function HomeCard(props) {
171
177
  signedIn ? React.createElement(Row, { lead: "layout-grid", label: HOME_COPY.myVibes, href: props.myVibesHref }) : null,
172
178
  props.onGetFullApp === undefined ? null : React.createElement(Row, { lead: "app", label: HOME_COPY.getFullApp, onClick: props.onGetFullApp }),
173
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 }),
174
181
  props.onReport === undefined || showsReport(props.viewer) === false ? null : (React.createElement(Row, { lead: "shield", label: HOME_COPY.report, onClick: props.onReport }))),
175
182
  recs.length > 0 ? (React.createElement(React.Fragment, null,
176
183
  React.createElement("h3", { className: "vm-subhead" }, heading),
@@ -397,6 +397,7 @@ export interface VibeMenuProps {
397
397
  onGetFullApp?: () => void;
398
398
  onInstallApp?: () => void;
399
399
  onReport?: () => void;
400
+ onAbout?: () => void;
400
401
  recommended: readonly {
401
402
  title: string;
402
403
  href: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/base",
3
- "version": "14.3.449",
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.449",
14
- "@vibes.diy/use-vibes-types": "14.3.449",
15
- "@vibes.diy/vibe-runtime": "14.3.449",
16
- "@vibes.diy/vibe-types": "14.3.449",
17
- "arktype": "~2.2.9",
18
- "officeparser": "~8.8.0",
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
  },