xmlui 0.12.20 → 0.12.21

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.
@@ -196,7 +196,7 @@ declare type AppLayoutType = (typeof appLayoutNames)[number];
196
196
  * from either code-behind files or inlined markup expressions) and executes
197
197
  * the app accordingly.
198
198
  */
199
- declare function AppRoot({ asIsland, mainSrc, apiInterceptor, contributes, node, decorateComponentsWithTestId, debugEnabled, defaultTheme, defaultTone, resources, globalProps, globalVars, standalone, trackContainerHeight, routerBaseName, previewMode, resourceMap, sources, extensionManager, children, projectCompilation, isNested, onInit, icons, helmetContext, }: AppWrapperProps & {
199
+ declare function AppRoot({ apiInterceptor, contributes, node, decorateComponentsWithTestId, debugEnabled, defaultTheme, defaultTone, resources, globalProps, globalVars, standalone, trackContainerHeight, routerBaseName, previewMode, resourceMap, sources, extensionManager, children, projectCompilation, isNested, onInit, icons, helmetContext, }: AppWrapperProps & {
200
200
  extensionManager?: StandaloneExtensionManager;
201
201
  isNested?: boolean;
202
202
  }): JSX_2.Element;
@@ -235,7 +235,6 @@ declare type AppThemes = {
235
235
  };
236
236
 
237
237
  declare type AppWrapperProps = {
238
- asIsland?: boolean;
239
238
  node: ComponentLike;
240
239
  previewMode?: boolean;
241
240
  routerBaseName?: string;
@@ -364,7 +363,7 @@ declare interface BinaryExpression extends ExpressionBase {
364
363
  right: Expression;
365
364
  }
366
365
 
367
- declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in";
366
+ declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in" | "instanceof";
368
367
 
369
368
  declare type BLOCK_STATEMENT = typeof T_BLOCK_STATEMENT;
370
369
 
@@ -686,6 +685,7 @@ declare type ConfirmOptions = {
686
685
  actionLabel?: string;
687
686
  cancelLabel?: string;
688
687
  width?: string;
688
+ actionThemeColor?: ButtonThemeColor;
689
689
  };
690
690
 
691
691
  declare type CONST_STATEMENT = typeof T_CONST_STATEMENT;
@@ -1289,6 +1289,7 @@ declare interface IconBaseProps extends default_2.SVGAttributes<SVGElement> {
1289
1289
  style?: CSSProperties;
1290
1290
  className?: string;
1291
1291
  tabIndex?: number;
1292
+ onClick?: default_2.MouseEventHandler<any>;
1292
1293
  onKeyDown?: default_2.KeyboardEventHandler<any>;
1293
1294
  }
1294
1295
 
@@ -1523,6 +1524,31 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
1523
1524
  */
1524
1525
  declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
1525
1526
 
1527
+ declare interface NavHierarchyNode {
1528
+ /** The type of navigation node - either a clickable link or a grouping container */
1529
+ type: "NavLink" | "NavGroup";
1530
+ /** The display label/text for this navigation item */
1531
+ label: string;
1532
+ /** The URL/route path for navigation (present for NavLink and optional for NavGroup) */
1533
+ to?: string;
1534
+ /** Child navigation nodes nested under this node (only present for NavGroup types) */
1535
+ children?: NavHierarchyNode[];
1536
+ /** Optional icon name associated with this navigation item */
1537
+ icon?: string;
1538
+ /** Reference to the immediate parent node in the hierarchy (undefined for root-level nodes) */
1539
+ parent?: NavHierarchyNode;
1540
+ /** Array of ancestor nodes from root to this node, excluding this node itself (empty for root-level nodes) */
1541
+ pathSegments?: NavHierarchyNode[];
1542
+ /** Reference to the previous NavLink in the flattened navigation order */
1543
+ prevLink?: NavHierarchyNode;
1544
+ /** Reference to the next NavLink in the flattened navigation order */
1545
+ nextLink?: NavHierarchyNode;
1546
+ /** True if this is the first NavLink within its immediate parent container */
1547
+ firstLink?: boolean;
1548
+ /** True if this is the last NavLink within its immediate parent container */
1549
+ lastLink?: boolean;
1550
+ }
1551
+
1526
1552
  declare const NavPanelCollapseButton: NamedExoticComponent<NavPanelCollapseButtonProps>;
1527
1553
 
1528
1554
  declare type NavPanelCollapseButtonProps = {
@@ -1546,9 +1572,6 @@ declare type NestedAppProps = {
1546
1572
  refreshVersion?: number;
1547
1573
  withSplashScreen?: boolean;
1548
1574
  className?: string;
1549
- resolvedApp?: ComponentDef | CompoundComponentDef;
1550
- resolvedComponents?: CompoundComponentDef[];
1551
- asIsland?: boolean;
1552
1575
  };
1553
1576
 
1554
1577
  declare type NEW_EXPRESSION = typeof T_NEW_EXPRESSION;
@@ -1997,16 +2020,8 @@ declare const Stack: default_2.MemoExoticComponent<default_2.ForwardRefExoticCom
1997
2020
  * AppRoot is responsible for rendering the app (using an internal
1998
2021
  * representation); ApiInterceptor can emulate some backend functionality
1999
2022
  * running in the browser.
2000
- *
2001
- * Note: base styles (index.scss) are NOT imported here as a side-effect.
2002
- * Instead, the `RootClasses` component (ThemeReact.tsx) injects them as a
2003
- * `<style id="xmlui-base-styles">` tag prepended into the correct target
2004
- * (document.head for normal apps, shadow root for islands). This ensures
2005
- * the @layer declaration always evaluates first — before any Vite-injected
2006
- * component styles — and that island styles are fully scoped to their
2007
- * shadow root without leaking to the host page.
2008
2023
  */
2009
- declare function StandaloneApp({ srcBase, asIsland, appDef, appGlobals: globals, decorateComponentsWithTestId, debugEnabled, runtime, extensionManager, waitForApiInterceptor, helmetContext, children, }: StandaloneAppProps): JSX_2.Element;
2024
+ declare function StandaloneApp({ appDef, appGlobals: globals, decorateComponentsWithTestId, debugEnabled, runtime, extensionManager, waitForApiInterceptor, helmetContext, children, }: StandaloneAppProps): JSX_2.Element;
2010
2025
 
2011
2026
  declare type StandaloneAppDescription = {
2012
2027
  name?: string;
@@ -2026,7 +2041,6 @@ declare type StandaloneAppDescription = {
2026
2041
 
2027
2042
  declare type StandaloneAppProps = {
2028
2043
  appDef?: StandaloneAppDescription;
2029
- srcBase?: string;
2030
2044
  appGlobals?: Record<string, any>;
2031
2045
  decorateComponentsWithTestId?: boolean;
2032
2046
  debugEnabled?: boolean;
@@ -2035,7 +2049,6 @@ declare type StandaloneAppProps = {
2035
2049
  waitForApiInterceptor?: boolean;
2036
2050
  helmetContext?: Record<string, unknown>;
2037
2051
  children?: ReactNode;
2038
- asIsland?: boolean;
2039
2052
  };
2040
2053
 
2041
2054
  declare function StandaloneComponent({ node, children, functions, vars }: RootComponentProps): ReactNode;
@@ -2086,7 +2099,6 @@ declare const standaloneExports: {
2086
2099
  dValueApi: typeof xmluiExports.dValueApi;
2087
2100
  parseScssVar: typeof xmluiExports.parseScssVar;
2088
2101
  startApp: typeof startApp;
2089
- startIslands: typeof xmluiExports.startIslands;
2090
2102
  useTheme: typeof xmluiExports.useTheme;
2091
2103
  AppRoot: typeof xmluiExports.AppRoot;
2092
2104
  ErrorBoundary: typeof xmluiExports.ErrorBoundary;
@@ -2252,9 +2264,6 @@ declare const standaloneExports: {
2252
2264
  refreshVersion?: number;
2253
2265
  withSplashScreen?: boolean;
2254
2266
  className?: string;
2255
- resolvedApp?: xmluiExports.ComponentDef | xmluiExports.CompoundComponentDef;
2256
- resolvedComponents?: xmluiExports.CompoundComponentDef[];
2257
- asIsland?: boolean;
2258
2267
  }>;
2259
2268
  VisuallyHidden: ({ children, ...props }: {
2260
2269
  children: default_2.ReactNode;
@@ -2284,6 +2293,7 @@ declare const standaloneExports: {
2284
2293
  } & Partial<Pick<HTMLAnchorElement, "type" | "rel" | "target" | "download" | "referrerPolicy" | "ping" | "hreflang">> & default_2.RefAttributes<HTMLDivElement> & {
2285
2294
  className?: string;
2286
2295
  }, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2296
+ useLinkInfo: typeof xmluiExports.useLinkInfo;
2287
2297
  Heading: default_2.ForwardRefExoticComponent<Omit<Omit<HeadingProps_2, "ref"> & default_2.RefAttributes<HTMLHeadingElement> & {
2288
2298
  className?: string;
2289
2299
  }, "ref"> & default_2.RefAttributes<HTMLHeadingElement>>;
@@ -2508,8 +2518,6 @@ declare type StandaloneJsonConfig = {
2508
2518
  */
2509
2519
  declare function startApp(runtime: any, extensions?: Extension[] | Extension, extensionManager?: StandaloneExtensionManager): Root;
2510
2520
 
2511
- declare function startIslands(extensionManager?: StandaloneExtensionManager): () => void;
2512
-
2513
2521
  declare type State = {
2514
2522
  hasError: boolean;
2515
2523
  error: Error | null;
@@ -3183,6 +3191,8 @@ declare interface UseEventOverload {
3183
3191
  <TF extends callbackType>(callback: TF): any;
3184
3192
  }
3185
3193
 
3194
+ declare function useLinkInfo(): NavHierarchyNode | undefined;
3195
+
3186
3196
  declare const useLogger: () => LogContextType;
3187
3197
 
3188
3198
  declare function useOption(): OptionContextValue;
@@ -3451,6 +3461,7 @@ declare namespace xmluiExports {
3451
3461
  ThemeTone,
3452
3462
  XmlUiNode,
3453
3463
  SearchItemData,
3464
+ NavHierarchyNode,
3454
3465
  StandaloneApp,
3455
3466
  StandaloneExtensionManager,
3456
3467
  createComponentRenderer,
@@ -3495,7 +3506,6 @@ declare namespace xmluiExports {
3495
3506
  dValueApi,
3496
3507
  parseScssVar,
3497
3508
  startApp,
3498
- startIslands,
3499
3509
  useTheme,
3500
3510
  AppRoot,
3501
3511
  ErrorBoundary,
@@ -3522,6 +3532,7 @@ declare namespace xmluiExports {
3522
3532
  NestedApp,
3523
3533
  VisuallyHidden,
3524
3534
  ThemedLinkNative as LinkNative,
3535
+ useLinkInfo,
3525
3536
  ThemedHeading as Heading,
3526
3537
  ThemedImage as Image,
3527
3538
  ThemedMarkdown as Markdown,