@nextsparkjs/core 0.1.0-beta.67 → 0.1.0-beta.69
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/components/dashboard/block-editor/block-picker.d.ts +7 -2
- package/dist/components/dashboard/block-editor/block-picker.d.ts.map +1 -1
- package/dist/components/dashboard/block-editor/block-picker.js +27 -20
- package/dist/components/dashboard/block-editor/block-preview-canvas.d.ts.map +1 -1
- package/dist/components/dashboard/block-editor/block-preview-canvas.js +37 -37
- package/dist/components/dashboard/block-editor/block-settings-panel.js +3 -3
- package/dist/components/dashboard/block-editor/builder-editor-view.d.ts.map +1 -1
- package/dist/components/dashboard/block-editor/builder-editor-view.js +124 -82
- package/dist/components/dashboard/block-editor/config-panel.d.ts +18 -0
- package/dist/components/dashboard/block-editor/config-panel.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/config-panel.js +413 -0
- package/dist/components/dashboard/block-editor/floating-block-toolbar.js +1 -1
- package/dist/components/dashboard/block-editor/pattern-card.js +1 -1
- package/dist/components/dashboard/block-editor/pattern-reference-preview.js +1 -1
- package/dist/components/dashboard/block-editor/sortable-block.js +1 -1
- package/dist/components/dashboard/block-editor/tree-view-node.d.ts +11 -0
- package/dist/components/dashboard/block-editor/tree-view-node.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/tree-view-node.js +91 -0
- package/dist/components/dashboard/block-editor/tree-view.d.ts +17 -0
- package/dist/components/dashboard/block-editor/tree-view.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/tree-view.js +125 -0
- package/dist/components/dashboard/block-editor/viewport-toggle.d.ts +10 -0
- package/dist/components/dashboard/block-editor/viewport-toggle.d.ts.map +1 -0
- package/dist/components/dashboard/block-editor/viewport-toggle.js +55 -0
- package/dist/components/public/pageBuilder/PageRenderer.d.ts.map +1 -1
- package/dist/components/public/pageBuilder/PageRenderer.js +10 -1
- package/dist/components/settings/layouts/SettingsSidebar.d.ts.map +1 -1
- package/dist/components/settings/layouts/SettingsSidebar.js +14 -0
- package/dist/components/ui/dynamic-icon.d.ts +12 -0
- package/dist/components/ui/dynamic-icon.d.ts.map +1 -0
- package/dist/components/ui/dynamic-icon.js +11 -0
- package/dist/components/ui/index.d.ts +7 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +7 -0
- package/dist/components/ui/skeleton-dashboard.d.ts +32 -0
- package/dist/components/ui/skeleton-dashboard.d.ts.map +1 -0
- package/dist/components/ui/skeleton-dashboard.js +69 -0
- package/dist/components/ui/skeleton-detail.d.ts.map +1 -1
- package/dist/components/ui/skeleton-detail.js +0 -1
- package/dist/components/ui/skeleton-features.d.ts +27 -0
- package/dist/components/ui/skeleton-features.d.ts.map +1 -0
- package/dist/components/ui/skeleton-features.js +90 -0
- package/dist/components/ui/skeleton-form.d.ts.map +1 -1
- package/dist/components/ui/skeleton-form.js +0 -1
- package/dist/components/ui/skeleton-list.d.ts.map +1 -1
- package/dist/components/ui/skeleton-list.js +0 -1
- package/dist/components/ui/skeleton-public.d.ts +26 -0
- package/dist/components/ui/skeleton-public.d.ts.map +1 -0
- package/dist/components/ui/skeleton-public.js +61 -0
- package/dist/components/ui/skeleton-settings.d.ts +54 -0
- package/dist/components/ui/skeleton-settings.d.ts.map +1 -0
- package/dist/components/ui/skeleton-settings.js +332 -0
- package/dist/components/ui/skeleton.d.ts +23 -1
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton.js +46 -2
- package/dist/contexts/TeamContext.d.ts +2 -0
- package/dist/contexts/TeamContext.d.ts.map +1 -1
- package/dist/contexts/TeamContext.js +78 -68
- package/dist/hooks/usePrefetch.d.ts +43 -0
- package/dist/hooks/usePrefetch.d.ts.map +1 -0
- package/dist/hooks/usePrefetch.js +56 -0
- package/dist/lib/actions/index.d.ts +27 -14
- package/dist/lib/actions/index.d.ts.map +1 -1
- package/dist/lib/actions/index.js +19 -1
- package/dist/lib/actions/team.actions.d.ts +107 -0
- package/dist/lib/actions/team.actions.d.ts.map +1 -0
- package/dist/lib/actions/team.actions.js +220 -0
- package/dist/lib/actions/user.actions.d.ts +99 -0
- package/dist/lib/actions/user.actions.d.ts.map +1 -0
- package/dist/lib/actions/user.actions.js +149 -0
- package/dist/lib/selectors/core-selectors.d.ts +98 -44
- package/dist/lib/selectors/core-selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/block-editor.selectors.d.ts +136 -71
- package/dist/lib/selectors/domains/block-editor.selectors.d.ts.map +1 -1
- package/dist/lib/selectors/domains/block-editor.selectors.js +130 -60
- package/dist/lib/selectors/selectors.d.ts +196 -88
- package/dist/lib/selectors/selectors.d.ts.map +1 -1
- package/dist/messages/de/devtools.json +4 -0
- package/dist/messages/de/index.d.ts +4 -0
- package/dist/messages/de/index.d.ts.map +1 -1
- package/dist/messages/en/admin.json +15 -1
- package/dist/messages/en/devtools.json +16 -0
- package/dist/messages/en/index.d.ts +30 -0
- package/dist/messages/en/index.d.ts.map +1 -1
- package/dist/messages/es/admin.json +16 -1
- package/dist/messages/es/devtools.json +4 -0
- package/dist/messages/es/index.d.ts +19 -0
- package/dist/messages/es/index.d.ts.map +1 -1
- package/dist/messages/fr/devtools.json +4 -0
- package/dist/messages/fr/index.d.ts +4 -0
- package/dist/messages/fr/index.d.ts.map +1 -1
- package/dist/messages/it/devtools.json +4 -0
- package/dist/messages/it/index.d.ts +4 -0
- package/dist/messages/it/index.d.ts.map +1 -1
- package/dist/messages/pt/devtools.json +4 -0
- package/dist/messages/pt/index.d.ts +4 -0
- package/dist/messages/pt/index.d.ts.map +1 -1
- package/dist/nextspark-entities.d.ts +59 -0
- package/dist/presets/blocks/cta-section/component.tsx +4 -4
- package/dist/presets/blocks/features-grid/component.tsx +5 -5
- package/dist/presets/blocks/hero/component.tsx +2 -2
- package/dist/presets/blocks/testimonials/component.tsx +4 -4
- package/dist/presets/blocks/text-content/component.tsx +2 -2
- package/dist/presets/theme/blocks/hero/component.tsx +2 -2
- package/dist/presets/theme/tests/cypress/src/core/BlockEditorBasePOM.ts +123 -24
- package/dist/styles/classes.json +22 -2
- package/dist/styles/ui.css +1 -1
- package/dist/templates/app/(public)/[...slug]/page.tsx +2 -1
- package/dist/templates/app/(public)/docs/[section]/[page]/page.tsx +1 -1
- package/dist/templates/app/api/devtools/config/entities/route.ts +2 -1
- package/dist/templates/app/api/user/plan-flags/route.ts +1 -1
- package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +4 -2
- package/dist/templates/app/dashboard/(main)/layout.tsx +2 -1
- package/dist/templates/app/dashboard/(main)/loading.tsx +5 -0
- package/dist/templates/app/dashboard/features/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/api-keys/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/billing/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/invoices/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/notifications/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/password/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/plans/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/profile/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/security/loading.tsx +5 -0
- package/dist/templates/app/dashboard/settings/teams/loading.tsx +5 -0
- package/dist/templates/app/devtools/config/page.tsx +1 -1
- package/dist/templates/app/devtools/page.tsx +1 -1
- package/dist/templates/app/devtools/tests/[[...path]]/page.tsx +1 -1
- package/dist/templates/contents/themes/starter/messages/de/common.json +4 -1
- package/dist/templates/contents/themes/starter/messages/de/index.ts +15 -0
- package/dist/templates/contents/themes/starter/messages/en/common.json +4 -1
- package/dist/templates/contents/themes/starter/messages/en/index.ts +15 -0
- package/dist/templates/contents/themes/starter/messages/es/common.json +4 -1
- package/dist/templates/contents/themes/starter/messages/es/index.ts +15 -0
- package/dist/templates/contents/themes/starter/messages/fr/common.json +4 -1
- package/dist/templates/contents/themes/starter/messages/fr/index.ts +15 -0
- package/dist/templates/contents/themes/starter/messages/it/common.json +4 -1
- package/dist/templates/contents/themes/starter/messages/it/index.ts +13 -0
- package/dist/templates/contents/themes/starter/messages/pt/common.json +4 -1
- package/dist/templates/contents/themes/starter/messages/pt/index.ts +13 -0
- package/dist/templates/contents/themes/starter/styles/globals.css +3 -1
- package/dist/templates/contents/themes/starter/templates/(dashboard)/analytics/loading.tsx +5 -0
- package/dist/templates/contents/themes/starter/templates/(public)/loading.tsx +5 -0
- package/dist/templates/features/blog/blocks/post-content/component.tsx +2 -2
- package/dist/templates/features/pages/blocks/hero/component.tsx +2 -2
- package/dist/templates/next.config.mjs +10 -3
- package/dist/templates/{middleware.ts → proxy.ts} +5 -6
- package/globals.css +54 -0
- package/nextspark-entities.d.ts +59 -0
- package/package.json +18 -16
- package/scripts/build/registry/discovery/api-presets.mjs +20 -12
- package/scripts/build/registry/generators/api-presets-registry.mjs +18 -5
- package/scripts/build/registry/generators/block-registry.mjs +14 -3
- package/scripts/build/registry/generators/docs-registry.mjs +21 -3
- package/scripts/build/registry/generators/translation-registry.mjs +16 -7
- package/scripts/build/theme.mjs +2 -1
- package/templates/app/(public)/[...slug]/page.tsx +2 -1
- package/templates/app/(public)/docs/[section]/[page]/page.tsx +1 -1
- package/templates/app/api/auth/[...all]/route.ts +13 -5
- package/templates/app/api/devtools/config/entities/route.ts +2 -1
- package/templates/app/api/user/plan-flags/route.ts +1 -1
- package/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +4 -2
- package/templates/app/dashboard/(main)/layout.tsx +2 -1
- package/templates/app/dashboard/(main)/loading.tsx +5 -0
- package/templates/app/dashboard/features/loading.tsx +5 -0
- package/templates/app/dashboard/settings/api-keys/loading.tsx +5 -0
- package/templates/app/dashboard/settings/billing/loading.tsx +5 -0
- package/templates/app/dashboard/settings/invoices/loading.tsx +5 -0
- package/templates/app/dashboard/settings/loading.tsx +5 -0
- package/templates/app/dashboard/settings/notifications/loading.tsx +5 -0
- package/templates/app/dashboard/settings/password/loading.tsx +5 -0
- package/templates/app/dashboard/settings/plans/loading.tsx +5 -0
- package/templates/app/dashboard/settings/profile/loading.tsx +5 -0
- package/templates/app/dashboard/settings/security/loading.tsx +5 -0
- package/templates/app/dashboard/settings/teams/loading.tsx +5 -0
- package/templates/app/devtools/config/page.tsx +1 -1
- package/templates/app/devtools/page.tsx +1 -1
- package/templates/app/devtools/tests/[[...path]]/page.tsx +1 -1
- package/templates/contents/themes/starter/config/app.config.ts +8 -7
- package/templates/contents/themes/starter/messages/de/common.json +4 -1
- package/templates/contents/themes/starter/messages/de/index.ts +15 -0
- package/templates/contents/themes/starter/messages/en/common.json +4 -1
- package/templates/contents/themes/starter/messages/en/index.ts +15 -0
- package/templates/contents/themes/starter/messages/es/common.json +4 -1
- package/templates/contents/themes/starter/messages/es/index.ts +15 -0
- package/templates/contents/themes/starter/messages/fr/common.json +4 -1
- package/templates/contents/themes/starter/messages/fr/index.ts +15 -0
- package/templates/contents/themes/starter/messages/it/common.json +4 -1
- package/templates/contents/themes/starter/messages/it/index.ts +13 -0
- package/templates/contents/themes/starter/messages/pt/common.json +4 -1
- package/templates/contents/themes/starter/messages/pt/index.ts +13 -0
- package/templates/contents/themes/starter/styles/globals.css +3 -1
- package/templates/contents/themes/starter/templates/(dashboard)/analytics/loading.tsx +5 -0
- package/templates/contents/themes/starter/templates/(public)/loading.tsx +5 -0
- package/templates/features/blog/blocks/post-content/component.tsx +2 -2
- package/templates/features/pages/blocks/hero/component.tsx +2 -2
- package/templates/next.config.mjs +10 -3
- package/templates/pnpm-workspace.yaml +5 -0
- package/templates/{middleware.ts → proxy.ts} +5 -6
- package/tests/jest/setup.ts +5 -0
- package/dist/presets/plugin/.env.example.template +0 -19
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Skeleton } from "./skeleton.js";
|
|
3
|
+
function SkeletonHeroSection() {
|
|
4
|
+
return /* @__PURE__ */ jsxs("section", { className: "flex flex-col items-center justify-center px-4 py-24 text-center", children: [
|
|
5
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-96 max-w-full sm:h-16" }),
|
|
6
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-6 h-6 w-[32rem] max-w-full" }),
|
|
7
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-2 h-6 w-96 max-w-full" }),
|
|
8
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-10 h-12 w-40" })
|
|
9
|
+
] });
|
|
10
|
+
}
|
|
11
|
+
function SkeletonFeaturesSection() {
|
|
12
|
+
return /* @__PURE__ */ jsx("section", { className: "px-4 py-24 bg-muted/50", children: /* @__PURE__ */ jsxs("div", { className: "max-w-6xl mx-auto", children: [
|
|
13
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-64 mx-auto" }),
|
|
14
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-4 h-5 w-96 mx-auto" }),
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: "mt-12 grid gap-8 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "p-6 rounded-lg border bg-card", children: [
|
|
16
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-lg" }),
|
|
17
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-4 h-6 w-32" }),
|
|
18
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-2 h-4 w-full" }),
|
|
19
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-1 h-4 w-3/4" })
|
|
20
|
+
] }, i)) })
|
|
21
|
+
] }) });
|
|
22
|
+
}
|
|
23
|
+
function SkeletonLandingPage() {
|
|
24
|
+
return /* @__PURE__ */ jsxs("main", { className: "flex min-h-screen flex-col", children: [
|
|
25
|
+
/* @__PURE__ */ jsx(SkeletonHeroSection, {}),
|
|
26
|
+
/* @__PURE__ */ jsx(SkeletonFeaturesSection, {})
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
function SkeletonSupportPage() {
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", { className: "max-w-2xl mx-auto px-4 py-12", children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-48" }),
|
|
32
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "mt-2 h-5 w-80" }),
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-8 space-y-6", children: [
|
|
34
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [
|
|
35
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
36
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" }),
|
|
37
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
40
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" }),
|
|
41
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
42
|
+
] })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" }),
|
|
46
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" }),
|
|
50
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-32 w-full" })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-32" })
|
|
53
|
+
] })
|
|
54
|
+
] });
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
SkeletonFeaturesSection,
|
|
58
|
+
SkeletonHeroSection,
|
|
59
|
+
SkeletonLandingPage,
|
|
60
|
+
SkeletonSupportPage
|
|
61
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton components specifically for settings pages
|
|
3
|
+
* Provides realistic loading states that match the settings page structure
|
|
4
|
+
*
|
|
5
|
+
* Performance optimizations:
|
|
6
|
+
* - Uses SkeletonContainer for content-visibility optimization
|
|
7
|
+
* - CSS containment isolates layout calculations
|
|
8
|
+
* - Supports prefers-reduced-motion
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Skeleton for settings navigation card
|
|
12
|
+
*/
|
|
13
|
+
export declare function SkeletonSettingsNavCard(): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Skeleton for settings overview page (navigation cards)
|
|
16
|
+
*/
|
|
17
|
+
export declare function SkeletonSettingsOverview(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* Skeleton for profile form page
|
|
20
|
+
*/
|
|
21
|
+
export declare function SkeletonProfileForm(): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
/**
|
|
23
|
+
* Skeleton for billing/plans page
|
|
24
|
+
*/
|
|
25
|
+
export declare function SkeletonBillingPage(): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* Skeleton for password change page
|
|
28
|
+
*/
|
|
29
|
+
export declare function SkeletonPasswordPage(): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* Skeleton for security page (sessions list)
|
|
32
|
+
*/
|
|
33
|
+
export declare function SkeletonSecurityPage(): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* Skeleton for API keys page
|
|
36
|
+
*/
|
|
37
|
+
export declare function SkeletonApiKeysPage(): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Skeleton for notifications page
|
|
40
|
+
*/
|
|
41
|
+
export declare function SkeletonNotificationsPage(): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Skeleton for teams page
|
|
44
|
+
*/
|
|
45
|
+
export declare function SkeletonTeamsPage(): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
/**
|
|
47
|
+
* Skeleton for invoices page
|
|
48
|
+
*/
|
|
49
|
+
export declare function SkeletonInvoicesPage(): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
/**
|
|
51
|
+
* Skeleton for plans page
|
|
52
|
+
*/
|
|
53
|
+
export declare function SkeletonPlansPage(): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
//# sourceMappingURL=skeleton-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton-settings.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton-settings.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;GAEG;AACH,wBAAgB,uBAAuB,4CAYtC;AAED;;GAEG;AACH,wBAAgB,wBAAwB,4CAsBvC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,4CAkFlC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,4CAqDlC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,4CAmCnC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,4CAkCnC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,4CAoClC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,4CA2BxC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,4CA2ChC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,4CA2CnC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,4CAqChC"}
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Card, CardContent, CardHeader } from "./card.js";
|
|
3
|
+
import { Skeleton, SkeletonContainer } from "./skeleton.js";
|
|
4
|
+
function SkeletonSettingsNavCard() {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { className: "block p-6 rounded-lg border border-border bg-card", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4", children: [
|
|
6
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-5 flex-shrink-0" }),
|
|
7
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0 space-y-2", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
9
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
10
|
+
] })
|
|
11
|
+
] }) });
|
|
12
|
+
}
|
|
13
|
+
function SkeletonSettingsOverview() {
|
|
14
|
+
return /* @__PURE__ */ jsx("div", { "data-cy": "skeleton-settings-overview", className: "max-w-2xl", children: /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
|
|
15
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
16
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-48 mb-2" }),
|
|
17
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-72" })
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ jsxs(SkeletonContainer, { className: "space-y-4", children: [
|
|
20
|
+
/* @__PURE__ */ jsx(SkeletonSettingsNavCard, {}),
|
|
21
|
+
/* @__PURE__ */ jsx(SkeletonSettingsNavCard, {}),
|
|
22
|
+
/* @__PURE__ */ jsx(SkeletonSettingsNavCard, {}),
|
|
23
|
+
/* @__PURE__ */ jsx(SkeletonSettingsNavCard, {}),
|
|
24
|
+
/* @__PURE__ */ jsx(SkeletonSettingsNavCard, {}),
|
|
25
|
+
/* @__PURE__ */ jsx(SkeletonSettingsNavCard, {})
|
|
26
|
+
] })
|
|
27
|
+
] }) });
|
|
28
|
+
}
|
|
29
|
+
function SkeletonProfileForm() {
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-profile-form", className: "max-w-4xl space-y-6", children: [
|
|
31
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
32
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32 mb-2" }),
|
|
33
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-64" })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
36
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
37
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
38
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-5" }),
|
|
39
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-40" })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-56" })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-6", children: [
|
|
44
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [
|
|
45
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
46
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" }),
|
|
47
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
48
|
+
] }),
|
|
49
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
50
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" }),
|
|
51
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
52
|
+
] })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 grid-cols-1 md:grid-cols-4", children: [
|
|
55
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-2", children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" }),
|
|
57
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" }),
|
|
58
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-48" })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
61
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }),
|
|
62
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 py-2", children: [
|
|
63
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
64
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" })
|
|
65
|
+
] })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
68
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-28" }),
|
|
69
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 py-2", children: [
|
|
70
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
71
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" })
|
|
72
|
+
] })
|
|
73
|
+
] })
|
|
74
|
+
] }),
|
|
75
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 grid-cols-1 md:grid-cols-10", children: [
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-2", children: [
|
|
77
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" }),
|
|
78
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
79
|
+
] }),
|
|
80
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-3", children: [
|
|
81
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12" }),
|
|
82
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
83
|
+
] }),
|
|
84
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2 md:col-span-5", children: [
|
|
85
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" }),
|
|
86
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
87
|
+
] })
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col md:flex-row md:justify-between md:items-center gap-4 pt-2", children: [
|
|
90
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
91
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
92
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
|
|
93
|
+
] }),
|
|
94
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-32" })
|
|
95
|
+
] })
|
|
96
|
+
] })
|
|
97
|
+
] })
|
|
98
|
+
] });
|
|
99
|
+
}
|
|
100
|
+
function SkeletonBillingPage() {
|
|
101
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-billing-page", className: "max-w-4xl space-y-6", children: [
|
|
102
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
103
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-48 mb-2" }),
|
|
104
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-64" })
|
|
105
|
+
] }),
|
|
106
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
107
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
108
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-32" }),
|
|
109
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
110
|
+
] }),
|
|
111
|
+
/* @__PURE__ */ jsx(CardContent, { className: "space-y-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
112
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
113
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-24" }),
|
|
114
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
|
|
115
|
+
] }),
|
|
116
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-32" })
|
|
117
|
+
] }) })
|
|
118
|
+
] }),
|
|
119
|
+
/* @__PURE__ */ jsx(SkeletonContainer, { className: "grid gap-4 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxs(Card, { children: [
|
|
120
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
121
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-20" }),
|
|
122
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-1", children: [
|
|
123
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-16" }),
|
|
124
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12" })
|
|
125
|
+
] })
|
|
126
|
+
] }),
|
|
127
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
128
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-2", children: Array.from({ length: 4 }).map((_2, j) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
129
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
130
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
|
|
131
|
+
] }, j)) }),
|
|
132
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
133
|
+
] })
|
|
134
|
+
] }, i)) })
|
|
135
|
+
] });
|
|
136
|
+
}
|
|
137
|
+
function SkeletonPasswordPage() {
|
|
138
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-password-page", className: "max-w-xl space-y-6", children: [
|
|
139
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
140
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-40 mb-2" }),
|
|
141
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-56" })
|
|
142
|
+
] }),
|
|
143
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
144
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
145
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-5" }),
|
|
146
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-36" })
|
|
147
|
+
] }) }),
|
|
148
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
149
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
150
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" }),
|
|
151
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
152
|
+
] }),
|
|
153
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
154
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-28" }),
|
|
155
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
156
|
+
] }),
|
|
157
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
158
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-36" }),
|
|
159
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
162
|
+
] })
|
|
163
|
+
] })
|
|
164
|
+
] });
|
|
165
|
+
}
|
|
166
|
+
function SkeletonSecurityPage() {
|
|
167
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-security-page", className: "max-w-4xl space-y-6", children: [
|
|
168
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
169
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32 mb-2" }),
|
|
170
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-64" })
|
|
171
|
+
] }),
|
|
172
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
173
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
174
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-36" }),
|
|
175
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-56" })
|
|
176
|
+
] }),
|
|
177
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(SkeletonContainer, { className: "space-y-4", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-4 border rounded-lg", children: [
|
|
178
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
179
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 rounded-lg" }),
|
|
180
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
181
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
182
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
183
|
+
] })
|
|
184
|
+
] }),
|
|
185
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20" })
|
|
186
|
+
] }, i)) }) })
|
|
187
|
+
] })
|
|
188
|
+
] });
|
|
189
|
+
}
|
|
190
|
+
function SkeletonApiKeysPage() {
|
|
191
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-api-keys-page", className: "max-w-4xl space-y-6", children: [
|
|
192
|
+
/* @__PURE__ */ jsxs("header", { className: "flex items-center justify-between", children: [
|
|
193
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
194
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32 mb-2" }),
|
|
195
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-64" })
|
|
196
|
+
] }),
|
|
197
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-32" })
|
|
198
|
+
] }),
|
|
199
|
+
/* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, { className: "p-0", children: /* @__PURE__ */ jsx(SkeletonContainer, { className: "divide-y", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-4", children: [
|
|
200
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
201
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-5" }),
|
|
202
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
203
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
204
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
205
|
+
] })
|
|
206
|
+
] }),
|
|
207
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
208
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-16" }),
|
|
209
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8" })
|
|
210
|
+
] })
|
|
211
|
+
] }, i)) }) }) })
|
|
212
|
+
] });
|
|
213
|
+
}
|
|
214
|
+
function SkeletonNotificationsPage() {
|
|
215
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-notifications-page", className: "max-w-2xl space-y-6", children: [
|
|
216
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
217
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-36 mb-2" }),
|
|
218
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-64" })
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ jsx(SkeletonContainer, { className: "space-y-4", children: Array.from({ length: 4 }).map((_, i) => /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsx(CardContent, { className: "p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
221
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
222
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-40" }),
|
|
223
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-56" })
|
|
224
|
+
] }),
|
|
225
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-12 rounded-full" })
|
|
226
|
+
] }) }) }, i)) })
|
|
227
|
+
] });
|
|
228
|
+
}
|
|
229
|
+
function SkeletonTeamsPage() {
|
|
230
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-teams-page", className: "max-w-4xl space-y-6", children: [
|
|
231
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
232
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-32 mb-2" }),
|
|
233
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-64" })
|
|
234
|
+
] }),
|
|
235
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
236
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
237
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
238
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
239
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-5" }),
|
|
240
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-32" })
|
|
241
|
+
] }),
|
|
242
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-32" })
|
|
243
|
+
] }),
|
|
244
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
245
|
+
] }),
|
|
246
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(SkeletonContainer, { className: "space-y-2", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-4 rounded-lg border", children: [
|
|
247
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
248
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 rounded-full" }),
|
|
249
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
250
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-32" }),
|
|
251
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" })
|
|
252
|
+
] })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
255
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
|
|
256
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" })
|
|
257
|
+
] })
|
|
258
|
+
] }, i)) }) })
|
|
259
|
+
] })
|
|
260
|
+
] });
|
|
261
|
+
}
|
|
262
|
+
function SkeletonInvoicesPage() {
|
|
263
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-invoices-page", className: "max-w-4xl space-y-6", children: [
|
|
264
|
+
/* @__PURE__ */ jsxs("header", { children: [
|
|
265
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-40 mb-2" }),
|
|
266
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-64" })
|
|
267
|
+
] }),
|
|
268
|
+
/* @__PURE__ */ jsxs(Card, { children: [
|
|
269
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
270
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
271
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-5" }),
|
|
272
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-36" })
|
|
273
|
+
] }),
|
|
274
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-56" })
|
|
275
|
+
] }),
|
|
276
|
+
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
277
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-3 border-b bg-muted/50", children: [
|
|
278
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }),
|
|
279
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" }),
|
|
280
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" }),
|
|
281
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-20" }),
|
|
282
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" })
|
|
283
|
+
] }),
|
|
284
|
+
/* @__PURE__ */ jsx(SkeletonContainer, { className: "divide-y", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between p-3", children: [
|
|
285
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-28" }),
|
|
286
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }),
|
|
287
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-16" }),
|
|
288
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
|
|
289
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-20" })
|
|
290
|
+
] }, i)) })
|
|
291
|
+
] })
|
|
292
|
+
] })
|
|
293
|
+
] });
|
|
294
|
+
}
|
|
295
|
+
function SkeletonPlansPage() {
|
|
296
|
+
return /* @__PURE__ */ jsxs("div", { "data-cy": "skeleton-plans-page", className: "max-w-6xl space-y-6", children: [
|
|
297
|
+
/* @__PURE__ */ jsxs("header", { className: "text-center", children: [
|
|
298
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-64 mx-auto mb-2" }),
|
|
299
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-96 mx-auto" })
|
|
300
|
+
] }),
|
|
301
|
+
/* @__PURE__ */ jsx(SkeletonContainer, { className: "grid gap-6 md:grid-cols-3", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxs(Card, { className: i === 1 ? "border-primary" : "", children: [
|
|
302
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
303
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-20" }),
|
|
304
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-1 mt-2", children: [
|
|
305
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-16" }),
|
|
306
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-12" })
|
|
307
|
+
] }),
|
|
308
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full mt-2" })
|
|
309
|
+
] }),
|
|
310
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
311
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-3", children: Array.from({ length: 5 }).map((_2, j) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
312
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-4" }),
|
|
313
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
|
|
314
|
+
] }, j)) }),
|
|
315
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-full" })
|
|
316
|
+
] })
|
|
317
|
+
] }, i)) })
|
|
318
|
+
] });
|
|
319
|
+
}
|
|
320
|
+
export {
|
|
321
|
+
SkeletonApiKeysPage,
|
|
322
|
+
SkeletonBillingPage,
|
|
323
|
+
SkeletonInvoicesPage,
|
|
324
|
+
SkeletonNotificationsPage,
|
|
325
|
+
SkeletonPasswordPage,
|
|
326
|
+
SkeletonPlansPage,
|
|
327
|
+
SkeletonProfileForm,
|
|
328
|
+
SkeletonSecurityPage,
|
|
329
|
+
SkeletonSettingsNavCard,
|
|
330
|
+
SkeletonSettingsOverview,
|
|
331
|
+
SkeletonTeamsPage
|
|
332
|
+
};
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Optimized Skeleton component for improved INP (Interaction to Next Paint)
|
|
3
|
+
*
|
|
4
|
+
* Performance optimizations:
|
|
5
|
+
* - CSS containment isolates layout/paint calculations
|
|
6
|
+
* - content-visibility:auto skips rendering for off-screen elements
|
|
7
|
+
* - GPU-accelerated opacity animation with will-change hint
|
|
8
|
+
* - will-change hint pre-optimizes composition layer
|
|
9
|
+
* - Respects prefers-reduced-motion for accessibility
|
|
10
|
+
*/
|
|
1
11
|
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
|
|
12
|
+
/**
|
|
13
|
+
* SkeletonContainer - Wraps multiple skeletons with content-visibility optimization
|
|
14
|
+
* Use this for lists or grids of skeleton items to improve rendering performance
|
|
15
|
+
*/
|
|
16
|
+
declare function SkeletonContainer({ className, children, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* SkeletonText - Optimized skeleton for text content
|
|
19
|
+
* Pre-sized for common text patterns to reduce layout shift
|
|
20
|
+
*/
|
|
21
|
+
declare function SkeletonText({ className, lines, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
22
|
+
lines?: number;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export { Skeleton, SkeletonContainer, SkeletonText };
|
|
3
25
|
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAetC;AAED;;;GAGG;AACH,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAYtC;AAED;;;GAGG;AACH,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,KAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,2CAe3D;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -7,11 +7,55 @@ function Skeleton({
|
|
|
7
7
|
return /* @__PURE__ */ jsx(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
|
-
className: cn(
|
|
10
|
+
className: cn(
|
|
11
|
+
// Base styles
|
|
12
|
+
"rounded-md bg-muted",
|
|
13
|
+
// Optimized animation - GPU accelerated
|
|
14
|
+
"animate-skeleton-pulse",
|
|
15
|
+
// CSS containment for better INP
|
|
16
|
+
"skeleton-contained",
|
|
17
|
+
className
|
|
18
|
+
),
|
|
11
19
|
...props
|
|
12
20
|
}
|
|
13
21
|
);
|
|
14
22
|
}
|
|
23
|
+
function SkeletonContainer({
|
|
24
|
+
className,
|
|
25
|
+
children,
|
|
26
|
+
...props
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
className: cn(
|
|
32
|
+
"skeleton-container",
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
...props,
|
|
36
|
+
children
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function SkeletonText({
|
|
41
|
+
className,
|
|
42
|
+
lines = 1,
|
|
43
|
+
...props
|
|
44
|
+
}) {
|
|
45
|
+
return /* @__PURE__ */ jsx("div", { className: cn("space-y-2", className), ...props, children: Array.from({ length: lines }).map((_, i) => /* @__PURE__ */ jsx(
|
|
46
|
+
Skeleton,
|
|
47
|
+
{
|
|
48
|
+
className: cn(
|
|
49
|
+
"h-4",
|
|
50
|
+
// Last line is typically shorter
|
|
51
|
+
i === lines - 1 && lines > 1 ? "w-3/4" : "w-full"
|
|
52
|
+
)
|
|
53
|
+
},
|
|
54
|
+
i
|
|
55
|
+
)) });
|
|
56
|
+
}
|
|
15
57
|
export {
|
|
16
|
-
Skeleton
|
|
58
|
+
Skeleton,
|
|
59
|
+
SkeletonContainer,
|
|
60
|
+
SkeletonText
|
|
17
61
|
};
|
|
@@ -9,6 +9,8 @@ interface TeamContextValue {
|
|
|
9
9
|
switchTeam: (teamId: string) => Promise<void>;
|
|
10
10
|
refreshTeams: () => Promise<void>;
|
|
11
11
|
}
|
|
12
|
+
export declare const TEAMS_QUERY_KEY: readonly ["user-teams"];
|
|
13
|
+
export declare function fetchUserTeams(): Promise<UserTeamMembership[]>;
|
|
12
14
|
export declare function TeamProvider({ children }: {
|
|
13
15
|
children: ReactNode;
|
|
14
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeamContext.d.ts","sourceRoot":"","sources":["../../src/contexts/TeamContext.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"TeamContext.d.ts","sourceRoot":"","sources":["../../src/contexts/TeamContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGvG,OAAO,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAM7D,UAAU,gBAAgB;IACxB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,kBAAkB,EAAE,CAAA;IAC/B,SAAS,EAAE,OAAO,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,wBAAwB,EAAE,OAAO,CAAA;IACjC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7C,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAClC;AAKD,eAAO,MAAM,eAAe,yBAA0B,CAAA;AAGtD,wBAAsB,cAAc,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAwBpE;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAkKjE;AAED,wBAAgB,cAAc,qBAM7B"}
|