@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/README.md +1 -0
- package/dist/{chunk-VQF5NSYU.js → chunk-KCDI2ATK.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/node.mjs +1 -1
- package/dist/react.js +1 -1
- package/dist/setup.js +1 -1
- package/dist/types.d.ts +7 -0
- package/package.json +1 -1
- package/server/setup-client.txt +41 -41
- package/src/types.ts +7 -0
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;
|