@veltdev/react 1.0.108 → 1.0.109
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/cjs/index.js +10 -0
- package/cjs/index.js.map +1 -1
- package/cjs/types/hooks/Client.d.ts +4 -0
- package/cjs/types/hooks/index.d.ts +1 -1
- package/esm/index.js +10 -1
- package/esm/index.js.map +1 -1
- package/esm/types/hooks/Client.d.ts +4 -0
- package/esm/types/hooks/index.d.ts +1 -1
- package/index.d.ts +5 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -614,6 +614,15 @@ function useSetDocumentId(documentId) {
|
|
|
614
614
|
client && client.setDocumentId(documentId);
|
|
615
615
|
}, [client]);
|
|
616
616
|
}
|
|
617
|
+
/**
|
|
618
|
+
* @beta This hook is in beta
|
|
619
|
+
*/
|
|
620
|
+
function useUnsetDocumentId() {
|
|
621
|
+
var client = useVeltClient().client;
|
|
622
|
+
React__default["default"].useEffect(function () {
|
|
623
|
+
client && client.unsetDocumentId && client.unsetDocumentId();
|
|
624
|
+
}, [client]);
|
|
625
|
+
}
|
|
617
626
|
/**
|
|
618
627
|
* @beta This hook is in beta
|
|
619
628
|
*/
|
|
@@ -1312,6 +1321,7 @@ exports.useTagAnnotations = useTagAnnotations;
|
|
|
1312
1321
|
exports.useTagUtils = useTagUtils;
|
|
1313
1322
|
exports.useUniqueViewsByDate = useUniqueViewsByDate;
|
|
1314
1323
|
exports.useUniqueViewsByUser = useUniqueViewsByUser;
|
|
1324
|
+
exports.useUnsetDocumentId = useUnsetDocumentId;
|
|
1315
1325
|
exports.useUserEditorState = useUserEditorState;
|
|
1316
1326
|
exports.useVeltClient = useVeltClient;
|
|
1317
1327
|
exports.useViewsUtils = useViewsUtils;
|