tinacms 1.5.11 → 1.5.12
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/pages/IndexingPage.d.ts +2 -0
- package/dist/index.es.js +679 -98
- package/dist/index.js +678 -97
- package/dist/internalClient/index.d.ts +18 -11
- package/dist/internalClient/types.d.ts +52 -0
- package/dist/style.css +379 -26
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { BranchData, EventBus } from '@tinacms/toolkit';
|
|
|
3
3
|
import { DocumentNode, GraphQLSchema } from 'graphql';
|
|
4
4
|
import gql from 'graphql-tag';
|
|
5
5
|
import { TinaSchema, Schema } from '@tinacms/schema-tools';
|
|
6
|
+
import { TinaCloudProject } from './types';
|
|
6
7
|
import { SearchClient } from '@tinacms/search/dist/index-client';
|
|
7
8
|
export declare type OnLoginFunc = (args: {
|
|
8
9
|
token: TokenObject;
|
|
@@ -121,10 +122,12 @@ export declare class Client {
|
|
|
121
122
|
tinaGraphQLVersion: string;
|
|
122
123
|
setToken: (_token: TokenObject) => void;
|
|
123
124
|
private getToken;
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
token: string;
|
|
126
|
+
branch: string;
|
|
126
127
|
private options;
|
|
127
128
|
events: EventBus;
|
|
129
|
+
protectedBranches: string[];
|
|
130
|
+
usingEditorialWorkflow: boolean;
|
|
128
131
|
constructor({ tokenStorage, ...options }: ServerOptions);
|
|
129
132
|
get isLocalMode(): boolean;
|
|
130
133
|
setBranch(branchName: string): void;
|
|
@@ -167,6 +170,12 @@ export declare class Client {
|
|
|
167
170
|
}): Promise<{
|
|
168
171
|
assetsSyncing: string[];
|
|
169
172
|
}>;
|
|
173
|
+
getProject(): Promise<TinaCloudProject>;
|
|
174
|
+
createPullRequest({ baseBranch, branch, title, }: {
|
|
175
|
+
baseBranch: string;
|
|
176
|
+
branch: string;
|
|
177
|
+
title: string;
|
|
178
|
+
}): Promise<any>;
|
|
170
179
|
fetchEvents(limit?: number, cursor?: string): Promise<{
|
|
171
180
|
events: {
|
|
172
181
|
message: string;
|
|
@@ -178,7 +187,6 @@ export declare class Client {
|
|
|
178
187
|
cursor?: string;
|
|
179
188
|
}>;
|
|
180
189
|
parseJwt(token: any): any;
|
|
181
|
-
getProject(): Promise<any>;
|
|
182
190
|
getRefreshedToken(tokens: string): Promise<TokenObject>;
|
|
183
191
|
isAuthorized(): Promise<boolean>;
|
|
184
192
|
isAuthenticated(): Promise<boolean>;
|
|
@@ -202,22 +210,21 @@ export declare class Client {
|
|
|
202
210
|
}>;
|
|
203
211
|
waitForIndexStatus({ ref }: {
|
|
204
212
|
ref: string;
|
|
205
|
-
}): (Promise<any> | (() => void))[]
|
|
206
|
-
status: string;
|
|
207
|
-
};
|
|
213
|
+
}): (Promise<any> | (() => void))[];
|
|
208
214
|
getIndexStatus({ ref }: {
|
|
209
215
|
ref: string;
|
|
210
216
|
}): Promise<{
|
|
211
217
|
status?: "unknown" | "complete" | "failed" | "inprogress";
|
|
212
218
|
timestamp?: number;
|
|
213
219
|
}>;
|
|
214
|
-
listBranches(
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
timestamp?: number;
|
|
218
|
-
};
|
|
220
|
+
listBranches(args?: {
|
|
221
|
+
includeIndexStatus?: boolean;
|
|
222
|
+
}): Promise<{
|
|
219
223
|
name?: string;
|
|
224
|
+
protected?: boolean;
|
|
225
|
+
githubPullRequestUrl?: string;
|
|
220
226
|
}[]>;
|
|
227
|
+
usingProtectedBranch(): boolean;
|
|
221
228
|
createBranch({ baseBranch, branchName }: BranchData): Promise<string>;
|
|
222
229
|
}
|
|
223
230
|
export declare const DEFAULT_LOCAL_TINA_GQL_SERVER_URL = "http://localhost:4001/graphql";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface TinaCloudProject {
|
|
2
|
+
tokens: Token[];
|
|
3
|
+
orgId: string;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
repoUrl: string;
|
|
7
|
+
installationId: number;
|
|
8
|
+
hookId: string;
|
|
9
|
+
siteUrl: string;
|
|
10
|
+
pathToTina: string;
|
|
11
|
+
dateCreated: number;
|
|
12
|
+
dateUpdated: number;
|
|
13
|
+
metadata: Metadata;
|
|
14
|
+
defaultBranch?: string;
|
|
15
|
+
accessDisabled?: boolean;
|
|
16
|
+
indexVersion?: string;
|
|
17
|
+
mediaBranch?: string;
|
|
18
|
+
role: string;
|
|
19
|
+
protectedBranches: string[];
|
|
20
|
+
features?: string[];
|
|
21
|
+
}
|
|
22
|
+
export interface Token {
|
|
23
|
+
token: string;
|
|
24
|
+
name: string;
|
|
25
|
+
branches: string[];
|
|
26
|
+
repoURL: string;
|
|
27
|
+
lastUsed: number;
|
|
28
|
+
}
|
|
29
|
+
export interface Metadata {
|
|
30
|
+
[key: string]: MetaDataBranch;
|
|
31
|
+
}
|
|
32
|
+
export interface MetaDataBranch {
|
|
33
|
+
tinaVersion: TinaVersion;
|
|
34
|
+
tinaMeta: TinaMeta;
|
|
35
|
+
tinaLockVersion: string;
|
|
36
|
+
}
|
|
37
|
+
export interface TinaVersion {
|
|
38
|
+
fullVersion: string;
|
|
39
|
+
major: string;
|
|
40
|
+
minor: string;
|
|
41
|
+
patch: string;
|
|
42
|
+
}
|
|
43
|
+
export interface TinaMeta {
|
|
44
|
+
flags: string[];
|
|
45
|
+
media: {
|
|
46
|
+
tina: TinaMedia;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface TinaMedia {
|
|
50
|
+
publicFolder: string;
|
|
51
|
+
mediaRoot: string;
|
|
52
|
+
}
|
package/dist/style.css
CHANGED
|
@@ -314,6 +314,343 @@
|
|
|
314
314
|
--tw-backdrop-saturate: ;
|
|
315
315
|
--tw-backdrop-sepia: ;
|
|
316
316
|
}
|
|
317
|
+
.tina-prose {
|
|
318
|
+
color: var(--tw-prose-body);
|
|
319
|
+
max-width: 65ch;
|
|
320
|
+
}
|
|
321
|
+
.tina-prose :where([class~="lead"]):not(:where([class~="not-tina-prose"] *)) {
|
|
322
|
+
color: var(--tw-prose-lead);
|
|
323
|
+
font-size: 1.25em;
|
|
324
|
+
line-height: 1.6;
|
|
325
|
+
margin-top: 1.2em;
|
|
326
|
+
margin-bottom: 1.2em;
|
|
327
|
+
}
|
|
328
|
+
.tina-prose :where(a):not(:where([class~="not-tina-prose"] *)) {
|
|
329
|
+
color: var(--tw-prose-links);
|
|
330
|
+
text-decoration: underline;
|
|
331
|
+
font-weight: 500;
|
|
332
|
+
}
|
|
333
|
+
.tina-prose :where(strong):not(:where([class~="not-tina-prose"] *)) {
|
|
334
|
+
color: var(--tw-prose-bold);
|
|
335
|
+
font-weight: 600;
|
|
336
|
+
}
|
|
337
|
+
.tina-prose :where(ol):not(:where([class~="not-tina-prose"] *)) {
|
|
338
|
+
list-style-type: decimal;
|
|
339
|
+
padding-left: 1.625em;
|
|
340
|
+
}
|
|
341
|
+
.tina-prose :where(ol[type="A"]):not(:where([class~="not-tina-prose"] *)) {
|
|
342
|
+
list-style-type: upper-alpha;
|
|
343
|
+
}
|
|
344
|
+
.tina-prose :where(ol[type="a"]):not(:where([class~="not-tina-prose"] *)) {
|
|
345
|
+
list-style-type: lower-alpha;
|
|
346
|
+
}
|
|
347
|
+
.tina-prose :where(ol[type="A" s]):not(:where([class~="not-tina-prose"] *)) {
|
|
348
|
+
list-style-type: upper-alpha;
|
|
349
|
+
}
|
|
350
|
+
.tina-prose :where(ol[type="a" s]):not(:where([class~="not-tina-prose"] *)) {
|
|
351
|
+
list-style-type: lower-alpha;
|
|
352
|
+
}
|
|
353
|
+
.tina-prose :where(ol[type="I"]):not(:where([class~="not-tina-prose"] *)) {
|
|
354
|
+
list-style-type: upper-roman;
|
|
355
|
+
}
|
|
356
|
+
.tina-prose :where(ol[type="i"]):not(:where([class~="not-tina-prose"] *)) {
|
|
357
|
+
list-style-type: lower-roman;
|
|
358
|
+
}
|
|
359
|
+
.tina-prose :where(ol[type="I" s]):not(:where([class~="not-tina-prose"] *)) {
|
|
360
|
+
list-style-type: upper-roman;
|
|
361
|
+
}
|
|
362
|
+
.tina-prose :where(ol[type="i" s]):not(:where([class~="not-tina-prose"] *)) {
|
|
363
|
+
list-style-type: lower-roman;
|
|
364
|
+
}
|
|
365
|
+
.tina-prose :where(ol[type="1"]):not(:where([class~="not-tina-prose"] *)) {
|
|
366
|
+
list-style-type: decimal;
|
|
367
|
+
}
|
|
368
|
+
.tina-prose :where(ul):not(:where([class~="not-tina-prose"] *)) {
|
|
369
|
+
list-style-type: disc;
|
|
370
|
+
padding-left: 1.625em;
|
|
371
|
+
}
|
|
372
|
+
.tina-prose :where(ol > li):not(:where([class~="not-tina-prose"] *))::marker {
|
|
373
|
+
font-weight: 400;
|
|
374
|
+
color: var(--tw-prose-counters);
|
|
375
|
+
}
|
|
376
|
+
.tina-prose :where(ul > li):not(:where([class~="not-tina-prose"] *))::marker {
|
|
377
|
+
color: var(--tw-prose-bullets);
|
|
378
|
+
}
|
|
379
|
+
.tina-prose :where(hr):not(:where([class~="not-tina-prose"] *)) {
|
|
380
|
+
border-color: var(--tw-prose-hr);
|
|
381
|
+
border-top-width: 1px;
|
|
382
|
+
margin-top: 3em;
|
|
383
|
+
margin-bottom: 3em;
|
|
384
|
+
}
|
|
385
|
+
.tina-prose :where(blockquote):not(:where([class~="not-tina-prose"] *)) {
|
|
386
|
+
font-weight: 500;
|
|
387
|
+
font-style: italic;
|
|
388
|
+
color: var(--tw-prose-quotes);
|
|
389
|
+
border-left-width: 0.25rem;
|
|
390
|
+
border-left-color: var(--tw-prose-quote-borders);
|
|
391
|
+
quotes: "\201C""\201D""\2018""\2019";
|
|
392
|
+
margin-top: 1.6em;
|
|
393
|
+
margin-bottom: 1.6em;
|
|
394
|
+
padding-left: 1em;
|
|
395
|
+
}
|
|
396
|
+
.tina-prose :where(blockquote p:first-of-type):not(:where([class~="not-tina-prose"] *))::before {
|
|
397
|
+
content: open-quote;
|
|
398
|
+
}
|
|
399
|
+
.tina-prose :where(blockquote p:last-of-type):not(:where([class~="not-tina-prose"] *))::after {
|
|
400
|
+
content: close-quote;
|
|
401
|
+
}
|
|
402
|
+
.tina-prose :where(h1):not(:where([class~="not-tina-prose"] *)) {
|
|
403
|
+
color: var(--tw-prose-headings);
|
|
404
|
+
font-weight: 800;
|
|
405
|
+
font-size: 2.25em;
|
|
406
|
+
margin-top: 0;
|
|
407
|
+
margin-bottom: 0.8888889em;
|
|
408
|
+
line-height: 1.1111111;
|
|
409
|
+
}
|
|
410
|
+
.tina-prose :where(h1 strong):not(:where([class~="not-tina-prose"] *)) {
|
|
411
|
+
font-weight: 900;
|
|
412
|
+
}
|
|
413
|
+
.tina-prose :where(h2):not(:where([class~="not-tina-prose"] *)) {
|
|
414
|
+
color: var(--tw-prose-headings);
|
|
415
|
+
font-weight: 700;
|
|
416
|
+
font-size: 1.5em;
|
|
417
|
+
margin-top: 2em;
|
|
418
|
+
margin-bottom: 1em;
|
|
419
|
+
line-height: 1.3333333;
|
|
420
|
+
}
|
|
421
|
+
.tina-prose :where(h2 strong):not(:where([class~="not-tina-prose"] *)) {
|
|
422
|
+
font-weight: 800;
|
|
423
|
+
}
|
|
424
|
+
.tina-prose :where(h3):not(:where([class~="not-tina-prose"] *)) {
|
|
425
|
+
color: var(--tw-prose-headings);
|
|
426
|
+
font-weight: 600;
|
|
427
|
+
font-size: 1.25em;
|
|
428
|
+
margin-top: 1.6em;
|
|
429
|
+
margin-bottom: 0.6em;
|
|
430
|
+
line-height: 1.6;
|
|
431
|
+
}
|
|
432
|
+
.tina-prose :where(h3 strong):not(:where([class~="not-tina-prose"] *)) {
|
|
433
|
+
font-weight: 700;
|
|
434
|
+
}
|
|
435
|
+
.tina-prose :where(h4):not(:where([class~="not-tina-prose"] *)) {
|
|
436
|
+
color: var(--tw-prose-headings);
|
|
437
|
+
font-weight: 600;
|
|
438
|
+
margin-top: 1.5em;
|
|
439
|
+
margin-bottom: 0.5em;
|
|
440
|
+
line-height: 1.5;
|
|
441
|
+
}
|
|
442
|
+
.tina-prose :where(h4 strong):not(:where([class~="not-tina-prose"] *)) {
|
|
443
|
+
font-weight: 700;
|
|
444
|
+
}
|
|
445
|
+
.tina-prose :where(figure > *):not(:where([class~="not-tina-prose"] *)) {
|
|
446
|
+
margin-top: 0;
|
|
447
|
+
margin-bottom: 0;
|
|
448
|
+
}
|
|
449
|
+
.tina-prose :where(figcaption):not(:where([class~="not-tina-prose"] *)) {
|
|
450
|
+
color: var(--tw-prose-captions);
|
|
451
|
+
font-size: 0.875em;
|
|
452
|
+
line-height: 1.4285714;
|
|
453
|
+
margin-top: 0.8571429em;
|
|
454
|
+
}
|
|
455
|
+
.tina-prose :where(code):not(:where([class~="not-tina-prose"] *)) {
|
|
456
|
+
color: var(--tw-prose-code);
|
|
457
|
+
font-weight: 600;
|
|
458
|
+
font-size: 0.875em;
|
|
459
|
+
}
|
|
460
|
+
.tina-prose :where(code):not(:where([class~="not-tina-prose"] *))::before {
|
|
461
|
+
content: "`";
|
|
462
|
+
}
|
|
463
|
+
.tina-prose :where(code):not(:where([class~="not-tina-prose"] *))::after {
|
|
464
|
+
content: "`";
|
|
465
|
+
}
|
|
466
|
+
.tina-prose :where(a code):not(:where([class~="not-tina-prose"] *)) {
|
|
467
|
+
color: var(--tw-prose-links);
|
|
468
|
+
}
|
|
469
|
+
.tina-prose :where(pre):not(:where([class~="not-tina-prose"] *)) {
|
|
470
|
+
color: var(--tw-prose-pre-code);
|
|
471
|
+
background-color: var(--tw-prose-pre-bg);
|
|
472
|
+
overflow-x: auto;
|
|
473
|
+
font-weight: 400;
|
|
474
|
+
font-size: 0.875em;
|
|
475
|
+
line-height: 1.7142857;
|
|
476
|
+
margin-top: 1.7142857em;
|
|
477
|
+
margin-bottom: 1.7142857em;
|
|
478
|
+
border-radius: 0.375rem;
|
|
479
|
+
padding-top: 0.8571429em;
|
|
480
|
+
padding-right: 1.1428571em;
|
|
481
|
+
padding-bottom: 0.8571429em;
|
|
482
|
+
padding-left: 1.1428571em;
|
|
483
|
+
}
|
|
484
|
+
.tina-prose :where(pre code):not(:where([class~="not-tina-prose"] *)) {
|
|
485
|
+
background-color: transparent;
|
|
486
|
+
border-width: 0;
|
|
487
|
+
border-radius: 0;
|
|
488
|
+
padding: 0;
|
|
489
|
+
font-weight: inherit;
|
|
490
|
+
color: inherit;
|
|
491
|
+
font-size: inherit;
|
|
492
|
+
font-family: inherit;
|
|
493
|
+
line-height: inherit;
|
|
494
|
+
}
|
|
495
|
+
.tina-prose :where(pre code):not(:where([class~="not-tina-prose"] *))::before {
|
|
496
|
+
content: none;
|
|
497
|
+
}
|
|
498
|
+
.tina-prose :where(pre code):not(:where([class~="not-tina-prose"] *))::after {
|
|
499
|
+
content: none;
|
|
500
|
+
}
|
|
501
|
+
.tina-prose :where(table):not(:where([class~="not-tina-prose"] *)) {
|
|
502
|
+
width: 100%;
|
|
503
|
+
table-layout: auto;
|
|
504
|
+
text-align: left;
|
|
505
|
+
margin-top: 2em;
|
|
506
|
+
margin-bottom: 2em;
|
|
507
|
+
font-size: 0.875em;
|
|
508
|
+
line-height: 1.7142857;
|
|
509
|
+
}
|
|
510
|
+
.tina-prose :where(thead):not(:where([class~="not-tina-prose"] *)) {
|
|
511
|
+
border-bottom-width: 1px;
|
|
512
|
+
border-bottom-color: var(--tw-prose-th-borders);
|
|
513
|
+
}
|
|
514
|
+
.tina-prose :where(thead th):not(:where([class~="not-tina-prose"] *)) {
|
|
515
|
+
color: var(--tw-prose-headings);
|
|
516
|
+
font-weight: 600;
|
|
517
|
+
vertical-align: bottom;
|
|
518
|
+
padding-right: 0.5714286em;
|
|
519
|
+
padding-bottom: 0.5714286em;
|
|
520
|
+
padding-left: 0.5714286em;
|
|
521
|
+
}
|
|
522
|
+
.tina-prose :where(tbody tr):not(:where([class~="not-tina-prose"] *)) {
|
|
523
|
+
border-bottom-width: 1px;
|
|
524
|
+
border-bottom-color: var(--tw-prose-td-borders);
|
|
525
|
+
}
|
|
526
|
+
.tina-prose :where(tbody tr:last-child):not(:where([class~="not-tina-prose"] *)) {
|
|
527
|
+
border-bottom-width: 0;
|
|
528
|
+
}
|
|
529
|
+
.tina-prose :where(tbody td):not(:where([class~="not-tina-prose"] *)) {
|
|
530
|
+
vertical-align: baseline;
|
|
531
|
+
padding-top: 0.5714286em;
|
|
532
|
+
padding-right: 0.5714286em;
|
|
533
|
+
padding-bottom: 0.5714286em;
|
|
534
|
+
padding-left: 0.5714286em;
|
|
535
|
+
}
|
|
536
|
+
.tina-prose {
|
|
537
|
+
--tw-prose-body: #374151;
|
|
538
|
+
--tw-prose-headings: #111827;
|
|
539
|
+
--tw-prose-lead: #4b5563;
|
|
540
|
+
--tw-prose-links: #111827;
|
|
541
|
+
--tw-prose-bold: #111827;
|
|
542
|
+
--tw-prose-counters: #6b7280;
|
|
543
|
+
--tw-prose-bullets: #d1d5db;
|
|
544
|
+
--tw-prose-hr: #e5e7eb;
|
|
545
|
+
--tw-prose-quotes: #111827;
|
|
546
|
+
--tw-prose-quote-borders: #e5e7eb;
|
|
547
|
+
--tw-prose-captions: #6b7280;
|
|
548
|
+
--tw-prose-code: #111827;
|
|
549
|
+
--tw-prose-pre-code: #e5e7eb;
|
|
550
|
+
--tw-prose-pre-bg: #1f2937;
|
|
551
|
+
--tw-prose-th-borders: #d1d5db;
|
|
552
|
+
--tw-prose-td-borders: #e5e7eb;
|
|
553
|
+
--tw-prose-invert-body: #d1d5db;
|
|
554
|
+
--tw-prose-invert-headings: #fff;
|
|
555
|
+
--tw-prose-invert-lead: #9ca3af;
|
|
556
|
+
--tw-prose-invert-links: #fff;
|
|
557
|
+
--tw-prose-invert-bold: #fff;
|
|
558
|
+
--tw-prose-invert-counters: #9ca3af;
|
|
559
|
+
--tw-prose-invert-bullets: #4b5563;
|
|
560
|
+
--tw-prose-invert-hr: #374151;
|
|
561
|
+
--tw-prose-invert-quotes: #f3f4f6;
|
|
562
|
+
--tw-prose-invert-quote-borders: #374151;
|
|
563
|
+
--tw-prose-invert-captions: #9ca3af;
|
|
564
|
+
--tw-prose-invert-code: #fff;
|
|
565
|
+
--tw-prose-invert-pre-code: #d1d5db;
|
|
566
|
+
--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
|
|
567
|
+
--tw-prose-invert-th-borders: #4b5563;
|
|
568
|
+
--tw-prose-invert-td-borders: #374151;
|
|
569
|
+
font-size: 1rem;
|
|
570
|
+
line-height: 1.75;
|
|
571
|
+
}
|
|
572
|
+
.tina-prose :where(p):not(:where([class~="not-tina-prose"] *)) {
|
|
573
|
+
margin-top: 1.25em;
|
|
574
|
+
margin-bottom: 1.25em;
|
|
575
|
+
}
|
|
576
|
+
.tina-prose :where(img):not(:where([class~="not-tina-prose"] *)) {
|
|
577
|
+
margin-top: 2em;
|
|
578
|
+
margin-bottom: 2em;
|
|
579
|
+
}
|
|
580
|
+
.tina-prose :where(video):not(:where([class~="not-tina-prose"] *)) {
|
|
581
|
+
margin-top: 2em;
|
|
582
|
+
margin-bottom: 2em;
|
|
583
|
+
}
|
|
584
|
+
.tina-prose :where(figure):not(:where([class~="not-tina-prose"] *)) {
|
|
585
|
+
margin-top: 2em;
|
|
586
|
+
margin-bottom: 2em;
|
|
587
|
+
}
|
|
588
|
+
.tina-prose :where(h2 code):not(:where([class~="not-tina-prose"] *)) {
|
|
589
|
+
font-size: 0.875em;
|
|
590
|
+
}
|
|
591
|
+
.tina-prose :where(h3 code):not(:where([class~="not-tina-prose"] *)) {
|
|
592
|
+
font-size: 0.9em;
|
|
593
|
+
}
|
|
594
|
+
.tina-prose :where(li):not(:where([class~="not-tina-prose"] *)) {
|
|
595
|
+
margin-top: 0.5em;
|
|
596
|
+
margin-bottom: 0.5em;
|
|
597
|
+
}
|
|
598
|
+
.tina-prose :where(ol > li):not(:where([class~="not-tina-prose"] *)) {
|
|
599
|
+
padding-left: 0.375em;
|
|
600
|
+
}
|
|
601
|
+
.tina-prose :where(ul > li):not(:where([class~="not-tina-prose"] *)) {
|
|
602
|
+
padding-left: 0.375em;
|
|
603
|
+
}
|
|
604
|
+
.tina-prose > :where(ul > li p):not(:where([class~="not-tina-prose"] *)) {
|
|
605
|
+
margin-top: 0.75em;
|
|
606
|
+
margin-bottom: 0.75em;
|
|
607
|
+
}
|
|
608
|
+
.tina-prose > :where(ul > li > *:first-child):not(:where([class~="not-tina-prose"] *)) {
|
|
609
|
+
margin-top: 1.25em;
|
|
610
|
+
}
|
|
611
|
+
.tina-prose > :where(ul > li > *:last-child):not(:where([class~="not-tina-prose"] *)) {
|
|
612
|
+
margin-bottom: 1.25em;
|
|
613
|
+
}
|
|
614
|
+
.tina-prose > :where(ol > li > *:first-child):not(:where([class~="not-tina-prose"] *)) {
|
|
615
|
+
margin-top: 1.25em;
|
|
616
|
+
}
|
|
617
|
+
.tina-prose > :where(ol > li > *:last-child):not(:where([class~="not-tina-prose"] *)) {
|
|
618
|
+
margin-bottom: 1.25em;
|
|
619
|
+
}
|
|
620
|
+
.tina-prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-tina-prose"] *)) {
|
|
621
|
+
margin-top: 0.75em;
|
|
622
|
+
margin-bottom: 0.75em;
|
|
623
|
+
}
|
|
624
|
+
.tina-prose :where(hr + *):not(:where([class~="not-tina-prose"] *)) {
|
|
625
|
+
margin-top: 0;
|
|
626
|
+
}
|
|
627
|
+
.tina-prose :where(h2 + *):not(:where([class~="not-tina-prose"] *)) {
|
|
628
|
+
margin-top: 0;
|
|
629
|
+
}
|
|
630
|
+
.tina-prose :where(h3 + *):not(:where([class~="not-tina-prose"] *)) {
|
|
631
|
+
margin-top: 0;
|
|
632
|
+
}
|
|
633
|
+
.tina-prose :where(h4 + *):not(:where([class~="not-tina-prose"] *)) {
|
|
634
|
+
margin-top: 0;
|
|
635
|
+
}
|
|
636
|
+
.tina-prose :where(thead th:first-child):not(:where([class~="not-tina-prose"] *)) {
|
|
637
|
+
padding-left: 0;
|
|
638
|
+
}
|
|
639
|
+
.tina-prose :where(thead th:last-child):not(:where([class~="not-tina-prose"] *)) {
|
|
640
|
+
padding-right: 0;
|
|
641
|
+
}
|
|
642
|
+
.tina-prose :where(tbody td:first-child):not(:where([class~="not-tina-prose"] *)) {
|
|
643
|
+
padding-left: 0;
|
|
644
|
+
}
|
|
645
|
+
.tina-prose :where(tbody td:last-child):not(:where([class~="not-tina-prose"] *)) {
|
|
646
|
+
padding-right: 0;
|
|
647
|
+
}
|
|
648
|
+
.tina-prose > :where(:first-child):not(:where([class~="not-tina-prose"] *)) {
|
|
649
|
+
margin-top: 0;
|
|
650
|
+
}
|
|
651
|
+
.tina-prose > :where(:last-child):not(:where([class~="not-tina-prose"] *)) {
|
|
652
|
+
margin-bottom: 0;
|
|
653
|
+
}
|
|
317
654
|
.tina-tailwind .pointer-events-none {
|
|
318
655
|
pointer-events: none;
|
|
319
656
|
}
|
|
@@ -382,18 +719,9 @@
|
|
|
382
719
|
.tina-tailwind .-ml-px {
|
|
383
720
|
margin-left: -1px;
|
|
384
721
|
}
|
|
385
|
-
.tina-tailwind .-mt-0 {
|
|
386
|
-
margin-top: -0px;
|
|
387
|
-
}
|
|
388
|
-
.tina-tailwind .-mt-0\.5 {
|
|
389
|
-
margin-top: -2px;
|
|
390
|
-
}
|
|
391
722
|
.tina-tailwind .mb-1 {
|
|
392
723
|
margin-bottom: 4px;
|
|
393
724
|
}
|
|
394
|
-
.tina-tailwind .mb-2 {
|
|
395
|
-
margin-bottom: 8px;
|
|
396
|
-
}
|
|
397
725
|
.tina-tailwind .mb-4 {
|
|
398
726
|
margin-bottom: 16px;
|
|
399
727
|
}
|
|
@@ -523,12 +851,21 @@
|
|
|
523
851
|
.tina-tailwind .flex-shrink-0 {
|
|
524
852
|
flex-shrink: 0;
|
|
525
853
|
}
|
|
854
|
+
.tina-tailwind .shrink {
|
|
855
|
+
flex-shrink: 1;
|
|
856
|
+
}
|
|
526
857
|
.tina-tailwind .shrink-0 {
|
|
527
858
|
flex-shrink: 0;
|
|
528
859
|
}
|
|
529
860
|
.tina-tailwind .flex-grow-0 {
|
|
530
861
|
flex-grow: 0;
|
|
531
862
|
}
|
|
863
|
+
.tina-tailwind .grow-0 {
|
|
864
|
+
flex-grow: 0;
|
|
865
|
+
}
|
|
866
|
+
.tina-tailwind .basis-0 {
|
|
867
|
+
flex-basis: 0px;
|
|
868
|
+
}
|
|
532
869
|
.tina-tailwind .table-auto {
|
|
533
870
|
table-layout: auto;
|
|
534
871
|
}
|
|
@@ -564,6 +901,15 @@
|
|
|
564
901
|
.tina-tailwind .transform {
|
|
565
902
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
566
903
|
}
|
|
904
|
+
@keyframes spin {
|
|
905
|
+
|
|
906
|
+
to {
|
|
907
|
+
transform: rotate(360deg);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
.tina-tailwind .animate-spin {
|
|
911
|
+
animation: spin 1s linear infinite;
|
|
912
|
+
}
|
|
567
913
|
.tina-tailwind .cursor-pointer {
|
|
568
914
|
cursor: pointer;
|
|
569
915
|
}
|
|
@@ -609,6 +955,9 @@
|
|
|
609
955
|
.tina-tailwind .gap-1 {
|
|
610
956
|
gap: 4px;
|
|
611
957
|
}
|
|
958
|
+
.tina-tailwind .gap-1\.5 {
|
|
959
|
+
gap: 6px;
|
|
960
|
+
}
|
|
612
961
|
.tina-tailwind .gap-2 {
|
|
613
962
|
gap: 8px;
|
|
614
963
|
}
|
|
@@ -758,6 +1107,9 @@
|
|
|
758
1107
|
.tina-tailwind .p-0 {
|
|
759
1108
|
padding: 0px;
|
|
760
1109
|
}
|
|
1110
|
+
.tina-tailwind .p-6 {
|
|
1111
|
+
padding: 24px;
|
|
1112
|
+
}
|
|
761
1113
|
.tina-tailwind .p-8 {
|
|
762
1114
|
padding: 32px;
|
|
763
1115
|
}
|
|
@@ -821,6 +1173,9 @@
|
|
|
821
1173
|
padding-top: 32px;
|
|
822
1174
|
padding-bottom: 32px;
|
|
823
1175
|
}
|
|
1176
|
+
.tina-tailwind .pb-4 {
|
|
1177
|
+
padding-bottom: 16px;
|
|
1178
|
+
}
|
|
824
1179
|
.tina-tailwind .pl-18 {
|
|
825
1180
|
padding-left: 72px;
|
|
826
1181
|
}
|
|
@@ -848,6 +1203,9 @@
|
|
|
848
1203
|
.tina-tailwind .pt-12 {
|
|
849
1204
|
padding-top: 48px;
|
|
850
1205
|
}
|
|
1206
|
+
.tina-tailwind .pt-3 {
|
|
1207
|
+
padding-top: 12px;
|
|
1208
|
+
}
|
|
851
1209
|
.tina-tailwind .pt-4 {
|
|
852
1210
|
padding-top: 16px;
|
|
853
1211
|
}
|
|
@@ -891,6 +1249,9 @@
|
|
|
891
1249
|
font-size: 13px;
|
|
892
1250
|
line-height: 1.33;
|
|
893
1251
|
}
|
|
1252
|
+
.tina-tailwind .font-bold {
|
|
1253
|
+
font-weight: 700;
|
|
1254
|
+
}
|
|
894
1255
|
.tina-tailwind .font-medium {
|
|
895
1256
|
font-weight: 500;
|
|
896
1257
|
}
|
|
@@ -927,9 +1288,6 @@
|
|
|
927
1288
|
--tw-text-opacity: 1;
|
|
928
1289
|
color: rgb(5 116 228 / var(--tw-text-opacity));
|
|
929
1290
|
}
|
|
930
|
-
.tina-tailwind .text-current {
|
|
931
|
-
color: currentColor;
|
|
932
|
-
}
|
|
933
1291
|
.tina-tailwind .text-gray-200 {
|
|
934
1292
|
--tw-text-opacity: 1;
|
|
935
1293
|
color: rgb(225 221 236 / var(--tw-text-opacity));
|
|
@@ -970,6 +1328,10 @@
|
|
|
970
1328
|
--tw-text-opacity: 1;
|
|
971
1329
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
972
1330
|
}
|
|
1331
|
+
.tina-tailwind .text-red-700 {
|
|
1332
|
+
--tw-text-opacity: 1;
|
|
1333
|
+
color: rgb(185 28 28 / var(--tw-text-opacity));
|
|
1334
|
+
}
|
|
973
1335
|
.tina-tailwind .text-white {
|
|
974
1336
|
--tw-text-opacity: 1;
|
|
975
1337
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
@@ -995,8 +1357,8 @@
|
|
|
995
1357
|
.tina-tailwind .opacity-20 {
|
|
996
1358
|
opacity: .2;
|
|
997
1359
|
}
|
|
998
|
-
.tina-tailwind .opacity-
|
|
999
|
-
opacity: .
|
|
1360
|
+
.tina-tailwind .opacity-30 {
|
|
1361
|
+
opacity: .3;
|
|
1000
1362
|
}
|
|
1001
1363
|
.tina-tailwind .opacity-70 {
|
|
1002
1364
|
opacity: .7;
|
|
@@ -1055,11 +1417,6 @@
|
|
|
1055
1417
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1056
1418
|
transition-duration: 150ms;
|
|
1057
1419
|
}
|
|
1058
|
-
.tina-tailwind .transition-colors {
|
|
1059
|
-
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1060
|
-
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1061
|
-
transition-duration: 150ms;
|
|
1062
|
-
}
|
|
1063
1420
|
.tina-tailwind .transition-opacity {
|
|
1064
1421
|
transition-property: opacity;
|
|
1065
1422
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1115,6 +1472,9 @@
|
|
|
1115
1472
|
--tw-text-opacity: 1;
|
|
1116
1473
|
color: rgb(5 116 228 / var(--tw-text-opacity));
|
|
1117
1474
|
}
|
|
1475
|
+
.tina-tailwind .hover\:underline:hover {
|
|
1476
|
+
text-decoration-line: underline;
|
|
1477
|
+
}
|
|
1118
1478
|
.tina-tailwind .hover\:decoration-blue-400:hover {
|
|
1119
1479
|
text-decoration-color: #2296fe;
|
|
1120
1480
|
}
|
|
@@ -1128,17 +1488,10 @@
|
|
|
1128
1488
|
--tw-border-opacity: 1;
|
|
1129
1489
|
border-color: rgb(0 132 255 / var(--tw-border-opacity));
|
|
1130
1490
|
}
|
|
1131
|
-
.tina-tailwind .focus\:text-blue-400:focus {
|
|
1132
|
-
--tw-text-opacity: 1;
|
|
1133
|
-
color: rgb(34 150 254 / var(--tw-text-opacity));
|
|
1134
|
-
}
|
|
1135
1491
|
.tina-tailwind .focus\:text-gray-900:focus {
|
|
1136
1492
|
--tw-text-opacity: 1;
|
|
1137
1493
|
color: rgb(37 35 54 / var(--tw-text-opacity));
|
|
1138
1494
|
}
|
|
1139
|
-
.tina-tailwind .focus\:underline:focus {
|
|
1140
|
-
text-decoration-line: underline;
|
|
1141
|
-
}
|
|
1142
1495
|
.tina-tailwind .focus\:shadow-outline:focus {
|
|
1143
1496
|
--tw-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
|
|
1144
1497
|
--tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.12",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.es.js",
|
|
6
6
|
"exports": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@tinacms/search": "1.0.3",
|
|
66
66
|
"@tinacms/schema-tools": "1.4.7",
|
|
67
67
|
"@tinacms/sharedctx": "1.0.1",
|
|
68
|
-
"@tinacms/toolkit": "1.7.
|
|
68
|
+
"@tinacms/toolkit": "1.7.8",
|
|
69
69
|
"crypto-js": "^4.0.0",
|
|
70
70
|
"encoding": "0.1.13",
|
|
71
71
|
"fetch-ponyfill": "^7.1.0",
|