@burdenoff/microfe-coolandlovely 2026.1112.1 → 2026.1113.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.
@@ -6,214 +6,217 @@ import { FeedbackWidget as i } from "./components/FeedbackWidget.js";
6
6
  import "./components/index.js";
7
7
  import { useCallback as a, useEffect as o } from "react";
8
8
  import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
9
- import { BookHeart as c, Compass as l, Handshake as u, Heart as d, Home as f, Package as p, Shapes as m, Shield as h, Shirt as g, ShoppingBag as _, Sparkles as v, Store as y, TrendingUp as b, UserCircle as x, Wallet as S } from "lucide-react";
10
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
11
- import { FeatureFlagProvider as T } from "@burdenoff/fe-libs/shared/feature-flags";
12
- import { useFeatureFlag as E } from "@burdenoff/fe-libs/shared/feature-flags/useFeatureFlag";
9
+ import { useQuotaErrorToast as c } from "@burdenoff/fe-libs/shared/hooks";
10
+ import { BookHeart as l, Compass as u, Handshake as d, Heart as f, Home as p, Package as m, Shapes as h, Shield as g, Shirt as _, ShoppingBag as v, Sparkles as y, Store as b, TrendingUp as x, UserCircle as S, Wallet as C } from "lucide-react";
11
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
12
+ import { FeatureFlagProvider as E } from "@burdenoff/fe-libs/shared/feature-flags";
13
+ import { useFeatureFlag as D } from "@burdenoff/fe-libs/shared/feature-flags/useFeatureFlag";
13
14
  // src/coolandlovely/CoolAndLovelyRoot.tsx
