tinacms 3.12.1 → 3.14.0

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/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
  [![npm version](https://img.shields.io/npm/v/tinacms.svg?style=flat)](https://www.npmjs.com/package/tinacms)
3
3
  [![Build, Test, Lint for Main](https://github.com/tinacms/tinacms/actions/workflows/main.yml/badge.svg?branch=main&event=push)](https://github.com/tinacms/tinacms/actions/workflows/main.yml)
4
4
 
5
- # [![TINA CMS](./.github/assets/tinacms-logo-small-default.svg)](https://tina.io)
5
+ # [![TINA CMS](https://raw.githubusercontent.com/tinacms/tinacms/main/.github/assets/tinacms-logo-small-default.svg)](https://tina.io)
6
6
 
7
- [![Tina Demo](./.github/assets/homepage-demo-2.gif)](https://tina.io/)
7
+ [![Tina Demo](https://raw.githubusercontent.com/tinacms/tinacms/main/.github/assets/homepage-demo-2.gif)](https://tina.io/)
8
8
 
9
9
  Tina is a headless content management system with support for **Markdown**, MDX, JSON, YAML, and more.
10
10
 
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Resolve a router splat into a same-origin preview path.
3
+ *
4
+ * Do not filter the splat instead: the URL parser treats `\` as `/` and drops
5
+ * leading tabs, so a character filter does not hold. Resolve the value first,
6
+ * then reject any result that left this origin.
7
+ *
8
+ * `offOrigin` is true only when a splat was supplied and resolved elsewhere, so
9
+ * callers can tell a rejected link from an empty one.
10
+ */
11
+ export declare function resolvePreviewPath(splat: string | undefined, baseOrigin?: string): {
12
+ path: string;
13
+ offOrigin: boolean;
14
+ };