najm-kit 2.11.15 → 2.11.16
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/CHANGELOG.md +10 -0
- package/dist/{NNotFoundState-CgU76llk.d.ts → NNotFoundState-BmGDW2Bx.d.ts} +16 -3
- package/dist/adapters/app.d.ts +2 -2
- package/dist/adapters/app.mjs +2 -2
- package/dist/{chunk-26EASWUY.mjs → chunk-5ZTOCWRA.mjs} +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.11.16 - 2026-09-04
|
|
4
|
+
|
|
5
|
+
- `NBrandingPayload` accepts a `slots` registry, so `NajmAppProvider` takes what
|
|
6
|
+
`najm-theme`'s `loadServerBranding()` returned as `initialBranding` unchanged
|
|
7
|
+
instead of renaming `sidebarLogoExpanded` and `sidebarLogoCollapsed` at the
|
|
8
|
+
call site. Structural — the kit still does not depend on `najm-theme`.
|
|
9
|
+
Precedence is explicit marks, then flat payload fields, then slots, and only
|
|
10
|
+
the two sidebar keys are read: an auth logo, a hero, and a consumer's own
|
|
11
|
+
slots stay out of the context the sidebar sees.
|
|
12
|
+
|
|
3
13
|
## 2.11.15 - 2026-09-04
|
|
4
14
|
|
|
5
15
|
- Fixed `ComboboxInput` keyboard interaction. Enter and Space now open its
|
|
@@ -25,15 +25,28 @@ interface NBrandingValue {
|
|
|
25
25
|
interface NBrandingPayload {
|
|
26
26
|
sidebarLogoExpandedPath?: string | null;
|
|
27
27
|
sidebarLogoCollapsedPath?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* A slot registry, as `najm-theme` resolves branding: slot key to path.
|
|
30
|
+
*
|
|
31
|
+
* Read here so a themed application passes what `loadServerBranding()`
|
|
32
|
+
* returned straight through, rather than renaming two of its slots at the
|
|
33
|
+
* one call site that mounts the chrome. Only the two sidebar keys are read,
|
|
34
|
+
* so an auth logo, a hero, and a consumer's own slots stay out of the
|
|
35
|
+
* context the sidebar sees.
|
|
36
|
+
*
|
|
37
|
+
* Structural on purpose: the kit does not depend on `najm-theme`, and the
|
|
38
|
+
* dependency runs the other way.
|
|
39
|
+
*/
|
|
40
|
+
slots?: Record<string, string | null>;
|
|
28
41
|
}
|
|
29
42
|
/** Resolved marks, an endpoint payload, or both. */
|
|
30
43
|
type NBrandingInput = NBrandingValue & NBrandingPayload;
|
|
31
44
|
/**
|
|
32
45
|
* Projects an input onto the marks `useNBranding` publishes.
|
|
33
46
|
*
|
|
34
|
-
* Explicit marks win over payload fields,
|
|
35
|
-
* `logoExpanded` — or a `ReactNode` logo, which no
|
|
36
|
-
* unaffected by the wider input type.
|
|
47
|
+
* Explicit marks win over payload fields, which win over slots, so an
|
|
48
|
+
* application already passing `logoExpanded` — or a `ReactNode` logo, which no
|
|
49
|
+
* payload can express — is unaffected by the wider input type.
|
|
37
50
|
*/
|
|
38
51
|
declare function normalizeBranding(input?: NBrandingInput): NBrandingValue;
|
|
39
52
|
/** Returns `null` outside a provider, so every consumer stays optional. */
|
package/dist/adapters/app.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Translations } from 'najm-i18n';
|
|
3
|
-
import { F as FormDevToolsOptions, N as NBrandingInput } from '../NNotFoundState-
|
|
4
|
-
export { a as NEmptyState, b as NEmptyStateProps, c as NErrorState, d as NErrorStateProps, e as NFeedbackSurface, f as NForbiddenState, g as NForbiddenStateProps, h as NLoadingState, i as NLoadingStateProps, j as NNotFoundState, k as NNotFoundStateProps } from '../NNotFoundState-
|
|
3
|
+
import { F as FormDevToolsOptions, N as NBrandingInput } from '../NNotFoundState-BmGDW2Bx.js';
|
|
4
|
+
export { a as NEmptyState, b as NEmptyStateProps, c as NErrorState, d as NErrorStateProps, e as NFeedbackSurface, f as NForbiddenState, g as NForbiddenStateProps, h as NLoadingState, i as NLoadingStateProps, j as NNotFoundState, k as NNotFoundStateProps } from '../NNotFoundState-BmGDW2Bx.js';
|
|
5
5
|
import { NajmNextUIProviderProps } from './next.js';
|
|
6
6
|
export { D as DEFAULT_FEEDBACK_KEY_PREFIX, F as FeedbackKey, N as NFeedbackDefaults, a as NFeedbackLabelKeys, b as NFeedbackLabels } from '../NajmUIProvider-BwL5HFIV.js';
|
|
7
7
|
import 'zod';
|
package/dist/adapters/app.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { FormDevToolsProvider, NBrandingStateProvider, NajmFormatProvider } from '../chunk-
|
|
3
|
-
export { NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState } from '../chunk-
|
|
2
|
+
import { FormDevToolsProvider, NBrandingStateProvider, NajmFormatProvider } from '../chunk-5ZTOCWRA.mjs';
|
|
3
|
+
export { NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState } from '../chunk-5ZTOCWRA.mjs';
|
|
4
4
|
import { NajmNextUIProvider } from '../chunk-DKHIQFXX.mjs';
|
|
5
5
|
export { DEFAULT_FEEDBACK_KEY_PREFIX } from '../chunk-BDQK6ECA.mjs';
|
|
6
6
|
import '../chunk-M5VGBZ7R.mjs';
|
|
@@ -10,8 +10,8 @@ import { AlertTriangle, LoaderCircleIcon, LoaderPinwheelIcon, LoaderIcon, Shield
|
|
|
10
10
|
function normalizeBranding(input) {
|
|
11
11
|
if (!input) return {};
|
|
12
12
|
const value = {};
|
|
13
|
-
const expanded = input.logoExpanded ?? input.sidebarLogoExpandedPath;
|
|
14
|
-
const collapsed = input.logoCollapsed ?? input.sidebarLogoCollapsedPath;
|
|
13
|
+
const expanded = input.logoExpanded ?? input.sidebarLogoExpandedPath ?? input.slots?.sidebarLogoExpanded;
|
|
14
|
+
const collapsed = input.logoCollapsed ?? input.sidebarLogoCollapsedPath ?? input.slots?.sidebarLogoCollapsed;
|
|
15
15
|
if (input.appName !== void 0) value.appName = input.appName;
|
|
16
16
|
if (input.logoFallback !== void 0) value.logoFallback = input.logoFallback;
|
|
17
17
|
if (input.logoHref !== void 0) value.logoHref = input.logoHref;
|
package/dist/index.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
24
24
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
25
25
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
26
26
|
import { OverlayScrollbarsComponentProps } from 'overlayscrollbars-react';
|
|
27
|
-
import { l as FormDevTools, F as FormDevToolsOptions } from './NNotFoundState-
|
|
28
|
-
export { m as FormDevToolsConfig, n as FormFillOverride, o as FormFillOverrides, p as NBrandingEditorValue, N as NBrandingInput, q as NBrandingPayload, r as NBrandingProvider, s as NBrandingStateProvider, t as NBrandingStateProviderProps, u as NBrandingValue, a as NEmptyState, b as NEmptyStateProps, c as NErrorState, d as NErrorStateProps, e as NFeedbackSurface, f as NForbiddenState, g as NForbiddenStateProps, h as NLoadingState, i as NLoadingStateProps, j as NNotFoundState, k as NNotFoundStateProps, v as buildFormFill, w as normalizeBranding, x as useNBranding, y as useNBrandingEditor } from './NNotFoundState-
|
|
27
|
+
import { l as FormDevTools, F as FormDevToolsOptions } from './NNotFoundState-BmGDW2Bx.js';
|
|
28
|
+
export { m as FormDevToolsConfig, n as FormFillOverride, o as FormFillOverrides, p as NBrandingEditorValue, N as NBrandingInput, q as NBrandingPayload, r as NBrandingProvider, s as NBrandingStateProvider, t as NBrandingStateProviderProps, u as NBrandingValue, a as NEmptyState, b as NEmptyStateProps, c as NErrorState, d as NErrorStateProps, e as NFeedbackSurface, f as NForbiddenState, g as NForbiddenStateProps, h as NLoadingState, i as NLoadingStateProps, j as NNotFoundState, k as NNotFoundStateProps, v as buildFormFill, w as normalizeBranding, x as useNBranding, y as useNBrandingEditor } from './NNotFoundState-BmGDW2Bx.js';
|
|
29
29
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
30
30
|
import { Command as Command$1 } from 'cmdk';
|
|
31
31
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveAvatarSrc } from './chunk-BEGOH366.mjs';
|
|
2
2
|
export { isPlaceholderAvatar, resolveAvatarSrc } from './chunk-BEGOH366.mjs';
|
|
3
|
-
import { NLoadingState, NErrorState, NEmptyState, useResolvedFormDevTools, useNBranding } from './chunk-
|
|
4
|
-
export { FormDevToolsProvider, NBrandingProvider, NBrandingStateProvider, NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState, NPageLayout, NSpinner, NajmFormatProvider, buildFormFill, normalizeBranding, useNBranding, useNBrandingEditor, useNajmFormat, useNajmFormatContext } from './chunk-
|
|
3
|
+
import { NLoadingState, NErrorState, NEmptyState, useResolvedFormDevTools, useNBranding } from './chunk-5ZTOCWRA.mjs';
|
|
4
|
+
export { FormDevToolsProvider, NBrandingProvider, NBrandingStateProvider, NEmptyState, NErrorState, NForbiddenState, NLoadingState, NNotFoundState, NPageLayout, NSpinner, NajmFormatProvider, buildFormFill, normalizeBranding, useNBranding, useNBrandingEditor, useNajmFormat, useNajmFormatContext } from './chunk-5ZTOCWRA.mjs';
|
|
5
5
|
import { normalizeImageSources, useImageChain, useNBadgeDefaults, mergeBadgeMaps, resolveStatusColor, resolveBadgeStatusLabel, colorTextClass, useResolvedPaginationLabels, useResolvedToolbarLabels } from './chunk-BDQK6ECA.mjs';
|
|
6
6
|
export { DEFAULT_FEEDBACK_KEY_PREFIX, DEFAULT_PAGINATION_KEY_PREFIX, DEFAULT_TIME_ZONE, DEFAULT_TOOLBAR_KEY_PREFIX, EMPTY_DESIGN, NAJM_COLOR_TEXT_CLASSES, NAJM_STATUS_COLORS, NTableDefaultsProvider, NajmDesignEditorProvider, NajmPreferencesProvider, NajmUIProvider, buildPaginationLabels, buildToolbarLabels, colorTextClass, findStatusColor, normalizeStatusToken, resolveStatusColor, statusTextClass, useDocumentDirection, useNTableDefaults, useNajmDesignEditor, useNajmPreferencesContext, useNajmTheme, useNajmTimeZone, useResolvedToolbarLabels } from './chunk-BDQK6ECA.mjs';
|
|
7
7
|
import { NajmScroll, useNajmScrollViewport, useTableStore, TableStoreContext, NTableJson } from './chunk-5JVFMOLI.mjs';
|