14
- var D = (D) => {
15
- let { registerNavItems: O, registerFooterItems: k, basePath: A = "/" } = D, { t: j } = s(), M = a((e, t) => {
16
- let n = j(e);
15
+ var O = (O) => {
16
+ let { registerNavItems: k, registerFooterItems: A, basePath: j = "/" } = O, { t: M } = s(), N = a((e, t) => {
17
+ let n = M(e);
17
18
  return n === e ? t : n;
18
- }, [j]), N = E("coolandlovely.admin.curation", !1), P = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
19
+ }, [M]), P = D("coolandlovely.admin.curation", !1);
20
+ c();
21
+ let F = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
19
22
  return o(() => {
20
- if (!O) return;
23
+ if (!k) return;
21
24
  let e = [
22
25
  {
23
26
  id: "coolandlovely-overview",
24
- label: M("coolandlovely.nav.overview", "Overview"),
25
- path: P(A, ""),
26
- icon: /* @__PURE__ */ C(f, { size: 20 }),
27
+ label: N("coolandlovely.nav.overview", "Overview"),
28
+ path: F(j, ""),
29
+ icon: /* @__PURE__ */ w(p, { size: 20 }),
27
30
  order: 1,
28
31
  group: "main"
29
32
  },
30
33
  {
31
34
  id: "coolandlovely-brands",
32
- label: M("coolandlovely.nav.brands", "Brands"),
33
- path: P(A, "brands"),
34
- icon: /* @__PURE__ */ C(y, { size: 20 }),
35
+ label: N("coolandlovely.nav.brands", "Brands"),
36
+ path: F(j, "brands"),
37
+ icon: /* @__PURE__ */ w(b, { size: 20 }),
35
38
  order: 10,
36
39
  group: "catalog"
37
40
  },
38
41
  {
39
42
  id: "coolandlovely-collections",
40
- label: M("coolandlovely.nav.collections", "Collections"),
41
- path: P(A, "collections"),
42
- icon: /* @__PURE__ */ C(m, { size: 20 }),
43
+ label: N("coolandlovely.nav.collections", "Collections"),
44
+ path: F(j, "collections"),
45
+ icon: /* @__PURE__ */ w(h, { size: 20 }),
43
46
  order: 11,
44
47
  group: "catalog"
45
48
  },
46
49
  {
47
50
  id: "coolandlovely-items",
48
- label: M("coolandlovely.nav.items", "Style Items"),
49
- path: P(A, "items"),
50
- icon: /* @__PURE__ */ C(g, { size: 20 }),
51
+ label: N("coolandlovely.nav.items", "Style Items"),
52
+ path: F(j, "items"),
53
+ icon: /* @__PURE__ */ w(_, { size: 20 }),
51
54
  order: 12,
52
55
  group: "catalog"
53
56
  },
54
57
  {
55
58
  id: "coolandlovely-looks",
56
- label: M("coolandlovely.nav.looks", "Looks"),
57
- path: P(A, "looks"),
58
- icon: /* @__PURE__ */ C(v, { size: 20 }),
59
+ label: N("coolandlovely.nav.looks", "Looks"),
60
+ path: F(j, "looks"),
61
+ icon: /* @__PURE__ */ w(y, { size: 20 }),
59
62
  order: 20,
60
63
  group: "social"
61
64
  },
62
65
  {
63
66
  id: "coolandlovely-collaborations",
64
- label: M("coolandlovely.nav.collaborations", "Collaborations"),
65
- path: P(A, "collaborations"),
66
- icon: /* @__PURE__ */ C(u, { size: 20 }),
67
+ label: N("coolandlovely.nav.collaborations", "Collaborations"),
68
+ path: F(j, "collaborations"),
69
+ icon: /* @__PURE__ */ w(d, { size: 20 }),
67
70
  order: 21,
68
71
  group: "social"
69
72
  },
70
73
  {
71
74
  id: "coolandlovely-wardrobe",
72
- label: M("coolandlovely.nav.wardrobe", "My Wardrobe"),
73
- path: P(A, "wardrobe"),
74
- icon: /* @__PURE__ */ C(d, { size: 20 }),
75
+ label: N("coolandlovely.nav.wardrobe", "My Wardrobe"),
76
+ path: F(j, "wardrobe"),
77
+ icon: /* @__PURE__ */ w(f, { size: 20 }),
75
78
  order: 30,
76
79
  group: "my-style"
77
80
  },
78
81
  {
79
82
  id: "coolandlovely-lookbooks",
80
- label: M("coolandlovely.nav.lookbooks", "Lookbooks"),
81
- path: P(A, "lookbooks"),
82
- icon: /* @__PURE__ */ C(c, { size: 20 }),
83
+ label: N("coolandlovely.nav.lookbooks", "Lookbooks"),
84
+ path: F(j, "lookbooks"),
85
+ icon: /* @__PURE__ */ w(l, { size: 20 }),
83
86
  order: 31,
84
87
  group: "my-style"
85
88
  },
86
89
  {
87
90
  id: "coolandlovely-profile",
88
- label: M("coolandlovely.nav.profile", "Style Profile"),
89
- path: P(A, "profile"),
90
- icon: /* @__PURE__ */ C(x, { size: 20 }),
91
+ label: N("coolandlovely.nav.profile", "Style Profile"),
92
+ path: F(j, "profile"),
93
+ icon: /* @__PURE__ */ w(S, { size: 20 }),
91
94
  order: 32,
92
95
  group: "my-style"
93
96
  },
94
97
  {
95
98
  id: "coolandlovely-cart",
96
- label: M("coolandlovely.nav.cart", "Cart"),
97
- path: P(A, "cart"),
98
- icon: /* @__PURE__ */ C(_, { size: 20 }),
99
+ label: N("coolandlovely.nav.cart", "Cart"),
100
+ path: F(j, "cart"),
101
+ icon: /* @__PURE__ */ w(v, { size: 20 }),
99
102
  order: 33,
100
103
  group: "my-style"
101
104
  },
102
105
  {
103
106
  id: "coolandlovely-orders",
104
- label: M("coolandlovely.nav.orders", "My Orders"),
105
- path: P(A, "orders"),
106
- icon: /* @__PURE__ */ C(p, { size: 20 }),
107
+ label: N("coolandlovely.nav.orders", "My Orders"),
108
+ path: F(j, "orders"),
109
+ icon: /* @__PURE__ */ w(m, { size: 20 }),
107
110
  order: 34,
108
111
  group: "my-style"
109
112
  },
110
113
  {
111
114
  id: "coolandlovely-earnings",
112
- label: M("coolandlovely.nav.earnings", "Creator Earnings"),
113
- path: P(A, "earnings"),
114
- icon: /* @__PURE__ */ C(S, { size: 20 }),
115
+ label: N("coolandlovely.nav.earnings", "Creator Earnings"),
116
+ path: F(j, "earnings"),
117
+ icon: /* @__PURE__ */ w(C, { size: 20 }),
115
118
  order: 35,
116
119
  group: "my-style"
117
120
  },
118
121
  {
119
122
  id: "coolandlovely-marketplace",
120
- label: M("coolandlovely.nav.marketplace", "Creator marketplace"),
121
- path: P(A, "creator-marketplace"),
122
- icon: /* @__PURE__ */ C(u, { size: 20 }),
123
+ label: N("coolandlovely.nav.marketplace", "Creator marketplace"),
124
+ path: F(j, "creator-marketplace"),
125
+ icon: /* @__PURE__ */ w(d, { size: 20 }),
123
126
  order: 36,
124
127
  group: "my-style"
125
128
  },
126
129
  {
127
130
  id: "coolandlovely-resale",
128
- label: M("coolandlovely.nav.resale", "Pre-loved marketplace"),
129
- path: P(A, "resale"),
130
- icon: /* @__PURE__ */ C(_, { size: 20 }),
131
+ label: N("coolandlovely.nav.resale", "Pre-loved marketplace"),
132
+ path: F(j, "resale"),
133
+ icon: /* @__PURE__ */ w(v, { size: 20 }),
131
134
  order: 37,
132
135
  group: "my-style"
133
136
  },
134
137
  {
135
138
  id: "coolandlovely-discover",
136
- label: M("coolandlovely.nav.discover", "Discover"),
137
- path: P(A, "discover"),
138
- icon: /* @__PURE__ */ C(l, { size: 20 }),
139
+ label: N("coolandlovely.nav.discover", "Discover"),
140
+ path: F(j, "discover"),
141
+ icon: /* @__PURE__ */ w(u, { size: 20 }),
139
142
  order: 40,
140
143
  group: "signals"
141
144
  },
142
145
  {
143
146
  id: "coolandlovely-trends",
144
- label: M("coolandlovely.nav.trends", "Trends"),
145
- path: P(A, "trends"),
146
- icon: /* @__PURE__ */ C(b, { size: 20 }),
147
+ label: N("coolandlovely.nav.trends", "Trends"),
148
+ path: F(j, "trends"),
149
+ icon: /* @__PURE__ */ w(x, { size: 20 }),
147
150
  order: 41,
148
151
  group: "signals"
149
152
  },
150
153
  {
151
154
  id: "coolandlovely-journal",
152
- label: M("coolandlovely.nav.journal", "Journal"),
153
- path: P(A, "journal"),
154
- icon: /* @__PURE__ */ C(b, { size: 20 }),
155
+ label: N("coolandlovely.nav.journal", "Journal"),
156
+ path: F(j, "journal"),
157
+ icon: /* @__PURE__ */ w(x, { size: 20 }),
155
158
  order: 42,
156
159
  group: "signals"
157
160
  },
158
- ...N ? [
161
+ ...P ? [
159
162
  {
160
163
  id: "coolandlovely-admin",
161
- label: M("coolandlovely.nav.admin", "Admin"),
162
- path: P(A, "admin/brands"),
163
- icon: /* @__PURE__ */ C(h, { size: 20 }),
164
+ label: N("coolandlovely.nav.admin", "Admin"),
165
+ path: F(j, "admin/brands"),
166
+ icon: /* @__PURE__ */ w(g, { size: 20 }),
164
167
  order: 50,
165
168
  group: "admin"
166
169
  },
167
170
  {
168
171
  id: "coolandlovely-admin-brands",
169
- label: M("coolandlovely.nav.adminBrands", "Brands"),
170
- path: P(A, "admin/brands"),
171
- icon: /* @__PURE__ */ C(y, { size: 20 }),
172
+ label: N("coolandlovely.nav.adminBrands", "Brands"),
173
+ path: F(j, "admin/brands"),
174
+ icon: /* @__PURE__ */ w(b, { size: 20 }),
172
175
  order: 51,
173
176
  group: "admin"
174
177
  },
175
178
  {
176
179
  id: "coolandlovely-admin-collaborations",
177
- label: M("coolandlovely.nav.adminCollaborations", "Collaborations"),
178
- path: P(A, "admin/collaborations"),
179
- icon: /* @__PURE__ */ C(u, { size: 20 }),
180
+ label: N("coolandlovely.nav.adminCollaborations", "Collaborations"),
181
+ path: F(j, "admin/collaborations"),
182
+ icon: /* @__PURE__ */ w(d, { size: 20 }),
180
183
  order: 52,
181
184
  group: "admin"
182
185
  },
183
186
  {
184
187
  id: "coolandlovely-admin-featured-items",
185
- label: M("coolandlovely.nav.adminFeaturedItems", "Featured Items"),
186
- path: P(A, "admin/featured-items"),
187
- icon: /* @__PURE__ */ C(g, { size: 20 }),
188
+ label: N("coolandlovely.nav.adminFeaturedItems", "Featured Items"),
189
+ path: F(j, "admin/featured-items"),
190
+ icon: /* @__PURE__ */ w(_, { size: 20 }),
188
191
  order: 53,
189
192
  group: "admin"
190
193
  }
191
194
  ] : []
192
195
  ];
193
- return O(e);
196
+ return k(e);
194
197
  }, [
195
- O,
196
- A,
197
- M,
198
- N
198
+ k,
199
+ j,
200
+ N,
201
+ P
199
202
  ]), o(() => {
200
- if (!k) return;
203
+ if (!A) return;
201
204
  let e = [{
202
205
  id: "coolandlovely-status",
203
- label: M("coolandlovely.footer.ready", "CoolAndLovely"),
206
+ label: N("coolandlovely.footer.ready", "CoolAndLovely"),
204
207
  type: "status",
205
208
  order: 10,
206
209
  section: "left"
207
210
  }];
208
- return k(e);
209
- }, [k, M]), /* @__PURE__ */ C(t, { children: /* @__PURE__ */ C(T, {
210
- workspaceId: D.workspaceId ?? null,
211
+ return A(e);
212
+ }, [A, N]), /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w(E, {
213
+ workspaceId: O.workspaceId ?? null,
211
214
  gateway: "global",
212
215
  defaultEnabled: !0,
213
- children: /* @__PURE__ */ w(e, {
214
- ...D,
215
- children: [/* @__PURE__ */ C(r, {}), /* @__PURE__ */ C(i, {})]
216
+ children: /* @__PURE__ */ T(e, {
217
+ ...O,
218
+ children: [/* @__PURE__ */ w(r, {}), /* @__PURE__ */ w(i, {})]
216
219
  })
217
- }) }, n(D));
220
+ }) }, n(O));
218
221
  };
219
- export { D as CoolAndLovelyRoot };
222
+ export { O as CoolAndLovelyRoot };