@datlv-trustshop/shopify-inapp-components 0.1.14 → 0.1.15

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.
@@ -23,7 +23,6 @@ export interface PartnerIntegrationProps {
23
23
  onInstall: () => void;
24
24
  onOpen: () => void;
25
25
  }) => React.ReactNode;
26
- maxColumns?: 1 | 2 | 3;
27
26
  showEmptyState?: boolean;
28
27
  statusProvider?: IntegrationStatusProvider;
29
28
  }
@@ -3,7 +3,7 @@ import { Badge, BlockStack, Box, Button, Card, InlineStack, Text, Grid, Skeleton
3
3
  import { ExternalIcon } from "@shopify/polaris-icons";
4
4
  import { usePartnerIntegrations } from "../hooks/usePartnerIntegration";
5
5
  import { useDashboardContext } from "../provider/DashboardProvider";
6
- export const PartnerIntegration = ({ className = "", onManage, onInstall, onOpen, onUpgradeClick, renderCard, maxColumns = 2, showEmptyState = true, statusProvider, }) => {
6
+ export const PartnerIntegration = ({ className = "", onManage, onInstall, onOpen, onUpgradeClick, renderCard, showEmptyState = true, statusProvider, }) => {
7
7
  const { groups, loading, error } = usePartnerIntegrations();
8
8
  const { translations } = useDashboardContext();
9
9
  const handleManage = (item) => {
@@ -151,7 +151,13 @@ export const PartnerIntegration = ({ className = "", onManage, onInstall, onOpen
151
151
  };
152
152
  // Loading state
153
153
  if (loading) {
154
- return (_jsx("div", { className: className, children: _jsx(BlockStack, { gap: "600", children: [1, 2, 3].map((groupIndex) => (_jsxs(BlockStack, { gap: "400", children: [_jsx(Box, { paddingInlineStart: { xs: "200", md: "0" }, children: _jsx(SkeletonBodyText, { lines: 1 }) }), _jsx(Grid, { children: [1, 2].map((cardIndex) => (_jsx(Grid.Cell, { columnSpan: { xs: 6, md: maxColumns === 1 ? 6 : 6 }, children: _jsx(Card, { children: _jsx(BlockStack, { gap: "300", children: _jsx(SkeletonBodyText, { lines: 3 }) }) }) }, `skeleton-card-${groupIndex}-${cardIndex}`))) })] }, `skeleton-group-${groupIndex}`))) }) }));
154
+ return (_jsx("div", { className: className, children: _jsx(BlockStack, { gap: "600", children: [1, 2, 3].map((groupIndex) => (_jsxs(BlockStack, { gap: "400", children: [_jsx(Box, { paddingInlineStart: { xs: "200", md: "0" }, children: _jsx(SkeletonBodyText, { lines: 1 }) }), _jsx(Grid, { children: [1, 2].map((cardIndex) => (_jsx(Grid.Cell, { columnSpan: {
155
+ xs: 6,
156
+ sm: 6,
157
+ md: 3,
158
+ lg: 3,
159
+ xl: 3,
160
+ }, children: _jsx(Card, { children: _jsx(BlockStack, { gap: "300", children: _jsx(SkeletonBodyText, { lines: 3 }) }) }) }, `skeleton-card-${groupIndex}-${cardIndex}`))) })] }, `skeleton-group-${groupIndex}`))) }) }));
155
161
  }
156
162
  // Error state
157
163
  if (error) {
@@ -170,7 +176,10 @@ export const PartnerIntegration = ({ className = "", onManage, onInstall, onOpen
170
176
  // Render groups
171
177
  return (_jsx("div", { className: className, children: _jsx(BlockStack, { gap: "600", children: groups.map((group) => (_jsxs(BlockStack, { gap: "400", children: [_jsx(Box, { paddingInlineStart: { xs: "200", md: "0" }, children: _jsx(Text, { as: "h3", variant: "headingMd", fontWeight: "semibold", children: group.title }) }), _jsx(Grid, { children: group.items.map((item) => (_jsx(Grid.Cell, { columnSpan: {
172
178
  xs: 6,
173
- md: maxColumns === 1 ? 6 : maxColumns === 3 ? 2 : 3,
179
+ sm: 6,
180
+ md: 3,
181
+ lg: 3,
182
+ xl: 3,
174
183
  }, children: renderIntegrationCard(item) }, `integration-cell--${item.id || item.key}`))) })] }, `integration-group--${group.key}`))) }) }));
175
184
  };
176
185
  export default PartnerIntegration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datlv-trustshop/shopify-inapp-components",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "private": false,
5
5
  "description": "React TypeScript components for Shopify in-app dashboard content",
6
6
  "main": "dist/index.js",