datocms-plugin-sdk 0.6.15 → 0.7.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/dist/cjs/SiteApiSchema.js +0 -1
- package/dist/cjs/SiteApiSchema.js.map +1 -1
- package/dist/esm/SiteApiSchema.d.ts +1373 -1062
- package/dist/esm/SiteApiSchema.js +0 -1
- package/dist/esm/SiteApiSchema.js.map +1 -1
- package/dist/esm/types.d.ts +10 -3
- package/dist/types/SiteApiSchema.d.ts +1373 -1062
- package/dist/types/types.d.ts +10 -3
- package/package.json +2 -2
- package/src/SiteApiSchema.ts +1500 -1093
- package/src/types.ts +10 -2
- package/types.json +8049 -7761
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BlockNodeTypeWithCustomStyle } from 'datocms-structured-text-utils';
|
|
3
|
-
import { Account, Field, Fieldset, Item, ItemType, Plugin, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
|
|
3
|
+
import { Account, Organization, Field, Fieldset, Item, ItemType, Plugin, Role, Site, SsoUser, Upload, User } from './SiteApiSchema';
|
|
4
4
|
export declare type Icon = string | {
|
|
5
5
|
type: 'svg';
|
|
6
6
|
viewBox: string;
|
|
@@ -485,7 +485,7 @@ export declare type CommonProperties = {
|
|
|
485
485
|
* The current DatoCMS user. It can either be the owner or one of the
|
|
486
486
|
* collaborators (regular or SSO).
|
|
487
487
|
*/
|
|
488
|
-
currentUser: User | SsoUser | Account;
|
|
488
|
+
currentUser: User | SsoUser | Account | Organization;
|
|
489
489
|
/** The role for the current DatoCMS user */
|
|
490
490
|
currentRole: Role;
|
|
491
491
|
/**
|
|
@@ -544,8 +544,15 @@ export declare type RenderAdditionalProperties = {
|
|
|
544
544
|
* not present, use the `loadSsoUsers` function to load them.
|
|
545
545
|
*/
|
|
546
546
|
ssoUsers: Partial<Record<string, SsoUser>>;
|
|
547
|
-
/**
|
|
547
|
+
/**
|
|
548
|
+
* The account that is the project owner
|
|
549
|
+
*
|
|
550
|
+
* @deprecated Please use `.owner` instead, as the project owner can also be
|
|
551
|
+
* an organization
|
|
552
|
+
*/
|
|
548
553
|
account: Account;
|
|
554
|
+
/** The account that is the project owner */
|
|
555
|
+
owner: Account | Organization;
|
|
549
556
|
/** The padding in px that must be applied to the body */
|
|
550
557
|
bodyPadding: [number, number, number, number];
|
|
551
558
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-plugin-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "DatoCMS Plugin SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typedoc": "^0.23.20"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "294c0ff76fd13ff152dc9601b23f1ae8eac930d4"
|
|
47
47
|
}
|