pollination-react-io 1.29.0 → 1.30.0

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.
@@ -40035,8 +40035,13 @@ var useGetGeometry = function () {
40035
40035
  var host = getHost();
40036
40036
  var _a = useState(undefined), geometry = _a[0], setGeometry = _a[1];
40037
40037
  var geometryRef = useRef(undefined);
40038
+ var runPreview = function (identifier) {
40039
+ if (typeof window.parent.chrome.webview.hostObjects.sync.geometry.Mark === 'function') {
40040
+ window.parent.chrome.webview.hostObjects.sync.geometry.Mark(identifier);
40041
+ }
40042
+ };
40038
40043
  var setReturnVal = useCallback(function (_a, force) {
40039
- var data = _a.data;
40044
+ var data = _a.data; _a.identifier;
40040
40045
  var bytes = new TextEncoder().encode(data);
40041
40046
  if (!force && geometryRef.current) {
40042
40047
  if (!lodash_isequal(bytes, geometryRef.current)) {
@@ -40075,6 +40080,7 @@ var useGetGeometry = function () {
40075
40080
  };
40076
40081
  res = window.parent.chrome.webview.hostObjects.sync.geometry.Get(key, selection);
40077
40082
  if (res) {
40083
+ runPreview(res.identifier);
40078
40084
  setReturnVal(res, force);
40079
40085
  }
40080
40086
  }, [setReturnVal]);