tinacms 0.0.0-ab43169-20250401070153 → 0.0.0-ac16553-20250610033425
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/admin/components/ui/tooltip.d.ts +7 -0
- package/dist/admin/pages/CollectionListPage.d.ts +2 -2
- package/dist/client.js +10 -1
- package/dist/client.mjs +10 -1
- package/dist/index.js +2294 -2229
- package/dist/index.mjs +2284 -2219
- package/dist/rich-text/prism.js +1 -1
- package/dist/rich-text/prism.mjs +1 -1
- package/dist/toolkit/fields/plugins/mdx-field-plugin/plate/transforms/is-url.d.ts +1 -2
- package/dist/toolkit/form-builder/form-builder.d.ts +11 -0
- package/dist/toolkit/git-client/git-client.d.ts +25 -2
- package/dist/toolkit/git-client/git-file.d.ts +18 -0
- package/dist/toolkit/git-client/git-media-store.d.ts +13 -0
- package/dist/toolkit/git-client/use-git-file.d.ts +4 -0
- package/dist/toolkit/tina-cms.d.ts +3 -3
- package/dist/unifiedClient/index.d.ts +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { Collection } from '@tinacms/schema-tools';
|
|
2
|
+
import { type TinaCMS } from '@tinacms/toolkit';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { type NavigateFunction } from 'react-router-dom';
|
|
3
|
-
import { type TinaCMS } from '@tinacms/toolkit';
|
|
4
5
|
import type { CollectionResponse, DocumentSys } from '../types';
|
|
5
|
-
import type { Collection } from '@tinacms/schema-tools';
|
|
6
6
|
export declare const handleNavigate: (navigate: NavigateFunction, cms: TinaCMS, collection: CollectionResponse, collectionDefinition: Collection<true>, document: DocumentSys) => Promise<any>;
|
|
7
7
|
declare const CollectionListPage: () => React.JSX.Element;
|
|
8
8
|
export default CollectionListPage;
|
package/dist/client.js
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
})(this, function(exports2, AsyncLock) {
|
|
4
4
|
"use strict";
|
|
5
5
|
const TINA_HOST = "content.tinajs.io";
|
|
6
|
+
function replaceGithubPathSplit(url, replacement) {
|
|
7
|
+
const parts = url.split("github/");
|
|
8
|
+
if (parts.length > 1 && replacement) {
|
|
9
|
+
return parts[0] + "github/" + replacement;
|
|
10
|
+
} else {
|
|
11
|
+
return url;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
6
14
|
class TinaClient {
|
|
7
15
|
constructor({
|
|
8
16
|
token,
|
|
@@ -54,7 +62,6 @@
|
|
|
54
62
|
query: args.query,
|
|
55
63
|
variables: (args == null ? void 0 : args.variables) || {}
|
|
56
64
|
});
|
|
57
|
-
const url = (args == null ? void 0 : args.url) || this.apiUrl;
|
|
58
65
|
const optionsObject = {
|
|
59
66
|
method: "POST",
|
|
60
67
|
headers,
|
|
@@ -62,6 +69,8 @@
|
|
|
62
69
|
redirect: "follow",
|
|
63
70
|
...providedFetchOptions
|
|
64
71
|
};
|
|
72
|
+
const draftBranch = headers.get("x-branch");
|
|
73
|
+
const url = replaceGithubPathSplit((args == null ? void 0 : args.url) || this.apiUrl, draftBranch);
|
|
65
74
|
let key = "";
|
|
66
75
|
let result;
|
|
67
76
|
if (this.cache) {
|
package/dist/client.mjs
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import AsyncLock from "async-lock";
|
|
2
2
|
const TINA_HOST = "content.tinajs.io";
|
|
3
|
+
function replaceGithubPathSplit(url, replacement) {
|
|
4
|
+
const parts = url.split("github/");
|
|
5
|
+
if (parts.length > 1 && replacement) {
|
|
6
|
+
return parts[0] + "github/" + replacement;
|
|
7
|
+
} else {
|
|
8
|
+
return url;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
3
11
|
class TinaClient {
|
|
4
12
|
constructor({
|
|
5
13
|
token,
|
|
@@ -51,7 +59,6 @@ class TinaClient {
|
|
|
51
59
|
query: args.query,
|
|
52
60
|
variables: (args == null ? void 0 : args.variables) || {}
|
|
53
61
|
});
|
|
54
|
-
const url = (args == null ? void 0 : args.url) || this.apiUrl;
|
|
55
62
|
const optionsObject = {
|
|
56
63
|
method: "POST",
|
|
57
64
|
headers,
|
|
@@ -59,6 +66,8 @@ class TinaClient {
|
|
|
59
66
|
redirect: "follow",
|
|
60
67
|
...providedFetchOptions
|
|
61
68
|
};
|
|
69
|
+
const draftBranch = headers.get("x-branch");
|
|
70
|
+
const url = replaceGithubPathSplit((args == null ? void 0 : args.url) || this.apiUrl, draftBranch);
|
|
62
71
|
let key = "";
|
|
63
72
|
let result;
|
|
64
73
|
if (this.cache) {
|