@donotdev/ui 0.0.2 → 0.0.4
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/auth/AuthMenu.d.ts.map +1 -1
- package/dist/components/auth/AuthMenu.js +19 -32
- package/dist/components/common/FeatureCard.d.ts +7 -19
- package/dist/components/common/FeatureCard.d.ts.map +1 -1
- package/dist/components/common/FeatureCard.js +5 -29
- package/dist/components/common/TechBento.d.ts +15 -3
- package/dist/components/common/TechBento.d.ts.map +1 -1
- package/dist/components/common/TechBento.js +20 -2
- package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
- package/dist/components/cookie-consent/CookieConsent.js +2 -41
- package/dist/components/cookie-consent/index.d.ts +0 -1
- package/dist/components/cookie-consent/index.d.ts.map +1 -1
- package/dist/components/cookie-consent/index.js +1 -1
- package/dist/components/layout/components/DropdownNavigation.d.ts.map +1 -1
- package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
- package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
- package/dist/components/layout/components/header/ThemeToggle.js +5 -4
- package/dist/dndev.css +373 -249
- package/dist/index.js +4 -4
- package/dist/internal/devtools/DebugTools.d.ts.map +1 -1
- package/dist/internal/devtools/DebugTools.js +8 -4
- package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/ConfigTab.js +33 -133
- package/dist/internal/devtools/components/DebugDialog.d.ts.map +1 -1
- package/dist/internal/devtools/components/DebugDialog.js +11 -520
- package/dist/internal/devtools/components/DesignTab.d.ts +2 -0
- package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -0
- package/dist/internal/devtools/components/DesignTab.js +431 -0
- package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
- package/dist/internal/devtools/components/StoresTab.js +54 -102
- package/dist/internal/devtools/components/index.d.ts +1 -6
- package/dist/internal/devtools/components/index.d.ts.map +1 -1
- package/dist/internal/devtools/components/index.js +1 -6
- package/dist/internal/devtools/utils/index.d.ts +0 -1
- package/dist/internal/devtools/utils/index.d.ts.map +1 -1
- package/dist/internal/devtools/utils/index.js +0 -1
- package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
- package/dist/internal/initializers/BaseStoresInitializer.js +36 -59
- package/dist/internal/layout/DnDevLayout.js +3 -3
- package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
- package/dist/internal/layout/components/AutoMetaTags.js +6 -1
- package/dist/internal/layout/components/footer/FooterBranding.d.ts.map +1 -1
- package/dist/internal/layout/components/footer/FooterBranding.js +3 -1
- package/dist/internal/layout/zones/DnDevFooter.js +2 -2
- package/dist/routing/AuthGuard.d.ts +14 -10
- package/dist/routing/AuthGuard.d.ts.map +1 -1
- package/dist/routing/AuthGuard.js +25 -22
- package/dist/routing/Link.d.ts +2 -2
- package/dist/routing/Link.js +2 -2
- package/dist/routing/hooks/hooks.next.js +1 -1
- package/dist/routing/hooks/hooks.vite.js +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.d.ts +2 -36
- package/dist/routing/hooks/useRedirectGuard.next.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.next.js +14 -55
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts +2 -36
- package/dist/routing/hooks/useRedirectGuard.vite.d.ts.map +1 -1
- package/dist/routing/hooks/useRedirectGuard.vite.js +14 -55
- package/dist/routing/index.d.ts +0 -1
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +1 -1
- package/dist/styles/index.css +373 -249
- package/dist/utils/assetResolver.d.ts +5 -5
- package/dist/utils/assetResolver.d.ts.map +1 -1
- package/dist/utils/assetResolver.js +26 -15
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/tList.d.ts +30 -0
- package/dist/utils/tList.d.ts.map +1 -0
- package/dist/utils/tList.js +51 -0
- package/dist/utils/useAuthSafe.d.ts +25 -12
- package/dist/utils/useAuthSafe.d.ts.map +1 -1
- package/dist/utils/useAuthSafe.js +3 -1
- package/dist/utils/useAuthVisibility.d.ts +3 -3
- package/dist/utils/useAuthVisibility.d.ts.map +1 -1
- package/dist/utils/useAuthVisibility.js +25 -21
- package/dist/utils/useBillingVisibility.d.ts +2 -2
- package/dist/utils/useBillingVisibility.d.ts.map +1 -1
- package/dist/utils/useBillingVisibility.js +12 -13
- package/dist/utils/useCrudSafe.d.ts +1 -1
- package/dist/utils/useCrudSafe.d.ts.map +1 -1
- package/dist/utils/useCrudSafe.js +26 -13
- package/dist/utils/useOAuthSafe.d.ts +25 -12
- package/dist/utils/useOAuthSafe.d.ts.map +1 -1
- package/dist/utils/useStripeBillingSafe.d.ts +30 -18
- package/dist/utils/useStripeBillingSafe.d.ts.map +1 -1
- package/dist/utils/useStripeBillingSafe.js +5 -6
- package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
- package/dist/vite-routing/AppRoutes.js +5 -5
- package/dist/vite-routing/RootLayout.d.ts.map +1 -1
- package/dist/vite-routing/RootLayout.js +34 -7
- package/package.json +9 -9
- package/dist/internal/devtools/components/AuthTab.d.ts +0 -2
- package/dist/internal/devtools/components/AuthTab.d.ts.map +0 -1
- package/dist/internal/devtools/components/AuthTab.js +0 -98
- package/dist/internal/devtools/components/ColorRatioTab.d.ts +0 -2
- package/dist/internal/devtools/components/ColorRatioTab.d.ts.map +0 -1
- package/dist/internal/devtools/components/ColorRatioTab.js +0 -322
- package/dist/internal/devtools/components/DebugToggle.d.ts +0 -2
- package/dist/internal/devtools/components/DebugToggle.d.ts.map +0 -1
- package/dist/internal/devtools/components/DebugToggle.js +0 -57
- package/dist/internal/devtools/components/EnvironmentTab.d.ts +0 -2
- package/dist/internal/devtools/components/EnvironmentTab.d.ts.map +0 -1
- package/dist/internal/devtools/components/EnvironmentTab.js +0 -26
- package/dist/internal/devtools/components/I18nTab.d.ts +0 -2
- package/dist/internal/devtools/components/I18nTab.d.ts.map +0 -1
- package/dist/internal/devtools/components/I18nTab.js +0 -76
- package/dist/internal/devtools/components/OAuthGuideButton.d.ts +0 -10
- package/dist/internal/devtools/components/OAuthGuideButton.d.ts.map +0 -1
- package/dist/internal/devtools/components/OAuthGuideButton.js +0 -71
- package/dist/internal/devtools/components/StripeDebugTab.d.ts +0 -2
- package/dist/internal/devtools/components/StripeDebugTab.d.ts.map +0 -1
- package/dist/internal/devtools/components/StripeDebugTab.js +0 -175
- package/dist/internal/devtools/components/ThemesTab.d.ts +0 -2
- package/dist/internal/devtools/components/ThemesTab.d.ts.map +0 -1
- package/dist/internal/devtools/components/ThemesTab.js +0 -77
- package/dist/internal/devtools/utils/spacingAnalyzer.d.ts +0 -15
- package/dist/internal/devtools/utils/spacingAnalyzer.d.ts.map +0 -1
- package/dist/internal/devtools/utils/spacingAnalyzer.js +0 -88
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugTools.d.ts","sourceRoot":"","sources":["../../../src/internal/devtools/DebugTools.tsx"],"names":[],"mappings":"AAgCA,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,GAAI,eAAe,eAAe,
|
|
1
|
+
{"version":3,"file":"DebugTools.d.ts","sourceRoot":"","sources":["../../../src/internal/devtools/DebugTools.tsx"],"names":[],"mappings":"AAgCA,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,UAAU,GAAI,eAAe,eAAe,4CA8NjD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -83,7 +83,9 @@ const DebugTools = ({ className }) => {
|
|
|
83
83
|
top: position?.y ?? 'calc(var(--header-height) + var(--gap-lg))',
|
|
84
84
|
cursor: isDragging ? 'grabbing' : 'grab',
|
|
85
85
|
minWidth: '20rem',
|
|
86
|
-
}, onMouseDown: handleMouseDown, children: _jsx(Card, { title: _jsxs(Stack, { direction: "row", align: "center", justify: "between", children: [_jsx(DebugDialog, {}), _jsx(Button, { onClick: () => setIsVisible(false), icon: X, variant: BUTTON_VARIANT.GHOST, title: "Hide Debug Tools" })] }), content: _jsx(_Fragment, { children: _jsxs(Stack, { direction: "row", align: "center", justify: "center", gap: "tight", wrap: "wrap", children: [_jsx(Button, { onClick: toggleDebug, variant: debugEnabled
|
|
86
|
+
}, onMouseDown: handleMouseDown, children: _jsx(Card, { title: _jsxs(Stack, { direction: "row", align: "center", justify: "between", children: [_jsx(DebugDialog, {}), _jsx(Button, { onClick: () => setIsVisible(false), icon: X, variant: BUTTON_VARIANT.GHOST, title: "Hide Debug Tools" })] }), content: _jsx(_Fragment, { children: _jsxs(Stack, { direction: "row", align: "center", justify: "center", gap: "tight", wrap: "wrap", children: [_jsx(Button, { onClick: toggleDebug, variant: debugEnabled
|
|
87
|
+
? BUTTON_VARIANT.DEFAULT
|
|
88
|
+
: BUTTON_VARIANT.OUTLINE, icon: Bug, title: `Display Lines (${debugEnabled ? 'ON' : 'OFF'})`, children: "Display Lines" }), _jsx(Button, { onClick: async () => {
|
|
87
89
|
try {
|
|
88
90
|
// Reset consent (deletes cookie and resets store)
|
|
89
91
|
reset();
|
|
@@ -103,8 +105,8 @@ const DebugTools = ({ className }) => {
|
|
|
103
105
|
globalThis._DNDEV_STORES_) {
|
|
104
106
|
globalThis._DNDEV_STORES_ = {};
|
|
105
107
|
}
|
|
106
|
-
// ⚠️ Force hard reload (bypasses HMR
|
|
107
|
-
window.location.
|
|
108
|
+
// ⚠️ Force hard reload (bypasses HMR cache)
|
|
109
|
+
window.location.reload();
|
|
108
110
|
}
|
|
109
111
|
catch (error) {
|
|
110
112
|
console.error('Failed to clear cache:', error);
|
|
@@ -115,7 +117,9 @@ const DebugTools = ({ className }) => {
|
|
|
115
117
|
}
|
|
116
118
|
}, variant: hasConsented ? BUTTON_VARIANT.OUTLINE : BUTTON_VARIANT.GHOST, icon: Cookie, title: hasConsented
|
|
117
119
|
? 'Reset consent (show banner)'
|
|
118
|
-
: 'Consent banner visible', children: hasConsented
|
|
120
|
+
: 'Consent banner visible', children: hasConsented
|
|
121
|
+
? 'Show Cookie Banner'
|
|
122
|
+
: 'Cookie Banner Visible' })] }) }), footer: _jsx(Stack, { align: "center", justify: "center", className: cn('drag-handle', current === 'mobile' && 'dndev-text-destructive', current === 'tablet' && 'dndev-text-primary', current === 'laptop' && 'dndev-text-secondary-foreground', current === 'desktop' && 'dndev-text-muted-foreground'), style: {
|
|
119
123
|
cursor: 'grab',
|
|
120
124
|
}, children: _jsxs(Label, { className: "dndev-font-mono dndev-text-lg", children: [current.toUpperCase(), " : ", width, " \u00D7 ", height, "px"] }) }) }) }) }));
|
|
121
125
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigTab.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/components/ConfigTab.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfigTab.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/components/ConfigTab.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,SAAS,+CAqGrB,CAAC"}
|
|
@@ -3,159 +3,59 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
// packages/ui/src/internal/devtools/components/ConfigTab.tsx
|
|
4
4
|
/**
|
|
5
5
|
* @fileoverview Config Tab Component
|
|
6
|
-
* @description
|
|
6
|
+
* @description Framework config and environment variables
|
|
7
7
|
*
|
|
8
|
-
* @version 0.0.
|
|
8
|
+
* @version 0.0.2
|
|
9
9
|
* @since 0.0.1
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
13
|
-
import { Card, DescriptionList, Text, JsonViewer, Stack, ScrollArea, } from '@donotdev/components';
|
|
12
|
+
import { Card, DescriptionList, Text, Badge, BADGE_VARIANT, Stack, } from '@donotdev/components';
|
|
14
13
|
import { getDndevConfig, getConfigSource } from '@donotdev/core';
|
|
15
|
-
import {
|
|
14
|
+
import { MaskedValue } from './MaskedValue';
|
|
16
15
|
export const ConfigTab = () => {
|
|
17
16
|
const config = getDndevConfig();
|
|
18
17
|
const source = getConfigSource();
|
|
19
|
-
const
|
|
20
|
-
if (!config)
|
|
21
|
-
return null;
|
|
22
|
-
return {
|
|
23
|
-
platform: config.platform,
|
|
24
|
-
mode: config.mode,
|
|
25
|
-
version: config.version,
|
|
26
|
-
context: config.context,
|
|
27
|
-
timestamp: new Date(config.timestamp).toISOString(),
|
|
28
|
-
i18n: config.i18n
|
|
29
|
-
? {
|
|
30
|
-
languages: config.i18n.languages,
|
|
31
|
-
fallback: config.i18n.fallback,
|
|
32
|
-
eager: config.i18n.eager,
|
|
33
|
-
totalNamespaces: config.i18n.manifest?.totalNamespaces,
|
|
34
|
-
totalLanguages: config.i18n.manifest?.totalLanguages,
|
|
35
|
-
}
|
|
36
|
-
: null,
|
|
37
|
-
themes: config.themes
|
|
38
|
-
? {
|
|
39
|
-
discovered: config.themes.discovered?.length || 0,
|
|
40
|
-
totalThemes: config.themes.manifest?.totalThemes || 0,
|
|
41
|
-
}
|
|
42
|
-
: null,
|
|
43
|
-
routes: config.routes
|
|
44
|
-
? {
|
|
45
|
-
discovered: config.routes.mapping?.length || 0,
|
|
46
|
-
totalRoutes: config.routes.manifest?.totalRoutes || 0,
|
|
47
|
-
}
|
|
48
|
-
: null,
|
|
49
|
-
assets: config.assets
|
|
50
|
-
? {
|
|
51
|
-
discovered: config.assets.manifest?.totalAssets || 0,
|
|
52
|
-
}
|
|
53
|
-
: null,
|
|
54
|
-
pwa: config.pwa ? { enabled: true } : null,
|
|
55
|
-
features: config.features
|
|
56
|
-
? {
|
|
57
|
-
available: config.features.available?.length || 0,
|
|
58
|
-
}
|
|
59
|
-
: null,
|
|
60
|
-
env: config.env
|
|
61
|
-
? {
|
|
62
|
-
count: Object.keys(config.env).length,
|
|
63
|
-
keys: Object.keys(config.env).slice(0, 10),
|
|
64
|
-
}
|
|
65
|
-
: null,
|
|
66
|
-
};
|
|
67
|
-
}, [config]);
|
|
18
|
+
const envVars = config?.env || {};
|
|
68
19
|
if (!config) {
|
|
69
|
-
return (_jsx(Card, { title: "Config", subtitle: "
|
|
20
|
+
return (_jsx(Card, { title: "Config", subtitle: "Not available", children: _jsxs(Text, { className: "dndev-text-muted-foreground", children: ["Config not loaded. Source: ", source.source] }) }));
|
|
70
21
|
}
|
|
71
22
|
const frameworkItems = [
|
|
72
23
|
{
|
|
73
24
|
label: 'Platform',
|
|
74
|
-
value:
|
|
25
|
+
value: _jsx(Badge, { variant: BADGE_VARIANT.SECONDARY, children: config.platform }),
|
|
75
26
|
},
|
|
76
27
|
{
|
|
77
28
|
label: 'Mode',
|
|
78
|
-
value: (_jsx(
|
|
29
|
+
value: (_jsx(Badge, { variant: config.mode === 'development'
|
|
30
|
+
? BADGE_VARIANT.DEFAULT
|
|
31
|
+
: BADGE_VARIANT.SECONDARY, children: config.mode })),
|
|
79
32
|
},
|
|
80
33
|
{
|
|
81
34
|
label: 'Version',
|
|
82
|
-
value: (_jsx(Text, {
|
|
35
|
+
value: (_jsx(Text, { className: "dndev-font-mono dndev-text-sm", children: config.version })),
|
|
83
36
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
37
|
+
];
|
|
38
|
+
const summaryItems = [
|
|
39
|
+
config.themes && {
|
|
40
|
+
label: 'Themes',
|
|
41
|
+
value: (_jsx(Text, { className: "dndev-font-mono dndev-text-sm", children: config.themes.discovered?.length || 0 })),
|
|
87
42
|
},
|
|
88
|
-
{
|
|
89
|
-
label: '
|
|
90
|
-
value: (_jsx(Text, {
|
|
43
|
+
config.routes && {
|
|
44
|
+
label: 'Routes',
|
|
45
|
+
value: (_jsx(Text, { className: "dndev-font-mono dndev-text-sm", children: config.routes.mapping?.length || 0 })),
|
|
91
46
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
label: 'Total Namespaces',
|
|
109
|
-
value: (_jsx(Text, { as: "span", className: "dndev-font-mono", children: formattedConfig.i18n.totalNamespaces })),
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
label: 'Total Languages',
|
|
113
|
-
value: (_jsx(Text, { as: "span", className: "dndev-font-mono", children: formattedConfig.i18n.totalLanguages })),
|
|
114
|
-
},
|
|
115
|
-
]
|
|
116
|
-
: [];
|
|
117
|
-
const themesItems = formattedConfig?.themes
|
|
118
|
-
? [
|
|
119
|
-
{
|
|
120
|
-
label: 'Discovered',
|
|
121
|
-
value: (_jsxs(Text, { as: "span", className: "dndev-font-mono", children: [formattedConfig.themes.discovered, " themes"] })),
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
label: 'Total Themes',
|
|
125
|
-
value: (_jsxs(Text, { as: "span", className: "dndev-font-mono", children: [formattedConfig.themes.totalThemes, " themes"] })),
|
|
126
|
-
},
|
|
127
|
-
]
|
|
128
|
-
: [];
|
|
129
|
-
const routesItems = formattedConfig?.routes
|
|
130
|
-
? [
|
|
131
|
-
{
|
|
132
|
-
label: 'Discovered',
|
|
133
|
-
value: (_jsxs(Text, { as: "span", className: "dndev-font-mono", children: [formattedConfig.routes.discovered, " routes"] })),
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
label: 'Total Routes',
|
|
137
|
-
value: (_jsxs(Text, { as: "span", className: "dndev-font-mono", children: [formattedConfig.routes.totalRoutes, " routes"] })),
|
|
138
|
-
},
|
|
139
|
-
]
|
|
140
|
-
: [];
|
|
141
|
-
const featuresItems = formattedConfig?.features
|
|
142
|
-
? [
|
|
143
|
-
{
|
|
144
|
-
label: 'Available',
|
|
145
|
-
value: (_jsxs(Text, { className: "dndev-font-mono", children: [formattedConfig.features.available, " features"] })),
|
|
146
|
-
},
|
|
147
|
-
]
|
|
148
|
-
: [];
|
|
149
|
-
const envKeysItems = formattedConfig?.env
|
|
150
|
-
? [
|
|
151
|
-
{
|
|
152
|
-
label: 'Variables',
|
|
153
|
-
value: (_jsxs(Stack, { gap: "tight", children: [_jsxs(Text, { as: "span", className: "dndev-font-mono", children: [formattedConfig.env.count, " variables"] }), _jsxs(Stack, { gap: "tight", className: "dndev-font-mono dndev-text-xs", children: [formattedConfig.env.keys.map((key) => (_jsx("div", { children: key }, key))), formattedConfig.env.count > 10 && (_jsxs(Text, { as: "span", className: "dndev-text-muted-foreground", children: ["... and ", formattedConfig.env.count - 10, " more"] }))] })] })),
|
|
154
|
-
},
|
|
155
|
-
]
|
|
156
|
-
: [];
|
|
157
|
-
return (_jsxs(Stack, { gap: "medium", children: [_jsx(Card, { title: "Framework Config", subtitle: `Source: ${source.source} (${source.platform})`, children: _jsx(DescriptionList, { items: frameworkItems }) }), formattedConfig?.i18n && (_jsx(Card, { title: "i18n", children: _jsx(DescriptionList, { items: i18nItems }) })), formattedConfig?.themes && (_jsx(Card, { title: "Themes", children: _jsx(DescriptionList, { items: themesItems }) })), formattedConfig?.routes && (_jsx(Card, { title: "Routes", children: _jsx(DescriptionList, { items: routesItems }) })), formattedConfig?.features && (_jsx(Card, { title: "Features", children: _jsx(DescriptionList, { items: featuresItems }) })), formattedConfig?.env && (_jsx(Card, { title: "Environment Variables", subtitle: `${formattedConfig.env.count} variable${formattedConfig.env.count !== 1 ? 's' : ''} from config`, children: _jsx(DescriptionList, { items: envKeysItems }) })), _jsx(Card, { title: "Raw Config", subtitle: "Full config object (JSON, sensitive values masked)", children: _jsx(ScrollArea, { className: "dndev-max-h-96", children: _jsx(JsonViewer, { data: {
|
|
158
|
-
...config,
|
|
159
|
-
env: config.env ? maskSensitiveData(config.env) : config.env,
|
|
160
|
-
}, defaultDepth: 2, showCopyButton: true }) }) })] }));
|
|
47
|
+
config.i18n && {
|
|
48
|
+
label: 'Languages',
|
|
49
|
+
value: (_jsx(Text, { className: "dndev-font-mono dndev-text-sm", children: config.i18n.languages?.join(', ') })),
|
|
50
|
+
},
|
|
51
|
+
config.features && {
|
|
52
|
+
label: 'Features',
|
|
53
|
+
value: (_jsx(Text, { className: "dndev-font-mono dndev-text-sm", children: config.features.available?.length || 0 })),
|
|
54
|
+
},
|
|
55
|
+
].filter(Boolean);
|
|
56
|
+
const envItems = Object.entries(envVars).map(([key, value]) => ({
|
|
57
|
+
label: _jsx(Text, { className: "dndev-font-mono dndev-text-xs", children: key }),
|
|
58
|
+
value: _jsx(MaskedValue, { keyName: key, value: String(value) }),
|
|
59
|
+
}));
|
|
60
|
+
return (_jsxs(Stack, { gap: "medium", style: { padding: 'var(--gap-md)' }, children: [_jsx(Card, { title: "Framework", subtitle: source.source, children: _jsx(DescriptionList, { items: frameworkItems }) }), summaryItems.length > 0 && (_jsx(Card, { title: "Discovery", children: _jsx(DescriptionList, { items: summaryItems }) })), envItems.length > 0 && (_jsx(Card, { title: "Environment", subtitle: `${envItems.length} variables`, children: _jsx(DescriptionList, { items: envItems }) }))] }));
|
|
161
61
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugDialog.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/components/DebugDialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DebugDialog.d.ts","sourceRoot":"","sources":["../../../../src/internal/devtools/components/DebugDialog.tsx"],"names":[],"mappings":"AA6BA,eAAO,MAAM,WAAW,+CAgFvB,CAAC"}
|