@burdenoff/microfe-vibecontrols 2026.1023.4 → 2026.1023.6

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,23 +1,28 @@
1
1
  import { useTr as e } from "../../shared/hooks/useTr.js";
2
2
  import { ConfirmDialog as t } from "./ConfirmDialog.js";
3
- import { useCallback as n } from "react";
4
- import { jsx as r } from "react/jsx-runtime";
5
- import { useEventBus as i } from "@burdenoff/fe-libs/shared/events";
3
+ import { VibeControlsDocsLink as n } from "./VibeControlsDocsLink.js";
4
+ import { useCallback as r } from "react";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ import { useEventBus as a } from "@burdenoff/fe-libs/shared/events";
6
7
  //#region src/components/shared/QuotaExhaustedDialog.tsx
7
- function a({ isOpen: a, onClose: o, onConfirm: s, title: c, message: l, confirmLabel: u, cancelLabel: d }) {
8
- let f = e(), p = i();
9
- return /* @__PURE__ */ r(t, {
10
- isOpen: a,
11
- onClose: o,
12
- onConfirm: n(() => {
13
- p.emitCustom("vibecontrols.billing.upgrade_clicked", {}), s();
14
- }, [p, s]),
15
- title: c ?? f("vibecontrols.shared.quotaExhaustedDialog.title", "Quota Reached"),
16
- message: l,
17
- confirmLabel: u ?? f("vibecontrols.shared.quotaExhaustedDialog.viewBilling", "View Billing"),
18
- cancelLabel: d ?? f("vibecontrols.shared.quotaExhaustedDialog.dismiss", "Dismiss"),
19
- variant: "warning"
8
+ function o({ isOpen: o, onClose: s, onConfirm: c, title: l, message: u, confirmLabel: d, cancelLabel: f }) {
9
+ let p = e(), m = a();
10
+ return /* @__PURE__ */ i(t, {
11
+ isOpen: o,
12
+ onClose: s,
13
+ onConfirm: r(() => {
14
+ m.emitCustom("vibecontrols.billing.upgrade_clicked", {}), c();
15
+ }, [m, c]),
16
+ title: l ?? p("vibecontrols.shared.quotaExhaustedDialog.title", "Quota Reached"),
17
+ message: u,
18
+ confirmLabel: d ?? p("vibecontrols.shared.quotaExhaustedDialog.viewBilling", "View Billing"),
19
+ cancelLabel: f ?? p("vibecontrols.shared.quotaExhaustedDialog.dismiss", "Dismiss"),
20
+ variant: "warning",
21
+ children: /* @__PURE__ */ i(n, {
22
+ topic: "plans",
23
+ children: p("vibecontrols.shared.quotaExhaustedDialog.plansGuide", "How plans and quotas work")
24
+ })
20
25
  });
21
26
  }
22
27
  //#endregion
23
- export { a as QuotaExhaustedDialog };
28
+ export { o as QuotaExhaustedDialog };
@@ -0,0 +1,40 @@
1
+ import { useTr as e } from "../../shared/hooks/useTr.js";
2
+ import { BookOpen as t } from "lucide-react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { DocsLink as i, useProductDocsUrl as a } from "@burdenoff/fe-libs/shared/components";
5
+ import { cn as o } from "@burdenoff/fe-libs/utils";
6
+ //#region src/components/shared/VibeControlsDocsLink.tsx
7
+ var s = {
8
+ gettingStarted: "/users/getting-started",
9
+ installAgent: "/users/installing-the-agent",
10
+ sessions: "/users/sessions-and-terminals",
11
+ tunnels: "/users/port-forwarding-and-tunnels",
12
+ vibedecks: "/users/vibedecks",
13
+ plans: "/users/plans-and-quotas"
14
+ }, c = "vibecontrols";
15
+ function l(e, t = {}) {
16
+ return a(s[e], {
17
+ productSlug: c,
18
+ environment: t.environment,
19
+ registry: t.registry
20
+ });
21
+ }
22
+ function u({ topic: a, children: l, className: u, hideIcon: d = !1, environment: f, registry: p, "data-tour": m }) {
23
+ let h = e(), g = l ?? h("vibecontrols.docs.learnMore", "Learn more");
24
+ return /* @__PURE__ */ r(i, {
25
+ productSlug: c,
26
+ path: s[a],
27
+ environment: f,
28
+ registry: p,
29
+ "data-docs-topic": a,
30
+ "data-tour": m,
31
+ title: h("vibecontrols.docs.opensInNewTab", "Opens the VibeControls guide in a new tab"),
32
+ className: o("inline-flex items-center gap-1 rounded-sm text-sm font-medium text-text-link underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-focus focus-visible:ring-offset-2 focus-visible:ring-offset-bg-canvas", u),
33
+ children: [d ? null : /* @__PURE__ */ n(t, {
34
+ className: "size-3.5 shrink-0",
35
+ "aria-hidden": "true"
36
+ }), /* @__PURE__ */ n("span", { children: g })]
37
+ });
38
+ }
39
+ //#endregion
40
+ export { s as VIBECONTROLS_DOCS_PATHS, c as VIBECONTROLS_DOCS_PRODUCT, u as VibeControlsDocsLink, l as useVibeControlsDocsUrl };
@@ -1,5 +1,6 @@
1
1
  import "./NotificationToast.js";
2
2
  import "./ConfirmDialog.js";
3
+ import "./VibeControlsDocsLink.js";
3
4
  import "./QuotaExhaustedDialog.js";
4
5
  import "./AgentEventsConnector.js";
5
6
  import "./PageHeader.js";