@riosst100/pwa-marketplace 1.9.8 → 2.0.0

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.8",
4
+ "version": "2.0.0",
5
5
  "main": "src/index.js",
6
6
  "pwa-studio": {
7
7
  "targets": {
package/src/intercept.js CHANGED
@@ -3,6 +3,7 @@ const moduleOverridePlugin = require('./moduleOverrideWebpackPlugin');
3
3
  const { DefinePlugin } = require('webpack');
4
4
  const { getAvailableWebsitesConfigData } = require('./Utilities/graphQL');
5
5
  const LocalizationPlugin = require('@magento/pwa-buildpack/lib/WebpackTools/plugins/LocalizationPlugin');
6
+ const CopyPlugin = require("copy-webpack-plugin");
6
7
 
7
8
  module.exports = targets => {
8
9
  // Perform the asynchronous operation outside the tap
@@ -13,6 +14,10 @@ module.exports = targets => {
13
14
  availableWebsites = await getAvailableWebsitesConfigData();
14
15
  })();
15
16
 
17
+ targets.of('@magento/pwa-buildpack').transformUpward.tap(def => {
18
+ def.staticFromRoot.inline.body.file.template.inline = './static-files/{{ filename }}';
19
+ });
20
+
16
21
  targets.of('@magento/pwa-buildpack').specialFeatures.tap(features => {
17
22
  features[targets.name] = { i18n: true, esModules: true, cssModules: true, graphqlQueries: true };
18
23
  });
@@ -155,6 +160,12 @@ module.exports = targets => {
155
160
  }).apply(compiler);
156
161
  });
157
162
 
163
+ targets.of('@magento/pwa-buildpack').webpackCompiler.tap(compiler => {
164
+ new CopyPlugin({
165
+ patterns: [{ from: 'node_modules/@riosst100/pwa-marketplace/src/static-files', to: 'static-files' }]
166
+ }).apply(compiler);
167
+ });
168
+
158
169
  // Handle the routes directly within the routes tap
159
170
  targets.of("@magento/venia-ui").routes.tap(routesArray => {
160
171
  routesArray.push(...routes);
@@ -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