@pixerate/editor-react 0.198.0 → 0.198.1

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.
@@ -191,10 +191,11 @@ var PaintCanvas = ({ controller, tool = "brush", fillOptions, showGuides = true,
191
191
  if (ctx && typeof ctx.createImageData === "function") (0, import_paint_editor2.drawWaterOverlay)(controller, ctx);
192
192
  }, [state, controller]);
193
193
  (0, import_react2.useEffect)(() => {
194
- controller.catchUpCultures();
194
+ const stopCatchUp = (0, import_paint_editor2.startCultureCatchUp)(controller);
195
195
  const player = controller.playEffects();
196
196
  const cultures = controller.playCultures();
197
197
  return () => {
198
+ stopCatchUp();
198
199
  player.stop();
199
200
  cultures.stop();
200
201
  };
@@ -116,6 +116,7 @@ import {
116
116
  drawWaterOverlay,
117
117
  startDeviceTilt,
118
118
  startWetClock,
119
+ startCultureCatchUp,
119
120
  fitZoom,
120
121
  guideOverlay,
121
122
  handlePaintShortcut,
@@ -178,10 +179,11 @@ var PaintCanvas = ({ controller, tool = "brush", fillOptions, showGuides = true,
178
179
  if (ctx && typeof ctx.createImageData === "function") drawWaterOverlay(controller, ctx);
179
180
  }, [state, controller]);
180
181
  useEffect2(() => {
181
- controller.catchUpCultures();
182
+ const stopCatchUp = startCultureCatchUp(controller);
182
183
  const player = controller.playEffects();
183
184
  const cultures = controller.playCultures();
184
185
  return () => {
186
+ stopCatchUp();
185
187
  player.stop();
186
188
  cultures.stop();
187
189
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-react",
3
- "version": "0.198.0",
3
+ "version": "0.198.1",
4
4
  "description": "React bindings and prompt/rich-text components for @pixerate/editor",
5
5
  "author": "Pixerate",
6
6
  "license": "MIT",
@@ -283,7 +283,7 @@
283
283
  "dependencies": {},
284
284
  "peerDependencies": {
285
285
  "@dagrejs/dagre": "^1.1.8",
286
- "@pixerate/editor": ">=0.285.0 <1.0.0-0",
286
+ "@pixerate/editor": ">=0.286.1 <1.0.0-0",
287
287
  "@tiptap/core": "^2.27.3",
288
288
  "@tiptap/extension-bubble-menu": "^2.27.3",
289
289
  "@tiptap/extension-placeholder": "^2.27.3",
@@ -334,7 +334,7 @@
334
334
  "tsup": "^9.0.0",
335
335
  "typescript": "^5.7.3",
336
336
  "vitest": "^5.1.0",
337
- "@pixerate/editor": "0.285.0"
337
+ "@pixerate/editor": "0.286.1"
338
338
  },
339
339
  "scripts": {
340
340
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",