@localstack/appinspector-ui 1.0.0-dev-cc51d045 → 1.0.0-dev-cd281369

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.
@@ -0,0 +1,30 @@
1
+ import { PropsWithChildren, FC, ReactNode } from 'react';
2
+ import { routes } from './routes.cjs';
3
+ import * as react_jsx_runtime from 'react/jsx-runtime';
4
+
5
+ interface AppInspectorContextProviderProps {
6
+ /**
7
+ * A component that renders a link.
8
+ */
9
+ linkComponent: FC<{
10
+ children: ReactNode;
11
+ to: string;
12
+ }>;
13
+ /**
14
+ * The endpoint to LocalStack.
15
+ */
16
+ localstackEndpoint: string;
17
+ /**
18
+ * The prefix for the event studio routes.
19
+ */
20
+ routePrefix: string;
21
+ }
22
+ declare const AppInspectorContextProvider: (props: PropsWithChildren<AppInspectorContextProviderProps>) => react_jsx_runtime.JSX.Element;
23
+
24
+ type PagesMap = Record<keyof typeof routes, readonly [string, FC]>;
25
+ declare const pages: {
26
+ readonly APP_INSPECTOR_SPANS_LIST: readonly ["spans", FC];
27
+ readonly APP_INSPECTOR_TRACE_GRAPH: readonly ["traces/:traceId", FC];
28
+ };
29
+
30
+ export { AppInspectorContextProvider, type PagesMap, pages };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { PropsWithChildren, FC, ReactNode } from 'react';
2
+ import { routes } from './routes.js';
2
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
4
 
4
5
  interface AppInspectorContextProviderProps {
@@ -20,10 +21,10 @@ interface AppInspectorContextProviderProps {
20
21
  }
21
22
  declare const AppInspectorContextProvider: (props: PropsWithChildren<AppInspectorContextProviderProps>) => react_jsx_runtime.JSX.Element;
22
23
 
23
- type RoutesMap = Record<string, readonly [string, FC]>;
24
- declare const routes: {
24
+ type PagesMap = Record<keyof typeof routes, readonly [string, FC]>;
25
+ declare const pages: {
25
26
  readonly APP_INSPECTOR_SPANS_LIST: readonly ["spans", FC];
26
27
  readonly APP_INSPECTOR_TRACE_GRAPH: readonly ["traces/:traceId", FC];
27
28
  };
28
29
 
29
- export { AppInspectorContextProvider, type RoutesMap, routes };
30
+ export { AppInspectorContextProvider, type PagesMap, pages };
package/dist/index.js CHANGED
@@ -3734,13 +3734,19 @@ var TraceGraphPage = () => {
3734
3734
  );
3735
3735
  };
3736
3736
 
3737
- // src/index.ts
3737
+ // src/routes.ts
3738
3738
  var routes = {
3739
- APP_INSPECTOR_SPANS_LIST: ["spans", SpansListPage],
3740
- APP_INSPECTOR_TRACE_GRAPH: ["traces/:traceId", TraceGraphPage]
3739
+ APP_INSPECTOR_SPANS_LIST: "spans",
3740
+ APP_INSPECTOR_TRACE_GRAPH: "traces/:traceId"
3741
+ };
3742
+
3743
+ // src/index.ts
3744
+ var pages = {
3745
+ APP_INSPECTOR_SPANS_LIST: [routes.APP_INSPECTOR_SPANS_LIST, SpansListPage],
3746
+ APP_INSPECTOR_TRACE_GRAPH: [routes.APP_INSPECTOR_TRACE_GRAPH, TraceGraphPage]
3741
3747
  };
3742
3748
  export {
3743
3749
  AppInspectorContextProvider,
3744
- routes
3750
+ pages
3745
3751
  };
3746
3752
  //# sourceMappingURL=index.js.map