@djangocfg/nextjs 2.1.611 → 2.1.612
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/ai/index.d.mts +2 -1
- package/dist/config/index.d.mts +4 -3
- package/dist/health/index.d.mts +2 -1
- package/dist/human-check/index.d.mts +2 -1
- package/dist/i18n/components.d.mts +2 -1
- package/dist/i18n/navigation.d.mts +6 -2
- package/dist/i18n/provider.d.mts +1 -1
- package/dist/i18n/proxy.d.mts +1 -1
- package/dist/i18n/request.d.mts +3 -2
- package/dist/i18n/routing.d.mts +3 -3
- package/dist/i18n/server.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/navigation/index.d.mts +2 -1
- package/dist/og-image/index.d.mts +2 -1
- package/dist/{plugin-yhoLWYh6.d.mts → plugin-BNI300Jb.d.mts} +2 -1
- package/dist/pwa/index.d.mts +1 -1
- package/dist/pwa/manifest.d.mts +2 -1
- package/dist/pwa/worker/index.d.mts +2 -1
- package/dist/sitemap/index.d.mts +3 -2
- package/package.json +25 -22
package/dist/ai/index.d.mts
CHANGED
|
@@ -78,4 +78,5 @@ declare function getInfo(topic: string): Promise<Record<string, unknown>>;
|
|
|
78
78
|
*/
|
|
79
79
|
declare function getMcpConfig(): McpConfig;
|
|
80
80
|
|
|
81
|
-
export { DjangoCfgDocsClient,
|
|
81
|
+
export { DjangoCfgDocsClient, getDocs, getInfo, getMcpConfig, search };
|
|
82
|
+
export type { McpConfig, SearchOptions, SearchResult };
|
package/dist/config/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextConfig } from 'next';
|
|
2
2
|
import { Configuration, Compiler } from 'webpack';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { I18nPluginOptions } from '../i18n/index.mjs';
|
|
4
|
+
import { PWAPluginOptions } from '../pwa/index.mjs';
|
|
5
5
|
export { A as AI_DOCS_HINT, M as MCP_API_URL, b as MCP_BASE_URL, c as MCP_SERVER_URL } from '../constants-BDS8GXHN.mjs';
|
|
6
6
|
import '@djangocfg/i18n';
|
|
7
7
|
|
|
@@ -672,4 +672,5 @@ declare function addCompressionPlugins(config: Configuration, options?: Compress
|
|
|
672
672
|
*/
|
|
673
673
|
declare function isCompressionAvailable(): boolean;
|
|
674
674
|
|
|
675
|
-
export {
|
|
675
|
+
export { CSP_BASELINE_VENDORS, CSP_VENDOR_PRESETS, DEFAULT_OPTIMIZE_PACKAGES, DEFAULT_TRANSPILE_PACKAGES, DJANGOCFG_PACKAGES, DJANGO_CFG_BANNER, DevStartupPlugin, OPTIONAL_PACKAGES, PACKAGE_NAME, PEER_DEPENDENCIES, addCompressionPlugins, buildInstallCommand, buildSingleInstallCommand, checkAndInstallPackages, checkAndUpdatePackages, checkForUpdate, checkForUpdates, checkPackages, createBaseNextConfig, deepMerge, detectPackageManager, fetchLatestVersion, getApiUrl, getBasePath, getCurrentVersion, getInstalledVersion, getMissingPackages, getOutdatedPackages, getPackagesForContext, getSiteUrl, getUpdateCommand, indexNowKeyRewrite, installPackages, installPackagesWithProgress, isCI, isCompressionAvailable, isDev, isPackageInstalled, isProduction, isStaticBuild, printVersionInfo, resetDevStartupState, resetInstallerPreferences, resetUpdaterPreferences, resolveCspVendors, updatePackagesWithProgress };
|
|
676
|
+
export type { BaseNextConfigOptions, CompressionPluginOptions, CspOrigins, CspVendor, DevStartupPluginOptions, InstallOptions, InstallProgress, MissingPackage, PackageDefinition, PackageVersion, UpdateOptions };
|
package/dist/health/index.d.mts
CHANGED
|
@@ -40,4 +40,5 @@ interface HealthConfig {
|
|
|
40
40
|
|
|
41
41
|
declare function createHealthHandler(config?: HealthConfig): () => Promise<NextResponse<HealthResponse>>;
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { HealthResponse, createHealthHandler };
|
|
44
|
+
export type { HealthCheck, HealthConfig };
|
|
@@ -249,4 +249,5 @@ declare function verifyTurnstile(args: {
|
|
|
249
249
|
fetch?: typeof fetch;
|
|
250
250
|
}): Promise<VerifyResult>;
|
|
251
251
|
|
|
252
|
-
export { ALWAYS_OPEN_PATHS,
|
|
252
|
+
export { ALWAYS_OPEN_PATHS, DEFAULT_CRAWLER_SOURCES, MESSAGES, claimsCrawler, clientIp, createCrawlerMatcher, createHumanCheck, inScope, isPreviewBot, matchHost, matchPath, renderHumanCheckHtml, resolveConfig, safeNext, signClearance, verifyClearance, verifyTurnstile, withHumanCheck };
|
|
253
|
+
export type { CrawlerMatcher, CrawlerVerdict, HumanCheck, HumanCheckConfig, HumanCheckDecision, HumanCheckDeps, HumanCheckLocale, HumanCheckMessages, HumanCheckScope, ScopeRule };
|
|
@@ -8,4 +8,5 @@ interface LocaleSwitcherProps extends LocaleSwitcherProps$1 {
|
|
|
8
8
|
}
|
|
9
9
|
declare function LocaleSwitcher({ locales: customLocales, ...props }: LocaleSwitcherProps): react.JSX.Element;
|
|
10
10
|
|
|
11
|
-
export { LocaleSwitcher
|
|
11
|
+
export { LocaleSwitcher };
|
|
12
|
+
export type { LocaleSwitcherProps };
|
|
@@ -5,7 +5,7 @@ import * as node_url from 'node:url';
|
|
|
5
5
|
import * as next_intl from 'next-intl';
|
|
6
6
|
import * as react from 'react';
|
|
7
7
|
import { createRouting } from './routing.mjs';
|
|
8
|
-
import {
|
|
8
|
+
import { I18nConfig } from './index.mjs';
|
|
9
9
|
import 'next-intl/routing';
|
|
10
10
|
import '@djangocfg/i18n';
|
|
11
11
|
|
|
@@ -348,6 +348,7 @@ declare function createNavigation(routingConfig?: ReturnType<typeof createRoutin
|
|
|
348
348
|
forward(): void;
|
|
349
349
|
refresh(): void;
|
|
350
350
|
experimental_gesturePush?(href: string, options?: next_dist_shared_lib_app_router_context_shared_runtime.NavigateOptions): void;
|
|
351
|
+
bfcacheId: string;
|
|
351
352
|
};
|
|
352
353
|
getPathname: (args: {
|
|
353
354
|
href: string | {
|
|
@@ -706,6 +707,7 @@ declare function createNavigationFromConfig(config: Partial<I18nConfig>): {
|
|
|
706
707
|
forward(): void;
|
|
707
708
|
refresh(): void;
|
|
708
709
|
experimental_gesturePush?(href: string, options?: next_dist_shared_lib_app_router_context_shared_runtime.NavigateOptions): void;
|
|
710
|
+
bfcacheId: string;
|
|
709
711
|
};
|
|
710
712
|
getPathname: (args: {
|
|
711
713
|
href: string | {
|
|
@@ -1072,6 +1074,7 @@ declare const useRouter: () => {
|
|
|
1072
1074
|
forward(): void;
|
|
1073
1075
|
refresh(): void;
|
|
1074
1076
|
experimental_gesturePush?(href: string, options?: next_dist_shared_lib_app_router_context_shared_runtime.NavigateOptions): void;
|
|
1077
|
+
bfcacheId: string;
|
|
1075
1078
|
};
|
|
1076
1079
|
declare const getPathname: (args: {
|
|
1077
1080
|
href: string | {
|
|
@@ -1095,4 +1098,5 @@ interface LinkProps {
|
|
|
1095
1098
|
[key: string]: unknown;
|
|
1096
1099
|
}
|
|
1097
1100
|
|
|
1098
|
-
export { Link,
|
|
1101
|
+
export { Link, createNavigation, createNavigationFromConfig, getPathname, redirect, usePathname, useRouter };
|
|
1102
|
+
export type { LinkProps };
|
package/dist/i18n/provider.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { I18nProviderProps } from './index.mjs';
|
|
3
3
|
import { LocaleCode } from '@djangocfg/i18n';
|
|
4
4
|
|
|
5
5
|
/** Locales the app passed to its provider, or null when it passed none. */
|
package/dist/i18n/proxy.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as next_server from 'next/server';
|
|
2
2
|
import { NextRequest } from 'next/server';
|
|
3
3
|
import { createRouting } from './routing.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { I18nConfig } from './index.mjs';
|
|
5
5
|
import 'next-intl/routing';
|
|
6
6
|
import '@djangocfg/i18n';
|
|
7
7
|
|
package/dist/i18n/request.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as next_intl_server from 'next-intl/server';
|
|
2
2
|
import { LocaleCode, I18nTranslations } from '@djangocfg/i18n';
|
|
3
|
-
import {
|
|
3
|
+
import { Messages } from './index.mjs';
|
|
4
4
|
|
|
5
5
|
interface RequestConfigOptions {
|
|
6
6
|
/** Base locale translations from @djangocfg/i18n */
|
|
@@ -39,4 +39,5 @@ declare function createRequestConfig(options?: RequestConfigOptions): (params: n
|
|
|
39
39
|
*/
|
|
40
40
|
declare const _default: (params: next_intl_server.GetRequestConfigParams) => next_intl_server.RequestConfig | Promise<next_intl_server.RequestConfig>;
|
|
41
41
|
|
|
42
|
-
export {
|
|
42
|
+
export { createRequestConfig, _default as default };
|
|
43
|
+
export type { RequestConfigOptions };
|
package/dist/i18n/routing.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as next_intl_routing from 'next-intl/routing';
|
|
2
|
-
import {
|
|
2
|
+
import { I18nConfig } from './index.mjs';
|
|
3
3
|
import { LocaleCode } from '@djangocfg/i18n';
|
|
4
4
|
|
|
5
5
|
declare const DEFAULT_LOCALES: LocaleCode[];
|
|
@@ -24,6 +24,7 @@ declare function createRouting(config?: Partial<I18nConfig>): {
|
|
|
24
24
|
localePrefix?: next_intl_routing.LocalePrefix<string[], "always" | "as-needed" | "never"> | undefined;
|
|
25
25
|
domains?: undefined;
|
|
26
26
|
localeCookie?: boolean | {
|
|
27
|
+
name?: string | undefined;
|
|
27
28
|
maxAge?: number | undefined | undefined;
|
|
28
29
|
priority?: "low" | "medium" | "high" | undefined | undefined;
|
|
29
30
|
domain?: string | undefined | undefined;
|
|
@@ -31,7 +32,6 @@ declare function createRouting(config?: Partial<I18nConfig>): {
|
|
|
31
32
|
secure?: boolean | undefined | undefined;
|
|
32
33
|
sameSite?: true | false | "lax" | "strict" | "none" | undefined | undefined;
|
|
33
34
|
partitioned?: boolean | undefined | undefined;
|
|
34
|
-
name?: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
alternateLinks?: boolean;
|
|
37
37
|
localeDetection?: boolean;
|
|
@@ -46,6 +46,7 @@ declare const routing: {
|
|
|
46
46
|
localePrefix?: next_intl_routing.LocalePrefix<string[], "always" | "as-needed" | "never"> | undefined;
|
|
47
47
|
domains?: undefined;
|
|
48
48
|
localeCookie?: boolean | {
|
|
49
|
+
name?: string | undefined;
|
|
49
50
|
maxAge?: number | undefined | undefined;
|
|
50
51
|
priority?: "low" | "medium" | "high" | undefined | undefined;
|
|
51
52
|
domain?: string | undefined | undefined;
|
|
@@ -53,7 +54,6 @@ declare const routing: {
|
|
|
53
54
|
secure?: boolean | undefined | undefined;
|
|
54
55
|
sameSite?: true | false | "lax" | "strict" | "none" | undefined | undefined;
|
|
55
56
|
partitioned?: boolean | undefined | undefined;
|
|
56
|
-
name?: string | undefined;
|
|
57
57
|
};
|
|
58
58
|
alternateLinks?: boolean;
|
|
59
59
|
localeDetection?: boolean;
|
package/dist/i18n/server.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as next_intl from 'next-intl';
|
|
2
2
|
export { getFormatter, getNow, getTimeZone } from 'next-intl/server';
|
|
3
3
|
export { generateLocaleParams, isValidLocale } from './routing.mjs';
|
|
4
|
-
import {
|
|
4
|
+
import { LocaleParams, Messages } from './index.mjs';
|
|
5
5
|
import { LocaleCode } from '@djangocfg/i18n';
|
|
6
6
|
import 'next-intl/routing';
|
|
7
7
|
|
package/dist/index.d.mts
CHANGED
|
@@ -125,4 +125,5 @@ declare function routesToMenuItems(routes: RouteDefinition[], groupName: string)
|
|
|
125
125
|
*/
|
|
126
126
|
declare function groupRoutesByNavGroups(routes: RouteDefinition[], groups: NavGroup[]): NavGroupWithRoutes[];
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { defineRoute, findRoute, findRouteByPattern, getPageTitle, getUnauthenticatedRedirect, groupRoutesByNavGroups, isActive, redirectToAuth, routesToMenuItems };
|
|
129
|
+
export type { BreadcrumbItem, MenuGroup, MenuItem, NavGroup, NavGroupWithRoutes, NavigationItem, NavigationSection, RouteDefinition, RouteMetadata };
|
|
@@ -121,4 +121,5 @@ declare function extractTitle(metadata: Metadata): string;
|
|
|
121
121
|
*/
|
|
122
122
|
declare function resolveOgImage(spec: OgSpec, staticUrl: string, fallbackTitle: string): Pick<Metadata, 'openGraph' | 'twitter'>;
|
|
123
123
|
|
|
124
|
-
export {
|
|
124
|
+
export { createMetadata, extractTitle, makeMetadataFactory, resolveOgImage };
|
|
125
|
+
export type { OgSpec, PageMeta, SiteMetaConfig };
|
|
@@ -76,4 +76,5 @@ declare function withPWA(nextConfig: NextConfig, _options?: PWAPluginOptions): N
|
|
|
76
76
|
*/
|
|
77
77
|
declare function getServiceWorkerTemplate(): string;
|
|
78
78
|
|
|
79
|
-
export {
|
|
79
|
+
export { getServiceWorkerTemplate as g, withPWA as w };
|
|
80
|
+
export type { PWAPluginOptions as P };
|
package/dist/pwa/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { IconPaths, ManifestConfig, ProtocolHandler, ScreenshotConfig, SmartScreenshotInput, createManifest, createManifestMetadata, createScreenshot, createScreenshots, createViewport, generateManifest } from './manifest.mjs';
|
|
2
|
-
export { P as PWAPluginOptions, g as getServiceWorkerTemplate, w as withPWA } from '../plugin-
|
|
2
|
+
export { P as PWAPluginOptions, g as getServiceWorkerTemplate, w as withPWA } from '../plugin-BNI300Jb.mjs';
|
|
3
3
|
import 'next';
|
package/dist/pwa/manifest.d.mts
CHANGED
|
@@ -201,4 +201,5 @@ declare function createManifest(config: {
|
|
|
201
201
|
*/
|
|
202
202
|
declare function generateManifest(config: ManifestConfig): MetadataRoute.Manifest;
|
|
203
203
|
|
|
204
|
-
export {
|
|
204
|
+
export { createManifest, createManifestMetadata, createScreenshot, createScreenshots, createViewport, generateManifest };
|
|
205
|
+
export type { IconPaths, ManifestConfig, ProtocolHandler, ScreenshotConfig, SmartScreenshotInput };
|
package/dist/sitemap/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MetadataRoute } from 'next';
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeFreq } from '../index.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Sitemap module — types
|
|
@@ -300,4 +300,5 @@ declare function tenantSources(tenant: string): (name: string) => boolean;
|
|
|
300
300
|
declare function fetchSitemapIndex(apiUrl: string, revalidate: number): Promise<SitemapIndex>;
|
|
301
301
|
declare function fetchSitemapFeed(apiUrl: string, source: string, cursor: string | null, revalidate: number): Promise<SitemapFeedPage>;
|
|
302
302
|
|
|
303
|
-
export {
|
|
303
|
+
export { createDjangoSitemap, createRobots, createSitemapIndex, decodeChunkId, encodeChunkId, fetchSitemapFeed, fetchSitemapIndex, selectSources, sourceFilter, tenantSources };
|
|
304
|
+
export type { CreateDjangoSitemapOptions, CreateRobotsOptions, CreateSitemapIndexOptions, SitemapChunkInfo, SitemapEntry, SitemapFeedPage, SitemapIndex, SitemapSourceInfo, SourceSelector, StaticRoute };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/nextjs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.612",
|
|
4
4
|
"description": "Next.js server utilities: sitemap, health, OG images, contact forms, navigation, config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nextjs",
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
"url": "https://github.com/markolofsen/django-cfg/issues"
|
|
27
27
|
},
|
|
28
28
|
"license": "MIT",
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=22"
|
|
31
|
+
},
|
|
29
32
|
"main": "./dist/index.mjs",
|
|
30
33
|
"types": "./dist/index.d.mts",
|
|
31
34
|
"exports": {
|
|
@@ -159,10 +162,10 @@
|
|
|
159
162
|
"ai-docs": "tsx src/ai/cli.ts"
|
|
160
163
|
},
|
|
161
164
|
"peerDependencies": {
|
|
162
|
-
"@djangocfg/api": "^2.1.
|
|
163
|
-
"@djangocfg/devtools": "^2.1.
|
|
164
|
-
"@djangocfg/i18n": "^2.1.
|
|
165
|
-
"@djangocfg/ui-core": "^2.1.
|
|
165
|
+
"@djangocfg/api": "^2.1.612",
|
|
166
|
+
"@djangocfg/devtools": "^2.1.612",
|
|
167
|
+
"@djangocfg/i18n": "^2.1.612",
|
|
168
|
+
"@djangocfg/ui-core": "^2.1.612",
|
|
166
169
|
"next": "^16.2.2"
|
|
167
170
|
},
|
|
168
171
|
"peerDependenciesMeta": {
|
|
@@ -177,28 +180,28 @@
|
|
|
177
180
|
}
|
|
178
181
|
},
|
|
179
182
|
"dependencies": {
|
|
180
|
-
"chalk": "^
|
|
181
|
-
"conf": "^
|
|
183
|
+
"chalk": "^6.0.1",
|
|
184
|
+
"conf": "^16.0.0",
|
|
182
185
|
"consola": "^3.4.2",
|
|
183
|
-
"next-intl": "^4.
|
|
184
|
-
"semver": "^7.8.
|
|
186
|
+
"next-intl": "^4.14.9",
|
|
187
|
+
"semver": "^7.8.6"
|
|
185
188
|
},
|
|
186
189
|
"devDependencies": {
|
|
187
|
-
"@djangocfg/api": "^2.1.
|
|
188
|
-
"@djangocfg/devtools": "^2.1.
|
|
189
|
-
"@djangocfg/i18n": "^2.1.
|
|
190
|
-
"@djangocfg/layouts": "^2.1.
|
|
191
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
192
|
-
"@djangocfg/ui-core": "^2.1.
|
|
190
|
+
"@djangocfg/api": "^2.1.612",
|
|
191
|
+
"@djangocfg/devtools": "^2.1.612",
|
|
192
|
+
"@djangocfg/i18n": "^2.1.612",
|
|
193
|
+
"@djangocfg/layouts": "^2.1.612",
|
|
194
|
+
"@djangocfg/typescript-config": "^2.1.612",
|
|
195
|
+
"@djangocfg/ui-core": "^2.1.612",
|
|
193
196
|
"@types/node": "^25.9.5",
|
|
194
|
-
"@types/react": "19.
|
|
195
|
-
"@types/react-dom": "19.
|
|
196
|
-
"@types/semver": "^7.
|
|
197
|
+
"@types/react": "19.3.0",
|
|
198
|
+
"@types/react-dom": "19.3.0",
|
|
199
|
+
"@types/semver": "^7.8.0",
|
|
197
200
|
"@types/webpack": "^5.28.5",
|
|
198
|
-
"eslint": "^
|
|
199
|
-
"lucide-react": "^
|
|
200
|
-
"tsup": "^
|
|
201
|
-
"tsx": "^4.23.
|
|
201
|
+
"eslint": "^10.14.0",
|
|
202
|
+
"lucide-react": "^1.68.0",
|
|
203
|
+
"tsup": "^9.0.0",
|
|
204
|
+
"tsx": "^4.23.15",
|
|
202
205
|
"typescript": "^5.9.3"
|
|
203
206
|
},
|
|
204
207
|
"publishConfig": {
|