@sveltia/cms 0.114.0 → 0.115.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/cms",
3
- "version": "0.114.0",
3
+ "version": "0.115.0",
4
4
  "description": "Sveltia CMS is a modern, lightweight, Git-based headless content management system.",
5
5
  "keywords": [
6
6
  "cms",
@@ -303,11 +303,25 @@
303
303
  "description": "OAuth base URL origin. Required when using an OAuth client other than Netlify, including [Sveltia CMS Authenticator](https://github.com/sveltia/sveltia-cms-auth). Default: `https://api.netlify.com`.",
304
304
  "markdownDescription": "OAuth base URL origin. Required when using an OAuth client other than Netlify, including [Sveltia CMS Authenticator](https://github.com/sveltia/sveltia-cms-auth). Default: `https://api.netlify.com`."
305
305
  },
306
+ "auth_type": {
307
+ "type": "string",
308
+ "enum": [
309
+ "",
310
+ "pkce"
311
+ ],
312
+ "description": "OAuth grant type. The default is an empty string, which is authorization code grant. `pkce` is not yet supported.",
313
+ "markdownDescription": "OAuth grant type. The default is an empty string, which is authorization code grant. `pkce` is not yet supported."
314
+ },
306
315
  "auth_endpoint": {
307
316
  "type": "string",
308
317
  "description": "OAuth base URL path. Default: `auth`.",
309
318
  "markdownDescription": "OAuth base URL path. Default: `auth`."
310
319
  },
320
+ "app_id": {
321
+ "type": "string",
322
+ "description": "OAuth application ID. Required when using PKCE authorization.",
323
+ "markdownDescription": "OAuth application ID. Required when using PKCE authorization."
324
+ },
311
325
  "cms_label_prefix": {
312
326
  "type": "string",
313
327
  "description": "Pull request label prefix for Editorial Workflow. Default: `sveltia-cms/`.",
package/types/public.d.ts CHANGED
@@ -1805,10 +1805,19 @@ export type GitHubBackendProps = {
1805
1805
  * Default: `https://api.netlify.com`.
1806
1806
  */
1807
1807
  base_url?: string;
1808
+ /**
1809
+ * OAuth grant type. The default is an empty string, which is
1810
+ * authorization code grant. `pkce` is not yet supported.
1811
+ */
1812
+ auth_type?: "" | "pkce";
1808
1813
  /**
1809
1814
  * OAuth base URL path. Default: `auth`.
1810
1815
  */
1811
1816
  auth_endpoint?: string;
1817
+ /**
1818
+ * OAuth application ID. Required when using PKCE authorization.
1819
+ */
1820
+ app_id?: string;
1812
1821
  /**
1813
1822
  * Pull request label prefix for Editorial Workflow. Default:
1814
1823
  * `sveltia-cms/`.