@datlv-trustshop/shopify-inapp-components 0.1.32 → 0.2.2

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",
@@ -254,5 +254,5 @@ export const WhatsNew = ({ className = "", onProductUpdateClick, onArticleClick,
254
254
  }
255
255
  }, children: update.button_learn_more || "Learn more" }))] })] }), _jsx("div", { style: mergeStyles(sdkStyles.slideImage, isMobile ? mobileStyles.slideImage : {}), children: _jsx(ImageLoading, { src: update.imageUrl ||
256
256
  update.image_url ||
257
- "https://asset.trustshop.io/dashboard/news-review-summary.png", alt: `what-new-${update.id}`, width: 712, height: 400, borderRadius: 12 }) })] }, update.id))) }) })) : (_jsx("div", { ref: slideContainerRef, style: mergeStyles(sdkStyles.slidesContainer, { overflow: "hidden", scrollbarWidth: "none" }, mobileStyles.slidesContainer), className: isMobile ? "whats-new-mobile-scrollbar" : "", onTouchStart: isMobile ? handleTouchStart : undefined, onTouchMove: isMobile ? handleTouchMove : undefined, onTouchEnd: isMobile ? handleTouchEnd : undefined, children: _jsx(ArticleList, { layout: "slide", onArticleClick: handleArticleClick, showThumbnail: true, showAuthor: true, showDate: true, currentIndex: articleIndex, onSlideChange: setArticleIndex, showNavigation: false }) })) })] }) })] }));
257
+ "https://asset.trustshop.io/dashboard/news-review-summary.png", alt: `what-new-${update.id}`, width: 712, height: 400, borderRadius: 12 }) })] }, update.id))) }) })) : (_jsx("div", { ref: slideContainerRef, style: mergeStyles(sdkStyles.slidesContainer, { overflowX: "hidden", overflowY: "hidden", scrollbarWidth: "none" }, mobileStyles.slidesContainer), className: isMobile ? "whats-new-mobile-scrollbar" : "", onTouchStart: isMobile ? handleTouchStart : undefined, onTouchMove: isMobile ? handleTouchMove : undefined, onTouchEnd: isMobile ? handleTouchEnd : undefined, children: _jsx(ArticleList, { layout: "slide", onArticleClick: handleArticleClick, showThumbnail: true, showAuthor: true, showDate: true, currentIndex: articleIndex, onSlideChange: setArticleIndex, showNavigation: false }) })) })] }) })] }));
258
258
  };
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datlv-trustshop/shopify-inapp-components",
3
- "version": "0.1.32",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "description": "React TypeScript components for Shopify in-app dashboard content",
6
6
  "main": "dist/index.js",