glitchgrab 1.33.0 → 1.35.0

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/dist/index.d.mts CHANGED
@@ -242,6 +242,14 @@ interface UseGlitchgrabReturn {
242
242
  description?: string;
243
243
  type?: ReportType;
244
244
  }) => void;
245
+ /**
246
+ * Open the demo booking dialog.
247
+ *
248
+ * Slots come from the project owner's real Google calendar, and the booking
249
+ * creates a Meet on it — so this is only useful for projects whose owner has
250
+ * connected a calendar and enabled booking in Glitchgrab.
251
+ */
252
+ openBookingDialog: () => void;
245
253
  /**
246
254
  * Optional: polish user-written description text via the Glitchgrab AI enhance endpoint.
247
255
  * Fixes grammar / clarity only — never invents details or changes meaning.
@@ -312,6 +320,31 @@ declare function ReportButton({ position, label, className, children, }: ReportB
312
320
  }) => ReactNode;
313
321
  }): react_jsx_runtime.JSX.Element | null;
314
322
 
323
+ /**
324
+ * Trigger for the demo booking dialog.
325
+ *
326
+ * The dialog itself lives in `GlitchgrabProvider`; this is only a convenience.
327
+ * Most hosts will want their own button in their own design, which is what the
328
+ * render prop is for — or skip this entirely and call
329
+ * `useGlitchgrab().openBookingDialog()`.
330
+ *
331
+ * @example
332
+ * ```tsx
333
+ * <BookDemoButton />
334
+ *
335
+ * <BookDemoButton>
336
+ * {({ onClick }) => <MyCta onClick={onClick}>Talk to us</MyCta>}
337
+ * </BookDemoButton>
338
+ * ```
339
+ */
340
+ declare function BookDemoButton({ label, className, children, }: {
341
+ label?: string;
342
+ className?: string;
343
+ children?: (props: {
344
+ onClick: () => void;
345
+ }) => ReactNode;
346
+ }): react_jsx_runtime.JSX.Element;
347
+
315
348
  /**
316
349
  * Trigger for the built-in feedback dialog (stars + message).
317
350
  *
@@ -616,4 +649,4 @@ declare function computeSignature(params: {
616
649
  declare function shouldSkipDuplicate(signature: string, windowMs?: number, now?: number): boolean;
617
650
  declare function clearDedupCache(): void;
618
651
 
619
- export { type Breadcrumb, type BreadcrumbType, type CaptureErrorOptions, type CapturedContext, type DeviceInfo, FeedbackButton, type FeedbackButtonProps, type FeedbackPayload, type FeedbackQuery, type FeedbackResult, GLITCHGRAB_SHORTCUT, GLITCHGRAB_SHORTCUT_MAC, type GlitchgrabConfig, GlitchgrabErrorBoundary, type GlitchgrabFeedback, GlitchgrabProvider, type GlitchgrabProviderProps, type GlitchgrabReport, type GlitchgrabSession, ReportButton, type ReportButtonProps, type ReportPayload, type ReportResult, type ReportSeverity, type ReportType, type RuntimeInfo, type UseGlitchgrabReturn, addBreadcrumb, captureContext, captureDeviceInfo, captureError, clearAppContext, clearBreadcrumbs, clearDedupCache, computeSignature, enhanceText, fetchGlitchgrabFeedback, fetchGlitchgrabReports, getAppContext, getBreadcrumbs, getShortcutLabel, initBreadcrumbs, matchesShortcut, sanitizeUrl, sendFeedback, sendReport, setContext, setContexts, shouldSkipDuplicate, useGlitchgrab, useGlitchgrabActions, useGlitchgrabFeedback, useGlitchgrabReports };
652
+ export { BookDemoButton, type Breadcrumb, type BreadcrumbType, type CaptureErrorOptions, type CapturedContext, type DeviceInfo, FeedbackButton, type FeedbackButtonProps, type FeedbackPayload, type FeedbackQuery, type FeedbackResult, GLITCHGRAB_SHORTCUT, GLITCHGRAB_SHORTCUT_MAC, type GlitchgrabConfig, GlitchgrabErrorBoundary, type GlitchgrabFeedback, GlitchgrabProvider, type GlitchgrabProviderProps, type GlitchgrabReport, type GlitchgrabSession, ReportButton, type ReportButtonProps, type ReportPayload, type ReportResult, type ReportSeverity, type ReportType, type RuntimeInfo, type UseGlitchgrabReturn, addBreadcrumb, captureContext, captureDeviceInfo, captureError, clearAppContext, clearBreadcrumbs, clearDedupCache, computeSignature, enhanceText, fetchGlitchgrabFeedback, fetchGlitchgrabReports, getAppContext, getBreadcrumbs, getShortcutLabel, initBreadcrumbs, matchesShortcut, sanitizeUrl, sendFeedback, sendReport, setContext, setContexts, shouldSkipDuplicate, useGlitchgrab, useGlitchgrabActions, useGlitchgrabFeedback, useGlitchgrabReports };
package/dist/index.d.ts CHANGED
@@ -242,6 +242,14 @@ interface UseGlitchgrabReturn {
242
242
  description?: string;
243
243
  type?: ReportType;
244
244
  }) => void;
245
+ /**
246
+ * Open the demo booking dialog.
247
+ *
248
+ * Slots come from the project owner's real Google calendar, and the booking
249
+ * creates a Meet on it — so this is only useful for projects whose owner has
250
+ * connected a calendar and enabled booking in Glitchgrab.
251
+ */
252
+ openBookingDialog: () => void;
245
253
  /**
246
254
  * Optional: polish user-written description text via the Glitchgrab AI enhance endpoint.
247
255
  * Fixes grammar / clarity only — never invents details or changes meaning.
@@ -312,6 +320,31 @@ declare function ReportButton({ position, label, className, children, }: ReportB
312
320
  }) => ReactNode;
313
321
  }): react_jsx_runtime.JSX.Element | null;
314
322
 
323
+ /**
324
+ * Trigger for the demo booking dialog.
325
+ *
326
+ * The dialog itself lives in `GlitchgrabProvider`; this is only a convenience.
327
+ * Most hosts will want their own button in their own design, which is what the
328
+ * render prop is for — or skip this entirely and call
329
+ * `useGlitchgrab().openBookingDialog()`.
330
+ *
331
+ * @example
332
+ * ```tsx
333
+ * <BookDemoButton />
334
+ *
335
+ * <BookDemoButton>
336
+ * {({ onClick }) => <MyCta onClick={onClick}>Talk to us</MyCta>}
337
+ * </BookDemoButton>
338
+ * ```
339
+ */
340
+ declare function BookDemoButton({ label, className, children, }: {
341
+ label?: string;
342
+ className?: string;
343
+ children?: (props: {
344
+ onClick: () => void;
345
+ }) => ReactNode;
346
+ }): react_jsx_runtime.JSX.Element;
347
+
315
348
  /**
316
349
  * Trigger for the built-in feedback dialog (stars + message).
317
350
  *
@@ -616,4 +649,4 @@ declare function computeSignature(params: {
616
649
  declare function shouldSkipDuplicate(signature: string, windowMs?: number, now?: number): boolean;
617
650
  declare function clearDedupCache(): void;
618
651
 
619
- export { type Breadcrumb, type BreadcrumbType, type CaptureErrorOptions, type CapturedContext, type DeviceInfo, FeedbackButton, type FeedbackButtonProps, type FeedbackPayload, type FeedbackQuery, type FeedbackResult, GLITCHGRAB_SHORTCUT, GLITCHGRAB_SHORTCUT_MAC, type GlitchgrabConfig, GlitchgrabErrorBoundary, type GlitchgrabFeedback, GlitchgrabProvider, type GlitchgrabProviderProps, type GlitchgrabReport, type GlitchgrabSession, ReportButton, type ReportButtonProps, type ReportPayload, type ReportResult, type ReportSeverity, type ReportType, type RuntimeInfo, type UseGlitchgrabReturn, addBreadcrumb, captureContext, captureDeviceInfo, captureError, clearAppContext, clearBreadcrumbs, clearDedupCache, computeSignature, enhanceText, fetchGlitchgrabFeedback, fetchGlitchgrabReports, getAppContext, getBreadcrumbs, getShortcutLabel, initBreadcrumbs, matchesShortcut, sanitizeUrl, sendFeedback, sendReport, setContext, setContexts, shouldSkipDuplicate, useGlitchgrab, useGlitchgrabActions, useGlitchgrabFeedback, useGlitchgrabReports };
652
+ export { BookDemoButton, type Breadcrumb, type BreadcrumbType, type CaptureErrorOptions, type CapturedContext, type DeviceInfo, FeedbackButton, type FeedbackButtonProps, type FeedbackPayload, type FeedbackQuery, type FeedbackResult, GLITCHGRAB_SHORTCUT, GLITCHGRAB_SHORTCUT_MAC, type GlitchgrabConfig, GlitchgrabErrorBoundary, type GlitchgrabFeedback, GlitchgrabProvider, type GlitchgrabProviderProps, type GlitchgrabReport, type GlitchgrabSession, ReportButton, type ReportButtonProps, type ReportPayload, type ReportResult, type ReportSeverity, type ReportType, type RuntimeInfo, type UseGlitchgrabReturn, addBreadcrumb, captureContext, captureDeviceInfo, captureError, clearAppContext, clearBreadcrumbs, clearDedupCache, computeSignature, enhanceText, fetchGlitchgrabFeedback, fetchGlitchgrabReports, getAppContext, getBreadcrumbs, getShortcutLabel, initBreadcrumbs, matchesShortcut, sanitizeUrl, sendFeedback, sendReport, setContext, setContexts, shouldSkipDuplicate, useGlitchgrab, useGlitchgrabActions, useGlitchgrabFeedback, useGlitchgrabReports };