tinacms 0.68.6 → 0.68.9
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 +32 -0
- package/dist/admin/api.d.ts +1 -1
- package/dist/admin/components/GetCollection.d.ts +3 -2
- package/dist/admin/types.d.ts +6 -0
- package/dist/client.es.js +33 -1
- package/dist/client.js +35 -2
- package/dist/index.es.js +1324 -254
- package/dist/index.js +1089 -19
- package/dist/style.css +523 -307
- package/dist/unifiedClient/index.d.ts +8 -0
- package/package.json +4 -4
|
@@ -10,6 +10,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
10
10
|
See the License for the specific language governing permissions and
|
|
11
11
|
limitations under the License.
|
|
12
12
|
*/
|
|
13
|
+
export declare const TINA_HOST = "content.tinajs.io";
|
|
13
14
|
export interface TinaClientArgs<GenQueries = Record<string, unknown>> {
|
|
14
15
|
url: string;
|
|
15
16
|
token?: string;
|
|
@@ -19,6 +20,12 @@ export declare type TinaClientRequestArgs = {
|
|
|
19
20
|
variables?: Record<string, any>;
|
|
20
21
|
query: string;
|
|
21
22
|
} & Partial<Omit<TinaClientArgs, 'queries'>>;
|
|
23
|
+
export declare type TinaClientURLParts = {
|
|
24
|
+
host: string;
|
|
25
|
+
clientId: string;
|
|
26
|
+
branch: string;
|
|
27
|
+
isLocalClient: boolean;
|
|
28
|
+
};
|
|
22
29
|
export declare class TinaClient<GenQueries> {
|
|
23
30
|
apiUrl: string;
|
|
24
31
|
readonlyToken?: string;
|
|
@@ -31,5 +38,6 @@ export declare class TinaClient<GenQueries> {
|
|
|
31
38
|
data: DataType;
|
|
32
39
|
query: string;
|
|
33
40
|
}>;
|
|
41
|
+
parseURL: (overrideUrl: string) => TinaClientURLParts;
|
|
34
42
|
}
|
|
35
43
|
export declare function createClient<GenQueries>(args: TinaClientArgs<GenQueries>): TinaClient<GenQueries>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@headlessui/react": "^1.5.0",
|
|
27
27
|
"@heroicons/react": "^1.0.4",
|
|
28
28
|
"@react-hook/window-size": "^3.0.7",
|
|
29
|
-
"@tinacms/schema-tools": "0.0.
|
|
29
|
+
"@tinacms/schema-tools": "0.0.5",
|
|
30
30
|
"@tinacms/sharedctx": "0.1.1",
|
|
31
|
-
"@tinacms/toolkit": "0.56.
|
|
31
|
+
"@tinacms/toolkit": "0.56.32",
|
|
32
32
|
"crypto-js": "^4.0.0",
|
|
33
33
|
"fetch-ponyfill": "^7.1.0",
|
|
34
34
|
"final-form": "4.20.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@testing-library/react": "^12.0.0",
|
|
47
47
|
"@testing-library/react-hooks": "^7.0.2",
|
|
48
48
|
"@testing-library/user-event": "^12.7.0",
|
|
49
|
-
"@tinacms/scripts": "0.50.
|
|
49
|
+
"@tinacms/scripts": "0.50.8",
|
|
50
50
|
"@types/jest": "^27.0.1",
|
|
51
51
|
"@types/lodash": "^4.14.169",
|
|
52
52
|
"@types/node": "^14.0.13",
|