@tinacms/app 0.0.0-77978b2-20250317000610 → 0.0.0-788e9fd-20250604064006

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.
package/CHANGELOG.md CHANGED
@@ -1,11 +1,54 @@
1
1
  # @tinacms/app
2
2
 
3
- ## 0.0.0-77978b2-20250317000610
3
+ ## 0.0.0-788e9fd-20250604064006
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`7429a46`](https://github.com/tinacms/tinacms/commit/7429a4601e24eb517d6a55564840030b88a1a947)]:
8
- - tinacms@0.0.0-77978b2-20250317000610
7
+ - Updated dependencies [[`2a3ed6c`](https://github.com/tinacms/tinacms/commit/2a3ed6c3ec3233fd90fd94f3dd3d0243aaad079a)]:
8
+ - tinacms@0.0.0-788e9fd-20250604064006
9
+
10
+ ## 2.2.8
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`5e36123`](https://github.com/tinacms/tinacms/commit/5e361239a372e21dda624d17b4ff274bab23ce90), [`856e07a`](https://github.com/tinacms/tinacms/commit/856e07a0b8d742ee78d5eba565623cf081a61534), [`4d9c8ab`](https://github.com/tinacms/tinacms/commit/4d9c8abf6badd1bcc833bda432ab22dace4925ae), [`7346dc9`](https://github.com/tinacms/tinacms/commit/7346dc996fd81ecb395b62f373976512e8224c21)]:
15
+ - tinacms@2.7.8
16
+ - @tinacms/mdx@1.6.3
17
+
18
+ ## 2.2.7
19
+
20
+ ### Patch Changes
21
+
22
+ - [#5607](https://github.com/tinacms/tinacms/pull/5607) [`1965236`](https://github.com/tinacms/tinacms/commit/19652363784e48b065ec1924a9cd9611c8e79cae) Thanks [@jeffsee55](https://github.com/jeffsee55)! - Specify react and react-dom as peer deps
23
+
24
+ - Updated dependencies [[`1965236`](https://github.com/tinacms/tinacms/commit/19652363784e48b065ec1924a9cd9611c8e79cae)]:
25
+ - tinacms@2.7.7
26
+
27
+ ## 2.2.6
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [[`65cee5d`](https://github.com/tinacms/tinacms/commit/65cee5d6ae16c7320a4a14f0d9a82dc5f9103e34)]:
32
+ - tinacms@2.7.6
33
+
34
+ ## 2.2.5
35
+
36
+ ### Patch Changes
37
+
38
+ - [#5602](https://github.com/tinacms/tinacms/pull/5602) [`ab43169`](https://github.com/tinacms/tinacms/commit/ab43169af5a95f31fa27bb0236623a031883a1fd) Thanks [@wicksipedia](https://github.com/wicksipedia)! - fix naming of TinaCloud
39
+
40
+ - [#5588](https://github.com/tinacms/tinacms/pull/5588) [`fd664d8`](https://github.com/tinacms/tinacms/commit/fd664d8f4e83941ed1b1f234668ab6341a6178f8) Thanks [@JackDevAU](https://github.com/JackDevAU)! - - Fix server-side branch queries by storing the active branch in a cookie and passing it via the x-branch header.
41
+ - Ensure GraphQL playground correctly updates when switching branches.
42
+ - Updated dependencies [[`921f235`](https://github.com/tinacms/tinacms/commit/921f2356e4615d532d02eefa7103fdb70f83b97a), [`ab43169`](https://github.com/tinacms/tinacms/commit/ab43169af5a95f31fa27bb0236623a031883a1fd), [`b551232`](https://github.com/tinacms/tinacms/commit/b5512326ad0ad9855bc75e2073a3ab2a8ec4c064), [`ea204c9`](https://github.com/tinacms/tinacms/commit/ea204c9045451f3ebea04f503e6158d2016613e4), [`fd664d8`](https://github.com/tinacms/tinacms/commit/fd664d8f4e83941ed1b1f234668ab6341a6178f8)]:
43
+ - tinacms@2.7.5
44
+ - @tinacms/mdx@1.6.2
45
+
46
+ ## 2.2.3
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [[`991db1f`](https://github.com/tinacms/tinacms/commit/991db1f10c1f9cf9211d7e82bd56658cdcce24c7)]:
51
+ - tinacms@2.7.3
9
52
 
10
53
  ## 2.2.2
11
54
 
@@ -461,7 +504,7 @@
461
504
 
462
505
  fix: Use clean page-sizes on media manager (to make pagination more obvious)
463
506
 
464
- Fix issue with uploading media in a folder with tina cloud
507
+ Fix issue with uploading media in a folder with TinaCloud
465
508
 
466
509
  - Updated dependencies [9c27087fb]
467
510
  - Updated dependencies [65d0a701f]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/app",
3
- "version": "0.0.0-77978b2-20250317000610",
3
+ "version": "0.0.0-788e9fd-20250604064006",
4
4
  "main": "src/main.tsx",
5
5
  "license": "Apache-2.0",
6
6
  "devDependencies": {
@@ -8,6 +8,10 @@
8
8
  "@types/react-dom": "^18.3.5",
9
9
  "typescript": "^5.7.3"
10
10
  },
11
+ "peerDependencies": {
12
+ "react": ">=18.3.1 <20.0.0",
13
+ "react-dom": ">=18.3.1 <20.0.0"
14
+ },
11
15
  "dependencies": {
12
16
  "@graphiql/toolkit": "0.8.4",
13
17
  "@headlessui/react": "2.1.8",
@@ -22,7 +26,7 @@
22
26
  "react-router-dom": "6.3.0",
23
27
  "typescript": "^5.7.3",
24
28
  "zod": "^3.24.2",
25
- "@tinacms/mdx": "1.6.1",
26
- "tinacms": "0.0.0-77978b2-20250317000610"
29
+ "@tinacms/mdx": "1.6.3",
30
+ "tinacms": "0.0.0-788e9fd-20250604064006"
27
31
  }
28
32
  }
@@ -1,10 +1,10 @@
1
1
  import { createGraphiQLFetcher } from '@graphiql/toolkit';
2
+ import { FolderIcon } from '@heroicons/react/outline';
3
+ import { queries } from 'CLIENT_IMPORT';
2
4
  import { GraphiQL } from 'graphiql';
3
5
  import { parse, print } from 'graphql';
4
6
  import React from 'react';
5
7
  import { useCMS } from 'tinacms';
6
- import { FolderIcon } from '@heroicons/react/outline';
7
- import { queries } from 'CLIENT_IMPORT';
8
8
 
9
9
  import 'graphiql/graphiql.min.css';
10
10
 
@@ -134,7 +134,7 @@ const Playground = () => {
134
134
  <GraphiQL
135
135
  fetcher={async (params, options) => {
136
136
  const fetcher = createGraphiQLFetcher({
137
- url: __API_URL__,
137
+ url: cms.api.tina.contentApiUrl || __API_URL__,
138
138
  headers: { Authorization: `Bearer ${getToken()}` },
139
139
  });
140
140
  return fetcher(params, options);
package/src/index.css CHANGED
@@ -13,6 +13,10 @@
13
13
  fill: currentColor;
14
14
  }
15
15
 
16
+ .font-libre-baskerville {
17
+ font-family: "Libre Baskerville", serif;
18
+ }
19
+
16
20
  body {
17
21
  margin: 0;
18
22
  padding: 0;
@@ -1,36 +1,36 @@
1
- import React from 'react';
2
- import * as G from 'graphql';
3
- import { getIn } from 'final-form';
4
- import { z } from 'zod';
5
1
  // @ts-expect-error
6
2
  import schemaJson from 'SCHEMA_IMPORT';
7
- import { expandQuery, isConnectionType, isNodeType } from './expand-query';
3
+ import { getIn } from 'final-form';
4
+ import * as G from 'graphql';
5
+ import React from 'react';
6
+ import { useSearchParams } from 'react-router-dom';
8
7
  import {
8
+ Client,
9
+ Collection,
10
+ ErrorDialog,
9
11
  Form,
10
- TinaCMS,
12
+ FormOptions,
13
+ GlobalFormPlugin,
11
14
  NAMER,
12
- TinaSchema,
13
- useCMS,
14
- resolveField,
15
- Collection,
16
15
  Template,
16
+ TinaCMS,
17
17
  TinaField,
18
- Client,
19
- FormOptions,
20
- GlobalFormPlugin,
18
+ TinaSchema,
21
19
  TinaState,
22
- ErrorDialog,
20
+ resolveField,
21
+ useCMS,
23
22
  } from 'tinacms';
24
- import { createForm, createGlobalForm, FormifyCallback } from './build-form';
23
+ import { z } from 'zod';
24
+ import { FormifyCallback, createForm, createGlobalForm } from './build-form';
25
+ import { showErrorModal } from './errors';
26
+ import { expandQuery, isConnectionType, isNodeType } from './expand-query';
25
27
  import type {
26
- PostMessage,
27
28
  Payload,
28
- SystemInfo,
29
+ PostMessage,
29
30
  ResolvedDocument,
31
+ SystemInfo,
30
32
  } from './types';
31
33
  import { getFormAndFieldNameFromMetadata } from './util';
32
- import { useSearchParams } from 'react-router-dom';
33
- import { showErrorModal } from './errors';
34
34
 
35
35
  const sysSchema = z.object({
36
36
  breadcrumbs: z.array(z.string()),
@@ -559,6 +559,12 @@ export const useGraphQLReducer = (
559
559
  payload,
560
560
  ]);
561
561
  }
562
+ if (event.data.type === 'url-changed') {
563
+ cms.dispatch({
564
+ type: 'sidebar:set-loading-state',
565
+ value: true,
566
+ });
567
+ }
562
568
  },
563
569
  [cms, JSON.stringify(results)]
564
570
  );
package/src/lib/types.ts CHANGED
@@ -6,7 +6,8 @@ export type PostMessage =
6
6
  }
7
7
  | { type: 'field:selected'; fieldName: string }
8
8
  | { type: 'quick-edit'; value: boolean }
9
- | { type: 'user-select-form'; formId: string };
9
+ | { type: 'user-select-form'; formId: string }
10
+ | { type: 'url-changed' };
10
11
 
11
12
  export type Payload = {
12
13
  id: string;