zakeke-configurator-react 0.0.119 → 0.0.120

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.
@@ -42,7 +42,7 @@ export interface ProviderValue {
42
42
  quantityRule: ProductQuantityRule | null;
43
43
  eventMessages: EventMessage[] | null;
44
44
  isAssetsLoading: boolean;
45
- themeCompositions: ThemeCompositions[] | null;
45
+ draftCompositions: ThemeCompositions[] | null;
46
46
  extensionFields: {
47
47
  name: string;
48
48
  value: number;
package/dist/index.js CHANGED
@@ -25630,9 +25630,8 @@ class ZakekeEnvironment {
25630
25630
  return clone;
25631
25631
  };
25632
25632
  this.undo = () => __awaiter(this, void 0, void 0, function* () {
25633
- console.log({ undostackBefore: this.undoStack });
25634
25633
  let selection = (this.undoStack && this.undoStack.length > 0 ? this.undoStack.pop() : null);
25635
- console.log({ undostackAfterPop: this.undoStack });
25634
+ console.log({ undoStack: this.undoStack });
25636
25635
  if (!selection)
25637
25636
  return;
25638
25637
  console.log({ selection });
@@ -25661,9 +25660,8 @@ class ZakekeEnvironment {
25661
25660
  this.updateRecapAndExtensionField();
25662
25661
  });
25663
25662
  this.redo = () => __awaiter(this, void 0, void 0, function* () {
25664
- console.log({ redoStackBefore: this.redoStack });
25665
25663
  let selection = (this.redoStack && this.redoStack.length > 0 ? this.redoStack.pop() : null);
25666
- console.log({ redoStackAfterPop: this.redoStack });
25664
+ console.log({ redostack: this.redoStack });
25667
25665
  if (!selection)
25668
25666
  return;
25669
25667
  console.log({ selection });
@@ -26038,7 +26036,7 @@ class ZakekeEnvironment {
26038
26036
  this.selectOption = (optionId) => {
26039
26037
  const clone = this.cloneSelection(this.selection);
26040
26038
  this.undoStack.push(clone);
26041
- console.log({ undoStack: this.undoStack });
26039
+ console.log({ undoStackSelectOption: this.undoStack });
26042
26040
  let option;
26043
26041
  let attribute;
26044
26042
  this.zkProduct.get("attributes").each(attr => {
@@ -28296,7 +28294,7 @@ const createProviderValue = (state, dispatch) => {
28296
28294
  internalProduct: state.environment.internalProduct,
28297
28295
  internalScene: state.environment.internalScene,
28298
28296
  internalCurrentTemplate: state.environment.internalCurrentTemplate,
28299
- themeCompositions: state.environment.themeCompositions,
28297
+ draftCompositions: state.environment.themeCompositions,
28300
28298
  currentAttributesSelection: state.environment.currentAttributesSelection,
28301
28299
  isSceneLoading: state.isSceneLoading,
28302
28300
  isAddToCartLoading: state.isAddToCartLoading,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zakeke-configurator-react",
3
- "version": "0.0.119",
3
+ "version": "0.0.120",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/declarations/composer/Module/src/index.d.ts",