@getcronit/pylon 3.0.0-canary-20250312165655.826d17474bf64dfdbd9e31dd76e4f3898d48a6d1 → 3.0.0-canary-20250313071016.ae6b1c56cc44cc99648aaee747ea420a05ed0f84

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,18 @@
1
+ import type React from 'react';
2
+ interface ErrorInfo {
3
+ componentStack?: string;
4
+ digest?: string;
5
+ }
6
+ interface DevErrorOverlayProps {
7
+ error: Error;
8
+ errorInfo: ErrorInfo;
9
+ errorType: 'caught' | 'uncaught' | 'recoverable' | 'identifier';
10
+ onCaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
11
+ onUncaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
12
+ onRecoverableError?: (error: Error, errorInfo: ErrorInfo) => void;
13
+ identifierPrefix?: string;
14
+ onDismiss?: () => void;
15
+ logo?: React.ReactNode | string;
16
+ }
17
+ export default function DevErrorOverlay({ error, errorInfo, errorType, onCaughtError, onUncaughtError, onRecoverableError, identifierPrefix, onDismiss, logo }: DevErrorOverlayProps): import("react/jsx-runtime").JSX.Element | null;
18
+ export {};
@@ -0,0 +1,7 @@
1
+ import type React from 'react';
2
+ interface ErrorOverlayProviderProps {
3
+ children: React.ReactNode;
4
+ identifierPrefix?: string;
5
+ }
6
+ export default function DevOverlayProvider({ children, identifierPrefix }: ErrorOverlayProviderProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,16 @@
1
+ import type React from 'react';
2
+ import { Component, type ErrorInfo as ReactErrorInfo } from 'react';
3
+ interface ErrorBoundaryProps {
4
+ children: React.ReactNode;
5
+ fallback?: React.ReactNode;
6
+ }
7
+ interface ErrorBoundaryState {
8
+ hasError: boolean;
9
+ }
10
+ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
11
+ constructor(props: ErrorBoundaryProps);
12
+ static getDerivedStateFromError(_: Error): ErrorBoundaryState;
13
+ componentDidCatch(error: Error, errorInfo: ReactErrorInfo): void;
14
+ render(): React.ReactNode;
15
+ }
16
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './report-error';
2
+ export { default as DevOverlay } from './dev-overlay-provider';
@@ -0,0 +1,14 @@
1
+ import type { ErrorInfo } from './types';
2
+ type ErrorStoreData = {
3
+ error: Error | null;
4
+ errorInfo: ErrorInfo | null;
5
+ errorType: 'caught' | 'uncaught' | 'recoverable' | 'identifier' | null;
6
+ };
7
+ export declare function reportError(error: Error, errorInfo: ErrorInfo, errorType: 'caught' | 'uncaught' | 'recoverable' | 'identifier'): void;
8
+ export declare function clearError(): void;
9
+ export declare function subscribeToErrors(callback: (data: ErrorStoreData) => void): () => void;
10
+ export declare function getCurrentError(): ErrorStoreData;
11
+ export declare const onCaughtErrorProd: (error: Error, errorInfo: ErrorInfo) => void;
12
+ export declare const onUncaughtErrorProd: (error: Error, errorInfo: ErrorInfo) => void;
13
+ export declare const onRecoverableErrorProd: (error: Error, errorInfo: ErrorInfo) => void;
14
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface ErrorInfo {
2
+ componentStack?: string | null;
3
+ digest?: string;
4
+ }
5
+ export type ErrorType = 'caught' | 'uncaught' | 'recoverable' | 'identifier' | null;
6
+ export interface ErrorCallbacks {
7
+ onCaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
8
+ onUncaughtError?: (error: Error, errorInfo: ErrorInfo) => void;
9
+ onRecoverableError?: (error: Error, errorInfo: ErrorInfo) => void;
10
+ }
@@ -0,0 +1,7 @@
1
+ interface GlobalErrorProps {
2
+ error: Error & {
3
+ digest?: string;
4
+ };
5
+ }
6
+ export default function GlobalError({ error }: GlobalErrorProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ declare const Logo: React.FC<{
2
+ className?: string;
3
+ }>;
4
+ export default Logo;
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
+ asChild?: boolean;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export { Button, buttonVariants };
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
+ export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
+ declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
4
+ declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
5
+ export { Collapsible, CollapsibleTrigger, CollapsibleContent };
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export { handler } from './app/pylon-handler.js';
8
8
  export { getEnv } from './get-env.js';
9
9
  export { createDecorator } from './create-decorator.js';
10
10
  export { createPubSub as experimentalCreatePubSub } from 'graphql-yoga';
11
- export { usePages } from '@getcronit/pylon-pages';
11
+ export { usePages } from './plugins/use-pages';
12
12
  import type { Plugin as YogaPlugin } from 'graphql-yoga';
13
13
  import { MiddlewareHandler } from 'hono';
14
14
  import { BuildContext, BuildOptions } from 'esbuild';