polen 0.11.0-next.10 → 0.11.0-next.12
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/build/api/api.d.ts +2 -1
- package/build/api/api.d.ts.map +1 -1
- package/build/api/api.js +5 -1
- package/build/api/api.js.map +1 -1
- package/build/api/iso/$$.d.ts +2 -0
- package/build/api/iso/$$.d.ts.map +1 -0
- package/build/api/iso/$$.js +2 -0
- package/build/api/iso/$$.js.map +1 -0
- package/build/api/iso/$.d.ts +2 -0
- package/build/api/iso/$.d.ts.map +1 -0
- package/build/api/iso/$.js +2 -0
- package/build/api/iso/$.js.map +1 -0
- package/build/api/iso/schema/$$.d.ts +5 -0
- package/build/api/iso/schema/$$.d.ts.map +1 -0
- package/build/api/iso/schema/$$.js +4 -0
- package/build/api/iso/schema/$$.js.map +1 -0
- package/build/api/iso/schema/$.d.ts +2 -0
- package/build/api/iso/schema/$.d.ts.map +1 -0
- package/build/api/iso/schema/$.js +2 -0
- package/build/api/iso/schema/$.js.map +1 -0
- package/build/api/iso/schema/constants.d.ts +25 -0
- package/build/api/iso/schema/constants.d.ts.map +1 -0
- package/build/api/iso/schema/constants.js +42 -0
- package/build/api/iso/schema/constants.js.map +1 -0
- package/build/api/iso/schema/routing.d.ts +56 -0
- package/build/api/iso/schema/routing.d.ts.map +1 -0
- package/build/api/iso/schema/routing.js +97 -0
- package/build/api/iso/schema/routing.js.map +1 -0
- package/build/api/iso/schema/validation.d.ts +32 -0
- package/build/api/iso/schema/validation.d.ts.map +1 -0
- package/build/api/iso/schema/validation.js +101 -0
- package/build/api/iso/schema/validation.js.map +1 -0
- package/build/api/iso.d.ts +2 -0
- package/build/api/iso.d.ts.map +1 -0
- package/build/api/iso.js +2 -0
- package/build/api/iso.js.map +1 -0
- package/build/api/schema/schema.d.ts +3 -25
- package/build/api/schema/schema.d.ts.map +1 -1
- package/build/api/schema/schema.js +5 -42
- package/build/api/schema/schema.js.map +1 -1
- package/build/api/vite/plugins/core.d.ts.map +1 -1
- package/build/api/vite/plugins/core.js +3 -6
- package/build/api/vite/plugins/core.js.map +1 -1
- package/build/template/components/ArgumentList.d.ts +3 -4
- package/build/template/components/ArgumentList.d.ts.map +1 -1
- package/build/template/components/ArgumentList.js.map +1 -1
- package/build/template/components/Changelog.js +2 -2
- package/build/template/components/Changelog.js.map +1 -1
- package/build/template/components/DeprecationReason.d.ts +2 -2
- package/build/template/components/DeprecationReason.d.ts.map +1 -1
- package/build/template/components/DeprecationReason.js.map +1 -1
- package/build/template/components/Description.d.ts +2 -2
- package/build/template/components/Description.d.ts.map +1 -1
- package/build/template/components/Description.js.map +1 -1
- package/build/template/components/Field.d.ts +3 -4
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/FieldListSection.d.ts +3 -4
- package/build/template/components/FieldListSection.d.ts.map +1 -1
- package/build/template/components/FieldListSection.js.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.js +32 -10
- package/build/template/components/GraphQLInteractive/lib/parser.js.map +1 -1
- package/build/template/components/HamburgerMenu.d.ts +1 -0
- package/build/template/components/HamburgerMenu.d.ts.map +1 -1
- package/build/template/components/HamburgerMenu.js +2 -2
- package/build/template/components/HamburgerMenu.js.map +1 -1
- package/build/template/components/MissingSchema.d.ts +2 -1
- package/build/template/components/MissingSchema.d.ts.map +1 -1
- package/build/template/components/MissingSchema.js.map +1 -1
- package/build/template/components/ReferenceLink.d.ts +9 -11
- package/build/template/components/ReferenceLink.d.ts.map +1 -1
- package/build/template/components/ReferenceLink.js +2 -4
- package/build/template/components/ReferenceLink.js.map +1 -1
- package/build/template/components/ToastContainer.d.ts +3 -0
- package/build/template/components/ToastContainer.d.ts.map +1 -0
- package/build/template/components/ToastContainer.js +44 -0
- package/build/template/components/ToastContainer.js.map +1 -0
- package/build/template/components/ToastItem.d.ts +7 -0
- package/build/template/components/ToastItem.d.ts.map +1 -0
- package/build/template/components/ToastItem.js +48 -0
- package/build/template/components/ToastItem.js.map +1 -0
- package/build/template/components/TypeAnnotation.d.ts +4 -5
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/VersionPicker.d.ts +8 -0
- package/build/template/components/VersionPicker.d.ts.map +1 -0
- package/build/template/components/VersionPicker.js +66 -0
- package/build/template/components/VersionPicker.js.map +1 -0
- package/build/template/components/sidebar/Sidebar.d.ts +3 -2
- package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
- package/build/template/components/sidebar/Sidebar.js +7 -6
- package/build/template/components/sidebar/Sidebar.js.map +1 -1
- package/build/template/components/sidebar/SidebarContext.d.ts +6 -0
- package/build/template/components/sidebar/SidebarContext.d.ts.map +1 -0
- package/build/template/components/sidebar/SidebarContext.js +3 -0
- package/build/template/components/sidebar/SidebarContext.js.map +1 -0
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.js +11 -4
- package/build/template/components/sidebar/SidebarItem.js.map +1 -1
- package/build/template/hooks/useReferencePath.d.ts +9 -0
- package/build/template/hooks/useReferencePath.d.ts.map +1 -0
- package/build/template/hooks/useReferencePath.js +18 -0
- package/build/template/hooks/useReferencePath.js.map +1 -0
- package/build/template/hooks/useVersionPath.d.ts.map +1 -1
- package/build/template/hooks/useVersionPath.js +3 -1
- package/build/template/hooks/useVersionPath.js.map +1 -1
- package/build/template/layouts/SidebarLayout.d.ts +3 -2
- package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
- package/build/template/layouts/SidebarLayout.js +2 -2
- package/build/template/layouts/SidebarLayout.js.map +1 -1
- package/build/template/routes/reference.d.ts +24 -8
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +52 -61
- package/build/template/routes/reference.js.map +1 -1
- package/build/template/routes/root.d.ts +1 -0
- package/build/template/routes/root.d.ts.map +1 -1
- package/build/template/routes/root.js +16 -5
- package/build/template/routes/root.js.map +1 -1
- package/build/template/server/ssg/get-route-paths.d.ts.map +1 -1
- package/build/template/server/ssg/get-route-paths.js +47 -14
- package/build/template/server/ssg/get-route-paths.js.map +1 -1
- package/build/template/stores/$$.d.ts +13 -0
- package/build/template/stores/$$.d.ts.map +1 -0
- package/build/template/stores/$$.js +5 -0
- package/build/template/stores/$$.js.map +1 -0
- package/build/template/stores/$.d.ts +2 -0
- package/build/template/stores/$.d.ts.map +1 -0
- package/build/template/stores/$.js +2 -0
- package/build/template/stores/$.js.map +1 -0
- package/build/template/stores/schema.d.ts +40 -0
- package/build/template/stores/schema.d.ts.map +1 -0
- package/build/template/stores/schema.js +36 -0
- package/build/template/stores/schema.js.map +1 -0
- package/build/template/stores/toast.d.ts +103 -0
- package/build/template/stores/toast.d.ts.map +1 -0
- package/build/template/stores/toast.js +105 -0
- package/build/template/stores/toast.js.map +1 -0
- package/build/template/utils/try-with-toast.d.ts +9 -0
- package/build/template/utils/try-with-toast.d.ts.map +1 -0
- package/build/template/utils/try-with-toast.js +37 -0
- package/build/template/utils/try-with-toast.js.map +1 -0
- package/package.json +5 -1
- package/src/api/api.ts +7 -1
- package/src/api/iso/$$.ts +1 -0
- package/src/api/iso/$.ts +1 -0
- package/src/api/iso/schema/$$.ts +6 -0
- package/src/api/iso/schema/$.ts +1 -0
- package/src/api/iso/schema/constants.ts +49 -0
- package/src/api/iso/schema/routing.ts +142 -0
- package/src/api/iso/schema/validation.ts +136 -0
- package/src/api/iso.ts +1 -0
- package/src/api/schema/schema.ts +6 -53
- package/src/api/vite/plugins/core.ts +3 -6
- package/src/template/components/ArgumentList.tsx +2 -6
- package/src/template/components/Changelog.tsx +2 -2
- package/src/template/components/DeprecationReason.tsx +2 -2
- package/src/template/components/Description.tsx +2 -2
- package/src/template/components/Field.tsx +2 -6
- package/src/template/components/FieldListSection.tsx +2 -6
- package/src/template/components/GraphQLInteractive/lib/parser.ts +32 -16
- package/src/template/components/HamburgerMenu.tsx +3 -1
- package/src/template/components/MissingSchema.tsx +3 -1
- package/src/template/components/ReferenceLink.tsx +16 -15
- package/src/template/components/ToastContainer.tsx +67 -0
- package/src/template/components/ToastItem.tsx +119 -0
- package/src/template/components/TypeAnnotation.tsx +2 -6
- package/src/template/components/VersionPicker.tsx +94 -0
- package/src/template/components/sidebar/Sidebar.tsx +20 -16
- package/src/template/components/sidebar/SidebarContext.tsx +7 -0
- package/src/template/components/sidebar/SidebarItem.tsx +11 -4
- package/src/template/hooks/useReferencePath.ts +20 -0
- package/src/template/hooks/useVersionPath.ts +3 -1
- package/src/template/layouts/SidebarLayout.tsx +5 -3
- package/src/template/routes/reference.tsx +56 -73
- package/src/template/routes/root.tsx +29 -6
- package/src/template/server/ssg/get-route-paths.test.ts +13 -0
- package/src/template/server/ssg/get-route-paths.ts +47 -14
- package/src/template/stores/$$.ts +15 -0
- package/src/template/stores/$.ts +1 -0
- package/src/template/stores/schema.ts +52 -0
- package/src/template/stores/toast.ts +153 -0
- package/src/template/utils/try-with-toast.ts +41 -0
- package/build/template/components/VersionSelector.d.ts +0 -7
- package/build/template/components/VersionSelector.d.ts.map +0 -1
- package/build/template/components/VersionSelector.js +0 -30
- package/build/template/components/VersionSelector.js.map +0 -1
- package/build/template/lib/schema-utils/constants.d.ts +0 -5
- package/build/template/lib/schema-utils/constants.d.ts.map +0 -1
- package/build/template/lib/schema-utils/constants.js +0 -5
- package/build/template/lib/schema-utils/constants.js.map +0 -1
- package/src/template/components/VersionSelector.tsx +0 -50
- package/src/template/lib/schema-utils/constants.ts +0 -4
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ToastContainer.js","sourceRoot":"","sources":["../../../src/template/components/ToastContainer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,CAAC,MAAM,cAAc,GAAa,GAAG,EAAE;IAC3C,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAE5C,OAAO,CACL,8BACE,0BACG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA+BA,GACK,EACR,KAAC,GAAG,IACF,QAAQ,EAAC,OAAO,EAChB,MAAM,EAAC,GAAG,EACV,KAAK,EAAC,GAAG,EACT,CAAC,EAAC,GAAG,EACL,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI;oBACZ,aAAa,EAAE,MAAM;iBACtB,YAED,KAAC,IAAI,IACH,SAAS,EAAC,QAAQ,EAClB,GAAG,EAAC,GAAG,EACP,KAAK,EAAC,KAAK,EACX,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,YAE/B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,KAAC,SAAS,IAAgB,KAAK,EAAE,KAAK,IAAtB,KAAK,CAAC,EAAE,CAAkB,CAAC,GAChE,GACH,IACL,CACJ,CAAA;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { React } from '#dep/react/index';
|
2
|
+
import type { ReadonlyDeep } from 'type-fest';
|
3
|
+
import { Stores } from '../stores/$.js';
|
4
|
+
export declare const ToastItem: React.FC<{
|
5
|
+
toast: ReadonlyDeep<Stores.Toast.Toast>;
|
6
|
+
}>;
|
7
|
+
//# sourceMappingURL=ToastItem.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ToastItem.d.ts","sourceRoot":"","sources":["../../../src/template/components/ToastItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAU7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAwBvC,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;CAAE,CAmF3E,CAAA"}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { CheckCircledIcon, Cross2Icon, CrossCircledIcon, ExclamationTriangleIcon, InfoCircledIcon, } from '@radix-ui/react-icons';
|
3
|
+
import { Box, Button, Card, Flex, IconButton, Text } from '@radix-ui/themes';
|
4
|
+
import { Stores } from '../stores/$.js';
|
5
|
+
const toastVariants = {
|
6
|
+
info: {
|
7
|
+
icon: _jsx(InfoCircledIcon, {}),
|
8
|
+
color: 'blue',
|
9
|
+
},
|
10
|
+
success: {
|
11
|
+
icon: _jsx(CheckCircledIcon, {}),
|
12
|
+
color: 'green',
|
13
|
+
},
|
14
|
+
warning: {
|
15
|
+
icon: _jsx(ExclamationTriangleIcon, {}),
|
16
|
+
color: 'amber',
|
17
|
+
},
|
18
|
+
error: {
|
19
|
+
icon: _jsx(CrossCircledIcon, {}),
|
20
|
+
color: 'red',
|
21
|
+
},
|
22
|
+
};
|
23
|
+
export const ToastItem = ({ toast }) => {
|
24
|
+
const handleClose = () => Stores.toast.remove(toast.id);
|
25
|
+
const duration = toast.duration ?? 5000;
|
26
|
+
const showTimer = duration > 0;
|
27
|
+
const type = toast.type || 'info';
|
28
|
+
return (_jsxs(Card, { size: '2', style: {
|
29
|
+
animation: 'slideIn 0.2s ease-out',
|
30
|
+
position: 'relative',
|
31
|
+
}, children: [_jsxs(Flex, { gap: '3', align: 'start', maxWidth: '400px', children: [_jsx(Text, { as: 'div', size: '4', color: toastVariants[type].color, children: toastVariants[type].icon }), _jsxs(Box, { style: { flex: 1 }, children: [_jsxs(Flex, { align: 'baseline', gap: '2', wrap: 'wrap', children: [_jsx(Text, { weight: 'medium', size: '2', children: toast.message }), toast.actions.map((action) => (_jsx(Button, { id: action.label, size: '1', variant: 'soft', onClick: () => {
|
32
|
+
action.onClick();
|
33
|
+
handleClose();
|
34
|
+
}, children: action.label })))] }), toast.description && (_jsx(Text, { size: '1', color: 'gray', mt: '1', style: { display: 'block' }, children: toast.description }))] }), _jsx(IconButton, { size: '1', variant: 'ghost', color: 'gray', onClick: handleClose, style: { flexShrink: 0 }, children: _jsx(Cross2Icon, {}) })] }), showTimer && (_jsx(Box, { style: {
|
35
|
+
position: 'absolute',
|
36
|
+
bottom: 0,
|
37
|
+
left: 0,
|
38
|
+
right: 0,
|
39
|
+
height: '2px',
|
40
|
+
backgroundColor: `var(--${toastVariants[toast.type || 'info'].color}-a3)`,
|
41
|
+
overflow: 'hidden',
|
42
|
+
}, children: _jsx(Box, { style: {
|
43
|
+
height: '100%',
|
44
|
+
backgroundColor: `var(--${toastVariants[toast.type || 'info'].color}-a6)`,
|
45
|
+
animation: `timerCountdown ${duration}ms linear forwards`,
|
46
|
+
} }) }))] }));
|
47
|
+
};
|
48
|
+
//# sourceMappingURL=ToastItem.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ToastItem.js","sourceRoot":"","sources":["../../../src/template/components/ToastItem.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,gBAAgB,EAChB,UAAU,EACV,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,GAChB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAG5E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC,MAAM,aAAa,GAAG;IACpB,IAAI,EAAE;QACJ,IAAI,EAAE,KAAC,eAAe,KAAG;QACzB,KAAK,EAAE,MAAM;KACd;IACD,OAAO,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D,GACD,GACE,CACP,IACI,CACR,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,10 +1,9 @@
|
|
1
|
+
import type { React } from '#dep/react/index';
|
1
2
|
import type { GraphQLType } from 'graphql';
|
2
|
-
import type { FC } from 'react';
|
3
|
-
export interface Props {
|
4
|
-
type: GraphQLType;
|
5
|
-
}
|
6
3
|
/**
|
7
4
|
* Renders a GraphQL type recursively, with links for named types
|
8
5
|
*/
|
9
|
-
export declare const TypeAnnotation: FC<
|
6
|
+
export declare const TypeAnnotation: React.FC<{
|
7
|
+
type: GraphQLType;
|
8
|
+
}>;
|
10
9
|
//# sourceMappingURL=TypeAnnotation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TypeAnnotation.d.ts","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"TypeAnnotation.d.ts","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAiD1D,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TypeAnnotation.js","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"TypeAnnotation.js","sourceRoot":"","sources":["../../../src/template/components/TypeAnnotation.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACjG,OAAO,EAAE,aAA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AED,2EAA2E;IAC3E,OAAO,KAAC,IAAI,cAAE,MAAM,CAAC,IAAI,CAAC,GAAQ,CAAA;AACpC,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VersionPicker.d.ts","sourceRoot":"","sources":["../../../src/template/components/VersionPicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAQ7C,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+EzC,CAAA"}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Api } from '#api/iso';
|
3
|
+
import { Select } from '@radix-ui/themes';
|
4
|
+
import { useNavigate } from 'react-router';
|
5
|
+
import { useReferencePath } from '../hooks/useReferencePath.js';
|
6
|
+
import { schemaSource } from '../sources/schema-source.js';
|
7
|
+
import { Stores } from '../stores/$.js';
|
8
|
+
import { tryWithToast } from '../utils/try-with-toast.js';
|
9
|
+
export const VersionPicker = ({ all, current }) => {
|
10
|
+
const navigate = useNavigate();
|
11
|
+
const currentPath = useReferencePath();
|
12
|
+
// Don't show selector if only one version
|
13
|
+
if (all.length <= 1) {
|
14
|
+
return null;
|
15
|
+
}
|
16
|
+
const handleVersionChange = async (newVersion) => {
|
17
|
+
const error = await tryWithToast(async () => {
|
18
|
+
// Check if current path exists in target version
|
19
|
+
const targetSchema = await schemaSource.get(newVersion);
|
20
|
+
// Find fallback path if needed
|
21
|
+
const fallbackPath = Api.Schema.Validation.findFallbackPath(targetSchema, currentPath);
|
22
|
+
// Get redirect description if path changed
|
23
|
+
const redirectDescription = Api.Schema.Validation.getRedirectDescription(targetSchema, currentPath, fallbackPath, newVersion);
|
24
|
+
// Create the new path
|
25
|
+
const newPath = Api.Schema.Routing.createReferencePath({
|
26
|
+
version: newVersion,
|
27
|
+
type: fallbackPath.type,
|
28
|
+
field: fallbackPath.field,
|
29
|
+
});
|
30
|
+
// Show toast notification if schema location redirect will occur
|
31
|
+
if (redirectDescription) {
|
32
|
+
Stores.Toast.store.info(redirectDescription, {
|
33
|
+
duration: 160_000,
|
34
|
+
actions: [
|
35
|
+
{
|
36
|
+
label: 'Go back',
|
37
|
+
onClick() {
|
38
|
+
navigate(-1);
|
39
|
+
},
|
40
|
+
},
|
41
|
+
{
|
42
|
+
label: 'View changelog',
|
43
|
+
onClick() {
|
44
|
+
// Navigate to changelog page
|
45
|
+
navigate('/changelog');
|
46
|
+
},
|
47
|
+
},
|
48
|
+
],
|
49
|
+
});
|
50
|
+
}
|
51
|
+
navigate(newPath);
|
52
|
+
}, 'Failed to switch version');
|
53
|
+
// Fallback logic if error occurred
|
54
|
+
if (error) {
|
55
|
+
// Fallback to simple navigation if schema loading fails
|
56
|
+
const newPath = Api.Schema.Routing.createReferencePath({
|
57
|
+
version: newVersion,
|
58
|
+
type: currentPath.type,
|
59
|
+
field: currentPath.field,
|
60
|
+
});
|
61
|
+
navigate(newPath);
|
62
|
+
}
|
63
|
+
};
|
64
|
+
return (_jsxs(Select.Root, { value: current, onValueChange: handleVersionChange, children: [_jsx(Select.Trigger, { children: current === Api.Schema.VERSION_LATEST ? `Latest` : current }), _jsx(Select.Content, { children: all.map(version => (_jsx(Select.Item, { value: version, children: version === Api.Schema.VERSION_LATEST ? `Latest` : version }, version))) })] }));
|
65
|
+
};
|
66
|
+
//# sourceMappingURL=VersionPicker.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"VersionPicker.js","sourceRoot":"","sources":["../../../src/template/components/VersionPicker.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,WAAW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O,IAD3C,OAAO,CAEX,CACf,CAAC,GACa,IACL,CACf,CAAA;AACH,CAAC,CAAA"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { Content } from '#api/content/$';
|
2
2
|
import type { BoxOwnProps, LayoutProps, MarginProps } from '@radix-ui/themes/props';
|
3
|
-
interface
|
3
|
+
interface Props extends LayoutProps, MarginProps, BoxOwnProps {
|
4
4
|
data: Content.Item[];
|
5
|
+
basePath?: string;
|
5
6
|
style?: React.CSSProperties;
|
6
7
|
}
|
7
|
-
export declare const Sidebar: ({ data, ...props }:
|
8
|
+
export declare const Sidebar: ({ data, basePath, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
8
9
|
export {};
|
9
10
|
//# sourceMappingURL=Sidebar.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAInF,UAAU,KAAM,SAAQ,WAAW,EAAE,WAAW,EAAE,WAAW;IAC3D,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED,eAAO,MAAM,OAAO,GAAI,8BAA8B,KAAK,4CAmB1D,CAAA"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
2
|
import { Box } from '@radix-ui/themes';
|
3
|
+
import { SidebarContext } from './SidebarContext.js';
|
3
4
|
import { Items } from './SidebarItem.js';
|
4
|
-
export const Sidebar = ({ data, ...props }) => {
|
5
|
-
return (_jsxs(Box, { "data-testid": 'sidebar', role: 'Sidebar', ...props, children: [_jsx("style", { children: `
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
export const Sidebar = ({ data, basePath, ...props }) => {
|
6
|
+
return (_jsx(SidebarContext.Provider, { value: { basePath }, children: _jsxs(Box, { "data-testid": 'sidebar', role: 'Sidebar', ...props, children: [_jsx("style", { children: `
|
7
|
+
div[role="Sidebar"] a:not([data-active]):hover {
|
8
|
+
background-color: var(--iris-2) !important;
|
9
|
+
}
|
10
|
+
` }), _jsx(Items, { items: data })] }) }));
|
10
11
|
};
|
11
12
|
//# sourceMappingURL=Sidebar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Sidebar.js","sourceRoot":"","sources":["../../../../src/template/components/sidebar/Sidebar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAEtC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;
|
1
|
+
{"version":3,"file":"Sidebar.js","sourceRoot":"","sources":["../../../../src/template/components/sidebar/Sidebar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAQxC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAS,EAAE,EAAE;IAC7D,OAAO,CACL,KAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,YAC1C,MAAC,GAAG,mBACU,SAAS,EACrB,IAAI,EAAC,SAAS,KACV,KAAK,aAET,0BACG;;;;WAIA,GACK,EACR,KAAC,KAAK,IAAC,KAAK,EAAE,IAAI,GAAI,IAClB,GACkB,CAC3B,CAAA;AACH,CAAC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SidebarContext.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarContext.tsx"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,cAAc,8CAAyC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SidebarContext.js","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAMrC,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAsB,EAAE,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;
|
1
|
+
{"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAQ7C,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;CAAE,CAWrD,CAAA;AAUD,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAA;CAAE,CAUjD,CAAA"}
|
@@ -1,8 +1,11 @@
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
2
|
+
import { Api } from '#api/iso';
|
2
3
|
import { Texts } from '#template/components/Texts/index';
|
3
4
|
import { Box, Flex } from '@radix-ui/themes';
|
5
|
+
import { useContext } from 'react';
|
4
6
|
import { useLocation } from 'react-router';
|
5
7
|
import { getPathActiveReport, Link } from '../Link.js';
|
8
|
+
import { SidebarContext } from './SidebarContext.js';
|
6
9
|
export const Items = ({ items }) => {
|
7
10
|
return (_jsx(Flex, { direction: 'column', gap: '2px', children: items.map((item, index) => (_jsx(Item, { item: item }, `${item.pathExp}-${index}`))) }));
|
8
11
|
};
|
@@ -31,9 +34,11 @@ export const Item = ({ item }) => {
|
|
31
34
|
//
|
32
35
|
const SBLink = ({ link }) => {
|
33
36
|
const location = useLocation();
|
37
|
+
const { basePath } = useContext(SidebarContext);
|
34
38
|
const currentPathExp = location.pathname;
|
35
|
-
const
|
36
|
-
|
39
|
+
const href = Api.Schema.Routing.joinSegmentsAndPaths(basePath, link.pathExp);
|
40
|
+
const active = getPathActiveReport(href, currentPathExp);
|
41
|
+
return (_jsx(Link, { role: 'Sidebar Link', color: active.is ? `iris` : `gray`, "data-testid": `sidebar-link-${link.pathExp}`, to: href, style: {
|
37
42
|
display: `block`,
|
38
43
|
textDecoration: `none`,
|
39
44
|
color: active.is ? `var(--accent-12)` : undefined,
|
@@ -65,8 +70,10 @@ const LinkedSection = ({ section }) => {
|
|
65
70
|
};
|
66
71
|
const SectionLink = ({ link }) => {
|
67
72
|
const location = useLocation();
|
68
|
-
const
|
69
|
-
|
73
|
+
const { basePath } = useContext(SidebarContext);
|
74
|
+
const href = Api.Schema.Routing.joinSegmentsAndPaths(basePath, link.pathExp);
|
75
|
+
const active = getPathActiveReport(href, location.pathname);
|
76
|
+
return (_jsx(Link, { role: 'Sidebar Link', to: href, color: active.is ? `iris` : `gray`, style: {
|
70
77
|
textDecoration: `none`,
|
71
78
|
color: active.is ? `var(--accent-12)` : undefined,
|
72
79
|
backgroundColor: active.isDirect ? `var(--accent-2)` : active.isDescendant ? `var(--accent-1)` : `transparent`,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SidebarItem.js","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"SidebarItem.js","sourceRoot":"","sources":["../../../../src/template/components/sidebar/SidebarItem.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AACxD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,MAAM,CAAC,MAAM,KAAK,GAAwC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACtE,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAC,KAAK,YAC/B,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAC1B,KAAC,IAAI,IAEH,IAAI,EAAE,IAAI,IADL,GAAG,IAAI,CAAC,OAAO,IAAI,KAAK,EAAE,CAE/B,CACH,CAAC,GACG,CACR,CAAA;AACH,CAAC,CAAA;AAED,EAAE;AACF,EAAE;AACF,EAAE;AACF,EAAE;AACF,2DAA2D;AAC3D,EAAE;AACF,EAAE;AAEF,MAAM,CAAC,MAAM,IAAI,GAAqC,CA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AAA;AACH,CAAC,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Api } from '#api/iso';
|
2
|
+
/**
|
3
|
+
* Hook that returns parsed reference path parameters
|
4
|
+
*
|
5
|
+
* @throws {Error} If not currently on a reference route
|
6
|
+
* @returns Parsed reference path object
|
7
|
+
*/
|
8
|
+
export declare const useReferencePath: () => Api.Schema.Validation.PathValidation;
|
9
|
+
//# sourceMappingURL=useReferencePath.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useReferencePath.d.ts","sourceRoot":"","sources":["../../../src/template/hooks/useReferencePath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAG9B;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,QAAO,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,cAUzD,CAAA"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Api } from '#api/iso';
|
2
|
+
import { useLocation, useParams } from 'react-router';
|
3
|
+
/**
|
4
|
+
* Hook that returns parsed reference path parameters
|
5
|
+
*
|
6
|
+
* @throws {Error} If not currently on a reference route
|
7
|
+
* @returns Parsed reference path object
|
8
|
+
*/
|
9
|
+
export const useReferencePath = () => {
|
10
|
+
const params = useParams();
|
11
|
+
const location = useLocation();
|
12
|
+
Api.Schema.Routing.assertReferenceRoute({
|
13
|
+
pathname: location.pathname,
|
14
|
+
params,
|
15
|
+
});
|
16
|
+
return params;
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=useReferencePath.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useReferencePath.js","sourceRoot":"","sources":["../../../src/template/hooks/useReferencePath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAErD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAyC,EAAE;IACzE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAE9B,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC;QACtC,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,MAAM;KACP,CAAC,CAAA;IAEF,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useVersionPath.d.ts","sourceRoot":"","sources":["../../../src/template/hooks/useVersionPath.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"useVersionPath.d.ts","sourceRoot":"","sources":["../../../src/template/hooks/useVersionPath.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,MAIjC,CAAA"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { Api } from '#api/iso';
|
1
2
|
import { useParams } from 'react-router';
|
2
3
|
/**
|
3
4
|
* Custom hook to generate version path for versioned routes
|
@@ -5,6 +6,7 @@ import { useParams } from 'react-router';
|
|
5
6
|
*/
|
6
7
|
export const useVersionPath = () => {
|
7
8
|
const params = useParams();
|
8
|
-
|
9
|
+
const version = params[`version`] || Api.Schema.VERSION_LATEST;
|
10
|
+
return Api.Schema.Routing.createReferenceVersionPath(version);
|
9
11
|
};
|
10
12
|
//# sourceMappingURL=useVersionPath.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useVersionPath.js","sourceRoot":"","sources":["../../../src/template/hooks/useVersionPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAW,EAAE;IACzC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,OAAO,MAAM,CAAC,SAAS,CAAC,
|
1
|
+
{"version":3,"file":"useVersionPath.js","sourceRoot":"","sources":["../../../src/template/hooks/useVersionPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAW,EAAE;IACzC,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA;IAC1B,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,cAAc,CAAA;IAC9D,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAA;AAC/D,CAAC,CAAA"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { Content } from '#api/content/$';
|
2
2
|
import type React from 'react';
|
3
|
-
interface
|
3
|
+
interface Props {
|
4
4
|
children: React.ReactNode;
|
5
5
|
sidebar: Content.Item[];
|
6
|
+
basePath?: string;
|
6
7
|
}
|
7
|
-
export declare const SidebarLayout: React.FC<
|
8
|
+
export declare const SidebarLayout: React.FC<Props>;
|
8
9
|
export {};
|
9
10
|
//# sourceMappingURL=SidebarLayout.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SidebarLayout.d.ts","sourceRoot":"","sources":["../../../src/template/layouts/SidebarLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,UAAU,
|
1
|
+
{"version":3,"file":"SidebarLayout.d.ts","sourceRoot":"","sources":["../../../src/template/layouts/SidebarLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuDzC,CAAA"}
|
@@ -4,7 +4,7 @@ import { useEffect, useState } from 'react';
|
|
4
4
|
import { useLocation } from 'react-router';
|
5
5
|
import { HamburgerMenu } from '../components/HamburgerMenu.js';
|
6
6
|
import { Sidebar } from '../components/sidebar/Sidebar.js';
|
7
|
-
export const SidebarLayout = ({ children, sidebar }) => {
|
7
|
+
export const SidebarLayout = ({ children, sidebar, basePath }) => {
|
8
8
|
const location = useLocation();
|
9
9
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
10
10
|
// Close mobile menu on route change
|
@@ -20,6 +20,6 @@ export const SidebarLayout = ({ children, sidebar }) => {
|
|
20
20
|
setMobileMenuOpen(!mobileMenuOpen);
|
21
21
|
}, onClose: () => {
|
22
22
|
setMobileMenuOpen(false);
|
23
|
-
}, sidebarData: sidebar }) })), isShowSidebar && (_jsx(Box, { display: { initial: `none`, xs: `none`, sm: `none`, md: `block` }, gridColumn: '1 / 3', gridRow: '1 / auto', children: _jsx(Sidebar, { data: sidebar }) })), _jsx(Box, { gridArea: 'content / content / auto / 8', children: children })] }));
|
23
|
+
}, sidebarData: sidebar, basePath: basePath }) })), isShowSidebar && (_jsx(Box, { display: { initial: `none`, xs: `none`, sm: `none`, md: `block` }, gridColumn: '1 / 3', gridRow: '1 / auto', children: _jsx(Sidebar, { data: sidebar, basePath: basePath }) })), _jsx(Box, { gridArea: 'content / content / auto / 8', children: children })] }));
|
24
24
|
};
|
25
25
|
//# sourceMappingURL=SidebarLayout.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SidebarLayout.js","sourceRoot":"","sources":["../../../src/template/layouts/SidebarLayout.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,IA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E,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAC5D,IAAI,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,aAGvC,aAAa,IAAI,CAChB,KAAC,GAAG,IAAC,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAC,GAAG,YACpD,KAAC,aAAa,IACZ,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,GAAG,EAAE;wBACb,iBAAiB,CAAC,CAAC,cAAc,CAAC,CAAA;oBACpC,CAAC,EACD,OAAO,EAAE,GAAG,EAAE;wBACZ,iBAAiB,CAAC,KAAK,CAAC,CAAA;oBAC1B,CAAC,EACD,WAAW,EAAE,OAAO,EACpB,QAAQ,EAAE,QAAQ,GAClB,GACE,CACP,EAGA,aAAa,IAAI,CAChB,KAAC,GAAG,IACF,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EACjE,UAAU,EAAC,OAAO,EAClB,OAAO,EAAC,UAAU,YAElB,KAAC,OAAO,IAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC1C,CACP,EAED,KAAC,GAAG,IAAC,QAAQ,EAAC,8BAA8B,YACzC,QAAQ,GACL,IACD,CACR,CAAA;AACH,CAAC,CAAA"}
|
@@ -5,25 +5,31 @@ export declare const loader: ({ params }: any) => Promise<{
|
|
5
5
|
availableVersions: string[];
|
6
6
|
}>;
|
7
7
|
/**
|
8
|
-
* Reference documentation
|
8
|
+
* Reference documentation routes using proper React Router patterns
|
9
|
+
* - Parent routes have no components (automatically render Outlet)
|
10
|
+
* - Leaf routes have components and loaders that always run fresh
|
11
|
+
* - Single ReferenceView component handles all variations
|
9
12
|
*/
|
10
13
|
export declare const reference: {
|
11
|
-
id: string;
|
12
14
|
path: string;
|
13
|
-
loader: ({ params }: any) => Promise<{
|
14
|
-
schema: GrafaidOld.Schema.Schema;
|
15
|
-
currentVersion: any;
|
16
|
-
availableVersions: string[];
|
17
|
-
}>;
|
18
|
-
Component: () => import("react/jsx-runtime").JSX.Element;
|
19
15
|
children: (import("#lib/react-router-aid/react-router-aid").RouteObjectIndex | {
|
20
16
|
path: string;
|
21
17
|
Component: () => import("react/jsx-runtime").JSX.Element;
|
22
18
|
errorElement: import("react/jsx-runtime").JSX.Element;
|
19
|
+
loader: ({ params }: any) => Promise<{
|
20
|
+
schema: GrafaidOld.Schema.Schema;
|
21
|
+
currentVersion: any;
|
22
|
+
availableVersions: string[];
|
23
|
+
}>;
|
23
24
|
children: {
|
24
25
|
path: string;
|
25
26
|
Component: () => import("react/jsx-runtime").JSX.Element;
|
26
27
|
errorElement: import("react/jsx-runtime").JSX.Element;
|
28
|
+
loader: ({ params }: any) => Promise<{
|
29
|
+
schema: GrafaidOld.Schema.Schema;
|
30
|
+
currentVersion: any;
|
31
|
+
availableVersions: string[];
|
32
|
+
}>;
|
27
33
|
}[];
|
28
34
|
} | {
|
29
35
|
path: string;
|
@@ -31,10 +37,20 @@ export declare const reference: {
|
|
31
37
|
path: string;
|
32
38
|
Component: () => import("react/jsx-runtime").JSX.Element;
|
33
39
|
errorElement: import("react/jsx-runtime").JSX.Element;
|
40
|
+
loader: ({ params }: any) => Promise<{
|
41
|
+
schema: GrafaidOld.Schema.Schema;
|
42
|
+
currentVersion: any;
|
43
|
+
availableVersions: string[];
|
44
|
+
}>;
|
34
45
|
children: {
|
35
46
|
path: string;
|
36
47
|
Component: () => import("react/jsx-runtime").JSX.Element;
|
37
48
|
errorElement: import("react/jsx-runtime").JSX.Element;
|
49
|
+
loader: ({ params }: any) => Promise<{
|
50
|
+
schema: GrafaidOld.Schema.Schema;
|
51
|
+
currentVersion: any;
|
52
|
+
availableVersions: string[];
|
53
|
+
}>;
|
38
54
|
}[];
|
39
55
|
})[];
|
40
56
|
})[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../../src/template/routes/reference.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAanD,eAAO,MAAM,MAAM;;;;EAcjB,CAAA;AA8FF;;;;;GAKG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASpB,CAAA"}
|