@hazem3500/palette 0.9.120 → 0.9.122

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,14 @@ 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" }. Adds a setting to the Account
362
+ * panel that every new comment follows; a comment kept in Palette is delivered
363
+ * with `share: false`.
364
+ * Needs a server that advertises `share` in /config. Off by default.
365
+ */
366
+ share?: { label: string };
359
367
  }
360
368
 
361
369
  export interface CommentsController {