xmlui 0.12.19 → 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.
Files changed (37) hide show
  1. package/dist/lib/{index-WVT6bIgM.js → index-CznbWBUF.js} +3224 -4066
  2. package/dist/lib/index.css +1 -1
  3. package/dist/lib/{initMock-r2IRBsLf.js → initMock-Dj__hABf.js} +2 -2
  4. package/dist/lib/{parser-DpwXEUNb.js → parser-zOoMLvLx.js} +120 -139
  5. package/dist/lib/testing.d.ts +18 -19
  6. package/dist/lib/testing.js +2 -2
  7. package/dist/lib/{xmlui-parser-Cs8kB0VK.js → xmlui-parser-CtU8O3Av.js} +43 -19
  8. package/dist/lib/xmlui-parser.d.ts +23 -19
  9. package/dist/lib/xmlui-parser.js +2 -2
  10. package/dist/lib/{xmlui-serializer-3MPLSsOp.js → xmlui-serializer-C-Iuczzr.js} +9 -8
  11. package/dist/lib/xmlui.d.ts +130 -125
  12. package/dist/lib/xmlui.js +38 -36
  13. package/dist/metadata/TextBox-B-GWiq0J.cjs +1 -0
  14. package/dist/metadata/{TextBox-CwicjBJI.js → TextBox-DHSTy0g0.js} +3407 -4256
  15. package/dist/metadata/behaviors.cjs +1 -1
  16. package/dist/metadata/behaviors.js +1 -1
  17. package/dist/metadata/{initMock-BMq6JN4I.js → initMock-SQIcDMzP.js} +1 -1
  18. package/dist/metadata/{initMock-BKBkbEgr.cjs → initMock-wSFvfKcr.cjs} +1 -1
  19. package/dist/metadata/metadata-utils.cjs +1 -1
  20. package/dist/metadata/metadata-utils.js +1 -1
  21. package/dist/metadata/transform-BOf-UbgP.cjs +1 -0
  22. package/dist/metadata/{transform-D0SWbm8g.js → transform-fGDqiHwH.js} +120 -139
  23. package/dist/metadata/xmlui-metadata.cjs +1 -1
  24. package/dist/metadata/xmlui-metadata.js +12 -8
  25. package/dist/metadata/xmlui.css +2 -2
  26. package/dist/nodejs/bin/index.mjs +63 -79
  27. package/dist/nodejs/index.cjs +63 -79
  28. package/dist/nodejs/index.mjs +63 -79
  29. package/dist/nodejs/server.cjs +1886 -1053
  30. package/dist/nodejs/server.mjs +1886 -1053
  31. package/dist/nodejs/vite-xmlui-plugin.cjs +63 -79
  32. package/dist/nodejs/vite-xmlui-plugin.mjs +63 -79
  33. package/dist/standalone/xmlui-standalone.es.d.ts +192 -179
  34. package/dist/standalone/xmlui-standalone.umd.js +11 -11
  35. package/package.json +1 -1
  36. package/dist/metadata/TextBox-C-4gnBpw.cjs +0 -1
  37. package/dist/metadata/transform-CkTQ-Bfe.cjs +0 -1
@@ -8,8 +8,10 @@ import { Dispatch } from 'react';
8
8
  import { ErrorInfo } from 'react';
9
9
  import { ForwardedRef } from 'react';
10
10
  import { ForwardRefExoticComponent } from 'react';
11
+ import { HTMLAttributes } from 'react';
11
12
  import { JSX as JSX_2 } from 'react/jsx-runtime';
12
13
  import { MemoExoticComponent } from 'react';
14
+ import { NamedExoticComponent } from 'react';
13
15
  import { NavigateOptions } from 'react-router-dom';
14
16
  import { QueryClient } from '@tanstack/react-query';
15
17
  import { ReactNode } from 'react';
@@ -63,7 +65,7 @@ export declare type ApiInterceptorDefinition = {
63
65
  useWorker?: boolean;
64
66
  };
65
67
 
66
- export declare function ApiInterceptorProvider({ interceptor, children, parentInterceptorContext, waitForApiInterceptor, }: Props_3): JSX_2.Element;
68
+ export declare function ApiInterceptorProvider({ interceptor, children, parentInterceptorContext, waitForApiInterceptor, }: Props_2): JSX_2.Element;
67
69
 
