@siteping/server 0.2.2 → 0.2.4

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/types.d.cts CHANGED
@@ -213,14 +213,24 @@ export interface SitepingBaseConfig {
213
213
  */
214
214
  getPageScope?: (() => PageScope) | undefined;
215
215
  /**
216
- * When true (default), the widget filters initial markers and panel results
217
- * by `feedback.url === scope.url`, so annotations created on one page never
218
- * leak to other pages — even if their CSS selector accidentally matches.
219
- * Set to `false` for a project-wide view: the panel lists every feedback of
220
- * the project, and a marker shows wherever its anchor resolves — for
221
- * feedback on what every page shares, such as a header or a footer.
216
+ * When true (default), the widget only shows the markers of feedback
217
+ * created on the current page (`feedback.url === scope.url`), so
218
+ * annotations never leak to other pages, even if their CSS selector
219
+ * happens to match there. Set to `false` for project-wide markers: a marker
220
+ * shows wherever its anchor resolves, for feedback on what every page
221
+ * shares, such as a header or a footer. The panel's list has a scope filter
222
+ * of its own: see `defaultPanelScope`.
222
223
  */
223
224
  scopeAnnotationsByUrl?: boolean | undefined;
225
+ /**
226
+ * The scope the panel's list opens on: `"page"` (default) lists the
227
+ * current page's feedback, `"all"` every feedback of the project, for
228
+ * reviewers who triage across the whole site. The reviewer can still
229
+ * switch, and their choice holds until the widget is destroyed. The
230
+ * markers on the page follow `scopeAnnotationsByUrl`, whatever the list
231
+ * shows.
232
+ */
233
+ defaultPanelScope?: "page" | "all" | undefined;
224
234
  /**
225
235
  * Capture a JPEG screenshot of the annotated area on submit. Defaults to
226
236
  * `false` — opt-in because:
package/dist/types.d.ts CHANGED
@@ -213,14 +213,24 @@ export interface SitepingBaseConfig {
213
213
  */
214
214
  getPageScope?: (() => PageScope) | undefined;
215
215
  /**
216
- * When true (default), the widget filters initial markers and panel results
217
- * by `feedback.url === scope.url`, so annotations created on one page never
218
- * leak to other pages — even if their CSS selector accidentally matches.
219
- * Set to `false` for a project-wide view: the panel lists every feedback of
220
- * the project, and a marker shows wherever its anchor resolves — for
221
- * feedback on what every page shares, such as a header or a footer.
216
+ * When true (default), the widget only shows the markers of feedback
217
+ * created on the current page (`feedback.url === scope.url`), so
218
+ * annotations never leak to other pages, even if their CSS selector
219
+ * happens to match there. Set to `false` for project-wide markers: a marker
220
+ * shows wherever its anchor resolves, for feedback on what every page
221
+ * shares, such as a header or a footer. The panel's list has a scope filter
222
+ * of its own: see `defaultPanelScope`.
222
223
  */
223
224
  scopeAnnotationsByUrl?: boolean | undefined;
225
+ /**
226
+ * The scope the panel's list opens on: `"page"` (default) lists the
227
+ * current page's feedback, `"all"` every feedback of the project, for
228
+ * reviewers who triage across the whole site. The reviewer can still
229
+ * switch, and their choice holds until the widget is destroyed. The
230
+ * markers on the page follow `scopeAnnotationsByUrl`, whatever the list
231
+ * shows.
232
+ */
233
+ defaultPanelScope?: "page" | "all" | undefined;
224
234
  /**
225
235
  * Capture a JPEG screenshot of the annotated area on submit. Defaults to
226
236
  * `false` — opt-in because:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siteping/server",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Store- and framework-agnostic HTTP handler for Siteping — any SitepingStore behind one Fetch API endpoint",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@siteping/adapter-memory": "workspace:*",
64
64
  "@siteping/core": "workspace:*",
65
- "better-auth": "^1.7.12",
66
- "jose": "^6.2.13"
65
+ "better-auth": "^1.7.17",
66
+ "jose": "^6.2.15"
67
67
  }
68
68
  }