@lancom/shared 0.0.302 → 0.0.303

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.
@@ -62,6 +62,14 @@
62
62
  @click.stop="$emit('duplicate')">
63
63
  Duplicate
64
64
  </div>
65
+ &nbsp;
66
+ &#124;
67
+ &nbsp;
68
+ <div
69
+ class="lc_medium16 EditorLayersLayer__action"
70
+ @click.stop="$emit('remove')">
71
+ Remove
72
+ </div>
65
73
  </div>
66
74
  </div>
67
75
  </div>
@@ -74,6 +74,7 @@
74
74
  opacity: 1;
75
75
  position: absolute;
76
76
  top: 30px;
77
+ max-width: 250px;
77
78
  }
78
79
  &__cover-hover {
79
80
  transition: opacity 0.45s ease-in-out;
@@ -81,6 +82,7 @@
81
82
  opacity: 0;
82
83
  position: absolute;
83
84
  top: 30px;
85
+ max-width: 250px;
84
86
  }
85
87
  &__link {
86
88
  position: relative;
@@ -19,7 +19,7 @@ const COUNTRIES_SIZE_SYSTEMS = {
19
19
  GB: 'UK'
20
20
  };
21
21
 
22
- async function googleShoppingFeed(axios, config, availableStores, country) {
22
+ async function googleShoppingFeed(axios, config, availableStores, country, endSlug = '') {
23
23
  const { data } = await axios.get(`${config.LOCAL_API_URL}/feed/products?host=${config.HOST_NAME}&country=${country || ''}`);
24
24
  const spliceFirstImage = images => (images || []).splice(0, 1)[0];
25
25
  const getImages = images => (images || []).length > 0 ? images : null;
@@ -50,7 +50,7 @@ async function googleShoppingFeed(axios, config, availableStores, country) {
50
50
  const description = `${product.description || product.fabricInfoShort || product.name || ''}`
51
51
  .replace(/&nbsp;/g, ' ')
52
52
  .replace(/&middot;/, '·');
53
- let link = `https://${config.HOST_NAME}/${product.brand.alias}/${product.productType.alias}/${product.alias}?color=${sp.color.alias}`;
53
+ let link = `https://${config.HOST_NAME}/${product.brand.alias}/${product.productType.alias}/${product.alias}${endSlug || ''}?color=${sp.color.alias}`;
54
54
  if (sp.multipackQty) {
55
55
  link = `${link}&multipack=${sp.SKU}`
56
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.302",
3
+ "version": "0.0.303",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {