@vibes.diy/base 14.3.447 → 14.3.449
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/components/vibe-menu/VibeMenu.js +1 -1
- package/components/vibe-menu/cards/HomeCard.d.ts +3 -0
- package/components/vibe-menu/cards/HomeCard.js +7 -0
- package/components/vibe-menu/copy.d.ts +1 -0
- package/components/vibe-menu/copy.js +1 -0
- package/components/vibe-menu/slices.d.ts +1 -0
- package/package.json +5 -5
|
@@ -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, 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,14 @@ 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";
|
|
15
16
|
report: "Report";
|
|
16
17
|
}>;
|
|
17
18
|
export declare const HOME_TAB_LABELS: Readonly<{
|
|
18
19
|
site: "vibes.diy home";
|
|
19
20
|
myVibes: "My Vibes";
|
|
20
21
|
getApp: "Get the app";
|
|
22
|
+
install: "Install";
|
|
21
23
|
report: "Report";
|
|
22
24
|
}>;
|
|
23
25
|
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 +39,7 @@ export interface HomeCardProps {
|
|
|
37
39
|
readonly onMakeYourOwn?: () => void;
|
|
38
40
|
readonly madeHereStarter?: string;
|
|
39
41
|
readonly onGetFullApp?: () => void;
|
|
42
|
+
readonly onInstallApp?: () => void;
|
|
40
43
|
readonly onReport?: () => void;
|
|
41
44
|
readonly tabRow?: boolean;
|
|
42
45
|
}
|
|
@@ -14,12 +14,14 @@ 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",
|
|
17
18
|
report: "Report",
|
|
18
19
|
});
|
|
19
20
|
export const HOME_TAB_LABELS = Object.freeze({
|
|
20
21
|
site: HOME_COPY.home,
|
|
21
22
|
myVibes: HOME_COPY.myVibes,
|
|
22
23
|
getApp: "Get the app",
|
|
24
|
+
install: "Install",
|
|
23
25
|
report: HOME_COPY.report,
|
|
24
26
|
});
|
|
25
27
|
export const HOME_CARD_CSS = `
|
|
@@ -101,6 +103,10 @@ export function homeTabItems(props) {
|
|
|
101
103
|
if (onGetFullApp !== undefined) {
|
|
102
104
|
items.push({ key: "getApp", label: HOME_TAB_LABELS.getApp, glyph: "app", kind: "action", onClick: () => onGetFullApp() });
|
|
103
105
|
}
|
|
106
|
+
const onInstallApp = props.onInstallApp;
|
|
107
|
+
if (onInstallApp !== undefined) {
|
|
108
|
+
items.push({ key: "install", label: HOME_TAB_LABELS.install, glyph: "app", kind: "action", onClick: () => onInstallApp() });
|
|
109
|
+
}
|
|
104
110
|
const onReport = props.onReport;
|
|
105
111
|
if (onReport !== undefined && showsReport(props.viewer)) {
|
|
106
112
|
items.push({ key: "report", label: HOME_TAB_LABELS.report, glyph: "shield", kind: "action", onClick: () => onReport() });
|
|
@@ -164,6 +170,7 @@ export function HomeCard(props) {
|
|
|
164
170
|
React.createElement(HomeRow, { href: props.homeHref, onHome: props.onHome }),
|
|
165
171
|
signedIn ? React.createElement(Row, { lead: "layout-grid", label: HOME_COPY.myVibes, href: props.myVibesHref }) : null,
|
|
166
172
|
props.onGetFullApp === undefined ? null : React.createElement(Row, { lead: "app", label: HOME_COPY.getFullApp, onClick: props.onGetFullApp }),
|
|
173
|
+
props.onInstallApp === undefined ? null : React.createElement(Row, { lead: "app", label: HOME_COPY.installApp, onClick: props.onInstallApp }),
|
|
167
174
|
props.onReport === undefined || showsReport(props.viewer) === false ? null : (React.createElement(Row, { lead: "shield", label: HOME_COPY.report, onClick: props.onReport }))),
|
|
168
175
|
recs.length > 0 ? (React.createElement(React.Fragment, null,
|
|
169
176
|
React.createElement("h3", { className: "vm-subhead" }, heading),
|
|
@@ -104,6 +104,7 @@ export declare const GUEST_SIGN_IN_BONUS = "Sign in to keep your apps and get 1,
|
|
|
104
104
|
export declare const GUEST_TURN_WALL: Readonly<{
|
|
105
105
|
line: "Keep building with a free account. Your app and this prompt come with you, plus 1,000 bonus credits and 1,000 every month.";
|
|
106
106
|
action: "Create free account";
|
|
107
|
+
heldChange: "Your change is ready, and it sends as soon as you’re in.";
|
|
107
108
|
}>;
|
|
108
109
|
export declare const GUEST_OUT_OF_CREDITS_LINE = "You\u2019ve used your guest credits. Builds we lost along the way were on us. Sign in to keep your apps and get 1,000 bonus credits, plus 1,000 every month.";
|
|
109
110
|
export declare const GUEST_SHARE_ASK: Readonly<{
|
|
@@ -126,6 +126,7 @@ export const GUEST_SIGN_IN_BONUS = "Sign in to keep your apps and get 1,000 bonu
|
|
|
126
126
|
export const GUEST_TURN_WALL = Object.freeze({
|
|
127
127
|
line: `Keep building with a free account. Your app and this prompt come with you, plus 1,000 bonus credits and 1,000 every month.`,
|
|
128
128
|
action: "Create free account",
|
|
129
|
+
heldChange: "Your change is ready, and it sends as soon as you’re in.",
|
|
129
130
|
});
|
|
130
131
|
export const GUEST_OUT_OF_CREDITS_LINE = `You’ve used your guest credits. Builds we lost along the way were on us. ${GUEST_SIGN_IN_BONUS}`;
|
|
131
132
|
export const GUEST_SHARE_ASK = Object.freeze({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/base",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.449",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -10,10 +10,10 @@
|
|
|
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.
|
|
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
17
|
"arktype": "~2.2.9",
|
|
18
18
|
"officeparser": "~8.8.0",
|
|
19
19
|
"qrcode-generator": "~2.0.4",
|