@lancom/shared 0.0.136 → 0.0.139

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.
@@ -182,9 +182,9 @@ export default {
182
182
  computed: {
183
183
  ...mapGetters(['contacts', 'shop'])
184
184
  },
185
- mounted() {
186
- this.preloadReCaptcha();
187
- },
185
+ // mounted() {
186
+ // this.preloadReCaptcha();
187
+ // },
188
188
  methods: {
189
189
  async submit() {
190
190
  try {
@@ -41,11 +41,11 @@ export default {
41
41
  valid = currentIndex === targetIndex;
42
42
  }
43
43
  if (valid) {
44
- return this.$slots.default;
44
+ return this.$slots.content || this.$slots.default;
45
45
  }
46
46
  return null;
47
47
  }
48
- return null;
48
+ return this.$slots.shadow;
49
49
  }
50
50
  };
51
51
  </script>
@@ -100,9 +100,9 @@ export default {
100
100
  computed: {
101
101
  ...mapGetters(['shop'])
102
102
  },
103
- mounted() {
104
- this.preloadReCaptcha();
105
- },
103
+ // mounted() {
104
+ // this.preloadReCaptcha();
105
+ // },
106
106
  methods: {
107
107
  async submit() {
108
108
  const isValid = await this.$refs.form.validate();
package/nuxt.config.js CHANGED
@@ -62,6 +62,7 @@ module.exports = (config, axios, { raygunClient } = {}) => ({
62
62
  ],
63
63
  axios: {
64
64
  },
65
+ dev: !!config.IS_LOCAL,
65
66
  env: {
66
67
  NODE_ENV: config.NODE_ENV || 'development'
67
68
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.136",
3
+ "version": "0.0.139",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {
package/store/index.js CHANGED
@@ -10,6 +10,7 @@ export const state = () => ({
10
10
  orderInfo: {},
11
11
  pricing: {},
12
12
  notificationBar: {},
13
+ discountPopup: {},
13
14
  helpMessages: {},
14
15
  depositInfo: {}
15
16
  });
@@ -22,6 +23,7 @@ export const getters = {
22
23
  helpMessages: ({ helpMessages }) => helpMessages || {},
23
24
  contacts: ({ contacts }) => contacts || {},
24
25
  notificationBar: ({ notificationBar }) => notificationBar || {},
26
+ discountPopup: ({ discountPopup }) => discountPopup || {},
25
27
  pricingSettings: ({ pricing }) => pricing || {},
26
28
  orderSettings: ({ orderInfo }) => orderInfo || {},
27
29
  gstTax: ({ pricing }) => pricing?.gstTax || 0,
@@ -73,11 +75,12 @@ export const actions = {
73
75
  };
74
76
 
75
77
  export const mutations = {
76
- setSettings(state, { contacts, pricing, notificationBar, order, depositInfo }) {
78
+ setSettings(state, { contacts, pricing, notificationBar, discountPopup, order, depositInfo }) {
77
79
  state.contacts = contacts;
78
80
  state.pricing = pricing;
79
81
  state.orderInfo = order;
80
82
  state.notificationBar = notificationBar;
83
+ state.discountPopup = discountPopup;
81
84
  state.depositInfo = depositInfo;
82
85
  },
83
86
  setShop(state, shop) {