@sveltia/cms 0.77.2 → 0.78.2
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 +45 -24
- package/dist/sveltia-cms.js +215 -215
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +215 -215
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +2 -2
- package/types/public.d.ts +21 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/cms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.78.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"provenance": true
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@types/react": "^19.1.
|
|
16
|
+
"@types/react": "^19.1.6"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist",
|
package/types/public.d.ts
CHANGED
|
@@ -1443,7 +1443,7 @@ export type Collection = {
|
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Supported Git backend name.
|
|
1445
1445
|
*/
|
|
1446
|
-
export type GitBackendName = "github" | "gitlab";
|
|
1446
|
+
export type GitBackendName = "github" | "gitlab" | "gitea";
|
|
1447
1447
|
/**
|
|
1448
1448
|
* Supported backend name.
|
|
1449
1449
|
*/
|
|
@@ -1486,9 +1486,9 @@ export type BackendOptions = {
|
|
|
1486
1486
|
*/
|
|
1487
1487
|
name: BackendName;
|
|
1488
1488
|
/**
|
|
1489
|
-
* Required for
|
|
1490
|
-
* name and repository name joined by a slash, e.g. `owner/repo`. GitLab:
|
|
1491
|
-
* joined by a slash, e.g. `group/project` or `group/subgroup/project`.
|
|
1489
|
+
* Repository identifier. Required for Git backends. GitHub/Gitea:
|
|
1490
|
+
* organization/user name and repository name joined by a slash, e.g. `owner/repo`. GitLab:
|
|
1491
|
+
* namespace and project name joined by a slash, e.g. `group/project` or `group/subgroup/project`.
|
|
1492
1492
|
*/
|
|
1493
1493
|
repo?: string;
|
|
1494
1494
|
/**
|
|
@@ -1497,9 +1497,10 @@ export type BackendOptions = {
|
|
|
1497
1497
|
*/
|
|
1498
1498
|
branch?: string;
|
|
1499
1499
|
/**
|
|
1500
|
-
* REST API endpoint for the backend. Required when
|
|
1501
|
-
* Enterprise Server
|
|
1502
|
-
* `https://api.github.com` (GitHub)
|
|
1500
|
+
* REST API endpoint for the backend. Git backends only. Required when
|
|
1501
|
+
* using GitHub Enterprise Server, a self-hosted GitLab/Gitea instance. Default:
|
|
1502
|
+
* `https://api.github.com` (GitHub), `https://gitlab.com/api/v4` (GitLab) or
|
|
1503
|
+
* `https://gitea.com/api/v1` (Gitea).
|
|
1503
1504
|
*/
|
|
1504
1505
|
api_root?: string;
|
|
1505
1506
|
/**
|
|
@@ -1513,9 +1514,10 @@ export type BackendOptions = {
|
|
|
1513
1514
|
*/
|
|
1514
1515
|
site_domain?: string;
|
|
1515
1516
|
/**
|
|
1516
|
-
* OAuth base URL origin. Required when using an
|
|
1517
|
-
* than Netlify, including Sveltia CMS Authenticator.
|
|
1518
|
-
* `https://api.netlify.com
|
|
1517
|
+
* OAuth base URL origin. Git backends only. Required when using an
|
|
1518
|
+
* OAuth client other than Netlify, including Sveltia CMS Authenticator. Default:
|
|
1519
|
+
* `https://api.netlify.com` (GitHub), `https://gitlab.com` (GitLab) or `https://gitea.com/`
|
|
1520
|
+
* (Gitea).
|
|
1519
1521
|
*/
|
|
1520
1522
|
base_url?: string;
|
|
1521
1523
|
/**
|
|
@@ -1529,7 +1531,7 @@ export type BackendOptions = {
|
|
|
1529
1531
|
*/
|
|
1530
1532
|
auth_type?: "pkce" | "implicit";
|
|
1531
1533
|
/**
|
|
1532
|
-
* OAuth application ID. GitLab only.
|
|
1534
|
+
* OAuth application ID. GitLab and Gitea only. Required for Gitea.
|
|
1533
1535
|
*/
|
|
1534
1536
|
app_id?: string;
|
|
1535
1537
|
/**
|
|
@@ -1630,6 +1632,14 @@ export type OutputOptions = {
|
|
|
1630
1632
|
* and an empty value from being included in entry data output. Default: `false`.
|
|
1631
1633
|
*/
|
|
1632
1634
|
omit_empty_optional_fields?: boolean;
|
|
1635
|
+
/**
|
|
1636
|
+
* Whether to encode the file path in File/Image fields.
|
|
1637
|
+
* Default: `false`. This is useful when a file path contains special characters that need to be
|
|
1638
|
+
* URL-encoded, such as spaces and parentheses. For example, `Hello World (1).webp` would be
|
|
1639
|
+
* `Hello%20World%20%281%29.webp`. In general, File/Image fields should contain the original file
|
|
1640
|
+
* path, and web-specific encoding should be done in the front-end code.
|
|
1641
|
+
*/
|
|
1642
|
+
encode_file_path?: boolean;
|
|
1633
1643
|
/**
|
|
1634
1644
|
* JSON format options.
|
|
1635
1645
|
*/
|