-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into add-static-media
- Loading branch information
Showing
365 changed files
with
1,634 additions
and
4,765 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@tinacms/mdx': patch | ||
--- | ||
|
||
Ensure urls are sanitized in a tags for rich-text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@tinacms/cli': patch | ||
--- | ||
|
||
Adds ability to specify branch name in the request for the autogenerated client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@tinacms/mdx': patch | ||
--- | ||
|
||
Fix issue where non-object lists weren't handled properly for rich-text embeds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
--- | ||
'@tinacms/toolkit': patch | ||
'tinacms': patch | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'next-tinacms-cloudinary': patch | ||
'@tinacms/scripts': patch | ||
'next-tinacms-dos': patch | ||
'next-tinacms-s3': patch | ||
'@tinacms/app': patch | ||
'@tinacms/cli': patch | ||
'tinacms': patch | ||
--- | ||
|
||
Absorb @tinacms/toolkit into tinacms | ||
|
||
fix: Use clean page-sizes on media manager (to make pagination more obvious) | ||
|
||
Fix issue with uploading media in a folder with tina cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,4 @@ terraform/**/.terraform | |
# Ignore any .next folder | ||
**/.next/** | ||
examples/hugo-quickstart | ||
**/out.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
packages/@tinacms/mdx/src/next/tests/mdx-table-like-field/field.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { RichTextField } from '@tinacms/schema-tools' | ||
|
||
export const field: RichTextField = { | ||
name: 'body', | ||
type: 'rich-text', | ||
parser: { type: 'mdx' }, | ||
templates: [ | ||
{ | ||
name: 'TestComponent', | ||
label: 'Test component', | ||
fields: [ | ||
{ | ||
label: 'Rows', | ||
name: 'rows', | ||
type: 'object', | ||
list: true, | ||
fields: [ | ||
{ | ||
label: 'Cells', | ||
name: 'celss', | ||
list: true, | ||
type: 'string', | ||
}, | ||
{ | ||
label: 'Is Header', | ||
name: 'isHeader', | ||
type: 'boolean', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'TestComponent2', | ||
label: 'Test component 2', | ||
fields: [ | ||
{ | ||
label: 'Rows', | ||
name: 'rows', | ||
type: 'object', | ||
list: true, | ||
fields: [ | ||
{ | ||
label: 'Cells', | ||
name: 'celss', | ||
list: true, | ||
type: 'number', | ||
}, | ||
{ | ||
label: 'Is Header', | ||
name: 'isHeader', | ||
type: 'boolean', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/@tinacms/mdx/src/next/tests/mdx-table-like-field/in.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Welcome to the barebones starter for TinaCMS! | ||
|
||
<TestComponent | ||
rows={[ | ||
{ celss: ["Three", "Two", "One"], isHeader: true }, | ||
{ celss: ["C", "B", "A"] } | ||
]} | ||
/> | ||
|
||
<TestComponent | ||
rows={[ | ||
{ celss: [1,2,3], isHeader: true }, | ||
{ celss: [4,5,6] } | ||
]} | ||
/> |
13 changes: 13 additions & 0 deletions
13
packages/@tinacms/mdx/src/next/tests/mdx-table-like-field/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { it, expect } from 'vitest' | ||
import { parseMDX } from '../../../parse' | ||
import { stringifyMDX } from '../../../stringify' | ||
import { field } from './field' | ||
import input from './in.md?raw' | ||
import * as util from '../util' | ||
|
||
it('matches input', () => { | ||
const tree = parseMDX(input, field, (v) => v) | ||
expect(util.print(tree)).toMatchFile(util.nodePath(__dirname)) | ||
const string = stringifyMDX(tree, field, (v) => v) | ||
expect(string).toMatchFile(util.mdPath(__dirname)) | ||
}) |
72 changes: 72 additions & 0 deletions
72
packages/@tinacms/mdx/src/next/tests/mdx-table-like-field/node.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"type": "root", | ||
"children": [ | ||
{ | ||
"type": "p", | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"text": "Welcome to the barebones starter for TinaCMS!" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "mdxJsxFlowElement", | ||
"name": "TestComponent", | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"text": "" | ||
} | ||
], | ||
"props": { | ||
"rows": [ | ||
{ | ||
"celss": [ | ||
"Three", | ||
"Two", | ||
"One" | ||
], | ||
"isHeader": true | ||
}, | ||
{ | ||
"celss": [ | ||
"C", | ||
"B", | ||
"A" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "mdxJsxFlowElement", | ||
"name": "TestComponent", | ||
"children": [ | ||
{ | ||
"type": "text", | ||
"text": "" | ||
} | ||
], | ||
"props": { | ||
"rows": [ | ||
{ | ||
"celss": [ | ||
1, | ||
2, | ||
3 | ||
], | ||
"isHeader": true | ||
}, | ||
{ | ||
"celss": [ | ||
4, | ||
5, | ||
6 | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/@tinacms/mdx/src/next/tests/mdx-table-like-field/out.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Welcome to the barebones starter for TinaCMS! | ||
|
||
<TestComponent | ||
rows={[ | ||
{ celss: ["Three", "Two", "One"], isHeader: true }, | ||
{ celss: ["C", "B", "A"] } | ||
]} | ||
/> | ||
|
||
<TestComponent rows={[{ celss: [1, 2, 3], isHeader: true }, { celss: [4, 5, 6] }]} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.