avada-components-seoon 1.0.2 → 1.0.3
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/dist/components/CrossAppBanner/index.d.ts +33 -0
- package/dist/components/CrossAppBanner/index.d.ts.map +1 -1
- package/dist/components/CrossAppBanner/index.js +35 -62
- package/dist/components/CrossAppBanner/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -3
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
import './index.scss';
|
|
2
2
|
import { CrossAppBannerComponent } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* CrossAppBanner Component
|
|
5
|
+
*
|
|
6
|
+
* A banner component that displays promotional content for other Avada apps.
|
|
7
|
+
* It checks the installation status of specified apps and shows the first non-installed app.
|
|
8
|
+
* Each app can be dismissed independently.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* // Basic usage
|
|
13
|
+
* <CrossAppBanner
|
|
14
|
+
* shopDomain="your-store.myshopify.com"
|
|
15
|
+
* />
|
|
16
|
+
*
|
|
17
|
+
* // With custom callbacks
|
|
18
|
+
* <CrossAppBanner
|
|
19
|
+
* shopDomain="your-store.myshopify.com"
|
|
20
|
+
* clickInstallCallback={() => console.log('Install clicked')}
|
|
21
|
+
* />
|
|
22
|
+
*
|
|
23
|
+
* // With specific apps to check
|
|
24
|
+
* <CrossAppBanner
|
|
25
|
+
* shopDomain="your-store.myshopify.com"
|
|
26
|
+
* appIds={['avada-seo-suite', 'ai-product-copy']}
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @param props - Component props
|
|
31
|
+
* @param props.shopDomain - The shop domain to check app installation status
|
|
32
|
+
* @param props.clickInstallCallback - Callback function when user clicks install button
|
|
33
|
+
* @param props.appIds - List of app IDs to check in priority order, current support 'avada-seo-suite', 'seoon-blog', 'ai-product-copy', 'ap-speed-optimizer'
|
|
34
|
+
* @returns JSX.Element | null
|
|
35
|
+
*/
|
|
3
36
|
export declare const CrossAppBanner: CrossAppBannerComponent;
|
|
4
37
|
export default CrossAppBanner;
|
|
5
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CrossAppBanner/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CrossAppBanner/index.tsx"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAC;AAYtB,OAAO,EAKL,uBAAuB,EAExB,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,cAAc,EAAE,uBA0L5B,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AppProvider, Button, LegacyCard, Text, Thumbnail } from '@shopify/polaris';
|
|
3
|
-
import { useEffect, useState
|
|
4
|
-
import { QueryClient, QueryClientProvider, useQuery } from '@tanstack/react-query';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
5
4
|
import './index.scss';
|
|
6
5
|
import { listCrossApps } from '../../config/constants';
|
|
7
6
|
import { getAppIdByOrigin, getCheckInstalledProxyUrl, getProxyAccessToken, } from '../../helpers/getProxyEndPoint';
|
|
7
|
+
import useFetchApi from '../../hooks/api/useFetchApi';
|
|
8
8
|
import { XIcon } from '@shopify/polaris-icons';
|
|
9
9
|
import { isEmpty } from 'lodash';
|
|
10
10
|
import { APP_IDS, } from './types';
|
|
@@ -41,16 +41,6 @@ import { APP_IDS, } from './types';
|
|
|
41
41
|
* @param props.appIds - List of app IDs to check in priority order, current support 'avada-seo-suite', 'seoon-blog', 'ai-product-copy', 'ap-speed-optimizer'
|
|
42
42
|
* @returns JSX.Element | null
|
|
43
43
|
*/
|
|
44
|
-
const defaultQueryClient = new QueryClient({
|
|
45
|
-
defaultOptions: {
|
|
46
|
-
queries: {
|
|
47
|
-
staleTime: 25 * 60 * 1000,
|
|
48
|
-
gcTime: 30 * 60 * 1000,
|
|
49
|
-
retry: 2,
|
|
50
|
-
refetchOnWindowFocus: false,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
44
|
export const CrossAppBanner = ({ shopDomain, clickInstallCallback, appIds = ['avada-seo-suite', 'seoon-blog', 'ai-product-copy', 'ap-speed-optimizer'], }) => {
|
|
55
45
|
const [isBannerDismissed, setIsBannerDismissed] = useState(false);
|
|
56
46
|
const [dismissedApps, setDismissedApps] = useState({
|
|
@@ -99,54 +89,39 @@ export const CrossAppBanner = ({ shopDomain, clickInstallCallback, appIds = ['av
|
|
|
99
89
|
// Get current app to check based on priority
|
|
100
90
|
const currentAppId = appIds[currentPriorityIndex];
|
|
101
91
|
const shouldCheckCurrentApp = currentAppId && !foundNonInstalledApp;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// Check if current app is dismissed
|
|
119
|
-
const isCurrentAppDismissed = currentAppId
|
|
120
|
-
? localStorage.getItem(getStorageKey(currentAppId)) === 'true'
|
|
121
|
-
: false;
|
|
122
|
-
const { data, isLoading: loading, refetch: fetchApi, } = useQuery({
|
|
123
|
-
queryKey: ['appInstallation', currentAppId, shopDomain],
|
|
124
|
-
queryFn: () => fetchAppInstallationStatus(currentAppId),
|
|
125
|
-
enabled: shouldCheckCurrentApp && !foundNonInstalledApp && !isCurrentAppDismissed,
|
|
126
|
-
staleTime: 25 * 60 * 1000,
|
|
127
|
-
gcTime: 30 * 60 * 1000,
|
|
128
|
-
retry: 2,
|
|
129
|
-
refetchOnWindowFocus: false,
|
|
92
|
+
// Only check installation for current priority app
|
|
93
|
+
const { fetchApi, data, loading } = useFetchApi({
|
|
94
|
+
url: getCheckInstalledProxyUrl(currentAppId),
|
|
95
|
+
headers: {
|
|
96
|
+
'X-SEO-Access-Token': getProxyAccessToken(currentAppId),
|
|
97
|
+
'X-SEO-Shop-Domain': shopDomain,
|
|
98
|
+
},
|
|
99
|
+
initLoad: false,
|
|
100
|
+
initLoading: false,
|
|
101
|
+
keepPreviousData: false,
|
|
102
|
+
onSuccess: data => {
|
|
103
|
+
return {
|
|
104
|
+
...data,
|
|
105
|
+
appId: currentAppId,
|
|
106
|
+
};
|
|
107
|
+
},
|
|
130
108
|
});
|
|
109
|
+
// Effect to check app installation
|
|
131
110
|
useEffect(() => {
|
|
132
|
-
if (shouldCheckCurrentApp
|
|
133
|
-
|
|
111
|
+
if (shouldCheckCurrentApp) {
|
|
112
|
+
const isDismissed = localStorage.getItem(getStorageKey(currentAppId)) === 'true';
|
|
113
|
+
if (!isDismissed) {
|
|
114
|
+
fetchApi();
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
// If app is dismissed, move to next app
|
|
134
118
|
setCurrentPriorityIndex(prev => prev + 1);
|
|
135
119
|
}
|
|
136
120
|
}
|
|
137
|
-
}, [
|
|
138
|
-
shouldCheckCurrentApp,
|
|
139
|
-
foundNonInstalledApp,
|
|
140
|
-
isCurrentAppDismissed,
|
|
141
|
-
currentPriorityIndex,
|
|
142
|
-
appIds.length,
|
|
143
|
-
]);
|
|
121
|
+
}, [currentAppId, shouldCheckCurrentApp]);
|
|
144
122
|
// Effect to handle installation check result
|
|
145
123
|
useEffect(() => {
|
|
146
|
-
if (!isEmpty(data) &&
|
|
147
|
-
data.appId === currentAppId &&
|
|
148
|
-
shouldCheckCurrentApp &&
|
|
149
|
-
!foundNonInstalledApp) {
|
|
124
|
+
if (!isEmpty(data) && data.appId === currentAppId && shouldCheckCurrentApp) {
|
|
150
125
|
const newInstalledApps = { ...installedApps };
|
|
151
126
|
const isInstalled = currentAppId === 'avada-seo-suite' || currentAppId === 'seoon-blog'
|
|
152
127
|
? data.userType === 'user'
|
|
@@ -154,15 +129,13 @@ export const CrossAppBanner = ({ shopDomain, clickInstallCallback, appIds = ['av
|
|
|
154
129
|
newInstalledApps[APP_IDS[currentAppId]] = isInstalled;
|
|
155
130
|
setInstalledApps(newInstalledApps);
|
|
156
131
|
if (isInstalled) {
|
|
157
|
-
|
|
158
|
-
setCurrentPriorityIndex(prev => prev + 1);
|
|
159
|
-
}
|
|
132
|
+
setCurrentPriorityIndex(prev => prev + 1);
|
|
160
133
|
}
|
|
161
134
|
else {
|
|
162
135
|
setFoundNonInstalledApp(true);
|
|
163
136
|
}
|
|
164
137
|
}
|
|
165
|
-
}, [data]);
|
|
138
|
+
}, [data, currentAppId, shouldCheckCurrentApp]);
|
|
166
139
|
const handleDismiss = (appId) => {
|
|
167
140
|
localStorage.setItem(getStorageKey(appId), 'true');
|
|
168
141
|
setIsBannerDismissed(true);
|
|
@@ -191,11 +164,11 @@ export const CrossAppBanner = ({ shopDomain, clickInstallCallback, appIds = ['av
|
|
|
191
164
|
if (checking || !appToShow || isBannerDismissed || isEmpty(data))
|
|
192
165
|
return null;
|
|
193
166
|
const currentAppIdToShow = Object.entries(APP_IDS).find(([_, value]) => value === appToShow.key)?.[0];
|
|
194
|
-
return (_jsx(AppProvider, { i18n: {}, children: _jsx(
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
167
|
+
return (_jsx(AppProvider, { i18n: {}, children: _jsx(LegacyCard, { sectioned: true, children: _jsxs("div", { className: 'AC-CrossAppBanner', children: [_jsx("div", { className: 'AC-CrossAppBanner__Thumbnail', children: _jsx(Thumbnail, { size: "small", source: appToShow.image, alt: '' }) }), _jsxs("div", { className: 'AC-CrossAppBanner__Content', children: [_jsx(Text, { variant: "headingMd", as: "strong", children: appToShow.title }), _jsx("br", {}), appToShow.description] }), _jsx("div", { className: 'AC-CrossAppBanner__Install', children: _jsx(Button, { onClick: () => {
|
|
168
|
+
window.open(appToShow.url);
|
|
169
|
+
if (clickInstallCallback)
|
|
170
|
+
clickInstallCallback();
|
|
171
|
+
}, children: appToShow.actionLabel }) }), _jsx("div", { className: 'AC-CrossAppBanner__Close', children: _jsx(Button, { icon: XIcon, variant: "tertiary", onClick: () => handleDismiss(currentAppIdToShow) }) })] }) }) }));
|
|
199
172
|
};
|
|
200
173
|
export default CrossAppBanner;
|
|
201
174
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CrossAppBanner/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAa,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CrossAppBanner/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAa,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,WAAW,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAML,OAAO,GACR,MAAM,SAAS,CAAC;AAEjB;;;;;;;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AAa,CAAC,kBAAkB,CAAC,GAChD,GACE,IACF,GACK,GACD,CACf,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "avada-components-seoon",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A collection of React components built with Shopify Polaris",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,8 +45,7 @@
|
|
|
45
45
|
"react": "^18.0.0",
|
|
46
46
|
"react-circular-progressbar": "^2.2.0",
|
|
47
47
|
"react-dom": "^18.0.0",
|
|
48
|
-
"react-redux": "^9.2.0"
|
|
49
|
-
"@tanstack/react-query": "^5.76.2"
|
|
48
|
+
"react-redux": "^9.2.0"
|
|
50
49
|
},
|
|
51
50
|
"devDependencies": {
|
|
52
51
|
"@google-cloud/translate": "8.0.2",
|