@djangocfg/layouts 2.1.102 → 2.1.104
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/package.json +33 -37
- package/src/components/RedirectPage/RedirectPage.tsx +2 -2
- package/src/components/core/ClientOnly.tsx +1 -1
- package/src/components/errors/ErrorLayout.tsx +1 -1
- package/src/components/errors/ErrorsTracker/components/ErrorButtons.tsx +1 -1
- package/src/components/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/layouts/AuthLayout/components/AuthHelp.tsx +1 -1
- package/src/layouts/AuthLayout/components/AuthSuccess.tsx +1 -1
- package/src/layouts/AuthLayout/components/IdentifierForm.tsx +1 -1
- package/src/layouts/AuthLayout/components/OTPForm.tsx +1 -1
- package/src/layouts/AuthLayout/components/TwoFactorForm.tsx +1 -1
- package/src/layouts/AuthLayout/components/TwoFactorSetup.tsx +1 -1
- package/src/layouts/AuthLayout/components/oauth/OAuthCallback.tsx +1 -1
- package/src/layouts/AuthLayout/components/oauth/OAuthProviders.tsx +1 -1
- package/src/layouts/PrivateLayout/PrivateLayout.tsx +3 -2
- package/src/layouts/PrivateLayout/components/PrivateHeader.tsx +2 -2
- package/src/layouts/ProfileLayout/ProfileLayout.tsx +1 -1
- package/src/layouts/ProfileLayout/__tests__/TwoFactorSection.test.tsx +1 -1
- package/src/layouts/ProfileLayout/components/AvatarSection.tsx +1 -1
- package/src/layouts/ProfileLayout/components/DeleteAccountSection.tsx +1 -1
- package/src/layouts/ProfileLayout/components/ProfileForm.tsx +1 -1
- package/src/layouts/ProfileLayout/components/TwoFactorSection.tsx +1 -1
- package/src/layouts/PublicLayout/components/PublicFooter/PublicFooter.tsx +1 -1
- package/src/layouts/PublicLayout/components/PublicMobileDrawer.tsx +1 -1
- package/src/layouts/PublicLayout/components/PublicNavigation.tsx +2 -2
- package/src/layouts/_components/UserMenu.tsx +1 -1
- package/src/layouts/index.ts +2 -0
- package/src/pages/index.ts +2 -0
- package/src/pages/legal/LegalPage.tsx +1 -1
- package/src/snippets/AuthDialog/AuthDialog.tsx +3 -2
- package/src/snippets/McpChat/components/AIChatWidget.tsx +1 -1
- package/src/snippets/McpChat/components/AskAIButton.tsx +1 -1
- package/src/snippets/McpChat/components/ChatMessages.tsx +1 -1
- package/src/snippets/McpChat/components/ChatPanel.tsx +1 -1
- package/src/snippets/McpChat/components/ChatSidebar.tsx +1 -1
- package/src/snippets/McpChat/components/ChatWidget.tsx +1 -1
- package/src/snippets/McpChat/components/MessageBubble.tsx +1 -1
- package/src/snippets/McpChat/components/MessageInput.tsx +1 -1
- package/src/snippets/McpChat/context/AIChatContext.tsx +1 -1
- package/src/snippets/McpChat/context/ChatContext.tsx +1 -1
- package/src/snippets/McpChat/hooks/useChatLayout.ts +1 -1
- package/src/snippets/PWAInstall/components/A2HSHint.tsx +0 -1
- package/src/snippets/PWAInstall/components/DesktopGuide.tsx +1 -1
- package/src/snippets/PWAInstall/components/IOSGuide.tsx +1 -1
- package/src/snippets/PWAInstall/components/IOSGuideDrawer.tsx +1 -1
- package/src/snippets/PWAInstall/components/IOSGuideModal.tsx +1 -1
- package/src/snippets/PWAInstall/hooks/useInstallPrompt.ts +2 -2
- package/src/snippets/PushNotifications/components/PushPrompt.tsx +1 -1
- package/src/snippets/index.ts +1 -0
- package/dist/AIChatWidget-LUPM7S2O.mjs +0 -1644
- package/dist/AIChatWidget-LUPM7S2O.mjs.map +0 -1
- package/dist/AIChatWidget-O23TJJ7C.mjs +0 -3
- package/dist/AIChatWidget-O23TJJ7C.mjs.map +0 -1
- package/dist/chunk-53YKWR6F.mjs +0 -6
- package/dist/chunk-53YKWR6F.mjs.map +0 -1
- package/dist/chunk-EI7TDN2G.mjs +0 -1652
- package/dist/chunk-EI7TDN2G.mjs.map +0 -1
- package/dist/components.cjs +0 -925
- package/dist/components.cjs.map +0 -1
- package/dist/components.d.mts +0 -583
- package/dist/components.d.ts +0 -583
- package/dist/components.mjs +0 -879
- package/dist/components.mjs.map +0 -1
- package/dist/index.cjs +0 -7573
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.mts +0 -2376
- package/dist/index.d.ts +0 -2376
- package/dist/index.mjs +0 -5673
- package/dist/index.mjs.map +0 -1
- package/dist/layouts.cjs +0 -6530
- package/dist/layouts.cjs.map +0 -1
- package/dist/layouts.d.mts +0 -748
- package/dist/layouts.d.ts +0 -748
- package/dist/layouts.mjs +0 -4741
- package/dist/layouts.mjs.map +0 -1
- package/dist/pages.cjs +0 -178
- package/dist/pages.cjs.map +0 -1
- package/dist/pages.d.mts +0 -57
- package/dist/pages.d.ts +0 -57
- package/dist/pages.mjs +0 -168
- package/dist/pages.mjs.map +0 -1
- package/dist/snippets.cjs +0 -3793
- package/dist/snippets.cjs.map +0 -1
- package/dist/snippets.d.mts +0 -1192
- package/dist/snippets.d.ts +0 -1192
- package/dist/snippets.mjs +0 -3738
- package/dist/snippets.mjs.map +0 -1
- package/dist/utils.cjs +0 -34
- package/dist/utils.cjs.map +0 -1
- package/dist/utils.d.mts +0 -40
- package/dist/utils.d.ts +0 -40
- package/dist/utils.mjs +0 -25
- package/dist/utils.mjs.map +0 -1
package/dist/utils.cjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var consola = require('consola');
|
|
4
|
-
|
|
5
|
-
// src/utils/config.ts
|
|
6
|
-
var config = {
|
|
7
|
-
/**
|
|
8
|
-
* Development mode flag
|
|
9
|
-
* In development mode, any OTP code is accepted for authentication
|
|
10
|
-
*/
|
|
11
|
-
isDevelopment: true
|
|
12
|
-
};
|
|
13
|
-
process.env.NEXT_PUBLIC_STATIC_BUILD === "true";
|
|
14
|
-
var logger = consola.createConsola({
|
|
15
|
-
level: 4
|
|
16
|
-
// dev: debug, production: errors only
|
|
17
|
-
}).withTag("layouts");
|
|
18
|
-
var authLogger = logger.withTag("auth");
|
|
19
|
-
var chatLogger = logger.withTag("chat");
|
|
20
|
-
var supportLogger = logger.withTag("support");
|
|
21
|
-
var paymentsLogger = logger.withTag("payments");
|
|
22
|
-
var profileLogger = logger.withTag("profile");
|
|
23
|
-
var dashboardLogger = logger.withTag("dashboard");
|
|
24
|
-
|
|
25
|
-
exports.authLogger = authLogger;
|
|
26
|
-
exports.chatLogger = chatLogger;
|
|
27
|
-
exports.config = config;
|
|
28
|
-
exports.dashboardLogger = dashboardLogger;
|
|
29
|
-
exports.logger = logger;
|
|
30
|
-
exports.paymentsLogger = paymentsLogger;
|
|
31
|
-
exports.profileLogger = profileLogger;
|
|
32
|
-
exports.supportLogger = supportLogger;
|
|
33
|
-
//# sourceMappingURL=utils.cjs.map
|
|
34
|
-
//# sourceMappingURL=utils.cjs.map
|
package/dist/utils.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/config.ts","../src/utils/logger.ts"],"names":["createConsola"],"mappings":";;;;;AAGO,IAAM,MAAA,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpB,aAAA,EAAe;AACjB;ACMsB,OAAA,CAAQ,GAAA,CAAI,wBAAA,KAA6B;AAGxD,IAAM,SAASA,qBAAA,CAAc;AAAA,EAClC,KAAA,EAAkB,CAAA;AAAI;AACxB,CAAC,CAAA,CAAE,QAAQ,SAAS;AASb,IAAM,UAAA,GAAa,MAAA,CAAO,OAAA,CAAQ,MAAM;AAKxC,IAAM,UAAA,GAAa,MAAA,CAAO,OAAA,CAAQ,MAAM;AAKxC,IAAM,aAAA,GAAgB,MAAA,CAAO,OAAA,CAAQ,SAAS;AAK9C,IAAM,cAAA,GAAiB,MAAA,CAAO,OAAA,CAAQ,UAAU;AAKhD,IAAM,aAAA,GAAgB,MAAA,CAAO,OAAA,CAAQ,SAAS;AAK9C,IAAM,eAAA,GAAkB,MAAA,CAAO,OAAA,CAAQ,WAAW","file":"utils.cjs","sourcesContent":["/**\n * Frontend configuration from environment variables\n */\nexport const config = {\n /**\n * Development mode flag\n * In development mode, any OTP code is accepted for authentication\n */\n isDevelopment: process.env.NODE_ENV === 'development',\n} as const;\n","import { createConsola } from 'consola';\n\n/**\n * Universal logger for @djangocfg/layouts\n * Uses consola for beautiful console logging\n *\n * Log levels:\n * - 0: silent\n * - 1: fatal, error\n * - 2: warn\n * - 3: log, info\n * - 4: debug\n * - 5: trace, verbose\n */\nconst isDevelopment = process.env.NODE_ENV === 'development';\nconst isStaticBuild = process.env.NEXT_PUBLIC_STATIC_BUILD === 'true';\nconst showLogs = isDevelopment || isStaticBuild;\n\nexport const logger = createConsola({\n level: showLogs ? 4 : 1, // dev: debug, production: errors only\n}).withTag('layouts');\n\n// ─────────────────────────────────────────────────────────────────────────\n// Module-specific loggers\n// ─────────────────────────────────────────────────────────────────────────\n\n/**\n * Auth-specific logger\n */\nexport const authLogger = logger.withTag('auth');\n\n/**\n * Chat-specific logger\n */\nexport const chatLogger = logger.withTag('chat');\n\n/**\n * Support-specific logger\n */\nexport const supportLogger = logger.withTag('support');\n\n/**\n * Payments-specific logger\n */\nexport const paymentsLogger = logger.withTag('payments');\n\n/**\n * Profile-specific logger\n */\nexport const profileLogger = logger.withTag('profile');\n\n/**\n * Dashboard-specific logger\n */\nexport const dashboardLogger = logger.withTag('dashboard');\n\n// ─────────────────────────────────────────────────────────────────────────\n// Export default\n// ─────────────────────────────────────────────────────────────────────────\n\nexport default logger;\n"]}
|
package/dist/utils.d.mts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as consola from 'consola';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Frontend configuration from environment variables
|
|
5
|
-
*/
|
|
6
|
-
declare const config: {
|
|
7
|
-
/**
|
|
8
|
-
* Development mode flag
|
|
9
|
-
* In development mode, any OTP code is accepted for authentication
|
|
10
|
-
*/
|
|
11
|
-
readonly isDevelopment: boolean;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
declare const logger: consola.ConsolaInstance;
|
|
15
|
-
/**
|
|
16
|
-
* Auth-specific logger
|
|
17
|
-
*/
|
|
18
|
-
declare const authLogger: consola.ConsolaInstance;
|
|
19
|
-
/**
|
|
20
|
-
* Chat-specific logger
|
|
21
|
-
*/
|
|
22
|
-
declare const chatLogger: consola.ConsolaInstance;
|
|
23
|
-
/**
|
|
24
|
-
* Support-specific logger
|
|
25
|
-
*/
|
|
26
|
-
declare const supportLogger: consola.ConsolaInstance;
|
|
27
|
-
/**
|
|
28
|
-
* Payments-specific logger
|
|
29
|
-
*/
|
|
30
|
-
declare const paymentsLogger: consola.ConsolaInstance;
|
|
31
|
-
/**
|
|
32
|
-
* Profile-specific logger
|
|
33
|
-
*/
|
|
34
|
-
declare const profileLogger: consola.ConsolaInstance;
|
|
35
|
-
/**
|
|
36
|
-
* Dashboard-specific logger
|
|
37
|
-
*/
|
|
38
|
-
declare const dashboardLogger: consola.ConsolaInstance;
|
|
39
|
-
|
|
40
|
-
export { authLogger, chatLogger, config, dashboardLogger, logger, paymentsLogger, profileLogger, supportLogger };
|
package/dist/utils.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as consola from 'consola';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Frontend configuration from environment variables
|
|
5
|
-
*/
|
|
6
|
-
declare const config: {
|
|
7
|
-
/**
|
|
8
|
-
* Development mode flag
|
|
9
|
-
* In development mode, any OTP code is accepted for authentication
|
|
10
|
-
*/
|
|
11
|
-
readonly isDevelopment: boolean;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
declare const logger: consola.ConsolaInstance;
|
|
15
|
-
/**
|
|
16
|
-
* Auth-specific logger
|
|
17
|
-
*/
|
|
18
|
-
declare const authLogger: consola.ConsolaInstance;
|
|
19
|
-
/**
|
|
20
|
-
* Chat-specific logger
|
|
21
|
-
*/
|
|
22
|
-
declare const chatLogger: consola.ConsolaInstance;
|
|
23
|
-
/**
|
|
24
|
-
* Support-specific logger
|
|
25
|
-
*/
|
|
26
|
-
declare const supportLogger: consola.ConsolaInstance;
|
|
27
|
-
/**
|
|
28
|
-
* Payments-specific logger
|
|
29
|
-
*/
|
|
30
|
-
declare const paymentsLogger: consola.ConsolaInstance;
|
|
31
|
-
/**
|
|
32
|
-
* Profile-specific logger
|
|
33
|
-
*/
|
|
34
|
-
declare const profileLogger: consola.ConsolaInstance;
|
|
35
|
-
/**
|
|
36
|
-
* Dashboard-specific logger
|
|
37
|
-
*/
|
|
38
|
-
declare const dashboardLogger: consola.ConsolaInstance;
|
|
39
|
-
|
|
40
|
-
export { authLogger, chatLogger, config, dashboardLogger, logger, paymentsLogger, profileLogger, supportLogger };
|
package/dist/utils.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createConsola } from 'consola';
|
|
2
|
-
|
|
3
|
-
// src/utils/config.ts
|
|
4
|
-
var config = {
|
|
5
|
-
/**
|
|
6
|
-
* Development mode flag
|
|
7
|
-
* In development mode, any OTP code is accepted for authentication
|
|
8
|
-
*/
|
|
9
|
-
isDevelopment: true
|
|
10
|
-
};
|
|
11
|
-
process.env.NEXT_PUBLIC_STATIC_BUILD === "true";
|
|
12
|
-
var logger = createConsola({
|
|
13
|
-
level: 4
|
|
14
|
-
// dev: debug, production: errors only
|
|
15
|
-
}).withTag("layouts");
|
|
16
|
-
var authLogger = logger.withTag("auth");
|
|
17
|
-
var chatLogger = logger.withTag("chat");
|
|
18
|
-
var supportLogger = logger.withTag("support");
|
|
19
|
-
var paymentsLogger = logger.withTag("payments");
|
|
20
|
-
var profileLogger = logger.withTag("profile");
|
|
21
|
-
var dashboardLogger = logger.withTag("dashboard");
|
|
22
|
-
|
|
23
|
-
export { authLogger, chatLogger, config, dashboardLogger, logger, paymentsLogger, profileLogger, supportLogger };
|
|
24
|
-
//# sourceMappingURL=utils.mjs.map
|
|
25
|
-
//# sourceMappingURL=utils.mjs.map
|
package/dist/utils.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/utils/config.ts","../src/utils/logger.ts"],"names":[],"mappings":";;;AAGO,IAAM,MAAA,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAKpB,aAAA,EAAe;AACjB;ACMsB,OAAA,CAAQ,GAAA,CAAI,wBAAA,KAA6B;AAGxD,IAAM,SAAS,aAAA,CAAc;AAAA,EAClC,KAAA,EAAkB,CAAA;AAAI;AACxB,CAAC,CAAA,CAAE,QAAQ,SAAS;AASb,IAAM,UAAA,GAAa,MAAA,CAAO,OAAA,CAAQ,MAAM;AAKxC,IAAM,UAAA,GAAa,MAAA,CAAO,OAAA,CAAQ,MAAM;AAKxC,IAAM,aAAA,GAAgB,MAAA,CAAO,OAAA,CAAQ,SAAS;AAK9C,IAAM,cAAA,GAAiB,MAAA,CAAO,OAAA,CAAQ,UAAU;AAKhD,IAAM,aAAA,GAAgB,MAAA,CAAO,OAAA,CAAQ,SAAS;AAK9C,IAAM,eAAA,GAAkB,MAAA,CAAO,OAAA,CAAQ,WAAW","file":"utils.mjs","sourcesContent":["/**\n * Frontend configuration from environment variables\n */\nexport const config = {\n /**\n * Development mode flag\n * In development mode, any OTP code is accepted for authentication\n */\n isDevelopment: process.env.NODE_ENV === 'development',\n} as const;\n","import { createConsola } from 'consola';\n\n/**\n * Universal logger for @djangocfg/layouts\n * Uses consola for beautiful console logging\n *\n * Log levels:\n * - 0: silent\n * - 1: fatal, error\n * - 2: warn\n * - 3: log, info\n * - 4: debug\n * - 5: trace, verbose\n */\nconst isDevelopment = process.env.NODE_ENV === 'development';\nconst isStaticBuild = process.env.NEXT_PUBLIC_STATIC_BUILD === 'true';\nconst showLogs = isDevelopment || isStaticBuild;\n\nexport const logger = createConsola({\n level: showLogs ? 4 : 1, // dev: debug, production: errors only\n}).withTag('layouts');\n\n// ─────────────────────────────────────────────────────────────────────────\n// Module-specific loggers\n// ─────────────────────────────────────────────────────────────────────────\n\n/**\n * Auth-specific logger\n */\nexport const authLogger = logger.withTag('auth');\n\n/**\n * Chat-specific logger\n */\nexport const chatLogger = logger.withTag('chat');\n\n/**\n * Support-specific logger\n */\nexport const supportLogger = logger.withTag('support');\n\n/**\n * Payments-specific logger\n */\nexport const paymentsLogger = logger.withTag('payments');\n\n/**\n * Profile-specific logger\n */\nexport const profileLogger = logger.withTag('profile');\n\n/**\n * Dashboard-specific logger\n */\nexport const dashboardLogger = logger.withTag('dashboard');\n\n// ─────────────────────────────────────────────────────────────────────────\n// Export default\n// ─────────────────────────────────────────────────────────────────────────\n\nexport default logger;\n"]}
|