@hazem3500/komo 0.9.10 → 0.9.11

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/src/types.ts CHANGED
@@ -155,6 +155,13 @@ export interface CommentsOptions {
155
155
  sourceUrl?: (source: string, branch: string) => string;
156
156
  /** Defaults to location.pathname; query strings are not stored. */
157
157
  page?: () => string;
158
+ /**
159
+ * Client-side router navigation for opening a comment on another page, e.g.
160
+ * (url) => router.navigate({ href: url.pathname + url.search }). komo opens
161
+ * the thread once its anchor renders. Defaults to a full page load; a
162
+ * rejection falls back to one.
163
+ */
164
+ navigate?: (url: URL) => void | Promise<void>;
158
165
  pollInterval?: number;
159
166
  /** Full emoji JSON URL; fetched only when choosing another emoji. */
160
167
  emojiDataSource?: string;