@ydtb/tk-scope-app 0.23.14 → 0.25.1
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/dist/src/lib/platform-api.d.ts +2 -2
- package/dist/src/onboarding/WizardPage.d.ts +5 -1
- package/dist/src/onboarding/WizardPage.d.ts.map +1 -1
- package/dist/src/onboarding/WizardPage.js +6 -2
- package/dist/src/onboarding/WizardPage.js.map +1 -1
- package/package.json +10 -9
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -3442,8 +3442,8 @@ export declare const preferencesApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
3442
3442
|
createdAt: Date;
|
|
3443
3443
|
updatedAt: Date;
|
|
3444
3444
|
scopeId: string;
|
|
3445
|
-
key: string;
|
|
3446
3445
|
userId: string;
|
|
3446
|
+
key: string;
|
|
3447
3447
|
value: string;
|
|
3448
3448
|
} | undefined, {
|
|
3449
3449
|
id: string;
|
|
@@ -3451,8 +3451,8 @@ export declare const preferencesApi: import("@ydtb/tk-scope-api-client").ToolCli
|
|
|
3451
3451
|
createdAt: Date;
|
|
3452
3452
|
updatedAt: Date;
|
|
3453
3453
|
scopeId: string;
|
|
3454
|
-
key: string;
|
|
3455
3454
|
userId: string;
|
|
3455
|
+
key: string;
|
|
3456
3456
|
value: string;
|
|
3457
3457
|
} | undefined>, Record<never, never>, Record<never, never>>;
|
|
3458
3458
|
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<{
|
|
@@ -7,12 +7,16 @@ interface WizardPageProps {
|
|
|
7
7
|
subtitle: string;
|
|
8
8
|
steps?: number;
|
|
9
9
|
currentStep?: number;
|
|
10
|
+
/** Render the wizard content inside its canonical card frame. Required for sidebar layering. */
|
|
11
|
+
framed?: boolean;
|
|
12
|
+
sidebar?: ReactNode;
|
|
13
|
+
sidebarTitle?: string;
|
|
10
14
|
children: ReactNode;
|
|
11
15
|
}
|
|
12
16
|
export declare function ProgressBar({ current, total }: {
|
|
13
17
|
current: number;
|
|
14
18
|
total: number;
|
|
15
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function WizardPage({ icon: Icon, title, subtitle, steps, currentStep, children, }: WizardPageProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function WizardPage({ icon: Icon, title, subtitle, steps, currentStep, framed, sidebar, sidebarTitle, children, }: WizardPageProps): import("react/jsx-runtime").JSX.Element;
|
|
17
21
|
export {};
|
|
18
22
|
//# sourceMappingURL=WizardPage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardPage.d.ts","sourceRoot":"","sources":["../../../src/onboarding/WizardPage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAEjF;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EAAE,IAAI,EACV,KAAK,EACL,QAAQ,EACR,KAAK,EACL,WAAW,EACX,QAAQ,GACT,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"WizardPage.d.ts","sourceRoot":"","sources":["../../../src/onboarding/WizardPage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAClD,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gGAAgG;IAChG,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,2CAEjF;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EAAE,IAAI,EACV,KAAK,EACL,QAAQ,EACR,KAAK,EACL,WAAW,EACX,MAAc,EACd,OAAO,EACP,YAAgC,EAChC,QAAQ,GACT,EAAE,eAAe,2CA8DjB"}
|
|
@@ -3,8 +3,12 @@ import { StepProgress } from "@ydtb/tk-scope-ui/components/step-progress";
|
|
|
3
3
|
export function ProgressBar({ current, total }) {
|
|
4
4
|
return _jsx(StepProgress, { current: current, total: total });
|
|
5
5
|
}
|
|
6
|
-
export function WizardPage({ icon: Icon, title, subtitle, steps, currentStep, children, }) {
|
|
6
|
+
export function WizardPage({ icon: Icon, title, subtitle, steps, currentStep, framed = false, sidebar, sidebarTitle = "Helpful details", children, }) {
|
|
7
7
|
const showStepper = steps != null && steps > 1;
|
|
8
|
-
|
|
8
|
+
const content = (_jsxs("div", { className: "flex w-full flex-col items-center bg-card", children: [showStepper && _jsx(ProgressBar, { current: currentStep ?? 0, total: steps }), Icon && (_jsx("div", { className: `flex h-12 w-12 items-center justify-center rounded-xl bg-primary/10 text-primary${showStepper ? " mt-6 sm:mt-8" : ""}`, children: _jsx(Icon, { className: "h-6 w-6" }) })), _jsx("h1", { className: `text-center text-2xl font-bold tracking-tight text-foreground sm:text-3xl${Icon ? " mt-4" : showStepper ? " mt-6 sm:mt-8" : ""}`, children: title }), subtitle ? _jsx("p", { className: "mt-2 text-center text-sm text-muted-foreground", children: subtitle }) : null, _jsx("div", { className: "mt-10 w-full", children: children })] }));
|
|
9
|
+
if (!framed) {
|
|
10
|
+
return (_jsxs("div", { className: "flex w-full flex-col items-center", children: [content, sidebar ? (_jsxs("aside", { className: "mt-4 rounded-xl border border-border bg-muted/20 px-4 py-4 text-left shadow-sm", children: [_jsx("div", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: sidebarTitle }), _jsx("div", { className: "mt-2 text-sm leading-relaxed text-muted-foreground", children: sidebar })] })) : null] }));
|
|
11
|
+
}
|
|
12
|
+
return (_jsxs("div", { className: "isolate relative w-full", children: [_jsx("div", { className: "relative z-10 rounded-2xl border border-border bg-card p-8 shadow-sm", children: content }), sidebar ? (_jsxs("aside", { className: "relative z-0 mt-4 rounded-xl border border-border bg-muted/20 px-4 py-4 text-left shadow-sm lg:absolute lg:left-[calc(100%-1px)] lg:top-1/2 lg:mt-0 lg:w-64 lg:-translate-y-1/2 lg:rounded-l-none lg:rounded-r-xl lg:border-l-0", children: [_jsx("div", { className: "text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: sidebarTitle }), _jsx("div", { className: "mt-2 text-sm leading-relaxed text-muted-foreground", children: sidebar })] })) : null] }));
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=WizardPage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardPage.js","sourceRoot":"","sources":["../../../src/onboarding/WizardPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAA;
|
|
1
|
+
{"version":3,"file":"WizardPage.js","sourceRoot":"","sources":["../../../src/onboarding/WizardPage.tsx"],"names":[],"mappings":";AAAA,OAAO,EA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AAgF,aAC/F,cAAK,SAAS,EAAC,qEAAqE,YACjF,YAAY,GACT,EACN,cAAK,SAAS,EAAC,oDAAoD,YAAE,OAAO,GAAO,IAC7E,CACT,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;IACH,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAC,yBAAyB,aACtC,cAAK,SAAS,EAAC,sEAAsE,YAClF,OAAO,GACJ,EACL,OAAO,CAAC,CAAC,CAAC,CACT,iBAAO,SAAS,EAAC,iOAAiO,aAChP,cAAK,SAAS,EAAC,qEAAqE,YACjF,YAAY,GACT,EACN,cAAK,SAAS,EAAC,oDAAoD,YAAE,OAAO,GAAO,IAC7E,CACT,CAAC,CAAC,CAAC,IAAI,IACJ,CACP,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ydtb/tk-scope-app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Platform client shell for tk-scope — pages, layouts, dashboard chrome, onboarding, auth strategies",
|
|
6
6
|
"type": "module",
|
|
@@ -83,20 +83,21 @@
|
|
|
83
83
|
"@orpc/server": "^1.13.14",
|
|
84
84
|
"@orpc/tanstack-query": "^1.13.14",
|
|
85
85
|
"@ydtb/core-client": "^0.13.2",
|
|
86
|
-
"@ydtb/tk-scope
|
|
86
|
+
"@ydtb/tk-scope": "0.14.2",
|
|
87
87
|
"@ydtb/tk-scope-auth": "0.23.12",
|
|
88
|
+
"@ydtb/tk-scope-api-client": "0.13.0",
|
|
89
|
+
"@ydtb/tk-scope-dashboard": "0.25.1",
|
|
88
90
|
"@ydtb/tk-scope-extension": "0.23.12",
|
|
89
|
-
"@ydtb/tk-scope-dashboard": "0.23.14",
|
|
90
|
-
"@ydtb/tk-scope": "0.14.2",
|
|
91
91
|
"@ydtb/tk-scope-lib": "0.13.0",
|
|
92
|
-
"@ydtb/tk-scope-query-client": "0.14.0",
|
|
93
|
-
"@ydtb/tk-scope-onboarding": "0.23.12",
|
|
94
92
|
"@ydtb/tk-scope-events": "0.23.12",
|
|
95
|
-
"@ydtb/tk-scope-notifications": "0.23.12",
|
|
96
93
|
"@ydtb/tk-scope-launchpad": "0.23.12",
|
|
97
|
-
"@ydtb/tk-scope-
|
|
98
|
-
"@ydtb/tk-scope-ui": "0.23.14",
|
|
94
|
+
"@ydtb/tk-scope-query-client": "0.14.0",
|
|
99
95
|
"@ydtb/tk-scope-search": "0.23.12",
|
|
96
|
+
"@ydtb/tk-scope-ui": "0.25.1",
|
|
97
|
+
"@ydtb/tk-scope-shell": "0.25.1",
|
|
98
|
+
"@ydtb/tk-scope-tokens": "0.25.1",
|
|
99
|
+
"@ydtb/tk-scope-notifications": "0.23.12",
|
|
100
|
+
"@ydtb/tk-scope-onboarding": "0.23.12",
|
|
100
101
|
"@ydtb/tk-scope-platform": "0.23.12"
|
|
101
102
|
},
|
|
102
103
|
"peerDependencies": {
|