@burdenoff/microfe-planmagnet 2026.1127.1 → 2026.1127.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.
@@ -1,40 +1,16 @@
1
1
  import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
2
- import { detailPath as n, rowLinkProps as r } from "../utils/rowNavigation.js";
3
- import { useDeferredValue as i, useState as a } from "react";
4
- import { Loader2 as o, Plus as s, Swords as c } from "lucide-react";
5
- import { gql as l } from "@apollo/client";
2
+ import { ListCompetitorsDocument as n } from "../../generated/wspace-operations.js";
3
+ import { detailPath as r, rowLinkProps as i } from "../utils/rowNavigation.js";
4
+ import { useDeferredValue as a, useState as o } from "react";
5
+ import { Loader2 as s, Plus as c, Swords as l } from "lucide-react";
6
6
  import { useQuery as u } from "@apollo/client/react";
7
7
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
8
8
  import { Badge as p, Button as m, Card as h, CardContent as g, CardHeader as _, CardTitle as v, Input as y } from "@burdenoff/fe-libs/ui";
9
9
  // src/planmagnet/pages/CompetitorsCompetitorsPagePage.tsx
10
- var b = l`
11
- query ListCompetitors(
12
- $workspaceId: ID!
13
- $filter: PlanmagnetCompetitorFilter
14
- $pagination: PlanmagnetPaginationInput
15
- ) {
16
- planmagnetCompetitors(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
17
- items {
18
- id
19
- name
20
- website
21
- description
22
- tags
23
- strengths
24
- weaknesses
25
- updatedAt
26
- featureRequests {
27
- id
28
- }
29
- }
30
- totalCount
31
- }
32
- }
33
- `;
34
- function x() {
35
- let l = t(), { workspaceId: x } = e(), [S, C] = a(""), w = i(S.trim()), { data: T, loading: E, error: D } = u(b, {
10
+ function b() {
11
+ let b = t(), { workspaceId: x } = e(), [S, C] = o(""), w = a(S.trim()), { data: T, loading: E, error: D } = u(n, {
36
12
  variables: {
37
- workspaceId: x,
13
+ workspaceId: x ?? "",
38
14
  pagination: { first: 50 },
39
15
  filter: w ? { search: w } : void 0
40
16
  },
@@ -42,7 +18,7 @@ function x() {
42
18
  });
43
19
  if (E && !T) return /* @__PURE__ */ d("div", {
44
20
  className: "flex items-center justify-center p-12",
45
- children: /* @__PURE__ */ d(o, { className: "h-8 w-8 animate-spin text-muted-foreground" })
21
+ children: /* @__PURE__ */ d(s, { className: "h-8 w-8 animate-spin text-muted-foreground" })
46
22
  });
47
23
  if (D) return /* @__PURE__ */ f("div", {
48
24
  className: "p-6 text-destructive",
@@ -67,8 +43,8 @@ function x() {
67
43
  ]
68
44
  })] }), /* @__PURE__ */ f(m, {
69
45
  size: "sm",
70
- onClick: () => l("/products/create-competitor-page"),
71
- children: [/* @__PURE__ */ d(s, { className: "mr-1 h-4 w-4" }), "New Competitor"]
46
+ onClick: () => b("/products/create-competitor-page"),
47
+ children: [/* @__PURE__ */ d(c, { className: "mr-1 h-4 w-4" }), "New Competitor"]
72
48
  })]
73
49
  }),
74
50
  /* @__PURE__ */ d(y, {
@@ -81,12 +57,12 @@ function x() {
81
57
  /* @__PURE__ */ d("div", {
82
58
  className: "grid grid-cols-1 md:grid-cols-2 gap-4",
83
59
  children: O.map((e) => /* @__PURE__ */ f(h, {
84
- ...r(() => l(n("/products/competitor-detail-page", e.id)), e.name),
60
+ ...i(() => b(r("/products/competitor-detail-page", e.id)), e.name),
85
61
  children: [/* @__PURE__ */ d(_, {
86
62
  className: "pb-2",
87
63
  children: /* @__PURE__ */ f(v, {
88
64
  className: "text-base flex items-center gap-2",
89
- children: [/* @__PURE__ */ d(c, { className: "h-4 w-4 text-primary" }), e.name]
65
+ children: [/* @__PURE__ */ d(l, { className: "h-4 w-4 text-primary" }), e.name]
90
66
  })
91
67
  }), /* @__PURE__ */ f(g, {
92
68
  className: "space-y-3",
@@ -137,4 +113,4 @@ function x() {
137
113
  ]
138
114
  });
139
115
  }
140
- export { x as CompetitorsCompetitorsPagePage };
116
+ export { b as CompetitorsCompetitorsPagePage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-planmagnet",
3
- "version": "2026.1127.1",
3
+ "version": "2026.1127.2",
4
4
  "description": "Burdenoff PlanMagnet Microfrontend",
5
5
  "type": "module",
6
6
  "files": [