68
70
  declare type AppContextObject = {
69
71
  [x: string]: unknown;
@@ -337,7 +339,7 @@ declare interface BinaryExpression extends ExpressionBase {
337
339
  right: Expression;
338
340
  }
339
341
 
340
- declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in";
342
+ declare type BinaryOpSymbols = "**" | "*" | "/" | "%" | "+" | "-" | "<<" | ">>" | ">>>" | "<" | "<=" | ">" | ">=" | "==" | "===" | "!=" | "!==" | "&" | "|" | "^" | "&&" | "||" | "??" | "in" | "instanceof";
341
343
 
342
344
  declare type BLOCK_STATEMENT = typeof T_BLOCK_STATEMENT;
343
345
 
@@ -360,24 +362,19 @@ export declare const builtInThemes: Array<ThemeDefinition>;
360
362
 
361
363
  export declare const Button: default_2.ForwardRefExoticComponent<Omit<ThemedButtonProps, "ref"> & default_2.RefAttributes<HTMLButtonElement>>;
362
364
 
363
- declare const Button_2: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<{
364
- id?: string;
365
+ declare const Button_2: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "form"> & {
365
366
  type?: ButtonType;
366
367
  variant?: ButtonVariant;
367
368
  themeColor?: ButtonThemeColor;
368
369
  size?: SizeType;
369
- disabled?: boolean;
370
- children?: default_2.ReactNode;
371
370
  icon?: default_2.ReactNode;
372
371
  iconPosition?: IconPosition;
373
372
  contentPosition?: AlignmentOptions;
374
373
  orientation?: OrientationOptions;
375
374
  formId?: string;
376
- style?: CSSProperties;
377
- autoFocus?: boolean;
378
375
  contextualLabel?: string;
379
376
  classes?: Record<string, string>;
380
- } & Pick<default_2.HTMLAttributes<HTMLButtonElement>, "className" | "aria-disabled" | "aria-label" | "aria-controls" | "aria-expanded" | "role" | "tabIndex" | "onFocus" | "onBlur" | "onClick" | "onContextMenu" | "onMouseEnter" | "onMouseLeave"> & default_2.RefAttributes<HTMLButtonElement>>>;
377
+ } & default_2.RefAttributes<HTMLButtonElement>>>;
381
378
 
382
379
  declare type ButtonThemeColor = (typeof buttonThemeValues)[number];
383
380
 
@@ -666,6 +663,7 @@ declare type ConfirmOptions = {
666
663
  actionLabel?: string;
667
664
  cancelLabel?: string;
668
665
  width?: string;
666
+ actionThemeColor?: ButtonThemeColor;
669
667
  };
670
668
 
671
669
  declare type CONST_STATEMENT = typeof T_CONST_STATEMENT;
@@ -677,7 +675,7 @@ declare interface ConstStatement extends ScripNodeBase {
677
675
 
678
676
  declare type ContainerState = Record<string | symbol, any>;
679
677
 
680
- export declare const ContentSeparator: ForwardRefExoticComponent<ContentSeparatorProps & RefAttributes<HTMLDivElement>>;
678
+ export declare const ContentSeparator: MemoExoticComponent<ForwardRefExoticComponent<ContentSeparatorProps & RefAttributes<HTMLDivElement>>>;
681
679
 
682
680
  declare type ContentSeparatorProps = {
683
681
  thickness?: number | string;
@@ -837,7 +835,7 @@ export declare function dRequired(): ComponentPropertyMetadata;
837
835
 
838
836
  export declare const DropdownMenu: default_2.ForwardRefExoticComponent<Omit<ThemedDropdownMenuProps, "ref"> & default_2.RefAttributes<HTMLButtonElement>>;
839
837
 
840
- declare const DropdownMenu_2: ForwardRefExoticComponent<DropdownMenuProps & RefAttributes<HTMLButtonElement>>;
838
+ declare const DropdownMenu_2: MemoExoticComponent<ForwardRefExoticComponent<DropdownMenuProps & RefAttributes<HTMLButtonElement>>>;
841
839
 
842
840
  declare type DropdownMenuProps = {
843
841
  triggerTemplate?: ReactNode;
@@ -1216,7 +1214,7 @@ declare interface hasPropCondition extends ConditionBase {
1216
1214
 
1217
1215
  export declare const Heading: default_2.ForwardRefExoticComponent<Omit<ThemedHeadingProps, "ref"> & default_2.RefAttributes<HTMLHeadingElement>>;
1218
1216
 
1219
- declare const Heading_2: default_2.ForwardRefExoticComponent<Omit<HeadingProps, "ref"> & default_2.RefAttributes<HTMLHeadingElement>>;
1217
+ declare const Heading_2: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<HeadingProps, "ref"> & default_2.RefAttributes<HTMLHeadingElement>>>;
1220
1218
 
1221
1219
  declare type HeadingLevel = typeof headingLevels[number];
1222
1220
 
@@ -1297,6 +1295,7 @@ declare interface IconBaseProps extends default_2.SVGAttributes<SVGElement> {
1297
1295
  style?: CSSProperties;
1298
1296
  className?: string;
1299
1297
  tabIndex?: number;
1298
+ onClick?: default_2.MouseEventHandler<any>;
1300
1299
  onKeyDown?: default_2.KeyboardEventHandler<any>;
1301
1300
  }
1302
1301
 
@@ -1309,7 +1308,6 @@ declare type IDENTIFIER = typeof T_IDENTIFIER;
1309
1308
  declare interface Identifier extends ExpressionBase {
1310
1309
  type: IDENTIFIER;
1311
1310
  name: string;
1312
- isGlobal?: boolean;
1313
1311
  }
1314
1312
 
1315
1313
  declare type IF_STATEMENT = typeof T_IF_STATEMENT;
@@ -1333,9 +1331,9 @@ declare const Image_2: default_2.ForwardRefExoticComponent<Omit<{
1333
1331
  animation?: object;
1334
1332
  inline?: boolean;
1335
1333
  grayscale?: boolean;
1336
- } & Pick<default_2.HTMLAttributes<HTMLImageElement>, "onClick"> & default_2.RefAttributes<unknown>, "ref"> & {
1334
+ } & Pick<default_2.HTMLAttributes<HTMLImageElement>, "onClick"> & default_2.RefAttributes<HTMLImageElement>, "ref"> & {
1337
1335
  classes?: Record<string, string>;
1338
- } & default_2.RefAttributes<unknown>>;
1336
+ } & default_2.RefAttributes<HTMLImageElement>>;
1339
1337
  export { Image_2 as Image }
1340
1338
 
1341
1339
  declare type IMPORT_DECLARATION = typeof T_IMPORT_DECLARATION;
@@ -1401,7 +1399,7 @@ declare interface LetStatement extends ScripNodeBase {
1401
1399
 
1402
1400
  export declare const LinkNative: default_2.ForwardRefExoticComponent<Omit<ThemedLinkNativeProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
1403
1401
 
1404
- declare const LinkNative_2: ForwardRefExoticComponent< {
1402
+ declare const LinkNative_2: MemoExoticComponent<ForwardRefExoticComponent< {
1405
1403
  to: string | {
1406
1404
  pathname: string;
1407
1405
  queryParams?: Record<string, any>;
@@ -1423,7 +1421,7 @@ preserveLinebreaks?: boolean;
1423
1421
  ellipses?: boolean;
1424
1422
  overflowMode?: OverflowMode;
1425
1423
  breakMode?: BreakMode;
1426
- } & Partial<Pick<HTMLAnchorElement, "type" | "target" | "rel" | "download" | "referrerPolicy" | "ping" | "hreflang">> & RefAttributes<HTMLDivElement>>;
1424
+ } & Partial<Pick<HTMLAnchorElement, "type" | "rel" | "target" | "download" | "referrerPolicy" | "ping" | "hreflang">> & RefAttributes<HTMLDivElement>>>;
1427
1425
 
1428
1426
  declare type LITERAL = typeof T_LITERAL;
1429
1427
 
@@ -1452,7 +1450,7 @@ declare type LoggedInUserDto = {
1452
1450
 
1453
1451
  declare type LogInteractionFn = (interaction: string, detail?: InteractionDetail) => void;
1454
1452
 
1455
- export declare const Logo: ForwardRefExoticComponent<LogoProps & RefAttributes<HTMLImageElement>>;
1453
+ export declare const Logo: MemoExoticComponent<ForwardRefExoticComponent<LogoProps & RefAttributes<HTMLImageElement>>>;
1456
1454
 
1457
1455
  declare type LogoProps = {
1458
1456
  alt?: string;
@@ -1545,7 +1543,7 @@ declare type MemoizedItemProps = {
1545
1543
 
1546
1544
  export declare const MenuItem: default_2.ForwardRefExoticComponent<Omit<ThemedMenuItemProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
1547
1545
 
1548
- declare const MenuItem_2: ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & RefAttributes<unknown>>;
1546
+ declare const MenuItem_2: MemoExoticComponent<ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & RefAttributes<unknown>>>;
1549
1547
 
1550
1548
  declare type MenuItemProps = {
1551
1549
  icon?: ReactNode;
@@ -1570,14 +1568,41 @@ declare type Message = ValueOrFunction<Renderable, Toast>;
1570
1568
  */
1571
1569
  declare type ModuleErrors = Record<string, ScriptParserErrorMessage[]>;
1572
1570
 
1573
- export declare function NavPanelCollapseButton({ icon, iconCollapsed, "aria-label": ariaLabel, "aria-labelCollapsed": ariaLabelCollapsed, }: {
1571
+ export declare interface NavHierarchyNode {
1572
+ /** The type of navigation node - either a clickable link or a grouping container */
1573
+ type: "NavLink" | "NavGroup";
1574
+ /** The display label/text for this navigation item */
1575
+ label: string;
1576
+ /** The URL/route path for navigation (present for NavLink and optional for NavGroup) */
1577
+ to?: string;
1578
+ /** Child navigation nodes nested under this node (only present for NavGroup types) */
1579
+ children?: NavHierarchyNode[];
1580
+ /** Optional icon name associated with this navigation item */
1581
+ icon?: string;
1582
+ /** Reference to the immediate parent node in the hierarchy (undefined for root-level nodes) */
1583
+ parent?: NavHierarchyNode;
1584
+ /** Array of ancestor nodes from root to this node, excluding this node itself (empty for root-level nodes) */
1585
+ pathSegments?: NavHierarchyNode[];
1586
+ /** Reference to the previous NavLink in the flattened navigation order */
1587
+ prevLink?: NavHierarchyNode;
1588
+ /** Reference to the next NavLink in the flattened navigation order */
1589
+ nextLink?: NavHierarchyNode;
1590
+ /** True if this is the first NavLink within its immediate parent container */
1591
+ firstLink?: boolean;
1592
+ /** True if this is the last NavLink within its immediate parent container */
1593
+ lastLink?: boolean;
1594
+ }
1595
+
1596
+ export declare const NavPanelCollapseButton: NamedExoticComponent<NavPanelCollapseButtonProps>;
1597
+
1598
+ declare type NavPanelCollapseButtonProps = {
1574
1599
  icon?: string;
1575
1600
  iconCollapsed?: string;
1576
1601
  "aria-label"?: string;
1577
1602
  "aria-labelCollapsed"?: string;
1578
- }): JSX_2.Element;
1603
+ };
1579
1604
 
1580
- export declare function NestedApp({ api, app, components, config, activeTheme, activeTone, height, style, refreshVersion, withSplashScreen, className, }: NestedAppProps): JSX_2.Element;
1605
+ export declare const NestedApp: NamedExoticComponent<NestedAppProps>;
1581
1606
 
1582
1607
  declare type NestedAppProps = {
1583
1608
  api?: any;
@@ -1694,6 +1719,8 @@ declare type ParserResult = {
1694
1719
  */
1695
1720
  export declare function parseScssVar(scssStr: any): any;
1696
1721
 
1722
+ export declare const Part: NamedExoticComponent<Props_4>;
1723
+
1697
1724
  declare type POSTFIX_OP_EXPRESSION = typeof T_POSTFIX_OP_EXPRESSION;
1698
1725
 
1699
1726
  declare interface PostfixOpExpression extends ExpressionBase {
@@ -1751,27 +1778,6 @@ declare interface Props {
1751
1778
  }
1752
1779
 
1753
1780
  declare type Props_2 = {
1754
- children: ReactNode;
1755
- orientation?: string;
1756
- uid?: string;
1757
- horizontalAlignment?: string;
1758
- verticalAlignment?: string;
1759
- style?: CSSProperties;
1760
- className?: string;
1761
- classes?: Record<string, string>;
1762
- reverse?: boolean;
1763
- hoverContainer?: boolean;
1764
- visibleOnHover?: boolean;
1765
- scrollStyle?: ScrollStyle;
1766
- showScrollerFade?: boolean;
1767
- onClick?: any;
1768
- onContextMenu?: any;
1769
- onMount?: any;
1770
- desktopOnly?: boolean;
1771
- registerComponentApi?: (api: any) => void;
1772
- };
1773
-
1774
- declare type Props_3 = {
1775
1781
  interceptor?: ApiInterceptorDefinition;
1776
1782
  children: ReactNode;
1777
1783
  parentInterceptorContext?: IApiInterceptorContext;
@@ -1787,7 +1793,7 @@ declare type Props_3 = {
1787
1793
  * - Start/end adornments (icons and text)
1788
1794
  * - Password visibility toggle option
1789
1795
  */
1790
- declare type Props_4 = {
1796
+ declare type Props_3 = {
1791
1797
  id?: string;
1792
1798
  type?: "text" | "password" | "search";
1793
1799
  value?: string;
@@ -1835,6 +1841,11 @@ declare type Props_4 = {
1835
1841
  invalidMessages?: string[];
1836
1842
  };
1837
1843
 
1844
+ declare type Props_4 = {
1845
+ children: ReactNode;
1846
+ partId?: string;
1847
+ };
1848
+
1838
1849
  declare type Props_5 = {
1839
1850
  id?: string;
1840
1851
  isRoot?: boolean;
@@ -2003,22 +2014,14 @@ declare const sizeValues: readonly ["xs", "sm", "md", "lg", "xl"];
2003
2014
 
2004
2015
  export declare const Spinner: default_2.ForwardRefExoticComponent<Omit<ThemedSpinnerProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2005
2016
 
2006
- declare const Spinner_2: ForwardRefExoticComponent<SpinnerProps & RefAttributes<HTMLDivElement>>;
2007
-
2008
- declare type SpinnerProps = {
2009
- delay?: number;
2010
- fullScreen?: boolean;
2011
- style?: CSSProperties;
2012
- classes?: Record<string, string>;
2013
- className?: string;
2014
- };
2015
-
2016
- export declare const Splitter: ({ initialPrimarySize, minPrimarySize, maxPrimarySize, orientation, children, style, className, classes, swapped, floating, splitterTemplate, resize, visibleChildCount, ...rest }: SplitterProps) => JSX_2.Element;
2017
+ declare const Spinner_2: MemoExoticComponent<ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
2018
+ delay?: number;
2019
+ fullScreen?: boolean;
2020
+ classes?: Record<string, string>;
2021
+ } & RefAttributes<HTMLDivElement>>>;
2017
2022
 
2018
- declare type SplitterProps = {
2019
- children: default_2.ReactNode[] | default_2.ReactNode;
2020
- style?: default_2.CSSProperties;
2021
- className?: string;
2023
+ export declare const Splitter: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLDivElement>, "children"> & {
2024
+ children?: default_2.ReactNode;
2022
2025
  classes?: Record<string, string>;
2023
2026
  splitterTemplate?: default_2.ReactNode;
2024
2027
  orientation?: OrientationOptions;
@@ -2029,7 +2032,7 @@ declare type SplitterProps = {
2029
2032
  minPrimarySize?: string;
2030
2033
  maxPrimarySize?: string;
2031
2034
  visibleChildCount?: number;
2032
- };
2035
+ } & default_2.RefAttributes<HTMLDivElement>>>;
2033
2036
 
2034
2037
  declare type SPREAD_EXPRESSION = typeof T_SPREAD_EXPRESSION;
2035
2038
 
@@ -2040,7 +2043,23 @@ declare interface SpreadExpression extends ExpressionBase {
2040
2043
 
2041
2044
  export declare const Stack: default_2.ForwardRefExoticComponent<Omit<ThemedStackProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2042
2045
 
2043
- declare const Stack_2: ForwardRefExoticComponent<Props_2 & RefAttributes<any>>;
2046
+ declare const Stack_2: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<default_2.HTMLAttributes<HTMLDivElement>, "onClick" | "onContextMenu"> & {
2047
+ orientation?: string;
2048
+ uid?: string;
2049
+ horizontalAlignment?: string;
2050
+ verticalAlignment?: string;
2051
+ classes?: Record<string, string>;
2052
+ reverse?: boolean;
2053
+ hoverContainer?: boolean;
2054
+ visibleOnHover?: boolean;
2055
+ scrollStyle?: ScrollStyle;
2056
+ showScrollerFade?: boolean;
2057
+ onClick?: AsyncFunction;
2058
+ onContextMenu?: AsyncFunction;
2059
+ onMount?: AsyncFunction;
2060
+ desktopOnly?: boolean;
2061
+ registerComponentApi?: (api: any) => void;
2062
+ } & default_2.RefAttributes<HTMLDivElement>>>;
2044
2063
 
2045
2064
  /**
2046
2065
  * This React component represents a standalone app that implements a web
@@ -2324,9 +2343,7 @@ declare type TableDescriptor = {
2324
2343
  indexes?: Array<string>;
2325
2344
  };
2326
2345
 
2327
- export declare const TableOfContents: default_2.ForwardRefExoticComponent<Omit<{
2328
- style?: default_2.CSSProperties;
2329
- className?: string;
2346
+ export declare const TableOfContents: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLElement>, "onContextMenu"> & {
2330
2347
  smoothScrolling?: boolean;
2331
2348
  maxHeadingLevel?: number;
2332
2349
  omitH1?: boolean;
@@ -2335,7 +2352,7 @@ export declare const TableOfContents: default_2.ForwardRefExoticComponent<Omit<{
2335
2352
  showScrollerFade?: boolean;
2336
2353
  } & default_2.RefAttributes<HTMLDivElement>, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2337
2354
 
2338
- export declare const Tabs: default_2.ForwardRefExoticComponent<Omit<{
2355
+ export declare const Tabs: default_2.ForwardRefExoticComponent<Omit<Omit<default_2.HTMLAttributes<HTMLDivElement>, "onContextMenu"> & {
2339
2356
  id?: string;
2340
2357
  activeTab?: number;
2341
2358
  orientation?: "horizontal" | "vertical";
@@ -2347,10 +2364,7 @@ export declare const Tabs: default_2.ForwardRefExoticComponent<Omit<{
2347
2364
  label: string;
2348
2365
  isActive: boolean;
2349
2366
  }) => default_2.ReactNode;
2350
- style?: default_2.CSSProperties;
2351
- children?: default_2.ReactNode;
2352
2367
  registerComponentApi?: RegisterComponentApiFn_2;
2353
- className?: string;
2354
2368
  classes?: Record<string, string>;
2355
2369
  distributeEvenly?: boolean;
2356
2370
  onDidChange?: (index: number, id: string, label: string) => void;
@@ -2369,23 +2383,20 @@ declare interface TemplateLiteralExpression extends ExpressionBase {
2369
2383
  declare const Text_2: default_2.ForwardRefExoticComponent<Omit<ThemedTextProps, "ref"> & default_2.RefAttributes<HTMLElement>>;
2370
2384
  export { Text_2 as Text }
2371
2385
 
2372
- declare const Text_3: default_2.ForwardRefExoticComponent<Omit<TextProps, "ref"> & default_2.RefAttributes<unknown>>;
2386
+ declare const Text_3: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Omit<TextProps, "ref"> & default_2.RefAttributes<HTMLElement>>>;
2373
2387
 
2374
2388
  export declare const TextBox: default_2.ForwardRefExoticComponent<Omit<ThemedTextBoxProps, "ref"> & default_2.RefAttributes<HTMLDivElement>>;
2375
2389
 
2376
- declare const TextBox_2: default_2.ForwardRefExoticComponent<Props_4 & default_2.RefAttributes<HTMLDivElement>>;
2390
+ declare const TextBox_2: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<Props_3 & default_2.RefAttributes<HTMLDivElement>>>;
2377
2391
 
2378
- declare type TextProps = {
2392
+ declare type TextProps = Omit<default_2.HTMLAttributes<HTMLElement>, "onContextMenu"> & {
2379
2393
  uid?: string;
2380
- children?: default_2.ReactNode;
2381
2394
  variant?: TextVariant;
2382
2395
  maxLines?: number;
2383
2396
  preserveLinebreaks?: boolean;
2384
2397
  ellipses?: boolean;
2385
2398
  overflowMode?: OverflowMode;
2386
2399
  breakMode?: BreakMode;
2387
- style?: CSSProperties;
2388
- className?: string;
2389
2400
  classes?: Record<string, string>;
2390
2401
  onContextMenu?: any;
2391
2402
  registerComponentApi?: RegisterComponentApiFn;
@@ -2548,23 +2559,23 @@ declare enum TokenType {
2548
2559
  SignedShiftRight = 55,
2549
2560
  Dot = 56,
2550
2561
  Spread = 57,
2551
- Global = 58,
2552
- Backtick = 59,
2553
- DollarLBrace = 60,
2554
- Arrow = 61,
2555
- DecimalLiteral = 62,
2556
- HexadecimalLiteral = 63,
2557
- BinaryLiteral = 64,
2558
- RealLiteral = 65,
2559
- StringLiteral = 66,
2560
- Infinity = 67,
2561
- NaN = 68,
2562
- True = 69,
2563
- False = 70,
2564
- Typeof = 71,
2565
- Null = 72,
2566
- Undefined = 73,
2567
- In = 74,
2562
+ Backtick = 58,
2563
+ DollarLBrace = 59,
2564
+ Arrow = 60,
2565
+ DecimalLiteral = 61,
2566
+ HexadecimalLiteral = 62,
2567
+ BinaryLiteral = 63,
2568
+ RealLiteral = 64,
2569
+ StringLiteral = 65,
2570
+ Infinity = 66,
2571
+ NaN = 67,
2572
+ True = 68,
2573
+ False = 69,
2574
+ Typeof = 70,
2575
+ Null = 71,
2576
+ Undefined = 72,
2577
+ In = 73,
2578
+ Instanceof = 74,
2568
2579
  Let = 75,
2569
2580
  Const = 76,
2570
2581
  Var = 77,
@@ -2592,49 +2603,41 @@ declare enum TokenType {
2592
2603
  From = 99
2593
2604
  }
2594
2605
 
2595
- export declare function ToneChangerButton({ lightToDarkIcon, darkToLightIcon, onClick, }: {
2596
- lightToDarkIcon?: string;
2597
- darkToLightIcon?: string;
2598
- onClick?: (...args: any[]) => void;
2599
- }): JSX_2.Element;
2606
+ export declare const ToneChangerButton: NamedExoticComponent< {
2607
+ lightToDarkIcon?: string;
2608
+ darkToLightIcon?: string;
2609
+ onClick?: (tone: string) => void;
2610
+ }>;
2600
2611
 
2601
- export declare const ToneSwitch: ForwardRefExoticComponent<ToneSwitchProps & RefAttributes<HTMLDivElement>>;
2612
+ export declare const ToneSwitch: MemoExoticComponent<ForwardRefExoticComponent<ToneSwitchProps & RefAttributes<HTMLDivElement>>>;
2602
2613
 
2603
2614
  declare type ToneSwitchProps = {
2604
2615
  iconLight?: string;
2605
2616
  iconDark?: string;
2606
2617
  className?: string;
2607
2618
  classes?: Record<string, string>;
2608
- onChange?: (tone: "light" | "dark") => void;
2619
+ onDidChange?: (tone: "light" | "dark") => void;
2609
2620
  };
2610
2621
 
2611
- export declare const Tooltip: ForwardRefExoticComponent<TooltipOptions & {
2612
- /**
2613
- * The open state of the tooltip externally controlled
2614
- */
2615
- open?: boolean;
2616
- /**
2617
- * The text content to display in the tooltip
2618
- */
2619
- text: string;
2620
- /**
2621
- * The markdown content to display in the tooltip
2622
- */
2623
- markdown?: string;
2624
- /**
2625
- * The template for the tooltip content
2626
- */
2627
- tooltipTemplate?: ReactNode;
2628
- /**
2629
- * The content that will trigger the tooltip (used when triggerRef is not provided)
2630
- */
2631
- children?: ReactNode;
2632
- /**
2633
- * Optional extra CSS class names to apply to the tooltip content element
2634
- */
2635
- className?: string;
2636
- classes?: Record<string, string>;
2637
- } & RefAttributes<HTMLDivElement>>;
2622
+ export declare const Tooltip: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<TooltipOptions & default_2.HTMLAttributes<HTMLDivElement> & {
2623
+ /**
2624
+ * The open state of the tooltip externally controlled
2625
+ */
2626
+ open?: boolean;
2627
+ /**
2628
+ * The text content to display in the tooltip
2629
+ */
2630
+ text: string;
2631
+ /**
2632
+ * The markdown content to display in the tooltip
2633
+ */
2634
+ markdown?: string;
2635
+ /**
2636
+ * The template for the tooltip content
2637
+ */
2638
+ tooltipTemplate?: default_2.ReactNode;
2639
+ classes?: Record<string, string>;
2640
+ } & default_2.RefAttributes<HTMLDivElement>>>;
2638
2641
 
2639
2642
  declare type TooltipOptions = {
2640
2643
  /**
@@ -2751,6 +2754,8 @@ declare interface UseEventOverload {
2751
2754
  <TF extends callbackType>(callback: TF): any;
2752
2755
  }
2753
2756
 
2757
+ export declare function useLinkInfo(): NavHierarchyNode | undefined;
2758
+
2754
2759
  export declare const useLogger: () => LogContextType;
2755
2760
 
2756
2761
  export declare function useOption(): OptionContextValue;
package/dist/lib/xmlui.js CHANGED
@@ -1,48 +1,49 @@
1
- import { a7, X, $, am, aC, aA, Y, al, ak, ag, aI, Z, ah, af, aq, ai, aD, aB, ap, ad, aK, aJ, aF, aE, a8, a0, _, S, aw, a, au, av, a2, aj, a3, ab, ac, ax, ao, ay, az, ae, aa, c, e, b, f, i, j, k, h, l, n, o, p, s, t, v, u, q, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, O, M, N, P, Q, R, T, a1, U, V, an, as, a4, at, a5, a6, aL, ar, W, a9, aG, aH } from "./index-WVT6bIgM.js";
2
- import { X as X2, q as q2, u as u2 } from "./xmlui-serializer-3MPLSsOp.js";
3
- import { h as h2, x as x2 } from "./xmlui-parser-Cs8kB0VK.js";
1
+ import { a7, X, $, an, aE, aC, Y, am, al, ah, aK, Z, ai, af, as, aj, aF, aD, ar, ad, aM, aL, ao, aH, aG, a8, a0, _, S, ay, a, aw, ax, a2, ak, a3, ab, ac, az, aq, aA, aB, ae, aa, c, e, b, f, i, j, k, h, l, n, o, p, s, t, v, u, q, w, x, y, z, A, B, C, D, E, F, G, H, I, J, K, L, O, M, N, P, Q, R, T, a1, U, V, ap, au, a4, av, a5, ag, a6, aN, at, W, a9, aI, aJ } from "./index-CznbWBUF.js";
2
+ import { X as X2, q as q2, u as u2 } from "./xmlui-serializer-C-Iuczzr.js";
3
+ import { j as j2, x as x2 } from "./xmlui-parser-CtU8O3Av.js";
4
4
  export {
5
5
  a7 as ApiInterceptorProvider,
6
6
  X as AppRoot,
7
7
  $ as Button,
8
- am as COMPONENT_PART_KEY,
9
- aC as ContentSeparator,
10
- aA as DropdownMenu,
8
+ an as COMPONENT_PART_KEY,
9
+ aE as ContentSeparator,
10
+ aC as DropdownMenu,
11
11
  Y as ErrorBoundary,
12
- al as FlowItemWrapper,
13
- ak as FlowLayout,
14
- ag as Heading,
15
- aI as HiddenOption,
12
+ am as FlowItemWrapper,
13
+ al as FlowLayout,
14
+ ah as Heading,
15
+ aK as HiddenOption,
16
16
  Z as Icon,
17
- ah as Image,
17
+ ai as Image,
18
18
  af as LinkNative,
19
- aq as Logo,
20
- ai as Markdown,
21
- aD as MemoizedItem,
22
- aB as MenuItem,
23
- ap as NavPanelCollapseButton,
19
+ as as Logo,
20
+ aj as Markdown,
21
+ aF as MemoizedItem,
22
+ aD as MenuItem,
23
+ ar as NavPanelCollapseButton,
24
24
  ad as NestedApp,
25
- aK as OptionContext,
26
- aJ as OptionTypeProvider,
27
- aF as SEARCH_CATEGORIES,
28
- aE as SEARCH_DEFAULT_CATEGORY,
25
+ aM as OptionContext,
26
+ aL as OptionTypeProvider,
27
+ ao as Part,
28
+ aH as SEARCH_CATEGORIES,
29
+ aG as SEARCH_DEFAULT_CATEGORY,
29
30
  a8 as Spinner,
30
31
  a0 as Splitter,
31
32
  _ as Stack,
32
33
  S as StandaloneApp,
33
- aw as StandaloneComponent,
34
+ ay as StandaloneComponent,
34
35
  a as StandaloneExtensionManager,
35
- au as StyleProvider,
36
- av as StyleRegistry,
36
+ aw as StyleProvider,
37
+ ax as StyleRegistry,
37
38
  a2 as TabItem,
38
- aj as TableOfContents,
39
+ ak as TableOfContents,
39
40
  a3 as Tabs,
40
41
  ab as Text,
41
42
  ac as TextBox,
42
- ax as Theme,
43
- ao as ToneChangerButton,
44
- ay as ToneSwitch,
45
- az as Tooltip,
43
+ az as Theme,
44
+ aq as ToneChangerButton,
45
+ aA as ToneSwitch,
46
+ aB as Tooltip,
46
47
  ae as VisuallyHidden,
47
48
  X2 as XmlUiHelper,
48
49
  aa as builtInThemes,
@@ -86,23 +87,24 @@ export {
86
87
  Q as dValidationStatus,
87
88
  R as dValue,
88
89
  T as dValueApi,
89
- h2 as errReportComponent,
90
+ j2 as errReportComponent,
90
91
  a1 as getColor,
91
92
  U as parseScssVar,
92
93
  V as startApp,
93
94
  q2 as toCssVar,
94
- an as useAppContext,
95
- as as useAppLayoutContext,
95
+ ap as useAppContext,
96
+ au as useAppLayoutContext,
96
97
  a4 as useColors,
97
- at as useComponentThemeClass,
98
+ av as useComponentThemeClass,
98
99
  a5 as useDevTools,
99
100
  u2 as useEvent,
101
+ ag as useLinkInfo,
100
102
  a6 as useLogger,
101
- aL as useOption,
102
- ar as useSearchContextContent,
103
+ aN as useOption,
104
+ at as useSearchContextContent,
103
105
  W as useTheme,
104
106
  a9 as useThemes,
105
- aG as wrapComponent,
106
- aH as wrapCompound,
107
+ aI as wrapComponent,
108
+ aJ as wrapCompound,
107
109
  x2 as xmlUiMarkupToComponent
108
110
  };