@pixerate/editor-react 0.201.0 → 0.201.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.
@@ -2511,7 +2511,7 @@ var EvolutionPanel = ({ controller, proposals, className }) => {
2511
2511
  const [seed, setSeed] = (0, import_react19.useState)(1);
2512
2512
  const [mutation, setMutation] = (0, import_react19.useState)(() => (0, import_paint_editor18.normalizeMutationRates)());
2513
2513
  const [contactSheetUrl, setContactSheetUrl] = (0, import_react19.useState)(null);
2514
- const eligibleStrokes = state.document.strokes.filter((s) => !(0, import_paint_editor18.liveStrokeRefusal)(s.brush));
2514
+ const eligibleStrokes = state.document.strokes.filter((s) => !(0, import_paint_editor18.evolutionStrokeRefusal)(s.brush));
2515
2515
  const activeStrokeIds = selectedStrokes.filter((id) => eligibleStrokes.some((s) => s.id === id));
2516
2516
  const effectiveStrokeIds = activeStrokeIds.length > 0 ? activeStrokeIds : state.selectedStroke && eligibleStrokes.some((s) => s.id === state.selectedStroke) ? [state.selectedStroke] : eligibleStrokes.length > 0 ? [eligibleStrokes[eligibleStrokes.length - 1].id] : [];
2517
2517
  const variants = proposalState.proposals.filter((p) => (0, import_paint_editor18.proposalGenomeStrokes)(p).length > 0);
@@ -1794,7 +1794,7 @@ import { useState as useState9, useSyncExternalStore as useSyncExternalStore3 }
1794
1794
  import {
1795
1795
  EVOLUTION_SLIDERS,
1796
1796
  exportProposalContactSheetPng,
1797
- liveStrokeRefusal as liveStrokeRefusal2,
1797
+ evolutionStrokeRefusal,
1798
1798
  normalizeMutationRates,
1799
1799
  paintProposalGhost as paintProposalGhost2,
1800
1800
  proposalGenomeStrokes
@@ -1811,7 +1811,7 @@ var EvolutionPanel = ({ controller, proposals, className }) => {
1811
1811
  const [seed, setSeed] = useState9(1);
1812
1812
  const [mutation, setMutation] = useState9(() => normalizeMutationRates());
1813
1813
  const [contactSheetUrl, setContactSheetUrl] = useState9(null);
1814
- const eligibleStrokes = state.document.strokes.filter((s) => !liveStrokeRefusal2(s.brush));
1814
+ const eligibleStrokes = state.document.strokes.filter((s) => !evolutionStrokeRefusal(s.brush));
1815
1815
  const activeStrokeIds = selectedStrokes.filter((id) => eligibleStrokes.some((s) => s.id === id));
1816
1816
  const effectiveStrokeIds = activeStrokeIds.length > 0 ? activeStrokeIds : state.selectedStroke && eligibleStrokes.some((s) => s.id === state.selectedStroke) ? [state.selectedStroke] : eligibleStrokes.length > 0 ? [eligibleStrokes[eligibleStrokes.length - 1].id] : [];
1817
1817
  const variants = proposalState.proposals.filter((p) => proposalGenomeStrokes(p).length > 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixerate/editor-react",
3
- "version": "0.201.0",
3
+ "version": "0.201.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.293.0 <1.0.0-0",
286
+ "@pixerate/editor": ">=0.294.0 <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.293.0"
337
+ "@pixerate/editor": "0.294.0"
338
338
  },
339
339
  "scripts": {
340
340
  "build": "tsup && tsc -p tsconfig.build.json && node ../../scripts/finalize-declarations.mjs dist",