@siteping/widget 0.9.14 → 0.9.16
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-W5TBUGIT.js → chunk-GRXZBZ42.js} +3 -3
- package/dist/chunk-GRXZBZ42.js.map +1 -0
- package/dist/index.global.js +43 -42
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +26 -25
- package/dist/index.js.map +1 -1
- package/dist/{panel-JGEW26L5.js → panel-4KOYCMDH.js} +2 -2
- package/dist/{panel-JGEW26L5.js.map → panel-4KOYCMDH.js.map} +1 -1
- package/dist/react.js +27 -26
- package/dist/react.js.map +1 -1
- package/dist/types.d.ts +22 -0
- package/package.json +4 -4
- package/dist/chunk-W5TBUGIT.js.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -161,6 +161,28 @@ export interface SitepingConfig {
|
|
|
161
161
|
* `instance.focusFeedback(id)` explicitly.
|
|
162
162
|
*/
|
|
163
163
|
deepLink?: boolean | SitepingDeepLinkOptions | undefined;
|
|
164
|
+
/**
|
|
165
|
+
* Automatically re-fetch feedbacks when the page changes during client-side
|
|
166
|
+
* (SPA) navigation. Enabled by default.
|
|
167
|
+
*
|
|
168
|
+
* The widget is normally mounted once (singleton) inside a persistent layout
|
|
169
|
+
* — e.g. a Next.js App Router `layout.tsx`, which does NOT remount on
|
|
170
|
+
* client-side navigation. Without this, init runs a single time and both the
|
|
171
|
+
* panel list and the page markers stay frozen on the page where the widget
|
|
172
|
+
* first mounted. With it on, the widget patches the History API
|
|
173
|
+
* (`pushState`/`replaceState`, which SPA routers call instead of triggering
|
|
174
|
+
* `popstate`) and listens for `popstate`/`hashchange`, then re-fetches when
|
|
175
|
+
* the scope key (`getPageScope().url` + template) actually changes.
|
|
176
|
+
*
|
|
177
|
+
* This re-fetches data only — it deliberately does NOT re-focus or re-scroll
|
|
178
|
+
* to an annotation (deep-link focus stays initial-load only; see `deepLink`),
|
|
179
|
+
* so normal browsing is never interrupted by a surprise scroll.
|
|
180
|
+
*
|
|
181
|
+
* - `true` (default) — watch navigation and re-fetch on route change.
|
|
182
|
+
* - `false` — never touch the History API; hosts drive updates manually via
|
|
183
|
+
* `instance.refresh()`.
|
|
184
|
+
*/
|
|
185
|
+
watchNavigation?: boolean | undefined;
|
|
164
186
|
/**
|
|
165
187
|
* Pre-fill author identity from the host application — typically the
|
|
166
188
|
* currently signed-in user. When set, the widget uses these values
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siteping/widget",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.16",
|
|
4
4
|
"description": "Feedback widget for client review during development — annotations, bugs, questions directly on the site",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"@siteping/core": "workspace:*",
|
|
67
67
|
"@size-limit/preset-small-lib": "^12.1.0",
|
|
68
68
|
"@testing-library/react": "^16.3.2",
|
|
69
|
-
"@types/react": "^19.2.
|
|
69
|
+
"@types/react": "^19.2.17",
|
|
70
70
|
"@types/react-dom": "^19.2.3",
|
|
71
|
-
"react": "^19.2.
|
|
72
|
-
"react-dom": "^19.2.
|
|
71
|
+
"react": "^19.2.7",
|
|
72
|
+
"react-dom": "^19.2.7",
|
|
73
73
|
"size-limit": "^12.1.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|