@xyd-js/framework 0.1.0-build.189
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/LICENSE +21 -0
- package/dist/FwSidebarItem-CFgVFKj-.d.ts +28 -0
- package/dist/hydration.d.ts +17 -0
- package/dist/hydration.js +415 -0
- package/dist/hydration.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +50 -0
- package/dist/index.js.map +1 -0
- package/dist/react.d.ts +100 -0
- package/dist/react.js +1367 -0
- package/dist/react.js.map +1 -0
- package/dist/surfaces-BCt6G97W.d.ts +24 -0
- package/package.json +59 -0
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import * as _xyd_js_core from '@xyd-js/core';
|
|
3
|
+
import { ComponentLike, Settings, Metadata, SidebarRoute, Segment } from '@xyd-js/core';
|
|
4
|
+
import { F as FwSidebarItemProps } from './FwSidebarItem-CFgVFKj-.js';
|
|
5
|
+
import { a as SurfaceTargetType, R as ROSurface, c as Surfaces } from './surfaces-BCt6G97W.js';
|
|
6
|
+
import { IBreadcrumb, ITOC, INavLinks } from '@xyd-js/ui';
|
|
7
|
+
|
|
8
|
+
declare function FwBanner(): React.JSX.Element | null;
|
|
9
|
+
|
|
10
|
+
declare function FwBreadcrumbs(): React.JSX.Element;
|
|
11
|
+
|
|
12
|
+
declare function FwCopyPage(): React.JSX.Element;
|
|
13
|
+
|
|
14
|
+
declare function FwJsonComponent(args: ComponentLike): string | React.JSX.Element | null;
|
|
15
|
+
|
|
16
|
+
declare function FwLink({ children, ...rest }: {
|
|
17
|
+
[x: string]: any;
|
|
18
|
+
children: any;
|
|
19
|
+
}): React.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare function FwLogo(): React.JSX.Element | null;
|
|
22
|
+
|
|
23
|
+
declare function FwNav(): React.JSX.Element;
|
|
24
|
+
declare namespace FwNav {
|
|
25
|
+
var DefaultItems: () => React.JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare function FwNavLinks(): React.JSX.Element | null;
|
|
29
|
+
|
|
30
|
+
interface FwSidebarProps {
|
|
31
|
+
}
|
|
32
|
+
declare function FwSidebar(props: FwSidebarProps): React.JSX.Element;
|
|
33
|
+
|
|
34
|
+
declare function FwSubNav(): React.JSX.Element | null;
|
|
35
|
+
|
|
36
|
+
declare function FwToc(): React.JSX.Element | null;
|
|
37
|
+
|
|
38
|
+
interface SurfaceContext {
|
|
39
|
+
surfaces?: ROSurface;
|
|
40
|
+
}
|
|
41
|
+
declare const SurfaceContext: React.Context<SurfaceContext>;
|
|
42
|
+
interface SurfaceProps {
|
|
43
|
+
target: SurfaceTargetType;
|
|
44
|
+
props?: any;
|
|
45
|
+
}
|
|
46
|
+
declare function Surface(props: SurfaceProps): React.JSX.Element | null;
|
|
47
|
+
|
|
48
|
+
interface FrameworkProps {
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
settings: Settings;
|
|
51
|
+
metadata: Metadata;
|
|
52
|
+
sidebarGroups: FwSidebarItemProps[];
|
|
53
|
+
surfaces: Surfaces;
|
|
54
|
+
components?: {
|
|
55
|
+
[componentName: string]: React.ComponentType<any>;
|
|
56
|
+
};
|
|
57
|
+
BannerContent: React.ComponentType<any>;
|
|
58
|
+
}
|
|
59
|
+
declare function Framework(props: FrameworkProps): React.JSX.Element;
|
|
60
|
+
interface FrameworkPageProps {
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
ContentComponent?: (props: {
|
|
63
|
+
components: any;
|
|
64
|
+
children: React.ReactNode;
|
|
65
|
+
}) => React.JSX.Element;
|
|
66
|
+
ContentOriginal?: (props: {
|
|
67
|
+
components: any;
|
|
68
|
+
children: React.ReactNode;
|
|
69
|
+
}) => React.JSX.Element;
|
|
70
|
+
metadata: Metadata;
|
|
71
|
+
breadcrumbs?: IBreadcrumb[];
|
|
72
|
+
rawPage?: string;
|
|
73
|
+
toc?: ITOC[];
|
|
74
|
+
navlinks?: INavLinks;
|
|
75
|
+
}
|
|
76
|
+
declare function FrameworkPage(props: FrameworkPageProps): React.JSX.Element;
|
|
77
|
+
declare function useSettings(): Readonly<Settings>;
|
|
78
|
+
declare function useMetadata(): Readonly<Metadata<void>>;
|
|
79
|
+
declare function useComponents(): Readonly<{
|
|
80
|
+
[componentName: string]: React.ComponentType<any>;
|
|
81
|
+
}> | undefined;
|
|
82
|
+
declare function useContentComponent(): (props: {
|
|
83
|
+
components: any;
|
|
84
|
+
children?: React.ReactNode;
|
|
85
|
+
}) => React.JSX.Element;
|
|
86
|
+
declare function useContentOriginal(): (props: {
|
|
87
|
+
components: any;
|
|
88
|
+
children?: React.ReactNode;
|
|
89
|
+
}) => React.JSX.Element;
|
|
90
|
+
declare function useAppearance(): _xyd_js_core.Appearance | undefined;
|
|
91
|
+
|
|
92
|
+
declare function useActivePage(match?: boolean): string;
|
|
93
|
+
|
|
94
|
+
declare function useActivePageRoute(match?: boolean): SidebarRoute | null;
|
|
95
|
+
|
|
96
|
+
declare function useActiveRoute(): _xyd_js_core.SidebarRoute | null;
|
|
97
|
+
|
|
98
|
+
declare function useMatchedSubNav(): Segment | null;
|
|
99
|
+
|
|
100
|
+
export { Framework, FrameworkPage, type FrameworkProps, FwBanner, FwBreadcrumbs, FwCopyPage, FwJsonComponent, FwLink, FwLogo, FwNav, FwNavLinks, FwSidebar, FwSidebarItemProps, FwSubNav, FwToc, Surface, SurfaceContext, useActivePage, useActivePageRoute, useActiveRoute, useAppearance, useComponents, useContentComponent, useContentOriginal, useMatchedSubNav, useMetadata, useSettings };
|