@burdenoff/microfe-store 2026.1014.1 → 2026.1028.1

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.
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { ExternalListingFields } from '../utils/externalListing';
3
+
4
+ interface ExternalListingBadgeProps {
5
+ product: ExternalListingFields;
6
+ className?: string;
7
+ }
8
+ /**
9
+ * Small, non-interactive chip for catalogue cards: tells the shopper that the
10
+ * item is sold in another Burdenoff product rather than through the store's
11
+ * cart. Cards are buttons that open the product page, which carries the actual
12
+ * "View on <product>" link, so this chip must not be a link itself.
13
+ */
14
+ export declare const ExternalListingBadge: FC<ExternalListingBadgeProps>;
15
+ export {};
@@ -0,0 +1,19 @@
1
+ import { useTr as e } from "../shared/hooks/useTr.js";
2
+ import { getExternalListing as t } from "../utils/externalListing.js";
3
+ import { ExternalLink as n } from "lucide-react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region src/components/ExternalListingBadge.tsx
6
+ var a = ({ product: a, className: o }) => {
7
+ let s = e(), c = t(a);
8
+ return c ? /* @__PURE__ */ i("span", {
9
+ className: `inline-flex items-center gap-1 rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary ${o ?? ""}`,
10
+ children: [/* @__PURE__ */ r(n, {
11
+ className: "size-3",
12
+ "aria-hidden": "true"
13
+ }), s("pages.marketplace.soldOnProduct", "On {{product}}", { product: c.productName })]
14
+ }) : null;
15
+ };
16
+ //#endregion
17
+ export { a as ExternalListingBadge };
18
+
19
+ //# sourceMappingURL=ExternalListingBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExternalListingBadge.js","names":[],"sources":["../../src/components/ExternalListingBadge.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { ExternalLink } from 'lucide-react';\nimport { useTr } from '../shared/hooks/useTr';\nimport { getExternalListing, type ExternalListingFields } from '../utils/externalListing';\n\ninterface ExternalListingBadgeProps {\n product: ExternalListingFields;\n className?: string;\n}\n\n/**\n * Small, non-interactive chip for catalogue cards: tells the shopper that the\n * item is sold in another Burdenoff product rather than through the store's\n * cart. Cards are buttons that open the product page, which carries the actual\n * \"View on <product>\" link, so this chip must not be a link itself.\n */\nexport const ExternalListingBadge: FC<ExternalListingBadgeProps> = ({ product, className }) => {\n const tr = useTr();\n const listing = getExternalListing(product);\n if (!listing) return null;\n return (\n <span\n className={`inline-flex items-center gap-1 rounded-full bg-bg-sunken px-2 py-0.5 text-xs font-medium text-text-secondary ${className ?? ''}`}\n >\n <ExternalLink className=\"size-3\" aria-hidden=\"true\" />\n {tr('pages.marketplace.soldOnProduct', 'On {{product}}', {\n product: listing.productName,\n })}\n </span>\n );\n};\n"],"mappings":";;;;;AAgBA,IAAa,KAAuD,EAAE,YAAS,mBAAgB;CAC7F,IAAM,IAAK,GAAO,EACZ,IAAU,EAAmB,EAAQ;AAE3C,QADK,IAEH,kBAAC,QAAD;EACE,WAAW,gHAAgH,KAAa;YAD1I,CAGE,kBAAC,GAAD;GAAc,WAAU;GAAS,eAAY;GAAS,CAAA,EACrD,EAAG,mCAAmC,kBAAkB,EACvD,SAAS,EAAQ,aAClB,CAAC,CACG;MATY"}
@@ -897,6 +897,8 @@ export type BrowseStoreQuery = {
897
897
  category?: string | null;
898
898
  tags: Array<string>;
899
899
  publishedAt?: string | null;
900
+ externalService?: string | null;
901
+ externalUrl?: string | null;
900
902
  publisher?: {
901
903
  __typename?: 'Publisher';
902
904
  id: string;
@@ -1227,6 +1229,8 @@ export type HomeGroupedProductsQuery = {
1227
1229
  category?: string | null;
1228
1230
  tags: Array<string>;
1229
1231
  publishedAt?: string | null;
1232
+ externalService?: string | null;
1233
+ externalUrl?: string | null;
1230
1234
  publisher?: {
1231
1235
  __typename?: 'Publisher';
1232
1236
  id: string;
@@ -1257,6 +1261,8 @@ export type HomeGroupedProductsQuery = {
1257
1261
  category?: string | null;
1258
1262
  tags: Array<string>;
1259
1263
  publishedAt?: string | null;
1264
+ externalService?: string | null;
1265
+ externalUrl?: string | null;
1260
1266
  publisher?: {
1261
1267
  __typename?: 'Publisher';
1262
1268
  id: string;
@@ -1287,6 +1293,8 @@ export type HomeGroupedProductsQuery = {
1287
1293
  category?: string | null;
1288
1294
  tags: Array<string>;
1289
1295
  publishedAt?: string | null;
1296
+ externalService?: string | null;
1297
+ externalUrl?: string | null;
1290
1298
  publisher?: {
1291
1299
  __typename?: 'Publisher';
1292
1300
  id: string;
@@ -1317,6 +1325,8 @@ export type HomeGroupedProductsQuery = {
1317
1325
  category?: string | null;
1318
1326
  tags: Array<string>;
1319
1327
  publishedAt?: string | null;
1328
+ externalService?: string | null;
1329
+ externalUrl?: string | null;
1320
1330
  publisher?: {
1321
1331
  __typename?: 'Publisher';
1322
1332
  id: string;
@@ -1364,6 +1374,8 @@ export type StoreProductDetailsQuery = {
1364
1374
  category?: string | null;
1365
1375
  tags: Array<string>;
1366
1376
  publishedAt?: string | null;
1377
+ externalService?: string | null;
1378
+ externalUrl?: string | null;
1367
1379
  createdAt: string;
1368
1380
  updatedAt: string;
1369
1381
  subType?: string | null;
@@ -1437,6 +1449,8 @@ export type StoreProductDetailsQuery = {
1437
1449
  category?: string | null;
1438
1450
  tags: Array<string>;
1439
1451
  publishedAt?: string | null;
1452
+ externalService?: string | null;
1453
+ externalUrl?: string | null;
1440
1454
  publisher?: {
1441
1455
  __typename?: 'Publisher';
1442
1456
  id: string;
@@ -1082,6 +1082,8 @@ var V = t`
1082
1082
  category
1083
1083
  tags
1084
1084
  publishedAt
1085
+ externalService
1086
+ externalUrl
1085
1087
  publisher {
1086
1088
  id
1087
1089
  name
@@ -1515,6 +1517,8 @@ var J = t`
1515
1517
  category
1516
1518
  tags
1517
1519
  publishedAt
1520
+ externalService
1521
+ externalUrl
1518
1522
  publisher {
1519
1523
  id
1520
1524
  name
@@ -1543,6 +1547,8 @@ var J = t`
1543
1547
  category
1544
1548
  tags
1545
1549
  publishedAt
1550
+ externalService
1551
+ externalUrl
1546
1552
  publisher {
1547
1553
  id
1548
1554
  name
@@ -1571,6 +1577,8 @@ var J = t`
1571
1577
  category
1572
1578
  tags
1573
1579
  publishedAt
1580
+ externalService
1581
+ externalUrl
1574
1582
  publisher {
1575
1583
  id
1576
1584
  name
@@ -1599,6 +1607,8 @@ var J = t`
1599
1607
  category
1600
1608
  tags
1601
1609
  publishedAt
1610
+ externalService
1611
+ externalUrl
1602
1612
  publisher {
1603
1613
  id
1604
1614
  name
@@ -1660,6 +1670,8 @@ var Y = t`
1660
1670
  category
1661
1671
  tags
1662
1672
  publishedAt
1673
+ externalService
1674
+ externalUrl
1663
1675
  createdAt
1664
1676
  updatedAt
1665
1677
  subType
@@ -1728,6 +1740,8 @@ var Y = t`
1728
1740
  category
1729
1741
  tags
1730
1742
  publishedAt
1743
+ externalService
1744
+ externalUrl
1731
1745
  publisher {
1732
1746
  id
1733
1747
  name