camox 0.7.0 → 0.7.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.
@@ -21,7 +21,7 @@ import { keepPreviousData, useQuery, useQueryClient, useSuspenseQuery } from "@t
21
21
  import { useSelector } from "@xstate/store/react";
22
22
  import * as React from "react";
23
23
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
24
- import { queryKeys } from "@camox/api/query-keys";
24
+ import { queryKeys } from "@camox/api-contract/query-keys";
25
25
  import { Button } from "@camox/ui/button";
26
26
  import { PanelContent, PanelHeader } from "@camox/ui/panel";
27
27
  import { Tooltip, TooltipContent, TooltipTrigger } from "@camox/ui/tooltip";
@@ -12,7 +12,7 @@ import { useSelector } from "@xstate/store/react";
12
12
  import { generateKeyBetween } from "fractional-indexing";
13
13
  import * as React from "react";
14
14
  import { jsx, jsxs } from "react/jsx-runtime";
15
- import { queryKeys } from "@camox/api/query-keys";
15
+ import { queryKeys } from "@camox/api-contract/query-keys";
16
16
  import { Tooltip, TooltipContent, TooltipTrigger } from "@camox/ui/tooltip";
17
17
  import { useLocation } from "@tanstack/react-router";
18
18
  import { InfoIcon } from "lucide-react";
@@ -4,7 +4,7 @@ import { c } from "react/compiler-runtime";
4
4
  import { useMutation, useQueryClient } from "@tanstack/react-query";
5
5
  import { useSelector } from "@xstate/store/react";
6
6
  import { generateKeyBetween } from "fractional-indexing";
7
- import { queryKeys } from "@camox/api/query-keys";
7
+ import { queryKeys } from "@camox/api-contract/query-keys";
8
8
  import { useLocation } from "@tanstack/react-router";
9
9
  //#region src/features/preview/components/useUpdateBlockPosition.ts
10
10
  function useUpdateBlockPosition() {
@@ -3,7 +3,7 @@ import { CamoxPreview, PageContent } from "../preview/CamoxPreview.js";
3
3
  import { trackEvent } from "../../lib/analytics.js";
4
4
  import { c } from "react/compiler-runtime";
5
5
  import { jsx } from "react/jsx-runtime";
6
- import { queryKeys } from "@camox/api/query-keys";
6
+ import { queryKeys } from "@camox/api-contract/query-keys";
7
7
  import { createORPCClient } from "@orpc/client";
8
8
  import { RPCLink } from "@orpc/client/fetch";
9
9
  import { notFound } from "@tanstack/react-router";
@@ -1,4 +1,4 @@
1
- import { Router } from '@camox/api';
1
+ import { Router } from '@camox/api-contract';
2
2
  import { RouterClient } from '@orpc/server';
3
3
  export type ServerApiClient = RouterClient<Router>;
4
4
  export declare function createServerApiClient(apiUrl: string, environmentName?: string): ServerApiClient;
@@ -1 +1 @@
1
- {"version":3,"file":"api-client-server.d.ts","sourceRoot":"","sources":["../../src/lib/api-client-server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAGzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAEnD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,eAAe,CAK/F"}
1
+ {"version":3,"file":"api-client-server.d.ts","sourceRoot":"","sources":["../../src/lib/api-client-server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAEnD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,eAAe,CAK/F"}
@@ -1,4 +1,4 @@
1
- import { Router } from '@camox/api';
1
+ import { Router } from '@camox/api-contract';
2
2
  import { RouterClient } from '@orpc/server';
3
3
  export type ApiClient = RouterClient<Router>;
4
4
  export declare function initApiClient(apiUrl: string, environmentName?: string): ApiClient;
@@ -1 +1 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/lib/api-client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;;;;;;;;yDAGtB;AAED,wBAAgB,SAAS,IAAI,MAAM,CAGlC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAElD"}
@@ -2,7 +2,7 @@ import { blockQueries } from "./queries.js";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { useQueries } from "@tanstack/react-query";
4
4
  import * as React from "react";
5
- import { queryKeys } from "@camox/api/query-keys";
5
+ import { queryKeys } from "@camox/api-contract/query-keys";
6
6
  //#region src/lib/normalized-data.ts
7
7
  var NormalizedDataContext = React.createContext({
8
8
  filesMap: /* @__PURE__ */ new Map(),
@@ -1,5 +1,5 @@
1
1
  import { getOrpc } from "./api-client.js";
2
- import { queryKeys } from "@camox/api/query-keys";
2
+ import { queryKeys } from "@camox/api-contract/query-keys";
3
3
  //#region src/lib/queries.ts
4
4
  var pageQueries = {
5
5
  list: (projectId) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camox",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "bin": {
5
5
  "camox": "./bin/camox.mjs"
6
6
  },
@@ -97,9 +97,9 @@
97
97
  "react-dom": "^19.2.5",
98
98
  "react-og-preview": "^0.2.0",
99
99
  "shiki": "^4.0.2",
100
- "@camox/api": "0.7.0",
101
- "@camox/ui": "0.7.0",
102
- "@camox/cli": "0.7.0"
100
+ "@camox/api-contract": "0.7.1",
101
+ "@camox/ui": "0.7.1",
102
+ "@camox/cli": "0.7.1"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@babel/core": "^7.29.0",