@vibes.diy/base 14.3.326 → 14.3.328
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/cards/AccountCard.d.ts +2 -0
- package/components/vibe-menu/cards/AccountCard.js +8 -0
- package/components/vibe-menu/parts/StatusChipRow.d.ts +4 -1
- package/components/vibe-menu/parts/StatusChipRow.js +4 -0
- package/components/vibe-menu/slices.d.ts +1 -0
- package/package.json +5 -5
|
@@ -5,6 +5,8 @@ import { type CardTabItem } from "../parts/CardTabRow.js";
|
|
|
5
5
|
export declare const ACCOUNT_COPY: Readonly<{
|
|
6
6
|
signedOutSub: "Keep your changes on every device.";
|
|
7
7
|
loading: "Loading your account…";
|
|
8
|
+
reloadLead: "Sign-in is taking a different road.";
|
|
9
|
+
reload: "Reload";
|
|
8
10
|
creditsLeft: "credits left";
|
|
9
11
|
thisMonth: "this month";
|
|
10
12
|
guestCreditsLeft: "credits left before";
|
|
@@ -15,6 +15,8 @@ import { FacesGlyph } from "../parts/ThinkingLine.js";
|
|
|
15
15
|
export const ACCOUNT_COPY = Object.freeze({
|
|
16
16
|
signedOutSub: "Keep your changes on every device.",
|
|
17
17
|
loading: "Loading your account…",
|
|
18
|
+
reloadLead: "Sign-in is taking a different road.",
|
|
19
|
+
reload: "Reload",
|
|
18
20
|
creditsLeft: "credits left",
|
|
19
21
|
thisMonth: "this month",
|
|
20
22
|
guestCreditsLeft: "credits left before",
|
|
@@ -290,6 +292,12 @@ function AccountBody(props) {
|
|
|
290
292
|
const resolving = pending || (signedIn && account.activeHandle === null);
|
|
291
293
|
if (showsSignUpDrill(props))
|
|
292
294
|
return React.createElement(SignUpDrill, { ...props });
|
|
295
|
+
const onReload = account.onReload ?? null;
|
|
296
|
+
if (resolving && onReload !== null) {
|
|
297
|
+
return (React.createElement(React.Fragment, null,
|
|
298
|
+
React.createElement("p", { className: "vm-sub", "data-account-reload": "" }, ACCOUNT_COPY.reloadLead),
|
|
299
|
+
React.createElement(ActionPill, { label: ACCOUNT_COPY.reload, onClick: onReload })));
|
|
300
|
+
}
|
|
293
301
|
if (resolving) {
|
|
294
302
|
return (React.createElement("div", { className: "vm-who", "aria-busy": "true" },
|
|
295
303
|
React.createElement(FacesGlyph, { size: 16, ink: "current" }),
|
|
@@ -13,13 +13,16 @@ export declare const EXAMPLES_IMPORTING_TEXT = "Importing example data\u2026";
|
|
|
13
13
|
export declare const EXAMPLES_IMPORTING_LABEL = "Importing example data into your app.";
|
|
14
14
|
export declare const EXAMPLES_RETRY_TEXT = "Example data \u00B7 tap to try again";
|
|
15
15
|
export declare const EXAMPLES_RETRY_LABEL = "Tap to bring the example data back again.";
|
|
16
|
+
export declare const EXAMPLES_REFUSED_TEXT = "Example data \u00B7 tap to fit your rules";
|
|
17
|
+
export declare const EXAMPLES_REFUSED_LABEL = "Your app's rules want the example data in a shape of their own. Tap to ask the builder to reshape the examples to fit.";
|
|
18
|
+
export declare const EXAMPLES_REFUSED_ASK = "Reshape the example data so the app's rules welcome every record.";
|
|
16
19
|
export declare const EXAMPLES_KEEPING_TEXT = "Keeping your example data\u2026";
|
|
17
20
|
export declare const EXAMPLES_KEEPING_LABEL = "Keeping the example data in your app.";
|
|
18
21
|
export declare const EXAMPLES_KEPT_TEXT = "Example data \u00B7 start fresh";
|
|
19
22
|
export declare const EXAMPLES_KEPT_LABEL = "Your app has example data to try. Tap to start fresh with your own.";
|
|
20
23
|
export declare const EXAMPLES_CLEARING_TEXT = "Starting fresh\u2026";
|
|
21
24
|
export declare const EXAMPLES_CLEARING_LABEL = "Starting your app fresh for your own records.";
|
|
22
|
-
export type ExamplesChipPhase = "idle" | "importing" | "retry" | "keeping" | "kept" | "clearing";
|
|
25
|
+
export type ExamplesChipPhase = "idle" | "importing" | "retry" | "refused" | "keeping" | "kept" | "clearing";
|
|
23
26
|
export declare const NEXT_STEP_TEXT_MAX = 26;
|
|
24
27
|
export declare function nextStepChipText(label: string): string;
|
|
25
28
|
export declare function nextStepChipLabel(label: string): string;
|
|
@@ -23,6 +23,9 @@ export const EXAMPLES_IMPORTING_TEXT = "Importing example data…";
|
|
|
23
23
|
export const EXAMPLES_IMPORTING_LABEL = "Importing example data into your app.";
|
|
24
24
|
export const EXAMPLES_RETRY_TEXT = "Example data · tap to try again";
|
|
25
25
|
export const EXAMPLES_RETRY_LABEL = "Tap to bring the example data back again.";
|
|
26
|
+
export const EXAMPLES_REFUSED_TEXT = "Example data · tap to fit your rules";
|
|
27
|
+
export const EXAMPLES_REFUSED_LABEL = "Your app's rules want the example data in a shape of their own. Tap to ask the builder to reshape the examples to fit.";
|
|
28
|
+
export const EXAMPLES_REFUSED_ASK = "Reshape the example data so the app's rules welcome every record.";
|
|
26
29
|
export const EXAMPLES_KEEPING_TEXT = "Keeping your example data…";
|
|
27
30
|
export const EXAMPLES_KEEPING_LABEL = "Keeping the example data in your app.";
|
|
28
31
|
export const EXAMPLES_KEPT_TEXT = "Example data · start fresh";
|
|
@@ -33,6 +36,7 @@ const EXAMPLES_FACES = Object.freeze({
|
|
|
33
36
|
idle: { text: EXAMPLES_CLEARED_TEXT, label: EXAMPLES_CLEARED_LABEL },
|
|
34
37
|
importing: { text: EXAMPLES_IMPORTING_TEXT, label: EXAMPLES_IMPORTING_LABEL },
|
|
35
38
|
retry: { text: EXAMPLES_RETRY_TEXT, label: EXAMPLES_RETRY_LABEL },
|
|
39
|
+
refused: { text: EXAMPLES_REFUSED_TEXT, label: EXAMPLES_REFUSED_LABEL },
|
|
36
40
|
keeping: { text: EXAMPLES_KEEPING_TEXT, label: EXAMPLES_KEEPING_LABEL },
|
|
37
41
|
kept: { text: EXAMPLES_KEPT_TEXT, label: EXAMPLES_KEPT_LABEL },
|
|
38
42
|
clearing: { text: EXAMPLES_CLEARING_TEXT, label: EXAMPLES_CLEARING_LABEL },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/base",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.328",
|
|
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.328",
|
|
14
|
+
"@vibes.diy/use-vibes-types": "14.3.328",
|
|
15
|
+
"@vibes.diy/vibe-runtime": "14.3.328",
|
|
16
|
+
"@vibes.diy/vibe-types": "14.3.328",
|
|
17
17
|
"arktype": "~2.2.9",
|
|
18
18
|
"officeparser": "~8.7.1",
|
|
19
19
|
"qrcode-generator": "~2.0.4",
|