@riosst100/pwa-marketplace 1.9.7 → 1.9.9

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@riosst100/pwa-marketplace",
3
3
  "author": "riosst100@gmail.com",
4
- "version": "1.9.7",
4
+ "version": "1.9.9",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
package/src/intercept.js CHANGED
@@ -13,6 +13,10 @@ module.exports = targets => {
13
13
  availableWebsites = await getAvailableWebsitesConfigData();
14
14
  })();
15
15
 
16
+ targets.of('@magento/pwa-buildpack').transformUpward.tap(def => {
17
+ def.staticFromRoot.inline.body.file.template.inline = './static-files/{{ filename }}';
18
+ });
19
+
16
20
  targets.of('@magento/pwa-buildpack').specialFeatures.tap(features => {
17
21
  features[targets.name] = { i18n: true, esModules: true, cssModules: true, graphqlQueries: true };
18
22
  });
@@ -40,10 +40,10 @@ const Adapter = props => {
40
40
  const match = location && location.pathname.split("/")[1];
41
41
  let websiteCodeInUrl = websiteCodes.find((str) => str === match);
42
42
 
43
- // const { getWebsiteByUserIp } = useWebsiteByIp(websiteCodeInUrl);
44
- const getWebsiteByUserIp = {
45
- countryCode: 'SG'
46
- }
43
+ const { getWebsiteByUserIp } = useWebsiteByIp(websiteCodeInUrl);
44
+ // const getWebsiteByUserIp = {
45
+ // countryCode: 'SG'
46
+ // }
47
47
 
48
48
  useEffect(() => {
49
49
  if (websiteCodeInUrl) {
@@ -91,7 +91,7 @@ const Adapter = props => {
91
91
  );
92
92
  }
93
93
  }
94
- }, [websiteCodeInUrl])
94
+ }, [websiteCodeInUrl, getWebsiteByUserIp])
95
95
 
96
96
  // TODO: Replace with app skeleton. See PWA-547.
97
97
  if (!initialized) {
@@ -43,7 +43,7 @@ const Header = props => {
43
43
  const baseUrl = data?.storeConfig?.base_media_url;
44
44
  const imageSource = data?.storeConfig?.header_logo_src;
45
45
  const LogoImageSource = `${baseUrl}/logo/${imageSource}`;
46
- const IMAGE_HEIGHT = data?.storeConfig?.logo_width || 33;
46
+ const IMAGE_HEIGHT = data?.storeConfig?.logo_width || 25.23;
47
47
  const IMAGE_WIDTH = data?.storeConfig?.logo_height || 170;
48
48
  const IMAGE_ALT = data?.storeConfig?.logo_alt || 'TCG Collective';
49
49
 
@@ -116,8 +116,8 @@ const MegaMenuItem = props => {
116
116
  handleMenuItemFocus();
117
117
  }}
118
118
  onMouseLeave={e => {
119
- handleClickOutside(e);
120
- handleCloseSubMenu();
119
+ // handleClickOutside(e);
120
+ // handleCloseSubMenu();
121
121
  }}
122
122
  >
123
123
  <Link
@@ -137,9 +137,7 @@ const Submenu = props => {
137
137
  'grid grid-cols-6',
138
138
  )}
139
139
  >
140
- {shopByItems.length ? (<div className={classes.submenuColumn}>
141
- {subMenus}
142
- </div>) : subMenus}
140
+ {subMenus}
143
141
  {shopBy}
144
142
  </div>
145
143
  </div>
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "Venia",
3
+ "short_name": "Venia",
4
+ "start_url": "/",
5
+ "theme_color": "#1F39FF",
6
+ "display": "standalone",
7
+ "background_color": "#fff",
8
+ "description": "Shop the look",
9
+ "icons": [
10
+ {
11
+ "src": "/venia-static/icons/venia_circle_144.png",
12
+ "sizes": "144x144",
13
+ "type": "image/png"
14
+ },
15
+ {
16
+ "src": "/venia-static/icons/venia_circle_192.png",
17
+ "sizes": "192x192",
18
+ "type": "image/png"
19
+ },
20
+ {
21
+ "src": "/venia-static/icons/venia_circle_512.png",
22
+ "sizes": "512x512",
23
+ "type": "image/png"
24
+ },
25
+ {
26
+ "src": "/venia-static/icons/venia_maskable_512.png",
27
+ "sizes": "512x512",
28
+ "type": "image/png",
29
+ "purpose": "maskable"
30
+ }
31
+ ]
32
+ }
Binary file
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "Venia",
3
+ "short_name": "Venia",
4
+ "start_url": "/",
5
+ "theme_color": "#1F39FF",
6
+ "display": "standalone",
7
+ "background_color": "#fff",
8
+ "description": "Shop the look",
9
+ "icons": [
10
+ {
11
+ "src": "/venia-static/icons/venia_circle_144.png",
12
+ "sizes": "144x144",
13
+ "type": "image/png"
14
+ },
15
+ {
16
+ "src": "/venia-static/icons/venia_circle_192.png",
17
+ "sizes": "192x192",
18
+ "type": "image/png"
19
+ },
20
+ {
21
+ "src": "/venia-static/icons/venia_circle_512.png",
22
+ "sizes": "512x512",
23
+ "type": "image/png"
24
+ },
25
+ {
26
+ "src": "/venia-static/icons/venia_maskable_512.png",
27
+ "sizes": "512x512",
28
+ "type": "image/png",
29
+ "purpose": "maskable"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,2 @@
1
+ User-agent: *
2
+ Allow: /
Binary file