@parallelworks/tandem-web 0.139.0 → 0.139.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.
@@ -1,5 +1,5 @@
1
- import { Link as e, useLocation as t, useNavigate as n } from "../../lib/router.js";
2
- import { usePageTitle as r } from "../../lib/pageTitle.js";
1
+ import { usePageTitle as e } from "../../lib/pageTitle.js";
2
+ import { Link as t, useLocation as n, useNavigate as r } from "../../lib/router.js";
3
3
  import { Logo as i } from "../../components/Logo.js";
4
4
  import { useApiSpec as a } from "../../lib/useApiSpec.js";
5
5
  import { useApiDocsMessages as o } from "./-apiDocsMessages.js";
@@ -10,8 +10,8 @@ import { ApiDocsMessagesProvider as d, ApiSidebar as f, SchemaViewerProvider as
10
10
  // src/routes/docs/route.tsx?tsr-split=component
11
11
  function m() {
12
12
  let m = c("apiDocs.page");
13
- r(m("title"));
14
- let h = o(), { spec: g, parsed: _ } = a(), v = n(), y = t({ select: (e) => e.pathname.replace(/^\/docs\/?/, "").replace(/\/$/, "") });
13
+ e(m("title"));
14
+ let h = o(), { spec: g, parsed: _ } = a(), v = r(), y = n({ select: (e) => e.pathname.replace(/^\/docs\/?/, "").replace(/\/$/, "") });
15
15
  return /* @__PURE__ */ l(d, {
16
16
  messages: h,
17
17
  children: /* @__PURE__ */ u(p, {
@@ -20,7 +20,7 @@ function m() {
20
20
  className: "border-b border-border bg-card",
21
21
  children: /* @__PURE__ */ u("div", {
22
22
  className: "mx-auto flex h-12 max-w-7xl items-center gap-3 px-4",
23
- children: [/* @__PURE__ */ l(e, {
23
+ children: [/* @__PURE__ */ l(t, {
24
24
  to: "/",
25
25
  children: /* @__PURE__ */ l(i, {})
26
26
  }), /* @__PURE__ */ l("span", {
package/routes/new2.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { ApiError as e, api as t, unwrap as n } from "../api/client.js";
2
- import { Route as r } from "./new.js";
3
- import { useNavigate as i } from "../lib/router.js";
4
- import { meQuery as a } from "../api/queries.js";
5
- import { usePageTitle as o } from "../lib/pageTitle.js";
2
+ import { usePageTitle as r } from "../lib/pageTitle.js";
3
+ import { Route as i } from "./new.js";
4
+ import { useNavigate as a } from "../lib/router.js";
5
+ import { meQuery as o } from "../api/queries.js";
6
6
  import { Logo as s } from "../components/Logo.js";
7
7
  import { Button as c, ErrorText as l, Input as u } from "@parallelworks/ui";
8
8
  import { useState as d } from "react";
@@ -15,9 +15,9 @@ function _(e) {
15
15
  return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 63);
16
16
  }
17
17
  function v() {
18
- let v = r.useLoaderData(), y = p("newWorkspace");
19
- o(y("title"));
20
- let b = f(), x = p("common"), S = i(), C = g(), [w, T] = d(""), [E, D] = d(""), [O, k] = d(!1), [A, j] = d({}), [M, N] = d(!1), P = O ? E : _(w);
18
+ let v = i.useLoaderData(), y = p("newWorkspace");
19
+ r(y("title"));
20
+ let b = f(), x = p("common"), S = a(), C = g(), [w, T] = d(""), [E, D] = d(""), [O, k] = d(!1), [A, j] = d({}), [M, N] = d(!1), P = O ? E : _(w);
21
21
  return /* @__PURE__ */ m("main", {
22
22
  className: "flex min-h-screen items-center justify-center px-4",
23
23
  children: /* @__PURE__ */ h("form", {
@@ -29,7 +29,7 @@ function v() {
29
29
  slug: P
30
30
  } }));
31
31
  await C.fetchQuery({
32
- ...a,
32
+ ...o,
33
33
  staleTime: 0
34
34
  }), await S({
35
35
  to: "/$workspace/issues",
@@ -1,6 +1,6 @@
1
1
  import { api as e, unwrap as t } from "../api/client.js";
2
- import { Route as n } from "./request._token.js";
3
- import { usePageTitle as r } from "../lib/pageTitle.js";
2
+ import { usePageTitle as n } from "../lib/pageTitle.js";
3
+ import { Route as r } from "./request._token.js";
4
4
  import { Logo as i } from "../components/Logo.js";
5
5
  import { Button as a, Card as o, ErrorText as s, Input as c, Textarea as l } from "@parallelworks/ui";
6
6
  import { useState as u } from "react";
@@ -10,7 +10,7 @@ import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
10
  import { useMutation as h, useQuery as g } from "@tanstack/react-query";
11
11
  // src/routes/request.$token.tsx?tsr-split=component
12
12
  function _() {
13
- let _ = f("intakeForm"), v = d(), { token: y } = n.useParams(), { data: b, error: x } = g({
13
+ let _ = f("intakeForm"), v = d(), { token: y } = r.useParams(), { data: b, error: x } = g({
14
14
  queryKey: ["intake", y],
15
15
  queryFn: async ({ signal: n }) => t(await e.GET("/api/v1/intake/{token}", {
16
16
  params: { path: { token: y } },
@@ -18,7 +18,7 @@ function _() {
18
18
  })),
19
19
  retry: !1
20
20
  });
21
- r(b ? _("title", { team: b.team }) : _("heading"));
21
+ n(b ? _("title", { team: b.team }) : _("heading"));
22
22
  let [S, C] = u(""), [w, T] = u(""), [E, D] = u(""), [O, k] = u(""), A = h({ mutationFn: async () => t(await e.POST("/api/v1/intake/{token}/requests", {
23
23
  params: { path: { token: y } },
24
24
  body: {