@riosst100/pwa-marketplace 1.1.2 → 1.1.4
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/i18n/en_US.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"addressBookPage.addDialogTitle": "New Address",
|
|
27
27
|
"addressBookPage.addressBookText": "Address Book",
|
|
28
28
|
"addressBookPage.editDialogTitle": "Edit Address",
|
|
29
|
-
"addressBookPage.makeDefaultAddress": "Make this my default
|
|
29
|
+
"addressBookPage.makeDefaultAddress": "Make this my default address222",
|
|
30
30
|
"addressBookPage.addAddressMessage": "You have added {count} address in your address book.",
|
|
31
31
|
"addressBookPage.telephone": "Contact Number {telephone}",
|
|
32
32
|
"addressCard.defaultText": "Default",
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@ const WebsiteSwitcher = props => {
|
|
|
34
34
|
|
|
35
35
|
storeGroups.forEach((group, key) => {
|
|
36
36
|
const stores = [];
|
|
37
|
-
group.forEach(({
|
|
37
|
+
group.forEach(({ websiteCode, websiteName, isCurrent, storeCode }) => {
|
|
38
38
|
let label = `${websiteName}`;
|
|
39
39
|
stores.push(
|
|
40
40
|
<li
|
|
@@ -70,8 +70,6 @@ const WebsiteSwitcher = props => {
|
|
|
70
70
|
|
|
71
71
|
let triggerLabel = currentWebsiteName ? `${currentWebsiteName}` : '';
|
|
72
72
|
|
|
73
|
-
console.log('triggerLabel: '+triggerLabel)
|
|
74
|
-
|
|
75
73
|
return (
|
|
76
74
|
<div className={classes.root} data-cy="WebsiteSwitcher-root">
|
|
77
75
|
<button
|
package/src/intercept.js
CHANGED
|
@@ -12,8 +12,8 @@ module.exports = targets => {
|
|
|
12
12
|
availableWebsites = await getAvailableWebsitesConfigData();
|
|
13
13
|
})();
|
|
14
14
|
|
|
15
|
-
targets.of('@magento/pwa-buildpack').specialFeatures.tap(
|
|
16
|
-
|
|
15
|
+
targets.of('@magento/pwa-buildpack').specialFeatures.tap(features => {
|
|
16
|
+
features[targets.name] = { i18n: true, esModules: true, cssModules: true, graphqlQueries: true };
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
targets.of('@magento/pwa-buildpack').webpackCompiler.tap(compiler => {
|
|
@@ -61,10 +61,6 @@ module.exports = targets => {
|
|
|
61
61
|
}).apply(compiler);
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
targets.of('@magento/pwa-buildpack').specialFeatures.tap(flags => {
|
|
65
|
-
flags[targets.name] = { esModules: true, cssModules: true, graphqlQueries: true };
|
|
66
|
-
});
|
|
67
|
-
|
|
68
64
|
// Handle the routes directly within the routes tap
|
|
69
65
|
targets.of("@magento/venia-ui").routes.tap(routesArray => {
|
|
70
66
|
routesArray.push(...routes);
|
|
@@ -2,7 +2,6 @@ import React, { Fragment, Suspense } from 'react';
|
|
|
2
2
|
import { shape, string } from 'prop-types';
|
|
3
3
|
import { Link, Route } from 'react-router-dom';
|
|
4
4
|
|
|
5
|
-
import Logo from '@magento/venia-ui/lib/components/Logo';
|
|
6
5
|
import AccountTrigger from '@magento/venia-ui/lib/components/Header/accountTrigger';
|
|
7
6
|
import CartTrigger from '@magento/venia-ui/lib/components/Header/cartTrigger';
|
|
8
7
|
import NavTrigger from '@magento/venia-ui/lib/components/Header/navTrigger';
|
|
@@ -28,18 +28,12 @@ const StoreSwitcher = props => {
|
|
|
28
28
|
if (!availableStores) return <Shimmer />;
|
|
29
29
|
|
|
30
30
|
const groups = [];
|
|
31
|
-
const hasOnlyOneGroup = storeGroups.size === 1;
|
|
32
31
|
|
|
33
32
|
storeGroups.forEach((group, key) => {
|
|
34
33
|
const stores = [];
|
|
35
|
-
group.forEach(({
|
|
36
|
-
let label
|
|
37
|
-
|
|
38
|
-
label = `${storeName}`;
|
|
39
|
-
} else {
|
|
40
|
-
label = `${storeGroupName} - ${storeName}`;
|
|
41
|
-
}
|
|
42
|
-
|
|
34
|
+
group.forEach(({ storeName, isCurrent, storeCode, websiteCode }) => {
|
|
35
|
+
let label = `${storeName}`;
|
|
36
|
+
|
|
43
37
|
stores.push(
|
|
44
38
|
<li
|
|
45
39
|
aria-selected={currentStoreName}
|
|
@@ -72,20 +66,18 @@ const StoreSwitcher = props => {
|
|
|
72
66
|
);
|
|
73
67
|
});
|
|
74
68
|
|
|
75
|
-
let triggerLabel = currentStoreName ? `${currentStoreName}` : '';
|
|
76
|
-
|
|
77
69
|
return (
|
|
78
70
|
<div className={classes.root} data-cy="StoreSwitcher-root">
|
|
79
71
|
<button
|
|
80
72
|
data-cy="StoreSwitcher-triggerButton"
|
|
81
73
|
className={classes.trigger}
|
|
82
|
-
aria-label={
|
|
74
|
+
aria-label={currentStoreName || ''}
|
|
83
75
|
onClick={handleTriggerClick}
|
|
84
76
|
ref={storeMenuTriggerRef}
|
|
85
77
|
data-cy="StoreSwitcher-trigger"
|
|
86
78
|
aria-expanded={storeMenuIsOpen}
|
|
87
79
|
>
|
|
88
|
-
{
|
|
80
|
+
{currentStoreName || ''}
|
|
89
81
|
</button>
|
|
90
82
|
<div
|
|
91
83
|
ref={storeMenuRef}
|