@hazem3500/palette 0.9.120 → 0.9.121

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.
@@ -20,6 +20,8 @@ export type WebhookEvent = {
20
20
  author: string;
21
21
  body: string | null;
22
22
  snapshotStatus?: "pending" | "skipped";
23
+ /** Present and false when the reviewer chose to keep this comment in Palette. */
24
+ share?: false;
23
25
  };
24
26
 
25
27
  export type WebhookEnv = {
package/src/types.ts CHANGED
@@ -356,6 +356,13 @@ export interface CommentsOptions {
356
356
  * never captured, nor is anything inside an element with data-palette-no-snapshot (or the older data-komo-no-snapshot).
357
357
  */
358
358
  snapshots?: PaletteSnapshots;
359
+ /**
360
+ * Let reviewers keep new comments out of an integration fed by the project's
361
+ * webhooks, e.g. { label: "Post to the GitHub PR" }. Shows an account default and
362
+ * a per-comment toggle; a comment kept in Palette is delivered with `share: false`.
363
+ * Needs a server that advertises `share` in /config. Off by default.
364
+ */
365
+ share?: { label: string };
359
366
  }
360
367
 
361
368
  export interface CommentsController {