@forgeax/app-shell 0.18.0 → 0.19.0
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/react.d.ts +9 -1
- package/dist/react.js +10 -0
- package/package.json +1 -1
package/dist/react.d.ts
CHANGED
|
@@ -66,6 +66,14 @@ declare function DetachedSurfaceFrame({ children, panel, centered, }: DetachedSu
|
|
|
66
66
|
/** Product-neutral status text for a detached frame; callers retain the copy. */
|
|
67
67
|
declare function DetachedSurfaceStatus({ children, tone, }: DetachedSurfaceStatusProps): ReactElement;
|
|
68
68
|
|
|
69
|
+
interface SurfacePlaceholderProps {
|
|
70
|
+
title: ReactNode;
|
|
71
|
+
/** Optional caller-owned modifier; product variants remain outside App Shell. */
|
|
72
|
+
className?: string;
|
|
73
|
+
}
|
|
74
|
+
/** Product-neutral empty renderer placeholder with stable shell hooks. */
|
|
75
|
+
declare function SurfacePlaceholder({ title, className, }: SurfacePlaceholderProps): ReactElement;
|
|
76
|
+
|
|
69
77
|
type ShellSlotElement = 'aside' | 'div' | 'main' | 'section';
|
|
70
78
|
interface ShellSlotProps extends HTMLAttributes<HTMLElement> {
|
|
71
79
|
as?: ShellSlotElement;
|
|
@@ -74,4 +82,4 @@ interface ShellSlotProps extends HTMLAttributes<HTMLElement> {
|
|
|
74
82
|
/** Structural shell marker that preserves the caller's semantic element. */
|
|
75
83
|
declare function ShellSlot({ as, name, ...props }: ShellSlotProps): ReactElement;
|
|
76
84
|
|
|
77
|
-
export { DetachedPanelBoundary, type DetachedPanelBoundaryProps, DetachedSurfaceFrame, type DetachedSurfaceFrameProps, DetachedSurfaceStatus, type DetachedSurfaceStatusProps, type DetachedSurfaceStatusTone, type PanelContentPadding, type PanelContentPolicy, type PanelContentScroll, type PanelContentTone, PanelSurface, type PanelSurfaceProps, ResizeHandle, type ResizeHandleProps, ShellSlot, type ShellSlotElement, type ShellSlotProps, SlotDebugOverlay, hashSlotHue, isSlotDebugEnabled, useLocalSize };
|
|
85
|
+
export { DetachedPanelBoundary, type DetachedPanelBoundaryProps, DetachedSurfaceFrame, type DetachedSurfaceFrameProps, DetachedSurfaceStatus, type DetachedSurfaceStatusProps, type DetachedSurfaceStatusTone, type PanelContentPadding, type PanelContentPolicy, type PanelContentScroll, type PanelContentTone, PanelSurface, type PanelSurfaceProps, ResizeHandle, type ResizeHandleProps, ShellSlot, type ShellSlotElement, type ShellSlotProps, SlotDebugOverlay, SurfacePlaceholder, type SurfacePlaceholderProps, hashSlotHue, isSlotDebugEnabled, useLocalSize };
|
package/dist/react.js
CHANGED
|
@@ -344,6 +344,15 @@ function DetachedSurfaceStatus({
|
|
|
344
344
|
return /* @__PURE__ */ jsx4("span", { className: "fx-detached-surface-status-text", "data-tone": tone, children });
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
+
// src/surface-placeholder.tsx
|
|
348
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
349
|
+
function SurfacePlaceholder({
|
|
350
|
+
title,
|
|
351
|
+
className
|
|
352
|
+
}) {
|
|
353
|
+
return /* @__PURE__ */ jsx5("div", { className: className ? `surface-placeholder ${className}` : "surface-placeholder", children: /* @__PURE__ */ jsx5("div", { className: "surface-placeholder-title", children: title }) });
|
|
354
|
+
}
|
|
355
|
+
|
|
347
356
|
// src/react.tsx
|
|
348
357
|
function ShellSlot({
|
|
349
358
|
as = "div",
|
|
@@ -360,6 +369,7 @@ export {
|
|
|
360
369
|
ResizeHandle,
|
|
361
370
|
ShellSlot,
|
|
362
371
|
SlotDebugOverlay,
|
|
372
|
+
SurfacePlaceholder,
|
|
363
373
|
hashSlotHue,
|
|
364
374
|
isSlotDebugEnabled,
|
|
365
375
|
useLocalSize
|