@tinacms/schema-tools 2.8.1 → 2.8.2

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/dist/index.js CHANGED
@@ -1627,7 +1627,7 @@ const parseURL = (url) => {
1627
1627
  if (!isTinaCloud) {
1628
1628
  return {
1629
1629
  branch: null,
1630
- isLocalClient: true,
1630
+ isLocalClient: false,
1631
1631
  clientId: null,
1632
1632
  host: params.host
1633
1633
  };
@@ -1642,7 +1642,7 @@ const parseURL = (url) => {
1642
1642
  const clientId = result == null ? void 0 : result.clientId;
1643
1643
  if (!branch || !clientId) {
1644
1644
  throw new Error(
1645
- `Invalid URL format provided. Expected: https://content.tinajs.io/<Version>/content/<ClientID>/github/<Branch> but but received ${url}`
1645
+ `Invalid URL format provided. Expected: https://content.tinajs.io/<Version>/content/<ClientID>/github/<Branch> but received ${url}`
1646
1646
  );
1647
1647
  }
1648
1648
  return {
@@ -446,6 +446,14 @@ interface AuthHooks {
446
446
  }
447
447
  type AuthOptions = AuthHooks & AuthProvider;
448
448
  export interface Config<CMSCallback = undefined, FormifyCallback = undefined, DocumentCreatorCallback = undefined, Store = undefined, SearchClient = undefined> {
449
+ /**
450
+ * Points the admin UI at a custom/self-hosted content API instead of TinaCloud.
451
+ *
452
+ * Can be a relative URL, such as `/api/tina/gql`, or an absolute URL, such as
453
+ * `https://example.com/api/content`. When set, the admin UI will not show the
454
+ * Local Mode banner; Local Mode is only detected when this option is unset and
455
+ * the content API resolves to `localhost`.
456
+ */
449
457
  contentApiUrlOverride?: string;
450
458
  authProvider?: AuthProvider;
451
459
  admin?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tinacms/schema-tools",
3
3
  "type": "module",
4
- "version": "2.8.1",
4
+ "version": "2.8.2",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
@@ -24,7 +24,7 @@
24
24
  "ts-jest": "^29.2.5",
25
25
  "typescript": "^5.7.3",
26
26
  "yup": "^1.6.1",
27
- "@tinacms/scripts": "1.6.1"
27
+ "@tinacms/scripts": "1.6.2"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=16.14.0",