@datlv-trustshop/shopify-inapp-components 0.2.1 → 0.2.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.
@@ -108,7 +108,7 @@ export const ArticleList = ({ limit, className = "", onArticleClick, layout = "s
108
108
  objectFit: "cover",
109
109
  } }) })), article.category && (_jsx("div", { style: {
110
110
  color: "var(--p-color-text-emphasis, #616161)",
111
- }, children: _jsx("span", { style: { fontSize: "13px" }, children: article.category }) }))] }), _jsxs("div", { style: {
111
+ }, children: _jsx("span", { style: { fontSize: "13px" }, children: article.category }) }))] }), _jsxs("div", { className: "title-button", style: {
112
112
  display: "flex",
113
113
  flexDirection: "column",
114
114
  gap: "6px",
@@ -51,7 +51,7 @@ export const GrowApps = ({ className = "", onAppClick, onDismiss, dismissKey = D
51
51
  }
52
52
  }, [dismissKey, dismissDuration]);
53
53
  const handleGetAppClick = (app) => {
54
- const url = app.app_url || app.get_app || "#";
54
+ const url = app.button_install_link || app.app_url || app.get_app || "#";
55
55
  if (url && url !== "#") {
56
56
  window.open(url, "_blank");
57
57
  }
@@ -190,7 +190,8 @@ export const GrowApps = ({ className = "", onAppClick, onDismiss, dismissKey = D
190
190
  transform: "translateX(0px)",
191
191
  }, children: growApps.map((app, index) => {
192
192
  const iconUrl = app.icon_url || app.imageUrl || "";
193
- const buttonText = app.button_text ||
193
+ const buttonText = app.button_install_text ||
194
+ app.button_text ||
194
195
  app.button_get_app ||
195
196
  growAppsTranslations?.install ||
196
197
  "Get app";
package/dist/index.d.ts CHANGED
@@ -16,6 +16,6 @@ export { useCampaignTracking, useCampaignVisibility } from './hooks/useCampaignT
16
16
  import { DashboardEngine } from "./core/engine";
17
17
  declare const _default: {
18
18
  DashboardEngine: typeof DashboardEngine;
19
- DashboardProvider: import("react").FC<import("./provider/DashboardProvider").DashboardProviderProps>;
19
+ DashboardProvider: import("react").FC<import(".").DashboardProviderProps>;
20
20
  };
21
21
  export default _default;
@@ -11,6 +11,8 @@ export interface GrowApp {
11
11
  imageUrl?: string;
12
12
  button_text?: string;
13
13
  button_get_app?: string;
14
+ button_install_text?: string;
15
+ button_install_link?: string;
14
16
  app_url?: string;
15
17
  get_app?: string;
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datlv-trustshop/shopify-inapp-components",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "description": "React TypeScript components for Shopify in-app dashboard content",
6
6
  "main": "dist/index.js",