@timeax/service-builder 0.0.9 → 0.0.10
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/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5275,6 +5275,7 @@ function CanvasPanel({
|
|
|
5275
5275
|
}, [canvas.api]);
|
|
5276
5276
|
function setSnapshot(event) {
|
|
5277
5277
|
const nextSnapshot = event?.snapshot;
|
|
5278
|
+
console.log("this is the changed...");
|
|
5278
5279
|
if (!nextSnapshot) return;
|
|
5279
5280
|
const nextHash = hashSnapshot(nextSnapshot);
|
|
5280
5281
|
setCurrentSnapshotHash((current) => current === nextHash ? current : nextHash);
|
|
@@ -5286,6 +5287,7 @@ function CanvasPanel({
|
|
|
5286
5287
|
useEffect8(() => {
|
|
5287
5288
|
const catalogChange = canvas.api.on("catalog:change", setSnapshot);
|
|
5288
5289
|
const offEditorChange = canvas.api.on("editor:change", (event) => {
|
|
5290
|
+
console.log("this snapshot changed via the editor...");
|
|
5289
5291
|
setSnapshot(event);
|
|
5290
5292
|
if (event?.reason === "mutation" || event?.reason === "transaction") {
|
|
5291
5293
|
setHistoryState({ canUndo: true, canRedo: false });
|