@djangocfg/ext-base 1.0.4 → 1.0.6
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/api.js +1 -1
- package/dist/{chunk-UXTBBEO5.js → chunk-2BEEQFEX.js} +1 -1
- package/dist/{chunk-VJEGYVBV.js → chunk-ZUKKEJUN.js} +1 -1
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +4 -4
- package/templates/extension-template/playground/app/layout.tsx.template +2 -0
- package/templates/extension-template/playground/package.json.template +3 -0
- package/templates/extension-template/playground/postcss.config.js.template +5 -0
- package/templates/extension-template/playground/tsconfig.json.template +12 -21
package/dist/api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createExtensionAPI, getSharedAuthStorage } from './chunk-
|
|
1
|
+
export { createExtensionAPI, getSharedAuthStorage } from './chunk-ZUKKEJUN.js';
|
|
2
2
|
import './chunk-3RG5ZIWI.js';
|
package/dist/hooks.cjs
CHANGED
|
@@ -80,7 +80,7 @@ function createExtensionConfig(packageJson, config) {
|
|
|
80
80
|
// package.json
|
|
81
81
|
var package_default = {
|
|
82
82
|
name: "@djangocfg/ext-base",
|
|
83
|
-
version: "1.0.
|
|
83
|
+
version: "1.0.6",
|
|
84
84
|
description: "Base utilities and common code for DjangoCFG extensions",
|
|
85
85
|
keywords: [
|
|
86
86
|
"django",
|
package/dist/hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createExtensionLogger } from './chunk-
|
|
2
|
-
export { EXTENSION_CATEGORIES, createExtensionConfig, createExtensionError, createExtensionLogger, extensionConfig, formatErrorMessage, handleExtensionError, isExtensionError } from './chunk-
|
|
3
|
-
import { isDevelopment } from './chunk-
|
|
4
|
-
export { createExtensionAPI, getApiUrl, getSharedAuthStorage, isDevelopment, isProduction, isStaticBuild } from './chunk-
|
|
1
|
+
import { createExtensionLogger } from './chunk-2BEEQFEX.js';
|
|
2
|
+
export { EXTENSION_CATEGORIES, createExtensionConfig, createExtensionError, createExtensionLogger, extensionConfig, formatErrorMessage, handleExtensionError, isExtensionError } from './chunk-2BEEQFEX.js';
|
|
3
|
+
import { isDevelopment } from './chunk-ZUKKEJUN.js';
|
|
4
|
+
export { createExtensionAPI, getApiUrl, getSharedAuthStorage, isDevelopment, isProduction, isStaticBuild } from './chunk-ZUKKEJUN.js';
|
|
5
5
|
import './chunk-3RG5ZIWI.js';
|
|
6
6
|
import React, { createContext, useEffect, useContext } from 'react';
|
|
7
7
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
package/dist/index.cjs
CHANGED
|
@@ -72,7 +72,7 @@ function createExtensionConfig(packageJson, config) {
|
|
|
72
72
|
// package.json
|
|
73
73
|
var package_default = {
|
|
74
74
|
name: "@djangocfg/ext-base",
|
|
75
|
-
version: "1.0.
|
|
75
|
+
version: "1.0.6",
|
|
76
76
|
description: "Base utilities and common code for DjangoCFG extensions",
|
|
77
77
|
keywords: [
|
|
78
78
|
"django",
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { EXTENSION_CATEGORIES, createExtensionConfig, createExtensionError, createExtensionLogger, extensionConfig, formatErrorMessage, handleExtensionError, isExtensionError } from './chunk-
|
|
2
|
-
export { createExtensionAPI, getApiUrl, getSharedAuthStorage, isDevelopment, isProduction, isStaticBuild } from './chunk-
|
|
1
|
+
export { EXTENSION_CATEGORIES, createExtensionConfig, createExtensionError, createExtensionLogger, extensionConfig, formatErrorMessage, handleExtensionError, isExtensionError } from './chunk-2BEEQFEX.js';
|
|
2
|
+
export { createExtensionAPI, getApiUrl, getSharedAuthStorage, isDevelopment, isProduction, isStaticBuild } from './chunk-ZUKKEJUN.js';
|
|
3
3
|
import './chunk-3RG5ZIWI.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/ext-base",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Base utilities and common code for DjangoCFG extensions",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"django",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"cli:info": "tsx src/cli/index.ts info"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@djangocfg/api": "
|
|
76
|
+
"@djangocfg/api": "workspace:*",
|
|
77
77
|
"consola": "^3.4.2",
|
|
78
78
|
"react": "^18 || ^19",
|
|
79
79
|
"react-dom": "^18 || ^19",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"prompts": "^2.4.2"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@djangocfg/api": "
|
|
90
|
-
"@djangocfg/typescript-config": "
|
|
89
|
+
"@djangocfg/api": "workspace:*",
|
|
90
|
+
"@djangocfg/typescript-config": "workspace:*",
|
|
91
91
|
"@types/node": "^24.7.2",
|
|
92
92
|
"@types/prompts": "^2.4.9",
|
|
93
93
|
"@types/react": "^19.0.0",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from 'next';
|
|
2
2
|
import { Manrope } from 'next/font/google';
|
|
3
3
|
import { BaseApp } from '@djangocfg/layouts';
|
|
4
|
+
import { AIChatWidget } from '@djangocfg/layouts/snippets';
|
|
4
5
|
import './globals.css';
|
|
5
6
|
|
|
6
7
|
export const metadata: Metadata = {
|
|
@@ -24,6 +25,7 @@ export default function RootLayout({
|
|
|
24
25
|
<html lang="en" suppressHydrationWarning>
|
|
25
26
|
<body className={manrope.className} style={{ fontFamily: manrope.style.fontFamily }}>
|
|
26
27
|
<BaseApp>{children}</BaseApp>
|
|
28
|
+
<AIChatWidget />
|
|
27
29
|
</body>
|
|
28
30
|
</html>
|
|
29
31
|
);
|
|
@@ -25,9 +25,12 @@
|
|
|
25
25
|
"tailwindcss-animate": "^1.0.7"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"@djangocfg/typescript-config": "workspace:*",
|
|
29
|
+
"@tailwindcss/postcss": "^4.1.14",
|
|
28
30
|
"@types/node": "^24.7.2",
|
|
29
31
|
"@types/react": "^19.2.7",
|
|
30
32
|
"@types/react-dom": "^19.2.3",
|
|
33
|
+
"postcss": "^8.5.6",
|
|
31
34
|
"typescript": "^5.9.3"
|
|
32
35
|
}
|
|
33
36
|
}
|
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "@djangocfg/typescript-config/nextjs.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"jsx": "preserve",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"plugins": [
|
|
17
|
-
{
|
|
18
|
-
"name": "next"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
4
|
"paths": {
|
|
22
5
|
"@/*": ["./*"]
|
|
23
|
-
}
|
|
6
|
+
},
|
|
7
|
+
"noEmit": true
|
|
24
8
|
},
|
|
25
|
-
"include": [
|
|
26
|
-
|
|
9
|
+
"include": [
|
|
10
|
+
"next-env.d.ts",
|
|
11
|
+
"**/*.ts",
|
|
12
|
+
"**/*.tsx",
|
|
13
|
+
".next/types/**/*.ts"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"node_modules"
|
|
17
|
+
]
|
|
27
18
|
}
|