@threedddplus/logoeditor 0.0.1 → 0.0.2

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.
@@ -937,6 +937,8 @@ var setSessionStorage = function setSessionStorage(cname, cvalue) {
937
937
 
938
938
  var authSlice = function authSlice(set, get) {
939
939
  return {
940
+ customUploadLogoColorList: [],
941
+ defaultColorList: [],
940
942
  priceLevel: '',
941
943
  token: '',
942
944
  clearLoginInfo: function clearLoginInfo() {
@@ -1322,8 +1324,8 @@ var fabricSlice = function fabricSlice(set, get) {
1322
1324
  };
1323
1325
  };
1324
1326
 
1325
- /* This Source Code Form is subject to the terms of the Mozilla Public
1326
- * License, v. 2.0. If a copy of the MPL was not distributed with this
1327
+ /* This Source Code Form is subject to the terms of the Mozilla Public
1328
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
1327
1329
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
1328
1330
 
1329
1331
  function TIFFParser() {
@@ -1927,8 +1929,8 @@ TIFFParser.prototype = {
1927
1929
  }
1928
1930
  }
1929
1931
 
1930
- /* for (var i = 0, numFileDirectories = this.fileDirectories.length; i < numFileDirectories; i++) {
1931
- // Stuff
1932
+ /* for (var i = 0, numFileDirectories = this.fileDirectories.length; i < numFileDirectories; i++) {
1933
+ // Stuff
1932
1934
  }*/
1933
1935
 
1934
1936
  return this.canvas;
@@ -4579,6 +4581,7 @@ var MyLogo$1 = function MyLogo(_ref) {
4579
4581
  if (logo) {
4580
4582
  onApply();
4581
4583
  setLogoSelected(false);
4584
+ console.log('handleApplyLogo', logo);
4582
4585
  }
4583
4586
  };
4584
4587
  return React.createElement(React.Fragment, null, React.createElement("div", {
@@ -5848,14 +5851,33 @@ var MiddleMenu = function MiddleMenu(_ref) {
5848
5851
  */
5849
5852
  var LogoEditor = function LogoEditor(_ref) {
5850
5853
  var stepperId = _ref.stepperId,
5851
- onApply = _ref.onApply;
5854
+ onApply = _ref.onApply,
5855
+ customLogoColorList = _ref.customLogoColorList,
5856
+ defaultColorList = _ref.defaultColorList,
5857
+ logoData = _ref.logoData;
5852
5858
  var _use3dddPlus = use3dddPlus(function (state) {
5853
- return [state.setSelectedStepper];
5859
+ return [state.setSelectedStepper, state.myLogoHandler];
5854
5860
  }),
5855
- setSelectedStepper = _use3dddPlus[0];
5861
+ setSelectedStepper = _use3dddPlus[0],
5862
+ myLogoHandler = _use3dddPlus[1];
5856
5863
  React.useEffect(function () {
5857
5864
  setSelectedStepper(stepperId);
5865
+ if (stepperId == undefined) {
5866
+ myLogoHandler(logoData);
5867
+ console.log('logoData', logoData);
5868
+ }
5858
5869
  }, [stepperId]);
5870
+ React.useEffect(function () {
5871
+ use3dddPlus.setState({
5872
+ customUploadLogoColorList: customLogoColorList
5873
+ });
5874
+ }, [customLogoColorList]);
5875
+ React.useEffect(function () {
5876
+ use3dddPlus.setState({
5877
+ defaultColorList: defaultColorList
5878
+ });
5879
+ }, [defaultColorList]);
5880
+ console.log('defaultColorList', defaultColorList);
5859
5881
  return (
5860
5882
  // <Modal
5861
5883
  // backdropStyle={`z-[7]`}