@djangocfg/layouts 2.1.101 → 2.1.102
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/AIChatWidget-LUPM7S2O.mjs +1644 -0
- package/dist/AIChatWidget-LUPM7S2O.mjs.map +1 -0
- package/dist/AIChatWidget-O23TJJ7C.mjs +3 -0
- package/dist/AIChatWidget-O23TJJ7C.mjs.map +1 -0
- package/dist/chunk-53YKWR6F.mjs +6 -0
- package/dist/chunk-53YKWR6F.mjs.map +1 -0
- package/dist/chunk-EI7TDN2G.mjs +1652 -0
- package/dist/chunk-EI7TDN2G.mjs.map +1 -0
- package/dist/components.cjs +925 -0
- package/dist/components.cjs.map +1 -0
- package/dist/components.d.mts +583 -0
- package/dist/components.d.ts +583 -0
- package/dist/components.mjs +879 -0
- package/dist/components.mjs.map +1 -0
- package/dist/index.cjs +7573 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.mts +2376 -0
- package/dist/index.d.ts +2376 -0
- package/dist/index.mjs +5673 -0
- package/dist/index.mjs.map +1 -0
- package/dist/layouts.cjs +6530 -0
- package/dist/layouts.cjs.map +1 -0
- package/dist/layouts.d.mts +748 -0
- package/dist/layouts.d.ts +748 -0
- package/dist/layouts.mjs +4741 -0
- package/dist/layouts.mjs.map +1 -0
- package/dist/pages.cjs +178 -0
- package/dist/pages.cjs.map +1 -0
- package/dist/pages.d.mts +57 -0
- package/dist/pages.d.ts +57 -0
- package/dist/pages.mjs +168 -0
- package/dist/pages.mjs.map +1 -0
- package/dist/snippets.cjs +3793 -0
- package/dist/snippets.cjs.map +1 -0
- package/dist/snippets.d.mts +1192 -0
- package/dist/snippets.d.ts +1192 -0
- package/dist/snippets.mjs +3738 -0
- package/dist/snippets.mjs.map +1 -0
- package/dist/utils.cjs +34 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.mts +40 -0
- package/dist/utils.d.ts +40 -0
- package/dist/utils.mjs +25 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +38 -47
- package/src/components/errors/ErrorsTracker/components/ErrorButtons.tsx +2 -1
- package/src/layouts/ProfileLayout/ProfileLayout.tsx +507 -86
- package/src/layouts/ProfileLayout/components/DeleteAccountSection.tsx +2 -2
- package/src/snippets/AuthDialog/useAuthDialog.ts +1 -1
package/dist/utils.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/layouts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.102",
|
|
4
4
|
"description": "Simple, straightforward layout components for Next.js - import and use with props",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -26,77 +26,62 @@
|
|
|
26
26
|
"url": "https://github.com/markolofsen/django-cfg/issues"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
|
-
"main": "./
|
|
30
|
-
"
|
|
29
|
+
"main": "./dist/index.cjs",
|
|
30
|
+
"module": "./dist/index.mjs",
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
31
32
|
"exports": {
|
|
32
33
|
".": {
|
|
33
|
-
"types": "./
|
|
34
|
-
"import": "./
|
|
35
|
-
"
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.mjs",
|
|
36
|
+
"require": "./dist/index.cjs"
|
|
36
37
|
},
|
|
37
38
|
"./layouts": {
|
|
38
|
-
"types": "./
|
|
39
|
-
"import": "./
|
|
40
|
-
"
|
|
41
|
-
},
|
|
42
|
-
"./auth": {
|
|
43
|
-
"types": "./src/auth/index.ts",
|
|
44
|
-
"import": "./src/auth/index.ts",
|
|
45
|
-
"default": "./src/auth/index.ts"
|
|
46
|
-
},
|
|
47
|
-
"./auth/context": {
|
|
48
|
-
"types": "./src/auth/context/index.ts",
|
|
49
|
-
"import": "./src/auth/context/index.ts",
|
|
50
|
-
"default": "./src/auth/context/index.ts"
|
|
51
|
-
},
|
|
52
|
-
"./auth/hooks": {
|
|
53
|
-
"types": "./src/auth/hooks/index.ts",
|
|
54
|
-
"import": "./src/auth/hooks/index.ts",
|
|
55
|
-
"default": "./src/auth/hooks/index.ts"
|
|
39
|
+
"types": "./dist/layouts.d.ts",
|
|
40
|
+
"import": "./dist/layouts.mjs",
|
|
41
|
+
"require": "./dist/layouts.cjs"
|
|
56
42
|
},
|
|
57
43
|
"./snippets": {
|
|
58
|
-
"types": "./
|
|
59
|
-
"import": "./
|
|
60
|
-
"
|
|
44
|
+
"types": "./dist/snippets.d.ts",
|
|
45
|
+
"import": "./dist/snippets.mjs",
|
|
46
|
+
"require": "./dist/snippets.cjs"
|
|
61
47
|
},
|
|
62
48
|
"./utils": {
|
|
63
|
-
"types": "./
|
|
64
|
-
"import": "./
|
|
65
|
-
"
|
|
49
|
+
"types": "./dist/utils.d.ts",
|
|
50
|
+
"import": "./dist/utils.mjs",
|
|
51
|
+
"require": "./dist/utils.cjs"
|
|
66
52
|
},
|
|
67
53
|
"./components": {
|
|
68
|
-
"types": "./
|
|
69
|
-
"import": "./
|
|
70
|
-
"
|
|
54
|
+
"types": "./dist/components.d.ts",
|
|
55
|
+
"import": "./dist/components.mjs",
|
|
56
|
+
"require": "./dist/components.cjs"
|
|
71
57
|
},
|
|
72
58
|
"./pages": {
|
|
73
|
-
"types": "./
|
|
74
|
-
"import": "./
|
|
75
|
-
"
|
|
76
|
-
},
|
|
77
|
-
"./contexts": {
|
|
78
|
-
"types": "./src/contexts/index.ts",
|
|
79
|
-
"import": "./src/contexts/index.ts",
|
|
80
|
-
"default": "./src/contexts/index.ts"
|
|
59
|
+
"types": "./dist/pages.d.ts",
|
|
60
|
+
"import": "./dist/pages.mjs",
|
|
61
|
+
"require": "./dist/pages.cjs"
|
|
81
62
|
},
|
|
82
63
|
"./styles": "./src/styles/index.css",
|
|
83
64
|
"./styles/dashboard": "./src/styles/dashboard.css"
|
|
84
65
|
},
|
|
85
66
|
"files": [
|
|
67
|
+
"dist",
|
|
86
68
|
"src",
|
|
87
69
|
"README.md",
|
|
88
70
|
"LICENSE"
|
|
89
71
|
],
|
|
90
72
|
"scripts": {
|
|
73
|
+
"build": "tsup",
|
|
74
|
+
"clean": "rm -rf dist",
|
|
75
|
+
"dev": "tsup --watch",
|
|
91
76
|
"lint": "eslint .",
|
|
92
77
|
"check": "tsc --noEmit"
|
|
93
78
|
},
|
|
94
79
|
"peerDependencies": {
|
|
95
|
-
"@djangocfg/api": "^2.1.
|
|
96
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
97
|
-
"@djangocfg/ui-core": "^2.1.
|
|
98
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
99
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
80
|
+
"@djangocfg/api": "^2.1.102",
|
|
81
|
+
"@djangocfg/centrifugo": "^2.1.102",
|
|
82
|
+
"@djangocfg/ui-core": "^2.1.102",
|
|
83
|
+
"@djangocfg/ui-nextjs": "^2.1.102",
|
|
84
|
+
"@djangocfg/ui-tools": "^2.1.102",
|
|
100
85
|
"@hookform/resolvers": "^5.2.0",
|
|
101
86
|
"consola": "^3.4.2",
|
|
102
87
|
"lucide-react": "^0.545.0",
|
|
@@ -119,11 +104,17 @@
|
|
|
119
104
|
"uuid": "^11.1.0"
|
|
120
105
|
},
|
|
121
106
|
"devDependencies": {
|
|
122
|
-
"@djangocfg/
|
|
107
|
+
"@djangocfg/api": "^2.1.102",
|
|
108
|
+
"@djangocfg/centrifugo": "^2.1.102",
|
|
109
|
+
"@djangocfg/typescript-config": "^2.1.102",
|
|
110
|
+
"@djangocfg/ui-core": "^2.1.102",
|
|
111
|
+
"@djangocfg/ui-nextjs": "^2.1.102",
|
|
112
|
+
"@djangocfg/ui-tools": "^2.1.102",
|
|
123
113
|
"@types/node": "^24.7.2",
|
|
124
114
|
"@types/react": "^19.1.0",
|
|
125
115
|
"@types/react-dom": "^19.1.0",
|
|
126
116
|
"eslint": "^9.37.0",
|
|
117
|
+
"tsup": "^8.5.0",
|
|
127
118
|
"typescript": "^5.9.3"
|
|
128
119
|
},
|
|
129
120
|
"publishConfig": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
import { Copy, Terminal } from 'lucide-react';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
|
-
import { Button
|
|
12
|
+
import { Button } from '@djangocfg/ui-nextjs';
|
|
13
|
+
import { useCopy } from '@djangocfg/ui-core/hooks';
|
|
13
14
|
|
|
14
15
|
import { generateCurlFromError } from '../utils/curl-generator';
|
|
15
16
|
import {
|